/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/

var aT=Object.create;var Fo=Object.defineProperty;var sT=Object.getOwnPropertyDescriptor;var oT=Object.getOwnPropertyNames;var cT=Object.getPrototypeOf,lT=Object.prototype.hasOwnProperty;var fT=(e,t,r)=>t in e?Fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var N=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ra=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gn=(e,t)=>{for(var r in t)Fo(e,r,{get:t[r],enumerable:!0})},e1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oT(t))!lT.call(e,i)&&i!==r&&Fo(e,i,{get:()=>t[i],enumerable:!(n=sT(t,i))||n.enumerable});return e};var Kn=(e,t,r)=>(r=e!=null?aT(cT(e)):{},e1(t||!e||!e.__esModule?Fo(r,"default",{value:e,enumerable:!0}):r,e)),uh=e=>e1(Fo({},"__esModule",{value:!0}),e);var Po=(e,t,r)=>(fT(e,typeof t!="symbol"?t+"":t,r),r),ah=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var du=(e,t,r)=>(ah(e,t,"read from private field"),r?r.call(e):t.get(e)),Mo=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},sh=(e,t,r,n)=>(ah(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var t1=(e,t,r)=>(ah(e,t,"access private method"),r);var r1,n1=N(()=>{r1="5"});var pi=N(()=>{n1();typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(r1)});var Oa,Ba,oh,La,Pi,Ct,bn,i1,Gl,Ho,ch,pt=N(()=>{Oa="[",Ba="[!",oh="[?",La="]",Pi={},Ct=Symbol(),bn=Symbol("filename"),i1=Symbol("hmr"),Gl="http://www.w3.org/1999/xhtml",Ho="http://www.w3.org/2000/svg",ch="http://www.w3.org/1998/Math/MathML"});var Vl,u1=N(()=>{Vl=!0});var a1,G,s1=N(()=>{a1=globalThis.process?.env?.NODE_ENV,G=a1&&!a1.toLowerCase().startsWith("prod")});var o1=N(()=>{});var rt=N(()=>{u1();s1();o1()});function Wu(e){return typeof e=="function"}function f1(e){return e()}function Ds(e){for(var t=0;t<e.length;t++)e[t]()}function zl(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}var mi,c1,Ai,Ns,lh,gr,Rr,ql,fh,l1,Fa,dh,Ft,st=N(()=>{mi=Array.isArray,c1=Array.prototype.indexOf,Ai=Array.prototype.includes,Ns=Array.from,lh=Object.keys,gr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,ql=Object.getOwnPropertyDescriptors,fh=Object.prototype,l1=Array.prototype,Fa=Object.getPrototypeOf,dh=Object.isExtensible;Ft=()=>{}});var jt,ks,d1,Jl,jl,Uo,$o,Yo,Gu,hh,Vu,ph,Pa,Dn,Qe=N(()=>{jt=Symbol("$state"),ks=Symbol("legacy props"),d1=Symbol(""),Jl=Symbol("proxy path"),jl=Symbol("attributes"),Uo=Symbol("class"),$o=Symbol("style"),Yo=Symbol("text"),Gu=Symbol("form reset"),hh=Symbol("hmr anchor"),Vu=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ph=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Pa=3,Dn=8});function h1(e){if(G){let t=new Error(`invariant_violation
An invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app \u2014 please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${e}"
https://svelte.dev/e/invariant_violation`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invariant_violation")}function Rs(e){if(G){let t=new Error(`lifecycle_outside_component
\`${e}(...)\` can only be used during component initialisation
https://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Ko=N(()=>{rt()});function m1(){if(G){let e=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/async_derived_orphan")}function mh(){if(G){let e=new Error("bind_invalid_checkbox_value\nUsing `bind:value` together with a checkbox input is not allowed. Use `bind:checked` instead\nhttps://svelte.dev/e/bind_invalid_checkbox_value");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/bind_invalid_checkbox_value")}function A1(){if(G){let e=new Error(`derived_references_self
A derived value cannot reference itself recursively
https://svelte.dev/e/derived_references_self`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/derived_references_self")}function Ah(e,t,r){if(G){let n=new Error(`each_key_duplicate
${r?`Keyed each block has duplicate key \`${r}\` at indexes ${e} and ${t}`:`Keyed each block has duplicate key at indexes ${e} and ${t}`}
https://svelte.dev/e/each_key_duplicate`);throw n.name="Svelte error",n}else throw new Error("https://svelte.dev/e/each_key_duplicate")}function g1(e,t,r){if(G){let n=new Error(`each_key_volatile
Keyed each block has key that is not idempotent \u2014 the key for item at index ${e} was \`${t}\` but is now \`${r}\`. Keys must be the same each time for a given item
https://svelte.dev/e/each_key_volatile`);throw n.name="Svelte error",n}else throw new Error("https://svelte.dev/e/each_key_volatile")}function b1(e){if(G){let t=new Error(`effect_in_teardown
\`${e}\` cannot be used inside an effect cleanup function
https://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function _1(){if(G){let e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function E1(e){if(G){let t=new Error(`effect_orphan
\`${e}\` can only be used inside an effect (e.g. during component initialisation)
https://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_orphan")}function x1(){if(G){let e=new Error(`effect_update_depth_exceeded
Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state
https://svelte.dev/e/effect_update_depth_exceeded`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function v1(){if(G){let e=new Error(`hydration_failed
Failed to hydrate the application
https://svelte.dev/e/hydration_failed`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/hydration_failed")}function y1(e){if(G){let t=new Error(`props_invalid_value
Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
https://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/props_invalid_value")}function T1(e){if(G){let t=new Error(`rune_outside_svelte
The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
https://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function w1(){if(G){let e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function I1(){if(G){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function C1(){if(G){let e=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function S1(){if(G){let e=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var br=N(()=>{rt();Ko()});function N1(e){G?console.warn(`%c[svelte] await_reactivity_loss
%cDetected reactivity loss when reading \`${e}\`. This happens when state is read in an async function after an earlier \`await\`
https://svelte.dev/e/await_reactivity_loss`,Mi,Hi):console.warn("https://svelte.dev/e/await_reactivity_loss")}function D1(e,t){G?console.warn(`%c[svelte] await_waterfall
%cAn async derived, \`${e}\` (${t}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app
https://svelte.dev/e/await_waterfall`,Mi,Hi):console.warn("https://svelte.dev/e/await_waterfall")}function k1(){G?console.warn(`%c[svelte] derived_inert
%cReading a derived belonging to a now-destroyed effect may result in stale values
https://svelte.dev/e/derived_inert`,Mi,Hi):console.warn("https://svelte.dev/e/derived_inert")}function R1(e,t,r){G?console.warn(`%c[svelte] hydration_attribute_changed
%cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${r}\`, will be ignored in favour of the server value
https://svelte.dev/e/hydration_attribute_changed`,Mi,Hi):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function O1(e){G?console.warn(`%c[svelte] hydration_html_changed
%c${e?`The value of an \`{@html ...}\` block ${e} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
https://svelte.dev/e/hydration_html_changed`,Mi,Hi):console.warn("https://svelte.dev/e/hydration_html_changed")}function qu(e){G?console.warn(`%c[svelte] hydration_mismatch
%c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
https://svelte.dev/e/hydration_mismatch`,Mi,Hi):console.warn("https://svelte.dev/e/hydration_mismatch")}function B1(){G?console.warn(`%c[svelte] lifecycle_double_unmount
%cTried to unmount a component that was not mounted
https://svelte.dev/e/lifecycle_double_unmount`,Mi,Hi):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Zl(e){G?console.warn(`%c[svelte] state_proxy_equality_mismatch
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
https://svelte.dev/e/state_proxy_equality_mismatch`,Mi,Hi):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}function L1(){G?console.warn(`%c[svelte] state_proxy_unmount
%cTried to unmount a state proxy, rather than a component
https://svelte.dev/e/state_proxy_unmount`,Mi,Hi):console.warn("https://svelte.dev/e/state_proxy_unmount")}function F1(){G?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",Mi,Hi):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var Mi,Hi,or=N(()=>{rt();Mi="font-weight: bold",Hi="font-weight: normal"});function Yt(e){de=e}function lt(e){if(e===null)throw qu(),Pi;return ke=e}function Zt(){return lt(Er(ke))}function be(e){if(de){if(Er(ke)!==null)throw qu(),Pi;ke=e}}function Br(e=1){if(de){for(var t=e,r=ke;t--;)r=Er(r);ke=r}}function gi(e=!0){for(var t=0,r=ke;;){if(r.nodeType===Dn){var n=r.data;if(n===La){if(t===0)return r;t-=1}else(n===Oa||n===Ba||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Er(r);e&&r.remove(),r=i}}function Os(e){if(!e||e.nodeType!==Dn)throw qu(),Pi;return e.data}var de,ke,bt=N(()=>{Qe();pt();or();Xt();de=!1});function Xl(e){return e===this.v}function Qo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ef(e){return!Qo(e,this.v)}var Wo=N(()=>{});function P1(){Ui=!0}var er,Ui,bi,cn=N(()=>{er=!1,Ui=!1,bi=!1});var gh=N(()=>{rt()});var Bs=N(()=>{rt();gh();st()});function qr(e,t){return e.label=t,rf(e.v,t),e}function rf(e,t){return e?.[Jl]?.(t),e}var Go,zu=N(()=>{pt();Bs();Qe();Be();$e();Go=null});function _i(e){let t=new Error,r=dT();return r.length===0?null:(r.unshift(`
`),gr(t,"stack",{value:r.join(`
`)}),gr(t,"name",{value:e}),t)}function dT(){let e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;let t=new Error().stack;if(Error.stackTraceLimit=e,!t)return[];let r=t.split(`
`),n=[];for(let i=0;i<r.length;i++){let u=r[i],o=u.replaceAll("\\","/");if(u.trim()!=="Error"){if(u.includes("validate_each_keys"))return[];o.includes("svelte/src/internal")||o.includes("node_modules/.vite")||n.push(u)}}return n}function H1(e,t){if(!G)throw new Error("invariant(...) was not guarded by if (DEV)");e||h1(t)}var Ma=N(()=>{rt();st();Ko()});function pu(e){Ye=e}function Ls(e){$i=e}function nf(e){kn=e}function Fr(e,t=!1,r){Ye={p:Ye,i:!1,c:null,e:null,s:e,x:null,r:fe,l:Ui&&!t?{s:null,u:null,$:[]}:null},G&&(Ye.function=r,kn=r)}function Pr(e){var t=Ye,r=t.e;if(r!==null){t.e=null;for(var n of r)bh(n)}return e!==void 0&&(t.x=e),t.i=!0,Ye=t.p,G&&(kn=Ye?.function??null),e??{}}function Yi(){return!Ui||Ye!==null&&Ye.l===null}var Ye,$i,kn,Rt=N(()=>{rt();br();$e();Be();cn();pt();Qe();Ye=null;$i=null;kn=null});function U1(){var e=Ha;Ha=[],Ds(e)}function tr(e){if(Ha.length===0&&!Ua){var t=Ha;queueMicrotask(()=>{t===Ha&&U1()})}Ha.push(e)}function $1(){for(;Ha.length>0;)U1()}var Ha,Ei=N(()=>{st();Mr();Ha=[]});function uf(e){var t=fe;if(t===null)return De.f|=8388608,e;if(G&&e instanceof Error&&!_h.has(e)&&_h.set(e,hT(e,t)),!(t.f&32768)&&!(t.f&4))throw G&&!t.parent&&e instanceof Error&&Y1(e),e;Wn(e,t)}function Wn(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw G&&e instanceof Error&&Y1(e),e}function hT(e,t){let r=Rr(e,"message");if(!(r&&!r.configurable)){for(var n=qo?"  ":"	",i=`
${n}in ${t.fn?.name||"<unknown>"}`,u=t.ctx;u!==null;)i+=`
${n}in ${u.function?.[bn].split("/").pop()}`,u=u.p;return{message:e.message+`
${i}
`,stack:e.stack?.split(`
`).filter(o=>!o.includes("svelte/src/internal")).join(`
`)}}}function Y1(e){let t=_h.get(e);t&&(gr(e,"message",{value:t.message}),gr(e,"stack",{value:t.stack}))}var _h,Fs=N(()=>{rt();pt();Xt();Qe();st();$e();_h=new WeakMap});function At(e,t){e.f=e.f&pT|t}function Ps(e){e.f&512||e.deps===null?At(e,1024):At(e,4096)}var pT,Ju=N(()=>{Qe();pT=-7169});function K1(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=65536,K1(t.deps))}function af(e,t,r){e.f&2048?t.add(e):e.f&4096&&r.add(e),K1(e.deps),At(e,1024)}var Eh=N(()=>{Qe();Ju()});function sf(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Ft;let n=Te(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}var xh=N(()=>{$e();st()});function Hs(e,t=Ft){let r=null,n=new Set;function i(l){if(Qo(e,l)&&(e=l,r)){let d=!Ms.length;for(let p of n)p[1](),Ms.push(p,e);if(d){for(let p=0;p<Ms.length;p+=2)Ms[p][0](Ms[p+1]);Ms.length=0}}}function u(l){i(l(e))}function o(l,d=Ft){let p=[l,d];return n.add(p),n.size===1&&(r=t(i,u)||Ft),l(e),()=>{n.delete(p),n.size===0&&r&&(r(),r=null)}}return{set:i,update:u,subscribe:o}}function of(e){let t;return sf(e,r=>t=r)(),t}var Ms,cf=N(()=>{st();Wo();xh();Ms=[]});function zo(e,t,r){let n=r[t]??={store:null,source:nt(void 0),unsubscribe:Ft};if(G&&(n.source.label=t),n.store!==e&&!(vh in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Ft;else{var i=!0;n.unsubscribe=sf(e,u=>{i?n.source.v=u:re(n.source,u)}),i=!1}return e&&vh in r?of(e):F(n.source)}function Jo(){let e={};function t(){lr(()=>{for(var r in e)e[r].unsubscribe();gr(e,vh,{enumerable:!1,value:!0})})}return[e,t]}function yh(e){var t=lf;try{return lf=!1,[e(),lf]}finally{lf=t}}var Q1,lf,vh,jo=N(()=>{xh();cf();st();$e();Be();Jr();rt();Q1=!1,lf=!1,vh=Symbol()});var W1=N(()=>{Qe();Bs();$e()});function Qa(e){var t=Ua;Ua=!0;try{var r;for(e&&(Ie!==null&&!Ie.is_fork&&Ie.flush(),r=e());;){if($1(),Ie===null)return r;Ie.flush()}}finally{Ua=t}}function gT(){if(G){var e=new Map;for(let r of Ie.current.keys())for(let[n,i]of r.updated??[]){var t=e.get(n);t||(t={error:i.error,count:0},e.set(n,t)),t.count+=i.count}for(let r of e.values())r.error&&console.error(r.error)}try{x1()}catch(r){G&&gr(r,"stack",{value:""}),Wn(r,Ih)}}function V1(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&24576)&&gu(n)&&(Vn=new Set,vi(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Sh(n),Vn?.size>0)){Au.clear();for(let i of Vn){if(i.f&24576)continue;let u=[i],o=i.parent;for(;o!==null;)Vn.has(o)&&(Vn.delete(o),u.push(o)),o=o.parent;for(let l=u.length-1;l>=0;l--){let d=u[l];d.f&24576||vi(d)}}Vn.clear()}}Vn=null}}function q1(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(let i of e.reactions){let u=i.f;u&2?q1(i,t,r,n):u&4194320&&!(u&2048)&&Ch(i,t,n)&&(At(i,2048),ec(i))}}function Ch(e,t,r){let n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(let i of e.deps){if(Ai.call(t,i))return!0;if(i.f&2&&Ch(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function ec(e){Ie.schedule(e)}function z1(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),At(e,1024);for(var r=e.first;r!==null;)z1(r,t),r=r.next}}function J1(e){At(e,1024);for(var t=e.first;t!==null;)J1(t),t=t.next}var ff,$s,Ie,Ya,xr,Ih,Ua,Th,$a,Zo,G1,wh,AT,jr,Vn,Mr=N(()=>{Qe();cn();st();$e();br();Ei();rt();Fs();Jr();Be();Eh();pt();Ju();jo();Ma();W1();ff=null,$s=null,Ie=null,Ya=null,xr=null,Ih=null,Ua=!1,Th=!1,$a=null,Zo=null,G1=0,wh=new Set,AT=1,jr=class{id=AT++;#e=!1;linked=!0;#t=null;#r=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#o=new Set;#n=new Set;#u=new Set;#i=0;#a=new Map;#d=null;#s=[];#p=[];#h=new Set;#l=new Set;#f=new Map;#c=new Set;is_fork=!1;#g=!1;#x(){if(this.is_fork)return!0;for(let n of this.#a.keys()){for(var t=n,r=!1;t.parent!==null;){if(this.#f.has(t)){r=!0;break}t=t.parent}if(!r)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]}),this.#c.delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=this.#f.get(t);if(n){this.#f.delete(t);for(var i of n.d)At(i,2048),r(i);for(i of n.m)At(i,4096),r(i)}this.#c.add(t)}#A(){if(this.#e=!0,G1++>1e3&&(this.#E(),gT()),G)for(let d of this.current.keys())wh.add(d);if(!this.#x()){for(let d of this.#h)this.#l.delete(d),At(d,2048),this.schedule(d);for(let d of this.#l)At(d,4096),this.schedule(d)}let t=this.#s;this.#s=[],this.apply();var r=$a=[],n=[],i=Zo=[];for(let d of t)try{this.#v(d,r,n)}catch(p){throw J1(d),p}if(Ie=null,i.length>0){var u=jr.ensure();for(let d of i)u.schedule(d)}if($a=null,Zo=null,this.#x()){this.#m(n),this.#m(r);for(let[d,p]of this.#f)z1(d,p);i.length>0&&Ie.#A();return}let o=this.#y();if(o){o.#b(this);return}this.#h.clear(),this.#l.clear();for(let d of this.#o)d(this);this.#o.clear(),Ya=this,V1(n),V1(r),Ya=null,this.#d?.resolve();var l=Ie;if(this.linked&&this.#i===0&&this.#E(),er&&!this.linked&&(this.#T(),Ie=l),this.#s.length>0){l===null&&(l=this,this.#_());let d=l;d.#s.push(...this.#s.filter(p=>!d.#s.includes(p)))}l!==null&&l.#A()}#v(t,r,n){t.f^=1024;for(var i=t.first;i!==null;){var u=i.f,o=(u&96)!==0,l=o&&(u&1024)!==0,d=l||(u&8192)!==0||this.#f.has(i);if(!d&&i.fn!==null){o?i.f^=1024:u&4?r.push(i):er&&u&16777224?n.push(i):gu(i)&&(u&16&&this.#l.add(i),vi(i));var p=i.first;if(p!==null){i=p;continue}}for(;i!==null;){var A=i.next;if(A!==null){i=A;break}i=i.parent}}}#y(){for(var t=this.#t;t!==null;){if(!t.is_fork){for(let[r,[,n]]of this.current)if(t.current.has(r)&&!n)return t}t=t.#t}return null}#b(t){for(let[n,i]of t.current)!this.previous.has(n)&&t.previous.has(n)&&this.previous.set(n,t.previous.get(n)),this.current.set(n,i);for(let[n,i]of t.async_deriveds){let u=this.async_deriveds.get(n);u&&i.promise.then(u.resolve)}let r=n=>{var i=n.reactions;if(i!==null)for(let l of i){var u=l.f;if(u&2)r(l);else{var o=l;u&4194320&&!this.async_deriveds.has(o)&&(this.#l.delete(o),At(o,2048),this.schedule(o))}}};for(let n of this.current.keys())r(n);this.oncommit(()=>t.discard()),t.#E(),Ie=this,this.#A()}#m(t){for(var r=0;r<t.length;r+=1)af(t[r],this.#h,this.#l)}capture(t,r,n=!1){t.v!==Ct&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&8388608||(this.current.set(t,[r,n]),xr?.set(t,r)),this.is_fork||(t.v=r)}activate(){Ie=this}deactivate(){Ie=null,xr=null}flush(){try{G&&wh.clear(),Th=!0,Ie=this,this.#A()}finally{if(G1=0,Ih=null,$a=null,Zo=null,Th=!1,Ie=null,xr=null,Au.clear(),G)for(let t of wh)t.updated=null}}discard(){for(let t of this.#n)t(this);this.#n.clear(),this.#u.clear(),this.#E()}register_created_effect(t){this.#p.push(t)}#T(){this.#E();for(let A=ff;A!==null;A=A.#r){var t=A.id<this.id,r=[];for(let[b,[_,v]]of this.current){if(A.current.has(b)){var n=A.current.get(b)[0];if(t&&_!==n)A.current.set(b,[_,v]);else continue}r.push(b)}if(t)for(let[b,_]of this.async_deriveds){let v=A.async_deriveds.get(b);v&&_.promise.then(v.resolve)}if(A.#e){var i=[...A.current.keys()].filter(b=>!this.current.has(b));if(i.length===0)t&&A.discard();else if(r.length>0){if(G&&H1(A.#s.length===0,"Batch has scheduled roots"),t)for(let b of this.#c)A.unskip_effect(b,_=>{_.f&4194320?A.schedule(_):A.#m([_])});A.activate();var u=new Set,o=new Map;for(var l of r)q1(l,i,u,o);o=new Map;var d=[...A.current.keys()].filter(b=>this.current.has(b)?this.current.get(b)[0]!==b.v:!0);if(d.length>0)for(let b of this.#p)!(b.f&155648)&&Ch(b,d,o)&&(b.f&4194320?(At(b,2048),A.schedule(b)):A.#h.add(b));if(A.#s.length>0){A.apply();for(var p of A.#s)A.#v(p,[],[]);A.#s=[]}A.deactivate()}}}}increment(t,r){if(this.#i+=1,t){let n=this.#a.get(r)??0;this.#a.set(r,n+1)}}decrement(t,r){if(this.#i-=1,t){let n=this.#a.get(r)??0;n===1?this.#a.delete(r):this.#a.set(r,n-1)}this.#g||(this.#g=!0,tr(()=>{this.#g=!1,this.linked&&this.flush()}))}transfer_effects(t,r){for(let n of t)this.#h.add(n);for(let n of r)this.#l.add(n);t.clear(),r.clear()}oncommit(t){this.#o.add(t)}ondiscard(t){this.#n.add(t)}on_fork_commit(t){this.#u.add(t)}run_fork_commit_callbacks(){for(let t of this.#u)t(this);this.#u.clear()}settled(){return(this.#d??=zl()).promise}static ensure(){if(Ie===null){let t=Ie=new jr;t.#_(),!Th&&!Ua&&tr(()=>{t.#e||t.flush()})}return Ie}apply(){if(!er||!this.is_fork&&this.#t===null&&this.#r===null){xr=null;return}xr=new Map;for(let[r,[n]]of this.current)xr.set(r,n);for(let r=ff;r!==null;r=r.#r)if(!(r===this||r.is_fork)){var t=!1;if(r.id<this.id){for(let[n,[,i]]of r.current)if(!i&&this.current.has(n)){t=!0;break}}if(!t)for(let[n,i]of r.previous)xr.has(n)||xr.set(n,i)}}schedule(t){if(Ih=t,t.b?.is_pending&&t.f&16777228&&!(t.f&32768)){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if($a!==null&&r===fe&&(er||(De===null||!(De.f&2))&&!Q1))return;if(n&96){if(!(n&1024))return;r.f^=1024}}this.#s.push(r)}#_(){$s===null?ff=$s=this:($s.#r=this,this.#t=$s),$s=this}#E(){var t=this.#t,r=this.#r;t===null?ff=r:t.#r=r,r===null?$s=t:r.#t=t,this.linked=!1}};Vn=null});function Nh(e){let t=0,r=Zr(0),n;return G&&qr(r,"createSubscriber version"),()=>{hu()&&(F(r),Kt(()=>(t===0&&(n=Te(()=>e(()=>Wa(r)))),t+=1,()=>{tr(()=>{t-=1,t===0&&(n?.(),n=void 0,Wa(r))})})))}}var Dh=N(()=>{$e();Be();Jr();zu();rt();Ei()});function Rh(e,t,r,n){new kh(e,t,r,n)}var _T,kh,pf=N(()=>{Qe();pt();Rt();Fs();Be();$e();bt();Ei();br();or();rt();Mr();Jr();zu();Dh();Xt();Eh();_T=589824;kh=class{parent;is_pending=!1;transform_error;#e;#t=de?ke:null;#r;#o;#n;#u=null;#i=null;#a=null;#d=null;#s=0;#p=0;#h=!1;#l=new Set;#f=new Set;#c=null;#g=Nh(()=>(this.#c=Zr(this.#s),G&&qr(this.#c,"$effect.pending()"),()=>{this.#c=null}));constructor(t,r,n,i){this.#e=t,this.#r=r,this.#o=u=>{var o=fe;o.b=this,o.f|=128,n(u)},this.parent=fe.b,this.transform_error=i??this.parent?.transform_error??(u=>u),this.#n=_n(()=>{if(de){let u=this.#t;Zt();let o=u.data===Ba;if(u.data.startsWith(oh)){let d=JSON.parse(u.data.slice(oh.length));this.#A(d)}else o?this.#v():this.#x()}else this.#y()},_T),de&&(this.#e=ke)}#x(){try{this.#u=dr(()=>this.#o(this.#e))}catch(t){this.error(t)}}#A(t){let r=this.#r.failed;r&&(this.#a=dr(()=>{r(this.#e,()=>t,()=>()=>{})}))}#v(){let t=this.#r.pending;t&&(this.is_pending=!0,this.#i=dr(()=>t(this.#e)),tr(()=>{var r=this.#d=document.createDocumentFragment(),n=Qt();r.append(n),this.#u=this.#m(()=>dr(()=>this.#o(n))),this.#p===0&&(this.#e.before(r),this.#d=null,Ki(this.#i,()=>{this.#i=null}),this.#b(Ie))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#p=0,this.#s=0,this.#u=dr(()=>{this.#o(this.#e)}),this.#p>0){var t=this.#d=document.createDocumentFragment();Ks(this.#u,t);let r=this.#r.pending;this.#i=dr(()=>r(this.#e))}else this.#b(Ie)}catch(r){this.error(r)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#l,this.#f)}defer_effect(t){af(t,this.#l,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#m(t){var r=fe,n=De,i=Ye;Mt(this.#n),nr(this.#n),pu(this.#n.ctx);try{return jr.ensure(),t()}catch(u){return uf(u),null}finally{Mt(r),nr(n),pu(i)}}#T(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#T(t,r);return}this.#p+=t,this.#p===0&&(this.#b(r),this.#i&&Ki(this.#i,()=>{this.#i=null}),this.#d&&(this.#e.before(this.#d),this.#d=null))}update_pending_count(t,r){this.#T(t,r),this.#s+=t,!(!this.#c||this.#h)&&(this.#h=!0,tr(()=>{this.#h=!1,this.#c&&yi(this.#c,this.#s)}))}get_effect_pending(){return this.#g(),F(this.#c)}error(t){if(!this.#r.onerror&&!this.#r.failed)throw t;Ie?.is_fork?(this.#u&&Ie.skip_effect(this.#u),this.#i&&Ie.skip_effect(this.#i),this.#a&&Ie.skip_effect(this.#a),Ie.on_fork_commit(()=>{this.#_(t)})):this.#_(t)}#_(t){this.#u&&(Pt(this.#u),this.#u=null),this.#i&&(Pt(this.#i),this.#i=null),this.#a&&(Pt(this.#a),this.#a=null),de&&(lt(this.#t),Br(),lt(gi()));var r=this.#r.onerror;let n=this.#r.failed;var i=!1,u=!1;let o=()=>{if(i){F1();return}i=!0,u&&S1(),this.#a!==null&&Ki(this.#a,()=>{this.#a=null}),this.#m(()=>{this.#y()})},l=d=>{try{u=!0,r?.(d,o),u=!1}catch(p){Wn(p,this.#n&&this.#n.parent)}n&&(this.#a=this.#m(()=>{try{return dr(()=>{var p=fe;p.b=this,p.f|=128,n(this.#e,()=>d,()=>o)})}catch(p){return Wn(p,this.#n.parent),null}}))};tr(()=>{var d;try{d=this.transform_error(t)}catch(p){Wn(p,this.#n&&this.#n.parent);return}d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(l,p=>Wn(p,this.#n&&this.#n.parent)):l(d)})}}});function mf(e,t,r,n){let i=Yi()?_u:On;var u=e.filter(_=>!_.settled);if(r.length===0&&u.length===0){n(t.map(i));return}var o=fe,l=Z1(),d=u.length===1?u[0].promise:u.length>1?Promise.all(u.map(_=>_.promise)):null;function p(_){if(!(o.f&16384)){l();try{n(_)}catch(v){Wn(v,o)}Qs()}}var A=Oh();if(r.length===0){d.then(()=>p(t.map(i))).finally(A);return}function b(){Promise.all(r.map(_=>Lh(_))).then(_=>p([...t.map(i),..._])).catch(_=>Wn(_,o)).finally(A)}d?d.then(()=>{l(),b(),Qs()}):b()}function Z1(){var e=fe,t=De,r=Ye,n=Ie;if(G)var i=$i;return function(o=!0){Mt(e),nr(t),pu(r),o&&!(e.f&16384)&&(n?.activate(),n?.apply()),G&&(Bh(null),Ls(i))}}function Qs(e=!0){Mt(null),nr(null),pu(null),e&&Ie?.deactivate(),G&&(Bh(null),Ls(null))}function Oh(){var e=fe,t=e.b,r=Ie,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),()=>{t.update_pending_count(-1,r),r.decrement(n,e)}}var Zu=N(()=>{Qe();rt();Rt();pf();Fs();$e();Mr();Xu();Be()});function Bh(e){En=e}function _u(e){var t=2050;fe!==null&&(fe.f|=524288);let r={ctx:Ye,deps:null,effects:null,equals:Xl,f:t,fn:e,reactions:null,rv:0,v:Ct,wv:0,parent:fe,ac:null};return G&&bi&&(r.created=_i("created at")),r}function Lh(e,t,r){let n=fe;n===null&&m1();var i=void 0,u=Zr(Ct);G&&(u.label=t??e.toString());var o=!De,l=new Set;return tb(()=>{var d=fe;G&&(En={effect:d,effect_deps:new Set,warned:!1});var p=zl();i=p.promise;try{Promise.resolve(e()).then(p.resolve,v=>{v!==Vu&&p.reject(v)}).finally(Qs)}catch(v){p.reject(v),Qs()}if(G){if(En){if(d.deps!==null)for(let v=0;v<fn;v+=1)En.effect_deps.add(d.deps[v]);if(vr!==null)for(let v=0;v<vr.length;v+=1)En.effect_deps.add(vr[v])}En=null}var A=Ie;if(o){if(d.f&32768)var b=Oh();if(n.b.is_rendered())A.async_deriveds.get(d)?.reject(Af);else for(let v of l.values())v.reject(Af);l.add(p),A.async_deriveds.set(d,p)}let _=(v,I=void 0)=>{G&&(En=null),b?.(),l.delete(p),I!==Af&&(A.activate(),I?(u.f|=8388608,yi(u,I)):(u.f&8388608&&(u.f^=8388608),yi(u,v),G&&r!==void 0&&(tc.add(u),setTimeout(()=>{tc.has(u)&&!(d.f&16384)&&(D1(u.label,r),tc.delete(u))}))),A.deactivate())};p.promise.then(_,v=>_(null,v||"unknown"))}),lr(()=>{for(let d of l)d.reject(Af)}),G&&(u.f|=4194304),new Promise(d=>{function p(A){function b(){A===i?d(u):p(i)}A.then(b,b)}p(i)})}function Ga(e){let t=_u(e);return er||bf(t),t}function On(e){let t=_u(e);return t.equals=ef,t}function X1(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Pt(t[r])}}function rc(e){var t,r=fe,n=e.parent;if(!Bn&&n!==null&&n.f&24576)return k1(),e.v;if(Mt(n),G){let i=Va;df(new Set);try{Ai.call(Fh,e)&&A1(),Fh.push(e),e.f&=-65537,X1(e),t=gf(e)}finally{Mt(r),df(i),Fh.pop()}}else try{e.f&=-65537,X1(e),t=gf(e)}finally{Mt(r)}return t}function Ph(e){var t=rc(e);if(!e.equals(t)&&(e.wv=Ys(),(!Ie?.is_fork||e.deps===null)&&(Ie!==null?(Ie.capture(e,t,!0),Ya?.capture(e,t,!0)):e.v=t,e.deps===null))){At(e,1024);return}Bn||(xr!==null?(hu()||Ie?.is_fork)&&xr.set(e,t):Ps(e))}function eb(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Vu),t.teardown=Ft,t.ac=null,qa(t,0),nc(t))}function Mh(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&vi(t)}var En,tc,Af,Fh,Xu=N(()=>{rt();Qe();$e();Wo();br();or();Be();Jr();Ma();cn();Rt();pt();Mr();Zu();st();Ju();En=null;tc=new Set;Af=Symbol("obsolete");Fh=[]});function df(e){Va=e}function rb(){Hh=!0}function Zr(e,t){var r={f:0,v:e,reactions:null,equals:Xl,rv:0,wv:0};return G&&bi&&(r.created=t??_i("created at"),r.updated=null,r.set_during_effect=!1,r.trace=null),r}function ir(e,t){let r=Zr(e,t);return bf(r),r}function nt(e,t=!1,r=!0){let n=Zr(e);return t||(n.equals=ef),Ui&&r&&Ye!==null&&Ye.l!==null&&(Ye.l.s??=[]).push(n),n}function re(e,t,r=!1){De!==null&&(!dn||De.f&131072)&&Yi()&&De.f&4325394&&(Ln===null||!Ai.call(Ln,e))&&C1();let n=r?qn(t):t;return G&&rf(n,e.label),yi(e,n,Zo)}function yi(e,t,r=null){if(!e.equals(t)){Au.set(e,Bn?t:e.v);var n=jr.ensure();if(n.capture(e,t),G){if(bi||fe!==null){e.updated??=new Map;let i=(e.updated.get("")?.count??0)+1;if(e.updated.set("",{error:null,count:i}),bi||i>5){let u=_i("updated at");if(u!==null){let o=e.updated.get(u.stack);o||(o={error:u,count:0},e.updated.set(u.stack,o)),o.count++}}}fe!==null&&(e.set_during_effect=!0)}if(e.f&2){let i=e;e.f&2048&&rc(i),xr===null&&Ps(i)}e.wv=Ys(),nb(e,2048,r),Yi()&&fe!==null&&fe.f&1024&&!(fe.f&96)&&(Fn===null?ib([e]):Fn.push(e)),!n.is_fork&&Va.size>0&&!Hh&&hf()}return t}function hf(){Hh=!1;for(let e of Va){e.f&1024&&At(e,4096);let t;try{t=gu(e)}catch{t=!0}t&&vi(e)}Va.clear()}function Wa(e){re(e,e.v+1)}function nb(e,t,r){var n=e.reactions;if(n!==null)for(var i=Yi(),u=n.length,o=0;o<u;o++){var l=n[o],d=l.f;if(!(!i&&l===fe)){var p=(d&2048)===0;if(p&&At(l,t),d&131072)Va.add(l);else if(d&2){var A=l;xr?.delete(A),d&65536||(d&512&&(fe===null||!(fe.f&2097152))&&(l.f|=65536),nb(A,4096,r))}else if(p){var b=l;d&16&&Vn!==null&&Vn.add(b),r!==null?r.push(b):ec(b)}}}}var Va,Au,Hh,Jr=N(()=>{rt();$e();Wo();Qe();br();cn();st();zu();Ma();Rt();Mr();za();Xu();Ju();Va=new Set,Au=new Map;Hh=!1});function qn(e){if(typeof e!="object"||e===null||jt in e)return e;let t=Fa(e);if(t!==fh&&t!==l1)return e;var r=new Map,n=mi(e),i=ir(0),u=G&&bi?_i("created at"):null,o=ea,l=b=>{if(ea===o)return b();var _=De,v=ea;nr(null),Uh(o);var I=b();return nr(_),Uh(v),I};n&&(r.set("length",ir(e.length,u)),G&&(e=yT(e)));var d="";let p=!1;function A(b){if(!p){p=!0,d=b,qr(i,`${d} version`);for(let[_,v]of r)qr(v,Ja(d,_));p=!1}}return new Proxy(e,{defineProperty(b,_,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&w1();var I=r.get(_);return I===void 0?l(()=>{var D=ir(v.value,u);return r.set(_,D),G&&typeof _=="string"&&qr(D,Ja(d,_)),D}):re(I,v.value,!0),!0},deleteProperty(b,_){var v=r.get(_);if(v===void 0){if(_ in b){let I=l(()=>ir(Ct,u));r.set(_,I),Wa(i),G&&qr(I,Ja(d,_))}}else re(v,Ct),Wa(i);return!0},get(b,_,v){if(_===jt)return e;if(G&&_===Jl)return A;var I=r.get(_),D=_ in b;if(I===void 0&&(!D||Rr(b,_)?.writable)&&(I=l(()=>{var H=qn(D?b[_]:Ct),K=ir(H,u);return G&&qr(K,Ja(d,_)),K}),r.set(_,I)),I!==void 0){var R=F(I);return R===Ct?void 0:R}return Reflect.get(b,_,v)},getOwnPropertyDescriptor(b,_){var v=Reflect.getOwnPropertyDescriptor(b,_);if(v&&"value"in v){var I=r.get(_);I&&(v.value=F(I))}else if(v===void 0){var D=r.get(_),R=D?.v;if(D!==void 0&&R!==Ct)return{enumerable:!0,configurable:!0,value:R,writable:!0}}return v},has(b,_){if(_===jt)return!0;var v=r.get(_),I=v!==void 0&&v.v!==Ct||Reflect.has(b,_);if(v!==void 0||fe!==null&&(!I||Rr(b,_)?.writable)){v===void 0&&(v=l(()=>{var R=I?qn(b[_]):Ct,H=ir(R,u);return G&&qr(H,Ja(d,_)),H}),r.set(_,v));var D=F(v);if(D===Ct)return!1}return I},set(b,_,v,I){var D=r.get(_),R=_ in b;if(n&&_==="length")for(var H=v;H<D.v;H+=1){var K=r.get(H+"");K!==void 0?re(K,Ct):H in b&&(K=l(()=>ir(Ct,u)),r.set(H+"",K),G&&qr(K,Ja(d,H)))}if(D===void 0)(!R||Rr(b,_)?.writable)&&(D=l(()=>ir(void 0,u)),G&&qr(D,Ja(d,_)),re(D,qn(v)),r.set(_,D));else{R=D.v!==Ct;var ce=l(()=>qn(v));re(D,ce)}var le=Reflect.getOwnPropertyDescriptor(b,_);if(le?.set&&le.set.call(I,v),!R){if(n&&typeof _=="string"){var Re=r.get("length"),xe=Number(_);Number.isInteger(xe)&&xe>=Re.v&&re(Re,xe+1)}Wa(i)}return!0},ownKeys(b){F(i);var _=Reflect.ownKeys(b).filter(D=>{var R=r.get(D);return R===void 0||R.v!==Ct});for(var[v,I]of r)I.v!==Ct&&!(v in b)&&_.push(v);return _},setPrototypeOf(){I1()}})}function Ja(e,t){return typeof t=="symbol"?`${e}[Symbol(${t.description??""})]`:xT.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function _f(e){try{if(e!==null&&typeof e=="object"&&jt in e)return e[jt]}catch{}return e}function yT(e){return new Proxy(e,{get(t,r,n){var i=Reflect.get(t,r,n);return vT.has(r)?function(...u){rb();var o=i.apply(this,u);return hf(),o}:i}})}var xT,vT,za=N(()=>{rt();$e();st();Jr();Qe();pt();br();zu();Ma();cn();xT=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;vT=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"])});function ub(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:r,lastIndexOf:n,includes:i}=e;e.indexOf=function(u,o){let l=r.call(this,u,o);if(l===-1){for(let d=o??0;d<this.length;d+=1)if(_f(this[d])===u){Zl("array.indexOf(...)");break}}return l},e.lastIndexOf=function(u,o){let l=n.call(this,u,o??this.length-1);if(l===-1){for(let d=0;d<=(o??this.length-1);d+=1)if(_f(this[d])===u){Zl("array.lastIndexOf(...)");break}}return l},e.includes=function(u,o){let l=i.call(this,u,o);if(!l){for(let d=0;d<this.length;d+=1)if(_f(this[d])===u){Zl("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{e.indexOf=r,e.lastIndexOf=n,e.includes=i}}var $h=N(()=>{or();za()});function Ef(){if(Yh===void 0){Yh=window,ab=document,qo=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;sb=Rr(t,"firstChild").get,ob=Rr(t,"nextSibling").get,dh(e)&&(e[Uo]=void 0,e[jl]=null,e[$o]=void 0,e.__e=void 0),dh(r)&&(r[Yo]=void 0),G&&(e.__svelte_meta=null,ub())}}function Qt(e=""){return document.createTextNode(e)}function Wt(e){return sb.call(e)}function Er(e){return ob.call(e)}function Se(e,t){if(!de)return Wt(e);var r=Wt(ke);if(r===null)r=ke.appendChild(Qt());else if(t&&r.nodeType!==Pa){var n=Qt();return r?.before(n),lt(n),n}return t&&uc(r),lt(r),r}function Xr(e,t=!1){if(!de){var r=Wt(e);return r instanceof Comment&&r.data===""?Er(r):r}if(t){if(ke?.nodeType!==Pa){var n=Qt();return ke?.before(n),lt(n),n}uc(ke)}return ke}function ze(e,t=1,r=!1){let n=de?ke:e;for(var i;t--;)i=n,n=Er(n);if(!de)return n;if(r){if(n?.nodeType!==Pa){var u=Qt();return n===null?i?.after(u):n.before(u),lt(u),u}uc(n)}return lt(n),n}function ic(e){e.textContent=""}function xf(){if(!er||Vn!==null)return!1;var e=fe.f;return(e&32768)!==0}function Qi(e,t,r){let n=r?{is:r}:void 0;return document.createElementNS(t??Gl,e,n)}function uc(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Pa;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var Yh,ab,qo,sb,ob,Xt=N(()=>{bt();rt();$h();st();$e();cn();Qe();Mr();pt()});function vf(){cb||(cb=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Gu]?.()})},{capture:!0}))}var cb,yf=N(()=>{bt();Xt();Ei();Qe();cb=!1});function Ti(e){var t=De,r=fe;nr(null),Mt(null);try{return e()}finally{nr(t),Mt(r)}}function Kh(e,t,r,n=r){e.addEventListener(t,()=>Ti(r));let i=e[Gu];i?e[Gu]=()=>{i(),n(!0)}:e[Gu]=()=>n(!0),vf()}var zn=N(()=>{Be();$e();Qe();yf()});function Wh(e){fe===null&&(De===null&&E1(e),_1()),Bn&&b1(e)}function TT(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function wi(e,t){var r=fe;if(G)for(;r!==null&&r.f&131072;)r=r.parent;r!==null&&r.f&8192&&(e|=8192);var n={ctx:Ye,deps:null,nodes:null,f:e|2048|512,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};G&&(n.component_function=kn),Ie?.register_created_effect(n);var i=n;if(e&4)$a!==null?$a.push(n):jr.ensure().schedule(n);else if(t!==null){try{vi(n)}catch(o){throw Pt(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=65536))}if(i!==null&&(i.parent=r,r!==null&&TT(i,r),De!==null&&De.f&2&&!(e&64))){var u=De;(u.effects??=[]).push(i)}return n}function hu(){return De!==null&&!dn}function lr(e){let t=wi(8,null);return At(t,1024),t.teardown=e,t}function Wi(e){Wh("$effect"),G&&gr(e,"name",{value:"$effect"});var t=fe.f,r=!De&&(t&32)!==0&&(t&32768)===0;if(r){var n=Ye;(n.e??=[]).push(e)}else return bh(e)}function bh(e){return wi(1048580,e)}function ac(e){return Wh("$effect.pre"),G&&gr(e,"name",{value:"$effect.pre"}),wi(1048584,e)}function Tf(e){jr.ensure();let t=wi(524352,e);return()=>{Pt(t)}}function db(e){jr.ensure();let t=wi(524352,e);return(r={})=>new Promise(n=>{r.outro?Ki(t,()=>{Pt(t),n(void 0)}):(Pt(t),n(void 0))})}function hr(e){return wi(4,e)}function pr(e,t){var r=Ye,n={effect:null,ran:!1,deps:e};r.l.$.push(n),n.effect=Kt(()=>{if(e(),!n.ran){n.ran=!0;var i=fe;try{Mt(i.parent),Te(t)}finally{Mt(i)}}})}function Ii(){var e=Ye;Kt(()=>{for(var t of e.l.$){t.deps();var r=t.effect;r.f&1024&&r.deps!==null&&At(r,4096),gu(r)&&vi(r),t.ran=!1}})}function tb(e){return wi(4718592,e)}function Kt(e,t=0){return wi(8|t,e)}function Gt(e,t=[],r=[],n=[]){mf(n,t,r,i=>{wi(8,()=>e(...i.map(F)))})}function _n(e,t=0){var r=wi(16|t,e);return G&&(r.dev_stack=$i),r}function dr(e){return wi(524320,e)}function Gh(e){var t=e.teardown;if(t!==null){let r=Bn,n=De;Qh(!0),nr(null);try{t.call(null)}finally{Qh(r),nr(n)}}}function nc(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){let i=r.ac;i!==null&&Ti(()=>{i.abort(Vu)});var n=r.next;r.f&64?r.parent=null:Pt(r,t),r=n}}function hb(e){for(var t=e.first;t!==null;){var r=t.next;t.f&32||Pt(t),t=r}}function Pt(e,t=!0){var r=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Vh(e.nodes.start,e.nodes.end),r=!0),At(e,33554432),nc(e,t&&!r),qa(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(let u of n)u.stop();Gh(e),e.f^=33554432,e.f|=16384;var i=e.parent;i!==null&&i.first!==null&&Sh(e),G&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Vh(e,t){for(;e!==null;){var r=e===t?null:Er(e);e.remove(),e=r}}function Sh(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ki(e,t,r=!0){var n=[];pb(e,n,!0);var i=()=>{r&&Pt(e),t&&t()},u=n.length;if(u>0){var o=()=>--u||i();for(var l of n)l.out(o)}else i()}function pb(e,t,r){if(!(e.f&8192)){e.f^=8192;var n=e.nodes&&e.nodes.t;if(n!==null)for(let l of n)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var u=i.next;if(!(i.f&64)){var o=(i.f&65536)!==0||(i.f&32)!==0&&(e.f&16)!==0;pb(i,t,o?r:!1)}i=u}}}function sc(e){mb(e,!0)}function mb(e,t){if(e.f&8192){e.f^=8192,e.f&1024||(At(e,2048),jr.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;mb(r,i?t:!1),r=n}var u=e.nodes&&e.nodes.t;if(u!==null)for(let o of u)(o.is_global||t)&&o.in()}}function Ks(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Er(r);t.append(r),r=i}}var Be=N(()=>{$e();Qe();br();rt();st();Xt();Rt();Mr();Zu();zn();Ju()});var Ab,qh=N(()=>{Jr();$e();Ab=null});function Qh(e){Bn=e}function nr(e){De=e}function Mt(e){fe=e}function bf(e){De!==null&&(!er||De.f&2)&&(Ln===null?Ln=[e]:Ln.push(e))}function ib(e){Fn=e}function Uh(e){ea=e}function Ys(){return++gb}function gu(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=-65537),t&4096){for(var r=e.deps,n=r.length,i=0;i<n;i++){var u=r[i];if(gu(u)&&Ph(u),u.wv>e.wv)return!0}t&512&&xr===null&&At(e,1024)}return!1}function bb(e,t,r=!0){var n=e.reactions;if(n!==null&&!(!er&&Ln!==null&&Ai.call(Ln,e)))for(var i=0;i<n.length;i++){var u=n[i];u.f&2?bb(u,t,!1):t===u&&(r?At(u,2048):u.f&1024&&At(u,4096),ec(u))}}function gf(e){var t=vr,r=fn,n=Fn,i=De,u=Ln,o=Ye,l=dn,d=ea,p=e.f;vr=null,fn=0,Fn=null,De=p&96?null:e,Ln=null,pu(e.ctx),dn=!1,ea=++ja,e.ac!==null&&(Ti(()=>{e.ac.abort(Vu)}),e.ac=null);try{e.f|=2097152;var A=e.fn,b=A();e.f|=32768;var _=e.deps,v=Ie?.is_fork;if(vr!==null){var I;if(v||qa(e,fn),_!==null&&fn>0)for(_.length=fn+vr.length,I=0;I<vr.length;I++)_[fn+I]=vr[I];else e.deps=_=vr;if(hu()&&e.f&512)for(I=fn;I<_.length;I++)(_[I].reactions??=[]).push(e)}else!v&&_!==null&&fn<_.length&&(qa(e,fn),_.length=fn);if(Yi()&&Fn!==null&&!dn&&_!==null&&!(e.f&6146))for(I=0;I<Fn.length;I++)bb(Fn[I],e);if(i!==null&&i!==e){if(ja++,i.deps!==null)for(let D=0;D<r;D+=1)i.deps[D].rv=ja;if(t!==null)for(let D of t)D.rv=ja;Fn!==null&&(n===null?n=Fn:n.push(...Fn))}return e.f&8388608&&(e.f^=8388608),b}catch(D){return uf(D)}finally{e.f^=2097152,vr=t,fn=r,Fn=n,De=i,Ln=u,pu(o),dn=l,ea=d}}function wT(e,t){let r=t.reactions;if(r!==null){var n=c1.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&t.f&2&&(vr===null||!Ai.call(vr,t))){var u=t;u.f&512&&(u.f^=512,u.f&=-65537),u.v!==Ct&&Ps(u),eb(u),qa(u,0)}}function qa(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)wT(e,r[n])}function vi(e){var t=e.f;if(!(t&16384)){At(e,1024);var r=fe,n=wf;if(fe=e,wf=!0,G){var i=kn;nf(e.component_function);var u=$i;Ls(e.dev_stack??$i)}try{t&16777232?hb(e):nc(e),Gh(e);var o=gf(e);if(e.teardown=typeof o=="function"?o:null,e.wv=gb,G&&bi&&e.f&2048&&e.deps!==null)for(var l of e.deps)l.set_during_effect&&(l.wv=Ys(),l.set_during_effect=!1)}finally{wf=n,fe=r,G&&(nf(i),Ls(u))}}}async function Ci(){if(er)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Qa()}function F(e){var t=e.f,r=(t&2)!==0;if(Ab?.add(e),De!==null&&!dn){var n=fe!==null&&(fe.f&16384)!==0;if(!n&&(Ln===null||!Ai.call(Ln,e))){var i=De.deps;if(De.f&2097152)e.rv<ja&&(e.rv=ja,vr===null&&i!==null&&i[fn]===e?fn++:vr===null?vr=[e]:vr.push(e));else{(De.deps??=[]).push(e);var u=e.reactions;u===null?e.reactions=[De]:Ai.call(u,De)||u.push(De)}}}if(G){if(!dn&&En&&!En.warned&&!(En.effect.f&2097152)&&!En.effect_deps.has(e)){En.warned=!0,N1(e.label);var o=_i("traced at");o&&console.warn(o)}if(tc.delete(e),bi&&!dn&&Go!==null&&De!==null&&Go.reaction===De){if(e.trace)e.trace();else if(o=_i("traced at"),o){var l=Go.entries.get(e);l===void 0&&(l={traces:[]},Go.entries.set(e,l));var d=l.traces[l.traces.length-1];o.stack!==d?.stack&&l.traces.push(o)}}}if(Bn&&Au.has(e))return Au.get(e);if(r){var p=e;if(Bn){var A=p.v;return(!(p.f&1024)&&p.reactions!==null||Eb(p))&&(A=rc(p)),Au.set(p,A),A}var b=(p.f&512)===0&&!dn&&De!==null&&(wf||(De.f&512)!==0),_=(p.f&32768)===0;gu(p)&&(b&&(p.f|=512),Ph(p)),b&&!_&&(Mh(p),_b(p))}if(xr?.has(e))return xr.get(e);if(e.f&8388608)throw e.v;return e.v}function _b(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Mh(t),_b(t))}function Eb(e){if(e.v===Ct)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Au.has(t)||t.f&2&&Eb(t))return!0;return!1}function Te(e){var t=dn;try{return dn=!0,e()}finally{dn=t}}function Pe(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(jt in e)If(e);else if(!Array.isArray(e))for(let t in e){let r=e[t];typeof r=="object"&&r&&jt in r&&If(r)}}}function If(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{If(e[n],t)}catch{}let r=Fa(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){let n=ql(r);for(let i in n){let u=n[i].get;if(u)try{u.call(e)}catch{}}}}}var wf,Bn,De,dn,fe,Ln,vr,fn,Fn,gb,ja,ea,$e=N(()=>{rt();st();Be();Qe();Jr();Xu();cn();zu();Ma();Rt();Mr();Fs();pt();qh();zn();Ju();or();wf=!1,Bn=!1;De=null,dn=!1;fe=null;Ln=null;vr=null,fn=0,Fn=null;gb=1,ja=0,ea=ja});var xb=N(()=>{cn();bt();or();br();rt()});function Tb(e,t,r,n={}){function i(u){if(n.capture||Sf.call(t,u),!u.cancelBubble)return Ti(()=>r?.call(this,u))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?tr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function $r(e,t,r,n,i){var u={capture:n,passive:i},o=Tb(e,t,r,u);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&lr(()=>{t.removeEventListener(e,o,u)})}function Sf(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],u=i[0]||e.target;vb=e;var o=0,l=vb===e&&e[Cf];if(l){var d=i.indexOf(l);if(d!==-1&&(t===document||t===window)){e[Cf]=t;return}var p=i.indexOf(t);if(p===-1)return;d<=p&&(o=d)}if(u=i[o]||e.target,u!==t){gr(e,"currentTarget",{configurable:!0,get(){return u||r}});var A=De,b=fe;nr(null),Mt(null);try{for(var _,v=[];u!==null;){var I=u.assignedSlot||u.parentNode||u.host||null;try{var D=u[Cf]?.[n];D!=null&&(!u.disabled||e.target===u)&&D.call(u,e)}catch(R){_?v.push(R):_=R}if(e.cancelBubble||I===t||I===null)break;u=I}if(_){for(let R of v)queueMicrotask(()=>{throw R});throw _}}finally{e[Cf]=t,delete e.currentTarget,nr(A),Mt(b)}}}var Cf,yb,zh,vb,oc=N(()=>{Be();st();bt();Ei();pt();or();$e();zn();Cf=Symbol("events"),yb=new Set,zh=new Set;vb=null});function wb(e){return IT?.createHTML(e)??e}function Jh(e){var t=Qi("template");return t.innerHTML=wb(e.replaceAll("<!>","<!---->")),t.content}var IT,Nf=N(()=>{Xt();IT=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e})});function hn(e,t){var r=fe;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function He(e,t){var r=(t&1)!==0,n=(t&2)!==0,i,u=!e.startsWith("<!>");return()=>{if(de)return hn(ke,null),ke;i===void 0&&(i=Jh(u?e:"<!>"+e),r||(i=Wt(i)));var o=n||qo?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Wt(o),d=o.lastChild;hn(l,d)}else hn(o,o);return o}}function cc(e=""){if(!de){var t=Qt(e+"");return hn(t,t),t}var r=ke;return r.nodeType!==Pa?(r.before(r=Qt()),lt(r)):uc(r),hn(r,r),r}function Eu(){if(de)return hn(ke,null),ke;var e=document.createDocumentFragment(),t=document.createComment(""),r=Qt();return e.append(t,r),hn(t,r),e}function Ce(e,t){if(de){var r=fe;(!(r.f&32768)||r.nodes.end===null)&&(r.nodes.end=ke),Zt();return}e!==null&&e.before(t)}var Za=N(()=>{bt();Xt();Nf();$e();pt();Qe()});function Ib(e){e=e.replace(kT,"");let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return(t>>>0).toString(36)}function Cb(e){return OT.includes(e)}function Df(e){return e?.replace(/\//g,"/\u200B")}var kT,RT,GO,OT,BT,VO,ta=N(()=>{kT=/\r/g;RT=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"],GO=[...RT,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"],OT=["touchstart","touchmove"];BT=["$state","$state.raw","$derived","$derived.by"],VO=[...BT,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"]});function mr(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e[Yo]??=e.nodeValue)&&(e[Yo]=r,e.nodeValue=`${r}`)}function Xa(e,t){return Sb(e,t)}function Zh(e,t){Ef(),t.intro=t.intro??!1;let r=t.target,n=de,i=ke;try{for(var u=Wt(r);u&&(u.nodeType!==Dn||u.data!==Oa);)u=Er(u);if(!u)throw Pi;Yt(!0),lt(u);let o=Sb(e,{...t,anchor:u});return Yt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Pi&&console.warn("Failed to hydrate: ",o),t.recover===!1&&v1(),Ef(),ic(r),Yt(!1),Xa(e,t)}finally{Yt(n),lt(i)}}function Sb(e,{target:t,anchor:r,props:n={},events:i,context:u,intro:o=!0,transformError:l}){Ef();var d=void 0,p=db(()=>{var A=r??t.appendChild(Qt());Rh(A,{pending:()=>{}},v=>{Fr({});var I=Ye;if(u&&(I.c=u),i&&(n.$$events=i),de&&hn(v,null),Rf=o,d=e(v,n)||{},Rf=!0,de&&(fe.nodes.end=ke,ke===null||ke.nodeType!==Dn||ke.data!==La))throw qu(),Pi;Pr()},l);var b=new Set,_=v=>{for(var I=0;I<v.length;I++){var D=v[I];if(!b.has(D)){b.add(D);var R=Cb(D);for(let ce of[t,document]){var H=kf.get(ce);H===void 0&&(H=new Map,kf.set(ce,H));var K=H.get(D);K===void 0?(ce.addEventListener(D,Sf,{passive:R}),H.set(D,1)):H.set(D,K+1)}}}};return _(Ns(yb)),zh.add(_),()=>{for(var v of b)for(let R of[t,document]){var I=kf.get(R),D=I.get(v);--D==0?(R.removeEventListener(v,Sf),I.delete(v),I.size===0&&kf.delete(R)):I.set(v,D)}zh.delete(_),A!==r&&A.parentNode?.removeChild(A)}});return jh.set(d,p),d}function Gs(e,t){let r=jh.get(e);return r?(jh.delete(e),r(t)):(G&&(jt in e?L1():B1()),Promise.resolve())}var Rf,kf,jh,es=N(()=>{rt();Xt();pt();$e();Rt();Be();bt();st();oc();or();br();Za();ta();Qe();pf();Rf=!0;kf=new Map;jh=new WeakMap});var Xh=N(()=>{ta();gh();Ko();Ko()});var Gi,ts=N(()=>{Mr();Be();Qe();bt();Xt();rt();Gi=class{anchor;#e=new Map;#t=new Map;#r=new Map;#o=new Set;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#u=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#t.get(r);if(n)sc(n),this.#o.delete(r);else{var i=this.#r.get(r);i&&(this.#t.set(r,i.effect),this.#r.delete(r),G&&(i.fragment.lastChild[hh]=this.anchor),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(let[u,o]of this.#e){if(this.#e.delete(u),u===t)break;let l=this.#r.get(o);l&&(Pt(l.effect),this.#r.delete(o))}for(let[u,o]of this.#t){if(u===r||this.#o.has(u))continue;let l=()=>{if(Array.from(this.#e.values()).includes(u)){var p=document.createDocumentFragment();Ks(o,p),p.append(Qt()),this.#r.set(u,{effect:o,fragment:p})}else Pt(o);this.#o.delete(u),this.#t.delete(u)};this.#n||!n?(this.#o.add(u),Ki(o,l,!1)):l()}}};#i=t=>{this.#e.delete(t);let r=Array.from(this.#e.values());for(let[n,i]of this.#r)r.includes(n)||(Pt(i.effect),this.#r.delete(n))};ensure(t,r){var n=Ie,i=xf();if(r&&!this.#t.has(t)&&!this.#r.has(t))if(i){var u=document.createDocumentFragment(),o=Qt();u.append(o),this.#r.set(t,{effect:dr(()=>r(o)),fragment:u})}else this.#t.set(t,dr(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(let[l,d]of this.#t)l===t?n.unskip_effect(d):n.skip_effect(d);for(let[l,d]of this.#r)l===t?n.unskip_effect(d.effect):n.skip_effect(d.effect);n.oncommit(this.#u),n.ondiscard(this.#i)}else de&&(this.anchor=ke),this.#u(n)}}});var ep=N(()=>{Qe();Be();Rt();bt();Nf();Za();or();br();rt();Xt();Xh();ts()});function rs(e){Ye===null&&Rs("onMount"),Ui&&Ye.l!==null?MT(Ye).m.push(e):Wi(()=>{let t=Te(e);if(typeof t=="function")return t})}function Of(e){Ye===null&&Rs("onDestroy"),rs(()=>()=>Te(e))}function PT(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}function Db(){let e=Ye;return e===null&&Rs("createEventDispatcher"),(t,r,n)=>{let i=e.s.$$events?.[t];if(i){let u=mi(i)?i.slice():[i],o=PT(t,r,n);for(let l of u)l.call(e.x,o);return!o.defaultPrevented}return!0}}function MT(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}var ns=N(()=>{$e();st();Pn();br();cn();Rt();rt();Mr();Rt();xb();es();$e();ep();if(G){let e=function(t){if(!(t in globalThis)){let r;Object.defineProperty(globalThis,t,{configurable:!0,get:()=>{if(r!==void 0)return r;T1(t)},set:n=>{r=n}})}};e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}});var kb=N(()=>{Pn();pt();ns();Be()});var Rb=N(()=>{Qe();ta();$e();or()});var tp=N(()=>{});var Ob=N(()=>{Qe();pt();bt();Rt()});var Bb=N(()=>{pt();Qe();bt();Be();Jr();es();$e()});var Lb=N(()=>{st();Qe();pt();Rt();or();ta()});var Fb=N(()=>{br();Rt();pt()});var Pb=N(()=>{pt();Bs();Be();$e();Ma()});var Mb=N(()=>{Zu();$e();bt()});var Hb=N(()=>{br()});var Ub=N(()=>{st();Be();Jr();bt();Ei();pt();Rt();Mr();ts();Zu()});function _t(e,t,r=!1){var n;de&&(n=ke,Zt());var i=new Gi(e),u=r?65536:0;function o(l,d){if(de){var p=Os(n);if(l!==parseInt(p.substring(1))){var A=gi();lt(A),i.anchor=A,Yt(!1),i.ensure(l,d),Yt(!0);return}}i.ensure(l,d)}_n(()=>{var l=!1;t((d,p=0)=>{l=!0,o(p,d)}),l||o(-1,null)},u)}var $b=N(()=>{Qe();bt();Be();ts()});var T9,Yb=N(()=>{Rt();Be();bt();ts();T9=Symbol("NaN")});var Kb=N(()=>{Be();bt();Xt()});function dc(e,t){return t}function WT(e,t,r){for(var n=[],i=t.length,u,o=t.length,l=0;l<i;l++){let b=t[l];Ki(b,()=>{if(u){if(u.pending.delete(b),u.done.add(b),u.pending.size===0){var _=e.outrogroups;rp(e,Ns(u.done)),_.delete(u),_.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var d=n.length===0&&r!==null;if(d){var p=r,A=p.parentNode;ic(A),A.append(p),e.items.clear()}rp(e,t,!d)}else u={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(u)}function rp(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(let o of e.pending.values())for(let l of o)n.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var u=t[i];if(n?.has(u)){u.f|=33554432;let o=document.createDocumentFragment();Ks(u,o)}else Pt(t[i],r)}}function hc(e,t,r,n,i,u=null){var o=e,l=new Map,d=(t&4)!==0;if(d){var p=e;o=de?lt(Wt(p)):p.appendChild(Qt())}de&&Zt();var A=null,b=On(()=>{var ce=r();return mi(ce)?ce:ce==null?[]:Ns(ce)});G&&qr(b,"{#each ...}");var _,v=new Map,I=!0;function D(ce){K.effect.f&16384||(K.pending.delete(ce),K.fallback=A,GT(K,_,o,t,n),A!==null&&(_.length===0?A.f&33554432?(A.f^=33554432,fc(A,null,o)):sc(A):Ki(A,()=>{A=null})))}function R(ce){K.pending.delete(ce)}var H=_n(()=>{_=F(b);var ce=_.length;let le=!1;if(de){var Re=Os(o)===Ba;Re!==(ce===0)&&(o=gi(),lt(o),Yt(!1),le=!0)}for(var xe=new Set,oe=Ie,Ue=xf(),at=0;at<ce;at+=1){de&&ke.nodeType===Dn&&ke.data===La&&(o=ke,le=!0,Yt(!1));var we=_[at],ct=n(we,at);if(G){var qt=n(we,at);ct!==qt&&g1(String(at),String(ct),String(qt))}var Et=I?null:l.get(ct);Et?(Et.v&&yi(Et.v,we),Et.i&&yi(Et.i,at),Ue&&oe.unskip_effect(Et.e)):(Et=VT(l,I?o:Qb??=Qt(),we,ct,at,i,t,r),I||(Et.e.f|=33554432),l.set(ct,Et)),xe.add(ct)}if(ce===0&&u&&!A&&(I?A=dr(()=>u(o)):(A=dr(()=>u(Qb??=Qt())),A.f|=33554432)),ce>xe.size&&(G?qT(_,n):Ah("","","")),de&&ce>0&&lt(gi()),!I)if(v.set(oe,xe),Ue){for(let[Ae,Xe]of l)xe.has(Ae)||oe.skip_effect(Xe.e);oe.oncommit(D),oe.ondiscard(R)}else D(oe);le&&Yt(!0),F(b)}),K={effect:H,flags:t,items:l,pending:v,outrogroups:null,fallback:A};I=!1,de&&(o=ke)}function lc(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function GT(e,t,r,n,i){var u=(n&8)!==0,o=t.length,l=e.items,d=lc(e.effect.first),p,A=null,b,_=[],v=[],I,D,R,H;if(u)for(H=0;H<o;H+=1)I=t[H],D=i(I,H),R=l.get(D).e,R.f&33554432||(R.nodes?.a?.measure(),(b??=new Set).add(R));for(H=0;H<o;H+=1){if(I=t[H],D=i(I,H),R=l.get(D).e,e.outrogroups!==null)for(let we of e.outrogroups)we.pending.delete(R),we.done.delete(R);if(R.f&8192&&(sc(R),u&&(R.nodes?.a?.unfix(),(b??=new Set).delete(R))),R.f&33554432)if(R.f^=33554432,R===d)fc(R,null,r);else{var K=A?A.next:d;R===e.effect.last&&(e.effect.last=R.prev),R.prev&&(R.prev.next=R.next),R.next&&(R.next.prev=R.prev),ra(e,A,R),ra(e,R,K),fc(R,K,r),A=R,_=[],v=[],d=lc(A.next);continue}if(R!==d){if(p!==void 0&&p.has(R)){if(_.length<v.length){var ce=v[0],le;A=ce.prev;var Re=_[0],xe=_[_.length-1];for(le=0;le<_.length;le+=1)fc(_[le],ce,r);for(le=0;le<v.length;le+=1)p.delete(v[le]);ra(e,Re.prev,xe.next),ra(e,A,Re),ra(e,xe,ce),d=ce,A=xe,H-=1,_=[],v=[]}else p.delete(R),fc(R,d,r),ra(e,R.prev,R.next),ra(e,R,A===null?e.effect.first:A.next),ra(e,A,R),A=R;continue}for(_=[],v=[];d!==null&&d!==R;)(p??=new Set).add(d),v.push(d),d=lc(d.next);if(d===null)continue}R.f&33554432||_.push(R),A=R,d=lc(R.next)}if(e.outrogroups!==null){for(let we of e.outrogroups)we.pending.size===0&&(rp(e,Ns(we.done)),e.outrogroups?.delete(we));e.outrogroups.size===0&&(e.outrogroups=null)}if(d!==null||p!==void 0){var oe=[];if(p!==void 0)for(R of p)R.f&8192||oe.push(R);for(;d!==null;)!(d.f&8192)&&d!==e.fallback&&oe.push(d),d=lc(d.next);var Ue=oe.length;if(Ue>0){var at=n&4&&o===0?r:null;if(u){for(H=0;H<Ue;H+=1)oe[H].nodes?.a?.measure();for(H=0;H<Ue;H+=1)oe[H].nodes?.a?.fix()}WT(e,oe,at)}}u&&tr(()=>{if(b!==void 0)for(R of b)R.nodes?.a?.apply()})}function VT(e,t,r,n,i,u,o,l){var d=o&1?o&16?Zr(r):nt(r,!1,!1):null,p=o&2?Zr(i):null;return G&&d&&(d.trace=()=>{l()[p?.v??i]}),{v:d,i:p,e:dr(()=>(u(t,d??r,p??i,l),()=>{e.delete(n)}))}}function fc(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,u=t&&!(t.f&33554432)?t.nodes.start:r;n!==null;){var o=Er(n);if(u.before(n),n===i)return;n=o}}function ra(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function qT(e,t){let r=new Map,n=e.length;for(let i=0;i<n;i++){let u=t(e[i],i);if(r.has(u)){let o=String(r.get(u)),l=String(i),d=String(u);d.startsWith("[object ")&&(d=null),Ah(o,l,d)}r.set(u,i)}}var Qb,Gb=N(()=>{pt();bt();Xt();Be();Jr();st();Qe();Ei();$e();rt();Xu();Mr();br();zu()});function zT(e,t,r){if(!t||t===Ib(String(r??"")))return;let n,i=e.__svelte_meta?.loc;i?n=`near ${i.file}:${i.line}:${i.column}`:kn?.[bn]&&(n=`in ${kn[bn]}`),O1(Df(n))}function is(e,t,r=!1,n=!1,i=!1,u=!1){var o=e,l="";if(r){var d=e;de&&(o=lt(Wt(d)))}Gt(()=>{var p=fe;if(l===(l=t()??"")){de&&Zt();return}if(r&&!de){p.nodes=null,d.innerHTML=l,l!==""&&hn(Wt(d),d.lastChild);return}if(p.nodes!==null&&(Vh(p.nodes.start,p.nodes.end),p.nodes=null),l!==""){if(de){for(var A=ke.data,b=Zt(),_=b;b!==null&&(b.nodeType!==Dn||b.data!=="");)_=b,b=Er(b);if(b===null)throw qu(),Pi;G&&!u&&zT(b.parentNode,A,l),hn(ke,_),o=lt(b);return}var v=n?Ho:i?ch:void 0,I=Qi(n?"svg":i?"math":"template",v);I.innerHTML=l;var D=n||i?I:I.content;if(hn(Wt(D),D.lastChild),n||i)for(;Wt(D);)o.before(Wt(D));else o.before(D)}})}var Vb=N(()=>{pt();Be();bt();Za();or();ta();rt();Rt();Xt();$e();Qe()});function xu(e,t,r,n,i){de&&Zt();var u=t.$$slots?.[r],o=!1;u===!0&&(u=t[r==="default"?"children":r],o=!0),u===void 0?i!==null&&i(e):u(e,o?()=>n:n)}var qb=N(()=>{bt()});function np(e,t,r){var n;de&&(n=ke,Zt());var i=new Gi(e);_n(()=>{var u=t()??null;if(de){var o=Os(n),l=o===Oa,d=u!==null;if(l!==d){var p=gi();lt(p),i.anchor=p,Yt(!1),i.ensure(u,u&&(A=>r(A,u))),Yt(!0);return}}i.ensure(u,u&&(A=>r(A,u)))},65536)}var zb=N(()=>{Qe();Be();bt();ts();pt()});var JT,Si,ip=N(()=>{st();rt();JT=Vl?()=>performance.now():()=>Date.now(),Si={tick:e=>(Vl?requestAnimationFrame:Ft)(e),now:()=>JT(),tasks:new Set}});function Jb(){let e=Si.now();Si.tasks.forEach(t=>{t.c(e)||(Si.tasks.delete(t),t.f())}),Si.tasks.size!==0&&Si.tick(Jb)}function jb(e){let t;return Si.tasks.size===0&&Si.tick(Jb),{promise:new Promise(r=>{Si.tasks.add(t={c:e,f:r})}),abort(){Si.tasks.delete(t)}}}var Zb=N(()=>{ip()});function Bf(e,t){Ti(()=>{e.dispatchEvent(new CustomEvent(t))})}function ew(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;let t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function Xb(e){let t={},r=e.split(";");for(let n of r){let[i,u]=n.split(":");if(!i||u===void 0)break;let o=ew(i.trim());t[o]=u.trim()}return t}function ap(e,t,r,n){var i=(e&1)!==0,u=(e&2)!==0,o=i&&u,l=(e&4)!==0,d=o?"both":i?"in":"out",p,A=t.inert,b=t.style.overflow,_,v;function I(){return Ti(()=>p??=r()(t,n?.()??{},{direction:d}))}var D={is_global:l,in(){if(t.inert=A,!i){v?.abort(),v?.reset?.();return}u||_?.abort(),_=up(t,I(),v,1,()=>{Bf(t,"introstart")},()=>{Bf(t,"introend"),_?.abort(),_=p=void 0,t.style.overflow=b})},out(ce){if(!u){ce?.(),p=void 0;return}t.inert=!0,v=up(t,I(),_,0,()=>{Bf(t,"outrostart")},()=>{Bf(t,"outroend"),ce?.()})},stop:()=>{_?.abort(),v?.abort()}},R=fe;if((R.nodes.t??=[]).push(D),i&&Rf){var H=l;if(!H){for(var K=R.parent;K&&K.f&65536;)for(;(K=K.parent)&&!(K.f&16););H=!K||(K.f&32768)!==0}H&&hr(()=>{Te(()=>D.in())})}}function up(e,t,r,n,i,u){var o=n===1;if(Wu(t)){var l,d=!1;return tr(()=>{if(!d){var H=t({direction:o?"in":"out"});l=up(e,H,r,n,i,u)}}),{abort:()=>{d=!0,l?.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(r?.deactivate(),!t?.duration&&!t?.delay)return i(),u(),{abort:Ft,deactivate:Ft,reset:Ft,t:()=>n};let{delay:p=0,css:A,tick:b,easing:_=tw}=t;var v=[];if(o&&r===void 0&&(b&&b(0,1),A)){var I=Xb(A(0,1));v.push(I,I)}var D=()=>1-n,R=e.animate(v,{duration:p,fill:"forwards"});return R.onfinish=()=>{R.cancel(),i();var H=r?.t()??1-n;r?.abort();var K=n-H,ce=t.duration*Math.abs(K),le=[];if(ce>0){var Re=!1;if(A)for(var xe=Math.ceil(ce/16.666666666666668),oe=0;oe<=xe;oe+=1){var Ue=H+K*_(oe/xe),at=Xb(A(Ue,1-Ue));le.push(at),Re||=at.overflow==="hidden"}Re&&(e.style.overflow="hidden"),D=()=>{var we=R.currentTime;return H+K*_(we/ce)},b&&jb(()=>{if(R.playState!=="running")return!1;var we=D();return b(we,1-we),!0})}R=e.animate(le,{duration:ce,fill:"forwards"}),R.onfinish=()=>{D=()=>n,b?.(n,1-n),u()}},{abort:()=>{R&&(R.cancel(),R.effect=null,R.onfinish=Ft)},deactivate:()=>{u=Ft},reset:()=>{n===0&&b?.(1,0)},t:()=>D()}}var tw,sp=N(()=>{st();Be();$e();Zb();es();pt();Qe();Ei();zn();tw=e=>e});var e_=N(()=>{pt();bt();Xt();Be();es();$e();Rt();rt();Qe();Za();ta();ts();sp()});var t_=N(()=>{bt();Xt();Be();Qe()});var r_=N(()=>{rt();tp();Be();Xt()});function na(e,t,r){hr(()=>{var n=Te(()=>t(e,r?.())||{});if(r&&n?.update){var i=!1,u={};Kt(()=>{var o=r();Pe(o),i&&Qo(u,o)&&(u=o,n.update(o))}),i=!0}if(n?.destroy)return()=>n.destroy()})}var n_=N(()=>{Be();Wo();$e()});var Lf=N(()=>{Be()});var i_=N(()=>{});function u_(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=u_(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function a_(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=u_(e))&&(n&&(n+=" "),n+=t);return n}var s_=N(()=>{});function us(e){return typeof e=="object"?a_(e):e??""}function l_(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var u=i.length,o=0;(o=n.indexOf(i,o))>=0;){var l=o+u;(o===0||o_.includes(n[o-1]))&&(l===n.length||o_.includes(n[l]))?n=(o===0?"":n.substring(0,o))+n.substring(l+1):o=l}}return n===""?null:n}function c_(e,t=!1){var r=t?" !important;":";",n="";for(var i of Object.keys(e)){var u=e[i];u!=null&&u!==""&&(n+=" "+i+": "+u+r)}return n}function op(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function f_(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var u=!1,o=0,l=!1,d=[];n&&d.push(...Object.keys(n).map(op)),i&&d.push(...Object.keys(i).map(op));var p=0,A=-1;let D=e.length;for(var b=0;b<D;b++){var _=e[b];if(l?_==="/"&&e[b-1]==="*"&&(l=!1):u?u===_&&(u=!1):_==="/"&&e[b+1]==="*"?l=!0:_==='"'||_==="'"?u=_:_==="("?o++:_===")"&&o--,!l&&u===!1&&o===0){if(_===":"&&A===-1)A=b;else if(_===";"||b===D-1){if(A!==-1){var v=op(e.substring(p,A).trim());if(!d.includes(v)){_!==";"&&b++;var I=e.substring(p,b).trim();r+=" "+I+";"}}p=b+1,A=-1}}}}return n&&(r+=c_(n)),i&&(r+=c_(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}var o_,pc=N(()=>{i_();s_();st();o_=[...` 	
\r\f\xA0\v\uFEFF`]});function vu(e,t,r,n,i,u){var o=e[Uo];if(de||o!==r||o===void 0){var l=l_(r,n,u);(!de||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e[Uo]=r}else if(u&&i!==u)for(var d in u){var p=!!u[d];(i==null||p!==!!i[d])&&e.classList.toggle(d,p)}return u}var cp=N(()=>{pc();Qe();bt()});function lp(e,t={},r,n){for(var i in r){var u=r[i];t[i]!==u&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,u,n))}}function mc(e,t,r,n){var i=e[$o];if(de||i!==t){var u=f_(t,n);(!de||u!==e.getAttribute("style"))&&(u==null?e.removeAttribute("style"):e.style.cssText=u),e[$o]=t}else n&&(Array.isArray(n)?(lp(e,r?.[0],n[0]),lp(e,r?.[1],n[1],"important")):lp(e,r,n));return n}var fp=N(()=>{pc();Qe();bt()});var dp=N(()=>{Be();zn();za();st();or();Mr();cn()});function pp(e){if(de){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;yu(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;yu(e,"checked",null),e.checked=i}}};e[Gu]=r,tr(r),vf()}}function yu(e,t,r,n){var i=pw(e);if(de&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===hw)){n||Aw(e,t,r??"");return}i[t]!==(i[t]=r)&&(t==="loading"&&(e[d1]=r),r==null?e.removeAttribute(t):typeof r!="string"&&mw(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function pw(e){return e[jl]??={[fw]:e.nodeName.includes("-"),[dw]:e.namespaceURI===Gl}}function mw(e){var t=e.getAttribute("is")||e.nodeName,r=d_.get(t);if(r)return r;d_.set(t,r=[]);for(var n,i=e,u=Element.prototype;u!==i;){n=ql(i);for(var o in n)n[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&r.push(o);i=Fa(i)}return r}function Aw(e,t,r){G&&(t==="srcset"&&gw(e,r)||hp(e.getAttribute(t)??"",r)||R1(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(r)))}function hp(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function h_(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function gw(e,t){var r=h_(e.srcset),n=h_(t);return n.length===r.length&&n.every(([i,u],o)=>u===r[o][1]&&(hp(r[o][0],i)||hp(i,r[o][0])))}var cw,lw,fw,dw,hw,d_,m_=N(()=>{rt();bt();st();oc();yf();or();Qe();Ei();ta();$e();Lf();pc();cp();fp();pt();Be();dp();Zu();cw=Symbol("class"),lw=Symbol("style"),fw=Symbol("is custom element"),dw=Symbol("is html"),hw=ph?"link":"LINK";d_=new Map});var A_=N(()=>{bt();Xt();Nf();Lf()});var g_=N(()=>{zn()});function gp(e,t,r=t){var n=new WeakSet;Kh(e,"input",async i=>{G&&e.type==="checkbox"&&mh();var u=i?e.defaultValue:e.value;if(u=mp(e)?Ap(u):u,r(u),Ie!==null&&n.add(Ie),await Ci(),u!==(u=t())){var o=e.selectionStart,l=e.selectionEnd,d=e.value.length;if(e.value=u??"",l!==null){var p=e.value.length;o===l&&l===d&&p>d?(e.selectionStart=p,e.selectionEnd=p):(e.selectionStart=o,e.selectionEnd=Math.min(l,p))}}}),(de&&e.defaultValue!==e.value||Te(t)==null&&e.value)&&(r(mp(e)?Ap(e.value):e.value),Ie!==null&&n.add(Ie)),Kt(()=>{G&&e.type==="checkbox"&&mh();var i=t();if(e===document.activeElement){var u=er?Ya:Ie;if(n.has(u))return}mp(e)&&i===Ap(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function mp(e){var t=e.type;return t==="number"||t==="range"}function Ap(e){return e===""?null:+e}var b_=N(()=>{rt();Be();zn();br();za();Ei();bt();$e();Rt();Mr();cn()});var __=N(()=>{Be();zn()});var E_=N(()=>{zn()});function bp(e,t,r){var n=Rr(e,t);n&&n.set&&(e[t]=r,lr(()=>{e[t]=null}))}var x_=N(()=>{Be();st()});var ia,Vs,Ac,Pf,v_,Ep,_p,y_=N(()=>{Be();$e();Ep=class{constructor(t){Mo(this,Pf);Mo(this,ia,new WeakMap);Mo(this,Vs,void 0);Mo(this,Ac,void 0);sh(this,Ac,t)}observe(t,r){var n=du(this,ia).get(t)||new Set;return n.add(r),du(this,ia).set(t,n),t1(this,Pf,v_).call(this).observe(t,du(this,Ac)),()=>{var i=du(this,ia).get(t);i.delete(r),i.size===0&&(du(this,ia).delete(t),du(this,Vs).unobserve(t))}}},_p=Ep;ia=new WeakMap,Vs=new WeakMap,Ac=new WeakMap,Pf=new WeakSet,v_=function(){return du(this,Vs)??sh(this,Vs,new ResizeObserver(t=>{for(var r of t){Ep.entries.set(r.target,r);for(var n of du(this,ia).get(r.target)||[])n(r)}}))},Po(_p,"entries",new WeakMap)});function xp(e,t){return e===t||e?.[jt]===t}function as(e={},t,r,n){var i=Ye.r,u=fe;return hr(()=>{var o,l;return Kt(()=>{o=l,l=n?.()||[],Te(()=>{xp(r(...l),e)||(t(e,...l),o&&xp(r(...o),e)&&t(null,...o))})}),()=>{let d=u;for(;d!==i&&d.parent!==null&&d.parent.f&33554432;)d=d.parent;let p=()=>{l&&xp(r(...l),e)&&t(null,...l)},A=d.teardown;d.teardown=()=>{p(),A?.()}}}),e}var T_=N(()=>{Qe();Rt();Be();$e()});var w_=N(()=>{Be();zn()});var I_=N(()=>{Be();zn()});var vp=N(()=>{st();Be();oc()});function Mn(e=!1){let t=Ye,r=t.l.u;if(!r)return;let n=()=>Pe(t.s);if(e){let i=0,u={},o=_u(()=>{let l=!1,d=t.s;for(let p in d)d[p]!==u[p]&&(u[p]=d[p],l=!0);return l&&i++,i});n=()=>F(o)}r.b.length&&ac(()=>{C_(t,n),Ds(r.b)}),Wi(()=>{let i=Te(()=>r.m.map(f1));return()=>{for(let u of i)typeof u=="function"&&u()}}),r.a.length&&Wi(()=>{C_(t,n),Ds(r.a)})}function C_(e,t){if(e.l.s)for(let r of e.l.s)F(r);t()}var S_=N(()=>{st();Rt();Xu();Be();$e()});function xn(e,t){var r=e.$$events?.[t.type],n=mi(r)?r.slice():r==null?[]:[r];for(var i of n)i.call(this,t)}var N_=N(()=>{Jr();$e();st()});function yp(...e){return new Proxy({props:e},yw)}function qe(e,t,r,n){var i=!Ui||(r&2)!==0,u=(r&8)!==0,o=(r&16)!==0,l=n,d=!0,p=void 0,A=()=>o&&i?(p??=_u(n),F(p)):(d&&(d=!1,l=o?Te(n):n),l);let b;if(u){var _=jt in e||ks in e;b=Rr(e,t)?.set??(_&&t in e?le=>e[t]=le:void 0)}var v,I=!1;u?[v,I]=yh(()=>e[t]):v=e[t],v===void 0&&n!==void 0&&(v=A(),b&&(i&&y1(t),b(v)));var D;if(i?D=()=>{var le=e[t];return le===void 0?A():(d=!0,le)}:D=()=>{var le=e[t];return le!==void 0&&(l=void 0),le===void 0?l:le},i&&!(r&4))return D;if(b){var R=e.$$legacy;return function(le,Re){return arguments.length>0?((!i||!Re||R||I)&&b(Re?D():le),le):D()}}var H=!1,K=(r&1?_u:On)(()=>(H=!1,D()));G&&(K.label=t),u&&F(K);var ce=fe;return function(le,Re){if(arguments.length>0){let xe=Re?F(K):i&&u?qn(le):le;return re(K,xe),H=!0,l!==void 0&&(l=xe),le}return Bn&&H||ce.f&16384?K.v:F(K)}}var yw,D_=N(()=>{rt();pt();st();Jr();Xu();$e();br();Qe();za();jo();cn();Be();yw={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Wu(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let i=e.props[n];Wu(i)&&(i=i());let u=Rr(i,t);if(u&&u.set)return u.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Wu(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){let i=Rr(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===jt||t===ks)return!1;for(let r of e.props)if(Wu(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){let t=[];for(let r of e.props)if(Wu(r)&&(r=r()),!!r){for(let n in r)t.includes(n)||t.push(n);for(let n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}}});var k_=N(()=>{Rt();pt();Be();or();jo();Zu()});function R_(e){return new Tp(e)}var Tp,O_=N(()=>{Qe();Be();Jr();es();$e();Mr();st();br();or();rt();pt();Rt();cn();Ju();vp();Tp=class{#e;#t;constructor(t){var r=new Map,n=(u,o)=>{var l=nt(o,!1,!1);return r.set(u,l),l};let i=new Proxy({...t.props||{},$$events:{}},{get(u,o){return F(r.get(o)??n(o,Reflect.get(u,o)))},has(u,o){return o===ks?!0:(F(r.get(o)??n(o,Reflect.get(u,o))),Reflect.has(u,o))},set(u,o,l){return re(r.get(o)??n(o,l),l),Reflect.set(u,o,l)}});this.#t=(t.hydrate?Zh:Xa)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),!er&&(!t?.props?.$$host||t.sync===!1)&&Qa(),this.#e=i.$$events;for(let u of Object.keys(this.#t))u==="$set"||u==="$destroy"||u==="$on"||gr(this,u,{get(){return this.#t[u]},set(o){this.#t[u]=o},enumerable:!0});this.#t.$set=u=>{Object.assign(i,u)},this.#t.$destroy=()=>{Gs(this.#t)}}$set(t){this.#t.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];let n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}});function wp(e,t,r,n){let i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Rw(e){let t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}var kw,B_=N(()=>{O_();Be();Za();st();Xt();typeof HTMLElement=="function"&&(kw=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){let n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{let u=Qi("slot");n!=="default"&&(u.name=n),Ce(i,u)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},r=Rw(this);for(let n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(let n of this.attributes){let i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=wp(i,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=R_({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Tf(()=>{Kt(()=>{this.$$r=!0;for(let n of lh(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let i=wp(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(let n in this.$$l)for(let i of this.$$l[n]){let u=this.$$c.$on(n,i);this.$$l_u.set(i,u)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=wp(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return lh(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}})});var L_=N(()=>{Qe();Bs();or();$e()});var Pn=N(()=>{kb();pt();Rt();Rb();tp();Ob();Bb();Lb();Fb();zu();Pb();Mb();Hb();Ub();$b();Yb();Kb();Gb();Vb();qb();ep();zb();e_();t_();r_();n_();Lf();m_();cp();oc();yf();A_();fp();sp();g_();b_();__();E_();x_();dp();y_();T_();w_();I_();bt();vp();S_();N_();Za();Zu();Mr();Xu();Be();Jr();D_();jo();pf();qh();es();$e();k_();ip();za();B_();Xt();pc();Bs();st();Xh();$h();L_();Fs()});var zi=N(()=>{cn();P1()});var Mf,F_=N(()=>{Mf=class{constructor(){this.handlers=new Map;this.disabled=[]}on(t,r,n){if(t.includes("@")||r.includes("@"))throw new Error("Invalid context/event name - Cannot contain @");this.handlers.set(`${t}@${r}`,n)}off(t,r){if(r)this.handlers.delete(`${t}@${r}`);else for(let[n]of this.handlers.entries())n.startsWith(`${t}@`)&&this.handlers.delete(n)}disable(t){this.enable(t),this.disabled.push(t)}enable(t){this.disabled=this.disabled.filter(r=>r!==t)}emit(t,...r){let n=[...this.handlers.entries()].filter(([i,u])=>!this.disabled.includes(i.split("@")[0]));for(let[i,u]of n)i.endsWith(`@${t}`)&&u(...r)}}});var Ip=N(()=>{Be();cf();Dh();$e();cf()});function Cp(e){H_=e}function Sp(){return H_}var P_,M_,gc,ss,Ke,Hf,ua,H_,Ow,Uf,U_,vn=N(()=>{F_();Ip();P_=/[\u4e00-\u9fa5]/,M_=100,gc=300,ss="omnisearch-disabled",Ke=new Mf,Hf={ToggleExcerpts:"toggle-excerpts"},ua=Hs(0),H_=!1;Ow=/[|\t\n\r\^"= -#%-*,.`\/<>:;?@[-\]_{}\u00A0\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2000-\u200A\u2010-\u2029\u202F-\u2043\u2045-\u2051\u2053-\u205F\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u3000-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/.toString().slice(1,-1),Uf=new RegExp(`${Ow}+`,"u"),U_=/[|\[\]\(\)<>\{\} \t\n\r]/u});function bc(e){let t=e.split("/");return t.pop(),t.join("/")}function Np(e){return new Promise(t=>{setTimeout(t,e)})}function $f(e,t){return e.headings?.filter(r=>r.level===t).map(r=>r.heading)??[]}function Yf(e,t){return(e+t)%t}function $_(e){return e.replace(/(\*|_)+(.+?)(\*|_)+/g,(t,r,n)=>n)}function Y_(e){return e?.frontmatter?(0,Tu.parseFrontMatterAliases)(e.frontmatter)??[]:[]}function K_(e){let t=e?(0,Tu.getAllTags)(e)??[]:[];return t=[...new Set(t.reduce((r,n)=>[...r,...n.split("/").filter(i=>i).map(i=>i.startsWith("#")?i:`#${i}`),n],[]))],t}function wu(e,t=!1){if(e==null)return"";if(t){e=e.replace(/(آ|إ|أ)/g,"\u0627").replace(/(ة)/g,"\u0647").replace(/(ئ|ؤ)/g,"\u0621").replace(/(ى)/g,"\u064A");for(let r=0;r<10;r++)e.replace(String.fromCharCode(1632+r),String.fromCharCode(48+r))}return e=e.replaceAll("`","[__omnisearch__backtick__]"),e=e.replaceAll("^","[__omnisearch__caret__]"),e=e.normalize("NFD").replace(Fw,"").normalize("NFC"),e=e.replaceAll("[__omnisearch__backtick__]","`"),e=e.replaceAll("[__omnisearch__caret__]","^"),e}function yn(){return Tu.Platform.isMacOS?"\u2318":"Ctrl"}function Kf(){return Tu.Platform.isMacOS?"\u2325":"Alt"}function Jn(e){let t=aa(e);return t==="png"||t==="jpg"||t==="jpeg"||t==="webp"||t==="gif"}function Ni(e){return aa(e)==="pdf"}function Q_(e){let t=aa(e);return t==="docx"||t==="xlsx"}function Ji(e){return e.endsWith(".canvas")}function os(e){return e.endsWith(".base")}function _c(e){return e.endsWith(".excalidraw")}function Ec(e){return e.endsWith(".loom")}function aa(e){let t=e.split(".");return t[t.length-1]??""}function W_(e,t){let r=[],n=0,i=e.length;for(;n<i;)r.push(e.slice(n,n+=t));return r}function Dp(e){return/[a-z][A-Z]/.test(e)?e.replace(/([a-z](?=[A-Z]))/g,"$1 ").split(" ").filter(r=>r):[]}function kp(e){return e.includes("-")?e.split("-").filter(t=>t):[]}function Ze(...e){V_(console.debug,...e)}function Di(...e){V_(console.warn,...e)}function Rp(e){G_=e}function V_(e,...t){G_&&e(...t)}var Tu,Bw,Lw,Fw,G_,xc,en=N(()=>{Tu=require("obsidian");vn();Bw=["\\u30FC","\\u309A","\\u3099"],Lw=Bw.join("|"),Fw=new RegExp(`(?!${Lw})\\p{Diacritic}`,"gu");G_=!1;xc=(()=>{let e=0,t=!1;return setTimeout(()=>{e>0&&--e},1e3),(r=!1)=>{(++e>=5||r)&&!t&&(t=!0,new Tu.Notice("Omnisearch \u26A0\uFE0F There might be an issue with your cache. You should clean it in Omnisearch settings and restart Obsidian.",5e3))}})()});function yc(e,t){Fr(t,!1);let r=qe(t,"initialValue",8,""),n=qe(t,"placeholder",8,""),i=qe(t,"plugin",8),u=!1,o=nt(""),l=nt(),d=Db();function p(K){re(o,K)}function A(K){K&&!u&&!F(o)&&(u=!0,re(o,K),b())}function b(K){Ci().then(async()=>(vc.Platform.isMobileApp&&await Np(200),F(l).focus(),Ci())).then(async()=>{vc.Platform.isMobileApp&&await Np(200),F(l).select()})}let _=(0,vc.debounce)(()=>{i().searchHistory.addToHistory(""),d("input",F(o))},300);pr(()=>Pe(r()),()=>{A(r())}),Ii();var v={setInputValue:p};Mn();var I=Pw(),D=Se(I),R=Se(D);pp(R),as(R,K=>re(l,K),()=>F(l)),hr(()=>gp(R,()=>F(o),K=>re(o,K))),hr(()=>$r("compositionend",R,K=>Cp(!1))),hr(()=>$r("compositionstart",R,K=>Cp(!0))),hr(()=>$r("input",R,_)),na(R,K=>b?.(K)),be(D);var H=ze(D,2);return xu(H,t,"default",{},null),be(I),Gt(()=>yu(R,"placeholder",n())),Ce(e,I),bp(t,"setInputValue",p),Pr(v)}var vc,Pw,Op=N(()=>{pi();zi();Pn();vc=require("obsidian");vn();ns();en();Pw=He('<div class="omnisearch-input-container"><div class="omnisearch-input-field"><input class="prompt-input" spellcheck="false" type="text"/></div> <!></div>')});function Tc(e,t){var r=Mw(),n=Se(r);xu(n,t,"default",{},null),be(r),$r("mousedown",r,i=>i.preventDefault()),Ce(e,r)}var Mw,Bp=N(()=>{pi();zi();Pn();Mw=He('<div class="prompt-results"><!></div>')});function q_(e,t){if(!e.includes("# Page ")||t>e.length)return null;let r=e.substring(0,t),n=/^# Page ([0-9]+)\^page=\1$/gm,i=null,u;for(;(u=n.exec(r))!==null;)i=u;return i?parseInt(i[1],10):null}async function Qf(e,t,r=0,n=!1,i=!1){let u=e.app,o=t.path.toLowerCase().endsWith(".pdf");if(o){let b=o?q_(t.content,r):null;if(b!==null){let _=`${t.path}#page=${b}`;await u.workspace.openLinkText(_,"",i?"split":n);return}}let l=!1;if(u.workspace.iterateAllLeaves(b=>{b.view instanceof wc.MarkdownView&&!n&&b.getViewState().state?.file===t.path&&b.getViewState()?.pinned&&(u.workspace.setActiveLeaf(b,{focus:!0}),l=!0)}),!l){let b=t.path;if(o&&r>0){let v=q_(t.content,r);v!==null&&(b=`${t.path}#page=${v}`)}let _=e.settings.indexFilesWithoutExtension&&!b.includes(".")?u.vault.getAbstractFileByPath(t.path):void 0;_ instanceof wc.TFile?await u.workspace.getLeaf(i?"split":n).openFile(_,{active:!i&&!n}):await u.workspace.openLinkText(t.path,"",i?"split":n)}let d=u.workspace.getActiveViewOfType(wc.MarkdownView);if(!d)return;let p=d.editor.offsetToPos(r);d.editor.setCursor(p),d.editor.scrollIntoView({from:{line:Math.max(0,p.line-10),ch:0},to:{line:p.line+10,ch:0}});let A=t.matches?.find(b=>b.offset===r);if(A){let b=d.editor.offsetToPos(r+A.match.length);d.editor.setSelection(b,p);let _=d.contentEl?.querySelector(".cm-editor")??d.containerEl?.querySelector(".cm-editor")??document.querySelector(".cm-editor");if(_){_.classList.add("omnisearch-result-highlight");let v=()=>{_.classList.remove("omnisearch-result-highlight"),_.removeEventListener("mousedown",v),_.removeEventListener("keydown",v)};_.addEventListener("mousedown",v),_.addEventListener("keydown",v)}}}async function z_(e,t,r=!1){try{let n;switch(e.vault.getConfig("newFileLocation")){case"current":n=(e.workspace.getActiveFile()?.parent?.path??"")+"/";break;case"folder":n=e.vault.getConfig("newFileFolderPath")+"/";break;default:n="";break}await e.workspace.openLinkText(`${n}${t}.md`,"",r)}catch(n){throw n.message="OmniSearch - Could not create note: "+n.message,console.error(n),n}}function J_(e,t,r){return(r.links??[]).map(n=>{let i=Lp(n.link);return e.metadataCache.getFirstLinkpathDest(i,t.path)?"":n.link}).filter(n=>!!n)}function Lp(e){return e.split(/[\^#]+/)[0]}var wc,Ic=N(()=>{wc=require("obsidian")});function Ht(e){let t=new DocumentFragment,r=t.appendChild(document.createElement("span")),i=new DOMParser().parseFromString(`<div>${e}</div>`,"text/html");if(i.body.querySelector("parsererror"))return r.textContent=e,t;let u=i.body.firstElementChild;if(u)for(;u.firstChild;)r.appendChild(u.firstChild);return t}function Wf(e){return e.loadLocalStorage(ss)==="1"}async function Me(e){await e.saveData(tn)}function Iu(){return!j_.Platform.isIosApp&&tn.useCache}var j_,qs,Yr=N(()=>{j_=require("obsidian");vn();zs();qs='<strong style="color: var(--text-accent)">Needs a restart to fully take effect.</strong>'});function Z_(e,t,r){let n=e.database;new Tn.Setting(r).setName("Behavior").setHeading(),new Tn.Setting(r).setName("Save index to cache").setDesc("Enable caching to speed up indexing time. In rare cases, the cache write may cause a crash in Obsidian. This option will disable itself if it happens.").addToggle(i=>i.setValue(t.useCache).onChange(async u=>{t.useCache=u,await Me(e)})),new Tn.Setting(r).setName("Show previous query results").setDesc("Re-executes the previous query when opening Omnisearch.").addToggle(i=>i.setValue(t.showPreviousQueryResults).onChange(async u=>{t.showPreviousQueryResults=u,await Me(e)})),new Tn.Setting(r).setName(`Respect Obsidian's "Excluded Files"`).setDesc(`By default, files that are in Obsidian's "Options > Files & Links > Excluded Files" list are downranked in results.
        Enable this option to completely hide them.`).addToggle(i=>i.setValue(t.hideExcluded).onChange(async u=>{t.hideExcluded=u,await Me(e)})),new Tn.Setting(r).setName("Folders to downrank in search results").setDesc("Folders to downrank in search results. Files in these folders will be downranked in results.  They will still be indexed for tags, unlike excluded files.  Folders should be comma delimited.").addText(i=>{i.setValue(t.downrankedFoldersFilters.join(",")).setPlaceholder("Example: src,p2/dir").onChange(async u=>{let o=u.split(",");o=o.map(l=>l.trim()),t.downrankedFoldersFilters=o,await Me(e)})}),new Tn.Setting(r).setName("Split CamelCaseWords").setDesc(Ht(`Enable this if you want to be able to search for CamelCaseWords as separate words.<br/>        
        \u26A0\uFE0F <span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
        ${qs}`)).addToggle(i=>i.setValue(t.splitCamelCase).onChange(async u=>{await n.clearCache(),t.splitCamelCase=u,await Me(e)})),new Tn.Setting(r).setName("Simpler search").setDesc(`Enable this if Obsidian often freezes while making searches.
        Words shorter than 3 characters won't be used as prefixes; this can reduce search delay but will return fewer results.`).addToggle(i=>i.setValue(t.simpleSearch).onChange(async u=>{t.simpleSearch=u,await Me(e)})),Tn.Platform.isIosApp||new Tn.Setting(r).setName("Tokenize URLs").setDesc(`Enable this if you want to be able to search for URLs as separate words.
        This setting has a strong impact on indexing performance, and can crash Obsidian under certain conditions.`).addToggle(i=>i.setValue(t.tokenizeUrls).onChange(async u=>{t.tokenizeUrls=u,await Me(e)})),new Tn.Setting(r).setName("Open in new pane").setDesc("Open and create files in a new pane instead of the current pane.").addToggle(i=>i.setValue(t.openInNewPane).onChange(async u=>{t.openInNewPane=u,await Me(e)})),new Tn.Setting(r).setName("Set Vim like navigation keys").setDesc(`Navigate down the results with ${yn()} + J/N, or navigate up with ${yn()} + K/P.`).addToggle(i=>i.setValue(t.vimLikeNavigationShortcut).onChange(async u=>{t.vimLikeNavigationShortcut=u,await Me(e)})),new Tn.Setting(r).setName("Fuzziness").setDesc("Define the level of fuzziness for the search. The higher the fuzziness, the more results you'll get.").addDropdown(i=>i.addOptions({0:"Exact match",1:"Not too fuzzy",2:"Fuzzy enough"}).setValue(t.fuzziness).onChange(async u=>{["0","1","2"].includes(u)||(u="2"),t.fuzziness=u,await Me(e)}))}var Tn,X_=N(()=>{Tn=require("obsidian");Yr();Yr();en()});function eE(e,t,r){let n=e.database;new ji.Setting(r).setName("Danger Zone").setHeading(),new ji.Setting(r).setName("Ignore diacritics").setDesc(Ht(`Normalize diacritics in search terms. Words like "br\xFBl\xE9e" or "\u017Elu\u0165ou\u010Dk\xFD" will be indexed as "brulee" and "zlutoucky".<br/>
      \u26A0\uFE0F <span style="color: var(--text-accent)">You probably should <strong>NOT</strong> disable this.</span><br>
      \u26A0\uFE0F <span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
      ${qs}`)).addToggle(u=>u.setValue(t.ignoreDiacritics).onChange(async o=>{await n.clearCache(),t.ignoreDiacritics=o,await Me(e)})),new ji.Setting(r).setName("Ignore Arabic diacritics (beta)").addToggle(u=>u.setValue(t.ignoreArabicDiacritics).onChange(async o=>{await n.clearCache(),t.ignoreArabicDiacritics=o,await Me(e)}));let i=Ht(`Disable Omnisearch on this device only.<br>
      ${qs}`);new ji.Setting(r).setName("Disable on this device").setDesc(i).addToggle(u=>u.setValue(Wf(e.app)).onChange(async o=>{o?(e.app.saveLocalStorage(ss,"1"),new ji.Notice("Omnisearch - Disabled. Please restart Obsidian.")):(e.app.saveLocalStorage(ss),new ji.Notice("Omnisearch - Enabled. Please restart Obsidian."))})),new ji.Setting(r).setName("Force save the cache").setDesc(Ht(`Omnisearch has a security feature that automatically disables cache writing if it cannot fully perform the operation.<br>
      Use this option to force the cache to be saved, even if it causes a crash.<br>
      \u26A0\uFE0F <span style="color: var(--text-accent)">Enabling this setting could lead to crash loops</span>`)).addToggle(u=>u.setValue(t.DANGER_forceSaveCache).onChange(async o=>{t.DANGER_forceSaveCache=o,await Me(e)})),Iu()&&new ji.Setting(r).setName("Clear cache data").setDesc(Ht(`Erase all Omnisearch cache data.
        Use this if Omnisearch results are inconsistent, missing, or appear outdated.<br>
        ${qs}`)).addButton(u=>{u.setButtonText("Clear cache"),u.onClick(async()=>{await n.clearCache()})})}var ji,tE=N(()=>{ji=require("obsidian");Yr();Yr();Yr();vn()});function rE(e,t,r){cs.Platform.isMobile||(new cs.Setting(r).setName("API Access Through HTTP").setHeading().setDesc(Ht('Omnisearch can be used through a simple HTTP server (<a href="https://publish.obsidian.md/omnisearch/Public+API+%26+URL+Scheme#HTTP+Server">more information</a>).')),new cs.Setting(r).setName("Enable the HTTP server").addToggle(n=>n.setValue(t.httpApiEnabled).onChange(async i=>{t.httpApiEnabled=i,i?e.apiHttpServer.listen(t.httpApiPort):e.apiHttpServer.close(),await Me(e)})),new cs.Setting(r).setName("HTTP Port").addText(n=>{n.setValue(t.httpApiPort).setPlaceholder("51361").onChange(async i=>{parseInt(i)>65535&&(i=t.httpApiPort,n.setValue(t.httpApiPort)),t.httpApiPort=i,t.httpApiEnabled&&(e.apiHttpServer.close(),e.apiHttpServer.listen(t.httpApiPort)),await Me(e)})}),new cs.Setting(r).setName("Show a notification when the server starts").setDesc("Will display a notification if the server is enabled, at Obsidian startup.").addToggle(n=>n.setValue(t.httpApiNotice).onChange(async i=>{t.httpApiNotice=i,await Me(e)})))}var cs,nE=N(()=>{cs=require("obsidian");Yr();Yr()});function iE(e,t=1){let r=[],n=Math.floor(t),i=(u,o)=>{for(let l=0;l<u.length;l++){let d=u[l];Array.isArray(d)&&o<n?i(d,o+1):r.push(d)}};return i(e,0),r}var uE=N(()=>{});function aE(e){return typeof e=="symbol"||e instanceof Symbol}var sE=N(()=>{});function Cc(e,t,{signal:r,edges:n}={}){let i,u=null,o=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),d=()=>{u!==null&&(e.apply(i,u),i=void 0,u=null)},p=()=>{l&&d(),v()},A=null,b=()=>{A!=null&&clearTimeout(A),A=setTimeout(()=>{A=null,p()},t)},_=()=>{A!==null&&(clearTimeout(A),A=null)},v=()=>{_(),i=void 0,u=null},I=()=>{d()},D=function(...R){if(r?.aborted)return;i=this,u=R;let H=A==null;b(),o&&H&&d()};return D.schedule=b,D.cancel=v,D.flush=I,r?.addEventListener("abort",v,{once:!0}),D}var oE=N(()=>{});function cE(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}var lE=N(()=>{});function fE(e){return Number.isSafeInteger(e)&&e>=0}var dE=N(()=>{});function Sc(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}var hE=N(()=>{});var Gf=N(()=>{oE();hE()});function pE(e,t,r){let n=e.getTextExtractor(),i=e.getAIImageAnalyzer(),u=e.database,o=Cc(async()=>{await u.clearCache()},1e3);new Zi.Setting(r).setName("Indexing").setHeading().setDesc(Ht(`<div style="margin-top: 1em; color: var(--text-accent)">\u26A0\uFE0F Changing indexing settings will clear the cache, and requires a restart of Obsidian.</div><br/>
        ${n?`\u{1F44D} You have installed <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a>, Omnisearch can use it to index PDFs and images contents.
            <br />Text extraction only works on desktop, but the cache can be synchronized with your mobile device.`:'\u26A0\uFE0F Omnisearch requires <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a> to index PDFs and images.'}
        ${i?'<br/>\u{1F44D} You have installed <a href="https://github.com/Swaggeroo/obsidian-ai-image-analyzer">AI Image Analyzer</a>, Omnisearch can use it to index images contents with AI.':'<br/>\u26A0\uFE0F Omnisearch requires <a href="https://github.com/Swaggeroo/obsidian-ai-image-analyzer">AI Image Analyzer</a> to index images with AI.'}`)),new Zi.Setting(r).setName(`PDFs content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(Ht("Omnisearch will use Text Extractor to index the content of your PDFs.")).addToggle(p=>p.setValue(t.PDFIndexing).onChange(async A=>{await u.clearCache(),t.PDFIndexing=A,await Me(e)})).setDisabled(!n),new Zi.Setting(r).setName(`Images OCR indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(Ht("Omnisearch will use Text Extractor to OCR your images and index their content.")).addToggle(p=>p.setValue(t.imagesIndexing).onChange(async A=>{await u.clearCache(),t.imagesIndexing=A,await Me(e)})).setDisabled(!n);let l=Ht('Omnisearch will use Text Extractor to index the content of your office documents (currently <pre style="display:inline">.docx</pre> and <pre style="display:inline">.xlsx</pre>).');new Zi.Setting(r).setName(`Documents content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(l).addToggle(p=>p.setValue(t.officeIndexing).onChange(async A=>{await u.clearCache(),t.officeIndexing=A,await Me(e)})).setDisabled(!n);let d=Ht(`Omnisearch will use AI Image Analyzer to index the content of your images with AI.<br/>
    \u26A0\uFE0F <span style="color: var(--text-accent)">If both AI Image Analyzer and Text Extractor are enabled, Text Extractor will only be used as a fallback.</span>`);new Zi.Setting(r).setName(`Images AI indexing ${i?"":"\u26A0\uFE0F Disabled"}`).setDesc(d).addToggle(p=>p.setValue(t.aiImageIndexing).onChange(async A=>{await u.clearCache(),t.aiImageIndexing=A,await Me(e)})).setDisabled(!i),new Zi.Setting(r).setName("Index paths of unsupported files").setDesc(Ht(`
      Omnisearch can index file<strong>names</strong> of "unsupported" files, such as e.g. <pre style="display:inline">.mp4</pre>
      or non-extracted PDFs & images.<br/>
      "Obsidian setting" will respect the value of "Files & Links > Detect all file extensions".`)).addDropdown(p=>{p.addOptions({yes:"Yes",no:"No",default:"Obsidian setting"}).setValue(t.unsupportedFilesIndexing).onChange(async A=>{await o(),t.unsupportedFilesIndexing=A,await Me(e)})}),new Zi.Setting(r).setName("Set frontmatter property key as title").setDesc(Ht(`If you have a custom property in your notes that you want to use as the title in search results. If you set this to '#heading', then use the first heading from a file as the title.<br>
          Leave empty to disable.`)).addText(p=>{p.setValue(t.displayTitle).onChange(async A=>{await o(),t.displayTitle=A,await Me(e)})}),new Zi.Setting(r).setName("Additional TEXT files to index").setDesc(Ht(`In addition to standard <code>md</code> files, Omnisearch can also index other <strong style="color: var(--text-accent)">PLAINTEXT</strong> files.<br/>
      Add extensions separated by a space, without the dot. Example: "<code>txt org csv</code>".<br />
      \u26A0\uFE0F <span style="color: var(--text-accent)">Using extensions of non-plaintext files (like .pptx) WILL cause crashes,
      because Omnisearch will try to index their content.</span>`)).addText(p=>{p.setValue(t.indexedFileTypes.join(" ")).setPlaceholder("Example: txt org csv").onChange(async A=>{await u.clearCache(),t.indexedFileTypes=A.split(" "),await Me(e)})}),new Zi.Setting(r).setName("Index files without extension").setDesc(Ht(`Enable this to also index files that have <strong style="color: var(--text-accent)">no file extension</strong>.<br/>
      These files will be indexed as plaintext files.`)).addToggle(p=>{p.setValue(t.indexFilesWithoutExtension).onChange(async A=>{await u.clearCache(),t.indexFilesWithoutExtension=A,await Me(e)})})}var Zi,mE=N(()=>{Zi=require("obsidian");Yr();Yr();Gf()});function AE(e,t,r){new sa.Setting(r).setName("User Interface").setHeading(),new sa.Setting(r).setName("Show ribbon button").setDesc("Add a button on the sidebar to open the Vault search modal.").addToggle(n=>n.setValue(t.ribbonIcon).onChange(async i=>{t.ribbonIcon=i,await Me(e),i?e.addRibbonButton():e.removeRibbonButton()})),new sa.Setting(r).setName("Show excerpts").setDesc("Shows the contextual part of the note that matches the search. Disable this to only show filenames in results.").addToggle(n=>n.setValue(t.showExcerpt).onChange(async i=>{oa.set(i)})),new sa.Setting(r).setName("Show embed references").setDesc(Ht(`Some results are <a href="https://help.obsidian.md/Linking+notes+and+files/Embed+files">embedded</a> in other notes.<br>
            This setting controls the maximum number of embeds to show in the search results. Set to 0 to disable.<br>
            Also works with Text Extractor for embedded images and documents.`)).addSlider(n=>{n.setLimits(0,10,1).setValue(t.maxEmbeds).setDynamicTooltip().onChange(async i=>{t.maxEmbeds=i,await Me(e)})}),new sa.Setting(r).setName("Render line return in excerpts").setDesc("Activate this option to render line returns in result excerpts.").addToggle(n=>n.setValue(t.renderLineReturnInExcerpts).onChange(async i=>{t.renderLineReturnInExcerpts=i,await Me(e)})),new sa.Setting(r).setName('Show "Create note" button').setDesc(Ht(`Shows a button next to the search input, to create a note.
          Acts the same as the <code>shift \u21B5</code> shortcut, can be useful for mobile device users.`)).addToggle(n=>n.setValue(t.showCreateButton).onChange(async i=>{t.showCreateButton=i,await Me(e)})),new sa.Setting(r).setName("Highlight matching words in results").setDesc("Will highlight matching results when enabled. See README for more customization options.").addToggle(n=>n.setValue(t.highlight).onChange(async i=>{t.highlight=i,await Me(e)}))}var sa,gE=N(()=>{sa=require("obsidian");zs();Yr();Yr()});function _E(e,t,r,n){function i(o,l){o.setLimits(1,10,.5).setValue(t[l]).setDynamicTooltip().onChange(async d=>{t[l]=d,await Me(e)})}let u=Nc(e.app);new jn.Setting(r).setName("Results weighting").setHeading(),new jn.Setting(r).setName(`File name & declared aliases (default: ${u.weightBasename})`).addSlider(o=>i(o,"weightBasename")),new jn.Setting(r).setName(`File directory (default: ${u.weightDirectory})`).addSlider(o=>i(o,"weightDirectory")),new jn.Setting(r).setName(`Headings level 1 (default: ${u.weightH1})`).addSlider(o=>i(o,"weightH1")),new jn.Setting(r).setName(`Headings level 2 (default: ${u.weightH2})`).addSlider(o=>i(o,"weightH2")),new jn.Setting(r).setName(`Headings level 3 (default: ${u.weightH3})`).addSlider(o=>i(o,"weightH3")),new jn.Setting(r).setName(`Tags (default: ${u.weightUnmarkedTags})`).addSlider(o=>i(o,"weightUnmarkedTags")),new jn.Setting(r).setName("Header properties fields").setDesc('You can set custom weights for values of header properties (e.g. "keywords"). Weights under 1.0 will downrank the results.');for(let o=0;o<t.weightCustomProperties.length;o++){let l=t.weightCustomProperties[o],d=new jn.Setting(r).setName((o+1).toString()+".");d.settingEl.style.paddingLeft="2em",d.addText(p=>{p.setPlaceholder("Property name").setValue(l.name).onChange(async A=>{l.name=A,await Me(e)})}).addSlider(p=>{p.setLimits(.1,5,.1).setValue(l.weight).setDynamicTooltip().onChange(async A=>{l.weight=A,await Me(e)})}).addButton(p=>{p.setButtonText("Remove"),p.onClick(async()=>{t.weightCustomProperties.splice(o,1),await Me(e),n()})})}new jn.Setting(r).addButton(o=>{o.setButtonText("Add a new property"),o.onClick(l=>{t.weightCustomProperties.push({name:"",weight:1}),n()})}),new jn.Setting(r).setName("Recency boost (experimental)").setDesc("Files that have been modified more recently than [selected cutoff] are given a higher rank.").addDropdown(o=>o.addOptions({["0"]:"Disabled",["1"]:"24 hours",["2"]:"7 days",["3"]:"30 days"}).setValue(t.recencyBoost).onChange(async l=>{t.recencyBoost=l,await Me(e)}))}var jn,EE=N(()=>{jn=require("obsidian");zs();Yr();vn()});function Nc(e){return{useCache:!0,hideExcluded:!1,recencyBoost:"0",downrankedFoldersFilters:[],ignoreDiacritics:!0,ignoreArabicDiacritics:!1,indexedFileTypes:[],indexFilesWithoutExtension:!1,displayTitle:"",PDFIndexing:!1,officeIndexing:!1,imagesIndexing:!1,aiImageIndexing:!1,unsupportedFilesIndexing:"default",splitCamelCase:!1,openInNewPane:!1,vimLikeNavigationShortcut:e.vault.getConfig("vimMode"),ribbonIcon:!0,showExcerpt:!0,maxEmbeds:5,renderLineReturnInExcerpts:!0,showCreateButton:!1,highlight:!0,showPreviousQueryResults:!0,simpleSearch:!1,tokenizeUrls:!1,fuzziness:"1",weightBasename:10,weightDirectory:7,weightH1:6,weightH2:5,weightH3:4,weightUnmarkedTags:2,weightCustomProperties:[],httpApiEnabled:!1,httpApiPort:"51361",httpApiNotice:!0,welcomeMessage:"",verboseLogging:!1,DANGER_httpHost:null,DANGER_forceSaveCache:!1}}async function xE(e){return tn=Object.assign({},Nc(e.app),await e.loadData()),oa.set(tn.showExcerpt),Rp(tn.verboseLogging),tn}var Dc,oa,Vf,tn,zs=N(()=>{Dc=require("obsidian");Ip();vn();en();X_();tE();nE();mE();gE();EE();Yr();oa=Hs(!1),Vf=class extends Dc.PluginSettingTab{constructor(r){super(r.app,r);this.plugin=r,oa.subscribe(async n=>{tn.showExcerpt=n,await Me(this.plugin)})}display(){let{containerEl:r}=this;if(r.empty(),this.app.loadLocalStorage(ss)=="1"){let l=r.createEl("span"),d=document.createElement("strong");d.style.color="var(--text-accent)",d.textContent="\u26A0\uFE0F OMNISEARCH IS DISABLED \u26A0\uFE0F",l.appendChild(d)}r.createEl("h1",{text:"Omnisearch"});let n=r.createDiv(),i=document.createElement("iframe");i.setAttribute("sandbox","allow-top-navigation-by-user-activation"),i.setAttribute("src","https://github.com/sponsors/scambier/button"),i.setAttribute("title","Sponsor scambier"),i.setAttribute("height","35"),i.setAttribute("width","116"),i.style.border="0",n.appendChild(i);let u=document.createElement("a");u.href="https://ko-fi.com/B0B6LQ2C",u.target="_blank";let o=document.createElement("img");o.setAttribute("height","36"),o.src="https://cdn.ko-fi.com/cdn/kofi2.png?v=3",o.alt="Buy Me a Coffee at ko-fi.com",o.style.border="0px",o.style.height="36px",o.style.marginLeft="1em",u.appendChild(o),n.appendChild(u),pE(this.plugin,tn,r),r.createEl("hr"),Z_(this.plugin,tn,r),r.createEl("hr"),AE(this.plugin,tn,r),r.createEl("hr"),_E(this.plugin,tn,r,()=>{this.display()}),r.createEl("hr"),rE(this.plugin,tn,r),r.createEl("hr"),eE(this.plugin,tn,r),r.createEl("hr"),new Dc.Setting(r).setName("Debugging").setHeading(),new Dc.Setting(r).setName("Enable verbose logging").setDesc('Adds a LOT of logs for debugging purposes. You also need to enable "Verbose" logging in the console to see these logs.').addToggle(l=>l.setValue(tn.verboseLogging).onChange(async d=>{tn.verboseLogging=d,Rp(d),await Me(this.plugin)}))}}});function Fp(e){var t=Hw();Ce(e,t)}var Hw,vE=N(()=>{pi();zi();Pn();Hw=He('<span class="suggestion-flair" aria-label="Not created yet, select to create"><svg viewBox="0 0 100 100" class="add-note-glyph" width="16" height="16"><path fill="currentColor" stroke="currentColor" d="M23.3,6.7c-3.7,0-6.7,3-6.7,6.7v73.3c0,3.7,3,6.7,6.7,6.7h28.4c-3.2-4.8-5.1-10.5-5.1-16.7c0-16.6,13.4-30,30-30 c2.3,0,4.5,0.3,6.7,0.8V31.7c0-0.9-0.3-1.7-1-2.4L60.7,7.6c-0.6-0.6-1.5-1-2.4-1L23.3,6.7z M56.7,13L77,33.3H60 c-1.8,0-3.3-1.5-3.3-3.3L56.7,13z M76.7,53.3c-12.9,0-23.3,10.4-23.3,23.3S63.8,100,76.7,100S100,89.6,100,76.7 S89.6,53.3,76.7,53.3z M76.7,63.3c1.8,0,3.3,1.5,3.3,3.3v6.7h6.7c1.8,0,3.3,1.5,3.3,3.3c0,1.8-1.5,3.3-3.3,3.3H80v6.7 c0,1.8-1.5,3.3-3.3,3.3c-1.8,0-3.3-1.5-3.3-3.3V80h-6.7c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h6.7v-6.7 C73.3,64.8,74.8,63.3,76.7,63.3L76.7,63.3z"></path></svg></span>')});function kc(e,t){let r=qe(t,"id",8),n=qe(t,"selected",8,!1),i=qe(t,"glyph",8,!1),u=qe(t,"cssClass",8,"");var o=Uw();let l;var d=Se(o);{var p=b=>{Fp(b,{})};_t(d,b=>{i()&&b(p)})}var A=ze(d,2);xu(A,t,"default",{},null),be(o),Gt(()=>{yu(o,"data-result-id",r()),l=vu(o,1,`suggestion-item omnisearch-result ${u()??""}`,null,l,{"is-selected":n()})}),$r("mousemove",o,function(b){xn.call(this,t,b)}),$r("click",o,function(b){xn.call(this,t,b)}),$r("keypress",o,function(b){xn.call(this,t,b)}),$r("auxclick",o,function(b){xn.call(this,t,b)}),Ce(e,o)}var Uw,Pp=N(()=>{pi();zi();Pn();vE();Uw=He("<div><!> <!></div>")});function zf(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}var yE,qf,Mp=N(()=>{vn();en();yE=require("obsidian");Gf();qf=class{constructor(t){this.plugin=t}highlightText(t,r){let n=`suggestion-highlight omnisearch-highlight ${this.plugin.settings.highlight?"omnisearch-default-highlight":""}`;if(!r.length)return t;try{return t.replace(new RegExp(`(${r.map(i=>Sc(i.match)).join("|")})`,"giu"),`<span class="${n}">$1</span>`)}catch(i){return console.error("Omnisearch - Error in highlightText()",i),t}}stringsToRegex(t){if(!t.length)return/^$/g;t.sort((n,i)=>i.length-n.length);let r=`(${t.map(n=>`\\b${Sc(n)}\\b|${Sc(n)}`).join("|")})`;return new RegExp(`${r}`,"gui")}getMatches(t,r,n){r=r.map(zf);let i=this.stringsToRegex(r),u=t;this.plugin.settings.ignoreDiacritics&&(t=wu(t,this.plugin.settings.ignoreArabicDiacritics));let o=new Date().getTime(),l=null,d=[],p=0;for(;(l=i.exec(t))!==null;){if(++p>=100||new Date().getTime()-o>50){Di("Stopped getMatches at",p,"results");break}let A=l.index,b=A+l[0].length,_=u.substring(A,b).trim();_&&l.index>=0&&d.push({match:_,offset:l.index})}if(n&&(n.query.text.length>1||n.getExactTerms().length>0)){let A=t.indexOf(n.getBestStringForExcerpt());A>-1&&d.find(b=>b.offset===A)&&d.unshift({offset:A,match:n.getBestStringForExcerpt()})}return d}makeExcerpt(t,r){let n=this.plugin.settings;try{let i=r??-1,u=Math.max(0,i-M_),o=Math.min(t.length,i+gc);if(i>-1?t=(u>0?"\u2026":"")+t.slice(u,o).trim()+(o<t.length-1?"\u2026":""):t=t.slice(0,gc),n.renderLineReturnInExcerpts){let l=new RegExp(/(?:\r\n|\r|\n)/g);t=t.split(l).filter(p=>p).join(`
`);let d=t.lastIndexOf(`
`,i-u);d>0&&(t=t.slice(d))}return t=zf(t),n.renderLineReturnInExcerpts&&(t=t.trim().replaceAll(`
`,"<br>")),t}catch(i){return new yE.Notice("Omnisearch - Error while creating excerpt, see developer console"),console.error("Omnisearch - Error while creating excerpt"),console.error(i),""}}}});async function TE(e){let t=e.app;if(!t.plugins.getPlugin("obsidian-icon-folder"))return{};let n=`${t.vault.configDir}/plugins/obsidian-icon-folder/data.json`;try{let i=await t.vault.adapter.read(n),u=JSON.parse(i),o={};for(let l in u){let d=(0,Js.normalizePath)(l);o[d]=u[l]}return o}catch(i){return Di("Failed to read data.json:",i),{}}}async function wE(e){let t={Li:"lucide-icons"},r="icons",n=e.app,i=n.plugins.getPlugin("obsidian-icon-folder");if(i){r=i.settings?.iconPacksPath||"icons";let o=`${n.vault.configDir}/${r}`;try{let l=await n.vault.adapter.list(o);if(l.folders&&l.folders.length>0)for(let d of l.folders){let p=d.split("/"),A=p[p.length-1],b=$w(A);t[b]=A}}catch(l){Di("Failed to list icon packs:",l)}}return{prefixToIconPack:t,iconsPath:r}}function $w(e){if(e.includes("-")){let t=e.split("-"),r=t[0].charAt(0).toUpperCase();for(let n=1;n<t.length;n++)r+=t[n].charAt(0).toLowerCase();return r}return e.charAt(0).toUpperCase()+e.charAt(1).toLowerCase()}function Hp(e,t){let r=(0,Js.normalizePath)(e),n=t[r];if(n){if(typeof n=="string")return n;if(typeof n=="object"&&n.iconName)return n.iconName}return null}function Yw(e){let t=e.match(/^[A-Z][a-z]*/);if(t){let r=t[0],n=e.substring(r.length);return{prefix:r,name:n}}else return{prefix:"",name:e}}async function Up(e,t,r,n){let i=Yw(e),{prefix:u,name:o}=i;if(!u)return`<span class="omnisearch-result__icon--emoji">${zf(o)}</span>`;let l=n[u];if(!l)return Di(`No icon pack found for prefix: ${u}`),null;if(l==="lucide-icons"){let d=o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p=(0,Js.getIcon)(d);return p?p.outerHTML:(Di(`Lucide icon not found: ${d}`),null)}else{if(!r)return Di("Icons path is not set. Cannot load icon SVG."),null;let d=`${t.app.vault.configDir}/${r}/${l}/${o}.svg`;try{return await t.app.vault.adapter.read(d)}catch(p){return Di(`Failed to load icon SVG for ${e} at ${d}:`,p),null}}}function $p(e){let t="file";e==="folder"?t="folder":Jn(e)?t="image":Ni(e)?t="file-text":(Ji(e)||_c(e)||os(e))&&(t="layout-dashboard");let r=(0,Js.getIcon)(t);return r?r.outerHTML:""}var Js,IE=N(()=>{Js=require("obsidian");en();Mp()});function Yp(e,t){Fr(t,!1);let r=()=>zo(oa,"$showExcerpt",n),[n,i]=Jo(),u=nt(),o=nt(),l=nt(),d=nt(),p=qe(t,"selected",8,!1),A=qe(t,"note",8),b=qe(t,"plugin",8),_=nt(null),v=nt(""),I=nt(""),D={},R=nt(null),H=nt(null),K={},ce,le=nt(!1);rs(async()=>{D=await TE(b());let we=await wE(b());K=we.prefixToIconPack,ce=we.iconsPath,re(le,!0)});async function Re(){let we=Hp(F(I),D);we?re(R,await Up(we,b(),ce,K)):re(R,$p("folder"));let ct=Hp(A().path,D);ct?re(H,await Up(ct,b(),ce,K)):re(H,$p(A().path))}function xe(we,ct){let qt=new DOMParser,Ae=qt.parseFromString(ct,"image/svg+xml").documentElement;return we.appendChild(Ae),{update(Xe){let ft=qt.parseFromString(Xe,"image/svg+xml").documentElement;we.replaceChild(ft,Ae),Ae=ft},destroy(){we.firstElementChild&&we.removeChild(we.firstElementChild)}}}let oe=null,Ue=null,at=nt(null);pr(()=>(Pe(A()),F(le),bc),()=>{A()&&A().path&&F(le)&&(async()=>(re(v,A().displayTitle||A().basename),re(I,bc(A().path)),await Re()))()}),pr(()=>(Jn,Pe(A()),Pe(b()),ki.TFile),()=>{if(re(_,null),Jn(A().path)){let we=b().app.vault.getAbstractFileByPath(A().path);we instanceof ki.TFile&&re(_,b().app.vault.getResourcePath(we))}}),pr(()=>(Pe(A()),bc,ki.setIcon,Jn,Ni,Ji,_c,os,F(at)),()=>{re(v,A().displayTitle||A().basename),re(I,bc(A().path)),oe&&(0,ki.setIcon)(oe,"folder-open"),Ue&&(Jn(A().path)?(0,ki.setIcon)(Ue,"image"):Ni(A().path)?(0,ki.setIcon)(Ue,"file-text"):Ji(A().path)||_c(A().path)||os(A().path)?(0,ki.setIcon)(Ue,"layout-dashboard"):(0,ki.setIcon)(Ue,"file")),F(at)&&(0,ki.setIcon)(F(at),"corner-down-right")}),pr(()=>(Pe(b()),F(v),Pe(A())),()=>{re(u,b().textProcessor.getMatches(F(v),A().foundWords))}),pr(()=>(Pe(b()),F(I),Pe(A())),()=>{re(o,b().textProcessor.getMatches(F(I),A().foundWords))}),pr(()=>(Pe(b()),Pe(A())),()=>{re(l,b().textProcessor.makeExcerpt(A().content,A().matches[0]?.offset??-1))}),pr(()=>{},()=>{re(d,!1)}),Ii(),Mn();{let we=On(()=>(Pe(A()),Te(()=>A().isEmbed?"omnisearch-result__embed":"")));kc(e,{get glyph(){return F(d)},get id(){return Pe(A()),Te(()=>A().path)},get cssClass(){return` ${F(we)??""}`},get selected(){return p()},$$events:{auxclick(ct){xn.call(this,t,ct)},click(ct){xn.call(this,t,ct)},mousemove(ct){xn.call(this,t,ct)}},children:(ct,qt)=>{var Et=Zw(),Ae=Se(Et),Xe=Se(Ae),et=Se(Xe);{var ft=Je=>{var ht=Kw();as(ht,ar=>re(at,ar),()=>F(at)),Ce(Je,ht)},L=Je=>{var ht=Eu(),ar=Xr(ht);{var Sr=Sn=>{var Nr=Qw();na(Nr,(Lt,Dr)=>xe?.(Lt,Dr),()=>F(H)),Ce(Sn,Nr)};_t(ar,Sn=>{F(H)&&Sn(Sr)})}Ce(Je,ht)};_t(et,Je=>{Pe(A()),Te(()=>A().isEmbed)?Je(ft):Je(L,-1)})}var Q=ze(et,2);is(Q,()=>(Pe(b()),F(v),F(u),Te(()=>b().textProcessor.highlightText(F(v),F(u)))),!0),be(Q);var z=ze(Q,2);{var ae=Je=>{var ht=Ww(),ar=Se(ht);be(ht),Gt(Sr=>mr(ar,`.${Sr??""}`),[()=>(Pe(aa),Pe(A()),Te(()=>aa(A().path)))]),Ce(Je,ht)};_t(z,Je=>{Pe(A()),Te(()=>!A().displayTitle)&&Je(ae)})}var Ge=ze(z,2);{var Ve=Je=>{var ht=Gw(),ar=Se(ht);be(ht),Gt(()=>mr(ar,`${Pe(A()),Te(()=>A().matches.length)??""}\xA0${Pe(A()),Te(()=>A().matches.length>1?"matches":"match")??""}`)),Ce(Je,ht)};_t(Ge,Je=>{Pe(A()),Te(()=>A().matches.length>0)&&Je(Ve)})}be(Xe),be(Ae);var We=ze(Ae,2);{var dt=Je=>{var ht=qw(),ar=Se(ht);{var Sr=Nr=>{var Lt=Vw();na(Lt,(Dr,au)=>xe?.(Dr,au),()=>F(R)),Ce(Nr,Lt)};_t(ar,Nr=>{F(R)&&Nr(Sr)})}var Sn=ze(ar,2);is(Sn,()=>(Pe(b()),F(I),F(o),Te(()=>b().textProcessor.highlightText(F(I),F(o)))),!0),be(Sn),be(ht),Ce(Je,ht)};_t(We,Je=>{F(I)&&Je(dt)})}var Ot=ze(We,2);{var Dt=Je=>{var ht=jw(),ar=Se(ht);{var Sr=Lt=>{var Dr=zw();is(Dr,()=>(Pe(b()),F(l),Pe(A()),Te(()=>b().textProcessor.highlightText(F(l),A().matches))),!0),be(Dr),Ce(Lt,Dr)};_t(ar,Lt=>{r()&&Lt(Sr)})}var Sn=ze(ar,2);{var Nr=Lt=>{var Dr=Jw(),au=Se(Dr);be(Dr),Gt(()=>yu(au,"src",F(_))),Ce(Lt,Dr)};_t(Sn,Lt=>{F(_)&&Lt(Nr)})}be(ht),Ce(Je,ht)};_t(Ot,Je=>{Pe(A()),Te(()=>!A().isEmbed)&&Je(Dt)})}be(Et),Ce(ct,Et)},$$slots:{default:!0}})}Pr(),i()}var ki,Kw,Qw,Ww,Gw,Vw,qw,zw,Jw,jw,Zw,CE=N(()=>{pi();zi();Pn();zs();en();Pp();ki=require("obsidian");ns();IE();Kw=He('<span title="The document above is embedded in this note"></span>'),Qw=He('<span class="omnisearch-result__icon"></span>'),Ww=He('<span class="omnisearch-result__extension"> </span>'),Gw=He('<span class="omnisearch-result__counter"> </span>'),Vw=He('<span class="omnisearch-result__icon"></span>'),qw=He('<div class="omnisearch-result__folder-path"><!> <span></span></div>'),zw=He('<div class="omnisearch-result__body"></div>'),Jw=He('<div class="omnisearch-result__image-container"><img style="width: 100px" alt=""/></div>'),jw=He('<div style="display: flex; flex-direction: row;"><!> <!></div>'),Zw=He('<div><div class="omnisearch-result__title-container"><span class="omnisearch-result__title"><!> <span></span> <!> <!></span></div> <!> <!></div>')});var SE=Ra(Jf=>{Jf.parse=function(e,t){if(t?t.offsets=typeof t.offsets>"u"?!0:t.offsets:t={offsets:!0},e||(e=""),e.indexOf(":")===-1&&!t.tokenize)return e;if(!t.keywords&&!t.ranges&&!t.tokenize)return e;var r={text:[]};t.offsets&&(r.offsets=[]);for(var n={},i=[],u=/(\S+:'(?:[^'\\]|\\.)*')|(\S+:"(?:[^"\\]|\\.)*")|(-?"(?:[^"\\]|\\.)*")|(-?'(?:[^'\\]|\\.)*')|\S+|\S+:\S+/g,o;(o=u.exec(e))!==null;){var _=o[0],l=_.indexOf(":");if(l!==-1){var d=_.split(":"),p=_.slice(0,l),A=_.slice(l+1);A=A.replace(/^\"|\"$|^\'|\'$/g,""),A=(A+"").replace(/\\(.?)/g,function(xe,oe){switch(oe){case"\\":return"\\";case"0":return"\0";case"":return"";default:return oe}}),i.push({keyword:p,value:A,offsetStart:o.index,offsetEnd:o.index+_.length})}else{var b=!1;_[0]==="-"&&(b=!0,_=_.slice(1)),_=_.replace(/^\"|\"$|^\'|\'$/g,""),_=(_+"").replace(/\\(.?)/g,function(xe,oe){switch(oe){case"\\":return"\\";case"0":return"\0";case"":return"";default:return oe}}),b?n.text?(n.text instanceof Array||(n.text=[n.text]),n.text.push(_)):n.text=_:i.push({text:_,offsetStart:o.index,offsetEnd:o.index+_.length})}}i.reverse();for(var _;_=i.pop();)if(_.text)r.text.push(_.text),t.offsets&&r.offsets.push(_);else{var p=_.keyword;t.keywords=t.keywords||[];var v=!1,I=!1;if(!/^-/.test(p))v=t.keywords.indexOf(p)!==-1;else if(p[0]==="-"){var D=p.slice(1);v=t.keywords.indexOf(D)!==-1,v&&(p=D,I=!0)}t.ranges=t.ranges||[];var R=t.ranges.indexOf(p)!==-1;if(v){t.offsets&&r.offsets.push({keyword:p,value:_.value,offsetStart:I?_.offsetStart+1:_.offsetStart,offsetEnd:_.offsetEnd});var H=_.value;if(H.length){var K=H.split(",");I?n[p]?n[p]instanceof Array?K.length>1?n[p]=n[p].concat(K):n[p].push(H):(n[p]=[n[p]],n[p].push(H)):K.length>1?n[p]=K:t.alwaysArray?n[p]=[H]:n[p]=H:r[p]?r[p]instanceof Array?K.length>1?r[p]=r[p].concat(K):r[p].push(H):(r[p]=[r[p]],r[p].push(H)):K.length>1?r[p]=K:t.alwaysArray?r[p]=[H]:r[p]=H}}else if(R){t.offsets&&r.offsets.push(_);var H=_.value,ce=H.split("-");r[p]={},ce.length===2?(r[p].from=ce[0],r[p].to=ce[1]):!ce.length%2||(r[p].from=H)}else{var le=_.keyword+":"+_.value;r.text.push(le),t.offsets&&r.offsets.push({text:le,offsetStart:_.offsetStart,offsetEnd:_.offsetEnd})}}return r.text.length?t.tokenize||(r.text=r.text.join(" ").trim()):delete r.text,r.exclude=n,r};Jf.stringify=function(e,t,r){if(t||(t={offsets:!0}),!e)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.join(" ");if(!Object.keys(e).length)return"";if(Object.keys(e).length===3&&e.text&&e.offsets&&e.exclude&&typeof e.text=="string")return e.text;r||(r="");var n=function(l){return l.indexOf(" ")>-1?JSON.stringify(l):l},i=function(l){return r+l},u=[];if(e.text){var o=[];typeof e.text=="string"?o.push(e.text):o.push.apply(o,e.text),o.length>0&&u.push(o.map(n).map(i).join(" "))}return t.keywords&&t.keywords.forEach(function(l){if(e[l]){var d=[];typeof e[l]=="string"?d.push(e[l]):d.push.apply(d,e[l]),d.length>0&&u.push(i(l+":"+d.map(n).join(",")))}}),t.ranges&&t.ranges.forEach(function(l){if(e[l]){var d=e[l].from,p=e[l].to;p&&(d=d+"-"+p),d&&u.push(i(l+":"+d))}}),e.exclude&&Object.keys(e.exclude).length>0&&u.push(Jf.stringify(e.exclude,t,"-")),u.join(" ")}});var DE=Ra((cQ,NE)=>{NE.exports=SE()});var kE,Kp,Cu,jf=N(()=>{en();kE=Kn(DE()),Kp=["ext","path"],Cu=class{#e;constructor(t="",r){r.ignoreDiacritics&&(t=wu(t,r.ignoreArabicDiacritics));let n=(0,kE.parse)(t.toLowerCase(),{tokenize:!0,keywords:Kp});n.text=n.text??[],n.exclude=n.exclude??{},n.exclude.text=n.exclude.text??[],Array.isArray(n.exclude.text)||(n.exclude.text=[n.exclude.text]),n.exclude.text=n.exclude.text.filter(u=>u.length);for(let u of Kp){let o=n[u];o&&(n[u]=Array.isArray(o)?o:[o]);let l=n.exclude[u];l&&(n.exclude[u]=Array.isArray(l)?l:[l])}this.query=n;let i=this.query.text.filter(u=>u.startsWith(".")).map(u=>u.slice(1));this.query.ext=[...new Set([...i,...this.query.ext??[]])],this.query.text=this.query.text.filter(u=>!u.startsWith(".")),this.#e=t.match(/"([^"]+)"/g)?.map(u=>u.replace(/"/g,""))??[]}isEmpty(){for(let t of Kp)if(this.query[t]?.length||this.query.text.length)return!1;return!0}segmentsToStr(){return this.query.text.join(" ")}getTags(){return this.query.text.filter(t=>t.startsWith("#"))}getTagsWithoutHashtag(){return this.getTags().map(t=>t.replace(/^#/,""))}getExactTerms(){return[...new Set([...this.query.text.filter(t=>t.split(" ").length>1),...this.#e].map(t=>t.toLowerCase()))]}getBestStringForExcerpt(){return this.#e.length?this.#e.sort((t,r)=>r.length-t.length)[0]??"":this.segmentsToStr()}}});var RE=Ra(Zf=>{function Qp(e){"@babel/helpers - typeof";return Qp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qp(e)}(function(e,t){if(typeof define=="function"&&define.amd)define(["exports"],t);else if(typeof Zf<"u")t(Zf);else{var r={exports:{}};t(r.exports),e.CancelablePromise=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:Zf,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancelablePromise=void 0,e.cancelable=qt,e.default=void 0,e.isCancelablePromise=Et;function t(L,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(Q&&Q.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),Q&&r(L,Q)}function r(L,Q){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ae,Ge){return ae.__proto__=Ge,ae},r(L,Q)}function n(L){var Q=o();return function(){var ae=l(L),Ge;if(Q){var Ve=l(this).constructor;Ge=Reflect.construct(ae,arguments,Ve)}else Ge=ae.apply(this,arguments);return i(this,Ge)}}function i(L,Q){if(Q&&(Qp(Q)==="object"||typeof Q=="function"))return Q;if(Q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u(L)}function u(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function o(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(L){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)},l(L)}function d(L,Q){var z=typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if(!z){if(Array.isArray(L)||(z=p(L))||Q&&L&&typeof L.length=="number"){z&&(L=z);var ae=0,Ge=function(){};return{s:Ge,n:function(){return ae>=L.length?{done:!0}:{done:!1,value:L[ae++]}},e:function(Dt){throw Dt},f:Ge}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ve=!0,We=!1,dt;return{s:function(){z=z.call(L)},n:function(){var Dt=z.next();return Ve=Dt.done,Dt},e:function(Dt){We=!0,dt=Dt},f:function(){try{!Ve&&z.return!=null&&z.return()}finally{if(We)throw dt}}}}function p(L,Q){if(L){if(typeof L=="string")return A(L,Q);var z=Object.prototype.toString.call(L).slice(8,-1);if(z==="Object"&&L.constructor&&(z=L.constructor.name),z==="Map"||z==="Set")return Array.from(L);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return A(L,Q)}}function A(L,Q){(Q==null||Q>L.length)&&(Q=L.length);for(var z=0,ae=new Array(Q);z<Q;z++)ae[z]=L[z];return ae}function b(L,Q){if(!(L instanceof Q))throw new TypeError("Cannot call a class as a function")}function _(L,Q){for(var z=0;z<Q.length;z++){var ae=Q[z];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(L,ae.key,ae)}}function v(L,Q,z){return Q&&_(L.prototype,Q),z&&_(L,z),Object.defineProperty(L,"prototype",{writable:!1}),L}function I(L,Q,z){return Q in L?Object.defineProperty(L,Q,{value:z,enumerable:!0,configurable:!0,writable:!0}):L[Q]=z,L}function D(L,Q,z){R(L,Q),Q.set(L,z)}function R(L,Q){if(Q.has(L))throw new TypeError("Cannot initialize the same private elements twice on an object")}function H(L,Q){var z=le(L,Q,"get");return K(L,z)}function K(L,Q){return Q.get?Q.get.call(L):Q.value}function ce(L,Q,z){var ae=le(L,Q,"set");return Re(L,ae,z),z}function le(L,Q,z){if(!Q.has(L))throw new TypeError("attempted to "+z+" private field on non-instance");return Q.get(L)}function Re(L,Q,z){if(Q.set)Q.set.call(L,z);else{if(!Q.writable)throw new TypeError("attempted to set read only private field");Q.value=z}}var xe=typeof Symbol<"u"?Symbol.toStringTag:"@@toStringTag",oe=new WeakMap,Ue=new WeakMap,at=function(){function L(Q){var z=Q.executor,ae=z===void 0?function(){}:z,Ge=Q.internals,Ve=Ge===void 0?ft():Ge,We=Q.promise,dt=We===void 0?new Promise(function(Ot,Dt){return ae(Ot,Dt,function(Je){Ve.onCancelList.push(Je)})}):We;b(this,L),D(this,oe,{writable:!0,value:void 0}),D(this,Ue,{writable:!0,value:void 0}),I(this,xe,"CancelablePromise"),this.cancel=this.cancel.bind(this),ce(this,oe,Ve),ce(this,Ue,dt||new Promise(function(Ot,Dt){return ae(Ot,Dt,function(Je){Ve.onCancelList.push(Je)})}))}return v(L,[{key:"then",value:function(z,ae){return Xe(H(this,Ue).then(Ae(z,H(this,oe)),Ae(ae,H(this,oe))),H(this,oe))}},{key:"catch",value:function(z){return Xe(H(this,Ue).catch(Ae(z,H(this,oe))),H(this,oe))}},{key:"finally",value:function(z,ae){var Ge=this;return ae&&H(this,oe).onCancelList.push(z),Xe(H(this,Ue).finally(Ae(function(){if(z)return ae&&(H(Ge,oe).onCancelList=H(Ge,oe).onCancelList.filter(function(Ve){return Ve!==z})),z()},H(this,oe))),H(this,oe))}},{key:"cancel",value:function(){H(this,oe).isCanceled=!0;var z=H(this,oe).onCancelList;H(this,oe).onCancelList=[];var ae=d(z),Ge;try{for(ae.s();!(Ge=ae.n()).done;){var Ve=Ge.value;if(typeof Ve=="function")try{Ve()}catch(We){console.error(We)}}}catch(We){ae.e(We)}finally{ae.f()}}},{key:"isCanceled",value:function(){return H(this,oe).isCanceled===!0}}]),L}(),we=function(L){t(z,L);var Q=n(z);function z(ae){return b(this,z),Q.call(this,{executor:ae})}return v(z)}(at);e.CancelablePromise=we,I(we,"all",function(Q){return et(Q,Promise.all(Q))}),I(we,"allSettled",function(Q){return et(Q,Promise.allSettled(Q))}),I(we,"any",function(Q){return et(Q,Promise.any(Q))}),I(we,"race",function(Q){return et(Q,Promise.race(Q))}),I(we,"resolve",function(Q){return qt(Promise.resolve(Q))}),I(we,"reject",function(Q){return qt(Promise.reject(Q))}),I(we,"isCancelable",Et);var ct=we;e.default=ct;function qt(L){return Xe(L,ft())}function Et(L){return L instanceof we||L instanceof at}function Ae(L,Q){if(L)return function(z){if(!Q.isCanceled){var ae=L(z);return Et(ae)&&Q.onCancelList.push(ae.cancel),ae}return z}}function Xe(L,Q){return new at({internals:Q,promise:L})}function et(L,Q){var z=ft();return z.onCancelList.push(function(){var ae=d(L),Ge;try{for(ae.s();!(Ge=ae.n()).done;){var Ve=Ge.value;Et(Ve)&&Ve.cancel()}}catch(We){ae.e(We)}finally{ae.f()}}),new at({internals:z,promise:Q})}function ft(){return{isCanceled:!1,onCancelList:[]}}})});function OE(e,{delay:t=0,duration:r=400,easing:n=Xw}={}){let i=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:u=>`opacity: ${u*i}`}}var Xw,BE=N(()=>{rt();or();Xw=e=>e});function Xf(e,t){Fr(t,!1);let r=qe(t,"placeholder",8,null),n=qe(t,"placeholderProps",8,null),i="svelte-lazy-placeholder";Mn();var u=Eu(),o=Xr(u);{var l=d=>{var p=t6();vu(p,1,us(i));var A=Se(p);{var b=I=>{var D=e6(),R=Se(D,!0);be(D),Gt(()=>mr(R,r())),Ce(I,D)},_=I=>{var D=Eu(),R=Xr(D);np(R,r,(H,K)=>{K(H,yp(n))}),Ce(I,D)},v=Ga(()=>(Pe(r()),Te(()=>["function","object"].includes(typeof r()))));_t(A,I=>{typeof r()=="string"?I(b):F(v)&&I(_,1)})}be(p),Ce(d,p)};_t(o,d=>{r()&&d(l)})}Ce(e,u),Pr()}var e6,t6,LE=N(()=>{pi();zi();Pn();e6=He("<div> </div>"),t6=He("<div><!></div>")});function Wp(e,t){Fr(t,!1);let r=nt(),n=qe(t,"keep",8,!1),i=qe(t,"height",8,0),u=qe(t,"offset",8,150),o=qe(t,"fadeOption",24,()=>({delay:0,duration:400})),l=qe(t,"resetHeightDelay",8,0),d=qe(t,"onload",8,null),p=qe(t,"placeholder",8,null),A=qe(t,"placeholderProps",8,null),b=qe(t,"class",8,""),_="svelte-lazy"+(b()?" "+b():""),v="svelte-lazy-content",I=Ue(),D=nt(!1),R=nt(!0);function H(L){at(L);let Q=K(L);xe(Q),setTimeout(()=>{Q()});let z=ce(L,Q);return{destroy:()=>{oe(Q),z.unobserve(L)}}}function K(L){return Et(z=>{let ae=L.getBoundingClientRect().top,Ge=L.getBoundingClientRect().bottom,Ve=qt(z)+u();ae<=Ve&&Ge>0?Re(L):n()||le(L)},200)}function ce(L,Q){let z=new IntersectionObserver(ae=>{ae[0].isIntersecting&&Re(L)});return z.observe(L),z}function le(L){at(L),re(D,!1)}function Re(L,Q){F(D)||(re(D,!0),we(L),d()&&d()(L))}function xe(L){document.addEventListener("scroll",L,!0),window.addEventListener("resize",L)}function oe(L){document.removeEventListener("scroll",L,!0),window.removeEventListener("resize",L)}function Ue(){return typeof i()=="number"?i()+"px":i()}function at(L){i()&&(L.style.height=Ue())}function we(L){setTimeout(()=>{ct(L)||(L.style.height="auto")},l())}function ct(L){let Q=L.querySelector("img");return Q?Q.complete?Q.naturalHeight===0:(re(R,!1),L.addEventListener("load",()=>{re(R,!0),L.style.height="auto"},{capture:!0,once:!0}),L.addEventListener("error",()=>{re(R,!0)},{capture:!0,once:!0}),!0):!1}function qt(L){return L?.target?.getBoundingClientRect?L.target.getBoundingClientRect().bottom:window.innerHeight}function Et(L,Q,z){let ae,Ge,Ve,We=null,dt=0;z||(z={});let Ot=function(){dt=z.leading===!1?0:new Date,We=null,Ve=L.apply(ae,Ge),We||(ae=Ge=null)};return function(Dt){let Je=new Date;!dt&&z.leading===!1&&(dt=Je);let ht=Q-(Je-dt);return ae=this,Ge=arguments,ht<=0||ht>Q?(We&&(clearTimeout(We),We=null),dt=Je,Ve=L.apply(ae,Ge),We||(ae=Ge=null)):!We&&z.trailing!==!1&&(We=setTimeout(Ot,ht)),Ve}}pr(()=>F(R),()=>{re(r,F(R)?"":"display: none")}),Ii(),Mn();var Ae=n6(),Xe=Se(Ae);{var et=L=>{var Q=r6(),z=Xr(Q);vu(z,1,us(v));var ae=Se(z);xu(ae,t,"default",{},We=>{var dt=cc("Lazy load content");Ce(We,dt)}),be(z);var Ge=ze(z,2);{var Ve=We=>{Xf(We,{get placeholder(){return p()},get placeholderProps(){return A()}})};_t(Ge,We=>{!F(R)&&p()&&We(Ve)})}Gt(()=>mc(z,F(r))),ap(1,z,()=>OE,()=>o()||{}),Ce(L,Q)},ft=L=>{Xf(L,{get placeholder(){return p()},get placeholderProps(){return A()}})};_t(Xe,L=>{F(D)?L(et):p()&&L(ft,1)})}be(Ae),na(Ae,L=>H?.(L)),Gt(()=>{vu(Ae,1,us(_)),mc(Ae,`height: ${I??""}`)}),Ce(e,Ae),Pr()}var r6,n6,FE=N(()=>{pi();zi();Pn();BE();LE();r6=He("<div><!></div> <!>",1),n6=He("<div><!></div>")});function Gp(e,t){Fr(t,!0);let r=()=>zo(ua,"$indexingStep",n),[n,i]=Jo(),u=ir(0),o=0,l=ir(qn(t.previousQuery??"")),d=ir(qn([])),p,A=ir(""),b=ir(!0),_,v=ir(""),I=ir(""),D=ir(""),R=ir(""),H=`${yn()} ${Kf()} \u21B5`,K=Ga(()=>F(d)[F(u)]);Wi(()=>{t.plugin.settings.openInNewPane?(re(v,"\u21B5"),re(I,yn()+" \u21B5"),re(D,"Shift \u21B5"),re(R,yn()+" Shift \u21B5")):(re(v,yn()+" \u21B5"),re(I,"\u21B5"),re(D,yn()+" Shift \u21B5"),re(R,"Shift \u21B5"))}),Wi(()=>{F(l)?oe():(re(b,!1),re(d,[],!0))}),Wi(()=>{switch(r()){case 1:re(A,"Loading cache...");break;case 2:re(A,"Reading files...");break;case 3:re(A,"Indexing files...");break;case 4:oe(),re(A,"Updating cache...");break;default:oe(),re(A,"");break}}),rs(async()=>{Ke.enable("vault"),Ke.on("vault","enter",at),Ke.on("vault","open-in-background",we),Ke.on("vault","create-note",et),Ke.on("vault","open-in-new-pane",ct),Ke.on("vault","insert-link",ft),Ke.on("vault","tab",L),Ke.on("vault","arrow-up",()=>Q(-1)),Ke.on("vault","arrow-down",()=>Q(1)),Ke.on("vault","prev-search-history",ce),Ke.on("vault","next-search-history",le),Ke.on("vault","open-in-new-leaf",qt),await t.plugin.notesIndexer.refreshIndex(),await oe()}),Of(()=>{Ke.disable("vault")});async function ce(){let Le=(await t.plugin.searchHistory.getHistory()).filter(Ut=>Ut);++o>=Le.length&&(o=0),re(l,Le[o],!0),_?.setInputValue(F(l)??"")}async function le(){let Le=(await t.plugin.searchHistory.getHistory()).filter(Ut=>Ut);--o<0&&(o=Le.length?Le.length-1:0),re(l,Le[o],!0),_?.setInputValue(F(l)??"")}let Re=null;async function xe(){re(b,!0),Re&&(Re.cancel(),Re=null),p=new Cu(F(l),{ignoreDiacritics:t.plugin.settings.ignoreDiacritics,ignoreArabicDiacritics:t.plugin.settings.ignoreArabicDiacritics}),Re=(0,ME.cancelable)(new Promise(Le=>{Le(t.plugin.searchEngine.getSuggestions(p))})),re(d,await Re,!0),re(u,0),await z(),re(b,!1)}let oe=Cc(xe,0);function Ue(Le){F(K)&&(Le?.ctrlKey?ct():at(),t.modal.close())}function at(){F(K)&&(Ae(F(K)),t.modal.close())}function we(){F(K)&&Ae(F(K),!0)}function ct(){F(K)&&(Ae(F(K),!0),t.modal.close())}function qt(){F(K)&&(Ae(F(K),!0,!0),t.modal.close())}function Et(){F(l)&&t.plugin.searchHistory.addToHistory(F(l))}function Ae(Le,Ut=!1,zt=!1){Et();let Wr=Le.matches?.[0]?.offset??0;Qf(t.plugin,Le,Wr,Ut,zt)}async function Xe(Le){await et()}async function et(Le){if(F(l)){try{await z_(t.plugin.app,F(l),Le?.newLeaf)}catch(Ut){new Xi.Notice(Ut.message);return}t.modal.close()}}function ft(){if(!F(K))return;let Le=t.plugin.app.vault.getMarkdownFiles().find(sn=>sn.path===F(K).path),Ut=t.plugin.app.workspace.getActiveFile(),zt=t.plugin.app.workspace.getActiveViewOfType(Xi.MarkdownView);if(!zt?.editor){new Xi.Notice("Omnisearch - Error - No active editor",3e3);return}let Wr;if(Le&&Ut)Wr=t.plugin.app.fileManager.generateMarkdownLink(Le,Ut.path,"",F(K).displayTitle);else{let sn=F(K).displayTitle===""?"":`|${F(K).displayTitle}`;Wr=`[[${F(K).basename}.${aa(F(K).path)}${sn}]]`}let oi=zt.editor.getCursor();zt.editor.replaceRange(Wr,oi,oi),oi.ch+=Wr.length,zt.editor.setCursor(oi),t.modal.close()}function L(){if(!(F(K)&&(Ni(F(K)?.path)||!F(K)?.matches.length)))if(Et(),t.modal.close(),F(K)){let Le=t.plugin.app.vault.getAbstractFileByPath(F(K).path);Le&&Le instanceof Xi.TFile&&new ls(t.plugin,Le,F(l)).open()}else{let Le=t.plugin.app.workspace.getActiveViewOfType(Xi.MarkdownView);Le?.file&&new ls(t.plugin,Le.file,F(l)).open()}}function Q(Le){re(u,Yf(F(u)+Le,F(d).length),!0),z()}async function z(){await Ci(),F(K)&&activeWindow.document.querySelector(`[data-result-id="${F(K).path}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}var ae=d6(),Ge=Xr(ae);as(yc(Ge,{get plugin(){return t.plugin},get initialValue(){return F(l)},placeholder:"Omnisearch - Vault",$$events:{input:Le=>re(l,Le.detail,!0)},children:(Le,Ut)=>{var zt=s6(),Wr=Se(zt);{var oi=ci=>{var Jt=u6();$r("click",Jt,Xe),Ce(ci,Jt)};_t(Wr,ci=>{t.plugin.settings.showCreateButton&&ci(oi)})}var sn=ze(Wr,2);{var va=ci=>{var Jt=a6();$r("click",Jt,L),Ce(ci,Jt)};_t(sn,ci=>{Xi.Platform.isMobile&&ci(va)})}be(zt),Ce(Le,zt)},$$slots:{default:!0}}),Le=>_=Le,()=>_);var Ve=ze(Ge,2);{var We=Le=>{var Ut=o6(),zt=Se(Ut);be(Ut),Gt(()=>mr(zt,`\u23F3 Work in progress: ${F(A)??""}`)),Ce(Le,Ut)};_t(Ve,Le=>{F(A)&&Le(We)})}var dt=ze(Ve,2);Tc(dt,{children:(Le,Ut)=>{var zt=f6(),Wr=Xr(zt);hc(Wr,17,()=>F(d),dc,(Jt,Fi,cu)=>{Wp(Jt,{height:100,offset:500,keep:!0,fadeOption:{delay:0,duration:0},children:(li,ya)=>{{let fi=Ga(()=>cu===F(u));Yp(li,{get plugin(){return t.plugin},get selected(){return F(fi)},get note(){return F(Fi)},$$events:{mousemove:An=>re(u,cu,!0),click:Ue,auxclick:An=>{An.button==1&&ct()}}})}},$$slots:{default:!0}})});var oi=ze(Wr,2),sn=Se(oi);{var va=Jt=>{var Fi=l6(),cu=ze(Xr(Fi));{var li=fi=>{var An=c6();Br(2),Ce(fi,An)},ya=Ga(()=>t.plugin.settings.simpleSearch&&F(l).split(Uf).some(fi=>fi.length<3));_t(cu,fi=>{F(ya)&&fi(li)})}Ce(Jt,Fi)},ci=Jt=>{var Fi=cc("Searching...");Ce(Jt,Fi)};_t(sn,Jt=>{!F(d).length&&F(l)&&!F(b)?Jt(va):F(b)&&Jt(ci,1)})}be(oi),Ce(Le,zt)},$$slots:{default:!0}});var Ot=ze(dt,2),Dt=ze(Se(Ot),2),Je=Se(Dt),ht=Se(Je);be(Je),Br(2),be(Dt);var ar=ze(Dt,2),Sr=Se(ar),Sn=Se(Sr,!0);be(Sr),Br(2),be(ar);var Nr=ze(ar,4),Lt=Se(Nr),Dr=Se(Lt,!0);be(Lt),Br(2),be(Nr);var au=ze(Nr,2),_e=Se(au),bl=Se(_e,!0);be(_e),Br(2),be(au);var xo=ze(au,2),xa=Se(xo),mt=Se(xa);be(xa),Br(2),be(xo);var su=ze(xo,2),_l=Se(su),ou=Se(_l,!0);be(_l),Br(2),be(su);var vo=ze(su,2),El=Se(vo),wd=Se(El,!0);be(El),Br(2),be(vo);var yo=ze(vo,2),ys=Se(yo),Un=Se(ys);be(ys),Br(2),be(yo);var To=ze(yo,2),Pu=Se(To),xl=Se(Pu);be(Pu),Br(2),be(To),Br(2),be(Ot),Gt((Le,Ut,zt,Wr)=>{mr(ht,`${Le??""} \u2191\u2193`),mr(Sn,F(I)),mr(Dr,F(v)),mr(bl,H),mr(mt,`${Ut??""} o`),mr(ou,F(R)),mr(wd,F(D)),mr(Un,`${zt??""} \u21B5`),mr(xl,`${Wr??""} g`)},[()=>Kf(),()=>yn(),()=>Kf(),()=>yn()]),Ce(e,ae),Pr(),i()}var Xi,ME,u6,a6,s6,o6,c6,l6,f6,d6,HE=N(()=>{pi();Pn();Xi=require("obsidian");ns();Op();Bp();vn();Ic();en();Rc();CE();jf();ME=Kn(RE());Gf();FE();u6=He("<button>Create note</button>"),a6=He("<button>In-File search</button>"),s6=He('<div class="omnisearch-input-container__buttons"><!> <!></div>'),o6=He('<div style="text-align: center; color: var(--text-accent); margin-top: 10px"> </div>'),c6=He(`<br/> <span style="color: var(--text-accent); font-size: small">You have enabled "Simpler Search" in the settings, try to type more
          characters.</span>`,1),l6=He("We found 0 results for your search here. <!>",1),f6=He('<!> <div style="text-align: center;"><!></div>',1),d6=He('<!> <!> <!> <div class="prompt-instructions"><div class="prompt-instruction"><span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to cycle history</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">Tab</span> <span>to switch to In-File Search</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in a new pane</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in a new split</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in the background</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to create</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to create in a new pane</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to insert a link</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to toggle excerpts</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">Esc</span><span>to close</span></div></div>',1)});function Vp(e,t){Fr(t,!1);let r=nt(),n=qe(t,"plugin",8),i=qe(t,"offset",8),u=qe(t,"note",8),o=qe(t,"index",8,0),l=qe(t,"selected",8,!1);pr(()=>(Pe(n()),Pe(u()),Pe(i())),()=>{re(r,n().textProcessor.makeExcerpt(u()?.content??"",i()))}),Ii(),Mn();{let d=On(()=>(Pe(o()),Te(()=>o().toString())));kc(e,{get id(){return F(d)},get selected(){return l()},$$events:{auxclick(p){xn.call(this,t,p)},click(p){xn.call(this,t,p)},mousemove(p){xn.call(this,t,p)}},children:(p,A)=>{var b=h6();is(b,()=>(Pe(n()),F(r),Pe(u()),Te(()=>n().textProcessor.highlightText(F(r),u().matches))),!0),be(b),Ce(p,b)},$$slots:{default:!0}})}Pr()}var h6,UE=N(()=>{pi();zi();Pn();Pp();h6=He('<div class="omnisearch-result__body"></div>')});function zp(e,t){Fr(t,!1);let r=qe(t,"plugin",8),n=qe(t,"modal",8),i=qe(t,"parent",8,null),u=qe(t,"singleFilePath",8,""),o=qe(t,"previousQuery",8),l=nt(),d=nt([]),p=nt(0),A=nt(),b=nt();rs(()=>{Ke.enable("infile"),Ke.on("infile","enter",H),Ke.on("infile","open-in-new-pane",R),Ke.on("infile","arrow-up",()=>I(-1)),Ke.on("infile","arrow-down",()=>I(1)),Ke.on("infile","tab",K)}),Of(()=>{Ke.disable("infile")});function _(Ae){let Xe=[],et=-1,ft=0;for(;++ft<100;){let L=v(Ae,et,gc);if(!L.length)break;et=L.last().offset,Xe.push(L)}return Xe}function v(Ae,Xe,et){let ft=Ae.find(L=>L.offset>Xe);return ft?Ae.filter(L=>L.offset>Xe&&L.offset<=ft.offset+et):[]}function I(Ae){re(p,Yf(F(p)+Ae,F(d).length)),D()}async function D(){await Ci(),document.querySelector(`[data-result-id="${F(p)}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}async function R(){return H(!0)}async function H(Ae=!1){if(F(A)){n().close(),i()&&i().close();let Xe=F(d)[F(p)]??0;await Qf(r(),F(A),Xe,Ae)}}function K(){new Su(r(),F(l)??o()).open(),n().close()}pr(()=>Pe(o()),()=>{re(l,o()??"")}),pr(()=>(F(l),F(b),Cu,Pe(r()),Pe(u())),()=>{(async()=>(F(l)&&(re(b,new Cu(F(l),{ignoreDiacritics:r().settings.ignoreDiacritics,ignoreArabicDiacritics:r().settings.ignoreArabicDiacritics})),re(A,(await r().searchEngine.getSuggestions(F(b),{singleFilePath:u()}))[0]??null)),re(p,0),await D()))()}),pr(()=>(F(A),F(b)),()=>{if(F(A)){let Ae=_(F(A).matches),Xe=F(b).getExactTerms();Xe.length&&(Ae=Ae.filter(et=>Xe.every(ft=>et.some(L=>L.match.includes(ft))))),re(d,Ae.map(et=>Math.round(et.first().offset)))}}),Ii(),Mn();var ce=_6(),le=Xr(ce);yc(le,{get plugin(){return r()},placeholder:"Omnisearch - File",get initialValue(){return o()},$$events:{input:Ae=>re(l,Ae.detail)},children:(Ae,Xe)=>{var et=m6(),ft=Se(et);{var L=Q=>{var z=p6();$r("click",z,K),Ce(Q,z)};_t(ft,Q=>{Pe(qp.Platform),Te(()=>qp.Platform.isMobile)&&Q(L)})}be(et),Ce(Ae,et)},$$slots:{default:!0}});var Re=ze(le,2);Tc(Re,{children:(Ae,Xe)=>{var et=Eu(),ft=Xr(et);{var L=z=>{var ae=Eu(),Ge=Xr(ae);hc(Ge,1,()=>F(d),dc,(Ve,We,dt)=>{{let Ot=On(()=>dt===F(p));Vp(Ve,{get plugin(){return r()},get offset(){return F(We)},get note(){return F(A)},index:dt,get selected(){return F(Ot)},$$events:{mousemove:Dt=>re(p,dt),click:Dt=>H(Dt.ctrlKey),auxclick:Dt=>{Dt.button==1&&H(!0)}}})}}),Ce(z,ae)},Q=z=>{var ae=A6();Ce(z,ae)};_t(ft,z=>{F(d),F(A),Te(()=>F(d).length&&F(A))?z(L):z(Q,-1)})}Ce(Ae,et)},$$slots:{default:!0}});var xe=ze(Re,2),oe=ze(Se(xe),6),Ue=ze(Se(oe),2);{var at=Ae=>{var Xe=g6();Ce(Ae,Xe)},we=Ae=>{var Xe=b6();Ce(Ae,Xe)};_t(Ue,Ae=>{i()?Ae(at):Ae(we,-1)})}be(oe);var ct=ze(oe,2),qt=Se(ct),Et=Se(qt);be(qt),Br(2),be(ct),be(xe),Gt(Ae=>mr(Et,`${Ae??""} \u21B5`),[()=>(Pe(yn),Te(yn))]),Ce(e,ce),Pr()}var qp,p6,m6,A6,g6,b6,_6,$E=N(()=>{pi();zi();Pn();Op();vn();en();ns();qp=require("obsidian");Bp();Rc();UE();jf();Ic();p6=He("<button>Vault search</button>"),m6=He('<div class="omnisearch-input-container__buttons"><!></div>'),A6=He('<div style="text-align: center;">We found 0 results for your search here.</div>'),g6=He("<span>to go back to Vault Search</span>"),b6=He("<span>to close</span>"),_6=He('<!> <!> <div class="prompt-instructions"><div class="prompt-instruction"><span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">\u21B5</span><span>to open</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">tab</span> <span>to switch to Vault Search</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">esc</span> <!></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in a new pane</span></div></div>',1)});var t0,e0,Su,ls,Rc=N(()=>{t0=require("obsidian");HE();$E();vn();ns();e0=class extends t0.Modal{constructor(t){super(t.app);let r=t.settings;this.modalEl.replaceChildren(),this.modalEl.addClass("omnisearch-modal","prompt"),this.modalEl.removeClass("modal"),this.modalEl.tabIndex=-1,this.scope.register([],"ArrowDown",d=>{d.preventDefault(),Ke.emit("arrow-down")}),this.scope.register([],"ArrowUp",d=>{d.preventDefault(),Ke.emit("arrow-up")});for(let d of[{k:"J",dir:"down"},{k:"K",dir:"up"}])for(let p of["Ctrl","Mod"])this.scope.register([p],d.k,A=>{r.vimLikeNavigationShortcut&&Ke.emit("arrow-"+d.dir)});for(let d of[{k:"N",dir:"down"},{k:"P",dir:"up"}])for(let p of["Ctrl","Mod"])this.scope.register([p],d.k,A=>{r.vimLikeNavigationShortcut&&Ke.emit("arrow-"+d.dir)});let n,i,u,o,l=["Mod","Alt"];r.openInNewPane?(n=["Mod"],i=[],u=["Mod","Shift"],o=["Shift"]):(n=[],i=["Mod"],u=["Shift"],o=["Mod","Shift"]),this.scope.register(i,"Enter",d=>{d.preventDefault(),Ke.emit("open-in-new-pane")}),this.scope.register(l,"Enter",d=>{d.preventDefault(),Ke.emit("open-in-new-leaf")}),this.scope.register(["Alt"],"Enter",d=>{d.preventDefault(),Ke.emit("insert-link")}),this.scope.register(u,"Enter",d=>{d.preventDefault(),Ke.emit("create-note")}),this.scope.register(o,"Enter",d=>{d.preventDefault(),Ke.emit("create-note",{newLeaf:!0})}),this.scope.register(n,"Enter",d=>{Sp()||(d.preventDefault(),Ke.emit("enter"))}),this.scope.register(["Mod"],"O",d=>{Sp()||(d.preventDefault(),Ke.emit("open-in-background"))}),this.scope.register([],"Tab",d=>{d.preventDefault(),Ke.emit("tab")}),this.scope.register(["Alt"],"ArrowDown",d=>{d.preventDefault(),Ke.emit("next-search-history")}),this.scope.register(["Alt"],"ArrowUp",d=>{d.preventDefault(),Ke.emit("prev-search-history")}),this.scope.register(["Mod"],"G",d=>{Ke.emit(Hf.ToggleExcerpts)})}},Su=class extends e0{constructor(t,r){super(t);let n=t.app.workspace.getActiveViewOfType(t0.MarkdownView)?.editor.getSelection();t.searchHistory.getHistory().then(i=>{let u=t.settings.showPreviousQueryResults?i[0]:null,o=Xa(Gp,{target:this.modalEl,props:{plugin:t,modal:this,previousQuery:r||n||u||""}});this.onClose=()=>{Gs(o)}})}},ls=class extends e0{constructor(t,r,n="",i){super(t);let u=Xa(zp,{target:this.modalEl,props:{plugin:t,modal:this,singleFilePath:r.path,parent:i,previousQuery:n}});i&&i.containerEl.toggleVisibility(!1),this.onClose=()=>{i&&i.containerEl.toggleVisibility(!0),Gs(u)}}}});function E6(e,t){return t.map(r=>{let{score:n,path:i,basename:u,foundWords:o,matches:l,content:d}=r,p=e.textProcessor.makeExcerpt(d,l[0]?.offset??-1);return{score:n,vault:e.app.vault.getName(),path:i,basename:u,foundWords:o,matches:l.map(b=>({match:b.match,offset:b.offset})),excerpt:p}})}function QE(){KE=!0,r0.forEach(e=>e())}function WE(e){if(YE)return;YE=!0,e.registerObsidianProtocolHandler("omnisearch",r=>{new Su(e,r.query).open()});let t=Jp(e);globalThis.omnisearch=t,e.app.plugins.plugins.omnisearch.api=t}function Jp(e){return{async search(t){let r=new Cu(t,{ignoreDiacritics:e.settings.ignoreDiacritics,ignoreArabicDiacritics:e.settings.ignoreArabicDiacritics}),n=await e.searchEngine.getSuggestions(r);return E6(e,n)},registerOnIndexed(t){r0.push(t),KE&&t()},unregisterOnIndexed(t){r0=r0.filter(r=>r!==t)},refreshIndex:e.notesIndexer.refreshIndex}}var KE,r0,YE,jp=N(()=>{jf();Rc();KE=!1,r0=[];YE=!1});var GE=Ra((Zp,Xp)=>{(function(e,t){typeof Zp=="object"&&typeof Xp<"u"?Xp.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.Dexie=t())})(Zp,function(){"use strict";var e=function(a,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])},e(a,s)};function t(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");e(a,s);function f(){this.constructor=a}a.prototype=s===null?Object.create(s):(f.prototype=s.prototype,new f)}var r=function(){return r=Object.assign||function(s){for(var f,h=1,m=arguments.length;h<m;h++){f=arguments[h];for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(s[g]=f[g])}return s},r.apply(this,arguments)};function n(a,s,f){if(f||arguments.length===2)for(var h=0,m=s.length,g;h<m;h++)(g||!(h in s))&&(g||(g=Array.prototype.slice.call(s,0,h)),g[h]=s[h]);return a.concat(g||Array.prototype.slice.call(s))}typeof SuppressedError=="function"&&SuppressedError;var i=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,u=Object.keys,o=Array.isArray;typeof Promise<"u"&&!i.Promise&&(i.Promise=Promise);function l(a,s){return typeof s!="object"||u(s).forEach(function(f){a[f]=s[f]}),a}var d=Object.getPrototypeOf,p={}.hasOwnProperty;function A(a,s){return p.call(a,s)}function b(a,s){typeof s=="function"&&(s=s(d(a))),(typeof Reflect>"u"?u:Reflect.ownKeys)(s).forEach(function(f){v(a,f,s[f])})}var _=Object.defineProperty;function v(a,s,f,h){_(a,s,l(f&&A(f,"get")&&typeof f.get=="function"?{get:f.get,set:f.set,configurable:!0}:{value:f,configurable:!0,writable:!0},h))}function I(a){return{from:function(s){return a.prototype=Object.create(s.prototype),v(a.prototype,"constructor",a),{extend:b.bind(null,a.prototype)}}}}var D=Object.getOwnPropertyDescriptor;function R(a,s){var f=D(a,s),h;return f||(h=d(a))&&R(h,s)}var H=[].slice;function K(a,s,f){return H.call(a,s,f)}function ce(a,s){return s(a)}function le(a){if(!a)throw new Error("Assertion Failed")}function Re(a){i.setImmediate?setImmediate(a):setTimeout(a,0)}function xe(a,s){return a.reduce(function(f,h,m){var g=s(h,m);return g&&(f[g[0]]=g[1]),f},{})}function oe(a,s){if(typeof s=="string"&&A(a,s))return a[s];if(!s)return a;if(typeof s!="string"){for(var f=[],h=0,m=s.length;h<m;++h){var g=oe(a,s[h]);f.push(g)}return f}var E=s.indexOf(".");if(E!==-1){var y=a[s.substr(0,E)];return y==null?void 0:oe(y,s.substr(E+1))}}function Ue(a,s,f){if(!(!a||s===void 0)&&!("isFrozen"in Object&&Object.isFrozen(a)))if(typeof s!="string"&&"length"in s){le(typeof f!="string"&&"length"in f);for(var h=0,m=s.length;h<m;++h)Ue(a,s[h],f[h])}else{var g=s.indexOf(".");if(g!==-1){var E=s.substr(0,g),y=s.substr(g+1);if(y==="")f===void 0?o(a)&&!isNaN(parseInt(E))?a.splice(E,1):delete a[E]:a[E]=f;else{var T=a[E];(!T||!A(a,E))&&(T=a[E]={}),Ue(T,y,f)}}else f===void 0?o(a)&&!isNaN(parseInt(s))?a.splice(s,1):delete a[s]:a[s]=f}}function at(a,s){typeof s=="string"?Ue(a,s,void 0):"length"in s&&[].map.call(s,function(f){Ue(a,f,void 0)})}function we(a){var s={};for(var f in a)A(a,f)&&(s[f]=a[f]);return s}var ct=[].concat;function qt(a){return ct.apply([],a)}var Et="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(qt([8,16,32,64].map(function(a){return["Int","Uint","Float"].map(function(s){return s+a+"Array"})}))).filter(function(a){return i[a]}),Ae=new Set(Et.map(function(a){return i[a]}));function Xe(a){var s={};for(var f in a)if(A(a,f)){var h=a[f];s[f]=!h||typeof h!="object"||Ae.has(h.constructor)?h:Xe(h)}return s}var et=null;function ft(a){et=new WeakMap;var s=L(a);return et=null,s}function L(a){if(!a||typeof a!="object")return a;var s=et.get(a);if(s)return s;if(o(a)){s=[],et.set(a,s);for(var f=0,h=a.length;f<h;++f)s.push(L(a[f]))}else if(Ae.has(a.constructor))s=a;else{var m=d(a);s=m===Object.prototype?{}:Object.create(m),et.set(a,s);for(var g in a)A(a,g)&&(s[g]=L(a[g]))}return s}var Q={}.toString;function z(a){return Q.call(a).slice(8,-1)}var ae=typeof Symbol<"u"?Symbol.iterator:"@@iterator",Ge=typeof ae=="symbol"?function(a){var s;return a!=null&&(s=a[ae])&&s.apply(a)}:function(){return null};function Ve(a,s){var f=a.indexOf(s);return f>=0&&a.splice(f,1),f>=0}var We={};function dt(a){var s,f,h,m;if(arguments.length===1){if(o(a))return a.slice();if(this===We&&typeof a=="string")return[a];if(m=Ge(a)){for(f=[];h=m.next(),!h.done;)f.push(h.value);return f}if(a==null)return[a];if(s=a.length,typeof s=="number"){for(f=new Array(s);s--;)f[s]=a[s];return f}return[a]}for(s=arguments.length,f=new Array(s);s--;)f[s]=arguments[s];return f}var Ot=typeof Symbol<"u"?function(a){return a[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Dt=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],Je=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],ht=Dt.concat(Je),ar={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Sr(a,s){this.name=a,this.message=s}I(Sr).from(Error).extend({toString:function(){return this.name+": "+this.message}});function Sn(a,s){return a+". Errors: "+Object.keys(s).map(function(f){return s[f].toString()}).filter(function(f,h,m){return m.indexOf(f)===h}).join(`
`)}function Nr(a,s,f,h){this.failures=s,this.failedKeys=h,this.successCount=f,this.message=Sn(a,s)}I(Nr).from(Sr);function Lt(a,s){this.name="BulkError",this.failures=Object.keys(s).map(function(f){return s[f]}),this.failuresByPos=s,this.message=Sn(a,this.failures)}I(Lt).from(Sr);var Dr=ht.reduce(function(a,s){return a[s]=s+"Error",a},{}),au=Sr,_e=ht.reduce(function(a,s){var f=s+"Error";function h(m,g){this.name=f,m?typeof m=="string"?(this.message="".concat(m).concat(g?`
 `+g:""),this.inner=g||null):typeof m=="object"&&(this.message="".concat(m.name," ").concat(m.message),this.inner=m):(this.message=ar[s]||f,this.inner=null)}return I(h).from(au),a[s]=h,a},{});_e.Syntax=SyntaxError,_e.Type=TypeError,_e.Range=RangeError;var bl=Je.reduce(function(a,s){return a[s+"Error"]=_e[s],a},{});function xo(a,s){if(!a||a instanceof Sr||a instanceof TypeError||a instanceof SyntaxError||!a.name||!bl[a.name])return a;var f=new bl[a.name](s||a.message,a);return"stack"in a&&v(f,"stack",{get:function(){return this.inner.stack}}),f}var xa=ht.reduce(function(a,s){return["Syntax","Type","Range"].indexOf(s)===-1&&(a[s+"Error"]=_e[s]),a},{});xa.ModifyError=Nr,xa.DexieError=Sr,xa.BulkError=Lt;function mt(){}function su(a){return a}function _l(a,s){return a==null||a===su?s:function(f){return s(a(f))}}function ou(a,s){return function(){a.apply(this,arguments),s.apply(this,arguments)}}function vo(a,s){return a===mt?s:function(){var f=a.apply(this,arguments);f!==void 0&&(arguments[0]=f);var h=this.onsuccess,m=this.onerror;this.onsuccess=null,this.onerror=null;var g=s.apply(this,arguments);return h&&(this.onsuccess=this.onsuccess?ou(h,this.onsuccess):h),m&&(this.onerror=this.onerror?ou(m,this.onerror):m),g!==void 0?g:f}}function El(a,s){return a===mt?s:function(){a.apply(this,arguments);var f=this.onsuccess,h=this.onerror;this.onsuccess=this.onerror=null,s.apply(this,arguments),f&&(this.onsuccess=this.onsuccess?ou(f,this.onsuccess):f),h&&(this.onerror=this.onerror?ou(h,this.onerror):h)}}function wd(a,s){return a===mt?s:function(f){var h=a.apply(this,arguments);l(f,h);var m=this.onsuccess,g=this.onerror;this.onsuccess=null,this.onerror=null;var E=s.apply(this,arguments);return m&&(this.onsuccess=this.onsuccess?ou(m,this.onsuccess):m),g&&(this.onerror=this.onerror?ou(g,this.onerror):g),h===void 0?E===void 0?void 0:E:l(h,E)}}function yo(a,s){return a===mt?s:function(){return s.apply(this,arguments)===!1?!1:a.apply(this,arguments)}}function ys(a,s){return a===mt?s:function(){var f=a.apply(this,arguments);if(f&&typeof f.then=="function"){for(var h=this,m=arguments.length,g=new Array(m);m--;)g[m]=arguments[m];return f.then(function(){return s.apply(h,g)})}return s.apply(this,arguments)}}var Un=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function To(a,s){Un=a}var Pu={},xl=100,Le=typeof Promise>"u"?[]:function(){var a=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[a,d(a),a];var s=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[s,d(s),a]}(),Ut=Le[0],zt=Le[1],Wr=Le[2],oi=zt&&zt.then,sn=Ut&&Ut.constructor,va=!!Wr;function ci(){queueMicrotask(Gy)}var Jt=function(a,s){wo.push([a,s]),cu&&(ci(),cu=!1)},Fi=!0,cu=!0,li=[],ya=[],fi=su,An={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:mt,pgp:!1,env:{},finalize:mt},ge=An,wo=[],Ta=0,vl=[];function ue(a){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var s=this._PSD=ge;if(typeof a!="function"){if(a!==Pu)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Cd(this,this._value);return}this._state=null,this._value=null,++s.ref,Eg(this,a)}var Id={get:function(){var a=ge,s=Il;function f(h,m){var g=this,E=!a.global&&(a!==ge||s!==Il),y=E&&!Hu(),T=new ue(function(S,O){Sd(g,new _g(yg(h,a,E,y),yg(m,a,E,y),S,O,a))});return this._consoleTask&&(T._consoleTask=this._consoleTask),T}return f.prototype=Pu,f},set:function(a){v(this,"then",a&&a.prototype===Pu?Id:{get:function(){return a},set:Id.set})}};b(ue.prototype,{then:Id,_then:function(a,s){Sd(this,new _g(null,null,a,s,ge))},catch:function(a){if(arguments.length===1)return this.then(null,a);var s=arguments[0],f=arguments[1];return typeof s=="function"?this.then(null,function(h){return h instanceof s?f(h):yl(h)}):this.then(null,function(h){return h&&h.name===s?f(h):yl(h)})},finally:function(a){return this.then(function(s){return ue.resolve(a()).then(function(){return s})},function(s){return ue.resolve(a()).then(function(){return yl(s)})})},timeout:function(a,s){var f=this;return a<1/0?new ue(function(h,m){var g=setTimeout(function(){return m(new _e.Timeout(s))},a);f.then(h,m).finally(clearTimeout.bind(null,g))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&v(ue.prototype,Symbol.toStringTag,"Dexie.Promise"),An.env=vg();function _g(a,s,f,h,m){this.onFulfilled=typeof a=="function"?a:null,this.onRejected=typeof s=="function"?s:null,this.resolve=f,this.reject=h,this.psd=m}b(ue,{all:function(){var a=dt.apply(null,arguments).map(Cl);return new ue(function(s,f){a.length===0&&s([]);var h=a.length;a.forEach(function(m,g){return ue.resolve(m).then(function(E){a[g]=E,--h||s(a)},f)})})},resolve:function(a){if(a instanceof ue)return a;if(a&&typeof a.then=="function")return new ue(function(f,h){a.then(f,h)});var s=new ue(Pu,!0,a);return s},reject:yl,race:function(){var a=dt.apply(null,arguments).map(Cl);return new ue(function(s,f){a.map(function(h){return ue.resolve(h).then(s,f)})})},PSD:{get:function(){return ge},set:function(a){return ge=a}},totalEchoes:{get:function(){return Il}},newPSD:Mu,usePSD:wa,scheduler:{get:function(){return Jt},set:function(a){Jt=a}},rejectionMapper:{get:function(){return fi},set:function(a){fi=a}},follow:function(a,s){return new ue(function(f,h){return Mu(function(m,g){var E=ge;E.unhandleds=[],E.onunhandled=g,E.finalize=ou(function(){var y=this;Vy(function(){y.unhandleds.length===0?m():g(y.unhandleds[0])})},E.finalize),a()},s,f,h)})}}),sn&&(sn.allSettled&&v(ue,"allSettled",function(){var a=dt.apply(null,arguments).map(Cl);return new ue(function(s){a.length===0&&s([]);var f=a.length,h=new Array(f);a.forEach(function(m,g){return ue.resolve(m).then(function(E){return h[g]={status:"fulfilled",value:E}},function(E){return h[g]={status:"rejected",reason:E}}).then(function(){return--f||s(h)})})})}),sn.any&&typeof AggregateError<"u"&&v(ue,"any",function(){var a=dt.apply(null,arguments).map(Cl);return new ue(function(s,f){a.length===0&&f(new AggregateError([]));var h=a.length,m=new Array(h);a.forEach(function(g,E){return ue.resolve(g).then(function(y){return s(y)},function(y){m[E]=y,--h||f(new AggregateError(m))})})})}),sn.withResolvers&&(ue.withResolvers=sn.withResolvers));function Eg(a,s){try{s(function(f){if(a._state===null){if(f===a)throw new TypeError("A promise cannot be resolved with itself.");var h=a._lib&&Ts();f&&typeof f.then=="function"?Eg(a,function(m,g){f instanceof ue?f._then(m,g):f.then(m,g)}):(a._state=!0,a._value=f,xg(a)),h&&ws()}},Cd.bind(null,a))}catch(f){Cd(a,f)}}function Cd(a,s){if(ya.push(s),a._state===null){var f=a._lib&&Ts();s=fi(s),a._state=!1,a._value=s,qy(a),xg(a),f&&ws()}}function xg(a){var s=a._listeners;a._listeners=[];for(var f=0,h=s.length;f<h;++f)Sd(a,s[f]);var m=a._PSD;--m.ref||m.finalize(),Ta===0&&(++Ta,Jt(function(){--Ta===0&&Nd()},[]))}function Sd(a,s){if(a._state===null){a._listeners.push(s);return}var f=a._state?s.onFulfilled:s.onRejected;if(f===null)return(a._state?s.resolve:s.reject)(a._value);++s.psd.ref,++Ta,Jt(Wy,[f,a,s])}function Wy(a,s,f){try{var h,m=s._value;!s._state&&ya.length&&(ya=[]),h=Un&&s._consoleTask?s._consoleTask.run(function(){return a(m)}):a(m),!s._state&&ya.indexOf(m)===-1&&zy(s),f.resolve(h)}catch(g){f.reject(g)}finally{--Ta===0&&Nd(),--f.psd.ref||f.psd.finalize()}}function Gy(){wa(An,function(){Ts()&&ws()})}function Ts(){var a=Fi;return Fi=!1,cu=!1,a}function ws(){var a,s,f;do for(;wo.length>0;)for(a=wo,wo=[],f=a.length,s=0;s<f;++s){var h=a[s];h[0].apply(null,h[1])}while(wo.length>0);Fi=!0,cu=!0}function Nd(){var a=li;li=[],a.forEach(function(h){h._PSD.onunhandled.call(null,h._value,h)});for(var s=vl.slice(0),f=s.length;f;)s[--f]()}function Vy(a){function s(){a(),vl.splice(vl.indexOf(s),1)}vl.push(s),++Ta,Jt(function(){--Ta===0&&Nd()},[])}function qy(a){li.some(function(s){return s._value===a._value})||li.push(a)}function zy(a){for(var s=li.length;s;)if(li[--s]._value===a._value){li.splice(s,1);return}}function yl(a){return new ue(Pu,!1,a)}function kt(a,s){var f=ge;return function(){var h=Ts(),m=ge;try{return Uu(f,!0),a.apply(this,arguments)}catch(g){s&&s(g)}finally{Uu(m,!1),h&&ws()}}}var Ar={awaits:0,echoes:0,id:0},Jy=0,Tl=[],wl=0,Il=0,jy=0;function Mu(a,s,f,h){var m=ge,g=Object.create(m);g.parent=m,g.ref=0,g.global=!1,g.id=++jy,An.env,g.env=va?{Promise:ue,PromiseProp:{value:ue,configurable:!0,writable:!0},all:ue.all,race:ue.race,allSettled:ue.allSettled,any:ue.any,resolve:ue.resolve,reject:ue.reject}:{},s&&l(g,s),++m.ref,g.finalize=function(){--this.parent.ref||this.parent.finalize()};var E=wa(g,a,f,h);return g.ref===0&&g.finalize(),E}function Is(){return Ar.id||(Ar.id=++Jy),++Ar.awaits,Ar.echoes+=xl,Ar.id}function Hu(){return Ar.awaits?(--Ar.awaits===0&&(Ar.id=0),Ar.echoes=Ar.awaits*xl,!0):!1}(""+oi).indexOf("[native code]")===-1&&(Is=Hu=mt);function Cl(a){return Ar.echoes&&a&&a.constructor===sn?(Is(),a.then(function(s){return Hu(),s},function(s){return Hu(),$t(s)})):a}function Zy(a){++Il,(!Ar.echoes||--Ar.echoes===0)&&(Ar.echoes=Ar.awaits=Ar.id=0),Tl.push(ge),Uu(a,!0)}function Xy(){var a=Tl[Tl.length-1];Tl.pop(),Uu(a,!1)}function Uu(a,s){var f=ge;if((s?Ar.echoes&&(!wl++||a!==ge):wl&&(!--wl||a!==ge))&&queueMicrotask(s?Zy.bind(null,a):Xy),a!==ge&&(ge=a,f===An&&(An.env=vg()),va)){var h=An.env.Promise,m=a.env;(f.global||a.global)&&(Object.defineProperty(i,"Promise",m.PromiseProp),h.all=m.all,h.race=m.race,h.resolve=m.resolve,h.reject=m.reject,m.allSettled&&(h.allSettled=m.allSettled),m.any&&(h.any=m.any))}}function vg(){var a=i.Promise;return va?{Promise:a,PromiseProp:Object.getOwnPropertyDescriptor(i,"Promise"),all:a.all,race:a.race,allSettled:a.allSettled,any:a.any,resolve:a.resolve,reject:a.reject}:{}}function wa(a,s,f,h,m){var g=ge;try{return Uu(a,!0),s(f,h,m)}finally{Uu(g,!1)}}function yg(a,s,f,h){return typeof a!="function"?a:function(){var m=ge;f&&Is(),Uu(s,!0);try{return a.apply(this,arguments)}finally{Uu(m,!1),h&&queueMicrotask(Hu)}}}function Dd(a){Promise===sn&&Ar.echoes===0?wl===0?a():enqueueNativeMicroTask(a):setTimeout(a,0)}var $t=ue.reject;function kd(a,s,f,h){if(!a.idbdb||!a._state.openComplete&&!ge.letThrough&&!a._vip){if(a._state.openComplete)return $t(new _e.DatabaseClosed(a._state.dbOpenError));if(!a._state.isBeingOpened){if(!a._state.autoOpen)return $t(new _e.DatabaseClosed);a.open().catch(mt)}return a._state.dbReadyPromise.then(function(){return kd(a,s,f,h)})}else{var m=a._createTransaction(s,f,a._dbSchema);try{m.create(),a._state.PR1398_maxLoop=3}catch(g){return g.name===Dr.InvalidState&&a.isOpen()&&--a._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),a.close({disableAutoOpen:!1}),a.open().then(function(){return kd(a,s,f,h)})):$t(g)}return m._promise(s,function(g,E){return Mu(function(){return ge.trans=m,h(g,E,m)})}).then(function(g){if(s==="readwrite")try{m.idbtrans.commit()}catch{}return s==="readonly"?g:m._completion.then(function(){return g})})}}var Tg="4.4.2",Ia=String.fromCharCode(65535),Rd=-1/0,lu="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",wg="String expected.",Ig=1e3,Sl="__dbnames",Od="readonly",Bd="readwrite";function Ca(a,s){return a?s?function(){return a.apply(this,arguments)&&s.apply(this,arguments)}:a:s}var Cg={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Nl(a){return typeof a=="string"&&!/\./.test(a)?function(s){return s[a]===void 0&&a in s&&(s=ft(s),delete s[a]),s}:function(s){return s}}function Sg(){throw _e.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function tt(a,s){try{var f=Ng(a),h=Ng(s);if(f!==h)return f==="Array"?1:h==="Array"?-1:f==="binary"?1:h==="binary"?-1:f==="string"?1:h==="string"?-1:f==="Date"?1:h!=="Date"?NaN:-1;switch(f){case"number":case"Date":case"string":return a>s?1:a<s?-1:0;case"binary":return t3(Dg(a),Dg(s));case"Array":return e3(a,s)}}catch{}return NaN}function e3(a,s){for(var f=a.length,h=s.length,m=f<h?f:h,g=0;g<m;++g){var E=tt(a[g],s[g]);if(E!==0)return E}return f===h?0:f<h?-1:1}function t3(a,s){for(var f=a.length,h=s.length,m=f<h?f:h,g=0;g<m;++g)if(a[g]!==s[g])return a[g]<s[g]?-1:1;return f===h?0:f<h?-1:1}function Ng(a){var s=typeof a;if(s!=="object")return s;if(ArrayBuffer.isView(a))return"binary";var f=z(a);return f==="ArrayBuffer"?"binary":f}function Dg(a){return a instanceof Uint8Array?a:ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(a)}function Dl(a,s,f){var h=a.schema.yProps;return h?(s&&f.numFailures>0&&(s=s.filter(function(m,g){return!f.failures[g]})),Promise.all(h.map(function(m){var g=m.updatesTable;return s?a.db.table(g).where("k").anyOf(s).delete():a.db.table(g).clear()})).then(function(){return f})):f}var Io=function(){function a(s){this["@@propmod"]=s}return a.prototype.execute=function(s){var f,h=this["@@propmod"];if(h.add!==void 0){var m=h.add;if(o(m))return n(n([],o(s)?s:[],!0),m,!0).sort();if(typeof m=="number")return(Number(s)||0)+m;if(typeof m=="bigint")try{return BigInt(s)+m}catch{return BigInt(0)+m}throw new TypeError("Invalid term ".concat(m))}if(h.remove!==void 0){var g=h.remove;if(o(g))return o(s)?s.filter(function(y){return!g.includes(y)}).sort():[];if(typeof g=="number")return Number(s)-g;if(typeof g=="bigint")try{return BigInt(s)-g}catch{return BigInt(0)-g}throw new TypeError("Invalid subtrahend ".concat(g))}var E=(f=h.replacePrefix)===null||f===void 0?void 0:f[0];return E&&typeof s=="string"&&s.startsWith(E)?h.replacePrefix[1]+s.substring(E.length):s},a}();function kg(a,s){for(var f=u(s),h=f.length,m=!1,g=0;g<h;++g){var E=f[g],y=s[E],T=oe(a,E);y instanceof Io?(Ue(a,E,y.execute(T)),m=!0):T!==y&&(Ue(a,E,y),m=!0)}return m}var Rg=function(){function a(){}return a.prototype._trans=function(s,f,h){var m=this._tx||ge.trans,g=this.name,E=Un&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(s==="readonly"?"read":"write"," ").concat(this.name));function y(O,B,U){if(!U.schema[g])throw new _e.NotFound("Table "+g+" not part of transaction");return f(U.idbtrans,U)}var T=Ts();try{var S=m&&m.db._novip===this.db._novip?m===ge.trans?m._promise(s,y,h):Mu(function(){return m._promise(s,y,h)},{trans:m,transless:ge.transless||ge}):kd(this.db,s,[this.name],y);return E&&(S._consoleTask=E,S=S.catch(function(O){return console.trace(O),$t(O)})),S}finally{T&&ws()}},a.prototype.get=function(s,f){var h=this;return s&&s.constructor===Object?this.where(s).first(f):s==null?$t(new _e.Type("Invalid argument to Table.get()")):this._trans("readonly",function(m){return h.core.get({trans:m,key:s}).then(function(g){return h.hook.reading.fire(g)})}).then(f)},a.prototype.where=function(s){if(typeof s=="string")return new this.db.WhereClause(this,s);if(o(s))return new this.db.WhereClause(this,"[".concat(s.join("+"),"]"));var f=u(s);if(f.length===1)return this.where(f[0]).equals(s[f[0]]);var h=this.schema.indexes.concat(this.schema.primKey).filter(function(O){if(O.compound&&f.every(function(U){return O.keyPath.indexOf(U)>=0})){for(var B=0;B<f.length;++B)if(f.indexOf(O.keyPath[B])===-1)return!1;return!0}return!1}).sort(function(O,B){return O.keyPath.length-B.keyPath.length})[0];if(h&&this.db._maxKey!==Ia){var m=h.keyPath.slice(0,f.length);return this.where(m).equals(m.map(function(O){return s[O]}))}!h&&Un&&console.warn("The query ".concat(JSON.stringify(s)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(f.join("+"),"]"));var g=this.schema.idxByName;function E(O,B){return tt(O,B)===0}var y=f.reduce(function(O,B){var U=O[0],q=O[1],k=g[B],M=s[B];return[U||k,U||!k?Ca(q,k&&k.multi?function(W){var Y=oe(W,B);return o(Y)&&Y.some(function(X){return E(M,X)})}:function(W){return E(M,oe(W,B))}):q]},[null,null]),T=y[0],S=y[1];return T?this.where(T.name).equals(s[T.keyPath]).filter(S):h?this.filter(S):this.where(f).equals("")},a.prototype.filter=function(s){return this.toCollection().and(s)},a.prototype.count=function(s){return this.toCollection().count(s)},a.prototype.offset=function(s){return this.toCollection().offset(s)},a.prototype.limit=function(s){return this.toCollection().limit(s)},a.prototype.each=function(s){return this.toCollection().each(s)},a.prototype.toArray=function(s){return this.toCollection().toArray(s)},a.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},a.prototype.orderBy=function(s){return new this.db.Collection(new this.db.WhereClause(this,o(s)?"[".concat(s.join("+"),"]"):s))},a.prototype.reverse=function(){return this.toCollection().reverse()},a.prototype.mapToClass=function(s){var f=this,h=f.db,m=f.name;this.schema.mappedClass=s,s.prototype instanceof Sg&&(s=function(T){t(S,T);function S(){return T!==null&&T.apply(this,arguments)||this}return Object.defineProperty(S.prototype,"db",{get:function(){return h},enumerable:!1,configurable:!0}),S.prototype.table=function(){return m},S}(s));for(var g=new Set,E=s.prototype;E;E=d(E))Object.getOwnPropertyNames(E).forEach(function(T){return g.add(T)});var y=function(T){if(!T)return T;var S=Object.create(s.prototype);for(var O in T)if(!g.has(O))try{S[O]=T[O]}catch{}return S};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=y,this.hook("reading",y),s},a.prototype.defineClass=function(){function s(f){l(this,f)}return this.mapToClass(s)},a.prototype.add=function(s,f){var h=this,m=this.schema.primKey,g=m.auto,E=m.keyPath,y=s;return E&&g&&(y=Nl(E)(s)),this._trans("readwrite",function(T){return h.core.mutate({trans:T,type:"add",keys:f!=null?[f]:null,values:[y]})}).then(function(T){return T.numFailures?ue.reject(T.failures[0]):T.lastResult}).then(function(T){if(E)try{Ue(s,E,T)}catch{}return T})},a.prototype.upsert=function(s,f){var h=this,m=this.schema.primKey.keyPath;return this._trans("readwrite",function(g){return h.core.get({trans:g,key:s}).then(function(E){var y=E??{};return kg(y,f),m&&Ue(y,m,s),h.core.mutate({trans:g,type:"put",values:[y],keys:[s],upsert:!0,updates:{keys:[s],changeSpecs:[f]}}).then(function(T){return T.numFailures?ue.reject(T.failures[0]):!!E})})})},a.prototype.update=function(s,f){if(typeof s=="object"&&!o(s)){var h=oe(s,this.schema.primKey.keyPath);return h===void 0?$t(new _e.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(h).modify(f)}else return this.where(":id").equals(s).modify(f)},a.prototype.put=function(s,f){var h=this,m=this.schema.primKey,g=m.auto,E=m.keyPath,y=s;return E&&g&&(y=Nl(E)(s)),this._trans("readwrite",function(T){return h.core.mutate({trans:T,type:"put",values:[y],keys:f!=null?[f]:null})}).then(function(T){return T.numFailures?ue.reject(T.failures[0]):T.lastResult}).then(function(T){if(E)try{Ue(s,E,T)}catch{}return T})},a.prototype.delete=function(s){var f=this;return this._trans("readwrite",function(h){return f.core.mutate({trans:h,type:"delete",keys:[s]}).then(function(m){return Dl(f,[s],m)}).then(function(m){return m.numFailures?ue.reject(m.failures[0]):void 0})})},a.prototype.clear=function(){var s=this;return this._trans("readwrite",function(f){return s.core.mutate({trans:f,type:"deleteRange",range:Cg}).then(function(h){return Dl(s,null,h)})}).then(function(f){return f.numFailures?ue.reject(f.failures[0]):void 0})},a.prototype.bulkGet=function(s){var f=this;return this._trans("readonly",function(h){return f.core.getMany({keys:s,trans:h}).then(function(m){return m.map(function(g){return f.hook.reading.fire(g)})})})},a.prototype.bulkAdd=function(s,f,h){var m=this,g=Array.isArray(f)?f:void 0;h=h||(g?void 0:f);var E=h?h.allKeys:void 0;return this._trans("readwrite",function(y){var T=m.schema.primKey,S=T.auto,O=T.keyPath;if(O&&g)throw new _e.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(g&&g.length!==s.length)throw new _e.InvalidArgument("Arguments objects and keys must have the same length");var B=s.length,U=O&&S?s.map(Nl(O)):s;return m.core.mutate({trans:y,type:"add",keys:g,values:U,wantResults:E}).then(function(q){var k=q.numFailures,M=q.results,W=q.lastResult,Y=q.failures,X=E?M:W;if(k===0)return X;throw new Lt("".concat(m.name,".bulkAdd(): ").concat(k," of ").concat(B," operations failed"),Y)})})},a.prototype.bulkPut=function(s,f,h){var m=this,g=Array.isArray(f)?f:void 0;h=h||(g?void 0:f);var E=h?h.allKeys:void 0;return this._trans("readwrite",function(y){var T=m.schema.primKey,S=T.auto,O=T.keyPath;if(O&&g)throw new _e.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(g&&g.length!==s.length)throw new _e.InvalidArgument("Arguments objects and keys must have the same length");var B=s.length,U=O&&S?s.map(Nl(O)):s;return m.core.mutate({trans:y,type:"put",keys:g,values:U,wantResults:E}).then(function(q){var k=q.numFailures,M=q.results,W=q.lastResult,Y=q.failures,X=E?M:W;if(k===0)return X;throw new Lt("".concat(m.name,".bulkPut(): ").concat(k," of ").concat(B," operations failed"),Y)})})},a.prototype.bulkUpdate=function(s){var f=this,h=this.core,m=s.map(function(y){return y.key}),g=s.map(function(y){return y.changes}),E=[];return this._trans("readwrite",function(y){return h.getMany({trans:y,keys:m,cache:"clone"}).then(function(T){var S=[],O=[];s.forEach(function(U,q){var k=U.key,M=U.changes,W=T[q];if(W){for(var Y=0,X=Object.keys(M);Y<X.length;Y++){var Z=X[Y],V=M[Z];if(Z===f.schema.primKey.keyPath){if(tt(V,k)!==0)throw new _e.Constraint("Cannot update primary key in bulkUpdate()")}else Ue(W,Z,V)}E.push(q),S.push(k),O.push(W)}});var B=S.length;return h.mutate({trans:y,type:"put",keys:S,values:O,updates:{keys:m,changeSpecs:g}}).then(function(U){var q=U.numFailures,k=U.failures;if(q===0)return B;for(var M=0,W=Object.keys(k);M<W.length;M++){var Y=W[M],X=E[Number(Y)];if(X!=null){var Z=k[Y];delete k[Y],k[X]=Z}}throw new Lt("".concat(f.name,".bulkUpdate(): ").concat(q," of ").concat(B," operations failed"),k)})})})},a.prototype.bulkDelete=function(s){var f=this,h=s.length;return this._trans("readwrite",function(m){return f.core.mutate({trans:m,type:"delete",keys:s}).then(function(g){return Dl(f,s,g)})}).then(function(m){var g=m.numFailures,E=m.lastResult,y=m.failures;if(g===0)return E;throw new Lt("".concat(f.name,".bulkDelete(): ").concat(g," of ").concat(h," operations failed"),y)})},a}();function Co(a){var s={},f=function(y,T){if(T){for(var S=arguments.length,O=new Array(S-1);--S;)O[S-1]=arguments[S];return s[y].subscribe.apply(null,O),a}else if(typeof y=="string")return s[y]};f.addEventType=g;for(var h=1,m=arguments.length;h<m;++h)g(arguments[h]);return f;function g(y,T,S){if(typeof y=="object")return E(y);T||(T=yo),S||(S=mt);var O={subscribers:[],fire:S,subscribe:function(B){O.subscribers.indexOf(B)===-1&&(O.subscribers.push(B),O.fire=T(O.fire,B))},unsubscribe:function(B){O.subscribers=O.subscribers.filter(function(U){return U!==B}),O.fire=O.subscribers.reduce(T,S)}};return s[y]=f[y]=O,O}function E(y){u(y).forEach(function(T){var S=y[T];if(o(S))g(T,y[T][0],y[T][1]);else if(S==="asap")var O=g(T,su,function(){for(var U=arguments.length,q=new Array(U);U--;)q[U]=arguments[U];O.subscribers.forEach(function(k){Re(function(){k.apply(null,q)})})});else throw new _e.InvalidArgument("Invalid event config")})}}function So(a,s){return I(s).from({prototype:a}),s}function r3(a){return So(Rg.prototype,function(f,h,m){this.db=a,this._tx=m,this.name=f,this.schema=h,this.hook=a._allTables[f]?a._allTables[f].hook:Co(null,{creating:[vo,mt],reading:[_l,su],updating:[wd,mt],deleting:[El,mt]})})}function Cs(a,s){return!(a.filter||a.algorithm||a.or)&&(s?a.justLimit:!a.replayFilter)}function Ld(a,s){a.filter=Ca(a.filter,s)}function Fd(a,s,f){var h=a.replayFilter;a.replayFilter=h?function(){return Ca(h(),s())}:s,a.justLimit=f&&!h}function n3(a,s){a.isMatch=Ca(a.isMatch,s)}function kl(a,s){if(a.isPrimKey)return s.primaryKey;var f=s.getIndexByKeyPath(a.index);if(!f)throw new _e.Schema("KeyPath "+a.index+" on object store "+s.name+" is not indexed");return f}function Og(a,s,f){var h=kl(a,s.schema);return s.openCursor({trans:f,values:!a.keysOnly,reverse:a.dir==="prev",unique:!!a.unique,query:{index:h,range:a.range}})}function Rl(a,s,f,h){var m=a.replayFilter?Ca(a.filter,a.replayFilter()):a.filter;if(a.or){var g={},E=function(y,T,S){if(!m||m(T,S,function(U){return T.stop(U)},function(U){return T.fail(U)})){var O=T.primaryKey,B=""+O;B==="[object ArrayBuffer]"&&(B=""+new Uint8Array(O)),A(g,B)||(g[B]=!0,s(y,T,S))}};return Promise.all([a.or._iterate(E,f),Bg(Og(a,h,f),a.algorithm,E,!a.keysOnly&&a.valueMapper)])}else return Bg(Og(a,h,f),Ca(a.algorithm,m),s,!a.keysOnly&&a.valueMapper)}function Bg(a,s,f,h){var m=h?function(E,y,T){return f(h(E),y,T)}:f,g=kt(m);return a.then(function(E){if(E)return E.start(function(){var y=function(){return E.continue()};(!s||s(E,function(T){return y=T},function(T){E.stop(T),y=mt},function(T){E.fail(T),y=mt}))&&g(E.value,E,function(T){return y=T}),y()})})}var i3=function(){function a(){}return a.prototype._read=function(s,f){var h=this._ctx;return h.error?h.table._trans(null,$t.bind(null,h.error)):h.table._trans("readonly",s).then(f)},a.prototype._write=function(s){var f=this._ctx;return f.error?f.table._trans(null,$t.bind(null,f.error)):f.table._trans("readwrite",s,"locked")},a.prototype._addAlgorithm=function(s){var f=this._ctx;f.algorithm=Ca(f.algorithm,s)},a.prototype._iterate=function(s,f){return Rl(this._ctx,s,f,this._ctx.table.core)},a.prototype.clone=function(s){var f=Object.create(this.constructor.prototype),h=Object.create(this._ctx);return s&&l(h,s),f._ctx=h,f},a.prototype.raw=function(){return this._ctx.valueMapper=null,this},a.prototype.each=function(s){var f=this._ctx;return this._read(function(h){return Rl(f,s,h,f.table.core)})},a.prototype.count=function(s){var f=this;return this._read(function(h){var m=f._ctx,g=m.table.core;if(Cs(m,!0))return g.count({trans:h,query:{index:kl(m,g.schema),range:m.range}}).then(function(y){return Math.min(y,m.limit)});var E=0;return Rl(m,function(){return++E,!1},h,g).then(function(){return E})}).then(s)},a.prototype.sortBy=function(s,f){var h=s.split(".").reverse(),m=h[0],g=h.length-1;function E(S,O){return O?E(S[h[O]],O-1):S[m]}var y=this._ctx.dir==="next"?1:-1;function T(S,O){var B=E(S,g),U=E(O,g);return tt(B,U)*y}return this.toArray(function(S){return S.sort(T)}).then(f)},a.prototype.toArray=function(s){var f=this;return this._read(function(h){var m=f._ctx;if(Cs(m,!0)&&m.limit>0){var g=m.valueMapper,E=kl(m,m.table.core.schema);return m.table.core.query({trans:h,limit:m.limit,values:!0,direction:m.dir==="prev"?"prev":void 0,query:{index:E,range:m.range}}).then(function(T){var S=T.result;return g?S.map(g):S})}else{var y=[];return Rl(m,function(T){return y.push(T)},h,m.table.core).then(function(){return y})}},s)},a.prototype.offset=function(s){var f=this._ctx;return s<=0?this:(f.offset+=s,Cs(f)?Fd(f,function(){var h=s;return function(m,g){return h===0?!0:h===1?(--h,!1):(g(function(){m.advance(h),h=0}),!1)}}):Fd(f,function(){var h=s;return function(){return--h<0}}),this)},a.prototype.limit=function(s){return this._ctx.limit=Math.min(this._ctx.limit,s),Fd(this._ctx,function(){var f=s;return function(h,m,g){return--f<=0&&m(g),f>=0}},!0),this},a.prototype.until=function(s,f){return Ld(this._ctx,function(h,m,g){return s(h.value)?(m(g),f):!0}),this},a.prototype.first=function(s){return this.limit(1).toArray(function(f){return f[0]}).then(s)},a.prototype.last=function(s){return this.reverse().first(s)},a.prototype.filter=function(s){return Ld(this._ctx,function(f){return s(f.value)}),n3(this._ctx,s),this},a.prototype.and=function(s){return this.filter(s)},a.prototype.or=function(s){return new this.db.WhereClause(this._ctx.table,s,this)},a.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},a.prototype.desc=function(){return this.reverse()},a.prototype.eachKey=function(s){var f=this._ctx;return f.keysOnly=!f.isMatch,this.each(function(h,m){s(m.key,m)})},a.prototype.eachUniqueKey=function(s){return this._ctx.unique="unique",this.eachKey(s)},a.prototype.eachPrimaryKey=function(s){var f=this._ctx;return f.keysOnly=!f.isMatch,this.each(function(h,m){s(m.primaryKey,m)})},a.prototype.keys=function(s){var f=this._ctx;f.keysOnly=!f.isMatch;var h=[];return this.each(function(m,g){h.push(g.key)}).then(function(){return h}).then(s)},a.prototype.primaryKeys=function(s){var f=this._ctx;if(Cs(f,!0)&&f.limit>0)return this._read(function(m){var g=kl(f,f.table.core.schema);return f.table.core.query({trans:m,values:!1,limit:f.limit,direction:f.dir==="prev"?"prev":void 0,query:{index:g,range:f.range}})}).then(function(m){var g=m.result;return g}).then(s);f.keysOnly=!f.isMatch;var h=[];return this.each(function(m,g){h.push(g.primaryKey)}).then(function(){return h}).then(s)},a.prototype.uniqueKeys=function(s){return this._ctx.unique="unique",this.keys(s)},a.prototype.firstKey=function(s){return this.limit(1).keys(function(f){return f[0]}).then(s)},a.prototype.lastKey=function(s){return this.reverse().firstKey(s)},a.prototype.distinct=function(){var s=this._ctx,f=s.index&&s.table.schema.idxByName[s.index];if(!f||!f.multi)return this;var h={};return Ld(this._ctx,function(m){var g=m.primaryKey.toString(),E=A(h,g);return h[g]=!0,!E}),this},a.prototype.modify=function(s){var f=this,h=this._ctx;return this._write(function(m){var g;typeof s=="function"?g=s:g=function(Y){return kg(Y,s)};var E=h.table.core,y=E.schema.primaryKey,T=y.outbound,S=y.extractKey,O=200,B=f.db._options.modifyChunkSize;B&&(typeof B=="object"?O=B[E.name]||B["*"]||200:O=B);var U=[],q=0,k=[],M=function(Y,X){var Z=X.failures,V=X.numFailures;q+=Y-V;for(var j=0,se=u(Z);j<se.length;j++){var ne=se[j];U.push(Z[ne])}},W=s===Lg;return f.clone().primaryKeys().then(function(Y){var X=Cs(h)&&h.limit===1/0&&(typeof s!="function"||W)&&{index:h.index,range:h.range},Z=function(V){var j=Math.min(O,Y.length-V),se=Y.slice(V,V+j);return(W?Promise.resolve([]):E.getMany({trans:m,keys:se,cache:"immutable"})).then(function(ne){var ie=[],pe=[],je=T?[]:null,ve=W?se:[];if(!W)for(var me=0;me<j;++me){var Oe=ne[me],Fe={value:ft(Oe),primKey:Y[V+me]};g.call(Fe,Fe.value,Fe)!==!1&&(Fe.value==null?ve.push(Y[V+me]):!T&&tt(S(Oe),S(Fe.value))!==0?(ve.push(Y[V+me]),ie.push(Fe.value)):(pe.push(Fe.value),T&&je.push(Y[V+me])))}return Promise.resolve(ie.length>0&&E.mutate({trans:m,type:"add",values:ie}).then(function(It){for(var ye in It.failures)ve.splice(parseInt(ye),1);M(ie.length,It)})).then(function(){return(pe.length>0||X&&typeof s=="object")&&E.mutate({trans:m,type:"put",keys:je,values:pe,criteria:X,changeSpec:typeof s!="function"&&s,isAdditionalChunk:V>0}).then(function(It){return M(pe.length,It)})}).then(function(){return(ve.length>0||X&&W)&&E.mutate({trans:m,type:"delete",keys:ve,criteria:X,isAdditionalChunk:V>0}).then(function(It){return Dl(h.table,ve,It)}).then(function(It){return M(ve.length,It)})}).then(function(){return Y.length>V+j&&Z(V+O)})})};return Z(0).then(function(){if(U.length>0)throw new Nr("Error modifying one or more objects",U,q,k);return Y.length})})})},a.prototype.delete=function(){var s=this._ctx,f=s.range;return Cs(s)&&!s.table.schema.yProps&&(s.isPrimKey||f.type===3)?this._write(function(h){var m=s.table.core.schema.primaryKey,g=f;return s.table.core.count({trans:h,query:{index:m,range:g}}).then(function(E){return s.table.core.mutate({trans:h,type:"deleteRange",range:g}).then(function(y){var T=y.failures,S=y.numFailures;if(S)throw new Nr("Could not delete some values",Object.keys(T).map(function(O){return T[O]}),E-S);return E-S})})}):this.modify(Lg)},a}(),Lg=function(a,s){return s.value=null};function u3(a){return So(i3.prototype,function(f,h){this.db=a;var m=Cg,g=null;if(h)try{m=h()}catch(S){g=S}var E=f._ctx,y=E.table,T=y.hook.reading.fire;this._ctx={table:y,index:E.index,isPrimKey:!E.index||y.schema.primKey.keyPath&&E.index===y.schema.primKey.name,range:m,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:g,or:E.or,valueMapper:T!==su?T:null}})}function a3(a,s){return a<s?-1:a===s?0:1}function s3(a,s){return a>s?-1:a===s?0:1}function Nn(a,s,f){var h=a instanceof Pg?new a.Collection(a):a;return h._ctx.error=f?new f(s):new TypeError(s),h}function Ss(a){return new a.Collection(a,function(){return Fg("")}).limit(0)}function o3(a){return a==="next"?function(s){return s.toUpperCase()}:function(s){return s.toLowerCase()}}function c3(a){return a==="next"?function(s){return s.toLowerCase()}:function(s){return s.toUpperCase()}}function l3(a,s,f,h,m,g){for(var E=Math.min(a.length,h.length),y=-1,T=0;T<E;++T){var S=s[T];if(S!==h[T])return m(a[T],f[T])<0?a.substr(0,T)+f[T]+f.substr(T+1):m(a[T],h[T])<0?a.substr(0,T)+h[T]+f.substr(T+1):y>=0?a.substr(0,y)+s[y]+f.substr(y+1):null;m(a[T],S)<0&&(y=T)}return E<h.length&&g==="next"?a+f.substr(a.length):E<a.length&&g==="prev"?a.substr(0,f.length):y<0?null:a.substr(0,y)+h[y]+f.substr(y+1)}function Ol(a,s,f,h){var m,g,E,y,T,S,O,B=f.length;if(!f.every(function(M){return typeof M=="string"}))return Nn(a,wg);function U(M){m=o3(M),g=c3(M),E=M==="next"?a3:s3;var W=f.map(function(Y){return{lower:g(Y),upper:m(Y)}}).sort(function(Y,X){return E(Y.lower,X.lower)});y=W.map(function(Y){return Y.upper}),T=W.map(function(Y){return Y.lower}),S=M,O=M==="next"?"":h}U("next");var q=new a.Collection(a,function(){return $u(y[0],T[B-1]+h)});q._ondirectionchange=function(M){U(M)};var k=0;return q._addAlgorithm(function(M,W,Y){var X=M.key;if(typeof X!="string")return!1;var Z=g(X);if(s(Z,T,k))return!0;for(var V=null,j=k;j<B;++j){var se=l3(X,Z,y[j],T[j],E,S);se===null&&V===null?k=j+1:(V===null||E(V,se)>0)&&(V=se)}return W(V!==null?function(){M.continue(V+O)}:Y),!1}),q}function $u(a,s,f,h){return{type:2,lower:a,upper:s,lowerOpen:f,upperOpen:h}}function Fg(a){return{type:1,lower:a,upper:a}}var Pg=function(){function a(){}return Object.defineProperty(a.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),a.prototype.between=function(s,f,h,m){h=h!==!1,m=m===!0;try{return this._cmp(s,f)>0||this._cmp(s,f)===0&&(h||m)&&!(h&&m)?Ss(this):new this.Collection(this,function(){return $u(s,f,!h,!m)})}catch{return Nn(this,lu)}},a.prototype.equals=function(s){return s==null?Nn(this,lu):new this.Collection(this,function(){return Fg(s)})},a.prototype.above=function(s){return s==null?Nn(this,lu):new this.Collection(this,function(){return $u(s,void 0,!0)})},a.prototype.aboveOrEqual=function(s){return s==null?Nn(this,lu):new this.Collection(this,function(){return $u(s,void 0,!1)})},a.prototype.below=function(s){return s==null?Nn(this,lu):new this.Collection(this,function(){return $u(void 0,s,!1,!0)})},a.prototype.belowOrEqual=function(s){return s==null?Nn(this,lu):new this.Collection(this,function(){return $u(void 0,s)})},a.prototype.startsWith=function(s){return typeof s!="string"?Nn(this,wg):this.between(s,s+Ia,!0,!0)},a.prototype.startsWithIgnoreCase=function(s){return s===""?this.startsWith(s):Ol(this,function(f,h){return f.indexOf(h[0])===0},[s],Ia)},a.prototype.equalsIgnoreCase=function(s){return Ol(this,function(f,h){return f===h[0]},[s],"")},a.prototype.anyOfIgnoreCase=function(){var s=dt.apply(We,arguments);return s.length===0?Ss(this):Ol(this,function(f,h){return h.indexOf(f)!==-1},s,"")},a.prototype.startsWithAnyOfIgnoreCase=function(){var s=dt.apply(We,arguments);return s.length===0?Ss(this):Ol(this,function(f,h){return h.some(function(m){return f.indexOf(m)===0})},s,Ia)},a.prototype.anyOf=function(){var s=this,f=dt.apply(We,arguments),h=this._cmp;try{f.sort(h)}catch{return Nn(this,lu)}if(f.length===0)return Ss(this);var m=new this.Collection(this,function(){return $u(f[0],f[f.length-1])});m._ondirectionchange=function(E){h=E==="next"?s._ascending:s._descending,f.sort(h)};var g=0;return m._addAlgorithm(function(E,y,T){for(var S=E.key;h(S,f[g])>0;)if(++g,g===f.length)return y(T),!1;return h(S,f[g])===0?!0:(y(function(){E.continue(f[g])}),!1)}),m},a.prototype.notEqual=function(s){return this.inAnyRange([[Rd,s],[s,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},a.prototype.noneOf=function(){var s=dt.apply(We,arguments);if(s.length===0)return new this.Collection(this);try{s.sort(this._ascending)}catch{return Nn(this,lu)}var f=s.reduce(function(h,m){return h?h.concat([[h[h.length-1][1],m]]):[[Rd,m]]},null);return f.push([s[s.length-1],this.db._maxKey]),this.inAnyRange(f,{includeLowers:!1,includeUppers:!1})},a.prototype.inAnyRange=function(s,f){var h=this,m=this._cmp,g=this._ascending,E=this._descending,y=this._min,T=this._max;if(s.length===0)return Ss(this);if(!s.every(function(j){return j[0]!==void 0&&j[1]!==void 0&&g(j[0],j[1])<=0}))return Nn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",_e.InvalidArgument);var S=!f||f.includeLowers!==!1,O=f&&f.includeUppers===!0;function B(j,se){for(var ne=0,ie=j.length;ne<ie;++ne){var pe=j[ne];if(m(se[0],pe[1])<0&&m(se[1],pe[0])>0){pe[0]=y(pe[0],se[0]),pe[1]=T(pe[1],se[1]);break}}return ne===ie&&j.push(se),j}var U=g;function q(j,se){return U(j[0],se[0])}var k;try{k=s.reduce(B,[]),k.sort(q)}catch{return Nn(this,lu)}var M=0,W=O?function(j){return g(j,k[M][1])>0}:function(j){return g(j,k[M][1])>=0},Y=S?function(j){return E(j,k[M][0])>0}:function(j){return E(j,k[M][0])>=0};function X(j){return!W(j)&&!Y(j)}var Z=W,V=new this.Collection(this,function(){return $u(k[0][0],k[k.length-1][1],!S,!O)});return V._ondirectionchange=function(j){j==="next"?(Z=W,U=g):(Z=Y,U=E),k.sort(q)},V._addAlgorithm(function(j,se,ne){for(var ie=j.key;Z(ie);)if(++M,M===k.length)return se(ne),!1;return X(ie)?!0:(h._cmp(ie,k[M][1])===0||h._cmp(ie,k[M][0])===0||se(function(){U===g?j.continue(k[M][0]):j.continue(k[M][1])}),!1)}),V},a.prototype.startsWithAnyOf=function(){var s=dt.apply(We,arguments);return s.every(function(f){return typeof f=="string"})?s.length===0?Ss(this):this.inAnyRange(s.map(function(f){return[f,f+Ia]})):Nn(this,"startsWithAnyOf() only works with strings")},a}();function f3(a){return So(Pg.prototype,function(f,h,m){if(this.db=a,this._ctx={table:f,index:h===":id"?null:h,or:m},this._cmp=this._ascending=tt,this._descending=function(g,E){return tt(E,g)},this._max=function(g,E){return tt(g,E)>0?g:E},this._min=function(g,E){return tt(g,E)<0?g:E},this._IDBKeyRange=a._deps.IDBKeyRange,!this._IDBKeyRange)throw new _e.MissingAPI})}function di(a){return kt(function(s){return No(s),a(s.target.error),!1})}function No(a){a.stopPropagation&&a.stopPropagation(),a.preventDefault&&a.preventDefault()}var Do="storagemutated",Pd="x-storagemutated-1",Yu=Co(null,Do),d3=function(){function a(){}return a.prototype._lock=function(){return le(!ge.global),++this._reculock,this._reculock===1&&!ge.global&&(ge.lockOwnerFor=this),this},a.prototype._unlock=function(){if(le(!ge.global),--this._reculock===0)for(ge.global||(ge.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var s=this._blockedFuncs.shift();try{wa(s[1],s[0])}catch{}}return this},a.prototype._locked=function(){return this._reculock&&ge.lockOwnerFor!==this},a.prototype.create=function(s){var f=this;if(!this.mode)return this;var h=this.db.idbdb,m=this.db._state.dbOpenError;if(le(!this.idbtrans),!s&&!h)switch(m&&m.name){case"DatabaseClosedError":throw new _e.DatabaseClosed(m);case"MissingAPIError":throw new _e.MissingAPI(m.message,m);default:throw new _e.OpenFailed(m)}if(!this.active)throw new _e.TransactionInactive;return le(this._completion._state===null),s=this.idbtrans=s||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):h.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),s.onerror=kt(function(g){No(g),f._reject(s.error)}),s.onabort=kt(function(g){No(g),f.active&&f._reject(new _e.Abort(s.error)),f.active=!1,f.on("abort").fire(g)}),s.oncomplete=kt(function(){f.active=!1,f._resolve(),"mutatedParts"in s&&Yu.storagemutated.fire(s.mutatedParts)}),this},a.prototype._promise=function(s,f,h){var m=this;if(s==="readwrite"&&this.mode!=="readwrite")return $t(new _e.ReadOnly("Transaction is readonly"));if(!this.active)return $t(new _e.TransactionInactive);if(this._locked())return new ue(function(E,y){m._blockedFuncs.push([function(){m._promise(s,f,h).then(E,y)},ge])});if(h)return Mu(function(){var E=new ue(function(y,T){m._lock();var S=f(y,T,m);S&&S.then&&S.then(y,T)});return E.finally(function(){return m._unlock()}),E._lib=!0,E});var g=new ue(function(E,y){var T=f(E,y,m);T&&T.then&&T.then(E,y)});return g._lib=!0,g},a.prototype._root=function(){return this.parent?this.parent._root():this},a.prototype.waitFor=function(s){var f=this._root(),h=ue.resolve(s);if(f._waitingFor)f._waitingFor=f._waitingFor.then(function(){return h});else{f._waitingFor=h,f._waitingQueue=[];var m=f.idbtrans.objectStore(f.storeNames[0]);(function E(){for(++f._spinCount;f._waitingQueue.length;)f._waitingQueue.shift()();f._waitingFor&&(m.get(-1/0).onsuccess=E)})()}var g=f._waitingFor;return new ue(function(E,y){h.then(function(T){return f._waitingQueue.push(kt(E.bind(null,T)))},function(T){return f._waitingQueue.push(kt(y.bind(null,T)))}).finally(function(){f._waitingFor===g&&(f._waitingFor=null)})})},a.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new _e.Abort))},a.prototype.table=function(s){var f=this._memoizedTables||(this._memoizedTables={});if(A(f,s))return f[s];var h=this.schema[s];if(!h)throw new _e.NotFound("Table "+s+" not part of transaction");var m=new this.db.Table(s,h,this);return m.core=this.db.core.table(s),f[s]=m,m},a}();function h3(a){return So(d3.prototype,function(f,h,m,g,E){var y=this;f!=="readonly"&&h.forEach(function(T){var S,O=(S=m[T])===null||S===void 0?void 0:S.yProps;O&&(h=h.concat(O.map(function(B){return B.updatesTable})))}),this.db=a,this.mode=f,this.storeNames=h,this.schema=m,this.chromeTransactionDurability=g,this.idbtrans=null,this.on=Co(this,"complete","error","abort"),this.parent=E||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new ue(function(T,S){y._resolve=T,y._reject=S}),this._completion.then(function(){y.active=!1,y.on.complete.fire()},function(T){var S=y.active;return y.active=!1,y.on.error.fire(T),y.parent?y.parent._reject(T):S&&y.idbtrans&&y.idbtrans.abort(),$t(T)})})}function Md(a,s,f,h,m,g,E,y){return{name:a,keyPath:s,unique:f,multi:h,auto:m,compound:g,src:(f&&!E?"&":"")+(h?"*":"")+(m?"++":"")+Mg(s),type:y}}function Mg(a){return typeof a=="string"?a:a?"["+[].join.call(a,"+")+"]":""}function Hd(a,s,f){return{name:a,primKey:s,indexes:f,mappedClass:null,idxByName:xe(f,function(h){return[h.name,h]})}}function p3(a){return a.length===1?a[0]:a}var ko=function(a){try{return a.only([[]]),ko=function(){return[[]]},[[]]}catch{return ko=function(){return Ia},Ia}};function Ud(a){return a==null?function(){}:typeof a=="string"?m3(a):function(s){return oe(s,a)}}function m3(a){var s=a.split(".");return s.length===1?function(f){return f[a]}:function(f){return oe(f,a)}}function Hg(a){return[].slice.call(a)}var A3=0;function Ro(a){return a==null?":id":typeof a=="string"?a:"[".concat(a.join("+"),"]")}function g3(a,s,f){function h(U,q){var k=Hg(U.objectStoreNames),M=k.length>0?q.objectStore(k[0]):{};return{schema:{name:U.name,tables:k.map(function(W){return q.objectStore(W)}).map(function(W){var Y=W.keyPath,X=W.autoIncrement,Z=o(Y),V=Y==null,j={},se={name:W.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:V,compound:Z,keyPath:Y,autoIncrement:X,unique:!0,extractKey:Ud(Y)},indexes:Hg(W.indexNames).map(function(ne){return W.index(ne)}).map(function(ne){var ie=ne.name,pe=ne.unique,je=ne.multiEntry,ve=ne.keyPath,me=o(ve),Oe={name:ie,compound:me,keyPath:ve,unique:pe,multiEntry:je,extractKey:Ud(ve)};return j[Ro(ve)]=Oe,Oe}),getIndexByKeyPath:function(ne){return j[Ro(ne)]}};return j[":id"]=se.primaryKey,Y!=null&&(j[Ro(Y)]=se.primaryKey),se})},hasGetAll:k.length>0&&"getAll"in M&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604),hasIdb3Features:"getAllRecords"in M}}function m(U){if(U.type===3)return null;if(U.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var q=U.lower,k=U.upper,M=U.lowerOpen,W=U.upperOpen,Y=q===void 0?k===void 0?null:s.upperBound(k,!!W):k===void 0?s.lowerBound(q,!!M):s.bound(q,k,!!M,!!W);return Y}function g(U){var q=U.name;function k(Y){var X=Y.trans,Z=Y.type,V=Y.keys,j=Y.values,se=Y.range;return new Promise(function(ne,ie){ne=kt(ne);var pe=X.objectStore(q),je=pe.keyPath==null,ve=Z==="put"||Z==="add";if(!ve&&Z!=="delete"&&Z!=="deleteRange")throw new Error("Invalid operation type: "+Z);var me=(V||j||{length:1}).length;if(V&&j&&V.length!==j.length)throw new Error("Given keys array must have same length as given values array.");if(me===0)return ne({numFailures:0,failures:{},results:[],lastResult:void 0});var Oe,Fe=[],It=[],ye=0,sr=function(kr){++ye,No(kr)};if(Z==="deleteRange"){if(se.type===4)return ne({numFailures:ye,failures:It,results:[],lastResult:void 0});se.type===3?Fe.push(Oe=pe.clear()):Fe.push(Oe=pe.delete(m(se)))}else{var $n=ve?je?[j,V]:[j,null]:[V,null],on=$n[0],Da=$n[1];if(ve)for(var Vr=0;Vr<me;++Vr)Fe.push(Oe=Da&&Da[Vr]!==void 0?pe[Z](on[Vr],Da[Vr]):pe[Z](on[Vr])),Oe.onerror=sr;else for(var Vr=0;Vr<me;++Vr)Fe.push(Oe=pe[Z](on[Vr])),Oe.onerror=sr}var Yn=function(kr){var ka=kr.target.result;Fe.forEach(function(hi,Wl){return hi.error!=null&&(It[Wl]=hi.error)}),ne({numFailures:ye,failures:It,results:Z==="delete"?V:Fe.map(function(hi){return hi.result}),lastResult:ka})};Oe.onerror=function(kr){sr(kr),Yn(kr)},Oe.onsuccess=Yn})}function M(Y){var X=Y.trans,Z=Y.values,V=Y.query,j=Y.reverse,se=Y.unique;return new Promise(function(ne,ie){ne=kt(ne);var pe=V.index,je=V.range,ve=X.objectStore(q),me=pe.isPrimaryKey?ve:ve.index(pe.name),Oe=j?se?"prevunique":"prev":se?"nextunique":"next",Fe=Z||!("openKeyCursor"in me)?me.openCursor(m(je),Oe):me.openKeyCursor(m(je),Oe);Fe.onerror=di(ie),Fe.onsuccess=kt(function(It){var ye=Fe.result;if(!ye){ne(null);return}ye.___id=++A3,ye.done=!1;var sr=ye.continue.bind(ye),$n=ye.continuePrimaryKey;$n&&($n=$n.bind(ye));var on=ye.advance.bind(ye),Da=function(){throw new Error("Cursor not started")},Vr=function(){throw new Error("Cursor not stopped")};ye.trans=X,ye.stop=ye.continue=ye.continuePrimaryKey=ye.advance=Da,ye.fail=kt(ie),ye.next=function(){var Yn=this,kr=1;return this.start(function(){return kr--?Yn.continue():Yn.stop()}).then(function(){return Yn})},ye.start=function(Yn){var kr=new Promise(function(hi,Wl){hi=kt(hi),Fe.onerror=di(Wl),ye.fail=Wl,ye.stop=function(uT){ye.stop=ye.continue=ye.continuePrimaryKey=ye.advance=Vr,hi(uT)}}),ka=function(){if(Fe.result)try{Yn()}catch(hi){ye.fail(hi)}else ye.done=!0,ye.start=function(){throw new Error("Cursor behind last entry")},ye.stop()};return Fe.onsuccess=kt(function(hi){Fe.onsuccess=ka,ka()}),ye.continue=sr,ye.continuePrimaryKey=$n,ye.advance=on,ka(),kr},ne(ye)},ie)})}function W(Y,X){return function(Z){return new Promise(function(V,j){var se;V=kt(V);var ne=Z.trans,ie=Z.values,pe=Z.limit,je=Z.query,ve=(se=Z.direction)!==null&&se!==void 0?se:"next",me=pe===1/0?void 0:pe,Oe=je.index,Fe=je.range,It=ne.objectStore(q),ye=Oe.isPrimaryKey?It:It.index(Oe.name),sr=m(Fe);if(pe===0)return V({result:[]});if(X){var $n={query:sr,count:me,direction:ve},on=ie?ye.getAll($n):ye.getAllKeys($n);on.onsuccess=function(kr){return V({result:kr.target.result})},on.onerror=di(j)}else if(Y&&ve==="next"){var on=ie?ye.getAll(sr,me):ye.getAllKeys(sr,me);on.onsuccess=function(ka){return V({result:ka.target.result})},on.onerror=di(j)}else{var Da=0,Vr=ie||!("openKeyCursor"in ye)?ye.openCursor(sr,ve):ye.openKeyCursor(sr,ve),Yn=[];Vr.onsuccess=function(){var kr=Vr.result;if(!kr)return V({result:Yn});if(Yn.push(ie?kr.value:kr.primaryKey),++Da===pe)return V({result:Yn});kr.continue()},Vr.onerror=di(j)}})}}return{name:q,schema:U,mutate:k,getMany:function(Y){var X=Y.trans,Z=Y.keys;return new Promise(function(V,j){V=kt(V);for(var se=X.objectStore(q),ne=Z.length,ie=new Array(ne),pe=0,je=0,ve,me=function(ye){var sr=ye.target;(ie[sr._pos]=sr.result)!=null,++je===pe&&V(ie)},Oe=di(j),Fe=0;Fe<ne;++Fe){var It=Z[Fe];It!=null&&(ve=se.get(Z[Fe]),ve._pos=Fe,ve.onsuccess=me,ve.onerror=Oe,++pe)}pe===0&&V(ie)})},get:function(Y){var X=Y.trans,Z=Y.key;return new Promise(function(V,j){V=kt(V);var se=X.objectStore(q),ne=se.get(Z);ne.onsuccess=function(ie){return V(ie.target.result)},ne.onerror=di(j)})},query:W(T,S),openCursor:M,count:function(Y){var X=Y.query,Z=Y.trans,V=X.index,j=X.range;return new Promise(function(se,ne){var ie=Z.objectStore(q),pe=V.isPrimaryKey?ie:ie.index(V.name),je=m(j),ve=je?pe.count(je):pe.count();ve.onsuccess=kt(function(me){return se(me.target.result)}),ve.onerror=di(ne)})}}}var E=h(a,f),y=E.schema,T=E.hasGetAll,S=E.hasIdb3Features,O=y.tables.map(function(U){return g(U)}),B={};return O.forEach(function(U){return B[U.name]=U}),{stack:"dbcore",transaction:a.transaction.bind(a),table:function(U){var q=B[U];if(!q)throw new Error("Table '".concat(U,"' not found"));return B[U]},MIN_KEY:-1/0,MAX_KEY:ko(s),schema:y}}function b3(a,s){return s.reduce(function(f,h){var m=h.create;return r(r({},f),m(f))},a)}function _3(a,s,f,h){var m=f.IDBKeyRange;f.indexedDB;var g=b3(g3(s,m,h),a.dbcore);return{dbcore:g}}function Bl(a,s){var f=s.db,h=_3(a._middlewares,f,a._deps,s);a.core=h.dbcore,a.tables.forEach(function(m){var g=m.name;a.core.schema.tables.some(function(E){return E.name===g})&&(m.core=a.core.table(g),a[g]instanceof a.Table&&(a[g].core=m.core))})}function Ll(a,s,f,h){f.forEach(function(m){var g=h[m];s.forEach(function(E){var y=R(E,m);(!y||"value"in y&&y.value===void 0)&&(E===a.Transaction.prototype||E instanceof a.Transaction?v(E,m,{get:function(){return this.table(m)},set:function(T){_(this,m,{value:T,writable:!0,configurable:!0,enumerable:!0})}}):E[m]=new a.Table(m,g))})})}function $d(a,s){s.forEach(function(f){for(var h in f)f[h]instanceof a.Table&&delete f[h]})}function E3(a,s){return a._cfg.version-s._cfg.version}function x3(a,s,f,h){var m=a._dbSchema;f.objectStoreNames.contains("$meta")&&!m.$meta&&(m.$meta=Hd("$meta",$g("")[0],[]),a._storeNames.push("$meta"));var g=a._createTransaction("readwrite",a._storeNames,m);g.create(f),g._completion.catch(h);var E=g._reject.bind(g),y=ge.transless||ge;Mu(function(){if(ge.trans=g,ge.transless=y,s===0)u(m).forEach(function(T){Kd(f,T,m[T].primKey,m[T].indexes)}),Bl(a,f),ue.follow(function(){return a.on.populate.fire(g)}).catch(E);else return Bl(a,f),y3(a,g,s).then(function(T){return T3(a,T,g,f)}).catch(E)})}function v3(a,s){Ug(a._dbSchema,s),s.db.version%10===0&&!s.objectStoreNames.contains("$meta")&&s.db.createObjectStore("$meta").add(Math.ceil(s.db.version/10-1),"version");var f=Pl(a,a.idbdb,s);Ml(a,a._dbSchema,s);for(var h=Yd(f,a._dbSchema),m=function(S){if(S.change.length||S.recreate)return console.warn("Unable to patch indexes of table ".concat(S.name," because it has changes on the type of index or primary key.")),{value:void 0};var O=s.objectStore(S.name);S.add.forEach(function(B){Un&&console.debug("Dexie upgrade patch: Creating missing index ".concat(S.name,".").concat(B.src)),Fl(O,B)})},g=0,E=h.change;g<E.length;g++){var y=E[g],T=m(y);if(typeof T=="object")return T.value}}function y3(a,s,f){return s.storeNames.includes("$meta")?s.table("$meta").get("version").then(function(h){return h??f}):ue.resolve(f)}function T3(a,s,f,h){var m=[],g=a._versions,E=a._dbSchema=Pl(a,a.idbdb,h),y=g.filter(function(S){return S._cfg.version>=s});if(y.length===0)return ue.resolve();y.forEach(function(S){m.push(function(){var O=E,B=S._cfg.dbschema;Ml(a,O,h),Ml(a,B,h),E=a._dbSchema=B;var U=Yd(O,B);U.add.forEach(function(X){Kd(h,X[0],X[1].primKey,X[1].indexes)}),U.change.forEach(function(X){if(X.recreate)throw new _e.Upgrade("Not yet support for changing primary key");var Z=h.objectStore(X.name);X.add.forEach(function(V){return Fl(Z,V)}),X.change.forEach(function(V){Z.deleteIndex(V.name),Fl(Z,V)}),X.del.forEach(function(V){return Z.deleteIndex(V)})});var q=S._cfg.contentUpgrade;if(q&&S._cfg.version>s){Bl(a,h),f._memoizedTables={};var k=we(B);U.del.forEach(function(X){k[X]=O[X]}),$d(a,[a.Transaction.prototype]),Ll(a,[a.Transaction.prototype],u(k),k),f.schema=k;var M=Ot(q);M&&Is();var W,Y=ue.follow(function(){if(W=q(f),W&&M){var X=Hu.bind(null,null);W.then(X,X)}});return W&&typeof W.then=="function"?ue.resolve(W):Y.then(function(){return W})}}),m.push(function(O){var B=S._cfg.dbschema;w3(B,O),$d(a,[a.Transaction.prototype]),Ll(a,[a.Transaction.prototype],a._storeNames,a._dbSchema),f.schema=a._dbSchema}),m.push(function(O){a.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(a.idbdb.version/10)===S._cfg.version?(a.idbdb.deleteObjectStore("$meta"),delete a._dbSchema.$meta,a._storeNames=a._storeNames.filter(function(B){return B!=="$meta"})):O.objectStore("$meta").put(S._cfg.version,"version"))})});function T(){return m.length?ue.resolve(m.shift()(f.idbtrans)).then(T):ue.resolve()}return T().then(function(){Ug(E,h)})}function Yd(a,s){var f={del:[],add:[],change:[]},h;for(h in a)s[h]||f.del.push(h);for(h in s){var m=a[h],g=s[h];if(!m)f.add.push([h,g]);else{var E={name:h,def:g,recreate:!1,del:[],add:[],change:[]};if(""+(m.primKey.keyPath||"")!=""+(g.primKey.keyPath||"")||m.primKey.auto!==g.primKey.auto)E.recreate=!0,f.change.push(E);else{var y=m.idxByName,T=g.idxByName,S=void 0;for(S in y)T[S]||E.del.push(S);for(S in T){var O=y[S],B=T[S];O?O.src!==B.src&&E.change.push(B):E.add.push(B)}(E.del.length>0||E.add.length>0||E.change.length>0)&&f.change.push(E)}}}return f}function Kd(a,s,f,h){var m=a.db.createObjectStore(s,f.keyPath?{keyPath:f.keyPath,autoIncrement:f.auto}:{autoIncrement:f.auto});return h.forEach(function(g){return Fl(m,g)}),m}function Ug(a,s){u(a).forEach(function(f){s.db.objectStoreNames.contains(f)||(Un&&console.debug("Dexie: Creating missing table",f),Kd(s,f,a[f].primKey,a[f].indexes))})}function w3(a,s){[].slice.call(s.db.objectStoreNames).forEach(function(f){return a[f]==null&&s.db.deleteObjectStore(f)})}function Fl(a,s){a.createIndex(s.name,s.keyPath,{unique:s.unique,multiEntry:s.multi})}function Pl(a,s,f){var h={},m=K(s.objectStoreNames,0);return m.forEach(function(g){for(var E=f.objectStore(g),y=E.keyPath,T=Md(Mg(y),y||"",!0,!1,!!E.autoIncrement,y&&typeof y!="string",!0),S=[],O=0;O<E.indexNames.length;++O){var B=E.index(E.indexNames[O]);y=B.keyPath;var U=Md(B.name,y,!!B.unique,!!B.multiEntry,!1,y&&typeof y!="string",!1);S.push(U)}h[g]=Hd(g,T,S)}),h}function I3(a,s,f){a.verno=s.version/10;var h=a._dbSchema=Pl(a,s,f);a._storeNames=K(s.objectStoreNames,0),Ll(a,[a._allTables],u(h),h)}function C3(a,s){var f=Pl(a,a.idbdb,s),h=Yd(f,a._dbSchema);return!(h.add.length||h.change.some(function(m){return m.add.length||m.change.length}))}function Ml(a,s,f){for(var h=f.db.objectStoreNames,m=0;m<h.length;++m){var g=h[m],E=f.objectStore(g);a._hasGetAll="getAll"in E;for(var y=0;y<E.indexNames.length;++y){var T=E.indexNames[y],S=E.index(T).keyPath,O=typeof S=="string"?S:"["+K(S).join("+")+"]";if(s[g]){var B=s[g].idxByName[O];B&&(B.name=T,delete s[g].idxByName[O],s[g].idxByName[T]=B)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&i.WorkerGlobalScope&&i instanceof i.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(a._hasGetAll=!1)}function $g(a){return a.split(",").map(function(s,f){var h,m=s.split(":"),g=(h=m[1])===null||h===void 0?void 0:h.trim();s=m[0].trim();var E=s.replace(/([&*]|\+\+)/g,""),y=/^\[/.test(E)?E.match(/^\[(.*)\]$/)[1].split("+"):E;return Md(E,y||null,/\&/.test(s),/\*/.test(s),/\+\+/.test(s),o(y),f===0,g)})}var S3=function(){function a(){}return a.prototype._createTableSchema=function(s,f,h){return Hd(s,f,h)},a.prototype._parseIndexSyntax=function(s){return $g(s)},a.prototype._parseStoresSpec=function(s,f){var h=this;u(s).forEach(function(m){if(s[m]!==null){var g=h._parseIndexSyntax(s[m]),E=g.shift();if(!E)throw new _e.Schema("Invalid schema for table "+m+": "+s[m]);if(E.unique=!0,E.multi)throw new _e.Schema("Primary key cannot be multiEntry*");g.forEach(function(T){if(T.auto)throw new _e.Schema("Only primary key can be marked as autoIncrement (++)");if(!T.keyPath)throw new _e.Schema("Index must have a name and cannot be an empty string")});var y=h._createTableSchema(m,E,g);f[m]=y}})},a.prototype.stores=function(s){var f=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,s):s;var h=f._versions,m={},g={};return h.forEach(function(E){l(m,E._cfg.storesSource),g=E._cfg.dbschema={},E._parseStoresSpec(m,g)}),f._dbSchema=g,$d(f,[f._allTables,f,f.Transaction.prototype]),Ll(f,[f._allTables,f,f.Transaction.prototype,this._cfg.tables],u(g),g),f._storeNames=u(g),this},a.prototype.upgrade=function(s){return this._cfg.contentUpgrade=ys(this._cfg.contentUpgrade||mt,s),this},a}();function N3(a){return So(S3.prototype,function(f){this.db=a,this._cfg={version:f,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}var Oo=D3();function D3(){if(typeof FinalizationRegistry<"u"&&typeof WeakRef<"u"){var a=new Set,s=new FinalizationRegistry(function(E){a.delete(E)}),f=function(){return Array.from(a).map(function(E){return E.deref()}).filter(function(E){return E!==void 0})},h=function(E){var y=new WeakRef(E._novip);if(a.add(y),s.register(E._novip,y,y),a.size>E._options.maxConnections){var T=a.values().next().value;a.delete(T),s.unregister(T)}},m=function(E){if(E)for(var y=a.values(),T=y.next();!T.done;){var S=T.value;if(S.deref()===E._novip){a.delete(S),s.unregister(S);return}T=y.next()}};return{toArray:f,add:h,remove:m}}else{var g=[],f=function(){return g},h=function(S){g.push(S._novip)},m=function(S){if(S){var O=g.indexOf(S._novip);O!==-1&&g.splice(O,1)}};return{toArray:f,add:h,remove:m}}}function Qd(a,s){var f=a._dbNamesDB;return f||(f=a._dbNamesDB=new fu(Sl,{addons:[],indexedDB:a,IDBKeyRange:s}),f.version(1).stores({dbnames:"name"})),f.table("dbnames")}function Wd(a){return a&&typeof a.databases=="function"}function k3(a){var s=a.indexedDB,f=a.IDBKeyRange;return Wd(s)?Promise.resolve(s.databases()).then(function(h){return h.map(function(m){return m.name}).filter(function(m){return m!==Sl})}):Qd(s,f).toCollection().primaryKeys()}function R3(a,s){var f=a.indexedDB,h=a.IDBKeyRange;!Wd(f)&&s!==Sl&&Qd(f,h).put({name:s}).catch(mt)}function O3(a,s){var f=a.indexedDB,h=a.IDBKeyRange;!Wd(f)&&s!==Sl&&Qd(f,h).delete(s).catch(mt)}function Gd(a){return Mu(function(){return ge.letThrough=!0,a()})}function B3(){var a=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!a||!indexedDB.databases)return Promise.resolve();var s;return new Promise(function(f){var h=function(){return indexedDB.databases().finally(f)};s=setInterval(h,100),h()}).finally(function(){return clearInterval(s)})}var Vd;function qd(a){return!("from"in a)}var Gr=function(a,s){if(this)l(this,arguments.length?{d:1,from:a,to:arguments.length>1?s:a}:{d:0});else{var f=new Gr;return a&&"d"in a&&l(f,a),f}};b(Gr.prototype,(Vd={add:function(a){return Lo(this,a),this},addKey:function(a){return Bo(this,a,a),this},addKeys:function(a){var s=this;return a.forEach(function(f){return Bo(s,f,f)}),this},hasKey:function(a){var s=Hl(this).next(a).value;return s&&tt(s.from,a)<=0&&tt(s.to,a)>=0}},Vd[ae]=function(){return Hl(this)},Vd));function Bo(a,s,f){var h=tt(s,f);if(!isNaN(h)){if(h>0)throw RangeError();if(qd(a))return l(a,{from:s,to:f,d:1});var m=a.l,g=a.r;if(tt(f,a.from)<0)return m?Bo(m,s,f):a.l={from:s,to:f,d:1,l:null,r:null},Kg(a);if(tt(s,a.to)>0)return g?Bo(g,s,f):a.r={from:s,to:f,d:1,l:null,r:null},Kg(a);tt(s,a.from)<0&&(a.from=s,a.l=null,a.d=g?g.d+1:1),tt(f,a.to)>0&&(a.to=f,a.r=null,a.d=a.l?a.l.d+1:1);var E=!a.r;m&&!a.l&&Lo(a,m),g&&E&&Lo(a,g)}}function Lo(a,s){function f(h,m){var g=m.from,E=m.to,y=m.l,T=m.r;Bo(h,g,E),y&&f(h,y),T&&f(h,T)}qd(s)||f(a,s)}function Yg(a,s){var f=Hl(s),h=f.next();if(h.done)return!1;for(var m=h.value,g=Hl(a),E=g.next(m.from),y=E.value;!h.done&&!E.done;){if(tt(y.from,m.to)<=0&&tt(y.to,m.from)>=0)return!0;tt(m.from,y.from)<0?m=(h=f.next(y.from)).value:y=(E=g.next(m.from)).value}return!1}function Hl(a){var s=qd(a)?null:{s:0,n:a};return{next:function(f){for(var h=arguments.length>0;s;)switch(s.s){case 0:if(s.s=1,h)for(;s.n.l&&tt(f,s.n.from)<0;)s={up:s,n:s.n.l,s:1};else for(;s.n.l;)s={up:s,n:s.n.l,s:1};case 1:if(s.s=2,!h||tt(f,s.n.to)<=0)return{value:s.n,done:!1};case 2:if(s.n.r){s.s=3,s={up:s,n:s.n.r,s:0};continue}case 3:s=s.up}return{done:!0}}}}function Kg(a){var s,f,h=(((s=a.r)===null||s===void 0?void 0:s.d)||0)-(((f=a.l)===null||f===void 0?void 0:f.d)||0),m=h>1?"r":h<-1?"l":"";if(m){var g=m==="r"?"l":"r",E=r({},a),y=a[m];a.from=y.from,a.to=y.to,a[m]=y[m],E[m]=y[g],a[g]=E,E.d=Qg(E)}a.d=Qg(a)}function Qg(a){var s=a.r,f=a.l;return(s?f?Math.max(s.d,f.d):s.d:f?f.d:0)+1}function Ul(a,s){return u(s).forEach(function(f){a[f]?Lo(a[f],s[f]):a[f]=Xe(s[f])}),a}function zd(a,s){return a.all||s.all||Object.keys(a).some(function(f){return s[f]&&Yg(s[f],a[f])})}var Sa={},Jd={},jd=!1;function $l(a,s){Ul(Jd,a),jd||(jd=!0,setTimeout(function(){jd=!1;var f=Jd;Jd={},Zd(f,!1)},0))}function Zd(a,s){s===void 0&&(s=!1);var f=new Set;if(a.all)for(var h=0,m=Object.values(Sa);h<m.length;h++){var g=m[h];Wg(g,a,f,s)}else for(var E in a){var y=/^idb\:\/\/(.*)\/(.*)\//.exec(E);if(y){var T=y[1],S=y[2],g=Sa["idb://".concat(T,"/").concat(S)];g&&Wg(g,a,f,s)}}f.forEach(function(O){return O()})}function Wg(a,s,f,h){for(var m=[],g=0,E=Object.entries(a.queries.query);g<E.length;g++){for(var y=E[g],T=y[0],S=y[1],O=[],B=0,U=S;B<U.length;B++){var q=U[B];zd(s,q.obsSet)?q.subscribers.forEach(function(Y){return f.add(Y)}):h&&O.push(q)}h&&m.push([T,O])}if(h)for(var k=0,M=m;k<M.length;k++){var W=M[k],T=W[0],O=W[1];a.queries.query[T]=O}}function L3(a){var s=a._state,f=a._deps.indexedDB;if(s.isBeingOpened||a.idbdb)return s.dbReadyPromise.then(function(){return s.dbOpenError?$t(s.dbOpenError):a});s.isBeingOpened=!0,s.dbOpenError=null,s.openComplete=!1;var h=s.openCanceller,m=Math.round(a.verno*10),g=!1;function E(){if(s.openCanceller!==h)throw new _e.DatabaseClosed("db.open() was cancelled")}var y=s.dbReadyResolve,T=null,S=!1,O=function(){return new ue(function(B,U){if(E(),!f)throw new _e.MissingAPI;var q=a.name,k=s.autoSchema||!m?f.open(q):f.open(q,m);if(!k)throw new _e.MissingAPI;k.onerror=di(U),k.onblocked=kt(a._fireOnBlocked),k.onupgradeneeded=kt(function(M){if(T=k.transaction,s.autoSchema&&!a._options.allowEmptyDB){k.onerror=No,T.abort(),k.result.close();var W=f.deleteDatabase(q);W.onsuccess=W.onerror=kt(function(){U(new _e.NoSuchDatabase("Database ".concat(q," doesnt exist")))})}else{T.onerror=di(U);var Y=M.oldVersion>Math.pow(2,62)?0:M.oldVersion;S=Y<1,a.idbdb=k.result,g&&v3(a,T),x3(a,Y/10,T,U)}},U),k.onsuccess=kt(function(){T=null;var M=a.idbdb=k.result,W=K(M.objectStoreNames);if(W.length>0)try{var Y=M.transaction(p3(W),"readonly");if(s.autoSchema)I3(a,M,Y);else if(Ml(a,a._dbSchema,Y),!C3(a,Y)&&!g)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),M.close(),m=M.version+1,g=!0,B(O());Bl(a,Y)}catch{}Oo.add(a),M.onversionchange=kt(function(X){s.vcFired=!0,a.on("versionchange").fire(X)}),M.onclose=kt(function(){a.close({disableAutoOpen:!1})}),S&&R3(a._deps,q),B()},U)}).catch(function(B){switch(B?.name){case"UnknownError":if(s.PR1398_maxLoop>0)return s.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),O();break;case"VersionError":if(m>0)return m=0,O();break}return ue.reject(B)})};return ue.race([h,(typeof navigator>"u"?ue.resolve():B3()).then(O)]).then(function(){return E(),s.onReadyBeingFired=[],ue.resolve(Gd(function(){return a.on.ready.fire(a.vip)})).then(function B(){if(s.onReadyBeingFired.length>0){var U=s.onReadyBeingFired.reduce(ys,mt);return s.onReadyBeingFired=[],ue.resolve(Gd(function(){return U(a.vip)})).then(B)}})}).finally(function(){s.openCanceller===h&&(s.onReadyBeingFired=null,s.isBeingOpened=!1)}).catch(function(B){s.dbOpenError=B;try{T&&T.abort()}catch{}return h===s.openCanceller&&a._close(),$t(B)}).finally(function(){s.openComplete=!0,y()}).then(function(){if(S){var B={};a.tables.forEach(function(U){U.schema.indexes.forEach(function(q){q.name&&(B["idb://".concat(a.name,"/").concat(U.name,"/").concat(q.name)]=new Gr(-1/0,[[[]]]))}),B["idb://".concat(a.name,"/").concat(U.name,"/")]=B["idb://".concat(a.name,"/").concat(U.name,"/:dels")]=new Gr(-1/0,[[[]]])}),Yu(Do).fire(B),Zd(B,!0)}return a})}function Xd(a){var s=function(E){return a.next(E)},f=function(E){return a.throw(E)},h=g(s),m=g(f);function g(E){return function(y){var T=E(y),S=T.value;return T.done?S:!S||typeof S.then!="function"?o(S)?Promise.all(S).then(h,m):h(S):S.then(h,m)}}return g(s)()}function F3(a,s,f){var h=arguments.length;if(h<2)throw new _e.InvalidArgument("Too few arguments");for(var m=new Array(h-1);--h;)m[h-1]=arguments[h];f=m.pop();var g=qt(m);return[a,g,f]}function Gg(a,s,f,h,m){return ue.resolve().then(function(){var g=ge.transless||ge,E=a._createTransaction(s,f,a._dbSchema,h);E.explicit=!0;var y={trans:E,transless:g};if(h)E.idbtrans=h.idbtrans;else try{E.create(),E.idbtrans._explicit=!0,a._state.PR1398_maxLoop=3}catch(B){return B.name===Dr.InvalidState&&a.isOpen()&&--a._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),a.close({disableAutoOpen:!1}),a.open().then(function(){return Gg(a,s,f,null,m)})):$t(B)}var T=Ot(m);T&&Is();var S,O=ue.follow(function(){if(S=m.call(E,E),S)if(T){var B=Hu.bind(null,null);S.then(B,B)}else typeof S.next=="function"&&typeof S.throw=="function"&&(S=Xd(S))},y);return(S&&typeof S.then=="function"?ue.resolve(S).then(function(B){return E.active?B:$t(new _e.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):O.then(function(){return S})).then(function(B){return h&&E._resolve(),E._completion.then(function(){return B})}).catch(function(B){return E._reject(B),$t(B)})})}function Yl(a,s,f){for(var h=o(a)?a.slice():[a],m=0;m<f;++m)h.push(s);return h}function P3(a){return r(r({},a),{table:function(s){var f=a.table(s),h=f.schema,m={},g=[];function E(M,W,Y){var X=Ro(M),Z=m[X]=m[X]||[],V=M==null?0:typeof M=="string"?1:M.length,j=W>0,se=r(r({},Y),{name:j?"".concat(X,"(virtual-from:").concat(Y.name,")"):Y.name,lowLevelIndex:Y,isVirtual:j,keyTail:W,keyLength:V,extractKey:Ud(M),unique:!j&&Y.unique});if(Z.push(se),se.isPrimaryKey||g.push(se),V>1){var ne=V===2?M[0]:M.slice(0,V-1);E(ne,W+1,Y)}return Z.sort(function(ie,pe){return ie.keyTail-pe.keyTail}),se}var y=E(h.primaryKey.keyPath,0,h.primaryKey);m[":id"]=[y];for(var T=0,S=h.indexes;T<S.length;T++){var O=S[T];E(O.keyPath,0,O)}function B(M){var W=m[Ro(M)];return W&&W[0]}function U(M,W){return{type:M.type===1?2:M.type,lower:Yl(M.lower,M.lowerOpen?a.MAX_KEY:a.MIN_KEY,W),lowerOpen:!0,upper:Yl(M.upper,M.upperOpen?a.MIN_KEY:a.MAX_KEY,W),upperOpen:!0}}function q(M){var W=M.query.index;return W.isVirtual?r(r({},M),{query:{index:W.lowLevelIndex,range:U(M.query.range,W.keyTail)}}):M}var k=r(r({},f),{schema:r(r({},h),{primaryKey:y,indexes:g,getIndexByKeyPath:B}),count:function(M){return f.count(q(M))},query:function(M){return f.query(q(M))},openCursor:function(M){var W=M.query.index,Y=W.keyTail,X=W.isVirtual,Z=W.keyLength;if(!X)return f.openCursor(M);function V(j){function se(ie){ie!=null?j.continue(Yl(ie,M.reverse?a.MAX_KEY:a.MIN_KEY,Y)):M.unique?j.continue(j.key.slice(0,Z).concat(M.reverse?a.MIN_KEY:a.MAX_KEY,Y)):j.continue()}var ne=Object.create(j,{continue:{value:se},continuePrimaryKey:{value:function(ie,pe){j.continuePrimaryKey(Yl(ie,a.MAX_KEY,Y),pe)}},primaryKey:{get:function(){return j.primaryKey}},key:{get:function(){var ie=j.key;return Z===1?ie[0]:ie.slice(0,Z)}},value:{get:function(){return j.value}}});return ne}return f.openCursor(q(M)).then(function(j){return j&&V(j)})}});return k}})}var M3={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:P3};function eh(a,s,f,h){return f=f||{},h=h||"",u(a).forEach(function(m){if(!A(s,m))f[h+m]=void 0;else{var g=a[m],E=s[m];if(typeof g=="object"&&typeof E=="object"&&g&&E){var y=z(g),T=z(E);y!==T?f[h+m]=s[m]:y==="Object"?eh(g,E,f,h+m+"."):g!==E&&(f[h+m]=s[m])}else g!==E&&(f[h+m]=s[m])}}),u(s).forEach(function(m){A(a,m)||(f[h+m]=s[m])}),f}function th(a,s){return s.type==="delete"?s.keys:s.keys||s.values.map(a.extractKey)}var H3={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(a){return r(r({},a),{table:function(s){var f=a.table(s),h=f.schema.primaryKey,m=r(r({},f),{mutate:function(g){var E=ge.trans,y=E.table(s).hook,T=y.deleting,S=y.creating,O=y.updating;switch(g.type){case"add":if(S.fire===mt)break;return E._promise("readwrite",function(){return B(g)},!0);case"put":if(S.fire===mt&&O.fire===mt)break;return E._promise("readwrite",function(){return B(g)},!0);case"delete":if(T.fire===mt)break;return E._promise("readwrite",function(){return B(g)},!0);case"deleteRange":if(T.fire===mt)break;return E._promise("readwrite",function(){return U(g)},!0)}return f.mutate(g);function B(k){var M=ge.trans,W=k.keys||th(h,k);if(!W)throw new Error("Keys missing");return k=k.type==="add"||k.type==="put"?r(r({},k),{keys:W}):r({},k),k.type!=="delete"&&(k.values=n([],k.values,!0)),k.keys&&(k.keys=n([],k.keys,!0)),U3(f,k,W).then(function(Y){var X=W.map(function(Z,V){var j=Y[V],se={onerror:null,onsuccess:null};if(k.type==="delete")T.fire.call(se,Z,j,M);else if(k.type==="add"||j===void 0){var ne=S.fire.call(se,Z,k.values[V],M);Z==null&&ne!=null&&(Z=ne,k.keys[V]=Z,h.outbound||Ue(k.values[V],h.keyPath,Z))}else{var ie=eh(j,k.values[V]),pe=O.fire.call(se,ie,Z,j,M);if(pe){var je=k.values[V];Object.keys(pe).forEach(function(ve){A(je,ve)?je[ve]=pe[ve]:Ue(je,ve,pe[ve])})}}return se});return f.mutate(k).then(function(Z){for(var V=Z.failures,j=Z.results,se=Z.numFailures,ne=Z.lastResult,ie=0;ie<W.length;++ie){var pe=j?j[ie]:W[ie],je=X[ie];pe==null?je.onerror&&je.onerror(V[ie]):je.onsuccess&&je.onsuccess(k.type==="put"&&Y[ie]?k.values[ie]:pe)}return{failures:V,results:j,numFailures:se,lastResult:ne}}).catch(function(Z){return X.forEach(function(V){return V.onerror&&V.onerror(Z)}),Promise.reject(Z)})})}function U(k){return q(k.trans,k.range,1e4)}function q(k,M,W){return f.query({trans:k,values:!1,query:{index:h,range:M},limit:W}).then(function(Y){var X=Y.result;return B({type:"delete",keys:X,trans:k}).then(function(Z){return Z.numFailures>0?Promise.reject(Z.failures[0]):X.length<W?{failures:[],numFailures:0,lastResult:void 0}:q(k,r(r({},M),{lower:X[X.length-1],lowerOpen:!0}),W)})})}}});return m}})}};function U3(a,s,f){return s.type==="add"?Promise.resolve([]):a.getMany({trans:s.trans,keys:f,cache:"immutable"})}function Vg(a,s,f){try{if(!s||s.keys.length<a.length)return null;for(var h=[],m=0,g=0;m<s.keys.length&&g<a.length;++m)tt(s.keys[m],a[g])===0&&(h.push(f?ft(s.values[m]):s.values[m]),++g);return h.length===a.length?h:null}catch{return null}}var $3={stack:"dbcore",level:-1,create:function(a){return{table:function(s){var f=a.table(s);return r(r({},f),{getMany:function(h){if(!h.cache)return f.getMany(h);var m=Vg(h.keys,h.trans._cache,h.cache==="clone");return m?ue.resolve(m):f.getMany(h).then(function(g){return h.trans._cache={keys:h.keys,values:h.cache==="clone"?ft(g):g},g})},mutate:function(h){return h.type!=="add"&&(h.trans._cache=null),f.mutate(h)}})}}}};function qg(a,s){return a.trans.mode==="readonly"&&!!a.subscr&&!a.trans.explicit&&a.trans.db._options.cache!=="disabled"&&!s.schema.primaryKey.outbound}function zg(a,s){switch(a){case"query":return s.values&&!s.unique;case"get":return!1;case"getMany":return!1;case"count":return!1;case"openCursor":return!1}}var Y3={stack:"dbcore",level:0,name:"Observability",create:function(a){var s=a.schema.name,f=new Gr(a.MIN_KEY,a.MAX_KEY);return r(r({},a),{transaction:function(h,m,g){if(ge.subscr&&m!=="readonly")throw new _e.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(ge.querier));return a.transaction(h,m,g)},table:function(h){var m=a.table(h),g=m.schema,E=g.primaryKey,y=g.indexes,T=E.extractKey,S=E.outbound,O=E.autoIncrement&&y.filter(function(k){return k.compound&&k.keyPath.includes(E.keyPath)}),B=r(r({},m),{mutate:function(k){var M,W,Y=k.trans,X=k.mutatedParts||(k.mutatedParts={}),Z=function(Oe){var Fe="idb://".concat(s,"/").concat(h,"/").concat(Oe);return X[Fe]||(X[Fe]=new Gr)},V=Z(""),j=Z(":dels"),se=k.type,ne=k.type==="deleteRange"?[k.range]:k.type==="delete"?[k.keys]:k.values.length<50?[th(E,k).filter(function(Oe){return Oe}),k.values]:[],ie=ne[0],pe=ne[1],je=k.trans._cache;if(o(ie)){V.addKeys(ie);var ve=se==="delete"||ie.length===pe.length?Vg(ie,je):null;ve||j.addKeys(ie),(ve||pe)&&K3(Z,g,ve,pe)}else if(ie){var me={from:(M=ie.lower)!==null&&M!==void 0?M:a.MIN_KEY,to:(W=ie.upper)!==null&&W!==void 0?W:a.MAX_KEY};j.add(me),V.add(me)}else V.add(f),j.add(f),g.indexes.forEach(function(Oe){return Z(Oe.name).add(f)});return m.mutate(k).then(function(Oe){return ie&&(k.type==="add"||k.type==="put")&&(V.addKeys(Oe.results),O&&O.forEach(function(Fe){for(var It=k.values.map(function(on){return Fe.extractKey(on)}),ye=Fe.keyPath.findIndex(function(on){return on===E.keyPath}),sr=0,$n=Oe.results.length;sr<$n;++sr)It[sr][ye]=Oe.results[sr];Z(Fe.name).addKeys(It)})),Y.mutatedParts=Ul(Y.mutatedParts||{},X),Oe})}}),U=function(k){var M,W,Y=k.query,X=Y.index,Z=Y.range;return[X,new Gr((M=Z.lower)!==null&&M!==void 0?M:a.MIN_KEY,(W=Z.upper)!==null&&W!==void 0?W:a.MAX_KEY)]},q={get:function(k){return[E,new Gr(k.key)]},getMany:function(k){return[E,new Gr().addKeys(k.keys)]},count:U,query:U,openCursor:U};return u(q).forEach(function(k){B[k]=function(M){var W=ge.subscr,Y=!!W,X=qg(ge,m)&&zg(k,M),Z=X?M.obsSet={}:W;if(Y){var V=function(ve){var me="idb://".concat(s,"/").concat(h,"/").concat(ve);return Z[me]||(Z[me]=new Gr)},j=V(""),se=V(":dels"),ne=q[k](M),ie=ne[0],pe=ne[1];if(k==="query"&&ie.isPrimaryKey&&!M.values?se.add(pe):V(ie.name||"").add(pe),!ie.isPrimaryKey)if(k==="count")se.add(f);else{var je=k==="query"&&S&&M.values&&m.query(r(r({},M),{values:!1}));return m[k].apply(this,arguments).then(function(ve){if(k==="query"){if(S&&M.values)return je.then(function(It){var ye=It.result;return j.addKeys(ye),ve});var me=M.values?ve.result.map(T):ve.result;M.values?j.addKeys(me):se.addKeys(me)}else if(k==="openCursor"){var Oe=ve,Fe=M.values;return Oe&&Object.create(Oe,{key:{get:function(){return se.addKey(Oe.primaryKey),Oe.key}},primaryKey:{get:function(){var It=Oe.primaryKey;return se.addKey(It),It}},value:{get:function(){return Fe&&j.addKey(Oe.primaryKey),Oe.value}}})}return ve})}}return m[k].apply(this,arguments)}}),B}})}};function K3(a,s,f,h){function m(g){var E=a(g.name||"");function y(S){return S!=null?g.extractKey(S):null}var T=function(S){return g.multiEntry&&o(S)?S.forEach(function(O){return E.addKey(O)}):E.addKey(S)};(f||h).forEach(function(S,O){var B=f&&y(f[O]),U=h&&y(h[O]);tt(B,U)!==0&&(B!=null&&T(B),U!=null&&T(U))})}s.indexes.forEach(m)}function Jg(a,s,f){if(f.numFailures===0)return s;if(s.type==="deleteRange")return null;var h=s.keys?s.keys.length:"values"in s&&s.values?s.values.length:1;if(f.numFailures===h)return null;var m=r({},s);return o(m.keys)&&(m.keys=m.keys.filter(function(g,E){return!(E in f.failures)})),"values"in m&&o(m.values)&&(m.values=m.values.filter(function(g,E){return!(E in f.failures)})),m}function Q3(a,s){return s.lower===void 0?!0:s.lowerOpen?tt(a,s.lower)>0:tt(a,s.lower)>=0}function W3(a,s){return s.upper===void 0?!0:s.upperOpen?tt(a,s.upper)<0:tt(a,s.upper)<=0}function rh(a,s){return Q3(a,s)&&W3(a,s)}function jg(a,s,f,h,m,g){if(!f||f.length===0)return a;var E=s.query.index,y=E.multiEntry,T=s.query.range,S=h.schema.primaryKey,O=S.extractKey,B=E.extractKey,U=(E.lowLevelIndex||E).extractKey,q=f.reduce(function(M,W){var Y=M,X=[];if(W.type==="add"||W.type==="put")for(var Z=new Gr,V=W.values.length-1;V>=0;--V){var j=W.values[V],se=O(j);if(!Z.hasKey(se)){var ne=B(j);(y&&o(ne)?ne.some(function(me){return rh(me,T)}):rh(ne,T))&&(Z.addKey(se),X.push(j))}}switch(W.type){case"add":{var ie=new Gr().addKeys(s.values?M.map(function(me){return O(me)}):M);Y=M.concat(s.values?X.filter(function(me){var Oe=O(me);return ie.hasKey(Oe)?!1:(ie.addKey(Oe),!0)}):X.map(function(me){return O(me)}).filter(function(me){return ie.hasKey(me)?!1:(ie.addKey(me),!0)}));break}case"put":{var pe=new Gr().addKeys(W.values.map(function(me){return O(me)}));Y=M.filter(function(me){return!pe.hasKey(s.values?O(me):me)}).concat(s.values?X:X.map(function(me){return O(me)}));break}case"delete":var je=new Gr().addKeys(W.keys);Y=M.filter(function(me){return!je.hasKey(s.values?O(me):me)});break;case"deleteRange":var ve=W.range;Y=M.filter(function(me){return!rh(O(me),ve)});break}return Y},a);if(q===a)return a;var k=function(M,W){return tt(U(M),U(W))||tt(O(M),O(W))};return q.sort(s.direction==="prev"||s.direction==="prevunique"?function(M,W){return k(W,M)}:k),s.limit&&s.limit<1/0&&(q.length>s.limit?q.length=s.limit:a.length===s.limit&&q.length<s.limit&&(m.dirty=!0)),g?Object.freeze(q):q}function Zg(a,s){return tt(a.lower,s.lower)===0&&tt(a.upper,s.upper)===0&&!!a.lowerOpen==!!s.lowerOpen&&!!a.upperOpen==!!s.upperOpen}function G3(a,s,f,h){if(a===void 0)return s!==void 0?-1:0;if(s===void 0)return 1;var m=tt(a,s);if(m===0){if(f&&h)return 0;if(f)return 1;if(h)return-1}return m}function V3(a,s,f,h){if(a===void 0)return s!==void 0?1:0;if(s===void 0)return-1;var m=tt(a,s);if(m===0){if(f&&h)return 0;if(f)return-1;if(h)return 1}return m}function q3(a,s){return G3(a.lower,s.lower,a.lowerOpen,s.lowerOpen)<=0&&V3(a.upper,s.upper,a.upperOpen,s.upperOpen)>=0}function z3(a,s,f,h){var m,g=Sa["idb://".concat(a,"/").concat(s)];if(!g)return[];var E=g.queries[f];if(!E)return[null,!1,g,null];var y=h.query?h.query.index.name:null,T=E[y||""];if(!T)return[null,!1,g,null];switch(f){case"query":var S=(m=h.direction)!==null&&m!==void 0?m:"next",O=T.find(function(q){var k;return q.req.limit===h.limit&&q.req.values===h.values&&((k=q.req.direction)!==null&&k!==void 0?k:"next")===S&&Zg(q.req.query.range,h.query.range)});if(O)return[O,!0,g,T];var B=T.find(function(q){var k,M="limit"in q.req?q.req.limit:1/0;return M>=h.limit&&((k=q.req.direction)!==null&&k!==void 0?k:"next")===S&&(h.values?q.req.values:!0)&&q3(q.req.query.range,h.query.range)});return[B,!1,g,T];case"count":var U=T.find(function(q){return Zg(q.req.query.range,h.query.range)});return[U,!!U,g,T]}}function J3(a,s,f,h){a.subscribers.add(f),h.addEventListener("abort",function(){a.subscribers.delete(f),a.subscribers.size===0&&j3(a,s)})}function j3(a,s){setTimeout(function(){a.subscribers.size===0&&Ve(s,a)},3e3)}var Z3={stack:"dbcore",level:0,name:"Cache",create:function(a){var s=a.schema.name,f=r(r({},a),{transaction:function(h,m,g){var E=a.transaction(h,m,g);if(m==="readwrite"){var y=new AbortController,T=y.signal,S=function(O){return function(){if(y.abort(),m==="readwrite"){for(var B=new Set,U=0,q=h;U<q.length;U++){var k=q[U],M=Sa["idb://".concat(s,"/").concat(k)];if(M){var W=a.table(k),Y=M.optimisticOps.filter(function(Fe){return Fe.trans===E});if(E._explicit&&O&&E.mutatedParts)for(var X=0,Z=Object.values(M.queries.query);X<Z.length;X++)for(var V=Z[X],j=0,se=V.slice();j<se.length;j++){var ne=se[j];zd(ne.obsSet,E.mutatedParts)&&(Ve(V,ne),ne.subscribers.forEach(function(Fe){return B.add(Fe)}))}else if(Y.length>0){M.optimisticOps=M.optimisticOps.filter(function(Fe){return Fe.trans!==E});for(var ie=0,pe=Object.values(M.queries.query);ie<pe.length;ie++)for(var V=pe[ie],je=0,ve=V.slice();je<ve.length;je++){var ne=ve[je];if(ne.res!=null&&E.mutatedParts)if(O&&!ne.dirty){var me=Object.isFrozen(ne.res),Oe=jg(ne.res,ne.req,Y,W,ne,me);ne.dirty?(Ve(V,ne),ne.subscribers.forEach(function(ye){return B.add(ye)})):Oe!==ne.res&&(ne.res=Oe,ne.promise=ue.resolve({result:Oe}))}else ne.dirty&&Ve(V,ne),ne.subscribers.forEach(function(ye){return B.add(ye)})}}}}B.forEach(function(Fe){return Fe()})}}};E.addEventListener("abort",S(!1),{signal:T}),E.addEventListener("error",S(!1),{signal:T}),E.addEventListener("complete",S(!0),{signal:T})}return E},table:function(h){var m=a.table(h),g=m.schema.primaryKey,E=r(r({},m),{mutate:function(y){var T=ge.trans;if(g.outbound||T.db._options.cache==="disabled"||T.explicit||T.idbtrans.mode!=="readwrite")return m.mutate(y);var S=Sa["idb://".concat(s,"/").concat(h)];if(!S)return m.mutate(y);var O=m.mutate(y);return(y.type==="add"||y.type==="put")&&(y.values.length>=50||th(g,y).some(function(B){return B==null}))?O.then(function(B){var U=r(r({},y),{values:y.values.map(function(k,M){var W;if(B.failures[M])return k;var Y=!((W=g.keyPath)===null||W===void 0)&&W.includes(".")?ft(k):r({},k);return Ue(Y,g.keyPath,B.results[M]),Y})}),q=Jg(S,U,B);S.optimisticOps.push(q),queueMicrotask(function(){return y.mutatedParts&&$l(y.mutatedParts)})}):(S.optimisticOps.push(y),y.mutatedParts&&$l(y.mutatedParts),O.then(function(B){if(B.numFailures>0){Ve(S.optimisticOps,y);var U=Jg(S,y,B);U&&S.optimisticOps.push(U),y.mutatedParts&&$l(y.mutatedParts)}}),O.catch(function(){Ve(S.optimisticOps,y),y.mutatedParts&&$l(y.mutatedParts)})),O},query:function(y){var T;if(!qg(ge,m)||!zg("query",y))return m.query(y);var S=((T=ge.trans)===null||T===void 0?void 0:T.db._options.cache)==="immutable",O=ge,B=O.requery,U=O.signal,q=z3(s,h,"query",y),k=q[0],M=q[1],W=q[2],Y=q[3];if(k&&M)k.obsSet=y.obsSet;else{var X=m.query(y).then(function(Z){var V=Z.result;if(k&&(k.res=V),S){for(var j=0,se=V.length;j<se;++j)Object.freeze(V[j]);Object.freeze(V)}else Z.result=ft(V);return Z}).catch(function(Z){return Y&&k&&Ve(Y,k),Promise.reject(Z)});k={obsSet:y.obsSet,promise:X,subscribers:new Set,type:"query",req:y,dirty:!1},Y?Y.push(k):(Y=[k],W||(W=Sa["idb://".concat(s,"/").concat(h)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}}),W.queries.query[y.query.index.name||""]=Y)}return J3(k,Y,B,U),k.promise.then(function(Z){return{result:jg(Z.result,y,W?.optimisticOps,m,k,S)}})}});return E}});return f}};function Kl(a,s){return new Proxy(a,{get:function(f,h,m){return h==="db"?s:Reflect.get(f,h,m)}})}var fu=function(){function a(s,f){var h=this;this._middlewares={},this.verno=0;var m=a.dependencies;this._options=f=r({addons:a.addons,autoOpen:!0,indexedDB:m.indexedDB,IDBKeyRange:m.IDBKeyRange,cache:"cloned",maxConnections:Ig},f),this._deps={indexedDB:f.indexedDB,IDBKeyRange:f.IDBKeyRange};var g=f.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var E={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:mt,dbReadyPromise:null,cancelOpen:mt,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:f.autoOpen};E.dbReadyPromise=new ue(function(T){E.dbReadyResolve=T}),E.openCanceller=new ue(function(T,S){E.cancelOpen=S}),this._state=E,this.name=s,this.on=Co(this,"populate","blocked","versionchange","close",{ready:[ys,mt]}),this.once=function(T,S){var O=function(){for(var B=[],U=0;U<arguments.length;U++)B[U]=arguments[U];h.on(T).unsubscribe(O),S.apply(h,B)};return h.on(T,O)},this.on.ready.subscribe=ce(this.on.ready.subscribe,function(T){return function(S,O){a.vip(function(){var B=h._state;if(B.openComplete)B.dbOpenError||ue.resolve().then(S),O&&T(S);else if(B.onReadyBeingFired)B.onReadyBeingFired.push(S),O&&T(S);else{T(S);var U=h;O||T(function q(){U.on.ready.unsubscribe(S),U.on.ready.unsubscribe(q)})}})}}),this.Collection=u3(this),this.Table=r3(this),this.Transaction=h3(this),this.Version=N3(this),this.WhereClause=f3(this),this.on("versionchange",function(T){T.newVersion>0?console.warn("Another connection wants to upgrade database '".concat(h.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(h.name,"'. Closing db now to resume the delete request.")),h.close({disableAutoOpen:!1})}),this.on("blocked",function(T){!T.newVersion||T.newVersion<T.oldVersion?console.warn("Dexie.delete('".concat(h.name,"') was blocked")):console.warn("Upgrade '".concat(h.name,"' blocked by other connection holding version ").concat(T.oldVersion/10))}),this._maxKey=ko(f.IDBKeyRange),this._createTransaction=function(T,S,O,B){return new h.Transaction(T,S,O,h._options.chromeTransactionDurability,B)},this._fireOnBlocked=function(T){h.on("blocked").fire(T),Oo.toArray().filter(function(S){return S.name===h.name&&S!==h&&!S._state.vcFired}).map(function(S){return S.on("versionchange").fire(T)})},this.use($3),this.use(Z3),this.use(Y3),this.use(M3),this.use(H3);var y=new Proxy(this,{get:function(T,S,O){if(S==="_vip")return!0;if(S==="table")return function(U){return Kl(h.table(U),y)};var B=Reflect.get(T,S,O);return B instanceof Rg?Kl(B,y):S==="tables"?B.map(function(U){return Kl(U,y)}):S==="_createTransaction"?function(){var U=B.apply(this,arguments);return Kl(U,y)}:B}});this.vip=y,g.forEach(function(T){return T(h)})}return a.prototype.version=function(s){if(isNaN(s)||s<.1)throw new _e.Type("Given version is not a positive number");if(s=Math.round(s*10)/10,this.idbdb||this._state.isBeingOpened)throw new _e.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,s);var f=this._versions,h=f.filter(function(m){return m._cfg.version===s})[0];return h||(h=new this.Version(s),f.push(h),f.sort(E3),h.stores({}),this._state.autoSchema=!1,h)},a.prototype._whenReady=function(s){var f=this;return this.idbdb&&(this._state.openComplete||ge.letThrough||this._vip)?s():new ue(function(h,m){if(f._state.openComplete)return m(new _e.DatabaseClosed(f._state.dbOpenError));if(!f._state.isBeingOpened){if(!f._state.autoOpen){m(new _e.DatabaseClosed);return}f.open().catch(mt)}f._state.dbReadyPromise.then(h,m)}).then(s)},a.prototype.use=function(s){var f=s.stack,h=s.create,m=s.level,g=s.name;g&&this.unuse({stack:f,name:g});var E=this._middlewares[f]||(this._middlewares[f]=[]);return E.push({stack:f,create:h,level:m??10,name:g}),E.sort(function(y,T){return y.level-T.level}),this},a.prototype.unuse=function(s){var f=s.stack,h=s.name,m=s.create;return f&&this._middlewares[f]&&(this._middlewares[f]=this._middlewares[f].filter(function(g){return m?g.create!==m:h?g.name!==h:!1})),this},a.prototype.open=function(){var s=this;return wa(An,function(){return L3(s)})},a.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var s=this._state;if(Oo.remove(this),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}s.isBeingOpened||(s.dbReadyPromise=new ue(function(f){s.dbReadyResolve=f}),s.openCanceller=new ue(function(f,h){s.cancelOpen=h}))},a.prototype.close=function(s){var f=s===void 0?{disableAutoOpen:!0}:s,h=f.disableAutoOpen,m=this._state;h?(m.isBeingOpened&&m.cancelOpen(new _e.DatabaseClosed),this._close(),m.autoOpen=!1,m.dbOpenError=new _e.DatabaseClosed):(this._close(),m.autoOpen=this._options.autoOpen||m.isBeingOpened,m.openComplete=!1,m.dbOpenError=null)},a.prototype.delete=function(s){var f=this;s===void 0&&(s={disableAutoOpen:!0});var h=arguments.length>0&&typeof arguments[0]!="object",m=this._state;return new ue(function(g,E){var y=function(){f.close(s);var T=f._deps.indexedDB.deleteDatabase(f.name);T.onsuccess=kt(function(){O3(f._deps,f.name),g()}),T.onerror=di(E),T.onblocked=f._fireOnBlocked};if(h)throw new _e.InvalidArgument("Invalid closeOptions argument to db.delete()");m.isBeingOpened?m.dbReadyPromise.then(y):y()})},a.prototype.backendDB=function(){return this.idbdb},a.prototype.isOpen=function(){return this.idbdb!==null},a.prototype.hasBeenClosed=function(){var s=this._state.dbOpenError;return s&&s.name==="DatabaseClosed"},a.prototype.hasFailed=function(){return this._state.dbOpenError!==null},a.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(a.prototype,"tables",{get:function(){var s=this;return u(this._allTables).map(function(f){return s._allTables[f]})},enumerable:!1,configurable:!0}),a.prototype.transaction=function(){var s=F3.apply(this,arguments);return this._transaction.apply(this,s)},a.prototype._transaction=function(s,f,h){var m=this,g=ge.trans;(!g||g.db!==this||s.indexOf("!")!==-1)&&(g=null);var E=s.indexOf("?")!==-1;s=s.replace("!","").replace("?","");var y,T;try{if(T=f.map(function(O){var B=O instanceof m.Table?O.name:O;if(typeof B!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return B}),s=="r"||s===Od)y=Od;else if(s=="rw"||s==Bd)y=Bd;else throw new _e.InvalidArgument("Invalid transaction mode: "+s);if(g){if(g.mode===Od&&y===Bd)if(E)g=null;else throw new _e.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");g&&T.forEach(function(O){if(g&&g.storeNames.indexOf(O)===-1)if(E)g=null;else throw new _e.SubTransaction("Table "+O+" not included in parent transaction.")}),E&&g&&!g.active&&(g=null)}}catch(O){return g?g._promise(null,function(B,U){U(O)}):$t(O)}var S=Gg.bind(null,this,y,T,g,h);return g?g._promise(y,S,"lock"):ge.trans?wa(ge.transless,function(){return m._whenReady(S)}):this._whenReady(S)},a.prototype.table=function(s){if(!A(this._allTables,s))throw new _e.InvalidTable("Table ".concat(s," does not exist"));return this._allTables[s]},a}(),X3=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",eT=function(){function a(s){this._subscribe=s}return a.prototype.subscribe=function(s,f,h){return this._subscribe(!s||typeof s=="function"?{next:s,error:f,complete:h}:s)},a.prototype[X3]=function(){return this},a}(),Ql;try{Ql={indexedDB:i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB,IDBKeyRange:i.IDBKeyRange||i.webkitIDBKeyRange}}catch{Ql={indexedDB:null,IDBKeyRange:null}}function Xg(a){var s=!1,f,h=new eT(function(m){var g=Ot(a);function E(Y){var X=Ts();try{g&&Is();var Z=Mu(a,Y);return g&&(Z=Z.finally(Hu)),Z}finally{X&&ws()}}var y=!1,T,S={},O={},B={get closed(){return y},unsubscribe:function(){y||(y=!0,T&&T.abort(),U&&Yu.storagemutated.unsubscribe(M))}};m.start&&m.start(B);var U=!1,q=function(){return Dd(W)};function k(){return zd(O,S)}var M=function(Y){Ul(S,Y),k()&&q()},W=function(){if(!(y||!Ql.indexedDB)){S={};var Y={};T&&T.abort(),T=new AbortController;var X={subscr:Y,signal:T.signal,requery:q,querier:a,trans:null},Z=E(X);U||(Yu(Do,M),U=!0),Promise.resolve(Z).then(function(V){s=!0,f=V,!(y||X.signal.aborted)&&(k()?q():(O=Y,k()?q():(S={},Dd(function(){return!y&&m.next&&m.next(V)}))))},function(V){s=!1,["DatabaseClosedError","AbortError"].includes(V?.name)||y||Dd(function(){y||m.error&&m.error(V)})})}};return setTimeout(q,0),B});return h.hasValue=function(){return s},h.getValue=function(){return f},h}var Na=fu;b(Na,r(r({},xa),{delete:function(a){var s=new Na(a,{addons:[]});return s.delete()},exists:function(a){return new Na(a,{addons:[]}).open().then(function(s){return s.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(a){try{return k3(Na.dependencies).then(a)}catch{return $t(new _e.MissingAPI)}},defineClass:function(){function a(s){l(this,s)}return a},ignoreTransaction:function(a){return ge.trans?wa(ge.transless||An,a):a()},vip:Gd,async:function(a){return function(){try{var s=Xd(a.apply(this,arguments));return!s||typeof s.then!="function"?ue.resolve(s):s}catch(f){return $t(f)}}},spawn:function(a,s,f){try{var h=Xd(a.apply(f,s||[]));return!h||typeof h.then!="function"?ue.resolve(h):h}catch(m){return $t(m)}},currentTransaction:{get:function(){return ge.trans||null}},waitFor:function(a,s){var f=ue.resolve(typeof a=="function"?Na.ignoreTransaction(a):a).timeout(s||6e4);return ge.trans?ge.trans.waitFor(f):f},Promise:ue,debug:{get:function(){return Un},set:function(a){To(a)}},derive:I,extend:l,props:b,override:ce,Events:Co,on:Yu,liveQuery:Xg,extendObservabilitySet:Ul,getByKeyPath:oe,setByKeyPath:Ue,delByKeyPath:at,shallowClone:we,deepClone:ft,getObjectDiff:eh,cmp:tt,asap:Re,minKey:Rd,addons:[],connections:{get:Oo.toArray},errnames:Dr,dependencies:Ql,cache:Sa,semVer:Tg,version:Tg.split(".").map(function(a){return parseInt(a)}).reduce(function(a,s,f){return a+s/Math.pow(10,f*2)})})),Na.maxKey=ko(Na.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Yu(Do,function(a){if(!Ku){var s;s=new CustomEvent(Pd,{detail:a}),Ku=!0,dispatchEvent(s),Ku=!1}}),addEventListener(Pd,function(a){var s=a.detail;Ku||nh(s)}));function nh(a){var s=Ku;try{Ku=!0,Yu.storagemutated.fire(a),Zd(a,!0)}finally{Ku=s}}var Ku=!1,Qu,ih=function(){};typeof BroadcastChannel<"u"&&(ih=function(){Qu=new BroadcastChannel(Pd),Qu.onmessage=function(a){return a.data&&nh(a.data)}},ih(),typeof Qu.unref=="function"&&Qu.unref(),Yu(Do,function(a){Ku||Qu.postMessage(a)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(a){if(!fu.disableBfCache&&a.persisted){Un&&console.debug("Dexie: handling persisted pagehide"),Qu?.close();for(var s=0,f=Oo.toArray();s<f.length;s++){var h=f[s];h.close({disableAutoOpen:!1})}}}),addEventListener("pageshow",function(a){!fu.disableBfCache&&a.persisted&&(Un&&console.debug("Dexie: handling persisted pageshow"),ih(),nh({all:new Gr(-1/0,[[]])}))}));function tT(a){return new Io({add:a})}function rT(a){return new Io({remove:a})}function nT(a,s){return new Io({replacePrefix:[a,s]})}ue.rejectionMapper=xo,To(Un);var iT=Object.freeze({__proto__:null,DEFAULT_MAX_CONNECTIONS:Ig,Dexie:fu,Entity:Sg,PropModification:Io,RangeSet:Gr,add:tT,cmp:tt,default:fu,liveQuery:Xg,mergeRanges:Lo,rangesOverlap:Yg,remove:rT,replacePrefix:nT});return r(fu,iT,{default:fu}),fu})});var k2={};gn(k2,{Hooks:()=>Xs,Lexer:()=>Zn,Marked:()=>D2,Parser:()=>Xn,Renderer:()=>Mc,TextRenderer:()=>h0,Tokenizer:()=>Pc,defaults:()=>ca,getDefaults:()=>l0,lexer:()=>SI,marked:()=>gt,options:()=>xI,parse:()=>II,parseInline:()=>wI,parser:()=>CI,setOptions:()=>vI,use:()=>yI,walkTokens:()=>TI});function l0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function E2(e){ca=e}function ot(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,u)=>{let o=typeof u=="string"?u:u.source;return o=o.replace(pn.caret,"$1"),r=r.replace(i,o),n},getRegex:()=>new RegExp(r,t)};return n}function ru(e,t){if(t){if(pn.escapeTest.test(e))return e.replace(pn.escapeReplace,A2)}else if(pn.escapeTestNoEncode.test(e))return e.replace(pn.escapeReplaceNoEncode,A2);return e}function g2(e){try{e=encodeURI(e).replace(pn.percentDecode,"%")}catch{return null}return e}function b2(e,t){let r=e.replace(pn.findPipe,(u,o,l)=>{let d=!1,p=o;for(;--p>=0&&l[p]==="\\";)d=!d;return d?"|":" |"}),n=r.split(pn.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(pn.slashPipe,"|");return n}function Fc(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n;){let u=e.charAt(n-i-1);if(u===t&&!r)i++;else if(u!==t&&r)i++;else break}return e.slice(0,n-i)}function bI(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function _I(e,t=0){let r=t,n="";for(let i of e)if(i==="	"){let u=4-r%4;n+=" ".repeat(u),r+=u}else n+=i,r++;return n}function _2(e,t,r,n,i){let u=t.href,o=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let d={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:u,title:o,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,d}function EI(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
`).map(u=>{let o=u.match(r.other.beginningSpace);if(o===null)return u;let[l]=o;return l.length>=i.length?u.slice(i.length):u}).join(`
`)}function gt(e,t){return ds.parse(e,t)}var ca,fs,L6,pn,F6,P6,M6,Hc,H6,gm,x2,v2,U6,bm,$6,_m,Y6,K6,f0,Em,Q6,y2,W6,xm,p2,G6,V6,q6,z6,T2,J6,eo,d0,vm,j6,w2,Z6,X6,eI,I2,tI,rI,C2,nI,iI,uI,aI,sI,oI,cI,lI,fI,dI,c0,hI,S2,N2,pI,m2,ym,mI,pm,AI,s0,Lc,gI,A2,Pc,Zn,Mc,h0,Xn,o0,Xs,D2,ds,xI,vI,yI,TI,wI,II,CI,SI,R2=N(()=>{ca=l0();fs={exec:()=>null};L6=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),pn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},F6=/^(?:[ \t]*(?:\n|$))+/,P6=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,M6=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,H6=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gm=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,x2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,v2=ot(x2).replace(/bull/g,gm).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),U6=ot(x2).replace(/bull/g,gm).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),bm=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,$6=/^[^\n]+/,_m=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Y6=ot(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_m).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),K6=ot(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gm).getRegex(),f0="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Em=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Q6=ot("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",Em).replace("tag",f0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),y2=ot(bm).replace("hr",Hc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",f0).getRegex(),W6=ot(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",y2).getRegex(),xm={blockquote:W6,code:P6,def:Y6,fences:M6,heading:H6,hr:Hc,html:Q6,lheading:v2,list:K6,newline:F6,paragraph:y2,table:fs,text:$6},p2=ot("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",f0).getRegex(),G6={...xm,lheading:U6,table:p2,paragraph:ot(bm).replace("hr",Hc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",p2).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",f0).getRegex()},V6={...xm,html:ot(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Em).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:fs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ot(bm).replace("hr",Hc).replace("heading",` *#{1,6} *[^
]`).replace("lheading",v2).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},q6=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,z6=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,T2=/^( {2,}|\\)\n(?!\s*$)/,J6=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,eo=/[\p{P}\p{S}]/u,d0=/[\s\p{P}\p{S}]/u,vm=/[^\s\p{P}\p{S}]/u,j6=ot(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,d0).getRegex(),w2=/(?!~)[\p{P}\p{S}]/u,Z6=/(?!~)[\s\p{P}\p{S}]/u,X6=/(?:[^\s\p{P}\p{S}]|~)/u,eI=ot(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",L6?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),I2=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,tI=ot(I2,"u").replace(/punct/g,eo).getRegex(),rI=ot(I2,"u").replace(/punct/g,w2).getRegex(),C2="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nI=ot(C2,"gu").replace(/notPunctSpace/g,vm).replace(/punctSpace/g,d0).replace(/punct/g,eo).getRegex(),iI=ot(C2,"gu").replace(/notPunctSpace/g,X6).replace(/punctSpace/g,Z6).replace(/punct/g,w2).getRegex(),uI=ot("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,vm).replace(/punctSpace/g,d0).replace(/punct/g,eo).getRegex(),aI=ot(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,eo).getRegex(),sI="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",oI=ot(sI,"gu").replace(/notPunctSpace/g,vm).replace(/punctSpace/g,d0).replace(/punct/g,eo).getRegex(),cI=ot(/\\(punct)/,"gu").replace(/punct/g,eo).getRegex(),lI=ot(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),fI=ot(Em).replace("(?:-->|$)","-->").getRegex(),dI=ot("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",fI).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),c0=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,hI=ot(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",c0).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),S2=ot(/^!?\[(label)\]\[(ref)\]/).replace("label",c0).replace("ref",_m).getRegex(),N2=ot(/^!?\[(ref)\](?:\[\])?/).replace("ref",_m).getRegex(),pI=ot("reflink|nolink(?!\\()","g").replace("reflink",S2).replace("nolink",N2).getRegex(),m2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ym={_backpedal:fs,anyPunctuation:cI,autolink:lI,blockSkip:eI,br:T2,code:z6,del:fs,delLDelim:fs,delRDelim:fs,emStrongLDelim:tI,emStrongRDelimAst:nI,emStrongRDelimUnd:uI,escape:q6,link:hI,nolink:N2,punctuation:j6,reflink:S2,reflinkSearch:pI,tag:dI,text:J6,url:fs},mI={...ym,link:ot(/^!?\[(label)\]\((.*?)\)/).replace("label",c0).getRegex(),reflink:ot(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",c0).getRegex()},pm={...ym,emStrongRDelimAst:iI,emStrongLDelim:rI,delLDelim:aI,delRDelim:oI,url:ot(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",m2).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ot(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",m2).getRegex()},AI={...pm,br:ot(T2).replace("{2,}","*").getRegex(),text:ot(pm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},s0={normal:xm,gfm:G6,pedantic:V6},Lc={normal:ym,gfm:pm,breaks:AI,pedantic:mI},gI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},A2=e=>gI[e];Pc=class{options;rules;lexer;constructor(e){this.options=e||ca}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Fc(r,`
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=EI(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let n=Fc(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Fc(t[0],`
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Fc(t[0],`
`).split(`
`),n="",i="",u=[];for(;r.length>0;){let o=!1,l=[],d;for(d=0;d<r.length;d++)if(this.rules.other.blockquoteStart.test(r[d]))l.push(r[d]),o=!0;else if(!o)l.push(r[d]);else break;r=r.slice(d);let p=l.join(`
`),A=p.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
${p}`:p,i=i?`${i}
${A}`:A;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(A,u,!0),this.lexer.state.top=b,r.length===0)break;let _=u.at(-1);if(_?.type==="code")break;if(_?.type==="blockquote"){let v=_,I=v.raw+`
`+r.join(`
`),D=this.blockquote(I);u[u.length-1]=D,n=n.substring(0,n.length-v.raw.length)+D.raw,i=i.substring(0,i.length-v.text.length)+D.text;break}else if(_?.type==="list"){let v=_,I=v.raw+`
`+r.join(`
`),D=this.list(I);u[u.length-1]=D,n=n.substring(0,n.length-_.raw.length)+D.raw,i=i.substring(0,i.length-v.raw.length)+D.raw,r=I.substring(u.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:n,tokens:u,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let u=this.rules.other.listItemRegex(r),o=!1;for(;e;){let d=!1,p="",A="";if(!(t=u.exec(e))||this.rules.block.hr.test(e))break;p=t[0],e=e.substring(p.length);let b=_I(t[2].split(`
`,1)[0],t[1].length),_=e.split(`
`,1)[0],v=!b.trim(),I=0;if(this.options.pedantic?(I=2,A=b.trimStart()):v?I=t[1].length+1:(I=b.search(this.rules.other.nonSpaceChar),I=I>4?1:I,A=b.slice(I),I+=t[1].length),v&&this.rules.other.blankLine.test(_)&&(p+=_+`
`,e=e.substring(_.length+1),d=!0),!d){let D=this.rules.other.nextBulletRegex(I),R=this.rules.other.hrRegex(I),H=this.rules.other.fencesBeginRegex(I),K=this.rules.other.headingBeginRegex(I),ce=this.rules.other.htmlBeginRegex(I),le=this.rules.other.blockquoteBeginRegex(I);for(;e;){let Re=e.split(`
`,1)[0],xe;if(_=Re,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting,"  "),xe=_):xe=_.replace(this.rules.other.tabCharGlobal,"    "),H.test(_)||K.test(_)||ce.test(_)||le.test(_)||D.test(_)||R.test(_))break;if(xe.search(this.rules.other.nonSpaceChar)>=I||!_.trim())A+=`
`+xe.slice(I);else{if(v||b.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||H.test(b)||K.test(b)||R.test(b))break;A+=`
`+_}v=!_.trim(),p+=Re+`
`,e=e.substring(Re.length+1),b=xe.slice(I)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(o=!0)),i.items.push({type:"list_item",raw:p,task:!!this.options.gfm&&this.rules.other.listIsTask.test(A),loose:!1,text:A,tokens:[]}),i.raw+=p}let l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let d of i.items){if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),d.task){if(d.text=d.text.replace(this.rules.other.listReplaceTask,""),d.tokens[0]?.type==="text"||d.tokens[0]?.type==="paragraph"){d.tokens[0].raw=d.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),d.tokens[0].text=d.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let A=this.lexer.inlineQueue.length-1;A>=0;A--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[A].src)){this.lexer.inlineQueue[A].src=this.lexer.inlineQueue[A].src.replace(this.rules.other.listReplaceTask,"");break}}let p=this.rules.other.listTaskCheckbox.exec(d.raw);if(p){let A={type:"checkbox",raw:p[0]+" ",checked:p[0]!=="[ ]"};d.checked=A.checked,i.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=A.raw+d.tokens[0].raw,d.tokens[0].text=A.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(A)):d.tokens.unshift({type:"paragraph",raw:A.raw,text:A.raw,tokens:[A]}):d.tokens.unshift(A)}}if(!i.loose){let p=d.tokens.filter(b=>b.type==="space"),A=p.length>0&&p.some(b=>this.rules.other.anyLine.test(b.raw));i.loose=A}}if(i.loose)for(let d of i.items){d.loose=!0;for(let p of d.tokens)p.type==="text"&&(p.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=b2(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],u={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let o of n)this.rules.other.tableAlignRight.test(o)?u.align.push("right"):this.rules.other.tableAlignCenter.test(o)?u.align.push("center"):this.rules.other.tableAlignLeft.test(o)?u.align.push("left"):u.align.push(null);for(let o=0;o<r.length;o++)u.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:u.align[o]});for(let o of i)u.rows.push(b2(o,u.header.length).map((l,d)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:u.align[d]})));return u}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let u=Fc(r.slice(0,-1),"\\");if((r.length-u.length)%2===0)return}else{let u=bI(t[2],"()");if(u===-2)return;if(u>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+u;t[2]=t[2].substring(0,u),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(n);u&&(n=u[1],i=u[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),_2(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[n.toLowerCase()];if(!i){let u=r[0].charAt(0);return{type:"text",raw:u,text:u}}return _2(r,i,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,u,o,l=i,d=0,p=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,t=t.slice(-1*e.length+i);(n=p.exec(t))!==null;){if(u=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!u)continue;if(o=[...u].length,n[3]||n[4]){l+=o;continue}else if((n[5]||n[6])&&i%3&&!((i+o)%3)){d+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+d);let A=[...n[0]][0].length,b=e.slice(0,i+n.index+A+o);if(Math.min(i,o)%2){let v=b.slice(1,-1);return{type:"em",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}let _=b.slice(2,-2);return{type:"strong",raw:b,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,u,o,l=i,d=this.rules.inline.delRDelim;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(n=d.exec(t))!==null;){if(u=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!u||(o=[...u].length,o!==i))continue;if(n[3]||n[4]){l+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l);let p=[...n[0]][0].length,A=e.slice(0,i+n.index+p+o),b=A.slice(i,-i);return{type:"del",raw:A,text:b,tokens:this.lexer.inlineTokens(b)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let r,n;if(t[2]==="@")r=t[0],n="mailto:"+r;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);r=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},Zn=class mm{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ca,this.options.tokenizer=this.options.tokenizer||new Pc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:pn,block:s0.normal,inline:Lc.normal};this.options.pedantic?(r.block=s0.pedantic,r.inline=Lc.pedantic):this.options.gfm&&(r.block=s0.gfm,this.options.breaks?r.inline=Lc.breaks:r.inline=Lc.gfm),this.tokenizer.rules=r}static get rules(){return{block:s0,inline:Lc}}static lex(t,r){return new mm(r).lex(t)}static lexInline(t,r){return new mm(r).inlineTokens(t)}lex(t){t=t.replace(pn.carriageReturn,`
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(pn.tabCharGlobal,"    ").replace(pn.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(o=>(i=o.call({lexer:this},t,r))?(t=t.substring(i.raw.length),r.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let o=r.at(-1);i.raw.length===1&&o!==void 0?o.raw+=`
`:r.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
`)?"":`
`)+i.raw,o.text+=`
`+i.text,this.inlineQueue.at(-1).src=o.text):r.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
`)?"":`
`)+i.raw,o.text+=`
`+i.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},r.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),r.push(i);continue}let u=t;if(this.options.extensions?.startBlock){let o=1/0,l=t.slice(1),d;this.options.extensions.startBlock.forEach(p=>{d=p.call({lexer:this},l),typeof d=="number"&&d>=0&&(o=Math.min(o,d))}),o<1/0&&o>=0&&(u=t.substring(0,o+1))}if(this.state.top&&(i=this.tokenizer.paragraph(u))){let o=r.at(-1);n&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(`
`)?"":`
`)+i.raw,o.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(i),n=u.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let o=r.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
`)?"":`
`)+i.raw,o.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(i);continue}if(t){let o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){this.tokenizer.lexer=this;let n=t,i=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)d.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let u;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)u=i[2]?i[2].length:0,n=n.slice(0,i.index+u)+"["+"a".repeat(i[0].length-u-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let o=!1,l="";for(;t;){o||(l=""),o=!1;let d;if(this.options.extensions?.inline?.some(A=>(d=A.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let A=r.at(-1);d.type==="text"&&A?.type==="text"?(A.raw+=d.raw,A.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,n,l)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t,n,l)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let p=t;if(this.options.extensions?.startInline){let A=1/0,b=t.slice(1),_;this.options.extensions.startInline.forEach(v=>{_=v.call({lexer:this},b),typeof _=="number"&&_>=0&&(A=Math.min(A,_))}),A<1/0&&A>=0&&(p=t.substring(0,A+1))}if(d=this.tokenizer.inlineText(p)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(l=d.raw.slice(-1)),o=!0;let A=r.at(-1);A?.type==="text"?(A.raw+=d.raw,A.text+=d.text):r.push(d);continue}if(t){let A="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(A);break}else throw new Error(A)}}return r}},Mc=class{options;parser;constructor(e){this.options=e||ca}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(pn.notSpaceStart)?.[0],i=e.replace(pn.endingNewline,"")+`
`;return n?'<pre><code class="language-'+ru(n)+'">'+(r?i:ru(i,!0))+`</code></pre>
`:"<pre><code>"+(r?i:ru(i,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){let t=e.ordered,r=e.start,n="";for(let o=0;o<e.items.length;o++){let l=e.items[o];n+=this.listitem(l)}let i=t?"ol":"ul",u=t&&r!==1?' start="'+r+'"':"";return"<"+i+u+`>
`+n+"</"+i+`>
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let u=e.rows[i];r="";for(let o=0;o<u.length;o++)r+=this.tablecell(u[o]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+n+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ru(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=g2(e);if(i===null)return n;e=i;let u='<a href="'+e+'"';return t&&(u+=' title="'+ru(t)+'"'),u+=">"+n+"</a>",u}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=g2(e);if(i===null)return ru(r);e=i;let u=`<img src="${e}" alt="${ru(r)}"`;return t&&(u+=` title="${ru(t)}"`),u+=">",u}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ru(e.text)}},h0=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Xn=class Am{options;renderer;textRenderer;constructor(t){this.options=t||ca,this.options.renderer=this.options.renderer||new Mc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new h0}static parse(t,r){return new Am(r).parse(t)}static parseInline(t,r){return new Am(r).parseInline(t)}parse(t){this.renderer.parser=this;let r="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let o=i,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){r+=l||"";continue}}let u=i;switch(u.type){case"space":{r+=this.renderer.space(u);break}case"hr":{r+=this.renderer.hr(u);break}case"heading":{r+=this.renderer.heading(u);break}case"code":{r+=this.renderer.code(u);break}case"table":{r+=this.renderer.table(u);break}case"blockquote":{r+=this.renderer.blockquote(u);break}case"list":{r+=this.renderer.list(u);break}case"checkbox":{r+=this.renderer.checkbox(u);break}case"html":{r+=this.renderer.html(u);break}case"def":{r+=this.renderer.def(u);break}case"paragraph":{r+=this.renderer.paragraph(u);break}case"text":{r+=this.renderer.text(u);break}default:{let o='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(t,r=this.renderer){this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let u=t[i];if(this.options.extensions?.renderers?.[u.type]){let l=this.options.extensions.renderers[u.type].call({parser:this},u);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(u.type)){n+=l||"";continue}}let o=u;switch(o.type){case"escape":{n+=r.text(o);break}case"html":{n+=r.html(o);break}case"link":{n+=r.link(o);break}case"image":{n+=r.image(o);break}case"checkbox":{n+=r.checkbox(o);break}case"strong":{n+=r.strong(o);break}case"em":{n+=r.em(o);break}case"codespan":{n+=r.codespan(o);break}case"br":{n+=r.br(o);break}case"del":{n+=r.del(o);break}case"text":{n+=r.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},Xs=(o0=class{options;block;constructor(e){this.options=e||ca}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Zn.lex:Zn.lexInline}provideParser(e=this.block){return e?Xn.parse:Xn.parseInline}},Po(o0,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Po(o0,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),o0),D2=class{defaults=l0();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Xn;Renderer=Mc;TextRenderer=h0;Lexer=Zn;Tokenizer=Pc;Hooks=Xs;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let i=n;for(let u of i.header)r=r.concat(this.walkTokens(u.tokens,t));for(let u of i.rows)for(let o of u)r=r.concat(this.walkTokens(o.tokens,t));break}case"list":{let i=n;r=r.concat(this.walkTokens(i.items,t));break}default:{let i=n;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(u=>{let o=i[u].flat(1/0);r=r.concat(this.walkTokens(o,t))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let u=t.renderers[i.name];u?t.renderers[i.name]=function(...o){let l=i.renderer.apply(this,o);return l===!1&&(l=u.apply(this,o)),l}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=t[i.level];u?u.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),r.renderer){let i=this.defaults.renderer||new Mc(this.defaults);for(let u in r.renderer){if(!(u in i))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let o=u,l=r.renderer[o],d=i[o];i[o]=(...p)=>{let A=l.apply(i,p);return A===!1&&(A=d.apply(i,p)),A||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new Pc(this.defaults);for(let u in r.tokenizer){if(!(u in i))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let o=u,l=r.tokenizer[o],d=i[o];i[o]=(...p)=>{let A=l.apply(i,p);return A===!1&&(A=d.apply(i,p)),A}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new Xs;for(let u in r.hooks){if(!(u in i))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let o=u,l=r.hooks[o],d=i[o];Xs.passThroughHooks.has(u)?i[o]=p=>{if(this.defaults.async&&Xs.passThroughHooksRespectAsync.has(u))return(async()=>{let b=await l.call(i,p);return d.call(i,b)})();let A=l.call(i,p);return d.call(i,A)}:i[o]=(...p)=>{if(this.defaults.async)return(async()=>{let b=await l.apply(i,p);return b===!1&&(b=await d.apply(i,p)),b})();let A=l.apply(i,p);return A===!1&&(A=d.apply(i,p)),A}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,u=r.walkTokens;n.walkTokens=function(o){let l=[];return l.push(u.call(this,o)),i&&(l=l.concat(i.call(this,o))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Zn.lex(e,t??this.defaults)}parser(e,t){return Xn.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},u=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&n.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let o=i.hooks?await i.hooks.preprocess(t):t,l=await(i.hooks?await i.hooks.provideLexer(e):e?Zn.lex:Zn.lexInline)(o,i),d=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(d,i.walkTokens));let p=await(i.hooks?await i.hooks.provideParser(e):e?Xn.parse:Xn.parseInline)(d,i);return i.hooks?await i.hooks.postprocess(p):p})().catch(u);try{i.hooks&&(t=i.hooks.preprocess(t));let o=(i.hooks?i.hooks.provideLexer(e):e?Zn.lex:Zn.lexInline)(t,i);i.hooks&&(o=i.hooks.processAllTokens(o)),i.walkTokens&&this.walkTokens(o,i.walkTokens);let l=(i.hooks?i.hooks.provideParser(e):e?Xn.parse:Xn.parseInline)(o,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(o){return u(o)}}}onError(e,t){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+ru(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},ds=new D2;gt.options=gt.setOptions=function(e){return ds.setOptions(e),gt.defaults=ds.defaults,E2(gt.defaults),gt};gt.getDefaults=l0;gt.defaults=ca;gt.use=function(...e){return ds.use(...e),gt.defaults=ds.defaults,E2(gt.defaults),gt};gt.walkTokens=function(e,t){return ds.walkTokens(e,t)};gt.parseInline=ds.parseInline;gt.Parser=Xn;gt.parser=Xn.parse;gt.Renderer=Mc;gt.TextRenderer=h0;gt.Lexer=Zn;gt.lexer=Zn.lex;gt.Tokenizer=Pc;gt.Hooks=Xs;gt.parse=gt;xI=gt.options,vI=gt.setOptions,yI=gt.use,TI=gt.walkTokens,wI=gt.parseInline,II=gt,CI=Xn.parse,SI=Zn.lex});var ei={};gn(ei,{CDATA:()=>Rm,Comment:()=>Sm,Directive:()=>Cm,Doctype:()=>Om,ElementType:()=>it,Root:()=>wm,Script:()=>Nm,Style:()=>Dm,Tag:()=>km,Text:()=>Im,isTag:()=>Tm});function Tm(e){return e.type===it.Tag||e.type===it.Script||e.type===it.Style}var it,wm,Im,Cm,Sm,Nm,Dm,km,Rm,Om,to=N(()=>{(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(it||(it={}));wm=it.Root,Im=it.Text,Cm=it.Directive,Sm=it.Comment,Nm=it.Script,Dm=it.Style,km=it.Tag,Rm=it.CDATA,Om=it.Doctype});function he(e){return Tm(e)}function ro(e){return e.type===it.CDATA}function wn(e){return e.type===it.Text}function As(e){return e.type===it.Comment}function m0(e){return e.type===it.Directive}function ti(e){return e.type===it.Root}function vt(e){return Object.prototype.hasOwnProperty.call(e,"children")}function no(e,t=!1){let r;if(wn(e))r=new nu(e.data);else if(As(e))r=new hs(e.data);else if(he(e)){let n=t?Bm(e.children):[],i=new ms(e.name,{...e.attribs},n);n.forEach(u=>u.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(ro(e)){let n=t?Bm(e.children):[],i=new Yc(n);n.forEach(u=>u.parent=i),r=i}else if(ti(e)){let n=t?Bm(e.children):[],i=new Hn(n);n.forEach(u=>u.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else if(m0(e)){let n=new ps(e.name,e.data);e["x-name"]!=null&&(n["x-name"]=e["x-name"],n["x-publicId"]=e["x-publicId"],n["x-systemId"]=e["x-systemId"]),r=n}else throw new Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function Bm(e){let t=e.map(r=>no(r,!0));for(let r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}var p0,Uc,nu,hs,ps,$c,Yc,Hn,ms,Lm=N(()=>{to();p0=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return no(this,t)}},Uc=class extends p0{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},nu=class extends Uc{constructor(){super(...arguments),this.type=it.Text}get nodeType(){return 3}},hs=class extends Uc{constructor(){super(...arguments),this.type=it.Comment}get nodeType(){return 8}},ps=class extends Uc{constructor(t,r){super(r),this.name=t,this.type=it.Directive}get nodeType(){return 1}},$c=class extends p0{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},Yc=class extends $c{constructor(){super(...arguments),this.type=it.CDATA}get nodeType(){return 4}},Hn=class extends $c{constructor(){super(...arguments),this.type=it.Root}get nodeType(){return 9}},ms=class extends $c{constructor(t,r,n=[],i=t==="script"?it.Script:t==="style"?it.Style:it.Tag){super(n),this.name=t,this.attribs=r,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var r,n;return{name:t,value:this.attribs[t],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[t]}})}}});var O2,io,Qr=N(()=>{to();Lm();Lm();O2={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},io=class{constructor(t,r,n){this.dom=[],this.root=new Hn(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(n=r,r=O2),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??O2,this.elementCB=n??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new Hn(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;let t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,r){let n=this.options.xmlMode?it.Tag:void 0,i=new ms(t,r,void 0,n);this.addNode(i),this.tagStack.push(i)}ontext(t){let{lastNode:r}=this;if(r&&r.type===it.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{let n=new nu(t);this.addNode(n),this.lastNode=n}}oncomment(t){if(this.lastNode&&this.lastNode.type===it.Comment){this.lastNode.data+=t;return}let r=new hs(t);this.addNode(r),this.lastNode=r}oncommentend(){this.lastNode=null}oncdatastart(){let t=new nu(""),r=new Yc([t]);this.addNode(r),t.parent=r,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,r){let n=new ps(t,r);this.addNode(n)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){let r=this.tagStack[this.tagStack.length-1],n=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),n&&(t.prev=n,n.next=t),t.parent=r,this.lastNode=null}}});var B2,L2=N(()=>{B2=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)))});var F2,P2=N(()=>{F2=new Uint16Array("\u0200aglq	\x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)))});function Mm(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=NI.get(e))!==null&&t!==void 0?t:e}var Fm,NI,Pm,Hm=N(()=>{NI=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Pm=(Fm=String.fromCodePoint)!==null&&Fm!==void 0?Fm:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t}});function Um(e){return e>=Tr.ZERO&&e<=Tr.NINE}function kI(e){return e>=Tr.UPPER_A&&e<=Tr.UPPER_F||e>=Tr.LOWER_A&&e<=Tr.LOWER_F}function RI(e){return e>=Tr.UPPER_A&&e<=Tr.UPPER_Z||e>=Tr.LOWER_A&&e<=Tr.LOWER_Z||Um(e)}function OI(e){return e===Tr.EQUALS||RI(e)}function M2(e){let t="",r=new A0(e,n=>t+=Pm(n));return function(i,u){let o=0,l=0;for(;(l=i.indexOf("&",l))>=0;){t+=i.slice(o,l),r.startEntity(u);let p=r.write(i,l+1);if(p<0){o=l+r.end();break}o=l+p,l=p===0?o+1:o}let d=t+i.slice(o);return t="",d}}function BI(e,t,r,n){let i=(t&la.BRANCH_LENGTH)>>7,u=t&la.JUMP_TABLE;if(i===0)return u!==0&&n===u?r:-1;if(u){let d=n-u;return d<0||d>=i?-1:e[r+d]-1}let o=r,l=o+i-1;for(;o<=l;){let d=o+l>>>1,p=e[d];if(p<n)o=d+1;else if(p>n)l=d-1;else return e[d+i]}return-1}var Tr,DI,la,yr,Nu,A0,gG,bG,$m=N(()=>{L2();P2();Hm();Hm();(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Tr||(Tr={}));DI=32;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(la||(la={}));(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(yr||(yr={}));(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Nu||(Nu={}));A0=class{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=yr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Nu.Strict}startEntity(t){this.decodeMode=t,this.state=yr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case yr.EntityStart:return t.charCodeAt(r)===Tr.NUM?(this.state=yr.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=yr.NamedEntity,this.stateNamedEntity(t,r));case yr.NumericStart:return this.stateNumericStart(t,r);case yr.NumericDecimal:return this.stateNumericDecimal(t,r);case yr.NumericHex:return this.stateNumericHex(t,r);case yr.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|DI)===Tr.LOWER_X?(this.state=yr.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=yr.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){let u=n-r;this.result=this.result*Math.pow(i,u)+parseInt(t.substr(r,u),i),this.consumed+=u}}stateNumericHex(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(Um(i)||kI(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(Um(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Tr.SEMI)this.consumed+=1;else if(this.decodeMode===Nu.Strict)return 0;return this.emitCodePoint(Mm(this.result),this.consumed),this.errors&&(t!==Tr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:n}=this,i=n[this.treeIndex],u=(i&la.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let o=t.charCodeAt(r);if(this.treeIndex=BI(n,i,this.treeIndex+Math.max(1,u),o),this.treeIndex<0)return this.result===0||this.decodeMode===Nu.Attribute&&(u===0||OI(o))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],u=(i&la.VALUE_LENGTH)>>14,u!==0){if(o===Tr.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Nu.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:n}=this,i=(n[r]&la.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){let{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~la.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case yr.NamedEntity:return this.result!==0&&(this.decodeMode!==Nu.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case yr.NumericDecimal:return this.emitNumericEntity(0,2);case yr.NumericHex:return this.emitNumericEntity(0,3);case yr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case yr.EntityStart:return 0}}};gG=M2(B2),bG=M2(F2)});function g0(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}var LI,H2=N(()=>{LI=new Map(g0([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(g0([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(g0([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(g0([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]))});function Kc(e){let t="",r=0,n;for(;(n=Ym.exec(e))!==null;){let i=n.index,u=e.charCodeAt(i),o=U2.get(u);o!==void 0?(t+=e.substring(r,i)+o,r=i+1):(t+=`${e.substring(r,i)}&#x${$2(e,i).toString(16)};`,r=Ym.lastIndex+=+((u&64512)===55296))}return t+e.substr(r)}function Km(e,t){return function(n){let i,u=0,o="";for(;i=e.exec(n);)u!==i.index&&(o+=n.substring(u,i.index)),o+=t.get(i[0].charCodeAt(0)),u=i.index+1;return o+n.substring(u)}}var Ym,U2,$2,Y2,b0,_0,E0=N(()=>{Ym=/["&'<>$\x80-\uFFFF]/g,U2=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),$2=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);Y2=Km(/[&<>'"]/g,U2),b0=Km(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),_0=Km(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))});var Qm=N(()=>{H2();E0()});var K2,Q2,V2=N(()=>{$m();Qm();E0();E0();Qm();$m();(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(K2||(K2={}));(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(Q2||(Q2={}))});var q2,z2,J2=N(()=>{q2=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),z2=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e]))});function MI(e){return e.replace(/"/g,"&quot;")}function HI(e,t){var r;if(!e)return;let n=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?MI:t.xmlMode||t.encodeEntities!=="utf8"?Kc:b0;return Object.keys(e).map(i=>{var u,o;let l=(u=e[i])!==null&&u!==void 0?u:"";return t.xmlMode==="foreign"&&(i=(o=z2.get(i))!==null&&o!==void 0?o:i),!t.emptyAttrs&&!t.xmlMode&&l===""?i:`${i}="${n(l)}"`}).join(" ")}function Vm(e,t={}){let r="length"in e?e:[e],n="";for(let i=0;i<r.length;i++)n+=UI(r[i],t);return n}function UI(e,t){switch(e.type){case wm:return Vm(e.children,t);case Om:case Cm:return QI(e);case Sm:return VI(e);case Rm:return GI(e);case Nm:case Dm:case km:return KI(e,t);case Im:return WI(e,t)}}function KI(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=q2.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&$I.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&YI.has(e.name)&&(t={...t,xmlMode:"foreign"});let n=`<${e.name}`,i=HI(e.attribs,t);return i&&(n+=` ${i}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&j2.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=Vm(e.children,t)),(t.xmlMode||!j2.has(e.name))&&(n+=`</${e.name}>`)),n}function QI(e){return`<${e.data}>`}function WI(e,t){var r;let n=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&PI.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!=="utf8"?Kc(n):_0(n)),n}function GI(e){return`<![CDATA[${e.children[0].data}]]>`}function VI(e){return`<!--${e.data}-->`}var PI,j2,x0,$I,YI,qm=N(()=>{to();V2();J2();PI=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);j2=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);x0=Vm;$I=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),YI=new Set(["svg","math"])});function Z2(e,t){return x0(e,t)}function qI(e,t){return vt(e)?e.children.map(r=>Z2(r,t)).join(""):""}function v0(e){return Array.isArray(e)?e.map(v0).join(""):he(e)?e.name==="br"?`
`:v0(e.children):ro(e)?v0(e.children):wn(e)?e.data:""}function Du(e){return Array.isArray(e)?e.map(Du).join(""):vt(e)&&!As(e)?Du(e.children):wn(e)?e.data:""}function Qc(e){return Array.isArray(e)?e.map(Qc).join(""):vt(e)&&(e.type===it.Tag||ro(e))?Qc(e.children):wn(e)?e.data:""}var zm=N(()=>{Qr();qm();to()});function uo(e){return vt(e)?e.children:[]}function X2(e){return e.parent||null}function Jm(e){let t=X2(e);if(t!=null)return uo(t);let r=[e],{prev:n,next:i}=e;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;i!=null;)r.push(i),{next:i}=i;return r}function zI(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function JI(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function jI(e){return e.name}function y0(e){let{next:t}=e;for(;t!==null&&!he(t);)({next:t}=t);return t}function T0(e){let{prev:t}=e;for(;t!==null&&!he(t);)({prev:t}=t);return t}var ex=N(()=>{Qr()});function ku(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}function ZI(e,t){let r=t.prev=e.prev;r&&(r.next=t);let n=t.next=e.next;n&&(n.prev=t);let i=t.parent=e.parent;if(i){let u=i.children;u[u.lastIndexOf(e)]=t,e.parent=null}}function XI(e,t){if(ku(t),t.next=null,t.parent=e,e.children.push(t)>1){let r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function eC(e,t){ku(t);let{parent:r}=e,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){let i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}function tC(e,t){if(ku(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let r=e.children[1];r.prev=t,t.next=r}else t.next=null}function rC(e,t){ku(t);let{parent:r}=e;if(r){let n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}var tx=N(()=>{});function ao(e,t,r=!0,n=1/0){return w0(e,Array.isArray(t)?t:[t],r,n)}function w0(e,t,r,n){let i=[],u=[Array.isArray(t)?t:[t]],o=[0];for(;;){if(o[0]>=u[0].length){if(o.length===1)return i;u.shift(),o.shift();continue}let l=u[0][o[0]++];if(e(l)&&(i.push(l),--n<=0))return i;r&&vt(l)&&l.children.length>0&&(o.unshift(0),u.unshift(l.children))}}function nC(e,t){return t.find(e)}function I0(e,t,r=!0){let n=Array.isArray(t)?t:[t];for(let i=0;i<n.length;i++){let u=n[i];if(he(u)&&e(u))return u;if(r&&vt(u)&&u.children.length>0){let o=I0(e,u.children,!0);if(o)return o}}return null}function rx(e,t){return(Array.isArray(t)?t:[t]).some(r=>he(r)&&e(r)||vt(r)&&rx(e,r.children))}function iC(e,t){let r=[],n=[Array.isArray(t)?t:[t]],i=[0];for(;;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}let u=n[0][i[0]++];he(u)&&e(u)&&r.push(u),vt(u)&&u.children.length>0&&(i.unshift(0),n.unshift(u.children))}}var jm=N(()=>{Qr()});function Zm(e,t){return typeof t=="function"?r=>he(r)&&t(r.attribs[e]):r=>he(r)&&r.attribs[e]===t}function uC(e,t){return r=>e(r)||t(r)}function nx(e){let t=Object.keys(e).map(r=>{let n=e[r];return Object.prototype.hasOwnProperty.call(C0,r)?C0[r](n):Zm(r,n)});return t.length===0?null:t.reduce(uC)}function aC(e,t){let r=nx(e);return r?r(t):!0}function sC(e,t,r,n=1/0){let i=nx(e);return i?ao(i,t,r,n):[]}function oC(e,t,r=!0){return Array.isArray(t)||(t=[t]),I0(Zm("id",e),t,r)}function gs(e,t,r=!0,n=1/0){return ao(C0.tag_name(e),t,r,n)}function cC(e,t,r=!0,n=1/0){return ao(Zm("class",e),t,r,n)}function lC(e,t,r=!0,n=1/0){return ao(C0.tag_type(e),t,r,n)}var C0,Xm=N(()=>{Qr();jm();C0={tag_name(e){return typeof e=="function"?t=>he(t)&&e(t.name):e==="*"?he:t=>he(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>wn(t)&&e(t.data):t=>wn(t)&&t.data===e}}});function fC(e){let t=e.length;for(;--t>=0;){let r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(let n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}function ix(e,t){let r=[],n=[];if(e===t)return 0;let i=vt(e)?e:e.parent;for(;i;)r.unshift(i),i=i.parent;for(i=vt(t)?t:t.parent;i;)n.unshift(i),i=i.parent;let u=Math.min(r.length,n.length),o=0;for(;o<u&&r[o]===n[o];)o++;if(o===0)return ri.DISCONNECTED;let l=r[o-1],d=l.children,p=r[o],A=n[o];return d.indexOf(p)>d.indexOf(A)?l===t?ri.FOLLOWING|ri.CONTAINED_BY:ri.FOLLOWING:l===e?ri.PRECEDING|ri.CONTAINS:ri.PRECEDING}function fa(e){return e=e.filter((t,r,n)=>!n.includes(t,r+1)),e.sort((t,r)=>{let n=ix(t,r);return n&ri.PRECEDING?-1:n&ri.FOLLOWING?1:0}),e}var ri,ux=N(()=>{Qr();(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(ri||(ri={}))});function eA(e){let t=S0(AC,e);return t?t.name==="feed"?dC(t):hC(t):null}function dC(e){var t;let r=e.children,n={type:"atom",items:gs("entry",r).map(o=>{var l;let{children:d}=o,p={media:ax(d)};In(p,"id","id",d),In(p,"title","title",d);let A=(l=S0("link",d))===null||l===void 0?void 0:l.attribs.href;A&&(p.link=A);let b=da("summary",d)||da("content",d);b&&(p.description=b);let _=da("updated",d);return _&&(p.pubDate=new Date(_)),p})};In(n,"id","id",r),In(n,"title","title",r);let i=(t=S0("link",r))===null||t===void 0?void 0:t.attribs.href;i&&(n.link=i),In(n,"description","subtitle",r);let u=da("updated",r);return u&&(n.updated=new Date(u)),In(n,"author","email",r,!0),n}function hC(e){var t,r;let n=(r=(t=S0("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[],i={type:e.name.substr(0,3),id:"",items:gs("item",e.children).map(o=>{let{children:l}=o,d={media:ax(l)};In(d,"id","guid",l),In(d,"title","title",l),In(d,"link","link",l),In(d,"description","description",l);let p=da("pubDate",l)||da("dc:date",l);return p&&(d.pubDate=new Date(p)),d})};In(i,"title","title",n),In(i,"link","link",n),In(i,"description","description",n);let u=da("lastBuildDate",n);return u&&(i.updated=new Date(u)),In(i,"author","managingEditor",n,!0),i}function ax(e){return gs("media:content",e).map(t=>{let{attribs:r}=t,n={medium:r.medium,isDefault:!!r.isDefault};for(let i of pC)r[i]&&(n[i]=r[i]);for(let i of mC)r[i]&&(n[i]=parseInt(r[i],10));return r.expression&&(n.expression=r.expression),n})}function S0(e,t){return gs(e,t,!0,1)[0]}function da(e,t,r=!1){return Du(gs(e,t,r,1)).trim()}function In(e,t,r,n,i=!1){let u=da(r,n,i);u&&(e[t]=u)}function AC(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}var pC,mC,sx=N(()=>{zm();Xm();pC=["url","type","lang"],mC=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"]});var ha={};gn(ha,{DocumentPosition:()=>ri,append:()=>eC,appendChild:()=>XI,compareDocumentPosition:()=>ix,existsOne:()=>rx,filter:()=>ao,find:()=>w0,findAll:()=>iC,findOne:()=>I0,findOneChild:()=>nC,getAttributeValue:()=>zI,getChildren:()=>uo,getElementById:()=>oC,getElements:()=>sC,getElementsByClassName:()=>cC,getElementsByTagName:()=>gs,getElementsByTagType:()=>lC,getFeed:()=>eA,getInnerHTML:()=>qI,getName:()=>jI,getOuterHTML:()=>Z2,getParent:()=>X2,getSiblings:()=>Jm,getText:()=>v0,hasAttrib:()=>JI,hasChildren:()=>vt,innerText:()=>Qc,isCDATA:()=>ro,isComment:()=>As,isDocument:()=>ti,isTag:()=>he,isText:()=>wn,nextElementSibling:()=>y0,prepend:()=>rC,prependChild:()=>tC,prevElementSibling:()=>T0,removeElement:()=>ku,removeSubsets:()=>fC,replaceElement:()=>ZI,testElement:()=>aC,textContent:()=>Du,uniqueSort:()=>fa});var Ri=N(()=>{zm();ex();tx();jm();Xm();ux();sx();Qr()});function Wc(e,t){if(!e)return t??gC;let r={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,e.xml!==!0&&Object.assign(r,e.xml)):e.xmlMode&&(r._useHtmlParser2=!0),r}var gC,tA=N(()=>{gC={_useHtmlParser2:!1}});var nA={};gn(nA,{contains:()=>Gc,extract:()=>yC,html:()=>_C,merge:()=>rA,parseHTML:()=>xC,root:()=>vC,text:()=>bs,xml:()=>EC});function cx(e,t,r){return e?e(t??e._root.children,null,void 0,r).toString():""}function bC(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function _C(e,t){let r=bC(e)?(t=e,void 0):e,n={...this===null||this===void 0?void 0:this._options,...Wc(t)};return cx(this,r,n)}function EC(e){let t={...this._options,xmlMode:!0};return cx(this,e,t)}function bs(e){let t=e??(this?this.root():[]),r="";for(let n=0;n<t.length;n++)r+=Du(t[n]);return r}function xC(e,t,r=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(r=t);let n=this.load(e,this._options,!1);return r||n("script").remove(),[...n.root()[0].children]}function vC(){return this(this._root)}function Gc(e,t){if(t===e)return!1;let r=t;for(;r&&r!==r.parent;)if(r=r.parent,r===e)return!0;return!1}function yC(e){return this.root().extract(e)}function rA(e,t){if(!ox(e)||!ox(t))return;let r=e.length,n=+t.length;for(let i=0;i<n;i++)e[r++]=t[i];return e.length=r,e}function ox(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}var so=N(()=>{Ri();tA()});function ni(e){return e.cheerio!=null}function lx(e){return e.replace(/[._-](\w|$)/g,(t,r)=>r.toUpperCase())}function fx(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function wt(e,t){let r=e.length;for(let n=0;n<r;n++)t(e[n],n);return e}function Vc(e){if(typeof e!="string")return!1;let t=e.indexOf("<");if(t===-1||t>e.length-3)return!1;let r=e.charCodeAt(t+1);return(r>=_s.LowerA&&r<=_s.LowerZ||r>=_s.UpperA&&r<=_s.UpperZ||r===_s.Exclamation)&&e.includes(">",t+2)}var _s,oo=N(()=>{(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(_s||(_s={}))});function uA(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=TC.get(e))!==null&&t!==void 0?t:e}var iA,TC,qc,aA=N(()=>{TC=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),qc=(iA=String.fromCodePoint)!==null&&iA!==void 0?iA:e=>{let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t}});function N0(e){let t=typeof atob=="function"?atob(e):typeof Buffer.from=="function"?Buffer.from(e,"base64").toString("binary"):new Buffer(e,"base64").toString("binary"),r=t.length&-2,n=new Uint16Array(r/2);for(let i=0,u=0;i<r;i+=2){let o=t.charCodeAt(i),l=t.charCodeAt(i+1);n[u++]=o|l<<8}return n}var sA=N(()=>{});var D0,oA=N(()=>{sA();D0=N0(" ")});var k0,cA=N(()=>{sA();k0=N0("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg")});var rn,dx=N(()=>{(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(rn||(rn={}))});function lA(e){return e>=Bt.ZERO&&e<=Bt.NINE}function wC(e){return e>=Bt.UPPER_A&&e<=Bt.UPPER_F||e>=Bt.LOWER_A&&e<=Bt.LOWER_F}function IC(e){return e>=Bt.UPPER_A&&e<=Bt.UPPER_Z||e>=Bt.LOWER_A&&e<=Bt.LOWER_Z||lA(e)}function CC(e){return e===Bt.EQUALS||IC(e)}function SC(e,t,r,n){let i=(t&rn.BRANCH_LENGTH)>>7,u=t&rn.JUMP_TABLE;if(i===0)return u!==0&&n===u?r:-1;if(u){let p=n-u;return p<0||p>=i?-1:e[r+p]-1}let o=i+1>>1,l=0,d=i-1;for(;l<=d;){let p=l+d>>>1,A=p>>1,_=e[r+A]>>(p&1)*8&255;if(_<n)l=p+1;else if(_>n)d=p-1;else return e[r+o+p]}return-1}var Bt,hx,wr,Oi,R0,fA=N(()=>{aA();oA();cA();dx();aA();oA();cA();(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Bt||(Bt={}));hx=32;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(wr||(wr={}));(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Oi||(Oi={}));R0=class{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=wr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Oi.Strict,this.runConsumed=0}startEntity(t){this.decodeMode=t,this.state=wr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,r){switch(this.state){case wr.EntityStart:return t.charCodeAt(r)===Bt.NUM?(this.state=wr.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=wr.NamedEntity,this.stateNamedEntity(t,r));case wr.NumericStart:return this.stateNumericStart(t,r);case wr.NumericDecimal:return this.stateNumericDecimal(t,r);case wr.NumericHex:return this.stateNumericHex(t,r);case wr.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|hx)===Bt.LOWER_X?(this.state=wr.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=wr.NumericDecimal,this.stateNumericDecimal(t,r))}stateNumericHex(t,r){for(;r<t.length;){let n=t.charCodeAt(r);if(lA(n)||wC(n)){let i=n<=Bt.NINE?n-Bt.ZERO:(n|hx)-Bt.LOWER_A+10;this.result=this.result*16+i,this.consumed++,r++}else return this.emitNumericEntity(n,3)}return-1}stateNumericDecimal(t,r){for(;r<t.length;){let n=t.charCodeAt(r);if(lA(n))this.result=this.result*10+(n-Bt.ZERO),this.consumed++,r++;else return this.emitNumericEntity(n,2)}return-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Bt.SEMI)this.consumed+=1;else if(this.decodeMode===Oi.Strict)return 0;return this.emitCodePoint(uA(this.result),this.consumed),this.errors&&(t!==Bt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:n}=this,i=n[this.treeIndex],u=(i&rn.VALUE_LENGTH)>>14;for(;r<t.length;){if(u===0&&i&rn.FLAG13){let l=(i&rn.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let d=i&rn.JUMP_TABLE;if(t.charCodeAt(r)!==d)return this.result===0?0:this.emitNotTerminatedNamedEntity();r++,this.excess++,this.runConsumed++}for(;this.runConsumed<l;){if(r>=t.length)return-1;let d=this.runConsumed-1,p=n[this.treeIndex+1+(d>>1)],A=d%2===0?p&255:p>>8&255;if(t.charCodeAt(r)!==A)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();r++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(l>>1),i=n[this.treeIndex],u=(i&rn.VALUE_LENGTH)>>14}if(r>=t.length)break;let o=t.charCodeAt(r);if(o===Bt.SEMI&&u!==0&&i&rn.FLAG13)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);if(this.treeIndex=SC(n,i,this.treeIndex+Math.max(1,u),o),this.treeIndex<0)return this.result===0||this.decodeMode===Oi.Attribute&&(u===0||CC(o))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],u=(i&rn.VALUE_LENGTH)>>14,u!==0){if(o===Bt.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Oi.Strict&&!(i&rn.FLAG13)&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}r++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:n}=this,i=(n[r]&rn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){let{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~(rn.VALUE_LENGTH|rn.FLAG13):i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case wr.NamedEntity:return this.result!==0&&(this.decodeMode!==Oi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case wr.NumericDecimal:return this.emitNumericEntity(0,2);case wr.NumericHex:return this.emitNumericEntity(0,3);case wr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case wr.EntityStart:return 0}}}});function Ru(e){return e===Ne.Space||e===Ne.NewLine||e===Ne.Tab||e===Ne.FormFeed||e===Ne.CarriageReturn}function O0(e){return e===Ne.Slash||e===Ne.Gt||Ru(e)}function NC(e){return e>=Ne.LowerA&&e<=Ne.LowerZ||e>=Ne.UpperA&&e<=Ne.UpperZ}var Ne,ee,ii,ur,co,dA=N(()=>{fA();(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(Ne||(Ne={}));(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(ee||(ee={}));(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(ii||(ii={}));ur={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])},co=class{constructor({xmlMode:t=!1,decodeEntities:r=!0},n){this.cbs=n,this.state=ee.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=ee.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=r,this.entityDecoder=new R0(t?k0:D0,(i,u)=>this.emitCodePoint(i,u))}reset(){this.state=ee.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ee.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===Ne.Lt||!this.decodeEntities&&this.fastForwardTo(Ne.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ee.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===Ne.Amp&&this.startEntity()}stateSpecialStartSequence(t){let r=this.sequenceIndex===this.currentSequence.length;if(!(r?O0(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=ee.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===Ne.Gt||Ru(t)){let r=this.index-this.currentSequence.length;if(this.sectionStart<r){let n=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=n}this.isSpecial=!1,this.sectionStart=r+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===ur.TitleEnd?this.decodeEntities&&t===Ne.Amp&&this.startEntity():this.fastForwardTo(Ne.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===Ne.Lt)}stateCDATASequence(t){t===ur.Cdata[this.sequenceIndex]?++this.sequenceIndex===ur.Cdata.length&&(this.state=ee.InCommentLike,this.currentSequence=ur.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=ee.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===ur.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=ee.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!O0(t):NC(t)}startSpecial(t,r){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=r,this.state=ee.SpecialStartSequence}stateBeforeTagName(t){if(t===Ne.ExclamationMark)this.state=ee.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===Ne.Questionmark)this.state=ee.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){let r=t|32;this.sectionStart=this.index,this.xmlMode?this.state=ee.InTagName:r===ur.ScriptEnd[2]?this.state=ee.BeforeSpecialS:r===ur.TitleEnd[2]||r===ur.XmpEnd[2]?this.state=ee.BeforeSpecialT:this.state=ee.InTagName}else t===Ne.Slash?this.state=ee.BeforeClosingTagName:(this.state=ee.Text,this.stateText(t))}stateInTagName(t){O0(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ee.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){Ru(t)||(t===Ne.Gt?this.state=ee.Text:(this.state=this.isTagStartChar(t)?ee.InClosingTagName:ee.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===Ne.Gt||Ru(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=ee.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===Ne.Gt||this.fastForwardTo(Ne.Gt))&&(this.state=ee.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===Ne.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=ee.InSpecialTag,this.sequenceIndex=0):this.state=ee.Text,this.sectionStart=this.index+1):t===Ne.Slash?this.state=ee.InSelfClosingTag:Ru(t)||(this.state=ee.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===Ne.Gt?(this.cbs.onselfclosingtag(this.index),this.state=ee.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Ru(t)||(this.state=ee.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===Ne.Eq||O0(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=ee.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===Ne.Eq?this.state=ee.BeforeAttributeValue:t===Ne.Slash||t===Ne.Gt?(this.cbs.onattribend(ii.NoValue,this.sectionStart),this.sectionStart=-1,this.state=ee.BeforeAttributeName,this.stateBeforeAttributeName(t)):Ru(t)||(this.cbs.onattribend(ii.NoValue,this.sectionStart),this.state=ee.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===Ne.DoubleQuote?(this.state=ee.InAttributeValueDq,this.sectionStart=this.index+1):t===Ne.SingleQuote?(this.state=ee.InAttributeValueSq,this.sectionStart=this.index+1):Ru(t)||(this.sectionStart=this.index,this.state=ee.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,r){t===r||!this.decodeEntities&&this.fastForwardTo(r)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===Ne.DoubleQuote?ii.Double:ii.Single,this.index+1),this.state=ee.BeforeAttributeName):this.decodeEntities&&t===Ne.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,Ne.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,Ne.SingleQuote)}stateInAttributeValueNoQuotes(t){Ru(t)||t===Ne.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(ii.Unquoted,this.index),this.state=ee.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===Ne.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===Ne.OpeningSquareBracket?(this.state=ee.CDATASequence,this.sequenceIndex=0):this.state=t===Ne.Dash?ee.BeforeComment:ee.InDeclaration}stateInDeclaration(t){(t===Ne.Gt||this.fastForwardTo(Ne.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=ee.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===Ne.Gt||this.fastForwardTo(Ne.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=ee.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===Ne.Dash?(this.state=ee.InCommentLike,this.currentSequence=ur.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=ee.InDeclaration}stateInSpecialComment(t){(t===Ne.Gt||this.fastForwardTo(Ne.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ee.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){let r=t|32;r===ur.ScriptEnd[3]?this.startSpecial(ur.ScriptEnd,4):r===ur.StyleEnd[3]?this.startSpecial(ur.StyleEnd,4):(this.state=ee.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){switch(t|32){case ur.TitleEnd[3]:{this.startSpecial(ur.TitleEnd,4);break}case ur.TextareaEnd[3]:{this.startSpecial(ur.TextareaEnd,4);break}case ur.XmpEnd[3]:{this.startSpecial(ur.XmpEnd,4);break}default:this.state=ee.InTagName,this.stateInTagName(t)}}startEntity(){this.baseState=this.state,this.state=ee.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Oi.Strict:this.baseState===ee.Text||this.baseState===ee.InSpecialTag?Oi.Legacy:Oi.Attribute)}stateInEntity(){let t=this.index-this.offset,r=this.entityDecoder.write(this.buffer,t);if(r>=0)this.state=this.baseState,r===0&&(this.index-=1);else{if(t<this.buffer.length&&this.buffer.charCodeAt(t)===Ne.Amp){this.state=this.baseState,this.index-=1;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===ee.Text||this.state===ee.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ee.InAttributeValueDq||this.state===ee.InAttributeValueSq||this.state===ee.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case ee.Text:{this.stateText(t);break}case ee.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case ee.InSpecialTag:{this.stateInSpecialTag(t);break}case ee.CDATASequence:{this.stateCDATASequence(t);break}case ee.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case ee.InAttributeName:{this.stateInAttributeName(t);break}case ee.InCommentLike:{this.stateInCommentLike(t);break}case ee.InSpecialComment:{this.stateInSpecialComment(t);break}case ee.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case ee.InTagName:{this.stateInTagName(t);break}case ee.InClosingTagName:{this.stateInClosingTagName(t);break}case ee.BeforeTagName:{this.stateBeforeTagName(t);break}case ee.AfterAttributeName:{this.stateAfterAttributeName(t);break}case ee.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case ee.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case ee.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case ee.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case ee.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case ee.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case ee.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case ee.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case ee.InDeclaration:{this.stateInDeclaration(t);break}case ee.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case ee.BeforeComment:{this.stateBeforeComment(t);break}case ee.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case ee.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===ee.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===ee.InCommentLike?this.currentSequence===ur.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===ee.InTagName||this.state===ee.BeforeAttributeName||this.state===ee.BeforeAttributeValue||this.state===ee.AfterAttributeName||this.state===ee.InAttributeName||this.state===ee.InAttributeValueSq||this.state===ee.InAttributeValueDq||this.state===ee.InAttributeValueNq||this.state===ee.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,r){this.baseState!==ee.Text&&this.baseState!==ee.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+r,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+r,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}}});var lo,yt,px,mx,Ax,DC,kC,gx,bx,RC,zc,hA=N(()=>{dA();fA();lo=new Set(["input","option","optgroup","select","button","datalist","textarea"]),yt=new Set(["p"]),px=new Set(["thead","tbody"]),mx=new Set(["dd","dt"]),Ax=new Set(["rt","rp"]),DC=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",yt],["h1",yt],["h2",yt],["h3",yt],["h4",yt],["h5",yt],["h6",yt],["select",lo],["input",lo],["output",lo],["button",lo],["datalist",lo],["textarea",lo],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",mx],["dt",mx],["address",yt],["article",yt],["aside",yt],["blockquote",yt],["details",yt],["div",yt],["dl",yt],["fieldset",yt],["figcaption",yt],["figure",yt],["footer",yt],["form",yt],["header",yt],["hr",yt],["main",yt],["nav",yt],["ol",yt],["pre",yt],["section",yt],["table",yt],["ul",yt],["rt",Ax],["rp",Ax],["tbody",px],["tfoot",px]]),kC=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),gx=new Set(["math","svg"]),bx=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),RC=/\s|\//,zc=class{constructor(t,r={}){var n,i,u,o,l,d;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:this.htmlMode,this.lowerCaseAttributeNames=(i=r.lowerCaseAttributeNames)!==null&&i!==void 0?i:this.htmlMode,this.recognizeSelfClosing=(u=r.recognizeSelfClosing)!==null&&u!==void 0?u:!this.htmlMode,this.tokenizer=new((o=r.Tokenizer)!==null&&o!==void 0?o:co)(this.options,this),this.foreignContext=[!this.htmlMode],(d=(l=this.cbs).onparserinit)===null||d===void 0||d.call(l,this)}ontext(t,r){var n,i;let u=this.getSlice(t,r);this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,u),this.startIndex=r}ontextentity(t,r){var n,i;this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,qc(t)),this.startIndex=r}isVoidElement(t){return this.htmlMode&&kC.has(t)}onopentagname(t,r){this.endIndex=r;let n=this.getSlice(t,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(t){var r,n,i,u;this.openTagStart=this.startIndex,this.tagname=t;let o=this.htmlMode&&DC.get(t);if(o)for(;this.stack.length>0&&o.has(this.stack[0]);){let l=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,l,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(gx.has(t)?this.foreignContext.unshift(!0):bx.has(t)&&this.foreignContext.unshift(!1))),(u=(i=this.cbs).onopentagname)===null||u===void 0||u.call(i,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,r){var n,i,u,o,l,d,p,A;this.endIndex=r;let b=this.getSlice(t,r);if(this.lowerCaseTagNames&&(b=b.toLowerCase()),this.htmlMode&&(gx.has(b)||bx.has(b))&&this.foreignContext.shift(),this.isVoidElement(b))this.htmlMode&&b==="br"&&((o=(u=this.cbs).onopentagname)===null||o===void 0||o.call(u,"br"),(d=(l=this.cbs).onopentag)===null||d===void 0||d.call(l,"br",{},!0),(A=(p=this.cbs).onclosetag)===null||A===void 0||A.call(p,"br",!1));else{let _=this.stack.indexOf(b);if(_!==-1)for(let v=0;v<=_;v++){let I=this.stack.shift();(i=(n=this.cbs).onclosetag)===null||i===void 0||i.call(n,I,v!==_)}else this.htmlMode&&b==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var r,n;let i=this.tagname;this.endOpenTag(t),this.stack[0]===i&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,i,!t),this.stack.shift())}onattribname(t,r){this.startIndex=t;let n=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(t,r){this.attribvalue+=this.getSlice(t,r)}onattribentity(t){this.attribvalue+=qc(t)}onattribend(t,r){var n,i;this.endIndex=r,(i=(n=this.cbs).onattribute)===null||i===void 0||i.call(n,this.attribname,this.attribvalue,t===ii.Double?'"':t===ii.Single?"'":t===ii.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){let r=t.search(RC),n=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(t,r){this.endIndex=r;let n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let i=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${i}`,`!${n}`)}this.startIndex=r+1}onprocessinginstruction(t,r){this.endIndex=r;let n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let i=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${i}`,`?${n}`)}this.startIndex=r+1}oncomment(t,r,n){var i,u,o,l;this.endIndex=r,(u=(i=this.cbs).oncomment)===null||u===void 0||u.call(i,this.getSlice(t,r-n)),(l=(o=this.cbs).oncommentend)===null||l===void 0||l.call(o),this.startIndex=r+1}oncdata(t,r,n){var i,u,o,l,d,p,A,b,_,v;this.endIndex=r;let I=this.getSlice(t,r-n);!this.htmlMode||this.options.recognizeCDATA?((u=(i=this.cbs).oncdatastart)===null||u===void 0||u.call(i),(l=(o=this.cbs).ontext)===null||l===void 0||l.call(o,I),(p=(d=this.cbs).oncdataend)===null||p===void 0||p.call(d)):((b=(A=this.cbs).oncomment)===null||b===void 0||b.call(A,`[CDATA[${I}]]`),(v=(_=this.cbs).oncommentend)===null||v===void 0||v.call(_)),this.startIndex=r+1}onend(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let n=0;n<this.stack.length;n++)this.cbs.onclosetag(this.stack[n],!0)}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)}reset(){var t,r,n,i;(r=(t=this.cbs).onreset)===null||r===void 0||r.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(n=this.cbs).onparserinit)===null||i===void 0||i.call(n,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);for(;r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}}});function _x(e,t){let r=new io(void 0,t);return new zc(r,t).end(e),r.root}var Jc=N(()=>{hA();hA();Qr();Qr();dA();to();Ri();Ri();Ri()});var bA={};gn(bA,{addClass:()=>Tx,attr:()=>BC,data:()=>MC,hasClass:()=>$C,prop:()=>LC,removeAttr:()=>UC,removeClass:()=>wx,toggleClass:()=>Ix,val:()=>HC});function B0(e,t,r){var n;if(!(!e||!he(e))){if((n=e.attribs)!==null&&n!==void 0||(e.attribs={}),!t)return e.attribs;if(jc(e.attribs,t))return!r&&gA.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return bs(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function fo(e,t,r){r===null?yx(e,t):e.attribs[t]=`${r}`}function BC(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return wt(this,(r,n)=>{he(r)&&fo(r,e,t.call(r,n,r.attribs[e]))})}return wt(this,r=>{if(he(r))if(typeof e=="object")for(let n of Object.keys(e)){let i=e[n];fo(r,n,i)}else fo(r,e,t)})}return arguments.length>1?this:B0(this[0],e,this.options.xmlMode)}function Ex(e,t,r){return t in e?e[t]:!r&&gA.test(t)?B0(e,t,!1)!==void 0:B0(e,t,r)}function mA(e,t,r,n){t in e?e[t]=r:fo(e,t,!n&&gA.test(t)?r?"":null:`${r}`)}function LC(e,t){var r;if(typeof e=="string"&&t===void 0){let n=this[0];if(!n)return;switch(e){case"style":{let i=this.css(),u=Object.keys(i);for(let o=0;o<u.length;o++)i[o]=u[o];return i.length=u.length,i}case"tagName":case"nodeName":return he(n)?n.name.toUpperCase():void 0;case"href":case"src":{if(!he(n))return;let i=(r=n.attribs)===null||r===void 0?void 0:r[e];return typeof URL<"u"&&(e==="href"&&(n.tagName==="a"||n.tagName==="link")||e==="src"&&(n.tagName==="img"||n.tagName==="iframe"||n.tagName==="audio"||n.tagName==="video"||n.tagName==="source"))&&i!==void 0&&this.options.baseURI?new URL(i,this.options.baseURI).href:i}case"innerText":return Qc(n);case"textContent":return Du(n);case"outerHTML":return n.type===ei.Root?this.html():this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return he(n)?Ex(n,e,this.options.xmlMode):void 0}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return wt(this,(n,i)=>{he(n)&&mA(n,e,t.call(n,i,Ex(n,e,this.options.xmlMode)),this.options.xmlMode)})}return wt(this,n=>{if(he(n))if(typeof e=="object")for(let i of Object.keys(e)){let u=e[i];mA(n,i,u,this.options.xmlMode)}else mA(n,e,t,this.options.xmlMode)})}}function xx(e,t,r){var n;(n=e.data)!==null&&n!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&r!==void 0&&(e.data[t]=r)}function FC(e){for(let t of Object.keys(e.attribs)){if(!t.startsWith(AA))continue;let r=lx(t.slice(AA.length));jc(e.data,r)||(e.data[r]=vx(e.attribs[t]))}return e.data}function PC(e,t){let r=AA+fx(t),n=e.data;if(jc(n,t))return n[t];if(jc(e.attribs,r))return n[t]=vx(e.attribs[r])}function vx(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;let t=Number(e);if(e===String(t))return t;if(OC.test(e))try{return JSON.parse(e)}catch{}return e}function MC(e,t){var r;let n=this[0];if(!n||!he(n))return;let i=n;return(r=i.data)!==null&&r!==void 0||(i.data={}),e==null?FC(i):typeof e=="object"||t!==void 0?(wt(this,u=>{he(u)&&(typeof e=="object"?xx(u,e):xx(u,e,t))}),this):PC(i,e)}function HC(e){let t=arguments.length===0,r=this[0];if(!r||!he(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":{let n=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");let i=typeof e=="object"?e:[e];for(let u of i)this.find(`option[value="${u}"]`).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(i=>bs(i.children)):n.attr("value")}case"button":case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function yx(e,t){!e.attribs||!jc(e.attribs,t)||delete e.attribs[t]}function L0(e){return e?e.trim().split(Zc):[]}function UC(e){let t=L0(e);for(let r of t)wt(this,n=>{he(n)&&yx(n,r)});return this}function $C(e){return this.toArray().some(t=>{let r=he(t)&&t.attribs.class,n=-1;if(r&&e.length>0)for(;(n=r.indexOf(e,n+1))>-1;){let i=n+e.length;if((n===0||Zc.test(r[n-1]))&&(i===r.length||Zc.test(r[i])))return!0}return!1})}function Tx(e){if(typeof e=="function")return wt(this,(n,i)=>{if(he(n)){let u=n.attribs.class||"";Tx.call([n],e.call(n,i,u))}});if(!e||typeof e!="string")return this;let t=e.split(Zc),r=this.length;for(let n=0;n<r;n++){let i=this[n];if(!he(i))continue;let u=B0(i,"class",!1);if(u){let o=` ${u} `;for(let l of t){let d=`${l} `;o.includes(` ${d}`)||(o+=d)}fo(i,"class",o.trim())}else fo(i,"class",t.join(" ").trim())}return this}function wx(e){if(typeof e=="function")return wt(this,(i,u)=>{he(i)&&wx.call([i],e.call(i,u,i.attribs.class||""))});let t=L0(e),r=t.length,n=arguments.length===0;return wt(this,i=>{if(he(i))if(n)i.attribs.class="";else{let u=L0(i.attribs.class),o=!1;for(let l=0;l<r;l++){let d=u.indexOf(t[l]);d!==-1&&(u.splice(d,1),o=!0,l--)}o&&(i.attribs.class=u.join(" "))}})}function Ix(e,t){if(typeof e=="function")return wt(this,(o,l)=>{he(o)&&Ix.call([o],e.call(o,l,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;let r=e.split(Zc),n=r.length,i=typeof t=="boolean"?t?1:-1:0,u=this.length;for(let o=0;o<u;o++){let l=this[o];if(!he(l))continue;let d=L0(l.attribs.class);for(let p=0;p<n;p++){let A=d.indexOf(r[p]);i>=0&&A===-1?d.push(r[p]):i<=0&&A!==-1&&d.splice(A,1)}l.attribs.class=d.join(" ")}return this}var pA,jc,Zc,AA,gA,OC,Cx=N(()=>{so();oo();Qr();Ri();Jc();jc=(pA=Object.hasOwn)!==null&&pA!==void 0?pA:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Zc=/\s+/,AA="data-",gA=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,OC=/^{[^]*}$|^\[[^]*]$/});var Ee,Vt,_A=N(()=>{(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(Ee||(Ee={}));(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(Vt||(Vt={}))});function Es(e){switch(e.type){case Ee.Adjacent:case Ee.Child:case Ee.Descendant:case Ee.Parent:case Ee.Sibling:case Ee.ColumnCombinator:return!0;default:return!1}}function GC(e,t,r){let n=parseInt(t,16)-65536;return n!==n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}function Xc(e){return e.replace(YC,GC)}function EA(e){return e===39||e===34}function Nx(e){return e===32||e===9||e===10||e===12||e===13}function Ou(e){let t=[],r=Dx(t,`${e}`,0);if(r<e.length)throw new Error(`Unmatched selector: ${e.slice(r)}`);return t}function Dx(e,t,r){let n=[];function i(_){let v=t.slice(r+_).match(Sx);if(!v)throw new Error(`Expected name, found ${t.slice(r)}`);let[I]=v;return r+=_+I.length,Xc(I)}function u(_){for(r+=_;r<t.length&&Nx(t.charCodeAt(r));)r++}function o(){r+=1;let _=r,v=1;for(;v>0&&r<t.length;r++)t.charCodeAt(r)===40&&!l(r)?v++:t.charCodeAt(r)===41&&!l(r)&&v--;if(v)throw new Error("Parenthesis not matched");return Xc(t.slice(_,r-1))}function l(_){let v=0;for(;t.charCodeAt(--_)===92;)v++;return(v&1)===1}function d(){if(n.length>0&&Es(n[n.length-1]))throw new Error("Did not expect successive traversals.")}function p(_){if(n.length>0&&n[n.length-1].type===Ee.Descendant){n[n.length-1].type=_;return}d(),n.push({type:_})}function A(_,v){n.push({type:Ee.Attribute,name:_,action:v,value:i(1),namespace:null,ignoreCase:"quirks"})}function b(){if(n.length&&n[n.length-1].type===Ee.Descendant&&n.pop(),n.length===0)throw new Error("Empty sub-selector");e.push(n)}if(u(0),t.length===r)return r;e:for(;r<t.length;){let _=t.charCodeAt(r);switch(_){case 32:case 9:case 10:case 12:case 13:{(n.length===0||n[0].type!==Ee.Descendant)&&(d(),n.push({type:Ee.Descendant})),u(1);break}case 62:{p(Ee.Child),u(1);break}case 60:{p(Ee.Parent),u(1);break}case 126:{p(Ee.Sibling),u(1);break}case 43:{p(Ee.Adjacent),u(1);break}case 46:{A("class",Vt.Element);break}case 35:{A("id",Vt.Equals);break}case 91:{u(1);let v,I=null;t.charCodeAt(r)===124?v=i(1):t.startsWith("*|",r)?(I="*",v=i(2)):(v=i(0),t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==61&&(I=v,v=i(1))),u(0);let D=Vt.Exists,R=KC.get(t.charCodeAt(r));if(R){if(D=R,t.charCodeAt(r+1)!==61)throw new Error("Expected `=`");u(2)}else t.charCodeAt(r)===61&&(D=Vt.Equals,u(1));let H="",K=null;if(D!=="exists"){if(EA(t.charCodeAt(r))){let Re=t.charCodeAt(r),xe=r+1;for(;xe<t.length&&(t.charCodeAt(xe)!==Re||l(xe));)xe+=1;if(t.charCodeAt(xe)!==Re)throw new Error("Attribute value didn't end");H=Xc(t.slice(r+1,xe)),r=xe+1}else{let Re=r;for(;r<t.length&&(!Nx(t.charCodeAt(r))&&t.charCodeAt(r)!==93||l(r));)r+=1;H=Xc(t.slice(Re,r))}u(0);let le=t.charCodeAt(r)|32;le===115?(K=!1,u(1)):le===105&&(K=!0,u(1))}if(t.charCodeAt(r)!==93)throw new Error("Attribute selector didn't terminate");r+=1;let ce={type:Ee.Attribute,name:v,action:D,value:H,namespace:I,ignoreCase:K};n.push(ce);break}case 58:{if(t.charCodeAt(r+1)===58){n.push({type:Ee.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(r)===40?o():null});continue}let v=i(1).toLowerCase(),I=null;if(t.charCodeAt(r)===40)if(QC.has(v)){if(EA(t.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${v} cannot be quoted`);if(I=[],r=Dx(I,t,r+1),t.charCodeAt(r)!==41)throw new Error(`Missing closing parenthesis in :${v} (${t})`);r+=1}else{if(I=o(),WC.has(v)){let D=I.charCodeAt(0);D===I.charCodeAt(I.length-1)&&EA(D)&&(I=I.slice(1,-1))}I=Xc(I)}n.push({type:Ee.Pseudo,name:v,data:I});break}case 44:{b(),n=[],u(1);break}default:{if(t.startsWith("/*",r)){let D=t.indexOf("*/",r+2);if(D<0)throw new Error("Comment was not terminated");r=D+2,n.length===0&&u(0);break}let v=null,I;if(_===42)r+=1,I="*";else if(_===124){if(I="",t.charCodeAt(r+1)===124){p(Ee.ColumnCombinator),u(2);break}}else if(Sx.test(t.slice(r)))I=i(0);else break e;t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==124&&(v=I,t.charCodeAt(r+1)===42?(I="*",r+=2):I=i(1)),n.push(I==="*"?{type:Ee.Universal,namespace:v}:{type:Ee.Tag,name:I,namespace:v})}}}return b(),r}var Sx,YC,KC,QC,WC,kx=N(()=>{_A();Sx=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,YC=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,KC=new Map([[126,Vt.Element],[94,Vt.Start],[36,Vt.End],[42,Vt.Any],[33,Vt.Not],[124,Vt.Hyphen]]),QC=new Set(["has","not","matches","is","where","host","host-context"]);WC=new Set(["contains","icontains"])});var ho=N(()=>{_A();kx()});var pa=Ra((eq,Rx)=>{Rx.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});function el(e){return!Ox.has(e.type)}function xA(e){let t=e.map(Bx);for(let r=1;r<e.length;r++){let n=t[r];if(!(n<0))for(let i=r-1;i>=0&&n<t[i];i--){let u=e[i+1];e[i+1]=e[i],e[i]=u,t[i+1]=t[i],t[i]=n}}}function Bx(e){var t,r;let n=(t=Ox.get(e.type))!==null&&t!==void 0?t:-1;return e.type===Ee.Attribute?(n=(r=VC.get(e.action))!==null&&r!==void 0?r:4,e.action===Vt.Equals&&e.name==="id"&&(n=9),e.ignoreCase&&(n>>=1)):e.type===Ee.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?n=0:Array.isArray(e.data)?(n=Math.min(...e.data.map(i=>Math.min(...i.map(Bx)))),n<0&&(n=0)):n=2:n=3),n}var Ox,VC,vA=N(()=>{ho();Ox=new Map([[Ee.Universal,50],[Ee.Tag,30],[Ee.Attribute,1],[Ee.Pseudo,0]]);VC=new Map([[Vt.Exists,10],[Vt.Equals,8],[Vt.Not,7],[Vt.Start,6],[Vt.End,6],[Vt.Any,5]])});function Lx(e){return e.replace(qC,"\\$&")}function xs(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&zC.has(e.name)}var tl,qC,zC,Fx,Px=N(()=>{tl=Kn(pa(),1),qC=/[-[\]{}()*+?.,\\^$|#\s]/g;zC=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);Fx={equals(e,t,r){let{adapter:n}=r,{name:i}=t,{value:u}=t;return xs(t,r)?(u=u.toLowerCase(),o=>{let l=n.getAttributeValue(o,i);return l!=null&&l.length===u.length&&l.toLowerCase()===u&&e(o)}):o=>n.getAttributeValue(o,i)===u&&e(o)},hyphen(e,t,r){let{adapter:n}=r,{name:i}=t,{value:u}=t,o=u.length;return xs(t,r)?(u=u.toLowerCase(),function(d){let p=n.getAttributeValue(d,i);return p!=null&&(p.length===o||p.charAt(o)==="-")&&p.substr(0,o).toLowerCase()===u&&e(d)}):function(d){let p=n.getAttributeValue(d,i);return p!=null&&(p.length===o||p.charAt(o)==="-")&&p.substr(0,o)===u&&e(d)}},element(e,t,r){let{adapter:n}=r,{name:i,value:u}=t;if(/\s/.test(u))return tl.default.falseFunc;let o=new RegExp(`(?:^|\\s)${Lx(u)}(?:$|\\s)`,xs(t,r)?"i":"");return function(d){let p=n.getAttributeValue(d,i);return p!=null&&p.length>=u.length&&o.test(p)&&e(d)}},exists(e,{name:t},{adapter:r}){return n=>r.hasAttrib(n,t)&&e(n)},start(e,t,r){let{adapter:n}=r,{name:i}=t,{value:u}=t,o=u.length;return o===0?tl.default.falseFunc:xs(t,r)?(u=u.toLowerCase(),l=>{let d=n.getAttributeValue(l,i);return d!=null&&d.length>=o&&d.substr(0,o).toLowerCase()===u&&e(l)}):l=>{var d;return!!(!((d=n.getAttributeValue(l,i))===null||d===void 0)&&d.startsWith(u))&&e(l)}},end(e,t,r){let{adapter:n}=r,{name:i}=t,{value:u}=t,o=-u.length;return o===0?tl.default.falseFunc:xs(t,r)?(u=u.toLowerCase(),l=>{var d;return((d=n.getAttributeValue(l,i))===null||d===void 0?void 0:d.substr(o).toLowerCase())===u&&e(l)}):l=>{var d;return!!(!((d=n.getAttributeValue(l,i))===null||d===void 0)&&d.endsWith(u))&&e(l)}},any(e,t,r){let{adapter:n}=r,{name:i,value:u}=t;if(u==="")return tl.default.falseFunc;if(xs(t,r)){let o=new RegExp(Lx(u),"i");return function(d){let p=n.getAttributeValue(d,i);return p!=null&&p.length>=u.length&&o.test(p)&&e(d)}}return o=>{var l;return!!(!((l=n.getAttributeValue(o,i))===null||l===void 0)&&l.includes(u))&&e(o)}},not(e,t,r){let{adapter:n}=r,{name:i}=t,{value:u}=t;return u===""?o=>!!n.getAttributeValue(o,i)&&e(o):xs(t,r)?(u=u.toLowerCase(),o=>{let l=n.getAttributeValue(o,i);return(l==null||l.length!==u.length||l.toLowerCase()!==u)&&e(o)}):o=>n.getAttributeValue(o,i)!==u&&e(o)}}});function Hx(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,r=0,n=u(),i=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,r=n*(i??1),l(),t<e.length?(n=u(),l(),i=o()):n=i=0),i===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,n*i];function u(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){let d=t,p=0;for(;t<e.length&&e.charCodeAt(t)>=Mx&&e.charCodeAt(t)<=jC;)p=p*10+(e.charCodeAt(t)-Mx),t++;return t===d?null:p}function l(){for(;t<e.length&&JC.has(e.charCodeAt(t));)t++}}var JC,Mx,jC,Ux=N(()=>{JC=new Set([9,10,12,13,32]),Mx="0".charCodeAt(0),jC="9".charCodeAt(0)});function $x(e){let t=e[0],r=e[1]-1;if(r<0&&t<=0)return yA.default.falseFunc;if(t===-1)return u=>u<=r;if(t===0)return u=>u===r;if(t===1)return r<0?yA.default.trueFunc:u=>u>=r;let n=Math.abs(t),i=(r%n+n)%n;return t>1?u=>u>=r&&u%n===i:u=>u<=r&&u%n===i}var yA,Yx=N(()=>{yA=Kn(pa(),1)});function po(e){return $x(Hx(e))}var Kx=N(()=>{Ux();Yx()});function F0(e,t){return r=>{let n=t.getParent(r);return n!=null&&t.isTag(n)&&e(r)}}function TA(e){return function(r,n,{adapter:i}){let u=i[e];return typeof u!="function"?Cn.default.falseFunc:function(l){return u(l)&&r(l)}}}var Cn,mo,Qx=N(()=>{Kx();Cn=Kn(pa(),1);mo={contains(e,t,{adapter:r}){return function(i){return e(i)&&r.getText(i).includes(t)}},icontains(e,t,{adapter:r}){let n=t.toLowerCase();return function(u){return e(u)&&r.getText(u).toLowerCase().includes(n)}},"nth-child"(e,t,{adapter:r,equals:n}){let i=po(t);return i===Cn.default.falseFunc?Cn.default.falseFunc:i===Cn.default.trueFunc?F0(e,r):function(o){let l=r.getSiblings(o),d=0;for(let p=0;p<l.length&&!n(o,l[p]);p++)r.isTag(l[p])&&d++;return i(d)&&e(o)}},"nth-last-child"(e,t,{adapter:r,equals:n}){let i=po(t);return i===Cn.default.falseFunc?Cn.default.falseFunc:i===Cn.default.trueFunc?F0(e,r):function(o){let l=r.getSiblings(o),d=0;for(let p=l.length-1;p>=0&&!n(o,l[p]);p--)r.isTag(l[p])&&d++;return i(d)&&e(o)}},"nth-of-type"(e,t,{adapter:r,equals:n}){let i=po(t);return i===Cn.default.falseFunc?Cn.default.falseFunc:i===Cn.default.trueFunc?F0(e,r):function(o){let l=r.getSiblings(o),d=0;for(let p=0;p<l.length;p++){let A=l[p];if(n(o,A))break;r.isTag(A)&&r.getName(A)===r.getName(o)&&d++}return i(d)&&e(o)}},"nth-last-of-type"(e,t,{adapter:r,equals:n}){let i=po(t);return i===Cn.default.falseFunc?Cn.default.falseFunc:i===Cn.default.trueFunc?F0(e,r):function(o){let l=r.getSiblings(o),d=0;for(let p=l.length-1;p>=0;p--){let A=l[p];if(n(o,A))break;r.isTag(A)&&r.getName(A)===r.getName(o)&&d++}return i(d)&&e(o)}},root(e,t,{adapter:r}){return n=>{let i=r.getParent(n);return(i==null||!r.isTag(i))&&e(n)}},scope(e,t,r,n){let{equals:i}=r;return!n||n.length===0?mo.root(e,t,r):n.length===1?u=>i(n[0],u)&&e(u):u=>n.includes(u)&&e(u)},hover:TA("isHovered"),visited:TA("isVisited"),active:TA("isActive")}});function wA(e,t,r,n){if(r===null){if(e.length>n)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===n)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}var rl,Wx=N(()=>{rl={empty(e,{adapter:t}){return!t.getChildren(e).some(r=>t.isTag(r)||t.getText(r)!=="")},"first-child"(e,{adapter:t,equals:r}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let n=t.getSiblings(e).find(i=>t.isTag(i));return n!=null&&r(e,n)},"last-child"(e,{adapter:t,equals:r}){let n=t.getSiblings(e);for(let i=n.length-1;i>=0;i--){if(r(e,n[i]))return!0;if(t.isTag(n[i]))break}return!1},"first-of-type"(e,{adapter:t,equals:r}){let n=t.getSiblings(e),i=t.getName(e);for(let u=0;u<n.length;u++){let o=n[u];if(r(e,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"last-of-type"(e,{adapter:t,equals:r}){let n=t.getSiblings(e),i=t.getName(e);for(let u=n.length-1;u>=0;u--){let o=n[u];if(r(e,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"only-of-type"(e,{adapter:t,equals:r}){let n=t.getName(e);return t.getSiblings(e).every(i=>r(e,i)||!t.isTag(i)||t.getName(i)!==n)},"only-child"(e,{adapter:t,equals:r}){return t.getSiblings(e).every(n=>r(e,n)||!t.isTag(n))}}});var P0,Gx=N(()=>{P0={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
        :is(button, input, select, textarea, optgroup, option)[disabled],
        optgroup[disabled] > option,
        fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
    )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}});function NA(e,t){return e===ui.default.falseFunc?ui.default.falseFunc:r=>t.isTag(r)&&e(r)}function DA(e,t){let r=t.getSiblings(e);if(r.length<=1)return[];let n=r.indexOf(e);return n<0||n===r.length-1?[]:r.slice(n+1).filter(t.isTag)}function CA(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}var ui,SA,IA,M0,H0=N(()=>{ui=Kn(pa(),1);vA();SA={};IA=(e,t,r,n,i)=>{let u=i(t,CA(r),n);return u===ui.default.trueFunc?e:u===ui.default.falseFunc?ui.default.falseFunc:o=>u(o)&&e(o)},M0={is:IA,matches:IA,where:IA,not(e,t,r,n,i){let u=i(t,CA(r),n);return u===ui.default.falseFunc?e:u===ui.default.trueFunc?ui.default.falseFunc:o=>!u(o)&&e(o)},has(e,t,r,n,i){let{adapter:u}=r,o=CA(r);o.relativeSelector=!0;let l=t.some(A=>A.some(el))?[SA]:void 0,d=i(t,o,l);if(d===ui.default.falseFunc)return ui.default.falseFunc;let p=NA(d,u);if(l&&d!==ui.default.trueFunc){let{shouldTestNextSiblings:A=!1}=d;return b=>{if(!e(b))return!1;l[0]=b;let _=u.getChildren(b),v=A?[..._,...DA(b,u)]:_;return u.existsOne(p,v)}}return A=>e(A)&&u.existsOne(p,u.getChildren(A))}}});function Vx(e,t,r,n,i){var u;let{name:o,data:l}=t;if(Array.isArray(l)){if(!(o in M0))throw new Error(`Unknown pseudo-class :${o}(${l})`);return M0[o](e,l,r,n,i)}let d=(u=r.pseudos)===null||u===void 0?void 0:u[o],p=typeof d=="string"?d:P0[o];if(typeof p=="string"){if(l!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let A=Ou(p);return M0.is(e,A,r,n,i)}if(typeof d=="function")return wA(d,o,l,1),A=>d(A,l)&&e(A);if(o in mo)return mo[o](e,l,r,n);if(o in rl){let A=rl[o];return wA(A,o,l,2),b=>A(b,r,l)&&e(b)}throw new Error(`Unknown pseudo-class :${o}`)}var kA=N(()=>{ho();Qx();Wx();Gx();H0()});function RA(e,t){let r=t.getParent(e);return r&&t.isTag(r)?r:null}function qx(e,t,r,n,i){let{adapter:u,equals:o}=r;switch(t.type){case Ee.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ee.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ee.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Fx[t.action](e,t,r)}case Ee.Pseudo:return Vx(e,t,r,n,i);case Ee.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:l}=t;return(!r.xmlMode||r.lowerCaseTags)&&(l=l.toLowerCase()),function(p){return u.getName(p)===l&&e(p)}}case Ee.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(p){let A=p;for(;A=RA(A,u);)if(e(A))return!0;return!1};let l=new WeakSet;return function(p){let A=p;for(;A=RA(A,u);)if(!l.has(A)){if(u.isTag(A)&&e(A))return!0;l.add(A)}return!1}}case"_flexibleDescendant":return function(d){let p=d;do if(e(p))return!0;while(p=RA(p,u));return!1};case Ee.Parent:return function(d){return u.getChildren(d).some(p=>u.isTag(p)&&e(p))};case Ee.Child:return function(d){let p=u.getParent(d);return p!=null&&u.isTag(p)&&e(p)};case Ee.Sibling:return function(d){let p=u.getSiblings(d);for(let A=0;A<p.length;A++){let b=p[A];if(o(d,b))break;if(u.isTag(b)&&e(b))return!0}return!1};case Ee.Adjacent:return u.prevElementSibling?function(d){let p=u.prevElementSibling(d);return p!=null&&e(p)}:function(d){let p=u.getSiblings(d),A;for(let b=0;b<p.length;b++){let _=p[b];if(o(d,_))break;u.isTag(_)&&(A=_)}return!!A&&e(A)};case Ee.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}var zx=N(()=>{Px();kA();ho()});function Jx(e,t,r){let n=U0(e,t,r);return NA(n,t.adapter)}function U0(e,t,r){let n=typeof e=="string"?Ou(e):e;return $0(n,t,r)}function jx(e){return e.type===Ee.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(jx)))}function t4(e,{adapter:t},r){let n=!!r?.every(i=>{let u=t.isTag(i)&&t.getParent(i);return i===SA||u&&t.isTag(u)});for(let i of e){if(!(i.length>0&&el(i[0])&&i[0].type!==Ee.Descendant))if(n&&!i.some(jx))i.unshift(ZC);else continue;i.unshift(e4)}}function $0(e,t,r){var n;e.forEach(xA),r=(n=t.context)!==null&&n!==void 0?n:r;let i=Array.isArray(r),u=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)t4(e,t,u);else if(e.some(d=>d.length>0&&el(d[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1,l=e.map(d=>{if(d.length>=2){let[p,A]=d;p.type!==Ee.Pseudo||p.name!=="scope"||(i&&A.type===Ee.Descendant?d[1]=XC:(A.type===Ee.Adjacent||A.type===Ee.Sibling)&&(o=!0))}return r4(d,t,u)}).reduce(n4,Bu.default.falseFunc);return l.shouldTestNextSiblings=o,l}function r4(e,t,r){var n;return e.reduce((i,u)=>i===Bu.default.falseFunc?Bu.default.falseFunc:qx(i,u,t,r,$0),(n=t.rootFunc)!==null&&n!==void 0?n:Bu.default.trueFunc)}function n4(e,t){return t===Bu.default.falseFunc||e===Bu.default.trueFunc?e:e===Bu.default.falseFunc||t===Bu.default.trueFunc?t:function(n){return e(n)||t(n)}}var Bu,ZC,XC,e4,Zx=N(()=>{ho();Bu=Kn(pa(),1);vA();zx();H0();ZC={type:Ee.Descendant},XC={type:"_flexibleDescendant"},e4={type:Ee.Pseudo,name:"scope",data:null}});function ev(e){var t,r,n,i;let u=e??i4;return(t=u.adapter)!==null&&t!==void 0||(u.adapter=ha),(r=u.equals)!==null&&r!==void 0||(u.equals=(i=(n=u.adapter)===null||n===void 0?void 0:n.equals)!==null&&i!==void 0?i:Xx),u}function BA(e){return function(r,n,i){let u=ev(n);return e(r,u,i)}}function tv(e){return function(r,n,i){let u=ev(i);typeof r!="function"&&(r=U0(r,u,n));let o=K0(n,u.adapter,r.shouldTestNextSiblings);return e(r,o,u)}}function K0(e,t,r=!1){return r&&(e=u4(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function u4(e,t){let r=Array.isArray(e)?e.slice(0):[e],n=r.length;for(let i=0;i<n;i++){let u=DA(r[i],t);r.push(...u)}return r}var OA,Xx,i4,Oq,Bq,Y0,Lq,Fq,LA=N(()=>{Ri();OA=Kn(pa(),1);Zx();H0();kA();Xx=(e,t)=>e===t,i4={adapter:ha,equals:Xx};Oq=BA(Jx),Bq=BA(U0),Y0=BA($0);Lq=tv((e,t,r)=>e===OA.default.falseFunc||!t||t.length===0?[]:r.adapter.findAll(e,t)),Fq=tv((e,t,r)=>e===OA.default.falseFunc||!t||t.length===0?null:r.adapter.findOne(e,t))});function Ao(e){return e.type!=="pseudo"?!1:a4.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(Ao)):!1}function rv(e,t,r){let n=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(n)?n>=0?n+1:1/0:0;case"lt":return isFinite(n)?n>=0?Math.min(n,r):1/0:0;case"gt":return isFinite(n)?1/0:0;case"odd":return 2*r;case"even":return 2*r-1;case"last":case"not":return 1/0}}var a4,FA=N(()=>{a4=new Set(["first","last","eq","gt","nth","lt","even","odd"])});function nv(e){for(;e.parent;)e=e.parent;return e}function Q0(e){let t=[],r=[];for(let n of e)n.some(Ao)?t.push(n):r.push(n);return[r,t]}var iv=N(()=>{FA()});function HA(e,t,r={}){return UA([e],t,r)}function UA(e,t,r={}){if(typeof t=="function")return e.some(t);let[n,i]=Q0(Ou(t));return n.length>0&&e.some(Y0(n,r))||i.some(u=>av(u,e,r).length>0)}function c4(e,t,r,n){let i=typeof r=="string"?parseInt(r,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(i)&&Math.abs(i)<t.length?[i<0?t[t.length+i]:t[i]]:[];case"gt":return isFinite(i)?t.slice(i+1):[];case"even":return t.filter((u,o)=>o%2===0);case"odd":return t.filter((u,o)=>o%2===1);case"not":{let u=new Set(uv(r,t,n));return t.filter(o=>!u.has(o))}}}function $A(e,t,r={}){return uv(Ou(e),t,r)}function uv(e,t,r){if(t.length===0)return[];let[n,i]=Q0(e),u;if(n.length){let o=MA(t,n,r);if(i.length===0)return o;o.length&&(u=new Set(o))}for(let o=0;o<i.length&&u?.size!==t.length;o++){let l=i[o];if((u?t.filter(A=>he(A)&&!u.has(A)):t).length===0)break;let p=av(l,t,r);if(p.length)if(u)p.forEach(A=>u.add(A));else{if(o===i.length-1)return p;u=new Set(p)}}return typeof u<"u"?u.size===t.length?t:t.filter(o=>u.has(o)):[]}function av(e,t,r){var n;if(e.some(Es)){let i=(n=r.root)!==null&&n!==void 0?n:nv(t[0]),u={...r,context:t,relativeSelector:!1};return e.push(o4),G0(i,e,u,!0,t.length)}return G0(t,e,r,!1,t.length)}function sv(e,t,r={},n=1/0){if(typeof e=="function")return ov(t,e);let[i,u]=Q0(Ou(e)),o=u.map(l=>G0(t,l,r,!0,n));return i.length&&o.push(PA(t,i,r,n)),o.length===0?[]:o.length===1?o[0]:fa(o.reduce((l,d)=>[...l,...d]))}function G0(e,t,r,n,i){let u=t.findIndex(Ao),o=t.slice(0,u),l=t[u],d=t.length-1===u?i:1/0,p=rv(l.name,l.data,d);if(p===0)return[];let b=(o.length===0&&!Array.isArray(e)?uo(e).filter(he):o.length===0?(Array.isArray(e)?e:[e]).filter(he):n||o.some(Es)?PA(e,[o],r,p):MA(e,[o],r)).slice(0,p),_=c4(l.name,b,l.data,r);if(_.length===0||t.length===u+1)return _;let v=t.slice(u+1),I=v.some(Es);if(I){if(Es(v[0])){let{type:D}=v[0];(D===Ee.Sibling||D===Ee.Adjacent)&&(_=K0(_,ha,!0)),v.unshift(s4)}r={...r,relativeSelector:!1,rootFunc:D=>_.includes(D)}}else r.rootFunc&&r.rootFunc!==W0.trueFunc&&(r={...r,rootFunc:W0.trueFunc});return v.some(Ao)?G0(_,v,r,!1,i):I?PA(_,[v],r,i):MA(_,[v],r)}function PA(e,t,r,n){let i=Y0(t,r,e);return ov(e,i,n)}function ov(e,t,r=1/0){let n=K0(e,ha,t.shouldTestNextSiblings);return w0(i=>he(i)&&t(i),n,!0,r)}function MA(e,t,r){let n=(Array.isArray(e)?e:[e]).filter(he);if(n.length===0)return n;let i=Y0(t,r);return i===W0.trueFunc?n:n.filter(i)}var W0,s4,o4,cv=N(()=>{ho();LA();Ri();W0=Kn(pa(),1);iv();FA();LA();s4={type:Ee.Universal,namespace:null},o4={type:Ee.Pseudo,name:"scope",data:null}});var GA={};gn(GA,{_findBySelector:()=>h4,add:()=>$4,addBack:()=>Y4,children:()=>w4,closest:()=>g4,contents:()=>I4,each:()=>C4,end:()=>U4,eq:()=>L4,filter:()=>N4,filterArray:()=>WA,find:()=>d4,first:()=>O4,get:()=>F4,has:()=>R4,index:()=>M4,is:()=>D4,last:()=>B4,map:()=>S4,next:()=>b4,nextAll:()=>_4,nextUntil:()=>E4,not:()=>k4,parent:()=>p4,parents:()=>m4,parentsUntil:()=>A4,prev:()=>x4,prevAll:()=>v4,prevUntil:()=>y4,siblings:()=>T4,slice:()=>H4,toArray:()=>P4});function d4(e){if(!e)return this._make([]);if(typeof e!="string"){let t=ni(e)?e.toArray():[e],r=this.toArray();return this._make(t.filter(n=>r.some(i=>Gc(i,n))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function h4(e,t){var r;let n=this.toArray(),i=f4.test(e)?n:this.children().toArray(),u={context:n,root:(r=this._root)===null||r===void 0?void 0:r[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(sv(e,i,u,t))}function YA(e){return function(t,...r){return function(n){var i;let u=e(t,this);return n&&(u=WA(u,n,this.options.xmlMode,(i=this._root)===null||i===void 0?void 0:i[0])),this._make(this.length>1&&u.length>1?r.reduce((o,l)=>l(o),u):u)}}}function QA(e,...t){let r=null,n=YA((i,u)=>{let o=[];return wt(u,l=>{for(let d;(d=i(l))&&!r?.(d,o.length);l=d)o.push(d)}),o})(e,...t);return function(i,u){r=typeof i=="string"?l=>HA(l,i,this.options):i?il(i):null;let o=n.call(this,u);return r=null,o}}function go(e){return e.length>1?Array.from(new Set(e)):e}function g4(e){var t;let r=[];if(!e)return this._make(r);let n={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},i=typeof e=="string"?u=>HA(u,e,n):il(e);return wt(this,u=>{for(u&&!ti(u)&&!he(u)&&(u=u.parent);u&&he(u);){if(i(u,0)){r.includes(u)||r.push(u);break}u=u.parent}}),this._make(r)}function I4(){let e=this.toArray().reduce((t,r)=>vt(r)?t.concat(r.children):t,[]);return this._make(e)}function C4(e){let t=0,r=this.length;for(;t<r&&e.call(this[t],t,this[t])!==!1;)++t;return this}function S4(e){let t=[];for(let r=0;r<this.length;r++){let n=this[r],i=e.call(n,r,n);i!=null&&(t=t.concat(i))}return this._make(t)}function il(e){return typeof e=="function"?(t,r)=>e.call(t,r,t):ni(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function N4(e){var t;return this._make(WA(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function WA(e,t,r,n){return typeof t=="string"?$A(t,e,{xmlMode:r,root:n}):e.filter(il(t))}function D4(e){let t=this.toArray();return typeof e=="string"?UA(t.filter(he),e,this.options):e?t.some(il(e)):!1}function k4(e){let t=this.toArray();if(typeof e=="string"){let r=new Set($A(e,t,this.options));t=t.filter(n=>!r.has(n))}else{let r=il(e);t=t.filter((n,i)=>!r(n,i))}return this._make(t)}function R4(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,r)=>this._make(r).find(e).length>0)}function O4(){return this.length>1?this._make(this[0]):this}function B4(){return this.length>0?this._make(this[this.length-1]):this}function L4(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function F4(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function P4(){return Array.prototype.slice.call(this)}function M4(e){let t,r;return e==null?(t=this.parent().children(),r=this[0]):typeof e=="string"?(t=this._make(e),r=this[0]):(t=this,r=ni(e)?e[0]:e),Array.prototype.indexOf.call(t,r)}function H4(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function U4(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function $4(e,t){let r=this._make(e,t),n=fa([...this.get(),...r.get()]);return this._make(n)}function Y4(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}var f4,nl,KA,p4,m4,A4,b4,_4,E4,x4,v4,y4,T4,w4,lv=N(()=>{Qr();cv();oo();so();Ri();f4=/^\s*(?:[+~]|:scope\b)/;nl=YA((e,t)=>{let r=[];for(let n=0;n<t.length;n++){let i=e(t[n]);i.length>0&&(r=r.concat(i))}return r}),KA=YA((e,t)=>{let r=[];for(let n=0;n<t.length;n++){let i=e(t[n]);i!==null&&r.push(i)}return r});p4=KA(({parent:e})=>e&&!ti(e)?e:null,go),m4=nl(e=>{let t=[];for(;e.parent&&!ti(e.parent);)t.push(e.parent),e=e.parent;return t},fa,e=>e.reverse()),A4=QA(({parent:e})=>e&&!ti(e)?e:null,fa,e=>e.reverse());b4=KA(e=>y0(e)),_4=nl(e=>{let t=[];for(;e.next;)e=e.next,he(e)&&t.push(e);return t},go),E4=QA(e=>y0(e),go),x4=KA(e=>T0(e)),v4=nl(e=>{let t=[];for(;e.prev;)e=e.prev,he(e)&&t.push(e);return t},go),y4=QA(e=>T0(e),go),T4=nl(e=>Jm(e).filter(t=>he(t)&&t!==e),fa),w4=nl(e=>uo(e).filter(he),go)});function fv(e){return function(r,n,i,u){if(typeof Buffer<"u"&&Buffer.isBuffer(r)&&(r=r.toString()),typeof r=="string")return e(r,n,i,u);let o=r;if(!Array.isArray(o)&&ti(o))return o;let l=new Hn([]);return ma(o,l),l}}function ma(e,t){let r=Array.isArray(e)?e:[e];t?t.children=r:t=null;for(let n=0;n<r.length;n++){let i=r[n];i.parent&&i.parent.children!==r&&ku(i),t?(i.prev=r[n-1]||null,i.next=r[n+1]||null):i.prev=i.next=null,i.parent=t}return t}var VA=N(()=>{Ri();Qr()});var qA={};gn(qA,{_makeDomArray:()=>K4,after:()=>Z4,append:()=>G4,appendTo:()=>Q4,before:()=>eS,clone:()=>oS,empty:()=>iS,html:()=>uS,insertAfter:()=>X4,insertBefore:()=>tS,prepend:()=>V4,prependTo:()=>W4,remove:()=>rS,replaceWith:()=>nS,text:()=>sS,toString:()=>aS,unwrap:()=>J4,wrap:()=>q4,wrapAll:()=>j4,wrapInner:()=>z4});function K4(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);let r=[];for(let n=0;n<e.length;n++){let i=e[n];if(typeof i=="object"){if(i==null)continue;if(!("length"in i)){r.push(t?no(i,!0):i);continue}}r.push(...this._makeDomArray(i,t))}return r}return[t?no(e,!0):e]}function dv(e){return function(...t){let r=this.length-1;return wt(this,(n,i)=>{if(!vt(n))return;let u=typeof t[0]=="function"?t[0].call(n,i,this._render(n.children)):t,o=this._makeDomArray(u,i<r);e(o,n.children,n)})}}function Aa(e,t,r,n,i){var u,o;let l=[t,r,...n],d=t===0?null:e[t-1],p=t+r>=e.length?null:e[t+r];for(let A=0;A<n.length;++A){let b=n[A],_=b.parent;if(_){let I=_.children.indexOf(b);I!==-1&&(_.children.splice(I,1),i===_&&t>I&&l[0]--)}b.parent=i,b.prev&&(b.prev.next=(u=b.next)!==null&&u!==void 0?u:null),b.next&&(b.next.prev=(o=b.prev)!==null&&o!==void 0?o:null),b.prev=A===0?d:n[A-1],b.next=A===n.length-1?p:n[A+1]}return d&&(d.next=n[0]),p&&(p.prev=n[n.length-1]),e.splice(...l)}function Q4(e){return(ni(e)?e:this._make(e)).append(this),this}function W4(e){return(ni(e)?e:this._make(e)).prepend(this),this}function hv(e){return function(t){let r=this.length-1,n=this.parents().last();for(let i=0;i<this.length;i++){let u=this[i],o=typeof t=="function"?t.call(u,i,u):typeof t=="string"&&!Vc(t)?n.find(t).clone():t,[l]=this._makeDomArray(o,i<r);if(!l||!vt(l))continue;let d=l,p=0;for(;p<d.children.length;){let A=d.children[p];he(A)?(d=A,p=0):p++}e(u,d,[l])}return this}}function J4(e){return this.parent(e).not("body").each((t,r)=>{this._make(r).replaceWith(r.children)}),this}function j4(e){let t=this[0];if(t){let r=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),n;for(let u=0;u<r.length;u++)r[u].type===ei.Tag&&(n=r[u]);let i=0;for(;n&&i<n.children.length;){let u=n.children[i];u.type===ei.Tag?(n=u,i=0):i++}n&&this._make(n).append(this)}return this}function Z4(...e){let t=this.length-1;return wt(this,(r,n)=>{if(!vt(r)||!r.parent)return;let i=r.parent.children,u=i.indexOf(r);if(u===-1)return;let o=typeof e[0]=="function"?e[0].call(r,n,this._render(r.children)):e,l=this._makeDomArray(o,n<t);Aa(i,u+1,0,l,r.parent)})}function X4(e){typeof e=="string"&&(e=this._make(e)),this.remove();let t=[];for(let r of this._makeDomArray(e)){let n=this.clone().toArray(),{parent:i}=r;if(!i)continue;let u=i.children,o=u.indexOf(r);o!==-1&&(Aa(u,o+1,0,n,i),t.push(...n))}return this._make(t)}function eS(...e){let t=this.length-1;return wt(this,(r,n)=>{if(!vt(r)||!r.parent)return;let i=r.parent.children,u=i.indexOf(r);if(u===-1)return;let o=typeof e[0]=="function"?e[0].call(r,n,this._render(r.children)):e,l=this._makeDomArray(o,n<t);Aa(i,u,0,l,r.parent)})}function tS(e){let t=this._make(e);this.remove();let r=[];return wt(t,n=>{let i=this.clone().toArray(),{parent:u}=n;if(!u)return;let o=u.children,l=o.indexOf(n);l!==-1&&(Aa(o,l,0,i,u),r.push(...i))}),this._make(r)}function rS(e){let t=e?this.filter(e):this;return wt(t,r=>{ku(r),r.prev=r.next=r.parent=null}),this}function nS(e){return wt(this,(t,r)=>{let{parent:n}=t;if(!n)return;let i=n.children,u=typeof e=="function"?e.call(t,r,t):e,o=this._makeDomArray(u);ma(o,null);let l=i.indexOf(t);Aa(i,l,1,o,n),o.includes(t)||(t.parent=t.prev=t.next=null)})}function iS(){return wt(this,e=>{if(vt(e)){for(let t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function uS(e){if(e===void 0){let t=this[0];return!t||!vt(t)?null:this._render(t.children)}return wt(this,t=>{if(!vt(t))return;for(let n of t.children)n.next=n.prev=n.parent=null;let r=ni(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;ma(r,t)})}function aS(){return this._render(this)}function sS(e){return e===void 0?bs(this):typeof e=="function"?wt(this,(t,r)=>this._make(t).text(e.call(t,r,bs([t])))):wt(this,t=>{if(!vt(t))return;for(let n of t.children)n.next=n.prev=n.parent=null;let r=new nu(`${e}`);ma(r,t)})}function oS(){let e=Array.prototype.map.call(this.get(),r=>no(r,!0)),t=new Hn(e);for(let r of e)r.parent=t;return this._make(e)}var G4,V4,q4,z4,pv=N(()=>{Qr();VA();so();oo();Ri();Jc();G4=dv((e,t,r)=>{Aa(t,t.length,0,e,r)}),V4=dv((e,t,r)=>{Aa(t,0,0,e,r)});q4=hv((e,t,r)=>{let{parent:n}=e;if(!n)return;let i=n.children,u=i.indexOf(e);ma([e],t),Aa(i,u,0,r,n)}),z4=hv((e,t,r)=>{vt(e)&&(ma(e.children,t),ma(r,e))})});var zA={};gn(zA,{css:()=>cS});function cS(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return wt(this,(r,n)=>{he(r)&&mv(r,e,t,n)});if(this.length!==0)return Av(this[0],e)}function mv(e,t,r,n){if(typeof t=="string"){let i=Av(e),u=typeof r=="function"?r.call(e,n,i[t]):r;u===""?delete i[t]:u!=null&&(i[t]=u),e.attribs.style=lS(i)}else if(typeof t=="object"){let i=Object.keys(t);for(let u=0;u<i.length;u++){let o=i[u];mv(e,o,t[o],u)}}}function Av(e,t){if(!e||!he(e))return;let r=fS(e.attribs.style);if(typeof t=="string")return r[t];if(Array.isArray(t)){let n={};for(let i of t)r[i]!=null&&(n[i]=r[i]);return n}return r}function lS(e){return Object.keys(e).reduce((t,r)=>`${t}${t?" ":""}${r}: ${e[r]};`,"")}function fS(e){if(e=(e||"").trim(),!e)return{};let t={},r;for(let n of e.split(";")){let i=n.indexOf(":");if(i<1||i===n.length-1){let u=n.trimEnd();u.length>0&&r!==void 0&&(t[r]+=`;${u}`)}else r=n.slice(0,i).trim(),t[r]=n.slice(i+1).trim()}return t}var gv=N(()=>{oo();Qr()});var JA={};gn(JA,{serialize:()=>hS,serializeArray:()=>pS});function hS(){return this.serializeArray().map(r=>`${encodeURIComponent(r.name)}=${encodeURIComponent(r.value)}`).join("&").replace(dS,"+")}function pS(){return this.map((e,t)=>{let r=this._make(t);return he(t)&&t.name==="form"?r.find(bv).toArray():r.filter(bv).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var r;let n=this._make(t),i=n.attr("name"),u=(r=n.val())!==null&&r!==void 0?r:"";return Array.isArray(u)?u.map(o=>({name:i,value:o.replace(_v,`\r
`)})):{name:i,value:u.replace(_v,`\r
`)}}).toArray()}var bv,dS,_v,Ev=N(()=>{Qr();bv="input,select,textarea,keygen",dS=/%20/g,_v=/\r?\n/g});var jA={};gn(jA,{extract:()=>AS});function mS(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function AS(e){let t={};for(let r in e){let n=e[r],i=Array.isArray(n),{selector:u,value:o}=mS(i?n[0]:n),l=typeof o=="function"?o:typeof o=="string"?d=>this._make(d).prop(o):d=>this._make(d).extract(o);if(i)t[r]=this._findBySelector(u,Number.POSITIVE_INFINITY).map((d,p)=>l(p,r,t)).get();else{let d=this._findBySelector(u,1);t[r]=d.length>0?l(d[0],r,t):void 0}}return t}var xv=N(()=>{});var ga,vv=N(()=>{Cx();lv();pv();gv();Ev();xv();ga=class{constructor(t,r,n){if(this.length=0,this.options=n,this._root=r,t){for(let i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}};ga.prototype.cheerio="[cheerio object]";ga.prototype.splice=Array.prototype.splice;ga.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(ga.prototype,bA,GA,qA,zA,JA,jA)});function yv(e,t){return function r(n,i,u=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=Wc(i),l=e(n,o,u,null);class d extends ga{_make(b,_){let v=p(b,_);return v.prevObject=this,v}_parse(b,_,v,I){return e(b,_,v,I)}_render(b){return t(b,this.options)}}function p(A,b,_=l,v){if(A&&ni(A))return A;let I=Wc(v,o),D=typeof _=="string"?[e(_,I,!1,null)]:"length"in _?_:[_],R=ni(D)?D:new d(D,null,I);if(R._root=R,!A)return new d(void 0,R,I);let H=typeof A=="string"&&Vc(A)?e(A,I,!1,null).children:gS(A)?[A]:Array.isArray(A)?A:void 0,K=new d(H,R,I);if(H)return K;if(typeof A!="string")throw new TypeError("Unexpected type of selector");let ce=A,le=b?typeof b=="string"?Vc(b)?new d([e(b,I,!1,null)],R,I):(ce=`${b} ${ce}`,R):ni(b)?b:new d(Array.isArray(b)?b:[b],R,I):R;return le?le.find(ce):K}return Object.assign(p,nA,{load:r,_root:l,_options:o,fn:d.prototype,prototype:d.prototype}),p}}function gS(e){return!!e.name||e.type===ei.Root||e.type===ei.Text||e.type===ei.Comment}var Tv=N(()=>{tA();so();vv();oo();Jc()});function V0(e){return e>=55296&&e<=57343}function wv(e){return e>=56320&&e<=57343}function Iv(e,t){return(e-55296)*1024+9216+t}function q0(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function z0(e){return e>=64976&&e<=65007||bS.has(e)}var bS,St,x,mn,J0=N(()=>{bS=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),St="\uFFFD";(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(x||(x={}));mn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"}});var $,ul=N(()=>{(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})($||($={}))});var ES,j0,Cv=N(()=>{J0();ul();ES=65536,j0=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=ES,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){let{line:n,col:i,offset:u}=this,o=i+r,l=u+r;return{code:t,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:l,endOffset:l}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){let r=this.html.charCodeAt(this.pos+1);if(wv(r))return this.pos++,this._addGap(),Iv(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,x.EOF;return this._err($.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){let r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;let n=this.html.charCodeAt(r);return n===x.CARRIAGE_RETURN?x.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;let t=this.html.charCodeAt(this.pos);return t===x.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,x.LINE_FEED):t===x.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,V0(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===x.LINE_FEED||t===x.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){q0(t)?this._err($.controlCharacterInInputStream):z0(t)&&this._err($.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}});function Z0(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}var ut,X0=N(()=>{(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ut||(ut={}))});var ed,ZA=N(()=>{ed=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)))});var XA=N(()=>{});function tg(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=vS.get(e))!==null&&t!==void 0?t:e}var eg,vS,Sv,rg=N(()=>{vS=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Sv=(eg=String.fromCodePoint)!==null&&eg!==void 0?eg:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t}});function ng(e){return e>=Cr.ZERO&&e<=Cr.NINE}function wS(e){return e>=Cr.UPPER_A&&e<=Cr.UPPER_F||e>=Cr.LOWER_A&&e<=Cr.LOWER_F}function IS(e){return e>=Cr.UPPER_A&&e<=Cr.UPPER_Z||e>=Cr.LOWER_A&&e<=Cr.LOWER_Z||ng(e)}function CS(e){return e===Cr.EQUALS||IS(e)}function SS(e,t,r,n){let i=(t&ba.BRANCH_LENGTH)>>7,u=t&ba.JUMP_TABLE;if(i===0)return u!==0&&n===u?r:-1;if(u){let d=n-u;return d<0||d>=i?-1:e[r+d]-1}let o=r,l=o+i-1;for(;o<=l;){let d=o+l>>>1,p=e[d];if(p<n)o=d+1;else if(p>n)l=d-1;else return e[d+i]}return-1}var Cr,TS,ba,Ir,iu,td,Nv=N(()=>{ZA();XA();rg();ZA();XA();rg();(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Cr||(Cr={}));TS=32;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ba||(ba={}));(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ir||(Ir={}));(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(iu||(iu={}));td=class{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Ir.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=iu.Strict}startEntity(t){this.decodeMode=t,this.state=Ir.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Ir.EntityStart:return t.charCodeAt(r)===Cr.NUM?(this.state=Ir.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Ir.NamedEntity,this.stateNamedEntity(t,r));case Ir.NumericStart:return this.stateNumericStart(t,r);case Ir.NumericDecimal:return this.stateNumericDecimal(t,r);case Ir.NumericHex:return this.stateNumericHex(t,r);case Ir.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|TS)===Cr.LOWER_X?(this.state=Ir.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Ir.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){let u=n-r;this.result=this.result*Math.pow(i,u)+Number.parseInt(t.substr(r,u),i),this.consumed+=u}}stateNumericHex(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(ng(i)||wS(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(ng(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Cr.SEMI)this.consumed+=1;else if(this.decodeMode===iu.Strict)return 0;return this.emitCodePoint(tg(this.result),this.consumed),this.errors&&(t!==Cr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:n}=this,i=n[this.treeIndex],u=(i&ba.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let o=t.charCodeAt(r);if(this.treeIndex=SS(n,i,this.treeIndex+Math.max(1,u),o),this.treeIndex<0)return this.result===0||this.decodeMode===iu.Attribute&&(u===0||CS(o))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],u=(i&ba.VALUE_LENGTH)>>14,u!==0){if(o===Cr.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==iu.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:n}=this,i=(n[r]&ba.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){let{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~ba.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case Ir.NamedEntity:return this.result!==0&&(this.decodeMode!==iu.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ir.NumericDecimal:return this.emitNumericEntity(0,2);case Ir.NumericHex:return this.emitNumericEntity(0,3);case Ir.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ir.EntityStart:return 0}}}});var rd={};gn(rd,{ATTRS:()=>uu,DOCUMENT_MODE:()=>nn,NS:()=>J,NUMBERED_HEADERS:()=>bo,SPECIAL_ELEMENTS:()=>ig,TAG_ID:()=>c,TAG_NAMES:()=>P,getTagID:()=>_a,hasUnescapedText:()=>ug});function _a(e){var t;return(t=NS.get(e))!==null&&t!==void 0?t:c.UNKNOWN}function ug(e,t){return DS.has(e)||t&&e===P.NOSCRIPT}var J,uu,nn,P,c,NS,te,ig,bo,DS,Lu=N(()=>{(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(J||(J={}));(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(uu||(uu={}));(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(nn||(nn={}));(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(P||(P={}));(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(c||(c={}));NS=new Map([[P.A,c.A],[P.ADDRESS,c.ADDRESS],[P.ANNOTATION_XML,c.ANNOTATION_XML],[P.APPLET,c.APPLET],[P.AREA,c.AREA],[P.ARTICLE,c.ARTICLE],[P.ASIDE,c.ASIDE],[P.B,c.B],[P.BASE,c.BASE],[P.BASEFONT,c.BASEFONT],[P.BGSOUND,c.BGSOUND],[P.BIG,c.BIG],[P.BLOCKQUOTE,c.BLOCKQUOTE],[P.BODY,c.BODY],[P.BR,c.BR],[P.BUTTON,c.BUTTON],[P.CAPTION,c.CAPTION],[P.CENTER,c.CENTER],[P.CODE,c.CODE],[P.COL,c.COL],[P.COLGROUP,c.COLGROUP],[P.DD,c.DD],[P.DESC,c.DESC],[P.DETAILS,c.DETAILS],[P.DIALOG,c.DIALOG],[P.DIR,c.DIR],[P.DIV,c.DIV],[P.DL,c.DL],[P.DT,c.DT],[P.EM,c.EM],[P.EMBED,c.EMBED],[P.FIELDSET,c.FIELDSET],[P.FIGCAPTION,c.FIGCAPTION],[P.FIGURE,c.FIGURE],[P.FONT,c.FONT],[P.FOOTER,c.FOOTER],[P.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[P.FORM,c.FORM],[P.FRAME,c.FRAME],[P.FRAMESET,c.FRAMESET],[P.H1,c.H1],[P.H2,c.H2],[P.H3,c.H3],[P.H4,c.H4],[P.H5,c.H5],[P.H6,c.H6],[P.HEAD,c.HEAD],[P.HEADER,c.HEADER],[P.HGROUP,c.HGROUP],[P.HR,c.HR],[P.HTML,c.HTML],[P.I,c.I],[P.IMG,c.IMG],[P.IMAGE,c.IMAGE],[P.INPUT,c.INPUT],[P.IFRAME,c.IFRAME],[P.KEYGEN,c.KEYGEN],[P.LABEL,c.LABEL],[P.LI,c.LI],[P.LINK,c.LINK],[P.LISTING,c.LISTING],[P.MAIN,c.MAIN],[P.MALIGNMARK,c.MALIGNMARK],[P.MARQUEE,c.MARQUEE],[P.MATH,c.MATH],[P.MENU,c.MENU],[P.META,c.META],[P.MGLYPH,c.MGLYPH],[P.MI,c.MI],[P.MO,c.MO],[P.MN,c.MN],[P.MS,c.MS],[P.MTEXT,c.MTEXT],[P.NAV,c.NAV],[P.NOBR,c.NOBR],[P.NOFRAMES,c.NOFRAMES],[P.NOEMBED,c.NOEMBED],[P.NOSCRIPT,c.NOSCRIPT],[P.OBJECT,c.OBJECT],[P.OL,c.OL],[P.OPTGROUP,c.OPTGROUP],[P.OPTION,c.OPTION],[P.P,c.P],[P.PARAM,c.PARAM],[P.PLAINTEXT,c.PLAINTEXT],[P.PRE,c.PRE],[P.RB,c.RB],[P.RP,c.RP],[P.RT,c.RT],[P.RTC,c.RTC],[P.RUBY,c.RUBY],[P.S,c.S],[P.SCRIPT,c.SCRIPT],[P.SEARCH,c.SEARCH],[P.SECTION,c.SECTION],[P.SELECT,c.SELECT],[P.SOURCE,c.SOURCE],[P.SMALL,c.SMALL],[P.SPAN,c.SPAN],[P.STRIKE,c.STRIKE],[P.STRONG,c.STRONG],[P.STYLE,c.STYLE],[P.SUB,c.SUB],[P.SUMMARY,c.SUMMARY],[P.SUP,c.SUP],[P.TABLE,c.TABLE],[P.TBODY,c.TBODY],[P.TEMPLATE,c.TEMPLATE],[P.TEXTAREA,c.TEXTAREA],[P.TFOOT,c.TFOOT],[P.TD,c.TD],[P.TH,c.TH],[P.THEAD,c.THEAD],[P.TITLE,c.TITLE],[P.TR,c.TR],[P.TRACK,c.TRACK],[P.TT,c.TT],[P.U,c.U],[P.UL,c.UL],[P.SVG,c.SVG],[P.VAR,c.VAR],[P.WBR,c.WBR],[P.XMP,c.XMP]]);te=c,ig={[J.HTML]:new Set([te.ADDRESS,te.APPLET,te.AREA,te.ARTICLE,te.ASIDE,te.BASE,te.BASEFONT,te.BGSOUND,te.BLOCKQUOTE,te.BODY,te.BR,te.BUTTON,te.CAPTION,te.CENTER,te.COL,te.COLGROUP,te.DD,te.DETAILS,te.DIR,te.DIV,te.DL,te.DT,te.EMBED,te.FIELDSET,te.FIGCAPTION,te.FIGURE,te.FOOTER,te.FORM,te.FRAME,te.FRAMESET,te.H1,te.H2,te.H3,te.H4,te.H5,te.H6,te.HEAD,te.HEADER,te.HGROUP,te.HR,te.HTML,te.IFRAME,te.IMG,te.INPUT,te.LI,te.LINK,te.LISTING,te.MAIN,te.MARQUEE,te.MENU,te.META,te.NAV,te.NOEMBED,te.NOFRAMES,te.NOSCRIPT,te.OBJECT,te.OL,te.P,te.PARAM,te.PLAINTEXT,te.PRE,te.SCRIPT,te.SECTION,te.SELECT,te.SOURCE,te.STYLE,te.SUMMARY,te.TABLE,te.TBODY,te.TD,te.TEMPLATE,te.TEXTAREA,te.TFOOT,te.TH,te.THEAD,te.TITLE,te.TR,te.TRACK,te.UL,te.WBR,te.XMP]),[J.MATHML]:new Set([te.MI,te.MO,te.MN,te.MS,te.MTEXT,te.ANNOTATION_XML]),[J.SVG]:new Set([te.TITLE,te.FOREIGN_OBJECT,te.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},bo=new Set([te.H1,te.H2,te.H3,te.H4,te.H5,te.H6]),DS=new Set([P.STYLE,P.SCRIPT,P.XMP,P.IFRAME,P.NOEMBED,P.NOFRAMES,P.PLAINTEXT])});function kS(e){return e>=x.DIGIT_0&&e<=x.DIGIT_9}function al(e){return e>=x.LATIN_CAPITAL_A&&e<=x.LATIN_CAPITAL_Z}function RS(e){return e>=x.LATIN_SMALL_A&&e<=x.LATIN_SMALL_Z}function Ea(e){return RS(e)||al(e)}function Dv(e){return Ea(e)||kS(e)}function nd(e){return e+32}function Rv(e){return e===x.SPACE||e===x.LINE_FEED||e===x.TABULATION||e===x.FORM_FEED}function kv(e){return Rv(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN}function OS(e){return e===x.NULL?$.nullCharacterReference:e>1114111?$.characterReferenceOutsideUnicodeRange:V0(e)?$.surrogateCharacterReference:z0(e)?$.noncharacterCharacterReference:q0(e)||e===x.CARRIAGE_RETURN?$.controlCharacterReference:null}var w,un,sl,ag=N(()=>{Cv();J0();X0();Nv();ul();Lu();(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(w||(w={}));un={DATA:w.DATA,RCDATA:w.RCDATA,RAWTEXT:w.RAWTEXT,SCRIPT_DATA:w.SCRIPT_DATA,PLAINTEXT:w.PLAINTEXT,CDATA_SECTION:w.CDATA_SECTION};sl=class{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=w.DATA,this.returnState=w.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new j0(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new td(ed,(n,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err($.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err($.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{let i=OS(n);i&&this._err(i,1)}}:void 0)}_err(t,r=0){var n,i;(i=(n=this.handler).onParseError)===null||i===void 0||i.call(n,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ut.START_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ut.END_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ut.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ut.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;let n=this.currentToken;if(Z0(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){let i=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err($.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let t=this.currentToken;this.prepareToken(t),t.tagID=_a(t.tagName),t.type===ut.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err($.endTagWithAttributes),t.selfClosing&&this._err($.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ut.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ut.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ut.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ut.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){let r=Rv(t)?ut.WHITESPACE_CHARACTER:t===x.NULL?ut.NULL_CHARACTER:ut.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ut.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=w.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?iu.Attribute:iu.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===w.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case w.DATA:{this._stateData(t);break}case w.RCDATA:{this._stateRcdata(t);break}case w.RAWTEXT:{this._stateRawtext(t);break}case w.SCRIPT_DATA:{this._stateScriptData(t);break}case w.PLAINTEXT:{this._statePlaintext(t);break}case w.TAG_OPEN:{this._stateTagOpen(t);break}case w.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case w.TAG_NAME:{this._stateTagName(t);break}case w.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case w.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case w.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case w.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case w.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case w.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case w.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case w.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case w.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case w.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case w.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case w.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case w.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case w.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case w.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case w.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case w.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case w.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case w.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case w.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case w.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case w.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case w.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case w.BOGUS_COMMENT:{this._stateBogusComment(t);break}case w.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case w.COMMENT_START:{this._stateCommentStart(t);break}case w.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case w.COMMENT:{this._stateComment(t);break}case w.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case w.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case w.COMMENT_END:{this._stateCommentEnd(t);break}case w.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case w.DOCTYPE:{this._stateDoctype(t);break}case w.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case w.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case w.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case w.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case w.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case w.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case w.CDATA_SECTION:{this._stateCdataSection(t);break}case w.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case w.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case w.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case w.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case x.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err($.unexpectedNullCharacter),this._emitCodePoint(t);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case x.AMPERSAND:{this._startCharacterReference();break}case x.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case x.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(St);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case x.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case x.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(St);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case x.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(St);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case x.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(St);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ea(t))this._createStartTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case x.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case x.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case x.QUESTION_MARK:{this._err($.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case x.EOF:{this._err($.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=w.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ea(t))this._createEndTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case x.GREATER_THAN_SIGN:{this._err($.missingEndTagName),this.state=w.DATA;break}case x.EOF:{this._err($.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.BEFORE_ATTRIBUTE_NAME;break}case x.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case x.NULL:{this._err($.unexpectedNullCharacter),r.tagName+=St;break}case x.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(al(t)?nd(t):t)}}_stateRcdataLessThanSign(t){t===x.SOLIDUS?this.state=w.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ea(t)?(this.state=w.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=w.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=w.BEFORE_ATTRIBUTE_NAME,!1;case x.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=w.SELF_CLOSING_START_TAG,!1;case x.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=w.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===x.SOLIDUS?this.state=w.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ea(t)?(this.state=w.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case x.SOLIDUS:{this.state=w.SCRIPT_DATA_END_TAG_OPEN;break}case x.EXCLAMATION_MARK:{this.state=w.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=w.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ea(t)?(this.state=w.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===x.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===x.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case x.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(St);break}case x.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case x.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.NULL:{this._err($.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(St);break}case x.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case x.HYPHEN_MINUS:{this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case x.NULL:{this._err($.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(St);break}case x.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===x.SOLIDUS?this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ea(t)?(this._emitChars("<"),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ea(t)?(this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(mn.SCRIPT,!1)&&kv(this.preprocessor.peek(mn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<mn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case x.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(St);break}case x.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case x.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.NULL:{this._err($.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(St);break}case x.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case x.HYPHEN_MINUS:{this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case x.NULL:{this._err($.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(St);break}case x.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===x.SOLIDUS?(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(mn.SCRIPT,!1)&&kv(this.preprocessor.peek(mn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<mn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.SOLIDUS:case x.GREATER_THAN_SIGN:case x.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case x.EQUALS_SIGN:{this._err($.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=w.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:case x.SOLIDUS:case x.GREATER_THAN_SIGN:case x.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case x.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case x.QUOTATION_MARK:case x.APOSTROPHE:case x.LESS_THAN_SIGN:{this._err($.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case x.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.name+=St;break}default:this.currentAttr.name+=String.fromCodePoint(al(t)?nd(t):t)}}_stateAfterAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case x.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err($.missingAttributeValue),this.state=w.DATA,this.emitCurrentTagToken();break}default:this.state=w.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case x.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=St;break}case x.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case x.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=St;break}case x.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case x.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=St;break}case x.QUOTATION_MARK:case x.APOSTROPHE:case x.LESS_THAN_SIGN:case x.EQUALS_SIGN:case x.GRAVE_ACCENT:{this._err($.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case x.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case x.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case x.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.missingWhitespaceBetweenAttributes),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case x.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.unexpectedSolidusInTag),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case x.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case x.NULL:{this._err($.unexpectedNullCharacter),r.data+=St;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(mn.DASH_DASH,!0)?(this._createCommentToken(mn.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch(mn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(mn.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch(mn.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err($.cdataInHtmlContent),this._createCommentToken(mn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=w.BOGUS_COMMENT):this._ensureHibernation()||(this._err($.incorrectlyOpenedComment),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case x.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case x.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=w.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case x.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(r);break}case x.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case x.LESS_THAN_SIGN:{r.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case x.NULL:{this._err($.unexpectedNullCharacter),r.data+=St;break}case x.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case x.EXCLAMATION_MARK:{r.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case x.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===x.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===x.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==x.GREATER_THAN_SIGN&&t!==x.EOF&&this._err($.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case x.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case x.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case x.HYPHEN_MINUS:{r.data+="-";break}case x.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{r.data+="--!",this.state=w.COMMENT_END_DASH;break}case x.GREATER_THAN_SIGN:{this._err($.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(r);break}case x.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=w.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case x.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingWhitespaceBeforeDoctypeName),this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(al(t))this._createDoctypeToken(String.fromCharCode(nd(t))),this.state=w.DOCTYPE_NAME;else switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.NULL:{this._err($.unexpectedNullCharacter),this._createDoctypeToken(St),this.state=w.DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this._err($.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=w.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.NULL:{this._err($.unexpectedNullCharacter),r.name+=St;break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(al(t)?nd(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(mn.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(mn.SYSTEM,!1)?this.state=w.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err($.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case x.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.NULL:{this._err($.unexpectedNullCharacter),r.publicId+=St;break}case x.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case x.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.NULL:{this._err($.unexpectedNullCharacter),r.publicId+=St;break}case x.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.QUOTATION_MARK:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case x.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.NULL:{this._err($.unexpectedNullCharacter),r.systemId+=St;break}case x.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case x.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.NULL:{this._err($.unexpectedNullCharacter),r.systemId+=St;break}case x.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.NULL:{this._err($.unexpectedNullCharacter);break}case x.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case x.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case x.EOF:{this._err($.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===x.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case x.GREATER_THAN_SIGN:{this.state=w.DATA;break}case x.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(x.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Dv(this.preprocessor.peek(1))?w.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Dv(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===x.SEMICOLON&&this._err($.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}});var Fv,Ov,id,BS,LS,Bv,Lv,FS,PS,MS,HS,ud,Pv=N(()=>{Lu();Fv=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),Ov=new Set([...Fv,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),id=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),BS=new Set([...id,c.OL,c.UL]),LS=new Set([...id,c.BUTTON]),Bv=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),Lv=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),FS=new Set([c.TR,c.TEMPLATE,c.HTML]),PS=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),MS=new Set([c.TABLE,c.TEMPLATE,c.HTML]),HS=new Set([c.TD,c.TH]),ud=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=c.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===c.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===J.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){let n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){let i=this._indexOf(t)+1;this.items.splice(i,0,r),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==J.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){let r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){let r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){let n=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(bo,J.HTML)}popUntilTableCellPopped(){this.popUntilPopped(HS,J.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){let n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(MS,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(PS,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(FS,J.HTML)}remove(t){let r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===c.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===c.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){let i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case J.HTML:{if(i===t)return!0;if(r.has(i))return!1;break}case J.SVG:{if(Lv.has(i))return!1;break}case J.MATHML:{if(Bv.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,id)}hasInListItemScope(t){return this.hasInDynamicScope(t,BS)}hasInButtonScope(t){return this.hasInDynamicScope(t,LS)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case J.HTML:{if(bo.has(r))return!0;if(id.has(r))return!1;break}case J.SVG:{if(Lv.has(r))return!1;break}case J.MATHML:{if(Bv.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===J.HTML)switch(this.tagIDs[r]){case t:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===J.HTML)switch(this.tagIDs[r]){case t:return!0;case c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Fv.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Ov.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Ov.has(this.currentTagId);)this.pop()}}});var Bi,Mv,ad,Hv=N(()=>{(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Bi||(Bi={}));Mv={type:Bi.Marker},ad=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let n=[],i=r.length,u=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let l=0;l<this.entries.length;l++){let d=this.entries[l];if(d.type===Bi.Marker)break;let{element:p}=d;if(this.treeAdapter.getTagName(p)===u&&this.treeAdapter.getNamespaceURI(p)===o){let A=this.treeAdapter.getAttrList(p);A.length===i&&n.push({idx:l,attrs:A})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<3)return;let i=new Map(r.map(o=>[o.name,o.value])),u=0;for(let o=0;o<n.length;o++){let l=n[o];l.attrs.every(d=>i.get(d.name)===d.value)&&(u+=1,u>=3&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(Mv)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Bi.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Bi.Element,element:t,token:r})}removeEntry(t){let r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){let t=this.entries.indexOf(Mv);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){let r=this.entries.find(n=>n.type===Bi.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===Bi.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Bi.Element&&r.element===t)}}});var ai,sd=N(()=>{Lu();ai={createDocument(){return{nodeName:"#document",mode:nn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){let i=e.childNodes.find(u=>u.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{let u={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};ai.appendChild(e,u)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(ai.isTextNode(r)){r.value+=t;return}}ai.appendChild(e,ai.createTextNode(t))},insertTextBefore(e,t,r){let n=e.childNodes[e.childNodes.indexOf(r)-1];n&&ai.isTextNode(n)?n.value+=t:ai.insertBefore(e,ai.createTextNode(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}}});function Uv(e,t){return t.some(r=>e.startsWith(r))}function Qv(e){return e.name===$v&&e.publicId===null&&(e.systemId===null||e.systemId===US)}function Wv(e){if(e.name!==$v)return nn.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===$S)return nn.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),KS.has(r))return nn.QUIRKS;let n=t===null?YS:Yv;if(Uv(r,n))return nn.QUIRKS;if(n=t===null?Kv:QS,Uv(r,n))return nn.LIMITED_QUIRKS}return nn.NO_QUIRKS}var $v,US,$S,Yv,YS,KS,Kv,QS,Gv=N(()=>{Lu();$v="html",US="about:legacy-compat",$S="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Yv=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],YS=[...Yv,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],KS=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Kv=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],QS=[...Kv,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]});function qv(e){let t=e.tagID;return t===c.FONT&&e.attrs.some(({name:n})=>n===uu.COLOR||n===uu.SIZE||n===uu.FACE)||jS.has(t)}function sg(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===GS){e.attrs[t].name=VS;break}}function og(e){for(let t=0;t<e.attrs.length;t++){let r=qS.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function od(e){for(let t=0;t<e.attrs.length;t++){let r=zS.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function zv(e){let t=JS.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=_a(e.tagName))}function ZS(e,t){return t===J.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function XS(e,t,r){if(t===J.MATHML&&e===c.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===uu.ENCODING){let i=r[n].value.toLowerCase();return i===Vv.TEXT_HTML||i===Vv.APPLICATION_XML}}return t===J.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function Jv(e,t,r,n){return(!n||n===J.HTML)&&XS(e,t,r)||(!n||n===J.MATHML)&&ZS(e,t)}var Vv,GS,VS,qS,zS,JS,jS,cg=N(()=>{Lu();Vv={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},GS="definitionurl",VS="definitionURL",qS=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),zS=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:J.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:J.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:J.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:J.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:J.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:J.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:J.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:J.XML}],["xml:space",{prefix:"xml",name:"space",namespace:J.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:J.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:J.XMLNS}]]),JS=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),jS=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR])});function i8(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):ay(e,t),r}function u8(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){let i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function a8(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let u=0,o=i;o!==r;u++,o=i){i=e.openElements.getCommonAncestor(o);let l=e.activeFormattingElements.getElementEntry(o),d=l&&u>=r8;!l||d?(d&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(o)):(o=s8(e,l),n===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(o,n),n=o)}return n}function s8(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function o8(e,t,r){let n=e.treeAdapter.getTagName(t),i=_a(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{let u=e.treeAdapter.getNamespaceURI(t);i===c.TEMPLATE&&u===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function c8(e,t,r){let n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,u=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,u),e.treeAdapter.appendChild(t,u),e.activeFormattingElements.insertElementAfterBookmark(u,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,u,i.tagID)}function hg(e,t){for(let r=0;r<t8;r++){let n=i8(e,t);if(!n)break;let i=u8(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;let u=a8(e,i,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(u),o&&o8(e,o,u),c8(e,i,n)}}function fg(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function l8(e,t){e._appendCommentNode(t,e.openElements.items[0])}function f8(e,t){e._appendCommentNode(t,e.document)}function pg(e,t){if(e.stopped=!0,t.location){let r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let u=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(u);o&&!o.endTag&&e._setEndLocation(u,t)}}}}function d8(e,t){e._setDocumentType(t);let r=t.forceQuirks?nn.QUIRKS:Wv(t);Qv(t)||e._err(t,$.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=C.BEFORE_HTML}function ol(e,t){e._err(t,$.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,nn.QUIRKS),e.insertionMode=C.BEFORE_HTML,e._processToken(t)}function h8(e,t){t.tagID===c.HTML?(e._insertElement(t,J.HTML),e.insertionMode=C.BEFORE_HEAD):ll(e,t)}function p8(e,t){let r=t.tagID;(r===c.HTML||r===c.HEAD||r===c.BODY||r===c.BR)&&ll(e,t)}function ll(e,t){e._insertFakeRootElement(),e.insertionMode=C.BEFORE_HEAD,e._processToken(t)}function m8(e,t){switch(t.tagID){case c.HTML:{an(e,t);break}case c.HEAD:{e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=C.IN_HEAD;break}default:fl(e,t)}}function A8(e,t){let r=t.tagID;r===c.HEAD||r===c.BODY||r===c.HTML||r===c.BR?fl(e,t):e._err(t,$.endTagWithoutMatchingOpenElement)}function fl(e,t){e._insertFakeElement(P.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=C.IN_HEAD,e._processToken(t)}function Li(e,t){switch(t.tagID){case c.HTML:{an(e,t);break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case c.TITLE:{e._switchToTextParsing(t,un.RCDATA);break}case c.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,un.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=C.IN_HEAD_NO_SCRIPT);break}case c.NOFRAMES:case c.STYLE:{e._switchToTextParsing(t,un.RAWTEXT);break}case c.SCRIPT:{e._switchToTextParsing(t,un.SCRIPT_DATA);break}case c.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=C.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(C.IN_TEMPLATE);break}case c.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:dl(e,t)}}function g8(e,t){switch(t.tagID){case c.HEAD:{e.openElements.pop(),e.insertionMode=C.AFTER_HEAD;break}case c.BODY:case c.BR:case c.HTML:{dl(e,t);break}case c.TEMPLATE:{vs(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function vs(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,$.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,$.endTagWithoutMatchingOpenElement)}function dl(e,t){e.openElements.pop(),e.insertionMode=C.AFTER_HEAD,e._processToken(t)}function b8(e,t){switch(t.tagID){case c.HTML:{an(e,t);break}case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:{Li(e,t);break}case c.NOSCRIPT:{e._err(t,$.nestedNoscriptInHead);break}default:hl(e,t)}}function _8(e,t){switch(t.tagID){case c.NOSCRIPT:{e.openElements.pop(),e.insertionMode=C.IN_HEAD;break}case c.BR:{hl(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function hl(e,t){let r=t.type===ut.EOF?$.openElementsLeftAfterEof:$.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=C.IN_HEAD,e._processToken(t)}function E8(e,t){switch(t.tagID){case c.HTML:{an(e,t);break}case c.BODY:{e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=C.IN_BODY;break}case c.FRAMESET:{e._insertElement(t,J.HTML),e.insertionMode=C.IN_FRAMESET;break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{e._err(t,$.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),Li(e,t),e.openElements.remove(e.headElement);break}case c.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:pl(e,t)}}function x8(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:{pl(e,t);break}case c.TEMPLATE:{vs(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function pl(e,t){e._insertFakeElement(P.BODY,c.BODY),e.insertionMode=C.IN_BODY,dd(e,t)}function dd(e,t){switch(t.type){case ut.CHARACTER:{ny(e,t);break}case ut.WHITESPACE_CHARACTER:{ry(e,t);break}case ut.COMMENT:{fg(e,t);break}case ut.START_TAG:{an(e,t);break}case ut.END_TAG:{hd(e,t);break}case ut.EOF:{sy(e,t);break}default:}}function ry(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ny(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function v8(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function y8(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function T8(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=C.IN_FRAMESET)}function w8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function I8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&bo.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function C8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function S8(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,J.HTML),r||(e.formElement=e.openElements.current))}function N8(e,t){e.framesetOk=!1;let r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){let i=e.openElements.tagIDs[n];if(r===c.LI&&i===c.LI||(r===c.DD||r===c.DT)&&(i===c.DD||i===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==c.ADDRESS&&i!==c.DIV&&i!==c.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function D8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=un.PLAINTEXT}function k8(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function R8(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(P.A);r&&(hg(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function O8(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function B8(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&(hg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function L8(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function F8(e,t){e.treeAdapter.getDocumentMode(e.document)!==nn.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=C.IN_TABLE}function iy(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function uy(e){let t=Z0(e,uu.TYPE);return t!=null&&t.toLowerCase()===e8}function P8(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),uy(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function M8(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function H8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function U8(e,t){t.tagName=P.IMG,t.tagID=c.IMG,iy(e,t)}function $8(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=un.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=C.TEXT}function Y8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,un.RAWTEXT)}function K8(e,t){e.framesetOk=!1,e._switchToTextParsing(t,un.RAWTEXT)}function Xv(e,t){e._switchToTextParsing(t,un.RAWTEXT)}function Q8(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===C.IN_TABLE||e.insertionMode===C.IN_CAPTION||e.insertionMode===C.IN_TABLE_BODY||e.insertionMode===C.IN_ROW||e.insertionMode===C.IN_CELL?C.IN_SELECT_IN_TABLE:C.IN_SELECT}function W8(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function G8(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function V8(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,J.HTML)}function q8(e,t){e._reconstructActiveFormattingElements(),sg(t),od(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function z8(e,t){e._reconstructActiveFormattingElements(),og(t),od(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function ey(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function an(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:{O8(e,t);break}case c.A:{R8(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{I8(e,t);break}case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{w8(e,t);break}case c.LI:case c.DD:case c.DT:{N8(e,t);break}case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:{iy(e,t);break}case c.HR:{H8(e,t);break}case c.RB:case c.RTC:{G8(e,t);break}case c.RT:case c.RP:{V8(e,t);break}case c.PRE:case c.LISTING:{C8(e,t);break}case c.XMP:{Y8(e,t);break}case c.SVG:{z8(e,t);break}case c.HTML:{v8(e,t);break}case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:{Li(e,t);break}case c.BODY:{y8(e,t);break}case c.FORM:{S8(e,t);break}case c.NOBR:{B8(e,t);break}case c.MATH:{q8(e,t);break}case c.TABLE:{F8(e,t);break}case c.INPUT:{P8(e,t);break}case c.PARAM:case c.TRACK:case c.SOURCE:{M8(e,t);break}case c.IMAGE:{U8(e,t);break}case c.BUTTON:{k8(e,t);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{L8(e,t);break}case c.IFRAME:{K8(e,t);break}case c.SELECT:{Q8(e,t);break}case c.OPTION:case c.OPTGROUP:{W8(e,t);break}case c.NOEMBED:case c.NOFRAMES:{Xv(e,t);break}case c.FRAMESET:{T8(e,t);break}case c.TEXTAREA:{$8(e,t);break}case c.NOSCRIPT:{e.options.scriptingEnabled?Xv(e,t):ey(e,t);break}case c.PLAINTEXT:{D8(e,t);break}case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:ey(e,t)}}function J8(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=C.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function j8(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=C.AFTER_BODY,my(e,t))}function Z8(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function X8(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):r&&e.openElements.remove(r))}function eN(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(P.P,c.P),e._closePElement()}function tN(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function rN(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function nN(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function iN(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function uN(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(P.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function ay(e,t){let r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){let u=e.openElements.items[i],o=e.openElements.tagIDs[i];if(n===o&&(n!==c.UNKNOWN||e.treeAdapter.getTagName(u)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(u,o))break}}function hd(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:{hg(e,t);break}case c.P:{eN(e);break}case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{Z8(e,t);break}case c.LI:{tN(e);break}case c.DD:case c.DT:{rN(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{nN(e);break}case c.BR:{uN(e);break}case c.BODY:{J8(e,t);break}case c.HTML:{j8(e,t);break}case c.FORM:{X8(e);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{iN(e,t);break}case c.TEMPLATE:{vs(e,t);break}default:ay(e,t)}}function sy(e,t){e.tmplInsertionModeStack.length>0?py(e,t):pg(e,t)}function aN(e,t){var r;t.tagID===c.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function sN(e,t){e._err(t,$.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function lg(e,t){if(e.openElements.currentTagId!==void 0&&ty.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=C.IN_TABLE_TEXT,t.type){case ut.CHARACTER:{cy(e,t);break}case ut.WHITESPACE_CHARACTER:{oy(e,t);break}}else Al(e,t)}function oN(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=C.IN_CAPTION}function cN(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=C.IN_COLUMN_GROUP}function lN(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.COLGROUP,c.COLGROUP),e.insertionMode=C.IN_COLUMN_GROUP,mg(e,t)}function fN(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=C.IN_TABLE_BODY}function dN(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.TBODY,c.TBODY),e.insertionMode=C.IN_TABLE_BODY,pd(e,t)}function hN(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function pN(e,t){uy(t)?e._appendElement(t,J.HTML):Al(e,t),t.ackSelfClosing=!0}function mN(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Eo(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:{dN(e,t);break}case c.STYLE:case c.SCRIPT:case c.TEMPLATE:{Li(e,t);break}case c.COL:{lN(e,t);break}case c.FORM:{mN(e,t);break}case c.TABLE:{hN(e,t);break}case c.TBODY:case c.TFOOT:case c.THEAD:{fN(e,t);break}case c.INPUT:{pN(e,t);break}case c.CAPTION:{oN(e,t);break}case c.COLGROUP:{cN(e,t);break}default:Al(e,t)}}function ml(e,t){switch(t.tagID){case c.TABLE:{e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break}case c.TEMPLATE:{vs(e,t);break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:Al(e,t)}}function Al(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,dd(e,t),e.fosterParentingEnabled=r}function oy(e,t){e.pendingCharacterTokens.push(t)}function cy(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function cl(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Al(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function AN(e,t){let r=t.tagID;ly.has(r)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_TABLE,Eo(e,t)):an(e,t)}function gN(e,t){let r=t.tagID;switch(r){case c.CAPTION:case c.TABLE:{e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_TABLE,r===c.TABLE&&ml(e,t));break}case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:hd(e,t)}}function mg(e,t){switch(t.tagID){case c.HTML:{an(e,t);break}case c.COL:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case c.TEMPLATE:{Li(e,t);break}default:ld(e,t)}}function bN(e,t){switch(t.tagID){case c.COLGROUP:{e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=C.IN_TABLE);break}case c.TEMPLATE:{vs(e,t);break}case c.COL:break;default:ld(e,t)}}function ld(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=C.IN_TABLE,e._processToken(t))}function pd(e,t){switch(t.tagID){case c.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,J.HTML),e.insertionMode=C.IN_ROW;break}case c.TH:case c.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(P.TR,c.TR),e.insertionMode=C.IN_ROW,md(e,t);break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE,Eo(e,t));break}default:Eo(e,t)}}function dg(e,t){let r=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE);break}case c.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE,ml(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:ml(e,t)}}function md(e,t){switch(t.tagID){case c.TH:case c.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,J.HTML),e.insertionMode=C.IN_CELL,e.activeFormattingElements.insertMarker();break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,pd(e,t));break}default:Eo(e,t)}}function fy(e,t){switch(t.tagID){case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY);break}case c.TABLE:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,dg(e,t));break}case c.TBODY:case c.TFOOT:case c.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,dg(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:ml(e,t)}}function _N(e,t){let r=t.tagID;ly.has(r)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),md(e,t)):an(e,t)}function EN(e,t){let r=t.tagID;switch(r){case c.TD:case c.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_ROW);break}case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),fy(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:hd(e,t)}}function dy(e,t){switch(t.tagID){case c.HTML:{an(e,t);break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,J.HTML);break}case c.OPTGROUP:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,J.HTML);break}case c.HR:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break}case c.SCRIPT:case c.TEMPLATE:{Li(e,t);break}default:}}function hy(e,t){switch(t.tagID){case c.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break}case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break}case c.TEMPLATE:{vs(e,t);break}default:}}function xN(e,t){let r=t.tagID;r===c.CAPTION||r===c.TABLE||r===c.TBODY||r===c.TFOOT||r===c.THEAD||r===c.TR||r===c.TD||r===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):dy(e,t)}function vN(e,t){let r=t.tagID;r===c.CAPTION||r===c.TABLE||r===c.TBODY||r===c.TFOOT||r===c.THEAD||r===c.TR||r===c.TD||r===c.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):hy(e,t)}function yN(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{Li(e,t);break}case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.tmplInsertionModeStack[0]=C.IN_TABLE,e.insertionMode=C.IN_TABLE,Eo(e,t);break}case c.COL:{e.tmplInsertionModeStack[0]=C.IN_COLUMN_GROUP,e.insertionMode=C.IN_COLUMN_GROUP,mg(e,t);break}case c.TR:{e.tmplInsertionModeStack[0]=C.IN_TABLE_BODY,e.insertionMode=C.IN_TABLE_BODY,pd(e,t);break}case c.TD:case c.TH:{e.tmplInsertionModeStack[0]=C.IN_ROW,e.insertionMode=C.IN_ROW,md(e,t);break}default:e.tmplInsertionModeStack[0]=C.IN_BODY,e.insertionMode=C.IN_BODY,an(e,t)}}function TN(e,t){t.tagID===c.TEMPLATE&&vs(e,t)}function py(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):pg(e,t)}function wN(e,t){t.tagID===c.HTML?an(e,t):fd(e,t)}function my(e,t){var r;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=C.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else fd(e,t)}function fd(e,t){e.insertionMode=C.IN_BODY,dd(e,t)}function IN(e,t){switch(t.tagID){case c.HTML:{an(e,t);break}case c.FRAMESET:{e._insertElement(t,J.HTML);break}case c.FRAME:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case c.NOFRAMES:{Li(e,t);break}default:}}function CN(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=C.AFTER_FRAMESET))}function SN(e,t){switch(t.tagID){case c.HTML:{an(e,t);break}case c.NOFRAMES:{Li(e,t);break}default:}}function NN(e,t){t.tagID===c.HTML&&(e.insertionMode=C.AFTER_AFTER_FRAMESET)}function DN(e,t){t.tagID===c.HTML?an(e,t):cd(e,t)}function cd(e,t){e.insertionMode=C.IN_BODY,dd(e,t)}function kN(e,t){switch(t.tagID){case c.HTML:{an(e,t);break}case c.NOFRAMES:{Li(e,t);break}default:}}function RN(e,t){t.chars=St,e._insertCharacters(t)}function ON(e,t){e._insertCharacters(t),e.framesetOk=!1}function Ay(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function BN(e,t){if(qv(t))Ay(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===J.MATHML?sg(t):n===J.SVG&&(zv(t),og(t)),od(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function LN(e,t){if(t.tagID===c.P||t.tagID===c.BR){Ay(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===J.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}var e8,t8,r8,C,n8,ty,Zv,_o,ly,Ag=N(()=>{ag();Pv();Hv();sd();Gv();cg();ul();J0();Lu();X0();e8="hidden",t8=8,r8=3;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(C||(C={}));n8={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ty=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),Zv={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ai,onParseError:null},_o=class{constructor(t,r,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=C.INITIAL,this.originalInsertionMode=C.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Zv,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new sl(this.options,this),this.activeFormattingElements=new ad(this.treeAdapter),this.fragmentContextID=n?_a(this.treeAdapter.getTagName(n)):c.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new ud(this.document,this.treeAdapter,this)}static parse(t,r){let n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){let n={...Zv,...r};t??(t=n.treeAdapter.createElement(P.TEMPLATE,J.HTML,[]));let i=n.treeAdapter.createElement("documentmock",J.HTML,[]),u=new this(n,i,t);return u.fragmentContextID===c.TEMPLATE&&u.tmplInsertionModeStack.unshift(C.IN_TEMPLATE),u._initTokenizerForFragmentParsing(),u._insertFakeRootElement(),u._resetInsertionMode(),u._findFormInFragmentContext(),u}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var i;if(!this.onParseError)return;let u=(i=t.location)!==null&&i!==void 0?i:n8,o={code:r,startLine:u.startLine,startCol:u.startCol,startOffset:u.startOffset,endLine:n?u.startLine:u.endLine,endCol:n?u.startCol:u.endCol,endOffset:n?u.startOffset:u.endOffset};this.onParseError(o)}onItemPush(t,r,n){var i,u;(u=(i=this.treeAdapter).onItemPush)===null||u===void 0||u.call(i,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(n=this.treeAdapter).onItemPop)===null||i===void 0||i.call(n,t,this.openElements.current),r){let u,o;this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,o=this.fragmentContextID):{current:u,currentTagId:o}=this.openElements,this._setContextModes(u,o)}}_setContextModes(t,r){let n=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===J.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,J.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=C.TEXT}switchToPlaintextParsing(){this.insertionMode=C.TEXT,this.originalInsertionMode=C.IN_BODY,this.tokenizer.state=un.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===P.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case c.TITLE:case c.TEXTAREA:{this.tokenizer.state=un.RCDATA;break}case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:{this.tokenizer.state=un.RAWTEXT;break}case c.SCRIPT:{this.tokenizer.state=un.SCRIPT_DATA;break}case c.PLAINTEXT:{this.tokenizer.state=un.PLAINTEXT;break}default:}}_setDocumentType(t){let r=t.name||"",n=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,i),t.location){let o=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,t)}}_appendElement(t,r){let n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){let n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){let n=this.treeAdapter.createElement(t,J.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,J.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(P.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,c.HTML)}_appendCommentNode(t,r){let n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;let i=this.treeAdapter.getChildNodes(r),u=n?i.lastIndexOf(n):i.length,o=i[u-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){let{endLine:d,endCol:p,endOffset:A}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:d,endCol:p,endOffset:A})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){let n=r.location,i=this.treeAdapter.getTagName(t),u=r.type===ut.END_TAG&&i===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,u)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===c.SVG&&this.treeAdapter.getTagName(r)===P.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===J.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===c.MGLYPH||t.tagID===c.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,J.HTML)}_processToken(t){switch(t.type){case ut.CHARACTER:{this.onCharacter(t);break}case ut.NULL_CHARACTER:{this.onNullCharacter(t);break}case ut.COMMENT:{this.onComment(t);break}case ut.DOCTYPE:{this.onDoctype(t);break}case ut.START_TAG:{this._processStartTag(t);break}case ut.END_TAG:{this.onEndTag(t);break}case ut.EOF:{this.onEof(t);break}case ut.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){let i=this.treeAdapter.getNamespaceURI(r),u=this.treeAdapter.getAttrList(r);return Jv(t,i,u,n)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(i=>i.type===Bi.Marker||this.openElements.contains(i.element)),n=r===-1?t-1:r-1;for(let i=n;i>=0;i--){let u=this.activeFormattingElements.entries[i];this._insertElement(u.token,this.treeAdapter.getNamespaceURI(u.element)),u.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=C.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case c.TR:{this.insertionMode=C.IN_ROW;return}case c.TBODY:case c.THEAD:case c.TFOOT:{this.insertionMode=C.IN_TABLE_BODY;return}case c.CAPTION:{this.insertionMode=C.IN_CAPTION;return}case c.COLGROUP:{this.insertionMode=C.IN_COLUMN_GROUP;return}case c.TABLE:{this.insertionMode=C.IN_TABLE;return}case c.BODY:{this.insertionMode=C.IN_BODY;return}case c.FRAMESET:{this.insertionMode=C.IN_FRAMESET;return}case c.SELECT:{this._resetInsertionModeForSelect(t);return}case c.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case c.HTML:{this.insertionMode=this.headElement?C.AFTER_HEAD:C.BEFORE_HEAD;return}case c.TD:case c.TH:{if(t>0){this.insertionMode=C.IN_CELL;return}break}case c.HEAD:{if(t>0){this.insertionMode=C.IN_HEAD;return}break}}this.insertionMode=C.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let n=this.openElements.tagIDs[r];if(n===c.TEMPLATE)break;if(n===c.TABLE){this.insertionMode=C.IN_SELECT_IN_TABLE;return}}this.insertionMode=C.IN_SELECT}_isElementCausesFosterParenting(t){return ty.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case c.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case c.TABLE:{let n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){let n=this.treeAdapter.getNamespaceURI(t);return ig[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ON(this,t);return}switch(this.insertionMode){case C.INITIAL:{ol(this,t);break}case C.BEFORE_HTML:{ll(this,t);break}case C.BEFORE_HEAD:{fl(this,t);break}case C.IN_HEAD:{dl(this,t);break}case C.IN_HEAD_NO_SCRIPT:{hl(this,t);break}case C.AFTER_HEAD:{pl(this,t);break}case C.IN_BODY:case C.IN_CAPTION:case C.IN_CELL:case C.IN_TEMPLATE:{ny(this,t);break}case C.TEXT:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{lg(this,t);break}case C.IN_TABLE_TEXT:{cy(this,t);break}case C.IN_COLUMN_GROUP:{ld(this,t);break}case C.AFTER_BODY:{fd(this,t);break}case C.AFTER_AFTER_BODY:{cd(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){RN(this,t);return}switch(this.insertionMode){case C.INITIAL:{ol(this,t);break}case C.BEFORE_HTML:{ll(this,t);break}case C.BEFORE_HEAD:{fl(this,t);break}case C.IN_HEAD:{dl(this,t);break}case C.IN_HEAD_NO_SCRIPT:{hl(this,t);break}case C.AFTER_HEAD:{pl(this,t);break}case C.TEXT:{this._insertCharacters(t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{lg(this,t);break}case C.IN_COLUMN_GROUP:{ld(this,t);break}case C.AFTER_BODY:{fd(this,t);break}case C.AFTER_AFTER_BODY:{cd(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){fg(this,t);return}switch(this.insertionMode){case C.INITIAL:case C.BEFORE_HTML:case C.BEFORE_HEAD:case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:case C.IN_BODY:case C.IN_TABLE:case C.IN_CAPTION:case C.IN_COLUMN_GROUP:case C.IN_TABLE_BODY:case C.IN_ROW:case C.IN_CELL:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:case C.IN_TEMPLATE:case C.IN_FRAMESET:case C.AFTER_FRAMESET:{fg(this,t);break}case C.IN_TABLE_TEXT:{cl(this,t);break}case C.AFTER_BODY:{l8(this,t);break}case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{f8(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case C.INITIAL:{d8(this,t);break}case C.BEFORE_HEAD:case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:{this._err(t,$.misplacedDoctype);break}case C.IN_TABLE_TEXT:{cl(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,$.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?BN(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case C.INITIAL:{ol(this,t);break}case C.BEFORE_HTML:{h8(this,t);break}case C.BEFORE_HEAD:{m8(this,t);break}case C.IN_HEAD:{Li(this,t);break}case C.IN_HEAD_NO_SCRIPT:{b8(this,t);break}case C.AFTER_HEAD:{E8(this,t);break}case C.IN_BODY:{an(this,t);break}case C.IN_TABLE:{Eo(this,t);break}case C.IN_TABLE_TEXT:{cl(this,t);break}case C.IN_CAPTION:{AN(this,t);break}case C.IN_COLUMN_GROUP:{mg(this,t);break}case C.IN_TABLE_BODY:{pd(this,t);break}case C.IN_ROW:{md(this,t);break}case C.IN_CELL:{_N(this,t);break}case C.IN_SELECT:{dy(this,t);break}case C.IN_SELECT_IN_TABLE:{xN(this,t);break}case C.IN_TEMPLATE:{yN(this,t);break}case C.AFTER_BODY:{wN(this,t);break}case C.IN_FRAMESET:{IN(this,t);break}case C.AFTER_FRAMESET:{SN(this,t);break}case C.AFTER_AFTER_BODY:{DN(this,t);break}case C.AFTER_AFTER_FRAMESET:{kN(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?LN(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case C.INITIAL:{ol(this,t);break}case C.BEFORE_HTML:{p8(this,t);break}case C.BEFORE_HEAD:{A8(this,t);break}case C.IN_HEAD:{g8(this,t);break}case C.IN_HEAD_NO_SCRIPT:{_8(this,t);break}case C.AFTER_HEAD:{x8(this,t);break}case C.IN_BODY:{hd(this,t);break}case C.TEXT:{aN(this,t);break}case C.IN_TABLE:{ml(this,t);break}case C.IN_TABLE_TEXT:{cl(this,t);break}case C.IN_CAPTION:{gN(this,t);break}case C.IN_COLUMN_GROUP:{bN(this,t);break}case C.IN_TABLE_BODY:{dg(this,t);break}case C.IN_ROW:{fy(this,t);break}case C.IN_CELL:{EN(this,t);break}case C.IN_SELECT:{hy(this,t);break}case C.IN_SELECT_IN_TABLE:{vN(this,t);break}case C.IN_TEMPLATE:{TN(this,t);break}case C.AFTER_BODY:{my(this,t);break}case C.IN_FRAMESET:{CN(this,t);break}case C.AFTER_FRAMESET:{NN(this,t);break}case C.AFTER_AFTER_BODY:{cd(this,t);break}default:}}onEof(t){switch(this.insertionMode){case C.INITIAL:{ol(this,t);break}case C.BEFORE_HTML:{ll(this,t);break}case C.BEFORE_HEAD:{fl(this,t);break}case C.IN_HEAD:{dl(this,t);break}case C.IN_HEAD_NO_SCRIPT:{hl(this,t);break}case C.AFTER_HEAD:{pl(this,t);break}case C.IN_BODY:case C.IN_TABLE:case C.IN_CAPTION:case C.IN_COLUMN_GROUP:case C.IN_TABLE_BODY:case C.IN_ROW:case C.IN_CELL:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:{sy(this,t);break}case C.TEXT:{sN(this,t);break}case C.IN_TABLE_TEXT:{cl(this,t);break}case C.IN_TEMPLATE:{py(this,t);break}case C.AFTER_BODY:case C.IN_FRAMESET:case C.AFTER_FRAMESET:case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{pg(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===x.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:case C.TEXT:case C.IN_COLUMN_GROUP:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:case C.IN_FRAMESET:case C.AFTER_FRAMESET:{this._insertCharacters(t);break}case C.IN_BODY:case C.IN_CAPTION:case C.IN_CELL:case C.IN_TEMPLATE:case C.AFTER_BODY:case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{ry(this,t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{lg(this,t);break}case C.IN_TABLE_TEXT:{oy(this,t);break}default:}}};ly=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR])});function gy(e,t){return function(n){let i,u=0,o="";for(;i=e.exec(n);)u!==i.index&&(o+=n.substring(u,i.index)),o+=t.get(i[0].charCodeAt(0)),u=i.index+1;return o+n.substring(u)}}var Zz,by,_y,Ey=N(()=>{Zz=String.prototype.codePointAt==null?(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t):(e,t)=>e.codePointAt(t);by=gy(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),_y=gy(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))});function PN(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===J.HTML&&FN.has(t.treeAdapter.getTagName(e))}function gg(e,t){let r={...MN,...t};return xy(e,r)}function HN(e,t){let r="",n=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===P.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===J.HTML?t.treeAdapter.getTemplateContent(e):e,i=t.treeAdapter.getChildNodes(n);if(i)for(let u of i)r+=xy(u,t);return r}function xy(e,t){return t.treeAdapter.isElementNode(e)?UN(e,t):t.treeAdapter.isTextNode(e)?YN(e,t):t.treeAdapter.isCommentNode(e)?KN(e,t):t.treeAdapter.isDocumentTypeNode(e)?QN(e,t):""}function UN(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${$N(e,t)}>${PN(e,t)?"":`${HN(e,t)}</${r}>`}`}function $N(e,{treeAdapter:t}){let r="";for(let n of t.getAttrList(e)){if(r+=" ",n.namespace)switch(n.namespace){case J.XML:{r+=`xml:${n.name}`;break}case J.XMLNS:{n.name!=="xmlns"&&(r+="xmlns:"),r+=n.name;break}case J.XLINK:{r+=`xlink:${n.name}`;break}default:r+=`${n.prefix}:${n.name}`}else r+=n.name;r+=`="${by(n.value)}"`}return r}function YN(e,t){let{treeAdapter:r}=t,n=r.getTextNodeContent(e),i=r.getParentNode(e),u=i&&r.isElementNode(i)&&r.getTagName(i);return u&&r.getNamespaceURI(i)===J.HTML&&ug(u,t.scriptingEnabled)?n:_y(n)}function KN(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function QN(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}var FN,MN,vy=N(()=>{Lu();Ey();sd();FN=new Set([P.AREA,P.BASE,P.BASEFONT,P.BGSOUND,P.BR,P.COL,P.EMBED,P.FRAME,P.HR,P.IMG,P.INPUT,P.KEYGEN,P.LINK,P.META,P.PARAM,P.SOURCE,P.TRACK,P.WBR]);MN={treeAdapter:ai,scriptingEnabled:!0}});function yy(e,t){return _o.parse(e,t)}function Ty(e,t,r){typeof e=="string"&&(r=t,t=e,e=null);let n=_o.getFragmentParser(e,r);return n.tokenizer.write(t,!0),n.getFragment()}var bg=N(()=>{Ag();sd();Ag();vy();ul();cg();Lu();X0();ag()});function wy(e){let t=e.includes('"')?"'":'"';return t+e+t}function WN(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=` PUBLIC ${wy(t)}`:r&&(n+=" SYSTEM"),r&&(n+=` ${wy(r)}`),n}var Fu,Iy=N(()=>{bg();Qr();Fu={isCommentNode:As,isElementNode:he,isTextNode:wn,createDocument(){let e=new Hn([]);return e["x-mode"]=rd.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new Hn([])},createElement(e,t,r){let n=Object.create(null),i=Object.create(null),u=Object.create(null);for(let l=0;l<r.length;l++){let d=r[l].name;n[d]=r[l].value,i[d]=r[l].namespace,u[d]=r[l].prefix}let o=new ms(e,n,[]);return o.namespace=t,o["x-attribsNamespace"]=i,o["x-attribsPrefix"]=u,o},createCommentNode(e){return new hs(e)},createTextNode(e){return new nu(e)},appendChild(e,t){let r=e.children[e.children.length-1];r&&(r.next=t,t.prev=r),e.children.push(t),t.parent=e},insertBefore(e,t,r){let n=e.children.indexOf(r),{prev:i}=r;i&&(i.next=t,t.prev=i),r.prev=t,t.next=r,e.children.splice(n,0,t),t.parent=e},setTemplateContent(e,t){Fu.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,r,n){let i=WN(t,r,n),u=e.children.find(o=>m0(o)&&o.name==="!doctype");u?u.data=i??null:(u=new ps("!doctype",i),Fu.appendChild(e,u)),u["x-name"]=t,u["x-publicId"]=r,u["x-systemId"]=n},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:r,next:n}=e;e.prev=null,e.next=null,r&&(r.next=n),n&&(n.prev=r),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let r=e.children[e.children.length-1];r&&wn(r)?r.data+=t:Fu.appendChild(e,Fu.createTextNode(t))},insertTextBefore(e,t,r){let n=e.children[e.children.indexOf(r)-1];n&&wn(n)?n.data+=t:Fu.insertBefore(e,Fu.createTextNode(t),r)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){let n=t[r].name;e.attribs[n]===void 0&&(e.attribs[n]=t[r].value,e["x-attribsNamespace"][n]=t[r].namespace,e["x-attribsPrefix"][n]=t[r].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return m0(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}}});function Cy(e,t,r,n){var i;return(i=t.treeAdapter)!==null&&i!==void 0||(t.treeAdapter=Fu),t.scriptingEnabled!==!1&&(t.scriptingEnabled=!0),r?yy(e,t):Ty(n,e,t)}function Sy(e){let t="length"in e?e:[e];for(let n=0;n<t.length;n+=1){let i=t[n];ti(i)&&Array.prototype.splice.call(t,n,1,...i.children)}let r="";for(let n=0;n<t.length;n+=1){let i=t[n];r+=gg(i,GN)}return r}var GN,Ny=N(()=>{Qr();bg();Iy();GN={treeAdapter:Fu}});var VN,qN,Dy=N(()=>{Tv();VA();Ny();qm();Jc();VN=fv((e,t,r,n)=>t._useHtmlParser2?_x(e,t):Cy(e,t,r,n)),qN=yv(VN,(e,t)=>t._useHtmlParser2?x0(e,t):Sy(e))});var ky={};gn(ky,{contains:()=>Gc,load:()=>qN,merge:()=>rA});var Ry=N(()=>{so();Dy()});var By=Ra((CJ,Oy)=>{"use strict";var zN=(Ry(),uh(ky));function JN(e){let t=zN.load(e),r=[];return[{tagName:"a",attr:"href"},{tagName:"area",attr:"href"},{tagName:"link",attr:"href"},{tagName:"audio",attr:"src"},{tagName:"embed",attr:"src"},{tagName:"iframe",attr:"src"},{tagName:"input",attr:"src"},{tagName:"img",attr:"src"},{tagName:"javascript",attr:"src"},{tagName:"source",attr:"src"},{tagName:"track",attr:"src"},{tagName:"video",attr:"src"}].forEach(({tagName:n,attr:i})=>{t(n).each((u,o)=>{t(o).attr(i)&&r.push(t(o).attr(i))})}),r}Oy.exports=JN});var Py=Ra((SJ,Fy)=>{"use strict";var{marked:Ly}=(R2(),uh(k2)),jN=By();Fy.exports=function(t,r=!1){Ly.setOptions({mangle:!1});let n=Ly(t);return jN(n)}});var Ky={};gn(Ky,{default:()=>ZN,getServer:()=>Yy});function Yy(e){let t=Jp(e),r=Uy.createServer(async function(n,i){i.setHeader("Access-Control-Allow-Origin","*"),i.setHeader("Access-Control-Allow-Methods","GET, HEAD, POST, OPTIONS, PUT, PATCH, DELETE"),i.setHeader("Access-Control-Allow-Headers","Access-Control-Allow-Headers, Origin, Authorization,Accept,x-client-id, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, hypothesis-client-version"),i.setHeader("Access-Control-Allow-Credentials","true");try{if(n.url){let u=$y.parse(n.url,!0);if(u.pathname==="/search"){let o=u.query.q,l=await t.search(o);i.statusCode=200,i.setHeader("Content-Type","application/json"),i.end(JSON.stringify(l))}else i.end()}}catch(u){i.statusCode=500,i.end(u)}});return{listen(n){console.debug(`Omnisearch - Starting HTTP server on port ${n}`),r.listen({port:parseInt(n),host:e.settings.DANGER_httpHost??"localhost"},()=>{console.log(`Omnisearch - Started HTTP server on port ${n}`),e.settings.DANGER_httpHost&&e.settings.DANGER_httpHost!=="localhost"?new gl.Notice(`Omnisearch - Started non-localhost HTTP server at ${e.settings.DANGER_httpHost}:${n}`,12e4):e.settings.httpApiNotice&&new gl.Notice(`Omnisearch - Started HTTP server on port ${n}`)}),r.on("error",i=>{console.error(i),new gl.Notice(`Omnisearch - Cannot start HTTP server on ${n}. See console for more details.`)})},close(){r.close(),console.log("Omnisearch - Terminated HTTP server"),e.settings.httpApiEnabled&&e.settings.httpApiNotice&&new gl.Notice("Omnisearch - Terminated HTTP server")}}}var Uy,$y,gl,ZN,Qy=N(()=>{Uy=Kn(require("http")),$y=Kn(require("url")),gl=require("obsidian");jp();ZN=Yy});var eD={};gn(eD,{default:()=>Td});module.exports=uh(eD);var si=require("obsidian");Rc();zs();Yr();Yr();Yr();vn();jp();var em=Kn(GE(),1),{liveQuery:lW,mergeRanges:fW,rangesOverlap:dW,RangeSet:hW,cmp:pW,Entity:mW,PropModification:AW,replacePrefix:gW,add:bW,remove:_W,DexieYProvider:EW}=em.default;var VE=em.default;var tm=require("obsidian"),js=class extends VE{constructor(r){super(js.getDbName(r.app.appId));this.plugin=r;this.version(js.dbVersion).stores({searchHistory:"++id",minisearch:"date",embeds:"embedded"})}static getDbName(r){return"omnisearch/cache/"+r}async getMinisearchCache(){try{return(await this.plugin.database.minisearch.toArray())[0]}catch(r){return new tm.Notice("Omnisearch - Cache missing or invalid. Some freezes may occur while Omnisearch indexes your vault."),console.error("Omnisearch - Error while loading Minisearch cache"),console.error(r),null}}async writeMinisearchCache(){let r=this.plugin.searchEngine.getSerializedMiniSearch(),n=this.plugin.searchEngine.getSerializedIndexedDocuments(),i=this.plugin.database;await i.minisearch.clear(),await i.minisearch.add({date:new Date().toISOString(),paths:n,data:r}),console.debug("Omnisearch - Search cache written")}async clearOldDatabases(){let r=(await indexedDB.databases()).filter(n=>n.name===js.getDbName(this.plugin.app.appId)&&n.version!==js.dbVersion*10);if(r.length){console.debug("Omnisearch - Those IndexedDb databases will be deleted:");for(let n of r)n.name&&indexedDB.deleteDatabase(n.name)}}async clearCache(){await this.minisearch.clear(),await this.embeds.clear(),new tm.Notice("Omnisearch - Cache cleared. Please restart Obsidian.")}},Oc=js;Oc.dbVersion=10;function u0(e,t,r,n){function i(u){return u instanceof r?u:new r(function(o){o(u)})}return new(r||(r=Promise))(function(u,o){function l(A){try{p(n.next(A))}catch(b){o(b)}}function d(A){try{p(n.throw(A))}catch(b){o(b)}}function p(A){A.done?u(A.value):i(A.value).then(l,d)}p((n=n.apply(e,t||[])).next())})}var x6="ENTRIES",ZE="KEYS",XE="VALUES",Kr="",Bc=class{constructor(t,r){let n=t._tree,i=Array.from(n.keys());this.set=t,this._type=r,this._path=i.length>0?[{node:n,keys:i}]:[]}next(){let t=this.dive();return this.backtrack(),t}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:t,keys:r}=Zs(this._path);if(Zs(r)===Kr)return{done:!1,value:this.result()};let n=t.get(Zs(r));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let t=Zs(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:t})=>Zs(t)).filter(t=>t!==Kr).join("")}value(){return Zs(this._path).node.get(Kr)}result(){switch(this._type){case XE:return this.value();case ZE:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},Zs=e=>e[e.length-1],v6=(e,t,r)=>{let n=new Map;if(t===void 0)return n;let i=t.length+1,u=i+r,o=new Uint8Array(u*i).fill(r+1);for(let l=0;l<i;++l)o[l]=l;for(let l=1;l<u;++l)o[l*i]=l;return e2(e,t,r,n,o,1,i,""),n},e2=(e,t,r,n,i,u,o,l)=>{let d=u*o;e:for(let p of e.keys())if(p===Kr){let A=i[d-1];A<=r&&n.set(l,[e.get(p),A])}else{let A=u;for(let b=0;b<p.length;++b,++A){let _=p[b],v=o*A,I=v-o,D=i[v],R=Math.max(0,A-r-1),H=Math.min(o-1,A+r);for(let K=R;K<H;++K){let ce=_!==t[K],le=i[I+K]+ +ce,Re=i[I+K+1]+1,xe=i[v+K]+1,oe=i[v+K+1]=Math.min(le,Re,xe);oe<D&&(D=oe)}if(D>r)continue e}e2(e.get(p),t,r,n,i,A,o,l+p)}},eu=class{constructor(t=new Map,r=""){this._size=void 0,this._tree=t,this._prefix=r}atPrefix(t){if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");let[r,n]=a0(this._tree,t.slice(this._prefix.length));if(r===void 0){let[i,u]=cm(n);for(let o of i.keys())if(o!==Kr&&o.startsWith(u)){let l=new Map;return l.set(o.slice(u.length),i.get(o)),new eu(l,t)}}return new eu(r,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,y6(this._tree,t)}entries(){return new Bc(this,x6)}forEach(t){for(let[r,n]of this)t(r,n,this)}fuzzyGet(t,r){return v6(this._tree,t,r)}get(t){let r=am(this._tree,t);return r!==void 0?r.get(Kr):void 0}has(t){let r=am(this._tree,t);return r!==void 0&&r.has(Kr)}keys(){return new Bc(this,ZE)}set(t,r){if(typeof t!="string")throw new Error("key must be a string");return this._size=void 0,rm(this._tree,t).set(Kr,r),this}get size(){if(this._size)return this._size;this._size=0;let t=this.entries();for(;!t.next().done;)this._size+=1;return this._size}update(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;let n=rm(this._tree,t);return n.set(Kr,r(n.get(Kr))),this}fetch(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;let n=rm(this._tree,t),i=n.get(Kr);return i===void 0&&n.set(Kr,i=r()),i}values(){return new Bc(this,XE)}[Symbol.iterator](){return this.entries()}static from(t){let r=new eu;for(let[n,i]of t)r.set(n,i);return r}static fromObject(t){return eu.from(Object.entries(t))}},a0=(e,t,r=[])=>{if(t.length===0||e==null)return[e,r];for(let n of e.keys())if(n!==Kr&&t.startsWith(n))return r.push([e,n]),a0(e.get(n),t.slice(n.length),r);return r.push([e,t]),a0(void 0,"",r)},am=(e,t)=>{if(t.length===0||e==null)return e;for(let r of e.keys())if(r!==Kr&&t.startsWith(r))return am(e.get(r),t.slice(r.length))},rm=(e,t)=>{let r=t.length;e:for(let n=0;e&&n<r;){for(let u of e.keys())if(u!==Kr&&t[n]===u[0]){let o=Math.min(r-n,u.length),l=1;for(;l<o&&t[n+l]===u[l];)++l;let d=e.get(u);if(l===u.length)e=d;else{let p=new Map;p.set(u.slice(l),d),e.set(t.slice(n,n+l),p),e.delete(u),e=p}n+=l;continue e}let i=new Map;return e.set(t.slice(n),i),i}return e},y6=(e,t)=>{let[r,n]=a0(e,t);if(r!==void 0){if(r.delete(Kr),r.size===0)t2(n);else if(r.size===1){let[i,u]=r.entries().next().value;r2(n,i,u)}}},t2=e=>{if(e.length===0)return;let[t,r]=cm(e);if(t.delete(r),t.size===0)t2(e.slice(0,-1));else if(t.size===1){let[n,i]=t.entries().next().value;n!==Kr&&r2(e.slice(0,-1),n,i)}},r2=(e,t,r)=>{if(e.length===0)return;let[n,i]=cm(e);n.set(i+t,r),n.delete(i)},cm=e=>e[e.length-1],lm="or",n2="and",T6="and_not",tu=class{constructor(t){if(t?.fields==null)throw new Error('MiniSearch: option "fields" must be provided');let r=t.autoVacuum==null||t.autoVacuum===!0?um:t.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},im),t),{autoVacuum:r,searchOptions:Object.assign(Object.assign({},qE),t.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},N6),t.autoSuggestOptions||{})}),this._index=new eu,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=om,this.addFields(this._options.fields)}add(t){let{extractField:r,tokenize:n,processTerm:i,fields:u,idField:o}=this._options,l=r(t,o);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(l))throw new Error(`MiniSearch: duplicate ID ${l}`);let d=this.addDocumentId(l);this.saveStoredFields(d,t);for(let p of u){let A=r(t,p);if(A==null)continue;let b=n(A.toString(),p),_=this._fieldIds[p],v=new Set(b).size;this.addFieldLength(d,_,this._documentCount-1,v);for(let I of b){let D=i(I,p);if(Array.isArray(D))for(let R of D)this.addTerm(_,d,R);else D&&this.addTerm(_,d,D)}}}addAll(t){for(let r of t)this.add(r)}addAllAsync(t,r={}){let{chunkSize:n=10}=r,i={chunk:[],promise:Promise.resolve()},{chunk:u,promise:o}=t.reduce(({chunk:l,promise:d},p,A)=>(l.push(p),(A+1)%n===0?{chunk:[],promise:d.then(()=>new Promise(b=>setTimeout(b,0))).then(()=>this.addAll(l))}:{chunk:l,promise:d}),i);return o.then(()=>this.addAll(u))}remove(t){let{tokenize:r,processTerm:n,extractField:i,fields:u,idField:o}=this._options,l=i(t,o);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);let d=this._idToShortId.get(l);if(d==null)throw new Error(`MiniSearch: cannot remove document with ID ${l}: it is not in the index`);for(let p of u){let A=i(t,p);if(A==null)continue;let b=r(A.toString(),p),_=this._fieldIds[p],v=new Set(b).size;this.removeFieldLength(d,_,this._documentCount,v);for(let I of b){let D=n(I,p);if(Array.isArray(D))for(let R of D)this.removeTerm(_,d,R);else D&&this.removeTerm(_,d,D)}}this._storedFields.delete(d),this._documentIds.delete(d),this._idToShortId.delete(l),this._fieldLength.delete(d),this._documentCount-=1}removeAll(t){if(t)for(let r of t)this.remove(r);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new eu,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(t){let r=this._idToShortId.get(t);if(r==null)throw new Error(`MiniSearch: cannot discard document with ID ${t}: it is not in the index`);this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach((n,i)=>{this.removeFieldLength(r,i,this._documentCount,n)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:t,minDirtCount:r,batchSize:n,batchWait:i}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:i},{minDirtCount:r,minDirtFactor:t})}discardAll(t){let r=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let n of t)this.discard(n)}finally{this._options.autoVacuum=r}this.maybeAutoVacuum()}replace(t){let{idField:r,extractField:n}=this._options,i=n(t,r);this.discard(i),this.add(t)}vacuum(t={}){return this.conditionalVacuum(t)}conditionalVacuum(t,r){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&r,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{let n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=om,this.performVacuuming(t,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(r)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)}performVacuuming(t,r){return u0(this,void 0,void 0,function*(){let n=this._dirtCount;if(this.vacuumConditionsMet(r)){let i=t.batchSize||sm.batchSize,u=t.batchWait||sm.batchWait,o=1;for(let[l,d]of this._index){for(let[p,A]of d)for(let[b]of A)this._documentIds.has(b)||(A.size<=1?d.delete(p):A.delete(b));this._index.get(l).size===0&&this._index.delete(l),o%i===0&&(yield new Promise(p=>setTimeout(p,u))),o+=1}this._dirtCount-=n}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(t){if(t==null)return!0;let{minDirtCount:r,minDirtFactor:n}=t;return r=r||um.minDirtCount,n=n||um.minDirtFactor,this.dirtCount>=r&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(t){return this._idToShortId.has(t)}getStoredFields(t){let r=this._idToShortId.get(t);if(r!=null)return this._storedFields.get(r)}search(t,r={}){let n=this.executeQuery(t,r),i=[];for(let[u,{score:o,terms:l,match:d}]of n){let p=l.length||1,A={id:this._documentIds.get(u),score:o*p,terms:Object.keys(d),queryTerms:l,match:d};Object.assign(A,this._storedFields.get(u)),(r.filter==null||r.filter(A))&&i.push(A)}return t===tu.wildcard&&r.boostDocument==null&&this._options.searchOptions.boostDocument==null||i.sort(JE),i}autoSuggest(t,r={}){r=Object.assign(Object.assign({},this._options.autoSuggestOptions),r);let n=new Map;for(let{score:u,terms:o}of this.search(t,r)){let l=o.join(" "),d=n.get(l);d!=null?(d.score+=u,d.count+=1):n.set(l,{score:u,terms:o,count:1})}let i=[];for(let[u,{score:o,terms:l,count:d}]of n)i.push({suggestion:u,terms:l,score:o/d});return i.sort(JE),i}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(t,r){if(r==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),r)}static loadJSONAsync(t,r){return u0(this,void 0,void 0,function*(){if(r==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(t),r)})}static getDefault(t){if(im.hasOwnProperty(t))return nm(im,t);throw new Error(`MiniSearch: unknown option "${t}"`)}static loadJS(t,r){let{index:n,documentIds:i,fieldLength:u,storedFields:o,serializationVersion:l}=t,d=this.instantiateMiniSearch(t,r);d._documentIds=n0(i),d._fieldLength=n0(u),d._storedFields=n0(o);for(let[p,A]of d._documentIds)d._idToShortId.set(A,p);for(let[p,A]of n){let b=new Map;for(let _ of Object.keys(A)){let v=A[_];l===1&&(v=v.ds),b.set(parseInt(_,10),n0(v))}d._index.set(p,b)}return d}static loadJSAsync(t,r){return u0(this,void 0,void 0,function*(){let{index:n,documentIds:i,fieldLength:u,storedFields:o,serializationVersion:l}=t,d=this.instantiateMiniSearch(t,r);d._documentIds=yield i0(i),d._fieldLength=yield i0(u),d._storedFields=yield i0(o);for(let[A,b]of d._documentIds)d._idToShortId.set(b,A);let p=0;for(let[A,b]of n){let _=new Map;for(let v of Object.keys(b)){let I=b[v];l===1&&(I=I.ds),_.set(parseInt(v,10),yield i0(I))}++p%1e3===0&&(yield i2(0)),d._index.set(A,_)}return d})}static instantiateMiniSearch(t,r){let{documentCount:n,nextId:i,fieldIds:u,averageFieldLength:o,dirtCount:l,serializationVersion:d}=t;if(d!==1&&d!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");let p=new tu(r);return p._documentCount=n,p._nextId=i,p._idToShortId=new Map,p._fieldIds=u,p._avgFieldLength=o,p._dirtCount=l||0,p._index=new eu,p}executeQuery(t,r={}){if(t===tu.wildcard)return this.executeWildcardQuery(r);if(typeof t!="string"){let _=Object.assign(Object.assign(Object.assign({},r),t),{queries:void 0}),v=t.queries.map(I=>this.executeQuery(I,_));return this.combineResults(v,_.combineWith)}let{tokenize:n,processTerm:i,searchOptions:u}=this._options,o=Object.assign(Object.assign({tokenize:n,processTerm:i},u),r),{tokenize:l,processTerm:d}=o,b=l(t).flatMap(_=>d(_)).filter(_=>!!_).map(S6(o)).map(_=>this.executeQuerySpec(_,o));return this.combineResults(b,o.combineWith)}executeQuerySpec(t,r){let n=Object.assign(Object.assign({},this._options.searchOptions),r),i=(n.fields||this._options.fields).reduce((D,R)=>Object.assign(Object.assign({},D),{[R]:nm(n.boost,R)||1}),{}),{boostDocument:u,weights:o,maxFuzzy:l,bm25:d}=n,{fuzzy:p,prefix:A}=Object.assign(Object.assign({},qE.weights),o),b=this._index.get(t.term),_=this.termResults(t.term,t.term,1,t.termBoost,b,i,u,d),v,I;if(t.prefix&&(v=this._index.atPrefix(t.term)),t.fuzzy){let D=t.fuzzy===!0?.2:t.fuzzy,R=D<1?Math.min(l,Math.round(t.term.length*D)):D;R&&(I=this._index.fuzzyGet(t.term,R))}if(v)for(let[D,R]of v){let H=D.length-t.term.length;if(!H)continue;I?.delete(D);let K=A*D.length/(D.length+.3*H);this.termResults(t.term,D,K,t.termBoost,R,i,u,d,_)}if(I)for(let D of I.keys()){let[R,H]=I.get(D);if(!H)continue;let K=p*D.length/(D.length+H);this.termResults(t.term,D,K,t.termBoost,R,i,u,d,_)}return _}executeWildcardQuery(t){let r=new Map,n=Object.assign(Object.assign({},this._options.searchOptions),t);for(let[i,u]of this._documentIds){let o=n.boostDocument?n.boostDocument(u,"",this._storedFields.get(i)):1;r.set(i,{score:o,terms:[],match:{}})}return r}combineResults(t,r=lm){if(t.length===0)return new Map;let n=r.toLowerCase(),i=w6[n];if(!i)throw new Error(`Invalid combination operator: ${r}`);return t.reduce(i)||new Map}toJSON(){let t=[];for(let[r,n]of this._index){let i={};for(let[u,o]of n)i[u]=Object.fromEntries(o);t.push([r,i])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:t,serializationVersion:2}}termResults(t,r,n,i,u,o,l,d,p=new Map){if(u==null)return p;for(let A of Object.keys(o)){let b=o[A],_=this._fieldIds[A],v=u.get(_);if(v==null)continue;let I=v.size,D=this._avgFieldLength[_];for(let R of v.keys()){if(!this._documentIds.has(R)){this.removeTerm(_,R,r),I-=1;continue}let H=l?l(this._documentIds.get(R),r,this._storedFields.get(R)):1;if(!H)continue;let K=v.get(R),ce=this._fieldLength.get(R)[_],le=C6(K,I,this._documentCount,ce,D,d),Re=n*i*b*H*le,xe=p.get(R);if(xe){xe.score+=Re,D6(xe.terms,t);let oe=nm(xe.match,r);oe?oe.push(A):xe.match[r]=[A]}else p.set(R,{score:Re,terms:[t],match:{[r]:[A]}})}}return p}addTerm(t,r,n){let i=this._index.fetch(n,jE),u=i.get(t);if(u==null)u=new Map,u.set(r,1),i.set(t,u);else{let o=u.get(r);u.set(r,(o||0)+1)}}removeTerm(t,r,n){if(!this._index.has(n)){this.warnDocumentChanged(r,t,n);return}let i=this._index.fetch(n,jE),u=i.get(t);u==null||u.get(r)==null?this.warnDocumentChanged(r,t,n):u.get(r)<=1?u.size<=1?i.delete(t):u.delete(r):u.set(r,u.get(r)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(t,r,n){for(let i of Object.keys(this._fieldIds))if(this._fieldIds[i]===r){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(t)} has changed before removal: term "${n}" was not present in field "${i}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(t){let r=this._nextId;return this._idToShortId.set(t,r),this._documentIds.set(r,t),this._documentCount+=1,this._nextId+=1,r}addFields(t){for(let r=0;r<t.length;r++)this._fieldIds[t[r]]=r}addFieldLength(t,r,n,i){let u=this._fieldLength.get(t);u==null&&this._fieldLength.set(t,u=[]),u[r]=i;let l=(this._avgFieldLength[r]||0)*n+i;this._avgFieldLength[r]=l/(n+1)}removeFieldLength(t,r,n,i){if(n===1){this._avgFieldLength[r]=0;return}let u=this._avgFieldLength[r]*n-i;this._avgFieldLength[r]=u/(n-1)}saveStoredFields(t,r){let{storeFields:n,extractField:i}=this._options;if(n==null||n.length===0)return;let u=this._storedFields.get(t);u==null&&this._storedFields.set(t,u={});for(let o of n){let l=i(r,o);l!==void 0&&(u[o]=l)}}};tu.wildcard=Symbol("*");var nm=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,w6={[lm]:(e,t)=>{for(let r of t.keys()){let n=e.get(r);if(n==null)e.set(r,t.get(r));else{let{score:i,terms:u,match:o}=t.get(r);n.score=n.score+i,n.match=Object.assign(n.match,o),zE(n.terms,u)}}return e},[n2]:(e,t)=>{let r=new Map;for(let n of t.keys()){let i=e.get(n);if(i==null)continue;let{score:u,terms:o,match:l}=t.get(n);zE(i.terms,o),r.set(n,{score:i.score+u,terms:i.terms,match:Object.assign(i.match,l)})}return r},[T6]:(e,t)=>{for(let r of t.keys())e.delete(r);return e}},I6={k:1.2,b:.7,d:.5},C6=(e,t,r,n,i,u)=>{let{k:o,b:l,d}=u;return Math.log(1+(r-t+.5)/(t+.5))*(d+e*(o+1)/(e+o*(1-l+l*n/i)))},S6=e=>(t,r,n)=>{let i=typeof e.fuzzy=="function"?e.fuzzy(t,r,n):e.fuzzy||!1,u=typeof e.prefix=="function"?e.prefix(t,r,n):e.prefix===!0,o=typeof e.boostTerm=="function"?e.boostTerm(t,r,n):1;return{term:t,fuzzy:i,prefix:u,termBoost:o}},im={idField:"id",extractField:(e,t)=>e[t],tokenize:e=>e.split(k6),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof console?.[e]=="function"&&console[e](t)},autoVacuum:!0},qE={combineWith:lm,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:I6},N6={combineWith:n2,prefix:(e,t,r)=>t===r.length-1},sm={batchSize:1e3,batchWait:10},om={minDirtFactor:.1,minDirtCount:20},um=Object.assign(Object.assign({},sm),om),D6=(e,t)=>{e.includes(t)||e.push(t)},zE=(e,t)=>{for(let r of t)e.includes(r)||e.push(r)},JE=({score:e},{score:t})=>t-e,jE=()=>new Map,n0=e=>{let t=new Map;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]);return t},i0=e=>u0(void 0,void 0,void 0,function*(){let t=new Map,r=0;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]),++r%1e3===0&&(yield i2(0));return t}),i2=e=>new Promise(t=>setTimeout(t,e)),k6=/[\n\r\p{Z}\p{P}]+/u;vn();en();var Hy=require("obsidian");dE();function u2(e){return e!=null&&typeof e!="function"&&fE(e.length)}function a2(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function fm(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(fm).join(",");let t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function s2(e){if(Array.isArray(e))return e.map(a2);if(typeof e=="symbol")return[e];e=fm(e);let t=[],r=e.length;if(r===0)return t;let n=0,i="",u="",o=!1;for(e.charCodeAt(0)===46&&(t.push(""),n++);n<r;){let l=e[n];u?l==="\\"&&n+1<r?(n++,i+=e[n]):l===u?u="":i+=l:o?l==='"'||l==="'"?u=l:l==="]"?(o=!1,t.push(i),i=""):i+=l:l==="["?(o=!0,i&&(t.push(i),i="")):l==="."?i&&(t.push(i),i=""):i+=l,n++}return i&&t.push(i),t}function o2(e){return e!==null&&(typeof e=="object"||typeof e=="function")}var R6=/^(?:0|[1-9]\d*)$/;function c2(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return R6.test(e)}}lE();function dm(e,t,r){return o2(r)&&(typeof t=="number"&&u2(r)&&c2(t)&&t<r.length||typeof t=="string"&&t in r)?cE(r[t],e):!1}function l2(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}var f2=(e,t,r)=>{if(e!==t){let n=l2(e),i=l2(t);if(n===i&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?i-n:n-i}return 0};sE();var O6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,B6=/^\w*$/;function d2(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||aE(e)?!0:typeof e=="string"&&(B6.test(e)||!O6.test(e))||t!=null&&Object.hasOwn(t,e)}function h2(e,t,r,n){if(e==null)return[];r=n?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(d=>String(d));let i=(d,p)=>{let A=d;for(let b=0;b<p.length&&A!=null;++b)A=A[p[b]];return A},u=(d,p)=>p==null||d==null?p:typeof d=="object"&&"key"in d?Object.hasOwn(p,d.key)?p[d.key]:i(p,d.path):typeof d=="function"?d(p):Array.isArray(d)?i(p,d):typeof p=="object"?p[d]:p,o=t.map(d=>(Array.isArray(d)&&d.length===1&&(d=d[0]),d==null||typeof d=="function"||Array.isArray(d)||d2(d)?d:{key:d,path:s2(d)}));return e.map(d=>({original:d,criteria:o.map(p=>u(p,d))})).slice().sort((d,p)=>{for(let A=0;A<o.length;A++){let b=f2(d.criteria[A],p.criteria[A],r[A]);if(b!==0)return b}return 0}).map(d=>d.original)}uE();function hm(e,...t){let r=t.length;return r>1&&dm(e,t[0],t[1])?t=[]:r>2&&dm(t[0],t[1],t[2])&&(t=[t[0]]),h2(e,iE(t),["asc"])}vn();en();var My=Py(),Ad=class{constructor(t){this.plugin=t}tokenizeForIndexing(t){try{let r=this.tokenizeWords(t),n=[];if(this.plugin.settings.tokenizeUrls)try{n=My(t)}catch(u){Ze("Error extracting urls",u)}let i=this.tokenizeTokens(t,{skipChs:!0});return i=[...i.flatMap(u=>[u,...kp(u),...Dp(u)]),...r],n.length&&(i=[...i,...n]),i=i.filter(Boolean),i}catch(r){return console.error("Error tokenizing text, skipping document",r),[]}}tokenizeForSearch(t){let r=My(t);t=r.reduce((i,u)=>i.replace(u,""),t);let n=[...this.tokenizeTokens(t),...r].filter(Boolean);return{combineWith:"OR",queries:[{combineWith:"AND",queries:n},{combineWith:"AND",queries:this.tokenizeWords(t).filter(Boolean)},{combineWith:"AND",queries:n.flatMap(kp)},{combineWith:"AND",queries:n.flatMap(Dp)}]}}tokenizeWords(t,{skipChs:r=!1}={}){let n=t.split(U_);return r?n:this.tokenizeChsWord(n)}tokenizeTokens(t,{skipChs:r=!1}={}){let n=t.split(Uf);return r?n:this.tokenizeChsWord(n)}tokenizeChsWord(t){let r=this.plugin.getChsSegmenter();return r?t.flatMap(n=>P_.test(n)?r.cut(n,{search:!0}):[n]):t}};var gd=class{constructor(t){this.plugin=t;this.indexedDocuments=new Map;this.tokenizer=new Ad(t),this.minisearch=new tu(this.getOptions())}async loadCache(){await this.plugin.embedsRepository.loadFromCache();let t=await this.plugin.database.getMinisearchCache();return t?(this.minisearch=await tu.loadJSAsync(t.data,this.getOptions()),this.indexedDocuments=new Map(t.paths.map(r=>[r.path,r.mtime])),!0):(console.log("Omnisearch - No cache found"),!1)}getDocumentsToReindex(t){let r=new Map(t.map(u=>[u.path,u.mtime])),n=t.filter(u=>!this.indexedDocuments.has(u.path)||this.indexedDocuments.get(u.path)!==u.mtime),i=[...this.indexedDocuments].filter(([u,o])=>!r.has(u)||r.get(u)!==o).map(u=>({path:u[0],mtime:u[1]}));return{toAdd:n,toRemove:i}}async addFromPaths(t){Ze("Adding files",t);let r=(await Promise.all(t.map(async i=>await this.plugin.documentsRepository.getDocument(i)))).filter(i=>!!i?.path);Ze("Sorting documents to first index markdown"),r=hm(r,i=>i.path.endsWith(".md")?0:1),this.removeFromPaths(r.filter(i=>this.indexedDocuments.has(i.path)).map(i=>i.path));let n=W_(r,500);for(let i of n){Ze("Indexing into search engine",i),i.forEach(o=>this.indexedDocuments.set(o.path,o.mtime));let u=i.filter(o=>this.minisearch.has(o.path));this.removeFromPaths(u.map(o=>o.path)),await this.minisearch.addAllAsync(i)}}removeFromPaths(t){t.forEach(n=>this.indexedDocuments.delete(n));let r=t.filter(n=>this.minisearch.has(n));this.minisearch.discardAll(r)}async search(t,r){let n=this.plugin.settings;if(t.isEmpty())return[];Ze("=== New search ==="),Ze("Starting search for",t);let i;switch(n.fuzziness){case"0":i=0;break;case"1":i=.1;break;default:i=.2;break}let u=this.tokenizer.tokenizeForSearch(t.segmentsToStr());Ze(JSON.stringify(u,null,1));let o=this.minisearch.search(u,{prefix:b=>b.length>=r.prefixLength,fuzzy:b=>b.length<=3?0:b.length<=5?i/2:i,boost:{basename:n.weightBasename,aliases:n.weightBasename,displayTitle:n.weightBasename,directory:n.weightDirectory,headings1:n.weightH1,headings2:n.weightH2,headings3:n.weightH3,tags:n.weightUnmarkedTags,unmarkedTags:n.weightUnmarkedTags},tokenize:b=>[b],boostDocument(b,_,v){if(!v?.mtime||n.recencyBoost==="0")return 1;let I=v?.mtime,D=new Date().valueOf();console.log(D);let R=(D-I)/(24*36e5),H={["1"]:-3,["2"]:-.3,["3"]:-.1};return 1+Math.exp(H[n.recencyBoost]*(R/1e3))}});if(Ze(`Found ${o.length} results`,o),t.query.ext?.length&&(o=o.filter(b=>{let _="."+b.id.split(".").pop();return t.query.ext?.some(v=>_.startsWith(v.startsWith(".")?v:"."+v))})),t.query.path&&(o=o.filter(b=>t.query.path?.some(_=>b.id.toLowerCase().includes(_.toLowerCase())))),t.query.exclude.path&&(o=o.filter(b=>!t.query.exclude.path?.some(_=>b.id.toLowerCase().includes(_.toLowerCase())))),!o.length)return[];if(r.singleFilePath)return o.filter(b=>b.id===r.singleFilePath);Ze("searching with downranked folders",n.downrankedFoldersFilters),n.hideExcluded?o=o.filter(b=>!(this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(b.id))):o.forEach(b=>{this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(b.id)&&(b.score/=10)});let l=t.getTags();for(let b of o){let _=b.id;if(n.downrankedFoldersFilters.length>0){let I=!1;n.downrankedFoldersFilters.forEach(H=>{_.startsWith(H)&&(_===H||_.startsWith(H+"/"))&&(Ze("searching with downranked folders in path: ",_),I=!0)}),I&&(b.score/=10);let D=_.split("/"),R=D.length;for(let H=0;H<R;H++){let K=D[H];if(n.downrankedFoldersFilters.includes(K)){b.score/=10;break}}}let v=this.plugin.app.metadataCache.getCache(_);if(v)for(let{name:I,weight:D}of n.weightCustomProperties){let R=v?.frontmatter?.[I];R&&b.terms.some(H=>R.includes(H))&&(Ze(`Boosting field "${I}" x${D} for ${_}`),b.score*=D)}for(let I of l)(b.tags??[]).includes(I)&&(b.score*=100)}Ze("Sorting and limiting results"),o=o.sort((b,_)=>_.score-b.score).slice(0,50),Ze("Filtered results:",o),o.length&&Ze("First result:",o[0]);let d=await Promise.all(o.map(async b=>{let _=await this.plugin.documentsRepository.getDocument(b.id);return _||(console.warn(`Omnisearch - Note "${b.id}" not in the live cache`),xc(!0)),_})),p=t.getExactTerms();p.length&&(Ze("Filtering with quoted terms: ",p),o=o.filter(b=>{let _=d.find(D=>D.path===b.id),v=_?.path.toLowerCase()??"",I=(_?.cleanedContent??"").toLowerCase();return p.every(D=>I.includes(D)||wu(v,this.plugin.settings.ignoreArabicDiacritics).includes(D))}));let A=t.query.exclude.text;return A.length&&(Ze("Filtering with exclusions"),o=o.filter(b=>{let _=(d.find(v=>v.path===b.id)?.content??"").toLowerCase();return A.every(v=>!_.includes(v))})),Ze("Deduping"),o=o.filter((b,_,v)=>v.findIndex(I=>I.id===b.id)===_),o}async getSuggestions(t,r){let n;this.plugin.settings.simpleSearch?n=await this.search(t,{prefixLength:3,singleFilePath:r?.singleFilePath}):n=await this.search(t,{prefixLength:1,singleFilePath:r?.singleFilePath});let i=await Promise.all(n.map(async l=>await this.plugin.documentsRepository.getDocument(l.id))),u=i.length;for(let l=0;l<u;l++){let d=i[l];if(!d)continue;let p=this.plugin.embedsRepository.getEmbeds(d.path).slice(0,this.plugin.settings.maxEmbeds);for(let A of p){u++;let b=await this.plugin.documentsRepository.getDocument(A);i.splice(l+1,0,b),n.splice(l+1,0,{id:b.path,score:0,terms:[],queryTerms:[],match:{},isEmbed:!0}),l++}}let o=n.map(l=>{Ze("Locating matches for",l.id);let d=i.find(_=>_.path===l.id);d||(console.warn(`Omnisearch - Note "${l.id}" not in the live cache`),d={content:"",basename:l.id,path:l.id});let p=[...l.terms,...t.getExactTerms(),...t.getTags()];Ze("Matching tokens:",p),Ze("Getting matches locations...");let A=this.plugin.textProcessor.getMatches(d.content,p,t);return Ze(`Matches for note "${d.path}"`,A),{score:l.score,foundWords:p,matches:A,isEmbed:l.isEmbed,...d}});return Ze("Suggestions:",o),o}getSerializedMiniSearch(){return this.minisearch.toJSON()}getSerializedIndexedDocuments(){return Array.from(this.indexedDocuments).map(([t,r])=>({path:t,mtime:r}))}getOptions(){return{tokenize:this.tokenizer.tokenizeForIndexing.bind(this.tokenizer),extractField:(t,r)=>{if(r==="directory"){let n=t.path.split("/");return n.pop(),n.join("/")}return t[r]},processTerm:t=>(this.plugin.settings.ignoreDiacritics?wu(t,this.plugin.settings.ignoreArabicDiacritics):t).toLowerCase(),idField:"path",fields:["basename","directory","aliases","content","headings1","headings2","headings3"],storeFields:["tags","mtime"],logger(t,r,n){n==="version_conflict"&&new Hy.Notice("Omnisearch - Your index cache may be incorrect or corrupted. If this message keeps appearing, go to Settings to clear the cache.",5e3)}}}};var _d=require("obsidian");Ic();en();var bd=class{constructor(t){this.plugin=t;this.documents=new Map;this.errorsCount=0;this.errorsWarned=!1;setInterval(()=>{this.errorsCount>0&&--this.errorsCount},1e3)}async addDocument(t){try{let r=await this.getAndMapIndexedDocument(t);if(!r.path){console.error(`Missing .path field in IndexedDocument "${r.basename}", skipping`);return}this.documents.set(t,r),this.plugin.embedsRepository.refreshEmbedsForNote(t)}catch(r){console.warn(`Omnisearch: Error while adding "${t}" to live cache`,r),this.removeDocument(t),xc()}}removeDocument(t){this.documents.delete(t)}async getDocument(t){if(this.documents.has(t))return this.documents.get(t);Ze("Generating IndexedDocument from",t),await this.addDocument(t);let r=this.documents.get(t);return r||(console.error("Omnisearch",t,"cannot be read"),xc()),r}async getAndMapIndexedDocument(t){t=(0,_d.normalizePath)(t);let r=this.plugin.app,n=r.vault.getAbstractFileByPath(t);if(!n)throw new Error(`Invalid file path: "${t}"`);if(!(n instanceof _d.TFile))throw new Error(`Not a TFile: "${t}"`);let i=null,u=this.plugin.getTextExtractor(),o=this.plugin.getAIImageAnalyzer();if(this.plugin.notesIndexer.isFilePlaintext(t))i=await r.vault.cachedRead(n);else if(Ji(t)){let A=await r.vault.cachedRead(n),b=A?JSON.parse(A):{},_=[];for(let v of b.nodes??[])v.type==="text"?_.push(v.text):v.type==="file"&&_.push(v.file);for(let v of(b.edges??[]).filter(I=>!!I.label))_.push(v.label);i=_.join(`\r
`)}else if(Ec(t))try{let A=JSON.parse(await r.vault.cachedRead(n)),b=[],_=v=>{for(let I in v)typeof v[I]=="object"?_(v[I]):I==="content"&&b.push(v[I])};_(A),i=b.join(`\r
`)}catch(A){console.error("Omnisearch: Error while parsing Dataloom file",t),console.error(A)}else Jn(t)?this.plugin.settings.aiImageIndexing&&o?.canBeAnalyzed(n)?i=await o.analyzeImage(n):this.plugin.settings.imagesIndexing&&u?.canFileBeExtracted(t)&&(i=await u.extractText(n)):Ni(t)&&this.plugin.settings.PDFIndexing&&u?.canFileBeExtracted(t)?i=await u.extractText(n):Q_(t)&&this.plugin.settings.officeIndexing&&u?.canFileBeExtracted(t)?i=await u.extractText(n):this.plugin.notesIndexer.isFilenameIndexable(t)&&(i=n.path);i==null&&(Di(`Omnisearch: ${i} content for file`,n.path),i="");let l=r.metadataCache.getFileCache(n);if(l){let A=J_(this.plugin.app,n,l);for(let b of A.filter(_=>!this.documents.has(_))){let _=this.plugin.notesIndexer.generateIndexableNonexistingDocument(b,n.path)}if(l.frontmatter?.["excalidraw-plugin"]){let b=l.sections?.filter(_=>_.type==="comment")??[];for(let{start:_,end:v}of b.map(I=>I.position))i=i.substring(0,_.offset-1)+i.substring(v.offset)}}let d;this.plugin.settings.displayTitle==="#heading"?d=l?.headings?.find(A=>A.level===1)?.heading??"":d=l?.frontmatter?.[this.plugin.settings.displayTitle]??"";let p=K_(l);return{basename:n.basename,displayTitle:d,content:i,cleanedContent:$_(wu(i)),path:n.path,mtime:n.stat.mtime,tags:p,unmarkedTags:p.map(A=>A.replace("#","")),aliases:Y_(l).join(""),headings1:l?$f(l,1).join(" "):"",headings2:l?$f(l,2).join(" "):"",headings3:l?$f(l,3).join(" "):""}}};en();Ic();en();var Ed=class{constructor(t){this.plugin=t;this.notesToReindex=new Set}flagNoteForReindex(t){this.notesToReindex.add(t)}async refreshIndex(){for(let r of this.notesToReindex)Ze("Updating file",r.path),await this.plugin.documentsRepository.addDocument(r.path);let t=[...this.notesToReindex].map(r=>r.path);t.length&&(this.plugin.searchEngine.removeFromPaths(t),await this.plugin.searchEngine.addFromPaths(t),this.notesToReindex.clear())}isFileIndexable(t){return this.plugin.settings.hideExcluded&&this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(t)?!1:this.isFilenameIndexable(t)||this.isContentIndexable(t)}isContentIndexable(t){let r=this.plugin.settings,n=!!this.plugin.getTextExtractor(),i=!!this.plugin.getAIImageAnalyzer(),u=n&&r.PDFIndexing,o=n&&r.imagesIndexing,l=i&&r.aiImageIndexing;return this.isFilePlaintext(t)||Ji(t)||Ec(t)||u&&Ni(t)||o&&Jn(t)||l&&Jn(t)}isFilenameIndexable(t){return this.canIndexUnsupportedFiles()||this.isFilePlaintext(t)||Ji(t)||os(t)||Ec(t)}canIndexUnsupportedFiles(){return this.plugin.settings.unsupportedFilesIndexing==="yes"||this.plugin.settings.unsupportedFilesIndexing==="default"&&!!this.plugin.app.vault.getConfig("showUnsupportedFiles")}generateIndexableNonexistingDocument(t,r){return t=Lp(t),{path:t+(t.endsWith(".md")?"":".md"),basename:t,displayTitle:"",mtime:0,content:"",cleanedContent:"",tags:[],unmarkedTags:[],aliases:"",headings1:"",headings2:"",headings3:"",doesNotExist:!0,parent:r}}isFilePlaintext(t){return[...this.plugin.settings.indexedFileTypes,"md"].some(r=>t.endsWith(`.${r}`))||this.plugin.settings.indexFilesWithoutExtension&&!t.includes(".")}};Mp();var vd=require("obsidian");en();var xd=class{constructor(t){this.plugin=t;this.embeds=new Map}addEmbed(t,r){this.embeds.has(t)||this.embeds.set(t,new Set),this.embeds.get(t).add(r)}removeFile(t){this.embeds.delete(t),this.refreshEmbedsForNote(t)}renameFile(t,r){this.embeds.has(t)&&(this.embeds.set(r,this.embeds.get(t)),this.embeds.delete(t)),this.embeds.forEach((n,i)=>{n.has(t)&&(n.delete(t),n.add(r))})}refreshEmbedsForNote(t){this.embeds.forEach((r,n)=>{r.has(t)&&r.delete(t)}),this.addEmbedsForNote(t)}getEmbeds(t){return this.embeds.has(t)?[...this.embeds.get(t)]:[]}async writeToCache(){Ze("Writing embeds to cache");let t=this.plugin.database,r=[];for(let[n,i]of this.embeds)r.push({embedded:n,referencedBy:[...i]});await t.embeds.clear(),await t.embeds.bulkAdd(r)}async loadFromCache(){try{let t=this.plugin.database;if(!t.embeds){Ze("No embeds in cache");return}Ze("Loading embeds from cache");let r=await t.embeds.toArray();for(let{embedded:n,referencedBy:i}of r)for(let u of i)this.addEmbed(n,u)}catch{this.plugin.database.clearCache(),console.error("Omnisearch - Error while loading embeds cache"),new vd.Notice("Omnisearch - There was an error while loading the cache. Please restart Obsidian.")}}addEmbedsForNote(t){let r=(this.plugin.app.metadataCache.getCache(t)?.embeds??[]).map(n=>this.plugin.app.metadataCache.getFirstLinkpathDest((0,vd.getLinkpath)(n.link),t)).filter(n=>!!n);for(let n of r)this.addEmbed(n.path,t)}};var yd=class{constructor(t){this.plugin=t;this.nextQueryIsEmpty=!1}async addToHistory(t){if(!t){this.nextQueryIsEmpty=!0;return}this.nextQueryIsEmpty=!1;let r=this.plugin.database,n=await r.searchHistory.toArray();n=n.filter(i=>i.query!==t).reverse(),n.unshift({query:t}),n=n.slice(0,10),await r.searchHistory.clear(),await r.searchHistory.bulkAdd(n)}async getHistory(){let t=(await this.plugin.database.searchHistory.toArray()).reverse().map(r=>r.query);return this.nextQueryIsEmpty&&t.unshift(""),t}};var Td=class extends si.Plugin{constructor(r,n){super(r,n);this.apiHttpServer=null;this.settings=Nc(this.app);this.embedsRepository=new xd(this);this.database=new Oc(this);this.notesIndexer=new Ed(this);this.textProcessor=new qf(this);this.searchEngine=new gd(this);this.searchHistory=new yd(this);this.documentsRepository=new bd(this)}async onload(){if(this.settings=await xE(this),this.addSettingTab(new Vf(this)),si.Platform.isMobile||Promise.resolve().then(()=>(Qy(),Ky)).then(i=>this.apiHttpServer=i.getServer(this)),Wf(this.app)){console.debug("Plugin disabled");return}await XN(this.app),await this.database.clearOldDatabases(),WE(this);let r=this.settings;r.ribbonIcon&&this.addRibbonButton(),Ke.disable("vault"),Ke.disable("infile"),Ke.on("global",Hf.ToggleExcerpts,()=>{oa.set(!r.showExcerpt)}),this.addCommand({id:"show-modal",name:"Vault search",callback:()=>{new Su(this).open()}}),this.addCommand({id:"show-modal-infile",name:"In-file search",editorCallback:(i,u)=>{u.file&&new ls(this,u.file).open()}});let n=this.searchEngine;this.app.workspace.onLayoutReady(async()=>{this.registerEvent(this.app.vault.on("create",i=>{i instanceof si.TFile&&this.notesIndexer.isFileIndexable(i.path)&&(Ze("Indexing new file",i.path),n.addFromPaths([i.path]),this.embedsRepository.refreshEmbedsForNote(i.path))})),this.registerEvent(this.app.vault.on("delete",i=>{i instanceof si.TFile&&(Ze("Removing file",i.path),this.documentsRepository.removeDocument(i.path),n.removeFromPaths([i.path]),this.embedsRepository.removeFile(i.path))})),this.registerEvent(this.app.vault.on("modify",async i=>{i instanceof si.TFile&&(this.notesIndexer.isFileIndexable(i.path)&&this.notesIndexer.flagNoteForReindex(i),this.embedsRepository.refreshEmbedsForNote(i.path))})),this.registerEvent(this.app.vault.on("rename",async(i,u)=>{i instanceof si.TFile&&this.notesIndexer.isFileIndexable(i.path)&&(Ze("Renaming file",i.path),this.documentsRepository.removeDocument(u),await this.documentsRepository.addDocument(i.path),n.removeFromPaths([u]),await n.addFromPaths([i.path]),this.embedsRepository.renameFile(u,i.path))})),this.refreshIndexCallback=this.notesIndexer.refreshIndex.bind(this.notesIndexer),addEventListener("blur",this.refreshIndexCallback),removeEventListener,await this.executeFirstLaunchTasks(),await this.populateIndex(),this.apiHttpServer&&r.httpApiEnabled&&this.apiHttpServer.listen(r.httpApiPort)})}async executeFirstLaunchTasks(){let r="1.21.0";this.settings.welcomeMessage=r,await this.saveData(this.settings)}async onunload(){delete globalThis.omnisearch,this.refreshIndexCallback&&removeEventListener("blur",this.refreshIndexCallback),await this.database.clearCache(),this.apiHttpServer.close()}addRibbonButton(){this.ribbonButton=this.addRibbonIcon("search","Omnisearch",r=>{new Su(this).open()})}removeRibbonButton(){this.ribbonButton&&this.ribbonButton.parentNode?.removeChild(this.ribbonButton)}getChsSegmenter(){return this.app.plugins?.plugins?.["cm-chs-patch"]}getTextExtractor(){return this.app.plugins?.plugins?.["text-extractor"]?.api}getAIImageAnalyzer(){return this.app.plugins?.plugins?.["ai-image-analyzer"]?.api}async populateIndex(){console.time("Indexing total time"),ua.set(2);let r=this.app.vault.getFiles().filter(u=>this.notesIndexer.isFileIndexable(u.path));console.debug(`${r.length} files total`),console.debug(`Cache is ${Iu()?"enabled":"disabled"}`);let n=this.searchEngine;Iu()&&(console.time("Loading index from cache"),ua.set(1),await n.loadCache()&&console.timeEnd("Loading index from cache"));let i=n.getDocumentsToReindex(r.map(u=>({path:u.path,mtime:u.stat.mtime})));if(Iu()&&(i.toAdd.length&&console.debug("Total number of files to add/update: "+i.toAdd.length),i.toRemove.length&&console.debug("Total number of files to remove: "+i.toRemove.length)),i.toAdd.length>=1e3&&Iu()&&new si.Notice(`${i.toAdd.length} files need to be indexed. Obsidian may experience stutters and freezes during the process`,1e4),ua.set(3),n.removeFromPaths(i.toRemove.map(u=>u.path)),await n.addFromPaths(i.toAdd.map(u=>u.path)),(i.toRemove.length||i.toAdd.length)&&Iu()){ua.set(4);let u=this.settings.useCache;u&&!this.settings.DANGER_forceSaveCache&&(this.settings.useCache=!1,await Me(this)),await this.database.writeMinisearchCache(),await this.embedsRepository.writeToCache(),u&&(this.settings.useCache=!0,await Me(this))}console.timeEnd("Indexing total time"),i.toAdd.length>=1e3&&Iu()&&new si.Notice("Your files have been indexed."),ua.set(0),QE()}};async function XN(e){let t=[`${e.vault.configDir}/plugins/omnisearch/searchIndex.json`,`${e.vault.configDir}/plugins/omnisearch/notesCache.json`,`${e.vault.configDir}/plugins/omnisearch/notesCache.data`,`${e.vault.configDir}/plugins/omnisearch/searchIndex.data`,`${e.vault.configDir}/plugins/omnisearch/historyCache.json`,`${e.vault.configDir}/plugins/omnisearch/pdfCache.data`];for(let r of t)if(await e.vault.adapter.exists(r))try{await e.vault.adapter.remove(r)}catch{}}
/*! Bundled license information:

search-query-parser/lib/search-query-parser.js:
  (*!
   * search-query-parser.js
   * Copyright(c) 2014-2019
   * MIT Licensed
   *)
*/

/* nosourcemap */