diff --git a/assets/index-C0bZt9xi.css b/assets/index-C0bZt9xi.css new file mode 100644 index 0000000..3dea4cd --- /dev/null +++ b/assets/index-C0bZt9xi.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.fixed{position:fixed}.ml-8{margin-left:2rem}.flex{display:flex}.min-h-screen{min-height:100vh}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-8{padding:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.bg-app[data-v-68d0d1bd]{background-color:#eee}.text-app-blue[data-v-68d0d1bd]{color:#0d70b0}.text-app-light-black[data-v-68d0d1bd]{color:#333} diff --git a/assets/index-CQqthcE2.js b/assets/index-CQqthcE2.js new file mode 100644 index 0000000..aa072b8 --- /dev/null +++ b/assets/index-CQqthcE2.js @@ -0,0 +1,87 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const e of s.addedNodes)e.tagName==="LINK"&&e.rel==="modulepreload"&&o(e)}).observe(document,{childList:!0,subtree:!0});function i(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(n){if(n.ep)return;n.ep=!0;const s=i(n);fetch(n.href,s)}})();/** +* @vue/shared v3.4.31 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function _o(r,t){const i=new Set(r.split(","));return o=>i.has(o)}const Hr={},Dn=[],Mt=()=>{},ic=()=>!1,Qi=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),ko=r=>r.startsWith("onUpdate:"),lt=Object.assign,Co=(r,t)=>{const i=r.indexOf(t);i>-1&&r.splice(i,1)},sc=Object.prototype.hasOwnProperty,Fr=(r,t)=>sc.call(r,t),hr=Array.isArray,Ln=r=>es(r)==="[object Map]",Ll=r=>es(r)==="[object Set]",xr=r=>typeof r=="function",ot=r=>typeof r=="string",An=r=>typeof r=="symbol",Yr=r=>r!==null&&typeof r=="object",Bl=r=>(Yr(r)||xr(r))&&xr(r.then)&&xr(r.catch),Nl=Object.prototype.toString,es=r=>Nl.call(r),oc=r=>es(r).slice(8,-1),jl=r=>es(r)==="[object Object]",Eo=r=>ot(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Jn=_o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rs=r=>{const t=Object.create(null);return i=>t[i]||(t[i]=r(i))},ac=/-(\w)/g,Nn=rs(r=>r.replace(ac,(t,i)=>i?i.toUpperCase():"")),lc=/\B([A-Z])/g,qn=rs(r=>r.replace(lc,"-$1").toLowerCase()),zl=rs(r=>r.charAt(0).toUpperCase()+r.slice(1)),Cs=rs(r=>r?`on${zl(r)}`:""),bn=(r,t)=>!Object.is(r,t),Oi=(r,...t)=>{for(let i=0;i{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:o,value:i})},Hs=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let Ia;const Wl=()=>Ia||(Ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Io(r){if(hr(r)){const t={};for(let i=0;i{if(i){const o=i.split(uc);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Mo(r){let t="";if(ot(r))t=r;else if(hr(r))for(let i=0;i!!(r&&r.__v_isRef===!0),Vl=r=>ot(r)?r:r==null?"":hr(r)||Yr(r)&&(r.toString===Nl||!xr(r.toString))?Ul(r)?Vl(r.value):JSON.stringify(r,Hl,2):String(r),Hl=(r,t)=>Ul(t)?Hl(r,t.value):Ln(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[o,n],s)=>(i[Es(o,s)+" =>"]=n,i),{})}:Ll(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>Es(i))}:An(t)?Es(t):Yr(t)&&!hr(t)&&!jl(t)?String(t):t,Es=(r,t="")=>{var i;return An(r)?`Symbol(${(i=r.description)!=null?i:t})`:r};/** +* @vue/reactivity v3.4.31 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Dt;class dc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Dt,!t&&Dt&&(this.index=(Dt.scopes||(Dt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const i=Dt;try{return Dt=this,t()}finally{Dt=i}}}on(){Dt=this}off(){Dt=this.parent}stop(t){if(this._active){let i,o;for(i=0,o=this.effects.length;i=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),wn()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=hn,i=Sn;try{return hn=!0,Sn=this,this._runnings++,Ma(this),this.fn()}finally{Sa(this),this._runnings--,Sn=i,hn=t}}stop(){this.active&&(Ma(this),Sa(this),this.onStop&&this.onStop(),this.active=!1)}}function bc(r){return r.value}function Ma(r){r._trackId++,r._depsLength=0}function Sa(r){if(r.deps.length>r._depsLength){for(let t=r._depsLength;t{const i=new Map;return i.cleanup=r,i.computed=t,i},Ys=new WeakMap,Pn=Symbol(""),Js=Symbol("");function At(r,t,i){if(hn&&Sn){let o=Ys.get(r);o||Ys.set(r,o=new Map);let n=o.get(i);n||o.set(i,n=Zl(()=>o.delete(i))),Yl(Sn,n)}}function Jt(r,t,i,o,n,s){const e=Ys.get(r);if(!e)return;let l=[];if(t==="clear")l=[...e.values()];else if(i==="length"&&hr(r)){const u=Number(o);e.forEach((d,y)=>{(y==="length"||!An(y)&&y>=u)&&l.push(d)})}else switch(i!==void 0&&l.push(e.get(i)),t){case"add":hr(r)?Eo(i)&&l.push(e.get("length")):(l.push(e.get(Pn)),Ln(r)&&l.push(e.get(Js)));break;case"delete":hr(r)||(l.push(e.get(Pn)),Ln(r)&&l.push(e.get(Js)));break;case"set":Ln(r)&&l.push(e.get(Pn));break}Po();for(const u of l)u&&Jl(u,4);Fo()}const yc=_o("__proto__,__v_isRef,__isVue"),Ql=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(An)),Pa=$c();function $c(){const r={};return["includes","indexOf","lastIndexOf"].forEach(t=>{r[t]=function(...i){const o=Dr(this);for(let s=0,e=this.length;s{r[t]=function(...i){xn(),Po();const o=Dr(this)[t].apply(this,i);return Fo(),wn(),o}}),r}function Ac(r){An(r)||(r=String(r));const t=Dr(this);return At(t,"has",r),t.hasOwnProperty(r)}class ef{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,o){const n=this._isReadonly,s=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return s;if(i==="__v_raw")return o===(n?s?Rc:sf:s?nf:tf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const e=hr(t);if(!n){if(e&&Fr(Pa,i))return Reflect.get(Pa,i,o);if(i==="hasOwnProperty")return Ac}const l=Reflect.get(t,i,o);return(An(i)?Ql.has(i):yc(i))||(n||At(t,"get",i),s)?l:xt(l)?e&&Eo(i)?l:l.value:Yr(l)?n?of(l):To(l):l}}class rf extends ef{constructor(t=!1){super(!1,t)}set(t,i,o,n){let s=t[i];if(!this._isShallow){const u=ni(s);if(!Gi(o)&&!ni(o)&&(s=Dr(s),o=Dr(o)),!hr(t)&&xt(s)&&!xt(o))return u?!1:(s.value=o,!0)}const e=hr(t)&&Eo(i)?Number(i)r,ts=r=>Reflect.getPrototypeOf(r);function _i(r,t,i=!1,o=!1){r=r.__v_raw;const n=Dr(r),s=Dr(t);i||(bn(t,s)&&At(n,"get",t),At(n,"get",s));const{has:e}=ts(n),l=o?Oo:i?Lo:ii;if(e.call(n,t))return l(r.get(t));if(e.call(n,s))return l(r.get(s));r!==n&&r.get(t)}function ki(r,t=!1){const i=this.__v_raw,o=Dr(i),n=Dr(r);return t||(bn(r,n)&&At(o,"has",r),At(o,"has",n)),r===n?i.has(r):i.has(r)||i.has(n)}function Ci(r,t=!1){return r=r.__v_raw,!t&&At(Dr(r),"iterate",Pn),Reflect.get(r,"size",r)}function Fa(r){r=Dr(r);const t=Dr(this);return ts(t).has.call(t,r)||(t.add(r),Jt(t,"add",r,r)),this}function Oa(r,t){t=Dr(t);const i=Dr(this),{has:o,get:n}=ts(i);let s=o.call(i,r);s||(r=Dr(r),s=o.call(i,r));const e=n.call(i,r);return i.set(r,t),s?bn(t,e)&&Jt(i,"set",r,t):Jt(i,"add",r,t),this}function Ra(r){const t=Dr(this),{has:i,get:o}=ts(t);let n=i.call(t,r);n||(r=Dr(r),n=i.call(t,r)),o&&o.call(t,r);const s=t.delete(r);return n&&Jt(t,"delete",r,void 0),s}function Ta(){const r=Dr(this),t=r.size!==0,i=r.clear();return t&&Jt(r,"clear",void 0,void 0),i}function Ei(r,t){return function(o,n){const s=this,e=s.__v_raw,l=Dr(e),u=t?Oo:r?Lo:ii;return!r&&At(l,"iterate",Pn),e.forEach((d,y)=>o.call(n,u(d),u(y),s))}}function Ii(r,t,i){return function(...o){const n=this.__v_raw,s=Dr(n),e=Ln(s),l=r==="entries"||r===Symbol.iterator&&e,u=r==="keys"&&e,d=n[r](...o),y=i?Oo:t?Lo:ii;return!t&&At(s,"iterate",u?Js:Pn),{next(){const{value:T,done:K}=d.next();return K?{value:T,done:K}:{value:l?[y(T[0]),y(T[1])]:y(T),done:K}},[Symbol.iterator](){return this}}}}function un(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function Cc(){const r={get(s){return _i(this,s)},get size(){return Ci(this)},has:ki,add:Fa,set:Oa,delete:Ra,clear:Ta,forEach:Ei(!1,!1)},t={get(s){return _i(this,s,!1,!0)},get size(){return Ci(this)},has:ki,add:Fa,set:Oa,delete:Ra,clear:Ta,forEach:Ei(!1,!0)},i={get(s){return _i(this,s,!0)},get size(){return Ci(this,!0)},has(s){return ki.call(this,s,!0)},add:un("add"),set:un("set"),delete:un("delete"),clear:un("clear"),forEach:Ei(!0,!1)},o={get(s){return _i(this,s,!0,!0)},get size(){return Ci(this,!0)},has(s){return ki.call(this,s,!0)},add:un("add"),set:un("set"),delete:un("delete"),clear:un("clear"),forEach:Ei(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=Ii(s,!1,!1),i[s]=Ii(s,!0,!1),t[s]=Ii(s,!1,!0),o[s]=Ii(s,!0,!0)}),[r,i,t,o]}const[Ec,Ic,Mc,Sc]=Cc();function Ro(r,t){const i=t?r?Sc:Mc:r?Ic:Ec;return(o,n,s)=>n==="__v_isReactive"?!r:n==="__v_isReadonly"?r:n==="__v_raw"?o:Reflect.get(Fr(i,n)&&n in o?i:o,n,s)}const Pc={get:Ro(!1,!1)},Fc={get:Ro(!1,!0)},Oc={get:Ro(!0,!1)};const tf=new WeakMap,nf=new WeakMap,sf=new WeakMap,Rc=new WeakMap;function Tc(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Dc(r){return r.__v_skip||!Object.isExtensible(r)?0:Tc(oc(r))}function To(r){return ni(r)?r:Do(r,!1,wc,Pc,tf)}function Lc(r){return Do(r,!1,kc,Fc,nf)}function of(r){return Do(r,!0,_c,Oc,sf)}function Do(r,t,i,o,n){if(!Yr(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const s=n.get(r);if(s)return s;const e=Dc(r);if(e===0)return r;const l=new Proxy(r,e===2?o:i);return n.set(r,l),l}function Zn(r){return ni(r)?Zn(r.__v_raw):!!(r&&r.__v_isReactive)}function ni(r){return!!(r&&r.__v_isReadonly)}function Gi(r){return!!(r&&r.__v_isShallow)}function af(r){return r?!!r.__v_raw:!1}function Dr(r){const t=r&&r.__v_raw;return t?Dr(t):r}function Bc(r){return Object.isExtensible(r)&&ql(r,"__v_skip",!0),r}const ii=r=>Yr(r)?To(r):r,Lo=r=>Yr(r)?of(r):r;class lf{constructor(t,i,o,n){this.getter=t,this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new So(()=>t(this._value),()=>Ri(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=o}get value(){const t=Dr(this);return(!t._cacheable||t.effect.dirty)&&bn(t._value,t._value=t.effect.run())&&Ri(t,4),ff(t),t.effect._dirtyLevel>=2&&Ri(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Nc(r,t,i=!1){let o,n;const s=xr(r);return s?(o=r,n=Mt):(o=r.get,n=r.set),new lf(o,n,s||!n,i)}function ff(r){var t;hn&&Sn&&(r=Dr(r),Yl(Sn,(t=r.dep)!=null?t:r.dep=Zl(()=>r.dep=void 0,r instanceof lf?r:void 0)))}function Ri(r,t=4,i,o){r=Dr(r);const n=r.dep;n&&Jl(n,t)}function xt(r){return!!(r&&r.__v_isRef===!0)}function jc(r){return zc(r,!1)}function zc(r,t){return xt(r)?r:new qc(r,t)}class qc{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:Dr(t),this._value=i?t:ii(t)}get value(){return ff(this),this._value}set value(t){const i=this.__v_isShallow||Gi(t)||ni(t);t=i?t:Dr(t),bn(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=i?t:ii(t),Ri(this,4))}}function Wc(r){return xt(r)?r.value:r}const Gc={get:(r,t,i)=>Wc(Reflect.get(r,t,i)),set:(r,t,i,o)=>{const n=r[t];return xt(n)&&!xt(i)?(n.value=i,!0):Reflect.set(r,t,i,o)}};function uf(r){return Zn(r)?r:new Proxy(r,Gc)}/** +* @vue/runtime-core v3.4.31 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function dn(r,t,i,o){try{return o?r(...o):r()}catch(n){ns(n,t,i)}}function Nt(r,t,i,o){if(xr(r)){const n=dn(r,t,i,o);return n&&Bl(n)&&n.catch(s=>{ns(s,t,i)}),n}if(hr(r)){const n=[];for(let s=0;s>>1,n=ct[o],s=oi(n);sHt&&ct.splice(t,1)}function Xc(r){hr(r)?Bn.push(...r):(!cn||!cn.includes(r,r.allowRecurse?Mn+1:Mn))&&Bn.push(r),gf()}function Da(r,t,i=si?Ht+1:0){for(;ioi(i)-oi(o));if(Bn.length=0,cn){cn.push(...t);return}for(cn=t,Mn=0;Mnr.id==null?1/0:r.id,Yc=(r,t)=>{const i=oi(r)-oi(t);if(i===0){if(r.pre&&!t.pre)return-1;if(t.pre&&!r.pre)return 1}return i};function hf(r){Zs=!1,si=!0,ct.sort(Yc);try{for(Ht=0;Htot(v)?v.trim():v)),T&&(n=i.map(Hs))}let l,u=o[l=Cs(t)]||o[l=Cs(Nn(t))];!u&&s&&(u=o[l=Cs(qn(t))]),u&&Nt(u,r,6,n);const d=o[l+"Once"];if(d){if(!r.emitted)r.emitted={};else if(r.emitted[l])return;r.emitted[l]=!0,Nt(d,r,6,n)}}function df(r,t,i=!1){const o=t.emitsCache,n=o.get(r);if(n!==void 0)return n;const s=r.emits;let e={},l=!1;if(!xr(r)){const u=d=>{const y=df(d,t,!0);y&&(l=!0,lt(e,y))};!i&&t.mixins.length&&t.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}return!s&&!l?(Yr(r)&&o.set(r,null),null):(hr(s)?s.forEach(u=>e[u]=null):lt(e,s),Yr(r)&&o.set(r,e),e)}function is(r,t){return!r||!Qi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fr(r,t[0].toLowerCase()+t.slice(1))||Fr(r,qn(t))||Fr(r,t))}let St=null,ss=null;function Ui(r){const t=St;return St=r,ss=r&&r.type.__scopeId||null,t}function Zc(r){ss=r}function Qc(){ss=null}function eg(r,t=St,i){if(!t||r._n)return r;const o=(...n)=>{o._d&&Ha(-1);const s=Ui(t);let e;try{e=r(...n)}finally{Ui(s),o._d&&Ha(1)}return e};return o._n=!0,o._c=!0,o._d=!0,o}function Is(r){const{type:t,vnode:i,proxy:o,withProxy:n,propsOptions:[s],slots:e,attrs:l,emit:u,render:d,renderCache:y,props:T,data:K,setupState:v,ctx:b,inheritAttrs:P}=r,fe=Ui(r);let Fe,ze;try{if(i.shapeFlag&4){const He=n||o,qe=He;Fe=Vt(d.call(qe,He,y,T,v,K,b)),ze=l}else{const He=t;Fe=Vt(He.length>1?He(T,{attrs:l,slots:e,emit:u}):He(T,null)),ze=t.props?l:rg(l)}}catch(He){ri.length=0,ns(He,r,1),Fe=mn(ai)}let ce=Fe;if(ze&&P!==!1){const He=Object.keys(ze),{shapeFlag:qe}=ce;He.length&&qe&7&&(s&&He.some(ko)&&(ze=tg(ze,s)),ce=jn(ce,ze,!1,!0))}return i.dirs&&(ce=jn(ce,null,!1,!0),ce.dirs=ce.dirs?ce.dirs.concat(i.dirs):i.dirs),i.transition&&(ce.transition=i.transition),Fe=ce,Ui(fe),Fe}const rg=r=>{let t;for(const i in r)(i==="class"||i==="style"||Qi(i))&&((t||(t={}))[i]=r[i]);return t},tg=(r,t)=>{const i={};for(const o in r)(!ko(o)||!(o.slice(9)in t))&&(i[o]=r[o]);return i};function ng(r,t,i){const{props:o,children:n,component:s}=r,{props:e,children:l,patchFlag:u}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&u>=0){if(u&1024)return!0;if(u&16)return o?La(o,e,d):!!e;if(u&8){const y=t.dynamicProps;for(let T=0;Tr.__isSuspense;function ag(r,t){t&&t.pendingBranch?hr(r)?t.effects.push(...r):t.effects.push(r):Xc(r)}function os(r,t,i=dt,o=!1){if(i){const n=i[r]||(i[r]=[]),s=t.__weh||(t.__weh=(...e)=>{xn();const l=ui(i),u=Nt(t,i,r,e);return l(),wn(),u});return o?n.unshift(s):n.push(s),s}}const Zt=r=>(t,i=dt)=>{(!ls||r==="sp")&&os(r,(...o)=>t(...o),i)},lg=Zt("bm"),fg=Zt("m"),ug=Zt("bu"),cg=Zt("u"),gg=Zt("bum"),mf=Zt("um"),pg=Zt("sp"),hg=Zt("rtg"),dg=Zt("rtc");function mg(r,t=dt){os("ec",r,t)}function vg(r,t){if(St===null)return r;const i=fs(St),o=r.dirs||(r.dirs=[]);for(let n=0;n!!r.type.__asyncLoader,Qs=r=>r?Tf(r)?fs(r):Qs(r.parent):null,Qn=lt(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>Qs(r.parent),$root:r=>Qs(r.root),$emit:r=>r.emit,$options:r=>jo(r),$forceUpdate:r=>r.f||(r.f=()=>{r.effect.dirty=!0,No(r.update)}),$nextTick:r=>r.n||(r.n=Vc.bind(r.proxy)),$watch:r=>Bg.bind(r)}),Ms=(r,t)=>r!==Hr&&!r.__isScriptSetup&&Fr(r,t),bg={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:o,data:n,props:s,accessCache:e,type:l,appContext:u}=r;let d;if(t[0]!=="$"){const v=e[t];if(v!==void 0)switch(v){case 1:return o[t];case 2:return n[t];case 4:return i[t];case 3:return s[t]}else{if(Ms(o,t))return e[t]=1,o[t];if(n!==Hr&&Fr(n,t))return e[t]=2,n[t];if((d=r.propsOptions[0])&&Fr(d,t))return e[t]=3,s[t];if(i!==Hr&&Fr(i,t))return e[t]=4,i[t];eo&&(e[t]=0)}}const y=Qn[t];let T,K;if(y)return t==="$attrs"&&At(r.attrs,"get",""),y(r);if((T=l.__cssModules)&&(T=T[t]))return T;if(i!==Hr&&Fr(i,t))return e[t]=4,i[t];if(K=u.config.globalProperties,Fr(K,t))return K[t]},set({_:r},t,i){const{data:o,setupState:n,ctx:s}=r;return Ms(n,t)?(n[t]=i,!0):o!==Hr&&Fr(o,t)?(o[t]=i,!0):Fr(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(s[t]=i,!0)},has({_:{data:r,setupState:t,accessCache:i,ctx:o,appContext:n,propsOptions:s}},e){let l;return!!i[e]||r!==Hr&&Fr(r,e)||Ms(t,e)||(l=s[0])&&Fr(l,e)||Fr(o,e)||Fr(Qn,e)||Fr(n.config.globalProperties,e)},defineProperty(r,t,i){return i.get!=null?r._.accessCache[t]=0:Fr(i,"value")&&this.set(r,t,i.value,null),Reflect.defineProperty(r,t,i)}};function Ba(r){return hr(r)?r.reduce((t,i)=>(t[i]=null,t),{}):r}let eo=!0;function yg(r){const t=jo(r),i=r.proxy,o=r.ctx;eo=!1,t.beforeCreate&&Na(t.beforeCreate,r,"bc");const{data:n,computed:s,methods:e,watch:l,provide:u,inject:d,created:y,beforeMount:T,mounted:K,beforeUpdate:v,updated:b,activated:P,deactivated:fe,beforeDestroy:Fe,beforeUnmount:ze,destroyed:ce,unmounted:He,render:qe,renderTracked:de,renderTriggered:Oe,errorCaptured:We,serverPrefetch:Ce,expose:nr,inheritAttrs:dr,components:wr,directives:ve,filters:Or}=t;if(d&&$g(d,o,null),e)for(const Ye in e){const Je=e[Ye];xr(Je)&&(o[Ye]=Je.bind(i))}if(n){const Ye=n.call(i,i);Yr(Ye)&&(r.data=To(Ye))}if(eo=!0,s)for(const Ye in s){const Je=s[Ye],Pr=xr(Je)?Je.bind(i,i):xr(Je.get)?Je.get.bind(i,i):Mt,vr=!xr(Je)&&xr(Je.set)?Je.set.bind(i):Mt,me=so({get:Pr,set:vr});Object.defineProperty(o,Ye,{enumerable:!0,configurable:!0,get:()=>me.value,set:Se=>me.value=Se})}if(l)for(const Ye in l)vf(l[Ye],o,i,Ye);if(u){const Ye=xr(u)?u.call(i):u;Reflect.ownKeys(Ye).forEach(Je=>{Cg(Je,Ye[Je])})}y&&Na(y,r,"c");function ye(Ye,Je){hr(Je)?Je.forEach(Pr=>Ye(Pr.bind(i))):Je&&Ye(Je.bind(i))}if(ye(lg,T),ye(fg,K),ye(ug,v),ye(cg,b),ye(Ng,P),ye(jg,fe),ye(mg,We),ye(dg,de),ye(hg,Oe),ye(gg,ze),ye(mf,He),ye(pg,Ce),hr(nr))if(nr.length){const Ye=r.exposed||(r.exposed={});nr.forEach(Je=>{Object.defineProperty(Ye,Je,{get:()=>i[Je],set:Pr=>i[Je]=Pr})})}else r.exposed||(r.exposed={});qe&&r.render===Mt&&(r.render=qe),dr!=null&&(r.inheritAttrs=dr),wr&&(r.components=wr),ve&&(r.directives=ve)}function $g(r,t,i=Mt){hr(r)&&(r=ro(r));for(const o in r){const n=r[o];let s;Yr(n)?"default"in n?s=Di(n.from||o,n.default,!0):s=Di(n.from||o):s=Di(n),xt(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[o]=s}}function Na(r,t,i){Nt(hr(r)?r.map(o=>o.bind(t.proxy)):r.bind(t.proxy),t,i)}function vf(r,t,i,o){const n=o.includes(".")?Sf(i,o):()=>i[o];if(ot(r)){const s=t[r];xr(s)&&Ps(n,s)}else if(xr(r))Ps(n,r.bind(i));else if(Yr(r))if(hr(r))r.forEach(s=>vf(s,t,i,o));else{const s=xr(r.handler)?r.handler.bind(i):t[r.handler];xr(s)&&Ps(n,s,r)}}function jo(r){const t=r.type,{mixins:i,extends:o}=t,{mixins:n,optionsCache:s,config:{optionMergeStrategies:e}}=r.appContext,l=s.get(t);let u;return l?u=l:!n.length&&!i&&!o?u=t:(u={},n.length&&n.forEach(d=>Vi(u,d,e,!0)),Vi(u,t,e)),Yr(t)&&s.set(t,u),u}function Vi(r,t,i,o=!1){const{mixins:n,extends:s}=t;s&&Vi(r,s,i,!0),n&&n.forEach(e=>Vi(r,e,i,!0));for(const e in t)if(!(o&&e==="expose")){const l=Ag[e]||i&&i[e];r[e]=l?l(r[e],t[e]):t[e]}return r}const Ag={data:ja,props:za,emits:za,methods:Xn,computed:Xn,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:Xn,directives:Xn,watch:wg,provide:ja,inject:xg};function ja(r,t){return t?r?function(){return lt(xr(r)?r.call(this,this):r,xr(t)?t.call(this,this):t)}:t:r}function xg(r,t){return Xn(ro(r),ro(t))}function ro(r){if(hr(r)){const t={};for(let i=0;i1)return i&&xr(t)?t.call(o&&o.proxy):t}}const yf={},$f=()=>Object.create(yf),Af=r=>Object.getPrototypeOf(r)===yf;function Eg(r,t,i,o=!1){const n={},s=$f();r.propsDefaults=Object.create(null),xf(r,t,n,s);for(const e in r.propsOptions[0])e in n||(n[e]=void 0);i?r.props=o?n:Lc(n):r.type.props?r.props=n:r.props=s,r.attrs=s}function Ig(r,t,i,o){const{props:n,attrs:s,vnode:{patchFlag:e}}=r,l=Dr(n),[u]=r.propsOptions;let d=!1;if((o||e>0)&&!(e&16)){if(e&8){const y=r.vnode.dynamicProps;for(let T=0;T{u=!0;const[K,v]=wf(T,t,!0);lt(e,K),v&&l.push(...v)};!i&&t.mixins.length&&t.mixins.forEach(y),r.extends&&y(r.extends),r.mixins&&r.mixins.forEach(y)}if(!s&&!u)return Yr(r)&&o.set(r,Dn),Dn;if(hr(s))for(let y=0;y-1,v[1]=P<0||b-1||Fr(v,"default"))&&l.push(T)}}}const d=[e,l];return Yr(r)&&o.set(r,d),d}function qa(r){return r[0]!=="$"&&!Jn(r)}function Wa(r){return r===null?"null":typeof r=="function"?r.name||"":typeof r=="object"&&r.constructor&&r.constructor.name||""}function Ga(r,t){return Wa(r)===Wa(t)}function Ua(r,t){return hr(t)?t.findIndex(i=>Ga(i,r)):xr(t)&&Ga(t,r)?0:-1}const _f=r=>r[0]==="_"||r==="$stable",zo=r=>hr(r)?r.map(Vt):[Vt(r)],Mg=(r,t,i)=>{if(t._n)return t;const o=eg((...n)=>zo(t(...n)),i);return o._c=!1,o},kf=(r,t,i)=>{const o=r._ctx;for(const n in r){if(_f(n))continue;const s=r[n];if(xr(s))t[n]=Mg(n,s,o);else if(s!=null){const e=zo(s);t[n]=()=>e}}},Cf=(r,t)=>{const i=zo(t);r.slots.default=()=>i},Sg=(r,t)=>{const i=r.slots=$f();if(r.vnode.shapeFlag&32){const o=t._;o?(lt(i,t),ql(i,"_",o,!0)):kf(t,i)}else t&&Cf(r,t)},Pg=(r,t,i)=>{const{vnode:o,slots:n}=r;let s=!0,e=Hr;if(o.shapeFlag&32){const l=t._;l?i&&l===1?s=!1:(lt(n,t),!i&&l===1&&delete n._):(s=!t.$stable,kf(t,n)),e=t}else t&&(Cf(r,t),e={default:1});if(s)for(const l in n)!_f(l)&&e[l]==null&&delete n[l]};function no(r,t,i,o,n=!1){if(hr(r)){r.forEach((K,v)=>no(K,t&&(hr(t)?t[v]:t),i,o,n));return}if(Ti(o)&&!n)return;const s=o.shapeFlag&4?fs(o.component):o.el,e=n?null:s,{i:l,r:u}=r,d=t&&t.r,y=l.refs===Hr?l.refs={}:l.refs,T=l.setupState;if(d!=null&&d!==u&&(ot(d)?(y[d]=null,Fr(T,d)&&(T[d]=null)):xt(d)&&(d.value=null)),xr(u))dn(u,l,12,[e,y]);else{const K=ot(u),v=xt(u);if(K||v){const b=()=>{if(r.f){const P=K?Fr(T,u)?T[u]:y[u]:u.value;n?hr(P)&&Co(P,s):hr(P)?P.includes(s)||P.push(s):K?(y[u]=[s],Fr(T,u)&&(T[u]=y[u])):(u.value=[s],r.k&&(y[r.k]=u.value))}else K?(y[u]=e,Fr(T,u)&&(T[u]=e)):v&&(u.value=e,r.k&&(y[r.k]=e))};e?(b.id=-1,yt(b,i)):b()}}}const yt=ag;function Fg(r){return Og(r)}function Og(r,t){const i=Wl();i.__VUE__=!0;const{insert:o,remove:n,patchProp:s,createElement:e,createText:l,createComment:u,setText:d,setElementText:y,parentNode:T,nextSibling:K,setScopeId:v=Mt,insertStaticContent:b}=r,P=(O,H,se,k=null,q=null,Y=null,ue=void 0,ge=null,z=!!H.dynamicChildren)=>{if(O===H)return;O&&!Vn(O,H)&&(k=or(O),Se(O,q,Y,!0),O=null),H.patchFlag===-2&&(z=!1,H.dynamicChildren=null);const{type:he,ref:Ie,shapeFlag:R}=H;switch(he){case as:fe(O,H,se,k);break;case ai:Fe(O,H,se,k);break;case Li:O==null&&ze(H,se,k,ue);break;case Yt:wr(O,H,se,k,q,Y,ue,ge,z);break;default:R&1?qe(O,H,se,k,q,Y,ue,ge,z):R&6?ve(O,H,se,k,q,Y,ue,ge,z):(R&64||R&128)&&he.process(O,H,se,k,q,Y,ue,ge,z,Nr)}Ie!=null&&q&&no(Ie,O&&O.ref,Y,H||O,!H)},fe=(O,H,se,k)=>{if(O==null)o(H.el=l(H.children),se,k);else{const q=H.el=O.el;H.children!==O.children&&d(q,H.children)}},Fe=(O,H,se,k)=>{O==null?o(H.el=u(H.children||""),se,k):H.el=O.el},ze=(O,H,se,k)=>{[O.el,O.anchor]=b(O.children,H,se,k,O.el,O.anchor)},ce=({el:O,anchor:H},se,k)=>{let q;for(;O&&O!==H;)q=K(O),o(O,se,k),O=q;o(H,se,k)},He=({el:O,anchor:H})=>{let se;for(;O&&O!==H;)se=K(O),n(O),O=se;n(H)},qe=(O,H,se,k,q,Y,ue,ge,z)=>{H.type==="svg"?ue="svg":H.type==="math"&&(ue="mathml"),O==null?de(H,se,k,q,Y,ue,ge,z):Ce(O,H,q,Y,ue,ge,z)},de=(O,H,se,k,q,Y,ue,ge)=>{let z,he;const{props:Ie,shapeFlag:R,transition:F,dirs:I}=O;if(z=O.el=e(O.type,Y,Ie&&Ie.is,Ie),R&8?y(z,O.children):R&16&&We(O.children,z,null,k,q,Ss(O,Y),ue,ge),I&&En(O,null,k,"created"),Oe(z,O,O.scopeId,ue,k),Ie){for(const Z in Ie)Z!=="value"&&!Jn(Z)&&s(z,Z,null,Ie[Z],Y,O.children,k,q,pr);"value"in Ie&&s(z,"value",null,Ie.value,Y),(he=Ie.onVnodeBeforeMount)&&Gt(he,k,O)}I&&En(O,null,k,"beforeMount");const Le=Rg(q,F);Le&&F.beforeEnter(z),o(z,H,se),((he=Ie&&Ie.onVnodeMounted)||Le||I)&&yt(()=>{he&&Gt(he,k,O),Le&&F.enter(z),I&&En(O,null,k,"mounted")},q)},Oe=(O,H,se,k,q)=>{if(se&&v(O,se),k)for(let Y=0;Y{for(let he=z;he{const ge=H.el=O.el;let{patchFlag:z,dynamicChildren:he,dirs:Ie}=H;z|=O.patchFlag&16;const R=O.props||Hr,F=H.props||Hr;let I;if(se&&In(se,!1),(I=F.onVnodeBeforeUpdate)&&Gt(I,se,H,O),Ie&&En(H,O,se,"beforeUpdate"),se&&In(se,!0),he?nr(O.dynamicChildren,he,ge,se,k,Ss(H,q),Y):ue||Je(O,H,ge,null,se,k,Ss(H,q),Y,!1),z>0){if(z&16)dr(ge,H,R,F,se,k,q);else if(z&2&&R.class!==F.class&&s(ge,"class",null,F.class,q),z&4&&s(ge,"style",R.style,F.style,q),z&8){const Le=H.dynamicProps;for(let Z=0;Z{I&&Gt(I,se,H,O),Ie&&En(H,O,se,"updated")},k)},nr=(O,H,se,k,q,Y,ue)=>{for(let ge=0;ge{if(se!==k){if(se!==Hr)for(const ge in se)!Jn(ge)&&!(ge in k)&&s(O,ge,se[ge],null,ue,H.children,q,Y,pr);for(const ge in k){if(Jn(ge))continue;const z=k[ge],he=se[ge];z!==he&&ge!=="value"&&s(O,ge,he,z,ue,H.children,q,Y,pr)}"value"in k&&s(O,"value",se.value,k.value,ue)}},wr=(O,H,se,k,q,Y,ue,ge,z)=>{const he=H.el=O?O.el:l(""),Ie=H.anchor=O?O.anchor:l("");let{patchFlag:R,dynamicChildren:F,slotScopeIds:I}=H;I&&(ge=ge?ge.concat(I):I),O==null?(o(he,se,k),o(Ie,se,k),We(H.children||[],se,Ie,q,Y,ue,ge,z)):R>0&&R&64&&F&&O.dynamicChildren?(nr(O.dynamicChildren,F,se,q,Y,ue,ge),(H.key!=null||q&&H===q.subTree)&&Ef(O,H,!0)):Je(O,H,se,Ie,q,Y,ue,ge,z)},ve=(O,H,se,k,q,Y,ue,ge,z)=>{H.slotScopeIds=ge,O==null?H.shapeFlag&512?q.ctx.activate(H,se,k,ue,z):Or(H,se,k,q,Y,ue,z):mr(O,H,z)},Or=(O,H,se,k,q,Y,ue)=>{const ge=O.component=ep(O,k,q);if(Pf(O)&&(ge.ctx.renderer=Nr),rp(ge),ge.asyncDep){if(q&&q.registerDep(ge,ye,ue),!O.el){const z=ge.subTree=mn(ai);Fe(null,z,H,se)}}else ye(ge,O,H,se,q,Y,ue)},mr=(O,H,se)=>{const k=H.component=O.component;if(ng(O,H,se))if(k.asyncDep&&!k.asyncResolved){Ye(k,H,se);return}else k.next=H,Kc(k.update),k.effect.dirty=!0,k.update();else H.el=O.el,k.vnode=H},ye=(O,H,se,k,q,Y,ue)=>{const ge=()=>{if(O.isMounted){let{next:Ie,bu:R,u:F,parent:I,vnode:Le}=O;{const pe=If(O);if(pe){Ie&&(Ie.el=Le.el,Ye(O,Ie,ue)),pe.asyncDep.then(()=>{O.isUnmounted||ge()});return}}let Z=Ie,_e;In(O,!1),Ie?(Ie.el=Le.el,Ye(O,Ie,ue)):Ie=Le,R&&Oi(R),(_e=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&Gt(_e,I,Ie,Le),In(O,!0);const Ue=Is(O),Be=O.subTree;O.subTree=Ue,P(Be,Ue,T(Be.el),or(Be),O,q,Y),Ie.el=Ue.el,Z===null&&ig(O,Ue.el),F&&yt(F,q),(_e=Ie.props&&Ie.props.onVnodeUpdated)&&yt(()=>Gt(_e,I,Ie,Le),q)}else{let Ie;const{el:R,props:F}=H,{bm:I,m:Le,parent:Z}=O,_e=Ti(H);if(In(O,!1),I&&Oi(I),!_e&&(Ie=F&&F.onVnodeBeforeMount)&&Gt(Ie,Z,H),In(O,!0),R&&Gr){const Ue=()=>{O.subTree=Is(O),Gr(R,O.subTree,O,q,null)};_e?H.type.__asyncLoader().then(()=>!O.isUnmounted&&Ue()):Ue()}else{const Ue=O.subTree=Is(O);P(null,Ue,se,k,O,q,Y),H.el=Ue.el}if(Le&&yt(Le,q),!_e&&(Ie=F&&F.onVnodeMounted)){const Ue=H;yt(()=>Gt(Ie,Z,Ue),q)}(H.shapeFlag&256||Z&&Ti(Z.vnode)&&Z.vnode.shapeFlag&256)&&O.a&&yt(O.a,q),O.isMounted=!0,H=se=k=null}},z=O.effect=new So(ge,Mt,()=>No(he),O.scope),he=O.update=()=>{z.dirty&&z.run()};he.id=O.uid,In(O,!0),he()},Ye=(O,H,se)=>{H.component=O;const k=O.vnode.props;O.vnode=H,O.next=null,Ig(O,H.props,k,se),Pg(O,H.children,se),xn(),Da(O),wn()},Je=(O,H,se,k,q,Y,ue,ge,z=!1)=>{const he=O&&O.children,Ie=O?O.shapeFlag:0,R=H.children,{patchFlag:F,shapeFlag:I}=H;if(F>0){if(F&128){vr(he,R,se,k,q,Y,ue,ge,z);return}else if(F&256){Pr(he,R,se,k,q,Y,ue,ge,z);return}}I&8?(Ie&16&&pr(he,q,Y),R!==he&&y(se,R)):Ie&16?I&16?vr(he,R,se,k,q,Y,ue,ge,z):pr(he,q,Y,!0):(Ie&8&&y(se,""),I&16&&We(R,se,k,q,Y,ue,ge,z))},Pr=(O,H,se,k,q,Y,ue,ge,z)=>{O=O||Dn,H=H||Dn;const he=O.length,Ie=H.length,R=Math.min(he,Ie);let F;for(F=0;FIe?pr(O,q,Y,!0,!1,R):We(H,se,k,q,Y,ue,ge,z,R)},vr=(O,H,se,k,q,Y,ue,ge,z)=>{let he=0;const Ie=H.length;let R=O.length-1,F=Ie-1;for(;he<=R&&he<=F;){const I=O[he],Le=H[he]=z?gn(H[he]):Vt(H[he]);if(Vn(I,Le))P(I,Le,se,null,q,Y,ue,ge,z);else break;he++}for(;he<=R&&he<=F;){const I=O[R],Le=H[F]=z?gn(H[F]):Vt(H[F]);if(Vn(I,Le))P(I,Le,se,null,q,Y,ue,ge,z);else break;R--,F--}if(he>R){if(he<=F){const I=F+1,Le=IF)for(;he<=R;)Se(O[he],q,Y,!0),he++;else{const I=he,Le=he,Z=new Map;for(he=Le;he<=F;he++){const ar=H[he]=z?gn(H[he]):Vt(H[he]);ar.key!=null&&Z.set(ar.key,he)}let _e,Ue=0;const Be=F-Le+1;let pe=!1,Ur=0;const br=new Array(Be);for(he=0;he=Be){Se(ar,q,Y,!0);continue}let E;if(ar.key!=null)E=Z.get(ar.key);else for(_e=Le;_e<=F;_e++)if(br[_e-Le]===0&&Vn(ar,H[_e])){E=_e;break}E===void 0?Se(ar,q,Y,!0):(br[E-Le]=he+1,E>=Ur?Ur=E:pe=!0,P(ar,H[E],se,null,q,Y,ue,ge,z),Ue++)}const Jr=pe?Tg(br):Dn;for(_e=Jr.length-1,he=Be-1;he>=0;he--){const ar=Le+he,E=H[ar],C=ar+1{const{el:Y,type:ue,transition:ge,children:z,shapeFlag:he}=O;if(he&6){me(O.component.subTree,H,se,k);return}if(he&128){O.suspense.move(H,se,k);return}if(he&64){ue.move(O,H,se,Nr);return}if(ue===Yt){o(Y,H,se);for(let R=0;Rge.enter(Y),q);else{const{leave:R,delayLeave:F,afterLeave:I}=ge,Le=()=>o(Y,H,se),Z=()=>{R(Y,()=>{Le(),I&&I()})};F?F(Y,Le,Z):Z()}else o(Y,H,se)},Se=(O,H,se,k=!1,q=!1)=>{const{type:Y,props:ue,ref:ge,children:z,dynamicChildren:he,shapeFlag:Ie,patchFlag:R,dirs:F,memoIndex:I}=O;if(R===-2&&(q=!1),ge!=null&&no(ge,null,se,O,!0),I!=null&&(H.renderCache[I]=void 0),Ie&256){H.ctx.deactivate(O);return}const Le=Ie&1&&F,Z=!Ti(O);let _e;if(Z&&(_e=ue&&ue.onVnodeBeforeUnmount)&&Gt(_e,H,O),Ie&6)Er(O.component,se,k);else{if(Ie&128){O.suspense.unmount(se,k);return}Le&&En(O,null,H,"beforeUnmount"),Ie&64?O.type.remove(O,H,se,Nr,k):he&&(Y!==Yt||R>0&&R&64)?pr(he,H,se,!1,!0):(Y===Yt&&R&384||!q&&Ie&16)&&pr(z,H,se),k&&U(O)}(Z&&(_e=ue&&ue.onVnodeUnmounted)||Le)&&yt(()=>{_e&&Gt(_e,H,O),Le&&En(O,null,H,"unmounted")},se)},U=O=>{const{type:H,el:se,anchor:k,transition:q}=O;if(H===Yt){Lr(se,k);return}if(H===Li){He(O);return}const Y=()=>{n(se),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(O.shapeFlag&1&&q&&!q.persisted){const{leave:ue,delayLeave:ge}=q,z=()=>ue(se,Y);ge?ge(O.el,Y,z):z()}else Y()},Lr=(O,H)=>{let se;for(;O!==H;)se=K(O),n(O),O=se;n(H)},Er=(O,H,se)=>{const{bum:k,scope:q,update:Y,subTree:ue,um:ge,m:z,a:he}=O;Va(z),Va(he),k&&Oi(k),q.stop(),Y&&(Y.active=!1,Se(ue,O,H,se)),ge&&yt(ge,H),yt(()=>{O.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},pr=(O,H,se,k=!1,q=!1,Y=0)=>{for(let ue=Y;ueO.shapeFlag&6?or(O.component.subTree):O.shapeFlag&128?O.suspense.next():K(O.anchor||O.el);let Br=!1;const Wr=(O,H,se)=>{O==null?H._vnode&&Se(H._vnode,null,null,!0):P(H._vnode||null,O,H,null,null,null,se),Br||(Br=!0,Da(),pf(),Br=!1),H._vnode=O},Nr={p:P,um:Se,m:me,r:U,mt:Or,mc:We,pc:Je,pbc:nr,n:or,o:r};let jr,Gr;return{render:Wr,hydrate:jr,createApp:kg(Wr,jr)}}function Ss({type:r,props:t},i){return i==="svg"&&r==="foreignObject"||i==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function In({effect:r,update:t},i){r.allowRecurse=t.allowRecurse=i}function Rg(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function Ef(r,t,i=!1){const o=r.children,n=t.children;if(hr(o)&&hr(n))for(let s=0;s>1,r[i[l]]0&&(t[o]=i[s-1]),i[s]=o)}}for(s=i.length,e=i[s-1];s-- >0;)i[s]=e,e=t[e];return i}function If(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:If(t)}function Va(r){if(r)for(let t=0;tDi(Dg),Mi={};function Ps(r,t,i){return Mf(r,t,i)}function Mf(r,t,{immediate:i,deep:o,flush:n,once:s,onTrack:e,onTrigger:l}=Hr){if(t&&s){const de=t;t=(...Oe)=>{de(...Oe),qe()}}const u=dt,d=de=>o===!0?de:pn(de,o===!1?1:void 0);let y,T=!1,K=!1;if(xt(r)?(y=()=>r.value,T=Gi(r)):Zn(r)?(y=()=>d(r),T=!0):hr(r)?(K=!0,T=r.some(de=>Zn(de)||Gi(de)),y=()=>r.map(de=>{if(xt(de))return de.value;if(Zn(de))return d(de);if(xr(de))return dn(de,u,2)})):xr(r)?t?y=()=>dn(r,u,2):y=()=>(v&&v(),Nt(r,u,3,[b])):y=Mt,t&&o){const de=y;y=()=>pn(de())}let v,b=de=>{v=ce.onStop=()=>{dn(de,u,4),v=ce.onStop=void 0}},P;if(ls)if(b=Mt,t?i&&Nt(t,u,3,[y(),K?[]:void 0,b]):y(),n==="sync"){const de=Lg();P=de.__watcherHandles||(de.__watcherHandles=[])}else return Mt;let fe=K?new Array(r.length).fill(Mi):Mi;const Fe=()=>{if(!(!ce.active||!ce.dirty))if(t){const de=ce.run();(o||T||(K?de.some((Oe,We)=>bn(Oe,fe[We])):bn(de,fe)))&&(v&&v(),Nt(t,u,3,[de,fe===Mi?void 0:K&&fe[0]===Mi?[]:fe,b]),fe=de)}else ce.run()};Fe.allowRecurse=!!t;let ze;n==="sync"?ze=Fe:n==="post"?ze=()=>yt(Fe,u&&u.suspense):(Fe.pre=!0,u&&(Fe.id=u.uid),ze=()=>No(Fe));const ce=new So(y,Mt,ze),He=vc(),qe=()=>{ce.stop(),He&&Co(He.effects,ce)};return t?i?Fe():fe=ce.run():n==="post"?yt(ce.run.bind(ce),u&&u.suspense):ce.run(),P&&P.push(qe),qe}function Bg(r,t,i){const o=this.proxy,n=ot(r)?r.includes(".")?Sf(o,r):()=>o[r]:r.bind(o,o);let s;xr(t)?s=t:(s=t.handler,i=t);const e=ui(this),l=Mf(n,s.bind(o),i);return e(),l}function Sf(r,t){const i=t.split(".");return()=>{let o=r;for(let n=0;n{pn(o,t,i)});else if(jl(r)){for(const o in r)pn(r[o],t,i);for(const o of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,o)&&pn(r[o],t,i)}return r}const Pf=r=>r.type.__isKeepAlive;function Ng(r,t){Ff(r,"a",t)}function jg(r,t){Ff(r,"da",t)}function Ff(r,t,i=dt){const o=r.__wdc||(r.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return r()});if(os(t,o,i),i){let n=i.parent;for(;n&&n.parent;)Pf(n.parent.vnode)&&zg(o,t,i,n),n=n.parent}}function zg(r,t,i,o){const n=os(t,r,o,!0);mf(()=>{Co(o[t],n)},i)}function Of(r,t){r.shapeFlag&6&&r.component?Of(r.component.subTree,t):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}const qg=r=>r.__isTeleport,Yt=Symbol.for("v-fgt"),as=Symbol.for("v-txt"),ai=Symbol.for("v-cmt"),Li=Symbol.for("v-stc"),ri=[];let Lt=null;function Wg(r=!1){ri.push(Lt=r?null:[])}function Gg(){ri.pop(),Lt=ri[ri.length-1]||null}let li=1;function Ha(r){li+=r}function Ug(r){return r.dynamicChildren=li>0?Lt||Dn:null,Gg(),li>0&&Lt&&Lt.push(r),r}function Vg(r,t,i,o,n,s){return Ug(et(r,t,i,o,n,s,!0))}function Hg(r){return r?r.__v_isVNode===!0:!1}function Vn(r,t){return r.type===t.type&&r.key===t.key}const Rf=({key:r})=>r??null,Bi=({ref:r,ref_key:t,ref_for:i})=>(typeof r=="number"&&(r=""+r),r!=null?ot(r)||xt(r)||xr(r)?{i:St,r,k:t,f:!!i}:r:null);function et(r,t=null,i=null,o=0,n=null,s=r===Yt?0:1,e=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&Rf(t),ref:t&&Bi(t),scopeId:ss,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:St};return l?(qo(u,i),s&128&&r.normalize(u)):i&&(u.shapeFlag|=ot(i)?8:16),li>0&&!e&&Lt&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&Lt.push(u),u}const mn=Kg;function Kg(r,t=null,i=null,o=0,n=null,s=!1){if((!r||r===sg)&&(r=ai),Hg(r)){const l=jn(r,t,!0);return i&&qo(l,i),li>0&&!s&&Lt&&(l.shapeFlag&6?Lt[Lt.indexOf(r)]=l:Lt.push(l)),l.patchFlag=-2,l}if(sp(r)&&(r=r.__vccOpts),t){t=Xg(t);let{class:l,style:u}=t;l&&!ot(l)&&(t.class=Mo(l)),Yr(u)&&(af(u)&&!hr(u)&&(u=lt({},u)),t.style=Io(u))}const e=ot(r)?1:og(r)?128:qg(r)?64:Yr(r)?4:xr(r)?2:0;return et(r,t,i,o,n,e,s,!0)}function Xg(r){return r?af(r)||Af(r)?lt({},r):r:null}function jn(r,t,i=!1,o=!1){const{props:n,ref:s,patchFlag:e,children:l,transition:u}=r,d=t?Jg(n||{},t):n,y={__v_isVNode:!0,__v_skip:!0,type:r.type,props:d,key:d&&Rf(d),ref:t&&t.ref?i&&s?hr(s)?s.concat(Bi(t)):[s,Bi(t)]:Bi(t):s,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:l,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==Yt?e===-1?16:e|16:e,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:u,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&jn(r.ssContent),ssFallback:r.ssFallback&&jn(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return u&&o&&Of(y,u.clone(y)),y}function Ni(r=" ",t=0){return mn(as,null,r,t)}function Yg(r,t){const i=mn(Li,null,r);return i.staticCount=t,i}function Vt(r){return r==null||typeof r=="boolean"?mn(ai):hr(r)?mn(Yt,null,r.slice()):typeof r=="object"?gn(r):mn(as,null,String(r))}function gn(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:jn(r)}function qo(r,t){let i=0;const{shapeFlag:o}=r;if(t==null)t=null;else if(hr(t))i=16;else if(typeof t=="object")if(o&65){const n=t.default;n&&(n._c&&(n._d=!1),qo(r,n()),n._c&&(n._d=!0));return}else{i=32;const n=t._;!n&&!Af(t)?t._ctx=St:n===3&&St&&(St.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else xr(t)?(t={default:t,_ctx:St},i=32):(t=String(t),o&64?(i=16,t=[Ni(t)]):i=8);r.children=t,r.shapeFlag|=i}function Jg(...r){const t={};for(let i=0;i{let n;return(n=r[i])||(n=r[i]=[]),n.push(o),s=>{n.length>1?n.forEach(e=>e(s)):n[0](s)}};Hi=t("__VUE_INSTANCE_SETTERS__",i=>dt=i),io=t("__VUE_SSR_SETTERS__",i=>ls=i)}const ui=r=>{const t=dt;return Hi(r),r.scope.on(),()=>{r.scope.off(),Hi(t)}},Ka=()=>{dt&&dt.scope.off(),Hi(null)};function Tf(r){return r.vnode.shapeFlag&4}let ls=!1;function rp(r,t=!1){t&&io(t);const{props:i,children:o}=r.vnode,n=Tf(r);Eg(r,i,n,t),Sg(r,o);const s=n?tp(r,t):void 0;return t&&io(!1),s}function tp(r,t){const i=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,bg);const{setup:o}=i;if(o){const n=r.setupContext=o.length>1?ip(r):null,s=ui(r);xn();const e=dn(o,r,0,[r.props,n]);if(wn(),s(),Bl(e)){if(e.then(Ka,Ka),t)return e.then(l=>{Xa(r,l,t)}).catch(l=>{ns(l,r,0)});r.asyncDep=e}else Xa(r,e,t)}else Df(r,t)}function Xa(r,t,i){xr(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:Yr(t)&&(r.setupState=uf(t)),Df(r,i)}let Ya;function Df(r,t,i){const o=r.type;if(!r.render){if(!t&&Ya&&!o.render){const n=o.template||jo(r).template;if(n){const{isCustomElement:s,compilerOptions:e}=r.appContext.config,{delimiters:l,compilerOptions:u}=o,d=lt(lt({isCustomElement:s,delimiters:l},e),u);o.render=Ya(n,d)}}r.render=o.render||Mt}{const n=ui(r);xn();try{yg(r)}finally{wn(),n()}}}const np={get(r,t){return At(r,"get",""),r[t]}};function ip(r){const t=i=>{r.exposed=i||{}};return{attrs:new Proxy(r.attrs,np),slots:r.slots,emit:r.emit,expose:t}}function fs(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(uf(Bc(r.exposed)),{get(t,i){if(i in t)return t[i];if(i in Qn)return Qn[i](r)},has(t,i){return i in t||i in Qn}})):r.proxy}function sp(r){return xr(r)&&"__vccOpts"in r}const so=(r,t)=>Nc(r,t,ls),op="3.4.31";/** +* @vue/runtime-dom v3.4.31 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const ap="http://www.w3.org/2000/svg",lp="http://www.w3.org/1998/Math/MathML",Xt=typeof document<"u"?document:null,Ja=Xt&&Xt.createElement("template"),fp={insert:(r,t,i)=>{t.insertBefore(r,i||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,i,o)=>{const n=t==="svg"?Xt.createElementNS(ap,r):t==="mathml"?Xt.createElementNS(lp,r):i?Xt.createElement(r,{is:i}):Xt.createElement(r);return r==="select"&&o&&o.multiple!=null&&n.setAttribute("multiple",o.multiple),n},createText:r=>Xt.createTextNode(r),createComment:r=>Xt.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Xt.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,i,o,n,s){const e=i?i.previousSibling:t.lastChild;if(n&&(n===s||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),i),!(n===s||!(n=n.nextSibling)););else{Ja.innerHTML=o==="svg"?`${r}`:o==="mathml"?`${r}`:r;const l=Ja.content;if(o==="svg"||o==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,i)}return[e?e.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},up=Symbol("_vtc");function cp(r,t,i){const o=r[up];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?r.removeAttribute("class"):i?r.setAttribute("class",t):r.className=t}const Za=Symbol("_vod"),gp=Symbol("_vsh"),pp=Symbol(""),hp=/(^|;)\s*display\s*:/;function dp(r,t,i){const o=r.style,n=ot(i);let s=!1;if(i&&!n){if(t)if(ot(t))for(const e of t.split(";")){const l=e.slice(0,e.indexOf(":")).trim();i[l]==null&&ji(o,l,"")}else for(const e in t)i[e]==null&&ji(o,e,"");for(const e in i)e==="display"&&(s=!0),ji(o,e,i[e])}else if(n){if(t!==i){const e=o[pp];e&&(i+=";"+e),o.cssText=i,s=hp.test(i)}}else t&&r.removeAttribute("style");Za in r&&(r[Za]=s?o.display:"",r[gp]&&(o.display="none"))}const Qa=/\s*!important$/;function ji(r,t,i){if(hr(i))i.forEach(o=>ji(r,t,o));else if(i==null&&(i=""),t.startsWith("--"))r.setProperty(t,i);else{const o=mp(r,t);Qa.test(i)?r.setProperty(qn(o),i.replace(Qa,""),"important"):r[o]=i}}const el=["Webkit","Moz","ms"],Fs={};function mp(r,t){const i=Fs[t];if(i)return i;let o=Nn(t);if(o!=="filter"&&o in r)return Fs[t]=o;o=zl(o);for(let n=0;nOs||(Ap.then(()=>Os=0),Os=Date.now());function wp(r,t){const i=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=i.attached)return;Nt(_p(o,i.value),t,5,[o])};return i.value=r,i.attached=xp(),i}function _p(r,t){if(hr(t)){const i=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0},t.map(o=>n=>!n._stopped&&o&&o(n))}else return t}const sl=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,kp=(r,t,i,o,n,s,e,l,u)=>{const d=n==="svg";t==="class"?cp(r,o,d):t==="style"?dp(r,i,o):Qi(t)?ko(t)||yp(r,t,i,o,e):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cp(r,t,o,d))?(vp(r,t,o,s,e,l,u),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&tl(r,t,o,d,e,t!=="value")):(t==="true-value"?r._trueValue=o:t==="false-value"&&(r._falseValue=o),tl(r,t,o,d))};function Cp(r,t,i,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in r&&sl(t)&&xr(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=r.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return sl(t)&&ot(i)?!1:t in r}const ol=r=>{const t=r.props["onUpdate:modelValue"]||!1;return hr(t)?i=>Oi(t,i):t};function Ep(r){r.target.composing=!0}function al(r){const t=r.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rs=Symbol("_assign"),Ip={created(r,{modifiers:{lazy:t,trim:i,number:o}},n){r[Rs]=ol(n);const s=o||n.props&&n.props.type==="number";On(r,t?"change":"input",e=>{if(e.target.composing)return;let l=r.value;i&&(l=l.trim()),s&&(l=Hs(l)),r[Rs](l)}),i&&On(r,"change",()=>{r.value=r.value.trim()}),t||(On(r,"compositionstart",Ep),On(r,"compositionend",al),On(r,"change",al))},mounted(r,{value:t}){r.value=t??""},beforeUpdate(r,{value:t,oldValue:i,modifiers:{lazy:o,trim:n,number:s}},e){if(r[Rs]=ol(e),r.composing)return;const l=(s||r.type==="number")&&!/^0\d/.test(r.value)?Hs(r.value):r.value,u=t??"";l!==u&&(document.activeElement===r&&r.type!=="range"&&(o&&t===i||n&&r.value.trim()===u)||(r.value=u))}},Mp=lt({patchProp:kp},fp);let ll;function Sp(){return ll||(ll=Fg(Mp))}const Pp=(...r)=>{const t=Sp().createApp(...r),{mount:i}=t;return t.mount=o=>{const n=Op(o);if(!n)return;const s=t._component;!xr(s)&&!s.render&&!s.template&&(s.template=n.innerHTML),n.innerHTML="";const e=i(n,!1,Fp(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),e},t};function Fp(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function Op(r){return ot(r)?document.querySelector(r):r}function fl(r){if(r)throw r}function Wo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */var Rp=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const Lf=Wo(Rp);var zi=Object.prototype.hasOwnProperty,Bf=Object.prototype.toString,ul=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,gl=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Bf.call(t)==="[object Array]"},pl=function(t){if(!t||Bf.call(t)!=="[object Object]")return!1;var i=zi.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&zi.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;var n;for(n in t);return typeof n>"u"||zi.call(t,n)},hl=function(t,i){ul&&i.name==="__proto__"?ul(t,i.name,{enumerable:!0,configurable:!0,value:i.newValue,writable:!0}):t[i.name]=i.newValue},dl=function(t,i){if(i==="__proto__")if(zi.call(t,i)){if(cl)return cl(t,i).value}else return;return t[i]},Tp=function r(){var t,i,o,n,s,e,l=arguments[0],u=1,d=arguments.length,y=!1;for(typeof l=="boolean"&&(y=l,l=arguments[1]||{},u=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});ue.length;let u;l&&e.push(n);try{u=r.apply(this,e)}catch(d){const y=d;if(l&&i)throw y;return n(y)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,n):u instanceof Error?n(u):s(u))}function n(e,...l){i||(i=!0,t(e,...l))}function s(e){n(null,e)}}function Bp(r){return!r||typeof r!="object"?"":"position"in r||"type"in r?vl(r.position):"start"in r||"end"in r?vl(r):"line"in r||"column"in r?ao(r):""}function ao(r){return bl(r&&r.line)+":"+bl(r&&r.column)}function vl(r){return ao(r&&r.start)+"-"+ao(r&&r.end)}function bl(r){return r&&typeof r=="number"?r:1}class Pt extends Error{constructor(t,i,o){const n=[null,null];let s={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof i=="string"&&(o=i,i=void 0),typeof o=="string"){const e=o.indexOf(":");e===-1?n[1]=o:(n[0]=o.slice(0,e),n[1]=o.slice(e+1))}i&&("type"in i||"position"in i?i.position&&(s=i.position):"start"in i||"end"in i?s=i:("line"in i||"column"in i)&&(s.start=i)),this.name=Bp(i)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=s.start.line,this.column=s.start.column,this.position=s,this.source=n[0],this.ruleId=n[1],this.file,this.actual,this.expected,this.url,this.note}}Pt.prototype.file="";Pt.prototype.name="";Pt.prototype.reason="";Pt.prototype.message="";Pt.prototype.stack="";Pt.prototype.fatal=null;Pt.prototype.column=null;Pt.prototype.line=null;Pt.prototype.source=null;Pt.prototype.ruleId=null;Pt.prototype.position=null;const Ut={basename:Np,dirname:jp,extname:zp,join:qp,sep:"/"};function Np(r,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ci(r);let i=0,o=-1,n=r.length,s;if(t===void 0||t.length===0||t.length>r.length){for(;n--;)if(r.charCodeAt(n)===47){if(s){i=n+1;break}}else o<0&&(s=!0,o=n+1);return o<0?"":r.slice(i,o)}if(t===r)return"";let e=-1,l=t.length-1;for(;n--;)if(r.charCodeAt(n)===47){if(s){i=n+1;break}}else e<0&&(s=!0,e=n+1),l>-1&&(r.charCodeAt(n)===t.charCodeAt(l--)?l<0&&(o=n):(l=-1,o=e));return i===o?o=e:o<0&&(o=r.length),r.slice(i,o)}function jp(r){if(ci(r),r.length===0)return".";let t=-1,i=r.length,o;for(;--i;)if(r.charCodeAt(i)===47){if(o){t=i;break}}else o||(o=!0);return t<0?r.charCodeAt(0)===47?"/":".":t===1&&r.charCodeAt(0)===47?"//":r.slice(0,t)}function zp(r){ci(r);let t=r.length,i=-1,o=0,n=-1,s=0,e;for(;t--;){const l=r.charCodeAt(t);if(l===47){if(e){o=t+1;break}continue}i<0&&(e=!0,i=t+1),l===46?n<0?n=t:s!==1&&(s=1):n>-1&&(s=-1)}return n<0||i<0||s===0||s===1&&n===i-1&&n===o+1?"":r.slice(n,i)}function qp(...r){let t=-1,i;for(;++t0&&r.charCodeAt(r.length-1)===47&&(i+="/"),t?"/"+i:i}function Gp(r,t){let i="",o=0,n=-1,s=0,e=-1,l,u;for(;++e<=r.length;){if(e2){if(u=i.lastIndexOf("/"),u!==i.length-1){u<0?(i="",o=0):(i=i.slice(0,u),o=i.length-1-i.lastIndexOf("/")),n=e,s=0;continue}}else if(i.length>0){i="",o=0,n=e,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+r.slice(n+1,e):i=r.slice(n+1,e),o=e-n-1;n=e,s=0}else l===46&&s>-1?s++:s=-1}return i}function ci(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}const Up={cwd:Vp};function Vp(){return"/"}function lo(r){return r!==null&&typeof r=="object"&&r.href&&r.origin}function Hp(r){if(typeof r=="string")r=new URL(r);else if(!lo(r)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+r+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(r.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Kp(r)}function Kp(r){if(r.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=r.pathname;let i=-1;for(;++i{if(de||!Oe||!We)qe(de);else{const Ce=s.stringify(Oe,We);Ce==null||(Qp(Ce)?We.value=Ce:We.result=Ce),qe(de,We)}});function qe(de,Oe){de||!Oe?ce(de):ze?ze(Oe):fe(null,Oe)}}}function b(P){let fe;s.freeze(),Bs("processSync",s.Parser),Ns("processSync",s.Compiler);const Fe=Hn(P);return s.process(Fe,ze),xl("processSync","process",fe),Fe;function ze(ce){fe=!0,fl(ce)}}}function $l(r,t){return typeof r=="function"&&r.prototype&&(Jp(r.prototype)||t in r.prototype)}function Jp(r){let t;for(t in r)if(Nf.call(r,t))return!0;return!1}function Bs(r,t){if(typeof t!="function")throw new TypeError("Cannot `"+r+"` without `Parser`")}function Ns(r,t){if(typeof t!="function")throw new TypeError("Cannot `"+r+"` without `Compiler`")}function js(r,t){if(t)throw new Error("Cannot call `"+r+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Al(r){if(!oo(r)||typeof r.type!="string")throw new TypeError("Expected node, got `"+r+"`")}function xl(r,t,i){if(!i)throw new Error("`"+r+"` finished async. Use `"+t+"` instead")}function Hn(r){return Zp(r)?r:new Xp(r)}function Zp(r){return!!(r&&typeof r=="object"&&"message"in r&&"messages"in r)}function Qp(r){return typeof r=="string"||Lf(r)}const e0={cref:{signature:"s m"},Cref:{signature:"s m"},crefrange:{signature:"s m m"},Crefrange:{signature:"s m m"},cpageref:{signature:"s m"},Cpageref:{signature:"s m"},ref:{signature:"m"},pageref:{signature:"m"},namecref:{signature:"m"},nameCref:{signature:"m"},lcnamecref:{signature:"m"},namecrefs:{signature:"m"},nameCrefs:{signature:"m"},lcnamecrefs:{signature:"m"},labelcref:{signature:"m"},labelcpageref:{signature:"m"},crefalias:{signature:"m m"},crefname:{signature:"m m m"},crefdefaultlabelformat:{signature:"m"},crefrangeconjunction:{signature:"m"}},r0={},zf={"*":{openMark:"",closeMark:""},"{":{openMark:"{",closeMark:"}"},"[":{openMark:"[",closeMark:"]"},"(":{openMark:"(",closeMark:")"},"<":{openMark:"<",closeMark:">"}},t0=new Set(Object.values(zf).map(r=>r.closeMark).filter(r=>r));function n0(r){const t=[];for(const i of r.split("")){if(t0.has(i))continue;const o=zf[i];if(o==null)throw new Error(`Unknown open/close mark type "${i}"`);t.push(o)}return t}function st(r,t){if(r==null)return{type:"argument",content:[],openMark:"",closeMark:""};if(typeof r=="string"&&(r=i0(r)),!Array.isArray(r)&&r.type==="argument")return r;let i=(t==null?void 0:t.openMark)??"{",o=(t==null?void 0:t.closeMark)??"}";if(t!=null&&t.braces){const n=n0(t.braces);n[0]&&(i=n[0].openMark,o=n[0].closeMark)}return Array.isArray(r)||(r=[r]),{type:"argument",content:r,openMark:i,closeMark:o}}function i0(r){return typeof r=="string"?{type:"string",content:r}:r}const Yn=Symbol("linebreak"),Fn="\\";function ht(r){if(typeof r=="string")return[r];if(Array.isArray(r))return[].concat(...r.map(o=>ht(o)));let t,i;switch(r.type){case"root":return ht(r.content);case"argument":return[r.openMark,...ht(r.content),r.closeMark];case"comment":let o=r.suffixParbreak?"":Yn,n="";return r.sameline&&r.leadingWhitespace&&(n=" "),r.sameline?[n,"%",...ht(r.content),o]:[Yn,"%",...ht(r.content),o];case"environment":case"mathenv":case"verbatim":let s=ht(r.env),e=[Fn+"begin{",...s,"}"],l=[Fn+"end{",...s,"}"];return t=r.args==null?[]:ht(r.args),[...e,...t,...ht(r.content),...l];case"displaymath":return[Fn+"[",...ht(r.content),Fn+"]"];case"group":return["{",...ht(r.content),"}"];case"inlinemath":return["$",...ht(r.content),"$"];case"macro":return t=r.args==null?[]:ht(r.args),i=r.escapeToken==null?Fn:r.escapeToken,[i,...ht(r.content),...t];case"parbreak":return[Yn,Yn];case"string":return[r.content];case"verb":return[Fn,r.env,r.escape,...ht(r.content),r.escape];case"whitespace":return[" "];default:return console.warn("Cannot find render for node ",r,`(of type ${typeof r})`),[""+r]}}function yn(r,t){return ht(r).map(o=>o===Yn?` +`:o).join("")}function s0(r){const t=Array.isArray(r)?r.length>0?typeof r[0]=="string"?Object.fromEntries(r.map(i=>{if(typeof i!="string")throw new Error("Wrong branch of map function");return[i,{}]})):Object.fromEntries(r.map(i=>{if(typeof i=="string")throw new Error("Wrong branch of map function");return i.escapeToken!=null?[i.content,{escapeToken:i.escapeToken}]:[i.content,{}]})):{}:r;return function(o){if(o==null||o.type!=="macro")return!1;const n=t[o.content];return n?typeof n=="object"&&"escapeToken"in n?n.escapeToken==null||n.escapeToken===o.escapeToken:!0:!1}}function o0(r){const t=Array.isArray(r)?Object.fromEntries(r.map(i=>[i,{}])):r;return function(o){if(!Ve.anyEnvironment(o))return!1;const n=yn(o.env);return!!t[n]}}const Ve={macro(r,t){return r==null?!1:r.type==="macro"&&(t==null||r.content===t)},anyMacro(r){return Ve.macro(r)},environment(r,t){return r==null?!1:(r.type==="environment"||r.type==="mathenv")&&(t==null||yn(r.env)===t)},anyEnvironment(r){return Ve.environment(r)},comment(r){return r==null?!1:r.type==="comment"},parbreak(r){return r==null?!1:r.type==="parbreak"},whitespace(r){return r==null?!1:r.type==="whitespace"},whitespaceLike(r){return r==null?!1:r.type==="whitespace"||r.type==="whitespace"&&r.leadingWhitespace===!0},string(r,t){return r==null?!1:r.type==="string"&&(t==null||r.content===t)},anyString(r){return Ve.string(r)},group(r){return r==null?!1:r.type==="group"},argument(r){return r==null?!1:r.type==="argument"},blankArgument(r){return Ve.argument(r)?r.openMark===""&&r.closeMark===""&&r.content.length===0:!1},math(r){return r==null?!1:r.type==="displaymath"||r.type==="inlinemath"},createMacroMatcher:s0,createEnvironmentMatcher:o0};function a0(r){const t={enter:[],leave:[]};if(Array.isArray(r))return t;if(Ve.math(r))return{enter:["content"],leave:[]};const i=r._renderInfo||{};if(i.inMathMode==null)return t;if(Ve.macro(r)){if(i.inMathMode===!0)return{enter:["args"],leave:[]};if(i.inMathMode===!1)return{enter:[],leave:["args"]}}return Ve.environment(r)?i.inMathMode===!0?{enter:["content"],leave:[]}:{enter:[],leave:["content"]}:t}const fo=Symbol("continue"),qf=Symbol("skip"),qi=Symbol("exit"),l0={inMathMode:!1,hasMathModeAncestor:!1};function $n(r,t,i){const{startingContext:o=l0,test:n=()=>!0,includeArrays:s=!1}=i||{};let e,l;typeof t=="function"?e=t:t&&typeof t=="object"&&(e=t.enter,l=t.leave),u(r,{key:void 0,index:void 0,parents:[],containingArray:void 0,context:{...o}});function u(d,{key:y,index:T,parents:K,context:v,containingArray:b}){const P=s?n(d,{key:y,index:T,parents:K,context:v,containingArray:b}):!Array.isArray(d)&&n(d,{key:y,index:T,parents:K,context:v,containingArray:b}),fe=e&&P?zs(e(d,{key:y,index:T,parents:K,context:v,containingArray:b})):[fo];if(fe[0]===qi)return fe;if(fe[0]===qf)return l&&P?zs(l(d,{key:y,index:T,parents:K,context:v,containingArray:b})):fe;if(Array.isArray(d))for(let Fe=0;Fe>-1&&Fe0&&i.sameline&&(i.sameline=!1)}return{trimmedStart:t}}function Uo(r){const{end:t}=Gf(r);r.splice(r.length-t,t);for(let i=r.length-1;i>=0;i--){const o=r[i];if(!Ve.comment(o))break;delete o.suffixParbreak,Ve.comment(o)&&o.leadingWhitespace&&!o.sameline&&(o.leadingWhitespace=!1)}return{trimmedEnd:t}}function Gf(r){let t=0,i=0;for(const o of r)if(Ve.whitespace(o)||Ve.parbreak(o))t++;else break;if(t===r.length)return{start:t,end:0};for(let o=r.length-1;o>=0;o--){const n=r[o];if(Ve.whitespace(n)||Ve.parbreak(n))i++;else break}return{start:t,end:i}}const f0=function(){return t=>{$n(t,i=>{if(!(Ve.math(i)||Ve.anyEnvironment(i)))return;let o=i.content[0];if(Ve.comment(o)&&o.sameline){o.suffixParbreak=!1,Uo(i.content);const{trimmedStart:n}=Wf(i.content.slice(1));i.content.splice(1,n)}else zn(i.content)})}},u0=function(){return t=>{zn(t.content)}};function c0(r,t=()=>!1,i){if(!Array.isArray(r))throw new Error(`Can only split an Array, not ${r}`);const{onlySplitOnFirstOccurrence:o=!1}={},n=[];for(let l=0;lr[l]),e=n.map((l,u)=>{const d=u===0?0:n[u-1]+1;return r.slice(d,l)});return e.push(r.slice(n[n.length-1]+1,r.length)),{segments:e,separators:s}}function g0(r,t){if(typeof t=="string"&&(t=[t]),!Array.isArray(t))throw new Error("Type coercion failed");const i=Ve.createMacroMatcher(t),{segments:o,separators:n}=c0(r,i);return{segments:o,macros:n}}function p0(r,t){for(let i=r.length-1;i>=0;i--){const o=r[i];if(!(Ve.whitespace(o)||Ve.comment(o)||Ve.parbreak(o)))return i}}function $t(r,t="item"){let{segments:i,macros:o}=g0(r,t);for(let e=0;e0&&e>0&&l.unshift({type:"whitespace"})}let n=new WeakSet,s=o.flatMap((e,l)=>{var u;const d=i[l+1],y=h0(d);return e.args=e.args||[],e.args.push(st(d,{openMark:"",closeMark:""})),us(e,{inParMode:!0}),(l>0||((u=i[0])==null?void 0:u.length)>0)&&n.add(e),[e,...y]});s=s.flatMap(e=>n.has(e)?[{type:"parbreak"},e]:e),s.unshift(...i[0]);for(let e=0;e$t(r,"choice")},checkboxes:{signature:"o",processContent:r=>$t(r,"choice")},oneparchoices:{signature:"o",processContent:r=>$t(r,"choice")},oneparcheckboxes:{signature:"o",processContent:r=>$t(r,"choice")},parts:{signature:"o",processContent:r=>$t(r,"part")},subparts:{signature:"o",processContent:r=>$t(r,"subpart")},subsubparts:{signature:"o",processContent:r=>$t(r,"subsubpart")},questions:{signature:"o",processContent:r=>$t(r,"question")}},v0={geometry:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}}},b0={},y0={hypersetup:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},href:{signature:"o m m"},url:{signature:"m"},nolinkurl:{signature:"m"},hyperbaseurl:{signature:"m"},hyperimage:{signature:"m m"},hyperdef:{signature:"m m m"},hyperref:{signature:"o m"},hyperlink:{signature:"m m"},hypertarget:{signature:"m m"},autoref:{signature:"s m"},pageref:{signature:"s m"},autopageref:{signature:"s m"},pdfstringdef:{signature:"m m"},pdfbookmark:{signature:"o m m"},currentpdfbookmark:{signature:"m m"},subpdfbookmark:{signature:"m m"},belowpdfbookmark:{signature:"m m"},texorpdfstring:{signature:"m m"},thispdfpagelabel:{signature:"m"},hypercalcbp:{signature:"m"}},$0={},A0={"\\":{signature:"!s !o",renderInfo:{breakAfter:!0}},_:{signature:"m",escapeToken:""},"^":{signature:"m",escapeToken:""},newcommand:{signature:"s +m o +o +m",renderInfo:{breakAround:!0,namedArguments:["starred","name","numArgs","default","body"]}},renewcommand:{signature:"s +m o +o +m",renderInfo:{breakAround:!0,namedArguments:["starred","name","numArgs","default","body"]}},providecommand:{signature:"s +m o +o +m",renderInfo:{breakAround:!0}},newcounter:{signature:"m o",renderInfo:{breakAround:!0}},usecounter:{signature:"m"},setcounter:{signature:"m m",renderInfo:{breakAround:!0}},addtocounter:{signature:"m m",renderInfo:{breakAround:!0}},stepcounter:{signature:"m",renderInfo:{breakAround:!0}},refstepcounter:{signature:"m",renderInfo:{breakAround:!0}},newlength:{signature:"m",renderInfo:{breakAround:!0}},addtolength:{signature:"m m",renderInfo:{breakAround:!0}},settodepth:{signature:"m m",renderInfo:{breakAround:!0}},settoheight:{signature:"m m",renderInfo:{breakAround:!0}},settowidth:{signature:"m m",renderInfo:{breakAround:!0}},stretch:{signature:"m"},hspace:{signature:"s m"},vspace:{signature:"s m",renderInfo:{breakAround:!0}},vfill:{renderInfo:{breakAround:!0}},indent:{renderInfo:{breakAround:!0}},phantom:{signature:"m"},vphantom:{signature:"m"},hphantom:{signature:"m"},noindent:{renderInfo:{breakAround:!0}},smallskip:{renderInfo:{breakAround:!0}},medskip:{renderInfo:{breakAround:!0}},bigskip:{renderInfo:{breakAround:!0}},smallbreak:{renderInfo:{breakAround:!0}},medbreak:{renderInfo:{breakAround:!0}},bigbreak:{renderInfo:{breakAround:!0}},newline:{renderInfo:{breakAround:!0}},linebreak:{signature:"o",renderInfo:{breakAround:!0}},nolinebreak:{signature:"o",renderInfo:{breakAround:!0}},clearpage:{renderInfo:{breakAround:!0}},cleardoublepage:{renderInfo:{breakAround:!0}},newpage:{renderInfo:{breakAround:!0}},enlargethispage:{signature:"s",renderInfo:{breakAround:!0}},pagebreak:{signature:"o",renderInfo:{breakAround:!0}},nopagebreak:{signature:"o",renderInfo:{breakAround:!0}},newsavebox:{signature:"m",renderInfo:{breakAround:!0}},sbox:{signature:"m m",renderInfo:{breakAround:!0}},savebox:{signature:"m o o m",renderInfo:{breakAround:!0}},mbox:{signature:"m"},makebox:{signature:"d() o o m",renderInfo:{breakAround:!0}},fbox:{signature:"m"},framebox:{signature:"o o m",renderInfo:{breakAround:!0}},frame:{signature:"m",renderInfo:{breakAround:!0}},parbox:{signature:"o o o m m",renderInfo:{breakAround:!0}},raisebox:{signature:"m o o m"},marginpar:{signature:"o m",renderInfo:{breakAround:!0}},colorbox:{signature:"o m m",renderInfo:{breakAround:!0}},fcolorbox:{signature:"o m m",renderInfo:{breakAround:!0}},rotatebox:{signature:"o m m"},scalebox:{signature:"m o m"},reflectbox:{signature:"m"},resizebox:{signature:"s m m m"},newenvironment:{signature:"s m o o m m",renderInfo:{breakAround:!0}},renewenvironment:{signature:"s m o o m m",renderInfo:{breakAround:!0}},newtheorem:{signature:"s m o m o",renderInfo:{breakAround:!0}},newfont:{signature:"m m",renderInfo:{breakAround:!0}},alph:{signature:"m"},Alph:{signature:"m"},arabic:{signature:"m"},roman:{signature:"m"},Roman:{signature:"m"},fnsymbol:{signature:"m"},documentclass:{signature:"o m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},usepackage:{signature:"o m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},item:{signature:"o",renderInfo:{hangingIndent:!0,namedArguments:["label"]}},value:{signature:"m"},centering:{renderInfo:{breakAround:!0}},input:{signature:"m",renderInfo:{breakAround:!0}},include:{signature:"m",renderInfo:{breakAround:!0}},includeonly:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},discretionary:{signature:"m m m"},hyphenation:{signature:"m m m"},footnote:{signature:"o m",renderInfo:{inParMode:!0}},footnotemark:{signature:"o"},footnotetext:{signature:"o m",renderInfo:{inParMode:!0}},caption:{signature:"o m",renderInfo:{inParMode:!0,breakAround:!0}},sqrt:{signature:"o m",renderInfo:{inMathMode:!0}},frac:{signature:"m m",renderInfo:{inMathMode:!0}},stackrel:{signature:"m m"},ensuremath:{signature:"m",renderInfo:{inMathMode:!0}},abstract:{signature:"m",renderInfo:{breakAround:!0,inParMode:!0}},maketitle:{renderInfo:{breakAround:!0}},doublespacing:{renderInfo:{breakAround:!0}},singlespacing:{renderInfo:{breakAround:!0}},author:{signature:"m",renderInfo:{breakAround:!0,inParMode:!0}},date:{signature:"o m",renderInfo:{breakAround:!0}},thanks:{signature:"m",renderInfo:{breakAround:!0,inParMode:!0}},title:{signature:"o m",renderInfo:{breakAround:!0,inParMode:!0}},pagenumbering:{signature:"m",renderInfo:{breakAround:!0}},pagestyle:{signature:"m",renderInfo:{breakAround:!0}},thispagestyle:{signature:"m",renderInfo:{breakAround:!0}},definecolor:{signature:"m m m",renderInfo:{breakAround:!0}},pagecolor:{signature:"o m",renderInfo:{breakAround:!0}},nopagecolor:{renderInfo:{breakAround:!0}},multicolumn:{signature:"m m m"},includegraphics:{signature:"s o o m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},rule:{signature:"o m m"},part:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},chapter:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},section:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},subsection:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},subsubsection:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},paragraph:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},subparagraph:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},appendix:{renderInfo:{breakAround:!0,inParMode:!0}},frontmatter:{renderInfo:{breakAround:!0,inParMode:!0}},mainmatter:{renderInfo:{breakAround:!0,inParMode:!0}},backmatter:{renderInfo:{breakAround:!0,inParMode:!0}},bibitem:{signature:"o m",renderInfo:{hangingIndent:!0}},cite:{signature:"o m"},textrm:{signature:"m",renderInfo:{inParMode:!0}},textit:{signature:"m",renderInfo:{inParMode:!0}},textmd:{signature:"m",renderInfo:{inParMode:!0}},textbf:{signature:"m",renderInfo:{inParMode:!0}},textup:{signature:"m",renderInfo:{inParMode:!0}},textsl:{signature:"m",renderInfo:{inParMode:!0}},textsf:{signature:"m",renderInfo:{inParMode:!0}},textsc:{signature:"m",renderInfo:{inParMode:!0}},texttt:{signature:"m",renderInfo:{inParMode:!0}},emph:{signature:"m",renderInfo:{inParMode:!0}},textnormal:{signature:"m",renderInfo:{inParMode:!0}},uppercase:{signature:"m",renderInfo:{inParMode:!0}},mathbf:{signature:"m"},mathsf:{signature:"m"},mathtt:{signature:"m"},mathit:{signature:"m"},mathnormal:{signature:"m"},mathcal:{signature:"m"},mathrm:{signature:"m"},setlength:{signature:"m m",renderInfo:{breakAround:!0}},ref:{signature:"s m"},label:{signature:"o m"},printbibliography:{renderInfo:{breakAround:!0}},addtocontents:{signature:"m m",renderInfo:{breakAround:!0}},addcontentsline:{signature:"m m m",renderInfo:{breakAround:!0}},contentsline:{signature:"m m m",renderInfo:{breakAround:!0}},bibliography:{signature:"m",renderInfo:{breakAround:!0}},bibliographystyle:{signature:"m",renderInfo:{breakAround:!0}}},x0={document:{processContent:r=>(zn(r),r)},array:{signature:"o m",renderInfo:{alignContent:!0}},description:{signature:"o",processContent:$t},enumerate:{signature:"o",processContent:$t,renderInfo:{pgfkeysArgs:!0}},itemize:{signature:"o",processContent:$t},trivlist:{signature:"o",processContent:$t},list:{signature:"m m",processContent:$t},figure:{signature:"o"},"figure*":{signature:"o"},filecontents:{signature:"o m"},"filecontents*":{signature:"o m"},minipage:{signature:"o o o m"},picture:{signature:"r() d()"},tabbing:{renderInfo:{alignContent:!0}},table:{signature:"o"},tabular:{signature:"o m",renderInfo:{alignContent:!0}},"tabular*":{signature:"m o m",renderInfo:{alignContent:!0}},thebibliography:{signature:"m",processContent:r=>$t(r,"bibitem")},math:{renderInfo:{inMathMode:!0}}},w0=function(){function r(n,s){function e(){this.constructor=n}e.prototype=s.prototype,n.prototype=new e}function t(n,s,e,l){var u=Error.call(this,n);return Object.setPrototypeOf&&Object.setPrototypeOf(u,t.prototype),u.expected=s,u.found=e,u.location=l,u.name="SyntaxError",u}r(t,Error);function i(n,s,e){return e=e||" ",n.length>s?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;P[\]`'"~]/,I=Kr("document"),Le=Kr("math"),Z=Kr("token"),_e=ju(),Ue=Kr("parbreak"),Be=Kr("math token"),pe=Kr("nonchar token"),Ur=ur("%",!1),br=Kr("whitespace"),Jr=Kr("number"),ar=ur(".",!1),E=Kr("special macro"),C=ur("verb*",!1),N=ur("verb",!1),ee=ur("[",!1),ie=ur("]",!1),Ge=Gn([" "," ",` +`,"\r"],!0,!1),yr=Kr("verbatim listings"),sr=ur("lstinline",!1),gr=Kr("verbatim minted"),$r=ur("mintinline",!1),_r=ur("mint",!1),fr=Kr("verbatim minted environment"),Cr=ur("minted",!1),W=Kr("verbatim environment"),ne=ur("verbatim*",!1),Re=ur("verbatim",!1),rr=ur("filecontents*",!1),xe=ur("filecontents",!1),Ir=ur("comment",!1),lr=ur("lstlisting",!1),x=Kr("macro"),J=Kr("group"),X=Kr("environment"),Xe=Kr("math environment"),ir=ur("(",!1),Te=ur(")",!1),zr=ur("begin",!1),w=ur("end",!1),c=ur("equation*",!1),V=ur("equation",!1),Qe=ur("align*",!1),kr=ur("align",!1),le=ur("alignat*",!1),ft=ur("alignat",!1),Zr=ur("gather*",!1),Ft=ur("gather",!1),Qt=ur("multline*",!1),kn=ur("multline",!1),qr=ur("flalign*",!1),en=ur("flalign",!1),Ot=ur("split",!1),De=ur("math",!1),Rt=ur("displaymath",!1),jt=Kr("escape"),mt=ur("\\",!1),gt=ur("{",!1),h=ur("}",!1),B=ur("$",!1),j=ur("&",!1),we=Kr("newline"),$e=ur("\r",!1),ke=ur(` +`,!1),A=ur(`\r +`,!1),G=ur("#",!1),ae=ur("^",!1),Ae=ur("_",!1),Ke=ur("\0",!1),Sr=Gn([" "," "],!1,!1),Vr=Kr("letter"),rt=Gn([["a","z"],["A","Z"]],!1,!1),hi=Kr("digit"),gs=Gn([["0","9"]],!1,!1),ps=Kr("punctuation"),rn=Gn([".",",",";",":","-","*","/","(",")","!","?","=","+","<",">","[","]","`","'",'"',"~"],!1,!1),hs=Kr("full comment"),ds=Kr("comment"),di=function(a){return Ar("root",{content:a.flatMap(g=>g)})},Wn=function(a){return a},mi=function(a){return Ar("inlinemath",{content:a.flatMap(g=>g)})},tn=function(a){return Ar("string",{content:a})},ms=function(a){return Ar("string",{content:a})},nn=function(){return Ar("parbreak")},vi=function(a){return a},bi=function(a){return a},sn=function(){return Ar("macro",{content:"^",escapeToken:""})},Cn=function(){return Ar("macro",{content:"_",escapeToken:""})},m=function(a){return Ar("string",{content:a})},M=function(){return Ar("whitespace")},Q=function(a,g){return a.join("")+"."+g.join("")},te=function(a){return"."+a.join("")},Pe=function(a){return a.join("")+"."},Ne=function(a){return Ar("string",{content:a})},Rr=function(a,g,_){return _==g},ut=function(a,g,_){return _},on=function(a,g,_,$){return $==g},an=function(a,g,_){return Ar("verb",{env:a,escape:g,content:_.join("")})},Ho=function(a){return a},su=function(a){return Ar("displaymath",{content:a.flatMap(g=>g)})},Ko=function(a){return a},ou=function(a){return Ar("inlinemath",{content:a.flatMap(g=>g)})},Xo=function(a){return a},au=function(a){return Ar("displaymath",{content:a.flatMap(g=>g)})},Yo=function(a){return a.type==="string"&&a.content==="]"},Jo=function(a){return a},lu=function(a){return[Ar("string",{content:"["}),...a,Ar("string",{content:"]"})]},Zo=function(a){return a},fu=function(a){return Ar("group",{content:Ar("string",{content:a.join("")})})},Qo=function(a,g){return g==a},ea=function(a,g){return g},uu=function(a,g,_){return _==a},cu=function(a,g){return[Ar("string",{content:a}),Ar("string",{content:g.join("")}),Ar("string",{content:a})]},gu=function(a,g,_){return[Ar("macro",{content:a}),...g||[],...[].concat(_)]},pu=function(a,g,_,$){return[Ar("macro",{content:a}),...g||[],_,...[].concat($)]},ra=function(a,g,_,$){return wi({content:[a]},$)},hu=function(a,g,_,$){const L=[...g||[],_,{type:"string",content:$}];return Ar("environment",{env:a,content:L})},ta=function(a,g){return wi({content:[a]},g)},na=function(a,g){return g},du=function(a,g){return Ar("verbatim",{env:a,content:g})},mu=function(a){return a.join("")},vu=function(a){return a},bu=function(a){return Ar("macro",{content:a})},ia=function(a){return a},yu=function(a){return Ar("group",{content:a.flatMap(g=>g)})},$u=function(a){return Nu().slice(1,-1)},sa=function(a,g,_){return wi(a,_)},oa=function(a,g,_){return _},Au=function(a,g,_){return _=_.flatMap($=>$),Ar("environment",{env:a,content:g?[g,..._]:_})},aa=function(a,g,_){return wi({content:[a]},_)},la=function(a,g,_){return _},xu=function(a,g,_){return _=_.flatMap($=>$),Ar("mathenv",{env:a,content:g?[g,..._]:_})},wu=function(a){return Ar("string",{content:a})},_u=function(){return Ar("string",{content:"\\"})},ku=function(a){return Ar("string",{content:a})},Cu=function(a){return Ar("string",{content:a})},Eu=function(a){return Ar("string",{content:a})},Iu=function(a){return Ar("string",{content:a})},Mu=function(a){return Ar("string",{content:a})},Su=function(a){return Ar("string",{content:a})},Pu=function(a){return Ar("string",{content:a})},Fu=function(){return" "},Ou=function(a){return Ar("string",{content:a})},Ru=function(a,g){return Ar("comment",{...g,sameline:!1,leadingWhitespace:a.length>0})},Tu=function(a,g){return Ar("comment",{...g,sameline:!0,leadingWhitespace:a.length>0})},fa=function(a){return a},Du=function(a){return{content:a.join(""),suffixParbreak:!0}},ua=function(a){return a},Lu=function(a){return{content:a.join("")}},Bu=function(){var a=ca();return a.start.column===1},f=0,Ee=0,yi=[{line:1,column:1}],zt=0,vs=[],D=0,$i;if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');d=u[s.startRule]}function Nu(){return n.substring(Ee,f)}function ca(){return bs(Ee,f)}function ur(a,g){return{type:"literal",text:a,ignoreCase:g}}function Gn(a,g,_){return{type:"class",parts:a,inverted:g,ignoreCase:_}}function ju(){return{type:"any"}}function zu(){return{type:"end"}}function Kr(a){return{type:"other",description:a}}function ga(a){var g=yi[a],_;if(g)return g;for(_=a-1;!yi[_];)_--;for(g=yi[_],g={line:g.line,column:g.column};_zt&&(zt=f,vs=[]),vs.push(a))}function qu(a,g,_){return new t(t.buildMessage(a,g),a,g,_)}function pa(){var a,g,_;for(D++,a=f,g=[],_=qt();_!==e;)g.push(_),_=qt();return Ee=a,g=di(g),a=g,D--,g=e,D===0&&be(I),a}function Wu(){var a,g;for(D++,a=[],g=kt();g!==e;)a.push(g),g=kt();return D--,g=e,D===0&&be(Le),a}function qt(){var a,g,_,$,L,S;if(D++,a=ma(),a===e&&(a=$a(),a===e&&(a=_a(),a===e&&(a=Tt(),a===e)))){if(a=f,g=bt(),g!==e){if(_=[],$=f,L=f,D++,S=bt(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(S=kt(),S!==e?(Ee=$,$=Wn(S)):(f=$,$=e)):(f=$,$=e),$!==e)for(;$!==e;)_.push($),$=f,L=f,D++,S=bt(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(S=kt(),S!==e?(Ee=$,$=Wn(S)):(f=$,$=e)):(f=$,$=e);else _=e;_!==e?($=bt(),$!==e?(Ee=a,a=mi(_)):(f=a,a=e)):(f=a,a=e)}else f=a,a=e;if(a===e&&(a=xs(),a===e&&(a=ha(),a===e&&(a=ws(),a===e&&(a=_s(),a===e&&(a=Gu(),a===e&&(a=nt(),a===e&&(a=wa(),a===e)))))))){if(a=f,g=f,_=[],$=f,L=f,D++,S=da(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(n.length>f?(S=n.charAt(f),f++):(S=e,D===0&&be(_e)),S!==e?(L=[L,S],$=L):(f=$,$=e)):(f=$,$=e),$!==e)for(;$!==e;)_.push($),$=f,L=f,D++,S=da(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(n.length>f?(S=n.charAt(f),f++):(S=e,D===0&&be(_e)),S!==e?(L=[L,S],$=L):(f=$,$=e)):(f=$,$=e);else _=e;_!==e?g=n.substring(g,f):g=_,g!==e&&(Ee=a,g=tn(g)),a=g,a===e&&(a=Wt(),a===e&&(a=vt(),a===e&&(a=bt(),a===e&&(a=f,n.length>f?(g=n.charAt(f),f++):(g=e,D===0&&be(_e)),g!==e&&(Ee=a,g=ms(g)),a=g))))}}return D--,a===e&&(g=e,D===0&&be(Z)),a}function ha(){var a,g,_,$,L,S,oe,re;for(D++,a=f,g=f,_=[],$=Tr();$!==e;)_.push($),$=Tr();if($=at(),$!==e){for(L=[],S=f,oe=[],re=Tr();re!==e;)oe.push(re),re=Tr();if(re=at(),re!==e?(oe=[oe,re],S=oe):(f=S,S=e),S!==e)for(;S!==e;){for(L.push(S),S=f,oe=[],re=Tr();re!==e;)oe.push(re),re=Tr();re=at(),re!==e?(oe=[oe,re],S=oe):(f=S,S=e)}else L=e;if(L!==e){for(S=[],oe=Tr();oe!==e;)S.push(oe),oe=Tr();oe=f,D++,re=Un(),D--,re===e?oe=void 0:(f=oe,oe=e),oe!==e?(_=[_,$,L,S,oe],g=_):(f=g,g=e)}else f=g,g=e}else f=g,g=e;if(g===e){for(g=f,_=[],$=Tr();$!==e;)_.push($),$=Tr();if($=at(),$!==e){for(L=[],S=f,oe=[],re=Tr();re!==e;)oe.push(re),re=Tr();if(re=at(),re!==e?(oe=[oe,re],S=oe):(f=S,S=e),S!==e)for(;S!==e;){for(L.push(S),S=f,oe=[],re=Tr();re!==e;)oe.push(re),re=Tr();re=at(),re!==e?(oe=[oe,re],S=oe):(f=S,S=e)}else L=e;L!==e?(_=[_,$,L],g=_):(f=g,g=e)}else f=g,g=e}return g!==e&&(Ee=a,g=nn()),a=g,D--,a===e&&(g=e,D===0&&be(Ue)),a}function kt(){var a,g,_,$,L;if(D++,a=ma(),a===e&&(a=$a(),a===e&&(a=_a(),a===e))){for(a=f,g=[],_=nt();_!==e;)g.push(_),_=nt();if(_=Tt(),_!==e){for($=[],L=nt();L!==e;)$.push(L),L=nt();Ee=a,a=vi(_)}else f=a,a=e;if(a===e){for(a=f,g=[],_=nt();_!==e;)g.push(_),_=nt();if(_=xs(),_!==e){for($=[],L=nt();L!==e;)$.push(L),L=nt();Ee=a,a=bi(_)}else f=a,a=e;if(a===e&&(a=ws(),a===e)){for(a=f,g=[],_=nt();_!==e;)g.push(_),_=nt();if(_=Qu(),_!==e){for($=[],L=nt();L!==e;)$.push(L),L=nt();Ee=a,a=sn()}else f=a,a=e;if(a===e){for(a=f,g=[],_=nt();_!==e;)g.push(_),_=nt();if(_=ec(),_!==e){for($=[],L=nt();L!==e;)$.push(L),L=nt();Ee=a,a=Cn()}else f=a,a=e;a===e&&(a=_s(),a===e&&(a=nt(),a===e&&(a=f,n.length>f?(g=n.charAt(f),f++):(g=e,D===0&&be(_e)),g!==e&&(Ee=a,g=m(g)),a=g)))}}}}return D--,a===e&&(g=e,D===0&&be(Be)),a}function da(){var a;return D++,a=Et(),a===e&&(n.charCodeAt(f)===37?(a=y,f++):(a=e,D===0&&be(Ur)),a===e&&(a=Wt(),a===e&&(a=vt(),a===e&&(a=bt(),a===e&&(a=xs(),a===e&&(a=at(),a===e&&(a=ws(),a===e&&(a=_s(),a===e&&(a=Tr(),a===e&&(a=wa(),a===e&&(a=Ca()))))))))))),D--,a===e&&D===0&&be(pe),a}function nt(){var a,g,_,$,L,S,oe,re;if(D++,a=f,g=f,_=at(),_!==e){for($=[],L=Tr();L!==e;)$.push(L),L=Tr();_=[_,$],g=_}else f=g,g=e;if(g===e){if(g=f,_=[],$=Tr(),$!==e)for(;$!==e;)_.push($),$=Tr();else _=e;if(_!==e)if($=at(),$!==e)if(L=f,D++,S=Un(),D--,S===e?L=void 0:(f=L,L=e),L!==e){for(S=[],oe=Tr();oe!==e;)S.push(oe),oe=Tr();oe=f,D++,re=at(),D--,re===e?oe=void 0:(f=oe,oe=e),oe!==e?(_=[_,$,L,S,oe],g=_):(f=g,g=e)}else f=g,g=e;else f=g,g=e;else f=g,g=e;if(g===e)if(g=[],_=Tr(),_!==e)for(;_!==e;)g.push(_),_=Tr();else g=e}return g!==e&&(Ee=a,g=M()),a=g,D--,a===e&&(g=e,D===0&&be(br)),a}function Gu(){var a,g,_,$,L,S;if(D++,a=f,g=f,_=[],$=ln(),$!==e)for(;$!==e;)_.push($),$=ln();else _=e;if(_!==e)if(n.charCodeAt(f)===46?($=T,f++):($=e,D===0&&be(ar)),$!==e){if(L=[],S=ln(),S!==e)for(;S!==e;)L.push(S),S=ln();else L=e;L!==e?(Ee=g,g=Q(_,L)):(f=g,g=e)}else f=g,g=e;else f=g,g=e;if(g===e){if(g=f,n.charCodeAt(f)===46?(_=T,f++):(_=e,D===0&&be(ar)),_!==e){if($=[],L=ln(),L!==e)for(;L!==e;)$.push(L),L=ln();else $=e;$!==e?(Ee=g,g=te($)):(f=g,g=e)}else f=g,g=e;if(g===e){if(g=f,_=[],$=ln(),$!==e)for(;$!==e;)_.push($),$=ln();else _=e;_!==e?(n.charCodeAt(f)===46?($=T,f++):($=e,D===0&&be(ar)),$!==e?(Ee=g,g=Pe(_)):(f=g,g=e)):(f=g,g=e)}}return g!==e&&(Ee=a,g=Ne(g)),a=g,D--,a===e&&(g=e,D===0&&be(Jr)),a}function ma(){var a,g,_,$,L,S,oe,re,Ze,Me;if(D++,a=f,g=Et(),g!==e)if(n.substr(f,5)===K?(_=K,f+=5):(_=e,D===0&&be(C)),_===e&&(n.substr(f,4)===v?(_=v,f+=4):(_=e,D===0&&be(N))),_!==e)if(n.length>f?($=n.charAt(f),f++):($=e,D===0&&be(_e)),$!==e){for(L=[],S=f,oe=f,D++,re=f,n.length>f?(Ze=n.charAt(f),f++):(Ze=e,D===0&&be(_e)),Ze!==e?(Ee=f,Me=Rr(_,$,Ze),Me?Me=void 0:Me=e,Me!==e?(Ze=[Ze,Me],re=Ze):(f=re,re=e)):(f=re,re=e),D--,re===e?oe=void 0:(f=oe,oe=e),oe!==e?(n.length>f?(re=n.charAt(f),f++):(re=e,D===0&&be(_e)),re!==e?(Ee=S,S=ut(_,$,re)):(f=S,S=e)):(f=S,S=e);S!==e;)L.push(S),S=f,oe=f,D++,re=f,n.length>f?(Ze=n.charAt(f),f++):(Ze=e,D===0&&be(_e)),Ze!==e?(Ee=f,Me=Rr(_,$,Ze),Me?Me=void 0:Me=e,Me!==e?(Ze=[Ze,Me],re=Ze):(f=re,re=e)):(f=re,re=e),D--,re===e?oe=void 0:(f=oe,oe=e),oe!==e?(n.length>f?(re=n.charAt(f),f++):(re=e,D===0&&be(_e)),re!==e?(Ee=S,S=ut(_,$,re)):(f=S,S=e)):(f=S,S=e);S=f,n.length>f?(oe=n.charAt(f),f++):(oe=e,D===0&&be(_e)),oe!==e?(Ee=f,re=on(_,$,L,oe),re?re=void 0:re=e,re!==e?(oe=[oe,re],S=oe):(f=S,S=e)):(f=S,S=e),S!==e?(Ee=a,a=an(_,$,L)):(f=a,a=e)}else f=a,a=e;else f=a,a=e;else f=a,a=e;if(a===e&&(a=Uu(),a===e&&(a=Vu(),a===e&&(a=Hu(),a===e&&(a=Ku(),a===e))))){if(a=f,g=Ju(),g!==e){for(_=[],$=f,L=f,D++,S=$s(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(S=kt(),S!==e?(Ee=$,$=Ho(S)):(f=$,$=e)):(f=$,$=e);$!==e;)_.push($),$=f,L=f,D++,S=$s(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(S=kt(),S!==e?(Ee=$,$=Ho(S)):(f=$,$=e)):(f=$,$=e);$=$s(),$!==e?(Ee=a,a=su(_)):(f=a,a=e)}else f=a,a=e;if(a===e){if(a=f,g=Zu(),g!==e){for(_=[],$=f,L=f,D++,S=As(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(S=kt(),S!==e?(Ee=$,$=Ko(S)):(f=$,$=e)):(f=$,$=e);$!==e;)_.push($),$=f,L=f,D++,S=As(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(S=kt(),S!==e?(Ee=$,$=Ko(S)):(f=$,$=e)):(f=$,$=e);$=As(),$!==e?(Ee=a,a=ou(_)):(f=a,a=e)}else f=a,a=e;if(a===e){if(a=f,g=bt(),g!==e)if(_=bt(),_!==e){for($=[],L=f,S=f,D++,oe=f,re=bt(),re!==e?(Ze=bt(),Ze!==e?(re=[re,Ze],oe=re):(f=oe,oe=e)):(f=oe,oe=e),D--,oe===e?S=void 0:(f=S,S=e),S!==e?(oe=kt(),oe!==e?(Ee=L,L=Xo(oe)):(f=L,L=e)):(f=L,L=e);L!==e;)$.push(L),L=f,S=f,D++,oe=f,re=bt(),re!==e?(Ze=bt(),Ze!==e?(re=[re,Ze],oe=re):(f=oe,oe=e)):(f=oe,oe=e),D--,oe===e?S=void 0:(f=S,S=e),S!==e?(oe=kt(),oe!==e?(Ee=L,L=Xo(oe)):(f=L,L=e)):(f=L,L=e);L=bt(),L!==e?(S=bt(),S!==e?(Ee=a,a=au($)):(f=a,a=e)):(f=a,a=e)}else f=a,a=e;else f=a,a=e;a===e&&(a=Yu(),a===e&&(a=Xu()))}}}return D--,a===e&&(g=e,D===0&&be(E)),a}function ys(){var a,g,_,$,L,S,oe,re;if(a=f,n.charCodeAt(f)===91?(g=b,f++):(g=e,D===0&&be(ee)),g!==e){for(_=[],$=f,L=f,D++,S=f,oe=qt(),oe!==e?(Ee=f,re=Yo(oe),re?re=void 0:re=e,re!==e?(oe=[oe,re],S=oe):(f=S,S=e)):(f=S,S=e),D--,S===e?L=void 0:(f=L,L=e),L!==e?(S=qt(),S!==e?(Ee=$,$=Jo(S)):(f=$,$=e)):(f=$,$=e);$!==e;)_.push($),$=f,L=f,D++,S=f,oe=qt(),oe!==e?(Ee=f,re=Yo(oe),re?re=void 0:re=e,re!==e?(oe=[oe,re],S=oe):(f=S,S=e)):(f=S,S=e),D--,S===e?L=void 0:(f=L,L=e),L!==e?(S=qt(),S!==e?(Ee=$,$=Jo(S)):(f=$,$=e)):(f=$,$=e);n.charCodeAt(f)===93?($=P,f++):($=e,D===0&&be(ie)),$!==e?(Ee=a,a=lu(_)):(f=a,a=e)}else f=a,a=e;return a}function va(){var a,g,_,$,L,S;if(a=f,g=Wt(),g!==e){for(_=[],$=f,L=f,D++,S=vt(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(n.length>f?(S=n.charAt(f),f++):(S=e,D===0&&be(_e)),S!==e?(Ee=$,$=Zo(S)):(f=$,$=e)):(f=$,$=e);$!==e;)_.push($),$=f,L=f,D++,S=vt(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(n.length>f?(S=n.charAt(f),f++):(S=e,D===0&&be(_e)),S!==e?(Ee=$,$=Zo(S)):(f=$,$=e)):(f=$,$=e);$=vt(),$!==e?(Ee=a,a=fu(_)):(f=a,a=e)}else f=a,a=e;return a}function ba(){var a,g,_,$,L,S,oe,re;if(a=f,z.test(n.charAt(f))?(g=n.charAt(f),f++):(g=e,D===0&&be(Ge)),g!==e){for(_=[],$=f,L=f,D++,S=f,n.length>f?(oe=n.charAt(f),f++):(oe=e,D===0&&be(_e)),oe!==e?(Ee=f,re=Qo(g,oe),re?re=void 0:re=e,re!==e?(oe=[oe,re],S=oe):(f=S,S=e)):(f=S,S=e),D--,S===e?L=void 0:(f=L,L=e),L!==e?(n.length>f?(S=n.charAt(f),f++):(S=e,D===0&&be(_e)),S!==e?(Ee=$,$=ea(g,S)):(f=$,$=e)):(f=$,$=e);$!==e;)_.push($),$=f,L=f,D++,S=f,n.length>f?(oe=n.charAt(f),f++):(oe=e,D===0&&be(_e)),oe!==e?(Ee=f,re=Qo(g,oe),re?re=void 0:re=e,re!==e?(oe=[oe,re],S=oe):(f=S,S=e)):(f=S,S=e),D--,S===e?L=void 0:(f=L,L=e),L!==e?(n.length>f?(S=n.charAt(f),f++):(S=e,D===0&&be(_e)),S!==e?(Ee=$,$=ea(g,S)):(f=$,$=e)):(f=$,$=e);$=f,n.length>f?(L=n.charAt(f),f++):(L=e,D===0&&be(_e)),L!==e?(Ee=f,S=uu(g,_,L),S?S=void 0:S=e,S!==e?(L=[L,S],$=L):(f=$,$=e)):(f=$,$=e),$!==e?(Ee=a,a=cu(g,_)):(f=a,a=e)}else f=a,a=e;return a}function Uu(){var a,g,_,$,L;return D++,a=f,g=Et(),g!==e?(n.substr(f,9)===fe?(_=fe,f+=9):(_=e,D===0&&be(sr)),_!==e?($=ys(),$===e&&($=null),L=va(),L===e&&(L=ba()),L!==e?(Ee=a,a=gu(_,$,L)):(f=a,a=e)):(f=a,a=e)):(f=a,a=e),D--,a===e&&(g=e,D===0&&be(yr)),a}function Vu(){var a,g,_,$,L,S;return D++,a=f,g=Et(),g!==e?(n.substr(f,10)===Fe?(_=Fe,f+=10):(_=e,D===0&&be($r)),_===e&&(n.substr(f,4)===ze?(_=ze,f+=4):(_=e,D===0&&be(_r))),_!==e?($=ys(),$===e&&($=null),L=Tt(),L!==e?(S=va(),S===e&&(S=ba()),S!==e?(Ee=a,a=pu(_,$,L,S)):(f=a,a=e)):(f=a,a=e)):(f=a,a=e)):(f=a,a=e),D--,a===e&&(g=e,D===0&&be(gr)),a}function Hu(){var a,g,_,$,L,S,oe,re,Ze,Me,tr,cr,Mr,fn,It;if(D++,a=f,g=xi(),g!==e)if(_=Wt(),_!==e)if(n.substr(f,6)===ce?($=ce,f+=6):($=e,D===0&&be(Cr)),$!==e)if(L=vt(),L!==e)if(S=ys(),S===e&&(S=null),oe=Tt(),oe!==e){for(re=f,Ze=[],Me=f,tr=f,D++,cr=f,Mr=Ct(),Mr!==e?(fn=Tt(),fn!==e?(Ee=f,It=ra($,S,oe,fn),It?It=void 0:It=e,It!==e?(Mr=[Mr,fn,It],cr=Mr):(f=cr,cr=e)):(f=cr,cr=e)):(f=cr,cr=e),D--,cr===e?tr=void 0:(f=tr,tr=e),tr!==e?(n.length>f?(cr=n.charAt(f),f++):(cr=e,D===0&&be(_e)),cr!==e?(tr=[tr,cr],Me=tr):(f=Me,Me=e)):(f=Me,Me=e);Me!==e;)Ze.push(Me),Me=f,tr=f,D++,cr=f,Mr=Ct(),Mr!==e?(fn=Tt(),fn!==e?(Ee=f,It=ra($,S,oe,fn),It?It=void 0:It=e,It!==e?(Mr=[Mr,fn,It],cr=Mr):(f=cr,cr=e)):(f=cr,cr=e)):(f=cr,cr=e),D--,cr===e?tr=void 0:(f=tr,tr=e),tr!==e?(n.length>f?(cr=n.charAt(f),f++):(cr=e,D===0&&be(_e)),cr!==e?(tr=[tr,cr],Me=tr):(f=Me,Me=e)):(f=Me,Me=e);re=n.substring(re,f),Ze=Ct(),Ze!==e?(Me=Wt(),Me!==e?(n.substr(f,6)===ce?(tr=ce,f+=6):(tr=e,D===0&&be(Cr)),tr!==e?(cr=vt(),cr!==e?(Ee=a,a=hu($,S,oe,re)):(f=a,a=e)):(f=a,a=e)):(f=a,a=e)):(f=a,a=e)}else f=a,a=e;else f=a,a=e;else f=a,a=e;else f=a,a=e;else f=a,a=e;return D--,a===e&&(g=e,D===0&&be(fr)),a}function Ku(){var a,g,_,$,L,S,oe,re,Ze,Me,tr,cr,Mr;if(D++,a=f,g=xi(),g!==e)if(_=Wt(),_!==e)if($=ya(),$!==e)if(L=vt(),L!==e){for(S=f,oe=[],re=f,Ze=f,D++,Me=f,tr=Ct(),tr!==e?(cr=Tt(),cr!==e?(Ee=f,Mr=ta($,cr),Mr?Mr=void 0:Mr=e,Mr!==e?(tr=[tr,cr,Mr],Me=tr):(f=Me,Me=e)):(f=Me,Me=e)):(f=Me,Me=e),D--,Me===e?Ze=void 0:(f=Ze,Ze=e),Ze!==e?(n.length>f?(Me=n.charAt(f),f++):(Me=e,D===0&&be(_e)),Me!==e?(Ee=re,re=na($,Me)):(f=re,re=e)):(f=re,re=e);re!==e;)oe.push(re),re=f,Ze=f,D++,Me=f,tr=Ct(),tr!==e?(cr=Tt(),cr!==e?(Ee=f,Mr=ta($,cr),Mr?Mr=void 0:Mr=e,Mr!==e?(tr=[tr,cr,Mr],Me=tr):(f=Me,Me=e)):(f=Me,Me=e)):(f=Me,Me=e),D--,Me===e?Ze=void 0:(f=Ze,Ze=e),Ze!==e?(n.length>f?(Me=n.charAt(f),f++):(Me=e,D===0&&be(_e)),Me!==e?(Ee=re,re=na($,Me)):(f=re,re=e)):(f=re,re=e);S=n.substring(S,f),oe=Ct(),oe!==e?(re=Wt(),re!==e?(Ze=ya(),Ze!==e?(Me=vt(),Me!==e?(Ee=a,a=du($,S)):(f=a,a=e)):(f=a,a=e)):(f=a,a=e)):(f=a,a=e)}else f=a,a=e;else f=a,a=e;else f=a,a=e;else f=a,a=e;return D--,a===e&&(g=e,D===0&&be(W)),a}function ya(){var a;return n.substr(f,9)===He?(a=He,f+=9):(a=e,D===0&&be(ne)),a===e&&(n.substr(f,8)===qe?(a=qe,f+=8):(a=e,D===0&&be(Re)),a===e&&(n.substr(f,13)===de?(a=de,f+=13):(a=e,D===0&&be(rr)),a===e&&(n.substr(f,12)===Oe?(a=Oe,f+=12):(a=e,D===0&&be(xe)),a===e&&(n.substr(f,7)===We?(a=We,f+=7):(a=e,D===0&&be(Ir)),a===e&&(n.substr(f,10)===Ce?(a=Ce,f+=10):(a=e,D===0&&be(lr))))))),a}function $a(){var a,g,_,$,L;if(D++,a=f,g=f,_=Et(),_!==e){if($=[],L=xa(),L!==e)for(;L!==e;)$.push(L),L=xa();else $=e;$!==e?(Ee=g,g=mu($)):(f=g,g=e)}else f=g,g=e;return g===e&&(g=f,_=Et(),_!==e?(n.length>f?($=n.charAt(f),f++):($=e,D===0&&be(_e)),$!==e?(Ee=g,g=vu($)):(f=g,g=e)):(f=g,g=e)),g!==e&&(Ee=a,g=bu(g)),a=g,D--,a===e&&(g=e,D===0&&be(x)),a}function Tt(){var a,g,_,$,L,S;if(D++,a=f,g=Wt(),g!==e){for(_=[],$=f,L=f,D++,S=vt(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(S=qt(),S!==e?(Ee=$,$=ia(S)):(f=$,$=e)):(f=$,$=e);$!==e;)_.push($),$=f,L=f,D++,S=vt(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(S=qt(),S!==e?(Ee=$,$=ia(S)):(f=$,$=e)):(f=$,$=e);$=vt(),$!==e?(Ee=a,a=yu(_)):(f=a,a=e)}else f=a,a=e;return D--,a===e&&(g=e,D===0&&be(J)),a}function Ai(){var a,g;return a=f,g=Tt(),g!==e&&(Ee=a,g=$u()),a=g,a}function Xu(){var a,g,_,$,L,S,oe,re,Ze,Me,tr;if(D++,a=f,g=xi(),g!==e)if(_=Ai(),_!==e){for($=ks(),$===e&&($=null),L=[],S=f,oe=f,D++,re=f,Ze=Ct(),Ze!==e?(Me=Ai(),Me!==e?(Ee=f,tr=sa(_,$,Me),tr?tr=void 0:tr=e,tr!==e?(Ze=[Ze,Me,tr],re=Ze):(f=re,re=e)):(f=re,re=e)):(f=re,re=e),D--,re===e?oe=void 0:(f=oe,oe=e),oe!==e?(re=qt(),re!==e?(Ee=S,S=oa(_,$,re)):(f=S,S=e)):(f=S,S=e);S!==e;)L.push(S),S=f,oe=f,D++,re=f,Ze=Ct(),Ze!==e?(Me=Ai(),Me!==e?(Ee=f,tr=sa(_,$,Me),tr?tr=void 0:tr=e,tr!==e?(Ze=[Ze,Me,tr],re=Ze):(f=re,re=e)):(f=re,re=e)):(f=re,re=e),D--,re===e?oe=void 0:(f=oe,oe=e),oe!==e?(re=qt(),re!==e?(Ee=S,S=oa(_,$,re)):(f=S,S=e)):(f=S,S=e);S=Ct(),S!==e?(oe=Ai(),oe!==e?(Ee=a,a=Au(_,$,L)):(f=a,a=e)):(f=a,a=e)}else f=a,a=e;else f=a,a=e;return D--,a===e&&(g=e,D===0&&be(X)),a}function Yu(){var a,g,_,$,L,S,oe,re,Ze,Me,tr,cr,Mr;if(D++,a=f,g=xi(),g!==e)if(_=Wt(),_!==e)if($=Aa(),$!==e)if(L=vt(),L!==e){for(S=ks(),S===e&&(S=null),oe=[],re=f,Ze=f,D++,Me=f,tr=Ct(),tr!==e?(cr=Tt(),cr!==e?(Ee=f,Mr=aa($,S,cr),Mr?Mr=void 0:Mr=e,Mr!==e?(tr=[tr,cr,Mr],Me=tr):(f=Me,Me=e)):(f=Me,Me=e)):(f=Me,Me=e),D--,Me===e?Ze=void 0:(f=Ze,Ze=e),Ze!==e?(Me=kt(),Me!==e?(Ee=re,re=la($,S,Me)):(f=re,re=e)):(f=re,re=e);re!==e;)oe.push(re),re=f,Ze=f,D++,Me=f,tr=Ct(),tr!==e?(cr=Tt(),cr!==e?(Ee=f,Mr=aa($,S,cr),Mr?Mr=void 0:Mr=e,Mr!==e?(tr=[tr,cr,Mr],Me=tr):(f=Me,Me=e)):(f=Me,Me=e)):(f=Me,Me=e),D--,Me===e?Ze=void 0:(f=Ze,Ze=e),Ze!==e?(Me=kt(),Me!==e?(Ee=re,re=la($,S,Me)):(f=re,re=e)):(f=re,re=e);re=Ct(),re!==e?(Ze=Wt(),Ze!==e?(Me=Aa(),Me!==e?(tr=vt(),tr!==e?(Ee=a,a=xu($,S,oe)):(f=a,a=e)):(f=a,a=e)):(f=a,a=e)):(f=a,a=e)}else f=a,a=e;else f=a,a=e;else f=a,a=e;else f=a,a=e;return D--,a===e&&(g=e,D===0&&be(Xe)),a}function Ju(){var a,g,_;return a=f,g=Et(),g!==e?(n.charCodeAt(f)===91?(_=b,f++):(_=e,D===0&&be(ee)),_!==e?(g=[g,_],a=g):(f=a,a=e)):(f=a,a=e),a}function $s(){var a,g,_;return a=f,g=Et(),g!==e?(n.charCodeAt(f)===93?(_=P,f++):(_=e,D===0&&be(ie)),_!==e?(g=[g,_],a=g):(f=a,a=e)):(f=a,a=e),a}function Zu(){var a,g,_;return a=f,g=Et(),g!==e?(n.charCodeAt(f)===40?(_=nr,f++):(_=e,D===0&&be(ir)),_!==e?(g=[g,_],a=g):(f=a,a=e)):(f=a,a=e),a}function As(){var a,g,_;return a=f,g=Et(),g!==e?(n.charCodeAt(f)===41?(_=dr,f++):(_=e,D===0&&be(Te)),_!==e?(g=[g,_],a=g):(f=a,a=e)):(f=a,a=e),a}function xi(){var a,g,_;return a=f,g=Et(),g!==e?(n.substr(f,5)===wr?(_=wr,f+=5):(_=e,D===0&&be(zr)),_!==e?(g=[g,_],a=g):(f=a,a=e)):(f=a,a=e),a}function Ct(){var a,g,_;return a=f,g=Et(),g!==e?(n.substr(f,3)===ve?(_=ve,f+=3):(_=e,D===0&&be(w)),_!==e?(g=[g,_],a=g):(f=a,a=e)):(f=a,a=e),a}function Aa(){var a,g;return a=f,n.substr(f,9)===Or?(g=Or,f+=9):(g=e,D===0&&be(c)),g===e&&(n.substr(f,8)===mr?(g=mr,f+=8):(g=e,D===0&&be(V)),g===e&&(n.substr(f,6)===ye?(g=ye,f+=6):(g=e,D===0&&be(Qe)),g===e&&(n.substr(f,5)===Ye?(g=Ye,f+=5):(g=e,D===0&&be(kr)),g===e&&(n.substr(f,8)===Je?(g=Je,f+=8):(g=e,D===0&&be(le)),g===e&&(n.substr(f,7)===Pr?(g=Pr,f+=7):(g=e,D===0&&be(ft)),g===e&&(n.substr(f,7)===vr?(g=vr,f+=7):(g=e,D===0&&be(Zr)),g===e&&(n.substr(f,6)===me?(g=me,f+=6):(g=e,D===0&&be(Ft)),g===e&&(n.substr(f,9)===Se?(g=Se,f+=9):(g=e,D===0&&be(Qt)),g===e&&(n.substr(f,8)===U?(g=U,f+=8):(g=e,D===0&&be(kn)),g===e&&(n.substr(f,8)===Lr?(g=Lr,f+=8):(g=e,D===0&&be(qr)),g===e&&(n.substr(f,7)===Er?(g=Er,f+=7):(g=e,D===0&&be(en)),g===e&&(n.substr(f,5)===pr?(g=pr,f+=5):(g=e,D===0&&be(Ot)),g===e&&(n.substr(f,4)===or?(g=or,f+=4):(g=e,D===0&&be(De)),g===e&&(n.substr(f,11)===Br?(g=Br,f+=11):(g=e,D===0&&be(Rt)))))))))))))))),g!==e&&(Ee=a,g=wu(g)),a=g,a}function Et(){var a,g;return D++,a=f,n.charCodeAt(f)===92?(g=Wr,f++):(g=e,D===0&&be(mt)),g!==e&&(Ee=a,g=_u()),a=g,D--,a===e&&(g=e,D===0&&be(jt)),a}function Wt(){var a,g;return a=f,n.charCodeAt(f)===123?(g=Nr,f++):(g=e,D===0&&be(gt)),g!==e&&(Ee=a,g=ku(g)),a=g,a}function vt(){var a,g;return a=f,n.charCodeAt(f)===125?(g=jr,f++):(g=e,D===0&&be(h)),g!==e&&(Ee=a,g=Cu(g)),a=g,a}function bt(){var a,g;return a=f,n.charCodeAt(f)===36?(g=Gr,f++):(g=e,D===0&&be(B)),g!==e&&(Ee=a,g=Eu(g)),a=g,a}function xs(){var a,g;return a=f,n.charCodeAt(f)===38?(g=O,f++):(g=e,D===0&&be(j)),g!==e&&(Ee=a,g=Iu(g)),a=g,a}function at(){var a,g,_;return D++,a=f,g=f,D++,n.charCodeAt(f)===13?(_=H,f++):(_=e,D===0&&be($e)),D--,_===e?g=void 0:(f=g,g=e),g!==e?(n.charCodeAt(f)===10?(_=se,f++):(_=e,D===0&&be(ke)),_!==e?(g=[g,_],a=g):(f=a,a=e)):(f=a,a=e),a===e&&(n.charCodeAt(f)===13?(a=H,f++):(a=e,D===0&&be($e)),a===e&&(n.substr(f,2)===k?(a=k,f+=2):(a=e,D===0&&be(A)))),D--,a===e&&(g=e,D===0&&be(we)),a}function ws(){var a,g;return a=f,n.charCodeAt(f)===35?(g=q,f++):(g=e,D===0&&be(G)),g!==e&&(Ee=a,g=Mu(g)),a=g,a}function Qu(){var a,g;return a=f,n.charCodeAt(f)===94?(g=Y,f++):(g=e,D===0&&be(ae)),g!==e&&(Ee=a,g=Su(g)),a=g,a}function ec(){var a,g;return a=f,n.charCodeAt(f)===95?(g=ue,f++):(g=e,D===0&&be(Ae)),g!==e&&(Ee=a,g=Pu(g)),a=g,a}function _s(){var a;return n.charCodeAt(f)===0?(a=ge,f++):(a=e,D===0&&be(Ke)),a}function Tr(){var a,g,_;if(D++,a=f,g=[],he.test(n.charAt(f))?(_=n.charAt(f),f++):(_=e,D===0&&be(Sr)),_!==e)for(;_!==e;)g.push(_),he.test(n.charAt(f))?(_=n.charAt(f),f++):(_=e,D===0&&be(Sr));else g=e;return g!==e&&(Ee=a,g=Fu()),a=g,D--,a===e&&(g=e,D===0&&be(br)),a}function xa(){var a;return D++,Ie.test(n.charAt(f))?(a=n.charAt(f),f++):(a=e,D===0&&be(rt)),D--,a===e&&D===0&&be(Vr),a}function ln(){var a;return D++,R.test(n.charAt(f))?(a=n.charAt(f),f++):(a=e,D===0&&be(gs)),D--,a===e&&D===0&&be(hi),a}function wa(){var a,g;return D++,a=f,F.test(n.charAt(f))?(g=n.charAt(f),f++):(g=e,D===0&&be(rn)),g!==e&&(Ee=a,g=Ou(g)),a=g,D--,a===e&&(g=e,D===0&&be(ps)),a}function Un(){var a;return n.charCodeAt(f)===37?(a=y,f++):(a=e,D===0&&be(Ur)),a}function _a(){var a;return D++,a=rc(),a===e&&(a=ks()),D--,a===e&&D===0&&be(hs),a}function rc(){var a,g,_,$;for(a=f,g=f,_=[],$=Tr();$!==e;)_.push($),$=Tr();return $=at(),$!==e?(_=[_,$],g=_):(f=g,g=e),g===e&&(g=null),_=tc(),_!==e?($=ka(),$!==e?(Ee=a,a=Ru(_,$)):(f=a,a=e)):(f=a,a=e),a}function ks(){var a,g,_;for(a=f,g=[],_=Tr();_!==e;)g.push(_),_=Tr();return _=ka(),_!==e?(Ee=a,a=Tu(g,_)):(f=a,a=e),a}function ka(){var a,g,_,$,L,S,oe,re;if(D++,a=f,g=Un(),g!==e){for(_=[],$=f,L=f,D++,S=at(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(n.length>f?(S=n.charAt(f),f++):(S=e,D===0&&be(_e)),S!==e?(Ee=$,$=fa(S)):(f=$,$=e)):(f=$,$=e);$!==e;)_.push($),$=f,L=f,D++,S=at(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(n.length>f?(S=n.charAt(f),f++):(S=e,D===0&&be(_e)),S!==e?(Ee=$,$=fa(S)):(f=$,$=e)):(f=$,$=e);$=f,D++,L=ha(),D--,L!==e?(f=$,$=void 0):$=e,$!==e?(Ee=a,a=Du(_)):(f=a,a=e)}else f=a,a=e;if(a===e)if(a=f,g=Un(),g!==e){for(_=[],$=f,L=f,D++,S=at(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(n.length>f?(S=n.charAt(f),f++):(S=e,D===0&&be(_e)),S!==e?(Ee=$,$=ua(S)):(f=$,$=e)):(f=$,$=e);$!==e;)_.push($),$=f,L=f,D++,S=at(),D--,S===e?L=void 0:(f=L,L=e),L!==e?(n.length>f?(S=n.charAt(f),f++):(S=e,D===0&&be(_e)),S!==e?(Ee=$,$=ua(S)):(f=$,$=e)):(f=$,$=e);if($=f,L=at(),L!==e){for(S=[],oe=Tr();oe!==e;)S.push(oe),oe=Tr();oe=f,D++,re=Un(),D--,re===e?oe=void 0:(f=oe,oe=e),oe!==e?(L=[L,S,oe],$=L):(f=$,$=e)}else f=$,$=e;$===e&&($=at(),$===e&&($=Ca())),$!==e?(Ee=a,a=Lu(_)):(f=a,a=e)}else f=a,a=e;return D--,a===e&&(g=e,D===0&&be(ds)),a}function tc(){var a,g,_,$,L;if(a=f,g=f,_=nc(),_!==e){for($=[],L=Tr();L!==e;)$.push(L),L=Tr();_=[_,$],g=_}else f=g,g=e;return g!==e?a=n.substring(a,f):a=g,a}function nc(){var a;return Ee=f,a=Bu(),a?a=void 0:a=e,a}function Ca(){var a,g;return a=f,D++,n.length>f?(g=n.charAt(f),f++):(g=e,D===0&&be(_e)),D--,g===e?a=void 0:(f=a,a=e),a}function Ea(a){return typeof a=="string"?a:typeof a.content=="string"?a.content:a&&a.type==="whitespace"?" ":a}function wi(a,g){const _=typeof a=="string"?a:a.content.map(Ea).join(""),$=typeof g=="string"?g:g.content.map(Ea).join("");return _===$}function Ar(a,g={}){return{type:a,...g,position:ca()}}if($i=d(),$i!==e&&f===n.length)return $i;throw $i!==e&&fs?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;PJe&&(Je=ye,Pr=[]),Pr.push(R))}function or(R,F,I){return new t(t.buildMessage(R,F),R,F,I)}function Br(){var R,F;if(R=[],F=Gr(),F===e&&(F=Wr(),F===e&&(F=Nr())),F!==e)for(;F!==e;)R.push(F),F=Gr(),F===e&&(F=Wr(),F===e&&(F=Nr()));else R=e;return R===e&&(R=ye,F=he(),F!==e&&(F=T()),R=F),R}function Wr(){var R,F,I,Le;return R=ye,F=ye,I=k(),I===e&&(I=null),I=K(I),F=I,I=ge(),I!==e?(Le=jr(),Le===e&&(Le=null),R=v(F,I,Le)):(ye=R,R=e),R}function Nr(){var R,F,I;return R=ye,F=k(),F!==e?(I=jr(),I===e&&(I=null),R=b(F,I)):(ye=R,R=e),R}function jr(){var R,F,I;for(R=ye,F=[],I=ue();I!==e;)F.push(I),I=ue();return I=q(),I!==e?R=P(I):(ye=R,R=e),R}function Gr(){var R,F,I;for(R=ye,F=[],I=ue();I!==e;)F.push(I),I=ue();return I=Y(),I!==e?R=fe(I):(ye=R,R=e),R}function O(){var R,F,I;return R=ye,F=ye,vr++,I=ge(),I===e&&(I=z(),I===e&&(I=jr(),I===e&&(I=Y()))),vr--,I===e?F=void 0:(ye=F,F=e),F!==e?(n.length>ye?(I=n.charAt(ye),ye++):(I=e,vr===0&&pr(y)),I!==e?R=Fe(I):(ye=R,R=e)):(ye=R,R=e),R}function H(){var R,F,I;if(R=ye,F=[],I=O(),I!==e)for(;I!==e;)F.push(I),I=O();else F=e;return F!==e?R=n.substring(R,ye):R=F,R}function se(){var R,F,I;return R=ye,F=z(),F!==e?(I=H(),I!==e?R=ze(F,I):(ye=R,R=e)):(ye=R,R=e),R===e&&(R=ye,F=z(),F!==e&&(F=ce(F)),R=F),R}function k(){var R,F,I,Le;if(R=ye,F=H(),F!==e){for(I=[],Le=se();Le!==e;)I.push(Le),Le=se();R=He(F,I)}else ye=R,R=e;if(R===e){if(R=ye,F=[],I=se(),I!==e)for(;I!==e;)F.push(I),I=se();else F=e;F!==e&&(F=qe(F)),R=F}return R}function q(){var R,F,I;return R=ye,n.length>ye?(F=n.charAt(ye),ye++):(F=e,vr===0&&pr(y)),F!==e?(I=de(F),I?I=void 0:I=e,I!==e?R=Oe(F):(ye=R,R=e)):(ye=R,R=e),R}function Y(){var R,F,I;return R=ye,n.length>ye?(F=n.charAt(ye),ye++):(F=e,vr===0&&pr(y)),F!==e?(I=We(F),I?I=void 0:I=e,I!==e?R=Ce(F):(ye=R,R=e)):(ye=R,R=e),R}function ue(){var R,F,I;return R=ye,n.length>ye?(F=n.charAt(ye),ye++):(F=e,vr===0&&pr(y)),F!==e?(I=nr(F),I?I=void 0:I=e,I!==e?R=dr(F):(ye=R,R=e)):(ye=R,R=e),R}function ge(){var R,F,I;return R=ye,n.length>ye?(F=n.charAt(ye),ye++):(F=e,vr===0&&pr(y)),F!==e?(I=wr(F),I?I=void 0:I=e,I!==e?R=ve(F):(ye=R,R=e)):(ye=R,R=e),R}function z(){var R,F,I;return R=ye,n.length>ye?(F=n.charAt(ye),ye++):(F=e,vr===0&&pr(y)),F!==e?(I=Or(F),I?I=void 0:I=e,I!==e?R=mr(F):(ye=R,R=e)):(ye=R,R=e),R}function he(){var R,F;return R=ye,vr++,n.length>ye?(F=n.charAt(ye),ye++):(F=e,vr===0&&pr(y)),vr--,F===e?R=void 0:(ye=R,R=e),R}function Ie(R,F){const I=[R||[]],Le=[];for(const Z of F)I.push(Z.cell||[]),Le.push(Z.colSep);return{cells:I,colSeps:Le}}if(!s.isWhitespace)try{Object.assign(s,createMatchers(["\\","hline","cr"],["&"]))}catch(R){console.warn("Error when initializing parser",R)}if(me=d(),me!==e&&ye===n.length)return me;throw me!==e&&yes?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;P!G.match(/^\s*$/))},fr=function(A){return{type:"group",content:A}},Cr=function(){return""},W=0,ne=[{line:1,column:1}],Re=0,rr=[],xe=0,Ir;if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');d=u[s.startRule]}function lr(A,G){return{type:"literal",text:A,ignoreCase:G}}function x(A,G,ae){return{type:"class",parts:A,inverted:G,ignoreCase:ae}}function J(){return{type:"any"}}function X(){return{type:"end"}}function Xe(A){var G=ne[A],ae;if(G)return G;for(ae=A-1;!ne[ae];)ae--;for(G=ne[ae],G={line:G.line,column:G.column};aeRe&&(Re=W,rr=[]),rr.push(A))}function zr(A,G,ae){return new t(t.buildMessage(A,G),A,G,ae)}function w(){var A,G,ae,Ae;for(A=W,G=[],ae=W,gt(),Ae=c(),Ae!==e?ae=R(Ae):(W=ae,ae=e);ae!==e;)G.push(ae),ae=W,gt(),Ae=c(),Ae!==e?ae=R(Ae):(W=ae,ae=e);return ae=gt(),A=F(G),A}function c(){var A,G;return A=W,n.charCodeAt(W)===43?W++:xe===0&&Te(Je),G=kr(),G===e&&(G=Ot(),G===e&&(G=V(),G===e&&(G=kn(),G===e&&(G=Qe(),G===e&&(G=qr()))))),G!==e?A=I(G):(W=A,A=e),A}function V(){var A,G,ae;return A=W,n.charCodeAt(W)===118?(G=y,W++):(G=e,xe===0&&Te(Pr)),G!==e?(n.length>W?(ae=n.charAt(W),W++):(ae=e,xe===0&&Te(vr)),ae!==e?A=Le(ae):(W=A,A=e)):(W=A,A=e),A}function Qe(){var A,G;return A=W,n.charCodeAt(W)===98?(G=T,W++):(G=e,xe===0&&Te(me)),G!==e&&(G=Z()),A=G,A}function kr(){var A,G,ae;return A=W,n.charCodeAt(W)===33?(G=K,W++):(G=e,xe===0&&Te(Se)),G===e&&(G=null),ae=ft(),ae===e&&(ae=Zr(),ae===e&&(ae=le(),ae===e&&(ae=Ft(),ae===e&&(ae=Qt())))),ae!==e?A=_e(G,ae):(W=A,A=e),A}function le(){var A,G,ae,Ae;return A=W,n.charCodeAt(W)===68?(G=v,W++):(G=e,xe===0&&Te(U)),G!==e?(ae=De(),Ae=Rt(),Ae!==e?A=Ue(ae,Ae):(W=A,A=e)):(W=A,A=e),A===e&&(A=W,n.charCodeAt(W)===100?(G=b,W++):(G=e,xe===0&&Te(Lr)),G!==e?(ae=De(),A=Be(ae)):(W=A,A=e)),A}function ft(){var A,G;return A=W,n.charCodeAt(W)===115?(G=P,W++):(G=e,xe===0&&Te(Er)),G!==e&&(G=pe()),A=G,A}function Zr(){var A,G,ae;return A=W,n.charCodeAt(W)===79?(G=fe,W++):(G=e,xe===0&&Te(pr)),G!==e?(gt(),ae=Rt(),ae!==e?A=Ur(ae):(W=A,A=e)):(W=A,A=e),A===e&&(A=W,n.charCodeAt(W)===111?(G=Fe,W++):(G=e,xe===0&&Te(or)),G!==e&&(G=br()),A=G),A}function Ft(){var A,G,ae,Ae;return A=W,n.charCodeAt(W)===101?(G=ze,W++):(G=e,xe===0&&Te(Br)),G!==e?(gt(),ae=jt(),ae!==e?A=Jr(ae):(W=A,A=e)):(W=A,A=e),A===e&&(A=W,n.charCodeAt(W)===69?(G=ce,W++):(G=e,xe===0&&Te(Wr)),G!==e?(gt(),ae=jt(),ae!==e?(gt(),Ae=jt(),Ae!==e?A=ar(ae,Ae):(W=A,A=e)):(W=A,A=e)):(W=A,A=e)),A}function Qt(){var A,G,ae;return A=W,n.charCodeAt(W)===116?(G=He,W++):(G=e,xe===0&&Te(Nr)),G!==e?(n.length>W?(ae=n.charAt(W),W++):(ae=e,xe===0&&Te(vr)),ae!==e?A=E(ae):(W=A,A=e)):(W=A,A=e),A}function kn(){var A,G,ae,Ae;return A=W,n.charCodeAt(W)===82?(G=qe,W++):(G=e,xe===0&&Te(jr)),G!==e?(ae=De(),Ae=Rt(),Ae!==e?A=C(ae,Ae):(W=A,A=e)):(W=A,A=e),A===e&&(A=W,n.charCodeAt(W)===114?(G=de,W++):(G=e,xe===0&&Te(Gr)),G!==e?(ae=De(),A=N(ae)):(W=A,A=e)),A}function qr(){var A,G,ae;return A=W,n.charCodeAt(W)===117?(G=Oe,W++):(G=e,xe===0&&Te(O)),G!==e?(ae=en(),ae!==e?A=ee(ae):(W=A,A=e)):(W=A,A=e),A}function en(){var A,G,ae;return A=W,G=W,xe++,mr.test(n.charAt(W))?(ae=n.charAt(W),W++):(ae=e,xe===0&&Te(H)),xe--,ae===e?G=void 0:(W=G,G=e),G!==e?(n.length>W?(ae=n.charAt(W),W++):(ae=e,xe===0&&Te(vr)),ae!==e?A=ie(ae):(W=A,A=e)):(W=A,A=e),A===e&&(A=W,G=mt(),G!==e&&(G=Ge(G)),A=G),A}function Ot(){var A,G;return A=W,n.charCodeAt(W)===109?(G=We,W++):(G=e,xe===0&&Te(se)),G!==e&&(G=yr()),A=G,A}function De(){var A,G,ae,Ae,Ke,Sr;return A=W,G=W,ae=W,Ae=W,xe++,Ke=h(),xe--,Ke===e?Ae=void 0:(W=Ae,Ae=e),Ae!==e?(Ke=B(),Ke===e&&(n.length>W?(Ke=n.charAt(W),W++):(Ke=e,xe===0&&Te(vr))),Ke!==e?(Ae=[Ae,Ke],ae=Ae):(W=ae,ae=e)):(W=ae,ae=e),ae===e&&(ae=null),G=n.substring(G,W),ae=W,Ae=W,Ke=W,xe++,Sr=h(),xe--,Sr===e?Ke=void 0:(W=Ke,Ke=e),Ke!==e?(Sr=B(),Sr===e&&(n.length>W?(Sr=n.charAt(W),W++):(Sr=e,xe===0&&Te(vr))),Sr!==e?(Ke=[Ke,Sr],Ae=Ke):(W=Ae,Ae=e)):(W=Ae,Ae=e),Ae===e&&(Ae=null),ae=n.substring(ae,W),A=sr(G,ae),A}function Rt(){var A,G;return A=j(),A===e&&(A=W,G=mt(),G!==e&&(G=gr(G)),A=G),A}function jt(){var A,G,ae,Ae;if(A=W,G=j(),G!==e&&(G=$r(G)),A=G,A===e)if(A=W,n.charCodeAt(W)===123?(G=Ce,W++):(G=e,xe===0&&Te(k)),G!==e){for(ae=[],Ae=Rt(),Ae===e&&(Ae=h());Ae!==e;)ae.push(Ae),Ae=Rt(),Ae===e&&(Ae=h());n.charCodeAt(W)===125?(Ae=nr,W++):(Ae=e,xe===0&&Te(q)),Ae!==e?A=_r(ae):(W=A,A=e)}else W=A,A=e;return A}function mt(){var A,G,ae,Ae,Ke,Sr,Vr,rt;if(A=W,n.charCodeAt(W)===123?(G=Ce,W++):(G=e,xe===0&&Te(k)),G!==e){for(ae=[],Ae=W,Ke=W,Sr=W,xe++,n.charCodeAt(W)===125?(Vr=nr,W++):(Vr=e,xe===0&&Te(q)),xe--,Vr===e?Sr=void 0:(W=Sr,Sr=e),Sr!==e?(Vr=W,xe++,rt=mt(),xe--,rt===e?Vr=void 0:(W=Vr,Vr=e),Vr!==e?(rt=j(),rt===e&&(rt=h()),rt!==e?(Sr=[Sr,Vr,rt],Ke=Sr):(W=Ke,Ke=e)):(W=Ke,Ke=e)):(W=Ke,Ke=e),Ke!==e?Ae=n.substring(Ae,W):Ae=Ke,Ae===e&&(Ae=mt());Ae!==e;)ae.push(Ae),Ae=W,Ke=W,Sr=W,xe++,n.charCodeAt(W)===125?(Vr=nr,W++):(Vr=e,xe===0&&Te(q)),xe--,Vr===e?Sr=void 0:(W=Sr,Sr=e),Sr!==e?(Vr=W,xe++,rt=mt(),xe--,rt===e?Vr=void 0:(W=Vr,Vr=e),Vr!==e?(rt=j(),rt===e&&(rt=h()),rt!==e?(Sr=[Sr,Vr,rt],Ke=Sr):(W=Ke,Ke=e)):(W=Ke,Ke=e)):(W=Ke,Ke=e),Ke!==e?Ae=n.substring(Ae,W):Ae=Ke,Ae===e&&(Ae=mt());n.charCodeAt(W)===125?(Ae=nr,W++):(Ae=e,xe===0&&Te(q)),Ae!==e?A=fr(ae):(W=A,A=e)}else W=A,A=e;return A}function gt(){var A,G,ae;for(A=W,G=[],ae=h();ae!==e;)G.push(ae),ae=h();return G=Cr(),A=G,A}function h(){var A;return n.charCodeAt(W)===32?(A=dr,W++):(A=e,xe===0&&Te(Y)),A===e&&(n.charCodeAt(W)===10?(A=wr,W++):(A=e,xe===0&&Te(ue)),A===e&&(n.charCodeAt(W)===13?(A=ve,W++):(A=e,xe===0&&Te(ge)))),A}function B(){var A,G,ae,Ae,Ke;if(A=W,G=W,n.charCodeAt(W)===92?(ae=Or,W++):(ae=e,xe===0&&Te(z)),ae!==e){if(Ae=[],ye.test(n.charAt(W))?(Ke=n.charAt(W),W++):(Ke=e,xe===0&&Te(he)),Ke!==e)for(;Ke!==e;)Ae.push(Ke),ye.test(n.charAt(W))?(Ke=n.charAt(W),W++):(Ke=e,xe===0&&Te(he));else Ae=e;Ae!==e?(ae=[ae,Ae],G=ae):(W=G,G=e)}else W=G,G=e;return G!==e?A=n.substring(A,W):A=G,A===e&&(A=W,G=W,n.charCodeAt(W)===92?(ae=Or,W++):(ae=e,xe===0&&Te(z)),ae!==e?(Ae=W,xe++,ye.test(n.charAt(W))?(Ke=n.charAt(W),W++):(Ke=e,xe===0&&Te(he)),xe--,Ke===e?Ae=void 0:(W=Ae,Ae=e),Ae!==e?(n.length>W?(Ke=n.charAt(W),W++):(Ke=e,xe===0&&Te(vr)),Ke!==e?(ae=[ae,Ae,Ke],G=ae):(W=G,G=e)):(W=G,G=e)):(W=G,G=e),G!==e?A=n.substring(A,W):A=G),A}function j(){var A,G,ae,Ae;return A=B(),A===e&&(A=W,G=W,xe++,Ye.test(n.charAt(W))?(ae=n.charAt(W),W++):(ae=e,xe===0&&Te(Ie)),xe--,ae===e?G=void 0:(W=G,G=e),G!==e?(ae=W,xe++,Ae=h(),xe--,Ae===e?ae=void 0:(W=ae,ae=e),ae!==e?(n.length>W?(Ae=n.charAt(W),W++):(Ae=e,xe===0&&Te(vr)),Ae!==e?A=Ae:(W=A,A=e)):(W=A,A=e)):(W=A,A=e)),A}const we={optional:{openBrace:"[",closeBrace:"]"},mandatory:{openBrace:"{",closeBrace:"}"}};function $e(A,G){const ae=we[A]||{};return{type:A,...ae,...G}}function ke(A){return typeof A!="object"||!A?A:A.type==="group"?`{${A.content.map(ke).join("")}}`:A}if(Ir=d(),Ir!==e&&W===n.length)return Ir;throw Ir!==e&&Ws?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;P0}},qe=function(C){return{whitespace:C.filter(N=>s.isWhitespace(N)).length,parbreak:C.filter(N=>s.isParbreak(N)).length}},de=function(){return!s.allowParenGroups},Oe=function(C){return s.isSameLineComment(C)},We=function(C){return C},Ce=function(C){return s.isOwnLineComment(C)},nr=function(C){return C},dr=function(C){return s.isWhitespace(C)},wr=function(C){return C},ve=function(C){return s.isParbreak(C)},Or=function(C){return C},mr=function(C){return s.isComma(C)},ye=function(C){return C},Ye=function(C){return s.isEquals(C)},Je=function(C){return C},Pr=function(C){return s.isChar(C,"(")},vr=function(C){return C},me=function(C){return s.isChar(C,")")},Se=function(C){return C},U=0,Lr=[{line:1,column:1}],Er=0,pr=[],or=0,Br;if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');d=u[s.startRule]}function Wr(){return{type:"any"}}function Nr(){return{type:"end"}}function jr(C){var N=Lr[C],ee;if(N)return N;for(ee=C-1;!Lr[ee];)ee--;for(N=Lr[ee],N={line:N.line,column:N.column};eeEr&&(Er=U,pr=[]),pr.push(C))}function H(C,N,ee){return new t(t.buildMessage(C,N),C,N,ee)}function se(){var C,N,ee;if(C=[],N=he(),N===e&&(N=k(),N===e&&(N=q())),N!==e)for(;N!==e;)C.push(N),N=he(),N===e&&(N=k(),N===e&&(N=q()));else C=e;if(C===e){for(C=U,N=[],ee=Ue();ee!==e;)N.push(ee),ee=Ue();ee=ar(),ee!==e?C=T():(U=C,C=e)}return C}function k(){var C,N,ee,ie,Ge,yr,sr;if(C=U,I(),N=Y(),N===e&&(N=null),I(),ee=pe(),ee!==e){for(ie=[],Ge=Ue();Ge!==e;)ie.push(Ge),Ge=Ue();for(Ge=z(),Ge===e&&(Ge=null),yr=[],sr=Ue();sr!==e;)yr.push(sr),sr=Ue();C=K(N,Ge)}else U=C,C=e;return C}function q(){var C,N,ee;return C=U,I(),N=Y(),N!==e?(ee=z(),ee===e&&(ee=null),C=v(N,ee)):(U=C,C=e),C}function Y(){var C,N,ee,ie;if(C=U,N=ge(),N!==e){for(ee=[],ie=ue();ie!==e;)ee.push(ie),ie=ue();C=b(N,ee)}else U=C,C=e;if(C===e){if(C=U,N=[],ee=ue(),ee!==e)for(;ee!==e;)N.push(ee),ee=ue();else N=e;N!==e&&(N=P(N)),C=N}return C}function ue(){var C,N,ee,ie,Ge;for(C=U,N=[],ee=Be();ee!==e;)N.push(ee),ee=Be();if(ee=Ur(),ee!==e){for(ie=[],Ge=Be();Ge!==e;)ie.push(Ge),Ge=Be();Ge=ge(),Ge!==e?C=fe(Ge):(U=C,C=e)}else U=C,C=e;if(C===e){for(C=U,N=[],ee=Be();ee!==e;)N.push(ee),ee=Be();ee=Ur(),ee!==e?C=Fe():(U=C,C=e)}return C}function ge(){var C,N,ee,ie,Ge,yr,sr,gr,$r,_r;for(C=U,N=[],ee=Ue();ee!==e;)N.push(ee),ee=Ue();if(ee=U,ie=[],Ge=R(),Ge===e)if(Ge=U,yr=Ue(),yr===e&&(yr=Be()),yr!==e){for(sr=U,or++,gr=U,$r=[],_r=Ue(),_r===e&&(_r=Be());_r!==e;)$r.push(_r),_r=Ue(),_r===e&&(_r=Be());_r=R(),_r!==e?($r=[$r,_r],gr=$r):(U=gr,gr=e),or--,gr!==e?(U=sr,sr=void 0):sr=e,sr!==e?(yr=[yr,sr],Ge=yr):(U=Ge,Ge=e)}else U=Ge,Ge=e;if(Ge!==e){for(;Ge!==e;)if(ie.push(Ge),Ge=R(),Ge===e)if(Ge=U,yr=Ue(),yr===e&&(yr=Be()),yr!==e){for(sr=U,or++,gr=U,$r=[],_r=Ue(),_r===e&&(_r=Be());_r!==e;)$r.push(_r),_r=Ue(),_r===e&&(_r=Be());_r=R(),_r!==e?($r=[$r,_r],gr=$r):(U=gr,gr=e),or--,gr!==e?(U=sr,sr=void 0):sr=e,sr!==e?(yr=[yr,sr],Ge=yr):(U=Ge,Ge=e)}else U=Ge,Ge=e}else ie=e;if(ie!==e?ee=n.substring(ee,U):ee=ie,ee!==e){for(ie=[],Ge=Ue();Ge!==e;)ie.push(Ge),Ge=Ue();C=ze(ee)}else U=C,C=e;return C}function z(){var C,N,ee;for(C=U,N=[],ee=Ue();ee!==e;)N.push(ee),ee=Ue();return ee=Z(),ee!==e?C=ce(ee):(U=C,C=e),C}function he(){var C,N,ee;return C=U,N=I(),ee=_e(),ee!==e?C=He(N,ee):(U=C,C=e),C}function Ie(){var C,N,ee,ie;return C=U,N=U,ee=U,or++,ie=F(),or--,ie===e?ee=void 0:(U=ee,ee=e),ee!==e?(n.length>U?(ie=n.charAt(U),U++):(ie=e,or===0&&O(y)),ie!==e?(ee=[ee,ie],N=ee):(U=N,N=e)):(U=N,N=e),N!==e?C=n.substring(C,U):C=N,C}function R(){var C,N,ee,ie;return C=U,N=U,ee=U,or++,ie=Ue(),ie===e&&(ie=Be()),or--,ie===e?ee=void 0:(U=ee,ee=e),ee!==e?(ie=Le(),ie===e&&(ie=Ie()),ie!==e?(ee=[ee,ie],N=ee):(U=N,N=e)):(U=N,N=e),N!==e?C=n.substring(C,U):C=N,C}function F(){var C;return C=pe(),C===e&&(C=Ur(),C===e&&(C=z(),C===e&&(C=_e()))),C}function I(){var C,N,ee;for(C=U,N=[],ee=Ue(),ee===e&&(ee=Be());ee!==e;)N.push(ee),ee=Ue(),ee===e&&(ee=Be());return N=qe(N),C=N,C}function Le(){var C,N,ee,ie,Ge,yr,sr,gr,$r;if(C=U,N=de(),N?N=e:N=void 0,N!==e){if(ee=U,ie=U,Ge=br(),Ge!==e){for(yr=[],sr=U,gr=U,or++,$r=Jr(),or--,$r===e?gr=void 0:(U=gr,gr=e),gr!==e?(n.length>U?($r=n.charAt(U),U++):($r=e,or===0&&O(y)),$r!==e?(gr=[gr,$r],sr=gr):(U=sr,sr=e)):(U=sr,sr=e);sr!==e;)yr.push(sr),sr=U,gr=U,or++,$r=Jr(),or--,$r===e?gr=void 0:(U=gr,gr=e),gr!==e?(n.length>U?($r=n.charAt(U),U++):($r=e,or===0&&O(y)),$r!==e?(gr=[gr,$r],sr=gr):(U=sr,sr=e)):(U=sr,sr=e);sr=Jr(),sr!==e?(Ge=[Ge,yr,sr],ie=Ge):(U=ie,ie=e)}else U=ie,ie=e;ie!==e?ee=n.substring(ee,U):ee=ie,ee!==e?(N=[N,ee],C=N):(U=C,C=e)}else U=C,C=e;return C}function Z(){var C,N,ee;return C=U,n.length>U?(N=n.charAt(U),U++):(N=e,or===0&&O(y)),N!==e?(ee=Oe(N),ee?ee=void 0:ee=e,ee!==e?C=We(N):(U=C,C=e)):(U=C,C=e),C}function _e(){var C,N,ee;return C=U,n.length>U?(N=n.charAt(U),U++):(N=e,or===0&&O(y)),N!==e?(ee=Ce(N),ee?ee=void 0:ee=e,ee!==e?C=nr(N):(U=C,C=e)):(U=C,C=e),C}function Ue(){var C,N,ee;return C=U,n.length>U?(N=n.charAt(U),U++):(N=e,or===0&&O(y)),N!==e?(ee=dr(N),ee?ee=void 0:ee=e,ee!==e?C=wr(N):(U=C,C=e)):(U=C,C=e),C}function Be(){var C,N,ee;return C=U,n.length>U?(N=n.charAt(U),U++):(N=e,or===0&&O(y)),N!==e?(ee=ve(N),ee?ee=void 0:ee=e,ee!==e?C=Or(N):(U=C,C=e)):(U=C,C=e),C}function pe(){var C,N,ee;return C=U,n.length>U?(N=n.charAt(U),U++):(N=e,or===0&&O(y)),N!==e?(ee=mr(N),ee?ee=void 0:ee=e,ee!==e?C=ye(N):(U=C,C=e)):(U=C,C=e),C}function Ur(){var C,N,ee;return C=U,n.length>U?(N=n.charAt(U),U++):(N=e,or===0&&O(y)),N!==e?(ee=Ye(N),ee?ee=void 0:ee=e,ee!==e?C=Je(N):(U=C,C=e)):(U=C,C=e),C}function br(){var C,N,ee;return C=U,n.length>U?(N=n.charAt(U),U++):(N=e,or===0&&O(y)),N!==e?(ee=Pr(N),ee?ee=void 0:ee=e,ee!==e?C=vr(N):(U=C,C=e)):(U=C,C=e),C}function Jr(){var C,N,ee;return C=U,n.length>U?(N=n.charAt(U),U++):(N=e,or===0&&O(y)),N!==e?(ee=me(N),ee?ee=void 0:ee=e,ee!==e?C=Se(N):(U=C,C=e)):(U=C,C=e),C}function ar(){var C,N;return C=U,or++,n.length>U?(N=n.charAt(U),U++):(N=e,or===0&&O(y)),or--,N===e?C=void 0:(U=C,C=e),C}function E(C,N){const ee=[C||[]];for(const ie of N)ee.push(ie.cell||[]);return{itemParts:ee}}if(!s.isWhitespace)try{Object.assign(s,{isChar:(C,N)=>C.type==="string"&&C.content===N,isComma(C){return C.type==="string"&&C.content===","},isEquals(C){return C.type==="string"&&C.content==="="},isParbreak(C){return C.type==="parbreak"},isWhitespace(C){return C.type==="whitespace"},isSameLineComment:C=>C.type==="comment"&&C.sameline,isOwnLineComment:C=>C.type==="comment"&&!C.sameline,isComment:C=>C.type==="comment",allowParenGroups:!0})}catch(C){console.warn("Error when initializing parser",C)}if(Br=d(),Br!==e&&U===n.length)return Br;throw Br!==e&&Us?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;P!!Se)},K=function(){return[]},v=function(me){return s.isHash(me)},b=function(me){return me},P=function(me){return s.isNumber(me)},fe=function(me){return me},Fe=function(){return{type:"string",content:"#"}},ze=function(me){const Se=s.splitNumber(me);return[{type:"hash_number",number:Se.number},Se.rest]},ce=0,He=[{line:1,column:1}],qe=0,de=[],Oe=0,We;if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');d=u[s.startRule]}function Ce(){return{type:"any"}}function nr(){return{type:"end"}}function dr(me){var Se=He[me],U;if(Se)return Se;for(U=me-1;!He[U];)U--;for(Se=He[U],Se={line:Se.line,column:Se.column};Uqe&&(qe=ce,de=[]),de.push(me))}function Or(me,Se,U){return new t(t.buildMessage(me,Se),me,Se,U)}function mr(){var me,Se,U;if(me=ce,Se=[],U=Je(),U===e&&(U=Pr(),U===e&&(n.length>ce?(U=n.charAt(ce),ce++):(U=e,Oe===0&&ve(y)))),U!==e)for(;U!==e;)Se.push(U),U=Je(),U===e&&(U=Pr(),U===e&&(n.length>ce?(U=n.charAt(ce),ce++):(U=e,Oe===0&&ve(y))));else Se=e;return Se!==e&&(Se=T(Se)),me=Se,me===e&&(me=ce,Se=vr(),Se!==e&&(Se=K()),me=Se),me}function ye(){var me,Se,U;return me=ce,n.length>ce?(Se=n.charAt(ce),ce++):(Se=e,Oe===0&&ve(y)),Se!==e?(U=v(Se),U?U=void 0:U=e,U!==e?me=b(Se):(ce=me,me=e)):(ce=me,me=e),me}function Ye(){var me,Se,U;return me=ce,n.length>ce?(Se=n.charAt(ce),ce++):(Se=e,Oe===0&&ve(y)),Se!==e?(U=P(Se),U?U=void 0:U=e,U!==e?me=fe(Se):(ce=me,me=e)):(ce=me,me=e),me}function Je(){var me,Se,U;return me=ce,Se=ye(),Se!==e?(U=ye(),U!==e?me=Fe():(ce=me,me=e)):(ce=me,me=e),me}function Pr(){var me,Se,U;return me=ce,Se=ye(),Se!==e?(U=Ye(),U!==e?me=ze(U):(ce=me,me=e)):(ce=me,me=e),me}function vr(){var me,Se;return me=ce,Oe++,n.length>ce?(Se=n.charAt(ce),ce++):(Se=e,Oe===0&&ve(y)),Oe--,Se===e?me=void 0:(ce=me,me=e),me}if(!s.isHash)try{Object.assign(s,{isHash:me=>me.type==="string"&&me.content==="#",isNumber:me=>me.type==="string"&&0<+me.content.charAt(0),splitNumber:me=>{const Se=+me.content.charAt(0);return me.content.length>1?{number:Se,rest:{type:"string",content:me.content.slice(1)}}:{number:Se}}})}catch(me){console.warn("Error when initializing parser",me)}if(We=d(),We!==e&&ce===n.length)return We;throw We!==e&&ces?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;P!!q)},K=function(){return[]},v=function(k){return s.isRecognized(k)},b=function(k){return s.isRecognized(k)},P=function(k,q){const Y=s.split(q);return s.isRecognized([k,Y[0]])},fe=function(k,q){const Y=s.split(q);return[s.isRecognized([k,Y[0]]),Y[1]]},Fe=function(k,q){return s.isRecognized([k,q])},ze=function(k,q){return s.isRecognized([k,q])},ce=function(k){return s.isRecognized(k)},He=function(k){return s.isRecognized(k)},qe=function(k){return s.isRecognized([k])},de=function(k){return s.isRecognized([k])},Oe=function(k){return s.isMacro(k)},We=function(k){return k},Ce=function(k){return s.isWhitespace(k)},nr=function(k){return k},dr=function(k){return s.isSplitable(k)},wr=function(k){return k},ve=0,Or=[{line:1,column:1}],mr=0,ye=[],Ye=0,Je;if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');d=u[s.startRule]}function Pr(){return{type:"any"}}function vr(){return{type:"end"}}function me(k){var q=Or[k],Y;if(q)return q;for(Y=k-1;!Or[Y];)Y--;for(q=Or[Y],q={line:q.line,column:q.column};Ymr&&(mr=ve,ye=[]),ye.push(k))}function Lr(k,q,Y){return new t(t.buildMessage(k,q),k,q,Y)}function Er(){var k,q,Y;if(k=ve,q=[],Y=pr(),Y===e&&(Y=or(),Y===e&&(Y=jr(),Y===e&&(n.length>ve?(Y=n.charAt(ve),ve++):(Y=e,Ye===0&&U(y))))),Y!==e)for(;Y!==e;)q.push(Y),Y=pr(),Y===e&&(Y=or(),Y===e&&(Y=jr(),Y===e&&(n.length>ve?(Y=n.charAt(ve),ve++):(Y=e,Ye===0&&U(y)))));else q=e;return q!==e&&(q=T(q)),k=q,k===e&&(k=ve,q=se(),q!==e&&(q=K()),k=q),k}function pr(){var k,q,Y,ue,ge;return k=ve,q=ve,n.length>ve?(Y=n.charAt(ve),ve++):(Y=e,Ye===0&&U(y)),Y!==e?(n.length>ve?(ue=n.charAt(ve),ve++):(ue=e,Ye===0&&U(y)),ue!==e?(n.length>ve?(ge=n.charAt(ve),ve++):(ge=e,Ye===0&&U(y)),ge!==e?(Y=[Y,ue,ge],q=Y):(ve=q,q=e)):(ve=q,q=e)):(ve=q,q=e),q!==e?(Y=v(q),Y?Y=void 0:Y=e,Y!==e?k=b(q):(ve=k,k=e)):(ve=k,k=e),k}function or(){var k;return k=Wr(),k===e&&(k=Br(),k===e&&(k=Nr())),k}function Br(){var k,q,Y,ue,ge;if(k=ve,q=Gr(),q!==e){for(Y=[],ue=O();ue!==e;)Y.push(ue),ue=O();ue=H(),ue!==e?(ge=P(q,ue),ge?ge=void 0:ge=e,ge!==e?k=fe(q,ue):(ve=k,k=e)):(ve=k,k=e)}else ve=k,k=e;return k}function Wr(){var k,q,Y,ue,ge;if(k=ve,q=Gr(),q!==e){for(Y=[],ue=O();ue!==e;)Y.push(ue),ue=O();n.length>ve?(ue=n.charAt(ve),ve++):(ue=e,Ye===0&&U(y)),ue!==e?(ge=Fe(q,ue),ge?ge=void 0:ge=e,ge!==e?k=ze(q,ue):(ve=k,k=e)):(ve=k,k=e)}else ve=k,k=e;return k}function Nr(){var k,q,Y,ue;return k=ve,q=ve,n.length>ve?(Y=n.charAt(ve),ve++):(Y=e,Ye===0&&U(y)),Y!==e?(n.length>ve?(ue=n.charAt(ve),ve++):(ue=e,Ye===0&&U(y)),ue!==e?(Y=[Y,ue],q=Y):(ve=q,q=e)):(ve=q,q=e),q!==e?(Y=ce(q),Y?Y=void 0:Y=e,Y!==e?k=He(q):(ve=k,k=e)):(ve=k,k=e),k}function jr(){var k,q,Y;return k=ve,n.length>ve?(q=n.charAt(ve),ve++):(q=e,Ye===0&&U(y)),q!==e?(Y=qe(q),Y?Y=void 0:Y=e,Y!==e?k=de(q):(ve=k,k=e)):(ve=k,k=e),k}function Gr(){var k,q,Y;return k=ve,n.length>ve?(q=n.charAt(ve),ve++):(q=e,Ye===0&&U(y)),q!==e?(Y=Oe(q),Y?Y=void 0:Y=e,Y!==e?k=We(q):(ve=k,k=e)):(ve=k,k=e),k}function O(){var k,q,Y;return k=ve,n.length>ve?(q=n.charAt(ve),ve++):(q=e,Ye===0&&U(y)),q!==e?(Y=Ce(q),Y?Y=void 0:Y=e,Y!==e?k=nr(q):(ve=k,k=e)):(ve=k,k=e),k}function H(){var k,q,Y;return k=ve,n.length>ve?(q=n.charAt(ve),ve++):(q=e,Ye===0&&U(y)),q!==e?(Y=dr(q),Y?Y=void 0:Y=e,Y!==e?k=wr(q):(ve=k,k=e)):(ve=k,k=e),k}function se(){var k,q;return k=ve,Ye++,n.length>ve?(q=n.charAt(ve),ve++):(q=e,Ye===0&&U(y)),Ye--,q===e?k=void 0:(ve=k,k=e),k}if(!s.isWhitespace)try{Object.assign(s,{isMacro:k=>k.type==="macro",isWhitespace:k=>k.type==="whitespace",isRecognized:k=>k.length==2&&k[0].content==="^"&&k[1].content==="o"?{type:"string",content:"ô"}:null,isSplitable:k=>k.type==="string"&&k.content.length>1,split:k=>[{type:"string",content:k.content.charAt(0)},{type:"string",content:k.content.slice(1)}]})}catch(k){console.warn("Error when initializing parser",k)}if(Je=d(),Je!==e&&ve===n.length)return Je;throw Je!==e&&ves?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;P",P="!",fe=".",Fe="!![",ze="]",ce="!!",He="+",qe="-",de=/^[a-zA-Z0-9]/,Oe=/^[0-9]/,We=/^[ \t\n\r]/,Ce=/^[0-9a-fA-F]/,nr=Qt(),dr=Zr(";",!1),wr=Zr(",",!1),ve=qr("model list"),Or=Zr(":",!1),mr=Zr("/",!1),ye=qr("model"),Ye=qr("color spec list"),Je=qr("color spec"),Pr=qr("color"),vr=qr("function expression"),me=Zr(">",!1),Se=qr("function"),U=qr("extended expression"),Lr=qr("core model"),Er=qr("expr"),pr=Zr("!",!1),or=qr("mix expr"),Br=qr("name"),Wr=Zr(".",!1),Nr=Ft([["a","z"],["A","Z"],["0","9"]],!1,!1),jr=qr("postfix"),Gr=Zr("!![",!1),O=Zr("]",!1),H=Zr("!!",!1),se=qr("prefix"),k=qr("plus"),q=Zr("+",!1),Y=qr("minus"),ue=Zr("-",!1),ge=qr("num"),z=Ft([["0","9"]],!1,!1),he=qr("positive float"),Ie=qr("divisor"),R=qr("int"),F=Ft([" "," ",` +`,"\r"],!1,!1),I=Ft([["0","9"],["a","f"],["A","F"]],!1,!1),Le=function(m){return m},Z=function(m){return m},_e=function(m){return m},Ue=function(m){return m},Be=function(m){return m},pe=function(m){return{type:"invalid_spec",content:m}},Ur=function(m,M){return M},br=function(m,M){return{type:"color_set",content:[m].concat(M)}},Jr=function(m,M){return{type:"color_set_item",name:m,spec_list:M}},ar=function(m,M){return{type:"model_list",contents:M,core_model:m}},E=function(m){return{type:"model_list",contents:m,core_model:null}},C=function(m,M){return M},N=function(m,M){return[m].concat(M)},ee=function(m,M){return M},ie=function(m,M){return{type:"spec_list",content:[m].concat(M)}},Ge=function(m){return{type:"hex_spec",content:[m]}},yr=function(m,M){return M},sr=function(m,M){return M},gr=function(m,M){return{type:"num_spec",content:M?[m].concat(M):[m]}},$r=function(m,M){return{type:"color",color:m,functions:M}},_r=function(m,M){return M},fr=function(m,M){return{type:"function",name:m,args:M}},Cr=function(m,M,Q,te){return{type:"extended_expr",core_model:m,div:M,expressions:[Q].concat(te)}},W=function(m,M,Q){return{type:"extended_expr",core_model:m,div:null,expressions:[M].concat(Q)}},ne=function(m,M){return{type:"weighted_expr",color:m,weight:M}},Re=function(m){return m},rr=function(m,M,Q,te){return{type:"expr",prefix:m,name:M,mix_expr:Q,postfix:te}},xe=function(m,M){return{type:"complete_mix",mix_percent:m,name:M}},Ir=function(m){return{type:"partial_mix",mix_percent:m}},lr=function(m,M){return m.concat(M||[])},x=function(m){return{type:"postfix",num:m}},J=function(m){return{type:"postfix",plusses:m}},X=function(m){return parseInt(m,10)},Xe=function(m){return parseFloat(m)},ir=function(m){return m},Te=function(m){return-m},zr=function(m,M){return m?-M:M},w=function(m){return m.toUpperCase()},c=0,V=[{line:1,column:1}],Qe=0,kr=[],le=0,ft;if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');d=u[s.startRule]}function Zr(m,M){return{type:"literal",text:m,ignoreCase:M}}function Ft(m,M,Q){return{type:"class",parts:m,inverted:M,ignoreCase:Q}}function Qt(){return{type:"any"}}function kn(){return{type:"end"}}function qr(m){return{type:"other",description:m}}function en(m){var M=V[m],Q;if(M)return M;for(Q=m-1;!V[Q];)Q--;for(M=V[Q],M={line:M.line,column:M.column};QQe&&(Qe=c,kr=[]),kr.push(m))}function Rt(m,M,Q){return new t(t.buildMessage(m,M),m,M,Q)}function jt(){var m,M,Q,te;if(m=c,M=$e(),M!==e?(Q=Cn(),Q!==e?m=Le(M):(c=m,m=e)):(c=m,m=e),m===e&&(m=c,M=we(),M!==e?(Q=Cn(),Q!==e?m=Z(M):(c=m,m=e)):(c=m,m=e),m===e&&(m=c,M=ke(),M!==e?(Q=Cn(),Q!==e?m=_e(M):(c=m,m=e)):(c=m,m=e),m===e&&(m=c,M=h(),M!==e?(Q=Cn(),Q!==e?m=Ue(M):(c=m,m=e)):(c=m,m=e),m===e&&(m=c,M=mt(),M!==e?(Q=Cn(),Q!==e?m=Be(M):(c=m,m=e)):(c=m,m=e),m===e))))){for(m=c,M=c,Q=[],n.length>c?(te=n.charAt(c),c++):(te=e,le===0&&De(nr));te!==e;)Q.push(te),n.length>c?(te=n.charAt(c),c++):(te=e,le===0&&De(nr));M=n.substring(M,c),M=pe(M),m=M}return m}function mt(){var m,M,Q,te,Pe,Ne;if(m=c,M=gt(),M!==e){for(Q=[],te=c,n.charCodeAt(c)===59?(Pe=y,c++):(Pe=e,le===0&&De(dr)),Pe!==e?(Ne=gt(),Ne!==e?te=Ur(M,Ne):(c=te,te=e)):(c=te,te=e);te!==e;)Q.push(te),te=c,n.charCodeAt(c)===59?(Pe=y,c++):(Pe=e,le===0&&De(dr)),Pe!==e?(Ne=gt(),Ne!==e?te=Ur(M,Ne):(c=te,te=e)):(c=te,te=e);m=br(M,Q)}else c=m,m=e;return m}function gt(){var m,M,Q,te;return m=c,M=rn(),M!==e?(n.charCodeAt(c)===44?(Q=T,c++):(Q=e,le===0&&De(wr)),Q!==e?(te=we(),te!==e?m=Jr(M,te):(c=m,m=e)):(c=m,m=e)):(c=m,m=e),m}function h(){var m,M,Q,te;return le++,m=c,M=Vr(),M!==e?(n.charCodeAt(c)===58?(Q=K,c++):(Q=e,le===0&&De(Or)),Q!==e?(te=B(),te!==e?m=ar(M,te):(c=m,m=e)):(c=m,m=e)):(c=m,m=e),m===e&&(m=c,M=B(),M!==e&&(M=E(M)),m=M),le--,m===e&&(M=e,le===0&&De(ve)),m}function B(){var m,M,Q,te,Pe,Ne;if(m=c,M=j(),M!==e){for(Q=[],te=c,n.charCodeAt(c)===47?(Pe=v,c++):(Pe=e,le===0&&De(mr)),Pe!==e?(Ne=j(),Ne!==e?te=C(M,Ne):(c=te,te=e)):(c=te,te=e);te!==e;)Q.push(te),te=c,n.charCodeAt(c)===47?(Pe=v,c++):(Pe=e,le===0&&De(mr)),Pe!==e?(Ne=j(),Ne!==e?te=C(M,Ne):(c=te,te=e)):(c=te,te=e);m=N(M,Q)}else c=m,m=e;return m}function j(){var m;return le++,m=Vr(),le--,m===e&&le===0&&De(ye),m}function we(){var m,M,Q,te,Pe,Ne;if(le++,m=c,M=$e(),M!==e){for(Q=[],te=c,n.charCodeAt(c)===47?(Pe=v,c++):(Pe=e,le===0&&De(mr)),Pe!==e?(Ne=$e(),Ne!==e?te=ee(M,Ne):(c=te,te=e)):(c=te,te=e);te!==e;)Q.push(te),te=c,n.charCodeAt(c)===47?(Pe=v,c++):(Pe=e,le===0&&De(mr)),Pe!==e?(Ne=$e(),Ne!==e?te=ee(M,Ne):(c=te,te=e)):(c=te,te=e);m=ie(M,Q)}else c=m,m=e;return le--,m===e&&(M=e,le===0&&De(Ye)),m}function $e(){var m,M,Q,te,Pe,Ne,Rr,ut,on;if(le++,m=c,M=c,Q=c,te=sn(),te!==e?(Pe=sn(),Pe!==e?(Ne=sn(),Ne!==e?(Rr=sn(),Rr!==e?(ut=sn(),ut!==e?(on=sn(),on!==e?(te=[te,Pe,Ne,Rr,ut,on],Q=te):(c=Q,Q=e)):(c=Q,Q=e)):(c=Q,Q=e)):(c=Q,Q=e)):(c=Q,Q=e)):(c=Q,Q=e),Q!==e?M=n.substring(M,c):M=Q,M!==e&&(M=Ge(M)),m=M,m===e)if(m=c,M=nn(),M!==e){if(Q=[],te=c,n.charCodeAt(c)===44?(Pe=T,c++):(Pe=e,le===0&&De(wr)),Pe!==e?(Ne=nn(),Ne!==e?te=yr(M,Ne):(c=te,te=e)):(c=te,te=e),te!==e)for(;te!==e;)Q.push(te),te=c,n.charCodeAt(c)===44?(Pe=T,c++):(Pe=e,le===0&&De(wr)),Pe!==e?(Ne=nn(),Ne!==e?te=yr(M,Ne):(c=te,te=e)):(c=te,te=e);else Q=e;if(Q===e)if(Q=[],te=c,Pe=bi(),Pe!==e?(Ne=nn(),Ne!==e?te=sr(M,Ne):(c=te,te=e)):(c=te,te=e),te!==e)for(;te!==e;)Q.push(te),te=c,Pe=bi(),Pe!==e?(Ne=nn(),Ne!==e?te=sr(M,Ne):(c=te,te=e)):(c=te,te=e);else Q=e;Q===e&&(Q=null),m=gr(M,Q)}else c=m,m=e;return le--,m===e&&(M=e,le===0&&De(Je)),m}function ke(){var m,M,Q,te;if(le++,m=c,M=A(),M!==e){for(Q=[],te=G();te!==e;)Q.push(te),te=G();m=$r(M,Q)}else c=m,m=e;return le--,m===e&&(M=e,le===0&&De(Pr)),m}function A(){var m;return m=Ae(),m===e&&(m=rt(),m===e&&(m=rn())),m}function G(){var m,M,Q,te,Pe,Ne,Rr;if(le++,m=c,n.charCodeAt(c)===62?(M=b,c++):(M=e,le===0&&De(me)),M!==e)if(Q=ae(),Q!==e){for(te=[],Pe=c,n.charCodeAt(c)===44?(Ne=T,c++):(Ne=e,le===0&&De(wr)),Ne!==e?(Rr=vi(),Rr!==e?Pe=_r(Q,Rr):(c=Pe,Pe=e)):(c=Pe,Pe=e);Pe!==e;)te.push(Pe),Pe=c,n.charCodeAt(c)===44?(Ne=T,c++):(Ne=e,le===0&&De(wr)),Ne!==e?(Rr=vi(),Rr!==e?Pe=_r(Q,Rr):(c=Pe,Pe=e)):(c=Pe,Pe=e);m=fr(Q,te)}else c=m,m=e;else c=m,m=e;return le--,m===e&&(M=e,le===0&&De(vr)),m}function ae(){var m;return le++,m=rn(),le--,m===e&&le===0&&De(Se),m}function Ae(){var m,M,Q,te,Pe,Ne,Rr,ut;if(le++,m=c,M=Vr(),M!==e)if(n.charCodeAt(c)===44?(Q=T,c++):(Q=e,le===0&&De(wr)),Q!==e)if(te=ms(),te!==e)if(n.charCodeAt(c)===58?(Pe=K,c++):(Pe=e,le===0&&De(Or)),Pe!==e)if(Ne=Ke(),Ne!==e){for(Rr=[],ut=Sr();ut!==e;)Rr.push(ut),ut=Sr();m=Cr(M,te,Ne,Rr)}else c=m,m=e;else c=m,m=e;else c=m,m=e;else c=m,m=e;else c=m,m=e;if(m===e)if(m=c,M=Vr(),M!==e)if(n.charCodeAt(c)===58?(Q=K,c++):(Q=e,le===0&&De(Or)),Q!==e)if(te=Ke(),te!==e){for(Pe=[],Ne=Sr();Ne!==e;)Pe.push(Ne),Ne=Sr();m=W(M,te,Pe)}else c=m,m=e;else c=m,m=e;else c=m,m=e;return le--,m===e&&(M=e,le===0&&De(U)),m}function Ke(){var m,M,Q,te;return m=c,M=rt(),M!==e?(n.charCodeAt(c)===44?(Q=T,c++):(Q=e,le===0&&De(wr)),Q!==e?(te=nn(),te!==e?m=ne(M,te):(c=m,m=e)):(c=m,m=e)):(c=m,m=e),m}function Sr(){var m,M,Q;return m=c,n.charCodeAt(c)===59?(M=y,c++):(M=e,le===0&&De(dr)),M!==e?(Q=Ke(),Q!==e?m=Re(Q):(c=m,m=e)):(c=m,m=e),m}function Vr(){var m;return le++,m=rn(),le--,m===e&&le===0&&De(Lr),m}function rt(){var m,M,Q,te,Pe;return le++,m=c,M=ds(),Q=rn(),Q!==e?(te=ps(),Pe=hs(),Pe===e&&(Pe=null),m=rr(M,Q,te,Pe)):(c=m,m=e),le--,m===e&&(M=e,le===0&&De(Er)),m}function hi(){var m,M,Q,te,Pe;return m=c,n.charCodeAt(c)===33?(M=P,c++):(M=e,le===0&&De(pr)),M!==e?(Q=tn(),Q!==e?(n.charCodeAt(c)===33?(te=P,c++):(te=e,le===0&&De(pr)),te!==e?(Pe=rn(),Pe!==e?m=xe(Q,Pe):(c=m,m=e)):(c=m,m=e)):(c=m,m=e)):(c=m,m=e),m}function gs(){var m,M,Q;return m=c,n.charCodeAt(c)===33?(M=P,c++):(M=e,le===0&&De(pr)),M!==e?(Q=tn(),Q!==e?m=Ir(Q):(c=m,m=e)):(c=m,m=e),m}function ps(){var m,M,Q;for(le++,m=c,M=[],Q=hi();Q!==e;)M.push(Q),Q=hi();return Q=gs(),Q===e&&(Q=null),m=lr(M,Q),le--,M=e,le===0&&De(or),m}function rn(){var m,M,Q;if(le++,n.charCodeAt(c)===46?(m=fe,c++):(m=e,le===0&&De(Wr)),m===e){if(m=c,M=[],de.test(n.charAt(c))?(Q=n.charAt(c),c++):(Q=e,le===0&&De(Nr)),Q!==e)for(;Q!==e;)M.push(Q),de.test(n.charAt(c))?(Q=n.charAt(c),c++):(Q=e,le===0&&De(Nr));else M=e;M!==e?m=n.substring(m,c):m=M}return le--,m===e&&(M=e,le===0&&De(Br)),m}function hs(){var m,M,Q,te,Pe;if(le++,m=c,n.substr(c,3)===Fe?(M=Fe,c+=3):(M=e,le===0&&De(Gr)),M!==e?(Q=mi(),Q!==e?(n.charCodeAt(c)===93?(te=ze,c++):(te=e,le===0&&De(O)),te!==e?m=x(Q):(c=m,m=e)):(c=m,m=e)):(c=m,m=e),m===e)if(m=c,n.substr(c,2)===ce?(M=ce,c+=2):(M=e,le===0&&De(H)),M!==e){if(Q=c,te=[],Pe=di(),Pe!==e)for(;Pe!==e;)te.push(Pe),Pe=di();else te=e;te!==e?Q=n.substring(Q,c):Q=te,Q!==e?m=J(Q):(c=m,m=e)}else c=m,m=e;return le--,m===e&&(M=e,le===0&&De(jr)),m}function ds(){var m;return le++,m=Wn(),m===e&&(m=null),le--,le===0&&De(se),m}function di(){var m,M,Q;if(le++,m=c,M=[],n.charCodeAt(c)===43?(Q=He,c++):(Q=e,le===0&&De(q)),Q!==e)for(;Q!==e;)M.push(Q),n.charCodeAt(c)===43?(Q=He,c++):(Q=e,le===0&&De(q));else M=e;return M!==e?m=n.substring(m,c):m=M,le--,m===e&&(M=e,le===0&&De(k)),m}function Wn(){var m,M,Q;if(le++,m=c,M=[],n.charCodeAt(c)===45?(Q=qe,c++):(Q=e,le===0&&De(ue)),Q!==e)for(;Q!==e;)M.push(Q),n.charCodeAt(c)===45?(Q=qe,c++):(Q=e,le===0&&De(ue));else M=e;return M!==e?m=n.substring(m,c):m=M,le--,m===e&&(M=e,le===0&&De(Y)),m}function mi(){var m,M,Q,te;if(le++,m=c,M=c,Q=[],Oe.test(n.charAt(c))?(te=n.charAt(c),c++):(te=e,le===0&&De(z)),te!==e)for(;te!==e;)Q.push(te),Oe.test(n.charAt(c))?(te=n.charAt(c),c++):(te=e,le===0&&De(z));else Q=e;return Q!==e?M=n.substring(M,c):M=Q,M!==e&&(M=X(M)),m=M,le--,m===e&&(M=e,le===0&&De(ge)),m}function tn(){var m,M,Q,te,Pe,Ne,Rr,ut,on,an;if(le++,m=c,M=c,Q=c,te=c,Pe=[],Oe.test(n.charAt(c))?(Ne=n.charAt(c),c++):(Ne=e,le===0&&De(z)),Ne!==e)for(;Ne!==e;)Pe.push(Ne),Oe.test(n.charAt(c))?(Ne=n.charAt(c),c++):(Ne=e,le===0&&De(z));else Pe=e;if(Pe!==e?te=n.substring(te,c):te=Pe,te!==e){if(Pe=c,Ne=c,n.charCodeAt(c)===46?(Rr=fe,c++):(Rr=e,le===0&&De(Wr)),Rr!==e){for(ut=c,on=[],Oe.test(n.charAt(c))?(an=n.charAt(c),c++):(an=e,le===0&&De(z));an!==e;)on.push(an),Oe.test(n.charAt(c))?(an=n.charAt(c),c++):(an=e,le===0&&De(z));ut=n.substring(ut,c),Rr=[Rr,ut],Ne=Rr}else c=Ne,Ne=e;Ne===e&&(Ne=null),Pe=n.substring(Pe,c),te=[te,Pe],Q=te}else c=Q,Q=e;if(Q!==e?M=n.substring(M,c):M=Q,M===e){if(M=c,Q=c,n.charCodeAt(c)===46?(te=fe,c++):(te=e,le===0&&De(Wr)),te!==e){if(Pe=c,Ne=[],Oe.test(n.charAt(c))?(Rr=n.charAt(c),c++):(Rr=e,le===0&&De(z)),Rr!==e)for(;Rr!==e;)Ne.push(Rr),Oe.test(n.charAt(c))?(Rr=n.charAt(c),c++):(Rr=e,le===0&&De(z));else Ne=e;Ne!==e?Pe=n.substring(Pe,c):Pe=Ne,Pe!==e?(te=[te,Pe],Q=te):(c=Q,Q=e)}else c=Q,Q=e;Q!==e?M=n.substring(M,c):M=Q}return M!==e&&(M=Xe(M)),m=M,le--,m===e&&(M=e,le===0&&De(he)),m}function ms(){var m;return le++,m=tn(),le--,m===e&&le===0&&De(Ie),m}function nn(){var m,M,Q;return m=tn(),m===e&&(m=c,n.charCodeAt(c)===43?(M=He,c++):(M=e,le===0&&De(q)),M!==e?(Q=tn(),Q!==e?m=ir(Q):(c=m,m=e)):(c=m,m=e),m===e&&(m=c,n.charCodeAt(c)===45?(M=qe,c++):(M=e,le===0&&De(ue)),M!==e?(Q=tn(),Q!==e?m=Te(Q):(c=m,m=e)):(c=m,m=e))),m}function vi(){var m,M,Q;return le++,m=c,M=Wn(),M===e&&(M=null),Q=mi(),Q!==e?m=zr(M,Q):(c=m,m=e),le--,m===e&&(M=e,le===0&&De(R)),m}function bi(){var m,M;if(m=[],We.test(n.charAt(c))?(M=n.charAt(c),c++):(M=e,le===0&&De(F)),M!==e)for(;M!==e;)m.push(M),We.test(n.charAt(c))?(M=n.charAt(c),c++):(M=e,le===0&&De(F));else m=e;return m}function sn(){var m,M;return m=c,Ce.test(n.charAt(c))?(M=n.charAt(c),c++):(M=e,le===0&&De(I)),M!==e&&(M=w(M)),m=M,m}function Cn(){var m,M;return m=c,le++,n.length>c?(M=n.charAt(c),c++):(M=e,le===0&&De(nr)),le--,M===e?m=void 0:(c=m,m=e),m}if(ft=d(),ft!==e&&c===n.length)return ft;throw ft!==e&&cs?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;P"),dr=ar("group"),wr=ar("whitespace"),ve=function(w){return w},Or=function(w){return w},mr=function(){return[]},ye=function(w,c,V,Qe,kr){return{type:"column",pre_dividers:w,post_dividers:kr,before_start_code:c,before_end_code:Qe,alignment:V}},Ye=function(){return{type:"vert_divider"}},Je=function(w,c){return{type:"bang_divider",content:c[0].content}},Pr=function(w){return{type:"at_divider",content:w[0].content}},vr=function(w){return w},me=function(w){return{type:"decl_code",code:w[0].content}},Se=function(w){return{type:"decl_code",code:w[0].content}},U=function(){return{type:"alignment",alignment:"left"}},Lr=function(){return{type:"alignment",alignment:"center"}},Er=function(){return{type:"alignment",alignment:"right"}},pr=function(){return{type:"alignment",alignment:"X"}},or=function(){return"top"},Br=function(){return"default"},Wr=function(){return"bottom"},Nr=function(w,c){return{type:"alignment",alignment:"parbox",baseline:w,size:c[0].content}},jr=function(w,c){return{type:"alignment",alignment:"parbox",baseline:w[0].content,size:c[0].content}},Gr=function(w){return s.matchChar(w,"|")},O=function(w){return s.matchChar(w,"l")},H=function(w){return s.matchChar(w,"r")},se=function(w){return s.matchChar(w,"c")},k=function(w){return s.matchChar(w,"p")},q=function(w){return s.matchChar(w,"m")},Y=function(w){return s.matchChar(w,"b")},ue=function(w){return s.matchChar(w,"w")},ge=function(w){return s.matchChar(w,"W")},z=function(w){return s.matchChar(w,"X")},he=function(w){return s.matchChar(w,"!")},Ie=function(w){return s.matchChar(w,"@")},R=function(w){return s.matchChar(w,"<")},F=function(w){return s.matchChar(w,">")},I=function(w){return s.isGroup(w)},Le=function(w){return s.isWhitespace(w)},Z=0,_e=[{line:1,column:1}],Ue=0,Be=[],pe=0,Ur;if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');d=u[s.startRule]}function br(){return{type:"any"}}function Jr(){return{type:"end"}}function ar(w){return{type:"other",description:w}}function E(w){var c=_e[w],V;if(c)return c;for(V=w-1;!_e[V];)V--;for(c=_e[V],c={line:c.line,column:c.column};VUe&&(Ue=Z,Be=[]),Be.push(w))}function ee(w,c,V){return new t(t.buildMessage(w,c),w,c,V)}function ie(){var w,c,V,Qe,kr,le;if(w=Z,c=[],V=Z,Qe=Ge(),Qe!==e){for(kr=[],le=Te();le!==e;)kr.push(le),le=Te();V=ve(Qe)}else Z=V,V=e;if(V!==e)for(;V!==e;)if(c.push(V),V=Z,Qe=Ge(),Qe!==e){for(kr=[],le=Te();le!==e;)kr.push(le),le=Te();V=ve(Qe)}else Z=V,V=e;else c=e;return c!==e&&(c=Or(c)),w=c,w===e&&(w=Z,c=zr(),c!==e&&(c=mr()),w=c),w}function Ge(){var w,c,V,Qe,kr,le,ft;for(w=Z,c=[],V=yr();V!==e;)c.push(V),V=yr();if(V=sr(),V===e&&(V=null),Qe=$r(),Qe!==e){for(kr=gr(),kr===e&&(kr=null),le=[],ft=yr();ft!==e;)le.push(ft),ft=yr();w=ye(c,V,Qe,kr,le)}else Z=w,w=e;return w}function yr(){var w,c,V,Qe,kr;for(w=Z,c=[],V=Te();V!==e;)c.push(V),V=Te();if(V=Z,Qe=_r(),Qe!==e&&(Qe=Ye()),V=Qe,V===e&&(V=Z,Qe=x(),Qe!==e?(kr=ir(),kr!==e?V=Je(Qe,kr):(Z=V,V=e)):(Z=V,V=e),V===e&&(V=Z,Qe=J(),Qe!==e?(kr=ir(),kr!==e?V=Pr(kr):(Z=V,V=e)):(Z=V,V=e))),V!==e){for(Qe=[],kr=Te();kr!==e;)Qe.push(kr),kr=Te();w=vr(V)}else Z=w,w=e;return w}function sr(){var w,c,V;return pe++,w=Z,c=Xe(),c!==e?(V=ir(),V!==e?w=me(V):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(y)),w}function gr(){var w,c,V;return pe++,w=Z,c=X(),c!==e?(V=ir(),V!==e?w=Se(V):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(T)),w}function $r(){var w,c,V,Qe,kr,le;if(w=Z,c=fr(),c!==e&&(c=U()),w=c,w===e&&(w=Z,c=W(),c!==e&&(c=Lr()),w=c,w===e&&(w=Z,c=Cr(),c!==e&&(c=Er()),w=c,w===e&&(w=Z,c=lr(),c!==e&&(c=pr()),w=c,w===e)))){if(w=Z,c=Z,V=ne(),V!==e&&(V=or()),c=V,c===e&&(c=Z,V=Re(),V!==e&&(V=Br()),c=V,c===e&&(c=Z,V=rr(),V!==e&&(V=Wr()),c=V)),c!==e){for(V=[],Qe=Te();Qe!==e;)V.push(Qe),Qe=Te();Qe=ir(),Qe!==e?w=Nr(c,Qe):(Z=w,w=e)}else Z=w,w=e;if(w===e)if(w=Z,c=xe(),c===e&&(c=Ir()),c!==e){for(V=[],Qe=Te();Qe!==e;)V.push(Qe),Qe=Te();if(Qe=ir(),Qe!==e){for(kr=[],le=Te();le!==e;)kr.push(le),le=Te();le=ir(),le!==e?w=jr(Qe,le):(Z=w,w=e)}else Z=w,w=e}else Z=w,w=e}return w}function _r(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=Gr(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(K)),w}function fr(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=O(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(b)),w}function Cr(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=H(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(P)),w}function W(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=se(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(fe)),w}function ne(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=k(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(Fe)),w}function Re(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=q(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(ze)),w}function rr(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=Y(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(ce)),w}function xe(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=ue(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(He)),w}function Ir(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=ge(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(qe)),w}function lr(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=z(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(de)),w}function x(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=he(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(Oe)),w}function J(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=Ie(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(We)),w}function X(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=R(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(Ce)),w}function Xe(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=F(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(nr)),w}function ir(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=I(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(dr)),w}function Te(){var w,c,V;return pe++,w=Z,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),c!==e?(V=Le(c),V?V=void 0:V=e,V!==e?(c=[c,V],w=c):(Z=w,w=e)):(Z=w,w=e),pe--,w===e&&(c=e,pe===0&&N(wr)),w}function zr(){var w,c;return w=Z,pe++,n.length>Z?(c=n.charAt(Z),Z++):(c=e,pe===0&&N(v)),pe--,c===e?w=void 0:(Z=w,w=e),w}if(!s.isHash)try{Object.assign(s,{matchChar:(w,c)=>w.type==="string"&&w.content===c,isGroup:w=>w.type==="group",isWhitespace:w=>w.type==="whitespace"})}catch(w){console.warn("Error when initializing parser",w)}if(Ur=d(),Ur!==e&&Z===n.length)return Ur;throw Ur!==e&&Zs?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;PIe&&(Ie=z,R=[]),R.push(x))}function Ur(x,J,X){return new t(t.buildMessage(x,J),x,J,X)}function br(){var x,J,X;for(x=z,J=[],X=Ge(),X===e&&(X=ar(),X===e&&(X=E()));X!==e;)J.push(X),X=Ge(),X===e&&(X=ar(),X===e&&(X=E()));return X=C(),X===e&&(X=lr()),X!==e?x=We(J,X):(z=x,x=e),x===e&&(x=z,J=lr(),J!==e&&(J=Ce()),x=J),x}function Jr(){var x,J,X,Xe,ir,Te,zr,w,c,V;for(F++,x=z,J=rr(),J===e&&(J=null),X=[],Xe=Cr();Xe!==e;)X.push(Xe),Xe=Cr();for(Xe=[],ir=sr();ir!==e;)Xe.push(ir),ir=sr();for(ir=[],Te=Cr();Te!==e;)ir.push(Te),Te=Cr();if(Te=yr(),Te!==e){for(zr=[],w=Cr();w!==e;)zr.push(w),w=Cr();for(w=[],c=$r();c!==e;)w.push(c),c=$r();for(c=[],V=Cr();V!==e;)c.push(V),V=Cr();x=nr(J,Xe,Te,w)}else z=x,x=e;if(x===e){for(x=z,J=rr(),J===e&&(J=null),X=[],Xe=Cr();Xe!==e;)X.push(Xe),Xe=Cr();if(Xe=[],ir=sr(),ir!==e)for(;ir!==e;)Xe.push(ir),ir=sr();else Xe=e;if(Xe!==e){for(ir=[],Te=Cr();Te!==e;)ir.push(Te),Te=Cr();x=dr(J,Xe)}else z=x,x=e}return F--,x===e&&(J=e,F===0&&pe(y)),x}function ar(){var x,J,X,Xe;return x=z,J=C(),J!==e?(X=W(),X!==e?(Xe=ie(),Xe===e&&(Xe=null),x=wr(J,X,Xe)):(z=x,x=e)):(z=x,x=e),x}function E(){var x,J,X;return x=z,J=C(),J!==e?(X=ie(),X!==e?x=ve(J,X):(z=x,x=e)):(z=x,x=e),x}function C(){var x,J,X,Xe;return x=z,J=z,F++,n.length>z?(X=n.charAt(z),z++):(X=e,F===0&&pe(T)),F--,X!==e?(z=J,J=void 0):J=e,J!==e?(X=ee(),Xe=N(),Xe===e&&(Xe=null),x=Or(X,Xe)):(z=x,x=e),x}function N(){var x,J,X,Xe;if(x=z,J=ne(),J!==e){for(X=[],Xe=gr();Xe!==e;)X.push(Xe),Xe=gr();x=mr(J,X)}else z=x,x=e;return x}function ee(){var x,J,X,Xe,ir;for(F++,x=z,J=[],X=Jr();X!==e;)J.push(X),X=Jr();for(X=xe(),X===e&&(X=null),Xe=[],ir=$r(),ir===e&&(ir=rr());ir!==e;)Xe.push(ir),ir=$r(),ir===e&&(ir=rr());return x=ye(J,X,Xe),F--,J=e,F===0&&pe(K),x}function ie(){var x,J,X;for(F++,x=z,J=[],X=Cr();X!==e;)J.push(X),X=Cr();return X=_r(),X!==e?x=Ye(X):(z=x,x=e),F--,x===e&&(J=e,F===0&&pe(v)),x}function Ge(){var x,J,X;for(F++,x=z,J=[],X=Cr();X!==e;)J.push(X),X=Cr();return X=fr(),X!==e?x=Je(X):(z=x,x=e),F--,x===e&&(J=e,F===0&&pe(b)),x}function yr(){var x,J,X,Xe;if(x=z,J=Re(),J!==e){for(X=[],Xe=Cr();Xe!==e;)X.push(Xe),Xe=Cr();Xe=Ir(),Xe===e&&(Xe=null),x=Pr(J,Xe)}else z=x,x=e;return x}function sr(){var x,J,X;return F++,x=z,J=z,F++,X=yr(),F--,X===e?J=void 0:(z=J,J=e),J!==e?(X=$r(),X!==e?x=vr(X):(z=x,x=e)):(z=x,x=e),F--,x===e&&(J=e,F===0&&pe(P)),x}function gr(){var x,J,X;return x=z,J=z,F++,X=W(),X===e&&(X=ie(),X===e&&(X=fr())),F--,X===e?J=void 0:(z=J,J=e),J!==e?(n.length>z?(X=n.charAt(z),z++):(X=e,F===0&&pe(T)),X!==e?x=me(X):(z=x,x=e)):(z=x,x=e),x}function $r(){var x,J,X;return F++,x=z,J=z,F++,X=W(),X===e&&(X=ne(),X===e&&(X=rr(),X===e&&(X=xe(),X===e&&(X=ie(),X===e&&(X=fr()))))),F--,X===e?J=void 0:(z=J,J=e),J!==e?(n.length>z?(X=n.charAt(z),z++):(X=e,F===0&&pe(T)),X!==e?x=Se(X):(z=x,x=e)):(z=x,x=e),F--,x===e&&(J=e,F===0&&pe(fe)),x}function _r(){var x,J,X;return F++,x=z,n.length>z?(J=n.charAt(z),z++):(J=e,F===0&&pe(T)),J!==e?(X=U(J),X?X=void 0:X=e,X!==e?x=Lr(J):(z=x,x=e)):(z=x,x=e),F--,x===e&&(J=e,F===0&&pe(Fe)),x}function fr(){var x,J,X;return F++,x=z,n.length>z?(J=n.charAt(z),z++):(J=e,F===0&&pe(T)),J!==e?(X=Er(J),X?X=void 0:X=e,X!==e?x=pr(J):(z=x,x=e)):(z=x,x=e),F--,x===e&&(J=e,F===0&&pe(ze)),x}function Cr(){var x,J,X;return x=z,n.length>z?(J=n.charAt(z),z++):(J=e,F===0&&pe(T)),J!==e?(X=or(J),X?X=void 0:X=e,X!==e?x=Br(J):(z=x,x=e)):(z=x,x=e),x}function W(){var x,J,X;return F++,x=z,n.length>z?(J=n.charAt(z),z++):(J=e,F===0&&pe(T)),J!==e?(X=Wr(J),X?X=void 0:X=e,X!==e?x=Nr(J):(z=x,x=e)):(z=x,x=e),F--,x===e&&(J=e,F===0&&pe(ce)),x}function ne(){var x,J,X;return F++,x=z,n.length>z?(J=n.charAt(z),z++):(J=e,F===0&&pe(T)),J!==e?(X=jr(J),X?X=void 0:X=e,X!==e?x=Gr(J):(z=x,x=e)):(z=x,x=e),F--,x===e&&(J=e,F===0&&pe(He)),x}function Re(){var x,J,X;return F++,x=z,n.length>z?(J=n.charAt(z),z++):(J=e,F===0&&pe(T)),J!==e?(X=O(J),X?X=void 0:X=e,X!==e?x=H(J):(z=x,x=e)):(z=x,x=e),F--,x===e&&(J=e,F===0&&pe(qe)),x}function rr(){var x,J,X,Xe,ir;for(F++,x=z,J=[],X=Cr();X!==e;)J.push(X),X=Cr();if(n.length>z?(X=n.charAt(z),z++):(X=e,F===0&&pe(T)),X!==e){for(Xe=[],ir=Cr();ir!==e;)Xe.push(ir),ir=Cr();ir=se(X),ir?ir=void 0:ir=e,ir!==e?x=k(X):(z=x,x=e)}else z=x,x=e;return F--,x===e&&(J=e,F===0&&pe(de)),x}function xe(){var x,J,X;return F++,x=z,n.length>z?(J=n.charAt(z),z++):(J=e,F===0&&pe(T)),J!==e?(X=q(J),X?X=void 0:X=e,X!==e?x=Y(J):(z=x,x=e)):(z=x,x=e),F--,x===e&&(J=e,F===0&&pe(Oe)),x}function Ir(){var x,J,X;return x=z,n.length>z?(J=n.charAt(z),z++):(J=e,F===0&&pe(T)),J!==e?(X=ue(J),X?X=void 0:X=e,X!==e?x=ge(J):(z=x,x=e)):(z=x,x=e),x}function lr(){var x,J;return x=z,F++,n.length>z?(J=n.charAt(z),z++):(J=e,F===0&&pe(T)),F--,J===e?x=void 0:(z=x,x=e),x}if(!s.isWhitespace)try{Object.assign(s,{isSep:x=>x.type==="string"&&x.content===",",isVar:x=>x.type==="string"&&x.content.match(/[a-zA-Z]/),isOperation:x=>x.type==="string"&&x.content.match(/[+-]/),isEquals:x=>x.type==="string"&&x.content==="=",isAt:x=>x.type==="string"&&x.content==="@",isSubscript:x=>x.content==="_",isWhitespace:x=>x.type==="whitespace",isSameLineComment:x=>x.type==="comment"&&x.sameline,isOwnLineComment:x=>x.type==="comment"&&!x.sameline})}catch(x){console.warn("Error when initializing parser",x)}if(I=d(),I!==e&&z===n.length)return I;throw I!==e&&zs?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;P_e&&(_e=I,Ue=[]),Ue.push(ne))}function Ge(ne,Re,rr){return new t(t.buildMessage(ne,Re),ne,Re,rr)}function yr(){var ne,Re,rr,xe,Ir;if(ne=I,Re=I,rr=sr(),rr!==e?(xe=gr(),xe===e&&(xe=null),Ir=$r(),Ir===e&&(Ir=null),Le=Re,Re=ge(rr,xe,Ir)):(I=Re,Re=e),Re!==e){for(rr=[],n.length>I?(xe=n.charAt(I),I++):(xe=e,Be===0&&ie(ye));xe!==e;)rr.push(xe),n.length>I?(xe=n.charAt(I),I++):(xe=e,Be===0&&ie(ye));Le=ne,ne=z(Re)}else I=ne,ne=e;return ne}function sr(){var ne,Re,rr;return ne=I,Re=Cr(),Re!==e?(rr=_r(),rr!==e?(Le=ne,ne=he(Re,rr)):(I=ne,ne=e)):(I=ne,ne=e),ne}function gr(){var ne,Re,rr,xe;return ne=I,n.substr(I,4)===y?(Re=y,I+=4):(Re=e,Be===0&&ie(Ye)),Re!==e?(rr=Cr(),rr!==e?(xe=fr(),xe!==e?(Le=ne,ne=Ie(rr,xe)):(I=ne,ne=e)):(I=ne,ne=e)):(I=ne,ne=e),ne}function $r(){var ne,Re,rr,xe;return ne=I,n.substr(I,5)===T?(Re=T,I+=5):(Re=e,Be===0&&ie(Je)),Re!==e?(rr=Cr(),rr!==e?(xe=fr(),xe!==e?(Le=ne,ne=R(rr,xe)):(I=ne,ne=e)):(I=ne,ne=e)):(I=ne,ne=e),ne}function _r(){var ne;return n.substr(I,2)===K?(ne=K,I+=2):(ne=e,Be===0&&ie(Pr)),ne===e&&(n.substr(I,2)===v?(ne=v,I+=2):(ne=e,Be===0&&ie(vr)),ne===e&&(n.substr(I,2)===b?(ne=b,I+=2):(ne=e,Be===0&&ie(me)),ne===e&&(n.substr(I,2)===P?(ne=P,I+=2):(ne=e,Be===0&&ie(Se)),ne===e&&(n.substr(I,2)===fe?(ne=fe,I+=2):(ne=e,Be===0&&ie(U)),ne===e&&(n.substr(I,2)===Fe?(ne=Fe,I+=2):(ne=e,Be===0&&ie(Lr)),ne===e&&(n.substr(I,2)===ze?(ne=ze,I+=2):(ne=e,Be===0&&ie(Er)),ne===e&&(n.substr(I,2)===ce?(ne=ce,I+=2):(ne=e,Be===0&&ie(pr)),ne===e&&(n.substr(I,2)===He?(ne=He,I+=2):(ne=e,Be===0&&ie(or)),ne===e&&(n.substr(I,2)===qe?(ne=qe,I+=2):(ne=e,Be===0&&ie(Br)),ne===e&&(n.substr(I,2)===de?(ne=de,I+=2):(ne=e,Be===0&&ie(Wr)),ne===e&&(n.substr(I,2)===Oe?(ne=Oe,I+=2):(ne=e,Be===0&&ie(Nr)),ne===e&&(n.substr(I,2)===We?(ne=We,I+=2):(ne=e,Be===0&&ie(jr)))))))))))))),ne}function fr(){var ne;return ne=_r(),ne===e&&(n.substr(I,5)===Ce?(ne=Ce,I+=5):(ne=e,Be===0&&ie(Gr)),ne===e&&(n.substr(I,4)===nr?(ne=nr,I+=4):(ne=e,Be===0&&ie(O)),ne===e&&(n.substr(I,3)===dr?(ne=dr,I+=3):(ne=e,Be===0&&ie(H))))),ne}function Cr(){var ne,Re,rr,xe,Ir,lr,x,J,X;for(Be++,ne=I,Re=I,rr=I,xe=W(),xe===e&&(xe=null),Ir=I,lr=[],mr.test(n.charAt(I))?(x=n.charAt(I),I++):(x=e,Be===0&&ie(k));x!==e;)lr.push(x),mr.test(n.charAt(I))?(x=n.charAt(I),I++):(x=e,Be===0&&ie(k));if(n.charCodeAt(I)===46?(x=wr,I++):(x=e,Be===0&&ie(q)),x!==e){if(J=[],mr.test(n.charAt(I))?(X=n.charAt(I),I++):(X=e,Be===0&&ie(k)),X!==e)for(;X!==e;)J.push(X),mr.test(n.charAt(I))?(X=n.charAt(I),I++):(X=e,Be===0&&ie(k));else J=e;J!==e?(lr=[lr,x,J],Ir=lr):(I=Ir,Ir=e)}else I=Ir,Ir=e;if(Ir===e)if(Ir=[],mr.test(n.charAt(I))?(lr=n.charAt(I),I++):(lr=e,Be===0&&ie(k)),lr!==e)for(;lr!==e;)Ir.push(lr),mr.test(n.charAt(I))?(lr=n.charAt(I),I++):(lr=e,Be===0&&ie(k));else Ir=e;return Ir!==e?(xe=[xe,Ir],rr=xe):(I=rr,rr=e),rr!==e?Re=n.substring(Re,I):Re=rr,Re!==e&&(Le=ne,Re=F(Re)),ne=Re,Be--,ne===e&&(Re=e,Be===0&&ie(se)),ne}function W(){var ne;return n.charCodeAt(I)===43?(ne=ve,I++):(ne=e,Be===0&&ie(Y)),ne===e&&(n.charCodeAt(I)===45?(ne=Or,I++):(ne=e,Be===0&&ie(ue))),ne}if(pe=d(),pe!==e&&I===n.length)return pe;throw pe!==e&&Is?n:(s-=n.length,e+=e.repeat(s),n+e.slice(0,s))}t.prototype.format=function(n){var s="Error: "+this.message;if(this.location){var e=null,l;for(l=0;l `+y+` +`+K+` | +`+d.line+" | "+v+` +`+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` + at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;PA.comment),j].filter(A=>A),ke=B.map(A=>A.op.content.content).join(" ");return{type:"animation",comments:$e,attribute:ke,content:we.content}},ce=function(h,B){return{...B,start:h,type:"foreach"}},He=function(h,B,j,we,$e,ke,A,G){const ae=[h,we,$e,A].filter(Ae=>Ae);return{type:"foreach_body",variables:B,options:j&&j.content,list:ke,command:G,comments:ae}},qe=function(h,B,j,we){const $e=[h,j].filter(ke=>ke);return{type:"svg_operation",options:B&&B.content,content:we,comments:$e}},de=function(h,B,j,we,$e,ke){return{coord:ke,comment:$e}},Oe=function(h,B,j,we,$e,ke){const A=[h,B,we,$e&&$e.comment,ke].filter(G=>G);return{type:"curve_to",controls:$e?[j,$e.coord]:[j],comments:A}},We=function(){return{type:"line_to",command:"|-"}},Ce=function(){return{type:"line_to",command:"-|"}},nr=function(){return{type:"line_to",command:"--"}},dr=function(h,B){return{type:"coordinate",content:B,prefix:h}},wr=function(h){return{type:"square_brace_group",content:h}},ve=function(h){return{type:"unknown",content:h}},Or=function(h){return s.isComment(h)},mr=function(h){return h},ye=function(h){return s.isWhitespace(h)},Ye=function(h){return h},Je=function(h){return h},Pr=function(h){return s.isOperation(h)},vr=function(h){return{type:"operation",content:h}},me=function(h){return s.isChar(h,"=")},Se=function(h){return h},U=function(h){return s.isChar(h,"[")},Lr=function(h){return h},Er=function(h){return s.isChar(h,"]")},pr=function(h){return h},or=function(h){return s.isChar(h,"(")},Br=function(h){return h},Wr=function(h){return s.isChar(h,")")},Nr=function(h){return h},jr=function(h){return s.isChar(h,"+")},Gr=function(h){return h},O=function(h){return s.isChar(h,"-")},H=function(h){return h},se=function(h){return s.isChar(h,"|")},k=function(h){return h},q=function(h){return s.isChar(h,".")},Y=function(h){return h},ue=function(h){return s.isChar(h,"controls")},ge=function(h){return h},z=function(h){return s.isChar(h,"and")},he=function(h){return h},Ie=function(h){return s.isChar(h,"svg")},R=function(h){return h},F=function(h){return s.isGroup(h)},I=function(h){return h},Le=function(h){return s.isAnyMacro(h)},Z=function(h){return h},_e=function(h){return s.isChar(h,"foreach")},Ue=function(h){return h},Be=function(h){return s.isMacro(h,"foreach")},pe=function(h){return h},Ur=function(h){return s.isChar(h,"in")},br=function(h){return h},Jr=function(h){return s.isChar(h,":")},ar=function(h){return h},E=0,C=[{line:1,column:1}],N=0,ee=[],ie=0,Ge;if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');d=u[s.startRule]}function yr(){return{type:"any"}}function sr(){return{type:"end"}}function gr(h){return{type:"other",description:h}}function $r(h){var B=C[h],j;if(B)return B;for(j=h-1;!C[j];)j--;for(B=C[j],B={line:B.line,column:B.column};jN&&(N=E,ee=[]),ee.push(h))}function Cr(h,B,j){return new t(t.buildMessage(h,B),h,B,j)}function W(){var h,B,j,we,$e,ke;if(h=E,B=[],j=E,we=J(),we===e&&(we=x(),we===e&&(we=Ir(),we===e&&(we=lr(),we===e&&(we=xe(),we===e&&(we=Re(),we===e&&(we=w(),we===e&&(we=ir(),we===e&&(we=ne(),we===e&&(we=Xe()))))))))),we!==e){for($e=[],ke=Te();ke!==e;)$e.push(ke),ke=Te();j=P(we)}else E=j,j=e;if(j!==e)for(;j!==e;)if(B.push(j),j=E,we=J(),we===e&&(we=x(),we===e&&(we=Ir(),we===e&&(we=lr(),we===e&&(we=xe(),we===e&&(we=Re(),we===e&&(we=w(),we===e&&(we=ir(),we===e&&(we=ne(),we===e&&(we=Xe()))))))))),we!==e){for($e=[],ke=Te();ke!==e;)$e.push(ke),ke=Te();j=P(we)}else E=j,j=e;else B=e;return B!==e&&(B=fe(B)),h=B,h}function ne(){var h,B,j,we,$e,ke,A;if(h=E,B=gt(),B!==e){if(j=zr(),we=[],$e=E,ke=w(),ke!==e?(A=zr(),$e=Fe(j,ke,A)):(E=$e,$e=e),$e!==e)for(;$e!==e;)we.push($e),$e=E,ke=w(),ke!==e?(A=zr(),$e=Fe(j,ke,A)):(E=$e,$e=e);else we=e;we!==e?($e=c(),$e!==e?(ke=zr(),A=Ot(),A!==e?h=ze(j,we,ke,A):(E=h,h=e)):(E=h,h=e)):(E=h,h=e)}else E=h,h=e;return h}function Re(){var h,B,j;return h=E,B=Rt(),B===e&&(B=jt()),B!==e?(j=rr(),j!==e?h=ce(B,j):(E=h,h=e)):(E=h,h=e),h}function rr(){var h,B,j,we,$e,ke,A,G,ae,Ae;for(h=E,B=zr(),j=E,we=[],$e=E,ke=E,ie++,A=mt(),A===e&&(A=J()),ie--,A===e?ke=void 0:(E=ke,ke=e),ke!==e?(n.length>E?(A=n.charAt(E),E++):(A=e,ie===0&&fr(y)),A!==e?(ke=[ke,A],$e=ke):(E=$e,$e=e)):(E=$e,$e=e);$e!==e;)we.push($e),$e=E,ke=E,ie++,A=mt(),A===e&&(A=J()),ie--,A===e?ke=void 0:(E=ke,ke=e),ke!==e?(n.length>E?(A=n.charAt(E),E++):(A=e,ie===0&&fr(y)),A!==e?(ke=[ke,A],$e=ke):(E=$e,$e=e)):(E=$e,$e=e);return j=n.substring(j,E),we=J(),we===e&&(we=null),$e=zr(),ke=mt(),ke!==e?(A=zr(),G=Ot(),G===e&&(G=De()),G!==e?(ae=zr(),Ae=Re(),Ae===e&&(Ae=Ot(),Ae===e&&(Ae=De())),Ae!==e?h=He(B,j,we,$e,A,G,ae,Ae):(E=h,h=e)):(E=h,h=e)):(E=h,h=e),h}function xe(){var h,B,j,we,$e,ke;return h=E,B=en(),B!==e?(j=zr(),we=J(),we===e&&(we=null),$e=zr(),ke=Ot(),ke!==e?h=qe(j,we,$e,ke):(E=h,h=e)):(E=h,h=e),h}function Ir(){var h,B,j,we,$e,ke,A,G,ae,Ae,Ke;return h=E,B=X(),B!==e?(j=zr(),we=kn(),we!==e?($e=zr(),ke=x(),ke!==e?(A=zr(),G=E,ae=qr(),ae!==e?(Ae=zr(),Ke=x(),Ke!==e?G=de(j,$e,ke,A,Ae,Ke):(E=G,G=e)):(E=G,G=e),G===e&&(G=null),ae=zr(),Ae=X(),Ae!==e?h=Oe(j,$e,ke,A,G,ae):(E=h,h=e)):(E=h,h=e)):(E=h,h=e)):(E=h,h=e),h}function lr(){var h,B,j;return h=E,B=Ft(),B!==e?(j=Zr(),j!==e?h=We():(E=h,h=e)):(E=h,h=e),h===e&&(h=E,B=Zr(),B!==e?(j=Ft(),j!==e?h=Ce():(E=h,h=e)):(E=h,h=e),h===e&&(h=E,B=Zr(),B!==e?(j=Zr(),j!==e?h=nr():(E=h,h=e)):(E=h,h=e))),h}function x(){var h,B,j,we,$e,ke,A,G;if(h=E,B=E,j=E,we=ft(),we!==e?($e=ft(),$e===e&&($e=null),we=[we,$e],j=we):(E=j,j=e),j===e&&(j=null),B=n.substring(B,E),j=kr(),j!==e){for(we=E,$e=[],ke=E,A=E,ie++,G=le(),ie--,G===e?A=void 0:(E=A,A=e),A!==e?(n.length>E?(G=n.charAt(E),E++):(G=e,ie===0&&fr(y)),G!==e?(A=[A,G],ke=A):(E=ke,ke=e)):(E=ke,ke=e);ke!==e;)$e.push(ke),ke=E,A=E,ie++,G=le(),ie--,G===e?A=void 0:(E=A,A=e),A!==e?(n.length>E?(G=n.charAt(E),E++):(G=e,ie===0&&fr(y)),G!==e?(A=[A,G],ke=A):(E=ke,ke=e)):(E=ke,ke=e);we=n.substring(we,E),$e=le(),$e!==e?h=dr(B,we):(E=h,h=e)}else E=h,h=e;return h}function J(){var h,B,j,we,$e,ke,A;if(h=E,B=V(),B!==e){for(j=E,we=[],$e=E,ke=E,ie++,A=Qe(),ie--,A===e?ke=void 0:(E=ke,ke=e),ke!==e?(n.length>E?(A=n.charAt(E),E++):(A=e,ie===0&&fr(y)),A!==e?(ke=[ke,A],$e=ke):(E=$e,$e=e)):(E=$e,$e=e);$e!==e;)we.push($e),$e=E,ke=E,ie++,A=Qe(),ie--,A===e?ke=void 0:(E=ke,ke=e),ke!==e?(n.length>E?(A=n.charAt(E),E++):(A=e,ie===0&&fr(y)),A!==e?(ke=[ke,A],$e=ke):(E=$e,$e=e)):(E=$e,$e=e);j=n.substring(j,E),we=Qe(),we!==e?h=wr(j):(E=h,h=e)}else E=h,h=e;return h}function X(){var h,B,j;return h=E,B=Qt(),B!==e?(j=Qt(),j!==e?(B=[B,j],h=B):(E=h,h=e)):(E=h,h=e),h}function Xe(){var h,B;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e&&(B=ve(B)),h=B,h}function ir(){var h,B,j;return ie++,h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Or(B),j?j=void 0:j=e,j!==e?h=mr(B):(E=h,h=e)):(E=h,h=e),ie--,h===e&&(B=e,ie===0&&fr(T)),h}function Te(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=ye(B),j?j=void 0:j=e,j!==e?h=Ye(B):(E=h,h=e)):(E=h,h=e),h}function zr(){var h,B,j,we,$e;for(ie++,h=E,B=[],j=Te();j!==e;)B.push(j),j=Te();for(j=ir(),j===e&&(j=null),we=[],$e=Te();$e!==e;)we.push($e),$e=Te();return h=Je(j),ie--,B=e,ie===0&&fr(K),h}function w(){var h,B,j;return ie++,h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Pr(B),j?j=void 0:j=e,j!==e?h=vr(B):(E=h,h=e)):(E=h,h=e),ie--,h===e&&(B=e,ie===0&&fr(v)),h}function c(){var h,B,j;return ie++,h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=me(B),j?j=void 0:j=e,j!==e?h=Se(B):(E=h,h=e)):(E=h,h=e),ie--,h===e&&(B=e,ie===0&&fr(b)),h}function V(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=U(B),j?j=void 0:j=e,j!==e?h=Lr(B):(E=h,h=e)):(E=h,h=e),h}function Qe(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Er(B),j?j=void 0:j=e,j!==e?h=pr(B):(E=h,h=e)):(E=h,h=e),h}function kr(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=or(B),j?j=void 0:j=e,j!==e?h=Br(B):(E=h,h=e)):(E=h,h=e),h}function le(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Wr(B),j?j=void 0:j=e,j!==e?h=Nr(B):(E=h,h=e)):(E=h,h=e),h}function ft(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=jr(B),j?j=void 0:j=e,j!==e?h=Gr(B):(E=h,h=e)):(E=h,h=e),h}function Zr(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=O(B),j?j=void 0:j=e,j!==e?h=H(B):(E=h,h=e)):(E=h,h=e),h}function Ft(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=se(B),j?j=void 0:j=e,j!==e?h=k(B):(E=h,h=e)):(E=h,h=e),h}function Qt(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=q(B),j?j=void 0:j=e,j!==e?h=Y(B):(E=h,h=e)):(E=h,h=e),h}function kn(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=ue(B),j?j=void 0:j=e,j!==e?h=ge(B):(E=h,h=e)):(E=h,h=e),h}function qr(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=z(B),j?j=void 0:j=e,j!==e?h=he(B):(E=h,h=e)):(E=h,h=e),h}function en(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Ie(B),j?j=void 0:j=e,j!==e?h=R(B):(E=h,h=e)):(E=h,h=e),h}function Ot(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=F(B),j?j=void 0:j=e,j!==e?h=I(B):(E=h,h=e)):(E=h,h=e),h}function De(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Le(B),j?j=void 0:j=e,j!==e?h=Z(B):(E=h,h=e)):(E=h,h=e),h}function Rt(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=_e(B),j?j=void 0:j=e,j!==e?h=Ue(B):(E=h,h=e)):(E=h,h=e),h}function jt(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Be(B),j?j=void 0:j=e,j!==e?h=pe(B):(E=h,h=e)):(E=h,h=e),h}function mt(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Ur(B),j?j=void 0:j=e,j!==e?h=br(B):(E=h,h=e)):(E=h,h=e),h}function gt(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Jr(B),j?j=void 0:j=e,j!==e?h=ar(B):(E=h,h=e)):(E=h,h=e),h}if(!s.isWhitespace)try{Object.assign(s,{isChar:(h,B)=>h.type==="string"&&h.content===B,isOperation:h=>h.type==="string"&&h.content.match(/[a-zA-Z]/),isWhitespace:h=>h.type==="whitespace"||h.type==="parbreak",isSameLineComment:h=>h.type==="comment"&&h.sameline,isOwnLineComment:h=>h.type==="comment"&&!h.sameline,isComment:h=>h.type==="comment",isGroup:h=>h.type==="group",isMacro:(h,B)=>h.type==="macro"&&h.content===B,isAnyMacro:h=>h.type==="macro"})}catch(h){console.warn("Error when initializing parser",h)}if(Ge=d(),Ge!==e&&E===n.length)return Ge;throw Ge!==e&&E"u"?"undefined":i(l));var u=l.reduce(function(d,y){return y.toLowerCase().split("").reduce(n.default,d),d},{});return u}r.exports=t.default})(uo,uo.exports);var C0=uo.exports,po={exports:{}},ho={exports:{}};(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={objectCopy:function(o){return typeof o>"u"?{}:JSON.parse(JSON.stringify(o))},stringify:function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return typeof o>"u"?"":JSON.stringify(o,null,n)}},r.exports=t.default})(ho,ho.exports);var Hf=ho.exports;(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=Hf;o(i);function o(s){return s&&s.__esModule?s:{default:s}}function n(s,e){var l=e.toLowerCase().split(""),u=l.every(function(d,y){return s[d]?s=s[d]:!1});return{prefixFound:u,prefixNode:s}}r.exports=t.default})(po,po.exports);var E0=po.exports,mo={exports:{}};(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;var i=gi,o=n(i);function n(l){return l&&l.__esModule?l:{default:l}}var s=function(u,d){for(var y=0;y3&&arguments[3]!==void 0?arguments[3]:[],T=u;for(var K in l){var v=K;K===o.default.END_WORD&&typeof l[K]=="number"?(d?s(T,y):y.push(T),T=""):K===o.default.END_WORD_REPLACER&&(v=o.default.END_WORD),e(l[K],u+v,d,y)}return y}r.exports=t.default})(mo,mo.exports);var I0=mo.exports,vo={exports:{}};(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var i=gi,o=n(i);function n(e){return e&&e.__esModule?e:{default:e}}function s(e,l){var u=l,d=Object.keys(e),y=d[Math.floor(Math.random()*d.length)];return y===o.default.END_WORD?u:s(e[y],l+y)}r.exports=t.default})(vo,vo.exports);var M0=vo.exports,bo={exports:{}};(function(r,t){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};t.default=e;var o=gi,n=s(o);function s(l){return l&&l.__esModule?l:{default:l}}function e(l,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{type:"anagram"};if(typeof l!="string")throw"Permutations expects string letters, received "+(typeof l>"u"?"undefined":i(l));var y=[],T=function K(v,b){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",fe=v.length===0,Fe=y.indexOf(P)!==-1,ze=b[n.default.END_WORD]===1;fe&&ze&&!Fe&&y.push(P);for(var ce=0,He=v.length;ce"u"?"undefined":i(de));var Oe=(0,n.default)([].concat(He(de)));return{tree:function(){return Oe},dump:function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return b.default.stringify(Oe,Ce)},addWord:function(Ce){if(typeof Ce!="string"||Ce==="")throw"Expected parameter string, received "+(typeof Ce>"u"?"undefined":i(Ce));var nr=function(){return e.default.apply(void 0,arguments)},dr=Ce.toLowerCase().split("");return dr.reduce(nr,Oe),this},removeWord:function(Ce){if(typeof Ce!="string"||Ce==="")throw"Expected parameter string, received "+(typeof Ce>"u"?"undefined":i(Ce));var nr=(0,u.default)(Oe,Ce),dr=nr.prefixFound,wr=nr.prefixNode;return dr&&delete wr[fe.default.END_WORD],this},isPrefix:function(Ce){if(typeof Ce!="string")throw"Expected string prefix, received "+(typeof Ce>"u"?"undefined":i(Ce));var nr=(0,u.default)(Oe,Ce),dr=nr.prefixFound;return dr},getPrefix:function(Ce){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof Ce!="string")throw"Expected string prefix, received "+(typeof Ce>"u"?"undefined":i(Ce));if(typeof nr!="boolean")throw"Expected sort parameter as boolean, received "+(typeof nr>"u"?"undefined":i(nr));if(!this.isPrefix(Ce))return[];var dr=Ce.length?(0,u.default)(Oe,Ce).prefixNode:Oe;return(0,y.default)(dr,Ce,nr)},getRandomWordWithPrefix:function(Ce){if(typeof Ce!="string")throw"Expected string prefix, received "+(typeof Ce>"u"?"undefined":i(Ce));if(!this.isPrefix(Ce))return"";var nr=(0,u.default)(Oe,Ce),dr=nr.prefixNode;return(0,K.default)(dr,Ce)},countPrefix:function(Ce){var nr=this.getPrefix(Ce);return nr.length},getWords:function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.getPrefix("",Ce)},hasWord:function(Ce){if(typeof Ce!="string")throw"Expected string word, received "+(typeof Ce>"u"?"undefined":i(Ce));var nr=(0,u.default)(Oe,Ce),dr=nr.prefixFound,wr=nr.prefixNode;return dr?wr[fe.default.END_WORD]===1:!1},getAnagrams:function(Ce){if(typeof Ce!="string")throw"Anagrams expected string letters, received "+(typeof Ce>"u"?"undefined":i(Ce));if(Ce.length"u"?"undefined":i(Ce));if(Ce.length=0)return e;break}if(n&&!Ve.whitespace(l)&&!Ve.comment(l))return null}return null}function Bt(r,t,i=0){if(typeof t=="string"||!t.type)throw new Error(`argSpec must be an already-parsed argument specification, not "${JSON.stringify(t)}"`);let o=null,n=i;const s=t.noLeadingWhitespace?()=>{}:()=>{for(;n1){console.warn('"until" matches with multi-token stop conditions are not yet implemented');break}const K=t.stopTokens[0];let b=Kn(r,i,void 0,K===" "?{type:"whitespace"}:K);if(!b)break;o=st(r.slice(i,b[1]),{openMark:"",closeMark:K}),n=b[1],ni.length){const d=n.content;n.content=i,r.splice(s+1,0,Si(n,d.slice(i.length)))}e=s+1}if(!o){const u=r[e];if(!u)return;if(Ve.anyString(u)&&u.content.length>1){const d=u.content;u.content=d[0],r.splice(e+1,0,Si(u,d.slice(1)))}return[s,e]}if(e=Ki(r,o,{startIndex:e,allowSubstringMatches:!0}),e===null)return;const l=r[e];if(Ve.anyString(l)&&typeof o=="string"){const u=l.content;let d=u.indexOf(o);if(u.length>o.length){l.content=o;const y=u.slice(0,d),T=u.slice(d+o.length);y&&(r.splice(e,0,Si(l,y)),e++),T&&r.splice(e+1,0,Si(l,T))}}return[s,e]}function Xi(r,t,i=0){if(typeof t=="function")return t(r,i);typeof t=="string"&&(t=_n(t));const o=[];let n=0;for(const s of t)if(s.type==="embellishment"){const e=new Set(s.embellishmentTokens),l=Object.fromEntries(s.embellishmentTokens.map((y,T)=>{var K;const v="defaultArg"in s?(K=s.defaultArg)==null?void 0:K[T]:void 0;return[y,kl(v)]}));let{argument:u,nodesRemoved:d}=Bt(r,_l(e),i);for(;u;){const y=u.openMark;e.delete(y),l[y]=u,n+=d;const T=_l(e);({argument:u,nodesRemoved:d}=Bt(r,T,i))}o.push(...s.embellishmentTokens.map(y=>l[y]))}else{const{argument:e,nodesRemoved:l}=Bt(r,s,i),u="defaultArg"in s?s.defaultArg:void 0;o.push(e||kl(u)),n+=l}return{args:o,nodesRemoved:n}}function _l(r){return{type:"embellishment",embellishmentTokens:[...r]}}function kl(r){const t=st([],{openMark:"",closeMark:""});return r!=null&&us(t,{defaultArg:r}),t}function Yi(r,t){let i;const o=Ve.createMacroMatcher(t);function n(){for(;i>=0&&!o(r[i]);)i--}for(i=r.length-1;i>=0;){if(n(),i<0)return;const s=i,e=r[s],l=e.content,u=t[l];us(e,u.renderInfo);const d=u.argumentParser||u.signature;if(d==null){i--;continue}if(e.args!=null){i=s-1;continue}i++;const{args:y}=Xi(r,d,i);e.args=y,i=s-1}}const P0=function(t){return i=>{const{macros:o={}}=t||{};Object.keys(o).length===0&&console.warn("Attempting to attach macro arguments but no macros are specified."),$n(i,n=>{Yi(n,o)},{includeArrays:!0,test:Array.isArray})}},F0=_n("m")[0],O0=_n("o")[0],Ws={},R0=(r,t)=>{const{argument:i,nodesRemoved:o}=Bt(r,O0,t);let n=null,s=0;const e=r[t];if(Ve.group(e)){const l=Bt(r,F0,t);n=l.argument,s=l.nodesRemoved}else if(Ve.string(e)&&e.content.length===1){const l=e.content;Ws[l]=Ws[l]||_n(`r${l}${l}`)[0];const u=Bt(r,Ws[l],t);n=u.argument,s=u.nodesRemoved}return{args:[i||st(null),n||st(null)],nodesRemoved:o+s}},T0={lstset:{signature:"m"},lstinline:{argumentParser:R0},lstinputlisting:{signature:"o m"},lstdefinestyle:{signature:"m m"},lstnewenvironment:{signature:"m o o m m"},lstMakeShortInline:{signature:"o m"},lstDeleteShortInline:{signature:"m"},lstdefineformat:{signature:"m m"},lstdefinelanguage:{signature:"o m o m o"},lstalias:{signature:"o m o m"},lstloadlanguages:{signature:"m"}},D0={},L0={see:{signature:"m m"},seealso:{signature:"m m"},seename:{signature:"m"},alsoname:{signature:"m"},index:{signature:"m"}},B0={},N0={mathtoolsset:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},mathllap:{signature:"o m"},mathrlap:{signature:"o m"},mathclap:{signature:"o m"},clap:{signature:"m"},mathmbox:{signature:"m"},mathmakebox:{signature:"o o m"},cramped:{signature:"o m"},crampedllap:{signature:"o m"},crampedrlap:{signature:"o m"},crampedclap:{signature:"o m"},crampedsubstack:{signature:"o m"},smashoperator:{signature:"o m"},newtagform:{signature:"m o m m"},renewtagform:{signature:"m o m m"},usetagform:{signature:"m"},xleftrightarrow:{signature:"o m"},xLeftarrow:{signature:"o m"},xhookleftarrow:{signature:"o m"},xmapsto:{signature:"o m"},xRightarrow:{signature:"o m"},xLeftrightarrow:{signature:"o m"},xhookrightarrow:{signature:"o m"},underbracket:{signature:"o o m"},overbracket:{signature:"o o m"},underbrace:{signature:"m"},overbrace:{signature:"m"},shoveleft:{signature:"o m"},shoveright:{signature:"o m"},ArrowBetweenLines:{signature:"s o"},vdotswithin:{signature:"m"},shortdotswithin:{signature:"s m"},DeclarePairedDelimiter:{signature:"m m m",renderInfo:{breakAround:!0}},DeclarePairedDelimiterX:{signature:"m o m m m",renderInfo:{breakAround:!0}},DeclarePairedDelimiterXPP:{signature:"m o m m m m m",renderInfo:{breakAround:!0}},prescript:{signature:"m m m"},DeclareMathSizes:{signature:"m m m m"},newgathered:{signature:"m m m m"},renewgathered:{signature:"m m m m"},splitfrac:{signature:"m m"},splitdfrac:{signature:"m m"},xmathstrut:{signature:"o m"},newtheorem:{signature:"s m o m o",renderInfo:{breakAround:!0}},theoremstyle:{signature:"m",renderInfo:{breakAround:!0}},newtheoremstyle:{signature:"m m m m m m m m m",renderInfo:{breakAround:!0}},text:{signature:"m",renderInfo:{inMathMode:!1}},mathbb:{signature:"m"},mathscr:{signature:"m"},mathfrak:{signature:"m"},frak:{signature:"m"},Bdd:{signature:"m"},bold:{signature:"m"},operatorname:{signature:"s m"},DeclareMathOperator:{signature:"s m m",renderInfo:{breakAround:!0}}},j0={crampedsubarray:{signature:"m",renderInfo:{alignContent:!0,inMathMode:!0}},matrix:{renderInfo:{alignContent:!0,inMathMode:!0}},bmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},pmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},vmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Bmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Vmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},smallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},psmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},vsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},bsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Bsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Vsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},"matrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"bmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"pmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"vmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Bmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Vmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"smallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"psmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"bsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"vsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Bsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Vsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},multilined:{signature:"o o",renderInfo:{inMathMode:!0}},cases:{renderInfo:{alignContent:!0,inMathMode:!0}},"cases*":{renderInfo:{alignContent:!0,inMathMode:!0}},dcases:{renderInfo:{alignContent:!0,inMathMode:!0}},"dcases*":{renderInfo:{alignContent:!0,inMathMode:!0}},rcases:{renderInfo:{alignContent:!0,inMathMode:!0}},"rcases*":{renderInfo:{alignContent:!0,inMathMode:!0}},drcases:{renderInfo:{alignContent:!0,inMathMode:!0}},"drcases*":{renderInfo:{alignContent:!0,inMathMode:!0}},spreadlines:{signature:"m",renderInfo:{inMathMode:!0}},lgathered:{signature:"o",renderInfo:{inMathMode:!0}},rgathered:{signature:"o",renderInfo:{inMathMode:!0}},"align*":{renderInfo:{inMathMode:!0,alignContent:!0}},align:{renderInfo:{inMathMode:!0,alignContent:!0}},aligned:{renderInfo:{inMathMode:!0,alignContent:!0}},"alignat*":{renderInfo:{inMathMode:!0,alignContent:!0}},alignat:{renderInfo:{inMathMode:!0,alignContent:!0}},"equation*":{renderInfo:{inMathMode:!0}},equation:{renderInfo:{inMathMode:!0}},"gather*":{renderInfo:{inMathMode:!0}},gather:{renderInfo:{inMathMode:!0}},"multline*":{renderInfo:{inMathMode:!0}},multline:{renderInfo:{inMathMode:!0}},"flalign*":{renderInfo:{inMathMode:!0,alignContent:!0}},flalign:{renderInfo:{inMathMode:!0,alignContent:!0}},split:{renderInfo:{inMathMode:!0}},displaymath:{renderInfo:{inMathMode:!0}},theorem:{signature:"o"},lemma:{signature:"o"},definition:{signature:"o"},proposition:{signature:"o"},corollary:{signature:"o"},remark:{signature:"!o"},example:{signature:"!o"},proof:{signature:"o"}},Cl=_n("m")[0],z0=_n("o")[0],Gs={},Us=(r,t)=>{const{argument:i,nodesRemoved:o}=Bt(r,z0,t),{argument:n,nodesRemoved:s}=Bt(r,Cl,t);let e=null,l=0;const u=r[t];if(Ve.group(u)){const d=Bt(r,Cl,t);e=d.argument,l=d.nodesRemoved}else if(Ve.string(u)&&u.content.length===1){const d=u.content;Gs[d]=Gs[d]||_n(`r${d}${d}`)[0];const y=Bt(r,Gs[d],t);e=y.argument,l=y.nodesRemoved}return{args:[i||st(null),n||st(null),e||st(null)],nodesRemoved:o+s+l}},q0={mint:{argumentParser:Us},mintinline:{argumentParser:Us},inputminted:{argumentParser:Us},usemintedstyle:{signature:"m"},setminted:{signature:"o m"},setmintedinline:{signature:"o m"},newmint:{signature:"o m m"},newminted:{signature:"o m m"},newmintinline:{signature:"o m m"},newmintedfile:{signature:"o m m"}},W0={minted:{signature:"o m"}},G0={NiceMatrixOptions:{signature:"m",renderInfo:{pgfkeysArgs:!0,breakAround:!0}}},U0={NiceTabular:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceMatrixBlock:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceArrayWithDelims:{signature:"m m o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},pNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},bNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},BNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},vNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},VNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},pNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},bNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},BNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},vNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},VNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}}},V0={systeme:{signature:"s o o m",renderInfo:{inMathMode:!0}},sysdelim:{signature:"m m"},syseqsep:{signature:"m"},sysalign:{signature:"m"},syssignspace:{signature:"m"},syseqspace:{signature:"m"},syslineskipcoeff:{signature:"m"},syseqivsign:{signature:"m"},sysaddeqsign:{signature:"m"},sysremoveeqsign:{signature:"m"},sysextracolonsign:{signature:"m"},syscodeextracol:{signature:"m"},sysautonum:{signature:"m"},syssubstitute:{signature:"m"}},H0={};(function(){typeof globalThis!="object"&&(Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();const K0=_n("o")[0];function Pi(){return st([],{openMark:"",closeMark:""})}const Kf=(r,t)=>{const i=t;let o=t,n=0;const s=X0(r,o);let e=Pi();if(s!==o){const K=r.splice(o,s-o);zn(K),e=st(K,{openMark:" ",closeMark:" "})}n+=s-o;const{argument:l,nodesRemoved:u}=Bt(r,K0,o);n+=u;const d=l||Pi();for(;Ve.whitespace(r[o]);)o++;const y=r[o];if(!y)return{args:[e,d,Pi()],nodesRemoved:0};if(Ve.group(y)){const K=[e,d,st(y.content)];return r.splice(i,o-i+1),{args:K,nodesRemoved:o-i+1+n}}const T=Ki(r,";",{startIndex:o});if(T!=null){const K=r.splice(i,T-i+1);return zn(K),{args:[e,d,st(K)],nodesRemoved:i-T+1+n}}return{args:[e,d,Pi()],nodesRemoved:0}};function X0(r,t){const i=Ki(r,":",{startIndex:t,allowSubstringMatches:!0,onlySkipWhitespaceAndComments:!0});if(!i)return t;let o=t,n=i+1;for(;n=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},eh=Q0,rh=Array.prototype.concat,th=Array.prototype.slice,El=Jf.exports=function(t){for(var i=[],o=0,n=t.length;o=4&&r[3]!==1&&(t=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+t+")"};_t.to.keyword=function(r){return Qf[r.slice(0,3)]};function vn(r,t,i){return Math.min(Math.max(t,r),i)}function Fi(r){var t=Math.round(r).toString(16).toUpperCase();return t.length<2?"0"+t:t}var ih=Xf.exports;const fi=Yf,eu={};for(const r of Object.keys(fi))eu[fi[r]]=r;const er={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var ru=er;for(const r of Object.keys(er)){if(!("channels"in er[r]))throw new Error("missing channels property: "+r);if(!("labels"in er[r]))throw new Error("missing channel labels property: "+r);if(er[r].labels.length!==er[r].channels)throw new Error("channel and label counts mismatch: "+r);const{channels:t,labels:i}=er[r];delete er[r].channels,delete er[r].labels,Object.defineProperty(er[r],"channels",{value:t}),Object.defineProperty(er[r],"labels",{value:i})}er.rgb.hsl=function(r){const t=r[0]/255,i=r[1]/255,o=r[2]/255,n=Math.min(t,i,o),s=Math.max(t,i,o),e=s-n;let l,u;s===n?l=0:t===s?l=(i-o)/e:i===s?l=2+(o-t)/e:o===s&&(l=4+(t-i)/e),l=Math.min(l*60,360),l<0&&(l+=360);const d=(n+s)/2;return s===n?u=0:d<=.5?u=e/(s+n):u=e/(2-s-n),[l,u*100,d*100]};er.rgb.hsv=function(r){let t,i,o,n,s;const e=r[0]/255,l=r[1]/255,u=r[2]/255,d=Math.max(e,l,u),y=d-Math.min(e,l,u),T=function(K){return(d-K)/6/y+1/2};return y===0?(n=0,s=0):(s=y/d,t=T(e),i=T(l),o=T(u),e===d?n=o-i:l===d?n=1/3+t-o:u===d&&(n=2/3+i-t),n<0?n+=1:n>1&&(n-=1)),[n*360,s*100,d*100]};er.rgb.hwb=function(r){const t=r[0],i=r[1];let o=r[2];const n=er.rgb.hsl(r)[0],s=1/255*Math.min(t,Math.min(i,o));return o=1-1/255*Math.max(t,Math.max(i,o)),[n,s*100,o*100]};er.rgb.cmyk=function(r){const t=r[0]/255,i=r[1]/255,o=r[2]/255,n=Math.min(1-t,1-i,1-o),s=(1-t-n)/(1-n)||0,e=(1-i-n)/(1-n)||0,l=(1-o-n)/(1-n)||0;return[s*100,e*100,l*100,n*100]};function sh(r,t){return(r[0]-t[0])**2+(r[1]-t[1])**2+(r[2]-t[2])**2}er.rgb.keyword=function(r){const t=eu[r];if(t)return t;let i=1/0,o;for(const n of Object.keys(fi)){const s=fi[n],e=sh(r,s);e.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;const n=t*.4124+i*.3576+o*.1805,s=t*.2126+i*.7152+o*.0722,e=t*.0193+i*.1192+o*.9505;return[n*100,s*100,e*100]};er.rgb.lab=function(r){const t=er.rgb.xyz(r);let i=t[0],o=t[1],n=t[2];i/=95.047,o/=100,n/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const s=116*o-16,e=500*(i-o),l=200*(o-n);return[s,e,l]};er.hsl.rgb=function(r){const t=r[0]/360,i=r[1]/100,o=r[2]/100;let n,s,e;if(i===0)return e=o*255,[e,e,e];o<.5?n=o*(1+i):n=o+i-o*i;const l=2*o-n,u=[0,0,0];for(let d=0;d<3;d++)s=t+1/3*-(d-1),s<0&&s++,s>1&&s--,6*s<1?e=l+(n-l)*6*s:2*s<1?e=n:3*s<2?e=l+(n-l)*(2/3-s)*6:e=l,u[d]=e*255;return u};er.hsl.hsv=function(r){const t=r[0];let i=r[1]/100,o=r[2]/100,n=i;const s=Math.max(o,.01);o*=2,i*=o<=1?o:2-o,n*=s<=1?s:2-s;const e=(o+i)/2,l=o===0?2*n/(s+n):2*i/(o+i);return[t,l*100,e*100]};er.hsv.rgb=function(r){const t=r[0]/60,i=r[1]/100;let o=r[2]/100;const n=Math.floor(t)%6,s=t-Math.floor(t),e=255*o*(1-i),l=255*o*(1-i*s),u=255*o*(1-i*(1-s));switch(o*=255,n){case 0:return[o,u,e];case 1:return[l,o,e];case 2:return[e,o,u];case 3:return[e,l,o];case 4:return[u,e,o];case 5:return[o,e,l]}};er.hsv.hsl=function(r){const t=r[0],i=r[1]/100,o=r[2]/100,n=Math.max(o,.01);let s,e;e=(2-i)*o;const l=(2-i)*n;return s=i*n,s/=l<=1?l:2-l,s=s||0,e/=2,[t,s*100,e*100]};er.hwb.rgb=function(r){const t=r[0]/360;let i=r[1]/100,o=r[2]/100;const n=i+o;let s;n>1&&(i/=n,o/=n);const e=Math.floor(6*t),l=1-o;s=6*t-e,e&1&&(s=1-s);const u=i+s*(l-i);let d,y,T;switch(e){default:case 6:case 0:d=l,y=u,T=i;break;case 1:d=u,y=l,T=i;break;case 2:d=i,y=l,T=u;break;case 3:d=i,y=u,T=l;break;case 4:d=u,y=i,T=l;break;case 5:d=l,y=i,T=u;break}return[d*255,y*255,T*255]};er.cmyk.rgb=function(r){const t=r[0]/100,i=r[1]/100,o=r[2]/100,n=r[3]/100,s=1-Math.min(1,t*(1-n)+n),e=1-Math.min(1,i*(1-n)+n),l=1-Math.min(1,o*(1-n)+n);return[s*255,e*255,l*255]};er.xyz.rgb=function(r){const t=r[0]/100,i=r[1]/100,o=r[2]/100;let n,s,e;return n=t*3.2406+i*-1.5372+o*-.4986,s=t*-.9689+i*1.8758+o*.0415,e=t*.0557+i*-.204+o*1.057,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,e=e>.0031308?1.055*e**(1/2.4)-.055:e*12.92,n=Math.min(Math.max(0,n),1),s=Math.min(Math.max(0,s),1),e=Math.min(Math.max(0,e),1),[n*255,s*255,e*255]};er.xyz.lab=function(r){let t=r[0],i=r[1],o=r[2];t/=95.047,i/=100,o/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const n=116*i-16,s=500*(t-i),e=200*(i-o);return[n,s,e]};er.lab.xyz=function(r){const t=r[0],i=r[1],o=r[2];let n,s,e;s=(t+16)/116,n=i/500+s,e=s-o/200;const l=s**3,u=n**3,d=e**3;return s=l>.008856?l:(s-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,e=d>.008856?d:(e-16/116)/7.787,n*=95.047,s*=100,e*=108.883,[n,s,e]};er.lab.lch=function(r){const t=r[0],i=r[1],o=r[2];let n;n=Math.atan2(o,i)*360/2/Math.PI,n<0&&(n+=360);const e=Math.sqrt(i*i+o*o);return[t,e,n]};er.lch.lab=function(r){const t=r[0],i=r[1],n=r[2]/360*2*Math.PI,s=i*Math.cos(n),e=i*Math.sin(n);return[t,s,e]};er.rgb.ansi16=function(r,t=null){const[i,o,n]=r;let s=t===null?er.rgb.hsv(r)[2]:t;if(s=Math.round(s/50),s===0)return 30;let e=30+(Math.round(n/255)<<2|Math.round(o/255)<<1|Math.round(i/255));return s===2&&(e+=60),e};er.hsv.ansi16=function(r){return er.rgb.ansi16(er.hsv.rgb(r),r[2])};er.rgb.ansi256=function(r){const t=r[0],i=r[1],o=r[2];return t===i&&i===o?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(o/255*5)};er.ansi16.rgb=function(r){let t=r%10;if(t===0||t===7)return r>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const i=(~~(r>50)+1)*.5,o=(t&1)*i*255,n=(t>>1&1)*i*255,s=(t>>2&1)*i*255;return[o,n,s]};er.ansi256.rgb=function(r){if(r>=232){const s=(r-232)*10+8;return[s,s,s]}r-=16;let t;const i=Math.floor(r/36)/5*255,o=Math.floor((t=r%36)/6)/5*255,n=t%6/5*255;return[i,o,n]};er.rgb.hex=function(r){const i=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(i.length)+i};er.hex.rgb=function(r){const t=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let i=t[0];t[0].length===3&&(i=i.split("").map(l=>l+l).join(""));const o=parseInt(i,16),n=o>>16&255,s=o>>8&255,e=o&255;return[n,s,e]};er.rgb.hcg=function(r){const t=r[0]/255,i=r[1]/255,o=r[2]/255,n=Math.max(Math.max(t,i),o),s=Math.min(Math.min(t,i),o),e=n-s;let l,u;return e<1?l=s/(1-e):l=0,e<=0?u=0:n===t?u=(i-o)/e%6:n===i?u=2+(o-t)/e:u=4+(t-i)/e,u/=6,u%=1,[u*360,e*100,l*100]};er.hsl.hcg=function(r){const t=r[1]/100,i=r[2]/100,o=i<.5?2*t*i:2*t*(1-i);let n=0;return o<1&&(n=(i-.5*o)/(1-o)),[r[0],o*100,n*100]};er.hsv.hcg=function(r){const t=r[1]/100,i=r[2]/100,o=t*i;let n=0;return o<1&&(n=(i-o)/(1-o)),[r[0],o*100,n*100]};er.hcg.rgb=function(r){const t=r[0]/360,i=r[1]/100,o=r[2]/100;if(i===0)return[o*255,o*255,o*255];const n=[0,0,0],s=t%1*6,e=s%1,l=1-e;let u=0;switch(Math.floor(s)){case 0:n[0]=1,n[1]=e,n[2]=0;break;case 1:n[0]=l,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=e;break;case 3:n[0]=0,n[1]=l,n[2]=1;break;case 4:n[0]=e,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=l}return u=(1-i)*o,[(i*n[0]+u)*255,(i*n[1]+u)*255,(i*n[2]+u)*255]};er.hcg.hsv=function(r){const t=r[1]/100,i=r[2]/100,o=t+i*(1-t);let n=0;return o>0&&(n=t/o),[r[0],n*100,o*100]};er.hcg.hsl=function(r){const t=r[1]/100,o=r[2]/100*(1-t)+.5*t;let n=0;return o>0&&o<.5?n=t/(2*o):o>=.5&&o<1&&(n=t/(2*(1-o))),[r[0],n*100,o*100]};er.hcg.hwb=function(r){const t=r[1]/100,i=r[2]/100,o=t+i*(1-t);return[r[0],(o-t)*100,(1-o)*100]};er.hwb.hcg=function(r){const t=r[1]/100,o=1-r[2]/100,n=o-t;let s=0;return n<1&&(s=(o-n)/(1-n)),[r[0],n*100,s*100]};er.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};er.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};er.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};er.gray.hsl=function(r){return[0,0,r[0]]};er.gray.hsv=er.gray.hsl;er.gray.hwb=function(r){return[0,100,r[0]]};er.gray.cmyk=function(r){return[0,0,0,r[0]]};er.gray.lab=function(r){return[r[0],0,0]};er.gray.hex=function(r){const t=Math.round(r[0]/100*255)&255,o=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(o.length)+o};er.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]};const Ji=ru;function oh(){const r={},t=Object.keys(Ji);for(let i=t.length,o=0;o1&&(i=o),r(i))};return"conversion"in r&&(t.conversion=r.conversion),t}function hh(r){const t=function(...i){const o=i[0];if(o==null)return o;o.length>1&&(i=o);const n=r(i);if(typeof n=="object")for(let s=n.length,e=0;e{Rn[r]={},Object.defineProperty(Rn[r],"channels",{value:yo[r].channels}),Object.defineProperty(Rn[r],"labels",{value:yo[r].labels});const t=ch(r);Object.keys(t).forEach(o=>{const n=t[o];Rn[r][o]=hh(n),Rn[r][o].raw=ph(n)})});var dh=Rn;const Tn=ih,wt=dh,tu=["keyword","gray","hex"],$o={};for(const r of Object.keys(wt))$o[[...wt[r].labels].sort().join("")]=r;const Zi={};function it(r,t){if(!(this instanceof it))return new it(r,t);if(t&&t in tu&&(t=null),t&&!(t in wt))throw new Error("Unknown model: "+t);let i,o;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof it)this.model=r.model,this.color=[...r.color],this.valpha=r.valpha;else if(typeof r=="string"){const n=Tn.get(r);if(n===null)throw new Error("Unable to parse color from string: "+r);this.model=n.model,o=wt[this.model].channels,this.color=n.value.slice(0,o),this.valpha=typeof n.value[o]=="number"?n.value[o]:1}else if(r.length>0){this.model=t||"rgb",o=wt[this.model].channels;const n=Array.prototype.slice.call(r,0,o);this.color=Ao(n,o),this.valpha=typeof r[o]=="number"?r[o]:1}else if(typeof r=="number")this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;const n=Object.keys(r);"alpha"in r&&(n.splice(n.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);const s=n.sort().join("");if(!(s in $o))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=$o[s];const{labels:e}=wt[this.model],l=[];for(i=0;i(r%360+360)%360),saturationl:Xr("hsl",1,tt(100)),lightness:Xr("hsl",2,tt(100)),saturationv:Xr("hsv",1,tt(100)),value:Xr("hsv",2,tt(100)),chroma:Xr("hcg",1,tt(100)),gray:Xr("hcg",2,tt(100)),white:Xr("hwb",1,tt(100)),wblack:Xr("hwb",2,tt(100)),cyan:Xr("cmyk",0,tt(100)),magenta:Xr("cmyk",1,tt(100)),yellow:Xr("cmyk",2,tt(100)),black:Xr("cmyk",3,tt(100)),x:Xr("xyz",0,tt(95.047)),y:Xr("xyz",1,tt(100)),z:Xr("xyz",2,tt(108.833)),l:Xr("lab",0,tt(100)),a:Xr("lab",1),b:Xr("lab",2),keyword(r){return r!==void 0?new it(r):wt[this.model].keyword(this.color)},hex(r){return r!==void 0?new it(r):Tn.to.hex(this.rgb().round().color)},hexa(r){if(r!==void 0)return new it(r);const t=this.rgb().round().color;let i=Math.round(this.valpha*255).toString(16).toUpperCase();return i.length===1&&(i="0"+i),Tn.to.hex(t)+i},rgbNumber(){const r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity(){const r=this.rgb().color,t=[];for(const[i,o]of r.entries()){const n=o/255;t[i]=n<=.04045?n/12.92:((n+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(r){const t=this.luminosity(),i=r.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level(r){const t=this.contrast(r);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const r=this.rgb().color;return(r[0]*2126+r[1]*7152+r[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const r=this.rgb();for(let t=0;t<3;t++)r.color[t]=255-r.color[t];return r},lighten(r){const t=this.hsl();return t.color[2]+=t.color[2]*r,t},darken(r){const t=this.hsl();return t.color[2]-=t.color[2]*r,t},saturate(r){const t=this.hsl();return t.color[1]+=t.color[1]*r,t},desaturate(r){const t=this.hsl();return t.color[1]-=t.color[1]*r,t},whiten(r){const t=this.hwb();return t.color[1]+=t.color[1]*r,t},blacken(r){const t=this.hwb();return t.color[2]+=t.color[2]*r,t},grayscale(){const r=this.rgb().color,t=r[0]*.3+r[1]*.59+r[2]*.11;return it.rgb(t,t,t)},fade(r){return this.alpha(this.valpha-this.valpha*r)},opaquer(r){return this.alpha(this.valpha+this.valpha*r)},rotate(r){const t=this.hsl();let i=t.color[0];return i=(i+r)%360,i=i<0?360+i:i,t.color[0]=i,t},mix(r,t){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);const i=r.rgb(),o=this.rgb(),n=t===void 0?.5:t,s=2*n-1,e=i.alpha()-o.alpha(),l=((s*e===-1?s:(s+e)/(1+s*e))+1)/2,u=1-l;return it.rgb(l*i.red()+u*o.red(),l*i.green()+u*o.green(),l*i.blue()+u*o.blue(),i.alpha()*n+o.alpha()*(1-n))}};for(const r of Object.keys(wt)){if(tu.includes(r))continue;const{channels:t}=wt[r];it.prototype[r]=function(...i){return this.model===r?new it(this):i.length>0?new it(i,r):new it([...bh(wt[this.model][r].raw(this.color)),this.valpha],r)},it[r]=function(...i){let o=i[0];return typeof o=="number"&&(o=Ao(i,t)),new it(o,r)}}function mh(r,t){return Number(r.toFixed(t))}function vh(r){return function(t){return mh(t,r)}}function Xr(r,t,i){r=Array.isArray(r)?r:[r];for(const o of r)(Zi[o]||(Zi[o]=[]))[t]=i;return r=r[0],function(o){let n;return o!==void 0?(i&&(o=i(o)),n=this[r](),n.color[t]=o,n):(n=this[r]().color[t],i&&(n=i(n)),n)}}function tt(r){return function(t){return Math.max(0,Math.min(r,t))}}function bh(r){return Array.isArray(r)?r:[r]}function Ao(r,t){for(let i=0;ije([r*255,t*255,i*255],"rgb"),xh={Apricot:je("#FBB982"),Aquamarine:je("#00B5BE"),Bittersweet:je("#C04F17"),Black:je("#221E1F"),Blue:je("#2D2F92"),BlueGreen:je("#00B3B8"),BlueViolet:je("#473992"),BrickRed:je("#B6321C"),Brown:je("#792500"),BurntOrange:je("#F7921D"),CadetBlue:je("#74729A"),CarnationPink:je("#F282B4"),Cerulean:je("#00A2E3"),CornflowerBlue:je("#41B0E4"),Cyan:je("#00AEEF"),Dandelion:je("#FDBC42"),DarkOrchid:je("#A4538A"),Emerald:je("#00A99D"),ForestGreen:je("#009B55"),Fuchsia:je("#8C368C"),Goldenrod:je("#FFDF42"),Gray:je("#949698"),Green:je("#00A64F"),GreenYellow:je("#DFE674"),JungleGreen:je("#00A99A"),Lavender:je("#F49EC4"),LimeGreen:je("#8DC73E"),Magenta:je("#EC008C"),Mahogany:je("#A9341F"),Maroon:je("#AF3235"),Melon:je("#F89E7B"),MidnightBlue:je("#006795"),Mulberry:je("#A93C93"),NavyBlue:je("#006EB8"),OliveGreen:je("#3C8031"),Orange:je("#F58137"),OrangeRed:je("#ED135A"),Orchid:je("#AF72B0"),Peach:je("#F7965A"),Periwinkle:je("#7977B8"),PineGreen:je("#008B72"),Plum:je("#92268F"),ProcessBlue:je("#00B0F0"),Purple:je("#99479B"),RawSienna:je("#974006"),Red:je("#ED1B23"),RedOrange:je("#F26035"),RedViolet:je("#A1246B"),Rhodamine:je("#EF559F"),RoyalBlue:je("#0071BC"),RoyalPurple:je("#613F99"),RubineRed:je("#ED017D"),Salmon:je("#F69289"),SeaGreen:je("#3FBC9D"),Sepia:je("#671800"),SkyBlue:je("#46C5DD"),SpringGreen:je("#C6DC67"),Tan:je("#DA9D76"),TealBlue:je("#00AEB3"),Thistle:je("#D883B7"),Turquoise:je("#00B4CE"),Violet:je("#58429B"),VioletRed:je("#EF58A0"),White:je("#FFFFFF"),WildStrawberry:je("#EE2967"),Yellow:je("#FFF200"),YellowGreen:je("#98CC70"),YellowOrange:je("#FAA21A")},wh={AliceBlue:p([.94,.972,1]),AntiqueWhite:p([.98,.92,.844]),Aqua:p([0,1,1]),Aquamarine:p([.498,1,.83]),Azure:p([.94,1,1]),Beige:p([.96,.96,.864]),Bisque:p([1,.894,.77]),Black:p([0,0,0]),BlanchedAlmond:p([1,.92,.804]),Blue:p([0,0,1]),BlueViolet:p([.54,.17,.888]),Brown:p([.648,.165,.165]),BurlyWood:p([.87,.72,.53]),CadetBlue:p([.372,.62,.628]),Chartreuse:p([.498,1,0]),Chocolate:p([.824,.41,.116]),Coral:p([1,.498,.312]),CornflowerBlue:p([.392,.585,.93]),Cornsilk:p([1,.972,.864]),Crimson:p([.864,.08,.235]),Cyan:p([0,1,1]),DarkBlue:p([0,0,.545]),DarkCyan:p([0,.545,.545]),DarkGoldenrod:p([.72,.525,.044]),DarkGray:p([.664,.664,.664]),DarkGreen:p([0,.392,0]),DarkGrey:p([.664,.664,.664]),DarkKhaki:p([.74,.716,.42]),DarkMagenta:p([.545,0,.545]),DarkOliveGreen:p([.332,.42,.185]),DarkOrange:p([1,.55,0]),DarkOrchid:p([.6,.196,.8]),DarkRed:p([.545,0,0]),DarkSalmon:p([.912,.59,.48]),DarkSeaGreen:p([.56,.736,.56]),DarkSlateBlue:p([.284,.24,.545]),DarkSlateGray:p([.185,.31,.31]),DarkSlateGrey:p([.185,.31,.31]),DarkTurquoise:p([0,.808,.82]),DarkViolet:p([.58,0,.828]),DeepPink:p([1,.08,.576]),DeepSkyBlue:p([0,.75,1]),DimGray:p([.41,.41,.41]),DimGrey:p([.41,.41,.41]),DodgerBlue:p([.116,.565,1]),FireBrick:p([.698,.132,.132]),FloralWhite:p([1,.98,.94]),ForestGreen:p([.132,.545,.132]),Fuchsia:p([1,0,1]),Gainsboro:p([.864,.864,.864]),GhostWhite:p([.972,.972,1]),Gold:p([1,.844,0]),Goldenrod:p([.855,.648,.125]),Gray:p([.5,.5,.5]),Green:p([0,.5,0]),GreenYellow:p([.68,1,.185]),Grey:p([.5,.5,.5]),Honeydew:p([.94,1,.94]),HotPink:p([1,.41,.705]),IndianRed:p([.804,.36,.36]),Indigo:p([.294,0,.51]),Ivory:p([1,1,.94]),Khaki:p([.94,.9,.55]),Lavender:p([.9,.9,.98]),LavenderBlush:p([1,.94,.96]),LawnGreen:p([.488,.99,0]),LemonChiffon:p([1,.98,.804]),LightBlue:p([.68,.848,.9]),LightCoral:p([.94,.5,.5]),LightCyan:p([.88,1,1]),LightGoldenrod:p([.933,.867,.51]),LightGoldenrodYellow:p([.98,.98,.824]),LightGray:p([.828,.828,.828]),LightGreen:p([.565,.932,.565]),LightGrey:p([.828,.828,.828]),LightPink:p([1,.712,.756]),LightSalmon:p([1,.628,.48]),LightSeaGreen:p([.125,.698,.668]),LightSkyBlue:p([.53,.808,.98]),LightSlateBlue:p([.518,.44,1]),LightSlateGray:p([.468,.532,.6]),LightSlateGrey:p([.468,.532,.6]),LightSteelBlue:p([.69,.77,.87]),LightYellow:p([1,1,.88]),Lime:p([0,1,0]),LimeGreen:p([.196,.804,.196]),Linen:p([.98,.94,.9]),Magenta:p([1,0,1]),Maroon:p([.5,0,0]),MediumAquamarine:p([.4,.804,.668]),MediumBlue:p([0,0,.804]),MediumOrchid:p([.73,.332,.828]),MediumPurple:p([.576,.44,.86]),MediumSeaGreen:p([.235,.7,.444]),MediumSlateBlue:p([.484,.408,.932]),MediumSpringGreen:p([0,.98,.604]),MediumTurquoise:p([.284,.82,.8]),MediumVioletRed:p([.78,.084,.52]),MidnightBlue:p([.098,.098,.44]),MintCream:p([.96,1,.98]),MistyRose:p([1,.894,.884]),Moccasin:p([1,.894,.71]),NavajoWhite:p([1,.87,.68]),Navy:p([0,0,.5]),NavyBlue:p([0,0,.5]),OldLace:p([.992,.96,.9]),Olive:p([.5,.5,0]),OliveDrab:p([.42,.556,.136]),Orange:p([1,.648,0]),OrangeRed:p([1,.27,0]),Orchid:p([.855,.44,.84]),PaleGoldenrod:p([.932,.91,.668]),PaleGreen:p([.596,.985,.596]),PaleTurquoise:p([.688,.932,.932]),PaleVioletRed:p([.86,.44,.576]),PapayaWhip:p([1,.936,.835]),PeachPuff:p([1,.855,.725]),Peru:p([.804,.52,.248]),Pink:p([1,.752,.796]),Plum:p([.868,.628,.868]),PowderBlue:p([.69,.88,.9]),Purple:p([.5,0,.5]),Red:p([1,0,0]),RosyBrown:p([.736,.56,.56]),RoyalBlue:p([.255,.41,.884]),SaddleBrown:p([.545,.27,.075]),Salmon:p([.98,.5,.448]),SandyBrown:p([.956,.644,.376]),SeaGreen:p([.18,.545,.34]),Seashell:p([1,.96,.932]),Sienna:p([.628,.32,.176]),Silver:p([.752,.752,.752]),SkyBlue:p([.53,.808,.92]),SlateBlue:p([.415,.352,.804]),SlateGray:p([.44,.5,.565]),SlateGrey:p([.44,.5,.565]),Snow:p([1,.98,.98]),SpringGreen:p([0,1,.498]),SteelBlue:p([.275,.51,.705]),Tan:p([.824,.705,.55]),Teal:p([0,.5,.5]),Thistle:p([.848,.75,.848]),Tomato:p([1,.39,.28]),Turquoise:p([.25,.88,.815]),Violet:p([.932,.51,.932]),VioletRed:p([.816,.125,.565]),Wheat:p([.96,.87,.7]),White:p([1,1,1]),WhiteSmoke:p([.96,.96,.96]),Yellow:p([1,1,0]),YellowGreen:p([.604,.804,.196])},_h={AntiqueWhite1:p([1,.936,.86]),AntiqueWhite2:p([.932,.875,.8]),AntiqueWhite3:p([.804,.752,.69]),AntiqueWhite4:p([.545,.512,.47]),Aquamarine1:p([.498,1,.83]),Aquamarine2:p([.464,.932,.776]),Aquamarine3:p([.4,.804,.668]),Aquamarine4:p([.27,.545,.455]),Azure1:p([.94,1,1]),Azure2:p([.88,.932,.932]),Azure3:p([.756,.804,.804]),Azure4:p([.512,.545,.545]),Bisque1:p([1,.894,.77]),Bisque2:p([.932,.835,.716]),Bisque3:p([.804,.716,.62]),Bisque4:p([.545,.49,.42]),Blue1:p([0,0,1]),Blue2:p([0,0,.932]),Blue3:p([0,0,.804]),Blue4:p([0,0,.545]),Brown1:p([1,.25,.25]),Brown2:p([.932,.23,.23]),Brown3:p([.804,.2,.2]),Brown4:p([.545,.136,.136]),Burlywood1:p([1,.828,.608]),Burlywood2:p([.932,.772,.57]),Burlywood3:p([.804,.668,.49]),Burlywood4:p([.545,.45,.332]),CadetBlue1:p([.596,.96,1]),CadetBlue2:p([.556,.898,.932]),CadetBlue3:p([.48,.772,.804]),CadetBlue4:p([.325,.525,.545]),Chartreuse1:p([.498,1,0]),Chartreuse2:p([.464,.932,0]),Chartreuse3:p([.4,.804,0]),Chartreuse4:p([.27,.545,0]),Chocolate1:p([1,.498,.14]),Chocolate2:p([.932,.464,.13]),Chocolate3:p([.804,.4,.112]),Chocolate4:p([.545,.27,.075]),Coral1:p([1,.448,.336]),Coral2:p([.932,.415,.312]),Coral3:p([.804,.356,.27]),Coral4:p([.545,.244,.185]),Cornsilk1:p([1,.972,.864]),Cornsilk2:p([.932,.91,.804]),Cornsilk3:p([.804,.785,.694]),Cornsilk4:p([.545,.532,.47]),Cyan1:p([0,1,1]),Cyan2:p([0,.932,.932]),Cyan3:p([0,.804,.804]),Cyan4:p([0,.545,.545]),DarkGoldenrod1:p([1,.725,.06]),DarkGoldenrod2:p([.932,.68,.055]),DarkGoldenrod3:p([.804,.585,.048]),DarkGoldenrod4:p([.545,.396,.03]),DarkOliveGreen1:p([.792,1,.44]),DarkOliveGreen2:p([.736,.932,.408]),DarkOliveGreen3:p([.635,.804,.352]),DarkOliveGreen4:p([.43,.545,.24]),DarkOrange1:p([1,.498,0]),DarkOrange2:p([.932,.464,0]),DarkOrange3:p([.804,.4,0]),DarkOrange4:p([.545,.27,0]),DarkOrchid1:p([.75,.244,1]),DarkOrchid2:p([.698,.228,.932]),DarkOrchid3:p([.604,.196,.804]),DarkOrchid4:p([.408,.132,.545]),DarkSeaGreen1:p([.756,1,.756]),DarkSeaGreen2:p([.705,.932,.705]),DarkSeaGreen3:p([.608,.804,.608]),DarkSeaGreen4:p([.41,.545,.41]),DarkSlateGray1:p([.592,1,1]),DarkSlateGray2:p([.552,.932,.932]),DarkSlateGray3:p([.475,.804,.804]),DarkSlateGray4:p([.32,.545,.545]),DeepPink1:p([1,.08,.576]),DeepPink2:p([.932,.07,.536]),DeepPink3:p([.804,.064,.464]),DeepPink4:p([.545,.04,.312]),DeepSkyBlue1:p([0,.75,1]),DeepSkyBlue2:p([0,.698,.932]),DeepSkyBlue3:p([0,.604,.804]),DeepSkyBlue4:p([0,.408,.545]),DodgerBlue1:p([.116,.565,1]),DodgerBlue2:p([.11,.525,.932]),DodgerBlue3:p([.094,.455,.804]),DodgerBlue4:p([.064,.305,.545]),Firebrick1:p([1,.19,.19]),Firebrick2:p([.932,.172,.172]),Firebrick3:p([.804,.15,.15]),Firebrick4:p([.545,.1,.1]),Gold1:p([1,.844,0]),Gold2:p([.932,.79,0]),Gold3:p([.804,.68,0]),Gold4:p([.545,.46,0]),Goldenrod1:p([1,.756,.145]),Goldenrod2:p([.932,.705,.132]),Goldenrod3:p([.804,.608,.112]),Goldenrod4:p([.545,.41,.08]),Green1:p([0,1,0]),Green2:p([0,.932,0]),Green3:p([0,.804,0]),Green4:p([0,.545,0]),Honeydew1:p([.94,1,.94]),Honeydew2:p([.88,.932,.88]),Honeydew3:p([.756,.804,.756]),Honeydew4:p([.512,.545,.512]),HotPink1:p([1,.43,.705]),HotPink2:p([.932,.415,.655]),HotPink3:p([.804,.376,.565]),HotPink4:p([.545,.228,.385]),IndianRed1:p([1,.415,.415]),IndianRed2:p([.932,.39,.39]),IndianRed3:p([.804,.332,.332]),IndianRed4:p([.545,.228,.228]),Ivory1:p([1,1,.94]),Ivory2:p([.932,.932,.88]),Ivory3:p([.804,.804,.756]),Ivory4:p([.545,.545,.512]),Khaki1:p([1,.965,.56]),Khaki2:p([.932,.9,.52]),Khaki3:p([.804,.776,.45]),Khaki4:p([.545,.525,.305]),LavenderBlush1:p([1,.94,.96]),LavenderBlush2:p([.932,.88,.898]),LavenderBlush3:p([.804,.756,.772]),LavenderBlush4:p([.545,.512,.525]),LemonChiffon1:p([1,.98,.804]),LemonChiffon2:p([.932,.912,.75]),LemonChiffon3:p([.804,.79,.648]),LemonChiffon4:p([.545,.536,.44]),LightBlue1:p([.75,.936,1]),LightBlue2:p([.698,.875,.932]),LightBlue3:p([.604,.752,.804]),LightBlue4:p([.408,.512,.545]),LightCyan1:p([.88,1,1]),LightCyan2:p([.82,.932,.932]),LightCyan3:p([.705,.804,.804]),LightCyan4:p([.48,.545,.545]),LightGoldenrod1:p([1,.925,.545]),LightGoldenrod2:p([.932,.864,.51]),LightGoldenrod3:p([.804,.745,.44]),LightGoldenrod4:p([.545,.505,.298]),LightPink1:p([1,.684,.725]),LightPink2:p([.932,.635,.68]),LightPink3:p([.804,.55,.585]),LightPink4:p([.545,.372,.396]),LightSalmon1:p([1,.628,.48]),LightSalmon2:p([.932,.585,.448]),LightSalmon3:p([.804,.505,.385]),LightSalmon4:p([.545,.34,.26]),LightSkyBlue1:p([.69,.888,1]),LightSkyBlue2:p([.644,.828,.932]),LightSkyBlue3:p([.552,.712,.804]),LightSkyBlue4:p([.376,.484,.545]),LightSteelBlue1:p([.792,.884,1]),LightSteelBlue2:p([.736,.824,.932]),LightSteelBlue3:p([.635,.71,.804]),LightSteelBlue4:p([.43,.484,.545]),LightYellow1:p([1,1,.88]),LightYellow2:p([.932,.932,.82]),LightYellow3:p([.804,.804,.705]),LightYellow4:p([.545,.545,.48]),Magenta1:p([1,0,1]),Magenta2:p([.932,0,.932]),Magenta3:p([.804,0,.804]),Magenta4:p([.545,0,.545]),Maroon1:p([1,.204,.7]),Maroon2:p([.932,.19,.655]),Maroon3:p([.804,.16,.565]),Maroon4:p([.545,.11,.385]),MediumOrchid1:p([.88,.4,1]),MediumOrchid2:p([.82,.372,.932]),MediumOrchid3:p([.705,.32,.804]),MediumOrchid4:p([.48,.215,.545]),MediumPurple1:p([.67,.51,1]),MediumPurple2:p([.624,.475,.932]),MediumPurple3:p([.536,.408,.804]),MediumPurple4:p([.365,.28,.545]),MistyRose1:p([1,.894,.884]),MistyRose2:p([.932,.835,.824]),MistyRose3:p([.804,.716,.71]),MistyRose4:p([.545,.49,.484]),NavajoWhite1:p([1,.87,.68]),NavajoWhite2:p([.932,.81,.63]),NavajoWhite3:p([.804,.7,.545]),NavajoWhite4:p([.545,.475,.37]),OliveDrab1:p([.752,1,.244]),OliveDrab2:p([.7,.932,.228]),OliveDrab3:p([.604,.804,.196]),OliveDrab4:p([.41,.545,.132]),Orange1:p([1,.648,0]),Orange2:p([.932,.604,0]),Orange3:p([.804,.52,0]),Orange4:p([.545,.352,0]),OrangeRed1:p([1,.27,0]),OrangeRed2:p([.932,.25,0]),OrangeRed3:p([.804,.215,0]),OrangeRed4:p([.545,.145,0]),Orchid1:p([1,.512,.98]),Orchid2:p([.932,.48,.912]),Orchid3:p([.804,.41,.79]),Orchid4:p([.545,.28,.536]),PaleGreen1:p([.604,1,.604]),PaleGreen2:p([.565,.932,.565]),PaleGreen3:p([.488,.804,.488]),PaleGreen4:p([.33,.545,.33]),PaleTurquoise1:p([.732,1,1]),PaleTurquoise2:p([.684,.932,.932]),PaleTurquoise3:p([.59,.804,.804]),PaleTurquoise4:p([.4,.545,.545]),PaleVioletRed1:p([1,.51,.67]),PaleVioletRed2:p([.932,.475,.624]),PaleVioletRed3:p([.804,.408,.536]),PaleVioletRed4:p([.545,.28,.365]),PeachPuff1:p([1,.855,.725]),PeachPuff2:p([.932,.796,.68]),PeachPuff3:p([.804,.688,.585]),PeachPuff4:p([.545,.468,.396]),Pink1:p([1,.71,.772]),Pink2:p([.932,.664,.72]),Pink3:p([.804,.57,.62]),Pink4:p([.545,.39,.424]),Plum1:p([1,.732,1]),Plum2:p([.932,.684,.932]),Plum3:p([.804,.59,.804]),Plum4:p([.545,.4,.545]),Purple1:p([.608,.19,1]),Purple2:p([.57,.172,.932]),Purple3:p([.49,.15,.804]),Purple4:p([.332,.1,.545]),Red1:p([1,0,0]),Red2:p([.932,0,0]),Red3:p([.804,0,0]),Red4:p([.545,0,0]),RosyBrown1:p([1,.756,.756]),RosyBrown2:p([.932,.705,.705]),RosyBrown3:p([.804,.608,.608]),RosyBrown4:p([.545,.41,.41]),RoyalBlue1:p([.284,.464,1]),RoyalBlue2:p([.264,.43,.932]),RoyalBlue3:p([.228,.372,.804]),RoyalBlue4:p([.152,.25,.545]),Salmon1:p([1,.55,.41]),Salmon2:p([.932,.51,.385]),Salmon3:p([.804,.44,.33]),Salmon4:p([.545,.298,.224]),SeaGreen1:p([.33,1,.624]),SeaGreen2:p([.305,.932,.58]),SeaGreen3:p([.264,.804,.5]),SeaGreen4:p([.18,.545,.34]),Seashell1:p([1,.96,.932]),Seashell2:p([.932,.898,.87]),Seashell3:p([.804,.772,.75]),Seashell4:p([.545,.525,.51]),Sienna1:p([1,.51,.28]),Sienna2:p([.932,.475,.26]),Sienna3:p([.804,.408,.224]),Sienna4:p([.545,.28,.15]),SkyBlue1:p([.53,.808,1]),SkyBlue2:p([.494,.752,.932]),SkyBlue3:p([.424,.65,.804]),SkyBlue4:p([.29,.44,.545]),SlateBlue1:p([.512,.435,1]),SlateBlue2:p([.48,.404,.932]),SlateBlue3:p([.41,.35,.804]),SlateBlue4:p([.28,.235,.545]),SlateGray1:p([.776,.888,1]),SlateGray2:p([.725,.828,.932]),SlateGray3:p([.624,.712,.804]),SlateGray4:p([.424,.484,.545]),Snow1:p([1,.98,.98]),Snow2:p([.932,.912,.912]),Snow3:p([.804,.79,.79]),Snow4:p([.545,.536,.536]),SpringGreen1:p([0,1,.498]),SpringGreen2:p([0,.932,.464]),SpringGreen3:p([0,.804,.4]),SpringGreen4:p([0,.545,.27]),SteelBlue1:p([.39,.72,1]),SteelBlue2:p([.36,.675,.932]),SteelBlue3:p([.31,.58,.804]),SteelBlue4:p([.21,.392,.545]),Tan1:p([1,.648,.31]),Tan2:p([.932,.604,.288]),Tan3:p([.804,.52,.248]),Tan4:p([.545,.352,.17]),Thistle1:p([1,.884,1]),Thistle2:p([.932,.824,.932]),Thistle3:p([.804,.71,.804]),Thistle4:p([.545,.484,.545]),Tomato1:p([1,.39,.28]),Tomato2:p([.932,.36,.26]),Tomato3:p([.804,.31,.224]),Tomato4:p([.545,.21,.15]),Turquoise1:p([0,.96,1]),Turquoise2:p([0,.898,.932]),Turquoise3:p([0,.772,.804]),Turquoise4:p([0,.525,.545]),VioletRed1:p([1,.244,.59]),VioletRed2:p([.932,.228,.55]),VioletRed3:p([.804,.196,.47]),VioletRed4:p([.545,.132,.32]),Wheat1:p([1,.905,.73]),Wheat2:p([.932,.848,.684]),Wheat3:p([.804,.73,.59]),Wheat4:p([.545,.494,.4]),Yellow1:p([1,1,0]),Yellow2:p([.932,.932,0]),Yellow3:p([.804,.804,0]),Yellow4:p([.545,.545,0]),Gray0:p([.745,.745,.745]),Green0:p([0,1,0]),Grey0:p([.745,.745,.745]),Maroon0:p([.69,.19,.376]),Purple0:p([.628,.125,.94])},Qr={rgb:([r,t,i])=>je([r*255,t*255,i*255],"rgb"),cmy:([r,t,i])=>Qr.rgb([1-r,1-t,1-i]),cmyk:([r,t,i,o])=>je([r*255,t*255,i*255,o*100],"cmyk"),hsb:([r,t,i])=>je([r*360,t*100,i*100],"hsv"),gray:([r])=>je([r*255,r*255,r*255],"rgb")};({red:Qr.rgb([1,0,0]),green:Qr.rgb([0,1,0]),blue:Qr.rgb([0,0,1]),brown:Qr.rgb([.75,.5,.25]),lime:Qr.rgb([.75,1,0]),orange:Qr.rgb([1,.5,0]),pink:Qr.rgb([1,.75,.75]),purple:Qr.rgb([.75,0,.25]),teal:Qr.rgb([0,.5,.5]),violet:Qr.rgb([.5,0,.5]),cyan:Qr.rgb([0,1,1]),magenta:Qr.rgb([1,0,1]),yellow:Qr.rgb([1,1,0]),olive:Qr.rgb([.5,.5,0]),black:Qr.rgb([0,0,0]),darkgray:Qr.rgb([.25,.25,.25]),gray:Qr.rgb([.5,.5,.5]),lightgray:Qr.rgb([.75,.75,.75]),white:Qr.rgb([1,1,1]),...xh,...wh,..._h});const kh={NewDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},RenewDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},ProvideDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},DeclareDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},NewDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},RenewDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},ProvideDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},DeclareDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},NewExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},RenewExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},ProvideExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},DeclareExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},RequirePackage:{signature:"o m",renderInfo:{pgfkeysArgs:!0,breakAround:!0}},DeclareOption:{signature:"m m",renderInfo:{breakAround:!0}}},Ch={},Eh={mode:{signature:"s d<> d{}",renderInfo:{breakAround:!0}},insertnavigation:{signature:"m",renderInfo:{breakAround:!0}},insertsectionnavigation:{signature:"m",renderInfo:{breakAround:!0}},insertsectionnavigationhorizontal:{signature:"m m m",renderInfo:{breakAround:!0}},insertauthor:{signature:"o",renderInfo:{breakAround:!0}},insertshortauthor:{signature:"o",renderInfo:{breakAround:!0}},insertshortdate:{signature:"o",renderInfo:{breakAround:!0}},insertshortinstitute:{signature:"o",renderInfo:{breakAround:!0}},insertshortpart:{signature:"o",renderInfo:{breakAround:!0}},insertshorttitle:{signature:"o",renderInfo:{breakAround:!0}},insertsubsectionnavigation:{signature:"m",renderInfo:{breakAround:!0}},insertsubsectionnavigationhorizontal:{signature:"m m m",renderInfo:{breakAround:!0}},insertverticalnavigation:{signature:"m",renderInfo:{breakAround:!0}},usebeamercolor:{signature:"s m",renderInfo:{breakAround:!0}},usebeamertemplate:{signature:"s m",renderInfo:{breakAround:!0}},setbeamercolor:{signature:"m m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},setbeamersize:{signature:"m o o",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},setbeamertemplate:{signature:"m o o d{}",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},newcommand:{signature:"s d<> +m o +o +m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"name","numArgs","default","body"]}},renewcommand:{signature:"s d<> +m o +o +m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"name","numArgs","default","body"]}},newenvironment:{signature:"s d<> m o o m m",renderInfo:{breakAround:!0}},renewenvironment:{signature:"s d<> m o o m m",renderInfo:{breakAround:!0}},resetcounteronoverlays:{signature:"m",renderInfo:{breakAround:!0}},resetcountonoverlays:{signature:"m",renderInfo:{breakAround:!0}},logo:{signature:"m",renderInfo:{breakAround:!0}},frametitle:{signature:"d<> o m",renderInfo:{breakAround:!0}},framesubtitle:{signature:"d<> m",renderInfo:{breakAround:!0}},pause:{signature:"o"},onslide:{signature:"t+ t* d<> d{}"},only:{signature:"d<> m d<>"},uncover:{signature:"d<> m"},visible:{signature:"d<> m"},invisible:{signature:"d<> m"},alt:{signature:"d<> m m d<>"},temporal:{signature:"r<> m m m"},item:{signature:"d<> o d<>",renderInfo:{hangingIndent:!0,namedArguments:[null,"label",null]}},label:{signature:"d<> o m"},action:{signature:"d<> m"},beamerdefaultoverlayspecification:{signature:"m"},titlegraphic:{signature:"m",renderInfo:{breakAround:!0}},subject:{signature:"m",renderInfo:{breakAround:!0}},keywords:{signature:"m",renderInfo:{breakAround:!0}},lecture:{signature:"o m m",renderInfo:{breakAround:!0}},partpage:{renderInfo:{breakAround:!0}},sectionpage:{renderInfo:{breakAround:!0}},subsectionpage:{renderInfo:{breakAround:!0}},AtBeginLecture:{signature:"m",renderInfo:{breakAround:!0}},AtBeginPart:{signature:"m",renderInfo:{breakAround:!0}},tableofcontents:{signature:"o",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},againframe:{signature:"d<> o o m",renderInfo:{breakAround:!0}},framezoom:{signature:"r<> r<> o r() r()",renderInfo:{breakAround:!0}},column:{signature:"d<> o m",renderInfo:{breakAround:!0}},animate:{signature:"r<>",renderInfo:{breakAround:!0}},animatevalue:{signature:"r<> m m m",renderInfo:{breakAround:!0}},sound:{signature:"o m m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},hyperlinksound:{signature:"o m m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},hyperlinkmute:{signature:"m",renderInfo:{breakAround:!0}},section:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},subsection:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},subsubsection:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},part:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},bibitem:{signature:"s d<> o m",renderInfo:{hangingIndent:!0,namedArguments:["starred",null,"tocTitle","title"]}}},Ih={frame:{signature:"!d<> !o !o !d{} !d{}"},block:{signature:"!d<> !d{} !d<>"},alertblock:{signature:"!d<> !d{} !d<>"},exampleblock:{signature:"!d<> !d{} !d<>"},onlyenv:{signature:"!d<>"},altenv:{signature:"!d<> m m m m !d<>"},overlayarea:{signature:"m m"},overprint:{signature:"o"},actionenv:{signature:"!d<>"},columns:{signature:"d<> o"},column:{signature:"d<> o m"}},Mh={columnbreak:{renderInfo:{breakAround:!0}}},Sh={multicols:{signature:"m o o"},"multicols*":{signature:"m o o"}},Ph={cleveref:e0,exam:d0,geometry:v0,hyperref:y0,latex2e:A0,listings:T0,makeidx:L0,mathtools:N0,minted:q0,nicematrix:G0,systeme:V0,tikz:Y0,xcolor:$h,xparse:kh,beamer:Eh,multicol:Mh},Fh={cleveref:r0,exam:m0,geometry:b0,hyperref:$0,latex2e:x0,listings:D0,makeidx:B0,mathtools:j0,minted:W0,nicematrix:U0,systeme:H0,tikz:J0,xcolor:Ah,xparse:Ch,beamer:Ih,multicol:Sh};function Il(r,t){if(t.signature&&r.args==null){const{args:i}=Xi(r.content,t.signature);r.args=i}us(r,t.renderInfo),typeof t.processContent=="function"&&(r.content=t.processContent(r.content))}function Ml(r,t,i){const o=[];let n={start:void 0,end:r.length};for(let s=0;sl.start-u.start);const i=new Set(t.flatMap(l=>[l.start,l.end])),o=Array.from(i);o.sort((l,u)=>l-u);const n=[],s=[];let e=0;for(let l=0;l=y.start&&(K=!0),!K&&b.endd)break;b.start<=y.start&&b.end>=y.end&&(K=!0,T.add(b))}T.size>0&&(n.push(y),s.push(T))}return{regions:n,regionsContainedIn:s}}function Rh(r,t){const i=[],o=[0,r.length],n={};for(const[s,e]of Object.entries(t))o.push(...e.flatMap(l=>(n[""+[l.start,l.end]]=s,[l.start,l.end])));o.sort((s,e)=>s-e);for(let s=0;s1)throw new Error(`Only single characters are allowed as \`allowedTokens\` when reparsing macro names, not \`${n}\`.`);let o=!1;return $n(r,n=>{if(Lh(n,i))return o=!0,qi},{includeArrays:!0,test:Array.isArray}),o}function Bh(r,t){var i,o,n;const s=Dh(t);let e=0;for(;e0?y.length===u.content.length?(l.content+=u.content,r.splice(e+1,1),l.position&&((i=u.position)!=null&&i.end)&&(l.position.end=u.position.end)):(l.content+=y,u.content=u.content.slice(y.length),(o=l.position)!=null&&o.end&&(l.position.end.offset+=y.length,l.position.end.column+=y.length),(n=u.position)!=null&&n.start&&(u.position.start.offset+=y.length,u.position.start.column+=y.length)):e++}else++e}}function Wi(r,t){typeof t=="string"&&(t=new Set(t.split("")));const i=t;for(const o of i)if(o.length>1)throw new Error(`Only single characters are allowed as \`allowedTokens\` when reparsing macro names, not \`${o}\`.`);$n(r,o=>{Bh(o,i)},{includeArrays:!0,test:Array.isArray})}const Pl={start:Ve.createMacroMatcher(["ExplSyntaxOn"]),end:Ve.createMacroMatcher(["ExplSyntaxOff"])},Fl={start:Ve.createMacroMatcher(["makeatletter"]),end:Ve.createMacroMatcher(["makeatother"])};function Nh(r){const t=Ml(r,Pl.start,Pl.end),i=Ml(r,Fl.start,Fl.end),o=new Map([...t.map(e=>[e,"expl"]),...i.map(e=>[e,"atLetter"])]),n=Oh([...t,...i]),s={explOnly:[],atLetterOnly:[],both:[]};for(let e=0;ee.end-e.start>1),s.atLetterOnly=s.atLetterOnly.filter(e=>e.end-e.start>1),s.both=s.both.filter(e=>e.end-e.start>1),s}const jh=new Set(["@"]),zh=new Set(["_",":"]),qh=new Set(["_",":","@"]);function Wh(r){$n(r,{leave:t=>{const i=Nh(t);if(i.both.length+i.atLetterOnly.length+i.explOnly.length===0)return;const n=Rh(t,i),s=[];for(const[e,l]of n)switch(e){case null:s.push(...l);continue;case"atLetterOnly":Wi(l,jh),s.push(...l);continue;case"explOnly":Wi(l,zh),s.push(...l);continue;case"both":Wi(l,qh),s.push(...l);continue;default:throw new Error(`Unexpected case when splitting ${e}`)}return t.length=0,t.push(...s),qf}},{includeArrays:!0,test:Array.isArray})}const nu=function(){Object.assign(this,{Compiler:t=>t})};function Gh(r){return Uf.parse(r)}function xo(r){return Uf.parse(r,{startRule:"math"})}const Uh=function(t){Object.assign(this,{Parser:o=>(t==null?void 0:t.mode)==="math"?{type:"root",content:xo(o),_renderInfo:{inMathMode:!0}}:Gh(o)})};function Vh({mathEnvs:r,mathMacros:t}){const i=Ve.createEnvironmentMatcher(r),o=Ve.createMacroMatcher(t);return n=>{$n(n,s=>{if(Ve.anyMacro(s))for(const e of s.args||[])e.content.length>0&&!Ol(e.content)&&(e.content=xo(yn(e.content)));Ve.anyEnvironment(s)&&(Ol(s.content)||(s.content=xo(yn(s.content))))},{test:s=>i(s)||o(s)})}}function Ol(r){return!r.some(t=>Ve.anyString(t)&&t.content.length>1||Ve.string(t,"^")||Ve.string(t,"_"))}const Hh=function(t){const{environments:i={},macros:o={}}=t||{},n=Object.fromEntries(Object.entries(o).filter(([d,y])=>{var T;return((T=y.renderInfo)==null?void 0:T.inMathMode)===!0})),s=Object.fromEntries(Object.entries(i).filter(([d,y])=>{var T;return((T=y.renderInfo)==null?void 0:T.inMathMode)===!0})),e=Vh({mathEnvs:Object.keys(s),mathMacros:Object.keys(n)}),l=Ve.createEnvironmentMatcher(i),u=Ve.createEnvironmentMatcher(s);return d=>{$n(d,{enter:y=>{Array.isArray(y)&&Yi(y,n)},leave:y=>{if(!u(y))return;const T=yn(y.env),K=i[T];if(!K)throw new Error(`Could not find environment info for environment "${T}"`);Il(y,K)}},{includeArrays:!0}),e(d),$n(d,{enter:y=>{Array.isArray(y)&&Yi(y,o)},leave:y=>{if(!l(y))return;const T=yn(y.env),K=i[T];if(!K)throw new Error(`Could not find environment info for environment "${T}"`);Il(y,K)}},{includeArrays:!0})}},Kh=function(t){let{atLetter:i=!1,expl3:o=!1,autodetectExpl3AndAtLetter:n=!1}=t||{};return s=>{Wh(s),(i||o)&&(n=!1),n&&(i=Sl(s,"@"),o=Sl(s,"_"));const e=new Set;i&&e.add("@"),o&&(e.add(":"),e.add("_")),e.size>0&&Wi(s,e)}},iu=function(t){const{mode:i="regular",macros:o={},environments:n={},flags:{atLetter:s=!1,expl3:e=!1,autodetectExpl3AndAtLetter:l=!1}={}}=t||{},u=Object.assign({},...Object.values(Ph),o),d=Object.assign({},...Object.values(Fh),n),y=Go().use(Uh,{mode:i}).use(Kh,{atLetter:s,expl3:e,autodetectExpl3AndAtLetter:l}).use(Hh,{macros:u,environments:d}).use(f0).use(u0).use(nu);Object.assign(this,{Parser:K=>y.processSync({value:K}).result})};Go().use(iu).freeze();function Xh(r){return!(r!=null&&r.content)||r.content.length===0}const Yh={",":r=>r.data.inFunction?"comma":",","&":r=>r.data.inArray?",":"&","/":"\\/",";":"\\;"};function Rl(r){var t,i,o;((i=(t=r.args)===null||t===void 0?void 0:t[0].content)===null||i===void 0?void 0:i.length)===1&&((o=r.args)===null||o===void 0?void 0:o[0].content)[0].type==="string"&&(r.args[0].content=r.args[0].content[0].content.split("").map(n=>({type:"string",content:n})))}const Jh={cdot:"dot.op",to:"arrow.r",rightarrow:"arrow.r",leftarrow:"arrow.l",gets:"arrow.l",infty:"infinity",nonumber:"",int:"integral",iint:"integral.double",sqrt:(r,t)=>{var i;return Xh((i=t.args)===null||i===void 0?void 0:i[0])?"sqrt":"root"},vec:"arrow",mathbf:"bold",boldsymbol:"bold",mathrm:"upright",rm:"upright",mathcal:"cal",mathfrak:"frak",pm:"plus.minus",partial:"diff",_:(r,t)=>(Rl(t),"_"),"^":(r,t)=>(Rl(t),"^"),left:(r,t)=>{var i;const o=t.args;t.args=[];const n=((i=o==null?void 0:o[0].content)===null||i===void 0?void 0:i[0]).content;if(n==="(")return"(";if(n==="[")return"[";if(n==="{")return"{";if(n==="|")return"|";throw new Error(`Undefined left bracket: ${n}`)},right:(r,t)=>{var i;const o=t.args;t.args=[];const n=((i=o==null?void 0:o[0].content)===null||i===void 0?void 0:i[0]).content;if(n===")")return")";if(n==="]")return"]";if(n==="}")return"}";if(n==="|")return"|";throw new Error(`Undefined right bracket: ${n}`)},operatorname:(r,t)=>{var i;const o=(i=t.args)===null||i===void 0?void 0:i.slice(-1)[0];return t.args=[{type:"macro",content:"text",args:[o]}],"op"},"\\":(r,t)=>(t.args=[],r.data.inArray?";":`\\ +`),sim:"tilde",phi:"phi.alt",propto:"prop",doteq:"dot(eq)",ge:"gt.eq",geq:"gt.eq",le:"lt.eq",leq:"lt.eq",neq:"eq.not",dot:"dot",ddot:"dot.double",dots:"dots.h",ldots:"dots.h",vdots:"dots.v",ddots:"dots.down",subseteq:"subset.eq",cdots:"dots.h.c",cap:"sect",cup:"union",widehat:"hat",",":"thin",":":"med",";":"thick","!":"#h(-1em)",quad:"quad",qquad:"wide",prod:"product",mathbb:(r,t)=>{var i,o,n,s,e;const u=((e=(s=(n=(o=(i=t.args)===null||i===void 0?void 0:i.slice(-1)[0])===null||o===void 0?void 0:o.content)===null||n===void 0?void 0:n[0])===null||s===void 0?void 0:s.content)!==null&&e!==void 0?e:"").split("").map(d=>`${d}${d}`).join(" ");return t.args=[],u}},Zh={array:(r,t)=>{r.data.inArray=!0,r.openFunction("mat"),r.write("delim: #none,"),r.writeChildren(t),r.closeFunction(),r.data.inArray=!1}};function Qh(r){return{type:"math",content:Go().use(iu,{mode:"math"}).use(nu).use(P0,{macros:{vec:{signature:"m"},boldsymbol:{signature:"m"},left:{signature:"m"},right:{signature:"m"},dot:{signature:"m"},ddot:{signature:"m"},hat:{signature:"m"},widehat:{signature:"m"}}}).processSync({value:r}).result.content}}function wo(r){if(delete r.position,Array.isArray(r.content)){const t=r.content.map(n=>wo(n));let i=0;const o=t.reduce((n,s,e,l)=>{var u;if(i>0)return i-=1,n;if(s.type==="string"&&(s.content==="_"||s.content==="^")){const{args:d,nodesRemoved:y}=Xi(l.slice(e+1),"m");s.type="macro",s.args=d,i+=y}if(s.type==="macro"&&(s.content==="overbrace"||s.content==="underbrace")){const{args:d,nodesRemoved:y}=Xi(l.slice(e+1),"m");d[0].content.length===1&&d[0].content[0].type==="macro"&&(d[0].content[0].content==="^"&&s.content==="overbrace"||d[0].content[0].content==="_"&&s.content==="underbrace")&&(s.args=[...(u=s.args)!==null&&u!==void 0?u:[],...d[0].content[0].args],i+=y)}return n.push(s),n},[]);return r.content=o,{...r,content:o}}if(Array.isArray(r.args)){const t=r.args.map(i=>wo(i));return r.args=t,{...r,args:t}}return r}class ed{constructor(){this._scriptsSimplified=!1,this._closeToken=[],this._currentFunctions=[],this._value="",this.data={}}get value(){return this._value}addWhitespace(){const t=this.value.slice(-1);!this._value||t.match(/^(["\s_^{(-])$/)||(this._value+=" ")}write(t){t&&(this._scriptsSimplified&&t==="("?this.addWhitespace():t.match(/^([}()_^,;!])$/)||this.addWhitespace(),this._scriptsSimplified=!1,this._value+=t)}writeChildren(t){var i;Array.isArray(t==null?void 0:t.content)&&((i=t.content)===null||i===void 0||i.forEach(o=>{Vo(o,this)}))}get _currentFunction(){return this._currentFunctions.slice(-1)[0]}get _functionCount(){return this._currentFunctions.length}openFunction(t){t==="text"?this.addWhitespace():this.write(t),this._currentFunctions.push(t),this.data.inFunction=!0,this._simplify=t==="_"||t==="^",this._lastFunction=this._value.length,this._value+=t==="text"?'"':"(",this._closeToken.push(t==="text"?'"':")")}closeFunction(){if(this._value+=this._closeToken.pop()||")",this._currentFunctions.pop(),this.data.inFunction=this._functionCount>=1,!this._simplify)return;const t=this._value.slice(this._lastFunction);(t.length===3||t.match(/^\([a-zA-Z]*\)$/))&&(this._value=this._value.slice(0,this._lastFunction)+t.slice(1,-1),this._scriptsSimplified=!0)}}function Tl(r,t){if(t.type==="macro"&&typeof t.content=="string"){const i=Jh[t.content],o=typeof i=="function"?i(r,t):i;return o??t.content}return""}function Dl(r,t){const i=Yh[t];return typeof i=="function"?i(r)||t:i||t}function Vo(r,t=new ed){if(r.type==="whitespace")return t;if(r.type==="string"){const i=r.content;t._currentFunction==="text"?t.write(Dl(t,i)):i.split("").forEach(o=>{t.write(Dl(t,o))})}else if(r.type==="environment"&&Array.isArray(r.content)){const i=Zh[r.env];i==null||i(t,r)}else if(Array.isArray(r.content))t.writeChildren(r);else if(r.type==="macro"&&Array.isArray(r.args)){const i=Tl(t,r);if(r.args.length===0)return t.write(i),t;t.openFunction(i),r.args.filter(o=>!(Array.isArray(o.content)&&o.content.length===0)).forEach((o,n)=>{n!==0&&t.write(","),Vo(o,t)}),t.closeFunction()}else if(r.type==="macro"&&typeof r.content=="string"){const i=Tl(t,r);t.write(i??r.content)}return t}function rd(r){return r.replace(/^(_|\^)/,'""$1')}function td(r){const t=Qh(r);wo(t);const i=Vo(t);return rd(i.value)}function nd(r){var t=document.createElement("textarea");t.value=r,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{var i=document.execCommand("copy");i||console.log("Fallback: Error on copying text command")}catch(o){console.error("Fallback: Oops, unable to copy",o)}document.body.removeChild(t)}function id(r){if(!navigator.clipboard){nd(r);return}navigator.clipboard.writeText(r).then(function(){},function(t){console.error("Async: Could not copy text: ",t)})}const sd=(r,t)=>{const i=r.__vccOpts||r;for(const[o,n]of t)i[o]=n;return i},cs=r=>(Zc("data-v-68d0d1bd"),r=r(),Qc(),r),od={class:"bg-app text-app-blue min-h-screen flex flex-col"},ad=cs(()=>et("header",null,[et("h1",{class:"text-left text-4xl p-4"},"tex2typst")],-1)),ld=cs(()=>et("div",{class:"text-app-blue p-4 text-center"},[Ni(" Covert LaTeX math formula code to "),et("a",{href:"https://typst.app/",target:"_blank"},"Typst"),Ni(" code! "),et("br"),Ni(" This tool runs locally in your browser. Nothing is uploaded. ")],-1)),fd={class:"flex flex-1 p-8"},ud={class:"flex-1 flex flex-col border border-gray-700 rounded-lg"},cd={class:"flex justify-between p-4 border-b border-gray-700"},gd=cs(()=>et("span",{class:"text-app-blue"},"LaTex code",-1)),pd={class:"flex-1 flex flex-col border border-gray-700 rounded-lg ml-8"},hd=cs(()=>et("span",{class:"text-app-blue"},"Typst code",-1)),dd={class:"flex-1 p-4",id:"typst"},md={class:"p-4 text-center"},vd=["innerHTML"],bd=Yg('',1),yd="\\prod_{p} \\frac{1}{1-p^{-s}}= \\sum _{n=1}^{\\infty} \\frac{1}{n^s}",$d={__name:"App",setup(r){const t=jc(yd),i=so(()=>td(t.value)),o=so(()=>t.value===""?"
Math formula will be rendered here.
":katex.renderToString(t.value,{displayMode:!0,throwOnError:!1}));function n(){id(i.value)}return(s,e)=>(Wg(),Vg("div",od,[ad,ld,et("main",fd,[et("div",ud,[et("div",cd,[gd,et("button",{class:"text-app-light-black",onClick:e[0]||(e[0]=l=>t.value="")},"Clear")]),vg(et("textarea",{class:"flex-1 p-4","onUpdate:modelValue":e[1]||(e[1]=l=>t.value=l)},null,512),[[Ip,t.value]])]),et("div",pd,[et("div",{class:"flex justify-between p-4 border-b border-gray-700"},[hd,et("button",{class:"text-app-light-black",onClick:n},"Copy")]),et("div",dd,Vl(i.value),1)])]),et("div",md,[et("div",{innerHTML:o.value},null,8,vd)]),bd]))}},Ad=sd($d,[["__scopeId","data-v-68d0d1bd"]]);Pp(Ad).mount("#app"); diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..f86f9b4 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..2c101d0 --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + + + + + + + + tex2typst Web App - Convert LaTex formula code to Typst + + + + + +
+ +