digital-garden/.obsidian/plugins/omnisearch/main.js
2024-06-13 21:01:37 +03:00

104 lines
592 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var My=Object.create;var $s=Object.defineProperty,ky=Object.defineProperties,Fy=Object.getOwnPropertyDescriptor,By=Object.getOwnPropertyDescriptors,jy=Object.getOwnPropertyNames,Hh=Object.getOwnPropertySymbols,Hy=Object.getPrototypeOf,Uh=Object.prototype.hasOwnProperty,Uy=Object.prototype.propertyIsEnumerable;var Wc=(e,t,r)=>t in e?$s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J=(e,t)=>{for(var r in t||(t={}))Uh.call(t,r)&&Wc(e,r,t[r]);if(Hh)for(var r of Hh(t))Uy.call(t,r)&&Wc(e,r,t[r]);return e},Fe=(e,t)=>ky(e,By(t)),Gh=e=>$s(e,"__esModule",{value:!0});var O=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qh=(e,t)=>{Gh(e);for(var r in t)$s(e,r,{get:t[r],enumerable:!0})},Gy=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of jy(t))!Uh.call(e,n)&&n!=="default"&&$s(e,n,{get:()=>t[n],enumerable:!(r=Fy(t,n))||r.enumerable});return e},Xe=e=>Gy(Gh($s(e!=null?My(Hy(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var zh=(e,t,r)=>(Wc(e,typeof t!="symbol"?t+"":t,r),r);function qe(){}function qy(e,t){for(let r in t)e[r]=t[r];return e}function Yc(e){return e()}function Vh(){return Object.create(null)}function cr(e){e.forEach(Yc)}function Pi(e){return typeof e=="function"}function ot(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Qc(e,t){return Iu||(Iu=document.createElement("a")),Iu.href=t,e===Iu.href}function Kh(e){return Object.keys(e).length===0}function Wh(e,...t){if(e==null)return qe;let r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function vu(e,t,r){e.$$.on_destroy.push(Wh(t,r))}function Li(e,t,r,n){if(e){let i=Yh(e,t,r,n);return e[0](i)}}function Yh(e,t,r,n){return e[1]&&n?qy(r.ctx.slice(),e[1](n(t))):r.ctx}function Mi(e,t,r,n){if(e[2]&&n){let i=e[2](n(r));if(t.dirty===void 0)return i;if(typeof i=="object"){let s=[],a=Math.max(t.dirty.length,i.length);for(let u=0;u<a;u+=1)s[u]=t.dirty[u]|i[u];return s}return t.dirty|i}return t.dirty}function ki(e,t,r,n,i,s){if(i){let a=Yh(t,r,n,s);e.p(a,i)}}function Fi(e){if(e.ctx.length>32){let t=[],r=e.ctx.length/32;for(let n=0;n<r;n++)t[n]=-1;return t}return-1}function Qh(e){return e&&Pi(e.destroy)?e.destroy:qe}function zy(){Xh=!0}function Vy(){Xh=!1}function j(e,t){e.appendChild(t)}function ae(e,t,r){e.insertBefore(t,r||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function Du(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function z(e){return document.createElement(e)}function dt(e){return document.createTextNode(e)}function ue(){return dt(" ")}function Xs(){return dt("")}function ht(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Z(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Ky(e){return Array.from(e.childNodes)}function Sr(e,t){t=""+t,e.data!==t&&(e.data=t)}function $c(e,t){e.value=t??""}function zt(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function Xc(e,t,r){e.classList[r?"add":"remove"](t)}function Wy(e,t,{bubbles:r=!1,cancelable:n=!1}={}){let i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}function Js(e){Zs=e}function Zc(){if(!Zs)throw new Error("Function called outside component initialization");return Zs}function ea(e){Zc().$$.on_mount.push(e)}function ta(e){Zc().$$.on_destroy.push(e)}function Jc(){let e=Zc();return(t,r,{cancelable:n=!1}={})=>{let i=e.$$.callbacks[t];if(i){let s=Wy(t,r,{cancelable:n});return i.slice().forEach(a=>{a.call(e,s)}),!s.defaultPrevented}return!0}}function Vt(e,t){let r=e.$$.callbacks[t.type];r&&r.slice().forEach(n=>n.call(this,t))}function e0(){el||(el=!0,Jh.then(t0))}function pn(){return e0(),Jh}function tl(e){ji.push(e)}function t0(){if(Hi!==0)return;let e=Zs;do{try{for(;Hi<Bi.length;){let t=Bi[Hi];Hi++,Js(t),Yy(t.$$)}}catch(t){throw Bi.length=0,Hi=0,t}for(Js(null),Bi.length=0,Hi=0;Wr.length;)Wr.pop()();for(let t=0;t<ji.length;t+=1){let r=ji[t];rl.has(r)||(rl.add(r),r())}ji.length=0}while(Bi.length);for(;Zh.length;)Zh.pop()();el=!1,rl.clear(),Js(e)}function Yy(e){if(e.fragment!==null){e.update(),cr(e.before_update);let t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(tl)}}function Qy(e){let t=[],r=[];ji.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),ji=t}function Zn(){Xn={r:0,c:[],p:Xn}}function Jn(){Xn.r||cr(Xn.c),Xn=Xn.p}function Ee(e,t){e&&e.i&&(Su.delete(e),e.i(t))}function xe(e,t,r,n){if(e&&e.o){if(Su.has(e))return;Su.add(e),Xn.c.push(()=>{Su.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}function Lt(e){e&&e.c()}function Dt(e,t,r,n){let{fragment:i,after_update:s}=e.$$;i&&i.m(t,r),n||tl(()=>{let a=e.$$.on_mount.map(Yc).filter(Pi);e.$$.on_destroy?e.$$.on_destroy.push(...a):cr(a),e.$$.on_mount=[]}),s.forEach(tl)}function Tt(e,t){let r=e.$$;r.fragment!==null&&(Qy(r.after_update),cr(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Xy(e,t){e.$$.dirty[0]===-1&&(Bi.push(e),e0(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function bt(e,t,r,n,i,s,a,u=[-1]){let o=Zs;Js(e);let c=e.$$={fragment:null,ctx:[],props:s,update:qe,not_equal:i,bound:Vh(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:Vh(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};a&&a(c.root);let f=!1;if(c.ctx=r?r(e,t.props||{},(h,d,..._)=>{let D=_.length?_[0]:d;return c.ctx&&i(c.ctx[h],c.ctx[h]=D)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](D),f&&Xy(e,h)),d}):[],c.update(),f=!0,cr(c.before_update),c.fragment=n?n(c.ctx):!1,t.target){if(t.hydrate){zy();let h=Ky(t.target);c.fragment&&c.fragment.l(h),h.forEach(se)}else c.fragment&&c.fragment.c();t.intro&&Ee(e.$$.fragment),Dt(e,t.target,t.anchor,t.customElement),Vy(),t0()}Js(o)}var Iu,$h,Cu,Xh,Zs,Bi,Wr,ji,Zh,Jh,el,rl,Hi,Su,Xn,$y,jM,Zy,pt,rr=O(()=>{$h=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global,Cu=class{constructor(t){this.options=t,this._listeners="WeakMap"in $h?new WeakMap:void 0}observe(t,r){return this._listeners.set(t,r),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return(t=this._observer)!==null&&t!==void 0?t:this._observer=new ResizeObserver(r=>{var n;for(let i of r)Cu.entries.set(i.target,i),(n=this._listeners.get(i.target))===null||n===void 0||n(i)})}};Cu.entries="WeakMap"in $h?new WeakMap:void 0;Xh=!1;Bi=[],Wr=[],ji=[],Zh=[],Jh=Promise.resolve(),el=!1;rl=new Set,Hi=0;Su=new Set;$y=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],jM=new Set([...$y]);typeof HTMLElement=="function"&&(Zy=class extends HTMLElement{constructor(){super();this.attachShadow({mode:"open"})}connectedCallback(){let{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(Yc).filter(Pi);for(let t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){cr(this.$$.on_disconnect)}$destroy(){Tt(this,1),this.$destroy=qe}$on(e,t){if(!Pi(t))return qe;let r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{let n=r.indexOf(t);n!==-1&&r.splice(n,1)}}$set(e){this.$$set&&!Kh(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});pt=class{$destroy(){Tt(this,1),this.$destroy=qe}$on(t,r){if(!Pi(r))return qe;let n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{let i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Kh(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}});var Ou=O(()=>{rr()});var nl,r0=O(()=>{nl=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,s])=>!this.disabled.includes(i.split("@")[0]));for(let[i,s]of n)i.endsWith(`@${t}`)&&s(...r)}}});function xu(e,t=qe){let r,n=new Set;function i(u){if(ot(e,u)&&(e=u,r)){let o=!Ui.length;for(let c of n)c[1](),Ui.push(c,e);if(o){for(let c=0;c<Ui.length;c+=2)Ui[c][0](Ui[c+1]);Ui.length=0}}}function s(u){i(u(e))}function a(u,o=qe){let c=[u,o];return n.add(c),n.size===1&&(r=t(i)||qe),u(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}var Ui,il=O(()=>{rr();rr();Ui=[]});function sl(e){s0=e}function al(){return s0}var n0,i0,ra,na,ce,Nu,nr,ge,mn,s0,Jy,ia,a0,Or=O(()=>{r0();il();n0=/[\u4e00-\u9fa5]/,i0=100,ra=300,na="omnisearch-disabled",ce=new nl,Nu={ToggleExcerpts:"toggle-excerpts"},nr=(s=>(s[s.Done=0]="Done",s[s.LoadingCache=1]="LoadingCache",s[s.ReadingFiles=2]="ReadingFiles",s[s.IndexingFiles=3]="IndexingFiles",s[s.WritingCache=4]="WritingCache",s))(nr||{}),ge=(h=>(h.Enter="enter",h.OpenInBackground="open-in-background",h.CreateNote="create-note",h.OpenInNewPane="open-in-new-pane",h.InsertLink="insert-link",h.Tab="tab",h.ArrowUp="arrow-up",h.ArrowDown="arrow-down",h.PrevSearchHistory="prev-search-history",h.NextSearchHistory="next-search-history",h.OpenInNewLeaf="open-in-new-leaf",h))(ge||{}),mn=xu(0),s0=!1;Jy=/[|\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),ia=new RegExp(`${Jy}+`,"u"),a0=/[|\[\]\(\)<>\{\} \t\n\r]/u});function eI(e){let t,r,n,i,s,a,u,o,c=e[9].default,f=Li(c,e,e[8],null);return{c(){t=z("div"),r=z("div"),n=z("input"),s=ue(),f&&f.c(),Z(n,"class","prompt-input"),Z(n,"placeholder",e[0]),Z(n,"spellcheck","false"),Z(n,"type","text"),Z(r,"class","omnisearch-input-field"),Z(t,"class","omnisearch-input-container")},m(h,d){ae(h,t,d),j(t,r),j(r,n),e[10](n),$c(n,e[1]),j(t,s),f&&f.m(t,null),a=!0,u||(o=[ht(n,"input",e[11]),ht(n,"compositionend",e[12]),ht(n,"compositionstart",e[13]),ht(n,"input",e[4]),Qh(i=e[3].call(null,n))],u=!0)},p(h,[d]){(!a||d&1)&&Z(n,"placeholder",h[0]),d&2&&n.value!==h[1]&&$c(n,h[1]),f&&f.p&&(!a||d&256)&&ki(f,c,h,h[8],a?Mi(c,h[8],d,null):Fi(h[8]),null)},i(h){a||(Ee(f,h),a=!0)},o(h){xe(f,h),a=!1},d(h){h&&se(t),e[10](null),f&&f.d(h),u=!1,cr(o)}}}function tI(e,t,r){let{$$slots:n={},$$scope:i}=t,{initialValue:s=""}=t,{placeholder:a=""}=t,{plugin:u}=t,o=!1,c="",f,h=Jc();function d(b){r(1,c=b)}function _(b){b&&!o&&!c&&(o=!0,r(1,c=b),D())}function D(b){pn().then(()=>(f.focus(),pn())).then(()=>{f.select()})}let E=(0,u0.debounce)(()=>{u.cacheManager.addToSearchHistory(""),h("input",c)},300);function g(b){Wr[b?"unshift":"push"](()=>{f=b,r(2,f)})}function p(){c=this.value,r(1,c)}let A=b=>sl(!1),I=b=>sl(!0);return e.$$set=b=>{"initialValue"in b&&r(5,s=b.initialValue),"placeholder"in b&&r(0,a=b.placeholder),"plugin"in b&&r(6,u=b.plugin),"$$scope"in b&&r(8,i=b.$$scope)},e.$$.update=()=>{if(e.$$.dirty&32){e:_(s)}},[a,c,f,D,E,s,u,d,i,n,g,p,A,I]}var u0,o0,Ru,ul=O(()=>{rr();u0=Xe(require("obsidian"));Or();Ou();o0=class extends pt{constructor(t){super();bt(this,t,tI,eI,ot,{initialValue:5,placeholder:0,plugin:6,setInputValue:7})}get setInputValue(){return this.$$.ctx[7]}},Ru=o0});function rI(e){let t,r,n,i,s=e[1].default,a=Li(s,e,e[0],null);return{c(){t=z("div"),a&&a.c(),Z(t,"class","prompt-results")},m(u,o){ae(u,t,o),a&&a.m(t,null),r=!0,n||(i=ht(t,"mousedown",nI),n=!0)},p(u,[o]){a&&a.p&&(!r||o&1)&&ki(a,s,u,u[0],r?Mi(s,u[0],o,null):Fi(u[0]),null)},i(u){r||(Ee(a,u),r=!0)},o(u){xe(a,u),r=!1},d(u){u&&se(t),a&&a.d(u),n=!1,i()}}}function iI(e,t,r){let{$$slots:n={},$$scope:i}=t;return e.$$set=s=>{"$$scope"in s&&r(0,i=s.$$scope)},[i,n]}var nI,c0,wu,ol=O(()=>{rr();nI=e=>e.preventDefault();c0=class extends pt{constructor(t){super();bt(this,t,iI,rI,ot,{})}},wu=c0});async function Pu(e,t,r=0,n=!1,i=!1){let s=!1;e.workspace.iterateAllLeaves(o=>{o.view instanceof cl.MarkdownView&&!n&&o.getViewState().state?.file===t.path&&o.getViewState()?.pinned&&(e.workspace.setActiveLeaf(o,{focus:!0}),s=!0)}),s||await e.workspace.openLinkText(t.path,"",i?"split":n);let a=e.workspace.getActiveViewOfType(cl.MarkdownView);if(!a)return;let u=a.editor.offsetToPos(r);a.editor.setCursor(u),a.editor.scrollIntoView({from:{line:u.line-10,ch:0},to:{line:u.line+10,ch:0}})}async function l0(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 f0(e,t,r){return(r.links??[]).map(n=>{let i=ll(n.link);return e.metadataCache.getFirstLinkpathDest(i,t.path)?"":n.link}).filter(n=>!!n)}function ll(e){return e.split(/[\^#]+/)[0]}var cl,sa=O(()=>{cl=Xe(require("obsidian"))});var d0=U((aa,fl)=>{(function(e,t){if(typeof aa=="object"&&typeof fl=="object")fl.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var r=t();for(var n in r)(typeof aa=="object"?aa:e)[n]=r[n]}})(typeof self!="undefined"?self:aa,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(n,i,s){r.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:s})},r.r=function(n){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,i){if(1&i&&(n=r(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var a in n)r.d(s,a,function(u){return n[u]}.bind(null,a));return s},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t),r.d(t,"md5",function(){return E});var n="0123456789abcdef".split(""),i=function(g){for(var p="",A=0;A<4;A++)p+=n[g>>8*A+4&15]+n[g>>8*A&15];return p},s=function(g){for(var p=g.length,A=0;A<p;A++)g[A]=i(g[A]);return g.join("")},a=function(g,p){return g+p&4294967295},u=function(g,p,A,I,b,y,C){return function(S,N,P){return a(S<<N|S>>>32-N,P)}(p=function(S,N,P,q){return N=a(a(N,S),a(P,q))}(g,p,I,y),b,A)},o=function(g,p,A,I,b,y,C,S){return u(A&I|~A&b,p,A,y,C,S,g)},c=function(g,p,A,I,b,y,C,S){return u(A&b|I&~b,p,A,y,C,S,g)},f=function(g,p,A,I,b,y,C,S){return u(A^I^b,p,A,y,C,S,g)},h=function(g,p,A,I,b,y,C,S){return u(I^(A|~b),p,A,y,C,S,g)},d=function(g,p,A){A===void 0&&(A=a);var I=g[0],b=g[1],y=g[2],C=g[3],S=o.bind(null,A);I=S(I,b,y,C,p[0],7,-680876936),C=S(C,I,b,y,p[1],12,-389564586),y=S(y,C,I,b,p[2],17,606105819),b=S(b,y,C,I,p[3],22,-1044525330),I=S(I,b,y,C,p[4],7,-176418897),C=S(C,I,b,y,p[5],12,1200080426),y=S(y,C,I,b,p[6],17,-1473231341),b=S(b,y,C,I,p[7],22,-45705983),I=S(I,b,y,C,p[8],7,1770035416),C=S(C,I,b,y,p[9],12,-1958414417),y=S(y,C,I,b,p[10],17,-42063),b=S(b,y,C,I,p[11],22,-1990404162),I=S(I,b,y,C,p[12],7,1804603682),C=S(C,I,b,y,p[13],12,-40341101),y=S(y,C,I,b,p[14],17,-1502002290),b=S(b,y,C,I,p[15],22,1236535329);var N=c.bind(null,A);I=N(I,b,y,C,p[1],5,-165796510),C=N(C,I,b,y,p[6],9,-1069501632),y=N(y,C,I,b,p[11],14,643717713),b=N(b,y,C,I,p[0],20,-373897302),I=N(I,b,y,C,p[5],5,-701558691),C=N(C,I,b,y,p[10],9,38016083),y=N(y,C,I,b,p[15],14,-660478335),b=N(b,y,C,I,p[4],20,-405537848),I=N(I,b,y,C,p[9],5,568446438),C=N(C,I,b,y,p[14],9,-1019803690),y=N(y,C,I,b,p[3],14,-187363961),b=N(b,y,C,I,p[8],20,1163531501),I=N(I,b,y,C,p[13],5,-1444681467),C=N(C,I,b,y,p[2],9,-51403784),y=N(y,C,I,b,p[7],14,1735328473),b=N(b,y,C,I,p[12],20,-1926607734);var P=f.bind(null,A);I=P(I,b,y,C,p[5],4,-378558),C=P(C,I,b,y,p[8],11,-2022574463),y=P(y,C,I,b,p[11],16,1839030562),b=P(b,y,C,I,p[14],23,-35309556),I=P(I,b,y,C,p[1],4,-1530992060),C=P(C,I,b,y,p[4],11,1272893353),y=P(y,C,I,b,p[7],16,-155497632),b=P(b,y,C,I,p[10],23,-1094730640),I=P(I,b,y,C,p[13],4,681279174),C=P(C,I,b,y,p[0],11,-358537222),y=P(y,C,I,b,p[3],16,-722521979),b=P(b,y,C,I,p[6],23,76029189),I=P(I,b,y,C,p[9],4,-640364487),C=P(C,I,b,y,p[12],11,-421815835),y=P(y,C,I,b,p[15],16,530742520),b=P(b,y,C,I,p[2],23,-995338651);var q=h.bind(null,A);I=q(I,b,y,C,p[0],6,-198630844),C=q(C,I,b,y,p[7],10,1126891415),y=q(y,C,I,b,p[14],15,-1416354905),b=q(b,y,C,I,p[5],21,-57434055),I=q(I,b,y,C,p[12],6,1700485571),C=q(C,I,b,y,p[3],10,-1894986606),y=q(y,C,I,b,p[10],15,-1051523),b=q(b,y,C,I,p[1],21,-2054922799),I=q(I,b,y,C,p[8],6,1873313359),C=q(C,I,b,y,p[15],10,-30611744),y=q(y,C,I,b,p[6],15,-1560198380),b=q(b,y,C,I,p[13],21,1309151649),I=q(I,b,y,C,p[4],6,-145523070),C=q(C,I,b,y,p[11],10,-1120210379),y=q(y,C,I,b,p[2],15,718787259),b=q(b,y,C,I,p[9],21,-343485551),g[0]=A(I,g[0]),g[1]=A(b,g[1]),g[2]=A(y,g[2]),g[3]=A(C,g[3])},_=function(g){for(var p=[],A=0;A<64;A+=4)p[A>>2]=g.charCodeAt(A)+(g.charCodeAt(A+1)<<8)+(g.charCodeAt(A+2)<<16)+(g.charCodeAt(A+3)<<24);return p},D=function(g,p){var A,I=g.length,b=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=I;A+=64)d(b,_(g.substring(A-64,A)),p);var y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C=(g=g.substring(A-64)).length;for(A=0;A<C;A++)y[A>>2]|=g.charCodeAt(A)<<(A%4<<3);if(y[A>>2]|=128<<(A%4<<3),A>55)for(d(b,y,p),A=16;A--;)y[A]=0;return y[14]=8*I,d(b,y,p),b};function E(g){var p;return s(D("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(p=function(A,I){var b=(65535&A)+(65535&I);return(A>>16)+(I>>16)+(b>>16)<<16|65535&b}),s(D(g,p))}}])})});function h0(e){let t=e.split("/");return t.pop(),t.join("/")}function Lu(e,t){return e.headings?.filter(r=>r.level===t).map(r=>r.heading)??[]}function Mu(e,t){return(e+t)%t}function p0(e){return e.replace(/(\*|_)+(.+?)(\*|_)+/g,(t,r,n)=>n)}function m0(e){return e?.frontmatter?(0,Gi.parseFrontMatterAliases)(e.frontmatter)??[]:[]}function g0(e){let t=e?(0,Gi.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 Yr(e){let r=["\\u30FC","\\u309A","\\u3099"].join("|"),n=new RegExp(`(?!${r})\\p{Diacritic}`,"gu");return e==null?"":(e=e.replaceAll("`","[__omnisearch__backtick__]"),e=e.replaceAll("^","[__omnisearch__caret__]"),e=e.normalize("NFD").replace(n,"").normalize("NFC"),e=e.replaceAll("[__omnisearch__backtick__]","`"),e=e.replaceAll("[__omnisearch__caret__]","^"),e)}function gn(){return Gi.Platform.isMacOS?"\u2318":"ctrl"}function ei(e){let t=Tn(e);return t==="png"||t==="jpg"||t==="jpeg"||t==="webp"}function _n(e){return Tn(e)==="pdf"}function _0(e){let t=Tn(e);return t==="docx"||t==="xlsx"}function ti(e){return e.endsWith(".canvas")}function ua(e){return e.endsWith(".loom")}function Tn(e){let t=e.split(".");return t[t.length-1]??""}function T0(e,t){let r=[],n=0,i=e.length;for(;n<i;)r.push(e.slice(n,n+=t));return r}function dl(e){return/[a-z][A-Z]/.test(e)?e.replace(/([a-z](?=[A-Z]))/g,"$1 ").split(" ").filter(r=>r):[]}function hl(e){return e.includes("-")?e.split("-").filter(t=>t):[]}function ve(...e){A0(console.log,...e)}function b0(...e){A0(console.warn,...e)}function pl(e){E0=e}function A0(e,...t){if(E0){let r=new Date,n=`${r.getMinutes()}:${r.getSeconds()}:${r.getMilliseconds()}`;e("Omnisearch -",n+" -",...t)}}var Gi,sI,aI,E0,ir=O(()=>{Gi=Xe(require("obsidian"));Or();sI=Xe(require("crypto")),aI=Xe(d0());E0=!1});function Fu(e){return{useCache:!0,hideExcluded:!1,downrankedFoldersFilters:[],ignoreDiacritics:!0,indexedFileTypes:[],PDFIndexing:!1,officeIndexing:!1,imagesIndexing:!1,unsupportedFilesIndexing:"default",splitCamelCase:!1,openInNewPane:!1,vimLikeNavigationShortcut:e.vault.getConfig("vimMode"),ribbonIcon:!0,showExcerpt:!0,renderLineReturnInExcerpts:!0,showCreateButton:!1,highlight:!0,showPreviousQueryResults:!0,simpleSearch:!1,tokenizeUrls:!1,fuzziness:"1",weightBasename:3,weightDirectory:2,weightH1:1.5,weightH2:1.3,weightH3:1.1,weightUnmarkedTags:1.1,weightCustomProperties:[],httpApiEnabled:!1,httpApiPort:"51361",httpApiNotice:!0,welcomeMessage:"",verboseLogging:!1,DANGER_httpHost:null}}async function y0(e){return W=Object.assign({},Fu(e.app),await e.loadData()),ri.set(W.showExcerpt),pl(W.verboseLogging),W}async function _e(e){await e.saveData(W)}function gl(e){return e.loadLocalStorage(na)==="1"}function bn(){return!ne.Platform.isIosApp&&W.useCache}var ne,ri,ku,ml,W,_l=O(()=>{ne=Xe(require("obsidian"));il();Or();ir();ri=xu(!1),ku='<strong style="color: var(--text-accent)">Needs a restart to fully take effect.</strong>',ml=class extends ne.PluginSettingTab{constructor(t){super(t.app,t);this.plugin=t,ri.subscribe(async r=>{W.showExcerpt=r,await _e(this.plugin)})}display(){let{containerEl:t}=this,r=this.plugin.database,n=this.plugin.getTextExtractor();if(t.empty(),this.app.loadLocalStorage(na)=="1"){let g=t.createEl("span");g.innerHTML='<strong style="color: var(--text-accent)">\u26A0\uFE0F OMNISEARCH IS DISABLED \u26A0\uFE0F</strong>'}t.createEl("h1",{text:"Omnisearch"});let i=t.createDiv();i.innerHTML=`
<iframe sandbox="allow-top-navigation-by-user-activation" src="https://github.com/sponsors/scambier/button" title="Sponsor scambier" height="35" width="116" style="border: 0;"></iframe>
<a href='https://ko-fi.com/B0B6LQ2C' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi2.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
`;let s=new DocumentFragment;s.createSpan({},g=>{g.innerHTML='\u26A0\uFE0F <span style="color: var(--text-accent)">Changing indexing settings will clear the cache, and requires a restart of Obsidian.</span><br/><br/>',n?g.innerHTML+=`
\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.`:g.innerHTML+='\u26A0\uFE0F Omnisearch requires <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a> to index PDFs and images.'}),new ne.Setting(t).setName("Indexing").setHeading().setDesc(s);let a=new DocumentFragment;a.createSpan({},g=>{g.innerHTML="Omnisearch will use Text Extractor to index the content of your PDFs."}),new ne.Setting(t).setName(`PDFs content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(a).addToggle(g=>g.setValue(W.PDFIndexing).onChange(async p=>{await r.clearCache(),W.PDFIndexing=p,await _e(this.plugin)})).setDisabled(!n);let u=new DocumentFragment;u.createSpan({},g=>{g.innerHTML="Omnisearch will use Text Extractor to OCR your images and index their content."}),new ne.Setting(t).setName(`Images OCR indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(u).addToggle(g=>g.setValue(W.imagesIndexing).onChange(async p=>{await r.clearCache(),W.imagesIndexing=p,await _e(this.plugin)})).setDisabled(!n);let o=new DocumentFragment;o.createSpan({},g=>{g.innerHTML='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 ne.Setting(t).setName(`Documents content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(o).addToggle(g=>g.setValue(W.officeIndexing).onChange(async p=>{await r.clearCache(),W.officeIndexing=p,await _e(this.plugin)})).setDisabled(!n);let c=new DocumentFragment;c.createSpan({},g=>{g.innerHTML=`
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".`}),new ne.Setting(t).setName("Index paths of unsupported files").setDesc(c).addDropdown(g=>{g.addOptions({yes:"Yes",no:"No",default:"Obsidian setting"}).setValue(W.unsupportedFilesIndexing).onChange(async p=>{await r.clearCache(),W.unsupportedFilesIndexing=p,await _e(this.plugin)})});let f=new DocumentFragment;f.createSpan({},g=>{g.innerHTML=`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>`}),new ne.Setting(t).setName("Additional TEXT files to index").setDesc(f).addText(g=>{g.setValue(W.indexedFileTypes.join(" ")).setPlaceholder("Example: txt org csv").onChange(async p=>{await r.clearCache(),W.indexedFileTypes=p.split(" "),await _e(this.plugin)})}),new ne.Setting(t).setName("Behavior").setHeading(),new ne.Setting(t).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(g=>g.setValue(W.useCache).onChange(async p=>{W.useCache=p,await _e(this.plugin)})),new ne.Setting(t).setName("Show previous query results").setDesc("Re-executes the previous query when opening Omnisearch.").addToggle(g=>g.setValue(W.showPreviousQueryResults).onChange(async p=>{W.showPreviousQueryResults=p,await _e(this.plugin)})),new ne.Setting(t).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(g=>g.setValue(W.hideExcluded).onChange(async p=>{W.hideExcluded=p,await _e(this.plugin)})),new ne.Setting(t).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(g=>{g.setValue(W.downrankedFoldersFilters.join(",")).setPlaceholder("Example: src,p2/dir").onChange(async p=>{let A=p.split(",");A=A.map(I=>I.trim()),W.downrankedFoldersFilters=A,await _e(this.plugin)})});let h=new DocumentFragment;h.createSpan({},g=>{g.innerHTML=`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>
${ku}
`}),new ne.Setting(t).setName("Split CamelCaseWords").setDesc(h).addToggle(g=>g.setValue(W.splitCamelCase).onChange(async p=>{await r.clearCache(),W.splitCamelCase=p,await _e(this.plugin)})),new ne.Setting(t).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(g=>g.setValue(W.simpleSearch).onChange(async p=>{W.simpleSearch=p,await _e(this.plugin)})),ne.Platform.isIosApp||new ne.Setting(t).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(g=>g.setValue(W.tokenizeUrls).onChange(async p=>{W.tokenizeUrls=p,await _e(this.plugin)})),new ne.Setting(t).setName("Open in new pane").setDesc("Open and create files in a new pane instead of the current pane.").addToggle(g=>g.setValue(W.openInNewPane).onChange(async p=>{W.openInNewPane=p,await _e(this.plugin)})),new ne.Setting(t).setName("Set Vim like navigation keys").setDesc("Navigate down the results with Ctrl/\u2318 + J/N, or navigate up with Ctrl/\u2318 + K/P").addToggle(g=>g.setValue(W.vimLikeNavigationShortcut).onChange(async p=>{W.vimLikeNavigationShortcut=p,await _e(this.plugin)})),new ne.Setting(t).setName("Fuzziness").setDesc("Define the level of fuzziness for the search. The higher the fuzziness, the more results you'll get.").addDropdown(g=>g.addOptions({0:"Exact match",1:"Not too fuzzy",2:"Fuzzy enough"}).setValue(W.fuzziness).onChange(async p=>{["0","1","2"].includes(p)||(p="2"),W.fuzziness=p,await _e(this.plugin)})),new ne.Setting(t).setName("User Interface").setHeading(),new ne.Setting(t).setName("Show ribbon button").setDesc("Add a button on the sidebar to open the Vault search modal.").addToggle(g=>g.setValue(W.ribbonIcon).onChange(async p=>{W.ribbonIcon=p,await _e(this.plugin),p?this.plugin.addRibbonButton():this.plugin.removeRibbonButton()})),new ne.Setting(t).setName("Show excerpts").setDesc("Shows the contextual part of the note that matches the search. Disable this to only show filenames in results.").addToggle(g=>g.setValue(W.showExcerpt).onChange(async p=>{ri.set(p)})),new ne.Setting(t).setName("Render line return in excerpts").setDesc("Activate this option to render line returns in result excerpts.").addToggle(g=>g.setValue(W.renderLineReturnInExcerpts).onChange(async p=>{W.renderLineReturnInExcerpts=p,await _e(this.plugin)}));let d=new DocumentFragment;d.createSpan({},g=>{g.innerHTML=`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.`}),new ne.Setting(t).setName('Show "Create note" button').setDesc(d).addToggle(g=>g.setValue(W.showCreateButton).onChange(async p=>{W.showCreateButton=p,await _e(this.plugin)})),new ne.Setting(t).setName("Highlight matching words in results").setDesc("Will highlight matching results when enabled. See README for more customization options.").addToggle(g=>g.setValue(W.highlight).onChange(async p=>{W.highlight=p,await _e(this.plugin)}));let _=Fu(this.app);new ne.Setting(t).setName("Results weighting").setHeading(),new ne.Setting(t).setName(`File name & declared aliases (default: ${_.weightBasename})`).addSlider(g=>this.weightSlider(g,"weightBasename")),new ne.Setting(t).setName(`File directory (default: ${_.weightDirectory})`).addSlider(g=>this.weightSlider(g,"weightDirectory")),new ne.Setting(t).setName(`Headings level 1 (default: ${_.weightH1})`).addSlider(g=>this.weightSlider(g,"weightH1")),new ne.Setting(t).setName(`Headings level 2 (default: ${_.weightH2})`).addSlider(g=>this.weightSlider(g,"weightH2")),new ne.Setting(t).setName(`Headings level 3 (default: ${_.weightH3})`).addSlider(g=>this.weightSlider(g,"weightH3")),new ne.Setting(t).setName(`Tags (default: ${_.weightUnmarkedTags})`).addSlider(g=>this.weightSlider(g,"weightUnmarkedTags")),new ne.Setting(t).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 g=0;g<W.weightCustomProperties.length;g++){let p=W.weightCustomProperties[g];new ne.Setting(t).setName((g+1).toString()+".").addText(A=>{A.setPlaceholder("Property name").setValue(p.name).onChange(async I=>{p.name=I,await _e(this.plugin)})}).addSlider(A=>{A.setLimits(.1,5,.1).setValue(p.weight).setDynamicTooltip().onChange(async I=>{p.weight=I,await _e(this.plugin)})}).addButton(A=>{A.setButtonText("Remove"),A.onClick(async()=>{W.weightCustomProperties.splice(g,1),await _e(this.plugin),this.display()})})}if(new ne.Setting(t).addButton(g=>{g.setButtonText("Add a new property"),g.onClick(p=>{W.weightCustomProperties.push({name:"",weight:1}),this.display()})}),!ne.Platform.isMobile){let g=new DocumentFragment;g.createSpan({},p=>{p.innerHTML='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 ne.Setting(t).setName("API Access Through HTTP").setHeading().setDesc(g),new ne.Setting(t).setName("Enable the HTTP server").addToggle(p=>p.setValue(W.httpApiEnabled).onChange(async A=>{W.httpApiEnabled=A,A?this.plugin.apiHttpServer.listen(W.httpApiPort):this.plugin.apiHttpServer.close(),await _e(this.plugin)})),new ne.Setting(t).setName("HTTP Port").addText(p=>{p.setValue(W.httpApiPort).setPlaceholder("51361").onChange(async A=>{parseInt(A)>65535&&(A=W.httpApiPort,p.setValue(W.httpApiPort)),W.httpApiPort=A,W.httpApiEnabled&&(this.plugin.apiHttpServer.close(),this.plugin.apiHttpServer.listen(W.httpApiPort)),await _e(this.plugin)})}),new ne.Setting(t).setName("Show a notification when the server starts").setDesc("Will display a notification if the server is enabled, at Obsidian startup.").addToggle(p=>p.setValue(W.httpApiNotice).onChange(async A=>{W.httpApiNotice=A,await _e(this.plugin)}))}new ne.Setting(t).setName("Debugging").setHeading(),new ne.Setting(t).setName("Enable verbose logging").setDesc("Adds a LOT of logs for debugging purposes. Don't forget to disable it.").addToggle(g=>g.setValue(W.verboseLogging).onChange(async p=>{W.verboseLogging=p,pl(p),await _e(this.plugin)})),new ne.Setting(t).setName("Danger Zone").setHeading();let D=new DocumentFragment;D.createSpan({},g=>{g.innerHTML=`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>
${ku}
`}),new ne.Setting(t).setName("Ignore diacritics").setDesc(D).addToggle(g=>g.setValue(W.ignoreDiacritics).onChange(async p=>{await r.clearCache(),W.ignoreDiacritics=p,await _e(this.plugin)}));let E=new DocumentFragment;if(E.createSpan({},g=>{g.innerHTML=`Disable Omnisearch on this device only.<br>
${ku}`}),new ne.Setting(t).setName("Disable on this device").setDesc(E).addToggle(g=>g.setValue(gl(this.app)).onChange(async p=>{p?this.app.saveLocalStorage(na,"1"):this.app.saveLocalStorage(na),new ne.Notice("Omnisearch - Disabled. Please restart Obsidian.")})),bn()){let g=new DocumentFragment;g.createSpan({},p=>{p.innerHTML=`Erase all Omnisearch cache data.
Use this if Omnisearch results are inconsistent, missing, or appear outdated.<br>
${ku}`}),new ne.Setting(t).setName("Clear cache data").setDesc(g).addButton(p=>{p.setButtonText("Clear cache"),p.onClick(async()=>{await r.clearCache()})})}}weightSlider(t,r){t.setLimits(1,5,.1).setValue(W[r]).setDynamicTooltip().onChange(async n=>{W[r]=n,await _e(this.plugin)})}}});function uI(e){let t;return{c(){t=z("span"),t.innerHTML='<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>',Z(t,"class","suggestion-flair"),Z(t,"aria-label","Not created yet, select to create")},m(r,n){ae(r,t,n)},p:qe,i:qe,o:qe,d(r){r&&se(t)}}}function oI(e){"use strict";return[]}var I0,v0,C0=O(()=>{rr();I0=class extends pt{constructor(t){super();bt(this,t,oI,uI,ot,{})}},v0=I0});function D0(e){let t,r;return t=new v0({}),{c(){Lt(t.$$.fragment)},m(n,i){Dt(t,n,i),r=!0},i(n){r||(Ee(t.$$.fragment,n),r=!0)},o(n){xe(t.$$.fragment,n),r=!1},d(n){Tt(t,n)}}}function cI(e){let t,r,n,i,s,a=e[2]&&D0(e),u=e[4].default,o=Li(u,e,e[3],null);return{c(){t=z("div"),a&&a.c(),r=ue(),o&&o.c(),Z(t,"data-result-id",e[0]),Z(t,"class","suggestion-item omnisearch-result"),Xc(t,"is-selected",e[1])},m(c,f){ae(c,t,f),a&&a.m(t,null),j(t,r),o&&o.m(t,null),n=!0,i||(s=[ht(t,"mousemove",e[5]),ht(t,"click",e[6]),ht(t,"keypress",e[7]),ht(t,"auxclick",e[8])],i=!0)},p(c,[f]){c[2]?a?f&4&&Ee(a,1):(a=D0(c),a.c(),Ee(a,1),a.m(t,r)):a&&(Zn(),xe(a,1,1,()=>{a=null}),Jn()),o&&o.p&&(!n||f&8)&&ki(o,u,c,c[3],n?Mi(u,c[3],f,null):Fi(c[3]),null),(!n||f&1)&&Z(t,"data-result-id",c[0]),(!n||f&2)&&Xc(t,"is-selected",c[1])},i(c){n||(Ee(a),Ee(o,c),n=!0)},o(c){xe(a),xe(o,c),n=!1},d(c){c&&se(t),a&&a.d(),o&&o.d(c),i=!1,cr(s)}}}function lI(e,t,r){let{$$slots:n={},$$scope:i}=t,{id:s}=t,{selected:a=!1}=t,{glyph:u=!1}=t;function o(d){Vt.call(this,e,d)}function c(d){Vt.call(this,e,d)}function f(d){Vt.call(this,e,d)}function h(d){Vt.call(this,e,d)}return e.$$set=d=>{"id"in d&&r(0,s=d.id),"selected"in d&&r(1,a=d.selected),"glyph"in d&&r(2,u=d.glyph),"$$scope"in d&&r(3,i=d.$$scope)},[s,a,u,i,n,o,c,f,h]}var S0,Bu,Tl=O(()=>{rr();C0();S0=class extends pt{constructor(t){super();bt(this,t,lI,cI,ot,{id:0,selected:1,glyph:2})}},Bu=S0});function O0(e){let t,r=e[1].matches.length+"",n,i,s=(e[1].matches.length>1?"matches":"match")+"",a;return{c(){t=z("span"),n=dt(r),i=dt("\xA0"),a=dt(s),Z(t,"class","omnisearch-result__counter")},m(u,o){ae(u,t,o),j(t,n),j(t,i),j(t,a)},p(u,o){o&2&&r!==(r=u[1].matches.length+"")&&Sr(n,r),o&2&&s!==(s=(u[1].matches.length>1?"matches":"match")+"")&&Sr(a,s)},d(u){u&&se(t)}}}function x0(e){let t,r,n,i,s=e[2].textProcessor.highlightText(e[4],e[10])+"";return{c(){t=z("div"),r=z("span"),n=ue(),i=z("span"),Z(t,"class","omnisearch-result__folder-path")},m(a,u){ae(a,t,u),j(t,r),e[14](r),j(t,n),j(t,i),i.innerHTML=s},p(a,u){u&1044&&s!==(s=a[2].textProcessor.highlightText(a[4],a[10])+"")&&(i.innerHTML=s)},d(a){a&&se(t),e[14](null)}}}function N0(e){let t,r=e[2].textProcessor.highlightText(e[9],e[1].matches)+"";return{c(){t=z("div"),Z(t,"class","omnisearch-result__body")},m(n,i){ae(n,t,i),t.innerHTML=r},p(n,i){i&518&&r!==(r=n[2].textProcessor.highlightText(n[9],n[1].matches)+"")&&(t.innerHTML=r)},d(n){n&&se(t)}}}function R0(e){let t,r,n;return{c(){t=z("div"),r=z("img"),zt(r,"width","100px"),Qc(r.src,n=e[7])||Z(r,"src",n),Z(r,"alt",""),Z(t,"class","omnisearch-result__image-container")},m(i,s){ae(i,t,s),j(t,r)},p(i,s){s&128&&!Qc(r.src,n=i[7])&&Z(r,"src",n)},d(i){i&&se(t)}}}function fI(e){let t,r,n,i,s,a,u=e[2].textProcessor.highlightText(e[3],e[11])+"",o,c,f,h=Tn(e[1].path)+"",d,_,D,E,g,p,A=e[1].matches.length>0&&O0(e),I=e[4]&&x0(e),b=e[12]&&N0(e),y=e[7]&&R0(e);return{c(){t=z("div"),r=z("div"),n=z("span"),i=z("span"),s=ue(),a=z("span"),o=ue(),c=z("span"),f=dt("."),d=dt(h),_=ue(),A&&A.c(),D=ue(),I&&I.c(),E=ue(),g=z("div"),b&&b.c(),p=ue(),y&&y.c(),Z(c,"class","omnisearch-result__extension"),Z(n,"class","omnisearch-result__title"),Z(r,"class","omnisearch-result__title-container"),zt(g,"display","flex"),zt(g,"flex-direction","row")},m(C,S){ae(C,t,S),j(t,r),j(r,n),j(n,i),e[13](i),j(n,s),j(n,a),a.innerHTML=u,j(n,o),j(n,c),j(c,f),j(c,d),j(n,_),A&&A.m(n,null),j(t,D),I&&I.m(t,null),j(t,E),j(t,g),b&&b.m(g,null),j(g,p),y&&y.m(g,null)},p(C,S){S&2060&&u!==(u=C[2].textProcessor.highlightText(C[3],C[11])+"")&&(a.innerHTML=u),S&2&&h!==(h=Tn(C[1].path)+"")&&Sr(d,h),C[1].matches.length>0?A?A.p(C,S):(A=O0(C),A.c(),A.m(n,null)):A&&(A.d(1),A=null),C[4]?I?I.p(C,S):(I=x0(C),I.c(),I.m(t,E)):I&&(I.d(1),I=null),C[12]?b?b.p(C,S):(b=N0(C),b.c(),b.m(g,p)):b&&(b.d(1),b=null),C[7]?y?y.p(C,S):(y=R0(C),y.c(),y.m(g,null)):y&&(y.d(1),y=null)},d(C){C&&se(t),e[13](null),A&&A.d(),I&&I.d(),b&&b.d(),y&&y.d()}}}function dI(e){let t,r;return t=new Bu({props:{glyph:e[8],id:e[1].path,selected:e[0],$$slots:{default:[fI]},$$scope:{ctx:e}}}),t.$on("auxclick",e[15]),t.$on("click",e[16]),t.$on("mousemove",e[17]),{c(){Lt(t.$$.fragment)},m(n,i){Dt(t,n,i),r=!0},p(n,[i]){let s={};i&256&&(s.glyph=n[8]),i&2&&(s.id=n[1].path),i&1&&(s.selected=n[0]),i&270078&&(s.$$scope={dirty:i,ctx:n}),t.$set(s)},i(n){r||(Ee(t.$$.fragment,n),r=!0)},o(n){xe(t.$$.fragment,n),r=!1},d(n){Tt(t,n)}}}function hI(e,t,r){let n,i,s,a,u;vu(e,ri,y=>r(12,u=y));let{selected:o=!1}=t,{note:c}=t,{plugin:f}=t,h=null,d="",_="",D,E;function g(y){Wr[y?"unshift":"push"](()=>{E=y,r(6,E)})}function p(y){Wr[y?"unshift":"push"](()=>{D=y,r(5,D)})}function A(y){Vt.call(this,e,y)}function I(y){Vt.call(this,e,y)}function b(y){Vt.call(this,e,y)}e.$$set=y=>{"selected"in y&&r(0,o=y.selected),"note"in y&&r(1,c=y.note),"plugin"in y&&r(2,f=y.plugin)},e.$$.update=()=>{if(e.$$.dirty&6){e:if(r(7,h=null),ei(c.path)){let y=f.app.vault.getAbstractFileByPath(c.path);y instanceof En.TFile&&r(7,h=f.app.vault.getResourcePath(y))}}if(e.$$.dirty&98){e:r(3,d=c.basename),r(4,_=h0(c.path)),D&&(0,En.setIcon)(D,"folder-open"),E&&(ei(c.path)?(0,En.setIcon)(E,"image"):_n(c.path)?(0,En.setIcon)(E,"file-text"):ti(c.path)?(0,En.setIcon)(E,"layout-dashboard"):(0,En.setIcon)(E,"file"))}if(e.$$.dirty&14){e:r(11,n=f.textProcessor.getMatches(d,c.foundWords))}if(e.$$.dirty&22){e:r(10,i=f.textProcessor.getMatches(_,c.foundWords))}if(e.$$.dirty&6){e:r(9,s=f.textProcessor.makeExcerpt(c.content,c.matches[0]?.offset??-1))}};e:r(8,a=!1);return[o,c,f,d,_,D,E,h,a,s,i,n,u,g,p,A,I,b]}var En,w0,P0,L0=O(()=>{rr();_l();ir();Tl();En=Xe(require("obsidian"));w0=class extends pt{constructor(t){super();bt(this,t,hI,dI,ot,{selected:0,note:1,plugin:2})}},P0=w0});var M0=U(ju=>{ju.parse=function(e,t){if(t?t.offsets=typeof t.offsets=="undefined"?!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=[],s=/(\S+:'(?:[^'\\]|\\.)*')|(\S+:"(?:[^"\\]|\\.)*")|(-?"(?:[^"\\]|\\.)*")|(-?'(?:[^'\\]|\\.)*')|\S+|\S+:\S+/g,a;(a=s.exec(e))!==null;){var d=a[0],u=d.indexOf(":");if(u!==-1){var o=d.split(":"),c=d.slice(0,u),f=d.slice(u+1);f=f.replace(/^\"|\"$|^\'|\'$/g,""),f=(f+"").replace(/\\(.?)/g,function(C,S){switch(S){case"\\":return"\\";case"0":return"\0";case"":return"";default:return S}}),i.push({keyword:c,value:f,offsetStart:a.index,offsetEnd:a.index+d.length})}else{var h=!1;d[0]==="-"&&(h=!0,d=d.slice(1)),d=d.replace(/^\"|\"$|^\'|\'$/g,""),d=(d+"").replace(/\\(.?)/g,function(C,S){switch(S){case"\\":return"\\";case"0":return"\0";case"":return"";default:return S}}),h?n.text?(n.text instanceof Array||(n.text=[n.text]),n.text.push(d)):n.text=d:i.push({text:d,offsetStart:a.index,offsetEnd:a.index+d.length})}}i.reverse();for(var d;d=i.pop();)if(d.text)r.text.push(d.text),t.offsets&&r.offsets.push(d);else{var c=d.keyword;t.keywords=t.keywords||[];var _=!1,D=!1;if(!/^-/.test(c))_=t.keywords.indexOf(c)!==-1;else if(c[0]==="-"){var E=c.slice(1);_=t.keywords.indexOf(E)!==-1,_&&(c=E,D=!0)}t.ranges=t.ranges||[];var g=t.ranges.indexOf(c)!==-1;if(_){t.offsets&&r.offsets.push({keyword:c,value:d.value,offsetStart:D?d.offsetStart+1:d.offsetStart,offsetEnd:d.offsetEnd});var p=d.value;if(p.length){var A=p.split(",");D?n[c]?n[c]instanceof Array?A.length>1?n[c]=n[c].concat(A):n[c].push(p):(n[c]=[n[c]],n[c].push(p)):A.length>1?n[c]=A:t.alwaysArray?n[c]=[p]:n[c]=p:r[c]?r[c]instanceof Array?A.length>1?r[c]=r[c].concat(A):r[c].push(p):(r[c]=[r[c]],r[c].push(p)):A.length>1?r[c]=A:t.alwaysArray?r[c]=[p]:r[c]=p}}else if(g){t.offsets&&r.offsets.push(d);var p=d.value,I=p.split("-");r[c]={},I.length===2?(r[c].from=I[0],r[c].to=I[1]):!I.length%2||(r[c].from=p)}else{var b=d.keyword+":"+d.value;r.text.push(b),t.offsets&&r.offsets.push({text:b,offsetStart:d.offsetStart,offsetEnd:d.offsetEnd})}}return r.text.length?t.tokenize||(r.text=r.text.join(" ").trim()):delete r.text,r.exclude=n,r};ju.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(u){return u.indexOf(" ")>-1?JSON.stringify(u):u},i=function(u){return r+u},s=[];if(e.text){var a=[];typeof e.text=="string"?a.push(e.text):a.push.apply(a,e.text),a.length>0&&s.push(a.map(n).map(i).join(" "))}return t.keywords&&t.keywords.forEach(function(u){if(!!e[u]){var o=[];typeof e[u]=="string"?o.push(e[u]):o.push.apply(o,e[u]),o.length>0&&s.push(i(u+":"+o.map(n).join(",")))}}),t.ranges&&t.ranges.forEach(function(u){if(!!e[u]){var o=e[u].from,c=e[u].to;c&&(o=o+"-"+c),o&&s.push(i(u+":"+o))}}),e.exclude&&Object.keys(e.exclude).length>0&&s.push(ju.stringify(e.exclude,t,"-")),s.join(" ")}});var F0=U((Lk,k0)=>{k0.exports=M0()});var B0,bl,ni,Hu=O(()=>{ir();B0=Xe(F0()),bl=["ext","path"],ni=class{#e;constructor(t="",r){r.ignoreDiacritics&&(t=Yr(t));let n=(0,B0.parse)(t.toLowerCase(),{tokenize:!0,keywords:bl});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(s=>s.length);for(let s of bl){let a=n[s];a&&(n[s]=Array.isArray(a)?a:[a]);let u=n.exclude[s];u&&(n.exclude[s]=Array.isArray(u)?u:[u])}this.query=n;let i=this.query.text.filter(s=>s.startsWith(".")).map(s=>s.slice(1));this.query.ext=[...new Set([...i,...this.query.ext??[]])],this.query.text=this.query.text.filter(s=>!s.startsWith(".")),this.#e=t.match(/"([^"]+)"/g)?.map(s=>s.replace(/"/g,""))??[]}isEmpty(){for(let t of bl)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 j0=U(Uu=>{function El(e){return El=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},El(e)}(function(e,t){if(typeof define=="function"&&define.amd)define(["exports"],t);else if(typeof Uu!="undefined")t(Uu);else{var r={exports:{}};t(r.exports),e.CancelablePromise=r.exports}})(typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:Uu,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancelablePromise=void 0,e.cancelable=me,e.default=void 0,e.isCancelablePromise=K;function t(w,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(F&&F.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),F&&r(w,F)}function r(w,F){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,de){return ee.__proto__=de,ee},r(w,F)}function n(w){var F=a();return function(){var ee=u(w),de;if(F){var Re=u(this).constructor;de=Reflect.construct(ee,arguments,Re)}else de=ee.apply(this,arguments);return i(this,de)}}function i(w,F){if(F&&(El(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(w)}function s(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function a(){if(typeof Reflect=="undefined"||!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 u(w){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},u(w)}function o(w,F){var H=typeof Symbol!="undefined"&&w[Symbol.iterator]||w["@@iterator"];if(!H){if(Array.isArray(w)||(H=c(w))||F&&w&&typeof w.length=="number"){H&&(w=H);var ee=0,de=function(){};return{s:de,n:function(){return ee>=w.length?{done:!0}:{done:!1,value:w[ee++]}},e:function(X){throw X},f:de}}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 Re=!0,tt=!1,Vr;return{s:function(){H=H.call(w)},n:function(){var X=H.next();return Re=X.done,X},e:function(X){tt=!0,Vr=X},f:function(){try{!Re&&H.return!=null&&H.return()}finally{if(tt)throw Vr}}}}function c(w,F){if(!!w){if(typeof w=="string")return f(w,F);var H=Object.prototype.toString.call(w).slice(8,-1);if(H==="Object"&&w.constructor&&(H=w.constructor.name),H==="Map"||H==="Set")return Array.from(w);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return f(w,F)}}function f(w,F){(F==null||F>w.length)&&(F=w.length);for(var H=0,ee=new Array(F);H<F;H++)ee[H]=w[H];return ee}function h(w,F){if(!(w instanceof F))throw new TypeError("Cannot call a class as a function")}function d(w,F){for(var H=0;H<F.length;H++){var ee=F[H];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(w,ee.key,ee)}}function _(w,F,H){return F&&d(w.prototype,F),H&&d(w,H),Object.defineProperty(w,"prototype",{writable:!1}),w}function D(w,F,H){return F in w?Object.defineProperty(w,F,{value:H,enumerable:!0,configurable:!0,writable:!0}):w[F]=H,w}function E(w,F,H){g(w,F),F.set(w,H)}function g(w,F){if(F.has(w))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(w,F){var H=b(w,F,"get");return A(w,H)}function A(w,F){return F.get?F.get.call(w):F.value}function I(w,F,H){var ee=b(w,F,"set");return y(w,ee,H),H}function b(w,F,H){if(!F.has(w))throw new TypeError("attempted to "+H+" private field on non-instance");return F.get(w)}function y(w,F,H){if(F.set)F.set.call(w,H);else{if(!F.writable)throw new TypeError("attempted to set read only private field");F.value=H}}var C=typeof Symbol!="undefined"?Symbol.toStringTag:"@@toStringTag",S=new WeakMap,N=new WeakMap,P=function(){function w(F){var H=F.executor,ee=H===void 0?function(){}:H,de=F.internals,Re=de===void 0?Ke():de,tt=F.promise,Vr=tt===void 0?new Promise(function(_t,X){return ee(_t,X,function($e){Re.onCancelList.push($e)})}):tt;h(this,w),E(this,S,{writable:!0,value:void 0}),E(this,N,{writable:!0,value:void 0}),D(this,C,"CancelablePromise"),this.cancel=this.cancel.bind(this),I(this,S,Re),I(this,N,Vr||new Promise(function(_t,X){return ee(_t,X,function($e){Re.onCancelList.push($e)})}))}return _(w,[{key:"then",value:function(H,ee){return ke(p(this,N).then(he(H,p(this,S)),he(ee,p(this,S))),p(this,S))}},{key:"catch",value:function(H){return ke(p(this,N).catch(he(H,p(this,S))),p(this,S))}},{key:"finally",value:function(H,ee){var de=this;return ee&&p(this,S).onCancelList.push(H),ke(p(this,N).finally(he(function(){if(H)return ee&&(p(de,S).onCancelList=p(de,S).onCancelList.filter(function(Re){return Re!==H})),H()},p(this,S))),p(this,S))}},{key:"cancel",value:function(){p(this,S).isCanceled=!0;var H=p(this,S).onCancelList;p(this,S).onCancelList=[];var ee=o(H),de;try{for(ee.s();!(de=ee.n()).done;){var Re=de.value;if(typeof Re=="function")try{Re()}catch(tt){console.error(tt)}}}catch(tt){ee.e(tt)}finally{ee.f()}}},{key:"isCanceled",value:function(){return p(this,S).isCanceled===!0}}]),w}(),q=function(w){t(H,w);var F=n(H);function H(ee){return h(this,H),F.call(this,{executor:ee})}return _(H)}(P);e.CancelablePromise=q,D(q,"all",function(F){return Ie(F,Promise.all(F))}),D(q,"allSettled",function(F){return Ie(F,Promise.allSettled(F))}),D(q,"any",function(F){return Ie(F,Promise.any(F))}),D(q,"race",function(F){return Ie(F,Promise.race(F))}),D(q,"resolve",function(F){return me(Promise.resolve(F))}),D(q,"reject",function(F){return me(Promise.reject(F))}),D(q,"isCancelable",K);var $=q;e.default=$;function me(w){return ke(w,Ke())}function K(w){return w instanceof q||w instanceof P}function he(w,F){if(w)return function(H){if(!F.isCanceled){var ee=w(H);return K(ee)&&F.onCancelList.push(ee.cancel),ee}return H}}function ke(w,F){return new P({internals:F,promise:w})}function Ie(w,F){var H=Ke();return H.onCancelList.push(function(){var ee=o(w),de;try{for(ee.s();!(de=ee.n()).done;){var Re=de.value;K(Re)&&Re.cancel()}}catch(tt){ee.e(tt)}finally{ee.f()}}),new P({internals:H,promise:F})}function Ke(){return{isCanceled:!1,onCancelList:[]}}})});var pI,Gu,Al=O(()=>{pI=typeof global=="object"&&global&&global.Object===Object&&global,Gu=pI});var mI,gI,Ze,lr=O(()=>{Al();mI=typeof self=="object"&&self&&self.Object===Object&&self,gI=Gu||mI||Function("return this")(),Ze=gI});var _I,St,qi=O(()=>{lr();_I=Ze.Symbol,St=_I});function EI(e){var t=TI.call(e,oa),r=e[oa];try{e[oa]=void 0;var n=!0}catch{}var i=bI.call(e);return n&&(t?e[oa]=r:delete e[oa]),i}var H0,TI,bI,oa,U0,G0=O(()=>{qi();H0=Object.prototype,TI=H0.hasOwnProperty,bI=H0.toString,oa=St?St.toStringTag:void 0;U0=EI});function II(e){return yI.call(e)}var AI,yI,q0,z0=O(()=>{AI=Object.prototype,yI=AI.toString;q0=II});function DI(e){return e==null?e===void 0?CI:vI:V0&&V0 in Object(e)?U0(e):q0(e)}var vI,CI,V0,fr,zi=O(()=>{qi();G0();z0();vI="[object Null]",CI="[object Undefined]",V0=St?St.toStringTag:void 0;fr=DI});function SI(e){return e!=null&&typeof e=="object"}var dr,Vi=O(()=>{dr=SI});function xI(e){return typeof e=="symbol"||dr(e)&&fr(e)==OI}var OI,hr,Ki=O(()=>{zi();Vi();OI="[object Symbol]";hr=xI});function NI(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Wi,yl=O(()=>{Wi=NI});var RI,Qe,pr=O(()=>{RI=Array.isArray,Qe=RI});function Y0(e){if(typeof e=="string")return e;if(Qe(e))return Wi(e,Y0)+"";if(hr(e))return W0?W0.call(e):"";var t=e+"";return t=="0"&&1/e==-wI?"-0":t}var wI,K0,W0,Q0,$0=O(()=>{qi();yl();pr();Ki();wI=1/0,K0=St?St.prototype:void 0,W0=K0?K0.toString:void 0;Q0=Y0});function LI(e){for(var t=e.length;t--&&PI.test(e.charAt(t)););return t}var PI,X0,Z0=O(()=>{PI=/\s/;X0=LI});function kI(e){return e&&e.slice(0,X0(e)+1).replace(MI,"")}var MI,J0,ep=O(()=>{Z0();MI=/^\s+/;J0=kI});function FI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Kt,ii=O(()=>{Kt=FI});function GI(e){if(typeof e=="number")return e;if(hr(e))return tp;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=J0(e);var r=jI.test(e);return r||HI.test(e)?UI(e.slice(2),r?2:8):BI.test(e)?tp:+e}var tp,BI,jI,HI,UI,Il,rp=O(()=>{ep();ii();Ki();tp=0/0,BI=/^[-+]0x[0-9a-f]+$/i,jI=/^0b[01]+$/i,HI=/^0o[0-7]+$/i,UI=parseInt;Il=GI});function qI(e){return e}var An,ca=O(()=>{An=qI});function YI(e){if(!Kt(e))return!1;var t=fr(e);return t==VI||t==KI||t==zI||t==WI}var zI,VI,KI,WI,qu,vl=O(()=>{zi();ii();zI="[object AsyncFunction]",VI="[object Function]",KI="[object GeneratorFunction]",WI="[object Proxy]";qu=YI});var QI,zu,np=O(()=>{lr();QI=Ze["__core-js_shared__"],zu=QI});function $I(e){return!!ip&&ip in e}var ip,sp,ap=O(()=>{np();ip=function(){var e=/[^.]+$/.exec(zu&&zu.keys&&zu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();sp=$I});function JI(e){if(e!=null){try{return ZI.call(e)}catch{}try{return e+""}catch{}}return""}var XI,ZI,Qr,Cl=O(()=>{XI=Function.prototype,ZI=XI.toString;Qr=JI});function uv(e){if(!Kt(e)||sp(e))return!1;var t=qu(e)?av:tv;return t.test(Qr(e))}var ev,tv,rv,nv,iv,sv,av,up,op=O(()=>{vl();ap();ii();Cl();ev=/[\\^$.*+?()[\]{}|]/g,tv=/^\[object .+?Constructor\]$/,rv=Function.prototype,nv=Object.prototype,iv=rv.toString,sv=nv.hasOwnProperty,av=RegExp("^"+iv.call(sv).replace(ev,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");up=uv});function ov(e,t){return e==null?void 0:e[t]}var cp,lp=O(()=>{cp=ov});function cv(e,t){var r=cp(e,t);return up(r)?r:void 0}var Mt,yn=O(()=>{op();lp();Mt=cv});var lv,Vu,fp=O(()=>{yn();lr();lv=Mt(Ze,"WeakMap"),Vu=lv});function fv(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var dp,hp=O(()=>{dp=fv});function mv(e){var t=0,r=0;return function(){var n=pv(),i=hv-(n-r);if(r=n,i>0){if(++t>=dv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dv,hv,pv,pp,mp=O(()=>{dv=800,hv=16,pv=Date.now;pp=mv});function gv(e){return function(){return e}}var gp,_p=O(()=>{gp=gv});var _v,Dl,Tp=O(()=>{yn();_v=function(){try{var e=Mt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Dl=_v});var Tv,bp,Ep=O(()=>{_p();Tp();ca();Tv=Dl?function(e,t){return Dl(e,"toString",{configurable:!0,enumerable:!1,value:gp(t),writable:!0})}:An,bp=Tv});var bv,Ap,yp=O(()=>{Ep();mp();bv=pp(bp),Ap=bv});function yv(e,t){var r=typeof e;return t=t??Ev,!!t&&(r=="number"||r!="symbol"&&Av.test(e))&&e>-1&&e%1==0&&e<t}var Ev,Av,Yi,Ku=O(()=>{Ev=9007199254740991,Av=/^(?:0|[1-9]\d*)$/;Yi=yv});function Iv(e,t){return e===t||e!==e&&t!==t}var Qi,Wu=O(()=>{Qi=Iv});function vv(e,t,r){return t=Ip(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Ip(n.length-t,0),a=Array(s);++i<s;)a[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(a),dp(e,this,u)}}var Ip,vp,Cp=O(()=>{hp();Ip=Math.max;vp=vv});function Cv(e,t){return Ap(vp(e,t,An),e+"")}var Dp,Sp=O(()=>{ca();Cp();yp();Dp=Cv});function Sv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Dv}var Dv,$i,Yu=O(()=>{Dv=9007199254740991;$i=Sv});function Ov(e){return e!=null&&$i(e.length)&&!qu(e)}var In,la=O(()=>{vl();Yu();In=Ov});function xv(e,t,r){if(!Kt(r))return!1;var n=typeof t;return(n=="number"?In(r)&&Yi(t,r.length):n=="string"&&t in r)?Qi(r[t],e):!1}var Sl,Op=O(()=>{Wu();la();Ku();ii();Sl=xv});function Rv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nv;return e===r}var Nv,xp,Np=O(()=>{Nv=Object.prototype;xp=Rv});function wv(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Rp,wp=O(()=>{Rp=wv});function Lv(e){return dr(e)&&fr(e)==Pv}var Pv,Ol,Pp=O(()=>{zi();Vi();Pv="[object Arguments]";Ol=Lv});var Lp,Mv,kv,Fv,Xi,Qu=O(()=>{Pp();Vi();Lp=Object.prototype,Mv=Lp.hasOwnProperty,kv=Lp.propertyIsEnumerable,Fv=Ol(function(){return arguments}())?Ol:function(e){return dr(e)&&Mv.call(e,"callee")&&!kv.call(e,"callee")},Xi=Fv});function Bv(){return!1}var Mp,kp=O(()=>{Mp=Bv});var Fp,Bp,jv,jp,Hv,Uv,fa,xl=O(()=>{lr();kp();Fp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bp=Fp&&typeof module=="object"&&module&&!module.nodeType&&module,jv=Bp&&Bp.exports===Fp,jp=jv?Ze.Buffer:void 0,Hv=jp?jp.isBuffer:void 0,Uv=Hv||Mp,fa=Uv});function dC(e){return dr(e)&&$i(e.length)&&!!Be[fr(e)]}var Gv,qv,zv,Vv,Kv,Wv,Yv,Qv,$v,Xv,Zv,Jv,eC,tC,rC,nC,iC,sC,aC,uC,oC,cC,lC,fC,Be,Hp,Up=O(()=>{zi();Yu();Vi();Gv="[object Arguments]",qv="[object Array]",zv="[object Boolean]",Vv="[object Date]",Kv="[object Error]",Wv="[object Function]",Yv="[object Map]",Qv="[object Number]",$v="[object Object]",Xv="[object RegExp]",Zv="[object Set]",Jv="[object String]",eC="[object WeakMap]",tC="[object ArrayBuffer]",rC="[object DataView]",nC="[object Float32Array]",iC="[object Float64Array]",sC="[object Int8Array]",aC="[object Int16Array]",uC="[object Int32Array]",oC="[object Uint8Array]",cC="[object Uint8ClampedArray]",lC="[object Uint16Array]",fC="[object Uint32Array]",Be={};Be[nC]=Be[iC]=Be[sC]=Be[aC]=Be[uC]=Be[oC]=Be[cC]=Be[lC]=Be[fC]=!0;Be[Gv]=Be[qv]=Be[tC]=Be[zv]=Be[rC]=Be[Vv]=Be[Kv]=Be[Wv]=Be[Yv]=Be[Qv]=Be[$v]=Be[Xv]=Be[Zv]=Be[Jv]=Be[eC]=!1;Hp=dC});function hC(e){return function(t){return e(t)}}var $u,Nl=O(()=>{$u=hC});var Gp,da,pC,Rl,mC,wl,qp=O(()=>{Al();Gp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,da=Gp&&typeof module=="object"&&module&&!module.nodeType&&module,pC=da&&da.exports===Gp,Rl=pC&&Gu.process,mC=function(){try{var e=da&&da.require&&da.require("util").types;return e||Rl&&Rl.binding&&Rl.binding("util")}catch{}}(),wl=mC});var zp,gC,Xu,Pl=O(()=>{Up();Nl();qp();zp=wl&&wl.isTypedArray,gC=zp?$u(zp):Hp,Xu=gC});function bC(e,t){var r=Qe(e),n=!r&&Xi(e),i=!r&&!n&&fa(e),s=!r&&!n&&!i&&Xu(e),a=r||n||i||s,u=a?Rp(e.length,String):[],o=u.length;for(var c in e)(t||TC.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Yi(c,o)))&&u.push(c);return u}var _C,TC,Vp,Kp=O(()=>{wp();Qu();pr();xl();Ku();Pl();_C=Object.prototype,TC=_C.hasOwnProperty;Vp=bC});function EC(e,t){return function(r){return e(t(r))}}var Wp,Yp=O(()=>{Wp=EC});var AC,Qp,$p=O(()=>{Yp();AC=Wp(Object.keys,Object),Qp=AC});function vC(e){if(!xp(e))return Qp(e);var t=[];for(var r in Object(e))IC.call(e,r)&&r!="constructor"&&t.push(r);return t}var yC,IC,Xp,Zp=O(()=>{Np();$p();yC=Object.prototype,IC=yC.hasOwnProperty;Xp=vC});function CC(e){return In(e)?Vp(e):Xp(e)}var Zi,Zu=O(()=>{Kp();Zp();la();Zi=CC});function OC(e,t){if(Qe(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||hr(e)?!0:SC.test(e)||!DC.test(e)||t!=null&&e in Object(t)}var DC,SC,Ji,Ju=O(()=>{pr();Ki();DC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SC=/^\w*$/;Ji=OC});var xC,$r,ha=O(()=>{yn();xC=Mt(Object,"create"),$r=xC});function NC(){this.__data__=$r?$r(null):{},this.size=0}var Jp,em=O(()=>{ha();Jp=NC});function RC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tm,rm=O(()=>{tm=RC});function MC(e){var t=this.__data__;if($r){var r=t[e];return r===wC?void 0:r}return LC.call(t,e)?t[e]:void 0}var wC,PC,LC,nm,im=O(()=>{ha();wC="__lodash_hash_undefined__",PC=Object.prototype,LC=PC.hasOwnProperty;nm=MC});function BC(e){var t=this.__data__;return $r?t[e]!==void 0:FC.call(t,e)}var kC,FC,sm,am=O(()=>{ha();kC=Object.prototype,FC=kC.hasOwnProperty;sm=BC});function HC(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$r&&t===void 0?jC:t,this}var jC,um,om=O(()=>{ha();jC="__lodash_hash_undefined__";um=HC});function es(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var Ll,cm=O(()=>{em();rm();im();am();om();es.prototype.clear=Jp;es.prototype.delete=tm;es.prototype.get=nm;es.prototype.has=sm;es.prototype.set=um;Ll=es});function UC(){this.__data__=[],this.size=0}var lm,fm=O(()=>{lm=UC});function GC(e,t){for(var r=e.length;r--;)if(Qi(e[r][0],t))return r;return-1}var vn,pa=O(()=>{Wu();vn=GC});function VC(e){var t=this.__data__,r=vn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zC.call(t,r,1),--this.size,!0}var qC,zC,dm,hm=O(()=>{pa();qC=Array.prototype,zC=qC.splice;dm=VC});function KC(e){var t=this.__data__,r=vn(t,e);return r<0?void 0:t[r][1]}var pm,mm=O(()=>{pa();pm=KC});function WC(e){return vn(this.__data__,e)>-1}var gm,_m=O(()=>{pa();gm=WC});function YC(e,t){var r=this.__data__,n=vn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Tm,bm=O(()=>{pa();Tm=YC});function ts(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var Cn,ma=O(()=>{fm();hm();mm();_m();bm();ts.prototype.clear=lm;ts.prototype.delete=dm;ts.prototype.get=pm;ts.prototype.has=gm;ts.prototype.set=Tm;Cn=ts});var QC,Dn,eo=O(()=>{yn();lr();QC=Mt(Ze,"Map"),Dn=QC});function $C(){this.size=0,this.__data__={hash:new Ll,map:new(Dn||Cn),string:new Ll}}var Em,Am=O(()=>{cm();ma();eo();Em=$C});function XC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ym,Im=O(()=>{ym=XC});function ZC(e,t){var r=e.__data__;return ym(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Sn,ga=O(()=>{Im();Sn=ZC});function JC(e){var t=Sn(this,e).delete(e);return this.size-=t?1:0,t}var vm,Cm=O(()=>{ga();vm=JC});function eD(e){return Sn(this,e).get(e)}var Dm,Sm=O(()=>{ga();Dm=eD});function tD(e){return Sn(this,e).has(e)}var Om,xm=O(()=>{ga();Om=tD});function rD(e,t){var r=Sn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Nm,Rm=O(()=>{ga();Nm=rD});function rs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var si,to=O(()=>{Am();Cm();Sm();xm();Rm();rs.prototype.clear=Em;rs.prototype.delete=vm;rs.prototype.get=Dm;rs.prototype.has=Om;rs.prototype.set=Nm;si=rs});function Ml(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(nD);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(Ml.Cache||si),r}var nD,wm,Pm=O(()=>{to();nD="Expected a function";Ml.Cache=si;wm=Ml});function sD(e){var t=wm(e,function(n){return r.size===iD&&r.clear(),n}),r=t.cache;return t}var iD,Lm,Mm=O(()=>{Pm();iD=500;Lm=sD});var aD,uD,oD,km,Fm=O(()=>{Mm();aD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uD=/\\(\\)?/g,oD=Lm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(aD,function(r,n,i,s){t.push(i?s.replace(uD,"$1"):n||r)}),t}),km=oD});function cD(e){return e==null?"":Q0(e)}var ro,kl=O(()=>{$0();ro=cD});function lD(e,t){return Qe(e)?e:Ji(e,t)?[e]:km(ro(e))}var no,Fl=O(()=>{pr();Ju();Fm();kl();no=lD});function dD(e){if(typeof e=="string"||hr(e))return e;var t=e+"";return t=="0"&&1/e==-fD?"-0":t}var fD,On,_a=O(()=>{Ki();fD=1/0;On=dD});function hD(e,t){t=no(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[On(t[r++])];return r&&r==n?e:void 0}var ns,io=O(()=>{Fl();_a();ns=hD});function pD(e,t,r){var n=e==null?void 0:ns(e,t);return n===void 0?r:n}var Bm,jm=O(()=>{io();Bm=pD});function mD(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var so,Bl=O(()=>{so=mD});function gD(e){return Qe(e)||Xi(e)||!!(Hm&&e&&e[Hm])}var Hm,Um,Gm=O(()=>{qi();Qu();pr();Hm=St?St.isConcatSpreadable:void 0;Um=gD});function qm(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=Um),i||(i=[]);++s<a;){var u=e[s];t>0&&r(u)?t>1?qm(u,t-1,r,n,i):so(i,u):n||(i[i.length]=u)}return i}var zm,Vm=O(()=>{Bl();Gm();zm=qm});function _D(){this.__data__=new Cn,this.size=0}var Km,Wm=O(()=>{ma();Km=_D});function TD(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Ym,Qm=O(()=>{Ym=TD});function bD(e){return this.__data__.get(e)}var $m,Xm=O(()=>{$m=bD});function ED(e){return this.__data__.has(e)}var Zm,Jm=O(()=>{Zm=ED});function yD(e,t){var r=this.__data__;if(r instanceof Cn){var n=r.__data__;if(!Dn||n.length<AD-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new si(n)}return r.set(e,t),this.size=r.size,this}var AD,eg,tg=O(()=>{ma();eo();to();AD=200;eg=yD});function is(e){var t=this.__data__=new Cn(e);this.size=t.size}var ss,jl=O(()=>{ma();Wm();Qm();Xm();Jm();tg();is.prototype.clear=Km;is.prototype.delete=Ym;is.prototype.get=$m;is.prototype.has=Zm;is.prototype.set=eg;ss=is});function ID(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}var rg,ng=O(()=>{rg=ID});function vD(){return[]}var ig,sg=O(()=>{ig=vD});var CD,DD,ag,SD,ug,og=O(()=>{ng();sg();CD=Object.prototype,DD=CD.propertyIsEnumerable,ag=Object.getOwnPropertySymbols,SD=ag?function(e){return e==null?[]:(e=Object(e),rg(ag(e),function(t){return DD.call(e,t)}))}:ig,ug=SD});function OD(e,t,r){var n=t(e);return Qe(e)?n:so(n,r(e))}var cg,lg=O(()=>{Bl();pr();cg=OD});function xD(e){return cg(e,Zi,ug)}var Hl,fg=O(()=>{lg();og();Zu();Hl=xD});var ND,ao,dg=O(()=>{yn();lr();ND=Mt(Ze,"DataView"),ao=ND});var RD,uo,hg=O(()=>{yn();lr();RD=Mt(Ze,"Promise"),uo=RD});var wD,oo,pg=O(()=>{yn();lr();wD=Mt(Ze,"Set"),oo=wD});var mg,PD,gg,_g,Tg,bg,LD,MD,kD,FD,BD,ai,Ul,Eg=O(()=>{dg();eo();hg();pg();fp();zi();Cl();mg="[object Map]",PD="[object Object]",gg="[object Promise]",_g="[object Set]",Tg="[object WeakMap]",bg="[object DataView]",LD=Qr(ao),MD=Qr(Dn),kD=Qr(uo),FD=Qr(oo),BD=Qr(Vu),ai=fr;(ao&&ai(new ao(new ArrayBuffer(1)))!=bg||Dn&&ai(new Dn)!=mg||uo&&ai(uo.resolve())!=gg||oo&&ai(new oo)!=_g||Vu&&ai(new Vu)!=Tg)&&(ai=function(e){var t=fr(e),r=t==PD?e.constructor:void 0,n=r?Qr(r):"";if(n)switch(n){case LD:return bg;case MD:return mg;case kD:return gg;case FD:return _g;case BD:return Tg}return t});Ul=ai});var jD,Gl,Ag=O(()=>{lr();jD=Ze.Uint8Array,Gl=jD});function UD(e){return this.__data__.set(e,HD),this}var HD,yg,Ig=O(()=>{HD="__lodash_hash_undefined__";yg=UD});function GD(e){return this.__data__.has(e)}var vg,Cg=O(()=>{vg=GD});function co(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new si;++t<r;)this.add(e[t])}var Dg,Sg=O(()=>{to();Ig();Cg();co.prototype.add=co.prototype.push=yg;co.prototype.has=vg;Dg=co});function qD(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Og,xg=O(()=>{Og=qD});function zD(e,t){return e.has(t)}var Ng,Rg=O(()=>{Ng=zD});function WD(e,t,r,n,i,s){var a=r&VD,u=e.length,o=t.length;if(u!=o&&!(a&&o>u))return!1;var c=s.get(e),f=s.get(t);if(c&&f)return c==t&&f==e;var h=-1,d=!0,_=r&KD?new Dg:void 0;for(s.set(e,t),s.set(t,e);++h<u;){var D=e[h],E=t[h];if(n)var g=a?n(E,D,h,t,e,s):n(D,E,h,e,t,s);if(g!==void 0){if(g)continue;d=!1;break}if(_){if(!Og(t,function(p,A){if(!Ng(_,A)&&(D===p||i(D,p,r,n,s)))return _.push(A)})){d=!1;break}}else if(!(D===E||i(D,E,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d}var VD,KD,lo,ql=O(()=>{Sg();xg();Rg();VD=1,KD=2;lo=WD});function YD(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var wg,Pg=O(()=>{wg=YD});function QD(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Lg,Mg=O(()=>{Lg=QD});function cS(e,t,r,n,i,s,a){switch(r){case oS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case uS:return!(e.byteLength!=t.byteLength||!s(new Gl(e),new Gl(t)));case ZD:case JD:case rS:return Qi(+e,+t);case eS:return e.name==t.name&&e.message==t.message;case nS:case sS:return e==t+"";case tS:var u=wg;case iS:var o=n&$D;if(u||(u=Lg),e.size!=t.size&&!o)return!1;var c=a.get(e);if(c)return c==t;n|=XD,a.set(e,t);var f=lo(u(e),u(t),n,i,s,a);return a.delete(e),f;case aS:if(zl)return zl.call(e)==zl.call(t)}return!1}var $D,XD,ZD,JD,eS,tS,rS,nS,iS,sS,aS,uS,oS,kg,zl,Fg,Bg=O(()=>{qi();Ag();Wu();ql();Pg();Mg();$D=1,XD=2,ZD="[object Boolean]",JD="[object Date]",eS="[object Error]",tS="[object Map]",rS="[object Number]",nS="[object RegExp]",iS="[object Set]",sS="[object String]",aS="[object Symbol]",uS="[object ArrayBuffer]",oS="[object DataView]",kg=St?St.prototype:void 0,zl=kg?kg.valueOf:void 0;Fg=cS});function hS(e,t,r,n,i,s){var a=r&lS,u=Hl(e),o=u.length,c=Hl(t),f=c.length;if(o!=f&&!a)return!1;for(var h=o;h--;){var d=u[h];if(!(a?d in t:dS.call(t,d)))return!1}var _=s.get(e),D=s.get(t);if(_&&D)return _==t&&D==e;var E=!0;s.set(e,t),s.set(t,e);for(var g=a;++h<o;){d=u[h];var p=e[d],A=t[d];if(n)var I=a?n(A,p,d,t,e,s):n(p,A,d,e,t,s);if(!(I===void 0?p===A||i(p,A,r,n,s):I)){E=!1;break}g||(g=d=="constructor")}if(E&&!g){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof y=="function"&&y instanceof y)&&(E=!1)}return s.delete(e),s.delete(t),E}var lS,fS,dS,jg,Hg=O(()=>{fg();lS=1,fS=Object.prototype,dS=fS.hasOwnProperty;jg=hS});function gS(e,t,r,n,i,s){var a=Qe(e),u=Qe(t),o=a?Gg:Ul(e),c=u?Gg:Ul(t);o=o==Ug?fo:o,c=c==Ug?fo:c;var f=o==fo,h=c==fo,d=o==c;if(d&&fa(e)){if(!fa(t))return!1;a=!0,f=!1}if(d&&!f)return s||(s=new ss),a||Xu(e)?lo(e,t,r,n,i,s):Fg(e,t,o,r,n,i,s);if(!(r&pS)){var _=f&&qg.call(e,"__wrapped__"),D=h&&qg.call(t,"__wrapped__");if(_||D){var E=_?e.value():e,g=D?t.value():t;return s||(s=new ss),i(E,g,r,n,s)}}return d?(s||(s=new ss),jg(e,t,r,n,i,s)):!1}var pS,Ug,Gg,fo,mS,qg,zg,Vg=O(()=>{jl();ql();Bg();Hg();Eg();pr();xl();Pl();pS=1,Ug="[object Arguments]",Gg="[object Array]",fo="[object Object]",mS=Object.prototype,qg=mS.hasOwnProperty;zg=gS});function Kg(e,t,r,n,i){return e===t?!0:e==null||t==null||!dr(e)&&!dr(t)?e!==e&&t!==t:zg(e,t,r,n,Kg,i)}var ho,Vl=O(()=>{Vg();Vi();ho=Kg});function bS(e,t,r,n){var i=r.length,s=i,a=!n;if(e==null)return!s;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){u=r[i];var o=u[0],c=e[o],f=u[1];if(a&&u[2]){if(c===void 0&&!(o in e))return!1}else{var h=new ss;if(n)var d=n(c,f,o,e,t,h);if(!(d===void 0?ho(f,c,_S|TS,n,h):d))return!1}}return!0}var _S,TS,Wg,Yg=O(()=>{jl();Vl();_S=1,TS=2;Wg=bS});function ES(e){return e===e&&!Kt(e)}var po,Kl=O(()=>{ii();po=ES});function AS(e){for(var t=Zi(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,po(i)]}return t}var Qg,$g=O(()=>{Kl();Zu();Qg=AS});function yS(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var mo,Wl=O(()=>{mo=yS});function IS(e){var t=Qg(e);return t.length==1&&t[0][2]?mo(t[0][0],t[0][1]):function(r){return r===e||Wg(r,e,t)}}var Xg,Zg=O(()=>{Yg();$g();Wl();Xg=IS});function vS(e,t){return e!=null&&t in Object(e)}var Jg,e_=O(()=>{Jg=vS});function CS(e,t,r){t=no(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var a=On(t[n]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&$i(i)&&Yi(a,i)&&(Qe(e)||Xi(e)))}var t_,r_=O(()=>{Fl();Qu();pr();Ku();Yu();_a();t_=CS});function DS(e,t){return e!=null&&t_(e,t,Jg)}var n_,i_=O(()=>{e_();r_();n_=DS});function xS(e,t){return Ji(e)&&po(t)?mo(On(e),t):function(r){var n=Bm(r,e);return n===void 0&&n===t?n_(r,e):ho(t,n,SS|OS)}}var SS,OS,s_,a_=O(()=>{Vl();jm();i_();Ju();Kl();Wl();_a();SS=1,OS=2;s_=xS});function NS(e){return function(t){return t==null?void 0:t[e]}}var u_,o_=O(()=>{u_=NS});function RS(e){return function(t){return ns(t,e)}}var c_,l_=O(()=>{io();c_=RS});function wS(e){return Ji(e)?u_(On(e)):c_(e)}var f_,d_=O(()=>{o_();l_();Ju();_a();f_=wS});function PS(e){return typeof e=="function"?e:e==null?An:typeof e=="object"?Qe(e)?s_(e[0],e[1]):Xg(e):f_(e)}var h_,p_=O(()=>{Zg();a_();ca();pr();d_();h_=PS});function LS(e){return function(t,r,n){for(var i=-1,s=Object(t),a=n(t),u=a.length;u--;){var o=a[e?u:++i];if(r(s[o],o,s)===!1)break}return t}}var m_,g_=O(()=>{m_=LS});var MS,__,T_=O(()=>{g_();MS=m_(),__=MS});function kS(e,t){return e&&__(e,t,Zi)}var b_,E_=O(()=>{T_();Zu();b_=kS});function FS(e,t){return function(r,n){if(r==null)return r;if(!In(r))return e(r,n);for(var i=r.length,s=t?i:-1,a=Object(r);(t?s--:++s<i)&&n(a[s],s,a)!==!1;);return r}}var A_,y_=O(()=>{la();A_=FS});var BS,I_,v_=O(()=>{E_();y_();BS=A_(b_),I_=BS});var jS,go,C_=O(()=>{lr();jS=function(){return Ze.Date.now()},go=jS});function qS(e,t,r){var n,i,s,a,u,o,c=0,f=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(HS);t=Il(t)||0,Kt(r)&&(f=!!r.leading,h="maxWait"in r,s=h?US(Il(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d);function _(C){var S=n,N=i;return n=i=void 0,c=C,a=e.apply(N,S),a}function D(C){return c=C,u=setTimeout(p,t),f?_(C):a}function E(C){var S=C-o,N=C-c,P=t-S;return h?GS(P,s-N):P}function g(C){var S=C-o,N=C-c;return o===void 0||S>=t||S<0||h&&N>=s}function p(){var C=go();if(g(C))return A(C);u=setTimeout(p,E(C))}function A(C){return u=void 0,d&&n?_(C):(n=i=void 0,a)}function I(){u!==void 0&&clearTimeout(u),c=0,n=o=i=u=void 0}function b(){return u===void 0?a:A(go())}function y(){var C=go(),S=g(C);if(n=arguments,i=this,o=C,S){if(u===void 0)return D(o);if(h)return clearTimeout(u),u=setTimeout(p,t),_(o)}return u===void 0&&(u=setTimeout(p,t)),a}return y.cancel=I,y.flush=b,y}var HS,US,GS,Yl,D_=O(()=>{ii();C_();rp();HS="Expected a function",US=Math.max,GS=Math.min;Yl=qS});function VS(e){return e=ro(e),e&&zS.test(e)?e.replace(S_,"\\$&"):e}var S_,zS,xn,O_=O(()=>{kl();S_=/[\\^$.*+?()[\]{}|]/g,zS=RegExp(S_.source);xn=VS});function KS(e,t){var r=-1,n=In(e)?Array(e.length):[];return I_(e,function(i,s,a){n[++r]=t(i,s,a)}),n}var x_,N_=O(()=>{v_();la();x_=KS});function WS(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var R_,w_=O(()=>{R_=WS});function YS(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,s=hr(e),a=t!==void 0,u=t===null,o=t===t,c=hr(t);if(!u&&!c&&!s&&e>t||s&&a&&o&&!u&&!c||n&&a&&o||!r&&o||!i)return 1;if(!n&&!s&&!c&&e<t||c&&r&&i&&!n&&!s||u&&r&&i||!a&&i||!o)return-1}return 0}var P_,L_=O(()=>{Ki();P_=YS});function QS(e,t,r){for(var n=-1,i=e.criteria,s=t.criteria,a=i.length,u=r.length;++n<a;){var o=P_(i[n],s[n]);if(o){if(n>=u)return o;var c=r[n];return o*(c=="desc"?-1:1)}}return e.index-t.index}var M_,k_=O(()=>{L_();M_=QS});function $S(e,t,r){t.length?t=Wi(t,function(s){return Qe(s)?function(a){return ns(a,s.length===1?s[0]:s)}:s}):t=[An];var n=-1;t=Wi(t,$u(h_));var i=x_(e,function(s,a,u){var o=Wi(t,function(c){return c(s)});return{criteria:o,index:++n,value:s}});return R_(i,function(s,a){return M_(s,a,r)})}var F_,B_=O(()=>{yl();io();p_();N_();w_();Nl();k_();ca();pr();F_=$S});var XS,Ql,j_=O(()=>{Vm();B_();Sp();Op();XS=Dp(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Sl(e,t[0],t[1])?t=[]:r>2&&Sl(t[0],t[1],t[2])&&(t=[t[0]]),F_(e,zm(t,1),[])}),Ql=XS});var _o=O(()=>{D_();O_();j_();});function U_(e,t,r){let n=e.slice();return n[40]=t[r],n[42]=r,n}function G_(e){let t,r,n;return{c(){t=z("button"),t.textContent="Create note"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[14]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function ZS(e){let t,r,n;return{c(){t=z("button"),t.textContent="In-File search"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[15]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function JS(e){let t,r,n=e[0].settings.showCreateButton&&G_(e),i=mr.Platform.isMobile&&ZS(e);return{c(){t=z("div"),n&&n.c(),r=ue(),i&&i.c(),Z(t,"class","omnisearch-input-container__buttons")},m(s,a){ae(s,t,a),n&&n.m(t,null),j(t,r),i&&i.m(t,null)},p(s,a){s[0].settings.showCreateButton?n?n.p(s,a):(n=G_(s),n.c(),n.m(t,r)):n&&(n.d(1),n=null),mr.Platform.isMobile&&i.p(s,a)},d(s){s&&se(t),n&&n.d(),i&&i.d()}}}function q_(e){let t,r,n;return{c(){t=z("div"),r=dt("\u23F3 Work in progress: "),n=dt(e[4]),zt(t,"text-align","center"),zt(t,"color","var(--text-accent)"),zt(t,"margin-top","10px")},m(i,s){ae(i,t,s),j(t,r),j(t,n)},p(i,s){s[0]&16&&Sr(n,i[4])},d(i){i&&se(t)}}}function z_(e){let t,r;function n(...i){return e[21](e[42],...i)}return t=new P0({props:{plugin:e[0],selected:e[42]===e[1],note:e[40]}}),t.$on("mousemove",n),t.$on("click",e[12]),t.$on("auxclick",e[22]),{c(){Lt(t.$$.fragment)},m(i,s){Dt(t,i,s),r=!0},p(i,s){e=i;let a={};s[0]&1&&(a.plugin=e[0]),s[0]&2&&(a.selected=e[42]===e[1]),s[0]&8&&(a.note=e[40]),t.$set(a)},i(i){r||(Ee(t.$$.fragment,i),r=!0)},o(i){xe(t.$$.fragment,i),r=!1},d(i){Tt(t,i)}}}function eO(e){let t;return{c(){t=dt("Searching...")},m(r,n){ae(r,t,n)},p:qe,d(r){r&&se(t)}}}function tO(e){let t,r=e[0].settings.simpleSearch&&e[2].split(ia).some(K_),n,i=r&&V_(e);return{c(){t=dt(`We found 0 result for your search here.
`),i&&i.c(),n=Xs()},m(s,a){ae(s,t,a),i&&i.m(s,a),ae(s,n,a)},p(s,a){a[0]&5&&(r=s[0].settings.simpleSearch&&s[2].split(ia).some(K_)),r?i||(i=V_(s),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(s){s&&se(t),i&&i.d(s),s&&se(n)}}}function V_(e){let t,r,n;return{c(){t=z("br"),r=ue(),n=z("span"),n.textContent=`You have enabled "Simpler Search" in the settings, try to type more
characters.`,zt(n,"color","var(--text-accent)"),zt(n,"font-size","small")},m(i,s){ae(i,t,s),ae(i,r,s),ae(i,n,s)},d(i){i&&se(t),i&&se(r),i&&se(n)}}}function rO(e){let t,r,n,i=e[3],s=[];for(let f=0;f<i.length;f+=1)s[f]=z_(U_(e,i,f));let a=f=>xe(s[f],1,1,()=>{s[f]=null});function u(f,h){if(!f[3].length&&f[2]&&!f[5])return tO;if(f[5])return eO}let o=u(e,[-1,-1]),c=o&&o(e);return{c(){for(let f=0;f<s.length;f+=1)s[f].c();t=ue(),r=z("div"),c&&c.c(),zt(r,"text-align","center")},m(f,h){for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(f,h);ae(f,t,h),ae(f,r,h),c&&c.m(r,null),n=!0},p(f,h){if(h[0]&12299){i=f[3];let d;for(d=0;d<i.length;d+=1){let _=U_(f,i,d);s[d]?(s[d].p(_,h),Ee(s[d],1)):(s[d]=z_(_),s[d].c(),Ee(s[d],1),s[d].m(t.parentNode,t))}for(Zn(),d=i.length;d<s.length;d+=1)a(d);Jn()}o===(o=u(f,h))&&c?c.p(f,h):(c&&c.d(1),c=o&&o(f),c&&(c.c(),c.m(r,null)))},i(f){if(!n){for(let h=0;h<i.length;h+=1)Ee(s[h]);n=!0}},o(f){s=s.filter(Boolean);for(let h=0;h<s.length;h+=1)xe(s[h]);n=!1},d(f){Du(s,f),f&&se(t),f&&se(r),c&&c.d()}}}function nO(e){let t,r,n,i,s,a,u,o,c,f,h,d,_,D,E,g,p,A,I,b,y,C,S,N,P,q,$,me,K,he,ke,Ie,Ke,w,F,H,ee,de,Re,tt,Vr,_t,X,$e,Kr,or,$n,wi,hn,Ly={plugin:e[0],initialValue:e[2],placeholder:"Omnisearch - Vault",$$slots:{default:[JS]},$$scope:{ctx:e}};t=new Ru({props:Ly}),e[19](t),t.$on("input",e[20]);let Pt=e[4]&&q_(e);return i=new wu({props:{$$slots:{default:[rO]},$$scope:{ctx:e}}}),{c(){Lt(t.$$.fragment),r=ue(),Pt&&Pt.c(),n=ue(),Lt(i.$$.fragment),s=ue(),a=z("div"),u=z("div"),u.innerHTML='<span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span>',o=ue(),c=z("div"),c.innerHTML=`<span class="prompt-instruction-command">alt \u2191\u2193</span>
<span>to cycle history</span>`,f=ue(),h=z("div"),d=z("span"),_=dt(e[8]),D=ue(),E=z("span"),E.textContent="to open",g=ue(),p=z("div"),p.innerHTML=`<span class="prompt-instruction-command">tab</span>
<span>to switch to In-File Search</span>`,A=ue(),I=z("div"),b=z("span"),y=dt(e[7]),C=ue(),S=z("span"),S.textContent="to open in a new pane",N=ue(),P=z("div"),q=z("span"),q.textContent=`${e[11]}`,$=ue(),me=z("span"),me.textContent="to open in a new split",K=ue(),he=z("div"),he.innerHTML=`<span class="prompt-instruction-command">alt o</span>
<span>to open in the background</span>`,ke=ue(),Ie=z("div"),Ke=z("span"),w=dt(e[10]),F=ue(),H=z("span"),H.textContent="to create",ee=ue(),de=z("div"),Re=z("span"),tt=dt(e[9]),Vr=ue(),_t=z("span"),_t.textContent="to create in a new pane",X=ue(),$e=z("div"),$e.innerHTML=`<span class="prompt-instruction-command">alt \u21B5</span>
<span>to insert a link</span>`,Kr=ue(),or=z("div"),or.innerHTML=`<span class="prompt-instruction-command">ctrl g</span>
<span>to toggle excerpts</span>`,$n=ue(),wi=z("div"),wi.innerHTML='<span class="prompt-instruction-command">esc</span><span>to close</span>',Z(u,"class","prompt-instruction"),Z(c,"class","prompt-instruction"),Z(d,"class","prompt-instruction-command"),Z(h,"class","prompt-instruction"),Z(p,"class","prompt-instruction"),Z(b,"class","prompt-instruction-command"),Z(I,"class","prompt-instruction"),Z(q,"class","prompt-instruction-command"),Z(P,"class","prompt-instruction"),Z(he,"class","prompt-instruction"),Z(Ke,"class","prompt-instruction-command"),Z(Ie,"class","prompt-instruction"),Z(Re,"class","prompt-instruction-command"),Z(de,"class","prompt-instruction"),Z($e,"class","prompt-instruction"),Z(or,"class","prompt-instruction"),Z(wi,"class","prompt-instruction"),Z(a,"class","prompt-instructions")},m(pe,Ye){Dt(t,pe,Ye),ae(pe,r,Ye),Pt&&Pt.m(pe,Ye),ae(pe,n,Ye),Dt(i,pe,Ye),ae(pe,s,Ye),ae(pe,a,Ye),j(a,u),j(a,o),j(a,c),j(a,f),j(a,h),j(h,d),j(d,_),j(h,D),j(h,E),j(a,g),j(a,p),j(a,A),j(a,I),j(I,b),j(b,y),j(I,C),j(I,S),j(a,N),j(a,P),j(P,q),j(P,$),j(P,me),j(a,K),j(a,he),j(a,ke),j(a,Ie),j(Ie,Ke),j(Ke,w),j(Ie,F),j(Ie,H),j(a,ee),j(a,de),j(de,Re),j(Re,tt),j(de,Vr),j(de,_t),j(a,X),j(a,$e),j(a,Kr),j(a,or),j(a,$n),j(a,wi),hn=!0},p(pe,Ye){let yu={};Ye[0]&1&&(yu.plugin=pe[0]),Ye[0]&4&&(yu.initialValue=pe[2]),Ye[0]&1|Ye[1]&4096&&(yu.$$scope={dirty:Ye,ctx:pe}),t.$set(yu),pe[4]?Pt?Pt.p(pe,Ye):(Pt=q_(pe),Pt.c(),Pt.m(n.parentNode,n)):Pt&&(Pt.d(1),Pt=null);let jh={};Ye[0]&47|Ye[1]&4096&&(jh.$$scope={dirty:Ye,ctx:pe}),i.$set(jh),(!hn||Ye[0]&256)&&Sr(_,pe[8]),(!hn||Ye[0]&128)&&Sr(y,pe[7]),(!hn||Ye[0]&1024)&&Sr(w,pe[10]),(!hn||Ye[0]&512)&&Sr(tt,pe[9])},i(pe){hn||(Ee(t.$$.fragment,pe),Ee(i.$$.fragment,pe),hn=!0)},o(pe){xe(t.$$.fragment,pe),xe(i.$$.fragment,pe),hn=!1},d(pe){e[19](null),Tt(t,pe),pe&&se(r),Pt&&Pt.d(pe),pe&&se(n),Tt(i,pe),pe&&se(s),pe&&se(a)}}}function iO(e,t,r){let n,i;vu(e,mn,X=>r(18,i=X));let{modal:s}=t,{previousQuery:a}=t,{plugin:u}=t,o=0,c=0,f,h=[],d,_="",D=!0,E,g,p,A,I,b=gn()+" alt \u21B5";ea(async()=>{ce.enable("vault"),ce.on("vault",ge.Enter,$),ce.on("vault",ge.OpenInBackground,me),ce.on("vault",ge.CreateNote,w),ce.on("vault",ge.OpenInNewPane,K),ce.on("vault",ge.InsertLink,F),ce.on("vault",ge.Tab,H),ce.on("vault",ge.ArrowUp,()=>ee(-1)),ce.on("vault",ge.ArrowDown,()=>ee(1)),ce.on("vault",ge.PrevSearchHistory,y),ce.on("vault",ge.NextSearchHistory,C),ce.on("vault",ge.OpenInNewLeaf,he),await u.notesIndexer.refreshIndex(),await P()}),ta(()=>{ce.disable("vault")});async function y(){let X=(await u.cacheManager.getSearchHistory()).filter($e=>$e);++c>=X.length&&(c=0),r(2,f=X[c]),E?.setInputValue(f??"")}async function C(){let X=(await u.cacheManager.getSearchHistory()).filter($e=>$e);--c<0&&(c=X.length?X.length-1:0),r(2,f=X[c]),E?.setInputValue(f??"")}let S=null;async function N(){r(5,D=!0),S&&(S.cancel(),S=null),d=new ni(f,{ignoreDiacritics:u.settings.ignoreDiacritics}),S=(0,H_.cancelable)(new Promise(X=>{X(u.searchEngine.getSuggestions(d))})),r(3,h=await S),r(1,o=0),await de(),r(5,D=!1)}let P=Yl(N,0);function q(X){!n||(X?.ctrlKey?K():$(),s.close())}function $(){!n||(Ie(n),s.close())}function me(){!n||Ie(n,!0)}function K(){!n||(Ie(n,!0),s.close())}function he(){!n||(Ie(n,!0,!0),s.close())}function ke(){f&&u.cacheManager.addToSearchHistory(f)}function Ie(X,$e=!1,Kr=!1){ke();let or=X.matches?.[0]?.offset??0;Pu(u.app,X,or,$e,Kr)}async function Ke(X){await w()}async function w(X){if(f){try{await l0(u.app,f,X?.newLeaf)}catch($e){new mr.Notice($e.message);return}s.close()}}function F(){if(!n)return;let X=u.app.vault.getMarkdownFiles().find(wi=>wi.path===n.path),$e=u.app.workspace.getActiveFile(),Kr=u.app.workspace.getActiveViewOfType(mr.MarkdownView);if(!Kr?.editor){new mr.Notice("Omnisearch - Error - No active editor",3e3);return}let or;X&&$e?or=u.app.fileManager.generateMarkdownLink(X,$e.path):or=`[[${n.basename}.${Tn(n.path)}]]`;let $n=Kr.editor.getCursor();Kr.editor.replaceRange(or,$n,$n),$n.ch+=or.length,Kr.editor.setCursor($n),s.close()}function H(){if(!(n&&(_n(n?.path)||!n?.matches.length)))if(ke(),s.close(),n){let X=u.app.vault.getAbstractFileByPath(n.path);X&&X instanceof mr.TFile&&new as(u,X,f).open()}else{let X=u.app.workspace.getActiveViewOfType(mr.MarkdownView);X?.file&&new as(u,X.file,f).open()}}function ee(X){r(1,o=Mu(o+X,h.length)),de()}async function de(){await pn(),n&&activeWindow.document.querySelector(`[data-result-id="${n.path}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}function Re(X){Wr[X?"unshift":"push"](()=>{E=X,r(6,E)})}let tt=X=>r(2,f=X.detail),Vr=(X,$e)=>r(1,o=X),_t=X=>{X.button==1&&K()};return e.$$set=X=>{"modal"in X&&r(16,s=X.modal),"previousQuery"in X&&r(17,a=X.previousQuery),"plugin"in X&&r(0,u=X.plugin)},e.$$.update=()=>{if(e.$$.dirty[0]&131076){e:r(2,f=f??a)}if(e.$$.dirty[0]&4){e:f?P():(r(5,D=!1),r(3,h=[]))}if(e.$$.dirty[0]&10){e:n=h[o]}if(e.$$.dirty[0]&1){e:u.settings.openInNewPane?(r(7,g="\u21B5"),r(8,p=gn()+" \u21B5"),r(9,A="shift \u21B5"),r(10,I=gn()+" shift \u21B5")):(r(7,g=gn()+" \u21B5"),r(8,p="\u21B5"),r(9,A=gn()+" shift \u21B5"),r(10,I="shift \u21B5"))}if(e.$$.dirty[0]&262144){e:switch(i){case nr.LoadingCache:r(4,_="Loading cache...");break;case nr.ReadingFiles:r(4,_="Reading files...");break;case nr.IndexingFiles:r(4,_="Indexing files...");break;case nr.WritingCache:P(),r(4,_="Updating cache...");break;default:P(),r(4,_="");break}}},[u,o,f,h,_,D,E,g,p,A,I,b,q,K,Ke,H,s,a,i,Re,tt,Vr,_t]}var mr,H_,K_,W_,Y_,Q_=O(()=>{rr();mr=Xe(require("obsidian"));Ou();ul();ol();Or();sa();ir();Ta();L0();Hu();H_=Xe(j0());_o();K_=e=>e.length<3;W_=class extends pt{constructor(t){super();bt(this,t,iO,nO,ot,{modal:16,previousQuery:17,plugin:0},null,[-1,-1])}},Y_=W_});function sO(e){let t,r=e[0].textProcessor.highlightText(e[4],e[1].matches)+"";return{c(){t=z("div"),Z(t,"class","omnisearch-result__body")},m(n,i){ae(n,t,i),t.innerHTML=r},p(n,i){i&19&&r!==(r=n[0].textProcessor.highlightText(n[4],n[1].matches)+"")&&(t.innerHTML=r)},d(n){n&&se(t)}}}function aO(e){let t,r;return t=new Bu({props:{id:e[2].toString(),selected:e[3],$$slots:{default:[sO]},$$scope:{ctx:e}}}),t.$on("auxclick",e[6]),t.$on("click",e[7]),t.$on("mousemove",e[8]),{c(){Lt(t.$$.fragment)},m(n,i){Dt(t,n,i),r=!0},p(n,[i]){let s={};i&4&&(s.id=n[2].toString()),i&8&&(s.selected=n[3]),i&531&&(s.$$scope={dirty:i,ctx:n}),t.$set(s)},i(n){r||(Ee(t.$$.fragment,n),r=!0)},o(n){xe(t.$$.fragment,n),r=!1},d(n){Tt(t,n)}}}function uO(e,t,r){let n,{plugin:i}=t,{offset:s}=t,{note:a}=t,{index:u=0}=t,{selected:o=!1}=t;function c(d){Vt.call(this,e,d)}function f(d){Vt.call(this,e,d)}function h(d){Vt.call(this,e,d)}return e.$$set=d=>{"plugin"in d&&r(0,i=d.plugin),"offset"in d&&r(5,s=d.offset),"note"in d&&r(1,a=d.note),"index"in d&&r(2,u=d.index),"selected"in d&&r(3,o=d.selected)},e.$$.update=()=>{if(e.$$.dirty&35){e:r(4,n=i.textProcessor.makeExcerpt(a?.content??"",s))}},[i,a,u,o,n,s,c,f,h]}var $_,X_,Z_=O(()=>{rr();Tl();$_=class extends pt{constructor(t){super();bt(this,t,uO,aO,ot,{plugin:0,offset:5,note:1,index:2,selected:3})}},X_=$_});function J_(e,t,r){let n=e.slice();return n[20]=t[r],n[22]=r,n}function oO(e){let t,r,n;return{c(){t=z("button"),t.textContent="Vault search"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[8]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function cO(e){let t,r=ba.Platform.isMobile&&oO(e);return{c(){t=z("div"),r&&r.c(),Z(t,"class","omnisearch-input-container__buttons")},m(n,i){ae(n,t,i),r&&r.m(t,null)},p(n,i){ba.Platform.isMobile&&r.p(n,i)},d(n){n&&se(t),r&&r.d()}}}function lO(e){let t;return{c(){t=z("div"),t.textContent="We found 0 result for your search here.",zt(t,"text-align","center")},m(r,n){ae(r,t,n)},p:qe,i:qe,o:qe,d(r){r&&se(t)}}}function fO(e){let t,r,n=e[5],i=[];for(let a=0;a<n.length;a+=1)i[a]=eT(J_(e,n,a));let s=a=>xe(i[a],1,1,()=>{i[a]=null});return{c(){for(let a=0;a<i.length;a+=1)i[a].c();t=Xs()},m(a,u){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(a,u);ae(a,t,u),r=!0},p(a,u){if(u&241){n=a[5];let o;for(o=0;o<n.length;o+=1){let c=J_(a,n,o);i[o]?(i[o].p(c,u),Ee(i[o],1)):(i[o]=eT(c),i[o].c(),Ee(i[o],1),i[o].m(t.parentNode,t))}for(Zn(),o=n.length;o<i.length;o+=1)s(o);Jn()}},i(a){if(!r){for(let u=0;u<n.length;u+=1)Ee(i[u]);r=!0}},o(a){i=i.filter(Boolean);for(let u=0;u<i.length;u+=1)xe(i[u]);r=!1},d(a){Du(i,a),a&&se(t)}}}function eT(e){let t,r;function n(...i){return e[13](e[22],...i)}return t=new X_({props:{plugin:e[0],offset:e[20],note:e[4],index:e[22],selected:e[22]===e[6]}}),t.$on("mousemove",n),t.$on("click",e[14]),t.$on("auxclick",e[15]),{c(){Lt(t.$$.fragment)},m(i,s){Dt(t,i,s),r=!0},p(i,s){e=i;let a={};s&1&&(a.plugin=e[0]),s&32&&(a.offset=e[20]),s&16&&(a.note=e[4]),s&64&&(a.selected=e[22]===e[6]),t.$set(a)},i(i){r||(Ee(t.$$.fragment,i),r=!0)},o(i){xe(t.$$.fragment,i),r=!1},d(i){Tt(t,i)}}}function dO(e){let t,r,n,i,s=[fO,lO],a=[];function u(o,c){return o[5].length&&o[4]?0:1}return t=u(e,-1),r=a[t]=s[t](e),{c(){r.c(),n=Xs()},m(o,c){a[t].m(o,c),ae(o,n,c),i=!0},p(o,c){let f=t;t=u(o,c),t===f?a[t].p(o,c):(Zn(),xe(a[f],1,1,()=>{a[f]=null}),Jn(),r=a[t],r?r.p(o,c):(r=a[t]=s[t](o),r.c()),Ee(r,1),r.m(n.parentNode,n))},i(o){i||(Ee(r),i=!0)},o(o){xe(r),i=!1},d(o){a[t].d(o),o&&se(n)}}}function hO(e){let t;return{c(){t=z("span"),t.textContent="to close"},m(r,n){ae(r,t,n)},d(r){r&&se(t)}}}function pO(e){let t;return{c(){t=z("span"),t.textContent="to go back to Vault Search"},m(r,n){ae(r,t,n)},d(r){r&&se(t)}}}function mO(e){let t,r,n,i,s,a,u,o,c,f,h,d,_,D,E,g,p,A,I,b;t=new Ru({props:{plugin:e[0],placeholder:"Omnisearch - File",initialValue:e[2],$$slots:{default:[cO]},$$scope:{ctx:e}}}),t.$on("input",e[12]),n=new wu({props:{$$slots:{default:[dO]},$$scope:{ctx:e}}});function y(N,P){return N[1]?pO:hO}let C=y(e,-1),S=C(e);return{c(){Lt(t.$$.fragment),r=ue(),Lt(n.$$.fragment),i=ue(),s=z("div"),a=z("div"),a.innerHTML='<span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span>',u=ue(),o=z("div"),o.innerHTML='<span class="prompt-instruction-command">\u21B5</span><span>to open</span>',c=ue(),f=z("div"),f.innerHTML=`<span class="prompt-instruction-command">tab</span>
<span>to switch to Vault Search</span>`,h=ue(),d=z("div"),_=z("span"),_.textContent="esc",D=ue(),S.c(),E=ue(),g=z("div"),p=z("span"),p.textContent=`${gn()} \u21B5`,A=ue(),I=z("span"),I.textContent="to open in a new pane",Z(a,"class","prompt-instruction"),Z(o,"class","prompt-instruction"),Z(f,"class","prompt-instruction"),Z(_,"class","prompt-instruction-command"),Z(d,"class","prompt-instruction"),Z(p,"class","prompt-instruction-command"),Z(g,"class","prompt-instruction"),Z(s,"class","prompt-instructions")},m(N,P){Dt(t,N,P),ae(N,r,P),Dt(n,N,P),ae(N,i,P),ae(N,s,P),j(s,a),j(s,u),j(s,o),j(s,c),j(s,f),j(s,h),j(s,d),j(d,_),j(d,D),S.m(d,null),j(s,E),j(s,g),j(g,p),j(g,A),j(g,I),b=!0},p(N,[P]){let q={};P&1&&(q.plugin=N[0]),P&4&&(q.initialValue=N[2]),P&8388608&&(q.$$scope={dirty:P,ctx:N}),t.$set(q);let $={};P&8388721&&($.$$scope={dirty:P,ctx:N}),n.$set($),C!==(C=y(N,P))&&(S.d(1),S=C(N),S&&(S.c(),S.m(d,null)))},i(N){b||(Ee(t.$$.fragment,N),Ee(n.$$.fragment,N),b=!0)},o(N){xe(t.$$.fragment,N),xe(n.$$.fragment,N),b=!1},d(N){Tt(t,N),N&&se(r),Tt(n,N),N&&se(i),N&&se(s),S.d()}}}function gO(e,t,r){let n=e.find(i=>i.offset>t);return n?e.filter(i=>i.offset>t&&i.offset<=n.offset+r):[]}function _O(e,t,r){let{plugin:n}=t,{modal:i}=t,{parent:s=null}=t,{singleFilePath:a=""}=t,{previousQuery:u}=t,o,c=[],f=0,h,d;ea(()=>{ce.enable("infile"),ce.on("infile",ge.Enter,p),ce.on("infile",ge.OpenInNewPane,g),ce.on("infile",ge.ArrowUp,()=>D(-1)),ce.on("infile",ge.ArrowDown,()=>D(1)),ce.on("infile",ge.Tab,A)}),ta(()=>{ce.disable("infile")});function _(S){let N=[],P=-1,q=0;for(;++q<100;){let $=gO(S,P,ra);if(!$.length)break;P=$.last().offset,N.push($)}return N}function D(S){r(6,f=Mu(f+S,c.length)),E()}async function E(){await pn(),document.querySelector(`[data-result-id="${f}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}async function g(){return p(!0)}async function p(S=!1){if(h){i.close(),s&&s.close();let N=n.textProcessor.stringsToRegex(h.foundWords);N.exec(h.content),await Pu(n.app,h,N.lastIndex,S);let P=n.app.workspace.getActiveViewOfType(ba.MarkdownView);if(!P)return;let q=c[f]??0,$=P.editor.offsetToPos(q);$.ch=0,P.editor.setCursor($),P.editor.scrollIntoView({from:{line:$.line-10,ch:0},to:{line:$.line+10,ch:0}})}}function A(){new Nn(n,o??u).open(),i.close()}let I=S=>r(3,o=S.detail),b=(S,N)=>r(6,f=S),y=S=>p(S.ctrlKey),C=S=>{S.button==1&&p(!0)};return e.$$set=S=>{"plugin"in S&&r(0,n=S.plugin),"modal"in S&&r(9,i=S.modal),"parent"in S&&r(1,s=S.parent),"singleFilePath"in S&&r(10,a=S.singleFilePath),"previousQuery"in S&&r(2,u=S.previousQuery)},e.$$.update=()=>{if(e.$$.dirty&4){e:r(3,o=u??"")}if(e.$$.dirty&3081){e:(async()=>{o&&(r(11,d=new ni(o,{ignoreDiacritics:n.settings.ignoreDiacritics})),r(4,h=(await n.searchEngine.getSuggestions(d,{singleFilePath:a}))[0]??null)),r(6,f=0),await E()})()}if(e.$$.dirty&2064){e:if(h){let S=_(h.matches),N=d.getExactTerms();N.length&&(S=S.filter(P=>N.every(q=>P.some($=>$.match.includes(q))))),r(5,c=S.map(P=>Math.round(P.first().offset)))}}},[n,s,u,o,h,c,f,p,A,i,a,d,I,b,y,C]}var ba,tT,rT,nT=O(()=>{rr();ul();Or();ir();Ou();ba=Xe(require("obsidian"));ol();Ta();Z_();Hu();sa();tT=class extends pt{constructor(t){super();bt(this,t,_O,mO,ot,{plugin:0,modal:9,parent:1,singleFilePath:10,previousQuery:2})}},rT=tT});var To,$l,Nn,as,Ta=O(()=>{To=Xe(require("obsidian"));Q_();nT();Or();$l=class extends To.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",o=>{o.preventDefault(),ce.emit(ge.ArrowDown)}),this.scope.register([],"ArrowUp",o=>{o.preventDefault(),ce.emit(ge.ArrowUp)});for(let o of[{k:"J",dir:"down"},{k:"K",dir:"up"}])for(let c of["Ctrl","Mod"])this.scope.register([c],o.k,f=>{r.vimLikeNavigationShortcut&&ce.emit("arrow-"+o.dir)});for(let o of[{k:"N",dir:"down"},{k:"P",dir:"up"}])for(let c of["Ctrl","Mod"])this.scope.register([c],o.k,f=>{r.vimLikeNavigationShortcut&&ce.emit("arrow-"+o.dir)});let n,i,s,a,u=["Mod","Alt"];r.openInNewPane?(n=["Mod"],i=[],s=["Mod","Shift"],a=["Shift"]):(n=[],i=["Mod"],s=["Shift"],a=["Mod","Shift"]),this.scope.register(i,"Enter",o=>{o.preventDefault(),ce.emit(ge.OpenInNewPane)}),this.scope.register(u,"Enter",o=>{o.preventDefault(),ce.emit(ge.OpenInNewLeaf)}),this.scope.register(["Alt"],"Enter",o=>{o.preventDefault(),ce.emit(ge.InsertLink)}),this.scope.register(s,"Enter",o=>{o.preventDefault(),ce.emit(ge.CreateNote)}),this.scope.register(a,"Enter",o=>{o.preventDefault(),ce.emit(ge.CreateNote,{newLeaf:!0})}),this.scope.register(n,"Enter",o=>{al()||(o.preventDefault(),ce.emit(ge.Enter))}),this.scope.register(["Alt"],"O",o=>{al()||(o.preventDefault(),ce.emit(ge.OpenInBackground))}),this.scope.register([],"Tab",o=>{o.preventDefault(),ce.emit(ge.Tab)}),this.scope.register(["Alt"],"ArrowDown",o=>{o.preventDefault(),ce.emit(ge.NextSearchHistory)}),this.scope.register(["Alt"],"ArrowUp",o=>{o.preventDefault(),ce.emit(ge.PrevSearchHistory)}),this.scope.register(["Ctrl"],"G",o=>{ce.emit(Nu.ToggleExcerpts)})}},Nn=class extends $l{constructor(t,r){super(t);let n=t.app.workspace.getActiveViewOfType(To.MarkdownView)?.editor.getSelection();t.cacheManager.getSearchHistory().then(i=>{let s=t.settings.showPreviousQueryResults?i[0]:null,a=new Y_({target:this.modalEl,props:{plugin:t,modal:this,previousQuery:r||n||s||""}});this.onClose=()=>{a.$destroy()}})}},as=class extends $l{constructor(t,r,n="",i){super(t);let s=new rT({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),s.$destroy()}}}});function TO(e,t){return t.map(r=>{let{score:n,path:i,basename:s,foundWords:a,matches:u,content:o}=r,c=e.textProcessor.makeExcerpt(o,u[0]?.offset??-1);return{score:n,vault:e.app.vault.getName(),path:i,basename:s,foundWords:a,matches:u.map(h=>({match:h.match,offset:h.offset})),excerpt:c}})}function sT(){iT=!0,bo.forEach(e=>e())}function uT(e){if(aT)return;aT=!0,e.registerObsidianProtocolHandler("omnisearch",r=>{new Nn(e,r.query).open()});let t=Xl(e);globalThis.omnisearch=t,e.app.plugins.plugins.omnisearch.api=t}function Xl(e){return{async search(t){let r=new ni(t,{ignoreDiacritics:e.settings.ignoreDiacritics}),n=await e.searchEngine.getSuggestions(r);return TO(e,n)},registerOnIndexed(t){bo.push(t),iT&&t()},unregisterOnIndexed(t){bo=bo.filter(r=>r!==t)},refreshIndex:e.notesIndexer.refreshIndex}}var iT,bo,aT,Zl=O(()=>{Hu();Ta();iT=!1,bo=[];aT=!1});var Sb=U(we=>{"use strict";function Yo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}we.defaults=Yo();function db(e){we.defaults=e}var hb=/[&<>"']/,Zx=new RegExp(hb.source,"g"),pb=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Jx=new RegExp(pb.source,"g"),e2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},mb=e=>e2[e];function Qt(e,t){if(t){if(hb.test(e))return e.replace(Zx,mb)}else if(pb.test(e))return e.replace(Jx,mb);return e}var t2=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function r2(e){return e.replace(t2,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}var n2=/(^|[^\[])\^/g;function Se(e,t){let r=typeof e=="string"?e:e.source;t=t||"";let n={replace:(i,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(n2,"$1"),r=r.replace(i,a),n},getRegex:()=>new RegExp(r,t)};return n}function gb(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}var Ha={exec:()=>null};function _b(e,t){let r=e.replace(/\|/g,(s,a,u)=>{let o=!1,c=a;for(;--c>=0&&u[c]==="\\";)o=!o;return o?"|":" |"}),n=r.split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-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(/\\\|/g,"|");return n}function Qo(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n;){let s=e.charAt(n-i-1);if(s===t&&!r)i++;else if(s!==t&&r)i++;else break}return e.slice(0,n-i)}function i2(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-1}function Tb(e,t,r,n){let i=t.href,s=t.title?Qt(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;let u={type:"link",raw:r,href:i,title:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,u}return{type:"image",raw:r,href:i,title:s,text:Qt(a)}}function s2(e,t){let r=e.match(/^(\s+)(?:```)/);if(r===null)return t;let n=r[1];return t.split(`
`).map(i=>{let s=i.match(/^\s+/);if(s===null)return i;let[a]=s;return a.length>=n.length?i.slice(n.length):i}).join(`
`)}var bs=class{options;rules;lexer;constructor(t){this.options=t||we.defaults}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Qo(n,`
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=s2(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){let i=Qo(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=r[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`);n=Qo(n.replace(/^ *>[ \t]?/gm,""),`
`);let i=this.lexer.state.top;this.lexer.state.top=!0;let s=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:r[0],tokens:s,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let a=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),u="",o="",c=!1;for(;t;){let f=!1;if(!(r=a.exec(t))||this.rules.block.hr.test(t))break;u=r[0],t=t.substring(u.length);let h=r[2].split(`
`,1)[0].replace(/^\t+/,p=>" ".repeat(3*p.length)),d=t.split(`
`,1)[0],_=0;this.options.pedantic?(_=2,o=h.trimStart()):(_=r[2].search(/[^ ]/),_=_>4?1:_,o=h.slice(_),_+=r[1].length);let D=!1;if(!h&&/^ *$/.test(d)&&(u+=d+`
`,t=t.substring(d.length+1),f=!0),!f){let p=new RegExp(`^ {0,${Math.min(3,_-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),A=new RegExp(`^ {0,${Math.min(3,_-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),I=new RegExp(`^ {0,${Math.min(3,_-1)}}(?:\`\`\`|~~~)`),b=new RegExp(`^ {0,${Math.min(3,_-1)}}#`);for(;t;){let y=t.split(`
`,1)[0];if(d=y,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),I.test(d)||b.test(d)||p.test(d)||A.test(t))break;if(d.search(/[^ ]/)>=_||!d.trim())o+=`
`+d.slice(_);else{if(D||h.search(/[^ ]/)>=4||I.test(h)||b.test(h)||A.test(h))break;o+=`
`+d}!D&&!d.trim()&&(D=!0),u+=y+`
`,t=t.substring(y.length+1),h=d.slice(_)}}s.loose||(c?s.loose=!0:/\n *\n *$/.test(u)&&(c=!0));let E=null,g;this.options.gfm&&(E=/^\[[ xX]\] /.exec(o),E&&(g=E[0]!=="[ ] ",o=o.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:u,task:!!E,checked:g,loose:!1,text:o,tokens:[]}),s.raw+=u}s.items[s.items.length-1].raw=u.trimEnd(),s.items[s.items.length-1].text=o.trimEnd(),s.raw=s.raw.trimEnd();for(let f=0;f<s.items.length;f++)if(this.lexer.state.top=!1,s.items[f].tokens=this.lexer.blockTokens(s.items[f].text,[]),!s.loose){let h=s.items[f].tokens.filter(_=>_.type==="space"),d=h.length>0&&h.some(_=>/\n.*\n/.test(_.raw));s.loose=d}if(s.loose)for(let f=0;f<s.items.length;f++)s.items[f].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(/\s+/g," "),i=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:s}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;let n=_b(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),s=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
`):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)/^ *-+: *$/.test(u)?a.align.push("right"):/^ *:-+: *$/.test(u)?a.align.push("center"):/^ *:-+ *$/.test(u)?a.align.push("left"):a.align.push(null);for(let u of n)a.header.push({text:u,tokens:this.lexer.inline(u)});for(let u of s)a.rows.push(_b(u,a.header.length).map(o=>({text:o,tokens:this.lexer.inline(o)})));return a}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:Qt(r[1])}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;let a=Qo(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{let a=i2(r[2],"()");if(a>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let i=r[2],s="";if(this.options.pedantic){let a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a&&(i=a[1],s=a[3])}else s=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),Tb(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(/\s+/g," "),s=r[i.toLowerCase()];if(!s){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return Tb(n,s,n[0],this.lexer)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let a=[...i[0]].length-1,u,o,c=a,f=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+a);(i=h.exec(r))!=null;){if(u=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!u)continue;if(o=[...u].length,i[3]||i[4]){c+=o;continue}else if((i[5]||i[6])&&a%3&&!((a+o)%3)){f+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+f);let d=[...i[0]][0].length,_=t.slice(0,a+i.index+d+o);if(Math.min(a,o)%2){let E=_.slice(1,-1);return{type:"em",raw:_,text:E,tokens:this.lexer.inlineTokens(E)}}let D=_.slice(2,-2);return{type:"strong",raw:_,text:D,tokens:this.lexer.inlineTokens(D)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),i=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return i&&s&&(n=n.substring(1,n.length-1)),n=Qt(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=Qt(r[1]),i="mailto:"+n):(n=Qt(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let n,i;if(r[2]==="@")n=Qt(r[0]),i="mailto:"+n;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(s!==r[0]);n=Qt(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=Qt(r[0]),{type:"text",raw:r[0],text:n}}}},a2=/^(?: *(?:\n|$))+/,u2=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,o2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ua=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,c2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bb=/(?:[*+-]|\d{1,9}[.)])/,Eb=Se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,bb).replace(/blockCode/g,/ {4}/).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/).getRegex(),nd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,l2=/^[^\n]+/,id=/(?!\s*\])(?:\\.|[^\[\]\\])+/,f2=Se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",id).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),d2=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bb).getRegex(),$o="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",sd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,h2=Se("^ {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",sd).replace("tag",$o).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ab=Se(nd).replace("hr",Ua).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$o).getRegex(),p2=Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ab).getRegex(),ad={blockquote:p2,code:u2,def:f2,fences:o2,heading:c2,hr:Ua,html:h2,lheading:Eb,list:d2,newline:a2,paragraph:Ab,table:Ha,text:l2},yb=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ua).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$o).getRegex(),m2=Fe(J({},ad),{table:yb,paragraph:Se(nd).replace("hr",Ua).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",yb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$o).getRegex()}),g2=Fe(J({},ad),{html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",sd).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:Ha,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(nd).replace("hr",Ua).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Eb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Ib=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,_2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vb=/^( {2,}|\\)\n(?!\s*$)/,T2=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ga="\\p{P}\\p{S}",b2=Se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Ga).getRegex(),E2=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,A2=Se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Ga).getRegex(),y2=Se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Ga).getRegex(),I2=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Ga).getRegex(),v2=Se(/\\([punct])/,"gu").replace(/punct/g,Ga).getRegex(),C2=Se(/^<(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(),D2=Se(sd).replace("(?:-->|$)","-->").getRegex(),S2=Se("^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",D2).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Xo=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,O2=Se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Xo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Cb=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",Xo).replace("ref",id).getRegex(),Db=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",id).getRegex(),x2=Se("reflink|nolink(?!\\()","g").replace("reflink",Cb).replace("nolink",Db).getRegex(),ud={_backpedal:Ha,anyPunctuation:v2,autolink:C2,blockSkip:E2,br:vb,code:_2,del:Ha,emStrongLDelim:A2,emStrongRDelimAst:y2,emStrongRDelimUnd:I2,escape:Ib,link:O2,nolink:Db,punctuation:b2,reflink:Cb,reflinkSearch:x2,tag:S2,text:T2,url:Ha},N2=Fe(J({},ud),{link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",Xo).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xo).getRegex()}),od=Fe(J({},ud),{escape:Se(Ib).replace("])","~|])").getRegex(),url:Se(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),R2=Fe(J({},od),{br:Se(vb).replace("{2,}","*").getRegex(),text:Se(od.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Zo={normal:ad,gfm:m2,pedantic:g2},qa={normal:ud,gfm:od,breaks:R2,pedantic:N2},sr=class{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||we.defaults,this.options.tokenizer=this.options.tokenizer||new bs,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={block:Zo.normal,inline:qa.normal};this.options.pedantic?(r.block=Zo.pedantic,r.inline=qa.pedantic):this.options.gfm&&(r.block=Zo.gfm,this.options.breaks?r.inline=qa.breaks:r.inline=qa.gfm),this.tokenizer.rules=r}static get rules(){return{block:Zo,inline:qa}}static lex(t,r){return new sr(r).lex(t)}static lexInline(t,r){return new sr(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),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=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(u,o,c)=>o+" ".repeat(c.length));let n,i,s,a;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(u=>(n=u.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+n.raw,i.text+=`
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let u=1/0,o=t.slice(1),c;this.options.extensions.startBlock.forEach(f=>{c=f.call({lexer:this},o),typeof c=="number"&&c>=0&&(u=Math.min(u,c))}),u<1/0&&u>=0&&(s=t.substring(0,u+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){i=r[r.length-1],a&&i.type==="paragraph"?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n),a=s.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&i.type==="text"?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,i,s,a=t,u,o,c;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)f.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,u.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(o||(c=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,a,c)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),r.push(n);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0,h=t.slice(1),d;this.options.extensions.startInline.forEach(_=>{d=_.call({lexer:this},h),typeof d=="number"&&d>=0&&(f=Math.min(f,d))}),f<1/0&&f>=0&&(s=t.substring(0,f+1))}if(n=this.tokenizer.inlineText(s)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),o=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},Es=class{options;constructor(t){this.options=t||we.defaults}code(t,r,n){let i=(r||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
`,i?'<pre><code class="language-'+Qt(i)+'">'+(n?t:Qt(t,!0))+`</code></pre>
`:"<pre><code>"+(n?t:Qt(t,!0))+`</code></pre>
`}blockquote(t){return`<blockquote>
${t}</blockquote>
`}html(t,r){return t}heading(t,r,n){return`<h${r}>${t}</h${r}>
`}hr(){return`<hr>
`}list(t,r,n){let i=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
`+t+"</"+i+`>
`}listitem(t,r,n){return`<li>${t}</li>
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+r+`</table>
`}tablerow(t){return`<tr>
${t}</tr>
`}tablecell(t,r){let n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+t+`</${n}>
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,r,n){let i=gb(t);if(i===null)return n;t=i;let s='<a href="'+t+'"';return r&&(s+=' title="'+r+'"'),s+=">"+n+"</a>",s}image(t,r,n){let i=gb(t);if(i===null)return n;t=i;let s=`<img src="${t}" alt="${n}"`;return r&&(s+=` title="${r}"`),s+=">",s}text(t){return t}},za=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,n){return""+n}image(t,r,n){return""+n}br(){return""}},ar=class{options;renderer;textRenderer;constructor(t){this.options=t||we.defaults,this.options.renderer=this.options.renderer||new Es,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new za}static parse(t,r){return new ar(r).parse(t)}static parseInline(t,r){return new ar(r).parseInline(t)}parse(t,r=!0){let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let a=s,u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){n+=u||"";continue}}switch(s.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{let a=s;n+=this.renderer.heading(this.parseInline(a.tokens),a.depth,r2(this.parseInline(a.tokens,this.textRenderer)));continue}case"code":{let a=s;n+=this.renderer.code(a.text,a.lang,!!a.escaped);continue}case"table":{let a=s,u="",o="";for(let f=0;f<a.header.length;f++)o+=this.renderer.tablecell(this.parseInline(a.header[f].tokens),{header:!0,align:a.align[f]});u+=this.renderer.tablerow(o);let c="";for(let f=0;f<a.rows.length;f++){let h=a.rows[f];o="";for(let d=0;d<h.length;d++)o+=this.renderer.tablecell(this.parseInline(h[d].tokens),{header:!1,align:a.align[d]});c+=this.renderer.tablerow(o)}n+=this.renderer.table(u,c);continue}case"blockquote":{let a=s,u=this.parse(a.tokens);n+=this.renderer.blockquote(u);continue}case"list":{let a=s,u=a.ordered,o=a.start,c=a.loose,f="";for(let h=0;h<a.items.length;h++){let d=a.items[h],_=d.checked,D=d.task,E="";if(d.task){let g=this.renderer.checkbox(!!_);c?d.tokens.length>0&&d.tokens[0].type==="paragraph"?(d.tokens[0].text=g+" "+d.tokens[0].text,d.tokens[0].tokens&&d.tokens[0].tokens.length>0&&d.tokens[0].tokens[0].type==="text"&&(d.tokens[0].tokens[0].text=g+" "+d.tokens[0].tokens[0].text)):d.tokens.unshift({type:"text",text:g+" "}):E+=g+" "}E+=this.parse(d.tokens,c),f+=this.renderer.listitem(E,D,!!_)}n+=this.renderer.list(f,u,o);continue}case"html":{let a=s;n+=this.renderer.html(a.text,a.block);continue}case"paragraph":{let a=s;n+=this.renderer.paragraph(this.parseInline(a.tokens));continue}case"text":{let a=s,u=a.tokens?this.parseInline(a.tokens):a.text;for(;i+1<t.length&&t[i+1].type==="text";)a=t[++i],u+=`
`+(a.tokens?this.parseInline(a.tokens):a.text);n+=r?this.renderer.paragraph(u):u;continue}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(t,r){r=r||this.renderer;let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=a||"";continue}}switch(s.type){case"escape":{let a=s;n+=r.text(a.text);break}case"html":{let a=s;n+=r.html(a.text);break}case"link":{let a=s;n+=r.link(a.href,a.title,this.parseInline(a.tokens,r));break}case"image":{let a=s;n+=r.image(a.href,a.title,a.text);break}case"strong":{let a=s;n+=r.strong(this.parseInline(a.tokens,r));break}case"em":{let a=s;n+=r.em(this.parseInline(a.tokens,r));break}case"codespan":{let a=s;n+=r.codespan(a.text);break}case"br":{n+=r.br();break}case"del":{let a=s;n+=r.del(this.parseInline(a.tokens,r));break}case"text":{let a=s;n+=r.text(a.text);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}},pi=class{options;constructor(t){this.options=t||we.defaults}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}};zh(pi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var cd=class{defaults=Yo();options=this.setOptions;parse=this.#e(sr.lex,ar.parse);parseInline=this.#e(sr.lexInline,ar.parseInline);Parser=ar;Renderer=Es;TextRenderer=za;Lexer=sr;Tokenizer=bs;Hooks=pi;constructor(...t){this.use(...t)}walkTokens(t,r){let n=[];for(let i of t)switch(n=n.concat(r.call(this,i)),i.type){case"table":{let s=i;for(let a of s.header)n=n.concat(this.walkTokens(a.tokens,r));for(let a of s.rows)for(let u of a)n=n.concat(this.walkTokens(u.tokens,r));break}case"list":{let s=i;n=n.concat(this.walkTokens(s.items,r));break}default:{let s=i;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let u=s[a].flat(1/0);n=n.concat(this.walkTokens(u,r))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i=J({},n);if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=r.renderers[s.name];a?r.renderers[s.name]=function(...u){let o=s.renderer.apply(this,u);return o===!1&&(o=a.apply(this,u)),o}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[s.level];a?a.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),i.extensions=r),n.renderer){let s=this.defaults.renderer||new Es(this.defaults);for(let a in n.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(a==="options")continue;let u=a,o=n.renderer[u],c=s[u];s[u]=(...f)=>{let h=o.apply(s,f);return h===!1&&(h=c.apply(s,f)),h||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new bs(this.defaults);for(let a in n.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let u=a,o=n.tokenizer[u],c=s[u];s[u]=(...f)=>{let h=o.apply(s,f);return h===!1&&(h=c.apply(s,f)),h}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new pi;for(let a in n.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(a==="options")continue;let u=a,o=n.hooks[u],c=s[u];pi.passThroughHooks.has(a)?s[u]=f=>{if(this.defaults.async)return Promise.resolve(o.call(s,f)).then(d=>c.call(s,d));let h=o.call(s,f);return c.call(s,h)}:s[u]=(...f)=>{let h=o.apply(s,f);return h===!1&&(h=c.apply(s,f)),h}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,a=n.walkTokens;i.walkTokens=function(u){let o=[];return o.push(a.call(this,u)),s&&(o=o.concat(s.call(this,u))),o}}this.defaults=J(J({},this.defaults),i)}),this}setOptions(t){return this.defaults=J(J({},this.defaults),t),this}lexer(t,r){return sr.lex(t,r??this.defaults)}parser(t,r){return ar.parse(t,r??this.defaults)}#e(t,r){return(n,i)=>{let s=J({},i),a=J(J({},this.defaults),s);this.defaults.async===!0&&s.async===!1&&(a.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),a.async=!0);let u=this.#t(!!a.silent,!!a.async);if(typeof n=="undefined"||n===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(a.hooks&&(a.hooks.options=a),a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(n):n).then(o=>t(o,a)).then(o=>a.hooks?a.hooks.processAllTokens(o):o).then(o=>a.walkTokens?Promise.all(this.walkTokens(o,a.walkTokens)).then(()=>o):o).then(o=>r(o,a)).then(o=>a.hooks?a.hooks.postprocess(o):o).catch(u);try{a.hooks&&(n=a.hooks.preprocess(n));let o=t(n,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let c=r(o,a);return a.hooks&&(c=a.hooks.postprocess(c)),c}catch(o){return u(o)}}}#t(t,r){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+Qt(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},mi=new cd;function Ce(e,t){return mi.parse(e,t)}Ce.options=Ce.setOptions=function(e){return mi.setOptions(e),Ce.defaults=mi.defaults,db(Ce.defaults),Ce};Ce.getDefaults=Yo;Ce.defaults=we.defaults;Ce.use=function(...e){return mi.use(...e),Ce.defaults=mi.defaults,db(Ce.defaults),Ce};Ce.walkTokens=function(e,t){return mi.walkTokens(e,t)};Ce.parseInline=mi.parseInline;Ce.Parser=ar;Ce.parser=ar.parse;Ce.Renderer=Es;Ce.TextRenderer=za;Ce.Lexer=sr;Ce.lexer=sr.lex;Ce.Tokenizer=bs;Ce.Hooks=pi;Ce.parse=Ce;var w2=Ce.options,P2=Ce.setOptions,L2=Ce.use,M2=Ce.walkTokens,k2=Ce.parseInline,F2=Ce,B2=ar.parse,j2=sr.lex;we.Hooks=pi;we.Lexer=sr;we.Marked=cd;we.Parser=ar;we.Renderer=Es;we.TextRenderer=za;we.Tokenizer=bs;we.getDefaults=Yo;we.lexer=j2;we.marked=Ce;we.options=w2;we.parse=F2;we.parseInline=k2;we.parser=B2;we.setOptions=P2;we.use=L2;we.walkTokens=M2});var xb=U(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0})});var ld=U(gi=>{"use strict";var Jo=gi&&gi.__assign||function(){return Jo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Jo.apply(this,arguments)};Object.defineProperty(gi,"__esModule",{value:!0});gi.flatten=void 0;var H2={xml:!1,decodeEntities:!0};gi.default=H2;var Nb={_useHtmlParser2:!0,xmlMode:!0};function U2(e){return(e==null?void 0:e.xml)?typeof e.xml=="boolean"?Nb:Jo(Jo({},Nb),e.xml):e??void 0}gi.flatten=U2});var As=U(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.Doctype=He.CDATA=He.Tag=He.Style=He.Script=He.Comment=He.Directive=He.Text=He.Root=He.isTag=He.ElementType=void 0;var $t;(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"})($t=He.ElementType||(He.ElementType={}));function G2(e){return e.type===$t.Tag||e.type===$t.Script||e.type===$t.Style}He.isTag=G2;He.Root=$t.Root;He.Text=$t.Text;He.Directive=$t.Directive;He.Comment=$t.Comment;He.Script=$t.Script;He.Style=$t.Style;He.Tag=$t.Tag;He.CDATA=$t.CDATA;He.Doctype=$t.Doctype});var pd=U(le=>{"use strict";var Fn=le&&le.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Va=le&&le.__assign||function(){return Va=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Va.apply(this,arguments)};Object.defineProperty(le,"__esModule",{value:!0});le.cloneNode=le.hasChildren=le.isDocument=le.isDirective=le.isComment=le.isText=le.isCDATA=le.isTag=le.Element=le.Document=le.CDATA=le.NodeWithChildren=le.ProcessingInstruction=le.Comment=le.Text=le.DataNode=le.Node=void 0;var kt=As(),fd=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),dd(this,t)},e}();le.Node=fd;var ec=function(e){Fn(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(fd);le.DataNode=ec;var Rb=function(e){Fn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(ec);le.Text=Rb;var wb=function(e){Fn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(ec);le.Comment=wb;var Pb=function(e){Fn(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=kt.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(ec);le.ProcessingInstruction=Pb;var tc=function(e){Fn(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(fd);le.NodeWithChildren=tc;var Lb=function(e){Fn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(tc);le.CDATA=Lb;var Mb=function(e){Fn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(tc);le.Document=Mb;var kb=function(e){Fn(t,e);function t(r,n,i,s){i===void 0&&(i=[]),s===void 0&&(s=r==="script"?kt.ElementType.Script:r==="style"?kt.ElementType.Style:kt.ElementType.Tag);var a=e.call(this,i)||this;return a.name=r,a.attribs=n,a.type=s,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,s;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),t}(tc);le.Element=kb;function Fb(e){return(0,kt.isTag)(e)}le.isTag=Fb;function Bb(e){return e.type===kt.ElementType.CDATA}le.isCDATA=Bb;function jb(e){return e.type===kt.ElementType.Text}le.isText=jb;function Hb(e){return e.type===kt.ElementType.Comment}le.isComment=Hb;function Ub(e){return e.type===kt.ElementType.Directive}le.isDirective=Ub;function Gb(e){return e.type===kt.ElementType.Root}le.isDocument=Gb;function q2(e){return Object.prototype.hasOwnProperty.call(e,"children")}le.hasChildren=q2;function dd(e,t){t===void 0&&(t=!1);var r;if(jb(e))r=new Rb(e.data);else if(Hb(e))r=new wb(e.data);else if(Fb(e)){var n=t?hd(e.children):[],i=new kb(e.name,Va({},e.attribs),n);n.forEach(function(o){return o.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Va({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Va({},e["x-attribsPrefix"])),r=i}else if(Bb(e)){var n=t?hd(e.children):[],s=new Lb(n);n.forEach(function(c){return c.parent=s}),r=s}else if(Gb(e)){var n=t?hd(e.children):[],a=new Mb(n);n.forEach(function(c){return c.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(Ub(e)){var u=new Pb(e.name,e.data);e["x-name"]!=null&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),r=u}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}le.cloneNode=dd;function hd(e){for(var t=e.map(function(n){return dd(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var yt=U(Rr=>{"use strict";var z2=Rr&&Rr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),V2=Rr&&Rr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&z2(t,e,r)};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.DomHandler=void 0;var md=As(),Bn=pd();V2(pd(),Rr);var qb={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},zb=function(){function e(t,r,n){this.dom=[],this.root=new Bn.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(n=r,r=qb),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??qb,this.elementCB=n??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new Bn.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var n=this.options.xmlMode?md.ElementType.Tag:void 0,i=new Bn.Element(t,r,void 0,n);this.addNode(i),this.tagStack.push(i)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===md.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var n=new Bn.Text(t);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===md.ElementType.Comment){this.lastNode.data+=t;return}var r=new Bn.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new Bn.Text(""),r=new Bn.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var n=new Bn.ProcessingInstruction(t,r);this.addNode(n)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var 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},e}();Rr.DomHandler=zb;Rr.default=zb});var Vb=U(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.default=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(function(e){return e.charCodeAt(0)}))});var Kb=U(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.default=new Uint16Array("\u0200aglq \u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(function(e){return e.charCodeAt(0)}))});var bd=U(jn=>{"use strict";var Td;Object.defineProperty(jn,"__esModule",{value:!0});jn.replaceCodePoint=jn.fromCodePoint=void 0;var K2=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]]);jn.fromCodePoint=(Td=String.fromCodePoint)!==null&&Td!==void 0?Td:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Wb(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=K2.get(e))!==null&&t!==void 0?t:e}jn.replaceCodePoint=Wb;function W2(e){return(0,jn.fromCodePoint)(Wb(e))}jn.default=W2});var ys=U(fe=>{"use strict";var Y2=fe&&fe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Q2=fe&&fe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),$2=fe&&fe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Y2(t,e,r);return Q2(t,e),t},Yb=fe&&fe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fe,"__esModule",{value:!0});fe.decodeXML=fe.decodeHTMLStrict=fe.decodeHTMLAttribute=fe.decodeHTML=fe.determineBranch=fe.EntityDecoder=fe.DecodingMode=fe.BinTrieFlags=fe.fromCodePoint=fe.replaceCodePoint=fe.decodeCodePoint=fe.xmlDecodeTree=fe.htmlDecodeTree=void 0;var Qb=Yb(Vb());fe.htmlDecodeTree=Qb.default;var $b=Yb(Kb());fe.xmlDecodeTree=$b.default;var Ed=$2(bd());fe.decodeCodePoint=Ed.default;var Xb=bd();Object.defineProperty(fe,"replaceCodePoint",{enumerable:!0,get:function(){return Xb.replaceCodePoint}});Object.defineProperty(fe,"fromCodePoint",{enumerable:!0,get:function(){return Xb.fromCodePoint}});var ct;(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"})(ct||(ct={}));var X2=32,_i;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(_i=fe.BinTrieFlags||(fe.BinTrieFlags={}));function Ad(e){return e>=ct.ZERO&&e<=ct.NINE}function Z2(e){return e>=ct.UPPER_A&&e<=ct.UPPER_F||e>=ct.LOWER_A&&e<=ct.LOWER_F}function J2(e){return e>=ct.UPPER_A&&e<=ct.UPPER_Z||e>=ct.LOWER_A&&e<=ct.LOWER_Z||Ad(e)}function eN(e){return e===ct.EQUALS||J2(e)}var lt;(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"})(lt||(lt={}));var wr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(wr=fe.DecodingMode||(fe.DecodingMode={}));var Zb=function(){function e(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=lt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=wr.Strict}return e.prototype.startEntity=function(t){this.decodeMode=t,this.state=lt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(t,r){switch(this.state){case lt.EntityStart:return t.charCodeAt(r)===ct.NUM?(this.state=lt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=lt.NamedEntity,this.stateNamedEntity(t,r));case lt.NumericStart:return this.stateNumericStart(t,r);case lt.NumericDecimal:return this.stateNumericDecimal(t,r);case lt.NumericHex:return this.stateNumericHex(t,r);case lt.NamedEntity:return this.stateNamedEntity(t,r)}},e.prototype.stateNumericStart=function(t,r){return r>=t.length?-1:(t.charCodeAt(r)|X2)===ct.LOWER_X?(this.state=lt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=lt.NumericDecimal,this.stateNumericDecimal(t,r))},e.prototype.addToNumericResult=function(t,r,n,i){if(r!==n){var s=n-r;this.result=this.result*Math.pow(i,s)+parseInt(t.substr(r,s),i),this.consumed+=s}},e.prototype.stateNumericHex=function(t,r){for(var n=r;r<t.length;){var i=t.charCodeAt(r);if(Ad(i)||Z2(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1},e.prototype.stateNumericDecimal=function(t,r){for(var n=r;r<t.length;){var i=t.charCodeAt(r);if(Ad(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1},e.prototype.emitNumericEntity=function(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ct.SEMI)this.consumed+=1;else if(this.decodeMode===wr.Strict)return 0;return this.emitCodePoint((0,Ed.replaceCodePoint)(this.result),this.consumed),this.errors&&(t!==ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},e.prototype.stateNamedEntity=function(t,r){for(var n=this.decodeTree,i=n[this.treeIndex],s=(i&_i.VALUE_LENGTH)>>14;r<t.length;r++,this.excess++){var a=t.charCodeAt(r);if(this.treeIndex=eE(n,i,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===wr.Attribute&&(s===0||eN(a))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],s=(i&_i.VALUE_LENGTH)>>14,s!==0){if(a===ct.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==wr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var t,r=this,n=r.result,i=r.decodeTree,s=(i[n]&_i.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(t,r,n){var i=this.decodeTree;return this.emitCodePoint(r===1?i[t]&~_i.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n},e.prototype.end=function(){var t;switch(this.state){case lt.NamedEntity:return this.result!==0&&(this.decodeMode!==wr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case lt.NumericDecimal:return this.emitNumericEntity(0,2);case lt.NumericHex:return this.emitNumericEntity(0,3);case lt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case lt.EntityStart:return 0}},e}();fe.EntityDecoder=Zb;function Jb(e){var t="",r=new Zb(e,function(n){return t+=(0,Ed.fromCodePoint)(n)});return function(i,s){for(var a=0,u=0;(u=i.indexOf("&",u))>=0;){t+=i.slice(a,u),r.startEntity(s);var o=r.write(i,u+1);if(o<0){a=u+r.end();break}a=u+o,u=o===0?a+1:a}var c=t+i.slice(a);return t="",c}}function eE(e,t,r,n){var i=(t&_i.BRANCH_LENGTH)>>7,s=t&_i.JUMP_TABLE;if(i===0)return s!==0&&n===s?r:-1;if(s){var a=n-s;return a<0||a>=i?-1:e[r+a]-1}for(var u=r,o=u+i-1;u<=o;){var c=u+o>>>1,f=e[c];if(f<n)u=c+1;else if(f>n)o=c-1;else return e[c+i]}return-1}fe.determineBranch=eE;var yd=Jb(Qb.default),tN=Jb($b.default);function rN(e,t){return t===void 0&&(t=wr.Legacy),yd(e,t)}fe.decodeHTML=rN;function nN(e){return yd(e,wr.Attribute)}fe.decodeHTMLAttribute=nN;function iN(e){return yd(e,wr.Strict)}fe.decodeHTMLStrict=iN;function sN(e){return tN(e,wr.Strict)}fe.decodeXML=sN});var tE=U(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});function rc(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Id.default=new Map(rc([[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(rc([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(rc([[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(rc([[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;"]]))});var Ka=U(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.escapeText=it.escapeAttribute=it.escapeUTF8=it.escape=it.encodeXML=it.getCodePoint=it.xmlReplacer=void 0;it.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var rE=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);it.getCodePoint=String.prototype.codePointAt!=null?function(e,t){return e.codePointAt(t)}:function(e,t){return(e.charCodeAt(t)&64512)==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)};function nE(e){for(var t="",r=0,n;(n=it.xmlReplacer.exec(e))!==null;){var i=n.index,s=e.charCodeAt(i),a=rE.get(s);a!==void 0?(t+=e.substring(r,i)+a,r=i+1):(t+="".concat(e.substring(r,i),"&#x").concat((0,it.getCodePoint)(e,i).toString(16),";"),r=it.xmlReplacer.lastIndex+=Number((s&64512)==55296))}return t+e.substr(r)}it.encodeXML=nE;it.escape=nE;function vd(e,t){return function(n){for(var i,s=0,a="";i=e.exec(n);)s!==i.index&&(a+=n.substring(s,i.index)),a+=t.get(i[0].charCodeAt(0)),s=i.index+1;return a+n.substring(s)}}it.escapeUTF8=vd(/[&<>'"]/g,rE);it.escapeAttribute=vd(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]]));it.escapeText=vd(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))});var Cd=U(Hn=>{"use strict";var aN=Hn&&Hn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hn,"__esModule",{value:!0});Hn.encodeNonAsciiHTML=Hn.encodeHTML=void 0;var uN=aN(tE()),iE=Ka(),oN=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function cN(e){return sE(oN,e)}Hn.encodeHTML=cN;function lN(e){return sE(iE.xmlReplacer,e)}Hn.encodeNonAsciiHTML=lN;function sE(e,t){for(var r="",n=0,i;(i=e.exec(t))!==null;){var s=i.index;r+=t.substring(n,s);var a=t.charCodeAt(s),u=uN.default.get(a);if(typeof u=="object"){if(s+1<t.length){var o=t.charCodeAt(s+1),c=typeof u.n=="number"?u.n===o?u.o:void 0:u.n.get(o);if(c!==void 0){r+=c,n=e.lastIndex+=1;continue}}u=u.v}if(u!==void 0)r+=u,n=s+1;else{var f=(0,iE.getCodePoint)(t,s);r+="&#x".concat(f.toString(16),";"),n=e.lastIndex+=Number(f!==a)}}return r+t.substr(n)}});var oE=U(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.decodeXMLStrict=te.decodeHTML5Strict=te.decodeHTML4Strict=te.decodeHTML5=te.decodeHTML4=te.decodeHTMLAttribute=te.decodeHTMLStrict=te.decodeHTML=te.decodeXML=te.DecodingMode=te.EntityDecoder=te.encodeHTML5=te.encodeHTML4=te.encodeNonAsciiHTML=te.encodeHTML=te.escapeText=te.escapeAttribute=te.escapeUTF8=te.escape=te.encodeXML=te.encode=te.decodeStrict=te.decode=te.EncodingMode=te.EntityLevel=void 0;var Dd=ys(),aE=Cd(),nc=Ka(),Is;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(Is=te.EntityLevel||(te.EntityLevel={}));var Wa;(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"})(Wa=te.EncodingMode||(te.EncodingMode={}));function uE(e,t){t===void 0&&(t=Is.XML);var r=typeof t=="number"?t:t.level;if(r===Is.HTML){var n=typeof t=="object"?t.mode:void 0;return(0,Dd.decodeHTML)(e,n)}return(0,Dd.decodeXML)(e)}te.decode=uE;function fN(e,t){var r;t===void 0&&(t=Is.XML);var n=typeof t=="number"?{level:t}:t;return(r=n.mode)!==null&&r!==void 0||(n.mode=Dd.DecodingMode.Strict),uE(e,n)}te.decodeStrict=fN;function dN(e,t){t===void 0&&(t=Is.XML);var r=typeof t=="number"?{level:t}:t;return r.mode===Wa.UTF8?(0,nc.escapeUTF8)(e):r.mode===Wa.Attribute?(0,nc.escapeAttribute)(e):r.mode===Wa.Text?(0,nc.escapeText)(e):r.level===Is.HTML?r.mode===Wa.ASCII?(0,aE.encodeNonAsciiHTML)(e):(0,aE.encodeHTML)(e):(0,nc.encodeXML)(e)}te.encode=dN;var Ya=Ka();Object.defineProperty(te,"encodeXML",{enumerable:!0,get:function(){return Ya.encodeXML}});Object.defineProperty(te,"escape",{enumerable:!0,get:function(){return Ya.escape}});Object.defineProperty(te,"escapeUTF8",{enumerable:!0,get:function(){return Ya.escapeUTF8}});Object.defineProperty(te,"escapeAttribute",{enumerable:!0,get:function(){return Ya.escapeAttribute}});Object.defineProperty(te,"escapeText",{enumerable:!0,get:function(){return Ya.escapeText}});var ic=Cd();Object.defineProperty(te,"encodeHTML",{enumerable:!0,get:function(){return ic.encodeHTML}});Object.defineProperty(te,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return ic.encodeNonAsciiHTML}});Object.defineProperty(te,"encodeHTML4",{enumerable:!0,get:function(){return ic.encodeHTML}});Object.defineProperty(te,"encodeHTML5",{enumerable:!0,get:function(){return ic.encodeHTML}});var Tr=ys();Object.defineProperty(te,"EntityDecoder",{enumerable:!0,get:function(){return Tr.EntityDecoder}});Object.defineProperty(te,"DecodingMode",{enumerable:!0,get:function(){return Tr.DecodingMode}});Object.defineProperty(te,"decodeXML",{enumerable:!0,get:function(){return Tr.decodeXML}});Object.defineProperty(te,"decodeHTML",{enumerable:!0,get:function(){return Tr.decodeHTML}});Object.defineProperty(te,"decodeHTMLStrict",{enumerable:!0,get:function(){return Tr.decodeHTMLStrict}});Object.defineProperty(te,"decodeHTMLAttribute",{enumerable:!0,get:function(){return Tr.decodeHTMLAttribute}});Object.defineProperty(te,"decodeHTML4",{enumerable:!0,get:function(){return Tr.decodeHTML}});Object.defineProperty(te,"decodeHTML5",{enumerable:!0,get:function(){return Tr.decodeHTML}});Object.defineProperty(te,"decodeHTML4Strict",{enumerable:!0,get:function(){return Tr.decodeHTMLStrict}});Object.defineProperty(te,"decodeHTML5Strict",{enumerable:!0,get:function(){return Tr.decodeHTMLStrict}});Object.defineProperty(te,"decodeXMLStrict",{enumerable:!0,get:function(){return Tr.decodeXML}})});var cE=U(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.attributeNames=vs.elementNames=void 0;vs.elementNames=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(function(e){return[e.toLowerCase(),e]}));vs.attributeNames=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(function(e){return[e.toLowerCase(),e]}))});var Sd=U(Xt=>{"use strict";var Cs=Xt&&Xt.__assign||function(){return Cs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Cs.apply(this,arguments)},hN=Xt&&Xt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),pN=Xt&&Xt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),mN=Xt&&Xt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&hN(t,e,r);return pN(t,e),t};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.render=void 0;var an=mN(As()),sc=oE(),lE=cE(),gN=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function _N(e){return e.replace(/"/g,"&quot;")}function TN(e,t){var r;if(!!e){var n=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?_N:t.xmlMode||t.encodeEntities!=="utf8"?sc.encodeXML:sc.escapeAttribute;return Object.keys(e).map(function(i){var s,a,u=(s=e[i])!==null&&s!==void 0?s:"";return t.xmlMode==="foreign"&&(i=(a=lE.attributeNames.get(i))!==null&&a!==void 0?a:i),!t.emptyAttrs&&!t.xmlMode&&u===""?i:"".concat(i,'="').concat(n(u),'"')}).join(" ")}}var fE=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function ac(e,t){t===void 0&&(t={});for(var r=("length"in e)?e:[e],n="",i=0;i<r.length;i++)n+=bN(r[i],t);return n}Xt.render=ac;Xt.default=ac;function bN(e,t){switch(e.type){case an.Root:return ac(e.children,t);case an.Doctype:case an.Directive:return IN(e);case an.Comment:return DN(e);case an.CDATA:return CN(e);case an.Script:case an.Style:case an.Tag:return yN(e,t);case an.Text:return vN(e,t)}}var EN=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),AN=new Set(["svg","math"]);function yN(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=lE.elementNames.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&EN.has(e.parent.name)&&(t=Cs(Cs({},t),{xmlMode:!1}))),!t.xmlMode&&AN.has(e.name)&&(t=Cs(Cs({},t),{xmlMode:"foreign"}));var n="<".concat(e.name),i=TN(e.attribs,t);return i&&(n+=" ".concat(i)),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&fE.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=ac(e.children,t)),(t.xmlMode||!fE.has(e.name))&&(n+="</".concat(e.name,">"))),n}function IN(e){return"<".concat(e.data,">")}function vN(e,t){var r,n=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&gN.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!=="utf8"?(0,sc.encodeXML)(n):(0,sc.escapeText)(n)),n}function CN(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}function DN(e){return"<!--".concat(e.data,"-->")}});var Nd=U(Ft=>{"use strict";var SN=Ft&&Ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.innerText=Ft.textContent=Ft.getText=Ft.getInnerHTML=Ft.getOuterHTML=void 0;var Pr=yt(),ON=SN(Sd()),xN=As();function dE(e,t){return(0,ON.default)(e,t)}Ft.getOuterHTML=dE;function NN(e,t){return(0,Pr.hasChildren)(e)?e.children.map(function(r){return dE(r,t)}).join(""):""}Ft.getInnerHTML=NN;function uc(e){return Array.isArray(e)?e.map(uc).join(""):(0,Pr.isTag)(e)?e.name==="br"?`
`:uc(e.children):(0,Pr.isCDATA)(e)?uc(e.children):(0,Pr.isText)(e)?e.data:""}Ft.getText=uc;function Od(e){return Array.isArray(e)?e.map(Od).join(""):(0,Pr.hasChildren)(e)&&!(0,Pr.isComment)(e)?Od(e.children):(0,Pr.isText)(e)?e.data:""}Ft.textContent=Od;function xd(e){return Array.isArray(e)?e.map(xd).join(""):(0,Pr.hasChildren)(e)&&(e.type===xN.ElementType.Tag||(0,Pr.isCDATA)(e))?xd(e.children):(0,Pr.isText)(e)?e.data:""}Ft.innerText=xd});var mE=U(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.prevElementSibling=ft.nextElementSibling=ft.getName=ft.hasAttrib=ft.getAttributeValue=ft.getSiblings=ft.getParent=ft.getChildren=void 0;var Rd=yt();function hE(e){return(0,Rd.hasChildren)(e)?e.children:[]}ft.getChildren=hE;function pE(e){return e.parent||null}ft.getParent=pE;function RN(e){var t,r,n=pE(e);if(n!=null)return hE(n);for(var i=[e],s=e.prev,a=e.next;s!=null;)i.unshift(s),t=s,s=t.prev;for(;a!=null;)i.push(a),r=a,a=r.next;return i}ft.getSiblings=RN;function wN(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}ft.getAttributeValue=wN;function PN(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}ft.hasAttrib=PN;function LN(e){return e.name}ft.getName=LN;function MN(e){for(var t,r=e.next;r!==null&&!(0,Rd.isTag)(r);)t=r,r=t.next;return r}ft.nextElementSibling=MN;function kN(e){for(var t,r=e.prev;r!==null&&!(0,Rd.isTag)(r);)t=r,r=t.prev;return r}ft.prevElementSibling=kN});var gE=U(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.prepend=Bt.prependChild=Bt.append=Bt.appendChild=Bt.replaceElement=Bt.removeElement=void 0;function Qa(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}Bt.removeElement=Qa;function FN(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var s=i.children;s[s.lastIndexOf(e)]=t,e.parent=null}}Bt.replaceElement=FN;function BN(e,t){if(Qa(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}Bt.appendChild=BN;function jN(e,t){Qa(t);var r=e.parent,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){var i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}Bt.append=jN;function HN(e,t){if(Qa(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){var r=e.children[1];r.prev=t,t.next=r}else t.next=null}Bt.prependChild=HN;function UN(e,t){Qa(t);var r=e.parent;if(r){var 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}Bt.prepend=UN});var wd=U(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.findAll=jt.existsOne=jt.findOne=jt.findOneChild=jt.find=jt.filter=void 0;var oc=yt();function GN(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),_E(e,Array.isArray(t)?t:[t],r,n)}jt.filter=GN;function _E(e,t,r,n){for(var i=[],s=[t],a=[0];;){if(a[0]>=s[0].length){if(a.length===1)return i;s.shift(),a.shift();continue}var u=s[0][a[0]++];if(e(u)&&(i.push(u),--n<=0))return i;r&&(0,oc.hasChildren)(u)&&u.children.length>0&&(a.unshift(0),s.unshift(u.children))}}jt.find=_E;function qN(e,t){return t.find(e)}jt.findOneChild=qN;function TE(e,t,r){r===void 0&&(r=!0);for(var n=null,i=0;i<t.length&&!n;i++){var s=t[i];if((0,oc.isTag)(s))e(s)?n=s:r&&s.children.length>0&&(n=TE(e,s.children,!0));else continue}return n}jt.findOne=TE;function bE(e,t){return t.some(function(r){return(0,oc.isTag)(r)&&(e(r)||bE(e,r.children))})}jt.existsOne=bE;function zN(e,t){for(var r=[],n=[t],i=[0];;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}var s=n[0][i[0]++];!(0,oc.isTag)(s)||(e(s)&&r.push(s),s.children.length>0&&(i.unshift(0),n.unshift(s.children)))}}jt.findAll=zN});var Pd=U(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.getElementsByTagType=ur.getElementsByTagName=ur.getElementById=ur.getElements=ur.testElement=void 0;var Ti=yt(),cc=wd(),lc={tag_name:function(e){return typeof e=="function"?function(t){return(0,Ti.isTag)(t)&&e(t.name)}:e==="*"?Ti.isTag:function(t){return(0,Ti.isTag)(t)&&t.name===e}},tag_type:function(e){return typeof e=="function"?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return typeof e=="function"?function(t){return(0,Ti.isText)(t)&&e(t.data)}:function(t){return(0,Ti.isText)(t)&&t.data===e}}};function EE(e,t){return typeof t=="function"?function(r){return(0,Ti.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,Ti.isTag)(r)&&r.attribs[e]===t}}function VN(e,t){return function(r){return e(r)||t(r)}}function AE(e){var t=Object.keys(e).map(function(r){var n=e[r];return Object.prototype.hasOwnProperty.call(lc,r)?lc[r](n):EE(r,n)});return t.length===0?null:t.reduce(VN)}function KN(e,t){var r=AE(e);return r?r(t):!0}ur.testElement=KN;function WN(e,t,r,n){n===void 0&&(n=1/0);var i=AE(e);return i?(0,cc.filter)(i,t,r,n):[]}ur.getElements=WN;function YN(e,t,r){return r===void 0&&(r=!0),Array.isArray(t)||(t=[t]),(0,cc.findOne)(EE("id",e),t,r)}ur.getElementById=YN;function QN(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,cc.filter)(lc.tag_name(e),t,r,n)}ur.getElementsByTagName=QN;function $N(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,cc.filter)(lc.tag_type(e),t,r,n)}ur.getElementsByTagType=$N});var vE=U(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.uniqueSort=br.compareDocumentPosition=br.DocumentPosition=br.removeSubsets=void 0;var yE=yt();function XN(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}br.removeSubsets=XN;var Lr;(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"})(Lr=br.DocumentPosition||(br.DocumentPosition={}));function IE(e,t){var r=[],n=[];if(e===t)return 0;for(var i=(0,yE.hasChildren)(e)?e:e.parent;i;)r.unshift(i),i=i.parent;for(i=(0,yE.hasChildren)(t)?t:t.parent;i;)n.unshift(i),i=i.parent;for(var s=Math.min(r.length,n.length),a=0;a<s&&r[a]===n[a];)a++;if(a===0)return Lr.DISCONNECTED;var u=r[a-1],o=u.children,c=r[a],f=n[a];return o.indexOf(c)>o.indexOf(f)?u===t?Lr.FOLLOWING|Lr.CONTAINED_BY:Lr.FOLLOWING:u===e?Lr.PRECEDING|Lr.CONTAINS:Lr.PRECEDING}br.compareDocumentPosition=IE;function ZN(e){return e=e.filter(function(t,r,n){return!n.includes(t,r+1)}),e.sort(function(t,r){var n=IE(t,r);return n&Lr.PRECEDING?-1:n&Lr.FOLLOWING?1:0}),e}br.uniqueSort=ZN});var DE=U(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.getFeed=void 0;var JN=Nd(),$a=Pd();function e3(e){var t=fc(s3,e);return t?t.name==="feed"?t3(t):r3(t):null}dc.getFeed=e3;function t3(e){var t,r=e.children,n={type:"atom",items:(0,$a.getElementsByTagName)("entry",r).map(function(a){var u,o=a.children,c={media:CE(o)};Ht(c,"id","id",o),Ht(c,"title","title",o);var f=(u=fc("link",o))===null||u===void 0?void 0:u.attribs.href;f&&(c.link=f);var h=Un("summary",o)||Un("content",o);h&&(c.description=h);var d=Un("updated",o);return d&&(c.pubDate=new Date(d)),c})};Ht(n,"id","id",r),Ht(n,"title","title",r);var i=(t=fc("link",r))===null||t===void 0?void 0:t.attribs.href;i&&(n.link=i),Ht(n,"description","subtitle",r);var s=Un("updated",r);return s&&(n.updated=new Date(s)),Ht(n,"author","email",r,!0),n}function r3(e){var t,r,n=(r=(t=fc("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:(0,$a.getElementsByTagName)("item",e.children).map(function(a){var u=a.children,o={media:CE(u)};Ht(o,"id","guid",u),Ht(o,"title","title",u),Ht(o,"link","link",u),Ht(o,"description","description",u);var c=Un("pubDate",u)||Un("dc:date",u);return c&&(o.pubDate=new Date(c)),o})};Ht(i,"title","title",n),Ht(i,"link","link",n),Ht(i,"description","description",n);var s=Un("lastBuildDate",n);return s&&(i.updated=new Date(s)),Ht(i,"author","managingEditor",n,!0),i}var n3=["url","type","lang"],i3=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function CE(e){return(0,$a.getElementsByTagName)("media:content",e).map(function(t){for(var r=t.attribs,n={medium:r.medium,isDefault:!!r.isDefault},i=0,s=n3;i<s.length;i++){var a=s[i];r[a]&&(n[a]=r[a])}for(var u=0,o=i3;u<o.length;u++){var a=o[u];r[a]&&(n[a]=parseInt(r[a],10))}return r.expression&&(n.expression=r.expression),n})}function fc(e,t){return(0,$a.getElementsByTagName)(e,t,!0,1)[0]}function Un(e,t,r){return r===void 0&&(r=!1),(0,JN.textContent)((0,$a.getElementsByTagName)(e,t,r,1)).trim()}function Ht(e,t,r,n,i){i===void 0&&(i=!1);var s=Un(r,n,i);s&&(e[t]=s)}function s3(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}});var Er=U(Ue=>{"use strict";var a3=Ue&&Ue.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),bi=Ue&&Ue.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&a3(t,e,r)};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.hasChildren=Ue.isDocument=Ue.isComment=Ue.isText=Ue.isCDATA=Ue.isTag=void 0;bi(Nd(),Ue);bi(mE(),Ue);bi(gE(),Ue);bi(wd(),Ue);bi(Pd(),Ue);bi(vE(),Ue);bi(DE(),Ue);var Ds=yt();Object.defineProperty(Ue,"isTag",{enumerable:!0,get:function(){return Ds.isTag}});Object.defineProperty(Ue,"isCDATA",{enumerable:!0,get:function(){return Ds.isCDATA}});Object.defineProperty(Ue,"isText",{enumerable:!0,get:function(){return Ds.isText}});Object.defineProperty(Ue,"isComment",{enumerable:!0,get:function(){return Ds.isComment}});Object.defineProperty(Ue,"isDocument",{enumerable:!0,get:function(){return Ds.isDocument}});Object.defineProperty(Ue,"hasChildren",{enumerable:!0,get:function(){return Ds.hasChildren}})});var Ai=U(Ve=>{"use strict";var Ei=Ve&&Ve.__assign||function(){return Ei=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ei.apply(this,arguments)},u3=Ve&&Ve.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),o3=Ve&&Ve.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c3=Ve&&Ve.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&u3(t,e,r);return o3(t,e),t};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.merge=Ve.contains=Ve.root=Ve.parseHTML=Ve.text=Ve.xml=Ve.html=void 0;var l3=Er(),Ld=c3(ld());function SE(e,t,r){return e?e(t??e._root.children,null,void 0,r).toString():""}function f3(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function d3(e,t){var r=f3(e)?(t=e,void 0):e,n=Ei(Ei(Ei({},Ld.default),this===null||this===void 0?void 0:this._options),(0,Ld.flatten)(t??{}));return SE(this,r,n)}Ve.html=d3;function h3(e){var t=Ei(Ei({},this._options),{xmlMode:!0});return SE(this,e,t)}Ve.xml=h3;function p3(e){for(var t=e||(this?this.root():[]),r="",n=0;n<t.length;n++)r+=(0,l3.textContent)(t[n]);return r}Ve.text=p3;function m3(e,t,r){if(r===void 0&&(r=typeof t=="boolean"?t:!1),!e||typeof e!="string")return null;typeof t=="boolean"&&(r=t);var n=this.load(e,Ld.default,!1);return r||n("script").remove(),n.root()[0].children.slice()}Ve.parseHTML=m3;function g3(){return this(this._root)}Ve.root=g3;function _3(e,t){if(t===e)return!1;for(var r=t;r&&r!==r.parent;)if(r=r.parent,r===e)return!0;return!1}Ve.contains=_3;function T3(e,t){if(!(!OE(e)||!OE(t))){for(var r=e.length,n=+t.length,i=0;i<n;i++)e[r++]=t[i];return e.length=r,e}}Ve.merge=T3;function OE(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(var t=0;t<e.length;t++)if(!(t in e))return!1;return!0}});var Ii=U(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isHtml=It.cloneDom=It.domEach=It.cssCase=It.camelCase=It.isCheerio=It.isTag=void 0;var Md=yt(),b3=yt();Object.defineProperty(It,"isTag",{enumerable:!0,get:function(){return b3.isTag}});function E3(e){return e.cheerio!=null}It.isCheerio=E3;function A3(e){return e.replace(/[_.-](\w|$)/g,function(t,r){return r.toUpperCase()})}It.camelCase=A3;function y3(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}It.cssCase=y3;function I3(e,t){for(var r=e.length,n=0;n<r;n++)t(e[n],n);return e}It.domEach=I3;function v3(e){var t="length"in e?Array.prototype.map.call(e,function(n){return(0,Md.cloneNode)(n,!0)}):[(0,Md.cloneNode)(e,!0)],r=new Md.Document(t);return t.forEach(function(n){n.parent=r}),t}It.cloneDom=v3;var yi;(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"})(yi||(yi={}));function C3(e){var t=e.indexOf("<");if(t<0||t>e.length-3)return!1;var r=e.charCodeAt(t+1);return(r>=yi.LowerA&&r<=yi.LowerZ||r>=yi.UpperA&&r<=yi.UpperZ||r===yi.Exclamation)&&e.includes(">",t+2)}It.isHtml=C3});var jE=U(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.toggleClass=et.removeClass=et.addClass=et.hasClass=et.removeAttr=et.val=et.data=et.prop=et.attr=void 0;var xE=Ai(),De=Ii(),NE=Er(),Ss=Object.prototype.hasOwnProperty,Xa=/\s+/,kd="data-",RE={null:null,true:!0,false:!1},Fd=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,D3=/^{[^]*}$|^\[[^]*]$/;function hc(e,t,r){var n;if(!(!e||!(0,De.isTag)(e))){if((n=e.attribs)!==null&&n!==void 0||(e.attribs={}),!t)return e.attribs;if(Ss.call(e.attribs,t))return!r&&Fd.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return(0,xE.text)(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function Os(e,t,r){r===null?ME(e,t):e.attribs[t]="".concat(r)}function S3(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(0,De.domEach)(this,function(r,n){(0,De.isTag)(r)&&Os(r,e,t.call(r,n,r.attribs[e]))})}return(0,De.domEach)(this,function(r){!(0,De.isTag)(r)||(typeof e=="object"?Object.keys(e).forEach(function(n){var i=e[n];Os(r,n,i)}):Os(r,e,t))})}return arguments.length>1?this:hc(this[0],e,this.options.xmlMode)}et.attr=S3;function wE(e,t,r){return t in e?e[t]:!r&&Fd.test(t)?hc(e,t,!1)!==void 0:hc(e,t,r)}function Bd(e,t,r,n){t in e?e[t]=r:Os(e,t,!n&&Fd.test(t)?r?"":null:"".concat(r))}function O3(e,t){var r=this,n;if(typeof e=="string"&&t===void 0){var i=this[0];if(!i||!(0,De.isTag)(i))return;switch(e){case"style":{var s=this.css(),a=Object.keys(s);return a.forEach(function(o,c){s[c]=o}),s.length=a.length,s}case"tagName":case"nodeName":return i.name.toUpperCase();case"href":case"src":{var u=(n=i.attribs)===null||n===void 0?void 0:n[e];return typeof URL!="undefined"&&(e==="href"&&(i.tagName==="a"||i.name==="link")||e==="src"&&(i.tagName==="img"||i.tagName==="iframe"||i.tagName==="audio"||i.tagName==="video"||i.tagName==="source"))&&u!==void 0&&this.options.baseURI?new URL(u,this.options.baseURI).href:u}case"innerText":return(0,NE.innerText)(i);case"textContent":return(0,NE.textContent)(i);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return wE(i,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return(0,De.domEach)(this,function(o,c){(0,De.isTag)(o)&&Bd(o,e,t.call(o,c,wE(o,e,r.options.xmlMode)),r.options.xmlMode)})}return(0,De.domEach)(this,function(o){!(0,De.isTag)(o)||(typeof e=="object"?Object.keys(e).forEach(function(c){var f=e[c];Bd(o,c,f,r.options.xmlMode)}):Bd(o,e,t,r.options.xmlMode))})}}et.prop=O3;function PE(e,t,r){var n,i=e;(n=i.data)!==null&&n!==void 0||(i.data={}),typeof t=="object"?Object.assign(i.data,t):typeof t=="string"&&r!==void 0&&(i.data[t]=r)}function LE(e,t){var r,n,i;t==null?(r=Object.keys(e.attribs).filter(function(o){return o.startsWith(kd)}),n=r.map(function(o){return(0,De.camelCase)(o.slice(kd.length))})):(r=[kd+(0,De.cssCase)(t)],n=[t]);for(var s=0;s<r.length;++s){var a=r[s],u=n[s];if(Ss.call(e.attribs,a)&&!Ss.call(e.data,u)){if(i=e.attribs[a],Ss.call(RE,i))i=RE[i];else if(i===String(Number(i)))i=Number(i);else if(D3.test(i))try{i=JSON.parse(i)}catch{}e.data[u]=i}}return t==null?e.data:i}function x3(e,t){var r,n=this[0];if(!(!n||!(0,De.isTag)(n))){var i=n;return(r=i.data)!==null&&r!==void 0||(i.data={}),e?typeof e=="object"||t!==void 0?((0,De.domEach)(this,function(s){(0,De.isTag)(s)&&(typeof e=="object"?PE(s,e):PE(s,e,t))}),this):Ss.call(i.data,e)?i.data[e]:LE(i,e):LE(i)}}et.data=x3;function N3(e){var t=arguments.length===0,r=this[0];if(!r||!(0,De.isTag)(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":{var n=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");for(var i=typeof e!="object"?[e]:e,s=0;s<i.length;s++)this.find('option[value="'.concat(i[s],'"]')).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(function(a){return(0,xE.text)(a.children)}):n.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}et.val=N3;function ME(e,t){!e.attribs||!Ss.call(e.attribs,t)||delete e.attribs[t]}function pc(e){return e?e.trim().split(Xa):[]}function R3(e){for(var t=pc(e),r=function(s){(0,De.domEach)(n,function(a){(0,De.isTag)(a)&&ME(a,t[s])})},n=this,i=0;i<t.length;i++)r(i);return this}et.removeAttr=R3;function w3(e){return this.toArray().some(function(t){var r=(0,De.isTag)(t)&&t.attribs.class,n=-1;if(r&&e.length)for(;(n=r.indexOf(e,n+1))>-1;){var i=n+e.length;if((n===0||Xa.test(r[n-1]))&&(i===r.length||Xa.test(r[i])))return!0}return!1})}et.hasClass=w3;function kE(e){if(typeof e=="function")return(0,De.domEach)(this,function(c,f){if((0,De.isTag)(c)){var h=c.attribs.class||"";kE.call([c],e.call(c,f,h))}});if(!e||typeof e!="string")return this;for(var t=e.split(Xa),r=this.length,n=0;n<r;n++){var i=this[n];if(!!(0,De.isTag)(i)){var s=hc(i,"class",!1);if(!s)Os(i,"class",t.join(" ").trim());else{for(var a=" ".concat(s," "),u=0;u<t.length;u++){var o="".concat(t[u]," ");a.includes(" ".concat(o))||(a+=o)}Os(i,"class",a.trim())}}}return this}et.addClass=kE;function FE(e){if(typeof e=="function")return(0,De.domEach)(this,function(i,s){(0,De.isTag)(i)&&FE.call([i],e.call(i,s,i.attribs.class||""))});var t=pc(e),r=t.length,n=arguments.length===0;return(0,De.domEach)(this,function(i){if(!!(0,De.isTag)(i))if(n)i.attribs.class="";else{for(var s=pc(i.attribs.class),a=!1,u=0;u<r;u++){var o=s.indexOf(t[u]);o>=0&&(s.splice(o,1),a=!0,u--)}a&&(i.attribs.class=s.join(" "))}})}et.removeClass=FE;function BE(e,t){if(typeof e=="function")return(0,De.domEach)(this,function(h,d){(0,De.isTag)(h)&&BE.call([h],e.call(h,d,h.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;for(var r=e.split(Xa),n=r.length,i=typeof t=="boolean"?t?1:-1:0,s=this.length,a=0;a<s;a++){var u=this[a];if(!!(0,De.isTag)(u)){for(var o=pc(u.attribs.class),c=0;c<n;c++){var f=o.indexOf(r[c]);i>=0&&f<0?o.push(r[c]):i<=0&&f>=0&&o.splice(f,1)}u.attribs.class=o.join(" ")}}return this}et.toggleClass=BE});var mc=U(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.AttributeAction=Mr.IgnoreCaseMode=Mr.SelectorType=void 0;var P3;(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"})(P3=Mr.SelectorType||(Mr.SelectorType={}));Mr.IgnoreCaseMode={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var L3;(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"})(L3=Mr.AttributeAction||(Mr.AttributeAction={}))});var zE=U(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.parse=xs.isTraversal=void 0;var Ae=mc(),HE=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,M3=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,k3=new Map([[126,Ae.AttributeAction.Element],[94,Ae.AttributeAction.Start],[36,Ae.AttributeAction.End],[42,Ae.AttributeAction.Any],[33,Ae.AttributeAction.Not],[124,Ae.AttributeAction.Hyphen]]),F3=new Set(["has","not","matches","is","where","host","host-context"]);function UE(e){switch(e.type){case Ae.SelectorType.Adjacent:case Ae.SelectorType.Child:case Ae.SelectorType.Descendant:case Ae.SelectorType.Parent:case Ae.SelectorType.Sibling:case Ae.SelectorType.ColumnCombinator:return!0;default:return!1}}xs.isTraversal=UE;var B3=new Set(["contains","icontains"]);function j3(e,t,r){var 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 Za(e){return e.replace(M3,j3)}function jd(e){return e===39||e===34}function GE(e){return e===32||e===9||e===10||e===12||e===13}function H3(e){var t=[],r=qE(t,"".concat(e),0);if(r<e.length)throw new Error("Unmatched selector: ".concat(e.slice(r)));return t}xs.parse=H3;function qE(e,t,r){var n=[];function i(K){var he=t.slice(r+K).match(HE);if(!he)throw new Error("Expected name, found ".concat(t.slice(r)));var ke=he[0];return r+=K+ke.length,Za(ke)}function s(K){for(r+=K;r<t.length&&GE(t.charCodeAt(r));)r++}function a(){r+=1;for(var K=r,he=1;he>0&&r<t.length;r++)t.charCodeAt(r)===40&&!u(r)?he++:t.charCodeAt(r)===41&&!u(r)&&he--;if(he)throw new Error("Parenthesis not matched");return Za(t.slice(K,r-1))}function u(K){for(var he=0;t.charCodeAt(--K)===92;)he++;return(he&1)==1}function o(){if(n.length>0&&UE(n[n.length-1]))throw new Error("Did not expect successive traversals.")}function c(K){if(n.length>0&&n[n.length-1].type===Ae.SelectorType.Descendant){n[n.length-1].type=K;return}o(),n.push({type:K})}function f(K,he){n.push({type:Ae.SelectorType.Attribute,name:K,action:he,value:i(1),namespace:null,ignoreCase:"quirks"})}function h(){if(n.length&&n[n.length-1].type===Ae.SelectorType.Descendant&&n.pop(),n.length===0)throw new Error("Empty sub-selector");e.push(n)}if(s(0),t.length===r)return r;e:for(;r<t.length;){var d=t.charCodeAt(r);switch(d){case 32:case 9:case 10:case 12:case 13:{(n.length===0||n[0].type!==Ae.SelectorType.Descendant)&&(o(),n.push({type:Ae.SelectorType.Descendant})),s(1);break}case 62:{c(Ae.SelectorType.Child),s(1);break}case 60:{c(Ae.SelectorType.Parent),s(1);break}case 126:{c(Ae.SelectorType.Sibling),s(1);break}case 43:{c(Ae.SelectorType.Adjacent),s(1);break}case 46:{f("class",Ae.AttributeAction.Element);break}case 35:{f("id",Ae.AttributeAction.Equals);break}case 91:{s(1);var _=void 0,D=null;t.charCodeAt(r)===124?_=i(1):t.startsWith("*|",r)?(D="*",_=i(2)):(_=i(0),t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==61&&(D=_,_=i(1))),s(0);var E=Ae.AttributeAction.Exists,g=k3.get(t.charCodeAt(r));if(g){if(E=g,t.charCodeAt(r+1)!==61)throw new Error("Expected `=`");s(2)}else t.charCodeAt(r)===61&&(E=Ae.AttributeAction.Equals,s(1));var p="",A=null;if(E!=="exists"){if(jd(t.charCodeAt(r))){for(var I=t.charCodeAt(r),b=r+1;b<t.length&&(t.charCodeAt(b)!==I||u(b));)b+=1;if(t.charCodeAt(b)!==I)throw new Error("Attribute value didn't end");p=Za(t.slice(r+1,b)),r=b+1}else{for(var y=r;r<t.length&&(!GE(t.charCodeAt(r))&&t.charCodeAt(r)!==93||u(r));)r+=1;p=Za(t.slice(y,r))}s(0);var C=t.charCodeAt(r)|32;C===115?(A=!1,s(1)):C===105&&(A=!0,s(1))}if(t.charCodeAt(r)!==93)throw new Error("Attribute selector didn't terminate");r+=1;var S={type:Ae.SelectorType.Attribute,name:_,action:E,value:p,namespace:D,ignoreCase:A};n.push(S);break}case 58:{if(t.charCodeAt(r+1)===58){n.push({type:Ae.SelectorType.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(r)===40?a():null});continue}var N=i(1).toLowerCase(),P=null;if(t.charCodeAt(r)===40)if(F3.has(N)){if(jd(t.charCodeAt(r+1)))throw new Error("Pseudo-selector ".concat(N," cannot be quoted"));if(P=[],r=qE(P,t,r+1),t.charCodeAt(r)!==41)throw new Error("Missing closing parenthesis in :".concat(N," (").concat(t,")"));r+=1}else{if(P=a(),B3.has(N)){var q=P.charCodeAt(0);q===P.charCodeAt(P.length-1)&&jd(q)&&(P=P.slice(1,-1))}P=Za(P)}n.push({type:Ae.SelectorType.Pseudo,name:N,data:P});break}case 44:{h(),n=[],s(1);break}default:{if(t.startsWith("/*",r)){var $=t.indexOf("*/",r+2);if($<0)throw new Error("Comment was not terminated");r=$+2,n.length===0&&s(0);break}var D=null,me=void 0;if(d===42)r+=1,me="*";else if(d===124){if(me="",t.charCodeAt(r+1)===124){c(Ae.SelectorType.ColumnCombinator),s(2);break}}else if(HE.test(t.slice(r)))me=i(0);else break e;t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==124&&(D=me,t.charCodeAt(r+1)===42?(me="*",r+=2):me=i(1)),n.push(me==="*"?{type:Ae.SelectorType.Universal,namespace:D}:{type:Ae.SelectorType.Tag,name:me,namespace:D})}}}return h(),r}});var XE=U(Rs=>{"use strict";var gc=Rs&&Rs.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.stringify=void 0;var We=mc(),VE=["\\",'"'],KE=gc(gc([],VE,!0),["(",")"],!1),U3=new Set(VE.map(function(e){return e.charCodeAt(0)})),WE=new Set(KE.map(function(e){return e.charCodeAt(0)})),Ns=new Set(gc(gc([],KE,!0),["~","^","$","*","+","!","|",":","[","]"," ","."],!1).map(function(e){return e.charCodeAt(0)}));function YE(e){return e.map(function(t){return t.map(G3).join("")}).join(", ")}Rs.stringify=YE;function G3(e,t,r){switch(e.type){case We.SelectorType.Child:return t===0?"> ":" > ";case We.SelectorType.Parent:return t===0?"< ":" < ";case We.SelectorType.Sibling:return t===0?"~ ":" ~ ";case We.SelectorType.Adjacent:return t===0?"+ ":" + ";case We.SelectorType.Descendant:return" ";case We.SelectorType.ColumnCombinator:return t===0?"|| ":" || ";case We.SelectorType.Universal:return e.namespace==="*"&&t+1<r.length&&"name"in r[t+1]?"":"".concat($E(e.namespace),"*");case We.SelectorType.Tag:return QE(e);case We.SelectorType.PseudoElement:return"::".concat(un(e.name,Ns)).concat(e.data===null?"":"(".concat(un(e.data,WE),")"));case We.SelectorType.Pseudo:return":".concat(un(e.name,Ns)).concat(e.data===null?"":"(".concat(typeof e.data=="string"?un(e.data,WE):YE(e.data),")"));case We.SelectorType.Attribute:{if(e.name==="id"&&e.action===We.AttributeAction.Equals&&e.ignoreCase==="quirks"&&!e.namespace)return"#".concat(un(e.value,Ns));if(e.name==="class"&&e.action===We.AttributeAction.Element&&e.ignoreCase==="quirks"&&!e.namespace)return".".concat(un(e.value,Ns));var n=QE(e);return e.action===We.AttributeAction.Exists?"[".concat(n,"]"):"[".concat(n).concat(q3(e.action),'="').concat(un(e.value,U3),'"').concat(e.ignoreCase===null?"":e.ignoreCase?" i":" s","]")}}}function q3(e){switch(e){case We.AttributeAction.Equals:return"";case We.AttributeAction.Element:return"~";case We.AttributeAction.Start:return"^";case We.AttributeAction.End:return"$";case We.AttributeAction.Any:return"*";case We.AttributeAction.Not:return"!";case We.AttributeAction.Hyphen:return"|";case We.AttributeAction.Exists:throw new Error("Shouldn't be here")}}function QE(e){return"".concat($E(e.namespace)).concat(un(e.name,Ns))}function $E(e){return e!==null?"".concat(e==="*"?"*":un(e,Ns),"|"):""}function un(e,t){for(var r=0,n="",i=0;i<e.length;i++)t.has(e.charCodeAt(i))&&(n+="".concat(e.slice(r,i),"\\").concat(e.charAt(i)),r=i+1);return n.length>0?n+e.slice(r):e}});var ws=U(Zt=>{"use strict";var z3=Zt&&Zt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),V3=Zt&&Zt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&z3(t,e,r)};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.stringify=Zt.parse=Zt.isTraversal=void 0;V3(mc(),Zt);var ZE=zE();Object.defineProperty(Zt,"isTraversal",{enumerable:!0,get:function(){return ZE.isTraversal}});Object.defineProperty(Zt,"parse",{enumerable:!0,get:function(){return ZE.parse}});var K3=XE();Object.defineProperty(Zt,"stringify",{enumerable:!0,get:function(){return K3.stringify}})});var Gn=U((pH,JE)=>{JE.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var Hd=U(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.isTraversal=void 0;var Jt=ws(),e1=new Map([[Jt.SelectorType.Universal,50],[Jt.SelectorType.Tag,30],[Jt.SelectorType.Attribute,1],[Jt.SelectorType.Pseudo,0]]);function W3(e){return!e1.has(e.type)}Ja.isTraversal=W3;var Y3=new Map([[Jt.AttributeAction.Exists,10],[Jt.AttributeAction.Equals,8],[Jt.AttributeAction.Not,7],[Jt.AttributeAction.Start,6],[Jt.AttributeAction.End,6],[Jt.AttributeAction.Any,5]]);function Q3(e){for(var t=e.map(t1),r=1;r<e.length;r++){var n=t[r];if(!(n<0))for(var i=r-1;i>=0&&n<t[i];i--){var s=e[i+1];e[i+1]=e[i],e[i]=s,t[i+1]=t[i],t[i]=n}}}Ja.default=Q3;function t1(e){var t,r,n=(t=e1.get(e.type))!==null&&t!==void 0?t:-1;return e.type===Jt.SelectorType.Attribute?(n=(r=Y3.get(e.action))!==null&&r!==void 0?r:4,e.action===Jt.AttributeAction.Equals&&e.name==="id"&&(n=9),e.ignoreCase&&(n>>=1)):e.type===Jt.SelectorType.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?n=0:Array.isArray(e.data)?(n=Math.min.apply(Math,e.data.map(function(i){return Math.min.apply(Math,i.map(t1))})),n<0&&(n=0)):n=2:n=3),n}});var n1=U(Ps=>{"use strict";var $3=Ps&&Ps.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.attributeRules=void 0;var _c=$3(Gn()),X3=/[-[\]{}()*+?.,\\^$|#\s]/g;function r1(e){return e.replace(X3,"\\$&")}var Z3=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"]);function vi(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&Z3.has(e.name)}Ps.attributeRules={equals:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;return vi(t,r)?(s=s.toLowerCase(),function(a){var u=n.getAttributeValue(a,i);return u!=null&&u.length===s.length&&u.toLowerCase()===s&&e(a)}):function(a){return n.getAttributeValue(a,i)===s&&e(a)}},hyphen:function(e,t,r){var n=r.adapter,i=t.name,s=t.value,a=s.length;return vi(t,r)?(s=s.toLowerCase(),function(o){var c=n.getAttributeValue(o,i);return c!=null&&(c.length===a||c.charAt(a)==="-")&&c.substr(0,a).toLowerCase()===s&&e(o)}):function(o){var c=n.getAttributeValue(o,i);return c!=null&&(c.length===a||c.charAt(a)==="-")&&c.substr(0,a)===s&&e(o)}},element:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;if(/\s/.test(s))return _c.default.falseFunc;var a=new RegExp("(?:^|\\s)".concat(r1(s),"(?:$|\\s)"),vi(t,r)?"i":"");return function(o){var c=n.getAttributeValue(o,i);return c!=null&&c.length>=s.length&&a.test(c)&&e(o)}},exists:function(e,t,r){var n=t.name,i=r.adapter;return function(s){return i.hasAttrib(s,n)&&e(s)}},start:function(e,t,r){var n=r.adapter,i=t.name,s=t.value,a=s.length;return a===0?_c.default.falseFunc:vi(t,r)?(s=s.toLowerCase(),function(u){var o=n.getAttributeValue(u,i);return o!=null&&o.length>=a&&o.substr(0,a).toLowerCase()===s&&e(u)}):function(u){var o;return!!((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.startsWith(s))&&e(u)}},end:function(e,t,r){var n=r.adapter,i=t.name,s=t.value,a=-s.length;return a===0?_c.default.falseFunc:vi(t,r)?(s=s.toLowerCase(),function(u){var o;return((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.substr(a).toLowerCase())===s&&e(u)}):function(u){var o;return!!((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.endsWith(s))&&e(u)}},any:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;if(s==="")return _c.default.falseFunc;if(vi(t,r)){var a=new RegExp(r1(s),"i");return function(o){var c=n.getAttributeValue(o,i);return c!=null&&c.length>=s.length&&a.test(c)&&e(o)}}return function(u){var o;return!!((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.includes(s))&&e(u)}},not:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;return s===""?function(a){return!!n.getAttributeValue(a,i)&&e(a)}:vi(t,r)?(s=s.toLowerCase(),function(a){var u=n.getAttributeValue(a,i);return(u==null||u.length!==s.length||u.toLowerCase()!==s)&&e(a)}):function(a){return n.getAttributeValue(a,i)!==s&&e(a)}}}});var s1=U(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.parse=void 0;var J3=new Set([9,10,12,13,32]),i1="0".charCodeAt(0),eR="9".charCodeAt(0);function tR(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];var t=0,r=0,n=s(),i=a();if(t<e.length&&e.charAt(t)==="n"&&(t++,r=n*(i??1),u(),t<e.length?(n=s(),u(),i=a()):n=i=0),i===null||t<e.length)throw new Error("n-th rule couldn't be parsed ('".concat(e,"')"));return[r,n*i];function s(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function a(){for(var o=t,c=0;t<e.length&&e.charCodeAt(t)>=i1&&e.charCodeAt(t)<=eR;)c=c*10+(e.charCodeAt(t)-i1),t++;return t===o?null:c}function u(){for(;t<e.length&&J3.has(e.charCodeAt(t));)t++}}Tc.parse=tR});var u1=U(qn=>{"use strict";var rR=qn&&qn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qn,"__esModule",{value:!0});qn.generate=qn.compile=void 0;var a1=rR(Gn());function nR(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return a1.default.falseFunc;if(t===-1)return function(s){return s<=r};if(t===0)return function(s){return s===r};if(t===1)return r<0?a1.default.trueFunc:function(s){return s>=r};var n=Math.abs(t),i=(r%n+n)%n;return t>1?function(s){return s>=r&&s%n===i}:function(s){return s<=r&&s%n===i}}qn.compile=nR;function iR(e){var t=e[0],r=e[1]-1,n=0;if(t<0){var i=-t,s=(r%i+i)%i;return function(){var a=s+i*n++;return a>r?null:a}}return t===0?r<0?function(){return null}:function(){return n++==0?r:null}:(r<0&&(r+=t*Math.ceil(-r/t)),function(){return t*n+++r})}qn.generate=iR});var o1=U(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.sequence=Ar.generate=Ar.compile=Ar.parse=void 0;var Ud=s1();Object.defineProperty(Ar,"parse",{enumerable:!0,get:function(){return Ud.parse}});var bc=u1();Object.defineProperty(Ar,"compile",{enumerable:!0,get:function(){return bc.compile}});Object.defineProperty(Ar,"generate",{enumerable:!0,get:function(){return bc.generate}});function sR(e){return(0,bc.compile)((0,Ud.parse)(e))}Ar.default=sR;function aR(e){return(0,bc.generate)((0,Ud.parse)(e))}Ar.sequence=aR});var l1=U(Ci=>{"use strict";var c1=Ci&&Ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.filters=void 0;var Ec=c1(o1()),er=c1(Gn());function Ac(e,t){return function(r){var n=t.getParent(r);return n!=null&&t.isTag(n)&&e(r)}}Ci.filters={contains:function(e,t,r){var n=r.adapter;return function(s){return e(s)&&n.getText(s).includes(t)}},icontains:function(e,t,r){var n=r.adapter,i=t.toLowerCase();return function(a){return e(a)&&n.getText(a).toLowerCase().includes(i)}},"nth-child":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,Ec.default)(t);return s===er.default.falseFunc?er.default.falseFunc:s===er.default.trueFunc?Ac(e,n):function(u){for(var o=n.getSiblings(u),c=0,f=0;f<o.length&&!i(u,o[f]);f++)n.isTag(o[f])&&c++;return s(c)&&e(u)}},"nth-last-child":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,Ec.default)(t);return s===er.default.falseFunc?er.default.falseFunc:s===er.default.trueFunc?Ac(e,n):function(u){for(var o=n.getSiblings(u),c=0,f=o.length-1;f>=0&&!i(u,o[f]);f--)n.isTag(o[f])&&c++;return s(c)&&e(u)}},"nth-of-type":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,Ec.default)(t);return s===er.default.falseFunc?er.default.falseFunc:s===er.default.trueFunc?Ac(e,n):function(u){for(var o=n.getSiblings(u),c=0,f=0;f<o.length;f++){var h=o[f];if(i(u,h))break;n.isTag(h)&&n.getName(h)===n.getName(u)&&c++}return s(c)&&e(u)}},"nth-last-of-type":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,Ec.default)(t);return s===er.default.falseFunc?er.default.falseFunc:s===er.default.trueFunc?Ac(e,n):function(u){for(var o=n.getSiblings(u),c=0,f=o.length-1;f>=0;f--){var h=o[f];if(i(u,h))break;n.isTag(h)&&n.getName(h)===n.getName(u)&&c++}return s(c)&&e(u)}},root:function(e,t,r){var n=r.adapter;return function(i){var s=n.getParent(i);return(s==null||!n.isTag(s))&&e(i)}},scope:function(e,t,r,n){var i=r.equals;return!n||n.length===0?Ci.filters.root(e,t,r):n.length===1?function(s){return i(n[0],s)&&e(s)}:function(s){return n.includes(s)&&e(s)}},hover:Gd("isHovered"),visited:Gd("isVisited"),active:Gd("isActive")};function Gd(e){return function(r,n,i){var s=i.adapter,a=s[e];return typeof a!="function"?er.default.falseFunc:function(o){return a(o)&&r(o)}}}});var f1=U(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.verifyPseudoArgs=Ls.pseudos=void 0;Ls.pseudos={empty:function(e,t){var r=t.adapter;return!r.getChildren(e).some(function(n){return r.isTag(n)||r.getText(n)!==""})},"first-child":function(e,t){var r=t.adapter,n=t.equals;if(r.prevElementSibling)return r.prevElementSibling(e)==null;var i=r.getSiblings(e).find(function(s){return r.isTag(s)});return i!=null&&n(e,i)},"last-child":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),s=i.length-1;s>=0;s--){if(n(e,i[s]))return!0;if(r.isTag(i[s]))break}return!1},"first-of-type":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),s=r.getName(e),a=0;a<i.length;a++){var u=i[a];if(n(e,u))return!0;if(r.isTag(u)&&r.getName(u)===s)break}return!1},"last-of-type":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),s=r.getName(e),a=i.length-1;a>=0;a--){var u=i[a];if(n(e,u))return!0;if(r.isTag(u)&&r.getName(u)===s)break}return!1},"only-of-type":function(e,t){var r=t.adapter,n=t.equals,i=r.getName(e);return r.getSiblings(e).every(function(s){return n(e,s)||!r.isTag(s)||r.getName(s)!==i})},"only-child":function(e,t){var r=t.adapter,n=t.equals;return r.getSiblings(e).every(function(i){return n(e,i)||!r.isTag(i)})}};function uR(e,t,r,n){if(r===null){if(e.length>n)throw new Error("Pseudo-class :".concat(t," requires an argument"))}else if(e.length===n)throw new Error("Pseudo-class :".concat(t," doesn't have any arguments"))}Ls.verifyPseudoArgs=uR});var d1=U(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.aliases=void 0;yc.aliases={"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])"}});var Ic=U(Nt=>{"use strict";var h1=Nt&&Nt.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},oR=Nt&&Nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.subselects=Nt.getNextSiblings=Nt.ensureIsTag=Nt.PLACEHOLDER_ELEMENT=void 0;var yr=oR(Gn()),cR=Hd();Nt.PLACEHOLDER_ELEMENT={};function p1(e,t){return e===yr.default.falseFunc?yr.default.falseFunc:function(r){return t.isTag(r)&&e(r)}}Nt.ensureIsTag=p1;function m1(e,t){var r=t.getSiblings(e);if(r.length<=1)return[];var n=r.indexOf(e);return n<0||n===r.length-1?[]:r.slice(n+1).filter(t.isTag)}Nt.getNextSiblings=m1;function qd(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 zd=function(e,t,r,n,i){var s=i(t,qd(r),n);return s===yr.default.trueFunc?e:s===yr.default.falseFunc?yr.default.falseFunc:function(a){return s(a)&&e(a)}};Nt.subselects={is:zd,matches:zd,where:zd,not:function(e,t,r,n,i){var s=i(t,qd(r),n);return s===yr.default.falseFunc?e:s===yr.default.trueFunc?yr.default.falseFunc:function(a){return!s(a)&&e(a)}},has:function(e,t,r,n,i){var s=r.adapter,a=qd(r);a.relativeSelector=!0;var u=t.some(function(d){return d.some(cR.isTraversal)})?[Nt.PLACEHOLDER_ELEMENT]:void 0,o=i(t,a,u);if(o===yr.default.falseFunc)return yr.default.falseFunc;var c=p1(o,s);if(u&&o!==yr.default.trueFunc){var f=o.shouldTestNextSiblings,h=f===void 0?!1:f;return function(d){if(!e(d))return!1;u[0]=d;var _=s.getChildren(d),D=h?h1(h1([],_,!0),m1(d,s),!0):_;return s.existsOne(c,D)}}return function(d){return e(d)&&s.existsOne(c,s.getChildren(d))}}}});var Wd=U(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.compilePseudoSelector=kr.aliases=kr.pseudos=kr.filters=void 0;var lR=ws(),Vd=l1();Object.defineProperty(kr,"filters",{enumerable:!0,get:function(){return Vd.filters}});var eu=f1();Object.defineProperty(kr,"pseudos",{enumerable:!0,get:function(){return eu.pseudos}});var g1=d1();Object.defineProperty(kr,"aliases",{enumerable:!0,get:function(){return g1.aliases}});var Kd=Ic();function fR(e,t,r,n,i){var s,a=t.name,u=t.data;if(Array.isArray(u)){if(!(a in Kd.subselects))throw new Error("Unknown pseudo-class :".concat(a,"(").concat(u,")"));return Kd.subselects[a](e,u,r,n,i)}var o=(s=r.pseudos)===null||s===void 0?void 0:s[a],c=typeof o=="string"?o:g1.aliases[a];if(typeof c=="string"){if(u!=null)throw new Error("Pseudo ".concat(a," doesn't have any arguments"));var f=(0,lR.parse)(c);return Kd.subselects.is(e,f,r,n,i)}if(typeof o=="function")return(0,eu.verifyPseudoArgs)(o,a,u,1),function(d){return o(d,u)&&e(d)};if(a in Vd.filters)return Vd.filters[a](e,u,r,n);if(a in eu.pseudos){var h=eu.pseudos[a];return(0,eu.verifyPseudoArgs)(h,a,u,2),function(d){return h(d,r,u)&&e(d)}}throw new Error("Unknown pseudo-class :".concat(a))}kr.compilePseudoSelector=fR});var _1=U(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.compileGeneralSelector=void 0;var dR=n1(),hR=Wd(),Ir=ws();function Yd(e,t){var r=t.getParent(e);return r&&t.isTag(r)?r:null}function pR(e,t,r,n,i){var s=r.adapter,a=r.equals;switch(t.type){case Ir.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ir.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ir.SelectorType.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()),dR.attributeRules[t.action](e,t,r)}case Ir.SelectorType.Pseudo:return(0,hR.compilePseudoSelector)(e,t,r,n,i);case Ir.SelectorType.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");var u=t.name;return(!r.xmlMode||r.lowerCaseTags)&&(u=u.toLowerCase()),function(f){return s.getName(f)===u&&e(f)}}case Ir.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet=="undefined")return function(f){for(var h=f;h=Yd(h,s);)if(e(h))return!0;return!1};var o=new WeakSet;return function(f){for(var h=f;h=Yd(h,s);)if(!o.has(h)){if(s.isTag(h)&&e(h))return!0;o.add(h)}return!1}}case"_flexibleDescendant":return function(f){var h=f;do if(e(h))return!0;while(h=Yd(h,s));return!1};case Ir.SelectorType.Parent:return function(f){return s.getChildren(f).some(function(h){return s.isTag(h)&&e(h)})};case Ir.SelectorType.Child:return function(f){var h=s.getParent(f);return h!=null&&s.isTag(h)&&e(h)};case Ir.SelectorType.Sibling:return function(f){for(var h=s.getSiblings(f),d=0;d<h.length;d++){var _=h[d];if(a(f,_))break;if(s.isTag(_)&&e(_))return!0}return!1};case Ir.SelectorType.Adjacent:return s.prevElementSibling?function(f){var h=s.prevElementSibling(f);return h!=null&&e(h)}:function(f){for(var h=s.getSiblings(f),d,_=0;_<h.length;_++){var D=h[_];if(a(f,D))break;s.isTag(D)&&(d=D)}return!!d&&e(d)};case Ir.SelectorType.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}vc.compileGeneralSelector=pR});var A1=U(vt=>{"use strict";var mR=vt&&vt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),gR=vt&&vt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),_R=vt&&vt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&mR(t,e,r);return gR(t,e),t},TR=vt&&vt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vt,"__esModule",{value:!0});vt.compileToken=vt.compileUnsafe=vt.compile=void 0;var on=ws(),zn=TR(Gn()),Qd=_R(Hd()),bR=_1(),T1=Ic();function ER(e,t,r){var n=b1(e,t,r);return(0,T1.ensureIsTag)(n,t.adapter)}vt.compile=ER;function b1(e,t,r){var n=typeof e=="string"?(0,on.parse)(e):e;return $d(n,t,r)}vt.compileUnsafe=b1;function E1(e){return e.type===on.SelectorType.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(function(t){return t.some(E1)}))}var AR={type:on.SelectorType.Descendant},yR={type:"_flexibleDescendant"},IR={type:on.SelectorType.Pseudo,name:"scope",data:null};function vR(e,t,r){for(var n=t.adapter,i=!!(r==null?void 0:r.every(function(o){var c=n.isTag(o)&&n.getParent(o);return o===T1.PLACEHOLDER_ELEMENT||c&&n.isTag(c)})),s=0,a=e;s<a.length;s++){var u=a[s];if(!(u.length>0&&(0,Qd.isTraversal)(u[0])&&u[0].type!==on.SelectorType.Descendant))if(i&&!u.some(E1))u.unshift(AR);else continue;u.unshift(IR)}}function $d(e,t,r){var n;e.forEach(Qd.default),r=(n=t.context)!==null&&n!==void 0?n:r;var i=Array.isArray(r),s=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)vR(e,t,s);else if(e.some(function(o){return o.length>0&&(0,Qd.isTraversal)(o[0])}))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");var a=!1,u=e.map(function(o){if(o.length>=2){var c=o[0],f=o[1];c.type!==on.SelectorType.Pseudo||c.name!=="scope"||(i&&f.type===on.SelectorType.Descendant?o[1]=yR:(f.type===on.SelectorType.Adjacent||f.type===on.SelectorType.Sibling)&&(a=!0))}return CR(o,t,s)}).reduce(DR,zn.default.falseFunc);return u.shouldTestNextSiblings=a,u}vt.compileToken=$d;function CR(e,t,r){var n;return e.reduce(function(i,s){return i===zn.default.falseFunc?zn.default.falseFunc:(0,bR.compileGeneralSelector)(i,s,t,r,$d)},(n=t.rootFunc)!==null&&n!==void 0?n:zn.default.trueFunc)}function DR(e,t){return t===zn.default.falseFunc||e===zn.default.trueFunc?e:e===zn.default.falseFunc||t===zn.default.trueFunc?t:function(n){return e(n)||t(n)}}});var eh=U(Te=>{"use strict";var SR=Te&&Te.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),OR=Te&&Te.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),xR=Te&&Te.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&SR(t,e,r);return OR(t,e),t},NR=Te&&Te.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Te,"__esModule",{value:!0});Te.aliases=Te.pseudos=Te.filters=Te.is=Te.selectOne=Te.selectAll=Te.prepareContext=Te._compileToken=Te._compileUnsafe=Te.compile=void 0;var y1=xR(Er()),I1=NR(Gn()),tu=A1(),RR=Ic(),v1=function(e,t){return e===t},wR={adapter:y1,equals:v1};function Xd(e){var t,r,n,i,s=e??wR;return(t=s.adapter)!==null&&t!==void 0||(s.adapter=y1),(r=s.equals)!==null&&r!==void 0||(s.equals=(i=(n=s.adapter)===null||n===void 0?void 0:n.equals)!==null&&i!==void 0?i:v1),s}function Zd(e){return function(r,n,i){var s=Xd(n);return e(r,s,i)}}Te.compile=Zd(tu.compile);Te._compileUnsafe=Zd(tu.compileUnsafe);Te._compileToken=Zd(tu.compileToken);function C1(e){return function(r,n,i){var s=Xd(i);typeof r!="function"&&(r=(0,tu.compileUnsafe)(r,s,n));var a=D1(n,s.adapter,r.shouldTestNextSiblings);return e(r,a,s)}}function D1(e,t,r){return r===void 0&&(r=!1),r&&(e=PR(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}Te.prepareContext=D1;function PR(e,t){for(var r=Array.isArray(e)?e.slice(0):[e],n=r.length,i=0;i<n;i++){var s=(0,RR.getNextSiblings)(r[i],t);r.push.apply(r,s)}return r}Te.selectAll=C1(function(e,t,r){return e===I1.default.falseFunc||!t||t.length===0?[]:r.adapter.findAll(e,t)});Te.selectOne=C1(function(e,t,r){return e===I1.default.falseFunc||!t||t.length===0?null:r.adapter.findOne(e,t)});function LR(e,t,r){var n=Xd(r);return(typeof t=="function"?t:(0,tu.compile)(t,n))(e)}Te.is=LR;Te.default=Te.selectAll;var Jd=Wd();Object.defineProperty(Te,"filters",{enumerable:!0,get:function(){return Jd.filters}});Object.defineProperty(Te,"pseudos",{enumerable:!0,get:function(){return Jd.pseudos}});Object.defineProperty(Te,"aliases",{enumerable:!0,get:function(){return Jd.aliases}})});var th=U(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.getLimit=cn.isFilter=cn.filterNames=void 0;cn.filterNames=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function S1(e){return e.type!=="pseudo"?!1:cn.filterNames.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(function(t){return t.some(S1)}):!1}cn.isFilter=S1;function MR(e,t,r){var 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}}cn.getLimit=MR});var O1=U(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.groupSelectors=Ms.getDocumentRoot=void 0;var kR=th();function FR(e){for(;e.parent;)e=e.parent;return e}Ms.getDocumentRoot=FR;function BR(e){for(var t=[],r=[],n=0,i=e;n<i.length;n++){var s=i[n];s.some(kR.isFilter)?t.push(s):r.push(s)}return[r,t]}Ms.groupSelectors=BR});var M1=U(Pe=>{"use strict";var Vn=Pe&&Pe.__assign||function(){return Vn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Vn.apply(this,arguments)},jR=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),HR=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),x1=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&jR(t,e,r);return HR(t,e),t},N1=Pe&&Pe.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.select=Pe.filter=Pe.some=Pe.is=Pe.aliases=Pe.pseudos=Pe.filters=void 0;var vr=ws(),ru=eh(),Fr=x1(Er()),rh=x1(Gn()),Cc=O1(),nh=th(),ih=eh();Object.defineProperty(Pe,"filters",{enumerable:!0,get:function(){return ih.filters}});Object.defineProperty(Pe,"pseudos",{enumerable:!0,get:function(){return ih.pseudos}});Object.defineProperty(Pe,"aliases",{enumerable:!0,get:function(){return ih.aliases}});var UR={type:vr.SelectorType.Universal,namespace:null},GR={type:vr.SelectorType.Pseudo,name:"scope",data:null};function qR(e,t,r){return r===void 0&&(r={}),R1([e],t,r)}Pe.is=qR;function R1(e,t,r){if(r===void 0&&(r={}),typeof t=="function")return e.some(t);var n=(0,Cc.groupSelectors)((0,vr.parse)(t)),i=n[0],s=n[1];return i.length>0&&e.some((0,ru._compileToken)(i,r))||s.some(function(a){return P1(a,e,r).length>0})}Pe.some=R1;function zR(e,t,r,n){var 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(function(a,u){return u%2==0});case"odd":return t.filter(function(a,u){return u%2==1});case"not":{var s=new Set(w1(r,t,n));return t.filter(function(a){return!s.has(a)})}}}function VR(e,t,r){return r===void 0&&(r={}),w1((0,vr.parse)(e),t,r)}Pe.filter=VR;function w1(e,t,r){if(t.length===0)return[];var n=(0,Cc.groupSelectors)(e),i=n[0],s=n[1],a;if(i.length){var u=ah(t,i,r);if(s.length===0)return u;u.length&&(a=new Set(u))}for(var o=0;o<s.length&&(a==null?void 0:a.size)!==t.length;o++){var c=s[o],f=a?t.filter(function(d){return Fr.isTag(d)&&!a.has(d)}):t;if(f.length===0)break;var u=P1(c,t,r);if(u.length)if(a)u.forEach(function(d){return a.add(d)});else{if(o===s.length-1)return u;a=new Set(u)}}return typeof a!="undefined"?a.size===t.length?t:t.filter(function(h){return a.has(h)}):[]}function P1(e,t,r){var n;if(e.some(vr.isTraversal)){var i=(n=r.root)!==null&&n!==void 0?n:(0,Cc.getDocumentRoot)(t[0]),s=Vn(Vn({},r),{context:t,relativeSelector:!1});return e.push(GR),Dc(i,e,s,!0,t.length)}return Dc(t,e,r,!1,t.length)}function KR(e,t,r,n){if(r===void 0&&(r={}),n===void 0&&(n=1/0),typeof e=="function")return L1(t,e);var i=(0,Cc.groupSelectors)((0,vr.parse)(e)),s=i[0],a=i[1],u=a.map(function(o){return Dc(t,o,r,!0,n)});return s.length&&u.push(sh(t,s,r,n)),u.length===0?[]:u.length===1?u[0]:Fr.uniqueSort(u.reduce(function(o,c){return N1(N1([],o,!0),c,!0)}))}Pe.select=KR;function Dc(e,t,r,n,i){var s=t.findIndex(nh.isFilter),a=t.slice(0,s),u=t[s],o=t.length-1===s?i:1/0,c=(0,nh.getLimit)(u.name,u.data,o);if(c===0)return[];var f=a.length===0&&!Array.isArray(e)?Fr.getChildren(e).filter(Fr.isTag):a.length===0?(Array.isArray(e)?e:[e]).filter(Fr.isTag):n||a.some(vr.isTraversal)?sh(e,[a],r,c):ah(e,[a],r),h=f.slice(0,c),d=zR(u.name,h,u.data,r);if(d.length===0||t.length===s+1)return d;var _=t.slice(s+1),D=_.some(vr.isTraversal);if(D){if((0,vr.isTraversal)(_[0])){var E=_[0].type;(E===vr.SelectorType.Sibling||E===vr.SelectorType.Adjacent)&&(d=(0,ru.prepareContext)(d,Fr,!0)),_.unshift(UR)}r=Vn(Vn({},r),{relativeSelector:!1,rootFunc:function(g){return d.includes(g)}})}else r.rootFunc&&r.rootFunc!==rh.trueFunc&&(r=Vn(Vn({},r),{rootFunc:rh.trueFunc}));return _.some(nh.isFilter)?Dc(d,_,r,!1,i):D?sh(d,[_],r,i):ah(d,[_],r)}function sh(e,t,r,n){var i=(0,ru._compileToken)(t,r,e);return L1(e,i,n)}function L1(e,t,r){r===void 0&&(r=1/0);var n=(0,ru.prepareContext)(e,Fr,t.shouldTestNextSiblings);return Fr.find(function(i){return Fr.isTag(i)&&t(i)},n,!0,r)}function ah(e,t,r){var n=(Array.isArray(e)?e:[e]).filter(Fr.isTag);if(n.length===0)return n;var i=(0,ru._compileToken)(t,r);return i===rh.trueFunc?n:n.filter(i)}});var k1=U(V=>{"use strict";var WR=V&&V.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),YR=V&&V.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),QR=V&&V.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&WR(t,e,r);return YR(t,e),t},uh=V&&V.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(V,"__esModule",{value:!0});V.addBack=V.add=V.end=V.slice=V.index=V.toArray=V.get=V.eq=V.last=V.first=V.has=V.not=V.is=V.filterArray=V.filter=V.map=V.each=V.contents=V.children=V.siblings=V.prevUntil=V.prevAll=V.prev=V.nextUntil=V.nextAll=V.next=V.closest=V.parentsUntil=V.parents=V.parent=V.find=void 0;var Sc=yt(),ks=QR(M1()),Cr=Ii(),$R=Ai(),Br=Er(),XR=/^\s*[~+]/;function ZR(e){var t;if(!e)return this._make([]);var r=this.toArray();if(typeof e!="string"){var n=(0,Cr.isCheerio)(e)?e.toArray():[e];return this._make(n.filter(function(a){return r.some(function(u){return(0,$R.contains)(u,a)})}))}var i=XR.test(e)?r:this.children().toArray(),s={context:r,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(ks.select(e,i,s))}V.find=ZR;function oh(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return function(i){var s,a=e(t,this);return i&&(a=fh(a,i,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&a.length>1?r.reduce(function(u,o){return o(u)},a):a)}}}var nu=oh(function(e,t){for(var r,n=[],i=0;i<t.length;i++){var s=e(t[i]);n.push(s)}return(r=new Array).concat.apply(r,n)}),ch=oh(function(e,t){for(var r=[],n=0;n<t.length;n++){var i=e(t[n]);i!==null&&r.push(i)}return r});function lh(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=null,i=oh(function(s,a){var u=[];return(0,Cr.domEach)(a,function(o){for(var c;(c=s(o))&&!(n==null?void 0:n(c,u.length));o=c)u.push(c)}),u}).apply(void 0,uh([e],t,!1));return function(s,a){var u=this;n=typeof s=="string"?function(c){return ks.is(c,s,u.options)}:s?iu(s):null;var o=i.call(this,a);return n=null,o}}function Fs(e){return Array.from(new Set(e))}V.parent=ch(function(e){var t=e.parent;return t&&!(0,Sc.isDocument)(t)?t:null},Fs);V.parents=nu(function(e){for(var t=[];e.parent&&!(0,Sc.isDocument)(e.parent);)t.push(e.parent),e=e.parent;return t},Br.uniqueSort,function(e){return e.reverse()});V.parentsUntil=lh(function(e){var t=e.parent;return t&&!(0,Sc.isDocument)(t)?t:null},Br.uniqueSort,function(e){return e.reverse()});function JR(e){var t,r=[];if(!e)return this._make(r);var n={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},i=typeof e=="string"?function(s){return ks.is(s,e,n)}:iu(e);return(0,Cr.domEach)(this,function(s){for(;s&&(0,Cr.isTag)(s);){if(i(s,0)){r.includes(s)||r.push(s);break}s=s.parent}}),this._make(r)}V.closest=JR;V.next=ch(function(e){return(0,Br.nextElementSibling)(e)});V.nextAll=nu(function(e){for(var t=[];e.next;)e=e.next,(0,Cr.isTag)(e)&&t.push(e);return t},Fs);V.nextUntil=lh(function(e){return(0,Br.nextElementSibling)(e)},Fs);V.prev=ch(function(e){return(0,Br.prevElementSibling)(e)});V.prevAll=nu(function(e){for(var t=[];e.prev;)e=e.prev,(0,Cr.isTag)(e)&&t.push(e);return t},Fs);V.prevUntil=lh(function(e){return(0,Br.prevElementSibling)(e)},Fs);V.siblings=nu(function(e){return(0,Br.getSiblings)(e).filter(function(t){return(0,Cr.isTag)(t)&&t!==e})},Br.uniqueSort);V.children=nu(function(e){return(0,Br.getChildren)(e).filter(Cr.isTag)},Fs);function ew(){var e=this.toArray().reduce(function(t,r){return(0,Sc.hasChildren)(r)?t.concat(r.children):t},[]);return this._make(e)}V.contents=ew;function tw(e){for(var t=0,r=this.length;t<r&&e.call(this[t],t,this[t])!==!1;)++t;return this}V.each=tw;function rw(e){for(var t=[],r=0;r<this.length;r++){var n=this[r],i=e.call(n,r,n);i!=null&&(t=t.concat(i))}return this._make(t)}V.map=rw;function iu(e){return typeof e=="function"?function(t,r){return e.call(t,r,t)}:(0,Cr.isCheerio)(e)?function(t){return Array.prototype.includes.call(e,t)}:function(t){return e===t}}function nw(e){var t;return this._make(fh(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}V.filter=nw;function fh(e,t,r,n){return typeof t=="string"?ks.filter(t,e,{xmlMode:r,root:n}):e.filter(iu(t))}V.filterArray=fh;function iw(e){var t=this.toArray();return typeof e=="string"?ks.some(t.filter(Cr.isTag),e,this.options):e?t.some(iu(e)):!1}V.is=iw;function sw(e){var t=this.toArray();if(typeof e=="string"){var r=new Set(ks.filter(e,t,this.options));t=t.filter(function(i){return!r.has(i)})}else{var n=iu(e);t=t.filter(function(i,s){return!n(i,s)})}return this._make(t)}V.not=sw;function aw(e){var t=this;return this.filter(typeof e=="string"?":has(".concat(e,")"):function(r,n){return t._make(n).find(e).length>0})}V.has=aw;function uw(){return this.length>1?this._make(this[0]):this}V.first=uw;function ow(){return this.length>0?this._make(this[this.length-1]):this}V.last=ow;function cw(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:[]))}V.eq=cw;function lw(e){return e==null?this.toArray():this[e<0?this.length+e:e]}V.get=lw;function fw(){return Array.prototype.slice.call(this)}V.toArray=fw;function dw(e){var 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=(0,Cr.isCheerio)(e)?e[0]:e),Array.prototype.indexOf.call(t,r)}V.index=dw;function hw(e,t){return this._make(Array.prototype.slice.call(this,e,t))}V.slice=hw;function pw(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}V.end=pw;function mw(e,t){var r=this._make(e,t),n=(0,Br.uniqueSort)(uh(uh([],this.get(),!0),r.get(),!0));return this._make(n)}V.add=mw;function gw(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}V.addBack=gw});var dh=U(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.update=Bs.getParse=void 0;var _w=Er(),F1=yt();function Tw(e){return function(r,n,i,s){if(typeof Buffer!="undefined"&&Buffer.isBuffer(r)&&(r=r.toString()),typeof r=="string")return e(r,n,i,s);var a=r;if(!Array.isArray(a)&&(0,F1.isDocument)(a))return a;var u=new F1.Document([]);return B1(a,u),u}}Bs.getParse=Tw;function B1(e,t){var r=Array.isArray(e)?e:[e];t?t.children=r:t=null;for(var n=0;n<r.length;n++){var i=r[n];i.parent&&i.parent.children!==r&&(0,_w.removeElement)(i),t?(i.prev=r[n-1]||null,i.next=r[n+1]||null):i.prev=i.next=null,i.parent=t}return t}Bs.update=B1});var G1=U(oe=>{"use strict";var bw=oe&&oe.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(oe,"__esModule",{value:!0});oe.clone=oe.text=oe.toString=oe.html=oe.empty=oe.replaceWith=oe.remove=oe.insertBefore=oe.before=oe.insertAfter=oe.after=oe.wrapAll=oe.unwrap=oe.wrapInner=oe.wrap=oe.prepend=oe.append=oe.prependTo=oe.appendTo=oe._makeDomArray=void 0;var jr=yt(),js=dh(),j1=Ai(),st=Ii(),Ew=Er();function Aw(e,t){var r=this;return e==null?[]:(0,st.isCheerio)(e)?t?(0,st.cloneDom)(e.get()):e.get():Array.isArray(e)?e.reduce(function(n,i){return n.concat(r._makeDomArray(i,t))},[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?(0,st.cloneDom)([e]):[e]}oe._makeDomArray=Aw;function H1(e){return function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=this.length-1;return(0,st.domEach)(this,function(s,a){if(!!(0,jr.hasChildren)(s)){var u=typeof r[0]=="function"?r[0].call(s,a,t._render(s.children)):r,o=t._makeDomArray(u,a<i);e(o,s.children,s)}})}}function Kn(e,t,r,n,i){for(var s,a,u=bw([t,r],n,!0),o=t===0?null:e[t-1],c=t+r>=e.length?null:e[t+r],f=0;f<n.length;++f){var h=n[f],d=h.parent;if(d){var _=d.children,D=_.indexOf(h);D>-1&&(d.children.splice(D,1),i===d&&t>D&&u[0]--)}h.parent=i,h.prev&&(h.prev.next=(s=h.next)!==null&&s!==void 0?s:null),h.next&&(h.next.prev=(a=h.prev)!==null&&a!==void 0?a:null),h.prev=f===0?o:n[f-1],h.next=f===n.length-1?c:n[f+1]}return o&&(o.next=n[0]),c&&(c.prev=n[n.length-1]),e.splice.apply(e,u)}function yw(e){var t=(0,st.isCheerio)(e)?e:this._make(e);return t.append(this),this}oe.appendTo=yw;function Iw(e){var t=(0,st.isCheerio)(e)?e:this._make(e);return t.prepend(this),this}oe.prependTo=Iw;oe.append=H1(function(e,t,r){Kn(t,t.length,0,e,r)});oe.prepend=H1(function(e,t,r){Kn(t,0,0,e,r)});function U1(e){return function(t){for(var r=this.length-1,n=this.parents().last(),i=0;i<this.length;i++){var s=this[i],a=typeof t=="function"?t.call(s,i,s):typeof t=="string"&&!(0,st.isHtml)(t)?n.find(t).clone():t,u=this._makeDomArray(a,i<r)[0];if(!(!u||!(0,jr.hasChildren)(u))){for(var o=u,c=0;c<o.children.length;){var f=o.children[c];(0,st.isTag)(f)?(o=f,c=0):c++}e(s,o,[u])}}return this}}oe.wrap=U1(function(e,t,r){var n=e.parent;if(!!n){var i=n.children,s=i.indexOf(e);(0,js.update)([e],t),Kn(i,s,0,r,n)}});oe.wrapInner=U1(function(e,t,r){!(0,jr.hasChildren)(e)||((0,js.update)(e.children,t),(0,js.update)(r,e))});function vw(e){var t=this;return this.parent(e).not("body").each(function(r,n){t._make(n).replaceWith(n.children)}),this}oe.unwrap=vw;function Cw(e){var t=this[0];if(t){for(var r=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),n=void 0,i=0;i<r.length;i++)r[i].type==="tag"&&(n=r[i]);for(var s=0;n&&s<n.children.length;){var a=n.children[s];a.type==="tag"?(n=a,s=0):s++}n&&this._make(n).append(this)}return this}oe.wrapAll=Cw;function Dw(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.length-1;return(0,st.domEach)(this,function(i,s){var a=i.parent;if(!(!(0,jr.hasChildren)(i)||!a)){var u=a.children,o=u.indexOf(i);if(!(o<0)){var c=typeof t[0]=="function"?t[0].call(i,s,e._render(i.children)):t,f=e._makeDomArray(c,s<n);Kn(u,o+1,0,f,a)}}})}oe.after=Dw;function Sw(e){var t=this;typeof e=="string"&&(e=this._make(e)),this.remove();var r=[];return this._makeDomArray(e).forEach(function(n){var i=t.clone().toArray(),s=n.parent;if(!!s){var a=s.children,u=a.indexOf(n);u<0||(Kn(a,u+1,0,i,s),r.push.apply(r,i))}}),this._make(r)}oe.insertAfter=Sw;function Ow(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.length-1;return(0,st.domEach)(this,function(i,s){var a=i.parent;if(!(!(0,jr.hasChildren)(i)||!a)){var u=a.children,o=u.indexOf(i);if(!(o<0)){var c=typeof t[0]=="function"?t[0].call(i,s,e._render(i.children)):t,f=e._makeDomArray(c,s<n);Kn(u,o,0,f,a)}}})}oe.before=Ow;function xw(e){var t=this,r=this._make(e);this.remove();var n=[];return(0,st.domEach)(r,function(i){var s=t.clone().toArray(),a=i.parent;if(!!a){var u=a.children,o=u.indexOf(i);o<0||(Kn(u,o,0,s,a),n.push.apply(n,s))}}),this._make(n)}oe.insertBefore=xw;function Nw(e){var t=e?this.filter(e):this;return(0,st.domEach)(t,function(r){(0,Ew.removeElement)(r),r.prev=r.next=r.parent=null}),this}oe.remove=Nw;function Rw(e){var t=this;return(0,st.domEach)(this,function(r,n){var i=r.parent;if(!!i){var s=i.children,a=typeof e=="function"?e.call(r,n,r):e,u=t._makeDomArray(a);(0,js.update)(u,null);var o=s.indexOf(r);Kn(s,o,1,u,i),u.includes(r)||(r.parent=r.prev=r.next=null)}})}oe.replaceWith=Rw;function ww(){return(0,st.domEach)(this,function(e){!(0,jr.hasChildren)(e)||(e.children.forEach(function(t){t.next=t.prev=t.parent=null}),e.children.length=0)})}oe.empty=ww;function Pw(e){var t=this;if(e===void 0){var r=this[0];return!r||!(0,jr.hasChildren)(r)?null:this._render(r.children)}return(0,st.domEach)(this,function(n){if(!!(0,jr.hasChildren)(n)){n.children.forEach(function(s){s.next=s.prev=s.parent=null});var i=(0,st.isCheerio)(e)?e.toArray():t._parse("".concat(e),t.options,!1,n).children;(0,js.update)(i,n)}})}oe.html=Pw;function Lw(){return this._render(this)}oe.toString=Lw;function Mw(e){var t=this;return e===void 0?(0,j1.text)(this):typeof e=="function"?(0,st.domEach)(this,function(r,n){return t._make(r).text(e.call(r,n,(0,j1.text)([r])))}):(0,st.domEach)(this,function(r){if(!!(0,jr.hasChildren)(r)){r.children.forEach(function(i){i.next=i.prev=i.parent=null});var n=new jr.Text("".concat(e));(0,js.update)(n,r)}})}oe.text=Mw;function kw(){return this._make((0,st.cloneDom)(this.get()))}oe.clone=kw});var V1=U(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.css=void 0;var hh=Ii();function Fw(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return(0,hh.domEach)(this,function(r,n){(0,hh.isTag)(r)&&q1(r,e,t,n)});if(this.length!==0)return z1(this[0],e)}Oc.css=Fw;function q1(e,t,r,n){if(typeof t=="string"){var i=z1(e),s=typeof r=="function"?r.call(e,n,i[t]):r;s===""?delete i[t]:s!=null&&(i[t]=s),e.attribs.style=Bw(i)}else typeof t=="object"&&Object.keys(t).forEach(function(a,u){q1(e,a,t[a],u)})}function z1(e,t){if(!(!e||!(0,hh.isTag)(e))){var r=jw(e.attribs.style);if(typeof t=="string")return r[t];if(Array.isArray(t)){var n={};return t.forEach(function(i){r[i]!=null&&(n[i]=r[i])}),n}return r}}function Bw(e){return Object.keys(e).reduce(function(t,r){return"".concat(t).concat(t?" ":"").concat(r,": ").concat(e[r],";")},"")}function jw(e){if(e=(e||"").trim(),!e)return{};for(var t={},r,n=0,i=e.split(";");n<i.length;n++){var s=i[n],a=s.indexOf(":");if(a<1||a===s.length-1){var u=s.trimEnd();u.length>0&&r!==void 0&&(t[r]+=";".concat(u))}else r=s.slice(0,a).trim(),t[r]=s.slice(a+1).trim()}return t}});var Y1=U(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.serializeArray=Hs.serialize=void 0;var Hw=Ii(),K1="input,select,textarea,keygen",Uw=/%20/g,W1=/\r?\n/g;function Gw(){var e=this.serializeArray(),t=e.map(function(r){return"".concat(encodeURIComponent(r.name),"=").concat(encodeURIComponent(r.value))});return t.join("&").replace(Uw,"+")}Hs.serialize=Gw;function qw(){var e=this;return this.map(function(t,r){var n=e._make(r);return(0,Hw.isTag)(r)&&r.name==="form"?n.find(K1).toArray():n.filter(K1).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map(function(t,r){var n,i=e._make(r),s=i.attr("name"),a=(n=i.val())!==null&&n!==void 0?n:"";return Array.isArray(a)?a.map(function(u){return{name:s,value:u.replace(W1,`\r
`)}}):{name:s,value:a.replace(W1,`\r
`)}}).toArray()}Hs.serializeArray=qw});var Q1=U(Hr=>{"use strict";var zw=Hr&&Hr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Vw=Hr&&Hr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),su=Hr&&Hr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&zw(t,e,r);return Vw(t,e),t};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Cheerio=void 0;var Kw=su(jE()),Ww=su(k1()),Yw=su(G1()),Qw=su(V1()),$w=su(Y1()),au=function(){function e(t,r,n){if(this.length=0,this.options=n,this._root=r,t){for(var i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}return e}();Hr.Cheerio=au;au.prototype.cheerio="[cheerio object]";au.prototype.splice=Array.prototype.splice;au.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(au.prototype,Kw,Ww,Yw,Qw,$w)});var X1=U(Ut=>{"use strict";var Xw=Ut&&Ut.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Us=Ut&&Ut.__assign||function(){return Us=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Us.apply(this,arguments)},Zw=Ut&&Ut.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Jw=Ut&&Ut.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),$1=Ut&&Ut.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Zw(t,e,r);return Jw(t,e),t};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getLoad=void 0;var ph=$1(ld()),eP=$1(Ai()),tP=Q1(),uu=Ii();function rP(e,t){return function r(n,i,s){if(s===void 0&&(s=!0),n==null)throw new Error("cheerio.load() expects a string");var a=Us(Us({},ph.default),(0,ph.flatten)(i)),u=e(n,a,s,null),o=function(f){Xw(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype._make=function(d,_){var D=c(d,_);return D.prevObject=this,D},h.prototype._parse=function(d,_,D,E){return e(d,_,D,E)},h.prototype._render=function(d){return t(d,this.options)},h}(tP.Cheerio);function c(f,h,d,_){if(d===void 0&&(d=u),f&&(0,uu.isCheerio)(f))return f;var D=Us(Us({},a),(0,ph.flatten)(_)),E=typeof d=="string"?[e(d,D,!1,null)]:"length"in d?d:[d],g=(0,uu.isCheerio)(E)?E:new o(E,null,D);if(g._root=g,!f)return new o(void 0,g,D);var p=typeof f=="string"&&(0,uu.isHtml)(f)?e(f,D,!1,null).children:nP(f)?[f]:Array.isArray(f)?f:void 0,A=new o(p,g,D);if(p)return A;if(typeof f!="string")throw new Error("Unexpected type of selector");var I=f,b=h?typeof h=="string"?(0,uu.isHtml)(h)?new o([e(h,D,!1,null)],g,D):(I="".concat(h," ").concat(I),g):(0,uu.isCheerio)(h)?h:new o(Array.isArray(h)?h:[h],g,D):g;return b?b.find(I):A}return Object.assign(c,eP,{load:r,_root:u,_options:a,fn:o.prototype,prototype:o.prototype}),c}}Ut.getLoad=rP;function nP(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}});var xc=U(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isUndefinedCodePoint=at.isControlCodePoint=at.getSurrogatePairCodePoint=at.isSurrogatePair=at.isSurrogate=at.SEQUENCES=at.CODE_POINTS=at.REPLACEMENT_CHARACTER=void 0;var iP=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]);at.REPLACEMENT_CHARACTER="\uFFFD";var sP;(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.NUMBER_SIGN=35]="NUMBER_SIGN",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_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",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_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(sP=at.CODE_POINTS||(at.CODE_POINTS={}));at.SEQUENCES={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function aP(e){return e>=55296&&e<=57343}at.isSurrogate=aP;function uP(e){return e>=56320&&e<=57343}at.isSurrogatePair=uP;function oP(e,t){return(e-55296)*1024+9216+t}at.getSurrogatePairCodePoint=oP;function cP(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}at.isControlCodePoint=cP;function lP(e){return e>=64976&&e<=65007||iP.has(e)}at.isUndefinedCodePoint=lP});var cu=U(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.ERR=void 0;var fP;(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"})(fP=ou.ERR||(ou.ERR={}))});var J1=U(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.Preprocessor=void 0;var Rt=xc(),mh=cu(),dP=1<<16,Z1=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=dP,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){let{line:r,col:n,offset:i}=this;return{code:t,startLine:r,endLine:r,startCol:n,endCol:n,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_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((0,Rt.isSurrogatePair)(r))return this.pos++,this._addGap(),(0,Rt.getSurrogatePairCodePoint)(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Rt.CODE_POINTS.EOF;return this._err(mh.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,Rt.CODE_POINTS.EOF;let n=this.html.charCodeAt(r);return n===Rt.CODE_POINTS.CARRIAGE_RETURN?Rt.CODE_POINTS.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,Rt.CODE_POINTS.EOF;let t=this.html.charCodeAt(this.pos);return t===Rt.CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Rt.CODE_POINTS.LINE_FEED):t===Rt.CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,(0,Rt.isSurrogate)(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===Rt.CODE_POINTS.LINE_FEED||t===Rt.CODE_POINTS.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){(0,Rt.isControlCodePoint)(t)?this._err(mh.ERR.controlCharacterInInputStream):(0,Rt.isUndefinedCodePoint)(t)&&this._err(mh.ERR.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};Nc.Preprocessor=Z1});var Rc=U(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.getTokenAttr=Di.TokenType=void 0;var hP;(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"})(hP=Di.TokenType||(Di.TokenType={}));function pP(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}Di.getTokenAttr=pP});var ln=U(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.hasUnescapedText=Ge.isNumberedHeader=Ge.SPECIAL_ELEMENTS=Ge.getTagID=Ge.TAG_ID=Ge.TAG_NAMES=Ge.DOCUMENT_MODE=Ge.ATTRS=Ge.NS=void 0;var Si;(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/"})(Si=Ge.NS||(Ge.NS={}));var mP;(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"})(mP=Ge.ATTRS||(Ge.ATTRS={}));var gP;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(gP=Ge.DOCUMENT_MODE||(Ge.DOCUMENT_MODE={}));var x;(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.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"})(x=Ge.TAG_NAMES||(Ge.TAG_NAMES={}));var R;(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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(R=Ge.TAG_ID||(Ge.TAG_ID={}));var _P=new Map([[x.A,R.A],[x.ADDRESS,R.ADDRESS],[x.ANNOTATION_XML,R.ANNOTATION_XML],[x.APPLET,R.APPLET],[x.AREA,R.AREA],[x.ARTICLE,R.ARTICLE],[x.ASIDE,R.ASIDE],[x.B,R.B],[x.BASE,R.BASE],[x.BASEFONT,R.BASEFONT],[x.BGSOUND,R.BGSOUND],[x.BIG,R.BIG],[x.BLOCKQUOTE,R.BLOCKQUOTE],[x.BODY,R.BODY],[x.BR,R.BR],[x.BUTTON,R.BUTTON],[x.CAPTION,R.CAPTION],[x.CENTER,R.CENTER],[x.CODE,R.CODE],[x.COL,R.COL],[x.COLGROUP,R.COLGROUP],[x.DD,R.DD],[x.DESC,R.DESC],[x.DETAILS,R.DETAILS],[x.DIALOG,R.DIALOG],[x.DIR,R.DIR],[x.DIV,R.DIV],[x.DL,R.DL],[x.DT,R.DT],[x.EM,R.EM],[x.EMBED,R.EMBED],[x.FIELDSET,R.FIELDSET],[x.FIGCAPTION,R.FIGCAPTION],[x.FIGURE,R.FIGURE],[x.FONT,R.FONT],[x.FOOTER,R.FOOTER],[x.FOREIGN_OBJECT,R.FOREIGN_OBJECT],[x.FORM,R.FORM],[x.FRAME,R.FRAME],[x.FRAMESET,R.FRAMESET],[x.H1,R.H1],[x.H2,R.H2],[x.H3,R.H3],[x.H4,R.H4],[x.H5,R.H5],[x.H6,R.H6],[x.HEAD,R.HEAD],[x.HEADER,R.HEADER],[x.HGROUP,R.HGROUP],[x.HR,R.HR],[x.HTML,R.HTML],[x.I,R.I],[x.IMG,R.IMG],[x.IMAGE,R.IMAGE],[x.INPUT,R.INPUT],[x.IFRAME,R.IFRAME],[x.KEYGEN,R.KEYGEN],[x.LABEL,R.LABEL],[x.LI,R.LI],[x.LINK,R.LINK],[x.LISTING,R.LISTING],[x.MAIN,R.MAIN],[x.MALIGNMARK,R.MALIGNMARK],[x.MARQUEE,R.MARQUEE],[x.MATH,R.MATH],[x.MENU,R.MENU],[x.META,R.META],[x.MGLYPH,R.MGLYPH],[x.MI,R.MI],[x.MO,R.MO],[x.MN,R.MN],[x.MS,R.MS],[x.MTEXT,R.MTEXT],[x.NAV,R.NAV],[x.NOBR,R.NOBR],[x.NOFRAMES,R.NOFRAMES],[x.NOEMBED,R.NOEMBED],[x.NOSCRIPT,R.NOSCRIPT],[x.OBJECT,R.OBJECT],[x.OL,R.OL],[x.OPTGROUP,R.OPTGROUP],[x.OPTION,R.OPTION],[x.P,R.P],[x.PARAM,R.PARAM],[x.PLAINTEXT,R.PLAINTEXT],[x.PRE,R.PRE],[x.RB,R.RB],[x.RP,R.RP],[x.RT,R.RT],[x.RTC,R.RTC],[x.RUBY,R.RUBY],[x.S,R.S],[x.SCRIPT,R.SCRIPT],[x.SECTION,R.SECTION],[x.SELECT,R.SELECT],[x.SOURCE,R.SOURCE],[x.SMALL,R.SMALL],[x.SPAN,R.SPAN],[x.STRIKE,R.STRIKE],[x.STRONG,R.STRONG],[x.STYLE,R.STYLE],[x.SUB,R.SUB],[x.SUMMARY,R.SUMMARY],[x.SUP,R.SUP],[x.TABLE,R.TABLE],[x.TBODY,R.TBODY],[x.TEMPLATE,R.TEMPLATE],[x.TEXTAREA,R.TEXTAREA],[x.TFOOT,R.TFOOT],[x.TD,R.TD],[x.TH,R.TH],[x.THEAD,R.THEAD],[x.TITLE,R.TITLE],[x.TR,R.TR],[x.TRACK,R.TRACK],[x.TT,R.TT],[x.U,R.U],[x.UL,R.UL],[x.SVG,R.SVG],[x.VAR,R.VAR],[x.WBR,R.WBR],[x.XMP,R.XMP]]);function TP(e){var t;return(t=_P.get(e))!==null&&t!==void 0?t:R.UNKNOWN}Ge.getTagID=TP;var B=R;Ge.SPECIAL_ELEMENTS={[Si.HTML]:new Set([B.ADDRESS,B.APPLET,B.AREA,B.ARTICLE,B.ASIDE,B.BASE,B.BASEFONT,B.BGSOUND,B.BLOCKQUOTE,B.BODY,B.BR,B.BUTTON,B.CAPTION,B.CENTER,B.COL,B.COLGROUP,B.DD,B.DETAILS,B.DIR,B.DIV,B.DL,B.DT,B.EMBED,B.FIELDSET,B.FIGCAPTION,B.FIGURE,B.FOOTER,B.FORM,B.FRAME,B.FRAMESET,B.H1,B.H2,B.H3,B.H4,B.H5,B.H6,B.HEAD,B.HEADER,B.HGROUP,B.HR,B.HTML,B.IFRAME,B.IMG,B.INPUT,B.LI,B.LINK,B.LISTING,B.MAIN,B.MARQUEE,B.MENU,B.META,B.NAV,B.NOEMBED,B.NOFRAMES,B.NOSCRIPT,B.OBJECT,B.OL,B.P,B.PARAM,B.PLAINTEXT,B.PRE,B.SCRIPT,B.SECTION,B.SELECT,B.SOURCE,B.STYLE,B.SUMMARY,B.TABLE,B.TBODY,B.TD,B.TEMPLATE,B.TEXTAREA,B.TFOOT,B.TH,B.THEAD,B.TITLE,B.TR,B.TRACK,B.UL,B.WBR,B.XMP]),[Si.MATHML]:new Set([B.MI,B.MO,B.MN,B.MS,B.MTEXT,B.ANNOTATION_XML]),[Si.SVG]:new Set([B.TITLE,B.FOREIGN_OBJECT,B.DESC]),[Si.XLINK]:new Set,[Si.XML]:new Set,[Si.XMLNS]:new Set};function bP(e){return e===B.H1||e===B.H2||e===B.H3||e===B.H4||e===B.H5||e===B.H6}Ge.isNumberedHeader=bP;var EP=new Set([x.STYLE,x.SCRIPT,x.XMP,x.IFRAME,x.NOEMBED,x.NOFRAMES,x.PLAINTEXT]);function AP(e,t){return EP.has(e)||t&&e===x.NOSCRIPT}Ge.hasUnescapedText=AP});var Th=U(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.Tokenizer=Gs.TokenizerMode=void 0;var yP=J1(),m=xc(),Gt=Rc(),Ur=ys(),L=cu(),gh=ln(),IP=new Map([[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]]),T;(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.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(T||(T={}));Gs.TokenizerMode={DATA:T.DATA,RCDATA:T.RCDATA,RAWTEXT:T.RAWTEXT,SCRIPT_DATA:T.SCRIPT_DATA,PLAINTEXT:T.PLAINTEXT,CDATA_SECTION:T.CDATA_SECTION};function lu(e){return e>=m.CODE_POINTS.DIGIT_0&&e<=m.CODE_POINTS.DIGIT_9}function fu(e){return e>=m.CODE_POINTS.LATIN_CAPITAL_A&&e<=m.CODE_POINTS.LATIN_CAPITAL_Z}function vP(e){return e>=m.CODE_POINTS.LATIN_SMALL_A&&e<=m.CODE_POINTS.LATIN_SMALL_Z}function Wn(e){return vP(e)||fu(e)}function _h(e){return Wn(e)||lu(e)}function eA(e){return e>=m.CODE_POINTS.LATIN_CAPITAL_A&&e<=m.CODE_POINTS.LATIN_CAPITAL_F}function tA(e){return e>=m.CODE_POINTS.LATIN_SMALL_A&&e<=m.CODE_POINTS.LATIN_SMALL_F}function CP(e){return lu(e)||eA(e)||tA(e)}function wc(e){return e+32}function rA(e){return e===m.CODE_POINTS.SPACE||e===m.CODE_POINTS.LINE_FEED||e===m.CODE_POINTS.TABULATION||e===m.CODE_POINTS.FORM_FEED}function DP(e){return e===m.CODE_POINTS.EQUALS_SIGN||_h(e)}function nA(e){return rA(e)||e===m.CODE_POINTS.SOLIDUS||e===m.CODE_POINTS.GREATER_THAN_SIGN}var iA=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=T.DATA,this.returnState=T.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new yP.Preprocessor(r),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var r,n;(n=(r=this.handler).onParseError)===null||n===void 0||n.call(r,this.preprocessor.getError(t))}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==null||t())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n==null||n()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,r){this.state=t,this._callState(r)}_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:Gt.TokenType.START_TAG,tagName:"",tagID:gh.TAG_ID.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Gt.TokenType.END_TAG,tagName:"",tagID:gh.TAG_ID.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Gt.TokenType.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Gt.TokenType.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((0,Gt.getTokenAttr)(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(L.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=(0,gh.getTagID)(t.tagName),t.type===Gt.TokenType.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(L.ERR.endTagWithAttributes),t.selfClosing&&this._err(L.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 Gt.TokenType.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Gt.TokenType.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Gt.TokenType.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:Gt.TokenType.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=r;return}this._createCharacterToken(t,r)}_emitCodePoint(t){let r=rA(t)?Gt.TokenType.WHITESPACE_CHARACTER:t===m.CODE_POINTS.NULL?Gt.TokenType.NULL_CHARACTER:Gt.TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Gt.TokenType.CHARACTER,t)}_matchNamedCharacterReference(t){let r=null,n=0,i=!1;for(let s=0,a=Ur.htmlDecodeTree[0];s>=0&&(s=(0,Ur.determineBranch)(Ur.htmlDecodeTree,a,s+1,t),!(s<0));t=this._consume()){n+=1,a=Ur.htmlDecodeTree[s];let u=a&Ur.BinTrieFlags.VALUE_LENGTH;if(u){let o=(u>>14)-1;if(t!==m.CODE_POINTS.SEMICOLON&&this._isCharacterReferenceInAttribute()&&DP(this.preprocessor.peek(1))?(r=[m.CODE_POINTS.AMPERSAND],s+=o):(r=o===0?[Ur.htmlDecodeTree[s]&~Ur.BinTrieFlags.VALUE_LENGTH]:o===1?[Ur.htmlDecodeTree[++s]]:[Ur.htmlDecodeTree[++s],Ur.htmlDecodeTree[++s]],n=0,i=t!==m.CODE_POINTS.SEMICOLON),o===0){this._consume();break}}}return this._unconsume(n),i&&!this.preprocessor.endOfChunkHit&&this._err(L.ERR.missingSemicolonAfterCharacterReference),this._unconsume(1),r}_isCharacterReferenceInAttribute(){return this.returnState===T.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===T.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===T.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case T.DATA:{this._stateData(t);break}case T.RCDATA:{this._stateRcdata(t);break}case T.RAWTEXT:{this._stateRawtext(t);break}case T.SCRIPT_DATA:{this._stateScriptData(t);break}case T.PLAINTEXT:{this._statePlaintext(t);break}case T.TAG_OPEN:{this._stateTagOpen(t);break}case T.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case T.TAG_NAME:{this._stateTagName(t);break}case T.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case T.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case T.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case T.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case T.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case T.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case T.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case T.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case T.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case T.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case T.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case T.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case T.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case T.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case T.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case T.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case T.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case T.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case T.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case T.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case T.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case T.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case T.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case T.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case T.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case T.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case T.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case T.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case T.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case T.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case T.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case T.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case T.BOGUS_COMMENT:{this._stateBogusComment(t);break}case T.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case T.COMMENT_START:{this._stateCommentStart(t);break}case T.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case T.COMMENT:{this._stateComment(t);break}case T.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case T.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case T.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case T.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case T.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case T.COMMENT_END:{this._stateCommentEnd(t);break}case T.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case T.DOCTYPE:{this._stateDoctype(t);break}case T.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case T.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case T.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case T.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case T.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case T.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case T.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case T.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case T.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case T.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case T.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case T.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case T.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case T.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case T.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case T.CDATA_SECTION:{this._stateCdataSection(t);break}case T.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case T.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case T.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case T.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case T.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case T.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case T.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case T.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case T.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case T.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=T.TAG_OPEN;break}case m.CODE_POINTS.AMPERSAND:{this.returnState=T.DATA,this.state=T.CHARACTER_REFERENCE;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitCodePoint(t);break}case m.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case m.CODE_POINTS.AMPERSAND:{this.returnState=T.RCDATA,this.state=T.CHARACTER_REFERENCE;break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=T.RCDATA_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=T.RAWTEXT_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=T.SCRIPT_DATA_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Wn(t))this._createStartTagToken(),this.state=T.TAG_NAME,this._stateTagName(t);else switch(t){case m.CODE_POINTS.EXCLAMATION_MARK:{this.state=T.MARKUP_DECLARATION_OPEN;break}case m.CODE_POINTS.SOLIDUS:{this.state=T.END_TAG_OPEN;break}case m.CODE_POINTS.QUESTION_MARK:{this._err(L.ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=T.BOGUS_COMMENT,this._stateBogusComment(t);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(L.ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=T.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Wn(t))this._createEndTagToken(),this.state=T.TAG_NAME,this._stateTagName(t);else switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingEndTagName),this.state=T.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(L.ERR.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=T.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=T.BEFORE_ATTRIBUTE_NAME;break}case m.CODE_POINTS.SOLIDUS:{this.state=T.SELF_CLOSING_START_TAG;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.DATA,this.emitCurrentTagToken();break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.tagName+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(fu(t)?wc(t):t)}}_stateRcdataLessThanSign(t){t===m.CODE_POINTS.SOLIDUS?this.state=T.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=T.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Wn(t)?(this.state=T.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=T.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 m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=T.BEFORE_ATTRIBUTE_NAME,!1;case m.CODE_POINTS.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=T.SELF_CLOSING_START_TAG,!1;case m.CODE_POINTS.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=T.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=T.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===m.CODE_POINTS.SOLIDUS?this.state=T.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=T.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Wn(t)?(this.state=T.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=T.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=T.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case m.CODE_POINTS.SOLIDUS:{this.state=T.SCRIPT_DATA_END_TAG_OPEN;break}case m.CODE_POINTS.EXCLAMATION_MARK:{this.state=T.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=T.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Wn(t)?(this.state=T.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=T.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=T.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===m.CODE_POINTS.HYPHEN_MINUS?(this.state=T.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=T.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===m.CODE_POINTS.HYPHEN_MINUS?(this.state=T.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=T.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=T.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=T.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=T.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=T.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=T.SCRIPT_DATA_ESCAPED,this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=T.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=T.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.SCRIPT_DATA,this._emitChars(">");break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=T.SCRIPT_DATA_ESCAPED,this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=T.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===m.CODE_POINTS.SOLIDUS?this.state=T.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Wn(t)?(this._emitChars("<"),this.state=T.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=T.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Wn(t)?(this.state=T.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=T.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=T.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(m.SEQUENCES.SCRIPT,!1)&&nA(this.preprocessor.peek(m.SEQUENCES.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<m.SEQUENCES.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=T.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.SCRIPT_DATA,this._emitChars(">");break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===m.CODE_POINTS.SOLIDUS?(this.state=T.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(m.SEQUENCES.SCRIPT,!1)&&nA(this.preprocessor.peek(m.SEQUENCES.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<m.SEQUENCES.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=T.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=T.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.SOLIDUS:case m.CODE_POINTS.GREATER_THAN_SIGN:case m.CODE_POINTS.EOF:{this.state=T.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case m.CODE_POINTS.EQUALS_SIGN:{this._err(L.ERR.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=T.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=T.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:case m.CODE_POINTS.SOLIDUS:case m.CODE_POINTS.GREATER_THAN_SIGN:case m.CODE_POINTS.EOF:{this._leaveAttrName(),this.state=T.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case m.CODE_POINTS.EQUALS_SIGN:{this._leaveAttrName(),this.state=T.BEFORE_ATTRIBUTE_VALUE;break}case m.CODE_POINTS.QUOTATION_MARK:case m.CODE_POINTS.APOSTROPHE:case m.CODE_POINTS.LESS_THAN_SIGN:{this._err(L.ERR.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.name+=m.REPLACEMENT_CHARACTER;break}default:this.currentAttr.name+=String.fromCodePoint(fu(t)?wc(t):t)}}_stateAfterAttributeName(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.SOLIDUS:{this.state=T.SELF_CLOSING_START_TAG;break}case m.CODE_POINTS.EQUALS_SIGN:{this.state=T.BEFORE_ATTRIBUTE_VALUE;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.DATA,this.emitCurrentTagToken();break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=T.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.QUOTATION_MARK:{this.state=T.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{this.state=T.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingAttributeValue),this.state=T.DATA,this.emitCurrentTagToken();break}default:this.state=T.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case m.CODE_POINTS.QUOTATION_MARK:{this.state=T.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case m.CODE_POINTS.AMPERSAND:{this.returnState=T.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=T.CHARACTER_REFERENCE;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.value+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case m.CODE_POINTS.APOSTROPHE:{this.state=T.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case m.CODE_POINTS.AMPERSAND:{this.returnState=T.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=T.CHARACTER_REFERENCE;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.value+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this._leaveAttrValue(),this.state=T.BEFORE_ATTRIBUTE_NAME;break}case m.CODE_POINTS.AMPERSAND:{this.returnState=T.ATTRIBUTE_VALUE_UNQUOTED,this.state=T.CHARACTER_REFERENCE;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=T.DATA,this.emitCurrentTagToken();break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.value+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.QUOTATION_MARK:case m.CODE_POINTS.APOSTROPHE:case m.CODE_POINTS.LESS_THAN_SIGN:case m.CODE_POINTS.EQUALS_SIGN:case m.CODE_POINTS.GRAVE_ACCENT:{this._err(L.ERR.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this._leaveAttrValue(),this.state=T.BEFORE_ATTRIBUTE_NAME;break}case m.CODE_POINTS.SOLIDUS:{this._leaveAttrValue(),this.state=T.SELF_CLOSING_START_TAG;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=T.DATA,this.emitCurrentTagToken();break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this._err(L.ERR.missingWhitespaceBetweenAttributes),this.state=T.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=T.DATA,this.emitCurrentTagToken();break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this._err(L.ERR.unexpectedSolidusInTag),this.state=T.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.DATA,this.emitCurrentComment(r);break}case m.CODE_POINTS.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.data+=m.REPLACEMENT_CHARACTER;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(m.SEQUENCES.DASH_DASH,!0)?(this._createCommentToken(m.SEQUENCES.DASH_DASH.length+1),this.state=T.COMMENT_START):this._consumeSequenceIfMatch(m.SEQUENCES.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(m.SEQUENCES.DOCTYPE.length+1),this.state=T.DOCTYPE):this._consumeSequenceIfMatch(m.SEQUENCES.CDATA_START,!0)?this.inForeignNode?this.state=T.CDATA_SECTION:(this._err(L.ERR.cdataInHtmlContent),this._createCommentToken(m.SEQUENCES.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=T.BOGUS_COMMENT):this._ensureHibernation()||(this._err(L.ERR.incorrectlyOpenedComment),this._createCommentToken(2),this.state=T.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=T.COMMENT_START_DASH;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptClosingOfEmptyComment),this.state=T.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=T.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=T.COMMENT_END;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptClosingOfEmptyComment),this.state=T.DATA,this.emitCurrentComment(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=T.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=T.COMMENT_END_DASH;break}case m.CODE_POINTS.LESS_THAN_SIGN:{r.data+="<",this.state=T.COMMENT_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.data+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.EXCLAMATION_MARK:{r.data+="!",this.state=T.COMMENT_LESS_THAN_SIGN_BANG;break}case m.CODE_POINTS.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=T.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===m.CODE_POINTS.HYPHEN_MINUS?this.state=T.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=T.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===m.CODE_POINTS.HYPHEN_MINUS?this.state=T.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=T.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==m.CODE_POINTS.GREATER_THAN_SIGN&&t!==m.CODE_POINTS.EOF&&this._err(L.ERR.nestedComment),this.state=T.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=T.COMMENT_END;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=T.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.DATA,this.emitCurrentComment(r);break}case m.CODE_POINTS.EXCLAMATION_MARK:{this.state=T.COMMENT_END_BANG;break}case m.CODE_POINTS.HYPHEN_MINUS:{r.data+="-";break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=T.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{r.data+="--!",this.state=T.COMMENT_END_DASH;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.incorrectlyClosedComment),this.state=T.DATA,this.emitCurrentComment(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=T.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=T.BEFORE_DOCTYPE_NAME;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingWhitespaceBeforeDoctypeName),this.state=T.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(fu(t))this._createDoctypeToken(String.fromCharCode(wc(t))),this.state=T.DOCTYPE_NAME;else switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._createDoctypeToken(m.REPLACEMENT_CHARACTER),this.state=T.DOCTYPE_NAME;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=T.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.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=T.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=T.AFTER_DOCTYPE_NAME;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.name+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(fu(t)?wc(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(m.SEQUENCES.PUBLIC,!1)?this.state=T.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(m.SEQUENCES.SYSTEM,!1)?this.state=T.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(L.ERR.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=T.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=T.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.CODE_POINTS.QUOTATION_MARK:{this._err(L.ERR.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=T.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{this._err(L.ERR.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=T.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=T.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=T.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.QUOTATION_MARK:{r.publicId="",this.state=T.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{r.publicId="",this.state=T.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=T.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=T.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.QUOTATION_MARK:{this.state=T.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.publicId+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=T.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.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 m.CODE_POINTS.APOSTROPHE:{this.state=T.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.publicId+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=T.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.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 m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=T.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.QUOTATION_MARK:{this._err(L.ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=T.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{this._err(L.ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=T.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=T.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=T.DATA;break}case m.CODE_POINTS.QUOTATION_MARK:{r.systemId="",this.state=T.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{r.systemId="",this.state=T.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=T.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=T.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.CODE_POINTS.QUOTATION_MARK:{this._err(L.ERR.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=T.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{this._err(L.ERR.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=T.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=T.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=T.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.QUOTATION_MARK:{r.systemId="",this.state=T.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{r.systemId="",this.state=T.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=T.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=T.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.QUOTATION_MARK:{this.state=T.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.systemId+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=T.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.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 m.CODE_POINTS.APOSTROPHE:{this.state=T.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.systemId+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=T.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.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 m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=T.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=T.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=T.DATA;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter);break}case m.CODE_POINTS.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case m.CODE_POINTS.RIGHT_SQUARE_BRACKET:{this.state=T.CDATA_SECTION_BRACKET;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===m.CODE_POINTS.RIGHT_SQUARE_BRACKET?this.state=T.CDATA_SECTION_END:(this._emitChars("]"),this.state=T.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=T.DATA;break}case m.CODE_POINTS.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=T.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===m.CODE_POINTS.NUMBER_SIGN?this.state=T.NUMERIC_CHARACTER_REFERENCE:_h(t)?(this.state=T.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){let r=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(r){for(let n=0;n<r.length;n++)this._flushCodePointConsumedAsCharacterReference(r[n]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.AMPERSAND),this.state=T.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){_h(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===m.CODE_POINTS.SEMICOLON&&this._err(L.ERR.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===m.CODE_POINTS.LATIN_SMALL_X||t===m.CODE_POINTS.LATIN_CAPITAL_X?this.state=T.HEXADEMICAL_CHARACTER_REFERENCE_START:lu(t)?(this.state=T.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(L.ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){CP(t)?(this.state=T.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(L.ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){eA(t)?this.charRefCode=this.charRefCode*16+t-55:tA(t)?this.charRefCode=this.charRefCode*16+t-87:lu(t)?this.charRefCode=this.charRefCode*16+t-48:t===m.CODE_POINTS.SEMICOLON?this.state=T.NUMERIC_CHARACTER_REFERENCE_END:(this._err(L.ERR.missingSemicolonAfterCharacterReference),this.state=T.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){lu(t)?this.charRefCode=this.charRefCode*10+t-48:t===m.CODE_POINTS.SEMICOLON?this.state=T.NUMERIC_CHARACTER_REFERENCE_END:(this._err(L.ERR.missingSemicolonAfterCharacterReference),this.state=T.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===m.CODE_POINTS.NULL)this._err(L.ERR.nullCharacterReference),this.charRefCode=m.CODE_POINTS.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(L.ERR.characterReferenceOutsideUnicodeRange),this.charRefCode=m.CODE_POINTS.REPLACEMENT_CHARACTER;else if((0,m.isSurrogate)(this.charRefCode))this._err(L.ERR.surrogateCharacterReference),this.charRefCode=m.CODE_POINTS.REPLACEMENT_CHARACTER;else if((0,m.isUndefinedCodePoint)(this.charRefCode))this._err(L.ERR.noncharacterCharacterReference);else if((0,m.isControlCodePoint)(this.charRefCode)||this.charRefCode===m.CODE_POINTS.CARRIAGE_RETURN){this._err(L.ERR.controlCharacterReference);let r=IP.get(this.charRefCode);r!==void 0&&(this.charRefCode=r)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}};Gs.Tokenizer=iA});var oA=U(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.OpenElementStack=void 0;var k=ln(),sA=new Set([k.TAG_ID.DD,k.TAG_ID.DT,k.TAG_ID.LI,k.TAG_ID.OPTGROUP,k.TAG_ID.OPTION,k.TAG_ID.P,k.TAG_ID.RB,k.TAG_ID.RP,k.TAG_ID.RT,k.TAG_ID.RTC]),aA=new Set([...sA,k.TAG_ID.CAPTION,k.TAG_ID.COLGROUP,k.TAG_ID.TBODY,k.TAG_ID.TD,k.TAG_ID.TFOOT,k.TAG_ID.TH,k.TAG_ID.THEAD,k.TAG_ID.TR]),Pc=new Map([[k.TAG_ID.APPLET,k.NS.HTML],[k.TAG_ID.CAPTION,k.NS.HTML],[k.TAG_ID.HTML,k.NS.HTML],[k.TAG_ID.MARQUEE,k.NS.HTML],[k.TAG_ID.OBJECT,k.NS.HTML],[k.TAG_ID.TABLE,k.NS.HTML],[k.TAG_ID.TD,k.NS.HTML],[k.TAG_ID.TEMPLATE,k.NS.HTML],[k.TAG_ID.TH,k.NS.HTML],[k.TAG_ID.ANNOTATION_XML,k.NS.MATHML],[k.TAG_ID.MI,k.NS.MATHML],[k.TAG_ID.MN,k.NS.MATHML],[k.TAG_ID.MO,k.NS.MATHML],[k.TAG_ID.MS,k.NS.MATHML],[k.TAG_ID.MTEXT,k.NS.MATHML],[k.TAG_ID.DESC,k.NS.SVG],[k.TAG_ID.FOREIGN_OBJECT,k.NS.SVG],[k.TAG_ID.TITLE,k.NS.SVG]]),SP=[k.TAG_ID.H1,k.TAG_ID.H2,k.TAG_ID.H3,k.TAG_ID.H4,k.TAG_ID.H5,k.TAG_ID.H6],OP=[k.TAG_ID.TR,k.TAG_ID.TEMPLATE,k.TAG_ID.HTML],xP=[k.TAG_ID.TBODY,k.TAG_ID.TFOOT,k.TAG_ID.THEAD,k.TAG_ID.TEMPLATE,k.TAG_ID.HTML],NP=[k.TAG_ID.TABLE,k.TAG_ID.TEMPLATE,k.TAG_ID.HTML],RP=[k.TAG_ID.TD,k.TAG_ID.TH],uA=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=k.TAG_ID.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===k.TAG_ID.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===k.NS.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.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])!==k.NS.HTML);this.shortenToLength(r<0?0:r)}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(r<0?0:r)}popUntilPopped(t,r){let n=this._indexOfTagNames(t,r);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(SP,k.NS.HTML)}popUntilTableCellPopped(){this.popUntilPopped(RP,k.NS.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.includes(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(NP,k.NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(xP,k.NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(OP,k.NS.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]===k.TAG_ID.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]===k.TAG_ID.HTML}hasInScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(n===t&&i===k.NS.HTML)return!0;if(Pc.get(n)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if((0,k.isNumberedHeader)(r)&&n===k.NS.HTML)return!0;if(Pc.get(r)===n)return!1}return!0}hasInListItemScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(n===t&&i===k.NS.HTML)return!0;if((n===k.TAG_ID.UL||n===k.TAG_ID.OL)&&i===k.NS.HTML||Pc.get(n)===i)return!1}return!0}hasInButtonScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(n===t&&i===k.NS.HTML)return!0;if(n===k.TAG_ID.BUTTON&&i===k.NS.HTML||Pc.get(n)===i)return!1}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===k.NS.HTML){if(n===t)return!0;if(n===k.TAG_ID.TABLE||n===k.TAG_ID.TEMPLATE||n===k.TAG_ID.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===k.NS.HTML){if(r===k.TAG_ID.TBODY||r===k.TAG_ID.THEAD||r===k.TAG_ID.TFOOT)return!0;if(r===k.TAG_ID.TABLE||r===k.TAG_ID.HTML)return!1}}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===k.NS.HTML){if(n===t)return!0;if(n!==k.TAG_ID.OPTION&&n!==k.TAG_ID.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;sA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;aA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&aA.has(this.currentTagId);)this.pop()}};Lc.OpenElementStack=uA});var fA=U(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.FormattingElementList=Oi.EntryType=void 0;var bh=3,Yn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Yn=Oi.EntryType||(Oi.EntryType={}));var cA={type:Yn.Marker},lA=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let n=[],i=r.length,s=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){let o=this.entries[u];if(o.type===Yn.Marker)break;let{element:c}=o;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===a){let f=this.treeAdapter.getAttrList(c);f.length===i&&n.push({idx:u,attrs:f})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<bh)return;let r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<bh)return;let i=new Map(r.map(a=>[a.name,a.value])),s=0;for(let a=0;a<n.length;a++){let u=n[a];u.attrs.every(o=>i.get(o.name)===o.value)&&(s+=1,s>=bh&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(cA)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Yn.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Yn.Element,element:t,token:r})}removeEntry(t){let r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){let t=this.entries.indexOf(cA);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let r=this.entries.find(n=>n.type===Yn.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===Yn.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Yn.Element&&r.element===t)}};Oi.FormattingElementList=lA});var Mc=U(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.defaultTreeAdapter=void 0;var wP=ln();function dA(e){return{nodeName:"#text",value:e,parentNode:null}}fn.defaultTreeAdapter={createDocument(){return{nodeName:"#document",mode:wP.DOCUMENT_MODE.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}},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(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{let s={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};fn.defaultTreeAdapter.appendChild(e,s)}},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(fn.defaultTreeAdapter.isTextNode(r)){r.value+=t;return}}fn.defaultTreeAdapter.appendChild(e,dA(t))},insertTextBefore(e,t,r){let n=e.childNodes[e.childNodes.indexOf(r)-1];n&&fn.defaultTreeAdapter.isTextNode(n)?n.value+=t:fn.defaultTreeAdapter.insertBefore(e,dA(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=Object.assign(Object.assign({},e.sourceCodeLocation),t)}}});var _A=U(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.getDocumentMode=zs.isConforming=void 0;var qs=ln(),hA="html",PP="about:legacy-compat",LP="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",pA=["+//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//"],MP=[...pA,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],kP=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),mA=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],FP=[...mA,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function gA(e,t){return t.some(r=>e.startsWith(r))}function BP(e){return e.name===hA&&e.publicId===null&&(e.systemId===null||e.systemId===PP)}zs.isConforming=BP;function jP(e){if(e.name!==hA)return qs.DOCUMENT_MODE.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===LP)return qs.DOCUMENT_MODE.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),kP.has(r))return qs.DOCUMENT_MODE.QUIRKS;let n=t===null?MP:pA;if(gA(r,n))return qs.DOCUMENT_MODE.QUIRKS;if(n=t===null?mA:FP,gA(r,n))return qs.DOCUMENT_MODE.LIMITED_QUIRKS}return qs.DOCUMENT_MODE.NO_QUIRKS}zs.getDocumentMode=jP});var Eh=U(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.isIntegrationPoint=mt.adjustTokenSVGTagName=mt.adjustTokenXMLAttrs=mt.adjustTokenSVGAttrs=mt.adjustTokenMathMLAttrs=mt.causesExit=mt.SVG_TAG_NAMES_ADJUSTMENT_MAP=void 0;var G=ln(),TA={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},HP="definitionurl",UP="definitionURL",GP=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])),qP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:G.NS.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:G.NS.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:G.NS.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:G.NS.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:G.NS.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:G.NS.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:G.NS.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:G.NS.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:G.NS.XML}],["xml:space",{prefix:"xml",name:"space",namespace:G.NS.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:G.NS.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:G.NS.XMLNS}]]);mt.SVG_TAG_NAMES_ADJUSTMENT_MAP=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]));var zP=new Set([G.TAG_ID.B,G.TAG_ID.BIG,G.TAG_ID.BLOCKQUOTE,G.TAG_ID.BODY,G.TAG_ID.BR,G.TAG_ID.CENTER,G.TAG_ID.CODE,G.TAG_ID.DD,G.TAG_ID.DIV,G.TAG_ID.DL,G.TAG_ID.DT,G.TAG_ID.EM,G.TAG_ID.EMBED,G.TAG_ID.H1,G.TAG_ID.H2,G.TAG_ID.H3,G.TAG_ID.H4,G.TAG_ID.H5,G.TAG_ID.H6,G.TAG_ID.HEAD,G.TAG_ID.HR,G.TAG_ID.I,G.TAG_ID.IMG,G.TAG_ID.LI,G.TAG_ID.LISTING,G.TAG_ID.MENU,G.TAG_ID.META,G.TAG_ID.NOBR,G.TAG_ID.OL,G.TAG_ID.P,G.TAG_ID.PRE,G.TAG_ID.RUBY,G.TAG_ID.S,G.TAG_ID.SMALL,G.TAG_ID.SPAN,G.TAG_ID.STRONG,G.TAG_ID.STRIKE,G.TAG_ID.SUB,G.TAG_ID.SUP,G.TAG_ID.TABLE,G.TAG_ID.TT,G.TAG_ID.U,G.TAG_ID.UL,G.TAG_ID.VAR]);function VP(e){let t=e.tagID;return t===G.TAG_ID.FONT&&e.attrs.some(({name:n})=>n===G.ATTRS.COLOR||n===G.ATTRS.SIZE||n===G.ATTRS.FACE)||zP.has(t)}mt.causesExit=VP;function KP(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===HP){e.attrs[t].name=UP;break}}mt.adjustTokenMathMLAttrs=KP;function WP(e){for(let t=0;t<e.attrs.length;t++){let r=GP.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}mt.adjustTokenSVGAttrs=WP;function YP(e){for(let t=0;t<e.attrs.length;t++){let r=qP.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}mt.adjustTokenXMLAttrs=YP;function QP(e){let t=mt.SVG_TAG_NAMES_ADJUSTMENT_MAP.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=(0,G.getTagID)(e.tagName))}mt.adjustTokenSVGTagName=QP;function $P(e,t){return t===G.NS.MATHML&&(e===G.TAG_ID.MI||e===G.TAG_ID.MO||e===G.TAG_ID.MN||e===G.TAG_ID.MS||e===G.TAG_ID.MTEXT)}function XP(e,t,r){if(t===G.NS.MATHML&&e===G.TAG_ID.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===G.ATTRS.ENCODING){let i=r[n].value.toLowerCase();return i===TA.TEXT_HTML||i===TA.APPLICATION_XML}}return t===G.NS.SVG&&(e===G.TAG_ID.FOREIGN_OBJECT||e===G.TAG_ID.DESC||e===G.TAG_ID.TITLE)}function ZP(e,t,r,n){return(!n||n===G.NS.HTML)&&XP(e,t,r)||(!n||n===G.NS.MATHML)&&$P(e,t)}mt.isIntegrationPoint=ZP});var Sh=U(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.Parser=void 0;var wt=Th(),JP=oA(),bA=fA(),e6=Mc(),EA=_A(),Gr=Eh(),gt=cu(),AA=xc(),l=ln(),ut=Rc(),t6="hidden",r6=8,n6=3,v;(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"})(v||(v={}));var i6={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},yA=new Set([l.TAG_ID.TABLE,l.TAG_ID.TBODY,l.TAG_ID.TFOOT,l.TAG_ID.THEAD,l.TAG_ID.TR]),IA={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:e6.defaultTreeAdapter,onParseError:null},vA=class{constructor(t,r,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=v.INITIAL,this.originalInsertionMode=v.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=Object.assign(Object.assign({},IA),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 wt.Tokenizer(this.options,this),this.activeFormattingElements=new bA.FormattingElementList(this.treeAdapter),this.fragmentContextID=n?(0,l.getTagID)(this.treeAdapter.getTagName(n)):l.TAG_ID.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new JP.OpenElementStack(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=Object.assign(Object.assign({},IA),r);t??(t=n.treeAdapter.createElement(l.TAG_NAMES.TEMPLATE,l.NS.HTML,[]));let i=n.treeAdapter.createElement("documentmock",l.NS.HTML,[]),s=new this(n,i,t);return s.fragmentContextID===l.TAG_ID.TEMPLATE&&s.tmplInsertionModeStack.unshift(v.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}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 s=(i=t.location)!==null&&i!==void 0?i:i6,a={code:r,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:n?s.startLine:s.endLine,endCol:n?s.startCol:s.endCol,endOffset:n?s.startOffset:s.endOffset};this.onParseError(a)}onItemPush(t,r,n){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.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 s,a;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,a=this.fragmentContextID):{current:s,currentTagId:a}=this.openElements,this._setContextModes(s,a)}}_setContextModes(t,r){let n=t===this.document||this.treeAdapter.getNamespaceURI(t)===l.NS.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,l.NS.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=v.TEXT}switchToPlaintextParsing(){this.insertionMode=v.TEXT,this.originalInsertionMode=v.IN_BODY,this.tokenizer.state=wt.TokenizerMode.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)===l.TAG_NAMES.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==l.NS.HTML))switch(this.fragmentContextID){case l.TAG_ID.TITLE:case l.TAG_ID.TEXTAREA:{this.tokenizer.state=wt.TokenizerMode.RCDATA;break}case l.TAG_ID.STYLE:case l.TAG_ID.XMP:case l.TAG_ID.IFRAME:case l.TAG_ID.NOEMBED:case l.TAG_ID.NOFRAMES:case l.TAG_ID.NOSCRIPT:{this.tokenizer.state=wt.TokenizerMode.RAWTEXT;break}case l.TAG_ID.SCRIPT:{this.tokenizer.state=wt.TokenizerMode.SCRIPT_DATA;break}case l.TAG_ID.PLAINTEXT:{this.tokenizer.state=wt.TokenizerMode.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 a=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let n=r&&Object.assign(Object.assign({},r),{startTag:r});this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n,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,l.NS.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,l.NS.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(l.TAG_NAMES.HTML,l.NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.TAG_ID.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),s=n?i.lastIndexOf(n):i.length,a=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:o,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:o,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,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),s=r.type===ut.TokenType.END_TAG&&i===r.tagName?{endTag:Object.assign({},n),endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}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===l.TAG_ID.SVG&&this.treeAdapter.getTagName(r)===l.TAG_NAMES.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===l.NS.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.TAG_ID.MGLYPH||t.tagID===l.TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(n,r,l.NS.HTML)}_processToken(t){switch(t.type){case ut.TokenType.CHARACTER:{this.onCharacter(t);break}case ut.TokenType.NULL_CHARACTER:{this.onNullCharacter(t);break}case ut.TokenType.COMMENT:{this.onComment(t);break}case ut.TokenType.DOCTYPE:{this.onDoctype(t);break}case ut.TokenType.START_TAG:{this._processStartTag(t);break}case ut.TokenType.END_TAG:{this.onEndTag(t);break}case ut.TokenType.EOF:{this.onEof(t);break}case ut.TokenType.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){let i=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return Gr.isIntegrationPoint(t,i,s,n)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(i=>i.type===bA.EntryType.Marker||this.openElements.contains(i.element)),n=r<0?t-1:r-1;for(let i=n;i>=0;i--){let s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=v.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.TAG_ID.P),this.openElements.popUntilTagNamePopped(l.TAG_ID.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TAG_ID.TR:{this.insertionMode=v.IN_ROW;return}case l.TAG_ID.TBODY:case l.TAG_ID.THEAD:case l.TAG_ID.TFOOT:{this.insertionMode=v.IN_TABLE_BODY;return}case l.TAG_ID.CAPTION:{this.insertionMode=v.IN_CAPTION;return}case l.TAG_ID.COLGROUP:{this.insertionMode=v.IN_COLUMN_GROUP;return}case l.TAG_ID.TABLE:{this.insertionMode=v.IN_TABLE;return}case l.TAG_ID.BODY:{this.insertionMode=v.IN_BODY;return}case l.TAG_ID.FRAMESET:{this.insertionMode=v.IN_FRAMESET;return}case l.TAG_ID.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TAG_ID.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.TAG_ID.HTML:{this.insertionMode=this.headElement?v.AFTER_HEAD:v.BEFORE_HEAD;return}case l.TAG_ID.TD:case l.TAG_ID.TH:{if(t>0){this.insertionMode=v.IN_CELL;return}break}case l.TAG_ID.HEAD:{if(t>0){this.insertionMode=v.IN_HEAD;return}break}}this.insertionMode=v.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let n=this.openElements.tagIDs[r];if(n===l.TAG_ID.TEMPLATE)break;if(n===l.TAG_ID.TABLE){this.insertionMode=v.IN_SELECT_IN_TABLE;return}}this.insertionMode=v.IN_SELECT}_isElementCausesFosterParenting(t){return yA.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&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 l.TAG_ID.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===l.NS.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case l.TAG_ID.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 l.SPECIAL_ELEMENTS[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){LL(this,t);return}switch(this.insertionMode){case v.INITIAL:{du(this,t);break}case v.BEFORE_HTML:{hu(this,t);break}case v.BEFORE_HEAD:{pu(this,t);break}case v.IN_HEAD:{mu(this,t);break}case v.IN_HEAD_NO_SCRIPT:{gu(this,t);break}case v.AFTER_HEAD:{_u(this,t);break}case v.IN_BODY:case v.IN_CAPTION:case v.IN_CELL:case v.IN_TEMPLATE:{DA(this,t);break}case v.TEXT:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{vh(this,t);break}case v.IN_TABLE_TEXT:{LA(this,t);break}case v.IN_COLUMN_GROUP:{Bc(this,t);break}case v.AFTER_BODY:{Uc(this,t);break}case v.AFTER_AFTER_BODY:{Gc(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){PL(this,t);return}switch(this.insertionMode){case v.INITIAL:{du(this,t);break}case v.BEFORE_HTML:{hu(this,t);break}case v.BEFORE_HEAD:{pu(this,t);break}case v.IN_HEAD:{mu(this,t);break}case v.IN_HEAD_NO_SCRIPT:{gu(this,t);break}case v.AFTER_HEAD:{_u(this,t);break}case v.TEXT:{this._insertCharacters(t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{vh(this,t);break}case v.IN_COLUMN_GROUP:{Bc(this,t);break}case v.AFTER_BODY:{Uc(this,t);break}case v.AFTER_AFTER_BODY:{Gc(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){yh(this,t);return}switch(this.insertionMode){case v.INITIAL:case v.BEFORE_HTML:case v.BEFORE_HEAD:case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:case v.IN_BODY:case v.IN_TABLE:case v.IN_CAPTION:case v.IN_COLUMN_GROUP:case v.IN_TABLE_BODY:case v.IN_ROW:case v.IN_CELL:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:case v.IN_TEMPLATE:case v.IN_FRAMESET:case v.AFTER_FRAMESET:{yh(this,t);break}case v.IN_TABLE_TEXT:{Eu(this,t);break}case v.AFTER_BODY:{f6(this,t);break}case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{d6(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case v.INITIAL:{h6(this,t);break}case v.BEFORE_HEAD:case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:{this._err(t,gt.ERR.misplacedDoctype);break}case v.IN_TABLE_TEXT:{Eu(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,gt.ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?ML(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case v.INITIAL:{du(this,t);break}case v.BEFORE_HTML:{p6(this,t);break}case v.BEFORE_HEAD:{g6(this,t);break}case v.IN_HEAD:{Dr(this,t);break}case v.IN_HEAD_NO_SCRIPT:{b6(this,t);break}case v.AFTER_HEAD:{A6(this,t);break}case v.IN_BODY:{Ct(this,t);break}case v.IN_TABLE:{Vs(this,t);break}case v.IN_TABLE_TEXT:{Eu(this,t);break}case v.IN_CAPTION:{_L(this,t);break}case v.IN_COLUMN_GROUP:{Ch(this,t);break}case v.IN_TABLE_BODY:{jc(this,t);break}case v.IN_ROW:{Hc(this,t);break}case v.IN_CELL:{EL(this,t);break}case v.IN_SELECT:{FA(this,t);break}case v.IN_SELECT_IN_TABLE:{yL(this,t);break}case v.IN_TEMPLATE:{vL(this,t);break}case v.AFTER_BODY:{DL(this,t);break}case v.IN_FRAMESET:{SL(this,t);break}case v.AFTER_FRAMESET:{xL(this,t);break}case v.AFTER_AFTER_BODY:{RL(this,t);break}case v.AFTER_AFTER_FRAMESET:{wL(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?kL(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case v.INITIAL:{du(this,t);break}case v.BEFORE_HTML:{m6(this,t);break}case v.BEFORE_HEAD:{_6(this,t);break}case v.IN_HEAD:{T6(this,t);break}case v.IN_HEAD_NO_SCRIPT:{E6(this,t);break}case v.AFTER_HEAD:{y6(this,t);break}case v.IN_BODY:{Fc(this,t);break}case v.TEXT:{uL(this,t);break}case v.IN_TABLE:{Tu(this,t);break}case v.IN_TABLE_TEXT:{Eu(this,t);break}case v.IN_CAPTION:{TL(this,t);break}case v.IN_COLUMN_GROUP:{bL(this,t);break}case v.IN_TABLE_BODY:{Dh(this,t);break}case v.IN_ROW:{kA(this,t);break}case v.IN_CELL:{AL(this,t);break}case v.IN_SELECT:{BA(this,t);break}case v.IN_SELECT_IN_TABLE:{IL(this,t);break}case v.IN_TEMPLATE:{CL(this,t);break}case v.AFTER_BODY:{HA(this,t);break}case v.IN_FRAMESET:{OL(this,t);break}case v.AFTER_FRAMESET:{NL(this,t);break}case v.AFTER_AFTER_BODY:{Gc(this,t);break}default:}}onEof(t){switch(this.insertionMode){case v.INITIAL:{du(this,t);break}case v.BEFORE_HTML:{hu(this,t);break}case v.BEFORE_HEAD:{pu(this,t);break}case v.IN_HEAD:{mu(this,t);break}case v.IN_HEAD_NO_SCRIPT:{gu(this,t);break}case v.AFTER_HEAD:{_u(this,t);break}case v.IN_BODY:case v.IN_TABLE:case v.IN_CAPTION:case v.IN_COLUMN_GROUP:case v.IN_TABLE_BODY:case v.IN_ROW:case v.IN_CELL:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:{wA(this,t);break}case v.TEXT:{oL(this,t);break}case v.IN_TABLE_TEXT:{Eu(this,t);break}case v.IN_TEMPLATE:{jA(this,t);break}case v.AFTER_BODY:case v.IN_FRAMESET:case v.AFTER_FRAMESET:case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{Ih(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===AA.CODE_POINTS.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 v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:case v.TEXT:case v.IN_COLUMN_GROUP:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:case v.IN_FRAMESET:case v.AFTER_FRAMESET:{this._insertCharacters(t);break}case v.IN_BODY:case v.IN_CAPTION:case v.IN_CELL:case v.IN_TEMPLATE:case v.AFTER_BODY:case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{CA(this,t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{vh(this,t);break}case v.IN_TABLE_TEXT:{PA(this,t);break}default:}}};qc.Parser=vA;function s6(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):RA(e,t),r}function a6(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(n<0?0:n),e.activeFormattingElements.removeEntry(t)),r}function u6(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let s=0,a=i;a!==r;s++,a=i){i=e.openElements.getCommonAncestor(a);let u=e.activeFormattingElements.getElementEntry(a),o=u&&s>=n6;!u||o?(o&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(a)):(a=o6(e,u),n===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function o6(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 c6(e,t,r){let n=e.treeAdapter.getTagName(t),i=(0,l.getTagID)(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{let s=e.treeAdapter.getNamespaceURI(t);i===l.TAG_ID.TEMPLATE&&s===l.NS.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function l6(e,t,r){let n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,s=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,i.tagID)}function Ah(e,t){for(let r=0;r<r6;r++){let n=s6(e,t);if(!n)break;let i=a6(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;let s=u6(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(s),a&&c6(e,a,s),l6(e,i,n)}}function yh(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function f6(e,t){e._appendCommentNode(t,e.openElements.items[0])}function d6(e,t){e._appendCommentNode(t,e.document)}function Ih(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 s=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(s);a&&!a.endTag&&e._setEndLocation(s,t)}}}}function h6(e,t){e._setDocumentType(t);let r=t.forceQuirks?l.DOCUMENT_MODE.QUIRKS:EA.getDocumentMode(t);EA.isConforming(t)||e._err(t,gt.ERR.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=v.BEFORE_HTML}function du(e,t){e._err(t,gt.ERR.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,l.DOCUMENT_MODE.QUIRKS),e.insertionMode=v.BEFORE_HTML,e._processToken(t)}function p6(e,t){t.tagID===l.TAG_ID.HTML?(e._insertElement(t,l.NS.HTML),e.insertionMode=v.BEFORE_HEAD):hu(e,t)}function m6(e,t){let r=t.tagID;(r===l.TAG_ID.HTML||r===l.TAG_ID.HEAD||r===l.TAG_ID.BODY||r===l.TAG_ID.BR)&&hu(e,t)}function hu(e,t){e._insertFakeRootElement(),e.insertionMode=v.BEFORE_HEAD,e._processToken(t)}function g6(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.HEAD:{e._insertElement(t,l.NS.HTML),e.headElement=e.openElements.current,e.insertionMode=v.IN_HEAD;break}default:pu(e,t)}}function _6(e,t){let r=t.tagID;r===l.TAG_ID.HEAD||r===l.TAG_ID.BODY||r===l.TAG_ID.HTML||r===l.TAG_ID.BR?pu(e,t):e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}function pu(e,t){e._insertFakeElement(l.TAG_NAMES.HEAD,l.TAG_ID.HEAD),e.headElement=e.openElements.current,e.insertionMode=v.IN_HEAD,e._processToken(t)}function Dr(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.BASE:case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.LINK:case l.TAG_ID.META:{e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0;break}case l.TAG_ID.TITLE:{e._switchToTextParsing(t,wt.TokenizerMode.RCDATA);break}case l.TAG_ID.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,wt.TokenizerMode.RAWTEXT):(e._insertElement(t,l.NS.HTML),e.insertionMode=v.IN_HEAD_NO_SCRIPT);break}case l.TAG_ID.NOFRAMES:case l.TAG_ID.STYLE:{e._switchToTextParsing(t,wt.TokenizerMode.RAWTEXT);break}case l.TAG_ID.SCRIPT:{e._switchToTextParsing(t,wt.TokenizerMode.SCRIPT_DATA);break}case l.TAG_ID.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=v.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(v.IN_TEMPLATE);break}case l.TAG_ID.HEAD:{e._err(t,gt.ERR.misplacedStartTagForHeadElement);break}default:mu(e,t)}}function T6(e,t){switch(t.tagID){case l.TAG_ID.HEAD:{e.openElements.pop(),e.insertionMode=v.AFTER_HEAD;break}case l.TAG_ID.BODY:case l.TAG_ID.BR:case l.TAG_ID.HTML:{mu(e,t);break}case l.TAG_ID.TEMPLATE:{xi(e,t);break}default:e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}}function xi(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TAG_ID.TEMPLATE&&e._err(t,gt.ERR.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}function mu(e,t){e.openElements.pop(),e.insertionMode=v.AFTER_HEAD,e._processToken(t)}function b6(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.HEAD:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.NOFRAMES:case l.TAG_ID.STYLE:{Dr(e,t);break}case l.TAG_ID.NOSCRIPT:{e._err(t,gt.ERR.nestedNoscriptInHead);break}default:gu(e,t)}}function E6(e,t){switch(t.tagID){case l.TAG_ID.NOSCRIPT:{e.openElements.pop(),e.insertionMode=v.IN_HEAD;break}case l.TAG_ID.BR:{gu(e,t);break}default:e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}}function gu(e,t){let r=t.type===ut.TokenType.EOF?gt.ERR.openElementsLeftAfterEof:gt.ERR.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=v.IN_HEAD,e._processToken(t)}function A6(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.BODY:{e._insertElement(t,l.NS.HTML),e.framesetOk=!1,e.insertionMode=v.IN_BODY;break}case l.TAG_ID.FRAMESET:{e._insertElement(t,l.NS.HTML),e.insertionMode=v.IN_FRAMESET;break}case l.TAG_ID.BASE:case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.NOFRAMES:case l.TAG_ID.SCRIPT:case l.TAG_ID.STYLE:case l.TAG_ID.TEMPLATE:case l.TAG_ID.TITLE:{e._err(t,gt.ERR.abandonedHeadElementChild),e.openElements.push(e.headElement,l.TAG_ID.HEAD),Dr(e,t),e.openElements.remove(e.headElement);break}case l.TAG_ID.HEAD:{e._err(t,gt.ERR.misplacedStartTagForHeadElement);break}default:_u(e,t)}}function y6(e,t){switch(t.tagID){case l.TAG_ID.BODY:case l.TAG_ID.HTML:case l.TAG_ID.BR:{_u(e,t);break}case l.TAG_ID.TEMPLATE:{xi(e,t);break}default:e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}}function _u(e,t){e._insertFakeElement(l.TAG_NAMES.BODY,l.TAG_ID.BODY),e.insertionMode=v.IN_BODY,kc(e,t)}function kc(e,t){switch(t.type){case ut.TokenType.CHARACTER:{DA(e,t);break}case ut.TokenType.WHITESPACE_CHARACTER:{CA(e,t);break}case ut.TokenType.COMMENT:{yh(e,t);break}case ut.TokenType.START_TAG:{Ct(e,t);break}case ut.TokenType.END_TAG:{Fc(e,t);break}case ut.TokenType.EOF:{wA(e,t);break}default:}}function CA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function DA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function I6(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function v6(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function C6(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,l.NS.HTML),e.insertionMode=v.IN_FRAMESET)}function D6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML)}function S6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),(0,l.isNumberedHeader)(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,l.NS.HTML)}function O6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function x6(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),r||(e.formElement=e.openElements.current))}function N6(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===l.TAG_ID.LI&&i===l.TAG_ID.LI||(r===l.TAG_ID.DD||r===l.TAG_ID.DT)&&(i===l.TAG_ID.DD||i===l.TAG_ID.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.TAG_ID.ADDRESS&&i!==l.TAG_ID.DIV&&i!==l.TAG_ID.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML)}function R6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),e.tokenizer.state=wt.TokenizerMode.PLAINTEXT}function w6(e,t){e.openElements.hasInScope(l.TAG_ID.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.TAG_ID.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.framesetOk=!1}function P6(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(l.TAG_NAMES.A);r&&(Ah(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function L6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function M6(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.TAG_ID.NOBR)&&(Ah(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function k6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function F6(e,t){e.treeAdapter.getDocumentMode(e.document)!==l.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),e.framesetOk=!1,e.insertionMode=v.IN_TABLE}function SA(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,l.NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function OA(e){let t=(0,ut.getTokenAttr)(e,l.ATTRS.TYPE);return t!=null&&t.toLowerCase()===t6}function B6(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,l.NS.HTML),OA(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function j6(e,t){e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0}function H6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._appendElement(t,l.NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function U6(e,t){t.tagName=l.TAG_NAMES.IMG,t.tagID=l.TAG_ID.IMG,SA(e,t)}function G6(e,t){e._insertElement(t,l.NS.HTML),e.skipNextNewLine=!0,e.tokenizer.state=wt.TokenizerMode.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=v.TEXT}function q6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,wt.TokenizerMode.RAWTEXT)}function z6(e,t){e.framesetOk=!1,e._switchToTextParsing(t,wt.TokenizerMode.RAWTEXT)}function xA(e,t){e._switchToTextParsing(t,wt.TokenizerMode.RAWTEXT)}function V6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===v.IN_TABLE||e.insertionMode===v.IN_CAPTION||e.insertionMode===v.IN_TABLE_BODY||e.insertionMode===v.IN_ROW||e.insertionMode===v.IN_CELL?v.IN_SELECT_IN_TABLE:v.IN_SELECT}function K6(e,t){e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML)}function W6(e,t){e.openElements.hasInScope(l.TAG_ID.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,l.NS.HTML)}function Y6(e,t){e.openElements.hasInScope(l.TAG_ID.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.TAG_ID.RTC),e._insertElement(t,l.NS.HTML)}function Q6(e,t){e._reconstructActiveFormattingElements(),Gr.adjustTokenMathMLAttrs(t),Gr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,l.NS.MATHML):e._insertElement(t,l.NS.MATHML),t.ackSelfClosing=!0}function $6(e,t){e._reconstructActiveFormattingElements(),Gr.adjustTokenSVGAttrs(t),Gr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,l.NS.SVG):e._insertElement(t,l.NS.SVG),t.ackSelfClosing=!0}function NA(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML)}function Ct(e,t){switch(t.tagID){case l.TAG_ID.I:case l.TAG_ID.S:case l.TAG_ID.B:case l.TAG_ID.U:case l.TAG_ID.EM:case l.TAG_ID.TT:case l.TAG_ID.BIG:case l.TAG_ID.CODE:case l.TAG_ID.FONT:case l.TAG_ID.SMALL:case l.TAG_ID.STRIKE:case l.TAG_ID.STRONG:{L6(e,t);break}case l.TAG_ID.A:{P6(e,t);break}case l.TAG_ID.H1:case l.TAG_ID.H2:case l.TAG_ID.H3:case l.TAG_ID.H4:case l.TAG_ID.H5:case l.TAG_ID.H6:{S6(e,t);break}case l.TAG_ID.P:case l.TAG_ID.DL:case l.TAG_ID.OL:case l.TAG_ID.UL:case l.TAG_ID.DIV:case l.TAG_ID.DIR:case l.TAG_ID.NAV:case l.TAG_ID.MAIN:case l.TAG_ID.MENU:case l.TAG_ID.ASIDE:case l.TAG_ID.CENTER:case l.TAG_ID.FIGURE:case l.TAG_ID.FOOTER:case l.TAG_ID.HEADER:case l.TAG_ID.HGROUP:case l.TAG_ID.DIALOG:case l.TAG_ID.DETAILS:case l.TAG_ID.ADDRESS:case l.TAG_ID.ARTICLE:case l.TAG_ID.SECTION:case l.TAG_ID.SUMMARY:case l.TAG_ID.FIELDSET:case l.TAG_ID.BLOCKQUOTE:case l.TAG_ID.FIGCAPTION:{D6(e,t);break}case l.TAG_ID.LI:case l.TAG_ID.DD:case l.TAG_ID.DT:{N6(e,t);break}case l.TAG_ID.BR:case l.TAG_ID.IMG:case l.TAG_ID.WBR:case l.TAG_ID.AREA:case l.TAG_ID.EMBED:case l.TAG_ID.KEYGEN:{SA(e,t);break}case l.TAG_ID.HR:{H6(e,t);break}case l.TAG_ID.RB:case l.TAG_ID.RTC:{W6(e,t);break}case l.TAG_ID.RT:case l.TAG_ID.RP:{Y6(e,t);break}case l.TAG_ID.PRE:case l.TAG_ID.LISTING:{O6(e,t);break}case l.TAG_ID.XMP:{q6(e,t);break}case l.TAG_ID.SVG:{$6(e,t);break}case l.TAG_ID.HTML:{I6(e,t);break}case l.TAG_ID.BASE:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.STYLE:case l.TAG_ID.TITLE:case l.TAG_ID.SCRIPT:case l.TAG_ID.BGSOUND:case l.TAG_ID.BASEFONT:case l.TAG_ID.TEMPLATE:{Dr(e,t);break}case l.TAG_ID.BODY:{v6(e,t);break}case l.TAG_ID.FORM:{x6(e,t);break}case l.TAG_ID.NOBR:{M6(e,t);break}case l.TAG_ID.MATH:{Q6(e,t);break}case l.TAG_ID.TABLE:{F6(e,t);break}case l.TAG_ID.INPUT:{B6(e,t);break}case l.TAG_ID.PARAM:case l.TAG_ID.TRACK:case l.TAG_ID.SOURCE:{j6(e,t);break}case l.TAG_ID.IMAGE:{U6(e,t);break}case l.TAG_ID.BUTTON:{w6(e,t);break}case l.TAG_ID.APPLET:case l.TAG_ID.OBJECT:case l.TAG_ID.MARQUEE:{k6(e,t);break}case l.TAG_ID.IFRAME:{z6(e,t);break}case l.TAG_ID.SELECT:{V6(e,t);break}case l.TAG_ID.OPTION:case l.TAG_ID.OPTGROUP:{K6(e,t);break}case l.TAG_ID.NOEMBED:{xA(e,t);break}case l.TAG_ID.FRAMESET:{C6(e,t);break}case l.TAG_ID.TEXTAREA:{G6(e,t);break}case l.TAG_ID.NOSCRIPT:{e.options.scriptingEnabled?xA(e,t):NA(e,t);break}case l.TAG_ID.PLAINTEXT:{R6(e,t);break}case l.TAG_ID.COL:case l.TAG_ID.TH:case l.TAG_ID.TD:case l.TAG_ID.TR:case l.TAG_ID.HEAD:case l.TAG_ID.FRAME:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:case l.TAG_ID.CAPTION:case l.TAG_ID.COLGROUP:break;default:NA(e,t)}}function X6(e,t){if(e.openElements.hasInScope(l.TAG_ID.BODY)&&(e.insertionMode=v.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function Z6(e,t){e.openElements.hasInScope(l.TAG_ID.BODY)&&(e.insertionMode=v.AFTER_BODY,HA(e,t))}function J6(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function eL(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(l.TAG_ID.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.TAG_ID.FORM):r&&e.openElements.remove(r))}function tL(e){e.openElements.hasInButtonScope(l.TAG_ID.P)||e._insertFakeElement(l.TAG_NAMES.P,l.TAG_ID.P),e._closePElement()}function rL(e){e.openElements.hasInListItemScope(l.TAG_ID.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.TAG_ID.LI),e.openElements.popUntilTagNamePopped(l.TAG_ID.LI))}function nL(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function iL(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function sL(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function aL(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(l.TAG_NAMES.BR,l.TAG_ID.BR),e.openElements.pop(),e.framesetOk=!1}function RA(e,t){let r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){let s=e.openElements.items[i],a=e.openElements.tagIDs[i];if(n===a&&(n!==l.TAG_ID.UNKNOWN||e.treeAdapter.getTagName(s)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,a))break}}function Fc(e,t){switch(t.tagID){case l.TAG_ID.A:case l.TAG_ID.B:case l.TAG_ID.I:case l.TAG_ID.S:case l.TAG_ID.U:case l.TAG_ID.EM:case l.TAG_ID.TT:case l.TAG_ID.BIG:case l.TAG_ID.CODE:case l.TAG_ID.FONT:case l.TAG_ID.NOBR:case l.TAG_ID.SMALL:case l.TAG_ID.STRIKE:case l.TAG_ID.STRONG:{Ah(e,t);break}case l.TAG_ID.P:{tL(e);break}case l.TAG_ID.DL:case l.TAG_ID.UL:case l.TAG_ID.OL:case l.TAG_ID.DIR:case l.TAG_ID.DIV:case l.TAG_ID.NAV:case l.TAG_ID.PRE:case l.TAG_ID.MAIN:case l.TAG_ID.MENU:case l.TAG_ID.ASIDE:case l.TAG_ID.BUTTON:case l.TAG_ID.CENTER:case l.TAG_ID.FIGURE:case l.TAG_ID.FOOTER:case l.TAG_ID.HEADER:case l.TAG_ID.HGROUP:case l.TAG_ID.DIALOG:case l.TAG_ID.ADDRESS:case l.TAG_ID.ARTICLE:case l.TAG_ID.DETAILS:case l.TAG_ID.SECTION:case l.TAG_ID.SUMMARY:case l.TAG_ID.LISTING:case l.TAG_ID.FIELDSET:case l.TAG_ID.BLOCKQUOTE:case l.TAG_ID.FIGCAPTION:{J6(e,t);break}case l.TAG_ID.LI:{rL(e);break}case l.TAG_ID.DD:case l.TAG_ID.DT:{nL(e,t);break}case l.TAG_ID.H1:case l.TAG_ID.H2:case l.TAG_ID.H3:case l.TAG_ID.H4:case l.TAG_ID.H5:case l.TAG_ID.H6:{iL(e);break}case l.TAG_ID.BR:{aL(e);break}case l.TAG_ID.BODY:{X6(e,t);break}case l.TAG_ID.HTML:{Z6(e,t);break}case l.TAG_ID.FORM:{eL(e);break}case l.TAG_ID.APPLET:case l.TAG_ID.OBJECT:case l.TAG_ID.MARQUEE:{sL(e,t);break}case l.TAG_ID.TEMPLATE:{xi(e,t);break}default:RA(e,t)}}function wA(e,t){e.tmplInsertionModeStack.length>0?jA(e,t):Ih(e,t)}function uL(e,t){var r;t.tagID===l.TAG_ID.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function oL(e,t){e._err(t,gt.ERR.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function vh(e,t){if(yA.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=v.IN_TABLE_TEXT,t.type){case ut.TokenType.CHARACTER:{LA(e,t);break}case ut.TokenType.WHITESPACE_CHARACTER:{PA(e,t);break}}else bu(e,t)}function cL(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,l.NS.HTML),e.insertionMode=v.IN_CAPTION}function lL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=v.IN_COLUMN_GROUP}function fL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(l.TAG_NAMES.COLGROUP,l.TAG_ID.COLGROUP),e.insertionMode=v.IN_COLUMN_GROUP,Ch(e,t)}function dL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=v.IN_TABLE_BODY}function hL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(l.TAG_NAMES.TBODY,l.TAG_ID.TBODY),e.insertionMode=v.IN_TABLE_BODY,jc(e,t)}function pL(e,t){e.openElements.hasInTableScope(l.TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function mL(e,t){OA(t)?e._appendElement(t,l.NS.HTML):bu(e,t),t.ackSelfClosing=!0}function gL(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,l.NS.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Vs(e,t){switch(t.tagID){case l.TAG_ID.TD:case l.TAG_ID.TH:case l.TAG_ID.TR:{hL(e,t);break}case l.TAG_ID.STYLE:case l.TAG_ID.SCRIPT:case l.TAG_ID.TEMPLATE:{Dr(e,t);break}case l.TAG_ID.COL:{fL(e,t);break}case l.TAG_ID.FORM:{gL(e,t);break}case l.TAG_ID.TABLE:{pL(e,t);break}case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{dL(e,t);break}case l.TAG_ID.INPUT:{mL(e,t);break}case l.TAG_ID.CAPTION:{cL(e,t);break}case l.TAG_ID.COLGROUP:{lL(e,t);break}default:bu(e,t)}}function Tu(e,t){switch(t.tagID){case l.TAG_ID.TABLE:{e.openElements.hasInTableScope(l.TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.TABLE),e._resetInsertionMode());break}case l.TAG_ID.TEMPLATE:{xi(e,t);break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TBODY:case l.TAG_ID.TD:case l.TAG_ID.TFOOT:case l.TAG_ID.TH:case l.TAG_ID.THEAD:case l.TAG_ID.TR:break;default:bu(e,t)}}function bu(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,kc(e,t),e.fosterParentingEnabled=r}function PA(e,t){e.pendingCharacterTokens.push(t)}function LA(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Eu(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)bu(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var MA=new Set([l.TAG_ID.CAPTION,l.TAG_ID.COL,l.TAG_ID.COLGROUP,l.TAG_ID.TBODY,l.TAG_ID.TD,l.TAG_ID.TFOOT,l.TAG_ID.TH,l.TAG_ID.THEAD,l.TAG_ID.TR]);function _L(e,t){let r=t.tagID;MA.has(r)?e.openElements.hasInTableScope(l.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_TABLE,Vs(e,t)):Ct(e,t)}function TL(e,t){let r=t.tagID;switch(r){case l.TAG_ID.CAPTION:case l.TAG_ID.TABLE:{e.openElements.hasInTableScope(l.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_TABLE,r===l.TAG_ID.TABLE&&Tu(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TBODY:case l.TAG_ID.TD:case l.TAG_ID.TFOOT:case l.TAG_ID.TH:case l.TAG_ID.THEAD:case l.TAG_ID.TR:break;default:Fc(e,t)}}function Ch(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.COL:{e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0;break}case l.TAG_ID.TEMPLATE:{Dr(e,t);break}default:Bc(e,t)}}function bL(e,t){switch(t.tagID){case l.TAG_ID.COLGROUP:{e.openElements.currentTagId===l.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=v.IN_TABLE);break}case l.TAG_ID.TEMPLATE:{xi(e,t);break}case l.TAG_ID.COL:break;default:Bc(e,t)}}function Bc(e,t){e.openElements.currentTagId===l.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=v.IN_TABLE,e._processToken(t))}function jc(e,t){switch(t.tagID){case l.TAG_ID.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=v.IN_ROW;break}case l.TAG_ID.TH:case l.TAG_ID.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(l.TAG_NAMES.TR,l.TAG_ID.TR),e.insertionMode=v.IN_ROW,Hc(e,t);break}case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE,Vs(e,t));break}default:Vs(e,t)}}function Dh(e,t){let r=t.tagID;switch(t.tagID){case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE);break}case l.TAG_ID.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE,Tu(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TD:case l.TAG_ID.TH:case l.TAG_ID.TR:break;default:Tu(e,t)}}function Hc(e,t){switch(t.tagID){case l.TAG_ID.TH:case l.TAG_ID.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=v.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:case l.TAG_ID.TR:{e.openElements.hasInTableScope(l.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,jc(e,t));break}default:Vs(e,t)}}function kA(e,t){switch(t.tagID){case l.TAG_ID.TR:{e.openElements.hasInTableScope(l.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY);break}case l.TAG_ID.TABLE:{e.openElements.hasInTableScope(l.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,Dh(e,t));break}case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TAG_ID.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,Dh(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TD:case l.TAG_ID.TH:break;default:Tu(e,t)}}function EL(e,t){let r=t.tagID;MA.has(r)?(e.openElements.hasInTableScope(l.TAG_ID.TD)||e.openElements.hasInTableScope(l.TAG_ID.TH))&&(e._closeTableCell(),Hc(e,t)):Ct(e,t)}function AL(e,t){let r=t.tagID;switch(r){case l.TAG_ID.TD:case l.TAG_ID.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_ROW);break}case l.TAG_ID.TABLE:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:case l.TAG_ID.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),kA(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:break;default:Fc(e,t)}}function FA(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.OPTION:{e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop(),e._insertElement(t,l.NS.HTML);break}case l.TAG_ID.OPTGROUP:{e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.TAG_ID.OPTGROUP&&e.openElements.pop(),e._insertElement(t,l.NS.HTML);break}case l.TAG_ID.INPUT:case l.TAG_ID.KEYGEN:case l.TAG_ID.TEXTAREA:case l.TAG_ID.SELECT:{e.openElements.hasInSelectScope(l.TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode(),t.tagID!==l.TAG_ID.SELECT&&e._processStartTag(t));break}case l.TAG_ID.SCRIPT:case l.TAG_ID.TEMPLATE:{Dr(e,t);break}default:}}function BA(e,t){switch(t.tagID){case l.TAG_ID.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.TAG_ID.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.TAG_ID.OPTGROUP&&e.openElements.pop();break}case l.TAG_ID.OPTION:{e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop();break}case l.TAG_ID.SELECT:{e.openElements.hasInSelectScope(l.TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode());break}case l.TAG_ID.TEMPLATE:{xi(e,t);break}default:}}function yL(e,t){let r=t.tagID;r===l.TAG_ID.CAPTION||r===l.TAG_ID.TABLE||r===l.TAG_ID.TBODY||r===l.TAG_ID.TFOOT||r===l.TAG_ID.THEAD||r===l.TAG_ID.TR||r===l.TAG_ID.TD||r===l.TAG_ID.TH?(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode(),e._processStartTag(t)):FA(e,t)}function IL(e,t){let r=t.tagID;r===l.TAG_ID.CAPTION||r===l.TAG_ID.TABLE||r===l.TAG_ID.TBODY||r===l.TAG_ID.TFOOT||r===l.TAG_ID.THEAD||r===l.TAG_ID.TR||r===l.TAG_ID.TD||r===l.TAG_ID.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode(),e.onEndTag(t)):BA(e,t)}function vL(e,t){switch(t.tagID){case l.TAG_ID.BASE:case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.NOFRAMES:case l.TAG_ID.SCRIPT:case l.TAG_ID.STYLE:case l.TAG_ID.TEMPLATE:case l.TAG_ID.TITLE:{Dr(e,t);break}case l.TAG_ID.CAPTION:case l.TAG_ID.COLGROUP:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{e.tmplInsertionModeStack[0]=v.IN_TABLE,e.insertionMode=v.IN_TABLE,Vs(e,t);break}case l.TAG_ID.COL:{e.tmplInsertionModeStack[0]=v.IN_COLUMN_GROUP,e.insertionMode=v.IN_COLUMN_GROUP,Ch(e,t);break}case l.TAG_ID.TR:{e.tmplInsertionModeStack[0]=v.IN_TABLE_BODY,e.insertionMode=v.IN_TABLE_BODY,jc(e,t);break}case l.TAG_ID.TD:case l.TAG_ID.TH:{e.tmplInsertionModeStack[0]=v.IN_ROW,e.insertionMode=v.IN_ROW,Hc(e,t);break}default:e.tmplInsertionModeStack[0]=v.IN_BODY,e.insertionMode=v.IN_BODY,Ct(e,t)}}function CL(e,t){t.tagID===l.TAG_ID.TEMPLATE&&xi(e,t)}function jA(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ih(e,t)}function DL(e,t){t.tagID===l.TAG_ID.HTML?Ct(e,t):Uc(e,t)}function HA(e,t){var r;if(t.tagID===l.TAG_ID.HTML){if(e.fragmentContext||(e.insertionMode=v.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.TAG_ID.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0?void 0:r.endTag)&&e._setEndLocation(n,t)}}else Uc(e,t)}function Uc(e,t){e.insertionMode=v.IN_BODY,kc(e,t)}function SL(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.FRAMESET:{e._insertElement(t,l.NS.HTML);break}case l.TAG_ID.FRAME:{e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0;break}case l.TAG_ID.NOFRAMES:{Dr(e,t);break}default:}}function OL(e,t){t.tagID===l.TAG_ID.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.TAG_ID.FRAMESET&&(e.insertionMode=v.AFTER_FRAMESET))}function xL(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.NOFRAMES:{Dr(e,t);break}default:}}function NL(e,t){t.tagID===l.TAG_ID.HTML&&(e.insertionMode=v.AFTER_AFTER_FRAMESET)}function RL(e,t){t.tagID===l.TAG_ID.HTML?Ct(e,t):Gc(e,t)}function Gc(e,t){e.insertionMode=v.IN_BODY,kc(e,t)}function wL(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.NOFRAMES:{Dr(e,t);break}default:}}function PL(e,t){t.chars=AA.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function LL(e,t){e._insertCharacters(t),e.framesetOk=!1}function UA(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==l.NS.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ML(e,t){if(Gr.causesExit(t))UA(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===l.NS.MATHML?Gr.adjustTokenMathMLAttrs(t):n===l.NS.SVG&&(Gr.adjustTokenSVGTagName(t),Gr.adjustTokenSVGAttrs(t)),Gr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function kL(e,t){if(t.tagID===l.TAG_ID.P||t.tagID===l.TAG_ID.BR){UA(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)===l.NS.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 WA=U(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.serializeOuter=Ks.serialize=void 0;var Le=ln(),GA=Ka(),FL=Mc(),BL=new Set([Le.TAG_NAMES.AREA,Le.TAG_NAMES.BASE,Le.TAG_NAMES.BASEFONT,Le.TAG_NAMES.BGSOUND,Le.TAG_NAMES.BR,Le.TAG_NAMES.COL,Le.TAG_NAMES.EMBED,Le.TAG_NAMES.FRAME,Le.TAG_NAMES.HR,Le.TAG_NAMES.IMG,Le.TAG_NAMES.INPUT,Le.TAG_NAMES.KEYGEN,Le.TAG_NAMES.LINK,Le.TAG_NAMES.META,Le.TAG_NAMES.PARAM,Le.TAG_NAMES.SOURCE,Le.TAG_NAMES.TRACK,Le.TAG_NAMES.WBR]);function qA(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===Le.NS.HTML&&BL.has(t.treeAdapter.getTagName(e))}var zA={treeAdapter:FL.defaultTreeAdapter,scriptingEnabled:!0};function jL(e,t){let r=Object.assign(Object.assign({},zA),t);return qA(e,r)?"":VA(e,r)}Ks.serialize=jL;function HL(e,t){let r=Object.assign(Object.assign({},zA),t);return KA(e,r)}Ks.serializeOuter=HL;function VA(e,t){let r="",n=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===Le.TAG_NAMES.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===Le.NS.HTML?t.treeAdapter.getTemplateContent(e):e,i=t.treeAdapter.getChildNodes(n);if(i)for(let s of i)r+=KA(s,t);return r}function KA(e,t){return t.treeAdapter.isElementNode(e)?UL(e,t):t.treeAdapter.isTextNode(e)?qL(e,t):t.treeAdapter.isCommentNode(e)?zL(e,t):t.treeAdapter.isDocumentTypeNode(e)?VL(e,t):""}function UL(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${GL(e,t)}>${qA(e,t)?"":`${VA(e,t)}</${r}>`}`}function GL(e,{treeAdapter:t}){let r="";for(let n of t.getAttrList(e)){if(r+=" ",!n.namespace)r+=n.name;else switch(n.namespace){case Le.NS.XML:{r+=`xml:${n.name}`;break}case Le.NS.XMLNS:{n.name!=="xmlns"&&(r+="xmlns:"),r+=n.name;break}case Le.NS.XLINK:{r+=`xlink:${n.name}`;break}default:r+=`${n.prefix}:${n.name}`}r+=`="${(0,GA.escapeAttribute)(n.value)}"`}return r}function qL(e,t){let{treeAdapter:r}=t,n=r.getTextNodeContent(e),i=r.getParentNode(e),s=i&&r.isElementNode(i)&&r.getTagName(i);return s&&r.getNamespaceURI(i)===Le.NS.HTML&&(0,Le.hasUnescapedText)(s,t.scriptingEnabled)?n:(0,GA.escapeText)(n)}function zL(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function VL(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}});var Oh=U(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.parseFragment=Me.parse=Me.TokenizerMode=Me.Tokenizer=Me.Token=Me.html=Me.foreignContent=Me.ErrorCodes=Me.serializeOuter=Me.serialize=Me.Parser=Me.defaultTreeAdapter=void 0;var YA=Sh(),KL=Mc();Object.defineProperty(Me,"defaultTreeAdapter",{enumerable:!0,get:function(){return KL.defaultTreeAdapter}});var WL=Sh();Object.defineProperty(Me,"Parser",{enumerable:!0,get:function(){return WL.Parser}});var QA=WA();Object.defineProperty(Me,"serialize",{enumerable:!0,get:function(){return QA.serialize}});Object.defineProperty(Me,"serializeOuter",{enumerable:!0,get:function(){return QA.serializeOuter}});var YL=cu();Object.defineProperty(Me,"ErrorCodes",{enumerable:!0,get:function(){return YL.ERR}});Me.foreignContent=Eh();Me.html=ln();Me.Token=Rc();var $A=Th();Object.defineProperty(Me,"Tokenizer",{enumerable:!0,get:function(){return $A.Tokenizer}});Object.defineProperty(Me,"TokenizerMode",{enumerable:!0,get:function(){return $A.TokenizerMode}});function QL(e,t){return YA.Parser.parse(e,t)}Me.parse=QL;function $L(e,t,r){typeof e=="string"&&(r=t,t=e,e=null);let n=YA.Parser.getFragmentParser(e,r);return n.tokenizer.write(t,!0),n.getFragment()}Me.parseFragment=$L});var ey=U(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.adapter=qr.serializeDoctypeContent=void 0;var XL=Oh(),tr=yt();function XA(e){return new tr.Text(e)}function ZA(e){let t=e.includes('"')?"'":'"';return t+e+t}function JA(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=` PUBLIC ${ZA(t)}`:r&&(n+=" SYSTEM"),r&&(n+=` ${ZA(r)}`),n}qr.serializeDoctypeContent=JA;qr.adapter={isCommentNode:tr.isComment,isElementNode:tr.isTag,isTextNode:tr.isText,createDocument(){let e=new tr.Document([]);return e["x-mode"]=XL.html.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new tr.Document([])},createElement(e,t,r){let n=Object.create(null),i=Object.create(null),s=Object.create(null);for(let u=0;u<r.length;u++){let o=r[u].name;n[o]=r[u].value,i[o]=r[u].namespace,s[o]=r[u].prefix}let a=new tr.Element(e,n,[]);return a.namespace=t,a["x-attribsNamespace"]=i,a["x-attribsPrefix"]=s,a},createCommentNode(e){return new tr.Comment(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){qr.adapter.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,r,n){let i=JA(t,r,n),s=e.children.find(a=>(0,tr.isDirective)(a)&&a.name==="!doctype");s?s.data=i??null:(s=new tr.ProcessingInstruction("!doctype",i),qr.adapter.appendChild(e,s)),s["x-name"]=t??void 0,s["x-publicId"]=r??void 0,s["x-systemId"]=n??void 0},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&&(0,tr.isText)(r)?r.data+=t:qr.adapter.appendChild(e,XA(t))},insertTextBefore(e,t,r){let n=e.children[e.children.indexOf(r)-1];n&&(0,tr.isText)(n)?n.data+=t:qr.adapter.insertBefore(e,XA(t),r)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){let n=t[r].name;typeof e.attribs[n]=="undefined"&&(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(0,tr.isDirective)(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=Object.assign(Object.assign({},e.sourceCodeLocation),t)}}});var ry=U(Qn=>{"use strict";var ZL=Qn&&Qn.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.renderWithParse5=Qn.parseWithParse5=void 0;var JL=yt(),xh=Oh(),ty=ey();function eM(e,t,r,n){var i={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:ty.adapter,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return r?(0,xh.parse)(e,i):(0,xh.parseFragment)(n,e,i)}Qn.parseWithParse5=eM;var tM={treeAdapter:ty.adapter};function rM(e){for(var t,r=("length"in e)?e:[e],n=0;n<r.length;n+=1){var i=r[n];(0,JL.isDocument)(i)&&(t=Array.prototype.splice).call.apply(t,ZL([r,n,1],i.children,!1))}for(var s="",n=0;n<r.length;n+=1){var i=r[n];s+=(0,xh.serializeOuter)(i,tM)}return s}Qn.renderWithParse5=rM});var Nh=U(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.QuoteType=void 0;var Ni=ys(),Q;(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"})(Q||(Q={}));var M;(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.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(M||(M={}));function dn(e){return e===Q.Space||e===Q.NewLine||e===Q.Tab||e===Q.FormFeed||e===Q.CarriageReturn}function zc(e){return e===Q.Slash||e===Q.Gt||dn(e)}function ny(e){return e>=Q.Zero&&e<=Q.Nine}function nM(e){return e>=Q.LowerA&&e<=Q.LowerZ||e>=Q.UpperA&&e<=Q.UpperZ}function iM(e){return e>=Q.UpperA&&e<=Q.UpperF||e>=Q.LowerA&&e<=Q.LowerF}var Ws;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Ws=Ys.QuoteType||(Ys.QuoteType={}));var qt={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])},sM=function(){function e(t,r){var n=t.xmlMode,i=n===void 0?!1:n,s=t.decodeEntities,a=s===void 0?!0:s;this.cbs=r,this.state=M.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=M.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=i,this.decodeEntities=a,this.entityTrie=i?Ni.xmlDecodeTree:Ni.htmlDecodeTree}return e.prototype.reset=function(){this.state=M.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=M.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(t){t===Q.Lt||!this.decodeEntities&&this.fastForwardTo(Q.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=M.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===Q.Amp&&(this.state=M.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(t){var r=this.sequenceIndex===this.currentSequence.length,n=r?zc(t):(t|32)===this.currentSequence[this.sequenceIndex];if(!n)this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=M.InTagName,this.stateInTagName(t)},e.prototype.stateInSpecialTag=function(t){if(this.sequenceIndex===this.currentSequence.length){if(t===Q.Gt||dn(t)){var r=this.index-this.currentSequence.length;if(this.sectionStart<r){var 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===qt.TitleEnd?this.decodeEntities&&t===Q.Amp&&(this.state=M.BeforeEntity):this.fastForwardTo(Q.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(t===Q.Lt)},e.prototype.stateCDATASequence=function(t){t===qt.Cdata[this.sequenceIndex]?++this.sequenceIndex===qt.Cdata.length&&(this.state=M.InCommentLike,this.currentSequence=qt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=M.InDeclaration,this.stateInDeclaration(t))},e.prototype.fastForwardTo=function(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},e.prototype.stateInCommentLike=function(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===qt.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=M.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(t){return this.xmlMode?!zc(t):nM(t)},e.prototype.startSpecial=function(t,r){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=r,this.state=M.SpecialStartSequence},e.prototype.stateBeforeTagName=function(t){if(t===Q.ExclamationMark)this.state=M.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===Q.Questionmark)this.state=M.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){var r=t|32;this.sectionStart=this.index,!this.xmlMode&&r===qt.TitleEnd[2]?this.startSpecial(qt.TitleEnd,3):this.state=!this.xmlMode&&r===qt.ScriptEnd[2]?M.BeforeSpecialS:M.InTagName}else t===Q.Slash?this.state=M.BeforeClosingTagName:(this.state=M.Text,this.stateText(t))},e.prototype.stateInTagName=function(t){zc(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t))},e.prototype.stateBeforeClosingTagName=function(t){dn(t)||(t===Q.Gt?this.state=M.Text:(this.state=this.isTagStartChar(t)?M.InClosingTagName:M.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(t){(t===Q.Gt||dn(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.AfterClosingTagName,this.stateAfterClosingTagName(t))},e.prototype.stateAfterClosingTagName=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.state=M.Text,this.baseState=M.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(t){t===Q.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=M.InSpecialTag,this.sequenceIndex=0):this.state=M.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===Q.Slash?this.state=M.InSelfClosingTag:dn(t)||(this.state=M.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(t){t===Q.Gt?(this.cbs.onselfclosingtag(this.index),this.state=M.Text,this.baseState=M.Text,this.sectionStart=this.index+1,this.isSpecial=!1):dn(t)||(this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t))},e.prototype.stateInAttributeName=function(t){(t===Q.Eq||zc(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.AfterAttributeName,this.stateAfterAttributeName(t))},e.prototype.stateAfterAttributeName=function(t){t===Q.Eq?this.state=M.BeforeAttributeValue:t===Q.Slash||t===Q.Gt?(this.cbs.onattribend(Ws.NoValue,this.index),this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t)):dn(t)||(this.cbs.onattribend(Ws.NoValue,this.index),this.state=M.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(t){t===Q.DoubleQuote?(this.state=M.InAttributeValueDq,this.sectionStart=this.index+1):t===Q.SingleQuote?(this.state=M.InAttributeValueSq,this.sectionStart=this.index+1):dn(t)||(this.sectionStart=this.index,this.state=M.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))},e.prototype.handleInAttributeValue=function(t,r){t===r||!this.decodeEntities&&this.fastForwardTo(r)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===Q.DoubleQuote?Ws.Double:Ws.Single,this.index),this.state=M.BeforeAttributeName):this.decodeEntities&&t===Q.Amp&&(this.baseState=this.state,this.state=M.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(t){this.handleInAttributeValue(t,Q.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(t){this.handleInAttributeValue(t,Q.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(t){dn(t)||t===Q.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Ws.Unquoted,this.index),this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===Q.Amp&&(this.baseState=this.state,this.state=M.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(t){t===Q.OpeningSquareBracket?(this.state=M.CDATASequence,this.sequenceIndex=0):this.state=t===Q.Dash?M.BeforeComment:M.InDeclaration},e.prototype.stateInDeclaration=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=M.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=M.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(t){t===Q.Dash?(this.state=M.InCommentLike,this.currentSequence=qt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=M.InDeclaration},e.prototype.stateInSpecialComment=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=M.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(t){var r=t|32;r===qt.ScriptEnd[3]?this.startSpecial(qt.ScriptEnd,4):r===qt.StyleEnd[3]?this.startSpecial(qt.StyleEnd,4):(this.state=M.InTagName,this.stateInTagName(t))},e.prototype.stateBeforeEntity=function(t){this.entityExcess=1,this.entityResult=0,t===Q.Number?this.state=M.BeforeNumericEntity:t===Q.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=M.InNamedEntity,this.stateInNamedEntity(t))},e.prototype.stateInNamedEntity=function(t){if(this.entityExcess+=1,this.trieIndex=(0,Ni.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var r=this.trieCurrent&Ni.BinTrieFlags.VALUE_LENGTH;if(r){var n=(r>>14)-1;if(!this.allowLegacyEntity()&&t!==Q.Semi)this.trieIndex+=n;else{var i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,n===0&&this.emitNamedEntity()}}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var t=(this.entityTrie[this.entityResult]&Ni.BinTrieFlags.VALUE_LENGTH)>>14;switch(t){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Ni.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},e.prototype.stateBeforeNumericEntity=function(t){(t|32)===Q.LowerX?(this.entityExcess++,this.state=M.InHexEntity):(this.state=M.InNumericEntity,this.stateInNumericEntity(t))},e.prototype.emitNumericEntity=function(t){var r=this.index-this.entityExcess-1,n=r+2+Number(this.state===M.InHexEntity);n!==this.index&&(r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.sectionStart=this.index+Number(t),this.emitCodePoint((0,Ni.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(t){t===Q.Semi?this.emitNumericEntity(!0):ny(t)?(this.entityResult=this.entityResult*10+(t-Q.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(t){t===Q.Semi?this.emitNumericEntity(!0):ny(t)?(this.entityResult=this.entityResult*16+(t-Q.Zero),this.entityExcess++):iM(t)?(this.entityResult=this.entityResult*16+((t|32)-Q.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===M.Text||this.baseState===M.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===M.Text||this.state===M.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===M.InAttributeValueDq||this.state===M.InAttributeValueSq||this.state===M.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case M.Text:{this.stateText(t);break}case M.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case M.InSpecialTag:{this.stateInSpecialTag(t);break}case M.CDATASequence:{this.stateCDATASequence(t);break}case M.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case M.InAttributeName:{this.stateInAttributeName(t);break}case M.InCommentLike:{this.stateInCommentLike(t);break}case M.InSpecialComment:{this.stateInSpecialComment(t);break}case M.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case M.InTagName:{this.stateInTagName(t);break}case M.InClosingTagName:{this.stateInClosingTagName(t);break}case M.BeforeTagName:{this.stateBeforeTagName(t);break}case M.AfterAttributeName:{this.stateAfterAttributeName(t);break}case M.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case M.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case M.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case M.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case M.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case M.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case M.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case M.InDeclaration:{this.stateInDeclaration(t);break}case M.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case M.BeforeComment:{this.stateBeforeComment(t);break}case M.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case M.InNamedEntity:{this.stateInNamedEntity(t);break}case M.BeforeEntity:{this.stateBeforeEntity(t);break}case M.InHexEntity:{this.stateInHexEntity(t);break}case M.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()},e.prototype.finish=function(){this.state===M.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var t=this.buffer.length+this.offset;this.state===M.InCommentLike?this.currentSequence===qt.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===M.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===M.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===M.InTagName||this.state===M.BeforeAttributeName||this.state===M.BeforeAttributeValue||this.state===M.AfterAttributeName||this.state===M.InAttributeName||this.state===M.InAttributeValueSq||this.state===M.InAttributeValueDq||this.state===M.InAttributeValueNq||this.state===M.InClosingTagName||this.cbs.ontext(this.sectionStart,t)},e.prototype.emitPartial=function(t,r){this.baseState!==M.Text&&this.baseState!==M.InSpecialTag?this.cbs.onattribdata(t,r):this.cbs.ontext(t,r)},e.prototype.emitCodePoint=function(t){this.baseState!==M.Text&&this.baseState!==M.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)},e}();Ys.default=sM});var Rh=U(zr=>{"use strict";var aM=zr&&zr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),uM=zr&&zr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),oM=zr&&zr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&aM(t,e,r);return uM(t,e),t};Object.defineProperty(zr,"__esModule",{value:!0});zr.Parser=void 0;var Vc=oM(Nh()),iy=ys(),Qs=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Oe=new Set(["p"]),sy=new Set(["thead","tbody"]),ay=new Set(["dd","dt"]),uy=new Set(["rt","rp"]),cM=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",Oe],["h1",Oe],["h2",Oe],["h3",Oe],["h4",Oe],["h5",Oe],["h6",Oe],["select",Qs],["input",Qs],["output",Qs],["button",Qs],["datalist",Qs],["textarea",Qs],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",ay],["dt",ay],["address",Oe],["article",Oe],["aside",Oe],["blockquote",Oe],["details",Oe],["div",Oe],["dl",Oe],["fieldset",Oe],["figcaption",Oe],["figure",Oe],["footer",Oe],["form",Oe],["header",Oe],["hr",Oe],["main",Oe],["nav",Oe],["ol",Oe],["pre",Oe],["section",Oe],["table",Oe],["ul",Oe],["rt",uy],["rp",uy],["tbody",sy],["tfoot",sy]]),lM=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),oy=new Set(["math","svg"]),cy=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),fM=/\s|\//,dM=function(){function e(t,r){r===void 0&&(r={});var n,i,s,a,u;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(i=r.lowerCaseAttributeNames)!==null&&i!==void 0?i:!r.xmlMode,this.tokenizer=new((s=r.Tokenizer)!==null&&s!==void 0?s:Vc.default)(this.options,this),(u=(a=this.cbs).onparserinit)===null||u===void 0||u.call(a,this)}return e.prototype.ontext=function(t,r){var n,i,s=this.getSlice(t,r);this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,s),this.startIndex=r},e.prototype.ontextentity=function(t){var r,n,i=this.tokenizer.getSectionStart();this.endIndex=i-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,iy.fromCodePoint)(t)),this.startIndex=i},e.prototype.isVoidElement=function(t){return!this.options.xmlMode&&lM.has(t)},e.prototype.onopentagname=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(t){var r,n,i,s;this.openTagStart=this.startIndex,this.tagname=t;var a=!this.options.xmlMode&&cM.get(t);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(t)||(this.stack.push(t),oy.has(t)?this.foreignContext.push(!0):cy.has(t)&&this.foreignContext.push(!1)),(s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,t),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(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=""},e.prototype.onopentagend=function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1},e.prototype.onclosetag=function(t,r){var n,i,s,a,u,o;this.endIndex=r;var c=this.getSlice(t,r);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(oy.has(c)||cy.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,"br"),(a=(s=this.cbs).onopentag)===null||a===void 0||a.call(s,"br",{},!0),(o=(u=this.cbs).onclosetag)===null||o===void 0||o.call(u,"br",!1));else{var f=this.stack.lastIndexOf(c);if(f!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-f;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=f;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},e.prototype.onselfclosingtag=function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)},e.prototype.closeCurrentTag=function(t){var r,n,i=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===i&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,i,!t),this.stack.pop())},e.prototype.onattribname=function(t,r){this.startIndex=t;var n=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(t,r){this.attribvalue+=this.getSlice(t,r)},e.prototype.onattribentity=function(t){this.attribvalue+=(0,iy.fromCodePoint)(t)},e.prototype.onattribend=function(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===Vc.QuoteType.Double?'"':t===Vc.QuoteType.Single?"'":t===Vc.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(t){var r=t.search(fM),n=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(n))}this.startIndex=r+1},e.prototype.onprocessinginstruction=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(n))}this.startIndex=r+1},e.prototype.oncomment=function(t,r,n){var i,s,a,u;this.endIndex=r,(s=(i=this.cbs).oncomment)===null||s===void 0||s.call(i,this.getSlice(t,r-n)),(u=(a=this.cbs).oncommentend)===null||u===void 0||u.call(a),this.startIndex=r+1},e.prototype.oncdata=function(t,r,n){var i,s,a,u,o,c,f,h,d,_;this.endIndex=r;var D=this.getSlice(t,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(i=this.cbs).oncdatastart)===null||s===void 0||s.call(i),(u=(a=this.cbs).ontext)===null||u===void 0||u.call(a,D),(c=(o=this.cbs).oncdataend)===null||c===void 0||c.call(o)):((h=(f=this.cbs).oncomment)===null||h===void 0||h.call(f,"[CDATA[".concat(D,"]]")),(_=(d=this.cbs).oncommentend)===null||_===void 0||_.call(d)),this.startIndex=r+1},e.prototype.onend=function(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)},e.prototype.reset=function(){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.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(t){this.reset(),this.end(t)},e.prototype.getSlice=function(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(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++)},e.prototype.end=function(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()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(t){this.write(t)},e.prototype.done=function(t){this.end(t)},e}();zr.Parser=dM});var gy=U(be=>{"use strict";var hM=be&&be.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),pM=be&&be.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),ly=be&&be.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&hM(t,e,r);return pM(t,e),t},mM=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(be,"__esModule",{value:!0});be.DomUtils=be.parseFeed=be.getFeed=be.ElementType=be.Tokenizer=be.createDomStream=be.parseDOM=be.parseDocument=be.DefaultHandler=be.DomHandler=be.Parser=void 0;var fy=Rh(),gM=Rh();Object.defineProperty(be,"Parser",{enumerable:!0,get:function(){return gM.Parser}});var dy=yt(),hy=yt();Object.defineProperty(be,"DomHandler",{enumerable:!0,get:function(){return hy.DomHandler}});Object.defineProperty(be,"DefaultHandler",{enumerable:!0,get:function(){return hy.DomHandler}});function py(e,t){var r=new dy.DomHandler(void 0,t);return new fy.Parser(r,t).end(e),r.root}be.parseDocument=py;function my(e,t){return py(e,t).children}be.parseDOM=my;function _M(e,t,r){var n=new dy.DomHandler(e,t,r);return new fy.Parser(n,t)}be.createDomStream=_M;var TM=Nh();Object.defineProperty(be,"Tokenizer",{enumerable:!0,get:function(){return mM(TM).default}});be.ElementType=ly(As());var bM=Er(),EM=Er();Object.defineProperty(be,"getFeed",{enumerable:!0,get:function(){return EM.getFeed}});var AM={xmlMode:!0};function yM(e,t){return t===void 0&&(t=AM),(0,bM.getFeed)(my(e,t))}be.parseFeed=yM;be.DomUtils=ly(Er())});var by=U(ye=>{"use strict";var _y=ye&&ye.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),IM=ye&&ye.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),vM=ye&&ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&_y(t,e,r)},CM=ye&&ye.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&_y(t,e,r);return IM(t,e),t},DM=ye&&ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ye,"__esModule",{value:!0});ye.root=ye.parseHTML=ye.merge=ye.contains=ye.text=ye.xml=ye.html=ye.load=void 0;vM(xb(),ye);var SM=X1(),OM=dh(),Ty=ry(),xM=DM(Sd()),NM=gy(),RM=(0,OM.getParse)(function(e,t,r,n){return t.xmlMode||t._useHtmlParser2?(0,NM.parseDocument)(e,t):(0,Ty.parseWithParse5)(e,t,r,n)});ye.load=(0,SM.getLoad)(RM,function(e,t){return t.xmlMode||t._useHtmlParser2?(0,xM.default)(e,t):(0,Ty.renderWithParse5)(e)});ye.default=(0,ye.load)([]);var wh=Ai();Object.defineProperty(ye,"html",{enumerable:!0,get:function(){return wh.html}});Object.defineProperty(ye,"xml",{enumerable:!0,get:function(){return wh.xml}});Object.defineProperty(ye,"text",{enumerable:!0,get:function(){return wh.text}});var Kc=CM(Ai());ye.contains=Kc.contains;ye.merge=Kc.merge;ye.parseHTML=Kc.parseHTML;ye.root=Kc.root});var Ay=U((iU,Ey)=>{"use strict";var wM=by();function PM(e){let t=wM.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((s,a)=>{t(a).attr(i)&&r.push(t(a).attr(i))})}),r}Ey.exports=PM});var vy=U((sU,Iy)=>{"use strict";var{marked:yy}=Sb(),LM=Ay();Iy.exports=function(t,r=!1){yy.setOptions({mangle:!1});let n=yy(t);return LM(n)}});var wy={};qh(wy,{default:()=>kM,getServer:()=>Ry});function Ry(e){let t=Xl(e),r=xy.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 s=Ny.parse(n.url,!0);if(s.pathname==="/search"){let a=s.query.q,u=await t.search(a);i.statusCode=200,i.setHeader("Content-Type","application/json"),i.end(JSON.stringify(u))}else i.end()}}catch(s){i.statusCode=500,i.end(s)}});return{listen(n){console.log(`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 Au.Notice(`Omnisearch - Started non-localhost HTTP server at ${e.settings.DANGER_httpHost}:${n}`,12e4):e.settings.httpApiNotice&&new Au.Notice(`Omnisearch - Started HTTP server on port ${n}`)}),r.on("error",i=>{console.error(i),new Au.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 Au.Notice("Omnisearch - Terminated HTTP server")}}}var xy,Ny,Au,kM,Py=O(()=>{xy=Xe(require("http")),Ny=Xe(require("url")),Au=Xe(require("obsidian"));Zl();kM=Ry});qh(exports,{default:()=>Bh});var Ri=Xe(require("obsidian"));Ta();_l();Or();Zl();var je=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Je=Object.keys,Et=Array.isArray;typeof Promise!="undefined"&&!je.Promise&&(je.Promise=Promise);function Ot(e,t){return typeof t!="object"||Je(t).forEach(function(r){e[r]=t[r]}),e}var Ea=Object.getPrototypeOf,bO={}.hasOwnProperty;function Wt(e,t){return bO.call(e,t)}function us(e,t){typeof t=="function"&&(t=t(Ea(e))),(typeof Reflect=="undefined"?Je:Reflect.ownKeys)(t).forEach(r=>{Xr(e,r,t[r])})}var oT=Object.defineProperty;function Xr(e,t,r,n){oT(e,t,Ot(r&&Wt(r,"get")&&typeof r.get=="function"?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function os(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Xr(e.prototype,"constructor",e),{extend:us.bind(null,e.prototype)}}}}var EO=Object.getOwnPropertyDescriptor;function Jl(e,t){let r=EO(e,t),n;return r||(n=Ea(e))&&Jl(n,t)}var AO=[].slice;function Eo(e,t,r){return AO.call(e,t,r)}function cT(e,t){return t(e)}function Aa(e){if(!e)throw new Error("Assertion Failed")}function lT(e){je.setImmediate?setImmediate(e):setTimeout(e,0)}function fT(e,t){return e.reduce((r,n,i)=>{var s=t(n,i);return s&&(r[s[0]]=s[1]),r},{})}function yO(e,t,r){try{e.apply(null,r)}catch(n){t&&t(n)}}function Zr(e,t){if(typeof t=="string"&&Wt(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var r=[],n=0,i=t.length;n<i;++n){var s=Zr(e,t[n]);r.push(s)}return r}var a=t.indexOf(".");if(a!==-1){var u=e[t.substr(0,a)];return u==null?void 0:Zr(u,t.substr(a+1))}}function gr(e,t,r){if(!(!e||t===void 0)&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){Aa(typeof r!="string"&&"length"in r);for(var n=0,i=t.length;n<i;++n)gr(e,t[n],r[n])}else{var s=t.indexOf(".");if(s!==-1){var a=t.substr(0,s),u=t.substr(s+1);if(u==="")r===void 0?Et(e)&&!isNaN(parseInt(a))?e.splice(a,1):delete e[a]:e[a]=r;else{var o=e[a];(!o||!Wt(e,a))&&(o=e[a]={}),gr(o,u,r)}}else r===void 0?Et(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=r}}function IO(e,t){typeof t=="string"?gr(e,t,void 0):"length"in t&&[].map.call(t,function(r){gr(e,r,void 0)})}function dT(e){var t={};for(var r in e)Wt(e,r)&&(t[r]=e[r]);return t}var vO=[].concat;function hT(e){return vO.apply([],e)}var pT="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(hT([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>je[e]),CO=pT.map(e=>je[e]);fT(pT,e=>[e,!0]);var Rn=null;function ya(e){Rn=typeof WeakMap!="undefined"&&new WeakMap;let t=ef(e);return Rn=null,t}function ef(e){if(!e||typeof e!="object")return e;let t=Rn&&Rn.get(e);if(t)return t;if(Et(e)){t=[],Rn&&Rn.set(e,t);for(var r=0,n=e.length;r<n;++r)t.push(ef(e[r]))}else if(CO.indexOf(e.constructor)>=0)t=e;else{let s=Ea(e);t=s===Object.prototype?{}:Object.create(s),Rn&&Rn.set(e,t);for(var i in e)Wt(e,i)&&(t[i]=ef(e[i]))}return t}var{toString:DO}={};function tf(e){return DO.call(e).slice(8,-1)}var rf=typeof Symbol!="undefined"?Symbol.iterator:"@@iterator",SO=typeof rf=="symbol"?function(e){var t;return e!=null&&(t=e[rf])&&t.apply(e)}:function(){return null},cs={};function Jr(e){var t,r,n,i;if(arguments.length===1){if(Et(e))return e.slice();if(this===cs&&typeof e=="string")return[e];if(i=SO(e)){for(r=[];n=i.next(),!n.done;)r.push(n.value);return r}if(e==null)return[e];if(t=e.length,typeof t=="number"){for(r=new Array(t);t--;)r[t]=e[t];return r}return[e]}for(t=arguments.length,r=new Array(t);t--;)r[t]=arguments[t];return r}var nf=typeof Symbol!="undefined"?e=>e[Symbol.toStringTag]==="AsyncFunction":()=>!1,xr=typeof location!="undefined"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function mT(e,t){xr=e,gT=t}var gT=()=>!0,OO=!new Error("").stack;function ui(){if(OO)try{throw ui.arguments,new Error}catch(e){return e}return new Error}function sf(e,t){var r=e.stack;return r?(t=t||0,r.indexOf(e.name)===0&&(t+=(e.name+e.message).split(`
`).length),r.split(`
`).slice(t).filter(gT).map(n=>`
`+n).join("")):""}var xO=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],_T=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],af=xO.concat(_T),NO={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 ls(e,t){this._e=ui(),this.name=e,this.message=t}os(ls).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+sf(this._e,2))}},toString:function(){return this.name+": "+this.message}});function TT(e,t){return e+". Errors: "+Object.keys(t).map(r=>t[r].toString()).filter((r,n,i)=>i.indexOf(r)===n).join(`
`)}function Ao(e,t,r,n){this._e=ui(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=TT(e,t)}os(Ao).from(ls);function Ia(e,t){this._e=ui(),this.name="BulkError",this.failures=Object.keys(t).map(r=>t[r]),this.failuresByPos=t,this.message=TT(e,t)}os(Ia).from(ls);var uf=af.reduce((e,t)=>(e[t]=t+"Error",e),{}),RO=ls,ie=af.reduce((e,t)=>{var r=t+"Error";function n(i,s){this._e=ui(),this.name=r,i?typeof i=="string"?(this.message=`${i}${s?`
`+s:""}`,this.inner=s||null):typeof i=="object"&&(this.message=`${i.name} ${i.message}`,this.inner=i):(this.message=NO[t]||r,this.inner=null)}return os(n).from(RO),e[t]=n,e},{});ie.Syntax=SyntaxError;ie.Type=TypeError;ie.Range=RangeError;var bT=_T.reduce((e,t)=>(e[t+"Error"]=ie[t],e),{});function wO(e,t){if(!e||e instanceof ls||e instanceof TypeError||e instanceof SyntaxError||!e.name||!bT[e.name])return e;var r=new bT[e.name](t||e.message,e);return"stack"in e&&Xr(r,"stack",{get:function(){return this.inner.stack}}),r}var yo=af.reduce((e,t)=>(["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=ie[t]),e),{});yo.ModifyError=Ao;yo.DexieError=ls;yo.BulkError=Ia;function Ne(){}function va(e){return e}function PO(e,t){return e==null||e===va?t:function(r){return t(e(r))}}function oi(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function LO(e,t){return e===Ne?t:function(){var r=e.apply(this,arguments);r!==void 0&&(arguments[0]=r);var n=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?oi(n,this.onsuccess):n),i&&(this.onerror=this.onerror?oi(i,this.onerror):i),s!==void 0?s:r}}function MO(e,t){return e===Ne?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?oi(r,this.onsuccess):r),n&&(this.onerror=this.onerror?oi(n,this.onerror):n)}}function kO(e,t){return e===Ne?t:function(r){var n=e.apply(this,arguments);Ot(r,n);var i=this.onsuccess,s=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?oi(i,this.onsuccess):i),s&&(this.onerror=this.onerror?oi(s,this.onerror):s),n===void 0?a===void 0?void 0:a:Ot(n,a)}}function FO(e,t){return e===Ne?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function of(e,t){return e===Ne?t:function(){var r=e.apply(this,arguments);if(r&&typeof r.then=="function"){for(var n=this,i=arguments.length,s=new Array(i);i--;)s[i]=arguments[i];return r.then(function(){return t.apply(n,s)})}return t.apply(this,arguments)}}var Ca={},BO=100,jO=20,ET=100,[cf,Io,lf]=typeof Promise=="undefined"?[]:(()=>{let e=Promise.resolve();if(typeof crypto=="undefined"||!crypto.subtle)return[e,Ea(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,Ea(t),e]})(),AT=Io&&Io.then,vo=cf&&cf.constructor,ff=!!lf,df=!1,HO=lf?()=>{lf.then(Oo)}:je.setImmediate?setImmediate.bind(null,Oo):je.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{Oo(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(Oo,0)},Da=function(e,t){Sa.push([e,t]),Co&&(HO(),Co=!1)},hf=!0,Co=!0,ci=[],Do=[],pf=null,mf=va,fs={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:RT,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{RT(e[0],e[1])}catch{}})}},re=fs,Sa=[],li=0,So=[];function Y(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Ne,this._lib=!1;var t=this._PSD=re;if(xr&&(this._stackHolder=ui(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Ca)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&_f(this,this._value);return}this._state=null,this._value=null,++t.ref,IT(this,e)}var gf={get:function(){var e=re,t=Ro;function r(n,i){var s=!e.global&&(e!==re||t!==Ro);let a=s&&!en();var u=new Y((o,c)=>{Tf(this,new yT(Po(n,e,s,a),Po(i,e,s,a),o,c,e))});return xr&&DT(u,this),u}return r.prototype=Ca,r},set:function(e){Xr(this,"then",e&&e.prototype===Ca?gf:{get:function(){return e},set:gf.set})}};us(Y.prototype,{then:gf,_then:function(e,t){Tf(this,new yT(null,null,e,t,re))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],r=arguments[1];return typeof t=="function"?this.then(null,n=>n instanceof t?r(n):xo(n)):this.then(null,n=>n&&n.name===t?r(n):xo(n))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),xo(t)))},stack:{get:function(){if(this._stack)return this._stack;try{df=!0;var e=CT(this,[],jO),t=e.join(`
From previous: `);return this._state!==null&&(this._stack=t),t}finally{df=!1}}},timeout:function(e,t){return e<1/0?new Y((r,n)=>{var i=setTimeout(()=>n(new ie.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,i))}):this}});typeof Symbol!="undefined"&&Symbol.toStringTag&&Xr(Y.prototype,Symbol.toStringTag,"Dexie.Promise");fs.env=ST();function yT(e,t,r,n,i){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=r,this.reject=n,this.psd=i}us(Y,{all:function(){var e=Jr.apply(null,arguments).map(wo);return new Y(function(t,r){e.length===0&&t([]);var n=e.length;e.forEach((i,s)=>Y.resolve(i).then(a=>{e[s]=a,--n||t(e)},r))})},resolve:e=>{if(e instanceof Y)return e;if(e&&typeof e.then=="function")return new Y((r,n)=>{e.then(r,n)});var t=new Y(Ca,!0,e);return DT(t,pf),t},reject:xo,race:function(){var e=Jr.apply(null,arguments).map(wo);return new Y((t,r)=>{e.map(n=>Y.resolve(n).then(t,r))})},PSD:{get:()=>re,set:e=>re=e},totalEchoes:{get:()=>Ro},newPSD:wn,usePSD:hs,scheduler:{get:()=>Da,set:e=>{Da=e}},rejectionMapper:{get:()=>mf,set:e=>{mf=e}},follow:(e,t)=>new Y((r,n)=>wn((i,s)=>{var a=re;a.unhandleds=[],a.onunhandled=s,a.finalize=oi(function(){GO(()=>{this.unhandleds.length===0?i():s(this.unhandleds[0])})},a.finalize),e()},t,r,n))});vo&&(vo.allSettled&&Xr(Y,"allSettled",function(){let e=Jr.apply(null,arguments).map(wo);return new Y(t=>{e.length===0&&t([]);let r=e.length,n=new Array(r);e.forEach((i,s)=>Y.resolve(i).then(a=>n[s]={status:"fulfilled",value:a},a=>n[s]={status:"rejected",reason:a}).then(()=>--r||t(n)))})}),vo.any&&typeof AggregateError!="undefined"&&Xr(Y,"any",function(){let e=Jr.apply(null,arguments).map(wo);return new Y((t,r)=>{e.length===0&&r(new AggregateError([]));let n=e.length,i=new Array(n);e.forEach((s,a)=>Y.resolve(s).then(u=>t(u),u=>{i[a]=u,--n||r(new AggregateError(i))}))})}));function IT(e,t){try{t(r=>{if(e._state===null){if(r===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Oa();r&&typeof r.then=="function"?IT(e,(i,s)=>{r instanceof Y?r._then(i,s):r.then(i,s)}):(e._state=!0,e._value=r,vT(e)),n&&xa()}},_f.bind(null,e))}catch(r){_f(e,r)}}function _f(e,t){if(Do.push(t),e._state===null){var r=e._lib&&Oa();t=mf(t),e._state=!1,e._value=t,xr&&t!==null&&typeof t=="object"&&!t._promise&&yO(()=>{var n=Jl(t,"stack");t._promise=e,Xr(t,"stack",{get:()=>df?n&&(n.get?n.get.apply(t):n.value):e.stack})}),qO(e),vT(e),r&&xa()}}function vT(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)Tf(e,t[r]);var i=e._PSD;--i.ref||i.finalize(),li===0&&(++li,Da(()=>{--li==0&&bf()},[]))}function Tf(e,t){if(e._state===null){e._listeners.push(t);return}var r=e._state?t.onFulfilled:t.onRejected;if(r===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++li,Da(UO,[r,e,t])}function UO(e,t,r){try{pf=t;var n,i=t._value;t._state?n=e(i):(Do.length&&(Do=[]),n=e(i),Do.indexOf(i)===-1&&zO(t)),r.resolve(n)}catch(s){r.reject(s)}finally{pf=null,--li==0&&bf(),--r.psd.ref||r.psd.finalize()}}function CT(e,t,r){if(t.length===r)return t;var n="";if(e._state===!1){var i=e._value,s,a;i!=null?(s=i.name||"Error",a=i.message||i,n=sf(i,0)):(s=i,a=""),t.push(s+(a?": "+a:"")+n)}return xr&&(n=sf(e._stackHolder,2),n&&t.indexOf(n)===-1&&t.push(n),e._prev&&CT(e._prev,t,r)),t}function DT(e,t){var r=t?t._numPrev+1:0;r<BO&&(e._prev=t,e._numPrev=r)}function Oo(){Oa()&&xa()}function Oa(){var e=hf;return hf=!1,Co=!1,e}function xa(){var e,t,r;do for(;Sa.length>0;)for(e=Sa,Sa=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}while(Sa.length>0);hf=!0,Co=!0}function bf(){var e=ci;ci=[],e.forEach(n=>{n._PSD.onunhandled.call(null,n._value,n)});for(var t=So.slice(0),r=t.length;r;)t[--r]()}function GO(e){function t(){e(),So.splice(So.indexOf(t),1)}So.push(t),++li,Da(()=>{--li==0&&bf()},[])}function qO(e){ci.some(t=>t._value===e._value)||ci.push(e)}function zO(e){for(var t=ci.length;t;)if(ci[--t]._value===e._value){ci.splice(t,1);return}}function xo(e){return new Y(Ca,!1,e)}function ze(e,t){var r=re;return function(){var n=Oa(),i=re;try{return Pn(r,!0),e.apply(this,arguments)}catch(s){t&&t(s)}finally{Pn(i,!1),n&&xa()}}}var At={awaits:0,echoes:0,id:0},VO=0,No=[],Ef=0,Ro=0,KO=0;function wn(e,t,r,n){var i=re,s=Object.create(i);s.parent=i,s.ref=0,s.global=!1,s.id=++KO;var a=fs.env;s.env=ff?{Promise:Y,PromiseProp:{value:Y,configurable:!0,writable:!0},all:Y.all,race:Y.race,allSettled:Y.allSettled,any:Y.any,resolve:Y.resolve,reject:Y.reject,nthen:xT(a.nthen,s),gthen:xT(a.gthen,s)}:{},t&&Ot(s,t),++i.ref,s.finalize=function(){--this.parent.ref||this.parent.finalize()};var u=hs(s,e,r,n);return s.ref===0&&s.finalize(),u}function ds(){return At.id||(At.id=++VO),++At.awaits,At.echoes+=ET,At.id}function en(){return At.awaits?(--At.awaits==0&&(At.id=0),At.echoes=At.awaits*ET,!0):!1}(""+AT).indexOf("[native code]")===-1&&(ds=en=Ne);function wo(e){return At.echoes&&e&&e.constructor===vo?(ds(),e.then(t=>(en(),t),t=>(en(),rt(t)))):e}function WO(e){++Ro,(!At.echoes||--At.echoes==0)&&(At.echoes=At.id=0),No.push(re),Pn(e,!0)}function YO(){var e=No[No.length-1];No.pop(),Pn(e,!1)}function Pn(e,t){var r=re;if((t?At.echoes&&(!Ef++||e!==re):Ef&&(!--Ef||e!==re))&&OT(t?WO.bind(null,e):YO),e!==re&&(re=e,r===fs&&(fs.env=ST()),ff)){var n=fs.env.Promise,i=e.env;Io.then=i.nthen,n.prototype.then=i.gthen,(r.global||e.global)&&(Object.defineProperty(je,"Promise",i.PromiseProp),n.all=i.all,n.race=i.race,n.resolve=i.resolve,n.reject=i.reject,i.allSettled&&(n.allSettled=i.allSettled),i.any&&(n.any=i.any))}}function ST(){var e=je.Promise;return ff?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(je,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Io.then,gthen:e.prototype.then}:{}}function hs(e,t,r,n,i){var s=re;try{return Pn(e,!0),t(r,n,i)}finally{Pn(s,!1)}}function OT(e){AT.call(cf,e)}function Po(e,t,r,n){return typeof e!="function"?e:function(){var i=re;r&&ds(),Pn(t,!0);try{return e.apply(this,arguments)}finally{Pn(i,!1),n&&OT(en)}}}function xT(e,t){return function(r,n){return e.call(this,Po(r,t),Po(n,t))}}var NT="unhandledrejection";function RT(e,t){var r;try{r=t.onuncatched(e)}catch{}if(r!==!1)try{var n,i={promise:t,reason:e};if(je.document&&document.createEvent?(n=document.createEvent("Event"),n.initEvent(NT,!0,!0),Ot(n,i)):je.CustomEvent&&(n=new CustomEvent(NT,{detail:i}),Ot(n,i)),n&&je.dispatchEvent&&(dispatchEvent(n),!je.PromiseRejectionEvent&&je.onunhandledrejection))try{je.onunhandledrejection(n)}catch{}xr&&n&&!n.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch{}}var rt=Y.reject;function Af(e,t,r,n){if(!e.idbdb||!e._state.openComplete&&!re.letThrough&&!e._vip){if(e._state.openComplete)return rt(new ie.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return rt(new ie.DatabaseClosed);e.open().catch(Ne)}return e._state.dbReadyPromise.then(()=>Af(e,t,r,n))}else{var i=e._createTransaction(t,r,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(s){return s.name===uf.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>Af(e,t,r,n))):rt(s)}return i._promise(t,(s,a)=>wn(()=>(re.trans=i,n(s,a,i)))).then(s=>i._completion.then(()=>s))}}var wT="3.2.7",fi=String.fromCharCode(65535),yf=-1/0,tn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",PT="String expected.",Na=[],Lo=typeof navigator!="undefined"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),QO=Lo,$O=Lo,LT=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),Mo="__dbnames",If="readonly",vf="readwrite";function di(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var MT={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function ko(e){return typeof e=="string"&&!/\./.test(e)?t=>(t[e]===void 0&&e in t&&(t=ya(t),delete t[e]),t):t=>t}var kT=class{_trans(t,r,n){let i=this._tx||re.trans,s=this.name;function a(o,c,f){if(!f.schema[s])throw new ie.NotFound("Table "+s+" not part of transaction");return r(f.idbtrans,f)}let u=Oa();try{return i&&i.db===this.db?i===re.trans?i._promise(t,a,n):wn(()=>i._promise(t,a,n),{trans:i,transless:re.transless||re}):Af(this.db,t,[this.name],a)}finally{u&&xa()}}get(t,r){return t&&t.constructor===Object?this.where(t).first(r):this._trans("readonly",n=>this.core.get({trans:n,key:t}).then(i=>this.hook.reading.fire(i))).then(r)}where(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(Et(t))return new this.db.WhereClause(this,`[${t.join("+")}]`);let r=Je(t);if(r.length===1)return this.where(r[0]).equals(t[r[0]]);let n=this.schema.indexes.concat(this.schema.primKey).filter(c=>{if(c.compound&&r.every(f=>c.keyPath.indexOf(f)>=0)){for(let f=0;f<r.length;++f)if(r.indexOf(c.keyPath[f])===-1)return!1;return!0}return!1}).sort((c,f)=>c.keyPath.length-f.keyPath.length)[0];if(n&&this.db._maxKey!==fi){let c=n.keyPath.slice(0,r.length);return this.where(c).equals(c.map(f=>t[f]))}!n&&xr&&console.warn(`The query ${JSON.stringify(t)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);let{idxByName:i}=this.schema,s=this.db._deps.indexedDB;function a(c,f){try{return s.cmp(c,f)===0}catch{return!1}}let[u,o]=r.reduce(([c,f],h)=>{let d=i[h],_=t[h];return[c||d,c||!d?di(f,d&&d.multi?D=>{let E=Zr(D,h);return Et(E)&&E.some(g=>a(_,g))}:D=>a(_,Zr(D,h))):f]},[null,null]);return u?this.where(u.name).equals(t[u.keyPath]).filter(o):n?this.filter(o):this.where(r).equals("")}filter(t){return this.toCollection().and(t)}count(t){return this.toCollection().count(t)}offset(t){return this.toCollection().offset(t)}limit(t){return this.toCollection().limit(t)}each(t){return this.toCollection().each(t)}toArray(t){return this.toCollection().toArray(t)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(t){return new this.db.Collection(new this.db.WhereClause(this,Et(t)?`[${t.join("+")}]`:t))}reverse(){return this.toCollection().reverse()}mapToClass(t){this.schema.mappedClass=t;let r=n=>{if(!n)return n;let i=Object.create(t.prototype);for(var s in n)if(Wt(n,s))try{i[s]=n[s]}catch{}return i};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),t}defineClass(){function t(r){Ot(this,r)}return this.mapToClass(t)}add(t,r){let{auto:n,keyPath:i}=this.schema.primKey,s=t;return i&&n&&(s=ko(i)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[s]})).then(a=>a.numFailures?Y.reject(a.failures[0]):a.lastResult).then(a=>{if(i)try{gr(t,i,a)}catch{}return a})}update(t,r){if(typeof t=="object"&&!Et(t)){let n=Zr(t,this.schema.primKey.keyPath);if(n===void 0)return rt(new ie.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?Je(r).forEach(i=>{gr(t,i,r[i])}):r(t,{value:t,primKey:n})}catch{}return this.where(":id").equals(n).modify(r)}else return this.where(":id").equals(t).modify(r)}put(t,r){let{auto:n,keyPath:i}=this.schema.primKey,s=t;return i&&n&&(s=ko(i)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[s],keys:r!=null?[r]:null})).then(a=>a.numFailures?Y.reject(a.failures[0]):a.lastResult).then(a=>{if(i)try{gr(t,i,a)}catch{}return a})}delete(t){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[t]})).then(r=>r.numFailures?Y.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"deleteRange",range:MT})).then(t=>t.numFailures?Y.reject(t.failures[0]):void 0)}bulkGet(t){return this._trans("readonly",r=>this.core.getMany({keys:t,trans:r}).then(n=>n.map(i=>this.hook.reading.fire(i))))}bulkAdd(t,r,n){let i=Array.isArray(r)?r:void 0;n=n||(i?void 0:r);let s=n?n.allKeys:void 0;return this._trans("readwrite",a=>{let{auto:u,keyPath:o}=this.schema.primKey;if(o&&i)throw new ie.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new ie.InvalidArgument("Arguments objects and keys must have the same length");let c=t.length,f=o&&u?t.map(ko(o)):t;return this.core.mutate({trans:a,type:"add",keys:i,values:f,wantResults:s}).then(({numFailures:h,results:d,lastResult:_,failures:D})=>{let E=s?d:_;if(h===0)return E;throw new Ia(`${this.name}.bulkAdd(): ${h} of ${c} operations failed`,D)})})}bulkPut(t,r,n){let i=Array.isArray(r)?r:void 0;n=n||(i?void 0:r);let s=n?n.allKeys:void 0;return this._trans("readwrite",a=>{let{auto:u,keyPath:o}=this.schema.primKey;if(o&&i)throw new ie.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new ie.InvalidArgument("Arguments objects and keys must have the same length");let c=t.length,f=o&&u?t.map(ko(o)):t;return this.core.mutate({trans:a,type:"put",keys:i,values:f,wantResults:s}).then(({numFailures:h,results:d,lastResult:_,failures:D})=>{let E=s?d:_;if(h===0)return E;throw new Ia(`${this.name}.bulkPut(): ${h} of ${c} operations failed`,D)})})}bulkDelete(t){let r=t.length;return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"delete",keys:t})).then(({numFailures:n,lastResult:i,failures:s})=>{if(n===0)return i;throw new Ia(`${this.name}.bulkDelete(): ${n} of ${r} operations failed`,s)})}};function Ra(e){var t={},r=function(u,o){if(o){for(var c=arguments.length,f=new Array(c-1);--c;)f[c-1]=arguments[c];return t[u].subscribe.apply(null,f),e}else if(typeof u=="string")return t[u]};r.addEventType=s;for(var n=1,i=arguments.length;n<i;++n)s(arguments[n]);return r;function s(u,o,c){if(typeof u=="object")return a(u);o||(o=FO),c||(c=Ne);var f={subscribers:[],fire:c,subscribe:function(h){f.subscribers.indexOf(h)===-1&&(f.subscribers.push(h),f.fire=o(f.fire,h))},unsubscribe:function(h){f.subscribers=f.subscribers.filter(function(d){return d!==h}),f.fire=f.subscribers.reduce(o,c)}};return t[u]=r[u]=f,f}function a(u){Je(u).forEach(function(o){var c=u[o];if(Et(c))s(o,u[o][0],u[o][1]);else if(c==="asap")var f=s(o,va,function(){for(var d=arguments.length,_=new Array(d);d--;)_[d]=arguments[d];f.subscribers.forEach(function(D){lT(function(){D.apply(null,_)})})});else throw new ie.InvalidArgument("Invalid event config")})}}function wa(e,t){return os(t).from({prototype:e}),t}function XO(e){return wa(kT.prototype,function(r,n,i){this.db=e,this._tx=i,this.name=r,this.schema=n,this.hook=e._allTables[r]?e._allTables[r].hook:Ra(null,{creating:[LO,Ne],reading:[PO,va],updating:[kO,Ne],deleting:[MO,Ne]})})}function ps(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Cf(e,t){e.filter=di(e.filter,t)}function Df(e,t,r){var n=e.replayFilter;e.replayFilter=n?()=>di(n(),t()):t,e.justLimit=r&&!n}function ZO(e,t){e.isMatch=di(e.isMatch,t)}function Fo(e,t){if(e.isPrimKey)return t.primaryKey;let r=t.getIndexByKeyPath(e.index);if(!r)throw new ie.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function FT(e,t,r){let n=Fo(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:n,range:e.range}})}function Bo(e,t,r,n){let i=e.replayFilter?di(e.filter,e.replayFilter()):e.filter;if(e.or){let s={},a=(u,o,c)=>{if(!i||i(o,c,d=>o.stop(d),d=>o.fail(d))){var f=o.primaryKey,h=""+f;h==="[object ArrayBuffer]"&&(h=""+new Uint8Array(f)),Wt(s,h)||(s[h]=!0,t(u,o,c))}};return Promise.all([e.or._iterate(a,r),BT(FT(e,n,r),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}else return BT(FT(e,n,r),di(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function BT(e,t,r,n){var i=n?(a,u,o)=>r(n(a),u,o):r,s=ze(i);return e.then(a=>{if(a)return a.start(()=>{var u=()=>a.continue();(!t||t(a,o=>u=o,o=>{a.stop(o),u=Ne},o=>{a.fail(o),u=Ne}))&&s(a.value,a,o=>u=o),u()})})}function xt(e,t){try{let r=jT(e),n=jT(t);if(r!==n)return r==="Array"?1:n==="Array"?-1:r==="binary"?1:n==="binary"?-1:r==="string"?1:n==="string"?-1:r==="Date"?1:n!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return ex(HT(e),HT(t));case"Array":return JO(e,t)}}catch{}return NaN}function JO(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let s=0;s<i;++s){let a=xt(e[s],t[s]);if(a!==0)return a}return r===n?0:r<n?-1:1}function ex(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let s=0;s<i;++s)if(e[s]!==t[s])return e[s]<t[s]?-1:1;return r===n?0:r<n?-1:1}function jT(e){let t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";let r=tf(e);return r==="ArrayBuffer"?"binary":r}function HT(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var UT=class{_read(t,r){var n=this._ctx;return n.error?n.table._trans(null,rt.bind(null,n.error)):n.table._trans("readonly",t).then(r)}_write(t){var r=this._ctx;return r.error?r.table._trans(null,rt.bind(null,r.error)):r.table._trans("readwrite",t,"locked")}_addAlgorithm(t){var r=this._ctx;r.algorithm=di(r.algorithm,t)}_iterate(t,r){return Bo(this._ctx,t,r,this._ctx.table.core)}clone(t){var r=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&Ot(n,t),r._ctx=n,r}raw(){return this._ctx.valueMapper=null,this}each(t){var r=this._ctx;return this._read(n=>Bo(r,t,n,r.table.core))}count(t){return this._read(r=>{let n=this._ctx,i=n.table.core;if(ps(n,!0))return i.count({trans:r,query:{index:Fo(n,i.schema),range:n.range}}).then(a=>Math.min(a,n.limit));var s=0;return Bo(n,()=>(++s,!1),r,i).then(()=>s)}).then(t)}sortBy(t,r){let n=t.split(".").reverse(),i=n[0],s=n.length-1;function a(c,f){return f?a(c[n[f]],f-1):c[i]}var u=this._ctx.dir==="next"?1:-1;function o(c,f){var h=a(c,s),d=a(f,s);return h<d?-u:h>d?u:0}return this.toArray(function(c){return c.sort(o)}).then(r)}toArray(t){return this._read(r=>{var n=this._ctx;if(n.dir==="next"&&ps(n,!0)&&n.limit>0){let{valueMapper:i}=n,s=Fo(n,n.table.core.schema);return n.table.core.query({trans:r,limit:n.limit,values:!0,query:{index:s,range:n.range}}).then(({result:a})=>i?a.map(i):a)}else{let i=[];return Bo(n,s=>i.push(s),r,n.table.core).then(()=>i)}},t)}offset(t){var r=this._ctx;return t<=0?this:(r.offset+=t,ps(r)?Df(r,()=>{var n=t;return(i,s)=>n===0?!0:n===1?(--n,!1):(s(()=>{i.advance(n),n=0}),!1)}):Df(r,()=>{var n=t;return()=>--n<0}),this)}limit(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Df(this._ctx,()=>{var r=t;return function(n,i,s){return--r<=0&&i(s),r>=0}},!0),this}until(t,r){return Cf(this._ctx,function(n,i,s){return t(n.value)?(i(s),r):!0}),this}first(t){return this.limit(1).toArray(function(r){return r[0]}).then(t)}last(t){return this.reverse().first(t)}filter(t){return Cf(this._ctx,function(r){return t(r.value)}),ZO(this._ctx,t),this}and(t){return this.filter(t)}or(t){return new this.db.WhereClause(this._ctx.table,t,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,i){t(i.key,i)})}eachUniqueKey(t){return this._ctx.unique="unique",this.eachKey(t)}eachPrimaryKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,i){t(i.primaryKey,i)})}keys(t){var r=this._ctx;r.keysOnly=!r.isMatch;var n=[];return this.each(function(i,s){n.push(s.key)}).then(function(){return n}).then(t)}primaryKeys(t){var r=this._ctx;if(r.dir==="next"&&ps(r,!0)&&r.limit>0)return this._read(i=>{var s=Fo(r,r.table.core.schema);return r.table.core.query({trans:i,values:!1,limit:r.limit,query:{index:s,range:r.range}})}).then(({result:i})=>i).then(t);r.keysOnly=!r.isMatch;var n=[];return this.each(function(i,s){n.push(s.primaryKey)}).then(function(){return n}).then(t)}uniqueKeys(t){return this._ctx.unique="unique",this.keys(t)}firstKey(t){return this.limit(1).keys(function(r){return r[0]}).then(t)}lastKey(t){return this.reverse().firstKey(t)}distinct(){var t=this._ctx,r=t.index&&t.table.schema.idxByName[t.index];if(!r||!r.multi)return this;var n={};return Cf(this._ctx,function(i){var s=i.primaryKey.toString(),a=Wt(n,s);return n[s]=!0,!a}),this}modify(t){var r=this._ctx;return this._write(n=>{var i;if(typeof t=="function")i=t;else{var s=Je(t),a=s.length;i=function(E){for(var g=!1,p=0;p<a;++p){var A=s[p],I=t[A];Zr(E,A)!==I&&(gr(E,A,I),g=!0)}return g}}let u=r.table.core,{outbound:o,extractKey:c}=u.schema.primaryKey,f=this.db._options.modifyChunkSize||200,h=[],d=0,_=[],D=(E,g)=>{let{failures:p,numFailures:A}=g;d+=E-A;for(let I of Je(p))h.push(p[I])};return this.clone().primaryKeys().then(E=>{let g=p=>{let A=Math.min(f,E.length-p);return u.getMany({trans:n,keys:E.slice(p,p+A),cache:"immutable"}).then(I=>{let b=[],y=[],C=o?[]:null,S=[];for(let P=0;P<A;++P){let q=I[P],$={value:ya(q),primKey:E[p+P]};i.call($,$.value,$)!==!1&&($.value==null?S.push(E[p+P]):!o&&xt(c(q),c($.value))!==0?(S.push(E[p+P]),b.push($.value)):(y.push($.value),o&&C.push(E[p+P])))}let N=ps(r)&&r.limit===1/0&&(typeof t!="function"||t===Sf)&&{index:r.index,range:r.range};return Promise.resolve(b.length>0&&u.mutate({trans:n,type:"add",values:b}).then(P=>{for(let q in P.failures)S.splice(parseInt(q),1);D(b.length,P)})).then(()=>(y.length>0||N&&typeof t=="object")&&u.mutate({trans:n,type:"put",keys:C,values:y,criteria:N,changeSpec:typeof t!="function"&&t}).then(P=>D(y.length,P))).then(()=>(S.length>0||N&&t===Sf)&&u.mutate({trans:n,type:"delete",keys:S,criteria:N}).then(P=>D(S.length,P))).then(()=>E.length>p+A&&g(p+f))})};return g(0).then(()=>{if(h.length>0)throw new Ao("Error modifying one or more objects",h,d,_);return E.length})})})}delete(){var t=this._ctx,r=t.range;return ps(t)&&(t.isPrimKey&&!$O||r.type===3)?this._write(n=>{let{primaryKey:i}=t.table.core.schema,s=r;return t.table.core.count({trans:n,query:{index:i,range:s}}).then(a=>t.table.core.mutate({trans:n,type:"deleteRange",range:s}).then(({failures:u,lastResult:o,results:c,numFailures:f})=>{if(f)throw new Ao("Could not delete some values",Object.keys(u).map(h=>u[h]),a-f);return a-f}))}):this.modify(Sf)}},Sf=(e,t)=>t.value=null;function tx(e){return wa(UT.prototype,function(r,n){this.db=e;let i=MT,s=null;if(n)try{i=n()}catch(c){s=c}let a=r._ctx,u=a.table,o=u.hook.reading.fire;this._ctx={table:u,index:a.index,isPrimKey:!a.index||u.schema.primKey.keyPath&&a.index===u.schema.primKey.name,range:i,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:s,or:a.or,valueMapper:o!==va?o:null}})}function rx(e,t){return e<t?-1:e===t?0:1}function nx(e,t){return e>t?-1:e===t?0:1}function Yt(e,t,r){var n=e instanceof Of?new e.Collection(e):e;return n._ctx.error=r?new r(t):new TypeError(t),n}function ms(e){return new e.Collection(e,()=>GT("")).limit(0)}function ix(e){return e==="next"?t=>t.toUpperCase():t=>t.toLowerCase()}function sx(e){return e==="next"?t=>t.toLowerCase():t=>t.toUpperCase()}function ax(e,t,r,n,i,s){for(var a=Math.min(e.length,n.length),u=-1,o=0;o<a;++o){var c=t[o];if(c!==n[o])return i(e[o],r[o])<0?e.substr(0,o)+r[o]+r.substr(o+1):i(e[o],n[o])<0?e.substr(0,o)+n[o]+r.substr(o+1):u>=0?e.substr(0,u)+t[u]+r.substr(u+1):null;i(e[o],c)<0&&(u=o)}return a<n.length&&s==="next"?e+r.substr(e.length):a<e.length&&s==="prev"?e.substr(0,r.length):u<0?null:e.substr(0,u)+n[u]+r.substr(u+1)}function jo(e,t,r,n){var i,s,a,u,o,c,f,h=r.length;if(!r.every(E=>typeof E=="string"))return Yt(e,PT);function d(E){i=ix(E),s=sx(E),a=E==="next"?rx:nx;var g=r.map(function(p){return{lower:s(p),upper:i(p)}}).sort(function(p,A){return a(p.lower,A.lower)});u=g.map(function(p){return p.upper}),o=g.map(function(p){return p.lower}),c=E,f=E==="next"?"":n}d("next");var _=new e.Collection(e,()=>Ln(u[0],o[h-1]+n));_._ondirectionchange=function(E){d(E)};var D=0;return _._addAlgorithm(function(E,g,p){var A=E.key;if(typeof A!="string")return!1;var I=s(A);if(t(I,o,D))return!0;for(var b=null,y=D;y<h;++y){var C=ax(A,I,u[y],o[y],a,c);C===null&&b===null?D=y+1:(b===null||a(b,C)>0)&&(b=C)}return g(b!==null?function(){E.continue(b+f)}:p),!1}),_}function Ln(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function GT(e){return{type:1,lower:e,upper:e}}var Of=class{get Collection(){return this._ctx.table.db.Collection}between(t,r,n,i){n=n!==!1,i=i===!0;try{return this._cmp(t,r)>0||this._cmp(t,r)===0&&(n||i)&&!(n&&i)?ms(this):new this.Collection(this,()=>Ln(t,r,!n,!i))}catch{return Yt(this,tn)}}equals(t){return t==null?Yt(this,tn):new this.Collection(this,()=>GT(t))}above(t){return t==null?Yt(this,tn):new this.Collection(this,()=>Ln(t,void 0,!0))}aboveOrEqual(t){return t==null?Yt(this,tn):new this.Collection(this,()=>Ln(t,void 0,!1))}below(t){return t==null?Yt(this,tn):new this.Collection(this,()=>Ln(void 0,t,!1,!0))}belowOrEqual(t){return t==null?Yt(this,tn):new this.Collection(this,()=>Ln(void 0,t))}startsWith(t){return typeof t!="string"?Yt(this,PT):this.between(t,t+fi,!0,!0)}startsWithIgnoreCase(t){return t===""?this.startsWith(t):jo(this,(r,n)=>r.indexOf(n[0])===0,[t],fi)}equalsIgnoreCase(t){return jo(this,(r,n)=>r===n[0],[t],"")}anyOfIgnoreCase(){var t=Jr.apply(cs,arguments);return t.length===0?ms(this):jo(this,(r,n)=>n.indexOf(r)!==-1,t,"")}startsWithAnyOfIgnoreCase(){var t=Jr.apply(cs,arguments);return t.length===0?ms(this):jo(this,(r,n)=>n.some(i=>r.indexOf(i)===0),t,fi)}anyOf(){let t=Jr.apply(cs,arguments),r=this._cmp;try{t.sort(r)}catch{return Yt(this,tn)}if(t.length===0)return ms(this);let n=new this.Collection(this,()=>Ln(t[0],t[t.length-1]));n._ondirectionchange=s=>{r=s==="next"?this._ascending:this._descending,t.sort(r)};let i=0;return n._addAlgorithm((s,a,u)=>{let o=s.key;for(;r(o,t[i])>0;)if(++i,i===t.length)return a(u),!1;return r(o,t[i])===0?!0:(a(()=>{s.continue(t[i])}),!1)}),n}notEqual(t){return this.inAnyRange([[yf,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let t=Jr.apply(cs,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Yt(this,tn)}let r=t.reduce((n,i)=>n?n.concat([[n[n.length-1][1],i]]):[[yf,i]],null);return r.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(t,r){let n=this._cmp,i=this._ascending,s=this._descending,a=this._min,u=this._max;if(t.length===0)return ms(this);if(!t.every(b=>b[0]!==void 0&&b[1]!==void 0&&i(b[0],b[1])<=0))return Yt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ie.InvalidArgument);let o=!r||r.includeLowers!==!1,c=r&&r.includeUppers===!0;function f(b,y){let C=0,S=b.length;for(;C<S;++C){let N=b[C];if(n(y[0],N[1])<0&&n(y[1],N[0])>0){N[0]=a(N[0],y[0]),N[1]=u(N[1],y[1]);break}}return C===S&&b.push(y),b}let h=i;function d(b,y){return h(b[0],y[0])}let _;try{_=t.reduce(f,[]),_.sort(d)}catch{return Yt(this,tn)}let D=0,E=c?b=>i(b,_[D][1])>0:b=>i(b,_[D][1])>=0,g=o?b=>s(b,_[D][0])>0:b=>s(b,_[D][0])>=0;function p(b){return!E(b)&&!g(b)}let A=E,I=new this.Collection(this,()=>Ln(_[0][0],_[_.length-1][1],!o,!c));return I._ondirectionchange=b=>{b==="next"?(A=E,h=i):(A=g,h=s),_.sort(d)},I._addAlgorithm((b,y,C)=>{for(var S=b.key;A(S);)if(++D,D===_.length)return y(C),!1;return p(S)?!0:(this._cmp(S,_[D][1])===0||this._cmp(S,_[D][0])===0||y(()=>{h===i?b.continue(_[D][0]):b.continue(_[D][1])}),!1)}),I}startsWithAnyOf(){let t=Jr.apply(cs,arguments);return t.every(r=>typeof r=="string")?t.length===0?ms(this):this.inAnyRange(t.map(r=>[r,r+fi])):Yt(this,"startsWithAnyOf() only works with strings")}};function ux(e){return wa(Of.prototype,function(r,n,i){this.db=e,this._ctx={table:r,index:n===":id"?null:n,or:i};let s=e._deps.indexedDB;if(!s)throw new ie.MissingAPI;this._cmp=this._ascending=s.cmp.bind(s),this._descending=(a,u)=>s.cmp(u,a),this._max=(a,u)=>s.cmp(a,u)>0?a:u,this._min=(a,u)=>s.cmp(a,u)<0?a:u,this._IDBKeyRange=e._deps.IDBKeyRange})}function Nr(e){return ze(function(t){return Pa(t),e(t.target.error),!1})}function Pa(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var La="storagemutated",Mn="x-storagemutated-1",kn=Ra(null,La),qT=class{_lock(){return Aa(!re.global),++this._reculock,this._reculock===1&&!re.global&&(re.lockOwnerFor=this),this}_unlock(){if(Aa(!re.global),--this._reculock==0)for(re.global||(re.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{hs(t[1],t[0])}catch{}}return this}_locked(){return this._reculock&&re.lockOwnerFor!==this}create(t){if(!this.mode)return this;let r=this.db.idbdb,n=this.db._state.dbOpenError;if(Aa(!this.idbtrans),!t&&!r)switch(n&&n.name){case"DatabaseClosedError":throw new ie.DatabaseClosed(n);case"MissingAPIError":throw new ie.MissingAPI(n.message,n);default:throw new ie.OpenFailed(n)}if(!this.active)throw new ie.TransactionInactive;return Aa(this._completion._state===null),t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),t.onerror=ze(i=>{Pa(i),this._reject(t.error)}),t.onabort=ze(i=>{Pa(i),this.active&&this._reject(new ie.Abort(t.error)),this.active=!1,this.on("abort").fire(i)}),t.oncomplete=ze(()=>{this.active=!1,this._resolve(),"mutatedParts"in t&&kn.storagemutated.fire(t.mutatedParts)}),this}_promise(t,r,n){if(t==="readwrite"&&this.mode!=="readwrite")return rt(new ie.ReadOnly("Transaction is readonly"));if(!this.active)return rt(new ie.TransactionInactive);if(this._locked())return new Y((s,a)=>{this._blockedFuncs.push([()=>{this._promise(t,r,n).then(s,a)},re])});if(n)return wn(()=>{var s=new Y((a,u)=>{this._lock();let o=r(a,u,this);o&&o.then&&o.then(a,u)});return s.finally(()=>this._unlock()),s._lib=!0,s});var i=new Y((s,a)=>{var u=r(s,a,this);u&&u.then&&u.then(s,a)});return i._lib=!0,i}_root(){return this.parent?this.parent._root():this}waitFor(t){var r=this._root();let n=Y.resolve(t);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>n);else{r._waitingFor=n,r._waitingQueue=[];var i=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(i.get(-1/0).onsuccess=a)})()}var s=r._waitingFor;return new Y((a,u)=>{n.then(o=>r._waitingQueue.push(ze(a.bind(null,o))),o=>r._waitingQueue.push(ze(u.bind(null,o)))).finally(()=>{r._waitingFor===s&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ie.Abort))}table(t){let r=this._memoizedTables||(this._memoizedTables={});if(Wt(r,t))return r[t];let n=this.schema[t];if(!n)throw new ie.NotFound("Table "+t+" not part of transaction");let i=new this.db.Table(t,n,this);return i.core=this.db.core.table(t),r[t]=i,i}};function ox(e){return wa(qT.prototype,function(r,n,i,s,a){this.db=e,this.mode=r,this.storeNames=n,this.schema=i,this.chromeTransactionDurability=s,this.idbtrans=null,this.on=Ra(this,"complete","error","abort"),this.parent=a||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 Y((u,o)=>{this._resolve=u,this._reject=o}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},u=>{var o=this.active;return this.active=!1,this.on.error.fire(u),this.parent?this.parent._reject(u):o&&this.idbtrans&&this.idbtrans.abort(),rt(u)})})}function xf(e,t,r,n,i,s,a){return{name:e,keyPath:t,unique:r,multi:n,auto:i,compound:s,src:(r&&!a?"&":"")+(n?"*":"")+(i?"++":"")+zT(t)}}function zT(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function VT(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:fT(r,n=>[n.name,n])}}function cx(e){return e.length===1?e[0]:e}var Ma=e=>{try{return e.only([[]]),Ma=()=>[[]],[[]]}catch{return Ma=()=>fi,fi}};function Nf(e){return e==null?()=>{}:typeof e=="string"?lx(e):t=>Zr(t,e)}function lx(e){return e.split(".").length===1?r=>r[e]:r=>Zr(r,e)}function KT(e){return[].slice.call(e)}var fx=0;function ka(e){return e==null?":id":typeof e=="string"?e:`[${e.join("+")}]`}function dx(e,t,r){function n(f,h){let d=KT(f.objectStoreNames);return{schema:{name:f.name,tables:d.map(_=>h.objectStore(_)).map(_=>{let{keyPath:D,autoIncrement:E}=_,g=Et(D),p=D==null,A={},I={name:_.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:p,compound:g,keyPath:D,autoIncrement:E,unique:!0,extractKey:Nf(D)},indexes:KT(_.indexNames).map(b=>_.index(b)).map(b=>{let{name:y,unique:C,multiEntry:S,keyPath:N}=b,P=Et(N),q={name:y,compound:P,keyPath:N,unique:C,multiEntry:S,extractKey:Nf(N)};return A[ka(N)]=q,q}),getIndexByKeyPath:b=>A[ka(b)]};return A[":id"]=I.primaryKey,D!=null&&(A[ka(D)]=I.primaryKey),I})},hasGetAll:d.length>0&&"getAll"in h.objectStore(d[0])&&!(typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function i(f){if(f.type===3)return null;if(f.type===4)throw new Error("Cannot convert never type to IDBKeyRange");let{lower:h,upper:d,lowerOpen:_,upperOpen:D}=f;return h===void 0?d===void 0?null:t.upperBound(d,!!D):d===void 0?t.lowerBound(h,!!_):t.bound(h,d,!!_,!!D)}function s(f){let h=f.name;function d({trans:E,type:g,keys:p,values:A,range:I}){return new Promise((b,y)=>{b=ze(b);let C=E.objectStore(h),S=C.keyPath==null,N=g==="put"||g==="add";if(!N&&g!=="delete"&&g!=="deleteRange")throw new Error("Invalid operation type: "+g);let{length:P}=p||A||{length:1};if(p&&A&&p.length!==A.length)throw new Error("Given keys array must have same length as given values array.");if(P===0)return b({numFailures:0,failures:{},results:[],lastResult:void 0});let q,$=[],me=[],K=0,he=Ie=>{++K,Pa(Ie)};if(g==="deleteRange"){if(I.type===4)return b({numFailures:K,failures:me,results:[],lastResult:void 0});I.type===3?$.push(q=C.clear()):$.push(q=C.delete(i(I)))}else{let[Ie,Ke]=N?S?[A,p]:[A,null]:[p,null];if(N)for(let w=0;w<P;++w)$.push(q=Ke&&Ke[w]!==void 0?C[g](Ie[w],Ke[w]):C[g](Ie[w])),q.onerror=he;else for(let w=0;w<P;++w)$.push(q=C[g](Ie[w])),q.onerror=he}let ke=Ie=>{let Ke=Ie.target.result;$.forEach((w,F)=>w.error!=null&&(me[F]=w.error)),b({numFailures:K,failures:me,results:g==="delete"?p:$.map(w=>w.result),lastResult:Ke})};q.onerror=Ie=>{he(Ie),ke(Ie)},q.onsuccess=ke})}function _({trans:E,values:g,query:p,reverse:A,unique:I}){return new Promise((b,y)=>{b=ze(b);let{index:C,range:S}=p,N=E.objectStore(h),P=C.isPrimaryKey?N:N.index(C.name),q=A?I?"prevunique":"prev":I?"nextunique":"next",$=g||!("openKeyCursor"in P)?P.openCursor(i(S),q):P.openKeyCursor(i(S),q);$.onerror=Nr(y),$.onsuccess=ze(me=>{let K=$.result;if(!K){b(null);return}K.___id=++fx,K.done=!1;let he=K.continue.bind(K),ke=K.continuePrimaryKey;ke&&(ke=ke.bind(K));let Ie=K.advance.bind(K),Ke=()=>{throw new Error("Cursor not started")},w=()=>{throw new Error("Cursor not stopped")};K.trans=E,K.stop=K.continue=K.continuePrimaryKey=K.advance=Ke,K.fail=ze(y),K.next=function(){let F=1;return this.start(()=>F--?this.continue():this.stop()).then(()=>this)},K.start=F=>{let H=new Promise((de,Re)=>{de=ze(de),$.onerror=Nr(Re),K.fail=Re,K.stop=tt=>{K.stop=K.continue=K.continuePrimaryKey=K.advance=w,de(tt)}}),ee=()=>{if($.result)try{F()}catch(de){K.fail(de)}else K.done=!0,K.start=()=>{throw new Error("Cursor behind last entry")},K.stop()};return $.onsuccess=ze(de=>{$.onsuccess=ee,ee()}),K.continue=he,K.continuePrimaryKey=ke,K.advance=Ie,ee(),H},b(K)},y)})}function D(E){return g=>new Promise((p,A)=>{p=ze(p);let{trans:I,values:b,limit:y,query:C}=g,S=y===1/0?void 0:y,{index:N,range:P}=C,q=I.objectStore(h),$=N.isPrimaryKey?q:q.index(N.name),me=i(P);if(y===0)return p({result:[]});if(E){let K=b?$.getAll(me,S):$.getAllKeys(me,S);K.onsuccess=he=>p({result:he.target.result}),K.onerror=Nr(A)}else{let K=0,he=b||!("openKeyCursor"in $)?$.openCursor(me):$.openKeyCursor(me),ke=[];he.onsuccess=Ie=>{let Ke=he.result;if(!Ke)return p({result:ke});if(ke.push(b?Ke.value:Ke.primaryKey),++K===y)return p({result:ke});Ke.continue()},he.onerror=Nr(A)}})}return{name:h,schema:f,mutate:d,getMany({trans:E,keys:g}){return new Promise((p,A)=>{p=ze(p);let I=E.objectStore(h),b=g.length,y=new Array(b),C=0,S=0,N,P=$=>{let me=$.target;(y[me._pos]=me.result)!=null,++S===C&&p(y)},q=Nr(A);for(let $=0;$<b;++$)g[$]!=null&&(N=I.get(g[$]),N._pos=$,N.onsuccess=P,N.onerror=q,++C);C===0&&p(y)})},get({trans:E,key:g}){return new Promise((p,A)=>{p=ze(p);let b=E.objectStore(h).get(g);b.onsuccess=y=>p(y.target.result),b.onerror=Nr(A)})},query:D(u),openCursor:_,count({query:E,trans:g}){let{index:p,range:A}=E;return new Promise((I,b)=>{let y=g.objectStore(h),C=p.isPrimaryKey?y:y.index(p.name),S=i(A),N=S?C.count(S):C.count();N.onsuccess=ze(P=>I(P.target.result)),N.onerror=Nr(b)})}}}let{schema:a,hasGetAll:u}=n(e,r),o=a.tables.map(f=>s(f)),c={};return o.forEach(f=>c[f.name]=f),{stack:"dbcore",transaction:e.transaction.bind(e),table(f){if(!c[f])throw new Error(`Table '${f}' not found`);return c[f]},MIN_KEY:-1/0,MAX_KEY:Ma(t),schema:a}}function hx(e,t){return t.reduce((r,{create:n})=>J(J({},r),n(r)),e)}function px(e,t,{IDBKeyRange:r,indexedDB:n},i){return{dbcore:hx(dx(t,r,i),e.dbcore)}}function Rf({_novip:e},t){let r=t.db,n=px(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach(i=>{let s=i.name;e.core.schema.tables.some(a=>a.name===s)&&(i.core=e.core.table(s),e[s]instanceof e.Table&&(e[s].core=i.core))})}function Ho({_novip:e},t,r,n){r.forEach(i=>{let s=n[i];t.forEach(a=>{let u=Jl(a,i);(!u||"value"in u&&u.value===void 0)&&(a===e.Transaction.prototype||a instanceof e.Transaction?Xr(a,i,{get(){return this.table(i)},set(o){oT(this,i,{value:o,writable:!0,configurable:!0,enumerable:!0})}}):a[i]=new e.Table(i,s))})})}function wf({_novip:e},t){t.forEach(r=>{for(let n in r)r[n]instanceof e.Table&&delete r[n]})}function mx(e,t){return e._cfg.version-t._cfg.version}function gx(e,t,r,n){let i=e._dbSchema,s=e._createTransaction("readwrite",e._storeNames,i);s.create(r),s._completion.catch(n);let a=s._reject.bind(s),u=re.transless||re;wn(()=>{re.trans=s,re.transless=u,t===0?(Je(i).forEach(o=>{Pf(r,o,i[o].primKey,i[o].indexes)}),Rf(e,r),Y.follow(()=>e.on.populate.fire(s)).catch(a)):_x(e,t,s,r).catch(a)})}function _x({_novip:e},t,r,n){let i=[],s=e._versions,a=e._dbSchema=Mf(e,e.idbdb,n),u=!1;s.filter(f=>f._cfg.version>=t).forEach(f=>{i.push(()=>{let h=a,d=f._cfg.dbschema;kf(e,h,n),kf(e,d,n),a=e._dbSchema=d;let _=WT(h,d);_.add.forEach(E=>{Pf(n,E[0],E[1].primKey,E[1].indexes)}),_.change.forEach(E=>{if(E.recreate)throw new ie.Upgrade("Not yet support for changing primary key");{let g=n.objectStore(E.name);E.add.forEach(p=>Lf(g,p)),E.change.forEach(p=>{g.deleteIndex(p.name),Lf(g,p)}),E.del.forEach(p=>g.deleteIndex(p))}});let D=f._cfg.contentUpgrade;if(D&&f._cfg.version>t){Rf(e,n),r._memoizedTables={},u=!0;let E=dT(d);_.del.forEach(I=>{E[I]=h[I]}),wf(e,[e.Transaction.prototype]),Ho(e,[e.Transaction.prototype],Je(E),E),r.schema=E;let g=nf(D);g&&ds();let p,A=Y.follow(()=>{if(p=D(r),p&&g){var I=en.bind(null,null);p.then(I,I)}});return p&&typeof p.then=="function"?Y.resolve(p):A.then(()=>p)}}),i.push(h=>{if(!u||!QO){let d=f._cfg.dbschema;bx(d,h)}wf(e,[e.Transaction.prototype]),Ho(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),r.schema=e._dbSchema})});function c(){return i.length?Y.resolve(i.shift()(r.idbtrans)).then(c):Y.resolve()}return c().then(()=>{Tx(a,n)})}function WT(e,t){let r={del:[],add:[],change:[]},n;for(n in e)t[n]||r.del.push(n);for(n in t){let i=e[n],s=t[n];if(!i)r.add.push([n,s]);else{let a={name:n,def:s,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(s.primKey.keyPath||"")||i.primKey.auto!==s.primKey.auto&&!Lo)a.recreate=!0,r.change.push(a);else{let u=i.idxByName,o=s.idxByName,c;for(c in u)o[c]||a.del.push(c);for(c in o){let f=u[c],h=o[c];f?f.src!==h.src&&a.change.push(h):a.add.push(h)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}}return r}function Pf(e,t,r,n){let i=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(s=>Lf(i,s)),i}function Tx(e,t){Je(e).forEach(r=>{t.db.objectStoreNames.contains(r)||Pf(t,r,e[r].primKey,e[r].indexes)})}function bx(e,t){[].slice.call(t.db.objectStoreNames).forEach(r=>e[r]==null&&t.db.deleteObjectStore(r))}function Lf(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Mf(e,t,r){let n={};return Eo(t.objectStoreNames,0).forEach(s=>{let a=r.objectStore(s),u=a.keyPath,o=xf(zT(u),u||"",!1,!1,!!a.autoIncrement,u&&typeof u!="string",!0),c=[];for(let h=0;h<a.indexNames.length;++h){let d=a.index(a.indexNames[h]);u=d.keyPath;var f=xf(d.name,u,!!d.unique,!!d.multiEntry,!1,u&&typeof u!="string",!1);c.push(f)}n[s]=VT(s,o,c)}),n}function Ex({_novip:e},t,r){e.verno=t.version/10;let n=e._dbSchema=Mf(e,t,r);e._storeNames=Eo(t.objectStoreNames,0),Ho(e,[e._allTables],Je(n),n)}function Ax(e,t){let r=Mf(e,e.idbdb,t),n=WT(r,e._dbSchema);return!(n.add.length||n.change.some(i=>i.add.length||i.change.length))}function kf({_novip:e},t,r){let n=r.db.objectStoreNames;for(let i=0;i<n.length;++i){let s=n[i],a=r.objectStore(s);e._hasGetAll="getAll"in a;for(let u=0;u<a.indexNames.length;++u){let o=a.indexNames[u],c=a.index(o).keyPath,f=typeof c=="string"?c:"["+Eo(c).join("+")+"]";if(t[s]){let h=t[s].idxByName[f];h&&(h.name=o,delete t[s].idxByName[f],t[s].idxByName[o]=h)}}}typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&je.WorkerGlobalScope&&je instanceof je.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function yx(e){return e.split(",").map((t,r)=>{t=t.trim();let n=t.replace(/([&*]|\+\+)/g,""),i=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return xf(n,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),Et(i),r===0)})}var YT=class{_parseStoresSpec(t,r){Je(t).forEach(n=>{if(t[n]!==null){var i=yx(t[n]),s=i.shift();if(s.multi)throw new ie.Schema("Primary key cannot be multi-valued");i.forEach(a=>{if(a.auto)throw new ie.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new ie.Schema("Index must have a name and cannot be an empty string")}),r[n]=VT(n,s,i)}})}stores(t){let r=this.db;this._cfg.storesSource=this._cfg.storesSource?Ot(this._cfg.storesSource,t):t;let n=r._versions,i={},s={};return n.forEach(a=>{Ot(i,a._cfg.storesSource),s=a._cfg.dbschema={},a._parseStoresSpec(i,s)}),r._dbSchema=s,wf(r,[r._allTables,r,r.Transaction.prototype]),Ho(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],Je(s),s),r._storeNames=Je(s),this}upgrade(t){return this._cfg.contentUpgrade=of(this._cfg.contentUpgrade||Ne,t),this}};function Ix(e){return wa(YT.prototype,function(r){this.db=e,this._cfg={version:r,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function Ff(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new nn(Mo,{addons:[],indexedDB:e,IDBKeyRange:t}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function Bf(e){return e&&typeof e.databases=="function"}function vx({indexedDB:e,IDBKeyRange:t}){return Bf(e)?Promise.resolve(e.databases()).then(r=>r.map(n=>n.name).filter(n=>n!==Mo)):Ff(e,t).toCollection().primaryKeys()}function Cx({indexedDB:e,IDBKeyRange:t},r){!Bf(e)&&r!==Mo&&Ff(e,t).put({name:r}).catch(Ne)}function Dx({indexedDB:e,IDBKeyRange:t},r){!Bf(e)&&r!==Mo&&Ff(e,t).delete(r).catch(Ne)}function jf(e){return wn(function(){return re.letThrough=!0,e()})}function Sx(){var e=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!e||!indexedDB.databases)return Promise.resolve();var t;return new Promise(function(r){var n=function(){return indexedDB.databases().finally(r)};t=setInterval(n,100),n()}).finally(function(){return clearInterval(t)})}function Ox(e){let t=e._state,{indexedDB:r}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(()=>t.dbOpenError?rt(t.dbOpenError):e);xr&&(t.openCanceller._stackHolder=ui()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;let n=t.openCanceller;function i(){if(t.openCanceller!==n)throw new ie.DatabaseClosed("db.open() was cancelled")}let s=t.dbReadyResolve,a=null,u=!1,o=()=>new Y((c,f)=>{if(i(),!r)throw new ie.MissingAPI;let h=e.name,d=t.autoSchema?r.open(h):r.open(h,Math.round(e.verno*10));if(!d)throw new ie.MissingAPI;d.onerror=Nr(f),d.onblocked=ze(e._fireOnBlocked),d.onupgradeneeded=ze(_=>{if(a=d.transaction,t.autoSchema&&!e._options.allowEmptyDB){d.onerror=Pa,a.abort(),d.result.close();let E=r.deleteDatabase(h);E.onsuccess=E.onerror=ze(()=>{f(new ie.NoSuchDatabase(`Database ${h} doesnt exist`))})}else{a.onerror=Nr(f);var D=_.oldVersion>Math.pow(2,62)?0:_.oldVersion;u=D<1,e._novip.idbdb=d.result,gx(e,D/10,a,f)}},f),d.onsuccess=ze(()=>{a=null;let _=e._novip.idbdb=d.result,D=Eo(_.objectStoreNames);if(D.length>0)try{let E=_.transaction(cx(D),"readonly");t.autoSchema?Ex(e,_,E):(kf(e,e._dbSchema,E),Ax(e,E)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Rf(e,E)}catch{}Na.push(e),_.onversionchange=ze(E=>{t.vcFired=!0,e.on("versionchange").fire(E)}),_.onclose=ze(E=>{e.on("close").fire(E)}),u&&Cx(e._deps,h),c()},f)}).catch(c=>c&&c.name==="UnknownError"&&t.PR1398_maxLoop>0?(t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),o()):Y.reject(c));return Y.race([n,(typeof navigator=="undefined"?Y.resolve():Sx()).then(o)]).then(()=>(i(),t.onReadyBeingFired=[],Y.resolve(jf(()=>e.on.ready.fire(e.vip))).then(function c(){if(t.onReadyBeingFired.length>0){let f=t.onReadyBeingFired.reduce(of,Ne);return t.onReadyBeingFired=[],Y.resolve(jf(()=>f(e.vip))).then(c)}}))).finally(()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(()=>e).catch(c=>{t.dbOpenError=c;try{a&&a.abort()}catch{}return n===t.openCanceller&&e._close(),rt(c)}).finally(()=>{t.openComplete=!0,s()})}function Hf(e){var t=a=>e.next(a),r=a=>e.throw(a),n=s(t),i=s(r);function s(a){return u=>{var o=a(u),c=o.value;return o.done?c:!c||typeof c.then!="function"?Et(c)?Promise.all(c).then(n,i):n(c):c.then(n,i)}}return s(t)()}function xx(e,t,r){var n=arguments.length;if(n<2)throw new ie.InvalidArgument("Too few arguments");for(var i=new Array(n-1);--n;)i[n-1]=arguments[n];r=i.pop();var s=hT(i);return[e,s,r]}function QT(e,t,r,n,i){return Y.resolve().then(()=>{let s=re.transless||re,a=e._createTransaction(t,r,e._dbSchema,n),u={trans:a,transless:s};if(n)a.idbtrans=n.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(h){return h.name===uf.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>QT(e,t,r,null,i))):rt(h)}let o=nf(i);o&&ds();let c,f=Y.follow(()=>{if(c=i.call(a,a),c)if(o){var h=en.bind(null,null);c.then(h,h)}else typeof c.next=="function"&&typeof c.throw=="function"&&(c=Hf(c))},u);return(c&&typeof c.then=="function"?Y.resolve(c).then(h=>a.active?h:rt(new ie.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):f.then(()=>c)).then(h=>(n&&a._resolve(),a._completion.then(()=>h))).catch(h=>(a._reject(h),rt(h)))})}function Uo(e,t,r){let n=Et(e)?e.slice():[e];for(let i=0;i<r;++i)n.push(t);return n}function Nx(e){return Fe(J({},e),{table(t){let r=e.table(t),{schema:n}=r,i={},s=[];function a(d,_,D){let E=ka(d),g=i[E]=i[E]||[],p=d==null?0:typeof d=="string"?1:d.length,A=_>0,I=Fe(J({},D),{isVirtual:A,keyTail:_,keyLength:p,extractKey:Nf(d),unique:!A&&D.unique});if(g.push(I),I.isPrimaryKey||s.push(I),p>1){let b=p===2?d[0]:d.slice(0,p-1);a(b,_+1,D)}return g.sort((b,y)=>b.keyTail-y.keyTail),I}let u=a(n.primaryKey.keyPath,0,n.primaryKey);i[":id"]=[u];for(let d of n.indexes)a(d.keyPath,0,d);function o(d){let _=i[ka(d)];return _&&_[0]}function c(d,_){return{type:d.type===1?2:d.type,lower:Uo(d.lower,d.lowerOpen?e.MAX_KEY:e.MIN_KEY,_),lowerOpen:!0,upper:Uo(d.upper,d.upperOpen?e.MIN_KEY:e.MAX_KEY,_),upperOpen:!0}}function f(d){let _=d.query.index;return _.isVirtual?Fe(J({},d),{query:{index:_,range:c(d.query.range,_.keyTail)}}):d}return Fe(J({},r),{schema:Fe(J({},n),{primaryKey:u,indexes:s,getIndexByKeyPath:o}),count(d){return r.count(f(d))},query(d){return r.query(f(d))},openCursor(d){let{keyTail:_,isVirtual:D,keyLength:E}=d.query.index;if(!D)return r.openCursor(d);function g(p){function A(b){b!=null?p.continue(Uo(b,d.reverse?e.MAX_KEY:e.MIN_KEY,_)):d.unique?p.continue(p.key.slice(0,E).concat(d.reverse?e.MIN_KEY:e.MAX_KEY,_)):p.continue()}return Object.create(p,{continue:{value:A},continuePrimaryKey:{value(b,y){p.continuePrimaryKey(Uo(b,e.MAX_KEY,_),y)}},primaryKey:{get(){return p.primaryKey}},key:{get(){let b=p.key;return E===1?b[0]:b.slice(0,E)}},value:{get(){return p.value}}})}return r.openCursor(f(d)).then(p=>p&&g(p))}})}})}var Rx={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:Nx};function Uf(e,t,r,n){return r=r||{},n=n||"",Je(e).forEach(i=>{if(!Wt(t,i))r[n+i]=void 0;else{var s=e[i],a=t[i];if(typeof s=="object"&&typeof a=="object"&&s&&a){let u=tf(s),o=tf(a);u!==o?r[n+i]=t[i]:u==="Object"?Uf(s,a,r,n+i+"."):s!==a&&(r[n+i]=t[i])}else s!==a&&(r[n+i]=t[i])}}),Je(t).forEach(i=>{Wt(e,i)||(r[n+i]=t[i])}),r}function wx(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var Px={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>Fe(J({},e),{table(t){let r=e.table(t),{primaryKey:n}=r.schema;return Fe(J({},r),{mutate(s){let a=re.trans,{deleting:u,creating:o,updating:c}=a.table(t).hook;switch(s.type){case"add":if(o.fire===Ne)break;return a._promise("readwrite",()=>f(s),!0);case"put":if(o.fire===Ne&&c.fire===Ne)break;return a._promise("readwrite",()=>f(s),!0);case"delete":if(u.fire===Ne)break;return a._promise("readwrite",()=>f(s),!0);case"deleteRange":if(u.fire===Ne)break;return a._promise("readwrite",()=>h(s),!0)}return r.mutate(s);function f(_){let D=re.trans,E=_.keys||wx(n,_);if(!E)throw new Error("Keys missing");return _=_.type==="add"||_.type==="put"?Fe(J({},_),{keys:E}):J({},_),_.type!=="delete"&&(_.values=[..._.values]),_.keys&&(_.keys=[..._.keys]),Lx(r,_,E).then(g=>{let p=E.map((A,I)=>{let b=g[I],y={onerror:null,onsuccess:null};if(_.type==="delete")u.fire.call(y,A,b,D);else if(_.type==="add"||b===void 0){let C=o.fire.call(y,A,_.values[I],D);A==null&&C!=null&&(A=C,_.keys[I]=A,n.outbound||gr(_.values[I],n.keyPath,A))}else{let C=Uf(b,_.values[I]),S=c.fire.call(y,C,A,b,D);if(S){let N=_.values[I];Object.keys(S).forEach(P=>{Wt(N,P)?N[P]=S[P]:gr(N,P,S[P])})}}return y});return r.mutate(_).then(({failures:A,results:I,numFailures:b,lastResult:y})=>{for(let C=0;C<E.length;++C){let S=I?I[C]:E[C],N=p[C];S==null?N.onerror&&N.onerror(A[C]):N.onsuccess&&N.onsuccess(_.type==="put"&&g[C]?_.values[C]:S)}return{failures:A,results:I,numFailures:b,lastResult:y}}).catch(A=>(p.forEach(I=>I.onerror&&I.onerror(A)),Promise.reject(A)))})}function h(_){return d(_.trans,_.range,1e4)}function d(_,D,E){return r.query({trans:_,values:!1,query:{index:n,range:D},limit:E}).then(({result:g})=>f({type:"delete",keys:g,trans:_}).then(p=>p.numFailures>0?Promise.reject(p.failures[0]):g.length<E?{failures:[],numFailures:0,lastResult:void 0}:d(_,Fe(J({},D),{lower:g[g.length-1],lowerOpen:!0}),E)))}}})}})};function Lx(e,t,r){return t.type==="add"?Promise.resolve([]):e.getMany({trans:t.trans,keys:r,cache:"immutable"})}function $T(e,t,r){try{if(!t||t.keys.length<e.length)return null;let n=[];for(let i=0,s=0;i<t.keys.length&&s<e.length;++i)xt(t.keys[i],e[s])===0&&(n.push(r?ya(t.values[i]):t.values[i]),++s);return n.length===e.length?n:null}catch{return null}}var Mx={stack:"dbcore",level:-1,create:e=>({table:t=>{let r=e.table(t);return Fe(J({},r),{getMany:n=>{if(!n.cache)return r.getMany(n);let i=$T(n.keys,n.trans._cache,n.cache==="clone");return i?Y.resolve(i):r.getMany(n).then(s=>(n.trans._cache={keys:n.keys,values:n.cache==="clone"?ya(s):s},s))},mutate:n=>(n.type!=="add"&&(n.trans._cache=null),r.mutate(n))})}})};function Gf(e){return!("from"in e)}var rn=function(e,t){if(this)Ot(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0});else{let r=new rn;return e&&"d"in e&&Ot(r,e),r}};us(rn.prototype,{add(e){return Go(this,e),this},addKey(e){return Fa(this,e,e),this},addKeys(e){return e.forEach(t=>Fa(this,t,t)),this},[rf](){return qf(this)}});function Fa(e,t,r){let n=xt(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(Gf(e))return Ot(e,{from:t,to:r,d:1});let i=e.l,s=e.r;if(xt(r,e.from)<0)return i?Fa(i,t,r):e.l={from:t,to:r,d:1,l:null,r:null},XT(e);if(xt(t,e.to)>0)return s?Fa(s,t,r):e.r={from:t,to:r,d:1,l:null,r:null},XT(e);xt(t,e.from)<0&&(e.from=t,e.l=null,e.d=s?s.d+1:1),xt(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);let a=!e.r;i&&!e.l&&Go(e,i),s&&a&&Go(e,s)}function Go(e,t){function r(n,{from:i,to:s,l:a,r:u}){Fa(n,i,s),a&&r(n,a),u&&r(n,u)}Gf(t)||r(e,t)}function kx(e,t){let r=qf(t),n=r.next();if(n.done)return!1;let i=n.value,s=qf(e),a=s.next(i.from),u=a.value;for(;!n.done&&!a.done;){if(xt(u.from,i.to)<=0&&xt(u.to,i.from)>=0)return!0;xt(i.from,u.from)<0?i=(n=r.next(u.from)).value:u=(a=s.next(i.from)).value}return!1}function qf(e){let t=Gf(e)?null:{s:0,n:e};return{next(r){let n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&xt(r,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||xt(r,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function XT(e){var t,r;let n=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((r=e.l)===null||r===void 0?void 0:r.d)||0),i=n>1?"r":n<-1?"l":"";if(i){let s=i==="r"?"l":"r",a=J({},e),u=e[i];e.from=u.from,e.to=u.to,e[i]=u[i],a[i]=u[s],e[s]=a,a.d=ZT(a)}e.d=ZT(e)}function ZT({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}var Fx={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,r=new rn(e.MIN_KEY,e.MAX_KEY);return Fe(J({},e),{table:n=>{let i=e.table(n),{schema:s}=i,{primaryKey:a}=s,{extractKey:u,outbound:o}=a,c=Fe(J({},i),{mutate:d=>{let _=d.trans,D=_.mutatedParts||(_.mutatedParts={}),E=C=>{let S=`idb://${t}/${n}/${C}`;return D[S]||(D[S]=new rn)},g=E(""),p=E(":dels"),{type:A}=d,[I,b]=d.type==="deleteRange"?[d.range]:d.type==="delete"?[d.keys]:d.values.length<50?[[],d.values]:[],y=d.trans._cache;return i.mutate(d).then(C=>{if(Et(I)){A!=="delete"&&(I=C.results),g.addKeys(I);let S=$T(I,y);!S&&A!=="add"&&p.addKeys(I),(S||b)&&Bx(E,s,S,b)}else if(I){let S={from:I.lower,to:I.upper};p.add(S),g.add(S)}else g.add(r),p.add(r),s.indexes.forEach(S=>E(S.name).add(r));return C})}}),f=({query:{index:d,range:_}})=>{var D,E;return[d,new rn((D=_.lower)!==null&&D!==void 0?D:e.MIN_KEY,(E=_.upper)!==null&&E!==void 0?E:e.MAX_KEY)]},h={get:d=>[a,new rn(d.key)],getMany:d=>[a,new rn().addKeys(d.keys)],count:f,query:f,openCursor:f};return Je(h).forEach(d=>{c[d]=function(_){let{subscr:D}=re;if(D){let E=b=>{let y=`idb://${t}/${n}/${b}`;return D[y]||(D[y]=new rn)},g=E(""),p=E(":dels"),[A,I]=h[d](_);if(E(A.name||"").add(I),!A.isPrimaryKey)if(d==="count")p.add(r);else{let b=d==="query"&&o&&_.values&&i.query(Fe(J({},_),{values:!1}));return i[d].apply(this,arguments).then(y=>{if(d==="query"){if(o&&_.values)return b.then(({result:S})=>(g.addKeys(S),y));let C=_.values?y.result.map(u):y.result;_.values?g.addKeys(C):p.addKeys(C)}else if(d==="openCursor"){let C=y,S=_.values;return C&&Object.create(C,{key:{get(){return p.addKey(C.primaryKey),C.key}},primaryKey:{get(){let N=C.primaryKey;return p.addKey(N),N}},value:{get(){return S&&g.addKey(C.primaryKey),C.value}}})}return y})}}return i[d].apply(this,arguments)}}),c}})}};function Bx(e,t,r,n){function i(s){let a=e(s.name||"");function u(c){return c!=null?s.extractKey(c):null}let o=c=>s.multiEntry&&Et(c)?c.forEach(f=>a.addKey(f)):a.addKey(c);(r||n).forEach((c,f)=>{let h=r&&u(r[f]),d=n&&u(n[f]);xt(h,d)!==0&&(h!=null&&o(h),d!=null&&o(d))})}t.indexes.forEach(i)}var nn=class{constructor(t,r){this._middlewares={},this.verno=0;let n=nn.dependencies;this._options=r=J({addons:nn.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange},r),this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};let{addons:i}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;let s={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Ne,dbReadyPromise:null,cancelOpen:Ne,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};s.dbReadyPromise=new Y(a=>{s.dbReadyResolve=a}),s.openCanceller=new Y((a,u)=>{s.cancelOpen=u}),this._state=s,this.name=t,this.on=Ra(this,"populate","blocked","versionchange","close",{ready:[of,Ne]}),this.on.ready.subscribe=cT(this.on.ready.subscribe,a=>(u,o)=>{nn.vip(()=>{let c=this._state;if(c.openComplete)c.dbOpenError||Y.resolve().then(u),o&&a(u);else if(c.onReadyBeingFired)c.onReadyBeingFired.push(u),o&&a(u);else{a(u);let f=this;o||a(function h(){f.on.ready.unsubscribe(u),f.on.ready.unsubscribe(h)})}})}),this.Collection=tx(this),this.Table=XO(this),this.Transaction=ox(this),this.Version=Ix(this),this.WhereClause=ux(this),this.on("versionchange",a=>{a.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",a=>{!a.newVersion||a.newVersion<a.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${a.oldVersion/10}`)}),this._maxKey=Ma(r.IDBKeyRange),this._createTransaction=(a,u,o,c)=>new this.Transaction(a,u,o,this._options.chromeTransactionDurability,c),this._fireOnBlocked=a=>{this.on("blocked").fire(a),Na.filter(u=>u.name===this.name&&u!==this&&!u._state.vcFired).map(u=>u.on("versionchange").fire(a))},this.use(Rx),this.use(Px),this.use(Fx),this.use(Mx),this.vip=Object.create(this,{_vip:{value:!0}}),i.forEach(a=>a(this))}version(t){if(isNaN(t)||t<.1)throw new ie.Type("Given version is not a positive number");if(t=Math.round(t*10)/10,this.idbdb||this._state.isBeingOpened)throw new ie.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);let r=this._versions;var n=r.filter(i=>i._cfg.version===t)[0];return n||(n=new this.Version(t),r.push(n),r.sort(mx),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(t){return this.idbdb&&(this._state.openComplete||re.letThrough||this._vip)?t():new Y((r,n)=>{if(this._state.openComplete)return n(new ie.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen){n(new ie.DatabaseClosed);return}this.open().catch(Ne)}this._state.dbReadyPromise.then(r,n)}).then(t)}use({stack:t,create:r,level:n,name:i}){i&&this.unuse({stack:t,name:i});let s=this._middlewares[t]||(this._middlewares[t]=[]);return s.push({stack:t,create:r,level:n??10,name:i}),s.sort((a,u)=>a.level-u.level),this}unuse({stack:t,name:r,create:n}){return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(i=>n?i.create!==n:r?i.name!==r:!1)),this}open(){return Ox(this)}_close(){let t=this._state,r=Na.indexOf(this);if(r>=0&&Na.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new Y(n=>{t.dbReadyResolve=n}),t.openCanceller=new Y((n,i)=>{t.cancelOpen=i})}close(){this._close();let t=this._state;this._options.autoOpen=!1,t.dbOpenError=new ie.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}delete(){let t=arguments.length>0,r=this._state;return new Y((n,i)=>{let s=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=ze(()=>{Dx(this._deps,this.name),n()}),a.onerror=Nr(i),a.onblocked=this._fireOnBlocked};if(t)throw new ie.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(s):s()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){let t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return Je(this._allTables).map(t=>this._allTables[t])}transaction(){let t=xx.apply(this,arguments);return this._transaction.apply(this,t)}_transaction(t,r,n){let i=re.trans;(!i||i.db!==this||t.indexOf("!")!==-1)&&(i=null);let s=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");let a,u;try{if(u=r.map(c=>{var f=c instanceof this.Table?c.name:c;if(typeof f!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return f}),t=="r"||t===If)a=If;else if(t=="rw"||t==vf)a=vf;else throw new ie.InvalidArgument("Invalid transaction mode: "+t);if(i){if(i.mode===If&&a===vf)if(s)i=null;else throw new ie.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i&&u.forEach(c=>{if(i&&i.storeNames.indexOf(c)===-1)if(s)i=null;else throw new ie.SubTransaction("Table "+c+" not included in parent transaction.")}),s&&i&&!i.active&&(i=null)}}catch(c){return i?i._promise(null,(f,h)=>{h(c)}):rt(c)}let o=QT.bind(null,this,a,u,i,n);return i?i._promise(a,o,"lock"):re.trans?hs(re.transless,()=>this._whenReady(o)):this._whenReady(o)}table(t){if(!Wt(this._allTables,t))throw new ie.InvalidTable(`Table ${t} does not exist`);return this._allTables[t]}},jx=typeof Symbol!="undefined"&&"observable"in Symbol?Symbol.observable:"@@observable",JT=class{constructor(t){this._subscribe=t}subscribe(t,r,n){return this._subscribe(!t||typeof t=="function"?{next:t,error:r,complete:n}:t)}[jx](){return this}};function eb(e,t){return Je(t).forEach(r=>{let n=e[r]||(e[r]=new rn);Go(n,t[r])}),e}function Hx(e){let t=!1,r,n=new JT(i=>{let s=nf(e);function a(g){s&&ds();let p=()=>wn(e,{subscr:g,trans:null}),A=re.trans?hs(re.transless,p):p();return s&&A.then(en,en),A}let u=!1,o={},c={},f={get closed(){return u},unsubscribe:()=>{u=!0,kn.storagemutated.unsubscribe(D)}};i.start&&i.start(f);let h=!1,d=!1;function _(){return Je(c).some(g=>o[g]&&kx(o[g],c[g]))}let D=g=>{eb(o,g),_()&&E()},E=()=>{if(h||u)return;o={};let g={},p=a(g);d||(kn(La,D),d=!0),h=!0,Promise.resolve(p).then(A=>{t=!0,r=A,h=!1,!u&&(_()?E():(o={},c=g,i.next&&i.next(A)))},A=>{h=!1,t=!1,i.error&&i.error(A),f.unsubscribe()})};return E(),f});return n.hasValue=()=>t,n.getValue=()=>r,n}var zf;try{zf={indexedDB:je.indexedDB||je.mozIndexedDB||je.webkitIndexedDB||je.msIndexedDB,IDBKeyRange:je.IDBKeyRange||je.webkitIDBKeyRange}}catch{zf={indexedDB:null,IDBKeyRange:null}}var hi=nn;us(hi,Fe(J({},yo),{delete(e){return new hi(e,{addons:[]}).delete()},exists(e){return new hi(e,{addons:[]}).open().then(t=>(t.close(),!0)).catch("NoSuchDatabaseError",()=>!1)},getDatabaseNames(e){try{return vx(hi.dependencies).then(e)}catch{return rt(new ie.MissingAPI)}},defineClass(){function e(t){Ot(this,t)}return e},ignoreTransaction(e){return re.trans?hs(re.transless,e):e()},vip:jf,async:function(e){return function(){try{var t=Hf(e.apply(this,arguments));return!t||typeof t.then!="function"?Y.resolve(t):t}catch(r){return rt(r)}}},spawn:function(e,t,r){try{var n=Hf(e.apply(r,t||[]));return!n||typeof n.then!="function"?Y.resolve(n):n}catch(i){return rt(i)}},currentTransaction:{get:()=>re.trans||null},waitFor:function(e,t){let r=Y.resolve(typeof e=="function"?hi.ignoreTransaction(e):e).timeout(t||6e4);return re.trans?re.trans.waitFor(r):r},Promise:Y,debug:{get:()=>xr,set:e=>{mT(e,e==="dexie"?()=>!0:LT)}},derive:os,extend:Ot,props:us,override:cT,Events:Ra,on:kn,liveQuery:Hx,extendObservabilitySet:eb,getByKeyPath:Zr,setByKeyPath:gr,delByKeyPath:IO,shallowClone:dT,deepClone:ya,getObjectDiff:Uf,cmp:xt,asap:lT,minKey:yf,addons:[],connections:Na,errnames:uf,dependencies:zf,semVer:wT,version:wT.split(".").map(e=>parseInt(e)).reduce((e,t,r)=>e+t/Math.pow(10,r*2))}));hi.maxKey=Ma(hi.dependencies.IDBKeyRange);typeof dispatchEvent!="undefined"&&typeof addEventListener!="undefined"&&(kn(La,e=>{if(!sn){let t;Lo?(t=document.createEvent("CustomEvent"),t.initCustomEvent(Mn,!0,!0,e)):t=new CustomEvent(Mn,{detail:e}),sn=!0,dispatchEvent(t),sn=!1}}),addEventListener(Mn,({detail:e})=>{sn||qo(e)}));function qo(e){let t=sn;try{sn=!0,kn.storagemutated.fire(e)}finally{sn=t}}var sn=!1;if(typeof BroadcastChannel!="undefined"){let e=new BroadcastChannel(Mn);typeof e.unref=="function"&&e.unref(),kn(La,t=>{sn||e.postMessage(t)}),e.onmessage=t=>{t.data&&qo(t.data)}}else if(typeof self!="undefined"&&typeof navigator!="undefined"){kn(La,t=>{try{sn||(typeof localStorage!="undefined"&&localStorage.setItem(Mn,JSON.stringify({trig:Math.random(),changedParts:t})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:Mn,changedParts:t})))}catch{}}),typeof addEventListener!="undefined"&&addEventListener("storage",t=>{if(t.key===Mn){let r=JSON.parse(t.newValue);r&&qo(r.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",Ux)}function Ux({data:e}){e&&e.type===Mn&&qo(e.changedParts)}Y.rejectionMapper=wO;mT(xr,LT);var Vf=Xe(require("obsidian")),gs=class extends nn{constructor(t){super(gs.getDbName(t.app.appId));this.plugin=t;this.version(gs.dbVersion).stores({searchHistory:"++id",minisearch:"date"})}static getDbName(t){return"omnisearch/cache/"+t}async getMinisearchCache(){try{return(await this.plugin.database.minisearch.toArray())[0]}catch(t){return new Vf.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(t),null}}async writeMinisearchCache(t,r){let n=Array.from(r).map(([s,a])=>({path:s,mtime:a})),i=this.plugin.database;await i.minisearch.clear(),await i.minisearch.add({date:new Date().toISOString(),paths:n,data:t.toJSON()}),console.log("Omnisearch - Search cache written")}async clearOldDatabases(){let t=(await indexedDB.databases()).filter(r=>r.name===gs.getDbName(this.plugin.app.appId)&&r.version!==gs.dbVersion*10);if(t.length){console.log("Omnisearch - Those IndexedDb databases will be deleted:");for(let r of t)r.name&&indexedDB.deleteDatabase(r.name)}}async clearCache(){new Vf.Notice("Omnisearch - Cache cleared. Please restart Obsidian."),await this.minisearch.clear()}},zo=gs;zo.dbVersion=8;var tb="ENTRIES",Kf="KEYS",Wf="VALUES",nt="",Ba=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}=_s(this._path);if(_s(r)===nt)return{done:!1,value:this.result()};let n=t.get(_s(r));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let t=_s(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:t})=>_s(t)).filter(t=>t!==nt).join("")}value(){return _s(this._path).node.get(nt)}result(){switch(this._type){case Wf:return this.value();case Kf:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},_s=e=>e[e.length-1];var Gx=(e,t,r)=>{let n=new Map;if(t===void 0)return n;let i=t.length+1,s=i+r,a=new Uint8Array(s*i).fill(r+1);for(let u=0;u<i;++u)a[u]=u;for(let u=1;u<s;++u)a[u*i]=u;return rb(e,t,r,n,a,1,i,""),n},rb=(e,t,r,n,i,s,a,u)=>{let o=s*a;e:for(let c of e.keys())if(c===nt){let f=i[o-1];f<=r&&n.set(u,[e.get(c),f])}else{let f=s;for(let h=0;h<c.length;++h,++f){let d=c[h],_=a*f,D=_-a,E=i[_],g=Math.max(0,f-r-1),p=Math.min(a-1,f+r);for(let A=g;A<p;++A){let I=d!==t[A],b=i[D+A]+ +I,y=i[D+A+1]+1,C=i[_+A]+1,S=i[_+A+1]=Math.min(b,y,C);S<E&&(E=S)}if(E>r)continue e}rb(e.get(c),t,r,n,i,f,a,u+c)}},nb=Gx;var _r=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]=Vo(this._tree,t.slice(this._prefix.length));if(r===void 0){let[i,s]=$f(n);for(let a of i.keys())if(a!==nt&&a.startsWith(s)){let u=new Map;return u.set(a.slice(s.length),i.get(a)),new _r(u,t)}}return new _r(r,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,qx(this._tree,t)}entries(){return new Ba(this,tb)}forEach(t){for(let[r,n]of this)t(r,n,this)}fuzzyGet(t,r){return nb(this._tree,t,r)}get(t){let r=Yf(this._tree,t);return r!==void 0?r.get(nt):void 0}has(t){let r=Yf(this._tree,t);return r!==void 0&&r.has(nt)}keys(){return new Ba(this,Kf)}set(t,r){if(typeof t!="string")throw new Error("key must be a string");return this._size=void 0,Qf(this._tree,t).set(nt,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=Qf(this._tree,t);return n.set(nt,r(n.get(nt))),this}fetch(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;let n=Qf(this._tree,t),i=n.get(nt);return i===void 0&&n.set(nt,i=r()),i}values(){return new Ba(this,Wf)}[Symbol.iterator](){return this.entries()}static from(t){let r=new _r;for(let[n,i]of t)r.set(n,i);return r}static fromObject(t){return _r.from(Object.entries(t))}},Vo=(e,t,r=[])=>{if(t.length===0||e==null)return[e,r];for(let n of e.keys())if(n!==nt&&t.startsWith(n))return r.push([e,n]),Vo(e.get(n),t.slice(n.length),r);return r.push([e,t]),Vo(void 0,"",r)},Yf=(e,t)=>{if(t.length===0||e==null)return e;for(let r of e.keys())if(r!==nt&&t.startsWith(r))return Yf(e.get(r),t.slice(r.length))},Qf=(e,t)=>{let r=t.length;e:for(let n=0;e&&n<r;){for(let s of e.keys())if(s!==nt&&t[n]===s[0]){let a=Math.min(r-n,s.length),u=1;for(;u<a&&t[n+u]===s[u];)++u;let o=e.get(s);if(u===s.length)e=o;else{let c=new Map;c.set(s.slice(u),o),e.set(t.slice(n,n+u),c),e.delete(s),e=c}n+=u;continue e}let i=new Map;return e.set(t.slice(n),i),i}return e},qx=(e,t)=>{let[r,n]=Vo(e,t);if(r!==void 0){if(r.delete(nt),r.size===0)ib(n);else if(r.size===1){let[i,s]=r.entries().next().value;sb(n,i,s)}}},ib=e=>{if(e.length===0)return;let[t,r]=$f(e);if(t.delete(r),t.size===0)ib(e.slice(0,-1));else if(t.size===1){let[n,i]=t.entries().next().value;n!==nt&&sb(e.slice(0,-1),n,i)}},sb=(e,t,r)=>{if(e.length===0)return;let[n,i]=$f(e);n.set(i+t,r),n.delete(i)},$f=e=>e[e.length-1];var Xf="or",ab="and",zx="and_not",ja=class{constructor(t){if(t?.fields==null)throw new Error('MiniSearch: option "fields" must be provided');let r=t.autoVacuum==null||t.autoVacuum===!0?rd:t.autoVacuum;this._options=Fe(J(J({},Jf),t),{autoVacuum:r,searchOptions:J(J({},ub),t.searchOptions||{}),autoSuggestOptions:J(J({},Qx),t.autoSuggestOptions||{})}),this._index=new _r,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=td,this.addFields(this._options.fields)}add(t){let{extractField:r,tokenize:n,processTerm:i,fields:s,idField:a}=this._options,u=r(t,a);if(u==null)throw new Error(`MiniSearch: document does not have ID field "${a}"`);if(this._idToShortId.has(u))throw new Error(`MiniSearch: duplicate ID ${u}`);let o=this.addDocumentId(u);this.saveStoredFields(o,t);for(let c of s){let f=r(t,c);if(f==null)continue;let h=n(f.toString(),c),d=this._fieldIds[c],_=new Set(h).size;this.addFieldLength(o,d,this._documentCount-1,_);for(let D of h){let E=i(D,c);if(Array.isArray(E))for(let g of E)this.addTerm(d,o,g);else E&&this.addTerm(d,o,E)}}}addAll(t){for(let r of t)this.add(r)}addAllAsync(t,r={}){let{chunkSize:n=10}=r,i={chunk:[],promise:Promise.resolve()},{chunk:s,promise:a}=t.reduce(({chunk:u,promise:o},c,f)=>(u.push(c),(f+1)%n==0?{chunk:[],promise:o.then(()=>new Promise(h=>setTimeout(h,0))).then(()=>this.addAll(u))}:{chunk:u,promise:o}),i);return a.then(()=>this.addAll(s))}remove(t){let{tokenize:r,processTerm:n,extractField:i,fields:s,idField:a}=this._options,u=i(t,a);if(u==null)throw new Error(`MiniSearch: document does not have ID field "${a}"`);let o=this._idToShortId.get(u);if(o==null)throw new Error(`MiniSearch: cannot remove document with ID ${u}: it is not in the index`);for(let c of s){let f=i(t,c);if(f==null)continue;let h=r(f.toString(),c),d=this._fieldIds[c],_=new Set(h).size;this.removeFieldLength(o,d,this._documentCount,_);for(let D of h){let E=n(D,c);if(Array.isArray(E))for(let g of E)this.removeTerm(d,o,g);else E&&this.removeTerm(d,o,E)}}this._storedFields.delete(o),this._documentIds.delete(o),this._idToShortId.delete(u),this._fieldLength.delete(o),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 _r,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=td,this.performVacuuming(t,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(r)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)}async performVacuuming(t,r){let n=this._dirtCount;if(this.vacuumConditionsMet(r)){let i=t.batchSize||ed.batchSize,s=t.batchWait||ed.batchWait,a=1;for(let[u,o]of this._index){for(let[c,f]of o)for(let[h]of f)this._documentIds.has(h)||(f.size<=1?o.delete(c):f.delete(h));this._index.get(u).size===0&&this._index.delete(u),a%i==0&&await new Promise(c=>setTimeout(c,s)),a+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(t){if(t==null)return!0;let{minDirtCount:r,minDirtFactor:n}=t;return r=r||rd.minDirtCount,n=n||rd.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[s,{score:a,terms:u,match:o}]of n){let c=u.length||1,f={id:this._documentIds.get(s),score:a*c,terms:Object.keys(o),queryTerms:u,match:o};Object.assign(f,this._storedFields.get(s)),(r.filter==null||r.filter(f))&&i.push(f)}return t===ja.wildcard&&r.boostDocument==null&&this._options.searchOptions.boostDocument==null||i.sort(cb),i}autoSuggest(t,r={}){r=J(J({},this._options.autoSuggestOptions),r);let n=new Map;for(let{score:s,terms:a}of this.search(t,r)){let u=a.join(" "),o=n.get(u);o!=null?(o.score+=s,o.count+=1):n.set(u,{score:s,terms:a,count:1})}let i=[];for(let[s,{score:a,terms:u,count:o}]of n)i.push({suggestion:s,terms:u,score:a/o});return i.sort(cb),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 async loadJSONAsync(t,r){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(Jf.hasOwnProperty(t))return Zf(Jf,t);throw new Error(`MiniSearch: unknown option "${t}"`)}static loadJS(t,r){let{index:n,documentIds:i,fieldLength:s,storedFields:a,serializationVersion:u}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=Ko(i),o._fieldLength=Ko(s),o._storedFields=Ko(a);for(let[c,f]of o._documentIds)o._idToShortId.set(f,c);for(let[c,f]of n){let h=new Map;for(let d of Object.keys(f)){let _=f[d];u===1&&(_=_.ds),h.set(parseInt(d,10),Ko(_))}o._index.set(c,h)}return o}static async loadJSAsync(t,r){let{index:n,documentIds:i,fieldLength:s,storedFields:a,serializationVersion:u}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=await Wo(i),o._fieldLength=await Wo(s),o._storedFields=await Wo(a);for(let[f,h]of o._documentIds)o._idToShortId.set(h,f);let c=0;for(let[f,h]of n){let d=new Map;for(let _ of Object.keys(h)){let D=h[_];u===1&&(D=D.ds),d.set(parseInt(_,10),await Wo(D))}++c%1e3==0&&await fb(0),o._index.set(f,d)}return o}static instantiateMiniSearch(t,r){let{documentCount:n,nextId:i,fieldIds:s,averageFieldLength:a,dirtCount:u,serializationVersion:o}=t;if(o!==1&&o!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");let c=new ja(r);return c._documentCount=n,c._nextId=i,c._idToShortId=new Map,c._fieldIds=s,c._avgFieldLength=a,c._dirtCount=u||0,c._index=new _r,c}executeQuery(t,r={}){if(t===ja.wildcard)return this.executeWildcardQuery(r);if(typeof t!="string"){let d=Fe(J(J({},r),t),{queries:void 0}),_=t.queries.map(D=>this.executeQuery(D,d));return this.combineResults(_,d.combineWith)}let{tokenize:n,processTerm:i,searchOptions:s}=this._options,a=J(J({tokenize:n,processTerm:i},s),r),{tokenize:u,processTerm:o}=a,h=u(t).flatMap(d=>o(d)).filter(d=>!!d).map(Yx(a)).map(d=>this.executeQuerySpec(d,a));return this.combineResults(h,a.combineWith)}executeQuerySpec(t,r){let n=J(J({},this._options.searchOptions),r),i=(n.fields||this._options.fields).reduce((E,g)=>Fe(J({},E),{[g]:Zf(n.boost,g)||1}),{}),{boostDocument:s,weights:a,maxFuzzy:u,bm25:o}=n,{fuzzy:c,prefix:f}=J(J({},ub.weights),a),h=this._index.get(t.term),d=this.termResults(t.term,t.term,1,h,i,s,o),_,D;if(t.prefix&&(_=this._index.atPrefix(t.term)),t.fuzzy){let E=t.fuzzy===!0?.2:t.fuzzy,g=E<1?Math.min(u,Math.round(t.term.length*E)):E;g&&(D=this._index.fuzzyGet(t.term,g))}if(_)for(let[E,g]of _){let p=E.length-t.term.length;if(!p)continue;D?.delete(E);let A=f*E.length/(E.length+.3*p);this.termResults(t.term,E,A,g,i,s,o,d)}if(D)for(let E of D.keys()){let[g,p]=D.get(E);if(!p)continue;let A=c*E.length/(E.length+p);this.termResults(t.term,E,A,g,i,s,o,d)}return d}executeWildcardQuery(t){let r=new Map,n=J(J({},this._options.searchOptions),t);for(let[i,s]of this._documentIds){let a=n.boostDocument?n.boostDocument(s,"",this._storedFields.get(i)):1;r.set(i,{score:a,terms:[],match:{}})}return r}combineResults(t,r=Xf){if(t.length===0)return new Map;let n=r.toLowerCase(),i=Vx[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[s,a]of n)i[s]=Object.fromEntries(a);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,s,a,u,o=new Map){if(i==null)return o;for(let c of Object.keys(s)){let f=s[c],h=this._fieldIds[c],d=i.get(h);if(d==null)continue;let _=d.size,D=this._avgFieldLength[h];for(let E of d.keys()){if(!this._documentIds.has(E)){this.removeTerm(h,E,r),_-=1;continue}let g=a?a(this._documentIds.get(E),r,this._storedFields.get(E)):1;if(!g)continue;let p=d.get(E),A=this._fieldLength.get(E)[h],I=Wx(p,_,this._documentCount,A,D,u),b=n*f*g*I,y=o.get(E);if(y){y.score+=b,$x(y.terms,t);let C=Zf(y.match,r);C?C.push(c):y.match[r]=[c]}else o.set(E,{score:b,terms:[t],match:{[r]:[c]}})}}return o}addTerm(t,r,n){let i=this._index.fetch(n,lb),s=i.get(t);if(s==null)s=new Map,s.set(r,1),i.set(t,s);else{let a=s.get(r);s.set(r,(a||0)+1)}}removeTerm(t,r,n){if(!this._index.has(n)){this.warnDocumentChanged(r,t,n);return}let i=this._index.fetch(n,lb),s=i.get(t);s==null||s.get(r)==null?this.warnDocumentChanged(r,t,n):s.get(r)<=1?s.size<=1?i.delete(t):s.delete(r):s.set(r,s.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 s=this._fieldLength.get(t);s==null&&this._fieldLength.set(t,s=[]),s[r]=i;let u=(this._avgFieldLength[r]||0)*n+i;this._avgFieldLength[r]=u/(n+1)}removeFieldLength(t,r,n,i){if(n===1){this._avgFieldLength[r]=0;return}let s=this._avgFieldLength[r]*n-i;this._avgFieldLength[r]=s/(n-1)}saveStoredFields(t,r){let{storeFields:n,extractField:i}=this._options;if(n==null||n.length===0)return;let s=this._storedFields.get(t);s==null&&this._storedFields.set(t,s={});for(let a of n){let u=i(r,a);u!==void 0&&(s[a]=u)}}},Ts=ja;Ts.wildcard=Symbol("*");var Zf=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,Vx={[Xf]:(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:s,match:a}=t.get(r);n.score=n.score+i,n.match=Object.assign(n.match,a),ob(n.terms,s)}}return e},[ab]:(e,t)=>{let r=new Map;for(let n of t.keys()){let i=e.get(n);if(i==null)continue;let{score:s,terms:a,match:u}=t.get(n);ob(i.terms,a),r.set(n,{score:i.score+s,terms:i.terms,match:Object.assign(i.match,u)})}return r},[zx]:(e,t)=>{for(let r of t.keys())e.delete(r);return e}},Kx={k:1.2,b:.7,d:.5},Wx=(e,t,r,n,i,s)=>{let{k:a,b:u,d:o}=s;return Math.log(1+(r-t+.5)/(t+.5))*(o+e*(a+1)/(e+a*(1-u+u*n/i)))},Yx=e=>(t,r,n)=>{let i=typeof e.fuzzy=="function"?e.fuzzy(t,r,n):e.fuzzy||!1,s=typeof e.prefix=="function"?e.prefix(t,r,n):e.prefix===!0;return{term:t,fuzzy:i,prefix:s}},Jf={idField:"id",extractField:(e,t)=>e[t],tokenize:e=>e.split(Xx),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof console?.[e]=="function"&&console[e](t)},autoVacuum:!0},ub={combineWith:Xf,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Kx},Qx={combineWith:ab,prefix:(e,t,r)=>t===r.length-1},ed={batchSize:1e3,batchWait:10},td={minDirtFactor:.1,minDirtCount:20},rd=J(J({},ed),td),$x=(e,t)=>{e.includes(t)||e.push(t)},ob=(e,t)=>{for(let r of t)e.includes(r)||e.push(r)},cb=({score:e},{score:t})=>t-e,lb=()=>new Map,Ko=e=>{let t=new Map;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]);return t},Wo=async e=>{let t=new Map,r=0;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]),++r%1e3==0&&await fb(0);return t},fb=e=>new Promise(t=>setTimeout(t,e)),Xx=/[\n\r\p{Z}\p{P}]/u;ir();var Dy=Xe(require("obsidian"));_o();Or();ir();var Cy=vy(),Ph=class{constructor(t){this.plugin=t}tokenizeForIndexing(t){let r=this.tokenizeWords(t),n=[];if(this.plugin.settings.tokenizeUrls)try{n=Cy(t)}catch(s){ve("Error extracting urls",s)}let i=this.tokenizeTokens(t,{skipChs:!0});return i=[...i,...i.flatMap(hl)],i=[...i,...i.flatMap(dl)],i=[...i,...r],n.length&&(i=[...i,...n]),i=[...new Set(i)],i}tokenizeForSearch(t){let r=Cy(t);t=r.reduce((i,s)=>i.replace(s,""),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(hl)},{combineWith:"AND",queries:n.flatMap(dl)}]}}tokenizeWords(t,{skipChs:r=!1}={}){let n=t.split(a0);return r?n:this.tokenizeChsWord(n)}tokenizeTokens(t,{skipChs:r=!1}={}){let n=t.split(ia);return r?n:this.tokenizeChsWord(n)}tokenizeChsWord(t){let r=this.plugin.getChsSegmenter();return r?t.flatMap(n=>n0.test(n)?r.cut(n,{search:!0}):[n]):t}};var Lh=class{constructor(t){this.plugin=t;this.indexedDocuments=new Map;this.tokenizer=new Ph(t),this.minisearch=new Ts(this.getOptions())}async loadCache(){let t=await this.plugin.database.getMinisearchCache();return t?(this.minisearch=await Ts.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)}getDiff(t){let r=new Map(t.map(s=>[s.path,s.mtime])),n=t.filter(s=>!this.indexedDocuments.has(s.path)||this.indexedDocuments.get(s.path)!==s.mtime),i=[...this.indexedDocuments].filter(([s,a])=>!r.has(s)||r.get(s)!==a).map(s=>({path:s[0],mtime:s[1]}));return{toAdd:n,toRemove:i}}async addFromPaths(t){ve("Adding files",t);let r=(await Promise.all(t.map(async i=>await this.plugin.cacheManager.getDocument(i)))).filter(i=>!!i?.path);ve("Sorting documents to first index markdown"),r=Ql(r,i=>i.path.endsWith(".md")?0:1),this.removeFromPaths(r.filter(i=>this.indexedDocuments.has(i.path)).map(i=>i.path));let n=T0(r,500);for(let i of n){ve("Indexing into search engine",i),i.forEach(a=>this.indexedDocuments.set(a.path,a.mtime));let s=i.filter(a=>this.minisearch.has(a.path));this.removeFromPaths(s.map(a=>a.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[];ve("=== New search ==="),ve("Starting search for",t);let i;switch(n.fuzziness){case"0":i=0;break;case"1":i=.1;break;default:i=.2;break}let s=this.tokenizer.tokenizeForSearch(t.segmentsToStr());ve(JSON.stringify(s,null,1));let a=this.minisearch.search(s,{prefix:h=>h.length>=r.prefixLength,fuzzy:h=>h.length<=3?0:h.length<=5?i/2:i,boost:{basename:n.weightBasename,directory:n.weightDirectory,aliases:n.weightBasename,headings1:n.weightH1,headings2:n.weightH2,headings3:n.weightH3,tags:n.weightUnmarkedTags,unmarkedTags:n.weightUnmarkedTags},tokenize:h=>[h]});if(ve("Found",a.length,"results"),t.query.ext?.length&&(a=a.filter(h=>{let d="."+h.id.split(".").pop();return t.query.ext?.some(_=>d.startsWith(_.startsWith(".")?_:"."+_))})),t.query.path&&(a=a.filter(h=>t.query.path?.some(d=>h.id.toLowerCase().includes(d.toLowerCase())))),t.query.exclude.path&&(a=a.filter(h=>!t.query.exclude.path?.some(d=>h.id.toLowerCase().includes(d.toLowerCase())))),!a.length)return[];if(r.singleFilePath)return a.filter(h=>h.id===r.singleFilePath);ve("searching with downranked folders",n.downrankedFoldersFilters),n.hideExcluded?a=a.filter(h=>!(this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(h.id))):a.forEach(h=>{this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(h.id)&&(h.score/=10)});let u=t.getTags();for(let h of a){let d=h.id;if(n.downrankedFoldersFilters.length>0){let D=!1;n.downrankedFoldersFilters.forEach(p=>{d.startsWith(p)&&(d===p||d.startsWith(p+"/"))&&(ve("searching with downranked folders in path: ",d),D=!0)}),D&&(h.score/=10);let E=d.split("/"),g=E.length;for(let p=0;p<g;p++){let A=E[p];if(n.downrankedFoldersFilters.includes(A)){h.score/=10;break}}}let _=this.plugin.app.metadataCache.getCache(d);if(_)for(let{name:D,weight:E}of n.weightCustomProperties){let g=_?.frontmatter?.[D];g&&h.terms.some(p=>g.includes(p))&&(ve(`Boosting field "${D}" x${E} for ${d}`),h.score*=E)}for(let D of u)(h.tags??[]).includes(D)&&(h.score*=100)}ve("Sorting and limiting results"),a=a.sort((h,d)=>d.score-h.score).slice(0,50),a.length&&ve("First result:",a[0]);let o=await Promise.all(a.map(async h=>await this.plugin.cacheManager.getDocument(h.id))),c=t.getExactTerms();c.length&&(ve("Filtering with quoted terms: ",c),a=a.filter(h=>{let d=o.find(E=>E.path===h.id),_=d?.path.toLowerCase()??"",D=(d?.cleanedContent??"").toLowerCase();return c.every(E=>D.includes(E)||Yr(_).includes(E))}));let f=t.query.exclude.text;return f.length&&(ve("Filtering with exclusions"),a=a.filter(h=>{let d=(o.find(_=>_.path===h.id)?.content??"").toLowerCase();return f.every(_=>!d.includes(_))})),ve("Deduping"),a=a.filter((h,d,_)=>_.findIndex(D=>D.id===h.id)===d),a}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 a=>await this.plugin.cacheManager.getDocument(a.id)));return n.map(a=>{ve("Locating matches for",a.id);let u=i.find(h=>h.path===a.id);u||(console.warn(`Omnisearch - Note "${a.id}" not in the live cache`),u={content:"",basename:a.id,path:a.id});let o=[...a.terms,...t.getExactTerms(),...t.getTags()];ve("Matching tokens:",o),ve("Getting matches locations...");let c=this.plugin.textProcessor.getMatches(u.content,o,t);return ve(`Matches for ${u.basename}`,c),J({score:a.score,foundWords:o,matches:c},u)})}async writeToCache(){await this.plugin.database.writeMinisearchCache(this.minisearch,this.indexedDocuments)}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?Yr(t):t).toLowerCase(),idField:"path",fields:["basename","directory","aliases","content","headings1","headings2","headings3"],storeFields:["tags"],logger(t,r,n){n==="version_conflict"&&new Dy.Notice("Omnisearch - Your index cache may be incorrect or corrupted. If this message keeps appearing, go to Settings to clear the cache.",5e3)}}}};var Sy=Xe(require("obsidian"));ir();sa();var Mh=class{constructor(t){this.plugin=t;this.nextQueryIsEmpty=!1;this.documents=new Map}async addToLiveCache(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)}catch(r){console.warn(`Omnisearch: Error while adding "${t}" to live cache`,r),this.removeFromLiveCache(t)}}removeFromLiveCache(t){this.documents.delete(t)}async getDocument(t){return this.documents.has(t)?this.documents.get(t):(ve("Generating IndexedDocument from",t),await this.addToLiveCache(t),this.documents.get(t))}async addToSearchHistory(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 getSearchHistory(){let t=(await this.plugin.database.searchHistory.toArray()).reverse().map(r=>r.query);return this.nextQueryIsEmpty&&t.unshift(""),t}async getAndMapIndexedDocument(t){let r=this.plugin.app,n=r.vault.getAbstractFileByPath(t);if(!n)throw new Error(`Invalid file path: "${t}"`);if(!(n instanceof Sy.TFile))throw new Error(`Not a TFile: "${t}"`);let i=null,s=this.plugin.getTextExtractor();if(this.plugin.notesIndexer.isFilePlaintext(t))i=await r.vault.cachedRead(n);else if(ti(t)){let o=JSON.parse(await r.vault.cachedRead(n)),c=[];for(let f of o.nodes)f.type==="text"?c.push(f.text):f.type==="file"&&c.push(f.file);for(let f of o.edges.filter(h=>!!h.label))c.push(f.label);i=c.join(`\r
`)}else if(ua(t))try{let o=JSON.parse(await r.vault.cachedRead(n)),c=[],f=h=>{for(let d in h)typeof h[d]=="object"?f(h[d]):d==="content"&&c.push(h[d])};f(o),i=c.join(`\r
`)}catch(o){console.error("Omnisearch: Error while parsing Dataloom file",t),console.error(o)}else ei(t)&&this.plugin.settings.imagesIndexing&&s?.canFileBeExtracted(t)?i=await s.extractText(n):_n(t)&&this.plugin.settings.PDFIndexing&&s?.canFileBeExtracted(t)?i=await s.extractText(n):_0(t)&&this.plugin.settings.officeIndexing&&s?.canFileBeExtracted(t)?i=await s.extractText(n):this.plugin.notesIndexer.isFilenameIndexable(t)&&(i=n.path);i==null&&(console.warn(`Omnisearch: ${i} content for file`,n.path),i="");let a=r.metadataCache.getFileCache(n);if(a){let o=f0(this.plugin.app,n,a);for(let c of o.filter(f=>!this.documents.has(f))){let f=this.plugin.notesIndexer.generateIndexableNonexistingDocument(c,n.path)}if(a.frontmatter?.["excalidraw-plugin"]){let c=a.sections?.filter(f=>f.type==="comment")??[];for(let{start:f,end:h}of c.map(d=>d.position))i=i.substring(0,f.offset-1)+i.substring(h.offset)}}let u=g0(a);return{basename:n.basename,content:i,cleanedContent:p0(Yr(i)),path:n.path,mtime:n.stat.mtime,tags:u,unmarkedTags:u.map(o=>o.replace("#","")),aliases:m0(a).join(""),headings1:a?Lu(a,1).join(" "):"",headings2:a?Lu(a,2).join(" "):"",headings3:a?Lu(a,3).join(" "):""}}};ir();sa();ir();var kh=class{constructor(t){this.plugin=t;this.notesToReindex=new Set}flagNoteForReindex(t){this.notesToReindex.add(t)}async refreshIndex(){for(let r of this.notesToReindex)ve("Updating file",r.path),await this.plugin.cacheManager.addToLiveCache(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.isFilenameIndexable(t)||this.isContentIndexable(t)}isContentIndexable(t){let r=this.plugin.settings,n=!!this.plugin.getTextExtractor(),i=n&&r.PDFIndexing,s=n&&r.imagesIndexing;return this.isFilePlaintext(t)||ti(t)||ua(t)||i&&_n(t)||s&&ei(t)}isFilenameIndexable(t){return this.canIndexUnsupportedFiles()||this.isFilePlaintext(t)||ti(t)||ua(t)}canIndexUnsupportedFiles(){return this.plugin.settings.unsupportedFilesIndexing==="yes"||this.plugin.settings.unsupportedFilesIndexing==="default"&&!!this.plugin.app.vault.getConfig("showUnsupportedFiles")}generateIndexableNonexistingDocument(t,r){return t=ll(t),{path:t+(t.endsWith(".md")?"":".md"),basename:t,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}`))}};Or();ir();var Oy=Xe(require("obsidian"));_o();var Fh=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{let i=new RegExp(r.map(u=>{let o=xn(u.match);return`\\b${o}\\b${/[a-zA-Z]/.test(u.match)?"":`|${o}`}`}).join("|"),"giu"),s=u=>r.find(c=>u.match(new RegExp(`\\b${xn(c.match)}\\b${/[a-zA-Z]/.test(c.match)?"":`|${xn(c.match)}`}`,"giu")))?`<span class="${n}">${u}</span>`:u,a=t.replace(i,s);if(a===t){let u=new RegExp(r.map(o=>xn(o.match)).join("|"),"giu");a=t.replace(u,s)}return a}catch(i){return console.error("Omnisearch - Error in highlightText()",i),t}}escapeHTML(t){return t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}stringsToRegex(t){if(!t.length)return/^$/g;t.sort((n,i)=>i.length-n.length);let r=`(${t.map(n=>`\\b${xn(n)}\\b|${xn(n)}`).join("|")})`;return new RegExp(`${r}`,"gui")}getMatches(t,r,n){let i=this.stringsToRegex(r),s=t;this.plugin.settings.ignoreDiacritics&&(t=Yr(t));let a=new Date().getTime(),u=null,o=[],c=0;for(;(u=i.exec(t))!==null;){if(++c>=100||new Date().getTime()-a>50){b0("Stopped getMatches at",c,"results");break}let f=u.index,h=f+u[0].length,d=s.substring(f,h).trim();d&&u.index>=0&&o.push({match:d,offset:u.index})}if(n&&(n.query.text.length>1||n.getExactTerms().length>0)){let f=t.indexOf(n.getBestStringForExcerpt());f>-1&&o.find(h=>h.offset===f)&&o.unshift({offset:f,match:n.getBestStringForExcerpt()})}return o}makeExcerpt(t,r){let n=this.plugin.settings;try{let i=r??-1,s=Math.max(0,i-i0),a=Math.min(t.length,i+ra);if(i>-1?t=(s>0?"\u2026":"")+t.slice(s,a).trim()+(a<t.length-1?"\u2026":""):t=t.slice(0,ra),n.renderLineReturnInExcerpts){let u=new RegExp(/(?:\r\n|\r|\n)/g);t=t.split(u).filter(c=>c).join(`
`);let o=t.lastIndexOf(`
`,i-s);o>0&&(t=t.slice(o))}return t=MM(t),n.renderLineReturnInExcerpts&&(t=t.trim().replaceAll(`
`,"<br>")),t}catch(i){return new Oy.Notice("Omnisearch - Error while creating excerpt, see developer console"),console.error("Omnisearch - Error while creating excerpt"),console.error(i),""}}};function MM(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}var Bh=class extends Ri.Plugin{constructor(t,r){super(t,r);this.apiHttpServer=null;this.settings=Fu(this.app);this.database=new zo(this);this.notesIndexer=new kh(this);this.textProcessor=new Fh(this);this.searchEngine=new Lh(this);this.cacheManager=new Mh(this)}async onload(){if(this.settings=await y0(this),this.addSettingTab(new ml(this)),Ri.Platform.isMobile||Promise.resolve().then(()=>(Py(),wy)).then(n=>this.apiHttpServer=n.getServer(this)),gl(this.app)){console.log("Omnisearch - Plugin disabled");return}await FM(this.app),await this.database.clearOldDatabases(),uT(this);let t=this.settings;t.ribbonIcon&&this.addRibbonButton(),ce.disable("vault"),ce.disable("infile"),ce.on("global",Nu.ToggleExcerpts,()=>{ri.set(!t.showExcerpt)}),this.addCommand({id:"show-modal",name:"Vault search",callback:()=>{new Nn(this).open()}}),this.addCommand({id:"show-modal-infile",name:"In-file search",editorCallback:(n,i)=>{i.file&&new as(this,i.file).open()}});let r=this.searchEngine;this.app.workspace.onLayoutReady(async()=>{this.registerEvent(this.app.vault.on("create",n=>{this.notesIndexer.isFileIndexable(n.path)&&(ve("Indexing new file",n.path),r.addFromPaths([n.path]))})),this.registerEvent(this.app.vault.on("delete",n=>{ve("Removing file",n.path),this.cacheManager.removeFromLiveCache(n.path),r.removeFromPaths([n.path])})),this.registerEvent(this.app.vault.on("modify",async n=>{this.notesIndexer.isFileIndexable(n.path)&&this.notesIndexer.flagNoteForReindex(n)})),this.registerEvent(this.app.vault.on("rename",async(n,i)=>{this.notesIndexer.isFileIndexable(n.path)&&(ve("Renaming file",n.path),this.cacheManager.removeFromLiveCache(i),await this.cacheManager.addToLiveCache(n.path),r.removeFromPaths([i]),await r.addFromPaths([n.path]))})),this.refreshIndexCallback=this.notesIndexer.refreshIndex.bind(this.notesIndexer),addEventListener("blur",this.refreshIndexCallback),removeEventListener,await this.executeFirstLaunchTasks(),await this.populateIndex(),this.apiHttpServer&&t.httpApiEnabled&&this.apiHttpServer.listen(t.httpApiPort)})}async executeFirstLaunchTasks(){let t="1.21.0";this.settings.welcomeMessage=t,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",t=>{new Nn(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}async populateIndex(){console.time("Omnisearch - Indexing total time"),mn.set(nr.ReadingFiles);let t=this.app.vault.getFiles().filter(i=>this.notesIndexer.isFileIndexable(i.path));console.log(`Omnisearch - ${t.length} files total`),console.log(`Omnisearch - Cache is ${bn()?"enabled":"disabled"}`);let r=this.searchEngine;bn()&&(console.time("Omnisearch - Loading index from cache"),mn.set(nr.LoadingCache),await r.loadCache()&&console.timeEnd("Omnisearch - Loading index from cache"));let n=r.getDiff(t.map(i=>({path:i.path,mtime:i.stat.mtime})));bn()&&(n.toAdd.length&&console.log("Omnisearch - Total number of files to add/update: "+n.toAdd.length),n.toRemove.length&&console.log("Omnisearch - Total number of files to remove: "+n.toRemove.length)),n.toAdd.length>=1e3&&bn()&&new Ri.Notice(`Omnisearch - ${n.toAdd.length} files need to be indexed. Obsidian may experience stutters and freezes during the process`,1e4),mn.set(nr.IndexingFiles),r.removeFromPaths(n.toRemove.map(i=>i.path)),await r.addFromPaths(n.toAdd.map(i=>i.path)),(n.toRemove.length||n.toAdd.length)&&bn()&&(mn.set(nr.WritingCache),this.settings.useCache=!1,await _e(this),await r.writeToCache(),this.settings.useCache=!0,await _e(this)),console.timeEnd("Omnisearch - Indexing total time"),n.toAdd.length>=1e3&&bn()&&new Ri.Notice("Omnisearch - Your files have been indexed."),mn.set(nr.Done),sT()}};async function FM(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{}}