Files
bonch/.obsidian/plugins/obsidian-latex-suite/main.js
2026-02-28 04:00:23 +03:00

417 lines
319 KiB
JavaScript

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var jv=Object.create;var Zr=Object.defineProperty,Zv=Object.defineProperties,Wv=Object.getOwnPropertyDescriptor,Xv=Object.getOwnPropertyDescriptors,Mv=Object.getOwnPropertyNames,yu=Object.getOwnPropertySymbols,Gv=Object.getPrototypeOf,vu=Object.prototype.hasOwnProperty,Vv=Object.prototype.propertyIsEnumerable;var Uo=(r,e)=>(e=Symbol[r])?e:Symbol.for("Symbol."+r);var Yo=(r,e,t)=>e in r?Zr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Xe=(r,e)=>{for(var t in e||(e={}))vu.call(e,t)&&Yo(r,t,e[t]);if(yu)for(var t of yu(e))Vv.call(e,t)&&Yo(r,t,e[t]);return r},Qt=(r,e)=>Zv(r,Xv(e));var h=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Dv=(r,e)=>{for(var t in e)Zr(r,t,{get:e[t],enumerable:!0})},bu=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Mv(e))!vu.call(r,i)&&i!==t&&Zr(r,i,{get:()=>e[i],enumerable:!(n=Wv(e,i))||n.enumerable});return r};var Su=(r,e,t)=>(t=r!=null?jv(Gv(r)):{},bu(e||!r||!r.__esModule?Zr(t,"default",{value:r,enumerable:!0}):t,r)),Bv=r=>bu(Zr({},"__esModule",{value:!0}),r);var xu=(r,e,t)=>(Yo(r,typeof e!="symbol"?e+"":e,t),t);var $=(r,e,t)=>new Promise((n,i)=>{var o=l=>{try{a(t.next(l))}catch(u){i(u)}},s=l=>{try{a(t.throw(l))}catch(u){i(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((t=t.apply(r,e)).next())}),Nv=function(r,e){this[0]=r,this[1]=e};var Qu=r=>{var e=r[Uo("asyncIterator")],t=!1,n,i={};return e==null?(e=r[Uo("iterator")](),n=o=>i[o]=s=>e[o](s)):(e=e.call(r),n=o=>i[o]=s=>{if(t){if(t=!1,o==="throw")throw s;return s}return t=!0,{done:!1,value:new Nv(new Promise(a=>{var l=e[o](s);if(!(l instanceof Object))throw TypeError("Object expected");a(l)}),1)}}),i[Uo("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=o=>{throw o},"return"in e&&n("return"),i};var Wu=h((Eq,Zu)=>{"use strict";var mb="Function.prototype.bind called on incompatible ",gb=Object.prototype.toString,yb=Math.max,vb="[object Function]",ju=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},bb=function(e,t){for(var n=[],i=t||0,o=0;i<e.length;i+=1,o+=1)n[o]=e[i];return n},Sb=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};Zu.exports=function(e){var t=this;if(typeof t!="function"||gb.apply(t)!==vb)throw new TypeError(mb+t);for(var n=bb(arguments,1),i,o=function(){if(this instanceof i){var c=t.apply(this,ju(n,arguments));return Object(c)===c?c:this}return t.apply(e,ju(n,arguments))},s=yb(0,t.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+Sb(a,",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var u=function(){};u.prototype=t.prototype,i.prototype=new u,u.prototype=null}return i}});var Yn=h((kq,Xu)=>{"use strict";var xb=Wu();Xu.exports=Function.prototype.bind||xb});var Gu=h((qq,Mu)=>{"use strict";Mu.exports=Error});var Du=h((_q,Vu)=>{"use strict";Vu.exports=EvalError});var Hn=h((Aq,Bu)=>{"use strict";Bu.exports=RangeError});var zu=h((Rq,Nu)=>{"use strict";Nu.exports=ReferenceError});var nt=h((Cq,Fu)=>{"use strict";Fu.exports=SyntaxError});var k=h((Iq,Lu)=>{"use strict";Lu.exports=TypeError});var Yu=h((jq,Uu)=>{"use strict";Uu.exports=URIError});var Jn=h((Zq,Hu)=>{"use strict";Hu.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var it=h((Wq,Ku)=>{"use strict";var Ju=typeof Symbol!="undefined"&&Symbol,Qb=Jn();Ku.exports=function(){return typeof Ju!="function"||typeof Symbol!="function"||typeof Ju("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Qb()}});var Gr=h((Xq,ec)=>{"use strict";var rs={__proto__:null,foo:{}},$b=Object;ec.exports=function(){return{__proto__:rs}.foo===rs.foo&&!(rs instanceof $b)}});var ot=h((Mq,tc)=>{"use strict";var wb=Function.prototype.call,Tb=Object.prototype.hasOwnProperty,Pb=Yn();tc.exports=Pb.call(wb,Tb)});var W=h((Gq,sc)=>{"use strict";var I,Eb=Gu(),kb=Du(),qb=Hn(),_b=zu(),or=nt(),ir=k(),Ab=Yu(),oc=Function,ns=function(r){try{return oc('"use strict"; return ('+r+").constructor;")()}catch(e){}},wt=Object.getOwnPropertyDescriptor;if(wt)try{wt({},"")}catch(r){wt=null}var is=function(){throw new ir},Rb=wt?function(){try{return arguments.callee,is}catch(r){try{return wt(arguments,"callee").get}catch(e){return is}}}():is,rr=it()(),Cb=Gr()(),ee=Object.getPrototypeOf||(Cb?function(r){return r.__proto__}:null),nr={},Ib=typeof Uint8Array=="undefined"||!ee?I:ee(Uint8Array),Tt={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?I:ArrayBuffer,"%ArrayIteratorPrototype%":rr&&ee?ee([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":nr,"%AsyncGenerator%":nr,"%AsyncGeneratorFunction%":nr,"%AsyncIteratorPrototype%":nr,"%Atomics%":typeof Atomics=="undefined"?I:Atomics,"%BigInt%":typeof BigInt=="undefined"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Eb,"%eval%":eval,"%EvalError%":kb,"%Float32Array%":typeof Float32Array=="undefined"?I:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?I:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?I:FinalizationRegistry,"%Function%":oc,"%GeneratorFunction%":nr,"%Int8Array%":typeof Int8Array=="undefined"?I:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?I:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":rr&&ee?ee(ee([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map=="undefined"?I:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!rr||!ee?I:ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?I:Promise,"%Proxy%":typeof Proxy=="undefined"?I:Proxy,"%RangeError%":qb,"%ReferenceError%":_b,"%Reflect%":typeof Reflect=="undefined"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?I:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!rr||!ee?I:ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":rr&&ee?ee(""[Symbol.iterator]()):I,"%Symbol%":rr?Symbol:I,"%SyntaxError%":or,"%ThrowTypeError%":Rb,"%TypedArray%":Ib,"%TypeError%":ir,"%Uint8Array%":typeof Uint8Array=="undefined"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?I:Uint32Array,"%URIError%":Ab,"%WeakMap%":typeof WeakMap=="undefined"?I:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?I:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?I:WeakSet};if(ee)try{null.error}catch(r){rc=ee(ee(r)),Tt["%Error.prototype%"]=rc}var rc,jb=function r(e){var t;if(e==="%AsyncFunction%")t=ns("async function () {}");else if(e==="%GeneratorFunction%")t=ns("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=ns("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=r("%AsyncGenerator%");i&&ee&&(t=ee(i.prototype))}return Tt[e]=t,t},nc={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Vr=Yn(),Kn=ot(),Zb=Vr.call(Function.call,Array.prototype.concat),Wb=Vr.call(Function.apply,Array.prototype.splice),ic=Vr.call(Function.call,String.prototype.replace),ei=Vr.call(Function.call,String.prototype.slice),Xb=Vr.call(Function.call,RegExp.prototype.exec),Mb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gb=/\\(\\)?/g,Vb=function(e){var t=ei(e,0,1),n=ei(e,-1);if(t==="%"&&n!=="%")throw new or("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new or("invalid intrinsic syntax, expected opening `%`");var i=[];return ic(e,Mb,function(o,s,a,l){i[i.length]=a?ic(l,Gb,"$1"):s||o}),i},Db=function(e,t){var n=e,i;if(Kn(nc,n)&&(i=nc[n],n="%"+i[0]+"%"),Kn(Tt,n)){var o=Tt[n];if(o===nr&&(o=jb(n)),typeof o=="undefined"&&!t)throw new ir("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new or("intrinsic "+e+" does not exist!")};sc.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new ir("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ir('"allowMissing" argument must be a boolean');if(Xb(/^%?[^%]*%?$/,e)===null)throw new or("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Vb(e),i=n.length>0?n[0]:"",o=Db("%"+i+"%",t),s=o.name,a=o.value,l=!1,u=o.alias;u&&(i=u[0],Wb(n,Zb([0,1],u)));for(var c=1,p=!0;c<n.length;c+=1){var O=n[c],f=ei(O,0,1),d=ei(O,-1);if((f==='"'||f==="'"||f==="`"||d==='"'||d==="'"||d==="`")&&f!==d)throw new or("property names with quotes must have matching quotes");if((O==="constructor"||!p)&&(l=!0),i+="."+O,s="%"+i+"%",Kn(Tt,s))a=Tt[s];else if(a!=null){if(!(O in a)){if(!t)throw new ir("base intrinsic for "+e+" exists, but the property is not available.");return}if(wt&&c+1>=n.length){var m=wt(a,O);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[O]}else p=Kn(a,O),a=a[O];p&&!l&&(Tt[s]=a)}}return a}});var Dr=h((Vq,ac)=>{"use strict";var Bb=W(),ti=Bb("%Object.defineProperty%",!0)||!1;if(ti)try{ti({},"a",{value:1})}catch(r){ti=!1}ac.exports=ti});var ni=h((Dq,lc)=>{"use strict";var Nb=W(),ri=Nb("%Object.getOwnPropertyDescriptor%",!0);if(ri)try{ri([],"length")}catch(r){ri=null}lc.exports=ri});var os=h((Bq,pc)=>{"use strict";var uc=Dr(),zb=nt(),sr=k(),cc=ni();pc.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new sr("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new sr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new sr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new sr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new sr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new sr("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!cc&&cc(e,t);if(uc)uc(e,t,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)e[t]=n;else throw new zb("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Br=h((Nq,Oc)=>{"use strict";var ss=Dr(),fc=function(){return!!ss};fc.hasArrayLengthDefineBug=function(){if(!ss)return null;try{return ss([],"length",{value:1}).length!==1}catch(e){return!0}};Oc.exports=fc});var yc=h((zq,gc)=>{"use strict";var Fb=W(),hc=os(),Lb=Br()(),dc=ni(),mc=k(),Ub=Fb("%Math.floor%");gc.exports=function(e,t){if(typeof e!="function")throw new mc("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Ub(t)!==t)throw new mc("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in e&&dc){var s=dc(e,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(Lb?hc(e,"length",t,!0,!0):hc(e,"length",t)),e}});var Se=h((Fq,ii)=>{"use strict";var as=Yn(),oi=W(),Yb=yc(),Hb=k(),Sc=oi("%Function.prototype.apply%"),xc=oi("%Function.prototype.call%"),Qc=oi("%Reflect.apply%",!0)||as.call(xc,Sc),vc=Dr(),Jb=oi("%Math.max%");ii.exports=function(e){if(typeof e!="function")throw new Hb("a function is required");var t=Qc(as,xc,arguments);return Yb(t,1+Jb(0,e.length-(arguments.length-1)),!0)};var bc=function(){return Qc(as,Sc,arguments)};vc?vc(ii.exports,"apply",{value:bc}):ii.exports.apply=bc});var ls=h((Lq,wc)=>{"use strict";var $c=Object.prototype.toString;wc.exports=function(e){var t=$c.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&$c.call(e.callee)==="[object Function]"),n}});var Cc=h((Uq,Rc)=>{"use strict";var Ac;Object.keys||(Nr=Object.prototype.hasOwnProperty,us=Object.prototype.toString,Tc=ls(),cs=Object.prototype.propertyIsEnumerable,Pc=!cs.call({toString:null},"toString"),Ec=cs.call(function(){},"prototype"),zr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],si=function(r){var e=r.constructor;return e&&e.prototype===r},kc={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},qc=function(){if(typeof window=="undefined")return!1;for(var r in window)try{if(!kc["$"+r]&&Nr.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{si(window[r])}catch(e){return!0}}catch(e){return!0}return!1}(),_c=function(r){if(typeof window=="undefined"||!qc)return si(r);try{return si(r)}catch(e){return!1}},Ac=function(e){var t=e!==null&&typeof e=="object",n=us.call(e)==="[object Function]",i=Tc(e),o=t&&us.call(e)==="[object String]",s=[];if(!t&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var a=Ec&&n;if(o&&e.length>0&&!Nr.call(e,0))for(var l=0;l<e.length;++l)s.push(String(l));if(i&&e.length>0)for(var u=0;u<e.length;++u)s.push(String(u));else for(var c in e)!(a&&c==="prototype")&&Nr.call(e,c)&&s.push(String(c));if(Pc)for(var p=_c(e),O=0;O<zr.length;++O)!(p&&zr[O]==="constructor")&&Nr.call(e,zr[O])&&s.push(zr[O]);return s});var Nr,us,Tc,cs,Pc,Ec,zr,si,kc,qc,_c;Rc.exports=Ac});var Wc=h((Yq,Zc)=>{"use strict";var Kb=Array.prototype.slice,eS=ls(),Ic=Object.keys,ai=Ic?function(e){return Ic(e)}:Cc(),jc=Object.keys;ai.shim=function(){if(Object.keys){var e=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);e||(Object.keys=function(n){return eS(n)?jc(Kb.call(n)):jc(n)})}else Object.keys=ai;return Object.keys||ai};Zc.exports=ai});var ue=h((Hq,Vc)=>{"use strict";var tS=Wc(),rS=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",nS=Object.prototype.toString,iS=Array.prototype.concat,Xc=os(),oS=function(r){return typeof r=="function"&&nS.call(r)==="[object Function]"},Mc=Br()(),sS=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!oS(n)||!n())return}Mc?Xc(r,e,t,!0):Xc(r,e,t)},Gc=function(r,e){var t=arguments.length>2?arguments[2]:{},n=tS(e);rS&&(n=iS.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i<n.length;i+=1)sS(r,n[i],e[n[i]],t[n[i]])};Gc.supportsDescriptors=!!Mc;Vc.exports=Gc});var ps=h((Jq,Dc)=>{"use strict";var aS=W(),lS=aS("%Object.setPrototypeOf%",!0),uS=Gr()();Dc.exports=lS||(uS?function(r,e){return r.__proto__=e,r}:null)});var Nc=h((Kq,Bc)=>{"use strict";var cS=W(),pS=cS("%Object.getPrototypeOf%",!0),fS=Gr()();Bc.exports=pS||(fS?function(r){return r.__proto__}:null)});var fs=h((e_,zc)=>{"use strict";zc.exports=function(e){if(e===null)return"Null";if(typeof e=="undefined")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"}});var F=h((t_,Fc)=>{"use strict";var OS=fs();Fc.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":OS(e)}});var Hc=h((r_,Yc)=>{"use strict";var Lc=k(),Uc=Nc(),hS=F();Yc.exports=function(e){if(hS(e)!=="Object")throw new Lc("Assertion failed: O must be an Object");if(!Uc)throw new Lc("This environment does not support fetching prototypes.");return Uc(e)}});var Kc=h((n_,Jc)=>{"use strict";var dS=k(),mS=ps(),gS=Hc();Jc.exports=function(e,t){if(typeof t!="object")throw new dS("Assertion failed: V must be Object or Null");try{mS(e,t)}catch(n){return!1}return gS(e)===t}});var D=h((i_,rp)=>{"use strict";var ep=W(),tp=Se(),yS=tp(ep("String.prototype.indexOf"));rp.exports=function(e,t){var n=ep(e,!!t);return typeof n=="function"&&yS(e,".prototype.")>-1?tp(n):n}});var np=h(()=>{});var Pt=h((a_,xp)=>{var xs=typeof Map=="function"&&Map.prototype,Os=Object.getOwnPropertyDescriptor&&xs?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ui=xs&&Os&&typeof Os.get=="function"?Os.get:null,ip=xs&&Map.prototype.forEach,Qs=typeof Set=="function"&&Set.prototype,hs=Object.getOwnPropertyDescriptor&&Qs?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ci=Qs&&hs&&typeof hs.get=="function"?hs.get:null,op=Qs&&Set.prototype.forEach,vS=typeof WeakMap=="function"&&WeakMap.prototype,Lr=vS?WeakMap.prototype.has:null,bS=typeof WeakSet=="function"&&WeakSet.prototype,Ur=bS?WeakSet.prototype.has:null,SS=typeof WeakRef=="function"&&WeakRef.prototype,sp=SS?WeakRef.prototype.deref:null,xS=Boolean.prototype.valueOf,QS=Object.prototype.toString,$S=Function.prototype.toString,wS=String.prototype.match,$s=String.prototype.slice,at=String.prototype.replace,TS=String.prototype.toUpperCase,ap=String.prototype.toLowerCase,mp=RegExp.prototype.test,lp=Array.prototype.concat,Ge=Array.prototype.join,PS=Array.prototype.slice,up=Math.floor,gs=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ds=Object.getOwnPropertySymbols,ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ar=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ce=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ar||!0)?Symbol.toStringTag:null,gp=Object.prototype.propertyIsEnumerable,cp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function pp(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||mp.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-up(-r):up(r);if(n!==r){var i=String(n),o=$s.call(e,i.length+1);return at.call(i,t,"$&_")+"."+at.call(at.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return at.call(e,t,"$&_")}var vs=np(),fp=vs.custom,Op=vp(fp)?fp:null;xp.exports=function r(e,t,n,i){var o=t||{};if(st(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(st(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=st(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(st(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(st(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Sp(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?pp(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return a?pp(e,u):u}var c=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=c&&c>0&&typeof e=="object")return bs(e)?"[Array]":"[Object]";var p=NS(o,n);if(typeof i=="undefined")i=[];else if(bp(i,e)>=0)return"[Circular]";function O(Z,oe,le){if(oe&&(i=PS.call(i),i.push(oe)),le){var X={depth:o.depth};return st(o,"quoteStyle")&&(X.quoteStyle=o.quoteStyle),r(Z,X,n+1,i)}return r(Z,o,n+1,i)}if(typeof e=="function"&&!hp(e)){var f=jS(e),d=li(e,O);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(d.length>0?" { "+Ge.call(d,", ")+" }":"")}if(vp(e)){var m=ar?at.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ys.call(e);return typeof e=="object"&&!ar?Fr(m):m}if(VS(e)){for(var g="<"+ap.call(String(e.nodeName)),x=e.attributes||[],b=0;b<x.length;b++)g+=" "+x[b].name+"="+yp(ES(x[b].value),"double",o);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+ap.call(String(e.nodeName))+">",g}if(bs(e)){if(e.length===0)return"[]";var T=li(e,O);return p&&!BS(T)?"["+Ss(T,p)+"]":"[ "+Ge.call(T,", ")+" ]"}if(qS(e)){var S=li(e,O);return!("cause"in Error.prototype)&&"cause"in e&&!gp.call(e,"cause")?"{ ["+String(e)+"] "+Ge.call(lp.call("[cause]: "+O(e.cause),S),", ")+" }":S.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Ge.call(S,", ")+" }"}if(typeof e=="object"&&s){if(Op&&typeof e[Op]=="function"&&vs)return vs(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(ZS(e)){var w=[];return ip&&ip.call(e,function(Z,oe){w.push(O(oe,e,!0)+" => "+O(Z,e))}),dp("Map",ui.call(e),w,p)}if(MS(e)){var y=[];return op&&op.call(e,function(Z){y.push(O(Z,e))}),dp("Set",ci.call(e),y,p)}if(WS(e))return ms("WeakMap");if(GS(e))return ms("WeakSet");if(XS(e))return ms("WeakRef");if(AS(e))return Fr(O(Number(e)));if(CS(e))return Fr(O(gs.call(e)));if(RS(e))return Fr(xS.call(e));if(_S(e))return Fr(O(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!kS(e)&&!hp(e)){var Q=li(e,O),R=cp?cp(e)===Object.prototype:e instanceof Object||e.constructor===Object,E=e instanceof Object?"":"null prototype",P=!R&&ce&&Object(e)===e&&ce in e?$s.call(lt(e),8,-1):E?"Object":"",_=R||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",j=_+(P||E?"["+Ge.call(lp.call([],P||[],E||[]),": ")+"] ":"");return Q.length===0?j+"{}":p?j+"{"+Ss(Q,p)+"}":j+"{ "+Ge.call(Q,", ")+" }"}return String(e)};function yp(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function ES(r){return at.call(String(r),/"/g,"&quot;")}function bs(r){return lt(r)==="[object Array]"&&(!ce||!(typeof r=="object"&&ce in r))}function kS(r){return lt(r)==="[object Date]"&&(!ce||!(typeof r=="object"&&ce in r))}function hp(r){return lt(r)==="[object RegExp]"&&(!ce||!(typeof r=="object"&&ce in r))}function qS(r){return lt(r)==="[object Error]"&&(!ce||!(typeof r=="object"&&ce in r))}function _S(r){return lt(r)==="[object String]"&&(!ce||!(typeof r=="object"&&ce in r))}function AS(r){return lt(r)==="[object Number]"&&(!ce||!(typeof r=="object"&&ce in r))}function RS(r){return lt(r)==="[object Boolean]"&&(!ce||!(typeof r=="object"&&ce in r))}function vp(r){if(ar)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!ys)return!1;try{return ys.call(r),!0}catch(e){}return!1}function CS(r){if(!r||typeof r!="object"||!gs)return!1;try{return gs.call(r),!0}catch(e){}return!1}var IS=Object.prototype.hasOwnProperty||function(r){return r in this};function st(r,e){return IS.call(r,e)}function lt(r){return QS.call(r)}function jS(r){if(r.name)return r.name;var e=wS.call($S.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function bp(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function ZS(r){if(!ui||!r||typeof r!="object")return!1;try{ui.call(r);try{ci.call(r)}catch(e){return!0}return r instanceof Map}catch(e){}return!1}function WS(r){if(!Lr||!r||typeof r!="object")return!1;try{Lr.call(r,Lr);try{Ur.call(r,Ur)}catch(e){return!0}return r instanceof WeakMap}catch(e){}return!1}function XS(r){if(!sp||!r||typeof r!="object")return!1;try{return sp.call(r),!0}catch(e){}return!1}function MS(r){if(!ci||!r||typeof r!="object")return!1;try{ci.call(r);try{ui.call(r)}catch(e){return!0}return r instanceof Set}catch(e){}return!1}function GS(r){if(!Ur||!r||typeof r!="object")return!1;try{Ur.call(r,Ur);try{Lr.call(r,Lr)}catch(e){return!0}return r instanceof WeakSet}catch(e){}return!1}function VS(r){return!r||typeof r!="object"?!1:typeof HTMLElement!="undefined"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Sp(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Sp($s.call(r,0,e.maxStringLength),e)+n}var i=at.call(at.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,DS);return yp(i,"single",e)}function DS(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+TS.call(e.toString(16))}function Fr(r){return"Object("+r+")"}function ms(r){return r+" { ? }"}function dp(r,e,t,n){var i=n?Ss(t,n):Ge.call(t,", ");return r+" ("+e+") {"+i+"}"}function BS(r){for(var e=0;e<r.length;e++)if(bp(r[e],`
`)>=0)return!1;return!0}function NS(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=Ge.call(Array(r.indent+1)," ");else return null;return{base:t,prev:Ge.call(Array(e+1),t)}}function Ss(r,e){if(r.length===0)return"";var t=`
`+e.prev+e.base;return t+Ge.call(r,","+t)+`
`+e.prev}function li(r,e){var t=bs(r),n=[];if(t){n.length=r.length;for(var i=0;i<r.length;i++)n[i]=st(r,i)?e(r[i],r):""}var o=typeof ds=="function"?ds(r):[],s;if(ar){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in r)st(r,l)&&(t&&String(Number(l))===l&&l<r.length||ar&&s["$"+l]instanceof Symbol||(mp.call(/[^\w$]/,l)?n.push(e(l,r)+": "+e(r[l],r)):n.push(l+": "+e(r[l],r))));if(typeof ds=="function")for(var u=0;u<o.length;u++)gp.call(r,o[u])&&n.push("["+e(o[u])+"]: "+e(r[o[u]],r));return n}});var wp=h((l_,$p)=>{"use strict";var Qp=W(),lr=D(),zS=Pt(),FS=k(),pi=Qp("%WeakMap%",!0),fi=Qp("%Map%",!0),LS=lr("WeakMap.prototype.get",!0),US=lr("WeakMap.prototype.set",!0),YS=lr("WeakMap.prototype.has",!0),HS=lr("Map.prototype.get",!0),JS=lr("Map.prototype.set",!0),KS=lr("Map.prototype.has",!0),ws=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},ex=function(r,e){var t=ws(r,e);return t&&t.value},tx=function(r,e,t){var n=ws(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},rx=function(r,e){return!!ws(r,e)};$p.exports=function(){var e,t,n,i={assert:function(o){if(!i.has(o))throw new FS("Side channel does not contain "+zS(o))},get:function(o){if(pi&&o&&(typeof o=="object"||typeof o=="function")){if(e)return LS(e,o)}else if(fi){if(t)return HS(t,o)}else if(n)return ex(n,o)},has:function(o){if(pi&&o&&(typeof o=="object"||typeof o=="function")){if(e)return YS(e,o)}else if(fi){if(t)return KS(t,o)}else if(n)return rx(n,o);return!1},set:function(o,s){pi&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new pi),US(e,o,s)):fi?(t||(t=new fi),JS(t,o,s)):(n||(n={key:{},next:null}),tx(n,o,s))}};return i}});var fe=h((u_,Tp)=>{"use strict";var nx=ot(),Yr=wp()(),Le=k(),Ts={assert:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new Le("`O` is not an object");if(typeof e!="string")throw new Le("`slot` must be a string");if(Yr.assert(r),!Ts.has(r,e))throw new Le("`"+e+"` is not present on `O`")},get:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new Le("`O` is not an object");if(typeof e!="string")throw new Le("`slot` must be a string");var t=Yr.get(r);return t&&t["$"+e]},has:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new Le("`O` is not an object");if(typeof e!="string")throw new Le("`slot` must be a string");var t=Yr.get(r);return!!t&&nx(t,"$"+e)},set:function(r,e,t){if(!r||typeof r!="object"&&typeof r!="function")throw new Le("`O` is not an object");if(typeof e!="string")throw new Le("`slot` must be a string");var n=Yr.get(r);n||(n={},Yr.set(r,n)),n["$"+e]=t}};Object.freeze&&Object.freeze(Ts);Tp.exports=Ts});var ur=h((c_,Pp)=>{"use strict";var ix=Jn();Pp.exports=function(){return ix()&&!!Symbol.toStringTag}});var Ps=h((p_,kp)=>{"use strict";var ox=W(),Ep=ox("%Object.defineProperty%",!0),sx=ur()(),ax=ot(),Oi=sx?Symbol.toStringTag:null;kp.exports=function(e,t){var n=arguments.length>2&&arguments[2]&&arguments[2].force;Oi&&(n||!ax(e,Oi))&&(Ep?Ep(e,Oi,{configurable:!0,enumerable:!1,value:t,writable:!1}):e[Oi]=t)}});var hi=h((f_,_p)=>{"use strict";var lx=W(),qp=lx("%Array%"),ux=!qp.isArray&&D()("Object.prototype.toString");_p.exports=qp.isArray||function(e){return ux(e)==="[object Array]"}});var cr=h((O_,Ap)=>{"use strict";Ap.exports=hi()});var di=h((h_,Rp)=>{"use strict";Rp.exports=function(e,t){for(var n=0;n<e.length;n+=1)t(e[n],n,e)}});var pr=h((d_,jp)=>{"use strict";var cx=W(),Cp=cx("%Object.create%",!0),Ip=k(),px=nt(),fx=cr(),Ox=F(),hx=di(),dx=fe(),mx=Gr()();jp.exports=function(e){if(e!==null&&Ox(e)!=="Object")throw new Ip("Assertion failed: `proto` must be null or an object");var t=arguments.length<2?[]:arguments[1];if(!fx(t))throw new Ip("Assertion failed: `additionalInternalSlotsList` must be an Array");var n;if(Cp)n=Cp(e);else if(mx)n={__proto__:e};else{if(e===null)throw new px("native Object.create support is required to create null objects");var i=function(){};i.prototype=e,n=new i}return t.length>0&&hx(t,function(o){dx.set(n,o,void 0)}),n}});var mi=h((m_,Zp)=>{"use strict";var gx=k();Zp.exports=function(e){if(e==null)throw new gx(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var Es=h((g_,Xp)=>{"use strict";var yx=mi(),Wp=D(),vx=Wp("Object.prototype.propertyIsEnumerable"),bx=Wp("Array.prototype.push");Xp.exports=function(e){var t=yx(e),n=[];for(var i in t)vx(t,i)&&bx(n,[i,t[i]]);return n}});var ks=h((y_,Mp)=>{"use strict";var Sx=Es();Mp.exports=function(){return typeof Object.entries=="function"?Object.entries:Sx}});var Vp=h((v_,Gp)=>{"use strict";var xx=ks(),Qx=ue();Gp.exports=function(){var e=xx();return Qx(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}});var qs=h((b_,Np)=>{"use strict";var $x=ue(),wx=Se(),Tx=Es(),Dp=ks(),Px=Vp(),Bp=wx(Dp(),Object);$x(Bp,{getPolyfill:Dp,implementation:Tx,shim:Px});Np.exports=Bp});var Hr=h((S_,Lp)=>{"use strict";var Fp=Function.prototype.toString,fr=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,As,gi;if(typeof fr=="function"&&typeof Object.defineProperty=="function")try{As=Object.defineProperty({},"length",{get:function(){throw gi}}),gi={},fr(function(){throw 42},null,As)}catch(r){r!==gi&&(fr=null)}else fr=null;var Ex=/^\s*class\b/,Rs=function(e){try{var t=Fp.call(e);return Ex.test(t)}catch(n){return!1}},_s=function(e){try{return Rs(e)?!1:(Fp.call(e),!0)}catch(t){return!1}},yi=Object.prototype.toString,kx="[object Object]",qx="[object Function]",_x="[object GeneratorFunction]",Ax="[object HTMLAllCollection]",Rx="[object HTML document.all class]",Cx="[object HTMLCollection]",Ix=typeof Symbol=="function"&&!!Symbol.toStringTag,jx=!(0 in[,]),Cs=function(){return!1};typeof document=="object"&&(zp=document.all,yi.call(zp)===yi.call(document.all)&&(Cs=function(e){if((jx||!e)&&(typeof e=="undefined"||typeof e=="object"))try{var t=yi.call(e);return(t===Ax||t===Rx||t===Cx||t===kx)&&e("")==null}catch(n){}return!1}));var zp;Lp.exports=fr?function(e){if(Cs(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{fr(e,null,As)}catch(t){if(t!==gi)return!1}return!Rs(e)&&_s(e)}:function(e){if(Cs(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Ix)return _s(e);if(Rs(e))return!1;var t=yi.call(e);return t!==qx&&t!==_x&&!/^\[object HTML/.test(t)?!1:_s(e)}});var Is=h((x_,Yp)=>{"use strict";var Zx=Hr(),Wx=Object.prototype.toString,Up=Object.prototype.hasOwnProperty,Xx=function(e,t,n){for(var i=0,o=e.length;i<o;i++)Up.call(e,i)&&(n==null?t(e[i],i,e):t.call(n,e[i],i,e))},Mx=function(e,t,n){for(var i=0,o=e.length;i<o;i++)n==null?t(e.charAt(i),i,e):t.call(n,e.charAt(i),i,e)},Gx=function(e,t,n){for(var i in e)Up.call(e,i)&&(n==null?t(e[i],i,e):t.call(n,e[i],i,e))},Vx=function(e,t,n){if(!Zx(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),Wx.call(e)==="[object Array]"?Xx(e,t,i):typeof e=="string"?Mx(e,t,i):Gx(e,t,i)};Yp.exports=Vx});var vi=h((Q_,Hp)=>{"use strict";var Dx=k(),Jr=ot(),Bx={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};Hp.exports=function(e){if(!e||typeof e!="object")return!1;for(var t in e)if(Jr(e,t)&&!Bx[t])return!1;var n=Jr(e,"[[Value]]")||Jr(e,"[[Writable]]"),i=Jr(e,"[[Get]]")||Jr(e,"[[Set]]");if(n&&i)throw new Dx("Property Descriptors may not be both accessor and data descriptors");return!0}});var js=h(($_,ef)=>{"use strict";var Nx=Br(),Jp=Dr(),Kp=Nx.hasArrayLengthDefineBug(),zx=Kp&&hi(),Fx=D(),Lx=Fx("Object.prototype.propertyIsEnumerable");ef.exports=function(e,t,n,i,o,s){if(!Jp){if(!e(s)||!s["[[Configurable]]"]||!s["[[Writable]]"]||o in i&&Lx(i,o)!==!!s["[[Enumerable]]"])return!1;var a=s["[[Value]]"];return i[o]=a,t(i[o],a)}return Kp&&o==="length"&&"[[Value]]"in s&&zx(i)&&i.length!==s["[[Value]]"]?(i.length=s["[[Value]]"],i.length===s["[[Value]]"]):(Jp(i,o,n(s)),!0)}});var rf=h((w_,tf)=>{"use strict";tf.exports=function(e){if(typeof e=="undefined")return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}});var Zs=h((T_,nf)=>{"use strict";var Ux=k(),Yx=vi(),Hx=rf();nf.exports=function(e){if(typeof e!="undefined"&&!Yx(e))throw new Ux("Assertion failed: `Desc` must be a Property Descriptor");return Hx(e)}});var Ws=h((P_,sf)=>{"use strict";var Jx=k(),of=ot(),Kx=vi();sf.exports=function(e){if(typeof e=="undefined")return!1;if(!Kx(e))throw new Jx("Assertion failed: `Desc` must be a Property Descriptor");return!(!of(e,"[[Value]]")&&!of(e,"[[Writable]]"))}});var Or=h((E_,af)=>{"use strict";af.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var Ue=h((k_,lf)=>{"use strict";lf.exports=Number.isNaN||function(e){return e!==e}});var bi=h((q_,cf)=>{"use strict";var uf=Ue();cf.exports=function(e,t){return e===t?e===0?1/e===1/t:!0:uf(e)&&uf(t)}});var Xs=h((__,pf)=>{"use strict";pf.exports=function(e){return!!e}});var Et=h((A_,ff)=>{"use strict";ff.exports=Hr()});var df=h((R_,hf)=>{"use strict";var Ve=ot(),Si=k(),eQ=F(),Ms=Xs(),Of=Et();hf.exports=function(e){if(eQ(e)!=="Object")throw new Si("ToPropertyDescriptor requires an object");var t={};if(Ve(e,"enumerable")&&(t["[[Enumerable]]"]=Ms(e.enumerable)),Ve(e,"configurable")&&(t["[[Configurable]]"]=Ms(e.configurable)),Ve(e,"value")&&(t["[[Value]]"]=e.value),Ve(e,"writable")&&(t["[[Writable]]"]=Ms(e.writable)),Ve(e,"get")){var n=e.get;if(typeof n!="undefined"&&!Of(n))throw new Si("getter must be a function");t["[[Get]]"]=n}if(Ve(e,"set")){var i=e.set;if(typeof i!="undefined"&&!Of(i))throw new Si("setter must be a function");t["[[Set]]"]=i}if((Ve(t,"[[Get]]")||Ve(t,"[[Set]]"))&&(Ve(t,"[[Value]]")||Ve(t,"[[Writable]]")))throw new Si("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}});var Vs=h((C_,gf)=>{"use strict";var Gs=k(),mf=vi(),tQ=js(),rQ=Zs(),nQ=Ws(),iQ=Or(),oQ=bi(),sQ=df(),aQ=F();gf.exports=function(e,t,n){if(aQ(e)!=="Object")throw new Gs("Assertion failed: Type(O) is not Object");if(!iQ(t))throw new Gs("Assertion failed: IsPropertyKey(P) is not true");var i=mf(n)?n:sQ(n);if(!mf(i))throw new Gs("Assertion failed: Desc is not a valid Property Descriptor");return tQ(nQ,oQ,rQ,e,t,i)}});var $i=h(Qi=>{"use strict";var lQ=it()(),uQ=fe(),cQ=qs(),pQ=Is(),fQ=W(),OQ=Vs(),hQ=pr(),xi=F(),yf=fQ("%Object.create%",!0),dQ=!({__proto__:null}instanceof Object);Qi.emptyObject=function(){return yf?yf(null):dQ?{__proto__:null}:{}};Qi.emulateES6construct=function(r,e,t,n){if(xi(r)!=="Object")throw new TypeError("Constructor requires `new`: "+e.name);var i=e.prototype;xi(i)!=="Object"&&(i=t);var o=hQ(i);return pQ(cQ(n),function(s){var a=s[0],l=s[1];uQ.set(o,a,l)}),o};var Kr=lQ&&xi(Symbol.iterator)==="Symbol"?Symbol.iterator:"_es6-shim iterator_";typeof[]["@@iterator"]=="function"&&(Kr="@@iterator");Qi.addIterator=function(r,e){var t=e||function(){return this};OQ(r,Kr,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":t,"[[Writable]]":!0}),!r[Kr]&&xi(Kr)==="Symbol"&&(r[Kr]=t)}});var Sf=h((j_,bf)=>{"use strict";var mQ=ue(),gQ=Ps(),wi=fe(),yQ=W(),vQ=pr(),bQ=$i().addIterator,en=function(e){wi.set(this,"[[isSetIterator]]",!0),wi.set(this,"[[it]]",e)},vf=yQ("%IteratorPrototype%",!0);vf&&(en.prototype=vQ(vf));bQ(en.prototype);mQ(en.prototype,{next:function(){if(!wi.has(this,"[[isSetIterator]]"))throw new TypeError("Not a SetIterator");return wi.get(this,"[[it]]").next()}});gQ(en.prototype,"Set Iterator");bf.exports=en});var ut=h((Z_,xf)=>{"use strict";var SQ=W(),xQ=D(),QQ=k(),$Q=cr(),wQ=SQ("%Reflect.apply%",!0)||xQ("Function.prototype.apply");xf.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!$Q(n))throw new QQ("Assertion failed: optional `argumentsList`, if provided, must be a List");return wQ(e,t,n)}});var Ds=h((W_,Qf)=>{"use strict";Qf.exports=function(e){return typeof e=="number"&&e>=55296&&e<=56319}});var Bs=h((X_,$f)=>{"use strict";$f.exports=function(e){return typeof e=="number"&&e>=56320&&e<=57343}});var Pf=h((M_,Tf)=>{"use strict";var TQ=W(),PQ=k(),wf=TQ("%String.fromCharCode%"),EQ=Ds(),kQ=Bs();Tf.exports=function(e,t){if(!EQ(e)||!kQ(t))throw new PQ("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return wf(e)+wf(t)}});var Rf=h((G_,Af)=>{"use strict";var Ef=k(),_f=D(),qQ=Ds(),kf=Bs(),_Q=Pf(),AQ=_f("String.prototype.charAt"),qf=_f("String.prototype.charCodeAt");Af.exports=function(e,t){if(typeof e!="string")throw new Ef("Assertion failed: `string` must be a String");var n=e.length;if(t<0||t>=n)throw new Ef("Assertion failed: `position` must be >= 0, and < the length of `string`");var i=qf(e,t),o=AQ(e,t),s=qQ(i),a=kf(i);if(!s&&!a)return{"[[CodePoint]]":o,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(a||t+1===n)return{"[[CodePoint]]":o,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var l=qf(e,t+1);return kf(l)?{"[[CodePoint]]":_Q(i,l),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":o,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}});var Ns=h((V_,Cf)=>{"use strict";var RQ=Ue();Cf.exports=function(r){return(typeof r=="number"||typeof r=="bigint")&&!RQ(r)&&r!==1/0&&r!==-1/0}});var Zf=h((D_,jf)=>{"use strict";var If=W(),CQ=If("%Math.abs%"),IQ=If("%Math.floor%"),jQ=Ue(),ZQ=Ns();jf.exports=function(e){if(typeof e!="number"||jQ(e)||!ZQ(e))return!1;var t=CQ(e);return IQ(t)===t}});var Xf=h((B_,Wf)=>{"use strict";Wf.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var Gf=h((N_,Mf)=>{"use strict";var WQ=Rf(),XQ=Zf(),MQ=Xf(),zs=k();Mf.exports=function(e,t,n){if(typeof e!="string")throw new zs("Assertion failed: `S` must be a String");if(!XQ(t)||t<0||t>MQ)throw new zs("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if(typeof n!="boolean")throw new zs("Assertion failed: `unicode` must be a Boolean");if(!n)return t+1;var i=e.length;if(t+1>=i)return t+1;var o=WQ(e,t);return t+o["[[CodeUnitCount]]"]}});var Ti=h((z_,Vf)=>{"use strict";var GQ=k();Vf.exports=function(e,t){if(typeof t!="boolean")throw new GQ("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}}});var Pi=h((F_,Bf)=>{"use strict";var Df=k(),VQ=Pt(),DQ=Or(),BQ=F();Bf.exports=function(e,t){if(BQ(e)!=="Object")throw new Df("Assertion failed: Type(O) is not Object");if(!DQ(t))throw new Df("Assertion failed: IsPropertyKey(P) is not true, got "+VQ(t));return e[t]}});var Fs=h((L_,Nf)=>{"use strict";var NQ=k(),zQ=Pi(),FQ=Xs(),LQ=F();Nf.exports=function(e){if(LQ(e)!=="Object")throw new NQ("Assertion failed: Type(iterResult) is not Object");return FQ(zQ(e,"done"))}});var Ff=h((U_,zf)=>{"use strict";var UQ=k(),YQ=Pi(),HQ=F();zf.exports=function(e){if(HQ(e)!=="Object")throw new UQ("Assertion failed: Type(iterResult) is not Object");return YQ(e,"value")}});var Hf=h((Y_,Yf)=>{"use strict";var JQ=W(),KQ=Se(),e$=nt(),Lf=JQ("%Promise.resolve%",!0),Uf=Lf&&KQ(Lf);Yf.exports=function(e,t){if(!Uf)throw new e$("This environment does not support Promises.");return Uf(e,t)}});var eO=h((H_,Kf)=>{"use strict";var t$=W(),Jf=nt(),r$=k(),Ls=t$("%Promise%",!0),n$=D(),i$=Ti(),o$=Fs(),s$=Ff(),a$=Hf(),l$=F(),u$=n$("Promise.prototype.then",!0);Kf.exports=function(e){if(l$(e)!=="Object")throw new r$("Assertion failed: Type(O) is not Object");if(arguments.length>1)throw new Jf("although AsyncFromSyncIteratorContinuation should take a second argument, it is not used in this implementation");if(!Ls)throw new Jf("This environment does not support Promises.");return new Ls(function(t){var n=o$(e),i=s$(e),o=a$(Ls,i),s=function(a){return i$(a,n)};t(u$(o,s))})}});var Us=h((J_,tO)=>{"use strict";var c$=k(),p$=Pt(),f$=Or();tO.exports=function(e,t){if(!f$(t))throw new c$("Assertion failed: IsPropertyKey(P) is not true, got "+p$(t));return e[t]}});var Ei=h((K_,iO)=>{"use strict";var rO=k(),O$=Us(),h$=Et(),d$=Or(),nO=Pt();iO.exports=function(e,t){if(!d$(t))throw new rO("Assertion failed: IsPropertyKey(P) is not true");var n=O$(e,t);if(n!=null){if(!h$(n))throw new rO(nO(t)+" is not a function: "+nO(n));return n}}});var kt=h((eA,oO)=>{"use strict";var Ys=ot();oO.exports=function(e){return!!e&&typeof e=="object"&&Ys(e,"[[Iterator]]")&&Ys(e,"[[NextMethod]]")&&typeof e["[[NextMethod]]"]=="function"&&Ys(e,"[[Done]]")&&typeof e["[[Done]]"]=="boolean"}});var Hs=h((tA,lO)=>{"use strict";var sO=k(),aO=ut(),m$=F(),g$=kt();lO.exports=function(e){if(!g$(e))throw new sO("Assertion failed: `iteratorRecord` must be an Iterator Record");var t;if(arguments.length<2?t=aO(e["[[NextMethod]]"],e["[[Iterator]]"]):t=aO(e["[[NextMethod]]"],e["[[Iterator]]"],[arguments[1]]),m$(t)!=="Object")throw new sO("iterator next must return an object");return t}});var hO=h((rA,OO)=>{"use strict";var fO=W(),Js=nt(),ea=k(),hr=fO("%Promise%",!0),Ks=eO(),ct=ut(),y$=Ti(),v$=Pi(),uO=Ei(),cO=Hs(),b$=pr(),pO=F(),qt=fe(),S$=kt(),x$=fO("%AsyncFromSyncIteratorPrototype%",!0)||{next:function(e){if(!hr)throw new Js("This environment does not support Promises.");var t=this;qt.assert(t,"[[SyncIteratorRecord]]");var n=arguments.length;return new hr(function(i){var o=qt.get(t,"[[SyncIteratorRecord]]"),s;n>0?s=cO(o,e):s=cO(o),i(Ks(s))})},return:function(){if(!hr)throw new Js("This environment does not support Promises.");var r=this;qt.assert(r,"[[SyncIteratorRecord]]");var e=arguments.length>0,t=e?arguments[0]:void 0;return new hr(function(n,i){var o=qt.get(r,"[[SyncIteratorRecord]]")["[[Iterator]]"],s=uO(o,"return");if(typeof s=="undefined"){var a=y$(t,!0);ct(n,void 0,[a]);return}var l;if(e?l=ct(s,o,[t]):l=ct(s,o),pO(l)!=="Object"){ct(i,void 0,[new ea("Iterator `return` method returned a non-object value.")]);return}n(Ks(l))})},throw:function(){if(!hr)throw new Js("This environment does not support Promises.");var r=this;qt.assert(r,"[[SyncIteratorRecord]]");var e=arguments.length>0,t=e?arguments[0]:void 0;return new hr(function(n,i){var o=qt.get(r,"[[SyncIteratorRecord]]")["[[Iterator]]"],s=uO(o,"throw");if(typeof s=="undefined"){ct(i,void 0,[t]);return}var a;if(e?a=ct(s,o,[t]):a=ct(s,o),pO(a)!=="Object"){ct(i,void 0,[new ea("Iterator `throw` method returned a non-object value.")]);return}n(Ks(a))})}};OO.exports=function(e){if(!S$(e))throw new ea("Assertion failed: `syncIteratorRecord` must be an Iterator Record");var t=b$(x$);qt.set(t,"[[SyncIteratorRecord]]",e);var n=v$(t,"next");return{"[[Iterator]]":t,"[[NextMethod]]":n,"[[Done]]":!1}}});var gO=h((nA,mO)=>{"use strict";var dO=k(),Q$=ut(),$$=Us(),w$=Et(),T$=F();mO.exports=function(e,t){if(!w$(t))throw new dO("method must be a function");var n=Q$(t,e);if(T$(n)!=="Object")throw new dO("iterator must return an object");var i=$$(n,"next");return{"[[Iterator]]":n,"[[NextMethod]]":i,"[[Done]]":!1}}});var ta=h((iA,yO)=>{"use strict";var P$=String.prototype.valueOf,E$=function(e){try{return P$.call(e),!0}catch(t){return!1}},k$=Object.prototype.toString,q$="[object String]",_$=ur()();yO.exports=function(e){return typeof e=="string"?!0:typeof e!="object"?!1:_$?E$(e):k$.call(e)===q$}});var SO=h((oA,bO)=>{"use strict";var A$=it()(),vO=W(),R$=D(),C$=ta(),I$=vO("%Symbol.iterator%",!0),j$=R$("String.prototype.slice"),Z$=vO("%String%");bO.exports=function(e,t){var n;return A$?n=e.GetMethod(t,I$):e.IsArray(t)?n=function(){var i=-1,o=this;return{next:function(){return i+=1,{done:i>=o.length,value:o[i]}}}}:C$(t)&&(n=function(){var i=0;return{next:function(){var o=e.AdvanceStringIndex(Z$(t),i,!0),s=j$(t,i,o);return i=o,{done:o>t.length,value:s}}}}),n}});var TO=h((sA,wO)=>{"use strict";var W$=W(),ra=k(),xO=W$("%Symbol.asyncIterator%",!0),X$=Pt(),M$=it()(),G$=Gf(),V$=hO(),QO=gO(),$O=Ei(),D$=cr(),B$=SO();wO.exports=function(e,t){if(t!=="sync"&&t!=="async")throw new ra("Assertion failed: `kind` must be one of 'sync' or 'async', got "+X$(t));var n;if(t==="async"&&M$&&xO&&(n=$O(e,xO)),typeof n=="undefined"){var i=B$({AdvanceStringIndex:G$,GetMethod:$O,IsArray:D$},e);if(t==="async"){if(typeof i=="undefined")throw new ra("iterator method is `undefined`");var o=QO(e,i);return V$(o)}n=i}if(typeof n=="undefined")throw new ra("iterator method is `undefined`");return QO(e,n)}});var EO=h((aA,PO)=>{"use strict";var na=nt(),pt=fe(),tn=function r(e,t){if(!(this instanceof r))return new r(e,t);if(e!=="normal"&&e!=="break"&&e!=="continue"&&e!=="return"&&e!=="throw")throw new na('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');pt.set(this,"[[Type]]",e),pt.set(this,"[[Value]]",t)};tn.prototype.type=function(){return pt.get(this,"[[Type]]")};tn.prototype.value=function(){return pt.get(this,"[[Value]]")};tn.prototype["?"]=function(){var e=pt.get(this,"[[Type]]"),t=pt.get(this,"[[Value]]");if(e==="normal")return t;throw e==="throw"?t:new na('Completion Record is not of type "normal" or "throw": other types not supported')};tn.prototype["!"]=function(){var e=pt.get(this,"[[Type]]");if(e!=="normal")throw new na('Assertion failed: Completion Record is not of type "normal"');return pt.get(this,"[[Value]]")};PO.exports=tn});var ia=h((lA,_O)=>{"use strict";var ki=k(),N$=ut(),kO=EO(),z$=Ei(),F$=Et(),qO=F(),L$=kt();_O.exports=function(e,t){if(!L$(e))throw new ki("Assertion failed: `iteratorRecord` must be an Iterator Record");if(qO(e["[[Iterator]]"])!=="Object")throw new ki("Assertion failed: iteratorRecord.[[Iterator]] must be an Object");if(!F$(t)&&!(t instanceof kO))throw new ki("Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance");var n=t instanceof kO?function(){return t["?"]()}:t,i=e["[[Iterator]]"],o;try{o=z$(i,"return")}catch(l){throw n(),n=null,l}if(typeof o=="undefined")return n();var s;try{s=N$(o,i,[])}catch(l){throw n(),n=null,l}var a=n();if(n=null,qO(s)!=="Object")throw new ki("iterator .return must return an object");return a}});var oa=h((uA,AO)=>{"use strict";var U$=k(),Y$=Fs(),H$=Hs(),J$=kt();AO.exports=function(e){if(!J$(e))throw new U$("Assertion failed: `iteratorRecord` must be an Iterator Record");var t=H$(e),n=Y$(t);return n===!0?!1:t}});var rn=h((cA,RO)=>{"use strict";var K$=W(),ew=K$("%String%"),tw=k();RO.exports=function(e){if(typeof e=="symbol")throw new tw("Cannot convert a Symbol value to a string");return ew(e)}});var jO=h((pA,IO)=>{"use strict";var CO=Ue();IO.exports=function(e,t){return e===t||CO(e)&&CO(t)}});var WO=h((fA,ZO)=>{"use strict";var qi=function(e,t){this.key=e,this.value=t,this.next=null,this.prev=null};qi.empty={};qi.prototype.isRemoved=function(){return this.key===qi.empty};ZO.exports=qi});var sa=h((OA,MO)=>{"use strict";var XO=k(),rw=js(),nw=Zs(),iw=Ws(),ow=Or(),sw=bi(),aw=F();MO.exports=function(e,t,n){if(aw(e)!=="Object")throw new XO("Assertion failed: Type(O) is not Object");if(!ow(t))throw new XO("Assertion failed: IsPropertyKey(P) is not true");var i={"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":n,"[[Writable]]":!0};return rw(iw,sw,nw,e,t,i)}});var _i=h(aa=>{"use strict";var lw=fe(),uw=rn(),cw=F(),GO=function(e){return lw.has(e,"[[es6map]]")};aa.isMap=GO;aa.requireMapSlot=function(e,t){if(cw(e)!=="Object"||!GO(e))throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+uw(e))}});var la=h(Ri=>{"use strict";var pw=it()(),fw=W(),Ow=fe(),hw=qs(),dw=Is(),mw=sa(),gw=pr(),Ai=F(),VO=fw("%Object.create%",!0),yw=!({__proto__:null}instanceof Object);Ri.emptyObject=function(){return VO?VO(null):yw?{__proto__:null}:{}};Ri.emulateES6construct=function(r,e,t,n){if(Ai(r)!=="Object")throw new TypeError("Constructor requires `new`: "+e.name);var i=e.prototype;Ai(i)!=="Object"&&(i=t);var o=gw(i);return dw(hw(n),function(s){var a=s[0],l=s[1];Ow.set(o,a,l)}),o};var nn=pw&&Ai(Symbol.iterator)==="Symbol"?Symbol.iterator:"_es6-shim iterator_";typeof[]["@@iterator"]=="function"&&(nn="@@iterator");Ri.addIterator=function(r,e){var t=e||function(){return this};mw(r,nn,t),!r[nn]&&Ai(nn)==="Symbol"&&(r[nn]=t)}});var ca=h((mA,BO)=>{"use strict";var Ae=fe(),vw=Ps(),bw=W(),ua=Ti(),Sw=sa(),xw=pr(),Qw=_i().requireMapSlot,$w=la().addIterator,on=function(e,t){Qw(e,"[[MapIterator]]"),Ae.set(this,"[[isMapIterator]]",!0);var n=Ae.get(e,"[[head]]");Ae.set(this,"[[i]]",n),Ae.set(this,"[[head]]",n),Ae.set(this,"[[kind]]",t)},DO=bw("%IteratorPrototype%",!0);DO&&(on.prototype=xw(DO));$w(on.prototype);Sw(on.prototype,"next",function(){if(!Ae.has(this,"[[isMapIterator]]"))throw new TypeError("Not a MapIterator");var e=Ae.get(this,"[[i]]"),t=Ae.get(this,"[[kind]]"),n=Ae.get(this,"[[head]]");if(typeof e=="undefined")return ua(void 0,!0);for(;e.isRemoved()&&e!==n;)e=e.prev;for(var i;e.next!==n;)if(e=e.next,!e.isRemoved())return t==="key"?i=e.key:t==="value"?i=e.value:i=[e.key,e.value],Ae.set(this,"[[i]]",e),ua(i,!1);return Ae.set(this,"[[i]]",void 0),ua(void 0,!0)});vw(on.prototype,"Map Iterator");BO.exports=on});var FO=h((gA,zO)=>{"use strict";var ww=ur()(),Tw=D(),pa=Tw("Object.prototype.toString"),Ci=function(e){return ww&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:pa(e)==="[object Arguments]"},NO=function(e){return Ci(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&pa(e)!=="[object Array]"&&pa(e.callee)==="[object Function]"},Pw=function(){return Ci(arguments)}();Ci.isLegacyArguments=NO;zO.exports=Pw?Ci:NO});var an=h((yA,UO)=>{"use strict";var sn=fe(),Ew=SyntaxError,LO=typeof StopIteration=="object"?StopIteration:null;UO.exports=function(e){if(!LO)throw new Ew("this environment lacks StopIteration");sn.set(e,"[[Done]]",!1);var t={next:function(){var i=sn.get(this,"[[Iterator]]"),o=sn.get(i,"[[Done]]");try{return{done:o,value:o?void 0:i.next()}}catch(s){if(sn.set(i,"[[Done]]",!0),s!==LO)throw s;return{done:!0,value:void 0}}}};return sn.set(t,"[[Iterator]]",e),t}});var HO=h((vA,YO)=>{var kw={}.toString;YO.exports=Array.isArray||function(r){return kw.call(r)=="[object Array]"}});var th=h((bA,eh)=>{"use strict";var fa=typeof Map=="function"&&Map.prototype?Map:null,qw=typeof Set=="function"&&Set.prototype?Set:null,Ii;fa||(Ii=function(e){return!1});var KO=fa?Map.prototype.has:null,JO=qw?Set.prototype.has:null;!Ii&&!KO&&(Ii=function(e){return!1});eh.exports=Ii||function(e){if(!e||typeof e!="object")return!1;try{if(KO.call(e),JO)try{JO.call(e)}catch(t){return!0}return e instanceof fa}catch(t){}return!1}});var dr=h((SA,ih)=>{"use strict";var _w=typeof Map=="function"&&Map.prototype?Map:null,Oa=typeof Set=="function"&&Set.prototype?Set:null,ji;Oa||(ji=function(e){return!1});var rh=_w?Map.prototype.has:null,nh=Oa?Set.prototype.has:null;!ji&&!nh&&(ji=function(e){return!1});ih.exports=ji||function(e){if(!e||typeof e!="object")return!1;try{if(nh.call(e),rh)try{rh.call(e)}catch(t){return!0}return e instanceof Oa}catch(t){}return!1}});var $a=h((xA,Xi)=>{"use strict";var oh=FO(),sh=an();it()()||Jn()()?(Zi=Symbol.iterator,Xi.exports=function(e){if(e!=null&&typeof e[Zi]!="undefined")return e[Zi]();if(oh(e))return Array.prototype[Zi].call(e)}):(ah=HO(),lh=ta(),ha=W(),uh=ha("%Map%",!0),ch=ha("%Set%",!0),Qe=D(),da=Qe("Array.prototype.push"),ma=Qe("String.prototype.charCodeAt"),ph=Qe("String.prototype.slice"),fh=function(e,t){var n=e.length;if(t+1>=n)return t+1;var i=ma(e,t);if(i<55296||i>56319)return t+1;var o=ma(e,t+1);return o<56320||o>57343?t+1:t+2},Wi=function(e){var t=0;return{next:function(){var i=t>=e.length,o;return i||(o=e[t],t+=1),{done:i,value:o}}}},ga=function(e,t){if(ah(e)||oh(e))return Wi(e);if(lh(e)){var n=0;return{next:function(){var o=fh(e,n),s=ph(e,n,o);return n=o,{done:o>e.length,value:s}}}}if(t&&typeof e["_es6-shim iterator_"]!="undefined")return e["_es6-shim iterator_"]()},!uh&&!ch?Xi.exports=function(e){if(e!=null)return ga(e,!0)}:(Oh=th(),hh=dr(),ya=Qe("Map.prototype.forEach",!0),va=Qe("Set.prototype.forEach",!0),(typeof process=="undefined"||!process.versions||!process.versions.node)&&(ba=Qe("Map.prototype.iterator",!0),Sa=Qe("Set.prototype.iterator",!0)),xa=Qe("Map.prototype.@@iterator",!0)||Qe("Map.prototype._es6-shim iterator_",!0),Qa=Qe("Set.prototype.@@iterator",!0)||Qe("Set.prototype._es6-shim iterator_",!0),dh=function(e){if(Oh(e)){if(ba)return sh(ba(e));if(xa)return xa(e);if(ya){var t=[];return ya(e,function(i,o){da(t,[o,i])}),Wi(t)}}if(hh(e)){if(Sa)return sh(Sa(e));if(Qa)return Qa(e);if(va){var n=[];return va(e,function(i){da(n,i)}),Wi(n)}}},Xi.exports=function(e){return dh(e)||ga(e)}));var Zi,ah,lh,ha,uh,ch,Qe,da,ma,ph,fh,Wi,ga,Oh,hh,ya,va,ba,Sa,xa,Qa,dh});var yh=h(Mi=>{"use strict";var mh=ut(),Aw=cr(),Rw=Et(),Cw=ia(),Iw=oa(),jw=rn(),wa=F(),Zw=$a(),Ww=ca(),Xw=_i().isMap;Mi.fastkey=function(e){switch(wa(e)){case"String":return"$"+e;case"Null":case"Undefined":case"Boolean":case"Number":return jw(e);default:return null}};var gh=function(e,t,n){for(var i=new Ww(e,"key+value"),o=i.next();!o.done;o=i.next())typeof n=="undefined"?t(o.value[1],o.value[0],e):mh(t,n,[o.value[1],o.value[0],e])};Mi.forEach=gh;Mi.addIterableToMap=function(e,t){if(Aw(t)||typeof t=="string")for(var n=0;n<t.length;n++){var i=t[n];if(wa(i)!=="Object")throw new TypeError("Iterator value "+i+" is not an entry object");e.set(i[0],i[1])}else if(Xw(t))gh(t,function(c,p){e.set(p,c)});else{var o,s;if(t!=null){if(o=e.set,!Rw(o))throw new TypeError("bad map");var a=Zw(t);s={"[[Done]]":!1,"[[Iterator]]":a,"[[NextMethod]]":a.next}}if(typeof s=="undefined")throw new TypeError("Object is not iterable");for(var l;l=Iw(s);){var u=l.value;try{if(wa(u)!=="Object")throw new TypeError("Iterator value "+u+" is not an entry object");mh(o,e,[u[0],u[1]])}catch(c){throw Cw(s,!0),c}}}}});var Qh=h(($A,xh)=>{"use strict";var vh=ue(),Bi=D(),Mw=W(),G=fe(),Gw=bi(),Gi=jO(),ft=WO(),Ta=ca(),ka=yh(),qa=la(),De=_i().requireMapSlot,Vi=ka.fastkey,Vw=ka.forEach,Dw=ka.addIterableToMap,bh=qa.emptyObject,Bw=qa.emulateES6construct,Nw=qa.addIterator,Di=Mw("%Map%",!0),zw=Bi("%Map.prototype.delete%",!0),Pa=Bi("%Map.prototype.get%",!0),Ea=Bi("%Map.prototype.has%",!0),Fw=Bi("%Map.prototype.set%",!0),mr,Sh=function r(){if(!(this instanceof r))throw new TypeError('Constructor Map requires "new"');if(this&&G.has(this,"[[es6map]]"))throw new TypeError("Bad construction");var e=Bw(this,r,mr,{"[[es6map]]":!0,"[[head]]":null,"[[map]]":Di?new Di:null,"[[size]]":0,"[[storage]]":bh()}),t=new ft(null,null);return t.next=t,t.prev=t,G.set(e,"[[head]]",t),arguments.length>0&&Dw(e,arguments[0]),e};mr=Sh.prototype;vh.supportsDescriptors&&Object.defineProperty(mr,"size",{configurable:!0,enumerable:!1,get:function(){return De(this,"size"),G.get(this,"[[size]]")}});vh(mr,{get:function(e){De(this,"get");var t,n=Vi(e,!0);if(n!==null)return t=G.get(this,"[[storage]]")[n],t?t.value:void 0;var i=G.get(this,"[[map]]");if(i)return t=Pa(i,e),t?t.value:void 0;for(var o=G.get(this,"[[head]]"),s=o;(s=s.next)!==o;)if(Gi(s.key,e))return s.value},has:function(e){De(this,"has");var t=Vi(e,!0),n=G.get(this,"[[storage]]");if(t!==null)return typeof n[t]!="undefined";var i=G.get(this,"[[map]]");if(i)return Ea(i,e);for(var o=G.get(this,"[[head]]"),s=o;(s=s.next)!==o;)if(Gi(s.key,e))return!0;return!1},set:function(e,t){De(this,"set");var n=G.get(this,"[[head]]"),i=n,o,s=Vi(e,!0);if(s!==null){var a=G.get(this,"[[storage]]");if(typeof a[s]=="undefined")o=new ft(e,t),a[s]=o,i=n.prev;else return a[s].value=t,this}else{var l=G.get(this,"[[map]]");l&&(Ea(l,e)?Pa(l,e).value=t:(o=new ft(e,t),Fw(l,e,o),i=n.prev))}for(;(i=i.next)!==n;)if(Gi(i.key,e))return i.value=t,this;return o=o||new ft(e,t),Gw(-0,e)&&(o.key=0),o.next=n,o.prev=n.prev,o.prev.next=o,o.next.prev=o,G.set(this,"[[size]]",G.get(this,"[[size]]")+1),this},delete:function(r){De(this,"delete");var e=G.get(this,"[[head]]"),t=e,n=Vi(r,!0);if(n!==null){var i=G.get(this,"[[storage]]");if(typeof i[n]=="undefined")return!1;t=i[n].prev,delete i[n]}else{var o=G.get(this,"[[map]]");if(o){if(!Ea(o,r))return!1;t=Pa(o,r).prev,zw(o,r)}}for(;(t=t.next)!==e;)if(Gi(t.key,r))return t.key=ft.empty,t.value=ft.empty,t.prev.next=t.next,t.next.prev=t.prev,G.set(this,"[[size]]",G.get(this,"[[size]]")-1),!0;return!1},clear:function(){De(this,"clear"),G.set(this,"[[map]]",Di?new Di:null),G.set(this,"[[size]]",0),G.set(this,"[[storage]]",bh());for(var e=G.get(this,"[[head]]"),t=e,n=t.next;(t=n)!==e;)t.key=ft.empty,t.value=ft.empty,n=t.next,t.next=e,t.prev=e;e.next=e,e.prev=e},keys:function(){return De(this,"keys"),new Ta(this,"key")},values:function(){return De(this,"values"),new Ta(this,"value")},entries:function(){return De(this,"entries"),new Ta(this,"key+value")},forEach:function(e){De(this,"forEach"),Vw(this,e,arguments.length>1?arguments[1]:void 0)}});Nw(mr,mr.entries);xh.exports=Sh});var Aa=h(_a=>{"use strict";var Lw=fe(),Uw=rn(),Yw=F(),$h=function(e){return Lw.has(e,"[[es6set]]")};_a.isSet=$h;_a.requireSetSlot=function(e,t){if(Yw(e)!=="Object"||!$h(e))throw new TypeError("Method Set.prototype."+t+" called on incompatible receiver "+Uw(e))}});var Ra=h(_t=>{"use strict";var Hw=W(),Jw=D(),Kw=Se(),ln=fe(),Th=ut(),e0=TO(),t0=cr(),r0=Et(),n0=ia(),i0=oa(),o0=rn(),Ni=F(),Ph=Qh(),s0=Kw(Ph.prototype.forEach),wh=Jw("%String.prototype.slice%"),a0=Hw("%Number%"),l0=Aa().isSet,Eh={};_t.SET_ITEM=Eh;_t.fastkey=function(e){switch(Ni(e)){case"String":return"$"+e;case"Null":case"Undefined":case"Boolean":return o0(e);case"Number":return"n"+e;default:return null}};var u0=function(e){return e==="null"?null:e==="undefined"?void 0:e==="true"?!0:e==="false"?!1:e[0]==="$"?wh(e,1):a0(wh(e,1))},kh=function(e,t){for(var n in e)e[n]===Eh&&t(n)};_t.iterateStorage=kh;var qh=function(e){if(!ln.get(e,"[[setData]]")){var t=new Ph;kh(ln.get(e,"[[storage]]"),function(n){var i=u0(n);t.set(i,i)}),ln.set(e,"[[setData]]",t)}ln.set(e,"[[storage]]",null)};_t.ensureSet=qh;var _h=function(e,t,n){qh(e),s0(ln.get(e,"[[setData]]"),function(i,o){typeof n=="undefined"?t(o,o,e):Th(t,n,[o,o,e])})};_t.forEach=_h;_t.addIterableToSet=function(e,t){if(t0(t)||Ni(t)==="String")for(var n=0;n<t.length;n++)e.add(t[n]);else if(l0(t))_h(t,function(a){e.add(a)});else{var i,o;if(Ni(t)!=="Null"&&Ni(t)!=="Undefined"){if(o=e.add,!r0(o))throw new TypeError("bad set");i=e0(t,"sync")}if(typeof i=="undefined")throw new TypeError("Object is not iterable");for(var s;s=i0(i);)try{Th(o,e,[s.value])}catch(a){throw n0(i,!0),a}}}});var Wh=h((PA,Zh)=>{"use strict";var Ia=ue(),Oe=fe(),Ah=ps(),Rh=Sf(),yr=Ra(),ja=$i(),Ot=Aa().requireSetSlot,Ca=yr.fastkey,c0=yr.forEach,p0=yr.addIterableToSet,Ch=yr.SET_ITEM,gr=yr.ensureSet,f0=yr.iterateStorage,Ih=ja.emptyObject,O0=ja.emulateES6construct,h0=ja.addIterator,Ye,jh=function r(){if(!(this instanceof r))throw new TypeError('Constructor Set requires "new"');if(this&&Oe.has(this,"[[es6set]]"))throw new TypeError("Bad construction");var e=O0(this,r,Ye,{"[[es6set]]":!0,"[[setData]]":null,"[[storage]]":Ih()});if(!Oe.has(e,"[[es6set]]"))throw new TypeError("bad set");return arguments.length>0&&p0(e,arguments[0]),e};Ye=jh.prototype;Ia.supportsDescriptors&&Object.defineProperty(Ye,"size",{configurable:!0,enumerable:!1,get:function(){Ot(this,"size");var r=Oe.get(this,"[[storage]]");if(r){var e=0;return f0(r,function(){e+=1}),e}return gr(this),Oe.get(this,"[[setData]]").size}});Ia(Ye,{add:function(e){Ot(this,"has");var t,n=Oe.get(this,"[[storage]]");return n&&(t=Ca(e))!==null?n[t]!==Ch&&(n[t]=Ch):(gr(this),Oe.get(this,"[[setData]]").set(e,e)),this},has:function(e){Ot(this,"has");var t,n=Oe.get(this,"[[storage]]");return n&&(t=Ca(e))!==null?!!n[t]:(gr(this),Oe.get(this,"[[setData]]").has(e))},delete:function(r){Ot(this,"delete");var e,t=Oe.get(this,"[[storage]]");if(t&&(e=Ca(r))!==null){var n=!!t[e];return n&&delete t[e],n}return gr(this),Oe.get(this,"[[setData]]").delete(r)},clear:function(){Ot(this,"clear");var e=Oe.get(this,"[[storage]]");e&&Oe.set(this,"[[storage]]",Ih());var t=Oe.get(this,"[[setData]]");t&&t.clear()},values:function(){return Ot(this,"values"),gr(this),new Rh(Oe.get(this,"[[setData]]").values())},entries:function(){return Ot(this,"entries"),gr(this),new Rh(Oe.get(this,"[[setData]]").entries())},forEach:function(e){Ot(this,"forEach"),c0(this,e,arguments.length>1?arguments[1]:void 0)}});Ia(Ye,{keys:Ye.values});h0(Ye,Ye.values);typeof Set=="function"&&Ah&&Ah(Ye,Set.prototype);Zh.exports=jh});var Mh=h((EA,Xh)=>{"use strict";var cn=function(){return typeof function(){}.name=="string"},un=Object.getOwnPropertyDescriptor;if(un)try{un([],"length")}catch(r){un=null}cn.functionsHaveConfigurableNames=function(){if(!cn()||!un)return!1;var e=un(function(){},"name");return!!e&&!!e.configurable};var d0=Function.prototype.bind;cn.boundFunctionsHaveNames=function(){return cn()&&typeof d0=="function"&&function(){}.bind().name!==""};Xh.exports=cn});var Za=h(ht=>{"use strict";var m0=Mh(),g0=function(r){return function(){try{return r()}catch(e){return!1}}};ht.isGoogleTranslate=function(){return!!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray(new Set().keys)};ht.setUsesSameValueZero=function(){if(!Set.prototype.delete||!Set.prototype.add||!Set.prototype.has)return!1;var r=new Set([1,2,3,4]);return r.delete(0),r.add(-0),r.has(0)?(r=new Set([1,2,3,4]),r.delete(-0),r.add(0),r.has(-0)):!1};ht.setSupportsChaining=function(){var r=new Set;return r.add(1)===r};var y0=g0(function(){if(!Object.setPrototypeOf)return!0;var r=function t(n){var i=new Set(n);return Object.setPrototypeOf(i,t.prototype),i};Object.setPrototypeOf(r,Set),Object.setPrototypeOf(r.prototype,Set.prototype);var e=new r([]);return e.add(1,2),e instanceof r}),v0=function(){try{return!(Set()instanceof Set)}catch(r){return r instanceof TypeError}};ht.setCompliantConstructor=function(){return Set.length===0&&y0()&&v0()};ht.setKeysIsValues=function(){return Set.prototype.keys===Set.prototype.values};ht.setHasCorrectName=function(){return m0?Set.prototype.has.name==="has":!0};ht.setHasOldFirefoxInterface=function(){return new Set().size!==0||typeof Set.prototype.values!="function"||typeof Set.prototype.forEach!="function"}});var Rt=h((qA,Gh)=>{"use strict";var b0=Kc(),S0=ue(),zi=fe(),x0=Wh(),Q0=Ra().addIterableToSet,At=Za(),Re;Gh.exports=function(){if(typeof Set=="function"&&!At.setCompliantConstructor()){var e=Set;if(!Re||!(e===Re||zi.get(Re,"[[OrigSet]]")===e)){var t=e.prototype;Re=function(){if(!(this instanceof Re))throw new TypeError('Constructor Set requires "new"');if(this&&zi.has(this,"[[SetCompliantConstructorShim]]"))throw new TypeError("Bad construction");var i=new e;return zi.set(i,"[[SetCompliantConstructorShim]]",!0),arguments.length>0&&Q0(i,arguments[0]),delete i.constructor,b0(i,Re.prototype),i},zi.set(Re,"[[OrigSet]]",Set),Re.prototype=t,S0(Re.prototype,{constructor:Re},{constructor:function(){return!0}})}return Re}return typeof Set!="function"||At.isGoogleTranslate()||At.setHasOldFirefoxInterface()||!At.setHasCorrectName()||!At.setKeysIsValues()||!At.setSupportsChaining()||!At.setUsesSameValueZero()?x0:Set}});var Wa=h((_A,Vh)=>{"use strict";Vh.exports=hi()});var pn=h((AA,Dh)=>{"use strict";var $0=W(),w0=D(),T0=k(),P0=Wa(),E0=$0("%Reflect.apply%",!0)||w0("Function.prototype.apply");Dh.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!P0(n))throw new T0("Assertion failed: optional `argumentsList`, if provided, must be a List");return E0(e,t,n)}});var Nh=h((RA,Bh)=>{"use strict";Bh.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var Ct=h((CA,zh)=>{"use strict";var k0=fs();zh.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":k0(e)}});var vr=h((IA,Lh)=>{"use strict";var Fh=k(),q0=Pt(),_0=Nh(),A0=Ct();Lh.exports=function(e,t){if(A0(e)!=="Object")throw new Fh("Assertion failed: Type(O) is not Object");if(!_0(t))throw new Fh("Assertion failed: IsPropertyKey(P) is not true, got "+q0(t));return e[t]}});var Fi=h((jA,Uh)=>{"use strict";Uh.exports=Hr()});var Xa=h((ZA,Hh)=>{"use strict";var Yh=k(),R0=pn(),C0=vr(),I0=Fi(),j0=Ct();Hh.exports=function(e,t){if(!I0(t))throw new Yh("method must be a function");var n=R0(t,e);if(j0(n)!=="Object")throw new Yh("iterator must return an object");var i=C0(n,"next");return{"[[Iterator]]":n,"[[NextMethod]]":i,"[[Done]]":!1}}});var Kh=h((WA,Jh)=>{"use strict";Jh.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var td=h((XA,ed)=>{"use strict";ed.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var nd=h((MA,rd)=>{"use strict";var Z0=Date.prototype.getDay,W0=function(e){try{return Z0.call(e),!0}catch(t){return!1}},X0=Object.prototype.toString,M0="[object Date]",G0=ur()();rd.exports=function(e){return typeof e!="object"||e===null?!1:G0?W0(e):X0.call(e)===M0}});var ad=h((GA,Ma)=>{"use strict";var V0=Object.prototype.toString,D0=it()();D0?(id=Symbol.prototype.toString,od=/^Symbol\(.*\)$/,sd=function(e){return typeof e.valueOf()!="symbol"?!1:od.test(id.call(e))},Ma.exports=function(e){if(typeof e=="symbol")return!0;if(V0.call(e)!=="[object Symbol]")return!1;try{return sd(e)}catch(t){return!1}}):Ma.exports=function(e){return!1};var id,od,sd});var pd=h((VA,cd)=>{"use strict";var B0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",Ga=td(),ud=Hr(),N0=nd(),ld=ad(),z0=function(e,t){if(typeof e=="undefined"||e===null)throw new TypeError("Cannot call method on "+e);if(typeof t!="string"||t!=="number"&&t!=="string")throw new TypeError('hint must be "string" or "number"');var n=t==="string"?["toString","valueOf"]:["valueOf","toString"],i,o,s;for(s=0;s<n.length;++s)if(i=e[n[s]],ud(i)&&(o=i.call(e),Ga(o)))return o;throw new TypeError("No default value")},F0=function(e,t){var n=e[t];if(n!==null&&typeof n!="undefined"){if(!ud(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};cd.exports=function(e){if(Ga(e))return e;var t="default";arguments.length>1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var n;if(B0&&(Symbol.toPrimitive?n=F0(e,Symbol.toPrimitive):ld(e)&&(n=Symbol.prototype.valueOf)),typeof n!="undefined"){var i=n.call(e,t);if(Ga(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return t==="default"&&(N0(e)||ld(e))&&(t="string"),z0(e,t==="default"?"number":t)}});var hd=h((DA,Od)=>{"use strict";var fd=pd();Od.exports=function(e){return arguments.length>1?fd(e,arguments[1]):fd(e)}});var vd=h((BA,yd)=>{"use strict";var Va=D(),dd=ur()(),md,gd,Da,Ba;dd&&(md=Va("Object.prototype.hasOwnProperty"),gd=Va("RegExp.prototype.exec"),Da={},Li=function(){throw Da},Ba={toString:Li,valueOf:Li},typeof Symbol.toPrimitive=="symbol"&&(Ba[Symbol.toPrimitive]=Li));var Li,L0=Va("Object.prototype.toString"),U0=Object.getOwnPropertyDescriptor,Y0="[object RegExp]";yd.exports=dd?function(e){if(!e||typeof e!="object")return!1;var t=U0(e,"lastIndex"),n=t&&md(t,"value");if(!n)return!1;try{gd(e,Ba)}catch(i){return i===Da}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:L0(e)===Y0}});var Sd=h((NA,bd)=>{"use strict";var H0=D(),J0=vd(),K0=H0("RegExp.prototype.exec"),eT=k();bd.exports=function(e){if(!J0(e))throw new eT("`regex` must be a RegExp");return function(n){return K0(e,n)!==null}}});var Qd=h((zA,xd)=>{"use strict";var tT=W(),rT=tT("%String%"),nT=k();xd.exports=function(e){if(typeof e=="symbol")throw new nT("Cannot convert a Symbol value to a string");return rT(e)}});var Na=h((FA,Td)=>{"use strict";var iT=mi(),oT=Qd(),sT=D(),$d=sT("String.prototype.replace"),wd=/^\s$/.test("\u180E"),aT=wd?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,lT=wd?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;Td.exports=function(){var e=oT(iT(this));return $d($d(e,aT,""),lT,"")}});var za=h((LA,Ed)=>{"use strict";var uT=Na(),Pd="\u200B",br="\u180E";Ed.exports=function(){return String.prototype.trim&&Pd.trim()===Pd&&br.trim()===br&&("_"+br).trim()==="_"+br&&(br+"_").trim()===br+"_"?String.prototype.trim:uT}});var qd=h((UA,kd)=>{"use strict";var cT=ue(),pT=za();kd.exports=function(){var e=pT();return cT(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var Cd=h((YA,Rd)=>{"use strict";var fT=Se(),OT=ue(),hT=mi(),dT=Na(),_d=za(),mT=qd(),gT=fT(_d()),Ad=function(e){return hT(e),gT(e)};OT(Ad,{getPolyfill:_d,implementation:dT,shim:mT});Rd.exports=Ad});var Wd=h((HA,Zd)=>{"use strict";var La=W(),Fa=La("%Number%"),yT=La("%RegExp%"),vT=k(),Id=La("%parseInt%"),bT=D(),Ui=Sd(),jd=bT("String.prototype.slice"),ST=Ui(/^0b[01]+$/i),xT=Ui(/^0o[0-7]+$/i),QT=Ui(/^[-+]0x[0-9a-f]+$/i),$T=["\x85","\u200B","\uFFFE"].join(""),wT=new yT("["+$T+"]","g"),TT=Ui(wT),PT=Cd();Zd.exports=function r(e){if(typeof e!="string")throw new vT("Assertion failed: `argument` is not a String");if(ST(e))return Fa(Id(jd(e,2),2));if(xT(e))return Fa(Id(jd(e,2),8));if(TT(e)||QT(e))return NaN;var t=PT(e);return t!==e?r(t):Fa(e)}});var Yi=h((JA,Gd)=>{"use strict";var ET=W(),Xd=k(),Md=ET("%Number%"),kT=Kh(),qT=hd(),_T=Wd();Gd.exports=function(e){var t=kT(e)?e:qT(e,Md);if(typeof t=="symbol")throw new Xd("Cannot convert a Symbol value to a number");if(typeof t=="bigint")throw new Xd("Conversion from 'BigInt' to 'number' is not allowed.");return typeof t=="string"?_T(t):Md(t)}});var Dd=h((KA,Vd)=>{"use strict";var AT=Math.floor;Vd.exports=function(e){return typeof e=="bigint"?e:AT(e)}});var zd=h((eR,Nd)=>{"use strict";var Bd=Dd(),RT=k();Nd.exports=function(e){if(typeof e!="number"&&typeof e!="bigint")throw new RT("argument must be a Number or a BigInt");var t=e<0?-Bd(-e):Bd(e);return t===0?0:t}});var Ua=h((tR,Fd)=>{"use strict";var CT=Yi(),IT=zd(),jT=Ue(),ZT=Ns();Fd.exports=function(e){var t=CT(e);return jT(t)||t===0?0:ZT(t)?IT(t):t}});var Yd=h((rR,Ud)=>{"use strict";var WT=Hn(),Hi=k(),Ya=vr(),Ld=Fi(),XT=Ua(),MT=Yi(),GT=Ct(),VT=Ue(),DT=Se(),BT=dr(),NT=an();Ud.exports=function(e){if(GT(e)!=="Object")throw new Hi("obj is not an Object");var t=Ya(e,"size"),n=MT(t);if(VT(n))throw new Hi("size is not a non-NaN Number");var i=XT(n);if(i<0)throw new WT("set size must be non-negative");var o=Ya(e,"has");if(!Ld(o))throw new Hi("has is not a function");var s=Ya(e,"keys");if(!Ld(s))throw new Hi("keys is not a function");if(BT(e)&&typeof StopIteration=="object"){var a=DT(s);s=function(){return NT(a(this))}}return{"[[Set]]":e,"[[Size]]":i,"[[Has]]":o,"[[Keys]]":s}}});var Ji=h((nR,Hd)=>{"use strict";Hd.exports=function(e){return!!e}});var Kd=h((iR,Jd)=>{"use strict";var zT=k(),FT=vr(),LT=Ji(),UT=Ct();Jd.exports=function(e){if(UT(e)!=="Object")throw new zT("Assertion failed: Type(iterResult) is not Object");return LT(FT(e,"done"))}});var nm=h((oR,rm)=>{"use strict";var em=k(),tm=pn(),YT=Ct(),HT=kt();rm.exports=function(e){if(!HT(e))throw new em("Assertion failed: `iteratorRecord` must be an Iterator Record");var t;if(arguments.length<2?t=tm(e["[[NextMethod]]"],e["[[Iterator]]"]):t=tm(e["[[NextMethod]]"],e["[[Iterator]]"],[arguments[1]]),YT(t)!=="Object")throw new em("iterator next must return an object");return t}});var Ha=h((sR,im)=>{"use strict";var JT=k(),KT=vr(),e1=Kd(),t1=nm(),r1=kt();im.exports=function(e){if(!r1(e))throw new JT("Assertion failed: `iteratorRecord` must be an Iterator Record");var t;try{t=t1(e)}catch(o){throw e["[[Done]]"]=!0,o}var n;try{n=e1(t)}catch(o){throw e["[[Done]]"]=!0,o}if(n)return e["[[Done]]"]=!0,"DONE";var i;try{i=KT(t,"value")}catch(o){throw e["[[Done]]"]=!0,o}return i}});var Ja=h((aR,sm)=>{"use strict";var om=Ue();sm.exports=function(e,t){return e===t||om(e)&&om(t)}});var um=h((lR,lm)=>{"use strict";var am=TypeError;lm.exports=function(e){if(!e||typeof e.next!="function")throw new am("iterator must be an object with a `next` method");if(arguments.length>1){var t=arguments[1];if(typeof t!="function")throw new am("`callback`, if provided, must be a function")}for(var n=t||[],i;(i=e.next())&&!i.done;)t?t(i.value):n.push(i.value);if(!t)return n}});var fm=h((uR,pm)=>{"use strict";var n1=$a(),i1=TypeError,cm=um();pm.exports=function(e){var t=n1(e);if(!t)throw new i1("non-iterable value provided");return arguments.length>1?cm(t,arguments[1]):cm(t)}});var Ka=h((cR,Sm)=>{"use strict";var Sr=Rt()(),fn=Se(),On=D(),Om=ni(),o1=fm(),hm=On("Set.prototype.forEach",!0),s1=fn(Sr.prototype.forEach),bm=function(r,e){if(hm)try{return hm(r,e)}catch(t){}try{return s1(r,e)}catch(t){}o1(r,e)},dm=On("Set.prototype.add",!0),a1=Sr.prototype.add&&fn(Sr.prototype.add),l1=function(r,e){if(dm)try{return dm(r,e)}catch(t){}return a1(r,e)},mm=On("Set.prototype.has",!0),u1=fn(Sr.prototype.has),c1=function(r,e){if(mm)try{return mm(r,e)}catch(t){}return u1(r,e)},gm=On("Set.prototype.delete",!0),p1=fn(Sr.prototype.delete),f1=function(r,e){if(gm)try{return gm(r,e)}catch(t){}return p1(r,e)},ym=On("Set.prototype.size",!0),vm=Om?fn(Om(Sr.prototype,"size").get):null,O1=function(e){var t=0;return bm(e,function(){t+=1}),t},h1=function(r){if(ym)try{return ym(r)}catch(e){}if(vm)try{return vm(r)}catch(e){}return O1(r)};Sm.exports={add:l1,delete:f1,forEach:bm,has:c1,size:h1}});var tl=h((pR,Tm)=>{"use strict";var d1=k(),xm=Rt()(),m1=pn(),g1=Xa(),y1=Yd(),v1=Ha(),b1=Ja(),S1=Ji(),x1=D(),Q1=dr(),$1=di(),el=Ka(),Qm=el.forEach,$m=el.add,w1=el.size,T1=x1(".Array.prototype.push"),wm={};Tm.exports=function(e){var t=this;if(!Q1(t)&&!(t instanceof xm))throw new d1("Method Set.prototype.difference called on incompatible receiver "+t);var n=y1(e),i=w1(t),o=new xm;if(i<=n["[[Size]]"])Qm(t,function(c){var p=S1(m1(n["[[Has]]"],n["[[Set]]"],[c]));p||$m(o,c)});else{var s=g1(n["[[Set]]"],n["[[Keys]]"]),a=[];Qm(t,function(c){T1(a,c)});for(var l;!s["[[Done]]"];)if(l=v1(s),!s["[[Done]]"]){l===0&&(l=0);for(var u=0;u<a.length;u+=1)b1(a[u],l)&&(a[u]=wm)}$1(a,function(c){c!==wm&&$m(o,c)})}return o}});var rl=h((fR,Em)=>{"use strict";var Pm=Rt()(),P1=tl();Em.exports=function(){return typeof Pm.prototype.difference=="function"?Pm.prototype.difference:P1}});var nl=h((OR,Ki)=>{"use strict";typeof self!="undefined"?Ki.exports=self:typeof window!="undefined"?Ki.exports=window:Ki.exports=Function("return this")()});var il=h((hR,km)=>{"use strict";var E1=nl();km.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?E1:global}});var _m=h((dR,qm)=>{"use strict";var k1=ue(),q1=il();qm.exports=function(){var e=q1();if(k1.supportsDescriptors){var t=Object.getOwnPropertyDescriptor(e,"globalThis");(!t||t.configurable&&(t.enumerable||!t.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e}});var Im=h((mR,Cm)=>{"use strict";var _1=ue(),A1=nl(),Am=il(),R1=_m(),C1=Am(),Rm=function(){return C1};_1(Rm,{getPolyfill:Am,implementation:A1,shim:R1});Cm.exports=Rm});var sl=h((gR,jm)=>{"use strict";var hn=Se(),dt=ue(),dn=ut(),I1=Vs(),j1=Im()(),Z1=Br(),ol=an(),W1=Rt(),It=Za(),X1=$i().addIterator,Ce=function(){return!0},M1=function(r){return dt(j1,{Set:r},{Set:Ce}),r};jm.exports=function(){if(typeof Set=="function"&&(It.isGoogleTranslate()&&(delete Set.prototype.remove,delete Set.prototype.items,delete Set.prototype.map,dt(Set.prototype,{keys:Set.prototype.values},{keys:Ce})),It.setHasOldFirefoxInterface())){if(typeof new Set().size=="function"&&Z1()){var e=hn(Set.prototype.size);I1(Set.prototype,"size",{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Get]]":function(){return e(this)}})}var t=hn(Set.prototype.entries),n=hn(Set.prototype.values);if(dt(Set.prototype,{entries:function(){return ol(t(this))},values:function(){return ol(n(this))}},{entries:Ce,values:Ce}),typeof Set.prototype.forEach!="function"){var i=hn(Set.prototype.iterator);dt(Set.prototype,{forEach:function(p){for(var O=ol(i(this)),f=arguments.length>1?arguments[1]:void 0,d=hn(p,f),m=O.next();!m.done;)d(m.value,m.value,this),m=O.next()}},{forEach:Ce})}}var o=typeof Set=="function"?Set:null;(typeof Set!="function"||!It.setCompliantConstructor())&&(o=W1(),M1(o));var s=o.prototype,a=s.add,l=s.has,u=s.delete;return It.setUsesSameValueZero()?It.setSupportsChaining()||dt(o.prototype,{add:function(p){return dn(a,this,[p]),this}},{add:Ce}):dt(o.prototype,{add:function(p){return dn(a,this,[p===0?0:p]),this},delete:function(p){return dn(u,this,[p===0?0:p])},has:function(p){return dn(l,this,[p===0?0:p])}},{add:Ce,delete:Ce,has:Ce}),It.setKeysIsValues()||dt(o.prototype,{keys:o.prototype.values},{keys:Ce}),It.setHasCorrectName()||dt(o.prototype,{has:function(p){return dn(l,this,p)}},{has:Ce}),Object.getPrototypeOf&&X1(Object.getPrototypeOf(new o().values())),o}});var Wm=h((yR,Zm)=>{"use strict";var G1=rl(),V1=ue(),D1=sl();Zm.exports=function(){D1();var e=G1();return V1(Set.prototype,{difference:e},{difference:function(){return Set.prototype.difference!==e}}),e}});var Vm=h((vR,Gm)=>{"use strict";var B1=Se(),N1=ue(),z1=tl(),Xm=rl(),F1=Wm(),Mm=B1(Xm());N1(Mm,{getPolyfill:Xm,implementation:z1,shim:F1});Gm.exports=Mm});var Nm=h((bR,Bm)=>{"use strict";var L1=Hn(),eo=k(),al=vr(),Dm=Fi(),U1=Ua(),Y1=Yi(),H1=Ct(),J1=Ue(),K1=Se(),eP=dr(),tP=an();Bm.exports=function(e){if(H1(e)!=="Object")throw new eo("obj is not an Object");var t=al(e,"size"),n=Y1(t);if(J1(n))throw new eo("size is not a non-NaN Number");var i=U1(n);if(i<0)throw new L1("set size must be non-negative");var o=al(e,"has");if(!Dm(o))throw new eo("has is not a function");var s=al(e,"keys");if(!Dm(s))throw new eo("keys is not a function");if(eP(e)&&typeof StopIteration=="object"){var a=K1(s);s=function(){return tP(a(this))}}return{"[[Set]]":e,"[[Size]]":i,"[[Has]]":o,"[[Keys]]":s}}});var Fm=h((SR,zm)=>{"use strict";zm.exports=function(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n],n,e))return!0;return!1}});var Um=h((xR,Lm)=>{"use strict";var rP=k(),nP=Wa(),iP=Ja(),oP=Fm();Lm.exports=function(e,t){if(!nP(e))throw new rP("`setData` must be a List");return oP(e,function(n){return iP(n,t)})}});var cl=h((QR,Jm)=>{"use strict";var sP=k(),ll=Rt()(),aP=pn(),lP=Xa(),uP=Nm(),cP=Ha(),Ym=Um(),pP=Ji(),fP=di(),OP=Se(),hP=D(),dP=dr(),ul=Ka(),mP=ul.forEach,gP=ul.add,yP=ul.size,Hm=hP("Array.prototype.push"),vP=OP(ll.prototype.has);Jm.exports=function(e){var t=this;if(!dP(t)&&!(t instanceof ll))throw new sP("Method Set.prototype.intersection called on incompatible receiver "+t);var n=uP(e),i=[],o=yP(t);if(o<=n["[[Size]]"]){var s=0;mP(t,function(O){if(s<o){s+=1;var f=pP(aP(n["[[Has]]"],n["[[Set]]"],[O]));if(f){var d=Ym(i,O);d||(Hm(i,O),o+=1)}}})}else for(var a=lP(n["[[Set]]"],n["[[Keys]]"]),l;!a["[[Done]]"];)if(l=cP(a),!a["[[Done]]"]){l===0&&(l=0);var u=Ym(i,l),c=vP(t,l);!u&&c&&Hm(i,l)}var p=new ll;return fP(i,function(O){gP(p,O)}),p}});var pl=h(($R,eg)=>{"use strict";var Km=Rt()(),bP=cl();eg.exports=function(){return typeof Km.prototype.intersection=="function"?Km.prototype.intersection:bP}});var rg=h((wR,tg)=>{"use strict";var SP=pl(),xP=ue(),QP=sl();tg.exports=function(){QP();var e=SP();return xP(Set.prototype,{intersection:e},{intersection:function(){return Set.prototype.intersection!==e}}),e}});var sg=h((TR,og)=>{"use strict";var $P=Se(),wP=ue(),TP=cl(),ng=pl(),PP=rg(),ig=$P(ng());wP(ig,{getPolyfill:ng,implementation:TP,shim:PP});og.exports=ig});var nq={};Dv(nq,{default:()=>No});module.exports=Bv(nq);var Wn=require("@codemirror/state"),qe=require("obsidian");var he=require("obsidian");var zv=class extends Error{constructor(e){super(e[0].message);xu(this,"issues");this.name="ValiError",this.issues=e}},oq=Symbol("brand");function Fv(r){return typeof r=="function"?r():r}function Ht(r,e){return Array.isArray(r)?[void 0,r]:[r,e]}function Vn(r,e,t){return{typed:r,output:e,issues:t}}function Lv(r,e,t){if(!r||typeof r=="object"&&!Array.isArray(r)){let[o,s]=Ht(e,t);return[r,o,s]}let[n,i]=Ht(r,e);return[void 0,n,i]}function Uv(r,e){return{reason:r==null?void 0:r.reason,validation:e.validation,origin:(r==null?void 0:r.origin)||"value",message:e.message,input:e.input,requirement:e==null?void 0:e.requirement,path:e.path,abortEarly:r==null?void 0:r.abortEarly,abortPipeEarly:r==null?void 0:r.abortPipeEarly,skipPipe:r==null?void 0:r.skipPipe}}function Yv(r,e){return{reason:e,origin:r==null?void 0:r.origin,abortEarly:r==null?void 0:r.abortEarly,abortPipeEarly:r==null?void 0:r.abortPipeEarly,skipPipe:r==null?void 0:r.skipPipe}}function Wr(r,e,t,n,i){let o,s=r;if(e!=null&&e.length&&!(t!=null&&t.skipPipe))for(let a of e){let l=a._parse(s);if(l.issues){o=o||Yv(t,n);for(let u of l.issues){let c=Uv(o,u);i?i.push(c):i=[c]}if(o.abortEarly||o.abortPipeEarly)break}else s=l.output}return Vn(!0,s,i)}function Jt(r,e,t,n,i,o){return{typed:!1,output:i,issues:[{reason:e,validation:t,origin:(r==null?void 0:r.origin)||"value",message:Fv(n),input:i,issues:o,abortEarly:r==null?void 0:r.abortEarly,abortPipeEarly:r==null?void 0:r.abortPipeEarly,skipPipe:r==null?void 0:r.skipPipe}]}}function Hv(r){return typeof r.default=="function"?r.default():r.default}function $u(r,e,t){let[n="Invalid type",i]=Ht(e,t);return{type:"instance",async:!1,class:r,message:n,pipe:i,_parse(o,s){return o instanceof this.class?Wr(o,this.pipe,s,"instance"):Jt(s,"type","instance",this.message,o)}}}function wu(r,e){let[t="Invalid type",n]=Ht(r,e);return{type:"number",async:!1,message:t,pipe:n,_parse(i,o){return typeof i!="number"||isNaN(i)?Jt(o,"type","number",this.message,i):Wr(i,this.pipe,o,"number")}}}function Tu(r,e,t,n){let[i,o="Invalid type",s]=Lv(e,t,n),a;return{type:"object",async:!1,entries:r,rest:i,message:o,pipe:s,_parse(l,u){if(!l||typeof l!="object")return Jt(u,"type","object",this.message,l);a=a||Object.entries(this.entries);let c=!0,p,O={};for(let[f,d]of a){let m=l[f],g=d._parse(m,u);if(g.issues){let x={type:"object",input:l,key:f,value:m};for(let b of g.issues)b.path?b.path.unshift(x):b.path=[x],p==null||p.push(b);if(p||(p=g.issues),u!=null&&u.abortEarly){c=!1;break}}g.typed||(c=!1),(g.output!==void 0||f in l)&&(O[f]=g.output)}if(this.rest&&!(u!=null&&u.abortEarly&&p)){for(let f in l)if(!(f in this.entries)){let d=l[f],m=this.rest._parse(d,u);if(m.issues){let g={type:"object",input:l,key:f,value:d};for(let x of m.issues)x.path?x.path.unshift(g):x.path=[g],p==null||p.push(x);if(p||(p=m.issues),u!=null&&u.abortEarly){c=!1;break}}m.typed||(c=!1),O[f]=m.output}}return c?Wr(O,this.pipe,u,"object",p):Vn(!1,O,p)}}}function Dn(r,e){return{type:"optional",async:!1,wrapped:r,default:e,_parse(t,n){if(t===void 0){let i=Hv(this);if(i===void 0)return Vn(!0,t);t=i}return this.wrapped._parse(t,n)}}}function Kt(r,e){let[t="Invalid type",n]=Ht(r,e);return{type:"string",async:!1,message:t,pipe:n,_parse(i,o){return typeof i!="string"?Jt(o,"type","string",this.message,i):Wr(i,this.pipe,o,"string")}}}function Pu(r,e,t){let[n="Invalid type",i]=Ht(e,t);return{type:"special",async:!1,check:r,message:n,pipe:i,_parse(o,s){return this.check(o)?Wr(o,this.pipe,s,"special"):Jt(s,"type","special",this.message,o)}}}function Ho(r,e="Invalid type"){return{type:"union",async:!1,options:r,message:e,_parse(t,n){let i,o;for(let s of this.options){let a=s._parse(t,n);if(a.issues)if(i)for(let l of a.issues)i.push(l);else i=a.issues;else{o=[a.output];break}}return o?Vn(!0,o[0]):Jt(n,"type","union",this.message,t,i)}}}function Eu(r,e,t){let n=r._parse(e,t);if(n.issues)throw new zv(n.issues);return n.output}var Jv=typeof btoa=="function",Jo=typeof Buffer=="function",uq=typeof TextDecoder=="function"?new TextDecoder:void 0,ku=typeof TextEncoder=="function"?new TextEncoder:void 0,Kv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Xr=Array.prototype.slice.call(Kv),cq=(r=>{let e={};return r.forEach((t,n)=>e[t]=n),e})(Xr);var Me=String.fromCharCode.bind(String),pq=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):r=>new Uint8Array(Array.prototype.slice.call(r,0)),eb=r=>r.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_");var tb=r=>{let e,t,n,i,o="",s=r.length%3;for(let a=0;a<r.length;){if((t=r.charCodeAt(a++))>255||(n=r.charCodeAt(a++))>255||(i=r.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=t<<16|n<<8|i,o+=Xr[e>>18&63]+Xr[e>>12&63]+Xr[e>>6&63]+Xr[e&63]}return s?o.slice(0,s-3)+"===".substring(s):o},_u=Jv?r=>btoa(r):Jo?r=>Buffer.from(r,"binary").toString("base64"):tb,rb=Jo?r=>Buffer.from(r).toString("base64"):r=>{let t=[];for(let n=0,i=r.length;n<i;n+=4096)t.push(Me.apply(null,r.subarray(n,n+4096)));return _u(t.join(""))};var nb=r=>{if(r.length<2){var e=r.charCodeAt(0);return e<128?r:e<2048?Me(192|e>>>6)+Me(128|e&63):Me(224|e>>>12&15)+Me(128|e>>>6&63)+Me(128|e&63)}else{var e=65536+(r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320);return Me(240|e>>>18&7)+Me(128|e>>>12&63)+Me(128|e>>>6&63)+Me(128|e&63)}},ib=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ob=r=>r.replace(ib,nb),qu=Jo?r=>Buffer.from(r,"utf8").toString("base64"):ku?r=>rb(ku.encode(r)):r=>_u(ob(r)),Ko=(r,e=!1)=>e?eb(qu(r)):qu(r);var es="${VISUAL}",Mr=class{constructor(e,t,n,i,o,s,a){this.type=e,this.data={trigger:t,replacement:n},this.options=i,this.priority=o,this.description=s,this.excludedEnvironments=a!=null?a:[]}get trigger(){return this.data.trigger}get replacement(){return this.data.replacement}toString(){return Fn({type:this.type,trigger:this.trigger,replacement:this.replacement,options:this.options,priority:this.priority,description:this.description,excludedEnvironments:this.excludedEnvironments})}},Bn=class extends Mr{constructor({trigger:e,replacement:t,options:n,priority:i,description:o,excludedEnvironments:s}){super("visual",e,t,n,i,o,s)}process(e,t,n){if(!!!n||!e.endsWith(this.trigger))return null;let o=t.from,s;if(typeof this.replacement=="string")s=this.replacement.replace(es,n);else if(s=this.replacement(n),typeof s!="string")return null;return{triggerPos:o,replacement:s}}},Nn=class extends Mr{constructor({trigger:e,replacement:t,options:n,priority:i,description:o,excludedEnvironments:s}){super("regex",e,t,n,i,o,s)}process(e,t,n){if(!!n)return null;let o=this.trigger.exec(e);if(o===null)return null;let s=o.index,a;if(typeof this.replacement=="string"){let l=o.length-1;a=Array.from({length:l}).map((u,c)=>c+1).reduce((u,c)=>u.replaceAll(`[[${c-1}]]`,o[c]),this.replacement)}else if(a=this.replacement(o),typeof a!="string")return null;return{triggerPos:s,replacement:a}}},zn=class extends Mr{constructor({trigger:e,replacement:t,options:n,priority:i,description:o,excludedEnvironments:s}){super("string",e,t,n,i,o,s)}process(e,t,n){if(!!n||!e.endsWith(this.trigger))return null;let o=e.length-this.trigger.length,s=typeof this.replacement=="string"?this.replacement:this.replacement(this.trigger);return typeof s!="string"?null:{triggerPos:o,replacement:s}}};function sb(r,e){return typeof e=="function"?"[[Function]]":e instanceof RegExp?`[[RegExp]]: ${e.toString()}`:e}function Fn(r){return JSON.stringify(r,sb,2)}var Ln=class r{constructor(){this.mode=new er,this.automatic=!1,this.regex=!1,this.onWordBoundary=!1,this.visual=!1}static fromSource(e){let t=new r;t.mode=er.fromSource(e);for(let n of e)switch(n){case"A":t.automatic=!0;break;case"r":t.regex=!0;break;case"w":t.onWordBoundary=!0;break;case"v":t.visual=!0;break}return t}},er=class r{inEquation(){return this.inlineMath||this.blockMath}inMath(){return this.inlineMath||this.blockMath||this.codeMath}strictlyInMath(){return this.inMath()&&!this.textEnv}constructor(){this.text=!1,this.blockMath=!1,this.inlineMath=!1,this.code=!1,this.textEnv=!1}invert(){this.text=!this.text,this.blockMath=!this.blockMath,this.inlineMath=!this.inlineMath,this.codeMath=!this.codeMath,this.code=!this.code,this.textEnv=!this.textEnv}static fromSource(e){let t=new r;for(let n of e)switch(n){case"m":t.blockMath=!0,t.inlineMath=!0;break;case"n":t.inlineMath=!0;break;case"M":t.blockMath=!0;break;case"t":t.text=!0;break;case"c":t.code=!0;break}return t.text||t.inlineMath||t.blockMath||t.codeMath||t.code||t.textEnv||t.invert(),t}};function Un(r){return r.map((e,t)=>[cb(e),pb(e),t]).sort(ab).map(([e,t,n])=>r[n])}function ab(r,e){return ub(r[0],e[0])||lb(r[1],e[1])}function lb(r,e){return r<e?1:r>e?-1:0}function ub(r,e){return r<e?1:r>e?-1:0}function cb(r){return r.priority||0}function pb(r){return typeof r.trigger=="string"?r.trigger.length:r.trigger.source.length}var ts={"([A-Za-z])(\\d)":[{openSymbol:"\\pu{",closeSymbol:"}"},{openSymbol:"\\ce{",closeSymbol:"}"}],"->":[{openSymbol:"\\ce{",closeSymbol:"}"}]};function Iu(r){return $(this,null,function*(){let e;try{try{e=yield Au(`data:text/javascript;base64,${Ko(r)}`)}catch(t){e=yield Au(`data:text/javascript;base64,${Ko(`export default ${r}`)}`)}}catch(t){throw"Invalid format."}return e})}function $t(r){return $(this,null,function*(){let e=yield Iu(r);if(Array.isArray(e))throw"Cannot parse an array as a variables object";let t={};for(let[n,i]of Object.entries(e))if(n.startsWith("${")){if(!n.endsWith("}"))throw`Invalid snippet variable name '${n}': Starts with '\${' but does not end with '}'. You need to have both or neither.`;t[n]=i}else{if(n.endsWith("}"))throw`Invalid snippet variable name '${n}': Ends with '}' but does not start with '\${'. You need to have both or neither.`;t["${"+n+"}"]=i}return t})}function tr(r,e){return $(this,null,function*(){let t=yield Iu(r),n;try{t=Ob(t),n=t.map(i=>{try{return hb(i,e)}catch(o){throw`${o}
Erroring snippet:
${Fn(i)}`}})}catch(i){throw`Invalid snippet format: ${i}`}return n=Un(n),n})}function Au(r){return $(this,null,function*(){let e;try{e=yield import(r)}catch(t){throw`failed to import module ${r}`}if(!("default"in e))throw`No default export provided for module ${r}`;return e.default})}var fb=Tu({trigger:Ho([Kt(),$u(RegExp)]),replacement:Ho([Kt(),Pu(r=>typeof r=="function")]),options:Kt(),flags:Dn(Kt()),priority:Dn(wu()),description:Dn(Kt())});function Ob(r){if(!Array.isArray(r))throw"Expected snippets to be an array";return r.map(e=>{try{return Eu(fb,e)}catch(t){throw`Value does not resemble snippet.
Erroring snippet:
${Fn(e)}`}})}function hb(r,e){var l;let{replacement:t,priority:n,description:i}=r,o=Ln.fromSource(r.options),s,a;if(o.regex||r.trigger instanceof RegExp){let u,c=(l=r.flags)!=null?l:"";r.trigger instanceof RegExp?(u=r.trigger.source,c=`${r.trigger.flags}${c}`):u=r.trigger,c=db(c),u=Ru(u,e),a=Cu(u),u=`${u}$`,s=new RegExp(u,c),o.regex=!0;let p={trigger:s,replacement:t,options:o,priority:n,description:i,excludedEnvironments:a};return new Nn(p)}else{let u=r.trigger;u=Ru(u,e),a=Cu(u),typeof t=="string"&&t.includes(es)&&(o.visual=!0);let c={trigger:u,replacement:t,options:o,priority:n,description:i,excludedEnvironments:a};return o.visual?new Bn(c):new zn(c)}}function db(r){let e=["i","m","s","u","v"];return Array.from(new Set(r.split(""))).filter(t=>e.includes(t)).join("")}function Ru(r,e){for(let[t,n]of Object.entries(e))r=r.replaceAll(t,n);return r}function Cu(r){let e=[];return ts.hasOwnProperty(r)&&e.push(...ts[r]),e}var ug=Su(Vm()),cg=Su(sg());var ag=ug.default,EP=cg.default;function kP(r,e){let t=r.parent,n=0;for(;t&&!t.isRoot()&&n<100;){if(t.path===e.path)return!0;t=t.parent,n++}return!1}function to(r,e,t){let n=r.app.vault.getAbstractFileByPath(e);return n instanceof he.TFolder&&kP(t,n)}var fl=(0,he.debounce)(r=>$(void 0,null,function*(){(r.settings.loadSnippetVariablesFromFile||r.settings.loadSnippetsFromFile)&&(yield r.processSettings(!1,!0))}),500,!0),pg=(r,e)=>$(void 0,null,function*(){e instanceof he.TFile&&(r.settings.loadSnippetVariablesFromFile&&e.path===r.settings.snippetVariablesFileLocation||r.settings.loadSnippetsFromFile&&e.path===r.settings.snippetsFileLocation||to(r,r.settings.snippetVariablesFileLocation,e)||to(r,r.settings.snippetsFileLocation,e))&&fl(r)}),fg=(r,e)=>{e instanceof he.TFile&&(r.settings.loadSnippetVariablesFromFile&&to(r,r.settings.snippetVariablesFileLocation,e)||r.settings.loadSnippetsFromFile&&to(r,r.settings.snippetsFileLocation,e))&&fl(r)},Og=(r,e)=>{if(!(e instanceof he.TFile))return;let t=r.app.vault.getAbstractFileByPath(r.settings.snippetVariablesFileLocation),n=r.app.vault.getAbstractFileByPath(r.settings.snippetsFileLocation);(r.settings.loadSnippetVariablesFromFile&&t instanceof he.TFolder&&e.path.contains(t.path)||r.settings.loadSnippetsFromFile&&n instanceof he.TFolder&&e.path.contains(n.path))&&fl(r)};function*hg(r){if(r instanceof he.TFile)yield r;else if(r instanceof he.TFolder)for(let e of r.children)yield*Qu(hg(e))}function lg(r,e){let t=r.getAbstractFileByPath(e);if(!t)return console.warn(`Could not find file or folder at path ${e}`),new Set;let n=hg(t);return new Set(n)}function dg(r){let e=r.settings.loadSnippetVariablesFromFile?lg(r.app.vault,r.settings.snippetVariablesFileLocation):new Set,t=r.settings.loadSnippetsFromFile?lg(r.app.vault,r.settings.snippetsFileLocation):new Set,n=ag(e,t),i=ag(t,e),o=EP(e,t);return{definitelyVariableFiles:n,definitelySnippetFiles:i,snippetOrVariableFiles:o}}function mg(r,e){return $(this,null,function*(){let t={};for(let n of e.definitelyVariableFiles){let i=yield r.app.vault.cachedRead(n);try{Object.assign(t,yield $t(i))}catch(o){new he.Notice(`Failed to parse variable file ${n.name}: ${o}`),console.error(`Failed to parse variable file ${n.name}: ${o}`),e.definitelyVariableFiles.delete(n)}}return t})}function gg(r,e){return $(this,null,function*(){let t={};for(let n of e.snippetOrVariableFiles){let i=yield r.app.vault.cachedRead(n);try{Object.assign(t,yield $t(i)),e.definitelyVariableFiles.add(n)}catch(o){e.definitelySnippetFiles.add(n)}e.snippetOrVariableFiles.delete(n)}return t})}function yg(r,e,t){return $(this,null,function*(){let n=[];for(let i of e.definitelySnippetFiles){let o=yield r.app.vault.cachedRead(i);try{n.push(...yield tr(o,t))}catch(s){new he.Notice(`Failed to parse snippet file ${i.name}: ${s}`),console.error(`Failed to parse snippet file ${i.name}: ${s}`),e.definitelySnippetFiles.delete(i)}}return Un(n)})}var vg=`[
// Math mode
{trigger: "mk", replacement: "$$0$", options: "tA"},
{trigger: "dm", replacement: "$$\\n$0\\n$$", options: "tAw"},
{trigger: "beg", replacement: "\\\\begin{$0}\\n$1\\n\\\\end{$0}", options: "mA"},
// Dashes
// {trigger: "--", replacement: "\u2013", options: "tA"},
// {trigger: "\u2013-", replacement: "\u2014", options: "tA"},
// {trigger: "\u2014-", replacement: "---", options: "tA"},
// Greek letters
{trigger: "@a", replacement: "\\\\alpha", options: "mA"},
{trigger: "@b", replacement: "\\\\beta", options: "mA"},
{trigger: "@g", replacement: "\\\\gamma", options: "mA"},
{trigger: "@G", replacement: "\\\\Gamma", options: "mA"},
{trigger: "@d", replacement: "\\\\delta", options: "mA"},
{trigger: "@D", replacement: "\\\\Delta", options: "mA"},
{trigger: "@e", replacement: "\\\\epsilon", options: "mA"},
{trigger: ":e", replacement: "\\\\varepsilon", options: "mA"},
{trigger: "@z", replacement: "\\\\zeta", options: "mA"},
{trigger: "@t", replacement: "\\\\theta", options: "mA"},
{trigger: "@T", replacement: "\\\\Theta", options: "mA"},
{trigger: ":t", replacement: "\\\\vartheta", options: "mA"},
{trigger: "@i", replacement: "\\\\iota", options: "mA"},
{trigger: "@k", replacement: "\\\\kappa", options: "mA"},
{trigger: "@l", replacement: "\\\\lambda", options: "mA"},
{trigger: "@L", replacement: "\\\\Lambda", options: "mA"},
{trigger: "@s", replacement: "\\\\sigma", options: "mA"},
{trigger: "@S", replacement: "\\\\Sigma", options: "mA"},
{trigger: "@u", replacement: "\\\\upsilon", options: "mA"},
{trigger: "@U", replacement: "\\\\Upsilon", options: "mA"},
{trigger: "@o", replacement: "\\\\omega", options: "mA"},
{trigger: "@O", replacement: "\\\\Omega", options: "mA"},
{trigger: "ome", replacement: "\\\\omega", options: "mA"},
{trigger: "Ome", replacement: "\\\\Omega", options: "mA"},
// Text environment
{trigger: "text", replacement: "\\\\text{$0}$1", options: "mA"},
{trigger: "\\"", replacement: "\\\\text{$0}$1", options: "mA"},
// Basic operations
{trigger: "sr", replacement: "^{2}", options: "mA"},
{trigger: "cb", replacement: "^{3}", options: "mA"},
{trigger: "rd", replacement: "^{$0}$1", options: "mA"},
{trigger: "_", replacement: "_{$0}$1", options: "mA"},
{trigger: "sts", replacement: "_\\\\text{$0}", options: "mA"},
{trigger: "sq", replacement: "\\\\sqrt{ $0 }$1", options: "mA"},
{trigger: "//", replacement: "\\\\frac{$0}{$1}$2", options: "mA"},
{trigger: "ee", replacement: "e^{ $0 }$1", options: "mA"},
{trigger: "invs", replacement: "^{-1}", options: "mA"},
{trigger: /([A-Za-z])(\\d)/, replacement: "[[0]]_{[[1]]}", options: "rmA", description: "Auto letter subscript", priority: -1},
{trigger: /([^\\\\])(exp|log|ln)/, replacement: "[[0]]\\\\[[1]]", options: "rmA"},
{trigger: "conj", replacement: "^{*}", options: "mA"},
{trigger: "Re", replacement: "\\\\mathrm{Re}", options: "mA"},
{trigger: "Im", replacement: "\\\\mathrm{Im}", options: "mA"},
{trigger: "bf", replacement: "\\\\mathbf{$0}", options: "mA"},
{trigger: "rm", replacement: "\\\\mathrm{$0}$1", options: "mA"},
// Linear algebra
{trigger: /([^\\\\])(det)/, replacement: "[[0]]\\\\[[1]]", options: "rmA"},
{trigger: "trace", replacement: "\\\\mathrm{Tr}", options: "mA"},
// More operations
{trigger: "([a-zA-Z])hat", replacement: "\\\\hat{[[0]]}", options: "rmA"},
{trigger: "([a-zA-Z])bar", replacement: "\\\\bar{[[0]]}", options: "rmA"},
{trigger: "([a-zA-Z])dot", replacement: "\\\\dot{[[0]]}", options: "rmA", priority: -1},
{trigger: "([a-zA-Z])ddot", replacement: "\\\\ddot{[[0]]}", options: "rmA", priority: 1},
{trigger: "([a-zA-Z])tilde", replacement: "\\\\tilde{[[0]]}", options: "rmA"},
{trigger: "([a-zA-Z])und", replacement: "\\\\underline{[[0]]}", options: "rmA"},
{trigger: "([a-zA-Z])vec", replacement: "\\\\vec{[[0]]}", options: "rmA"},
{trigger: "([a-zA-Z]),\\\\.", replacement: "\\\\mathbf{[[0]]}", options: "rmA"},
{trigger: "([a-zA-Z])\\\\.,", replacement: "\\\\mathbf{[[0]]}", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK}),\\\\.", replacement: "\\\\boldsymbol{\\\\[[0]]}", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK})\\\\.,", replacement: "\\\\boldsymbol{\\\\[[0]]}", options: "rmA"},
{trigger: "hat", replacement: "\\\\hat{$0}$1", options: "mA"},
{trigger: "bar", replacement: "\\\\bar{$0}$1", options: "mA"},
{trigger: "dot", replacement: "\\\\dot{$0}$1", options: "mA", priority: -1},
{trigger: "ddot", replacement: "\\\\ddot{$0}$1", options: "mA"},
{trigger: "cdot", replacement: "\\\\cdot", options: "mA"},
{trigger: "tilde", replacement: "\\\\tilde{$0}$1", options: "mA"},
{trigger: "und", replacement: "\\\\underline{$0}$1", options: "mA"},
{trigger: "vec", replacement: "\\\\vec{$0}$1", options: "mA"},
// More auto letter subscript
{trigger: /([A-Za-z])_(\\d\\d)/, replacement: "[[0]]_{[[1]]}", options: "rmA"},
{trigger: /\\\\hat{([A-Za-z])}(\\d)/, replacement: "\\\\hat{[[0]]}_{[[1]]}", options: "rmA"},
{trigger: /\\\\vec{([A-Za-z])}(\\d)/, replacement: "\\\\vec{[[0]]}_{[[1]]}", options: "rmA"},
{trigger: /\\\\mathbf{([A-Za-z])}(\\d)/, replacement: "\\\\mathbf{[[0]]}_{[[1]]}", options: "rmA"},
{trigger: "xnn", replacement: "x_{n}", options: "mA"},
{trigger: "\\\\xii", replacement: "x_{i}", options: "mA", priority: 1},
{trigger: "xjj", replacement: "x_{j}", options: "mA"},
{trigger: "xp1", replacement: "x_{n+1}", options: "mA"},
{trigger: "ynn", replacement: "y_{n}", options: "mA"},
{trigger: "yii", replacement: "y_{i}", options: "mA"},
{trigger: "yjj", replacement: "y_{j}", options: "mA"},
// Symbols
{trigger: "ooo", replacement: "\\\\infty", options: "mA"},
{trigger: "sum", replacement: "\\\\sum", options: "mA"},
{trigger: "prod", replacement: "\\\\prod", options: "mA"},
{trigger: "\\\\sum", replacement: "\\\\sum_{\${0:i}=\${1:1}}^{\${2:N}} $3", options: "m"},
{trigger: "\\\\prod", replacement: "\\\\prod_{\${0:i}=\${1:1}}^{\${2:N}} $3", options: "m"},
{trigger: "lim", replacement: "\\\\lim_{ \${0:n} \\\\to \${1:\\\\infty} } $2", options: "mA"},
{trigger: "+-", replacement: "\\\\pm", options: "mA"},
{trigger: "-+", replacement: "\\\\mp", options: "mA"},
{trigger: "...", replacement: "\\\\dots", options: "mA"},
{trigger: "nabl", replacement: "\\\\nabla", options: "mA"},
// The operator nabla is also called del, but using "del" as a trigger conflicts with the greek letter delta.
// {trigger: "del", replacement: "\\\\nabla", options: "mA"},
{trigger: "xx", replacement: "\\\\times", options: "mA"},
{trigger: "**", replacement: "\\\\cdot", options: "mA"},
{trigger: "para", replacement: "\\\\parallel", options: "mA"},
{trigger: "===", replacement: "\\\\equiv", options: "mA"},
{trigger: "!=", replacement: "\\\\neq", options: "mA"},
{trigger: ">=", replacement: "\\\\geq", options: "mA"},
{trigger: "<=", replacement: "\\\\leq", options: "mA"},
{trigger: ">>", replacement: "\\\\gg", options: "mA"},
{trigger: "<<", replacement: "\\\\ll", options: "mA"},
{trigger: "simm", replacement: "\\\\sim", options: "mA"},
{trigger: "sim=", replacement: "\\\\simeq", options: "mA"},
{trigger: "prop", replacement: "\\\\propto", options: "mA"},
{trigger: "<->", replacement: "\\\\leftrightarrow ", options: "mA"},
{trigger: "->", replacement: "\\\\to", options: "mA"},
{trigger: "!>", replacement: "\\\\mapsto", options: "mA"},
{trigger: "=>", replacement: "\\\\implies", options: "mA"},
{trigger: "=<", replacement: "\\\\impliedby", options: "mA"},
{trigger: "and", replacement: "\\\\cap", options: "mA"},
{trigger: "orr", replacement: "\\\\cup", options: "mA"},
{trigger: "inn", replacement: "\\\\in", options: "mA"},
{trigger: "notin", replacement: "\\\\not\\\\in", options: "mA"},
{trigger: "\\\\\\\\\\\\", replacement: "\\\\setminus", options: "mA"},
{trigger: "sub=", replacement: "\\\\subseteq", options: "mA"},
{trigger: "sup=", replacement: "\\\\supseteq", options: "mA"},
{trigger: "eset", replacement: "\\\\emptyset", options: "mA"},
{trigger: "set", replacement: "\\\\{ $0 \\\\}$1", options: "mA"},
{trigger: "e\\\\xi sts", replacement: "\\\\exists", options: "mA", priority: 1},
{trigger: "LL", replacement: "\\\\mathcal{L}", options: "mA"},
{trigger: "HH", replacement: "\\\\mathcal{H}", options: "mA"},
{trigger: "CC", replacement: "\\\\mathbb{C}", options: "mA"},
{trigger: "RR", replacement: "\\\\mathbb{R}", options: "mA"},
{trigger: "ZZ", replacement: "\\\\mathbb{Z}", options: "mA"},
{trigger: "NN", replacement: "\\\\mathbb{N}", options: "mA"},
// Handle spaces and backslashes
// Snippet variables can be used as shortcuts when writing snippets.
// For example, \${GREEK} below is shorthand for "alpha|beta|gamma|Gamma|delta|..."
// You can edit snippet variables under the Advanced snippet settings section.
{trigger: "([^\\\\\\\\])(\${GREEK})", replacement: "[[0]]\\\\[[1]]", options: "rmA", description: "Add backslash before Greek letters"},
{trigger: "([^\\\\\\\\])(\${SYMBOL})", replacement: "[[0]]\\\\[[1]]", options: "rmA", description: "Add backslash before symbols"},
// Insert space after Greek letters and symbols
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}|\${MORE_SYMBOLS})([A-Za-z])", replacement: "\\\\[[0]] [[1]]", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) sr", replacement: "\\\\[[0]]^{2}", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) cb", replacement: "\\\\[[0]]^{3}", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) rd", replacement: "\\\\[[0]]^{$0}$1", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) hat", replacement: "\\\\hat{\\\\[[0]]}", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) dot", replacement: "\\\\dot{\\\\[[0]]}", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) bar", replacement: "\\\\bar{\\\\[[0]]}", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) vec", replacement: "\\\\vec{\\\\[[0]]}", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) tilde", replacement: "\\\\tilde{\\\\[[0]]}", options: "rmA"},
{trigger: "\\\\\\\\(\${GREEK}|\${SYMBOL}) und", replacement: "\\\\underline{\\\\[[0]]}", options: "rmA"},
// Derivatives and integrals
{trigger: "par", replacement: "\\\\frac{ \\\\partial \${0:y} }{ \\\\partial \${1:x} } $2", options: "m"},
{trigger: /pa([A-Za-z])([A-Za-z])/, replacement: "\\\\frac{ \\\\partial [[0]] }{ \\\\partial [[1]] } ", options: "rm"},
{trigger: "ddt", replacement: "\\\\frac{d}{dt} ", options: "mA"},
{trigger: /([^\\\\])int/, replacement: "[[0]]\\\\int", options: "mA", priority: -1},
{trigger: "\\\\int", replacement: "\\\\int $0 \\\\, d\${1:x} $2", options: "m"},
{trigger: "dint", replacement: "\\\\int_{\${0:0}}^{\${1:1}} $2 \\\\, d\${3:x} $4", options: "mA"},
{trigger: "oint", replacement: "\\\\oint", options: "mA"},
{trigger: "iint", replacement: "\\\\iint", options: "mA"},
{trigger: "iiint", replacement: "\\\\iiint", options: "mA"},
{trigger: "oinf", replacement: "\\\\int_{0}^{\\\\infty} $0 \\\\, d\${1:x} $2", options: "mA"},
{trigger: "infi", replacement: "\\\\int_{-\\\\infty}^{\\\\infty} $0 \\\\, d\${1:x} $2", options: "mA"},
// Trigonometry
{trigger: /([^\\\\])(arcsin|sin|arccos|cos|arctan|tan|csc|sec|cot)/, replacement: "[[0]]\\\\[[1]]", options: "rmA", description: "Add backslash before trig funcs"},
{trigger: /\\\\(arcsin|sin|arccos|cos|arctan|tan|csc|sec|cot)([A-Za-gi-z])/,
replacement: "\\\\[[0]] [[1]]", options: "rmA",
description: "Add space after trig funcs. Skips letter h to allow sinh, cosh, etc."},
{trigger: /\\\\(sinh|cosh|tanh|coth)([A-Za-z])/,
replacement: "\\\\[[0]] [[1]]", options: "rmA",
description: "Add space after hyperbolic trig funcs"},
// Visual operations
{trigger: "U", replacement: "\\\\underbrace{ \${VISUAL} }_{ $0 }", options: "mA"},
{trigger: "O", replacement: "\\\\overbrace{ \${VISUAL} }^{ $0 }", options: "mA"},
{trigger: "B", replacement: "\\\\underset{ $0 }{ \${VISUAL} }", options: "mA"},
{trigger: "C", replacement: "\\\\cancel{ \${VISUAL} }", options: "mA"},
{trigger: "K", replacement: "\\\\cancelto{ $0 }{ \${VISUAL} }", options: "mA"},
{trigger: "S", replacement: "\\\\sqrt{ \${VISUAL} }", options: "mA"},
// Physics
{trigger: "kbt", replacement: "k_{B}T", options: "mA"},
{trigger: "msun", replacement: "M_{\\\\odot}", options: "mA"},
// Quantum mechanics
{trigger: "dag", replacement: "^{\\\\dagger}", options: "mA"},
{trigger: "o+", replacement: "\\\\oplus ", options: "mA"},
{trigger: "ox", replacement: "\\\\otimes ", options: "mA"},
{trigger: "bra", replacement: "\\\\bra{$0} $1", options: "mA"},
{trigger: "ket", replacement: "\\\\ket{$0} $1", options: "mA"},
{trigger: "brk", replacement: "\\\\braket{ $0 | $1 } $2", options: "mA"},
{trigger: "outer", replacement: "\\\\ket{\${0:\\\\psi}} \\\\bra{\${0:\\\\psi}} $1", options: "mA"},
// Chemistry
{trigger: "pu", replacement: "\\\\pu{ $0 }", options: "mA"},
{trigger: "cee", replacement: "\\\\ce{ $0 }", options: "mA"},
{trigger: "he4", replacement: "{}^{4}_{2}He ", options: "mA"},
{trigger: "he3", replacement: "{}^{3}_{2}He ", options: "mA"},
{trigger: "iso", replacement: "{}^{\${0:4}}_{\${1:2}}\${2:He}", options: "mA"},
// Environments
{trigger: "pmat", replacement: "\\\\begin{pmatrix}\\n$0\\n\\\\end{pmatrix}", options: "MA"},
{trigger: "bmat", replacement: "\\\\begin{bmatrix}\\n$0\\n\\\\end{bmatrix}", options: "MA"},
{trigger: "Bmat", replacement: "\\\\begin{Bmatrix}\\n$0\\n\\\\end{Bmatrix}", options: "MA"},
{trigger: "vmat", replacement: "\\\\begin{vmatrix}\\n$0\\n\\\\end{vmatrix}", options: "MA"},
{trigger: "Vmat", replacement: "\\\\begin{Vmatrix}\\n$0\\n\\\\end{Vmatrix}", options: "MA"},
{trigger: "matrix", replacement: "\\\\begin{matrix}\\n$0\\n\\\\end{matrix}", options: "MA"},
{trigger: "pmat", replacement: "\\\\begin{pmatrix}$0\\\\end{pmatrix}", options: "nA"},
{trigger: "bmat", replacement: "\\\\begin{bmatrix}$0\\\\end{bmatrix}", options: "nA"},
{trigger: "Bmat", replacement: "\\\\begin{Bmatrix}$0\\\\end{Bmatrix}", options: "nA"},
{trigger: "vmat", replacement: "\\\\begin{vmatrix}$0\\\\end{vmatrix}", options: "nA"},
{trigger: "Vmat", replacement: "\\\\begin{Vmatrix}$0\\\\end{Vmatrix}", options: "nA"},
{trigger: "matrix", replacement: "\\\\begin{matrix}$0\\\\end{matrix}", options: "nA"},
{trigger: "cases", replacement: "\\\\begin{cases}\\n$0\\n\\\\end{cases}", options: "mA"},
{trigger: "align", replacement: "\\\\begin{align}\\n$0\\n\\\\end{align}", options: "mA"},
{trigger: "array", replacement: "\\\\begin{array}\\n$0\\n\\\\end{array}", options: "mA"},
// Brackets
{trigger: "avg", replacement: "\\\\langle $0 \\\\rangle $1", options: "mA"},
{trigger: "norm", replacement: "\\\\lvert $0 \\\\rvert $1", options: "mA", priority: 1},
{trigger: "Norm", replacement: "\\\\lVert $0 \\\\rVert $1", options: "mA", priority: 1},
{trigger: "ceil", replacement: "\\\\lceil $0 \\\\rceil $1", options: "mA"},
{trigger: "floor", replacement: "\\\\lfloor $0 \\\\rfloor $1", options: "mA"},
{trigger: "mod", replacement: "|$0|$1", options: "mA"},
{trigger: "(", replacement: "(\${VISUAL})", options: "mA"},
{trigger: "[", replacement: "[\${VISUAL}]", options: "mA"},
{trigger: "{", replacement: "{\${VISUAL}}", options: "mA"},
{trigger: "(", replacement: "($0)$1", options: "mA"},
{trigger: "{", replacement: "{$0}$1", options: "mA"},
{trigger: "[", replacement: "[$0]$1", options: "mA"},
{trigger: "lr(", replacement: "\\\\left( $0 \\\\right) $1", options: "mA"},
{trigger: "lr{", replacement: "\\\\left\\\\{ $0 \\\\right\\\\} $1", options: "mA"},
{trigger: "lr[", replacement: "\\\\left[ $0 \\\\right] $1", options: "mA"},
{trigger: "lr|", replacement: "\\\\left| $0 \\\\right| $1", options: "mA"},
{trigger: "lra", replacement: "\\\\left< $0 \\\\right> $1", options: "mA"},
// Misc
// Automatically convert standalone letters in text to math (except a, A, I).
// (Un-comment to enable)
// {trigger: /([^'])\\b([B-HJ-Zb-z])\\b([\\n\\s.,?!:'])/, replacement: "[[0]]$[[1]]$[[2]]", options: "tA"},
// Automatically convert Greek letters in text to math.
// {trigger: "(\${GREEK})([\\\\n\\\\s.,?!:'])", replacement: "$\\\\[[0]]$[[1]]", options: "rtAw"},
// Automatically convert text of the form "x=2" and "x=n+1" to math.
// {trigger: /([A-Za-z]=\\d+)([\\n\\s.,?!:'])/, replacement: "$[[0]]$[[1]]", options: "rtAw"},
// {trigger: /([A-Za-z]=[A-Za-z][+-]\\d+)([\\n\\s.,?!:'])/, replacement: "$[[0]]$[[1]]", options: "tAw"},
// Snippet replacements can have placeholders.
{trigger: "tayl", replacement: "\${0:f}(\${1:x} + \${2:h}) = \${0:f}(\${1:x}) + \${0:f}'(\${1:x})\${2:h} + \${0:f}''(\${1:x}) \\\\frac{\${2:h}^{2}}{2!} + \\\\dots$3", options: "mA", description: "Taylor expansion"},
// Snippet replacements can also be JavaScript functions.
// See the documentation for more information.
{trigger: /iden(\\d)/, replacement: (match) => {
const n = match[1];
let arr = [];
for (let j = 0; j < n; j++) {
arr[j] = [];
for (let i = 0; i < n; i++) {
arr[j][i] = (i === j) ? 1 : 0;
}
}
let output = arr.map(el => el.join(" & ")).join(" \\\\\\\\\\n");
output = \`\\\\begin{pmatrix}\\n\${output}\\n\\\\end{pmatrix}\`;
return output;
}, options: "mA", description: "N x N identity matrix"},
]
`;var mn=vg;var bg=`{
"\${GREEK}": "alpha|beta|gamma|Gamma|delta|Delta|epsilon|varepsilon|zeta|eta|theta|vartheta|Theta|iota|kappa|lambda|Lambda|mu|nu|xi|omicron|pi|rho|varrho|sigma|Sigma|tau|upsilon|Upsilon|phi|varphi|Phi|chi|psi|omega|Omega",
"\${SYMBOL}": "parallel|perp|partial|nabla|hbar|ell|infty|oplus|ominus|otimes|oslash|square|star|dagger|vee|wedge|subseteq|subset|supseteq|supset|emptyset|exists|nexists|forall|implies|impliedby|iff|setminus|neg|lor|land|bigcup|bigcap|cdot|times|simeq|approx",
"\${MORE_SYMBOLS}": "leq|geq|neq|gg|ll|equiv|sim|propto|rightarrow|leftarrow|Rightarrow|Leftarrow|leftrightarrow|to|mapsto|cap|cup|in|sum|prod|exp|ln|log|det|dots|vdots|ddots|pm|mp|int|iint|iiint|oint"
}
`;var Sg=bg;var te={snippets:mn,snippetVariables:Sg,snippetsEnabled:!0,snippetsTrigger:"Tab",suppressSnippetTriggerOnIME:!0,suppressIMEWarning:!1,removeSnippetWhitespace:!0,autoDelete$:!0,loadSnippetsFromFile:!1,loadSnippetVariablesFromFile:!1,snippetsFileLocation:"",snippetVariablesFileLocation:"",concealEnabled:!1,concealRevealTimeout:0,colorPairedBracketsEnabled:!0,highlightCursorBracketsEnabled:!0,mathPreviewEnabled:!0,mathPreviewPositionIsAbove:!0,mathPreviewCursor:"\u25B6",mathPreviewBracketHighlighting:!1,autofractionEnabled:!0,autofractionSymbol:"\\frac",autofractionBreakingChars:"+-= ",matrixShortcutsEnabled:!0,taboutEnabled:!0,autoEnlargeBrackets:!0,wordDelimiters:"., +-\\n :;!?\\/{}[]()=~$'\"|`<>*^%#@&",autofractionExcludedEnvs:`[
["^{", "}"],
["\\\\pu{", "}"]
]`,matrixShortcutsEnvNames:"pmatrix, cases, align, gather, bmatrix, Bmatrix, vmatrix, Vmatrix, array, matrix",taboutClosingSymbols:"), ], \\rbrack, \\}, \\rbrace, \\rangle, \\rvert, \\rVert, \\rfloor, \\rceil, \\urcorner, }",autoEnlargeBracketsTriggers:"sum, int, frac, prod, bigcup, bigcap",forceMathLanguages:"math"};function gn(r,e){function t(i){return i.replace(/\s/g,"").split(",")}function n(i){let o=[];try{o=JSON.parse(i).map(function(a){return{openSymbol:a[0],closeSymbol:a[1]}})}catch(s){console.error(s)}return o}return Qt(Xe({},e),{snippets:r,autofractionExcludedEnvs:n(e.autofractionExcludedEnvs),matrixShortcutsEnvNames:t(e.matrixShortcutsEnvNames),taboutClosingSymbols:new Set(t(e.taboutClosingSymbols)),autoEnlargeBracketsTriggers:t(e.autoEnlargeBracketsTriggers),forceMathLanguages:t(e.forceMathLanguages)})}var wo=require("@codemirror/state"),Nl=require("@codemirror/view"),q=require("obsidian");var Bg=require("obsidian");var V="top",H="bottom",L="right",B="left",ro="auto",mt=[V,H,L,B],He="start",jt="end",xg="clippingParents",no="viewport",xr="popper",Qg="reference",Ol=mt.reduce(function(r,e){return r.concat([e+"-"+He,e+"-"+jt])},[]),io=[].concat(mt,[ro]).reduce(function(r,e){return r.concat([e,e+"-"+He,e+"-"+jt])},[]),AP="beforeRead",RP="read",CP="afterRead",IP="beforeMain",jP="main",ZP="afterMain",WP="beforeWrite",XP="write",MP="afterWrite",$g=[AP,RP,CP,IP,jP,ZP,WP,XP,MP];function re(r){return r?(r.nodeName||"").toLowerCase():null}function N(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function Be(r){var e=N(r).Element;return r instanceof e||r instanceof Element}function J(r){var e=N(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function Qr(r){if(typeof ShadowRoot=="undefined")return!1;var e=N(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function GP(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];!J(o)||!re(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function VP(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],o=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!J(i)||!re(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}var wg={name:"applyStyles",enabled:!0,phase:"write",fn:GP,effect:VP,requires:["computeStyles"]};function ne(r){return r.split("-")[0]}var Ie=Math.max,Zt=Math.min,Je=Math.round;function $e(r,e){e===void 0&&(e=!1);var t=r.getBoundingClientRect(),n=1,i=1;if(J(r)&&e){var o=r.offsetHeight,s=r.offsetWidth;s>0&&(n=Je(t.width)/s||1),o>0&&(i=Je(t.height)/o||1)}return{width:t.width/n,height:t.height/i,top:t.top/i,right:t.right/n,bottom:t.bottom/i,left:t.left/n,x:t.left/n,y:t.top/i}}function Wt(r){var e=$e(r),t=r.offsetWidth,n=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:n}}function yn(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&Qr(t)){var n=e;do{if(n&&r.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function de(r){return N(r).getComputedStyle(r)}function hl(r){return["table","td","th"].indexOf(re(r))>=0}function se(r){return((Be(r)?r.ownerDocument:r.document)||window.document).documentElement}function Ke(r){return re(r)==="html"?r:r.assignedSlot||r.parentNode||(Qr(r)?r.host:null)||se(r)}function Tg(r){return!J(r)||de(r).position==="fixed"?null:r.offsetParent}function DP(r){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,t=navigator.userAgent.indexOf("Trident")!==-1;if(t&&J(r)){var n=de(r);if(n.position==="fixed")return null}var i=Ke(r);for(Qr(i)&&(i=i.host);J(i)&&["html","body"].indexOf(re(i))<0;){var o=de(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function je(r){for(var e=N(r),t=Tg(r);t&&hl(t)&&de(t).position==="static";)t=Tg(t);return t&&(re(t)==="html"||re(t)==="body"&&de(t).position==="static")?e:t||DP(r)||e}function Xt(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Mt(r,e,t){return Ie(r,Zt(e,t))}function Pg(r,e,t){var n=Mt(r,e,t);return n>t?t:n}function vn(){return{top:0,right:0,bottom:0,left:0}}function bn(r){return Object.assign({},vn(),r)}function Sn(r,e){return e.reduce(function(t,n){return t[n]=r,t},{})}var BP=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,bn(typeof e!="number"?e:Sn(e,mt))};function NP(r){var e,t=r.state,n=r.name,i=r.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=ne(t.placement),l=Xt(a),u=[B,L].indexOf(a)>=0,c=u?"height":"width";if(!(!o||!s)){var p=BP(i.padding,t),O=Wt(o),f=l==="y"?V:B,d=l==="y"?H:L,m=t.rects.reference[c]+t.rects.reference[l]-s[l]-t.rects.popper[c],g=s[l]-t.rects.reference[l],x=je(o),b=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,T=m/2-g/2,S=p[f],w=b-O[c]-p[d],y=b/2-O[c]/2+T,Q=Mt(S,y,w),R=l;t.modifiersData[n]=(e={},e[R]=Q,e.centerOffset=Q-y,e)}}function zP(r){var e=r.state,t=r.options,n=t.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||yn(e.elements.popper,i)&&(e.elements.arrow=i))}var Eg={name:"arrow",enabled:!0,phase:"main",fn:NP,effect:zP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function we(r){return r.split("-")[1]}var FP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LP(r){var e=r.x,t=r.y,n=window,i=n.devicePixelRatio||1;return{x:Je(e*i)/i||0,y:Je(t*i)/i||0}}function kg(r){var e,t=r.popper,n=r.popperRect,i=r.placement,o=r.variation,s=r.offsets,a=r.position,l=r.gpuAcceleration,u=r.adaptive,c=r.roundOffsets,p=r.isFixed,O=s.x,f=O===void 0?0:O,d=s.y,m=d===void 0?0:d,g=typeof c=="function"?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var x=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),T=B,S=V,w=window;if(u){var y=je(t),Q="clientHeight",R="clientWidth";if(y===N(t)&&(y=se(t),de(y).position!=="static"&&a==="absolute"&&(Q="scrollHeight",R="scrollWidth")),y=y,i===V||(i===B||i===L)&&o===jt){S=H;var E=p&&y===w&&w.visualViewport?w.visualViewport.height:y[Q];m-=E-n.height,m*=l?1:-1}if(i===B||(i===V||i===H)&&o===jt){T=L;var P=p&&y===w&&w.visualViewport?w.visualViewport.width:y[R];f-=P-n.width,f*=l?1:-1}}var _=Object.assign({position:a},u&&FP),j=c===!0?LP({x:f,y:m}):{x:f,y:m};if(f=j.x,m=j.y,l){var Z;return Object.assign({},_,(Z={},Z[S]=b?"0":"",Z[T]=x?"0":"",Z.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",Z))}return Object.assign({},_,(e={},e[S]=b?m+"px":"",e[T]=x?f+"px":"",e.transform="",e))}function UP(r){var e=r.state,t=r.options,n=t.gpuAcceleration,i=n===void 0?!0:n,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,l=a===void 0?!0:a;if(0)var u;var c={placement:ne(e.placement),variation:we(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kg(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kg(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var qg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UP,data:{}};var oo={passive:!0};function YP(r){var e=r.state,t=r.instance,n=r.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,a=s===void 0?!0:s,l=N(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",t.update,oo)}),a&&l.addEventListener("resize",t.update,oo),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",t.update,oo)}),a&&l.removeEventListener("resize",t.update,oo)}}var _g={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YP,data:{}};var HP={left:"right",right:"left",bottom:"top",top:"bottom"};function $r(r){return r.replace(/left|right|bottom|top/g,function(e){return HP[e]})}var JP={start:"end",end:"start"};function so(r){return r.replace(/start|end/g,function(e){return JP[e]})}function Gt(r){var e=N(r),t=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:t,scrollTop:n}}function Vt(r){return $e(se(r)).left+Gt(r).scrollLeft}function dl(r){var e=N(r),t=se(r),n=e.visualViewport,i=t.clientWidth,o=t.clientHeight,s=0,a=0;return n&&(i=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,a=n.offsetTop)),{width:i,height:o,x:s+Vt(r),y:a}}function ml(r){var e,t=se(r),n=Gt(r),i=(e=r.ownerDocument)==null?void 0:e.body,o=Ie(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Ie(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-n.scrollLeft+Vt(r),l=-n.scrollTop;return de(i||t).direction==="rtl"&&(a+=Ie(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function Dt(r){var e=de(r),t=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+n)}function ao(r){return["html","body","#document"].indexOf(re(r))>=0?r.ownerDocument.body:J(r)&&Dt(r)?r:ao(Ke(r))}function gt(r,e){var t;e===void 0&&(e=[]);var n=ao(r),i=n===((t=r.ownerDocument)==null?void 0:t.body),o=N(n),s=i?[o].concat(o.visualViewport||[],Dt(n)?n:[]):n,a=e.concat(s);return i?a:a.concat(gt(Ke(s)))}function wr(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function KP(r){var e=$e(r);return e.top=e.top+r.clientTop,e.left=e.left+r.clientLeft,e.bottom=e.top+r.clientHeight,e.right=e.left+r.clientWidth,e.width=r.clientWidth,e.height=r.clientHeight,e.x=e.left,e.y=e.top,e}function Ag(r,e){return e===no?wr(dl(r)):Be(e)?KP(e):wr(ml(se(r)))}function eE(r){var e=gt(Ke(r)),t=["absolute","fixed"].indexOf(de(r).position)>=0,n=t&&J(r)?je(r):r;return Be(n)?e.filter(function(i){return Be(i)&&yn(i,n)&&re(i)!=="body"}):[]}function gl(r,e,t){var n=e==="clippingParents"?eE(r):[].concat(e),i=[].concat(n,[t]),o=i[0],s=i.reduce(function(a,l){var u=Ag(r,l);return a.top=Ie(u.top,a.top),a.right=Zt(u.right,a.right),a.bottom=Zt(u.bottom,a.bottom),a.left=Ie(u.left,a.left),a},Ag(r,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function xn(r){var e=r.reference,t=r.element,n=r.placement,i=n?ne(n):null,o=n?we(n):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(i){case V:l={x:s,y:e.y-t.height};break;case H:l={x:s,y:e.y+e.height};break;case L:l={x:e.x+e.width,y:a};break;case B:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var u=i?Xt(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case He:l[u]=l[u]-(e[c]/2-t[c]/2);break;case jt:l[u]=l[u]+(e[c]/2-t[c]/2);break;default:}}return l}function Ze(r,e){e===void 0&&(e={});var t=e,n=t.placement,i=n===void 0?r.placement:n,o=t.boundary,s=o===void 0?xg:o,a=t.rootBoundary,l=a===void 0?no:a,u=t.elementContext,c=u===void 0?xr:u,p=t.altBoundary,O=p===void 0?!1:p,f=t.padding,d=f===void 0?0:f,m=bn(typeof d!="number"?d:Sn(d,mt)),g=c===xr?Qg:xr,x=r.rects.popper,b=r.elements[O?g:c],T=gl(Be(b)?b:b.contextElement||se(r.elements.popper),s,l),S=$e(r.elements.reference),w=xn({reference:S,element:x,strategy:"absolute",placement:i}),y=wr(Object.assign({},x,w)),Q=c===xr?y:S,R={top:T.top-Q.top+m.top,bottom:Q.bottom-T.bottom+m.bottom,left:T.left-Q.left+m.left,right:Q.right-T.right+m.right},E=r.modifiersData.offset;if(c===xr&&E){var P=E[i];Object.keys(R).forEach(function(_){var j=[L,H].indexOf(_)>=0?1:-1,Z=[V,H].indexOf(_)>=0?"y":"x";R[_]+=P[Z]*j})}return R}function yl(r,e){e===void 0&&(e={});var t=e,n=t.placement,i=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,u=l===void 0?io:l,c=we(n),p=c?a?Ol:Ol.filter(function(d){return we(d)===c}):mt,O=p.filter(function(d){return u.indexOf(d)>=0});O.length===0&&(O=p);var f=O.reduce(function(d,m){return d[m]=Ze(r,{placement:m,boundary:i,rootBoundary:o,padding:s})[ne(m)],d},{});return Object.keys(f).sort(function(d,m){return f[d]-f[m]})}function tE(r){if(ne(r)===ro)return[];var e=$r(r);return[so(r),e,so(e)]}function rE(r){var e=r.state,t=r.options,n=r.name;if(!e.modifiersData[n]._skip){for(var i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!0:s,l=t.fallbackPlacements,u=t.padding,c=t.boundary,p=t.rootBoundary,O=t.altBoundary,f=t.flipVariations,d=f===void 0?!0:f,m=t.allowedAutoPlacements,g=e.options.placement,x=ne(g),b=x===g,T=l||(b||!d?[$r(g)]:tE(g)),S=[g].concat(T).reduce(function(Fe,rt){return Fe.concat(ne(rt)===ro?yl(e,{placement:rt,boundary:c,rootBoundary:p,padding:u,flipVariations:d,allowedAutoPlacements:m}):rt)},[]),w=e.rects.reference,y=e.rects.popper,Q=new Map,R=!0,E=S[0],P=0;P<S.length;P++){var _=S[P],j=ne(_),Z=we(_)===He,oe=[V,H].indexOf(j)>=0,le=oe?"width":"height",X=Ze(e,{placement:_,boundary:c,rootBoundary:p,altBoundary:O,padding:u}),me=oe?Z?L:B:Z?H:V;w[le]>y[le]&&(me=$r(me));var be=$r(me),Y=[];if(o&&Y.push(X[j]<=0),a&&Y.push(X[me]<=0,X[be]<=0),Y.every(function(Fe){return Fe})){E=_,R=!1;break}Q.set(_,Y)}if(R)for(var ge=d?3:1,_e=function(rt){var jr=S.find(function(Mn){var St=Q.get(Mn);if(St)return St.slice(0,rt).every(function(zo){return zo})});if(jr)return E=jr,"break"},xe=ge;xe>0;xe--){var ze=_e(xe);if(ze==="break")break}e.placement!==E&&(e.modifiersData[n]._skip=!0,e.placement=E,e.reset=!0)}}var Rg={name:"flip",enabled:!0,phase:"main",fn:rE,requiresIfExists:["offset"],data:{_skip:!1}};function Cg(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function Ig(r){return[V,L,H,B].some(function(e){return r[e]>=0})}function nE(r){var e=r.state,t=r.name,n=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=Ze(e,{elementContext:"reference"}),a=Ze(e,{altBoundary:!0}),l=Cg(s,n),u=Cg(a,i,o),c=Ig(l),p=Ig(u);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}var jg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nE};function iE(r,e,t){var n=ne(r),i=[B,V].indexOf(n)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[B,L].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function oE(r){var e=r.state,t=r.options,n=r.name,i=t.offset,o=i===void 0?[0,0]:i,s=io.reduce(function(c,p){return c[p]=iE(p,e.rects,o),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}var Zg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oE};function sE(r){var e=r.state,t=r.name;e.modifiersData[t]=xn({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Wg={name:"popperOffsets",enabled:!0,phase:"read",fn:sE,data:{}};function vl(r){return r==="x"?"y":"x"}function aE(r){var e=r.state,t=r.options,n=r.name,i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!1:s,l=t.boundary,u=t.rootBoundary,c=t.altBoundary,p=t.padding,O=t.tether,f=O===void 0?!0:O,d=t.tetherOffset,m=d===void 0?0:d,g=Ze(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:c}),x=ne(e.placement),b=we(e.placement),T=!b,S=Xt(x),w=vl(S),y=e.modifiersData.popperOffsets,Q=e.rects.reference,R=e.rects.popper,E=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,P=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),_=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(y){if(o){var Z,oe=S==="y"?V:B,le=S==="y"?H:L,X=S==="y"?"height":"width",me=y[S],be=me+g[oe],Y=me-g[le],ge=f?-R[X]/2:0,_e=b===He?Q[X]:R[X],xe=b===He?-R[X]:-Q[X],ze=e.elements.arrow,Fe=f&&ze?Wt(ze):{width:0,height:0},rt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:vn(),jr=rt[oe],Mn=rt[le],St=Mt(0,Q[X],Fe[X]),zo=T?Q[X]/2-ge-St-jr-P.mainAxis:_e-St-jr-P.mainAxis,qv=T?-Q[X]/2+ge+St+Mn+P.mainAxis:xe+St+Mn+P.mainAxis,Fo=e.elements.arrow&&je(e.elements.arrow),_v=Fo?S==="y"?Fo.clientTop||0:Fo.clientLeft||0:0,uu=(Z=_==null?void 0:_[S])!=null?Z:0,Av=me+zo-uu-_v,Rv=me+qv-uu,cu=Mt(f?Zt(be,Av):be,me,f?Ie(Y,Rv):Y);y[S]=cu,j[S]=cu-me}if(a){var pu,Cv=S==="x"?V:B,Iv=S==="x"?H:L,xt=y[w],Gn=w==="y"?"height":"width",fu=xt+g[Cv],Ou=xt-g[Iv],Lo=[V,B].indexOf(x)!==-1,hu=(pu=_==null?void 0:_[w])!=null?pu:0,du=Lo?fu:xt-Q[Gn]-R[Gn]-hu+P.altAxis,mu=Lo?xt+Q[Gn]+R[Gn]-hu-P.altAxis:Ou,gu=f&&Lo?Pg(du,xt,mu):Mt(f?du:fu,xt,f?mu:Ou);y[w]=gu,j[w]=gu-xt}e.modifiersData[n]=j}}var Xg={name:"preventOverflow",enabled:!0,phase:"main",fn:aE,requiresIfExists:["offset"]};function bl(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function Sl(r){return r===N(r)||!J(r)?Gt(r):bl(r)}function lE(r){var e=r.getBoundingClientRect(),t=Je(e.width)/r.offsetWidth||1,n=Je(e.height)/r.offsetHeight||1;return t!==1||n!==1}function xl(r,e,t){t===void 0&&(t=!1);var n=J(e),i=J(e)&&lE(e),o=se(e),s=$e(r,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!t)&&((re(e)!=="body"||Dt(o))&&(a=Sl(e)),J(e)?(l=$e(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Vt(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function uE(r){var e=new Map,t=new Set,n=[];r.forEach(function(o){e.set(o.name,o)});function i(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&i(l)}}),n.push(o)}return r.forEach(function(o){t.has(o.name)||i(o)}),n}function Ql(r){var e=uE(r);return $g.reduce(function(t,n){return t.concat(e.filter(function(i){return i.phase===n}))},[])}function $l(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function wl(r){var e=r.reduce(function(t,n){var i=t[n.name];return t[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,t},{});return Object.keys(e).map(function(t){return e[t]})}var Mg={placement:"bottom",modifiers:[],strategy:"absolute"};function Gg(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Vg(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,n=t===void 0?[]:t,i=e.defaultOptions,o=i===void 0?Mg:i;return function(a,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mg,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],O=!1,f={state:c,setOptions:function(x){var b=typeof x=="function"?x(c.options):x;m(),c.options=Object.assign({},o,c.options,b),c.scrollParents={reference:Be(a)?gt(a):a.contextElement?gt(a.contextElement):[],popper:gt(l)};var T=Ql(wl([].concat(n,c.options.modifiers)));if(c.orderedModifiers=T.filter(function(_){return _.enabled}),0){var S;if(getBasePlacement(c.options.placement)===auto)var w;var y,Q,R,E,P}return d(),f.update()},forceUpdate:function(){if(!O){var x=c.elements,b=x.reference,T=x.popper;if(Gg(b,T)){c.rects={reference:xl(b,je(T),c.options.strategy==="fixed"),popper:Wt(T)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(_){return c.modifiersData[_.name]=Object.assign({},_.data)});for(var S=0,w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var y=c.orderedModifiers[w],Q=y.fn,R=y.options,E=R===void 0?{}:R,P=y.name;typeof Q=="function"&&(c=Q({state:c,options:E,name:P,instance:f})||c)}}}},update:$l(function(){return new Promise(function(g){f.forceUpdate(),g(c)})}),destroy:function(){m(),O=!0}};if(!Gg(a,l))return f;f.setOptions(u).then(function(g){!O&&u.onFirstUpdate&&u.onFirstUpdate(g)});function d(){c.orderedModifiers.forEach(function(g){var x=g.name,b=g.options,T=b===void 0?{}:b,S=g.effect;if(typeof S=="function"){var w=S({state:c,name:x,instance:f,options:T}),y=function(){};p.push(w||y)}})}function m(){p.forEach(function(g){return g()}),p=[]}return f}}var cE=[_g,Wg,qg,wg,Zg,Rg,Xg,Eg,jg],Tl=Vg({defaultModifiers:cE});var Dg=require("obsidian"),pE=(r,e)=>(r%e+e)%e,Pl=class{constructor(e,t,n){this.owner=e,this.containerEl=t,t.on("click",".suggestion-item",this.onSuggestionClick.bind(this)),t.on("mousemove",".suggestion-item",this.onSuggestionMouseover.bind(this)),n.register([],"ArrowUp",i=>{if(!i.isComposing)return this.setSelectedItem(this.selectedItem-1,!0),!1}),n.register([],"ArrowDown",i=>{if(!i.isComposing)return this.setSelectedItem(this.selectedItem+1,!0),!1}),n.register([],"Enter",i=>{if(!i.isComposing)return this.useSelectedItem(i),!1})}onSuggestionClick(e,t){e.preventDefault();let n=this.suggestions.indexOf(t);this.setSelectedItem(n,!1),this.useSelectedItem(e)}onSuggestionMouseover(e,t){let n=this.suggestions.indexOf(t);this.setSelectedItem(n,!1)}setSuggestions(e){this.containerEl.empty();let t=[];e.forEach(n=>{let i=this.containerEl.createDiv("suggestion-item");this.owner.renderSuggestion(n,i),t.push(i)}),this.values=e,this.suggestions=t,this.setSelectedItem(0,!1)}useSelectedItem(e){let t=this.values[this.selectedItem];t&&this.owner.selectSuggestion(t,e)}setSelectedItem(e,t){let n=pE(e,this.suggestions.length),i=this.suggestions[this.selectedItem],o=this.suggestions[n];i==null||i.removeClass("is-selected"),o==null||o.addClass("is-selected"),this.selectedItem=n,t&&o.scrollIntoView(!1)}},lo=class{constructor(e,t){this.app=e,this.inputEl=t,this.scope=new Dg.Scope,this.suggestEl=createDiv("suggestion-container");let n=this.suggestEl.createDiv("suggestion");this.suggest=new Pl(this,n,this.scope),this.scope.register([],"Escape",this.close.bind(this)),this.inputEl.addEventListener("input",this.onInputChanged.bind(this)),this.inputEl.addEventListener("focus",this.onInputChanged.bind(this)),this.inputEl.addEventListener("blur",this.close.bind(this)),this.suggestEl.on("mousedown",".suggestion-container",i=>{i.preventDefault()})}onInputChanged(){let e=this.inputEl.value,t=this.getSuggestions(e);t.length>0&&(this.suggest.setSuggestions(t),this.open(this.app.dom.appContainerEl,this.inputEl))}open(e,t){this.app.keymap.pushScope(this.scope),e.appendChild(this.suggestEl),this.popper=Tl(t,this.suggestEl,{placement:"bottom-start",modifiers:[{name:"sameWidth",enabled:!0,fn:({state:n,instance:i})=>{let o=`${n.rects.reference.width}px`;n.styles.popper.width!==o&&(n.styles.popper.width=o,i.update())},phase:"beforeWrite",requires:["computeStyles"]}]})}close(){this.app.keymap.popScope(this.scope),this.suggest.setSuggestions([]),this.popper.destroy(),this.suggestEl.detach()}};var Qn=class extends lo{getSuggestions(e){let t=[],n=e.toLowerCase();return Bg.Vault.recurseChildren(this.app.vault.getRoot(),i=>{i.path.toLowerCase().contains(n)&&t.push(i)}),t}renderSuggestion(e,t){t.setText(e.path)}selectSuggestion(e){this.inputEl.value=e.path,this.inputEl.trigger("input"),this.close()}};var ve=require("@codemirror/view"),by=require("@codemirror/state");var fE=0,$n=class{constructor(e,t){this.from=e,this.to=t}},M=class{constructor(e={}){this.id=fE++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Te.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}};M.closedBy=new M({deserialize:r=>r.split(" ")});M.openedBy=new M({deserialize:r=>r.split(" ")});M.group=new M({deserialize:r=>r.split(" ")});M.contextHash=new M({perNode:!0});M.lookAhead=new M({perNode:!0});M.mounted=new M({perNode:!0});var Tr=class{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[M.mounted.id]}},OE=Object.create(null),Te=class r{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):OE,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new r(e.name||"",t,e.id,n);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[o[0].id]=o[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(M.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return n=>{for(let i=n.prop(M.group),o=-1;o<(i?i.length:0);o++){let s=t[o<0?n.name:i[o]];if(s)return s}}}};Te.none=new Te("",Object.create(null),0,8);var po=class r{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let i=null;for(let o of e){let s=o(n);s&&(i||(i=Object.assign({},n.props)),i[s[0].id]=s[1])}t.push(i?new Te(n.name,i,n.id,n.flags):n)}return new r(t)}},uo=new WeakMap,Ng=new WeakMap,U;(function(r){r[r.ExcludeBuffers=1]="ExcludeBuffers",r[r.IncludeAnonymous=2]="IncludeAnonymous",r[r.IgnoreMounts=4]="IgnoreMounts",r[r.IgnoreOverlays=8]="IgnoreOverlays"})(U||(U={}));var ye=class r{constructor(e,t,n,i,o){if(this.type=e,this.children=t,this.positions=n,this.length=i,this.props=null,o&&o.length){this.props=Object.create(null);for(let[s,a]of o)this.props[typeof s=="number"?s:s.id]=a}}toString(){let e=Tr.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let i=n.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Tn(this.topNode,e)}cursorAt(e,t=0,n=0){let i=uo.get(this)||this.topNode,o=new Tn(i);return o.moveTo(e,t),uo.set(this,o._tree),o}get topNode(){return new Pe(this,0,0,null)}resolve(e,t=0){let n=wn(uo.get(this)||this.topNode,e,t,!1);return uo.set(this,n),n}resolveInner(e,t=0){let n=wn(Ng.get(this)||this.topNode,e,t,!0);return Ng.set(this,n),n}resolveStack(e,t=0){return hE(this,e,t)}iterate(e){let{enter:t,leave:n,from:i=0,to:o=this.length}=e,s=e.mode||0,a=(s&U.IncludeAnonymous)>0;for(let l=this.cursor(s|U.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=i&&(!a&&l.type.isAnonymous||t(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Cl(Te.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,i)=>new r(this.type,t,n,i,this.propValues),e.makeTree||((t,n,i)=>new r(Te.none,t,n,i)))}static build(e){return dE(e)}};ye.empty=new ye(Te.none,[],[],0);var El=class r{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new r(this.buffer,this.index)}},Bt=class r{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return Te.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],i=this.set.types[t],o=i.name;if(/\W/.test(o)&&!i.isError&&(o=JSON.stringify(o)),e+=4,n==e)return o;let s=[];for(;e<n;)s.push(this.childString(e)),e=this.buffer[e+3];return o+"("+s.join(",")+")"}findChild(e,t,n,i,o){let{buffer:s}=this,a=-1;for(let l=e;l!=t&&!(Lg(o,i,s[l+1],s[l+2])&&(a=l,n>0));l=s[l+3]);return a}slice(e,t,n){let i=this.buffer,o=new Uint16Array(t-e),s=0;for(let a=e,l=0;a<t;){o[l++]=i[a++],o[l++]=i[a++]-n;let u=o[l++]=i[a++]-n;o[l++]=i[a++]-e,s=Math.max(s,u)}return new r(o,s,this.set)}};function Lg(r,e,t,n){switch(r){case-2:return t<e;case-1:return n>=e&&t<e;case 0:return t<e&&n>e;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function wn(r,e,t,n){for(var i;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to<e);){let s=!n&&r instanceof Pe&&r.index<0?null:r.parent;if(!s)return r;r=s}let o=n?0:U.IgnoreOverlays;if(n)for(let s=r,a=s.parent;a;s=a,a=s.parent)s instanceof Pe&&s.index<0&&((i=a.enter(e,t,o))===null||i===void 0?void 0:i.from)!=s.from&&(r=a);for(;;){let s=r.enter(e,t,o);if(!s)return r;r=s}}var fo=class{cursor(e=0){return new Tn(this,e)}getChild(e,t=null,n=null){let i=zg(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return zg(this,e,t,n)}resolve(e,t=0){return wn(this,e,t,!1)}resolveInner(e,t=0){return wn(this,e,t,!0)}matchContext(e){return kl(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let i=t.lastChild;if(!i||i.to!=t.to)break;i.type.isError&&i.from==i.to?(n=t,t=i.prevSibling):t=i}return n}get node(){return this}get next(){return this.parent}},Pe=class r extends fo{constructor(e,t,n,i){super(),this._tree=e,this.from=t,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,o=0){for(let s=this;;){for(let{children:a,positions:l}=s._tree,u=t>0?a.length:-1;e!=u;e+=t){let c=a[e],p=l[e]+s.from;if(Lg(i,n,p,p+c.length)){if(c instanceof Bt){if(o&U.ExcludeBuffers)continue;let O=c.findChild(0,c.buffer.length,t,n-p,i);if(O>-1)return new Nt(new ql(s,c,e,p),null,O)}else if(o&U.IncludeAnonymous||!c.type.isAnonymous||Rl(c)){let O;if(!(o&U.IgnoreMounts)&&(O=Tr.get(c))&&!O.overlay)return new r(O.tree,p,e,s);let f=new r(c,p,e,s);return o&U.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?c.children.length-1:0,t,n,i)}}}if(o&U.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+t:e=t<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&U.IgnoreOverlays)&&(i=Tr.get(this._tree))&&i.overlay){let o=e-this.from;for(let{from:s,to:a}of i.overlay)if((t>0?s<=o:s<o)&&(t<0?a>=o:a>o))return new r(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function zg(r,e,t,n){let i=r.cursor(),o=[];if(!i.firstChild())return o;if(t!=null){for(;!i.type.is(t);)if(!i.nextSibling())return o}for(;;){if(n!=null&&i.type.is(n))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return n==null?o:[]}}function kl(r,e,t=e.length-1){for(let n=r.parent;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}var ql=class{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}},Nt=class r extends fo{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return o<0?null:new r(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&U.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new r(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new r(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new r(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,o=n.buffer[this.index+3];if(o>i){let s=n.buffer[this.index+1];e.push(n.slice(i,o,s)),t.push(0)}return new ye(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function Ug(r){if(!r.length)return null;if(r.length==1)return r[0];let e=0,t=r[0];for(let o=1;o<r.length;o++){let s=r[o];(s.from>t.from||s.to<t.to)&&(t=s,e=o)}let n=t instanceof Pe&&t.index<0?null:t.parent,i=r.slice();return n?i[e]=n:i.splice(e,1),new _l(i,t)}var _l=class{constructor(e,t){this.heads=e,this.node=t}get next(){return Ug(this.heads)}};function hE(r,e,t){let n=r.resolveInner(e,t),i=null;for(let o=n instanceof Pe?n:n.context.parent;o;o=o.parent)if(o.index<0){let s=o.parent;(i||(i=[n])).push(s.resolve(e,t)),o=s}else{let s=Tr.get(o.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let a=new Pe(s.tree,s.overlay[0].from+o.from,0,null);(i||(i=[n])).push(wn(a,e,t,!1))}}return i?Ug(i):n}var Tn=class{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Pe)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof Pe?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&U.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&U.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&U.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(t.findChild(i,this.index,-1,0,4))}else{let i=t.buffer[this.index+3];if(i<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(i.buffer.buffer[o+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let o=t+e,s=e<0?-1:n._tree.children.length;o!=s;o+=e){let a=n._tree.children[o];if(this.mode&U.IncludeAnonymous||a instanceof Bt||!a.type.isAnonymous||Rl(a))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,o=this.stack.length;o>=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;t=s,n=o+1;break e}i=this.stack[--o]}for(let i=n;i<this.stack.length;i++)t=new Nt(this.buffer,t,this.stack[i]);return this.bufferNode=new Nt(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;i&&t&&t(this),i=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return kl(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let i=e.length-1,o=this.stack.length-1;i>=0;o--){if(o<0)return kl(this.node,e,i);let s=n[t.buffer[this.stack[o]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}};function Rl(r){return r.children.some(e=>e instanceof Bt||!e.type.isAnonymous||Rl(e))}function dE(r){var e;let{buffer:t,nodeSet:n,maxBufferLength:i=1024,reused:o=[],minRepeatType:s=n.types.length}=r,a=Array.isArray(t)?new El(t,t.length):t,l=n.types,u=0,c=0;function p(S,w,y,Q,R){let{id:E,start:P,end:_,size:j}=a,Z=c;for(;j<0;)if(a.next(),j==-1){let be=o[E];y.push(be),Q.push(P-S);return}else if(j==-3){u=E;return}else if(j==-4){c=E;return}else throw new RangeError(`Unrecognized record size: ${j}`);let oe=l[E],le,X,me=P-S;if(_-P<=i&&(X=m(a.pos-w,R))){let be=new Uint16Array(X.size-X.skip),Y=a.pos-X.size,ge=be.length;for(;a.pos>Y;)ge=g(X.start,be,ge);le=new Bt(be,_-X.start,n),me=X.start-S}else{let be=a.pos-j;a.next();let Y=[],ge=[],_e=E>=s?E:-1,xe=0,ze=_;for(;a.pos>be;)_e>=0&&a.id==_e&&a.size>=0?(a.end<=ze-i&&(f(Y,ge,P,xe,a.end,ze,_e,Z),xe=Y.length,ze=a.end),a.next()):p(P,be,Y,ge,_e);if(_e>=0&&xe>0&&xe<Y.length&&f(Y,ge,P,xe,P,ze,_e,Z),Y.reverse(),ge.reverse(),_e>-1&&xe>0){let Fe=O(oe);le=Cl(oe,Y,ge,0,Y.length,0,_-P,Fe,Fe)}else le=d(oe,Y,ge,_-P,Z-_)}y.push(le),Q.push(me)}function O(S){return(w,y,Q)=>{let R=0,E=w.length-1,P,_;if(E>=0&&(P=w[E])instanceof ye){if(!E&&P.type==S&&P.length==Q)return P;(_=P.prop(M.lookAhead))&&(R=y[E]+P.length+_)}return d(S,w,y,Q,R)}}function f(S,w,y,Q,R,E,P,_){let j=[],Z=[];for(;S.length>Q;)j.push(S.pop()),Z.push(w.pop()+y-R);S.push(d(n.types[P],j,Z,E-R,_-E)),w.push(R-y)}function d(S,w,y,Q,R=0,E){if(u){let P=[M.contextHash,u];E=E?[P].concat(E):[P]}if(R>25){let P=[M.lookAhead,R];E=E?[P].concat(E):[P]}return new ye(S,w,y,Q,E)}function m(S,w){let y=a.fork(),Q=0,R=0,E=0,P=y.end-i,_={size:0,start:0,skip:0};e:for(let j=y.pos-S;y.pos>j;){let Z=y.size;if(y.id==w&&Z>=0){_.size=Q,_.start=R,_.skip=E,E+=4,Q+=4,y.next();continue}let oe=y.pos-Z;if(Z<0||oe<j||y.start<P)break;let le=y.id>=s?4:0,X=y.start;for(y.next();y.pos>oe;){if(y.size<0)if(y.size==-3)le+=4;else break e;else y.id>=s&&(le+=4);y.next()}R=X,Q+=Z,E+=le}return(w<0||Q==S)&&(_.size=Q,_.start=R,_.skip=E),_.size>4?_:void 0}function g(S,w,y){let{id:Q,start:R,end:E,size:P}=a;if(a.next(),P>=0&&Q<s){let _=y;if(P>4){let j=a.pos-(P-4);for(;a.pos>j;)y=g(S,w,y)}w[--y]=_,w[--y]=E-S,w[--y]=R-S,w[--y]=Q}else P==-3?u=Q:P==-4&&(c=Q);return y}let x=[],b=[];for(;a.pos>0;)p(r.start||0,r.bufferStart||0,x,b,-1);let T=(e=r.length)!==null&&e!==void 0?e:x.length?b[0]+x[0].length:0;return new ye(l[r.topID],x.reverse(),b.reverse(),T)}var Fg=new WeakMap;function co(r,e){if(!r.isAnonymous||e instanceof Bt||e.type!=r)return 1;let t=Fg.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=r||!(n instanceof ye)){t=1;break}t+=co(r,n)}Fg.set(e,t)}return t}function Cl(r,e,t,n,i,o,s,a,l){let u=0;for(let d=n;d<i;d++)u+=co(r,e[d]);let c=Math.ceil(u*1.5/8),p=[],O=[];function f(d,m,g,x,b){for(let T=g;T<x;){let S=T,w=m[T],y=co(r,d[T]);for(T++;T<x;T++){let Q=co(r,d[T]);if(y+Q>=c)break;y+=Q}if(T==S+1){if(y>c){let Q=d[S];f(Q.children,Q.positions,0,Q.children.length,m[S]+b);continue}p.push(d[S])}else{let Q=m[T-1]+d[T-1].length-w;p.push(Cl(r,d,m,S,T,w,Q,null,l))}O.push(w+b-o)}}return f(e,t,n,i,0),(a||l)(p,O,s)}var Oo=class{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof Nt?this.setBuffer(e.context.buffer,e.index,t):e instanceof Pe&&this.map.set(e.tree,t)}get(e){return e instanceof Nt?this.getBuffer(e.context.buffer,e.index):e instanceof Pe?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}};var ho=class{startParse(e,t,n){return typeof e=="string"&&(e=new Al(e)),n=n?n.length?n.map(i=>new $n(i.from,i.to)):[new $n(0,0)]:[new $n(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let o=i.advance();if(o)return o}}},Al=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}};var Zj=new M({perNode:!0});var Zl=class r{constructor(e,t,n,i,o,s,a,l,u,c=0,p){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=p}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new r(e,[],t,n,n,0,[],0,i?new go(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=e&65535,{parser:i}=this.p,o=i.dynamicPrecedence(n);if(o&&(this.score+=o),t==0){this.pushState(i.getGoto(this.state,n,!0),this.reducePos),n<i.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,4,!0),this.reduceContext(n,this.reducePos);return}let s=this.stack.length-(t-1)*3-(e&262144?6:0),a=this.stack[s-2],l=this.stack[s-1],u=this.bufferBase+this.buffer.length-l;if(n<i.minRepeatTerm||e&131072){let c=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,a,c,u+4,!0)}if(e&262144)this.state=this.stack[s];else{let c=this.stack[s-3];this.state=i.getGoto(c,n,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(n,a)}storeNode(e,t,n,i=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let s=this,a=this.buffer.length;if(a==0&&s.parent&&(a=s.bufferBase-s.parent.bufferBase,s=s.parent),a>0&&s.buffer[a-4]==0&&s.buffer[a-1]>-1){if(t==n)return;if(s.buffer[a-2]>=t){s.buffer[a-2]=n;return}}}if(!o||this.pos==n)this.buffer.push(e,t,n,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=e,this.buffer[s+1]=t,this.buffer[s+2]=n,this.buffer[s+3]=i}}shift(e,t,n){let i=this.pos;if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=n,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,n,4);else{let o=e,{parser:s}=this.p;(n>this.pos||t<=s.maxNode)&&(this.pos=n,s.stateFlag(o,1)||(this.reducePos=n)),this.pushState(o,i),this.shiftContext(t,i),t<=s.maxNode&&this.buffer.push(t,i,n,4)}}apply(e,t,n){e&65536?this.reduce(e):this.shift(e,t,n)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new r(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new Wl(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(!(n&65536))return!0;if(n==0)return!1;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let i=[];for(let o=0,s;o<t.length;o+=2)(s=t[o+1])!=this.state&&this.p.parser.hasAction(s,e)&&i.push(t[o],s);if(this.stack.length<120)for(let o=0;i.length<8&&o<t.length;o+=2){let s=t[o+1];i.some((a,l)=>l&1&&a==s)||i.push(t[o],s)}t=i}let n=[];for(let i=0;i<t.length&&n.length<4;i+=2){let o=t[i+1];if(o==this.state)continue;let s=this.split();s.pushState(o,this.pos),s.storeNode(0,s.pos,s.pos,4,!0),s.shiftContext(t[i],this.pos),s.score-=200,n.push(s)}return n}forceReduce(){let e=this.p.parser.stateSlot(this.state,5);if(!(e&65536))return!1;let{parser:t}=this.p;if(!t.validAction(this.state,e)){let n=e>>19,i=e&65535,o=this.stack.length-n*3;if(o<0||t.getGoto(this.stack[o],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.reducePos,this.reducePos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.reducePos,this.reducePos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new go(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},go=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},Yg;(function(r){r[r.Insert=200]="Insert",r[r.Delete=190]="Delete",r[r.Reduce=100]="Reduce",r[r.MaxNext=4]="MaxNext",r[r.MaxInsertStackDepth=300]="MaxInsertStackDepth",r[r.DampenInsertStackDepth=120]="DampenInsertStackDepth"})(Yg||(Yg={}));var Wl=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}},Xl=class r{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new r(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new r(this.stack,this.pos,this.index)}},Pr=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},Hg=new Pr,Ml=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Hg,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,o=this.pos+e;for(;o<n.from;){if(!i)return null;let s=this.ranges[--i];o-=n.from-s.to,n=s}for(;t<0?o>n.to:o>=n.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];o+=s.from-n.to,n=s}return o}peek(e){let t=this.chunkOff+e,n,i;if(t>=0&&t<this.chunk.length)n=this.pos+e,i=this.chunk.charCodeAt(t);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(n=o,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let s=this.rangeIndex,a=this.range;for(;a.to<=n;)a=this.ranges[++s];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Hg,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}},Er=class{constructor(e,t){this.data=e,this.id=t}token(e,t){gE(this.data,e,t,this.id)}};Er.prototype.contextual=Er.prototype.fallback=Er.prototype.extend=!1;var yt=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function gE(r,e,t,n){let i=0,o=1<<n,{parser:s}=t.p,{dialect:a}=s;e:for(;o&r[i];){let l=r[i+1];for(let O=i+3;O<l;O+=2)if((r[O+1]&o)>0){let f=r[O];if(a.allows(f)&&(e.token.value==-1||e.token.value==f||s.overrides(f,e.token.value))){e.acceptToken(f);break}}let u=e.next,c=0,p=r[i+2];if(e.next<0&&p>c&&r[l+p*3-3]==65535){i=r[l+p*3-1];continue e}for(;c<p;){let O=c+p>>1,f=l+O+(O<<1),d=r[f],m=r[f+1];if(u<d)p=O;else if(u>=m)c=O+1;else{i=r[f+2],e.advance();continue e}}break}}function mo(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let n=0,i=0;n<r.length;){let o=0;for(;;){let s=r.charCodeAt(n++),a=!1;if(s==126){o=65535;break}s>=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}t?t[i++]=o:t=new e(o)}return t}var We=typeof process!="undefined"&&process.env&&/\bparse\b/.test(process.env.LOG),Il=null,Jg;(function(r){r[r.Margin=25]="Margin"})(Jg||(Jg={}));function Kg(r,e,t){let n=r.cursor(U.IncludeAnonymous);for(n.moveTo(e);;)if(!(t<0?n.childBefore(e):n.childAfter(e)))for(;;){if((t<0?n.to<e:n.from>e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(r.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:r.length}}var Gl=class{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Kg(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Kg(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],i=this.index[t];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=n.children[i],s=this.start[t]+n.positions[i];if(s>e)return this.nextStart=s,null;if(o instanceof ye){if(s==e){if(s<this.safeFrom)return null;let a=s+o.length;if(a<=this.safeTo){let l=o.prop(M.lookAhead);if(!l||a+l<this.fragment.to)return o}}this.index[t]++,s+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+o.length}}},Vl=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new Pr)}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:o}=i,s=i.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let u=0;u<o.length;u++){if(!(1<<u&s))continue;let c=o[u],p=this.tokens[u];if(!(n&&!c.fallback)&&((c.contextual||p.start!=e.pos||p.mask!=s||p.context!=a)&&(this.updateCachedToken(p,c,e),p.mask=s,p.context=a),p.lookAhead>p.end+25&&(l=Math.max(p.lookAhead,l)),p.value!=0)){let O=t;if(p.extended>-1&&(t=this.addActions(e,p.extended,p.end,t)),t=this.addActions(e,p.value,p.end,t),!c.extend&&(n=p,t>O))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new Pr,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Pr,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){if(t.token(this.stream.reset(n.pos,e),n),e.value>-1){let{parser:i}=n.p;for(let o=0;o<i.specialized.length;o++)if(i.specialized[o]==e.value){let s=i.specializers[o](this.stream.read(e.start,e.end),n);if(s>=0&&n.p.parser.dialect.allows(s>>1)){s&1?e.extended=s>>1:e.value=s>>1;break}}}else e.value=0,e.end=Math.min(n.p.stream.end,n.pos+1)}putAction(e,t,n,i){for(let o=0;o<i;o+=3)if(this.actions[o]==e)return i;return this.actions[i++]=e,this.actions[i++]=t,this.actions[i++]=n,i}addActions(e,t,n,i){let{state:o}=e,{parser:s}=e.p,{data:a}=s;for(let l=0;l<2;l++)for(let u=s.stateSlot(o,l?2:1);;u+=3){if(a[u]==65535)if(a[u+1]==1)u=et(a,u+2);else{i==0&&a[u+1]==2&&(i=this.putAction(et(a,u+2),t,n,i));break}a[u]==t&&(i=this.putAction(et(a,u+1),t,n,i))}return i}},ey;(function(r){r[r.Distance=5]="Distance",r[r.MaxRemainingPerStep=3]="MaxRemainingPerStep",r[r.MinBufferLengthPrune=500]="MinBufferLengthPrune",r[r.ForceReduceLimit=10]="ForceReduceLimit",r[r.CutDepth=15e3]="CutDepth",r[r.CutTo=9e3]="CutTo"})(ey||(ey={}));var Dl=class{constructor(e,t,n,i){this.parser=e,this.input=t,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.stream=new Ml(t,i),this.tokens=new Vl(e,this.stream),this.topTerm=e.top[1];let{from:o}=i[0];this.stacks=[Zl.start(this,e.top[0],o)],this.fragments=n.length&&this.stream.end-o>e.bufferLength*4?new Gl(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],i,o;for(let s=0;s<e.length;s++){let a=e[s];for(;;){if(this.tokens.mainToken=null,a.pos>t)n.push(a);else{if(this.advanceStack(a,n,e))continue;{i||(i=[],o=[]),i.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!n.length){let s=i&&yE(i);if(s)return this.stackToTree(s);if(this.parser.strict)throw We&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,n);if(s)return this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(n.length>s)for(n.sort((a,l)=>l.score-a.score);n.length>s;)n.pop();n.some(a=>a.reducePos>t)&&this.recovering--}else if(n.length>1)e:for(let s=0;s<n.length-1;s++){let a=n[s];for(let l=s+1;l<n.length;l++){let u=n[l];if(a.sameState(u)||a.buffer.length>500&&u.buffer.length>500)if((a.score-u.score||a.buffer.length-u.buffer.length)>0)n.splice(l--,1);else{n.splice(s--,1);continue e}}}this.minStackPos=n[0].pos;for(let s=1;s<n.length;s++)n[s].pos<this.minStackPos&&(this.minStackPos=n[s].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let i=e.pos,{parser:o}=this,s=We?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let p=this.fragments.nodeAt(i);p;){let O=this.parser.nodeSet.types[p.type.id]==p.type?o.getGoto(e.state,p.type.id):-1;if(O>-1&&p.length&&(!u||(p.prop(M.contextHash)||0)==c))return e.useNode(p,O),We&&console.log(s+this.stackID(e)+` (via reuse of ${o.getName(p.type.id)})`),!0;if(!(p instanceof ye)||p.children.length==0||p.positions[0]>0)break;let f=p.children[0];if(f instanceof ye&&p.positions[0]==0)p=f;else break}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),We&&console.log(s+this.stackID(e)+` (via always-reduce ${o.getName(a&65535)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let u=0;u<l.length;){let c=l[u++],p=l[u++],O=l[u++],f=u==l.length||!n,d=f?e:e.split();if(d.apply(c,p,O),We&&console.log(s+this.stackID(d)+` (via ${c&65536?`reduce of ${o.getName(c&65535)}`:"shift"} for ${o.getName(p)} @ ${i}${d==e?"":", split"})`),f)return!0;d.pos>i?t.push(d):n.push(d)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return ty(e,t),!0}}runRecovery(e,t,n){let i=null,o=!1;for(let s=0;s<e.length;s++){let a=e[s],l=t[s<<1],u=t[(s<<1)+1],c=We?this.stackID(a)+" -> ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),We&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let p=a.split(),O=c;for(let f=0;p.forceReduce()&&f<10&&(We&&console.log(O+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,n));f++)We&&(O=this.stackID(p)+" -> ");for(let f of a.recoverByInsert(l))We&&console.log(c+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,n);this.stream.end>a.pos?(u==a.pos&&(u++,l=0),a.recoverByDelete(l,u),We&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),ty(a,n)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(e){return e.close(),ye.build({buffer:Xl.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Il||(Il=new WeakMap)).get(e);return t||Il.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}};function ty(r,e){for(let t=0;t<e.length;t++){let n=e[t];if(n.pos==r.pos&&n.sameState(r)){e[t].score<r.score&&(e[t]=r);return}}e.push(r)}var Bl=class{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},jl=r=>r,yo=class{constructor(e){this.start=e.start,this.shift=e.shift||jl,this.reduce=e.reduce||jl,this.reuse=e.reuse||jl,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},vo=class r extends ho{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;a<e.repeatNodeCount;a++)t.push("");let n=Object.keys(e.topRules).map(a=>e.topRules[a][1]),i=[];for(let a=0;a<t.length;a++)i.push([]);function o(a,l,u){i[a].push([l,l.deserialize(String(u))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=M[l]);for(let u=1;u<a.length;){let c=a[u++];if(c>=0)o(c,l,a[u++]);else{let p=a[u+-c];for(let O=-c;O>0;O--)o(a[u++],l,p);u++}}}this.nodeSet=new po(t.map((a,l)=>Te.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:n.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let s=mo(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(ny),this.states=mo(e.states,Uint32Array),this.data=mo(e.stateData),this.goto=mo(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new Er(s,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new Dl(this,e,t,n);for(let o of this.wrappers)i=o(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let o=i[t+1];;){let s=i[o++],a=s&1,l=i[o++];if(a&&n)return l;for(let u=o+(s>>1);o<u;o++)if(i[o]==e)return l;if(a)return-1}}hasAction(e,t){let n=this.data;for(let i=0;i<2;i++)for(let o=this.stateSlot(e,i?2:1),s;;o+=3){if((s=n[o])==65535)if(n[o+1]==1)s=n[o=et(n,o+2)];else{if(n[o+1]==2)return et(n,o+2);break}if(s==t||s==0)return et(n,o+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){if(t==this.stateSlot(e,4))return!0;for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=et(this.data,n+2);else return!1;if(t==et(this.data,n+1))return!0}}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=et(this.data,n+2);else break;if(!(this.data[n+2]&1)){let i=this.data[n+1];t.some((o,s)=>s&1&&o==i)||t.push(this.data[n],i)}}return t}overrides(e,t){let n=ry(this.data,this.tokenPrecTable,t);return n<0||ry(this.data,this.tokenPrecTable,e)<n}configure(e){let t=Object.assign(Object.create(r.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let i=e.tokenizers.find(o=>o.from==n);return i?i.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,i)=>{let o=e.specializers.find(a=>a.from==n.external);if(!o)return n;let s=Object.assign(Object.assign({},n),{external:o.to});return t.specializers[i]=ny(s),s})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let o of e.split(" ")){let s=t.indexOf(o);s>=0&&(n[s]=!0)}let i=null;for(let o=0;o<t.length;o++)if(!n[o])for(let s=this.dialects[t[o]],a;(a=this.data[s++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new Bl(e,n,i)}static deserialize(e){return new r(e)}};function et(r,e){return r[e]|r[e+1]<<16}function ry(r,e,t){for(let n=e,i;(i=r[n])!=65535;n++)if(i==t)return n-e;return-1}function yE(r){let e=null;for(let t of r){let n=t.p.stoppedAt;(t.pos==t.p.stream.end||n!=null&&t.pos>n)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function ny(r){if(r.external){let e=r.extend?1:0;return(t,n)=>r.external(t,n)<<1|e}return r.get}var v=require("@lezer/highlight"),vE=1,iy=281,oy=2,bE=3,bo=282,SE=4,xE=283,sy=284,QE=286,$E=287,wE=5,TE=6,PE=1,EE=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ly=125,kE=123,qE=59,ay=47,_E=42,AE=43,RE=45,CE=36,IE=96,jE=92,ZE=new yo({start:!1,shift(r,e){return e==wE||e==TE||e==QE?r:e==$E},strict:!1}),WE=new yt((r,e)=>{let{next:t}=r;(t==ly||t==-1||e.context)&&e.canShift(sy)&&r.acceptToken(sy)},{contextual:!0,fallback:!0}),XE=new yt((r,e)=>{let{next:t}=r,n;EE.indexOf(t)>-1||t==ay&&((n=r.peek(1))==ay||n==_E)||t!=ly&&t!=qE&&t!=-1&&!e.context&&e.canShift(iy)&&r.acceptToken(iy)},{contextual:!0}),ME=new yt((r,e)=>{let{next:t}=r;if((t==AE||t==RE)&&(r.advance(),t==r.next)){r.advance();let n=!e.context&&e.canShift(oy);r.acceptToken(n?oy:bE)}},{contextual:!0}),GE=new yt(r=>{for(let e=!1,t=0;;t++){let{next:n}=r;if(n<0){t&&r.acceptToken(bo);break}else if(n==IE){t?r.acceptToken(bo):r.acceptToken(xE,1);break}else if(n==kE&&e){t==1?r.acceptToken(SE,1):r.acceptToken(bo,-1);break}else if(n==10&&t){r.advance(),r.acceptToken(bo);break}else n==jE&&r.advance();e=n==CE,r.advance()}}),VE=new yt((r,e)=>{if(!(r.next!=101||!e.dialectEnabled(PE))){r.advance();for(let t=0;t<6;t++){if(r.next!="xtends".charCodeAt(t))return;r.advance()}r.next>=57&&r.next<=65||r.next>=48&&r.next<=90||r.next==95||r.next>=97&&r.next<=122||r.next>160||r.acceptToken(vE)}}),DE=(0,v.styleTags)({"get set async static":v.tags.modifier,"for while do if else switch try catch finally return throw break continue default case":v.tags.controlKeyword,"in of await yield void typeof delete instanceof":v.tags.operatorKeyword,"let var const function class extends":v.tags.definitionKeyword,"import export from":v.tags.moduleKeyword,"with debugger as new":v.tags.keyword,TemplateString:v.tags.special(v.tags.string),super:v.tags.atom,BooleanLiteral:v.tags.bool,this:v.tags.self,null:v.tags.null,Star:v.tags.modifier,VariableName:v.tags.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":v.tags.function(v.tags.variableName),VariableDefinition:v.tags.definition(v.tags.variableName),Label:v.tags.labelName,PropertyName:v.tags.propertyName,PrivatePropertyName:v.tags.special(v.tags.propertyName),"CallExpression/MemberExpression/PropertyName":v.tags.function(v.tags.propertyName),"FunctionDeclaration/VariableDefinition":v.tags.function(v.tags.definition(v.tags.variableName)),"ClassDeclaration/VariableDefinition":v.tags.definition(v.tags.className),PropertyDefinition:v.tags.definition(v.tags.propertyName),PrivatePropertyDefinition:v.tags.definition(v.tags.special(v.tags.propertyName)),UpdateOp:v.tags.updateOperator,LineComment:v.tags.lineComment,BlockComment:v.tags.blockComment,Number:v.tags.number,String:v.tags.string,ArithOp:v.tags.arithmeticOperator,LogicOp:v.tags.logicOperator,BitOp:v.tags.bitwiseOperator,CompareOp:v.tags.compareOperator,RegExp:v.tags.regexp,Equals:v.tags.definitionOperator,Arrow:v.tags.function(v.tags.punctuation),": Spread":v.tags.punctuation,"( )":v.tags.paren,"[ ]":v.tags.squareBracket,"{ }":v.tags.brace,"InterpolationStart InterpolationEnd":v.tags.special(v.tags.brace),".":v.tags.derefOperator,", ;":v.tags.separator,TypeName:v.tags.typeName,TypeDefinition:v.tags.definition(v.tags.typeName),"type enum interface implements namespace module declare":v.tags.definitionKeyword,"abstract global Privacy readonly override":v.tags.modifier,"is keyof unique infer":v.tags.operatorKeyword,JSXAttributeValue:v.tags.attributeValue,JSXText:v.tags.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":v.tags.angleBracket,"JSXIdentifier JSXNameSpacedName":v.tags.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":v.tags.attributeName}),BE={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:48,true:56,false:56,void:66,typeof:70,null:86,super:88,new:122,await:139,yield:141,delete:142,class:152,extends:154,public:197,private:197,protected:197,readonly:199,instanceof:220,in:222,const:224,import:256,keyof:307,unique:311,infer:317,is:351,abstract:371,implements:373,type:375,let:378,var:380,interface:387,enum:391,namespace:397,module:399,declare:403,global:407,for:428,of:437,while:440,with:444,do:448,if:452,else:454,switch:458,case:464,try:470,catch:474,finally:478,return:482,throw:486,break:490,continue:494,debugger:498},NE={__proto__:null,async:109,get:111,set:113,public:161,private:161,protected:161,static:163,abstract:165,override:167,readonly:173,new:355},zE={__proto__:null,"<":129},uy=vo.deserialize({version:14,states:"$8SO`QdOOO'QQ(C|O'#ChO'XOWO'#DVO)dQdO'#D]O)tQdO'#DhO){QdO'#DrO-xQdO'#DxOOQO'#E]'#E]O.]Q`O'#E[O.bQ`O'#E[OOQ(C['#Ef'#EfO0aQ(C|O'#ItO2wQ(C|O'#IuO3eQ`O'#EzO3jQ!bO'#FaOOQ(C['#FS'#FSO3rO#tO'#FSO4QQ&jO'#FhO5bQ`O'#FgOOQ(C['#Iu'#IuOOQ(CW'#It'#ItOOQS'#J^'#J^O5gQ`O'#HpO5lQ(ChO'#HqOOQS'#Ih'#IhOOQS'#Hr'#HrQ`QdOOO){QdO'#DjO5tQ`O'#G[O5yQ&jO'#CmO6XQ`O'#EZO6dQ`O'#EgO6iQ,UO'#FRO7TQ`O'#G[O7YQ`O'#G`O7eQ`O'#G`O7sQ`O'#GcO7sQ`O'#GdO7sQ`O'#GfO5tQ`O'#GiO8dQ`O'#GlO9rQ`O'#CdO:SQ`O'#GyO:[Q`O'#HPO:[Q`O'#HRO`QdO'#HTO:[Q`O'#HVO:[Q`O'#HYO:aQ`O'#H`O:fQ(CjO'#HfO){QdO'#HhO:qQ(CjO'#HjO:|Q(CjO'#HlO5lQ(ChO'#HnO){QdO'#DWOOOW'#Ht'#HtO;XOWO,59qOOQ(C[,59q,59qO=jQtO'#ChO=tQdO'#HuO>XQ`O'#IvO@WQtO'#IvO'dQdO'#IvO@_Q`O,59wO@uQ7[O'#DbOAnQ`O'#E]OA{Q`O'#JROBWQ`O'#JQOBWQ`O'#JQOB`Q`O,5:yOBeQ`O'#JPOBlQaO'#DyO5yQ&jO'#EZOBzQ`O'#EZOCVQpO'#FROOQ(C[,5:S,5:SOC_QdO,5:SOE]Q(C|O,5:^OEyQ`O,5:dO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from ; default FunctionDeclaration async function VariableDefinition TypeParamList TypeDefinition ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Interpolation null super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class extends ClassBody MethodDeclaration Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression PrivatePropertyName BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement",maxTerm:332,context:ZE,nodeProps:[["closedBy",4,"InterpolationEnd",40,"]",51,"}",66,")",132,"JSXSelfCloseEndTag JSXEndTag",146,"JSXEndTag"],["group",-26,8,15,17,58,184,188,191,192,194,197,200,211,213,219,221,223,225,228,234,240,242,244,246,248,250,251,"Statement",-30,12,13,24,27,28,41,43,44,45,47,52,60,68,74,75,91,92,101,103,119,122,124,125,126,127,129,130,148,149,151,"Expression",-22,23,25,29,32,34,152,154,156,157,159,160,161,163,164,165,167,168,169,178,180,182,183,"Type",-3,79,85,90,"ClassItem"],["openedBy",30,"InterpolationStart",46,"[",50,"{",65,"(",131,"JSXStartTag",141,"JSXStartTag JSXStartCloseTag"]],propSources:[DE],skippedNodes:[0,5,6],repeatNodeCount:28,tokenData:"!C}~R!`OX%TXY%cYZ'RZ[%c[]%T]^'R^p%Tpq%cqr'crs(kst0htu2`uv4pvw5ewx6cxy<yyz=Zz{=k{|>k|}?O}!O>k!O!P?`!P!QCl!Q!R!0[!R![!1q![!]!7s!]!^!8V!^!_!8g!_!`!9d!`!a!:[!a!b!<R!b!c%T!c!}2`!}#O!=d#O#P%T#P#Q!=t#Q#R!>U#R#S2`#S#T!>i#T#o2`#o#p!>y#p#q!?O#q#r!?f#r#s!?x#s$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$I|2`$I|$I}!Bq$I}$JO!Bq$JO$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`W%YR$UWO!^%T!_#o%T#p~%T7Z%jg$UW'Y7ROX%TXY%cYZ%TZ[%c[p%Tpq%cq!^%T!_#o%T#p$f%T$f$g%c$g#BY%T#BY#BZ%c#BZ$IS%T$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7R#zS']$y'g3SOX%TXY%cYZ%TZ[%c[p%Tpq%cqt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`7Z!CO_$UW'Z7R#zS']$y'g3SOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`",tokenizers:[VE,XE,ME,GE,0,1,2,3,4,5,6,7,8,9,WE],topRules:{Script:[0,7]},dialects:{jsx:12107,ts:12109},dynamicPrecedences:{149:1,176:1},specialized:[{term:289,get:r=>BE[r]||-1},{term:299,get:r=>NE[r]||-1},{term:63,get:r=>zE[r]||-1}],tokenPrec:12130});var z=require("@codemirror/language"),So=require("@codemirror/state"),Oy=require("@codemirror/view"),pe=require("@codemirror/autocomplete");var FE=[(0,pe.snippetCompletion)("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,pe.snippetCompletion)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,pe.snippetCompletion)("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,pe.snippetCompletion)("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,pe.snippetCompletion)("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,pe.snippetCompletion)(`try {
\${}
} catch (\${error}) {
\${}
}`,{label:"try",detail:"/ catch block",type:"keyword"}),(0,pe.snippetCompletion)("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,pe.snippetCompletion)(`if (\${}) {
\${}
} else {
\${}
}`,{label:"if",detail:"/ else block",type:"keyword"}),(0,pe.snippetCompletion)(`class \${name} {
constructor(\${params}) {
\${}
}
}`,{label:"class",detail:"definition",type:"keyword"}),(0,pe.snippetCompletion)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,pe.snippetCompletion)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],cy=new Oo,hy=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Pn(r){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,r),!0}}var LE=["FunctionDeclaration"],UE={FunctionDeclaration:Pn("function"),ClassDeclaration:Pn("class"),ClassExpression:()=>!0,EnumDeclaration:Pn("constant"),TypeAliasDeclaration:Pn("type"),NamespaceDeclaration:Pn("namespace"),VariableDefinition(r,e){r.matchContext(LE)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function dy(r,e){let t=cy.get(e);if(t)return t;let n=[],i=!0;function o(s,a){let l=r.sliceString(s.from,s.to);n.push({label:l,type:a})}return e.cursor(U.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let a=UE[s.name];if(a&&a(s,o)||hy.has(s.name))return!1}else if(s.to-s.from>8192){for(let a of dy(r,s.node))n.push(a);return!1}}),cy.set(e,n),n}var py=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,my=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function YE(r){let e=(0,z.syntaxTree)(r.state).resolveInner(r.pos,-1);if(my.indexOf(e.name)>-1)return null;let t=e.to-e.from<20&&py.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let n=[];for(let i=e;i;i=i.parent)hy.has(i.name)&&(n=n.concat(dy(r.state.doc,i)));return{options:n,from:t?e.from:r.pos,validFor:py}}var zt=z.LRLanguage.define({parser:uy.configure({props:[z.indentNodeProp.add({IfStatement:(0,z.continuedIndent)({except:/^\s*({|else\b)/}),TryStatement:(0,z.continuedIndent)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:z.flatIndent,SwitchBody:r=>{let e=r.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return r.baseIndent+(t?0:n?1:2)*r.unit},Block:(0,z.delimitedIndent)({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,z.continuedIndent)({except:/^{/}),JSXElement(r){let e=/^\s*<\//.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},JSXEscape(r){let e=/\s*\}/.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},"JSXOpenTag JSXSelfClosingTag"(r){return r.column(r.node.from)+r.unit}}),z.foldNodeProp.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":z.foldInside,BlockComment(r){return{from:r.from+2,to:r.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),HE=zt.configure({dialect:"ts"}),JE=zt.configure({dialect:"jsx"}),KE=zt.configure({dialect:"jsx ts"}),ek="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(r=>({label:r,type:"keyword"}));function gy(r={}){let e=r.jsx?r.typescript?KE:JE:r.typescript?HE:zt;return new z.LanguageSupport(e,[zt.data.of({autocomplete:(0,pe.ifNotIn)(my,(0,pe.completeFromList)(FE.concat(ek)))}),zt.data.of({autocomplete:YE}),r.jsx?rk:[]])}function fy(r,e,t=r.length){if(!e)return"";let n=e.getChild("JSXIdentifier");return n?r.sliceString(n.from,Math.min(n.to,t)):""}var tk=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),rk=Oy.EditorView.inputHandler.of((r,e,t,n)=>{if((tk?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||n!=">"&&n!="/"||!zt.isActiveAt(r.state,e,-1))return!1;let{state:i}=r,o=i.changeByRange(s=>{var a,l,u;let{head:c}=s,p=(0,z.syntaxTree)(i).resolveInner(c,-1),O;if(p.name=="JSXStartTag"&&(p=p.parent),n==">"&&p.name=="JSXFragmentTag")return{range:So.EditorSelection.cursor(c+1),changes:{from:c,insert:"><>"}};if(n==">"&&p.name=="JSXIdentifier"){if(((l=(a=p.parent)===null||a===void 0?void 0:a.lastChild)===null||l===void 0?void 0:l.name)!="JSXEndTag"&&(O=fy(i.doc,p.parent,c)))return{range:So.EditorSelection.cursor(c+1),changes:{from:c,insert:`></${O}>`}}}else if(n=="/"&&p.name=="JSXFragmentTag"){let f=p.parent,d=f==null?void 0:f.parent;if(f.from==c-1&&((u=d.lastChild)===null||u===void 0?void 0:u.name)!="JSXEndTag"&&(O=fy(i.doc,d==null?void 0:d.firstChild,c))){let m=`/${O}>`;return{range:So.EditorSelection.cursor(c+m.length),changes:{from:c,insert:m}}}}return{range:s}});return o.changes.empty?!1:(r.dispatch(o,{userEvent:"input.type",scrollIntoView:!0}),!0)});var Ne=require("@codemirror/language"),vt=require("@codemirror/commands"),Qo=require("@codemirror/autocomplete"),$o=require("@codemirror/search"),Sy=require("@codemirror/lint");var yy=require("@codemirror/view"),xo=require("@codemirror/language"),A=require("@lezer/highlight"),C={name:"obsidian",dark:!1,background:"var(--background-primary)",foreground:"var(--text-normal)",selection:"var(--text-selection)",cursor:"var(--text-normal)",dropdownBackground:"var(--background-primary)",dropdownBorder:"var(--background-modifier-border)",activeLine:"var(--background-primary)",matchingBracket:"var(--background-modifier-accent)",keyword:"#d73a49",storage:"#d73a49",variable:"var(--text-normal)",parameter:"var(--text-accent-hover)",function:"var(--text-accent-hover)",string:"var(--text-accent)",constant:"var(--text-accent-hover)",type:"var(--text-accent-hover)",class:"#6f42c1",number:"var(--text-accent-hover)",comment:"var(--text-faint)",heading:"var(--text-accent-hover)",invalid:"var(--text-error)",regexp:"var(--text-accent)"},nk=yy.EditorView.theme({"&":{color:C.foreground,backgroundColor:C.background},".cm-content":{caretColor:C.cursor},"&.cm-focused .cm-cursor":{borderLeftColor:C.cursor},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, & ::selection":{backgroundColor:C.selection},".cm-panels":{backgroundColor:C.dropdownBackground,color:C.foreground},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:C.dropdownBackground,outline:`1px solid ${C.dropdownBorder}`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:C.selection},".cm-activeLine":{backgroundColor:C.activeLine},".cm-activeLineGutter":{backgroundColor:C.background},".cm-selectionMatch":{backgroundColor:C.selection},".cm-matchingBracket, .cm-nonmatchingBracket":{backgroundColor:C.matchingBracket,outline:"none"},".cm-gutters":{backgroundColor:C.background,color:C.comment,borderRight:"1px solid var(--background-modifier-border)"},".cm-lineNumbers, .cm-gutterElement":{color:"inherit"},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:C.foreground},".cm-tooltip":{border:`1px solid ${C.dropdownBorder}`,backgroundColor:C.dropdownBackground,color:C.foreground},".cm-tooltip.cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{background:C.selection,color:C.foreground}}},{dark:C.dark}),ik=xo.HighlightStyle.define([{tag:A.tags.keyword,color:C.keyword},{tag:[A.tags.name,A.tags.deleted,A.tags.character,A.tags.macroName],color:C.variable},{tag:[A.tags.propertyName],color:C.function},{tag:[A.tags.processingInstruction,A.tags.string,A.tags.inserted,A.tags.special(A.tags.string)],color:C.string},{tag:[A.tags.function(A.tags.variableName),A.tags.labelName],color:C.function},{tag:[A.tags.color,A.tags.constant(A.tags.name),A.tags.standard(A.tags.name)],color:C.constant},{tag:[A.tags.definition(A.tags.name),A.tags.separator],color:C.variable},{tag:[A.tags.className],color:C.class},{tag:[A.tags.number,A.tags.changed,A.tags.annotation,A.tags.modifier,A.tags.self,A.tags.namespace],color:C.number},{tag:[A.tags.typeName],color:C.type,fontStyle:C.type},{tag:[A.tags.operator,A.tags.operatorKeyword],color:C.keyword},{tag:[A.tags.url,A.tags.escape,A.tags.regexp,A.tags.link],color:C.regexp},{tag:[A.tags.meta,A.tags.comment],color:C.comment},{tag:A.tags.strong,fontWeight:"bold"},{tag:A.tags.emphasis,fontStyle:"italic"},{tag:A.tags.link,textDecoration:"underline"},{tag:A.tags.heading,fontWeight:"bold",color:C.heading},{tag:[A.tags.atom,A.tags.bool,A.tags.special(A.tags.variableName)],color:C.variable},{tag:A.tags.invalid,color:C.invalid},{tag:A.tags.strikethrough,textDecoration:"line-through"}]),vy=[nk,(0,xo.syntaxHighlighting)(ik)];var xy=[(0,ve.lineNumbers)(),(0,ve.highlightSpecialChars)(),(0,vt.history)(),gy(),(0,ve.drawSelection)(),(0,ve.dropCursor)(),by.EditorState.allowMultipleSelections.of(!0),(0,Ne.indentOnInput)(),Ne.indentUnit.of(" "),(0,Ne.syntaxHighlighting)(Ne.defaultHighlightStyle,{fallback:!0}),ve.EditorView.lineWrapping,(0,Ne.bracketMatching)(),(0,Qo.closeBrackets)(),(0,ve.rectangularSelection)(),(0,$o.highlightSelectionMatches)(),vy,ve.keymap.of([...Qo.closeBracketsKeymap,...vt.defaultKeymap,...$o.searchKeymap,...vt.historyKeymap,vt.indentWithTab,...Sy.lintKeymap])].filter(r=>r);var To=class extends q.PluginSettingTab{constructor(e,t){super(e,t),this.plugin=t}hide(){var e;(e=this.snippetsEditor)==null||e.destroy()}addHeading(e,t,n="math"){let o=new q.Setting(e).setName(t).setHeading().settingEl,s=o.createDiv();(0,q.setIcon)(s,n),s.addClass("latex-suite-settings-icon"),o.prepend(s)}display(){let{containerEl:e}=this;e.empty(),this.displaySnippetSettings(),this.displayConcealSettings(),this.displayColorHighlightBracketsSettings(),this.displayPopupPreviewSettings(),this.displayAutofractionSettings(),this.displayMatrixShortcutsSettings(),this.displayTaboutSettings(),this.displayAutoEnlargeBracketsSettings(),this.displayAdvancedSnippetSettings()}displaySnippetSettings(){let e=this.containerEl;this.addHeading(e,"Snippets","ballpen"),new q.Setting(e).setName("Enabled").setDesc("Whether snippets are enabled.").addToggle(a=>a.setValue(this.plugin.settings.snippetsEnabled).onChange(l=>$(this,null,function*(){this.plugin.settings.snippetsEnabled=l,yield this.plugin.saveSettings()})));let t=new q.Setting(e).setName("Snippets").setDesc('Enter snippets here. Remember to add a comma after each snippet, and escape all backslashes with an extra \\. Lines starting with "//" will be treated as comments and ignored.').setClass("snippets-text-area");this.createSnippetsEditor(t),new q.Setting(e).setName("Load snippets from file or folder").setDesc("Whether to load snippets from a specified file, or from all files within a folder (instead of from the plugin settings).").addToggle(a=>a.setValue(this.plugin.settings.loadSnippetsFromFile).onChange(l=>$(this,null,function*(){this.plugin.settings.loadSnippetsFromFile=l,t.settingEl.toggleClass("hidden",l),this.snippetsFileLocEl!=null&&this.snippetsFileLocEl.toggleClass("hidden",!l),yield this.plugin.saveSettings()})));let n=new DocumentFragment;n.createDiv({},a=>{a.innerHTML=`
The file or folder to load snippets from. The file or folder must be within your vault, and not within a hidden folder (such as <code>.obsidian/</code>).`});let i=new q.Setting(e).setName("Snippets file or folder location").setDesc(n),o;i.addSearch(a=>{a.setPlaceholder(te.snippetsFileLocation).setValue(this.plugin.settings.snippetsFileLocation).onChange((0,q.debounce)(l=>$(this,null,function*(){this.plugin.settings.snippetsFileLocation=l,yield this.plugin.saveSettings(!0)}),500,!0)),o=a.inputEl,o.addClass("latex-suite-location-input-el"),new Qn(this.app,o)}),this.snippetsFileLocEl=i.settingEl;let s=this.plugin.settings.loadSnippetsFromFile;t.settingEl.toggleClass("hidden",s),this.snippetsFileLocEl.toggleClass("hidden",!s),new q.Setting(e).setName("Key trigger for non-auto snippets").setDesc("What key to press to expand non-auto snippets.").addDropdown(a=>a.addOption("Tab","Tab").addOption(" ","Space").setValue(this.plugin.settings.snippetsTrigger).onChange(l=>$(this,null,function*(){this.plugin.settings.snippetsTrigger=l,yield this.plugin.saveSettings()})))}displayConcealSettings(){let e=this.containerEl;this.addHeading(e,"Conceal","math-integral-x");let t=new DocumentFragment;t.createDiv({},i=>i.setText("Make equations more readable by hiding LaTeX syntax and instead displaying it in a pretty format.")),t.createDiv({},i=>i.innerHTML=`
e.g. <code>\\dot{x}^{2} + \\dot{y}^{2}</code> will display as \u1E8B\xB2 + \u1E8F\xB2, and <code>\\sqrt{ 1-\\beta^{2} }</code> will display as \u221A{ 1-\u03B2\xB2 }.
`),t.createDiv({},i=>i.setText("LaTeX beneath the cursor will be revealed.")),t.createEl("br"),t.createDiv({},i=>i.setText("Disabled by default to not confuse new users. However, I recommend turning this on once you are comfortable with the plugin!")),new q.Setting(e).setName("Enabled").setDesc(t).addToggle(i=>i.setValue(this.plugin.settings.concealEnabled).onChange(o=>$(this,null,function*(){this.plugin.settings.concealEnabled=o,yield this.plugin.saveSettings()})));let n=new DocumentFragment;n.createDiv({},i=>i.setText("How long to delay the reveal of LaTeX for, in milliseconds, when the cursor moves over LaTeX. Defaults to 0 (LaTeX under the cursor is revealed immediately).")),n.createEl("br"),n.createDiv({},i=>i.setText("Can be set to a positive number, e.g. 300, to delay the reveal of LaTeX, making it much easier to navigate equations using arrow keys.")),n.createEl("br"),n.createDiv({},i=>i.setText("Must be an integer \u2265 0.")),new q.Setting(e).setName("Reveal delay (ms)").setDesc(n).addText(i=>i.setPlaceholder(String(te.concealRevealTimeout)).setValue(String(this.plugin.settings.concealRevealTimeout)).onChange(o=>{/^\d+$/.test(o)&&(this.plugin.settings.concealRevealTimeout=Number(o),this.plugin.saveSettings())}))}displayColorHighlightBracketsSettings(){let e=this.containerEl;this.addHeading(e,"Highlight and color brackets","parentheses"),new q.Setting(e).setName("Color paired brackets").setDesc("Whether to colorize matching brackets.").addToggle(t=>t.setValue(this.plugin.settings.colorPairedBracketsEnabled).onChange(n=>$(this,null,function*(){this.plugin.settings.colorPairedBracketsEnabled=n,yield this.plugin.saveSettings()}))),new q.Setting(e).setName("Highlight matching bracket beneath cursor").setDesc("When the cursor is adjacent to a bracket, highlight the matching bracket.").addToggle(t=>t.setValue(this.plugin.settings.highlightCursorBracketsEnabled).onChange(n=>$(this,null,function*(){this.plugin.settings.highlightCursorBracketsEnabled=n,yield this.plugin.saveSettings()})))}displayPopupPreviewSettings(){let e=this.containerEl;this.addHeading(e,"Math popup preview","superscript");let t=document.createDocumentFragment(),n=document.createElement("div");n.setText("When inside an equation, show a popup preview window of the rendered math.");let i=document.createElement("br"),o=document.createElement("div");o.setText("The popup preview will be shown for all inline math equations, as well as for block math equations in Source mode."),t.append(n,i,o);let s=new q.Setting(e).setName("Enabled").setDesc(t),a=new q.Setting(e).setName("Position").setDesc("Where to display the popup preview relative to the equation source.").addDropdown(p=>p.addOption("Above","Above").addOption("Below","Below").setValue(this.plugin.settings.mathPreviewPositionIsAbove?"Above":"Below").onChange(O=>$(this,null,function*(){this.plugin.settings.mathPreviewPositionIsAbove=O==="Above",yield this.plugin.saveSettings()}))),l=new q.Setting(e).setName("Cursor symbol").setDesc(`The symbol to use as the cursor in the popup preview such as ${te.mathPreviewCursor}. Leave it blank to turn it off.`).addText(p=>{p.setPlaceholder(te.mathPreviewCursor).setValue(this.plugin.settings.mathPreviewCursor).onChange(f=>$(this,null,function*(){this.plugin.settings.mathPreviewCursor=f,yield this.plugin.saveSettings()}));let O=e.createEl("datalist",{attr:{id:"math-preview-cursor-list"}});return["\u25B6","\u2503","|","\\_","{\\mid}","{\\triangle}"].forEach(f=>O.createEl("option",{value:f})),p.inputEl.setAttribute("list","math-preview-cursor-list"),p}),u=new q.Setting(e).setName("Highlight brackets in preview").setDesc("Whether to highlight the area within the nearest pair of brackets around the cursor in the popup preview.").addToggle(p=>p.setValue(this.plugin.settings.mathPreviewBracketHighlighting).onChange(O=>$(this,null,function*(){this.plugin.settings.mathPreviewBracketHighlighting=O,yield this.plugin.saveSettings()}))),c=[a,l,u];c.forEach(p=>p.settingEl.toggleClass("hidden",!this.plugin.settings.mathPreviewEnabled)),s.addToggle(p=>p.setValue(this.plugin.settings.mathPreviewEnabled).onChange(O=>$(this,null,function*(){this.plugin.settings.mathPreviewEnabled=O,c.forEach(f=>f.settingEl.toggleClass("hidden",!O)),yield this.plugin.saveSettings()})))}displayAutofractionSettings(){let e=this.containerEl;this.addHeading(e,"Auto-fraction","math-x-divide-y-2"),new q.Setting(e).setName("Enabled").setDesc("Whether auto-fraction is enabled.").addToggle(t=>t.setValue(this.plugin.settings.autofractionEnabled).onChange(n=>$(this,null,function*(){this.plugin.settings.autofractionEnabled=n,yield this.plugin.saveSettings()}))),new q.Setting(e).setName("Fraction symbol").setDesc("The fraction symbol to use in the replacement. e.g. \\frac, \\dfrac, \\tfrac").addText(t=>{t.setPlaceholder(te.autofractionSymbol).setValue(this.plugin.settings.autofractionSymbol).onChange(i=>$(this,null,function*(){this.plugin.settings.autofractionSymbol=i,yield this.plugin.saveSettings()}));let n=e.createEl("datalist",{attr:{id:"autofraction-symbol-list"}});["\\frac","\\dfrac","\\tfrac"].forEach(i=>n.createEl("option",{value:i})),t.inputEl.setAttribute("list","autofraction-symbol-list")}),new q.Setting(e).setName("Excluded environments").setDesc('A list of environments to exclude auto-fraction from running in. For example, to exclude auto-fraction from running while inside an exponent, such as e^{...}, use ["^{", "}"]').addTextArea(t=>t.setPlaceholder('[ ["^{", "}] ]').setValue(this.plugin.settings.autofractionExcludedEnvs).onChange(n=>$(this,null,function*(){this.plugin.settings.autofractionExcludedEnvs=n,yield this.plugin.saveSettings()}))),new q.Setting(e).setName("Breaking characters").setDesc('A list of characters that denote the start/end of a fraction. e.g. if + is included in the list, "a+b/c" will expand to "a+\\frac{b}{c}". If + is not in the list, it will expand to "\\frac{a+b}{c}".').addText(t=>t.setPlaceholder(te.autofractionBreakingChars).setValue(this.plugin.settings.autofractionBreakingChars).onChange(n=>$(this,null,function*(){this.plugin.settings.autofractionBreakingChars=n,yield this.plugin.saveSettings()})))}displayMatrixShortcutsSettings(){let e=this.containerEl;this.addHeading(e,"Matrix shortcuts","brackets-contain"),new q.Setting(e).setName("Enabled").setDesc("Whether matrix shortcuts are enabled.").addToggle(t=>t.setValue(this.plugin.settings.matrixShortcutsEnabled).onChange(n=>$(this,null,function*(){this.plugin.settings.matrixShortcutsEnabled=n,yield this.plugin.saveSettings()}))),new q.Setting(e).setName("Environments").setDesc("A list of environment names to run the matrix shortcuts in, separated by commas.").addText(t=>t.setPlaceholder(te.matrixShortcutsEnvNames).setValue(this.plugin.settings.matrixShortcutsEnvNames).onChange(n=>$(this,null,function*(){this.plugin.settings.matrixShortcutsEnvNames=n,yield this.plugin.saveSettings()})))}displayTaboutSettings(){let e=this.containerEl;this.addHeading(e,"Tabout","tabout");let t=new q.Setting(e).setName("Enabled").setDesc("Whether tabout is enabled.").addToggle(i=>i.setValue(this.plugin.settings.taboutEnabled).onChange(o=>$(this,null,function*(){this.plugin.settings.taboutEnabled=o,n.settingEl.toggleClass("hidden",!o),yield this.plugin.saveSettings()}))),n=new q.Setting(e).setName("Closing brackets").setDesc("A list of closing brackets for tabout, separated by commas.").addText(i=>i.setPlaceholder(te.taboutClosingSymbols).setValue(this.plugin.settings.taboutClosingSymbols).onChange(o=>$(this,null,function*(){this.plugin.settings.taboutClosingSymbols=o,yield this.plugin.saveSettings()})));n.settingEl.toggleClass("hidden",!this.plugin.settings.taboutEnabled)}displayAutoEnlargeBracketsSettings(){let e=this.containerEl;this.addHeading(e,"Auto-enlarge brackets","parentheses"),new q.Setting(e).setName("Enabled").setDesc("Whether to automatically enlarge brackets containing e.g. sum, int, frac.").addToggle(t=>t.setValue(this.plugin.settings.autoEnlargeBrackets).onChange(n=>$(this,null,function*(){this.plugin.settings.autoEnlargeBrackets=n,yield this.plugin.saveSettings()}))),new q.Setting(e).setName("Triggers").setDesc("A list of symbols that should trigger auto-enlarge brackets, separated by commas.").addText(t=>t.setPlaceholder(te.autoEnlargeBracketsTriggers).setValue(this.plugin.settings.autoEnlargeBracketsTriggers).onChange(n=>$(this,null,function*(){this.plugin.settings.autoEnlargeBracketsTriggers=n,yield this.plugin.saveSettings()})))}displayAdvancedSnippetSettings(){let e=this.containerEl;this.addHeading(e,"Advanced snippet settings");let t=new q.Setting(e).setName("Snippet variables").setDesc("Assign snippet variables that can be used as shortcuts when writing snippets.").addTextArea(l=>l.setValue(this.plugin.settings.snippetVariables).onChange(u=>$(this,null,function*(){this.plugin.settings.snippetVariables=u,yield this.plugin.saveSettings()})).setPlaceholder(te.snippetVariables)).setClass("latex-suite-snippet-variables-setting");new q.Setting(e).setName("Load snippet variables from file or folder").setDesc("Whether to load snippet variables from a specified file, or from all files within a folder (instead of from the plugin settings).").addToggle(l=>l.setValue(this.plugin.settings.loadSnippetVariablesFromFile).onChange(u=>$(this,null,function*(){this.plugin.settings.loadSnippetVariablesFromFile=u,t.settingEl.toggleClass("hidden",u),this.snippetVariablesFileLocEl!=null&&this.snippetVariablesFileLocEl.toggleClass("hidden",!u),yield this.plugin.saveSettings()})));let n=new DocumentFragment;n.createDiv({},l=>{l.innerHTML=`
The file or folder to load snippet variables from. The file or folder must be within your vault, and not within a hidden folder (such as <code>.obsidian/</code>).`});let i=new q.Setting(e).setName("Snippet variables file or folder location").setDesc(n);i.addSearch(l=>{l.setPlaceholder(te.snippetVariablesFileLocation).setValue(this.plugin.settings.snippetVariablesFileLocation).onChange((0,q.debounce)(c=>$(this,null,function*(){this.plugin.settings.snippetVariablesFileLocation=c,yield this.plugin.saveSettings(!0)}),500,!0));let u=l.inputEl;u.addClass("latex-suite-location-input-el"),new Qn(this.app,u)}),this.snippetVariablesFileLocEl=i.settingEl;let o=this.plugin.settings.loadSnippetVariablesFromFile;t.settingEl.toggleClass("hidden",o),this.snippetVariablesFileLocEl.toggleClass("hidden",!o),new q.Setting(e).setName("Word delimiters").setDesc('Symbols that will be treated as word delimiters, for use with the "w" snippet option.').addText(l=>l.setPlaceholder(te.wordDelimiters).setValue(this.plugin.settings.wordDelimiters).onChange(u=>$(this,null,function*(){this.plugin.settings.wordDelimiters=u,yield this.plugin.saveSettings()}))),new q.Setting(e).setName("Remove trailing whitespaces in snippets in inline math").setDesc("Whether to remove trailing whitespaces when expanding snippets at the end of inline math blocks.").addToggle(l=>l.setValue(this.plugin.settings.removeSnippetWhitespace).onChange(u=>$(this,null,function*(){this.plugin.settings.removeSnippetWhitespace=u,yield this.plugin.saveSettings()}))),new q.Setting(e).setName("Remove closing $ when backspacing inside blank inline math").setDesc("Whether to also remove the closing $ when you delete the opening $ symbol inside blank inline math.").addToggle(l=>l.setValue(this.plugin.settings.autoDelete$).onChange(u=>$(this,null,function*(){this.plugin.settings.autoDelete$=u,yield this.plugin.saveSettings()})));let s=new q.Setting(e).setName("Don't trigger snippets when IME is active").setDesc("Whether to suppress snippets triggering when an IME is active."),a=new q.Setting(e).setName("Suppress IME warning").setDesc("Whether a warning is shown on startup if `Don't trigger snippets when IME is active` is enabled. Disable that setting if you are aware of the IME limitations. Currently only ios and android have support for IME").addToggle(l=>l.setValue(this.plugin.settings.suppressIMEWarning).onChange(u=>$(this,null,function*(){this.plugin.settings.suppressIMEWarning=u,yield this.plugin.saveSettings()})));a.settingEl.toggleClass("hidden",!(this.plugin.settings.suppressSnippetTriggerOnIME&&Eo())),s.addToggle(l=>l.setValue(this.plugin.settings.suppressSnippetTriggerOnIME).onChange(u=>$(this,null,function*(){this.plugin.settings.suppressSnippetTriggerOnIME=u,a.settingEl.toggleClass("hidden",!(u&&Eo())),yield this.plugin.saveSettings()}))),new q.Setting(e).setName("Code languages to interpret as math mode").setDesc("Codeblock languages where the whole code block should be treated like a math block, separated by commas.").addText(l=>l.setPlaceholder(te.forceMathLanguages).setValue(this.plugin.settings.forceMathLanguages).onChange(u=>$(this,null,function*(){this.plugin.settings.forceMathLanguages=u,yield this.plugin.saveSettings()})))}createSnippetsEditor(e){let t=e.controlEl.createDiv("snippets-editor-wrapper"),n=e.controlEl.createDiv("snippets-footer"),i=n.createDiv("snippets-editor-validity"),o=new q.ExtraButtonComponent(i);o.setIcon("checkmark").extraSettingsEl.addClass("snippets-editor-validity-indicator");let s=i.createDiv("snippets-editor-validity-text");s.addClass("setting-item-description"),s.style.padding="0";function a(f){o.setIcon(f?"checkmark":"cross"),o.extraSettingsEl.removeClass(f?"invalid":"valid"),o.extraSettingsEl.addClass(f?"valid":"invalid"),s.setText(f?"Saved":"Invalid syntax. Changes not saved")}let l=xy,u=Nl.EditorView.updateListener.of(f=>$(this,null,function*(){if(f.docChanged){let d=f.state.doc.toString(),m=!0,g;try{g=yield $t(this.plugin.settings.snippetVariables),yield tr(d,g)}catch(x){m=!1}if(a(m),!m)return;this.plugin.settings.snippets=d,yield this.plugin.saveSettings()}}));l.push(u),this.snippetsEditor=ok(this.plugin.settings.snippets,l),t.appendChild(this.snippetsEditor.dom);let c=n.createDiv("snippets-editor-buttons");new q.ButtonComponent(c).setIcon("switch").setTooltip("Reset to default snippets").onClick(()=>$(this,null,function*(){new Po(this.plugin.app,"Are you sure? This will delete any custom snippets you have written.",f=>f.setButtonText("Reset to default snippets").setWarning(),()=>$(this,null,function*(){this.snippetsEditor.setState(wo.EditorState.create({doc:mn,extensions:l})),a(!0),this.plugin.settings.snippets=mn,yield this.plugin.saveSettings()})).open()})),new q.ButtonComponent(c).setIcon("trash").setTooltip("Remove all snippets").onClick(()=>$(this,null,function*(){new Po(this.plugin.app,"Are you sure? This will delete any custom snippets you have written.",f=>f.setButtonText("Remove all snippets").setWarning(),()=>$(this,null,function*(){let f=`[
]`;this.snippetsEditor.setState(wo.EditorState.create({doc:f,extensions:l})),a(!0),this.plugin.settings.snippets=f,yield this.plugin.saveSettings()})).open()}))}},Po=class extends q.Modal{constructor(e,t,n,i){super(e),this.contentEl.addClass("latex-suite-confirmation-modal"),this.contentEl.createEl("p",{text:t}),new q.Setting(this.contentEl).addButton(o=>{n(o),o.onClick(()=>$(this,null,function*(){yield i(),this.close()}))}).addButton(o=>o.setButtonText("Cancel").onClick(()=>this.close()))}};function ok(r,e){return new Nl.EditorView({state:wo.EditorState.create({doc:r,extensions:e})})}function Eo(){return q.Platform.isMobileApp}var Qy={math:`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-math" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M19 5h-7l-4 14l-3 -6h-2"></path>
<path d="M14 13l6 6"></path>
<path d="M14 19l6 -6"></path>
</svg>`,"math-x-divide-y-2":`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-math-x-divide-y-2" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M3 21l18 -18"></path>
<path d="M15 14l3 4.5"></path>
<path d="M21 14l-4.5 7"></path>
<path d="M3 4l6 6"></path>
<path d="M3 10l6 -6"></path>
</svg>`,parentheses:`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-parentheses" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M7 4a12.25 12.25 0 0 0 0 16"></path>
<path d="M17 4a12.25 12.25 0 0 1 0 16"></path>
</svg>`,"math-function":`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-math-function" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2"></path>
<path d="M5 12h6"></path>
<path d="M15 12l6 6"></path>
<path d="M15 18l6 -6"></path>
</svg>`,"math-integral-x":`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-math-integral-x" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2"></path>
<path d="M14 12l6 6"></path>
<path d="M14 18l6 -6"></path>
</svg>`,"brackets-contain":`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brackets-contain" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M7 4h-4v16h4"></path>
<path d="M17 4h4v16h-4"></path>
<path d="M8 16h.01"></path>
<path d="M12 16h.01"></path>
<path d="M16 16h.01"></path>
</svg>`,"code-dots":`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-code-dots" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M15 12h.01"></path>
<path d="M12 12h.01"></path>
<path d="M9 12h.01"></path>
<path d="M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"></path>
<path d="M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"></path>
</svg>`,ballpen:`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-ballpen" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M14 6l7 7l-4 4"></path>
<path d="M5.828 18.172a2.828 2.828 0 0 0 4 0l10.586 -10.586a2 2 0 0 0 0 -2.829l-1.171 -1.171a2 2 0 0 0 -2.829 0l-10.586 10.586a2.828 2.828 0 0 0 0 4z"></path>
<path d="M4 20l1.768 -1.768"></path>
</svg>`,superscript:`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-superscript" width="100" height="100" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M5 7l8 10m-8 0l8 -10"></path>
<path d="M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2"></path>
</svg>`,tabout:`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 10.583 10.583">
<g style="fill:none;stroke:currentColor;stroke-width:3.22892904;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none">
<path d="M14.818 22.164h-.688c-1.52 0-3.983-1.82-3.983-4.066V-.612c0-2.245 2.462-4.065 3.983-4.065h.688" style="stroke-width:3.22892904;stroke-miterlimit:4;stroke-dasharray:none" transform="translate(6.566 2.931) scale(.24373)"/>
<path d="M5.605 22.16h.662c1.462 0 3.88-1.906 3.88-4.258v-1.065M5.605-4.674h.662c1.462 0 3.88 1.907 3.88 4.259V.65" style="stroke-width:3.22892904;stroke-miterlimit:4;stroke-dasharray:none" transform="translate(6.566 2.931) scale(.24373)"/>
</g>
<g style="fill:none;stroke:currentColor;stroke-width:3.22892904;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none">
<path d="M0 0h24v24H0Z" style="fill:none;stroke:none;stroke-width:3.22892904;stroke-miterlimit:4;stroke-dasharray:none" transform="translate(2.662 4.719) scale(.24373)" stroke="none"/>
<path d="M-9.136 8.694v5.17a1 1 0 0 0 1 1h23.658a1 1 0 0 0 1-1v-5.17" style="stroke-width:3.22892904;stroke-miterlimit:4;stroke-dasharray:none" transform="translate(2.662 4.719) scale(.24373)"/>
</g>
</svg>
`};var $y=require("obsidian"),wy=require("@codemirror/view");function ko(r,e,t,n){r.dispatch({changes:{from:e,to:t,insert:n}})}function En(r,e){return(r instanceof wy.EditorView?r.state:r).doc.slice(e,e+1).toString()}function bt(r,e){r.dispatch({selection:{anchor:e,head:e}}),kr()}function Ty(r,e,t){r.dispatch({selection:{anchor:e,head:t}}),kr()}function kr(){if($y.Platform.isMobile)return;let r=document.getElementsByClassName("cm-cursorLayer")[0];if(r){let e=r.style.animationName;r.style.animationName=e==="cm-blink"?"cm-blink2":"cm-blink"}}function zl(r){return r.split("").reverse().join("")}function K(r,e,t,n,i,o){if(i){let l=K(zl(r),r.length-(e+n.length),zl(n),zl(t),!1);return l===-1?-1:r.length-(l+t.length)}let s=0,a=o||r.length;for(let l=e;l<a;l++)if(r.slice(l,l+t.length)===t)s++;else if(r.slice(l,l+n.length)===n&&(s--,s===0))return l;return-1}function kn(r){return{")":"(","]":"[","}":"{"}[r]}function qr(r){return{"(":")","[":"]","{":"}"}[r]}function Fl(r,e){return r.composing||e.keyCode===229}function Py(r){let e=r.scrollDOM.parentElement;if(!e)return;let t=r.scrollDOM.nextSibling,n=window.getSelection(),i=n&&{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset};r.scrollDOM.remove(),e.insertBefore(r.scrollDOM,t);try{i&&n&&(n.setPosition(i.anchorNode,i.anchorOffset),i.focusNode&&n.extend(i.focusNode,i.focusOffset))}catch(o){console.error(o)}r.focus(),r.contentDOM.dispatchEvent(new CustomEvent("compositionend"))}var Yl=require("@codemirror/view");var Ey=require("@codemirror/view"),ky=require("@codemirror/state");var qy=ky.Facet.define({combine:r=>r.length>0?r[0]:gn([],te)});function ae(r){return(r instanceof Ey.EditorView?r.state:r).facet(qy)}function _y(r){return qy.of(r)}var Ao=require("@codemirror/language"),Ul="formatting_formatting-math_formatting-math-begin_keyword_math",sk="formatting_formatting-math_formatting-math-end_keyword_math_math-",Ry="formatting_formatting-math_formatting-math-begin_keyword_math_math-block",ak="formatting_formatting-math_formatting-math-end_keyword_math_math-",qo=new Set([Ul,Ry]),_o=new Set([sk,ak]),Ay="HyperMD-codeblock_HyperMD-codeblock-begin_HyperMD-codeblock-begin-bg_HyperMD-codeblock-bg",Ll="HyperMD-codeblock_HyperMD-codeblock-bg_HyperMD-codeblock-end_HyperMD-codeblock-end-bg",Hl=Yl.ViewPlugin.fromClass(class{constructor(e){this.codeblockLanguage=null;this.updateFromView(e)}update(e){(e.docChanged||e.selectionSet||e.viewportChanged)&&this.updateFromView(e.view)}updateFromView(e){var p;let t=e.state,n=t.selection;this.view=e,this.state=t,this.pos=n.main.to,this.ranges=Array.from(n.ranges).reverse(),this.mode=new er,this.boundsCache=new Map,this.innerBoundsCache=new Map,this.codeblockLanguage=null;let i=ck(t),o=(p=i==null?void 0:i.codeblockLanguage)!=null?p:null,s=o!==null,a=ae(t),l=s&&a.forceMathLanguages.contains(o);this.mode.codeMath=l,this.mode.code=s&&!l,s&&this.mode.code&&(this.codeblockLanguage=o,this.boundsCache.set(this.pos,i));let u=Ft(e),c=l||u.inMathBound(t,this.pos);if(c!==!0&&c!==null){let O=c.mode===0;this.mode.blockMath=!O,this.mode.inlineMath=O,this.boundsCache.set(this.pos,c)}c&&(this.mode.textEnv=this.inTextEnvironment()),this.mode.text=!s&&!c}isWithinEnvironment(e,t){if(!this.mode.inMath())return!1;let n=this.getInnerBounds();if(!n)return!1;let{inner_start:i,inner_end:o}=n,s=this.state.sliceDoc(i,o);e-=i;let a=t.openSymbol.slice(-1),l=qr(a),u,c;["{","[","("].contains(a)&&t.closeSymbol===l?(u=t.openSymbol.length-1,c=a):(u=0,c=t.openSymbol);let p=s.lastIndexOf(t.openSymbol,e-1);for(;p!=-1;){let O=K(s,p+u,c,t.closeSymbol,!1);if(O===-1)return!1;if(O>=e&&e>=p+t.openSymbol.length)return!0;if(p<=0)return!1;p=s.lastIndexOf(t.openSymbol,p-1)}return!1}inTextEnvironment(){return this.isWithinEnvironment(this.pos,{openSymbol:"\\text{",closeSymbol:"}"})||this.isWithinEnvironment(this.pos,{openSymbol:"\\tag{",closeSymbol:"}"})||this.isWithinEnvironment(this.pos,{openSymbol:"\\begin{",closeSymbol:"}"})||this.isWithinEnvironment(this.pos,{openSymbol:"\\end{",closeSymbol:"}"})||this.isWithinEnvironment(this.pos,{openSymbol:"\\mathrm{",closeSymbol:"}"})||this.isWithinEnvironment(this.pos,{openSymbol:"\\color{",closeSymbol:"}"})}getBounds(e=this.pos){let t=this.boundsCache.get(e);if(t!==void 0)return t;let n;return this.mode.codeMath?n=uk(this.state,e):n=Ft(this.view).inMathBound(this.state,e),this.boundsCache.set(e,n),n}getInnerBounds(e=this.pos){let t,n=this.innerBoundsCache.get(e);return n!==void 0?n:(this.mode.codeMath?t=this.getBounds(e):t=lk(this.view),this.innerBoundsCache.set(e,t),t)}}),Ee=r=>{let e=r.plugin(Hl);if(!e)throw new Error("Context plugin not found, something went wrong with the plugin initialization");return e};var lk=(r,e)=>{e||(e=r.state.selection.main.to);let t=Ft(r).inMathBound(r.state,e);if(!t)return null;let n=r.state.sliceDoc(t.inner_start,t.inner_end);n=n.replaceAll("\\$","\\R");let i=n.lastIndexOf("$",e-1),o=n.indexOf("$",e);return i===-1||o===-1?t:{inner_start:i+1,inner_end:o,outer_start:i,outer_end:o+1}},uk=(r,e=r.selection.main.from)=>{let t=Cy(r,e);if(!t)return null;let{begin:n,end:i}=t;return{inner_start:n.to,inner_end:i.from,outer_start:n.from,outer_end:i.to}},Cy=(r,e=r.selection.main.from)=>{let n=(0,Ao.syntaxTree)(r).cursor();if(n.childBefore(e),!n.name.contains("codeblock")||n.name===Ay&&e<=n.to||n.name===Ll)return null;do if(n.name===Ay)break;while(n.prev());let i=n.node;if(!i)return null;n.childAfter(e);do if(n.name===Ll)break;while(n.next());let o=n.node;return!o||o.name!==Ll?null:{begin:i,end:o}},ck=r=>{let e=r.selection.ranges[0].from,t=Cy(r,e);if(!t)return null;let{begin:n,end:i}=t,o=r.sliceDoc(n.from,n.to).replace(/`+|~+/g,"");return{inner_start:n.to,inner_end:i.from,outer_start:n.from,outer_end:i.to,codeblockLanguage:o}},Jl=Yl.ViewPlugin.fromClass(class{constructor(r){this.mathBounds=[];this.equations=null;this.inMathBound=(r,e)=>{var o,s;let t=this.mathBounds;if(e<=((o=t[0])==null?void 0:o.outer_start)||e>=((s=t[t.length-1])==null?void 0:s.outer_end))return this.getEquationBounds(r,e);let n=0,i=t.length-1;for(;n<=i;){let a=n+i>>1,l=t[a];if(e<l.outer_start)i=a-1;else if(e>=l.outer_end)n=a+1;else{if(e<=l.inner_start||e>=l.inner_end)break;return l}}return this.getEquationBounds(r,e)};this.computeEquationBounds=(r,e)=>{e===void 0&&(e=r.selection.main.to);let n=(0,Ao.syntaxTree)(r).cursor();if(n.childBefore(e),n.node.firstChild&&n.name!=="Document"){let a=e;for(;r.sliceDoc(a,a+1)===`
`&&a>0;)a-=1;n.moveTo(a,-1)}if(!(n.name.contains("math")&&!n.name.startsWith("hashtag_hashtag-end_meta_tag"))||_o.has(n.name)&&e>=n.to)return null;do if(qo.has(n.name))break;while(n.prev());let i=n.node;if(!i)return null;n.childAfter(e);do if(_o.has(n.name))break;while(n.next());let o=n.node;return o?i.to>e&&i.name===Ry?{inner_start:e-1,inner_end:e-1,outer_start:e-2,outer_end:e,mode:0}:{inner_start:i.to,inner_end:o.from,outer_start:i.from,outer_end:o.to,mode:i.name===Ul?0:1}:null};this.addMathBound=r=>{if(this.mathBounds.length===0)this.mathBounds.push(r);else if(r.outer_end<=this.mathBounds[0].outer_start)this.mathBounds.unshift(r);else if(r.outer_start>=this.mathBounds[this.mathBounds.length-1].outer_end)this.mathBounds.push(r);else{let e=0,t=this.mathBounds.length-1;for(;e<=t;){let n=e+t>>1;r.outer_start<this.mathBounds[n].outer_start?t=n-1:e=n+1}this.mathBounds.splice(e,0,r)}return r};this.updateMathBounds(r)}update(r){(r.docChanged||r.viewportChanged)&&(this.equations=null,this.updateMathBounds(r.view))}updateMathBounds(r){var i,o,s;let e=(0,Ao.syntaxTree)(r.state),t=[];r.visibleRanges.forEach(({from:a,to:l},u)=>{t.push([]),e.iterate({from:a,to:l,enter:c=>{(qo.has(c.name)&&c.to<l||_o.has(c.name)&&c.from>a)&&t[u].push(c.node)}})});let n=[];for(let a of t){if(_o.has((i=a[0])==null?void 0:i.name)){let u=this.computeEquationBounds(r.state,a[0].from);u&&n.push(u)}let l=qo.has((o=a[0])==null?void 0:o.name)?0:1;for(let u=l;u<a.length-1;u+=2){let c=a[u],p=a[u+1];n.push({inner_start:c.to,inner_end:p.from,outer_start:c.from,outer_end:p.to,mode:c.name===Ul?0:1})}if(qo.has((s=a[a.length-1])==null?void 0:s.name)){let u=a[a.length-1],c=this.computeEquationBounds(r.state,u.to);c&&n.push(c)}}this.mathBounds=n.filter((a,l)=>{if(l===0)return!0;let u=n[l-1];return!(u.outer_start===a.outer_start&&u.outer_end===a.outer_end)})}getEquationBounds(r,e){e||(e=r.selection.main.to);let t=this.computeEquationBounds(r,e);return t?(this.addMathBound(t),t):null}getEquations(r){return this.equations?this.equations:(this.equations=new Map(this.mathBounds.map(e=>[e.inner_start,r.sliceDoc(e.inner_start,e.inner_end)])),this.equations)}}),Ft=r=>{let e=r.plugin(Jl);if(!e)throw new Error("MathBoundsPlugin not found, something went wrong with the plugin initialization");return e};function pk(r){let t=Ee(r).getBounds();if(!t)return!1;let{inner_start:n,inner_end:i}=t,o="\\boxed{"+r.state.sliceDoc(n,i)+"}",s=r.state.sliceDoc(n-2,n)==="$$"&&r.state.sliceDoc(i,i+2)==="$$";s&&(o=`
`+o+`
`);let a=r.state.selection.main.to;ko(r,n,i,o),bt(r,a+7+(s?1:0))}function fk(){return{id:"latex-suite-box-equation",name:"Box current equation",editorCheckCallback:(r,e)=>{let t=e.cm,i=Ee(t).mode.inMath();if(r)return i;i&&pk(t)}}}function Ok(){return{id:"latex-suite-select-equation",name:"Select current equation",editorCheckCallback:(r,e)=>{let t=e.cm,n=Ee(t),i=n.mode.inMath();if(r)return i;if(!i)return;let o=n.getBounds();if(!o)return!1;let{inner_start:s,inner_end:a}=o,l=t.state.doc.toString();l.charAt(s)===`
`&&s++,l.charAt(a-1)===`
`&&a--,Ty(t,s,a)}}}function hk(r){return{id:"latex-suite-enable-all-features",name:"Enable all features",callback:()=>$(this,null,function*(){r.settings.snippetsEnabled=!0,r.settings.autofractionEnabled=!0,r.settings.matrixShortcutsEnabled=!0,r.settings.taboutEnabled=!0,r.settings.autoEnlargeBrackets=!0,yield r.saveSettings()})}}function dk(r){return{id:"latex-suite-disable-all-features",name:"Disable all features",callback:()=>$(this,null,function*(){r.settings.snippetsEnabled=!1,r.settings.autofractionEnabled=!1,r.settings.matrixShortcutsEnabled=!1,r.settings.taboutEnabled=!1,r.settings.autoEnlargeBrackets=!1,yield r.saveSettings()})}}var Iy=r=>[fk(),Ok(),hk(r),dk(r)];var sv=require("@codemirror/view");var qn=require("@codemirror/state");var Ro=class{constructor(e,t,n,i){this.from=e,this.to=t,this.insert=n,this.keyPressed=i}getTabstops(e,t){let n=[],i=e.state.doc.toString();for(let o=t;o<t+this.insert.length;o++){if(i.charAt(o)!=="$")continue;let s=parseInt(i.charAt(o+1)),a=o,l=a+2,u="";if(isNaN(s)){if(i.charAt(o+1)!=="{")continue;let p=K(i,o+1,"{","}",!1,t+this.insert.length),O=i.slice(o,p+1);if(!O.includes(":"))continue;let f=O.indexOf(":");if(s=parseInt(O.slice(2,f)),isNaN(s)||p===-1)continue;u=i.slice(o+f+1,p),l=p+1,o=p}let c={number:s,from:a,to:l,replacement:u};n.push(c)}return n}toChangeSpec(){return this}};var jy=qn.StateEffect.define(),Zy=qn.StateEffect.define(),Co=qn.StateField.define({create(){return[]},update(r,e){let t=r;for(let n of e.effects)n.is(jy)?t.push(n.value):n.is(Zy)&&(t=[]);return t}});function Lt(r,e,t,n,i){let o=new Ro(e,t,n,i);r.dispatch({effects:[jy.of(o)]})}function _n(r){r.dispatch({effects:[Zy.of(null)]})}var Wo=require("@codemirror/state");var Cn=require("@codemirror/state"),Ar=require("@codemirror/commands");var Io=require("@codemirror/view"),An=require("@codemirror/state"),Wy=An.StateEffect.define(),Xy=An.StateEffect.define(),_r=An.StateField.define({create(){return[]},update(r,e){let t=r;t.forEach(n=>n.map(e.changes));for(let n of e.effects)n.is(Wy)?t.unshift(...n.value):n.is(Xy)&&(t=[]);if(e.selection){let n=mk(t,e.selection);t=t.slice(n),t.length<=1?t=[]:t[0].hideFromEditor()}return t},provide:r=>Io.EditorView.decorations.of(e=>{let t=e.state.field(r),n=[];for(let i of t)i.hidden||n.push(...i.getRanges());return Io.Decoration.set(n,!0)})});function mk(r,e){for(let t=0;t<r.length;t++)if(r[t].containsSelection(e))return t;return r.length}function My(r){return r.state.field(_r)}function Gy(r,e){r.dispatch({effects:[Wy.of(e)]})}function jo(r){r.dispatch({effects:[Xy.of(null)]})}var gk=3;function Vy(r){let t=r.state.field(_r).map(i=>i.color),n=new Set(t);for(let i=0;i<gk;i++)if(!n.has(i))return i;return 0}var Rn=Cn.StateEffect.define(),Zo=Cn.StateEffect.define(),Dy=Cn.StateEffect.define(),Kl=Cn.StateEffect.define(),By=Ar.invertedEffects.of(r=>{let e=[];for(let t of r.effects)t.is(Rn)?e.push(Dy.of(null)):t.is(Dy)?e.push(Rn.of(null)):t.is(Zo)?e.push(Kl.of(null)):t.is(Kl)&&e.push(Zo.of(null));return e}),Ny=r=>{let e=r.transactions.find(n=>n.isUserEvent("undo")),t=r.transactions.find(n=>n.isUserEvent("redo"));for(let n of r.transactions)for(let i of n.effects)i.is(Rn)?t&&(0,Ar.redo)(r.view):i.is(Kl)&&e&&(0,Ar.undo)(r.view);e&&jo(r.view)};var Uy=require("@codemirror/commands");var In=require("@codemirror/state"),tu=require("@codemirror/view");var zy="latex-suite-snippet-placeholder";function yk(r,e,t){let n=`${zy} ${zy}-${t}`;return tu.Decoration.mark({inclusive:!0,color:t,class:n}).range(r,e)}var eu=class{constructor(e,t){let n=e.map(i=>yk(i.from,i.to,t));this.decos=tu.Decoration.set(n,!0),this.color=t,this.hidden=!1}select(e,t,n){let i=this.toEditorSelection(),o=t?Fy(i):i;e.dispatch({selection:o,effects:n?Zo.of(null):void 0}),kr(),this.hideFromEditor()}toSelectionRanges(){let e=[],t=this.decos.iter();for(;t.value!=null;)e.push(In.EditorSelection.range(t.from,t.to)),t.next();return e}toEditorSelection(e=!1){let t=In.EditorSelection.create(this.toSelectionRanges());return e&&(t=Fy(t)),t}containsSelection(e){function t(o,s){for(let a of s)if(a.from<=o.from&&a.to>=o.to)return!0;return!1}let n=this.toSelectionRanges(),i=!0;for(let o of e.ranges)if(!t(o,n)){i=!1;break}return i}hideFromEditor(){this.hidden=!0}map(e){this.decos=this.decos.map(e)}getRanges(){let e=[],t=this.decos.iter();for(;t.value!=null;)t.from!=t.to&&e.push(t.value.range(t.from,t.to)),t.next();return e}};function Ly(r,e){let t={};for(let o of r){let s=String(o.number);t[s]?t[s].push(o):t[s]=[o]}let n=[],i=Object.keys(t);i.sort((o,s)=>parseInt(o)-parseInt(s));for(let o of i){let s=new eu(t[o],e);n.push(s)}return n}function Fy(r){let e=r.ranges.map(t=>In.EditorSelection.range(t.to,t.to));return In.EditorSelection.create(e)}function Rr(r){let e=r.state.field(Co);if(e.length===0)return!1;let t=r.state.doc.length;vk(r,e);let n=bk(r,e,t);return n.length===0?(_n(r),!0):(Sk(r,n),xk(r,n),_n(r),!0)}function vk(r,e){let t=r.state.doc,n=t.length,i=[];for(let l of e)if(l.keyPressed&&l.keyPressed.length===1){let u=r.state.doc.sliceString(l.to-1,l.to),c=l.to===0?0:l.to-1;i.push({from:c,to:l.to,insert:u+l.keyPressed})}r.dispatch({changes:i,annotations:Uy.isolateHistory.of("full")});let o=Wo.ChangeSet.of(i,n).invert(t),s=Wo.ChangeSet.of(e,n),a=o.compose(s);r.dispatch({changes:a,effects:Rn.of(null)})}function bk(r,e,t){let n=Wo.ChangeSet.of(e,t),o=e.map(a=>a.from).map(a=>n.mapPos(a)),s=[];for(let a=0;a<e.length;a++)s.push(...e[a].getTabstops(r,o[a]));return s}function Sk(r,e){let t=Vy(r),n=Ly(e,t);Gy(r,n)}function xk(r,e){let t=e.map(i=>({from:i.from,to:i.to,insert:i.replacement}));r.dispatch({changes:t}),My(r)[0].select(r,!1,!0)}function Yy(r){let e=r.state.field(_r);function t(n){let i=e[n];if(!i)return!1;let o=r.state.selection,s=i.toEditorSelection();return i.containsSelection(o)&&(s=i.toEditorSelection(!0)),o.eq(s)?t(n+1):(r.dispatch({selection:s}),kr(),!0)}return t(1)}var Xo=r=>{let e=ae(r);if(!e.autoEnlargeBrackets)return;let n=Ee(r).getBounds();if(!n)return!1;let{inner_start:i,inner_end:o}=n,s=r.state.doc.toString(),a="\\left",l="\\right";for(let u=i;u<o;u++){let c={"(":")","[":"]","\\{":"\\}","\\langle":"\\rangle","\\lvert":"\\rvert","\\lVert":"\\rVert","\\lceil":"\\rceil","\\lfloor":"\\rfloor"},p=Object.keys(c),O=!1,f="";for(let T of p)if(s.slice(u,u+T.length)===T){O=!0,f=T;break}if(!O)continue;let d=f.length,m=c[f],g=K(s,u,f,m,!1,o);if(g===-1||s.slice(u-a.length,u)===a&&s.slice(g-l.length,g)===l)continue;let x=s.slice(u+1,g);if(!e.autoEnlargeBracketsTriggers.some(T=>x.contains("\\"+T))){u=g;continue}Lt(r,u,u+d,a+f+" "),Lt(r,g,g+d," "+l+m)}Rr(r)};var Hy=(r,e,t)=>{let n=!1;for(let o of e.ranges)Qk(r,e,t,o).shouldAutoEnlargeBrackets&&(n=!0);let i=Rr(r);return n&&Xo(r),i},Qk=(r,e,t,n)=>{let i=ae(r),{from:o,to:s}=n,a=r.state.sliceDoc(o,s),l=r.state.sliceDoc(0,s),u=l+t;for(let c of i.snippets){let p=l;if(!$k(c.options,e.mode))continue;if(c.options.automatic||c.type==="visual"){if(t.length!==1)continue;p=u}else if(t!==i.snippetsTrigger)continue;let O=!1;for(let b of c.excludedEnvironments)e.isWithinEnvironment(s,b)&&(O=!0);if(O)continue;let f=c.process(p,n,a);if(f===null)continue;let d=f.triggerPos;if(c.options.onWordBoundary&&!wk(r.state,d,s,i.wordDelimiters))continue;let m=f.replacement;return e.mode.inlineMath&&i.removeSnippetWhitespace&&(m=Tk(m,e)),Lt(r,d,s,m,t),{success:!0,shouldAutoEnlargeBrackets:i.autoEnlargeBracketsTriggers.some(b=>m.contains("\\"+b))}}return{success:!1,shouldAutoEnlargeBrackets:!1}},$k=(r,e)=>{if((r.mode.inlineMath&&e.inlineMath||r.mode.blockMath&&e.blockMath||(r.mode.inlineMath||r.mode.blockMath)&&e.codeMath)&&!e.textEnv||e.inMath()&&e.textEnv&&r.mode.text||r.mode.text&&e.text||r.mode.code&&e.code)return!0},wk=(r,e,t,n)=>{let i=r.sliceDoc(e-1,e),o=r.sliceDoc(t,t+1);return n=n.replace("\\n",`
`),n.contains(i)&&n.contains(o)},Tk=(r,e)=>{let t=0;if(r.endsWith(" "))t=-1;else{let n=r.slice(-3),i=n.slice(-1);n.slice(0,2)===" $"&&!isNaN(parseInt(i))&&(t=-3)}return t!=0&&(t===-1?r=r.trimEnd():t===-3&&(r=r.slice(0,-3)+r.slice(-2))),r};var Jy=(r,e)=>{for(let n of e.ranges)Pk(r,e,n);let t=Rr(r);return t&&Xo(r),t},Pk=(r,e,t)=>{let n=ae(r),{from:i,to:o}=t;for(let O of n.autofractionExcludedEnvs)if(e.isWithinEnvironment(o,O))return!1;let s=e.getBounds();if(!s)return!1;let a=s.inner_start,l=r.state.sliceDoc(0,o),u=a;if(i!=o)u=i;else{let O="alpha|beta|gamma|Gamma|delta|Delta|epsilon|varepsilon|zeta|eta|theta|Theta|iota|kappa|lambda|Lambda|mu|nu|omicron|xi|Xi|pi|Pi|rho|sigma|Sigma|tau|upsilon|Upsilon|varphi|phi|Phi|chi|psi|Psi|omega|Omega",f=new RegExp("("+O+") ([^ ])","g");l=l.replace(f,"$1#$2");for(let d=l.length-1;d>=a;d--){let m=l.charAt(d);if([")","]","}"].contains(m)){let g=m,x=kn(g),b=K(l,d,x,g,!0);if(b===-1)return!1;if(d=b,d<a){u=a;break}}if(` $([{
`.concat(n.autofractionBreakingChars).contains(m)){u=d+1;break}}}if(u===o)return!1;let c=r.state.sliceDoc(u,o);c.at(0)==="("&&c.at(-1)===")"&&K(c,0,"(",")",!1)===c.length-1&&(c=c.slice(1,-1));let p=`${n.autofractionSymbol}{${c}}{$0}$1`;return Lt(r,u,o,p,"/"),!0};var Ky=r=>{let e=[],t=0;for(;t<r.length;){let n=r[t];if(/\s/.test(n)){t++;continue}let{token:i,nextIndex:o}=Ek(r,t);e.push(i),t=o}return e},Ek=(r,e)=>{switch(r[e]){case"%":return kk(r,e);case"\\":return qk(r,e);default:return _k(r,e)}},kk=(r,e)=>{let t=r.length,n=e+1;for(;n<t&&r[n]!==`
`;)n++;return{token:{start:e,end:n,text:r.slice(e,n)},nextIndex:n}},qk=(r,e)=>{let t=r.length,n=e+1,i=r[n];if(/[A-Za-z]/.test(i))do n++;while(n<t&&/[A-Za-z]/.test(r[n]));else n++;return{token:{start:e,end:n,text:r.slice(e,n)},nextIndex:n}},_k=(r,e)=>{let t=e+1;return{token:{start:e,end:t,text:r.slice(e,t)},nextIndex:t}};var Ak=new Set(["\\left","\\bigl","\\Bigl","\\biggl","\\Biggl"]),Rk=new Set(["\\right","\\bigr","\\Bigr","\\biggr","\\Biggr"]),Ck=new Set(["(",")","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","<",">","\\langle","\\rangle","\\lt","\\gt","|","\\vert","\\lvert","\\rvert","\\|","\\Vert","\\lVert","\\rVert","\\lfloor","\\rfloor","\\lceil","\\rceil","\\ulcorner","\\urcorner","/","\\\\","\\backslash","\\uparrow","\\downarrow","\\Uparrow","\\Downarrow","."]),Ik=r=>Ak.has(r.text),ev=r=>Rk.has(r.text),ru=r=>Ck.has(r.text),jk=(r,e)=>e.has(r.text),Zk=(r,e,t)=>{let n=r[e];if(e>0){let i=r[e-1];if(ev(i)&&ru(n))return!0;if(Ik(i)&&ru(n))return!1}return jk(n,t)},Wk=(r,e)=>{let t=r[e];if(!ev(t))return!1;if(e+1>=r.length)return!0;let n=r[e+1];return!ru(n)},Mo=(r,e)=>{if(!e.mode.inMath())return!1;let t=e.getBounds();if(!t)return!1;let{inner_start:n,inner_end:i,outer_end:o}=t;if(o<=e.pos)return!1;let s=r.state.doc,a=r.state.selection.main.to,l=a-n,u=s.sliceString(n,i),c=Ky(u),p=ae(r).taboutClosingSymbols,O=c.findIndex(g=>g.end>l),f=O===-1?c.length:O;for(let g=f;g<c.length;g++){if(Zk(c,g,p))return bt(r,n+c[g].end),!0;if(Wk(c,g))return console.warn("[tabout] Found right command without following delimiter:",c[g].text,"at index",n+c[g].start),bt(r,n+c[g].end),!0}if(!(s.sliceString(a,i).trim().length===0))return!1;if(e.mode.inlineMath||e.mode.codeMath)bt(r,o);else{let g=s.lineAt(o),x=[];g.number===s.lines?x.push({changes:{from:g.to,to:g.to,insert:`
`},selection:{anchor:g.to+1}}):x.push({}),x[0].selection={anchor:g.to+1};let b=s.lineAt(a);b.text.trim()!==b.text&&x.push({changes:{from:b.from,to:b.to,insert:b.text.trim()}}),r.dispatch(...x)}return!0},tv=(r,e)=>{let t=r.state.selection.main;if(!t.empty)return!1;let n=t.from,i=En(r,n);return i===e&&[")","]","}"].includes(i)};var rv=(r,e,t,n)=>{let i=ae(r),o=!1;for(let s of i.matrixShortcutsEnvNames){let a={openSymbol:"\\begin{"+s+"}",closeSymbol:"\\end{"+s+"}"};if(o=e.isWithinEnvironment(e.pos,a),o)break}if(!o)return!1;if(t==="Tab"&&r.state.selection.main.empty)return r.dispatch(r.state.replaceSelection(" & ")),!0;if(t==="Enter"){if(n&&e.mode.blockMath){let s=r.state.doc,a=s.lineAt(e.pos).number+1,l=s.line(a);bt(r,l.to)}else if(n&&e.mode.inlineMath)Mo(r,e);else if(e.mode.blockMath){let l=r.state.doc.lineAt(e.pos).text.match(/^\s*/),u=l?l[0]:"";r.dispatch(r.state.replaceSelection(` \\\\
${u}`))}else r.dispatch(r.state.replaceSelection(" \\\\ "));return!0}else return!1};var Vo=require("@codemirror/view"),Cr=require("@codemirror/state"),Ir=require("obsidian");var nv=require("@codemirror/language"),nu=Cr.StateEffect.define(),Go=Cr.StateField.define({create:()=>[],update(r,e){for(let t of e.effects)if(t.is(nu))return t.value;return r},provide:r=>Vo.showTooltip.computeN([r],e=>e.field(r).map(t=>t.tooltip))}),Xk=(r,e,t,n)=>{let i=(l,u,c,p,O)=>{let f=0;for(let d=u;d>=0&&d<l.length;d+=O)if(l[d]===c&&f++,l[d]===p){if(f===0)return d;f--}return-1},o=r[e]===n?e-1:e,s=i(r,o,n,t,-1),a=i(r,e,t,n,1);return{left:s,right:a}};function iv(r){if(!(r.docChanged||r.selectionSet))return;let t=ae(r.state),n=Ee(r.view),i=Mk(r.state,n);if(!i){r.state.field(Go).length>0&&r.view.dispatch({effects:[nu.of([])]});return}let o=r.state.sliceDoc(i.inner_start,i.inner_end),s=n.pos,l=(0,nv.syntaxTree)(r.state).cursor();l.moveTo(s,-1);let u;l.name==="math_tag"&&l.from<s&&l.to>=s?u=l.from:u=s;let c=u-i.inner_start,p,{left:O,right:f}=t.mathPreviewBracketHighlighting?Xk(o,c,"{","}"):{left:-1,right:-1};if(f!==-1&&O!==-1){let b=Math.max(O+1,c);p=o.slice(0,O+1)+"\\style{background-color: var(--latex-suite-math-preview-highlight);}{"+o.slice(O+1,b)+t.mathPreviewCursor+o.slice(b,f)+"}"+o.slice(f)}else p=o.slice(0,c)+t.mathPreviewCursor+o.slice(c);let d=r.state.field(Go);if(d.length===1&&d[0].equation===p&&d[0].bounds.inner_start===i.inner_start&&d[0].bounds.inner_end===i.inner_end)return;let m=t.mathPreviewPositionIsAbove,g=()=>{let b=document.createElement("div");b.addClass("cm-tooltip-cursor");try{let T=(0,Ir.renderMath)(p,n.mode.blockMath||n.mode.codeMath),S=T.querySelector('[style*="background-color: var(--latex-suite-math-preview-highlight)"]');S==null||S.addClass("latex-suite-math-preview-highlight"),S==null||S.style.removeProperty("background-color"),b.appendChild(T),(0,Ir.finishRenderMath)()}catch(T){console.error("Error rendering math in tooltip:",T),b.textContent=o}return{dom:b}},x=[];if(n.mode.blockMath||n.mode.codeMath)x=[{pos:m?i.inner_start:i.inner_end,above:m,strictSide:!0,arrow:!0,create:g}];else if(n.mode.inlineMath&&m)x=[{pos:i.inner_start,above:!0,strictSide:!0,arrow:!0,create:g}];else if(n.mode.inlineMath&&!m){let b=Cr.EditorSelection.range(i.inner_end,i.inner_end);x=[{pos:Math.max(i.inner_start,r.view.moveToLineBoundary(b,!1).anchor),above:!1,strictSide:!0,arrow:!0,create:g}]}r.view.dispatch({effects:[nu.of(x.map(b=>({equation:p,bounds:i,pos:b.pos,tooltip:b})))]})}function Mk(r,e){if(!e.mode.inMath())return null;let t=r.field(Ir.editorLivePreviewField);if(e.mode.blockMath&&t)return null;let n=e.getBounds();return!n||r.sliceDoc(n.inner_start,n.inner_end).trim()===""?null:n}var ov=Vo.EditorView.baseTheme({".cm-tooltip.cm-tooltip-cursor":{backgroundColor:"var(--background-secondary)",color:"var(--text-normal)",border:"1px solid var(--background-modifier-border-hover)",padding:"4px 6px",borderRadius:"6px","& .cm-tooltip-arrow:before":{borderTopColor:"var(--background-modifier-border-hover)",borderBottomColor:"var(--background-modifier-border-hover)"},"& .cm-tooltip-arrow:after":{borderTopColor:"var(--background-secondary)",borderBottomColor:"var(--background-secondary)"},"& p":{margin:"0px"},"& mjx-container":{padding:"2px !important"}}});var av=r=>{ae(r.state).mathPreviewEnabled&&iv(r),Ny(r)},Gk=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Do=sv.ViewPlugin.fromClass(class{constructor(){this.lastKeyboardEvent=null}onKeydown(r,e){if(r.key=="Unidentified"||r.key=="Process"||r.key=="Dead"){this.lastKeyboardEvent=r;return}else this.lastKeyboardEvent=null;if(Gk.includes(r.key))return;uv(r.key,r.shiftKey,r.ctrlKey||r.metaKey,Fl(e,r),e)&&r.preventDefault()}},{eventHandlers:{keydown(r,e){e.plugin(Do).onKeydown(r,e)}}}),lv=(r,e,t,n)=>{var o;let i=(o=r.plugin(Do))==null?void 0:o.lastKeyboardEvent;return n==="\0\0"?!0:n.length==1&&i&&(n===" "&&(n="Tab"),uv(n,i.shiftKey,i.ctrlKey||i.metaKey,Fl(r,i),r))?(Py(r),!0):!1},uv=(r,e,t,n,i)=>{let o=ae(i),s=Ee(i),a=!1;if(o.autoDelete$&&r==="Backspace"&&s.mode.inMath()){let l=En(i,s.pos),u=En(i,s.pos-1);if(l==="$"&&u==="$")return ko(i,s.pos-1,s.pos+1,""),jo(i),!0}if(o.snippetsEnabled){if(o.suppressSnippetTriggerOnIME&&n)return;if(!t)try{if(a=Hy(i,s,r),a)return!0}catch(l){_n(i),console.error(l)}}return!!(r==="Tab"&&(a=Yy(i),a)||o.autofractionEnabled&&s.mode.strictlyInMath()&&r==="/"&&(a=Jy(i,s),a)||o.matrixShortcutsEnabled&&s.mode.strictlyInMath()&&["Tab","Enter"].contains(r)&&(a=rv(i,s,r,e),a)||o.taboutEnabled&&(r==="Tab"&&i.state.selection.main.empty||tv(i,r))&&(a=Mo(i,s),a))};var Xn=require("@codemirror/view");var cv=[_r.extension,Co.extension,By];var ke=require("@codemirror/view"),Yt=require("@codemirror/state");var pv={aleph:"\u2135",amalg:"\u2210",angle:"\u2220",approx:"\u2248",ast:"\u2217",asymp:"\u224D",backslash:"\u2216",bigcap:"\u2229",bigcirc:"\u25CB",bigcup:"\u222A",bigodot:"\u2299",bigoplus:"\u2295",bigotimes:"\u2297",bigsqcup:"\u2294",bigtriangledown:"\u2207",bigtriangleup:"\u2206",bigvee:"\u22C1",bigwedge:"\u22C0",bot:"\u22A5",bowtie:"\u22C8",bullet:"\u2022",cap:"\u2229",cdots:"\u22EF",cdot:"\xB7",circ:"\u2218",clubsuit:"\u2663",cong:"\u2245",coprod:"\u2210",copyright:"\xA9",cup:"\u222A",dagger:"\u2020",dashv:"\u22A3",ddagger:"\u2021",ddots:"\u22F1",diamond:"\u22C4",diamondsuit:"\u2662",div:"\xF7",doteq:"\u2250",dots:"\u2026",downarrow:"\u2193",Downarrow:"\u21D3",ell:"\u2113",emptyset:"\xD8",equiv:"\u2261",exists:"\u2203",flat:"\u266D",forall:"\u2200",frown:"\u2054",geqslant:"\u2265",geq:"\u2265",gets:"\u2190",ge:"\u2265",gg:"\u27EB",gt:">",hbar:"\u210F",heartsuit:"\u2661",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",iff:"\u21D4",Im:"\u2111",imath:"\u0269",infty:"\u221E",iiint:"\u222D",iint:"\u222C",int:"\u222B",in:"\u2208",jmath:"\u{1D6A5}",land:"\u2227",lnot:"\xAC",lceil:"\u2308",ldots:"\u2026",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftrightarrow:"\u2194",Leftrightarrow:"\u21D4",lhd:"\u25C1",rhd:"\u25B7",leftarrow:"\u2190",Leftarrow:"\u21D0",left:"",leq:"\u2264",le:"\u2264",ll:"\u226A",lmoustache:"\u256D",lor:"\u2228",lt:"<",mapsto:"\u21A6",middle:"",mid:"\u2223",models:"\u22A8",mp:"\u2213",nabla:"\u2207",natural:"\u266E",nearrow:"\u2197",neg:"\xAC",neqslant:"\u2260",neq:"\u2260",ne:"\u2260",ni:"\u220B",notin:"\u2209",nwarrow:"\u2196",odot:"\u2299",oint:"\u222E",ominus:"\u2296",oplus:"\u2295",oslash:"\u2298",otimes:"\u2297",owns:"\u220B",P:"\xB6",parallel:"\u2551",partial:"\u2202",perp:"\u22A5",pm:"\xB1",preceq:"\u2AAF",prec:"\u227A",prime:"\u2032",prod:"\u220F",propto:"\u221D",rceil:"\u2309",Re:"\u211C",qquad:"\u2001",quad:"\u2000",rightarrow:"\u2192",Rightarrow:"\u21D2",right:"",rightleftharpoons:"\u21CC",rmoustache:"\u256E",S:"\xA7",searrow:"\u2198",setminus:"\u29F5",sharp:"\u266F",simeq:"\u22CD",sim:"\u223C",smile:"\u203F",spadesuit:"\u2660",sqcap:"\u2293",sqcup:"\u2294",sqsubseteq:"\u2291",sqsubset:"\u228F",sqsupseteq:"\u2292",sqsupset:"\u2290",square:"\u25A1",star:"\u272B",subseteq:"\u2286",subset:"\u2282",succeq:"\u2AB0",succ:"\u227B",sum:"\u2211",supseteq:"\u2287",supset:"\u2283",surd:"\u221A",swarrow:"\u2199",times:"\xD7",top:"\u22A4",to:"\u2192",triangleleft:"\u22B2",triangleright:"\u22B3",triangle:"\u2206",uparrow:"\u2191",Uparrow:"\u21D1",updownarrow:"\u2195",Updownarrow:"\u21D5",vdash:"\u22A2",vdots:"\u22EE",vee:"\u2228",wedge:"\u2227",wp:"\u2118",wr:"\u2240",implies:"\u21D2",choose:"C",sqrt:"\u221A",coloneqq:"\u2254",colon:":",displaystyle:" ",",":" ",":":" ",";":" "},fv=["arcsin","arccos","arctan","sinh","cosh","tanh","coth","sin","cos","tan","sec","csc","cot","exp","ker","limsup","lim","sup","deg","gcd","log","lg","ln","Pr","det","hom","arg","dim","liminf","min","max"],Ov={"{1}{2}":"\xBD","{1}{3}":"\u2153","{2}{3}":"\u2154","{1}{4}":"\xBC","{1}{5}":"\u2155","{2}{5}":"\u2156","{3}{5}":"\u2157","{4}{5}":"\u2158","{1}{6}":"\u2159","{5}{6}":"\u215A","{1}{8}":"\u215B","{3}{8}":"\u215C","{5}{8}":"\u215D","{7}{8}":"\u215E"},iu={alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03F5",varepsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",vartheta:"\u03D1",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",pi:"\u03C0",varpi:"\u03D6",rho:"\u03C1",varrho:"\u03F1",sigma:"\u03C3",varsigma:"\u03C2",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03D5",varphi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",Gamma:"\u0393",Delta:"\u0394",Theta:"\u0398",Lambda:"\u039B",Xi:"\u039E",Pi:"\u03A0",Sigma:"\u03A3",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9"},hv={"(":"\u207D",")":"\u207E","+":"\u207A","-":"\u207B","=":"\u207C",":":"\uFE13",";":"\uFE14","<":"\u02C2",">":"\u02C3",0:"\u2070",1:"\xB9",2:"\xB2",3:"\xB3",4:"\u2074",5:"\u2075",6:"\u2076",7:"\u2077",8:"\u2078",9:"\u2079",a:"\u1D43",b:"\u1D47",c:"\u1D9C",d:"\u1D48",e:"\u1D49",f:"\u1DA0",g:"\u1D4D",h:"\u02B0",i:"\u2071",j:"\u02B2",k:"\u1D4F",l:"\u02E1",m:"\u1D50",n:"\u207F",o:"\u1D52",p:"\u1D56",r:"\u02B3",s:"\u02E2",t:"\u1D57",u:"\u1D58",v:"\u1D5B",w:"\u02B7",x:"\u02E3",y:"\u02B8",z:"\u1DBB",A:"\u1D2C",B:"\u1D2E",D:"\u1D30",E:"\u1D31",G:"\u1D33",H:"\u1D34",I:"\u1D35",J:"\u1D36",K:"\u1D37",L:"\u1D38",M:"\u1D39",N:"\u1D3A",O:"\u1D3C",P:"\u1D3E",R:"\u1D3F",T:"\u1D40",U:"\u1D41",V:"\u2C7D",W:"\u1D42"},dv={"(":"\u208D",")":"\u208E","+":"\u208A","-":"\u208B","=":"\u208C",0:"\u2080",1:"\u2081",2:"\u2082",3:"\u2083",4:"\u2084",5:"\u2085",6:"\u2086",7:"\u2087",8:"\u2088",9:"\u2089",a:"\u2090",e:"\u2091",h:"\u2095",i:"\u1D62",j:"\u2C7C",k:"\u2096",l:"\u2097",m:"\u2098",n:"\u2099",o:"\u2092",p:"\u209A",r:"\u1D63",s:"\u209B",t:"\u209C",u:"\u1D64",v:"\u1D65",x:"\u2093"};var mv={"left<":"\u3008","right>":"\u3009",langle:"\u3008",rangle:"\u3009",lvert:"|",rvert:"|",lVert:"||",rVert:"||",vert:"|"},gv={" ":" ",0:"\u{1D7D8}",1:"\u{1D7D9}",2:"\u{1D7DA}",3:"\u{1D7DB}",4:"\u{1D7DC}",5:"\u{1D7DD}",6:"\u{1D7DE}",7:"\u{1D7DF}",8:"\u{1D7E0}",9:"\u{1D7E1}",A:"\u{1D538}",B:"\u{1D539}",C:"\u2102",D:"\u{1D53B}",E:"\u{1D53C}",F:"\u{1D53D}",G:"\u{1D53E}",H:"\u210D",I:"\u{1D540}",J:"\u{1D541}",K:"\u{1D542}",L:"\u{1D543}",M:"\u{1D544}",N:"\u2115",O:"\u{1D546}",P:"\u2119",Q:"\u211A",R:"\u211D",S:"\u{1D54A}",T:"\u{1D54B}",U:"\u{1D54C}",V:"\u{1D54D}",W:"\u{1D54E}",X:"\u{1D54F}",Y:"\u{1D550}",Z:"\u2124",a:"\u{1D552}",b:"\u{1D553}",c:"\u{1D554}",d:"\u{1D555}",e:"\u{1D556}",f:"\u{1D557}",g:"\u{1D558}",h:"\u{1D559}",i:"\u{1D55A}",j:"\u{1D55B}",k:"\u{1D55C}",l:"\u{1D55D}",m:"\u{1D55E}",n:"\u{1D55F}",o:"\u{1D560}",p:"\u{1D561}",q:"\u{1D562}",r:"\u{1D563}",s:"\u{1D564}",t:"\u{1D565}",u:"\u{1D566}",v:"\u{1D567}",w:"\u{1D568}",x:"\u{1D569}",y:"\u{1D56A}",z:"\u{1D56B}"},yv={A:"\u{1D4D0}",B:"\u{1D4D1}",C:"\u{1D4D2}",D:"\u{1D4D3}",E:"\u{1D4D4}",F:"\u{1D4D5}",G:"\u{1D4D6}",H:"\u{1D4D7}",I:"\u{1D4D8}",J:"\u{1D4D9}",K:"\u{1D4DA}",L:"\u{1D4DB}",M:"\u{1D4DC}",N:"\u{1D4DD}",O:"\u{1D4DE}",P:"\u{1D4DF}",Q:"\u{1D4E0}",R:"\u{1D4E1}",S:"\u{1D4E2}",T:"\u{1D4E3}",U:"\u{1D4E4}",V:"\u{1D4E5}",W:"\u{1D4E6}",X:"\u{1D4E7}",Y:"\u{1D4E8}",Z:"\u{1D4E9}"};function su(r){let e=["\\","(",")","+","-","[","]","{","}"];for(let t of e)r=r.replaceAll(t,"\\"+t);return r}function bv(r,e){let t="\\limits";return r.substring(e,e+t.length)===t?e+t.length:e}function jn(r,e,t,n,i,o=!0){let s=Object.keys(n),a=e+"("+su(s.join("|"))+")"+t,l=new RegExp(a,"g"),u=[...r.matchAll(l)],c=[];for(let p of u){let O=p[1];if(!o){let d=p.index+p[0].length;if(r.charAt(d).match(/[a-zA-Z]/))continue}let f=bv(r,p.index+p[0].length);c.push(ie({start:p.index,end:f,text:n[O],class:i}))}return c}function Ut(r,e,t){let n="\\\\"+e+"{([A-Za-z])}",i=new RegExp(n,"g"),o=[...r.matchAll(i)],s=[];for(let a of o){let l=a[1];s.push(ie({start:a.index,end:a.index+a[0].length,text:l+t,class:"latex-suite-unicode"}))}return s}function vv(r,e,t){let i=(e?"\\^":"_")+"{([A-Za-z0-9\\()\\[\\]/+-=<>':;\\\\ *]+)}",o=new RegExp(i,"g"),s=[...r.matchAll(o)],a=[];for(let l of s){let u=l[1],c=e?"sup":"sub",p=Object.keys(t),O="\\\\("+su(p.join("|"))+")",f=new RegExp(O,"g"),d=u.replace(f,(m,g)=>t[g]);a.push(ie({start:l.index,end:l.index+l[0].length,text:d,class:"cm-number",elementType:c}))}return a}function Vk(r,e){let t="\\\\(mathbf|boldsymbol|underline|mathrm|text|mathbb){([A-Za-z0-9 ]+)}",n=new RegExp(t,"g"),i=[...r.matchAll(n)],o=[];for(let s of i){let a=s[1],l=s[2],u=s.index,c=u+s[0].length;if(a==="mathbf"||a==="boldsymbol")o.push(ie({start:u,end:c,text:l,class:"cm-concealed-bold"}));else if(a==="underline")o.push(ie({start:u,end:c,text:l,class:"cm-concealed-underline"}));else if(a==="mathrm")o.push(ie({start:u,end:c,text:l,class:"cm-concealed-mathrm"}));else if(a==="text")u>0&&r.charAt(u-1)==="_"&&o.push(ie({start:u-1,end:c,text:l,class:"cm-concealed-mathrm",elementType:"sub"}));else if(a==="mathbb"){let O=Array.from(l).map(f=>e[f]).join("");o.push(ie({start:u,end:c,text:O}))}}return o}function Dk(r,e){let t=Object.keys(e),n="\\\\(underline|boldsymbol){\\\\("+su(t.join("|"))+")}",i=new RegExp(n,"g"),o=[...r.matchAll(i)],s=[];for(let a of o){let l=a[1],u=a[2],c=a.index,p=c+a[0].length;l==="underline"?s.push(ie({start:c,end:p,text:e[u],class:"cm-concealed-underline"})):l==="boldsymbol"&&s.push(ie({start:c,end:p,text:e[u],class:"cm-concealed-bold"}))}return s}function Bk(r){let e="\\\\text{([A-Za-z0-9-.!?() ]+)}",t=new RegExp(e,"g"),n=[...r.matchAll(t)],i=[];for(let o of n){let s=o[1],a=o.index,l=a+o[0].length;i.push(ie({start:a,end:l,text:s,class:"cm-concealed-mathrm cm-variable-2"}))}return i}function Nk(r,e){let t="(\\\\("+e.join("|")+"))([^a-zA-Z]|$)",n=new RegExp(t,"g"),i=[...r.matchAll(n)],o=[];for(let s of i){let a=s[2],l=s.index,u=bv(r,l+s[1].length);o.push(ie({start:l,end:u,text:a,class:"cm-concealed-mathrm cm-variable-2"}))}return o}function zk(r,e,t,n,i){let o=e+"([A-Z]+)"+t,s=new RegExp(o,"g"),a=[...r.matchAll(s)],l=[];for(let u of a){let c=u[1],O=Array.from(c).map(f=>n[f]).join("");l.push(ie({start:u.index,end:u.index+u[0].length,text:O,class:i}))}return l}function Fk(r){let e="\u3008",t="\u3009",n="|",i=[];for(let o of r.matchAll(/\\(braket|bra|ket){/g)){let s=K(r,o.index,"{","}",!1);if(s===-1)continue;let a=o.index,l=a+o[0].length-1,u=o[1],c=u==="ket"?n:e,p=u==="bra"?n:t;i.push(ie({start:a,end:l,text:""},{start:l,end:l+1,text:c,class:"cm-bracket"},{start:s,end:s+1,text:p,class:"cm-bracket"}))}return i}function Lk(r){let e=[];for(let t of r.matchAll(/\\set\{/g)){let n=t.index,i=n+t[0].length-1,o=K(r,n,"{","}",!1);o!==-1&&e.push(ie({start:n,end:i,text:""},{start:i,end:i+1,text:"{",class:"cm-bracket"},{start:o,end:o+1,text:"}",class:"cm-bracket"}))}return e}function Uk(r){let e=[];for(let t of r.matchAll(/\\(frac|dfrac|tfrac|gfrac){/g)){let n=K(r,t.index,"{","}",!1);if(n===-1||r.charAt(n+1)!=="{")continue;let i=K(r,n+1,"{","}",!1);if(i===-1)continue;let o=t.index,s=o+t[0].length-1,a=n+1;e.push(ie({start:o,end:s,text:""},{start:s,end:s+1,text:"(",class:"cm-bracket"},{start:n,end:n+1,text:")",class:"cm-bracket"},{start:n+1,end:n+1,text:"/",class:"cm-bracket"},{start:a,end:a+1,text:"(",class:"cm-bracket"},{start:i,end:i+1,text:")",class:"cm-bracket"}))}return e}function Yk(r){let e="\\\\operatorname{([A-Za-z]+)}",t=new RegExp(e,"g"),n=[...r.matchAll(t)],i=[];for(let o of n){let s=o[1],a=o.index,l=a+o[0].length;i.push(ie({start:a,end:l,text:s,class:"cm-concealed-mathrm cm-variable-2"}))}return i}var ou=Xe(Xe({},iu),pv);function Sv(r,e){let t=Ft(r).getEquations(r.state),n={};for(let o of t.values()){if(o in e){n[o]=e[o];continue}let s=[...jn(o,"\\^","",hv),...jn(o,"_","",dv),...jn(o,"\\\\frac","",Ov),...jn(o,"\\\\","",ou,void 0,!1),...vv(o,!0,ou),...vv(o,!1,ou),...Ut(o,"hat","\u0302"),...Ut(o,"dot","\u0307"),...Ut(o,"ddot","\u0308"),...Ut(o,"overline","\u0304"),...Ut(o,"bar","\u0304"),...Ut(o,"tilde","\u0303"),...Ut(o,"vec","\u20D7"),...jn(o,"\\\\","",mv,"cm-bracket"),...zk(o,"\\\\mathcal{","}",yv),...Dk(o,iu),...Vk(o,gv),...Bk(o),...Fk(o),...Lk(o),...Uk(o),...Nk(o,fv),...Yk(o)];n[o]=s}e=n;let i=[];for(let[o,s]of t.entries())for(let a of n[s])i.push(a.map(l=>Qt(Xe({},l),{start:l.start+o,end:l.end+o})));return{specs:i,cached_equations:e}}var Bo=require("obsidian");function ie(...r){return r}var au=class extends ke.WidgetType{constructor(t,n,i){super();this.symbol=t;this.className=n||"",this.elementType=i||"span"}eq(t){return t.symbol==this.symbol&&t.className===this.className&&t.elementType===this.elementType}toDOM(){let t=document.createElement(this.elementType);return t.className="cm-math "+this.className,t.textContent=this.symbol,t}ignoreEvent(){return!1}},lu=class extends ke.WidgetType{constructor(t){super();this.symbol=t}eq(t){return t.symbol==this.symbol}toDOM(){let t=document.createElement("span");return t.className="cm-math",t.textContent=this.symbol,t}ignoreEvent(){return!1}};function Hk(r,e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n){let i=r.changes.mapPos(e[n].start,1),o=r.changes.mapPos(e[n].end,-1);if(!(i==t[n].start&&o==t[n].end))return!1}return!0}function Jk(r,e){let t="apart";for(let n of r.ranges)for(let i of e){let o=Math.max(n.from,i.start),s=Math.min(n.to,i.end);if(o===s&&(o===i.start||o===i.end)){t="edge";continue}if(o<=s)return"within"}return t}function Kk(r,e,t,n){return t||e==="apart"?"conceal":e==="within"||!n||!r||r==="within"?"reveal":"delay"}function xv(r){let e=[];for(let t of r)if(t.enable)for(let n of t.spec)if(n.start===n.end)e.push(ke.Decoration.widget({widget:new lu(n.text),block:!1}).range(n.start,n.end));else{let i=n.text==="";e.push(ke.Decoration.replace({widget:new au(n.text,n.class,n.elementType),inclusiveStart:i,inclusiveEnd:!1,block:!1}).range(n.start,n.end))}return ke.Decoration.set(e,!0)}function Qv(r){let e=r.filter(i=>i.enable).flatMap(i=>i.spec).sort((i,o)=>i.start-o.start),t=new class extends Yt.RangeValue{},n=new Yt.RangeSetBuilder;for(let i=0;i<e.length;i++)e[i].text===""?i+1!=e.length&&e[i].end==e[i+1].start?(n.add(e[i].start,e[i+1].end,t),i++):n.add(e[i].start,e[i].end+1,t):n.add(e[i].start,e[i].end,t);return n.finish()}var $v=r=>ke.ViewPlugin.fromClass(class{constructor(){this.delayedReveal=(0,Bo.debounce)((e,t)=>{for(let n of e)n.enable=!1;this.decorations=xv(this.concealments),this.atomicRanges=Qv(this.concealments),t.dispatch()},r,!0);this.concealments=[],this.decorations=ke.Decoration.none,this.atomicRanges=Yt.RangeSet.empty,this.delayEnabled=r>0,this.cached_equations={}}update(e){var l,u;if(!(e.docChanged||e.viewportChanged||e.selectionSet))return;this.delayedReveal.cancel();let t=e.state.selection,n=(u=(l=e.view.plugin(Bo.livePreviewState))==null?void 0:l.mousedown)!=null?u:!1,{specs:i,cached_equations:o}=Sv(e.view,this.cached_equations);this.cached_equations=o;let s=[],a=[];for(let c of i){let p=Jk(t,c),O=this.concealments.find(m=>Hk(e,m.spec,c)),f=Kk(O==null?void 0:O.cursorPosType,p,n,this.delayEnabled),d={spec:c,cursorPosType:p,enable:f!=="reveal"};f==="delay"&&a.push(d),s.push(d)}a.length>0&&this.delayedReveal(a,e.view),this.concealments=s,this.decorations=xv(this.concealments),this.atomicRanges=Qv(this.concealments)}},{decorations:e=>e.decorations,provide:e=>ke.EditorView.atomicRanges.of(t=>{var n,i;return(i=(n=t.plugin(e))==null?void 0:n.atomicRanges)!=null?i:Yt.RangeSet.empty})});var tt=require("@codemirror/view"),Pv=require("@codemirror/state");var eq=3;function Zn(r,e){return tt.Decoration.mark({inclusive:!0,attributes:{},class:e}).range(r,r+1)}function wv(r,e){let t=Ft(r).getEquations(r.state),n={};for(let s of t.values()){if(s in e){n[s]=e[s];continue}let a=["{","[","("],l=["}","]",")"],u=[],c=[];for(let p=0;p<s.length;p++){let O=s.charAt(p);if(a.contains(O))u.push({char:O,pos:p});else if(l.contains(O)){let f=u.at(-1);if(f&&qr(f.char)===O){u.pop();let d=f.pos,g="latex-suite-color-bracket-"+u.length%eq;c.push({pos:d,className:g}),c.push({pos:p,className:g})}}}n[s]=c}e=n;let i=[];for(let[s,a]of t.entries()){let l=n[a];if(l)for(let u of l)i.push(Zn(s+u.pos,u.className))}return{decorations:tt.Decoration.set(i,!0),cached_equations:e}}function tq(r,e,t){let n=t.getBounds(e);if(!n)return-1;let{inner_start:i,inner_end:o}=n,s=r.state.doc.sliceString(i,o);for(let a=e-i;a>0;a--){let l=s.charAt(a);if([")","]","}"].contains(l)){let u=l,c=kn(u),p=K(s,a,c,u,!0);if(p===-1)return-1;a=p,l=s.charAt(a)}else{if(!["{","(","["].contains(l))continue;let u=K(s,a,l,qr(l),!1);if(u===-1)continue;return{left:a+i,right:u+i}}}return-1}function Tv(r){let e=[],t=r.state.selection,n=t.ranges,i=r.state.doc.toString(),o=Ee(r);if(!o.mode.inMath())return tt.Decoration.none;let s=o.getBounds(t.main.to);if(!s)return tt.Decoration.none;let a=r.state.doc.sliceString(s.inner_start,s.inner_end),l=["{","[","("],u=["{","[","(","}","]",")"],c=!1;for(let p of n){for(let O=p.to;O>p.from-2;O--){let f=i.charAt(O);if(!u.contains(f))continue;let d,m,g=!1;l.contains(f)?(d=f,m=qr(d)):(m=f,d=kn(f),g=!0);let x=K(a,O-s.inner_start,d,m,g);if(x!==-1){x=x+s.inner_start,e.push(Zn(O,"latex-suite-highlighted-bracket")),e.push(Zn(x,"latex-suite-highlighted-bracket")),c=!0;break}}if(c)break;if(p.empty){let O=p.from-1,f=tq(r,O,o);if(f===-1)continue;e.push(Zn(f.left,"latex-suite-highlighted-bracket")),e.push(Zn(f.right,"latex-suite-highlighted-bracket")),c=!0;break}if(c)break}return tt.Decoration.set(e,!0)}var rq=tt.ViewPlugin.fromClass(class{constructor(r){this.cached_equations={};({decorations:this.decorations,cached_equations:this.cached_equations}=wv(r,this.cached_equations))}update(r){(r.docChanged||r.viewportChanged)&&({decorations:this.decorations,cached_equations:this.cached_equations}=wv(r.view,this.cached_equations))}},{decorations:r=>r.decorations}),Ev=Pv.Prec.lowest(rq.extension),kv=tt.ViewPlugin.fromClass(class{constructor(r){this.decorations=Tv(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=Tv(r.view))}},{decorations:r=>r.decorations});var No=class extends qe.Plugin{constructor(){super(...arguments);this.editorExtensions=[]}onload(){return $(this,null,function*(){yield this.loadSettings(),this.loadIcons(),this.addSettingTab(new To(this.app,this)),(0,qe.loadMathJax)(),this.legacyEditorWarning(),this.IMEEditorWarning(),this.registerEditorExtension(this.editorExtensions),this.watchFiles(),this.addEditorCommands()})}onunload(){}legacyEditorWarning(){var t;if((t=this.app.vault.config)!=null&&t.legacyEditor){let n="Obsidian Latex Suite: This plugin does not support the legacy editor. Switch to Live Preview mode to use this plugin.";new qe.Notice(n,1e5),console.error(n);return}}IMEEditorWarning(){if(Eo()&&!this.settings.suppressIMEWarning&&this.settings.suppressSnippetTriggerOnIME){let t=createFragment();t.appendText("Obsidian Latex Suite: this plugin supports your IME keyboard, but "),t.createEl("code",{text:"Advanced settings > Don't trigger snippets when IME is active"}),t.appendText(" is currently enabled. You may want to disable it in the plugin settings to fully enable automatic snippets. Be aware that this may cause unexpected snippet triggers while using your IME. To turn this warning off, enable "),t.createEl("code",{text:"Advanced settings > Suppress IME warning"}),t.appendText("."),new qe.Notice(t,1e4),console.info(t)}}loadSettings(){return $(this,null,function*(){let t=yield this.loadData(),n=t?"basicSettings"in t:!1;function i(o){return Qt(Xe(Xe({},o.basicSettings),o.rawSettings),{snippets:o.snippets})}if(n&&(t=i(t)),this.settings=Object.assign({},te,t),n&&this.saveSettings(),this.settings.loadSnippetsFromFile||this.settings.loadSnippetVariablesFromFile){let o=yield this.getSettingsSnippetVariables(),s=yield this.getSettingsSnippets(o);this.CMSettings=gn(s,this.settings),this.app.workspace.onLayoutReady(()=>{this.processSettings()})}else yield this.processSettings()})}saveSettings(t=!1){return $(this,null,function*(){yield this.saveData(this.settings),this.processSettings(t)})}getSettingsSnippetVariables(){return $(this,null,function*(){try{return yield $t(this.settings.snippetVariables)}catch(t){return new qe.Notice(`Failed to load snippet variables from settings: ${t}`),console.error(`Failed to load snippet variables from settings: ${t}`),{}}})}getSettingsSnippets(t){return $(this,null,function*(){try{return yield tr(this.settings.snippets,t)}catch(n){return new qe.Notice(`Failed to load snippets from settings: ${n}`),console.error(`Failed to load snippets from settings: ${n}`),[]}})}getSnippets(t,n){return $(this,null,function*(){let i=dg(this),o=this.settings.loadSnippetVariablesFromFile?yield mg(this,i):yield this.getSettingsSnippetVariables(),s=yield gg(this,i);this.settings.loadSnippetVariablesFromFile&&Object.assign(o,s);let a=this.settings.loadSnippetsFromFile?yield yg(this,i,o):yield this.getSettingsSnippets(o);return this.showSnippetsLoadedNotice(a.length,Object.keys(o).length,t,n),a})}processSettings(t=!1,n=!1){return $(this,null,function*(){this.CMSettings=gn(yield this.getSnippets(t,n),this.settings),this.setEditorExtensions(),this.app.workspace.updateOptions()})}setEditorExtensions(){for(;this.editorExtensions.length;)this.editorExtensions.pop();if(this.editorExtensions.push([Wn.Prec.highest(Jl.extension),Wn.Prec.highest(Hl.extension),_y(this.CMSettings),Wn.Prec.highest(Do.extension),Wn.Prec.highest(Xn.EditorView.inputHandler.of(lv)),Xn.EditorView.updateListener.of(av),cv]),this.CMSettings.concealEnabled){let t=this.CMSettings.concealRevealTimeout;this.editorExtensions.push($v(t).extension)}this.CMSettings.colorPairedBracketsEnabled&&this.editorExtensions.push(Ev),this.CMSettings.highlightCursorBracketsEnabled&&this.editorExtensions.push(kv.extension),this.CMSettings.mathPreviewEnabled&&this.editorExtensions.push([Go.extension,ov,(0,Xn.tooltips)({position:"absolute"})])}showSnippetsLoadedNotice(t,n,i,o){if(!(i||o))return;let s=i?"Loaded ":"Successfully reloaded ",a=[];this.settings.loadSnippetsFromFile&&a.push(`${t} snippets`),this.settings.loadSnippetVariablesFromFile&&a.push(`${n} snippet variables`);let l=" from files.";new qe.Notice(s+a.join(" and ")+l,5e3)}addEditorCommands(){for(let t of Iy(this))this.addCommand(t)}watchFiles(){this.app.workspace.onLayoutReady(()=>{let t={modify:pg,delete:Og,create:fg};for(let[n,i]of Object.entries(t))this.registerEvent(this.app.vault.on(n,o=>i(this,o)))})}loadIcons(){for(let[t,n]of Object.entries(Qy))(0,qe.addIcon)(t,n)}};
/* nosourcemap */