diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e2ac661 --- /dev/null +++ b/.nojekyll @@ -0,0 +1 @@ +TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/assets/highlight.css b/assets/highlight.css new file mode 100644 index 0000000..54e27af --- /dev/null +++ b/assets/highlight.css @@ -0,0 +1,113 @@ +:root { + --light-hl-0: #795E26; + --dark-hl-0: #DCDCAA; + --light-hl-1: #000000; + --dark-hl-1: #D4D4D4; + --light-hl-2: #A31515; + --dark-hl-2: #CE9178; + --light-hl-3: #0000FF; + --dark-hl-3: #569CD6; + --light-hl-4: #0451A5; + --dark-hl-4: #9CDCFE; + --light-hl-5: #AF00DB; + --dark-hl-5: #C586C0; + --light-hl-6: #001080; + --dark-hl-6: #9CDCFE; + --light-hl-7: #0070C1; + --dark-hl-7: #4FC1FF; + --light-hl-8: #267F99; + --dark-hl-8: #4EC9B0; + --light-hl-9: #800000; + --dark-hl-9: #808080; + --light-hl-10: #800000; + --dark-hl-10: #569CD6; + --light-hl-11: #000000FF; + --dark-hl-11: #D4D4D4; + --light-hl-12: #E50000; + --dark-hl-12: #9CDCFE; + --light-code-background: #FFFFFF; + --dark-code-background: #1E1E1E; +} + +@media (prefers-color-scheme: light) { :root { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); + --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); + --hl-10: var(--light-hl-10); + --hl-11: var(--light-hl-11); + --hl-12: var(--light-hl-12); + --code-background: var(--light-code-background); +} } + +@media (prefers-color-scheme: dark) { :root { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); + --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); + --hl-10: var(--dark-hl-10); + --hl-11: var(--dark-hl-11); + --hl-12: var(--dark-hl-12); + --code-background: var(--dark-code-background); +} } + +:root[data-theme='light'] { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); + --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); + --hl-10: var(--light-hl-10); + --hl-11: var(--light-hl-11); + --hl-12: var(--light-hl-12); + --code-background: var(--light-code-background); +} + +:root[data-theme='dark'] { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); + --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); + --hl-10: var(--dark-hl-10); + --hl-11: var(--dark-hl-11); + --hl-12: var(--dark-hl-12); + --code-background: var(--dark-code-background); +} + +.hl-0 { color: var(--hl-0); } +.hl-1 { color: var(--hl-1); } +.hl-2 { color: var(--hl-2); } +.hl-3 { color: var(--hl-3); } +.hl-4 { color: var(--hl-4); } +.hl-5 { color: var(--hl-5); } +.hl-6 { color: var(--hl-6); } +.hl-7 { color: var(--hl-7); } +.hl-8 { color: var(--hl-8); } +.hl-9 { color: var(--hl-9); } +.hl-10 { color: var(--hl-10); } +.hl-11 { color: var(--hl-11); } +.hl-12 { color: var(--hl-12); } +pre, code { background: var(--code-background); } diff --git a/assets/icons.js b/assets/icons.js new file mode 100644 index 0000000..3dfbd32 --- /dev/null +++ b/assets/icons.js @@ -0,0 +1,18 @@ +(function() { + addIcons(); + function addIcons() { + if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); + const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); + svg.innerHTML = `MMNEPVFCICPMFPCPTTAAATR`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); + } + + function updateUseElements() { + document.querySelectorAll("use").forEach(el => { + if (el.getAttribute("href").includes("#icon-")) { + el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#")); + } + }); + } +})() \ No newline at end of file diff --git a/assets/icons.svg b/assets/icons.svg new file mode 100644 index 0000000..a19417d --- /dev/null +++ b/assets/icons.svg @@ -0,0 +1 @@ +MMNEPVFCICPMFPCPTTAAATR \ No newline at end of file diff --git a/assets/main.js b/assets/main.js new file mode 100644 index 0000000..99097a0 --- /dev/null +++ b/assets/main.js @@ -0,0 +1,60 @@ +"use strict"; +window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings."}; +"use strict";(()=>{var Pe=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Pe(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!Ve(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function Ve(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),He(t,i,r,e)}function He(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Be(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Be(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",N="mouseup",J={x:0,y:0},me=!1,ne=!1,qe=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(qe=!0,F="touchstart",ye="touchmove",N="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(N,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&!r.href.includes("#")&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else{let r=e.appendChild(document.createElement("span"));r.innerHTML='',r.appendChild(document.createElement("span")).textContent=t.text}}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); +/*! Bundled license information: + +lunr/lunr.js: + (** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + *) + (*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + *) + (*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + *) +*/ diff --git a/assets/navigation.js b/assets/navigation.js new file mode 100644 index 0000000..0577625 --- /dev/null +++ b/assets/navigation.js @@ -0,0 +1 @@ +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAACoWQywrCMBAA/2XPxWrx2asgCopFvImHkK4aTJOSbMEi/rtYJU2r1GOYnckmhzsQ3ghi2OmC0Gx0ihBAzugCMaAqMhvWpHehTEIAV6FSiKePwNlzlLKaq2UumbVoQ4ea9iDy/aWwpE35bX9Al+suSIzObZ0QitCcGPd3qEaasWg09mIJO3d0HO1KvP9rm5PQ6nemMdGVWmiTtbahMkcbOtCy+7PJYBR5hZXiskhx/zq1Gh76V1kLdf25hwP/CtwgI3w/vI6cCsWrTwh93myNh4/jE5ymUmmnAgAA" \ No newline at end of file diff --git a/assets/search.js b/assets/search.js new file mode 100644 index 0000000..f5b9ff5 --- /dev/null +++ b/assets/search.js @@ -0,0 +1 @@ +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACs2dX4/jNtLuv0vntndiVtGSlbtzsvueszhZJMjuvufCCBYetzJjjNs2/GeS2WC/+wtRIk0WH9qk7YH6ZqbRTVLFh8WyxZ9K9cfTfvvb4em7+R9Pn1abl6fvZs9Pm8Vr+/Td08/b07Hd/2370j49P53266fvntrN6fXw7fkP7z4eX9dPz0/L9eJwaA9P3z09/efZjqQqN9THxeHj5UG+GZp4Iz0/7Rb7dnMMTcHjrw7H7f7LtUu4ViVXobMi/1dcZhjm2+H3F9WgiT4P9LI4Ln789eI437g22FhrS+IKH9rjP1bHdXv5Gl6r3KtMFbmLLLebw3F/Wh63+8vXCRtmT6gipbW72m5x/Hj5MkOLG8ffrl9+unqJc6Pcq6gJna/xfnFo//nzD5evcW500zVe2vXqdXVsr6yJ3+wmF9u33Z+veNi50fkax8PLn1aHP+3222O7PLYvBdfcnQ7XfOB0IY5cG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Qeqcs+VhHXiBdT+Q95uCf1sk9X+vHT/u0/NEPu+b/sg5bfPrZiJ/qP85B7jjDzcGW3+ACef/OJP3He43TyIQyfugzfOCzXcE/dZx6sAAP9jZG59LuTePQoOO/IGmLf4QHx0JvvjZz3qNnANcMQ4p9m5Y0SPQXpP/6gM29n+uf45JM4njWZUzLDbHdmS4XP9ASPJuQtlXnyLXwsUAV3ltdH+eX5abfadY+stU/fzX/5z3/+B3QxU1RKjQEA"; \ No newline at end of file diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..178bfb0 --- /dev/null +++ b/assets/style.css @@ -0,0 +1,1493 @@ +:root { + /* Light */ + --light-color-background: #f2f4f8; + --light-color-background-secondary: #eff0f1; + --light-color-warning-text: #222; + --light-color-background-warning: #e6e600; + --light-color-accent: #c5c7c9; + --light-color-active-menu-item: var(--light-color-accent); + --light-color-text: #222; + --light-color-text-aside: #6e6e6e; + + --light-color-icon-background: var(--light-color-background); + --light-color-icon-text: var(--light-color-text); + + --light-color-comment-tag-text: var(--light-color-text); + --light-color-comment-tag: var(--light-color-background); + + --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; + + --light-color-ts-keyword: #056bd6; + --light-color-ts-project: #b111c9; + --light-color-ts-module: var(--light-color-ts-project); + --light-color-ts-namespace: var(--light-color-ts-project); + --light-color-ts-enum: #7e6f15; + --light-color-ts-enum-member: var(--light-color-ts-enum); + --light-color-ts-variable: #4760ec; + --light-color-ts-function: #572be7; + --light-color-ts-class: #1f70c2; + --light-color-ts-interface: #108024; + --light-color-ts-constructor: #4d7fff; + --light-color-ts-property: #ff984d; + --light-color-ts-method: #ff4db8; + --light-color-ts-reference: #ff4d82; + --light-color-ts-call-signature: var(--light-color-ts-method); + --light-color-ts-index-signature: var(--light-color-ts-property); + --light-color-ts-constructor-signature: var(--light-color-ts-constructor); + --light-color-ts-parameter: var(--light-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --light-color-ts-type-parameter: #a55c0e; + --light-color-ts-accessor: #ff4d4d; + --light-color-ts-get-signature: var(--light-color-ts-accessor); + --light-color-ts-set-signature: var(--light-color-ts-accessor); + --light-color-ts-type-alias: #d51270; + /* reference not included as links will be colored with the kind that it points to */ + --light-color-document: #000000; + + --light-external-icon: url("data:image/svg+xml;utf8,"); + --light-color-scheme: light; + + /* Dark */ + --dark-color-background: #2b2e33; + --dark-color-background-secondary: #1e2024; + --dark-color-background-warning: #bebe00; + --dark-color-warning-text: #222; + --dark-color-accent: #9096a2; + --dark-color-active-menu-item: #5d5d6a; + --dark-color-text: #f5f5f5; + --dark-color-text-aside: #dddddd; + + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-icon-text: var(--dark-color-text); + + --dark-color-comment-tag-text: var(--dark-color-text); + --dark-color-comment-tag: var(--dark-color-background); + + --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; + + --dark-color-ts-keyword: #3399ff; + --dark-color-ts-project: #e358ff; + --dark-color-ts-module: var(--dark-color-ts-project); + --dark-color-ts-namespace: var(--dark-color-ts-project); + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-enum-member: var(--dark-color-ts-enum); + --dark-color-ts-variable: #798dff; + --dark-color-ts-function: #a280ff; + --dark-color-ts-class: #8ac4ff; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-constructor: #4d7fff; + --dark-color-ts-property: #ff984d; + --dark-color-ts-method: #ff4db8; + --dark-color-ts-reference: #ff4d82; + --dark-color-ts-call-signature: var(--dark-color-ts-method); + --dark-color-ts-index-signature: var(--dark-color-ts-property); + --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); + --dark-color-ts-parameter: var(--dark-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --dark-color-ts-type-parameter: #e07d13; + --dark-color-ts-accessor: #ff4d4d; + --dark-color-ts-get-signature: var(--dark-color-ts-accessor); + --dark-color-ts-set-signature: var(--dark-color-ts-accessor); + --dark-color-ts-type-alias: #ff6492; + /* reference not included as links will be colored with the kind that it points to */ + --dark-color-document: #ffffff; + + --dark-external-icon: url("data:image/svg+xml;utf8,"); + --dark-color-scheme: dark; +} + +@media (prefers-color-scheme: light) { + :root { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + + --color-icon-background: var(--light-color-icon-background); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + + --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); + } +} + +@media (prefers-color-scheme: dark) { + :root { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + + --color-icon-background: var(--dark-color-icon-background); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + + --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); + } +} + +html { + color-scheme: var(--color-scheme); +} + +body { + margin: 0; +} + +:root[data-theme="light"] { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + + --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); +} + +:root[data-theme="dark"] { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + + --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); +} + +*:focus-visible, +.tsd-accordion-summary:focus-visible svg { + outline: 2px solid var(--color-focus-outline); +} + +.always-visible, +.always-visible .tsd-signatures { + display: inherit !important; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + line-height: 1.2; +} + +h1 { + font-size: 1.875rem; + margin: 0.67rem 0; +} + +h2 { + font-size: 1.5rem; + margin: 0.83rem 0; +} + +h3 { + font-size: 1.25rem; + margin: 1rem 0; +} + +h4 { + font-size: 1.05rem; + margin: 1.33rem 0; +} + +h5 { + font-size: 1rem; + margin: 1.5rem 0; +} + +h6 { + font-size: 0.875rem; + margin: 2.33rem 0; +} + +dl, +menu, +ol, +ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +.container { + max-width: 1700px; + padding: 0 2rem; +} + +/* Footer */ +footer { + border-top: 1px solid var(--color-accent); + padding-top: 1rem; + padding-bottom: 1rem; + max-height: 3.5rem; +} +footer > p { + margin: 0 1em; +} + +.container-main { + margin: 0 auto; + /* toolbar, footer, margin */ + min-height: calc(100vh - 41px - 56px - 4rem); +} + +@keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +@keyframes fade-out { + from { + opacity: 1; + visibility: visible; + } + to { + opacity: 0; + } +} +@keyframes fade-in-delayed { + 0% { + opacity: 0; + } + 33% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes fade-out-delayed { + 0% { + opacity: 1; + visibility: visible; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } +} +@keyframes pop-in-from-right { + from { + transform: translate(100%, 0); + } + to { + transform: translate(0, 0); + } +} +@keyframes pop-out-to-right { + from { + transform: translate(0, 0); + visibility: visible; + } + to { + transform: translate(100%, 0); + } +} +body { + background: var(--color-background); + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", + Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; + font-size: 16px; + color: var(--color-text); +} + +a { + color: var(--color-link); + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +a.external[target="_blank"] { + background-image: var(--external-icon); + background-position: top 3px right; + background-repeat: no-repeat; + padding-right: 13px; +} +a.tsd-anchor-link { + color: var(--color-text); +} + +code, +pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + padding: 0.2em; + margin: 0; + font-size: 0.875rem; + border-radius: 0.8em; +} + +pre { + position: relative; + white-space: pre-wrap; + word-wrap: break-word; + padding: 10px; + border: 1px solid var(--color-accent); +} +pre code { + padding: 0; + font-size: 100%; +} +pre > button { + position: absolute; + top: 10px; + right: 10px; + opacity: 0; + transition: opacity 0.1s; + box-sizing: border-box; +} +pre:hover > button, +pre > button.visible { + opacity: 1; +} + +blockquote { + margin: 1em 0; + padding-left: 1em; + border-left: 4px solid gray; +} + +.tsd-typography { + line-height: 1.333em; +} +.tsd-typography ul { + list-style: square; + padding: 0 0 0 20px; + margin: 0; +} +.tsd-typography .tsd-index-panel h3, +.tsd-index-panel .tsd-typography h3, +.tsd-typography h4, +.tsd-typography h5, +.tsd-typography h6 { + font-size: 1em; +} +.tsd-typography h5, +.tsd-typography h6 { + font-weight: normal; +} +.tsd-typography p, +.tsd-typography ul, +.tsd-typography ol { + margin: 1em 0; +} +.tsd-typography table { + border-collapse: collapse; + border: none; +} +.tsd-typography td, +.tsd-typography th { + padding: 6px 13px; + border: 1px solid var(--color-accent); +} +.tsd-typography thead, +.tsd-typography tr:nth-child(even) { + background-color: var(--color-background-secondary); +} + +.tsd-breadcrumb { + margin: 0; + padding: 0; + color: var(--color-text-aside); +} +.tsd-breadcrumb a { + color: var(--color-text-aside); + text-decoration: none; +} +.tsd-breadcrumb a:hover { + text-decoration: underline; +} +.tsd-breadcrumb li { + display: inline; +} +.tsd-breadcrumb li:after { + content: " / "; +} + +.tsd-comment-tags { + display: flex; + flex-direction: column; +} +dl.tsd-comment-tag-group { + display: flex; + align-items: center; + overflow: hidden; + margin: 0.5em 0; +} +dl.tsd-comment-tag-group dt { + display: flex; + margin-right: 0.5em; + font-size: 0.875em; + font-weight: normal; +} +dl.tsd-comment-tag-group dd { + margin: 0; +} +code.tsd-tag { + padding: 0.25em 0.4em; + border: 0.1em solid var(--color-accent); + margin-right: 0.25em; + font-size: 70%; +} +h1 code.tsd-tag:first-of-type { + margin-left: 0.25em; +} + +dl.tsd-comment-tag-group dd:before, +dl.tsd-comment-tag-group dd:after { + content: " "; +} +dl.tsd-comment-tag-group dd pre, +dl.tsd-comment-tag-group dd:after { + clear: both; +} +dl.tsd-comment-tag-group p { + margin: 0; +} + +.tsd-panel.tsd-comment .lead { + font-size: 1.1em; + line-height: 1.333em; + margin-bottom: 2em; +} +.tsd-panel.tsd-comment .lead:last-child { + margin-bottom: 0; +} + +.tsd-filter-visibility h4 { + font-size: 1rem; + padding-top: 0.75rem; + padding-bottom: 0.5rem; + margin: 0; +} +.tsd-filter-item:not(:last-child) { + margin-bottom: 0.5rem; +} +.tsd-filter-input { + display: flex; + width: -moz-fit-content; + width: fit-content; + align-items: center; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + cursor: pointer; +} +.tsd-filter-input input[type="checkbox"] { + cursor: pointer; + position: absolute; + width: 1.5em; + height: 1.5em; + opacity: 0; +} +.tsd-filter-input input[type="checkbox"]:disabled { + pointer-events: none; +} +.tsd-filter-input svg { + cursor: pointer; + width: 1.5em; + height: 1.5em; + margin-right: 0.5em; + border-radius: 0.33em; + /* Leaving this at full opacity breaks event listeners on Firefox. + Don't remove unless you know what you're doing. */ + opacity: 0.99; +} +.tsd-filter-input input[type="checkbox"]:focus-visible + svg { + outline: 2px solid var(--color-focus-outline); +} +.tsd-checkbox-background { + fill: var(--color-accent); +} +input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { + stroke: var(--color-text); +} +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { + fill: var(--color-background); + stroke: var(--color-accent); + stroke-width: 0.25rem; +} +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { + stroke: var(--color-accent); +} + +.settings-label { + font-weight: bold; + text-transform: uppercase; + display: inline-block; +} + +.tsd-filter-visibility .settings-label { + margin: 0.75rem 0 0.5rem 0; +} + +.tsd-theme-toggle .settings-label { + margin: 0.75rem 0.75rem 0 0; +} + +.tsd-hierarchy { + list-style: square; + margin: 0; +} +.tsd-hierarchy .target { + font-weight: bold; +} + +.tsd-full-hierarchy:not(:last-child) { + margin-bottom: 1em; + padding-bottom: 1em; + border-bottom: 1px solid var(--color-accent); +} +.tsd-full-hierarchy, +.tsd-full-hierarchy ul { + list-style: none; + margin: 0; + padding: 0; +} +.tsd-full-hierarchy ul { + padding-left: 1.5rem; +} +.tsd-full-hierarchy a { + padding: 0.25rem 0 !important; + font-size: 1rem; + display: inline-flex; + align-items: center; + color: var(--color-text); +} + +.tsd-panel-group.tsd-index-group { + margin-bottom: 0; +} +.tsd-index-panel .tsd-index-list { + list-style: none; + line-height: 1.333em; + margin: 0; + padding: 0.25rem 0 0 0; + overflow: hidden; + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 1rem; + grid-template-rows: auto; +} +@media (max-width: 1024px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(2, 1fr); + } +} +@media (max-width: 768px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(1, 1fr); + } +} +.tsd-index-panel .tsd-index-list li { + -webkit-page-break-inside: avoid; + -moz-page-break-inside: avoid; + -ms-page-break-inside: avoid; + -o-page-break-inside: avoid; + page-break-inside: avoid; +} + +.tsd-flag { + display: inline-block; + padding: 0.25em 0.4em; + border-radius: 4px; + color: var(--color-comment-tag-text); + background-color: var(--color-comment-tag); + text-indent: 0; + font-size: 75%; + line-height: 1; + font-weight: normal; +} + +.tsd-anchor { + position: relative; + top: -100px; +} + +.tsd-member { + position: relative; +} +.tsd-member .tsd-anchor + h3 { + display: flex; + align-items: center; + margin-top: 0; + margin-bottom: 0; + border-bottom: none; +} + +.tsd-navigation.settings { + margin: 1rem 0; +} +.tsd-navigation > a, +.tsd-navigation .tsd-accordion-summary { + width: calc(100% - 0.25rem); + display: flex; + align-items: center; +} +.tsd-navigation a, +.tsd-navigation summary > span, +.tsd-page-navigation a { + display: flex; + width: calc(100% - 0.25rem); + align-items: center; + padding: 0.25rem; + color: var(--color-text); + text-decoration: none; + box-sizing: border-box; +} +.tsd-navigation a.current, +.tsd-page-navigation a.current { + background: var(--color-active-menu-item); +} +.tsd-navigation a:hover, +.tsd-page-navigation a:hover { + text-decoration: underline; +} +.tsd-navigation ul, +.tsd-page-navigation ul { + margin-top: 0; + margin-bottom: 0; + padding: 0; + list-style: none; +} +.tsd-navigation li, +.tsd-page-navigation li { + padding: 0; + max-width: 100%; +} +.tsd-navigation .tsd-nav-link { + display: none; +} +.tsd-nested-navigation { + margin-left: 3rem; +} +.tsd-nested-navigation > li > details { + margin-left: -1.5rem; +} +.tsd-small-nested-navigation { + margin-left: 1.5rem; +} +.tsd-small-nested-navigation > li > details { + margin-left: -1.5rem; +} + +.tsd-page-navigation-section { + margin-left: 10px; +} +.tsd-page-navigation-section > summary { + padding: 0.25rem; +} +.tsd-page-navigation-section > div { + margin-left: 20px; +} +.tsd-page-navigation ul { + padding-left: 1.75rem; +} + +#tsd-sidebar-links a { + margin-top: 0; + margin-bottom: 0.5rem; + line-height: 1.25rem; +} +#tsd-sidebar-links a:last-of-type { + margin-bottom: 0; +} + +a.tsd-index-link { + padding: 0.25rem 0 !important; + font-size: 1rem; + line-height: 1.25rem; + display: inline-flex; + align-items: center; + color: var(--color-text); +} +.tsd-accordion-summary { + list-style-type: none; /* hide marker on non-safari */ + outline: none; /* broken on safari, so just hide it */ +} +.tsd-accordion-summary::-webkit-details-marker { + display: none; /* hide marker on safari */ +} +.tsd-accordion-summary, +.tsd-accordion-summary a { + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; + + cursor: pointer; +} +.tsd-accordion-summary a { + width: calc(100% - 1.5rem); +} +.tsd-accordion-summary > * { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; +} +.tsd-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; + vertical-align: text-top; +} +.tsd-index-content > :not(:first-child) { + margin-top: 0.75rem; +} +.tsd-index-heading { + margin-top: 1.5rem; + margin-bottom: 0.75rem; +} + +.tsd-no-select { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.tsd-kind-icon { + margin-right: 0.5rem; + width: 1.25rem; + height: 1.25rem; + min-width: 1.25rem; + min-height: 1.25rem; +} +.tsd-signature > .tsd-kind-icon { + margin-right: 0.8rem; +} + +.tsd-panel { + margin-bottom: 2.5rem; +} +.tsd-panel.tsd-member { + margin-bottom: 4rem; +} +.tsd-panel:empty { + display: none; +} +.tsd-panel > h1, +.tsd-panel > h2, +.tsd-panel > h3 { + margin: 1.5rem -1.5rem 0.75rem -1.5rem; + padding: 0 1.5rem 0.75rem 1.5rem; +} +.tsd-panel > h1.tsd-before-signature, +.tsd-panel > h2.tsd-before-signature, +.tsd-panel > h3.tsd-before-signature { + margin-bottom: 0; + border-bottom: none; +} + +.tsd-panel-group { + margin: 2rem 0; +} +.tsd-panel-group.tsd-index-group { + margin: 2rem 0; +} +.tsd-panel-group.tsd-index-group details { + margin: 2rem 0; +} +.tsd-panel-group > .tsd-accordion-summary { + margin-bottom: 1rem; +} + +#tsd-search { + transition: background-color 0.2s; +} +#tsd-search .title { + position: relative; + z-index: 2; +} +#tsd-search .field { + position: absolute; + left: 0; + top: 0; + right: 2.5rem; + height: 100%; +} +#tsd-search .field input { + box-sizing: border-box; + position: relative; + top: -50px; + z-index: 1; + width: 100%; + padding: 0 10px; + opacity: 0; + outline: 0; + border: 0; + background: transparent; + color: var(--color-text); +} +#tsd-search .field label { + position: absolute; + overflow: hidden; + right: -40px; +} +#tsd-search .field input, +#tsd-search .title, +#tsd-toolbar-links a { + transition: opacity 0.2s; +} +#tsd-search .results { + position: absolute; + visibility: hidden; + top: 40px; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); +} +#tsd-search .results li { + background-color: var(--color-background); + line-height: initial; + padding: 4px; +} +#tsd-search .results li:nth-child(even) { + background-color: var(--color-background-secondary); +} +#tsd-search .results li.state { + display: none; +} +#tsd-search .results li.current:not(.no-results), +#tsd-search .results li:hover:not(.no-results) { + background-color: var(--color-accent); +} +#tsd-search .results a { + display: flex; + align-items: center; + padding: 0.25rem; + box-sizing: border-box; +} +#tsd-search .results a:before { + top: 10px; +} +#tsd-search .results span.parent { + color: var(--color-text-aside); + font-weight: normal; +} +#tsd-search.has-focus { + background-color: var(--color-accent); +} +#tsd-search.has-focus .field input { + top: 0; + opacity: 1; +} +#tsd-search.has-focus .title, +#tsd-search.has-focus #tsd-toolbar-links a { + z-index: 0; + opacity: 0; +} +#tsd-search.has-focus .results { + visibility: visible; +} +#tsd-search.loading .results li.state.loading { + display: block; +} +#tsd-search.failure .results li.state.failure { + display: block; +} + +#tsd-toolbar-links { + position: absolute; + top: 0; + right: 2rem; + height: 100%; + display: flex; + align-items: center; + justify-content: flex-end; +} +#tsd-toolbar-links a { + margin-left: 1.5rem; +} +#tsd-toolbar-links a:hover { + text-decoration: underline; +} + +.tsd-signature { + margin: 0 0 1rem 0; + padding: 1rem 0.5rem; + border: 1px solid var(--color-accent); + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 14px; + overflow-x: auto; +} + +.tsd-signature-keyword { + color: var(--color-ts-keyword); + font-weight: normal; +} + +.tsd-signature-symbol { + color: var(--color-text-aside); + font-weight: normal; +} + +.tsd-signature-type { + font-style: italic; + font-weight: normal; +} + +.tsd-signatures { + padding: 0; + margin: 0 0 1em 0; + list-style-type: none; +} +.tsd-signatures .tsd-signature { + margin: 0; + border-color: var(--color-accent); + border-width: 1px 0; + transition: background-color 0.1s; +} +.tsd-signatures .tsd-index-signature:not(:last-child) { + margin-bottom: 1em; +} +.tsd-signatures .tsd-index-signature .tsd-signature { + border-width: 1px; +} +.tsd-description .tsd-signatures .tsd-signature { + border-width: 1px; +} + +ul.tsd-parameter-list, +ul.tsd-type-parameter-list { + list-style: square; + margin: 0; + padding-left: 20px; +} +ul.tsd-parameter-list > li.tsd-parameter-signature, +ul.tsd-type-parameter-list > li.tsd-parameter-signature { + list-style: none; + margin-left: -20px; +} +ul.tsd-parameter-list h5, +ul.tsd-type-parameter-list h5 { + font-size: 16px; + margin: 1em 0 0.5em 0; +} +.tsd-sources { + margin-top: 1rem; + font-size: 0.875em; +} +.tsd-sources a { + color: var(--color-text-aside); + text-decoration: underline; +} +.tsd-sources ul { + list-style: none; + padding: 0; +} + +.tsd-page-toolbar { + position: sticky; + z-index: 1; + top: 0; + left: 0; + width: 100%; + color: var(--color-text); + background: var(--color-background-secondary); + border-bottom: 1px var(--color-accent) solid; + transition: transform 0.3s ease-in-out; +} +.tsd-page-toolbar a { + color: var(--color-text); + text-decoration: none; +} +.tsd-page-toolbar a.title { + font-weight: bold; +} +.tsd-page-toolbar a.title:hover { + text-decoration: underline; +} +.tsd-page-toolbar .tsd-toolbar-contents { + display: flex; + justify-content: space-between; + height: 2.5rem; + margin: 0 auto; +} +.tsd-page-toolbar .table-cell { + position: relative; + white-space: nowrap; + line-height: 40px; +} +.tsd-page-toolbar .table-cell:first-child { + width: 100%; +} +.tsd-page-toolbar .tsd-toolbar-icon { + box-sizing: border-box; + line-height: 0; + padding: 12px 0; +} + +.tsd-widget { + display: inline-block; + overflow: hidden; + opacity: 0.8; + height: 40px; + transition: + opacity 0.1s, + background-color 0.2s; + vertical-align: bottom; + cursor: pointer; +} +.tsd-widget:hover { + opacity: 0.9; +} +.tsd-widget.active { + opacity: 1; + background-color: var(--color-accent); +} +.tsd-widget.no-caption { + width: 40px; +} +.tsd-widget.no-caption:before { + margin: 0; +} + +.tsd-widget.options, +.tsd-widget.menu { + display: none; +} +input[type="checkbox"] + .tsd-widget:before { + background-position: -120px 0; +} +input[type="checkbox"]:checked + .tsd-widget:before { + background-position: -160px 0; +} + +img { + max-width: 100%; +} + +.tsd-anchor-icon { + display: inline-flex; + align-items: center; + margin-left: 0.5rem; + vertical-align: middle; + color: var(--color-text); +} + +.tsd-anchor-icon svg { + width: 1em; + height: 1em; + visibility: hidden; +} + +.tsd-anchor-link:hover > .tsd-anchor-icon svg { + visibility: visible; +} + +.deprecated { + text-decoration: line-through !important; +} + +.warning { + padding: 1rem; + color: var(--color-warning-text); + background: var(--color-background-warning); +} + +.tsd-kind-project { + color: var(--color-ts-project); +} +.tsd-kind-module { + color: var(--color-ts-module); +} +.tsd-kind-namespace { + color: var(--color-ts-namespace); +} +.tsd-kind-enum { + color: var(--color-ts-enum); +} +.tsd-kind-enum-member { + color: var(--color-ts-enum-member); +} +.tsd-kind-variable { + color: var(--color-ts-variable); +} +.tsd-kind-function { + color: var(--color-ts-function); +} +.tsd-kind-class { + color: var(--color-ts-class); +} +.tsd-kind-interface { + color: var(--color-ts-interface); +} +.tsd-kind-constructor { + color: var(--color-ts-constructor); +} +.tsd-kind-property { + color: var(--color-ts-property); +} +.tsd-kind-method { + color: var(--color-ts-method); +} +.tsd-kind-reference { + color: var(--color-ts-reference); +} +.tsd-kind-call-signature { + color: var(--color-ts-call-signature); +} +.tsd-kind-index-signature { + color: var(--color-ts-index-signature); +} +.tsd-kind-constructor-signature { + color: var(--color-ts-constructor-signature); +} +.tsd-kind-parameter { + color: var(--color-ts-parameter); +} +.tsd-kind-type-parameter { + color: var(--color-ts-type-parameter); +} +.tsd-kind-accessor { + color: var(--color-ts-accessor); +} +.tsd-kind-get-signature { + color: var(--color-ts-get-signature); +} +.tsd-kind-set-signature { + color: var(--color-ts-set-signature); +} +.tsd-kind-type-alias { + color: var(--color-ts-type-alias); +} + +/* if we have a kind icon, don't color the text by kind */ +.tsd-kind-icon ~ span { + color: var(--color-text); +} + +* { + scrollbar-width: thin; + scrollbar-color: var(--color-accent) var(--color-icon-background); +} + +*::-webkit-scrollbar { + width: 0.75rem; +} + +*::-webkit-scrollbar-track { + background: var(--color-icon-background); +} + +*::-webkit-scrollbar-thumb { + background-color: var(--color-accent); + border-radius: 999rem; + border: 0.25rem solid var(--color-icon-background); +} + +/* mobile */ +@media (max-width: 769px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } + + .container-main { + display: flex; + } + html .col-content { + float: none; + max-width: 100%; + width: 100%; + } + html .col-sidebar { + position: fixed !important; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + padding: 1.5rem 1.5rem 0 0; + width: 75vw; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-sidebar > *:last-child { + padding-bottom: 20px; + } + html .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + + .to-has-menu .overlay { + animation: fade-in 0.4s; + } + + .to-has-menu .col-sidebar { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu .col-sidebar { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu .col-sidebar { + visibility: visible; + transform: translate(0, 0); + display: flex; + flex-direction: column; + gap: 1.5rem; + max-height: 100vh; + padding: 1rem 2rem; + } + .has-menu .tsd-navigation { + max-height: 100%; + } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } +} + +/* one sidebar */ +@media (min-width: 770px) { + .container-main { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); + grid-template-areas: "sidebar content"; + margin: 2rem auto; + } + + .col-sidebar { + grid-area: sidebar; + } + .col-content { + grid-area: content; + padding: 0 1rem; + } +} +@media (min-width: 770px) and (max-width: 1399px) { + .col-sidebar { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + padding-top: 1rem; + } + .site-menu { + margin-top: 1rem; + } +} + +/* two sidebars */ +@media (min-width: 1200px) { + .container-main { + grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem); + grid-template-areas: "sidebar content toc"; + } + + .col-sidebar { + display: contents; + } + + .page-menu { + grid-area: toc; + padding-left: 1rem; + } + .site-menu { + grid-area: sidebar; + } + + .site-menu { + margin-top: 1rem; + } + + .page-menu, + .site-menu { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + } +} diff --git a/classes/CellRoute.html b/classes/CellRoute.html new file mode 100644 index 0000000..f085050 --- /dev/null +++ b/classes/CellRoute.html @@ -0,0 +1,10 @@ +CellRoute | Cell Router

Class CellRoute

Hierarchy

Implements

  • WebCell

Constructors

Properties

Accessors

Methods

Constructors

  • Returns CellRoute

Properties

component: FC<PageProps> | CustomElementConstructor

Accessors

history: any
  • get matched(): {
        [key: string]: string | undefined;
    }
  • Returns {
        [key: string]: string | undefined;
    }

    • [key: string]: string | undefined
path: any

Methods

  • Called every time the element is inserted into the DOM

    +

    Returns void

diff --git a/classes/History.html b/classes/History.html new file mode 100644 index 0000000..b4bbeff --- /dev/null +++ b/classes/History.html @@ -0,0 +1,14 @@ +History | Cell Router

Class History

Constructors

Properties

Accessors

Methods

Constructors

Properties

baseURL: string = defaultBaseURL
delimiter: RouterMode = RouterMode.hash

Accessors

oldPath: any
path: any

Methods

  • Parameters

    • pattern: string
    • path: string = ...

    Returns {
        [key: string]: string | undefined;
    }

    • [key: string]: string | undefined
  • Parameters

    • path: string = location.href

    Returns string

  • Parameters

    • path: string

    Returns URLData<unknown>

diff --git a/enums/RouterMode.html b/enums/RouterMode.html new file mode 100644 index 0000000..19f7c1b --- /dev/null +++ b/enums/RouterMode.html @@ -0,0 +1,3 @@ +RouterMode | Cell Router

Enumeration RouterMode

Enumeration Members

Enumeration Members

hash
history
diff --git a/functions/createRouter.html b/functions/createRouter.html new file mode 100644 index 0000000..6ef6e1e --- /dev/null +++ b/functions/createRouter.html @@ -0,0 +1 @@ +createRouter | Cell Router

Function createRouter

  • Parameters

    Returns {
        Form: ((__namedParameters: FormProps) => VNode);
        Link: ((__namedParameters: LinkProps) => VNode);
        Route: ((__namedParameters: CellRouteProps) => VNode);
    }

    • Form: ((__namedParameters: FormProps) => VNode)
        • (__namedParameters): VNode
        • Parameters

          Returns VNode

    • Link: ((__namedParameters: LinkProps) => VNode)
        • (__namedParameters): VNode
        • Parameters

          Returns VNode

    • Route: ((__namedParameters: CellRouteProps) => VNode)
        • (__namedParameters): VNode
        • Parameters

          Returns VNode

diff --git a/index.html b/index.html new file mode 100644 index 0000000..975a8a9 --- /dev/null +++ b/index.html @@ -0,0 +1,47 @@ +Cell Router

Cell Router

Cell Router

Web Component Router based on WebCell & MobX

+

NPM Dependency +CI & CD

+

NPM

+

https://web-cell.dev/cell-router/preview/

+
    +
  • +

    [x] <iframe />-like Route Component as a Page Container

    +
  • +
  • +

    [x] Page Link (support <a />, <area /> & <form />)

    +
      +
    • <a href="route/path">Page title</a>
    • +
    • <a href="route/path" title="Page title">Example page</a>
    • +
    • <a href="#page-section">Page section</a> (Scroll to an Anchor smoothly)
    • +
    • <form method="get" action="route/path" /> (Form Data processed by URLSearchParams)
    • +
    +
  • +
  • +

    [x] Path Mode: location.hash (default) & history.pushState()

    +
  • +
  • +

    [x] Async Loading (based on import() ECMAScript syntax)

    +
  • +
  • +

    [x] View Transition API based Page Transition Animation

    +
  • +
+
npm install dom-renderer web-cell cell-router
npm install parcel @parcel/config-default @parcel/transformer-typescript-tsc -D +
+ +
{
"compilerOptions": {
"target": "ES6",
"useDefineForClassFields": true,
"jsx": "react-jsx",
"jsxImportSource": "dom-renderer"
}
} +
+ +
{
"extends": "@parcel/config-default",
"transformers": {
"*.{ts,tsx}": ["@parcel/transformer-typescript-tsc"]
}
} +
+ +
import { DOMRenderer } from 'dom-renderer';
import { FC } from 'web-cell';
import { createRouter, PageProps } from 'cell-router';

const { Route, Link } = createRouter();

const TestPage: FC<PageProps> = ({
className,
style,
path,
history,
...data
}) => (
<ul {...{ className, style }}>
<li>Path: {path}</li>
<li>Data: {JSON.stringify(data)}</li>
</ul>
);

new DOMRenderer().render(
<>
<nav>
<Link to="test?a=1">Test</Link>
<Link to="example/2">Example</Link>
</nav>
<main className="router">
<Route
path=""
component={props => <div {...props}>Home Page</div>}
/>
<Route path="test" component={TestPage} />
<Route path="example/:id" component={TestPage} />
</main>
</>
); +
+ +
{
"compilerOptions": {
"module": "ES2020"
}
} +
+ +
import { DOMRenderer } from 'dom-renderer';
import { FC, lazy } from 'web-cell';
import { createRouter, PageProps } from 'cell-router';

const { Route, Link } = createRouter();

const TestPage: FC<PageProps> = ({
className,
style,
path,
history,
...data
}) => (
<ul {...{ className, style }}>
<li>Path: {path}</li>
<li>Data: {JSON.stringify(data)}</li>
</ul>
);
const AsyncPage = lazy(() => import('./Async'));

new DOMRenderer().render(
<>
<nav>
<Link to="test?a=1">Test</Link>
<Link to="example/2">Example</Link>
</nav>
<main className="router">
<Route
path=""
component={props => <div {...props}>Home Page</div>}
/>
<Route path="test" component={TestPage} />
<Route path="example/:id" component={AsyncPage} />
</main>
</>
); +
+ +
diff --git a/interfaces/CellRouteProps.html b/interfaces/CellRouteProps.html new file mode 100644 index 0000000..035851b --- /dev/null +++ b/interfaces/CellRouteProps.html @@ -0,0 +1,104 @@ +CellRouteProps | Cell Router

Interface CellRouteProps

interface CellRouteProps {
    component: FC<PageProps> | CustomElementConstructor;
    history?: History;
    onAbort: ((event: UIEvent) => any);
    onAnimationCancel: ((event: AnimationEvent) => any);
    onAnimationEnd: ((event: AnimationEvent) => any);
    onAnimationIteration: ((event: AnimationEvent) => any);
    onAnimationStart: ((event: AnimationEvent) => any);
    onAuxClick: ((event: MouseEvent) => any);
    onBeforeInput: ((event: InputEvent) => any);
    onBeforeToggle: ((event: Event) => any);
    onBlur: ((event: FocusEvent) => any);
    onCancel: ((event: Event) => any);
    onCanPlay: ((event: Event) => any);
    onCanplaythrough: ((event: Event) => any);
    onChange: ((event: Event) => any);
    onClick: ((event: MouseEvent) => any);
    onClose: ((event: Event) => any);
    onContextlost: ((event: Event) => any);
    onContextmenu: ((event: MouseEvent) => any);
    onContextrestored: ((event: Event) => any);
    onCopy: ((event: ClipboardEvent) => any);
    onCueChange: ((event: Event) => any);
    onCut: ((event: ClipboardEvent) => any);
    onDblClick: ((event: MouseEvent) => any);
    onDrag: ((event: DragEvent) => any);
    onDragEnd: ((event: DragEvent) => any);
    onDragEnter: ((event: DragEvent) => any);
    onDragLeave: ((event: DragEvent) => any);
    onDragOver: ((event: DragEvent) => any);
    onDragStart: ((event: DragEvent) => any);
    onDrop: ((event: DragEvent) => any);
    onDurationChange: ((event: Event) => any);
    onEmptied: ((event: Event) => any);
    onEnded: ((event: Event) => any);
    onError: ((event: ErrorEvent) => any);
    onFocus: ((event: FocusEvent) => any);
    onFormdata: ((event: FormDataEvent) => any);
    onFullscreenChange: ((event: Event) => any);
    onFullscreenError: ((event: Event) => any);
    onGotpointercapture: ((event: PointerEvent) => any);
    onInput: ((event: Event) => any);
    onInvalid: ((event: Event) => any);
    onKeydown: ((event: KeyboardEvent) => any);
    onKeypress: ((event: KeyboardEvent) => any);
    onKeyup: ((event: KeyboardEvent) => any);
    onLoad: ((event: Event) => any);
    onLoadeddata: ((event: Event) => any);
    onLoadedmetadata: ((event: Event) => any);
    onLoadstart: ((event: Event) => any);
    onLostpointercapture: ((event: PointerEvent) => any);
    onMouseDown: ((event: MouseEvent) => any);
    onMouseEnter: ((event: MouseEvent) => any);
    onMouseLeave: ((event: MouseEvent) => any);
    onMouseMove: ((event: MouseEvent) => any);
    onMouseOut: ((event: MouseEvent) => any);
    onMouseOver: ((event: MouseEvent) => any);
    onMouseUp: ((event: MouseEvent) => any);
    onPaste: ((event: ClipboardEvent) => any);
    onPause: ((event: Event) => any);
    onPlay: ((event: Event) => any);
    onPlaying: ((event: Event) => any);
    onPointerCancel: ((event: PointerEvent) => any);
    onPointerDown: ((event: PointerEvent) => any);
    onPointerEnter: ((event: PointerEvent) => any);
    onPointerLeave: ((event: PointerEvent) => any);
    onPointerMove: ((event: PointerEvent) => any);
    onPointerOut: ((event: PointerEvent) => any);
    onPointerOver: ((event: PointerEvent) => any);
    onPointerUp: ((event: PointerEvent) => any);
    onProgress: ((event: ProgressEvent<EventTarget>) => any);
    onRateChange: ((event: Event) => any);
    onReset: ((event: Event) => any);
    onResize: ((event: UIEvent) => any);
    onScroll: ((event: Event) => any);
    onScrollend: ((event: Event) => any);
    onSecuritypolicyviolation: ((event: SecurityPolicyViolationEvent) => any);
    onSeeked: ((event: Event) => any);
    onSeeking: ((event: Event) => any);
    onSelect: ((event: Event) => any);
    onSelectionChange: ((event: Event) => any);
    onSelectstart: ((event: Event) => any);
    onSlotChange: ((event: Event) => any);
    onStalled: ((event: Event) => any);
    onSubmit: ((event: SubmitEvent) => any);
    onSuspend: ((event: Event) => any);
    onTimeupdate: ((event: Event) => any);
    onToggle: ((event: Event) => any);
    onTouchCancel: ((event: TouchEvent) => any);
    onTouchEnd: ((event: TouchEvent) => any);
    onTouchMove: ((event: TouchEvent) => any);
    onTouchStart: ((event: TouchEvent) => any);
    onTransitionCancel: ((event: TransitionEvent) => any);
    onTransitionEnd: ((event: TransitionEvent) => any);
    onTransitionRun: ((event: TransitionEvent) => any);
    onTransitionStart: ((event: TransitionEvent) => any);
    onVolumeChange: ((event: Event) => any);
    onWaiting: ((event: Event) => any);
    onWebkitanimationend: ((event: Event) => any);
    onWebkitanimationiteration: ((event: Event) => any);
    onWebkitanimationstart: ((event: Event) => any);
    onWebkittransitionend: ((event: Event) => any);
    onWheel: ((event: WheelEvent) => any);
    path: string;
}

Hierarchy

  • WebCellProps
    • CellRouteProps

Properties

component: FC<PageProps> | CustomElementConstructor
history?: History
onAbort: ((event: UIEvent) => any)
onAnimationCancel: ((event: AnimationEvent) => any)
onAnimationEnd: ((event: AnimationEvent) => any)
onAnimationIteration: ((event: AnimationEvent) => any)
onAnimationStart: ((event: AnimationEvent) => any)
onAuxClick: ((event: MouseEvent) => any)
onBeforeInput: ((event: InputEvent) => any)
onBeforeToggle: ((event: Event) => any)
onBlur: ((event: FocusEvent) => any)
onCancel: ((event: Event) => any)
onCanPlay: ((event: Event) => any)
onCanplaythrough: ((event: Event) => any)
onChange: ((event: Event) => any)
onClick: ((event: MouseEvent) => any)
onClose: ((event: Event) => any)
onContextlost: ((event: Event) => any)
onContextmenu: ((event: MouseEvent) => any)
onContextrestored: ((event: Event) => any)
onCopy: ((event: ClipboardEvent) => any)
onCueChange: ((event: Event) => any)
onCut: ((event: ClipboardEvent) => any)
onDblClick: ((event: MouseEvent) => any)
onDrag: ((event: DragEvent) => any)
onDragEnd: ((event: DragEvent) => any)
onDragEnter: ((event: DragEvent) => any)
onDragLeave: ((event: DragEvent) => any)
onDragOver: ((event: DragEvent) => any)
onDragStart: ((event: DragEvent) => any)
onDrop: ((event: DragEvent) => any)
onDurationChange: ((event: Event) => any)
onEmptied: ((event: Event) => any)
onEnded: ((event: Event) => any)
onError: ((event: ErrorEvent) => any)
onFocus: ((event: FocusEvent) => any)
onFormdata: ((event: FormDataEvent) => any)
onFullscreenChange: ((event: Event) => any)
onFullscreenError: ((event: Event) => any)
onGotpointercapture: ((event: PointerEvent) => any)
onInput: ((event: Event) => any)
onInvalid: ((event: Event) => any)
onKeydown: ((event: KeyboardEvent) => any)
onKeypress: ((event: KeyboardEvent) => any)
onKeyup: ((event: KeyboardEvent) => any)
onLoad: ((event: Event) => any)
onLoadeddata: ((event: Event) => any)
onLoadedmetadata: ((event: Event) => any)
onLoadstart: ((event: Event) => any)
onLostpointercapture: ((event: PointerEvent) => any)
onMouseDown: ((event: MouseEvent) => any)
onMouseEnter: ((event: MouseEvent) => any)
onMouseLeave: ((event: MouseEvent) => any)
onMouseMove: ((event: MouseEvent) => any)
onMouseOut: ((event: MouseEvent) => any)
onMouseOver: ((event: MouseEvent) => any)
onMouseUp: ((event: MouseEvent) => any)
onPaste: ((event: ClipboardEvent) => any)
onPause: ((event: Event) => any)
onPlay: ((event: Event) => any)
onPlaying: ((event: Event) => any)
onPointerCancel: ((event: PointerEvent) => any)
onPointerDown: ((event: PointerEvent) => any)
onPointerEnter: ((event: PointerEvent) => any)
onPointerLeave: ((event: PointerEvent) => any)
onPointerMove: ((event: PointerEvent) => any)
onPointerOut: ((event: PointerEvent) => any)
onPointerOver: ((event: PointerEvent) => any)
onPointerUp: ((event: PointerEvent) => any)
onProgress: ((event: ProgressEvent<EventTarget>) => any)
onRateChange: ((event: Event) => any)
onReset: ((event: Event) => any)
onResize: ((event: UIEvent) => any)
onScroll: ((event: Event) => any)
onScrollend: ((event: Event) => any)
onSecuritypolicyviolation: ((event: SecurityPolicyViolationEvent) => any)
onSeeked: ((event: Event) => any)
onSeeking: ((event: Event) => any)
onSelect: ((event: Event) => any)
onSelectionChange: ((event: Event) => any)
onSelectstart: ((event: Event) => any)
onSlotChange: ((event: Event) => any)
onStalled: ((event: Event) => any)
onSubmit: ((event: SubmitEvent) => any)
onSuspend: ((event: Event) => any)
onTimeupdate: ((event: Event) => any)
onToggle: ((event: Event) => any)
onTouchCancel: ((event: TouchEvent) => any)
onTouchEnd: ((event: TouchEvent) => any)
onTouchMove: ((event: TouchEvent) => any)
onTouchStart: ((event: TouchEvent) => any)
onTransitionCancel: ((event: TransitionEvent) => any)
onTransitionEnd: ((event: TransitionEvent) => any)
onTransitionRun: ((event: TransitionEvent) => any)
onTransitionStart: ((event: TransitionEvent) => any)
onVolumeChange: ((event: Event) => any)
onWaiting: ((event: Event) => any)
onWebkitanimationend: ((event: Event) => any)
onWebkitanimationiteration: ((event: Event) => any)
onWebkitanimationstart: ((event: Event) => any)
onWebkittransitionend: ((event: Event) => any)
onWheel: ((event: WheelEvent) => any)
path: string
diff --git a/interfaces/PageProps.html b/interfaces/PageProps.html new file mode 100644 index 0000000..0ef2a9a --- /dev/null +++ b/interfaces/PageProps.html @@ -0,0 +1,103 @@ +PageProps | Cell Router

Interface PageProps

interface PageProps {
    history: History;
    onAbort: ((event: UIEvent) => any);
    onAnimationCancel: ((event: AnimationEvent) => any);
    onAnimationEnd: ((event: AnimationEvent) => any);
    onAnimationIteration: ((event: AnimationEvent) => any);
    onAnimationStart: ((event: AnimationEvent) => any);
    onAuxClick: ((event: MouseEvent) => any);
    onBeforeInput: ((event: InputEvent) => any);
    onBeforeToggle: ((event: Event) => any);
    onBlur: ((event: FocusEvent) => any);
    onCancel: ((event: Event) => any);
    onCanPlay: ((event: Event) => any);
    onCanplaythrough: ((event: Event) => any);
    onChange: ((event: Event) => any);
    onClick: ((event: MouseEvent) => any);
    onClose: ((event: Event) => any);
    onContextlost: ((event: Event) => any);
    onContextmenu: ((event: MouseEvent) => any);
    onContextrestored: ((event: Event) => any);
    onCopy: ((event: ClipboardEvent) => any);
    onCueChange: ((event: Event) => any);
    onCut: ((event: ClipboardEvent) => any);
    onDblClick: ((event: MouseEvent) => any);
    onDrag: ((event: DragEvent) => any);
    onDragEnd: ((event: DragEvent) => any);
    onDragEnter: ((event: DragEvent) => any);
    onDragLeave: ((event: DragEvent) => any);
    onDragOver: ((event: DragEvent) => any);
    onDragStart: ((event: DragEvent) => any);
    onDrop: ((event: DragEvent) => any);
    onDurationChange: ((event: Event) => any);
    onEmptied: ((event: Event) => any);
    onEnded: ((event: Event) => any);
    onError: ((event: ErrorEvent) => any);
    onFocus: ((event: FocusEvent) => any);
    onFormdata: ((event: FormDataEvent) => any);
    onFullscreenChange: ((event: Event) => any);
    onFullscreenError: ((event: Event) => any);
    onGotpointercapture: ((event: PointerEvent) => any);
    onInput: ((event: Event) => any);
    onInvalid: ((event: Event) => any);
    onKeydown: ((event: KeyboardEvent) => any);
    onKeypress: ((event: KeyboardEvent) => any);
    onKeyup: ((event: KeyboardEvent) => any);
    onLoad: ((event: Event) => any);
    onLoadeddata: ((event: Event) => any);
    onLoadedmetadata: ((event: Event) => any);
    onLoadstart: ((event: Event) => any);
    onLostpointercapture: ((event: PointerEvent) => any);
    onMouseDown: ((event: MouseEvent) => any);
    onMouseEnter: ((event: MouseEvent) => any);
    onMouseLeave: ((event: MouseEvent) => any);
    onMouseMove: ((event: MouseEvent) => any);
    onMouseOut: ((event: MouseEvent) => any);
    onMouseOver: ((event: MouseEvent) => any);
    onMouseUp: ((event: MouseEvent) => any);
    onPaste: ((event: ClipboardEvent) => any);
    onPause: ((event: Event) => any);
    onPlay: ((event: Event) => any);
    onPlaying: ((event: Event) => any);
    onPointerCancel: ((event: PointerEvent) => any);
    onPointerDown: ((event: PointerEvent) => any);
    onPointerEnter: ((event: PointerEvent) => any);
    onPointerLeave: ((event: PointerEvent) => any);
    onPointerMove: ((event: PointerEvent) => any);
    onPointerOut: ((event: PointerEvent) => any);
    onPointerOver: ((event: PointerEvent) => any);
    onPointerUp: ((event: PointerEvent) => any);
    onProgress: ((event: ProgressEvent<EventTarget>) => any);
    onRateChange: ((event: Event) => any);
    onReset: ((event: Event) => any);
    onResize: ((event: UIEvent) => any);
    onScroll: ((event: Event) => any);
    onScrollend: ((event: Event) => any);
    onSecuritypolicyviolation: ((event: SecurityPolicyViolationEvent) => any);
    onSeeked: ((event: Event) => any);
    onSeeking: ((event: Event) => any);
    onSelect: ((event: Event) => any);
    onSelectionChange: ((event: Event) => any);
    onSelectstart: ((event: Event) => any);
    onSlotChange: ((event: Event) => any);
    onStalled: ((event: Event) => any);
    onSubmit: ((event: SubmitEvent) => any);
    onSuspend: ((event: Event) => any);
    onTimeupdate: ((event: Event) => any);
    onToggle: ((event: Event) => any);
    onTouchCancel: ((event: TouchEvent) => any);
    onTouchEnd: ((event: TouchEvent) => any);
    onTouchMove: ((event: TouchEvent) => any);
    onTouchStart: ((event: TouchEvent) => any);
    onTransitionCancel: ((event: TransitionEvent) => any);
    onTransitionEnd: ((event: TransitionEvent) => any);
    onTransitionRun: ((event: TransitionEvent) => any);
    onTransitionStart: ((event: TransitionEvent) => any);
    onVolumeChange: ((event: Event) => any);
    onWaiting: ((event: Event) => any);
    onWebkitanimationend: ((event: Event) => any);
    onWebkitanimationiteration: ((event: Event) => any);
    onWebkitanimationstart: ((event: Event) => any);
    onWebkittransitionend: ((event: Event) => any);
    onWheel: ((event: WheelEvent) => any);
    path: string;
    [key: string]: any;
}

Hierarchy

Indexable

  • [key: string]: any

Properties

history: History
onAbort: ((event: UIEvent) => any)
onAnimationCancel: ((event: AnimationEvent) => any)
onAnimationEnd: ((event: AnimationEvent) => any)
onAnimationIteration: ((event: AnimationEvent) => any)
onAnimationStart: ((event: AnimationEvent) => any)
onAuxClick: ((event: MouseEvent) => any)
onBeforeInput: ((event: InputEvent) => any)
onBeforeToggle: ((event: Event) => any)
onBlur: ((event: FocusEvent) => any)
onCancel: ((event: Event) => any)
onCanPlay: ((event: Event) => any)
onCanplaythrough: ((event: Event) => any)
onChange: ((event: Event) => any)
onClick: ((event: MouseEvent) => any)
onClose: ((event: Event) => any)
onContextlost: ((event: Event) => any)
onContextmenu: ((event: MouseEvent) => any)
onContextrestored: ((event: Event) => any)
onCopy: ((event: ClipboardEvent) => any)
onCueChange: ((event: Event) => any)
onCut: ((event: ClipboardEvent) => any)
onDblClick: ((event: MouseEvent) => any)
onDrag: ((event: DragEvent) => any)
onDragEnd: ((event: DragEvent) => any)
onDragEnter: ((event: DragEvent) => any)
onDragLeave: ((event: DragEvent) => any)
onDragOver: ((event: DragEvent) => any)
onDragStart: ((event: DragEvent) => any)
onDrop: ((event: DragEvent) => any)
onDurationChange: ((event: Event) => any)
onEmptied: ((event: Event) => any)
onEnded: ((event: Event) => any)
onError: ((event: ErrorEvent) => any)
onFocus: ((event: FocusEvent) => any)
onFormdata: ((event: FormDataEvent) => any)
onFullscreenChange: ((event: Event) => any)
onFullscreenError: ((event: Event) => any)
onGotpointercapture: ((event: PointerEvent) => any)
onInput: ((event: Event) => any)
onInvalid: ((event: Event) => any)
onKeydown: ((event: KeyboardEvent) => any)
onKeypress: ((event: KeyboardEvent) => any)
onKeyup: ((event: KeyboardEvent) => any)
onLoad: ((event: Event) => any)
onLoadeddata: ((event: Event) => any)
onLoadedmetadata: ((event: Event) => any)
onLoadstart: ((event: Event) => any)
onLostpointercapture: ((event: PointerEvent) => any)
onMouseDown: ((event: MouseEvent) => any)
onMouseEnter: ((event: MouseEvent) => any)
onMouseLeave: ((event: MouseEvent) => any)
onMouseMove: ((event: MouseEvent) => any)
onMouseOut: ((event: MouseEvent) => any)
onMouseOver: ((event: MouseEvent) => any)
onMouseUp: ((event: MouseEvent) => any)
onPaste: ((event: ClipboardEvent) => any)
onPause: ((event: Event) => any)
onPlay: ((event: Event) => any)
onPlaying: ((event: Event) => any)
onPointerCancel: ((event: PointerEvent) => any)
onPointerDown: ((event: PointerEvent) => any)
onPointerEnter: ((event: PointerEvent) => any)
onPointerLeave: ((event: PointerEvent) => any)
onPointerMove: ((event: PointerEvent) => any)
onPointerOut: ((event: PointerEvent) => any)
onPointerOver: ((event: PointerEvent) => any)
onPointerUp: ((event: PointerEvent) => any)
onProgress: ((event: ProgressEvent<EventTarget>) => any)
onRateChange: ((event: Event) => any)
onReset: ((event: Event) => any)
onResize: ((event: UIEvent) => any)
onScroll: ((event: Event) => any)
onScrollend: ((event: Event) => any)
onSecuritypolicyviolation: ((event: SecurityPolicyViolationEvent) => any)
onSeeked: ((event: Event) => any)
onSeeking: ((event: Event) => any)
onSelect: ((event: Event) => any)
onSelectionChange: ((event: Event) => any)
onSelectstart: ((event: Event) => any)
onSlotChange: ((event: Event) => any)
onStalled: ((event: Event) => any)
onSubmit: ((event: SubmitEvent) => any)
onSuspend: ((event: Event) => any)
onTimeupdate: ((event: Event) => any)
onToggle: ((event: Event) => any)
onTouchCancel: ((event: TouchEvent) => any)
onTouchEnd: ((event: TouchEvent) => any)
onTouchMove: ((event: TouchEvent) => any)
onTouchStart: ((event: TouchEvent) => any)
onTransitionCancel: ((event: TransitionEvent) => any)
onTransitionEnd: ((event: TransitionEvent) => any)
onTransitionRun: ((event: TransitionEvent) => any)
onTransitionStart: ((event: TransitionEvent) => any)
onVolumeChange: ((event: Event) => any)
onWaiting: ((event: Event) => any)
onWebkitanimationend: ((event: Event) => any)
onWebkitanimationiteration: ((event: Event) => any)
onWebkitanimationstart: ((event: Event) => any)
onWebkittransitionend: ((event: Event) => any)
onWheel: ((event: WheelEvent) => any)
path: string
diff --git a/interfaces/RouterOptions.html b/interfaces/RouterOptions.html new file mode 100644 index 0000000..07a390b --- /dev/null +++ b/interfaces/RouterOptions.html @@ -0,0 +1,3 @@ +RouterOptions | Cell Router

Interface RouterOptions

interface RouterOptions {
    basePath?: string;
    mode?: "history" | "hash";
}

Properties

Properties

basePath?: string
mode?: "history" | "hash"
diff --git a/modules.html b/modules.html new file mode 100644 index 0000000..ad16fb2 --- /dev/null +++ b/modules.html @@ -0,0 +1,11 @@ +Cell Router

Cell Router

Index

Enumerations

Classes

Interfaces

Type Aliases

Functions

diff --git a/preview/async.fcf3ae1c.js b/preview/async.fcf3ae1c.js new file mode 100644 index 0000000..da06a7e --- /dev/null +++ b/preview/async.fcf3ae1c.js @@ -0,0 +1,4 @@ +function e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var t=globalThis.parcelRequire94c2,n=t.register;n("lqqxu",function(n,r){Object.defineProperty(n.exports,"__esModule",{value:!0,configurable:!0}),e(n.exports,"default",()=>i);var o=t("zlbOT"),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},i=e=>{var{path:t,id:n,edit:r}=e,i=a(e,["path","id","edit"]);return(0,o.jsxs)("div",Object.assign({},i,{children:[(0,o.jsx)("h1",{children:"Async"}),(0,o.jsx)("pre",{children:(0,o.jsx)("code",{children:JSON.stringify(Object.assign({path:t,id:n,edit:r},i),null,4)})})]}))}}),n("zlbOT",function(e,n){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Fragment=e.exports.jsxDEV=e.exports.jsxs=void 0,e.exports.jsx=i;var r=t("ceFTv"),o=t("gPvyW"),a=t("2flNv");function i(e,t,n){var i=t.ref,s=t.is,c=t.style,u=t.children,l=r.__rest(t,["ref","is","style","children"]);"function"==typeof e&&(0,o.isHTMLElementClass)(e)&&(e=(0,o.tagNameOf)(e));var f={key:n,ref:i,is:s,style:c,children:u=[u].flat(1/0).map(function(e){return e instanceof Object?new a.VNode(e):0===e||e?new a.VNode({text:e.toString()}):void 0}).filter(Boolean)};return"string"==typeof e?new a.VNode(r.__assign(r.__assign({},f),{tagName:e,props:l})):e(r.__assign(r.__assign({},f),l))}e.exports.jsxs=i,e.exports.jsxDEV=i,e.exports.Fragment=function(e){var t=e.key,n=e.ref,i=e.is,s=e.style,c=e.children,u=r.__rest(e,["key","ref","is","style","children"]);return new a.VNode({key:t,ref:n,is:i,props:(0,o.isEmpty)(u)?void 0:u,style:s,children:c})}}),n("ceFTv",function(t,n){e(t.exports,"__extends",()=>o),e(t.exports,"__assign",()=>a),e(t.exports,"__rest",()=>i),e(t.exports,"__awaiter",()=>s),e(t.exports,"__generator",()=>c),e(t.exports,"__exportStar",()=>l),e(t.exports,"__values",()=>f),e(t.exports,"__read",()=>p),e(t.exports,"__spreadArray",()=>d);var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function s(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(i,s)}c((r=r.apply(e,t||[])).next())})}function c(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function d(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;ob),e(t.exports,"toHyphenCase",()=>S),e(t.exports,"toCamelCase",()=>M),e(t.exports,"DiffStatus",()=>a),e(t.exports,"diffKeys",()=>_),e(t.exports,"groupBy",()=>P),e(t.exports,"parseJSON",()=>ee),e(t.exports,"isXDomain",()=>eo),e(t.exports,"parseURLData",()=>ea),e(t.exports,"buildURLData",()=>es),e(t.exports,"XMLNamespace",()=>ey),e(t.exports,"templateOf",()=>eg),e(t.exports,"elementTypeOf",()=>ev),e(t.exports,"isHTMLElementClass",()=>ew),e(t.exports,"tagNameOf",()=>eO),e(t.exports,"getVisibleText",()=>e_),e(t.exports,"importCSS",()=>eN),e(t.exports,"scrollTo",()=>eA),e(t.exports,"formToJSON",()=>eH),e(t.exports,"delegate",()=>eI),e(t.exports,"documentReady",()=>eU);var o,a,i={};r(i,"likeNull",function(){return y}),r(i,"isEmpty",function(){return b}),r(i,"classNameOf",function(){return g}),r(i,"assertInheritance",function(){return v}),r(i,"proxyPrototype",function(){return w}),r(i,"isUnsafeNumeric",function(){return x}),r(i,"byteLength",function(){return O}),r(i,"toHyphenCase",function(){return S}),r(i,"toCamelCase",function(){return M}),r(i,"uniqueID",function(){return T}),r(i,"objectFrom",function(){return L}),r(i,"DiffStatus",function(){return a}),r(i,"diffKeys",function(){return _}),r(i,"groupBy",function(){return P}),r(i,"likeArray",function(){return E}),r(i,"isTypedArray",function(){return N}),r(i,"makeArray",function(){return j}),r(i,"splitArray",function(){return A}),r(i,"findDeep",function(){return function e(t,n,r){for(let o of t){if(r(o))return[o];if(o[n]instanceof Array){let t=e(o[n],n,r);if(t.length)return[o,...t]}}return[]}}),r(i,"countBy",function(){return D}),r(i,"cache",function(){return H}),r(i,"createAsyncIterator",function(){return C}),r(i,"mergeStream",function(){return k}),r(i,"ByteSize",function(){return F});var s={};function c(...e){return e.reduce((e,t)=>e+t,0)}function u(...e){return c(...e)/e.length}function l(e,t=!1){let n=u(...e);return c(...e.map(e=>(e-n)**2))/(e.length-(t?1:0))}function f(e,t=!1){return Math.sqrt(l(e,t))}function p(...e){return Math.sqrt(c(...e.map(e=>e**2)))}function d(e,t){let n=e.toFixed(t+2),r=n.indexOf(".")+t+1,o=e=>e.slice(0,r-(t?0:1));if(!+n.slice(r))return o(n);let a=o((+o(n)+10**-t).toFixed(t));return a.includes(".")?a.padEnd(r,"0"):a}function m(e,t=2){let n=e.toFixed(t+2),r=n.indexOf(".");if(r<0)return t?`${n}.${"0".repeat(t)}`:n;let o=r+t+1,a=+n[o-1],i=+n[o],s=+n[o+1];if(i>5||5===i&&(s||a%2))return d(e,t);let c=n.slice(0,o-(t?0:1));return c.includes(".")?c.padEnd(o,"0"):c}r(s,"sum",function(){return c}),r(s,"averageOf",function(){return u}),r(s,"varianceOf",function(){return l}),r(s,"standardDeviationOf",function(){return f}),r(s,"hypotenuseOf",function(){return p}),r(s,"carryFloat",function(){return d}),r(s,"fixFloat",function(){return m}),r(s,"Scalar",function(){return h});class h{constructor(e){this.value=e}valueOf(){return this.value}toShortString(e=2){let{units:t,value:n}=this,{base:r,name:o}=[...t].reverse().find(({base:e})=>Math.abs(n)>=e)||t[0];return`${(n/r).toFixed(e)} ${o}`}static distanceOf(e,t){return Reflect.construct(this,[e-t])}}function y(e){return!(null!=e)||Number.isNaN(e)}function b(e){return y(e)||("object"==typeof e?!Object.keys(e).length:""===e)}let g=e=>Object.prototype.toString.call(e).slice(8,-1);function v(e,t){return e.prototype instanceof t}function w(e,t,n){let r=Object.getPrototypeOf(e);Object.setPrototypeOf(e,new Proxy(r,{set:(e,o,a,i)=>(o in i?Reflect.set(r,o,a,i):t[o]=a,n?.(o,a),!0),get:(e,n,r)=>n in t?t[n]:Reflect.get(e,n,r)}))}function x(e){return/^[\d.]+$/.test(e)&&e.localeCompare(Number.MAX_SAFE_INTEGER+"",void 0,{numeric:!0})>0}function O(e){return e.replace(/[^\u0021-\u007e\uff61-\uffef]/g,"xx").length}function S(e){return e.replace(/[A-Z]+|[^A-Za-z][A-Za-z]/g,(e,t)=>`${t?"-":""}${(e[1]||e[0]).toLowerCase()}`)}function M(e,t=!1){return e.replace(/^[A-Za-z]|[^A-Za-z][A-Za-z]/g,(e,n)=>n||t?(e[1]||e[0]).toUpperCase():e.toLowerCase())}function T(){return(Date.now()+parseInt((Math.random()+"").slice(2))).toString(36)}function L(e,t){return Object.fromEntries(e.map((e,n)=>[t[n],e]))}function _(e,t){let n={};for(let t of e)n[t]=-1;for(let e of t)n[e]||=0,n[e]+=1;return{map:n,group:P(Object.entries(n),([e,t])=>t)}}function E(e){if(y(e))return!1;let{length:t}=e;return"number"==typeof t&&t>=0&&~~t===t}(o=a||(a={}))[o.Old=-1]="Old",o[o.Same=0]="Same",o[o.New=1]="New";let N=e=>e instanceof Object.getPrototypeOf(Int8Array);function j(e){return e instanceof Array?e:y(e)?[]:E(e)?Array.from(e):[e]}let A=(e,t)=>e.reduce((e,n,r)=>((e[~~(r/t)]||=[])[r%t]=n,e),[]);function P(e,t){let n={};for(let r of e){let e=t instanceof Function?t(r):r[t];for(let t of(e instanceof Array||(e=[e]),new Set(e.filter(e=>null!=e))))(n[t]=n[t]||[]).push(r)}return n}function D(e,t){return Object.fromEntries(Object.entries(P(e,t)).map(([e,{length:t}])=>[e,t]))}function H(e,t){var n;return function(...r){return null!=n||(console.trace(`[Cache] execute: ${t}`),Promise.resolve(n=e.call(this,()=>n=void 0,...r)).then(e=>console.log(`[Cache] refreshed: ${t} => ${e}`),e=>console.error(`[Cache] failed: ${e?.message||e}`))),n}}async function*C(e){let{promise:t,resolve:n,reject:r}=Promise.withResolvers(),o=Symbol("done"),a=Promise.withResolvers(),i=e({next:e=>n(e),error:e=>{r(e),i?.()},complete:()=>{a.resolve(o),i?.()}});for(;;){let e=await Promise.race([t,a.promise]);if(e===o)return;yield e,{promise:t,resolve:n,reject:r}=Promise.withResolvers()}}async function*k(...e){for(var t=e.map(e=>e());t[0];){let e=[];for(let n=0,r;r=t[n];n++){let{done:t,value:o}=await r.next();t?e.push(n):yield o}t=t.filter((t,n)=>!e.includes(n))}}class F extends h{constructor(...e){super(...e),this.units=["","K","M","G","T","P","E","Z","Y"].map((e,t)=>({base:1024**t,name:e+"B"}))}}var R={};r(R,"Second",function(){return I}),r(R,"Minute",function(){return U}),r(R,"Quarter",function(){return V}),r(R,"Hour",function(){return z}),r(R,"Day",function(){return $}),r(R,"Week",function(){return W}),r(R,"Year",function(){return X}),r(R,"Month",function(){return B}),r(R,"Season",function(){return q}),r(R,"Timestamp",function(){return J}),r(R,"diffTime",function(){return Y}),r(R,"formatDate",function(){return G}),r(R,"changeMonth",function(){return K});let I=1e3,U=6e4,V=9e5,z=36e5,$=864e5,W=6048e5,X=31536e6,B=2628e6,q=7884e6;class J extends h{toShortString(e=0){return super.toShortString(e)}constructor(...e){super(...e),this.units=[{base:I,name:"s"},{base:U,name:"m"},{base:z,name:"H"},{base:$,name:"D"},{base:W,name:"W"},{base:B,name:"M"},{base:X,name:"Y"}]}}function Y(e,t=new Date){let[n,r]=J.distanceOf(+new Date(e),+new Date(t)).toShortString().split(/\s+/);return{distance:+n,unit:r}}function Z(e){return e=+e+"",t=>(e.lengtht(n))}catch{return e}}function et(e){let t=ee(e);if("string"!=typeof t)return t;let n=+t;return Number.isNaN(n)||n+""!==t?t:n}function en(e,t,n=","){let r=e.trim().split(/[\r\n]+/).map(e=>{let t=[];do{let r;if('"'===e[0]||"'"===e[0])r=function(e){let t=e[0],n=e.indexOf(t,1);if(n<0)throw SyntaxError(`A ${t} is missing`);return e.slice(1,n)}(e),e=e.slice(r.length+3);else{let t=e.indexOf(n);t>-1?(r=e.slice(0,t),e=e.slice(t+1)):(r=e,e="")}t.push(et(r.trim()))}while(e)return t});return t?r.slice(1).map(e=>e.reduce((e,t,n)=>(e[r[0][n]]=t,e),{})):r}r(Q,"parseJSON",function(){return ee}),r(Q,"toJSValue",function(){return et}),r(Q,"parseTextTable",function(){return en});var er={};function eo(e){return new URL(e,document.baseURI).origin!==location.origin}function ea(e=globalThis.location?.search,t=!0){let n=e.split(/\?|#/),r=new URLSearchParams(n[1]||n[0]);return Object.fromEntries([...r.keys()].map(e=>{let n=t?r.getAll(e).map(ee):r.getAll(e);return[e,n.length<2?n[0]:n]}))}r(er,"isXDomain",function(){return eo}),r(er,"parseURLData",function(){return ea}),r(er,"buildURLData",function(){return es}),r(er,"blobOf",function(){return ec}),r(er,"blobFrom",function(){return el});let ei=e=>"string"==typeof e?e:E(e)?j(e)+"":JSON.stringify(e);function es(e){return e instanceof Array||(e=Object.entries(e)),new URLSearchParams(e.map(([e,t])=>!b(t)&&[e,ei(t)]).filter(Boolean))}async function ec(e){return(await fetch(e+"")).blob()}let eu=/^data:(.+?\/(.+?))?(;base64)?,([\s\S]+)/;function el(e){var[t,n,r,o,a]=eu.exec(e)||[];let i=new ArrayBuffer((a=o?atob(a):a).length),s=new Uint8Array(i);for(let e=0;a[e];e++)s[e]=a.charCodeAt(e);return new Blob([i],{type:n})}var ef={};r(ef,"makeCRC32",function(){return ed}),r(ef,"makeSHA",function(){return em});let ep=Array.from(Array(256),(e,t)=>{for(var n=0;n<8;n++)t=1&t?t>>1&0x7fffffff^0xedb88320:t>>1&0x7fffffff;return t});function ed(e){var t=0xffffffff;for(let n of e)t=t>>8&0xffffff^ep[255&t^n.charCodeAt(0)];return"0x"+((0xffffffff^t)>>>0).toString(16)}if("object"==typeof self){if("msCrypto"in globalThis){let{subtle:e}=globalThis.crypto=globalThis.msCrypto;for(let t in e){let n=e[t];n instanceof Function&&(e[t]=function(){let e=n.apply(this,arguments);return new Promise((t,n)=>{e.oncomplete=({target:e})=>t(e.result),e.onabort=e.onerror=n})})}}let{crypto:e}=globalThis;!e?.subtle&&e?.webkitSubtle&&(e.subtle=e.webkitSubtle)}async function em(e,t="SHA-1"){return Array.from(new Uint8Array(await crypto.subtle.digest(t,new TextEncoder().encode(e))),e=>e.toString(16).padStart(2,"0")).join("")}var eh={};r(eh,"XMLNamespace",function(){return ey}),r(eh,"templateOf",function(){return eg}),r(eh,"elementTypeOf",function(){return ev}),r(eh,"isHTMLElementClass",function(){return ew}),r(eh,"tagNameOf",function(){return eO}),r(eh,"isDOMReadOnly",function(){return eS}),r(eh,"parseDOM",function(){return eM}),r(eh,"stringifyDOM",function(){return eT}),r(eh,"walkDOM",function(){return eL}),r(eh,"getVisibleText",function(){return e_}),r(eh,"splitPages",function(){return eE}),r(eh,"importCSS",function(){return eN}),r(eh,"stringifyCSS",function(){return function e(t,n=0,r=" "){let o=r.repeat(n);return Object.entries(t).map(([t,a])=>"object"!=typeof a?`${o}${S(t)}: ${a};`:`${o}${t} { +${e(a,n+1,r)} +${o}}`).join("\n")}}),r(eh,"insertToCursor",function(){return ej}),r(eh,"scrollTo",function(){return eA}),r(eh,"watchScroll",function(){return eP}),r(eh,"watchVisible",function(){return eD}),r(eh,"formToJSON",function(){return eH});let ey={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},eb={};function eg(e){if(eb[e])return eb[e];let t=document.createElement("template");return t.innerHTML=`<${e} />`,eb[e]=t.content.firstElementChild}function ev(e){if(e.includes("-"))return"html";let[t,n]=e.split(":");if(n)return"html"===t?"html":"xml";let r=eg(e);return r instanceof HTMLElement&&!(r instanceof HTMLUnknownElement)?"html":"xml"}function ew(e){return v(e,HTMLElement)}let ex=new WeakMap;function eO(e){let t=ex.get(e);if(t)return t;var{tagName:n}=new e;return ex.set(e,n=n.toLowerCase()),n}function eS(e,t){let n=[[HTMLLinkElement,["sizes"]],[HTMLIFrameElement,["sandbox"]],[HTMLObjectElement,["form"]],[HTMLInputElement,["form","list"]],[HTMLButtonElement,["form"]],[HTMLSelectElement,["form"]],[HTMLTextAreaElement,["form"]],[HTMLOutputElement,["form"]],[HTMLFieldSetElement,["form"]]],r=eg(e);for(let[e,o]of n)if(r instanceof e&&o.includes(t))return!0;return!1}function eM(e){let t=document.createElement("template");return t.innerHTML=e,[...t.content.childNodes].map(e=>(e.remove(),e))}function eT(e){return new XMLSerializer().serializeToString(e).replace(/ xmlns="http:\/\/www.w3.org\/1999\/xhtml"/g,"")}function*eL(e,t){let n=[...e.childNodes];for(let r of((b(t)||t===e.nodeType)&&(yield e),n))yield*eL(r,t)}function e_(e){var t="";for(let{nodeType:n,parentElement:r,nodeValue:o}of eL(e))if(n===Node.TEXT_NODE&&"true"!==r.getAttribute("aria-hidden")){let{width:e,height:n}=r.getBoundingClientRect();e&&n&&(t+=o.trim().replace(/\s+/g," "))}return t}function eE({offsetWidth:e,children:t},n=841.89,r=595.28){let o=n/r*e;var a=0;return[...t].reduce((e,t)=>{var{offsetTop:n,offsetHeight:r}=t;let i=((n+=a)+r)/o,s=~~i;return~~(n/o)!==s&&(a+=r-i),(e[s]||=[]).push(t),e},[])}function eN(e,{alternate:t,...n}={}){let r=[...document.styleSheets].find(({href:t})=>t===e);if(r)return Promise.resolve(r);let o=document.createElement("link");return new Promise((r,a)=>{o.onload=()=>r(o.sheet),o.onerror=(e,t,n,r,o)=>a(o),Object.assign(o,n),o.rel=(t?"alternate ":"")+"stylesheet",o.href=e,document.head.append(o)})}function ej(...e){let t=document.createDocumentFragment();for(let n of(t.append(...e),eL(t)))(![1,3,11].includes(n.nodeType)||["meta","title","link","script"].includes(n.nodeName.toLowerCase()))&&n.replaceWith(...n.childNodes);let n=globalThis.getSelection();if(!n)return;let r=n.getRangeAt(0);r.deleteContents(),r.insertNode(t)}function eA(e,t,n,r){let[o,a]=/^#(.+)/.exec(e)||[];"top"===a?window.scrollTo({top:0,left:0,behavior:"smooth"}):(t||document).querySelector(a?`[id="${a}"]`:e)?.scrollIntoView({behavior:"smooth",block:n,inline:r})}function eP(e,t,n=6){return Array.from(e.querySelectorAll(Array.from(Array(n),(e,t)=>`h${++t}`)+""),e=>(new IntersectionObserver(([e])=>{if(!e.isIntersecting)return;let n=e.target;t({target:n,links:[...n.ownerDocument.querySelectorAll(`[href="#${n.id}"]`)]})}).observe(e),e.id.trim()||(e.id=e.textContent.trim().replace(/\W+/g,"-")),{level:+e.tagName[1],id:e.id,text:e.textContent.trim()}))}function eD(e,t){var n="visible"===document.visibilityState?1:0;function r(e){(3===e||3===n)&&t(3===e),n=e}new IntersectionObserver(([{isIntersecting:e}])=>r(e?2|n:1&n)).observe(e),document.addEventListener("visibilitychange",()=>r("visible"===document.visibilityState?1|n:2&n))}function eH(e){let t={};for(let n of e.elements){let{name:r,value:o,checked:a,defaultValue:i,selectedOptions:s,files:c}=n,u=n.type;if(!r||""===o)continue;let l="fieldset"!==u&&n.closest("fieldset");if(l&&l!==e)continue;let f=o;switch(u){case"radio":case"checkbox":if(!a)continue;f=!i||et(i);break;case"select-multiple":f=Array.from(s,({value:e})=>et(e));break;case"fieldset":f=eH(n);break;case"file":f=c&&Array.from(c);break;case"date":case"datetime-local":case"month":case"hidden":case"number":case"range":case"select-one":f=et(o)}r in t?t[r]=[].concat(t[r],f):t[r]=f instanceof Array&&b(f[1])?f[0]:f}return t}var eC={};function ek(e=1){return new Promise(t=>setTimeout(t,1e3*e))}function eF(e,t=1){var n=!1;return(async()=>{for(;!n;){let n=e();n instanceof Promise&&await n,await ek(t)}})(),()=>n=!0}r(eC,"sleep",function(){return ek}),r(eC,"asyncLoop",function(){return eF});var eR={};function eI(e,t){return function(n){for(var r,o=n.composedPath();(r=o.shift())&&r!==n.currentTarget;)if(r instanceof HTMLElement&&r.matches(e))return t.call(this,n,r,n.detail)}}r(eR,"delegate",function(){return eI}),r(eR,"documentReady",function(){return eU}),r(eR,"promisify",function(){return eV}),r(eR,"createMessageServer",function(){return ez}),r(eR,"createMessageClient",function(){return e$}),r(eR,"serviceWorkerUpdate",function(){return eW});let eU="undefined"!=typeof window?new Promise(e=>{function t(){document?.removeEventListener("DOMContentLoaded",t),window.removeEventListener("load",t),e()}document?.addEventListener("DOMContentLoaded",t),window.addEventListener("load",t),setTimeout(function t(){document?.readyState==="complete"?e():setTimeout(t)})}):Promise.resolve();function eV(e,t){return new Promise((n,r)=>{function o(e){n(e),i()}function a(e){r(e),i()}function i(){t.removeEventListener(e+"end",o),t.removeEventListener(e+"cancel",a)}t.addEventListener(e+"end",o),t.addEventListener(e+"cancel",a)})}function ez(e){async function t({data:{type:t,id:n,...r},source:o,origin:a}){var i=e[t]?.(r);i instanceof Promise&&(i=await i),o.postMessage({...i,id:n},a)}return globalThis.addEventListener("message",t),()=>globalThis.removeEventListener("message",t)}function e$(e,t="*"){return(n,r)=>new Promise(o=>{let a=T();globalThis.addEventListener("message",function e({data:{id:t,...n}}){t===a&&(o(n),globalThis.removeEventListener("message",e))}),e.postMessage({id:a,type:n,...r},t)})}function eW(e){return new Promise(t=>{if(e.waiting)return t(e.waiting);e.onupdatefound=()=>e.installing?.addEventListener("statechange",function(){"installed"===this.state&&navigator.serviceWorker.controller&&t(this)})})}var eX={};r(eX,"PageVector",function(){return eB}),r(eX,"getSwipeVector",function(){return eq}),r(eX,"durationOf",function(){return eJ}),r(eX,"watchMotion",function(){return eY}),r(eX,"transitIn",function(){return eK}),r(eX,"animateIn",function(){return eQ}),r(eX,"transitOut",function(){return e0}),r(eX,"animateOut",function(){return e1});class eB{constructor(e,t){this.from=e,this.to=t}get length(){let{from:e,to:t}=this;return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)+(null!=t.z?Math.pow(t.z-e.z,2):0))}get direction(){let{from:e,to:t}=this,n=t.x-e.x,r=t.y-e.y,o=t.z-e.z,a=Math.abs(n),i=Math.abs(r),s=Math.abs(o);switch(isNaN(s)?Math.max(a,i):Math.max(a,i,s)){case a:return n>0?"right":"left";case i:return r>0?"forward":"backward";case s:return o>0?"up":"down"}}}function eq(e,t,n=6*parseInt(getComputedStyle(document.body).fontSize)){let r=new eB(e,t);if(r.length>=n&&!getSelection()?.toString().trim())return r}function eJ(e,t){let{transitionDuration:n,animationDuration:r}=getComputedStyle(t),o="animation"===e?r:n;return parseFloat(o)*("ms"===o.slice(-2)?1:1e3)}function eY(e,t){return Promise.race([eV(e,t).catch(e=>Promise.resolve(e)),new Promise(n=>setTimeout(n,eJ(e,t)))])}function eZ(e,t,n,r){t.style.display=r;let o=eY(e,t);return new Promise(e=>requestAnimationFrame(()=>{t.classList.add(n),o.then(e)}))}async function eG(e,t,n,r){let o=eY(e,t);t.classList.remove(n),await o,r?t.remove():t.style.display="none"}function eK(e,t,n="block"){return eZ("transition",e,t,n)}function eQ(e,t,n="block"){return eZ("animation",e,t,n)}function e0(e,t,n){return eG("transition",e,t,n)}function e1(e,t,n){return eG("animation",e,t,n)}var e2={};async function e3(e,t){console.log(e),console.time(e),await t(),console.timeEnd(e)}async function e4(e,t,n=3){async function r(){throw await ek(n),RangeError("Timed out")}console.time(e=" "+e);try{return await Promise.race([t(t=>console.assert(t,e)),r()])}finally{console.timeEnd(e)}}r(e2,"describe",function(){return e3}),r(e2,"it",function(){return e4})}),n("2flNv",function(e,n){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.VNode=e.exports.VNodeMeta=void 0;var r=t("ceFTv"),o=t("iYM07"),a=t("gPvyW"),i=function(){this.children=[]};e.exports.VNodeMeta=i;var s=function(e){var t;function n(n){var o,a,i,s,c,u=this,l=n.children,f=r.__rest(n,["children"]);Object.assign(u=e.call(this)||this,f);try{for(var p=r.__values(l||[]),d=p.next();!d.done;d=p.next()){var m=d.value;(i=u.children).push.apply(i,r.__spreadArray([],r.__read(t.isFragment(m)?m.children||[]:[m]),!1))}}catch(e){o={error:e}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}try{for(var h=r.__values(u.children),y=h.next();!y.done;y=h.next())y.value.parent=u}catch(e){s={error:e}}finally{try{y&&!y.done&&(c=h.return)&&c.call(h)}finally{if(s)throw s.error}}var b=f.tagName,g=f.is,v=f.props;return(b||(null==v?void 0:v.className)||g)&&(u.selector=[null==b?void 0:b.toLowerCase(),(null==v?void 0:v.className)&&".".concat(v.className.trim().replace(/\s+/,".")),g&&'[is="'.concat(g,'"]')].filter(Boolean).join("")),u}return r.__extends(n,e),n.prototype.walkUp=function(){var e;return r.__generator(this,function(t){switch(t.label){case 0:e=this,t.label=1;case 1:if(!(e=e.parent))return[3,3];return[4,e];case 2:return t.sent(),[3,1];case 3:return[2]}})},n.prototype.namespaceOf=function(e){var t,n;if(a.XMLNamespace[e])return a.XMLNamespace[e];try{for(var o=r.__values(this.walkUp()),i=o.next();!i.done;i=o.next()){var s=i.value.namespace;if(s)return s}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a.XMLNamespace.html},n.prototype.createDOM=function(e){void 0===e&&(e=globalThis.document);var t=this.tagName,n=this.is,r=this.text;return this.node=r?e.createTextNode(r):t?e.createElementNS(this.namespace||(this.namespace=this.namespaceOf(t)),t,{is:n}):e.createDocumentFragment()},n.prototype.toJSON=function(){return JSON.parse(JSON.stringify({key:this.key,text:this.text,selector:this.selector,namespace:this.namespace,tagName:this.tagName,is:this.is,props:this.props,style:this.style,children:this.children}))},n.prototype.generateElementXML=function(){var e,n,i,s,c,u,l,f,p,d,m,h,y,b,g,v,w,x,O,S,M,T,L,_;return r.__generator(this,function(E){switch(E.label){case 0:if(e=this,n=e.tagName,i=e.props,s=e.style,c=e.children,u=e.node,!(n.includes("-")&&"html"===(0,a.elementTypeOf)(n)))return[3,2];return(l=((null==u?void 0:u.ownerDocument)||document).implementation.createHTMLDocument().body).innerHTML="<".concat(n,">"),f=r.__spreadArray([],r.__read((0,o.findShadowRoots)(l)),!1),[4,l.getHTML({serializableShadowRoots:!0,shadowRoots:f})];case 1:return E.sent(),[3,29];case 2:return p=i.innerHTML,d=r.__rest(i,["innerHTML"]),[4,"<".concat(n)];case 3:for(y in E.sent(),h=[],m=d)h.push(y);b=0,E.label=4;case 4:if(!(b".concat(p,"")];case 15:return E.sent(),[3,29];case 16:if(!c[0])return[3,27];return[4,">"];case 17:E.sent(),E.label=18;case 18:E.trys.push([18,23,24,25]),M=(S=r.__values(c)).next(),E.label=19;case 19:if(M.done)return[3,22];return T=M.value,[5,r.__values(T.generateXML())];case 20:E.sent(),E.label=21;case 21:return M=S.next(),[3,19];case 22:return[3,25];case 23:return L={error:E.sent()},[3,25];case 24:try{M&&!M.done&&(_=S.return)&&_.call(S)}finally{if(L)throw L.error}return[7];case 25:return[4,"")];case 26:return E.sent(),[3,29];case 27:return[4,"script"===n?"><\/script>":" />"];case 28:E.sent(),E.label=29;case 29:return[2]}})},n.prototype.generateXML=function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:if(!t.isFragment(this))return[3,5];return[4,""];case 4:case 6:return n.sent(),[3,9];case 5:if(!(null!=this.text))return[3,7];return[4,this.text];case 7:return[5,r.__values(this.generateElementXML())];case 8:n.sent(),n.label=9;case 9:return[2]}})},n.isFragment=function(e){e.key,e.node,e.children;var t=r.__rest(e,["key","node","children"]);for(var n in t)if(!(0,a.isEmpty)(t[n]))return!1;return!0},n.fromDOM=function(e){var n=this;if(e instanceof Text)return new t({node:e,text:e.nodeValue});if(!(e instanceof Element))return new t({node:e});var r=e.namespaceURI,o=e.tagName,a=e.attributes,i=e.style,s=e.childNodes,c={node:e,namespace:r,tagName:o.toLowerCase(),is:e.getAttribute("is")},u=Array.from(a,function(e){var t=e.name,r=e.value;return"style"!==t&&[n.attrsMap[t]||t,r]}).filter(Boolean);u[0]&&(c.props=Object.fromEntries(u));var l=Array.from(i,function(e){return[e,i[e]]});l[0]&&(c.style=Object.fromEntries(l));var f=Array.from(s,function(e){return t.fromDOM(e)});return f[0]&&(c.children=f),new t(c)},t=n,n.propsMap={className:"class",htmlFor:"for"},n.attrsMap=Object.fromEntries(Object.entries(t.propsMap).map(function(e){return e.reverse()})),n}(i);e.exports.VNode=s}),n("iYM07",function(e,t){var n=e.exports&&e.exports.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},o=e.exports&&e.exports.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(t){if("object"==typeof e.exports){var n=t(void 0,e.exports);void 0!==n&&(e.exports=n)}else"function"==typeof define&&define.amd&&define(["require","exports"],t)}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findShadowRoots=function e(t){var r,o,i;return n(this,function(n){switch(n.label){case 0:r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return e instanceof HTMLElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),o=null,n.label=1;case 1:if(!(o=r.nextNode()))return[3,5];if(!(i=p.get(o)))return[3,4];return[4,i];case 2:return n.sent(),[5,a(e(i))];case 3:n.sent(),n.label=4;case 4:return[3,1];case 5:return[2]}})},t.generateHTML=d,t.getHTML=m,t.attachDeclarativeShadowRoots=h,t.setHTMLUnsafe=y,t.parseHTMLUnsafe=v;var i,s,c,u,l=new XMLSerializer,f=HTMLElement.prototype.attachShadow,p=new WeakMap;function d(e,t){var a,i,s,c,u,f,m,h,y=void 0===t?{}:t,b=y.serializableShadowRoots,g=y.shadowRoots;return n(this,function(t){switch(t.label){case 0:if(g=(null==g?void 0:g.filter(Boolean))||[],!(!b||!g[0]))return[3,2];return[4,e.innerHTML];case 1:return t.sent(),[2];case 2:a=document.createTreeWalker(e,NodeFilter.SHOW_ALL,{acceptNode:function(t){return t===e||t instanceof SVGElement?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}}),i=null,t.label=3;case 3:if(!(i=a.nextNode()))return[3,19];if(!(i instanceof CDATASection))return[3,5];return[4,"")];case 4:case 6:case 8:case 10:return t.sent(),[3,16];case 5:if(!(i instanceof Text))return[3,7];return[4,i.nodeValue||""];case 7:if(!(i instanceof Comment))return[3,9];return[4,"\x3c!--".concat(i.nodeValue,"--\x3e")];case 9:if(!(i instanceof SVGElement))return[3,11];return[4,l.serializeToString(i)];case 11:if(!(i instanceof Element))return[3,16];return s=i.tagName.toLowerCase(),c=o([],r(i.attributes),!1).map(function(e){var t=e.name,n=e.value;return"".concat(t,"=").concat(JSON.parse(n))}),u=p.get(i),[4,"<".concat(o([s],r(c),!1).join(" "),">")];case 12:if(t.sent(),!(u&&g.includes(u)))return[3,14];return f=o([],r(d(u,{serializableShadowRoots:b,shadowRoots:g})),!1).join(""),[4,'")];case 13:t.sent(),t.label=14;case 14:if(i.childNodes[0])return[3,16];return[4,"")];case 15:t.sent(),t.label=16;case 16:if(m=i.nextSibling,h=i.parentElement,!(!m&&h&&h!==e))return[3,18];return[4,"")];case 17:t.sent(),t.label=18;case 18:return[3,3];case 19:return[2]}})}function m(e){return void 0===e&&(e={}),o([],r(d(this,e)),!1).join("")}function h(e){var t,n,r=e.querySelectorAll("template[shadowrootmode]");try{for(var o=a(r),i=o.next();!i.done;i=o.next()){var s=i.value,c=s.parentElement,u=s.content,l=c.attachShadow({mode:s.getAttribute("shadowrootmode")});l.append(u),s.remove(),h(l)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}function y(e){this.innerHTML=e,h(this)}HTMLElement.prototype.attachShadow=function(e){var t=f.call(this,e);return p.set(this,t),t};var b=new DOMParser,g=function(e){return h((void 0===e?document:e).documentElement)};function v(e){var t=b.parseFromString(e,"text/html");return g(t),t}(i=Element.prototype).getHTML||(i.getHTML=m),(s=Element.prototype).setHTMLUnsafe||(s.setHTMLUnsafe=y),(c=ShadowRoot.prototype).getHTML||(c.getHTML=m),(u=ShadowRoot.prototype).setHTMLUnsafe||(u.setHTMLUnsafe=y),Document.parseHTMLUnsafe||(Document.parseHTMLUnsafe=v),new Promise(function(e){"complete"===document.readyState?e():(document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}).then(function(){return g()})})}); +//# sourceMappingURL=async.fcf3ae1c.js.map diff --git a/preview/async.fcf3ae1c.js.map b/preview/async.fcf3ae1c.js.map new file mode 100644 index 0000000..54e1993 --- /dev/null +++ b/preview/async.fcf3ae1c.js.map @@ -0,0 +1 @@ +{"mappings":"A,S,E,C,C,C,C,C,C,C,E,O,c,C,E,E,C,I,E,I,E,W,C,E,a,C,C,E,C,I,E,A,W,iB,C,E,E,Q,C,E,Q,S,C,C,C,E,O,c,C,E,O,C,a,C,M,C,E,a,C,C,G,E,E,O,C,U,I,G,I,E,E,S,E,S,C,C,C,E,I,E,C,E,I,I,K,E,O,S,C,c,C,I,C,E,I,A,E,E,O,C,I,C,C,C,E,C,C,C,E,A,E,G,A,M,G,A,Y,O,O,qB,C,I,I,E,E,E,O,qB,C,G,E,E,M,C,I,E,E,O,C,C,C,E,G,O,S,C,oB,C,I,C,E,C,C,E,G,C,C,C,C,C,E,C,C,C,C,C,C,E,C,A,E,O,C,ECWA,EARiC,AAAC,IAAA,GAAA,CAAA,KAAE,CAAI,CAAA,GAAE,CAAE,CAAA,KAAE,CAAI,CAAA,CAAA,EAAK,EAAK,EAAA,EAA1B,CAAA,OAAA,KAAA,OAA4B,EAAK,MAC/D,AAAA,CAAA,EAAA,EAAA,IAAA,AAAA,EAAA,MAAA,OAAA,MAAA,CAAA,CAAA,EAAS,EAAK,CAAA,SAAA,CACV,AAAA,CAAA,EAAA,EAAA,GAAA,AAAA,EAAA,KAAA,CAAA,SAAA,OAAA,GACA,AAAA,CAAA,EAAA,EAAA,GAAA,AAAA,EAAA,MAAA,CAAA,SACI,AAAA,CAAA,EAAA,EAAA,GAAA,AAAA,EAAA,OAAA,CAAA,SAAO,KAAK,SAAS,CAAA,OAAA,MAAA,CAAA,CAAG,KAAA,EAAM,GAAA,EAAI,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,GAAG,CAAC,IAAI,CAAE,GAEd,CACT,EAiHA,IAAM,EAAY,IAAI,UACpB,EAAe,SAAC,CAA8B,EAC5C,OAAA,EAD+B,AAAjB,CAAA,AAAA,KAAA,IAAA,EAAsB,SAAQ,CAAA,EAAb,eAAA,CAC/B,EAIJ,SAAgB,EAAgB,CAAY,EAC1C,IAAM,EAAW,EAAU,eAAe,CAAC,EAAM,aAIjD,OAFA,EAAa,GAEN,CACT,CAUA,AAAA,CAAA,EAAA,QAAQ,SAAA,AAAA,EAAU,OAAO,EAAA,CAAA,EAAP,OAAO,CAAK,CAAA,EAC9B,AAAA,CAAA,EAAA,QAAQ,SAAA,AAAA,EAAU,aAAa,EAAA,CAAA,EAAb,aAAa,CAAK,CAAA,EACpC,AAAA,CAAA,EAAA,WAAW,SAAA,AAAA,EAAU,OAAO,EAAA,CAAA,EAAP,OAAO,CAAK,CAAA,EACjC,AAAA,CAAA,EAAA,WAAW,SAAA,AAAA,EAAU,aAAa,EAAA,CAAA,EAAb,aAAa,CAAK,CAAA,EACvC,SAAS,eAAe,EAAxB,CAAA,SAAS,eAAe,CAAK,CAAA,EAE7B,IAAI,QAAsB,SAAC,CAAO,EAC5B,AAAwB,aAAxB,SAAS,UAAU,CAAiB,KAEtC,SAAS,gBAAgB,CAAC,mBAAoB,GAC9C,OAAO,gBAAgB,CAAC,OAAQ,GAEpC,GAAG,IAAI,CAAC,WAAM,OAAA,GAAA,E,E","sources":["","test/source/page/async.tsx","node_modules/.pnpm/dom-renderer@2.6.0_typescript@5.6.3/node_modules/dom-renderer/jsx-runtime.js","node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/index.esm.js","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/index.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/data.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/math.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/date.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/parser.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/URL.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/crypto.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/DOM-type.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/DOM.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/timer.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/event.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/animation.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/assert.ts","node_modules/.pnpm/dom-renderer@2.6.0_typescript@5.6.3/node_modules/dom-renderer/dist/VDOM.js","node_modules/.pnpm/declarative-shadow-dom-polyfill@0.4.0_typescript@5.6.3/node_modules/declarative-shadow-dom-polyfill/dist/index.js","node_modules/.pnpm/declarative-shadow-dom-polyfill@0.4.0_typescript@5.6.3/node_modules/declarative-shadow-dom-polyfill/source/index.ts"],"sourcesContent":["\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true, configurable: true});\n}\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n var $parcel$global = globalThis;\n var parcelRequire = $parcel$global[\"parcelRequire94c2\"];\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"lqqxu\", function(module, exports) {\n\n$parcel$defineInteropFlag(module.exports);\n\n$parcel$export(module.exports, \"default\", () => $f9909ccf4763075a$export$2e2bcd8739ae039);\n\nvar $zlbOT = parcelRequire(\"zlbOT\");\nvar $f9909ccf4763075a$var$__rest = undefined && undefined.__rest || function(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nconst $f9909ccf4763075a$var$AsyncPage = (_a)=>{\n var { path: path, id: id, edit: edit } = _a, props = $f9909ccf4763075a$var$__rest(_a, [\n \"path\",\n \"id\",\n \"edit\"\n ]);\n return (0, $zlbOT.jsxs)(\"div\", Object.assign({}, props, {\n children: [\n (0, $zlbOT.jsx)(\"h1\", {\n children: \"Async\"\n }),\n (0, $zlbOT.jsx)(\"pre\", {\n children: (0, $zlbOT.jsx)(\"code\", {\n children: JSON.stringify(Object.assign({\n path: path,\n id: id,\n edit: edit\n }, props), null, 4)\n })\n })\n ]\n }));\n};\nvar $f9909ccf4763075a$export$2e2bcd8739ae039 = $f9909ccf4763075a$var$AsyncPage;\n\n});\nparcelRegister(\"zlbOT\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.Fragment = module.exports.jsxDEV = module.exports.jsxs = void 0;\nmodule.exports.jsx = $06a3b4d229715e45$var$jsx;\n\nvar $ceFTv = parcelRequire(\"ceFTv\");\n\nvar $gPvyW = parcelRequire(\"gPvyW\");\n\nvar $2flNv = parcelRequire(\"2flNv\");\n/**\n * @see {@link https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md}\n * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx}\n */ function $06a3b4d229715e45$var$jsx(type, _a, key) {\n var ref = _a.ref, is = _a.is, style = _a.style, children = _a.children, props = $ceFTv.__rest(_a, [\n \"ref\",\n \"is\",\n \"style\",\n \"children\"\n ]);\n if (typeof type === 'function' && (0, $gPvyW.isHTMLElementClass)(type)) type = (0, $gPvyW.tagNameOf)(type);\n children = [\n children\n ].flat(Infinity).map(function(node) {\n return node instanceof Object ? new $2flNv.VNode(node) : node === 0 || node ? new $2flNv.VNode({\n text: node.toString()\n }) : undefined;\n }).filter(Boolean);\n var commonProps = {\n key: key,\n ref: ref,\n is: is,\n style: style,\n children: children\n };\n return typeof type === 'string' ? new $2flNv.VNode($ceFTv.__assign($ceFTv.__assign({}, commonProps), {\n tagName: type,\n props: props\n })) : type($ceFTv.__assign($ceFTv.__assign({}, commonProps), props));\n}\nmodule.exports.jsxs = $06a3b4d229715e45$var$jsx;\nmodule.exports.jsxDEV = $06a3b4d229715e45$var$jsx;\n/**\n * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#react-automatic-runtime-1}\n */ var $06a3b4d229715e45$var$Fragment = function(_a) {\n var key = _a.key, ref = _a.ref, is = _a.is, style = _a.style, children = _a.children, props = $ceFTv.__rest(_a, [\n \"key\",\n \"ref\",\n \"is\",\n \"style\",\n \"children\"\n ]);\n return new $2flNv.VNode({\n key: key,\n ref: ref,\n is: is,\n props: (0, $gPvyW.isEmpty)(props) ? undefined : props,\n style: style,\n children: children\n });\n};\nmodule.exports.Fragment = $06a3b4d229715e45$var$Fragment;\n\n});\nparcelRegister(\"ceFTv\", function(module, exports) {\n\n$parcel$export(module.exports, \"__extends\", () => $8e874a2fb001c377$export$a8ba968b8961cb8a);\n$parcel$export(module.exports, \"__assign\", () => $8e874a2fb001c377$export$18ce0697a983be9b);\n$parcel$export(module.exports, \"__rest\", () => $8e874a2fb001c377$export$3c9a16f847548506);\n$parcel$export(module.exports, \"__awaiter\", () => $8e874a2fb001c377$export$1050f835b63b671e);\n$parcel$export(module.exports, \"__generator\", () => $8e874a2fb001c377$export$67ebef60e6f28a6);\n$parcel$export(module.exports, \"__exportStar\", () => $8e874a2fb001c377$export$f33643c0debef087);\n$parcel$export(module.exports, \"__values\", () => $8e874a2fb001c377$export$19a8beecd37a4c45);\n$parcel$export(module.exports, \"__read\", () => $8e874a2fb001c377$export$8d051b38c9118094);\n$parcel$export(module.exports, \"__spreadArray\", () => $8e874a2fb001c377$export$1216008129fb82ed);\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */ var $8e874a2fb001c377$var$extendStatics = function(d, b) {\n $8e874a2fb001c377$var$extendStatics = Object.setPrototypeOf || ({\n __proto__: []\n }) instanceof Array && function(d, b) {\n d.__proto__ = b;\n } || function(d, b) {\n for(var p in b)if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return $8e874a2fb001c377$var$extendStatics(d, b);\n};\nfunction $8e874a2fb001c377$export$a8ba968b8961cb8a(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n $8e874a2fb001c377$var$extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nvar $8e874a2fb001c377$export$18ce0697a983be9b = function() {\n $8e874a2fb001c377$export$18ce0697a983be9b = Object.assign || function __assign(t) {\n for(var s, i = 1, n = arguments.length; i < n; i++){\n s = arguments[i];\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return $8e874a2fb001c377$export$18ce0697a983be9b.apply(this, arguments);\n};\nfunction $8e874a2fb001c377$export$3c9a16f847548506(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction $8e874a2fb001c377$export$29e00dfd3077644b(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nfunction $8e874a2fb001c377$export$d5ad3fd78186038f(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n}\nfunction $8e874a2fb001c377$export$3a84e1ae4e97e9b0(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n}\nfunction $8e874a2fb001c377$export$d831c04e792af3d(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n}\nfunction $8e874a2fb001c377$export$6a2a36740a146cb8(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n}\nfunction $8e874a2fb001c377$export$d1a06452d3489bc7(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n}\nfunction $8e874a2fb001c377$export$f1db080c865becb9(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nfunction $8e874a2fb001c377$export$1050f835b63b671e(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction $8e874a2fb001c377$export$67ebef60e6f28a6(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar $8e874a2fb001c377$export$45d3717a4c69092e = Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {\n enumerable: true,\n get: function() {\n return m[k];\n }\n };\n Object.defineProperty(o, k2, desc);\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nfunction $8e874a2fb001c377$export$f33643c0debef087(m, o) {\n for(var p in m)if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) $8e874a2fb001c377$export$45d3717a4c69092e(o, m, p);\n}\nfunction $8e874a2fb001c377$export$19a8beecd37a4c45(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nfunction $8e874a2fb001c377$export$8d051b38c9118094(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while((n === void 0 || n-- > 0) && !(r = i.next()).done)ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally{\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally{\n if (e) throw e.error;\n }\n }\n return ar;\n}\nfunction $8e874a2fb001c377$export$afc72e2116322959() {\n for(var ar = [], i = 0; i < arguments.length; i++)ar = ar.concat($8e874a2fb001c377$export$8d051b38c9118094(arguments[i]));\n return ar;\n}\nfunction $8e874a2fb001c377$export$6388937ca91ccae8() {\n for(var s = 0, i = 0, il = arguments.length; i < il; i++)s += arguments[i].length;\n for(var r = Array(s), k = 0, i = 0; i < il; i++)for(var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)r[k] = a[j];\n return r;\n}\nfunction $8e874a2fb001c377$export$1216008129fb82ed(to, from, pack) {\n if (pack || arguments.length === 2) {\n for(var i = 0, l = from.length, ar; i < l; i++)if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nfunction $8e874a2fb001c377$export$10c90e4f7922046c(v) {\n return this instanceof $8e874a2fb001c377$export$10c90e4f7922046c ? (this.v = v, this) : new $8e874a2fb001c377$export$10c90e4f7922046c(v);\n}\nfunction $8e874a2fb001c377$export$e427f37a30a4de9b(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function() {\n return this;\n }, i;\n function awaitReturn(f) {\n return function(v) {\n return Promise.resolve(v).then(f, reject);\n };\n }\n function verb(n, f) {\n if (g[n]) {\n i[n] = function(v) {\n return new Promise(function(a, b) {\n q.push([\n n,\n v,\n a,\n b\n ]) > 1 || resume(n, v);\n });\n };\n if (f) i[n] = f(i[n]);\n }\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof $8e874a2fb001c377$export$10c90e4f7922046c ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume(\"next\", value);\n }\n function reject(value) {\n resume(\"throw\", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nfunction $8e874a2fb001c377$export$bbd80228419bb833(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function(e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function() {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function(v) {\n return (p = !p) ? {\n value: $8e874a2fb001c377$export$10c90e4f7922046c(o[n](v)),\n done: false\n } : f ? f(v) : v;\n } : f;\n }\n}\nfunction $8e874a2fb001c377$export$e3b29a3d6162315f(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof $8e874a2fb001c377$export$19a8beecd37a4c45 === \"function\" ? $8e874a2fb001c377$export$19a8beecd37a4c45(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function(v) {\n return new Promise(function(resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function(v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nfunction $8e874a2fb001c377$export$4fb47efe1390b86f(cooked, raw) {\n if (Object.defineProperty) Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n else cooked.raw = raw;\n return cooked;\n}\nvar $8e874a2fb001c377$var$__setModuleDefault = Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n};\nvar $8e874a2fb001c377$var$ownKeys = function(o) {\n $8e874a2fb001c377$var$ownKeys = Object.getOwnPropertyNames || function(o) {\n var ar = [];\n for(var k in o)if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return $8e874a2fb001c377$var$ownKeys(o);\n};\nfunction $8e874a2fb001c377$export$c21735bcef00d192(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k = $8e874a2fb001c377$var$ownKeys(mod), i = 0; i < k.length; i++)if (k[i] !== \"default\") $8e874a2fb001c377$export$45d3717a4c69092e(result, mod, k[i]);\n }\n $8e874a2fb001c377$var$__setModuleDefault(result, mod);\n return result;\n}\nfunction $8e874a2fb001c377$export$da59b14a69baef04(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nfunction $8e874a2fb001c377$export$d5dcaf168c640c35(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nfunction $8e874a2fb001c377$export$d40a35129aaff81f(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\nfunction $8e874a2fb001c377$export$81fdc39f203e4e04(state, receiver) {\n if (receiver === null || typeof receiver !== \"object\" && typeof receiver !== \"function\") throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\nfunction $8e874a2fb001c377$export$88ac25d8e944e405(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() {\n try {\n inner.call(this);\n } catch (e) {\n return Promise.reject(e);\n }\n };\n env.stack.push({\n value: value,\n dispose: dispose,\n async: async\n });\n } else if (async) env.stack.push({\n async: true\n });\n return value;\n}\nvar $8e874a2fb001c377$var$_SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function(error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\nfunction $8e874a2fb001c377$export$8f076105dc360e92(env) {\n function fail(e) {\n env.error = env.hasError ? new $8e874a2fb001c377$var$_SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while(r = env.stack.pop())try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {\n fail(e);\n return next();\n });\n } else s |= 1;\n } catch (e) {\n fail(e);\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\nfunction $8e874a2fb001c377$export$889dfb5d17574b0b(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : d + ext + \".\" + cm.toLowerCase() + \"js\";\n });\n return path;\n}\nvar $8e874a2fb001c377$export$2e2bcd8739ae039 = {\n __extends: $8e874a2fb001c377$export$a8ba968b8961cb8a,\n __assign: $8e874a2fb001c377$export$18ce0697a983be9b,\n __rest: $8e874a2fb001c377$export$3c9a16f847548506,\n __decorate: $8e874a2fb001c377$export$29e00dfd3077644b,\n __param: $8e874a2fb001c377$export$d5ad3fd78186038f,\n __esDecorate: $8e874a2fb001c377$export$3a84e1ae4e97e9b0,\n __runInitializers: $8e874a2fb001c377$export$d831c04e792af3d,\n __propKey: $8e874a2fb001c377$export$6a2a36740a146cb8,\n __setFunctionName: $8e874a2fb001c377$export$d1a06452d3489bc7,\n __metadata: $8e874a2fb001c377$export$f1db080c865becb9,\n __awaiter: $8e874a2fb001c377$export$1050f835b63b671e,\n __generator: $8e874a2fb001c377$export$67ebef60e6f28a6,\n __createBinding: $8e874a2fb001c377$export$45d3717a4c69092e,\n __exportStar: $8e874a2fb001c377$export$f33643c0debef087,\n __values: $8e874a2fb001c377$export$19a8beecd37a4c45,\n __read: $8e874a2fb001c377$export$8d051b38c9118094,\n __spread: $8e874a2fb001c377$export$afc72e2116322959,\n __spreadArrays: $8e874a2fb001c377$export$6388937ca91ccae8,\n __spreadArray: $8e874a2fb001c377$export$1216008129fb82ed,\n __await: $8e874a2fb001c377$export$10c90e4f7922046c,\n __asyncGenerator: $8e874a2fb001c377$export$e427f37a30a4de9b,\n __asyncDelegator: $8e874a2fb001c377$export$bbd80228419bb833,\n __asyncValues: $8e874a2fb001c377$export$e3b29a3d6162315f,\n __makeTemplateObject: $8e874a2fb001c377$export$4fb47efe1390b86f,\n __importStar: $8e874a2fb001c377$export$c21735bcef00d192,\n __importDefault: $8e874a2fb001c377$export$da59b14a69baef04,\n __classPrivateFieldGet: $8e874a2fb001c377$export$d5dcaf168c640c35,\n __classPrivateFieldSet: $8e874a2fb001c377$export$d40a35129aaff81f,\n __classPrivateFieldIn: $8e874a2fb001c377$export$81fdc39f203e4e04,\n __addDisposableResource: $8e874a2fb001c377$export$88ac25d8e944e405,\n __disposeResources: $8e874a2fb001c377$export$8f076105dc360e92,\n __rewriteRelativeImportExtension: $8e874a2fb001c377$export$889dfb5d17574b0b\n};\n\n});\n\nparcelRegister(\"gPvyW\", function(module, exports) {\n\n$parcel$export(module.exports, \"isEmpty\", () => $c409e47346e83e74$export$dd1bc94b04021eeb);\n$parcel$export(module.exports, \"toHyphenCase\", () => $c409e47346e83e74$export$3f34ca2fef821bbd);\n$parcel$export(module.exports, \"toCamelCase\", () => $c409e47346e83e74$export$86f54f62aa7a7514);\n$parcel$export(module.exports, \"DiffStatus\", () => $c409e47346e83e74$export$2ddabb89308e1a22);\n$parcel$export(module.exports, \"diffKeys\", () => $c409e47346e83e74$export$14527669107aa301);\n$parcel$export(module.exports, \"groupBy\", () => $c409e47346e83e74$export$3f063810d7bf01bd);\n$parcel$export(module.exports, \"parseJSON\", () => $c409e47346e83e74$export$27924e57e9afff7f);\n$parcel$export(module.exports, \"isXDomain\", () => $c409e47346e83e74$export$71e6483fc2b024eb);\n$parcel$export(module.exports, \"parseURLData\", () => $c409e47346e83e74$export$eb9b2aadbe449a20);\n$parcel$export(module.exports, \"buildURLData\", () => $c409e47346e83e74$export$13397a83aa5915d6);\n$parcel$export(module.exports, \"XMLNamespace\", () => $c409e47346e83e74$export$f5a4056b78c72efa);\n$parcel$export(module.exports, \"templateOf\", () => $c409e47346e83e74$export$2ee022bbbc550b25);\n$parcel$export(module.exports, \"elementTypeOf\", () => $c409e47346e83e74$export$a549dd5cef7f8327);\n$parcel$export(module.exports, \"isHTMLElementClass\", () => $c409e47346e83e74$export$8eece510bcb9c62c);\n$parcel$export(module.exports, \"tagNameOf\", () => $c409e47346e83e74$export$b8a1af58c024fefd);\n$parcel$export(module.exports, \"getVisibleText\", () => $c409e47346e83e74$export$be4650432daa84fd);\n$parcel$export(module.exports, \"importCSS\", () => $c409e47346e83e74$export$7cd14c57bbb84350);\n$parcel$export(module.exports, \"scrollTo\", () => $c409e47346e83e74$export$3f99968195accfaf);\n$parcel$export(module.exports, \"formToJSON\", () => $c409e47346e83e74$export$86d7c59254d6a2c9);\n$parcel$export(module.exports, \"delegate\", () => $c409e47346e83e74$export$10b1921597150314);\n$parcel$export(module.exports, \"documentReady\", () => $c409e47346e83e74$export$3e2b244719956741);\nfunction $c409e47346e83e74$var$$parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {\n get: v,\n set: s,\n enumerable: true,\n configurable: true\n });\n}\nvar $c409e47346e83e74$var$$9b05bcda60cc529c$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"likeNull\", function() {\n return $c409e47346e83e74$export$61cc6ed0f143570b;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"isEmpty\", function() {\n return $c409e47346e83e74$export$dd1bc94b04021eeb;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"classNameOf\", function() {\n return $c409e47346e83e74$export$a09f818797e212c4;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"assertInheritance\", function() {\n return $c409e47346e83e74$export$170f4e08cad8229d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"proxyPrototype\", function() {\n return $c409e47346e83e74$export$2a489b3f92f4996a;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"isUnsafeNumeric\", function() {\n return $c409e47346e83e74$export$67a6ce548ae77071;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"byteLength\", function() {\n return $c409e47346e83e74$export$a48f0734ac7c2329;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"toHyphenCase\", function() {\n return $c409e47346e83e74$export$3f34ca2fef821bbd;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"toCamelCase\", function() {\n return $c409e47346e83e74$export$86f54f62aa7a7514;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"uniqueID\", function() {\n return $c409e47346e83e74$export$89912e019eef22aa;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"objectFrom\", function() {\n return $c409e47346e83e74$export$1c8ba402144543e5;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"DiffStatus\", function() {\n return $c409e47346e83e74$export$2ddabb89308e1a22;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"diffKeys\", function() {\n return $c409e47346e83e74$export$14527669107aa301;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"groupBy\", function() {\n return $c409e47346e83e74$export$3f063810d7bf01bd;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"likeArray\", function() {\n return $c409e47346e83e74$export$b5a4d6f439a5044d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"isTypedArray\", function() {\n return $c409e47346e83e74$export$b119cc7e1840e59c;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"makeArray\", function() {\n return $c409e47346e83e74$export$7b85fd78dd236198;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"splitArray\", function() {\n return $c409e47346e83e74$export$697c3df919c0e61a;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"findDeep\", function() {\n return $c409e47346e83e74$export$e6b5ff3168b5942b;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"countBy\", function() {\n return $c409e47346e83e74$export$1d012a0dff3dab06;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"cache\", function() {\n return $c409e47346e83e74$export$69a3209f1a06c04d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"createAsyncIterator\", function() {\n return $c409e47346e83e74$export$86c18c6347f4a8c4;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"mergeStream\", function() {\n return $c409e47346e83e74$export$dce9414bed0662c;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"ByteSize\", function() {\n return $c409e47346e83e74$export$271f7c16f175f804;\n});\nvar $c409e47346e83e74$var$$6a9944941b4c1893$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"sum\", function() {\n return $c409e47346e83e74$export$8a63f25cc62965f1;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"averageOf\", function() {\n return $c409e47346e83e74$export$e1f36757ecda301d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"varianceOf\", function() {\n return $c409e47346e83e74$export$8e694e1eafd55acb;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"standardDeviationOf\", function() {\n return $c409e47346e83e74$export$57d7c52a66287430;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"hypotenuseOf\", function() {\n return $c409e47346e83e74$export$2b4693832ca3ce16;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"carryFloat\", function() {\n return $c409e47346e83e74$export$5b784e078da1ce6;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"fixFloat\", function() {\n return $c409e47346e83e74$export$17ec9c9f4f23588c;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"Scalar\", function() {\n return $c409e47346e83e74$export$595dbf49c602a1f;\n});\nfunction $c409e47346e83e74$export$8a63f25cc62965f1(...data) {\n return data.reduce((sum, item)=>sum + item, 0);\n}\nfunction $c409e47346e83e74$export$e1f36757ecda301d(...data) {\n return $c409e47346e83e74$export$8a63f25cc62965f1(...data) / data.length;\n}\nfunction $c409e47346e83e74$export$8e694e1eafd55acb(data, sample = false) {\n const average = $c409e47346e83e74$export$e1f36757ecda301d(...data);\n const summary = $c409e47346e83e74$export$8a63f25cc62965f1(...data.map((item)=>(item - average) ** 2));\n return summary / (data.length - (sample ? 1 : 0));\n}\nfunction $c409e47346e83e74$export$57d7c52a66287430(data, sample = false) {\n return Math.sqrt($c409e47346e83e74$export$8e694e1eafd55acb(data, sample));\n}\nfunction $c409e47346e83e74$export$2b4693832ca3ce16(...data) {\n return Math.sqrt($c409e47346e83e74$export$8a63f25cc62965f1(...data.map((item)=>item ** 2)));\n}\nfunction $c409e47346e83e74$export$5b784e078da1ce6(raw, length) {\n const text = raw.toFixed(length + 2);\n const offset = text.indexOf(\".\") + length + 1;\n const cut = (text)=>text.slice(0, offset - (length ? 0 : 1));\n if (!+text.slice(offset)) return cut(text);\n const result = cut((+cut(text) + 10 ** -length).toFixed(length));\n return result.includes(\".\") ? result.padEnd(offset, \"0\") : result;\n}\nfunction $c409e47346e83e74$export$17ec9c9f4f23588c(raw, length = 2) {\n const text = raw.toFixed(length + 2);\n const floatOffset = text.indexOf(\".\");\n if (floatOffset < 0) return length ? `${text}.${\"0\".repeat(length)}` : text;\n const offset = floatOffset + length + 1;\n const before = +text[offset - 1], anchor = +text[offset], after = +text[offset + 1];\n const carry = anchor > 5 || anchor === 5 && (!!after || !!(before % 2));\n if (carry) return $c409e47346e83e74$export$5b784e078da1ce6(raw, length);\n const result = text.slice(0, offset - (length ? 0 : 1));\n return result.includes(\".\") ? result.padEnd(offset, \"0\") : result;\n}\nclass $c409e47346e83e74$export$595dbf49c602a1f {\n constructor(value){\n this.value = value;\n }\n valueOf() {\n return this.value;\n }\n toShortString(fractionDigits = 2) {\n const { units: units, value: value } = this;\n const { base: base, name: name } = [\n ...units\n ].reverse().find(({ base: base })=>Math.abs(value) >= base) || units[0];\n return `${(value / base).toFixed(fractionDigits)} ${name}`;\n }\n static distanceOf(a, b) {\n return Reflect.construct(this, [\n a - b\n ]);\n }\n}\nfunction $c409e47346e83e74$export$61cc6ed0f143570b(value) {\n return !(value != null) || Number.isNaN(value);\n}\nfunction $c409e47346e83e74$export$dd1bc94b04021eeb(value) {\n return $c409e47346e83e74$export$61cc6ed0f143570b(value) || (typeof value === \"object\" ? !Object.keys(value).length : value === \"\");\n}\nconst $c409e47346e83e74$export$a09f818797e212c4 = (data)=>Object.prototype.toString.call(data).slice(8, -1);\nfunction $c409e47346e83e74$export$170f4e08cad8229d(Sub, Super) {\n return Sub.prototype instanceof Super;\n}\nfunction $c409e47346e83e74$export$2a489b3f92f4996a(target, dataStore, setter) {\n const prototype = Object.getPrototypeOf(target);\n const prototypeProxy = new Proxy(prototype, {\n set: (_, key, value, receiver)=>{\n if (key in receiver) Reflect.set(prototype, key, value, receiver);\n else dataStore[key] = value;\n setter?.(key, value);\n return true;\n },\n get: (prototype, key, receiver)=>key in dataStore ? dataStore[key] : Reflect.get(prototype, key, receiver)\n });\n Object.setPrototypeOf(target, prototypeProxy);\n}\nfunction $c409e47346e83e74$export$67a6ce548ae77071(raw) {\n return /^[\\d.]+$/.test(raw) && raw.localeCompare(Number.MAX_SAFE_INTEGER + \"\", undefined, {\n numeric: true\n }) > 0;\n}\nfunction $c409e47346e83e74$export$a48f0734ac7c2329(raw) {\n return raw.replace(/[^\\u0021-\\u007e\\uff61-\\uffef]/g, \"xx\").length;\n}\nfunction $c409e47346e83e74$export$3f34ca2fef821bbd(raw) {\n return raw.replace(/[A-Z]+|[^A-Za-z][A-Za-z]/g, (match, offset)=>`${offset ? \"-\" : \"\"}${(match[1] || match[0]).toLowerCase()}`);\n}\nfunction $c409e47346e83e74$export$86f54f62aa7a7514(raw, large = false) {\n return raw.replace(/^[A-Za-z]|[^A-Za-z][A-Za-z]/g, (match, offset)=>offset || large ? (match[1] || match[0]).toUpperCase() : match.toLowerCase());\n}\nfunction $c409e47346e83e74$export$89912e019eef22aa() {\n return (Date.now() + parseInt((Math.random() + \"\").slice(2))).toString(36);\n}\nfunction $c409e47346e83e74$export$1c8ba402144543e5(values, keys) {\n return Object.fromEntries(values.map((value, index)=>[\n keys[index],\n value\n ]));\n}\nvar $c409e47346e83e74$export$2ddabb89308e1a22;\n(function(DiffStatus) {\n DiffStatus[DiffStatus[\"Old\"] = -1] = \"Old\";\n DiffStatus[DiffStatus[\"Same\"] = 0] = \"Same\";\n DiffStatus[DiffStatus[\"New\"] = 1] = \"New\";\n})($c409e47346e83e74$export$2ddabb89308e1a22 || ($c409e47346e83e74$export$2ddabb89308e1a22 = {}));\nfunction $c409e47346e83e74$export$14527669107aa301(oldList, newList) {\n const map = {};\n for (const item of oldList)map[item] = -1;\n for (const item of newList){\n map[item] ||= 0;\n map[item] += 1;\n }\n return {\n map: map,\n group: $c409e47346e83e74$export$3f063810d7bf01bd(Object.entries(map), ([key, status])=>status)\n };\n}\nfunction $c409e47346e83e74$export$b5a4d6f439a5044d(data) {\n if ($c409e47346e83e74$export$61cc6ed0f143570b(data)) return false;\n const { length: length } = data;\n return typeof length === \"number\" && length >= 0 && ~~length === length;\n}\nconst $c409e47346e83e74$export$b119cc7e1840e59c = (data)=>data instanceof Object.getPrototypeOf(Int8Array);\nfunction $c409e47346e83e74$export$7b85fd78dd236198(data) {\n if (data instanceof Array) return data;\n if ($c409e47346e83e74$export$61cc6ed0f143570b(data)) return [];\n if ($c409e47346e83e74$export$b5a4d6f439a5044d(data)) return Array.from(data);\n return [\n data\n ];\n}\nconst $c409e47346e83e74$export$697c3df919c0e61a = (array, unitLength)=>array.reduce((grid, item, index)=>{\n (grid[~~(index / unitLength)] ||= [])[index % unitLength] = item;\n return grid;\n }, []);\nfunction $c409e47346e83e74$export$e6b5ff3168b5942b(list, subKey, handler) {\n for (const item of list){\n if (handler(item)) return [\n item\n ];\n if (item[subKey] instanceof Array) {\n const result = $c409e47346e83e74$export$e6b5ff3168b5942b(item[subKey], subKey, handler);\n if (result.length) return [\n item,\n ...result\n ];\n }\n }\n return [];\n}\nfunction $c409e47346e83e74$export$3f063810d7bf01bd(list, iteratee) {\n const data = {};\n for (const item of list){\n let keys = iteratee instanceof Function ? iteratee(item) : item[iteratee];\n if (!(keys instanceof Array)) keys = [\n keys\n ];\n for (const key of new Set(keys.filter((key)=>key != null)))(data[key] = data[key] || []).push(item);\n }\n return data;\n}\nfunction $c409e47346e83e74$export$1d012a0dff3dab06(list, iteratee) {\n const group = $c409e47346e83e74$export$3f063810d7bf01bd(list, iteratee);\n const sortedList = Object.entries(group).map(([key, { length: length }])=>[\n key,\n length\n ]);\n return Object.fromEntries(sortedList);\n}\nfunction $c409e47346e83e74$export$69a3209f1a06c04d(executor, title) {\n var cacheData;\n return function(...data) {\n if (cacheData != null) return cacheData;\n console.trace(`[Cache] execute: ${title}`);\n cacheData = executor.call(this, ()=>cacheData = undefined, ...data);\n Promise.resolve(cacheData).then((data)=>console.log(`[Cache] refreshed: ${title} => ${data}`), (error)=>console.error(`[Cache] failed: ${error?.message || error}`));\n return cacheData;\n };\n}\nasync function* $c409e47346e83e74$export$86c18c6347f4a8c4(executor) {\n let { promise: promise, resolve: resolve, reject: reject } = Promise.withResolvers();\n const doneSymbol = Symbol(\"done\"), done = Promise.withResolvers();\n const disposer = executor({\n next: (value)=>resolve(value),\n error: (error)=>{\n reject(error);\n // @ts-ignore\n disposer?.();\n },\n complete: ()=>{\n done.resolve(doneSymbol);\n // @ts-ignore\n disposer?.();\n }\n });\n while(true){\n const value = await Promise.race([\n promise,\n done.promise\n ]);\n if (value === doneSymbol) return;\n yield value;\n ({ promise: promise, resolve: resolve, reject: reject } = Promise.withResolvers());\n }\n}\nasync function* $c409e47346e83e74$export$dce9414bed0662c(...sources) {\n var iterators = sources.map((item)=>item());\n while(iterators[0]){\n const dones = [];\n for(let i = 0, iterator; iterator = iterators[i]; i++){\n const { done: done, value: value } = await iterator.next();\n if (!done) yield value;\n else dones.push(i);\n }\n iterators = iterators.filter((_, i)=>!dones.includes(i));\n }\n}\nclass $c409e47346e83e74$export$271f7c16f175f804 extends $c409e47346e83e74$export$595dbf49c602a1f {\n constructor(...args){\n super(...args);\n this.units = [\n \"\",\n \"K\",\n \"M\",\n \"G\",\n \"T\",\n \"P\",\n \"E\",\n \"Z\",\n \"Y\"\n ].map((name, i)=>({\n base: 1024 ** i,\n name: name + \"B\"\n }));\n }\n}\nvar $c409e47346e83e74$var$$f872d8bba1c0f79f$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Second\", function() {\n return $c409e47346e83e74$export$c489aa6f7fd82b1a;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Minute\", function() {\n return $c409e47346e83e74$export$cbd942915f33be50;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Quarter\", function() {\n return $c409e47346e83e74$export$9b886f8493244014;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Hour\", function() {\n return $c409e47346e83e74$export$e99cbb807a5bb10d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Day\", function() {\n return $c409e47346e83e74$export$7a9a31a911eb9a20;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Week\", function() {\n return $c409e47346e83e74$export$fca4f8121099df57;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Year\", function() {\n return $c409e47346e83e74$export$6ce2f08d515512;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Month\", function() {\n return $c409e47346e83e74$export$951c8378cdfec6e6;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Season\", function() {\n return $c409e47346e83e74$export$1a4097b876a13bf7;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Timestamp\", function() {\n return $c409e47346e83e74$export$d9bcbd5e1ff81430;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"diffTime\", function() {\n return $c409e47346e83e74$export$506c8e8f8c8edda;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"formatDate\", function() {\n return $c409e47346e83e74$export$3ae94a2503e890a1;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"changeMonth\", function() {\n return $c409e47346e83e74$export$62ad822b3a5fd9a0;\n});\nconst $c409e47346e83e74$export$c489aa6f7fd82b1a = 1000;\nconst $c409e47346e83e74$export$cbd942915f33be50 = $c409e47346e83e74$export$c489aa6f7fd82b1a * 60;\nconst $c409e47346e83e74$export$9b886f8493244014 = $c409e47346e83e74$export$cbd942915f33be50 * 15;\nconst $c409e47346e83e74$export$e99cbb807a5bb10d = $c409e47346e83e74$export$9b886f8493244014 * 4;\nconst $c409e47346e83e74$export$7a9a31a911eb9a20 = $c409e47346e83e74$export$e99cbb807a5bb10d * 24;\nconst $c409e47346e83e74$export$fca4f8121099df57 = $c409e47346e83e74$export$7a9a31a911eb9a20 * 7;\nconst $c409e47346e83e74$export$6ce2f08d515512 = $c409e47346e83e74$export$7a9a31a911eb9a20 * 365;\nconst $c409e47346e83e74$export$951c8378cdfec6e6 = $c409e47346e83e74$export$6ce2f08d515512 / 12;\nconst $c409e47346e83e74$export$1a4097b876a13bf7 = $c409e47346e83e74$export$951c8378cdfec6e6 * 3;\nclass $c409e47346e83e74$export$d9bcbd5e1ff81430 extends $c409e47346e83e74$export$595dbf49c602a1f {\n toShortString(fractionDigits = 0) {\n return super.toShortString(fractionDigits);\n }\n constructor(...args){\n super(...args);\n this.units = [\n {\n base: $c409e47346e83e74$export$c489aa6f7fd82b1a,\n name: \"s\"\n },\n {\n base: $c409e47346e83e74$export$cbd942915f33be50,\n name: \"m\"\n },\n {\n base: $c409e47346e83e74$export$e99cbb807a5bb10d,\n name: \"H\"\n },\n {\n base: $c409e47346e83e74$export$7a9a31a911eb9a20,\n name: \"D\"\n },\n {\n base: $c409e47346e83e74$export$fca4f8121099df57,\n name: \"W\"\n },\n {\n base: $c409e47346e83e74$export$951c8378cdfec6e6,\n name: \"M\"\n },\n {\n base: $c409e47346e83e74$export$6ce2f08d515512,\n name: \"Y\"\n }\n ];\n }\n}\nfunction $c409e47346e83e74$export$506c8e8f8c8edda(end, start = new Date()) {\n const timeDistance = $c409e47346e83e74$export$d9bcbd5e1ff81430.distanceOf(+new Date(end), +new Date(start));\n const [value, unit] = timeDistance.toShortString().split(/\\s+/);\n return {\n distance: +value,\n unit: unit\n };\n}\nfunction $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(value) {\n value = +value + \"\";\n return (template)=>(value.length < template.length ? value.padStart(template.length, \"0\") : value).slice(-Math.max(template.length, 2));\n}\nfunction $c409e47346e83e74$export$3ae94a2503e890a1(time = new Date(), template = \"YYYY-MM-DD HH:mm:ss\") {\n time = time instanceof Date ? time : new Date(time);\n time = new Date(+time - time.getTimezoneOffset() * $c409e47346e83e74$export$cbd942915f33be50);\n const [year, month, day, hour, minute, second, millisecond] = time.toJSON().split(/\\D/);\n return template.replace(/ms/g, millisecond).replace(/Y+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(year)).replace(/M+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(month)).replace(/D+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(day)).replace(/H+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(hour)).replace(/m+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(minute)).replace(/s+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(second));\n}\nfunction $c409e47346e83e74$export$62ad822b3a5fd9a0(date, delta) {\n date = new Date(date);\n const month = date.getMonth() + delta;\n date.setFullYear(date.getFullYear() + Math.floor(month / 12));\n delta = month % 12;\n date.setMonth(delta < 0 ? 12 + delta : delta);\n return date;\n}\nvar $c409e47346e83e74$var$$ba0e5dc395660a7c$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$ba0e5dc395660a7c$exports, \"parseJSON\", function() {\n return $c409e47346e83e74$export$27924e57e9afff7f;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$ba0e5dc395660a7c$exports, \"toJSValue\", function() {\n return $c409e47346e83e74$export$7ea17d45ecdcf634;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$ba0e5dc395660a7c$exports, \"parseTextTable\", function() {\n return $c409e47346e83e74$export$bb8626e4916f587b;\n});\nfunction $c409e47346e83e74$export$27924e57e9afff7f(raw) {\n function parseItem(value) {\n if (typeof value === \"string\" && /^\\d+(-\\d{1,2}){1,2}/.test(value)) {\n const date = new Date(value);\n if (!Number.isNaN(+date)) return date;\n }\n return value;\n }\n const value = parseItem(raw);\n if (typeof value !== \"string\" || $c409e47346e83e74$export$67a6ce548ae77071(value)) return value;\n try {\n return JSON.parse(raw, (key, value)=>parseItem(value));\n } catch {\n return raw;\n }\n}\nfunction $c409e47346e83e74$export$7ea17d45ecdcf634(raw) {\n const parsed = $c409e47346e83e74$export$27924e57e9afff7f(raw);\n if (typeof parsed !== \"string\") return parsed;\n const number = +parsed;\n return Number.isNaN(number) || number + \"\" !== parsed ? parsed : number;\n}\nfunction $c409e47346e83e74$var$$ba0e5dc395660a7c$var$readQuoteValue(raw) {\n const quote = raw[0];\n const index = raw.indexOf(quote, 1);\n if (index < 0) throw SyntaxError(`A ${quote} is missing`);\n return raw.slice(1, index);\n}\nfunction $c409e47346e83e74$export$bb8626e4916f587b(raw, header, separator = \",\") {\n const data = raw.trim().split(/[\\r\\n]+/).map((row)=>{\n const list = [];\n do {\n let value;\n if (row[0] === '\"' || row[0] === \"'\") {\n value = $c409e47346e83e74$var$$ba0e5dc395660a7c$var$readQuoteValue(row);\n row = row.slice(value.length + 3);\n } else {\n const index = row.indexOf(separator);\n if (index > -1) {\n value = row.slice(0, index);\n row = row.slice(index + 1);\n } else {\n value = row;\n row = \"\";\n }\n }\n list.push($c409e47346e83e74$export$7ea17d45ecdcf634(value.trim()));\n }while (row);\n return list;\n });\n return !header ? data : data.slice(1).map((row)=>row.reduce((object, item, index)=>{\n object[data[0][index]] = item;\n return object;\n }, {}));\n}\nvar $c409e47346e83e74$var$$083124ac4b1a50a0$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$083124ac4b1a50a0$exports, \"isXDomain\", function() {\n return $c409e47346e83e74$export$71e6483fc2b024eb;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$083124ac4b1a50a0$exports, \"parseURLData\", function() {\n return $c409e47346e83e74$export$eb9b2aadbe449a20;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$083124ac4b1a50a0$exports, \"buildURLData\", function() {\n return $c409e47346e83e74$export$13397a83aa5915d6;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$083124ac4b1a50a0$exports, \"blobOf\", function() {\n return $c409e47346e83e74$export$fd89523fba250fa4;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$083124ac4b1a50a0$exports, \"blobFrom\", function() {\n return $c409e47346e83e74$export$504fbde693c1771c;\n});\nfunction $c409e47346e83e74$export$71e6483fc2b024eb(URI) {\n return new URL(URI, document.baseURI).origin !== location.origin;\n}\nfunction $c409e47346e83e74$export$eb9b2aadbe449a20(raw = globalThis.location?.search, toBuiltIn = true) {\n const list = raw.split(/\\?|#/);\n const data = new URLSearchParams(list[1] || list[0]);\n return Object.fromEntries([\n ...data.keys()\n ].map((key)=>{\n const list = toBuiltIn ? data.getAll(key).map($c409e47346e83e74$export$27924e57e9afff7f) : data.getAll(key);\n return [\n key,\n list.length < 2 ? list[0] : list\n ];\n }));\n}\nconst $c409e47346e83e74$var$$083124ac4b1a50a0$var$stringify = (value)=>typeof value === \"string\" ? value : $c409e47346e83e74$export$b5a4d6f439a5044d(value) ? $c409e47346e83e74$export$7b85fd78dd236198(value) + \"\" : JSON.stringify(value);\nfunction $c409e47346e83e74$export$13397a83aa5915d6(map) {\n if (!(map instanceof Array)) map = Object.entries(map);\n const list = map.map(([key, value])=>!$c409e47346e83e74$export$dd1bc94b04021eeb(value) && [\n key,\n $c409e47346e83e74$var$$083124ac4b1a50a0$var$stringify(value)\n ]).filter(Boolean);\n return new URLSearchParams(list);\n}\nasync function $c409e47346e83e74$export$fd89523fba250fa4(URI) {\n return (await fetch(URI + \"\")).blob();\n}\nconst $c409e47346e83e74$var$$083124ac4b1a50a0$var$DataURI = /^data:(.+?\\/(.+?))?(;base64)?,([\\s\\S]+)/;\nfunction $c409e47346e83e74$export$504fbde693c1771c(URI) {\n var [_, type, __, base64, data] = $c409e47346e83e74$var$$083124ac4b1a50a0$var$DataURI.exec(URI) || [];\n data = base64 ? atob(data) : data;\n const aBuffer = new ArrayBuffer(data.length);\n const uBuffer = new Uint8Array(aBuffer);\n for(let i = 0; data[i]; i++)uBuffer[i] = data.charCodeAt(i);\n return new Blob([\n aBuffer\n ], {\n type: type\n });\n}\nvar $c409e47346e83e74$var$$50872bf213056663$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$50872bf213056663$exports, \"makeCRC32\", function() {\n return $c409e47346e83e74$export$1b9ac4d3de3ffd2e;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$50872bf213056663$exports, \"makeSHA\", function() {\n return $c409e47346e83e74$export$d51f3b55e8d1aa73;\n});\nconst $c409e47346e83e74$var$$50872bf213056663$var$CRC_32_Table = Array.from(new Array(256), (_, cell)=>{\n for(var j = 0; j < 8; j++)if (cell & 1) cell = cell >> 1 & 0x7fffffff ^ 0xedb88320;\n else cell = cell >> 1 & 0x7fffffff;\n return cell;\n});\nfunction $c409e47346e83e74$export$1b9ac4d3de3ffd2e(raw) {\n var value = 0xffffffff;\n for (const char of raw)value = value >> 8 & 0x00ffffff ^ $c409e47346e83e74$var$$50872bf213056663$var$CRC_32_Table[value & 0xff ^ char.charCodeAt(0)];\n return \"0x\" + ((value ^ 0xffffffff) >>> 0).toString(16);\n}\nif (typeof self === \"object\") {\n if (\"msCrypto\" in globalThis) {\n // @ts-ignore\n const { subtle: subtle } = globalThis.crypto = globalThis.msCrypto;\n for(const key in subtle){\n const origin = subtle[key];\n if (origin instanceof Function) subtle[key] = function() {\n const observer = origin.apply(this, arguments);\n return new Promise((resolve, reject)=>{\n observer.oncomplete = ({ target: target })=>resolve(target.result);\n observer.onabort = observer.onerror = reject;\n });\n };\n }\n }\n const { crypto: crypto1 } = globalThis;\n if (!crypto1?.subtle && crypto1?.[\"webkitSubtle\"]) crypto1.subtle = crypto1[\"webkitSubtle\"];\n}\nasync function $c409e47346e83e74$export$d51f3b55e8d1aa73(raw, algorithm = \"SHA-1\") {\n const buffer = await crypto.subtle.digest(algorithm, new TextEncoder().encode(raw));\n return Array.from(new Uint8Array(buffer), (byte)=>byte.toString(16).padStart(2, \"0\")).join(\"\");\n}\nvar $c409e47346e83e74$var$$93a3089d2937b23f$exports = {};\nvar $c409e47346e83e74$var$$3e0a089cc13f69ad$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"XMLNamespace\", function() {\n return $c409e47346e83e74$export$f5a4056b78c72efa;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"templateOf\", function() {\n return $c409e47346e83e74$export$2ee022bbbc550b25;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"elementTypeOf\", function() {\n return $c409e47346e83e74$export$a549dd5cef7f8327;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"isHTMLElementClass\", function() {\n return $c409e47346e83e74$export$8eece510bcb9c62c;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"tagNameOf\", function() {\n return $c409e47346e83e74$export$b8a1af58c024fefd;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"isDOMReadOnly\", function() {\n return $c409e47346e83e74$export$a2cf0d4bb6e06de4;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"parseDOM\", function() {\n return $c409e47346e83e74$export$d66b332881d9723f;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"stringifyDOM\", function() {\n return $c409e47346e83e74$export$b0709844452f8b6b;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"walkDOM\", function() {\n return $c409e47346e83e74$export$5118471ee5d5453b;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"getVisibleText\", function() {\n return $c409e47346e83e74$export$be4650432daa84fd;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"splitPages\", function() {\n return $c409e47346e83e74$export$578e38b4a3e0b255;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"importCSS\", function() {\n return $c409e47346e83e74$export$7cd14c57bbb84350;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"stringifyCSS\", function() {\n return $c409e47346e83e74$export$5100419dfae0456d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"insertToCursor\", function() {\n return $c409e47346e83e74$export$28d9d24a8cd0ffc2;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"scrollTo\", function() {\n return $c409e47346e83e74$export$3f99968195accfaf;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"watchScroll\", function() {\n return $c409e47346e83e74$export$eafdbaa868ea9975;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"watchVisible\", function() {\n return $c409e47346e83e74$export$36a0c1ca2ae264fa;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"formToJSON\", function() {\n return $c409e47346e83e74$export$86d7c59254d6a2c9;\n});\nconst $c409e47346e83e74$export$f5a4056b78c72efa = {\n html: \"http://www.w3.org/1999/xhtml\",\n svg: \"http://www.w3.org/2000/svg\",\n math: \"http://www.w3.org/1998/Math/MathML\"\n};\nconst $c409e47346e83e74$var$$3e0a089cc13f69ad$var$templateMap = {};\nfunction $c409e47346e83e74$export$2ee022bbbc550b25(tagName) {\n if ($c409e47346e83e74$var$$3e0a089cc13f69ad$var$templateMap[tagName]) return $c409e47346e83e74$var$$3e0a089cc13f69ad$var$templateMap[tagName];\n const spawn = document.createElement(\"template\");\n spawn.innerHTML = `<${tagName} />`;\n return $c409e47346e83e74$var$$3e0a089cc13f69ad$var$templateMap[tagName] = spawn.content.firstElementChild;\n}\nfunction $c409e47346e83e74$export$a549dd5cef7f8327(tagName) {\n if (tagName.includes(\"-\")) return \"html\";\n const [prefix, localName] = tagName.split(\":\");\n if (localName) return prefix === \"html\" ? \"html\" : \"xml\";\n const node = $c409e47346e83e74$export$2ee022bbbc550b25(tagName);\n return node instanceof HTMLElement && !(node instanceof HTMLUnknownElement) ? \"html\" : \"xml\";\n}\nfunction $c409e47346e83e74$export$8eece510bcb9c62c(Class) {\n return $c409e47346e83e74$export$170f4e08cad8229d(Class, HTMLElement);\n}\nconst $c409e47346e83e74$var$$3e0a089cc13f69ad$var$nameMap = new WeakMap();\nfunction $c409e47346e83e74$export$b8a1af58c024fefd(Class) {\n const name = $c409e47346e83e74$var$$3e0a089cc13f69ad$var$nameMap.get(Class);\n if (name) return name;\n var { tagName: tagName } = new Class();\n $c409e47346e83e74$var$$3e0a089cc13f69ad$var$nameMap.set(Class, tagName = tagName.toLowerCase());\n return tagName;\n}\nfunction $c409e47346e83e74$export$a2cf0d4bb6e06de4(tagName, propertyName) {\n /**\n * fetch from https://html.spec.whatwg.org/\n */ const ReadOnly_Properties = [\n [\n HTMLLinkElement,\n [\n \"sizes\"\n ]\n ],\n [\n HTMLIFrameElement,\n [\n \"sandbox\"\n ]\n ],\n [\n HTMLObjectElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLInputElement,\n [\n \"form\",\n \"list\"\n ]\n ],\n [\n HTMLButtonElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLSelectElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLTextAreaElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLOutputElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLFieldSetElement,\n [\n \"form\"\n ]\n ]\n ];\n const template = $c409e47346e83e74$export$2ee022bbbc550b25(tagName);\n for (const [Class, keys] of ReadOnly_Properties)if (template instanceof Class && keys.includes(propertyName)) return true;\n return false;\n}\nfunction $c409e47346e83e74$export$d66b332881d9723f(HTML) {\n const spawn = document.createElement(\"template\");\n spawn.innerHTML = HTML;\n return [\n ...spawn.content.childNodes\n ].map((node)=>{\n node.remove();\n return node;\n });\n}\nfunction $c409e47346e83e74$export$b0709844452f8b6b(node) {\n return new XMLSerializer().serializeToString(node).replace(/ xmlns=\"http:\\/\\/www.w3.org\\/1999\\/xhtml\"/g, \"\");\n}\nfunction* $c409e47346e83e74$export$5118471ee5d5453b(root, type) {\n const children = [\n ...root.childNodes\n ];\n if ($c409e47346e83e74$export$dd1bc94b04021eeb(type) || type === root.nodeType) yield root;\n for (const node of children)yield* $c409e47346e83e74$export$5118471ee5d5453b(node, type);\n}\nfunction $c409e47346e83e74$export$be4650432daa84fd(root) {\n var text = \"\";\n for (const { nodeType: nodeType, parentElement: parentElement, nodeValue: nodeValue } of $c409e47346e83e74$export$5118471ee5d5453b(root))if (nodeType === Node.TEXT_NODE && parentElement.getAttribute(\"aria-hidden\") !== \"true\") {\n const { width: width, height: height } = parentElement.getBoundingClientRect();\n if (width && height) text += nodeValue.trim().replace(/\\s+/g, \" \");\n }\n return text;\n}\nfunction $c409e47346e83e74$export$578e38b4a3e0b255({ offsetWidth: offsetWidth, children: children }, pageHeight = 841.89, pageWidth = 595.28) {\n const scrollHeight = pageHeight / pageWidth * offsetWidth;\n var offset = 0;\n return [\n ...children\n ].reduce((pages, node)=>{\n var { offsetTop: top, offsetHeight: height } = node;\n top += offset;\n var bottom = top + height;\n const bottomOffset = bottom / scrollHeight;\n const topIndex = ~~(top / scrollHeight), bottomIndex = ~~bottomOffset;\n if (topIndex !== bottomIndex) offset += height - bottomOffset;\n (pages[bottomIndex] ||= []).push(node);\n return pages;\n }, []);\n}\nfunction $c409e47346e83e74$export$7cd14c57bbb84350(URI, { alternate: alternate, ...options } = {}) {\n const style = [\n ...document.styleSheets\n ].find(({ href: href })=>href === URI);\n if (style) return Promise.resolve(style);\n const link = document.createElement(\"link\");\n return new Promise((resolve, reject)=>{\n link.onload = ()=>resolve(link.sheet);\n link.onerror = (_1, _2, _3, _4, error)=>reject(error);\n Object.assign(link, options);\n link.rel = (alternate ? \"alternate \" : \"\") + \"stylesheet\";\n link.href = URI;\n document.head.append(link);\n });\n}\nfunction $c409e47346e83e74$export$5100419dfae0456d(data, depth = 0, indent = \" \") {\n const padding = indent.repeat(depth);\n return Object.entries(data).map(([key, value])=>typeof value !== \"object\" ? `${padding}${$c409e47346e83e74$export$3f34ca2fef821bbd(key)}: ${value};` : `${padding}${key} {\n${$c409e47346e83e74$export$5100419dfae0456d(value, depth + 1, indent)}\n${padding}}`).join(\"\\n\");\n}\nfunction $c409e47346e83e74$export$28d9d24a8cd0ffc2(...nodes) {\n const fragment = document.createDocumentFragment();\n fragment.append(...nodes);\n for (const node of $c409e47346e83e74$export$5118471ee5d5453b(fragment))if (![\n 1,\n 3,\n 11\n ].includes(node.nodeType) || [\n \"meta\",\n \"title\",\n \"link\",\n \"script\"\n ].includes(node.nodeName.toLowerCase())) node.replaceWith(...node.childNodes);\n const selection = globalThis.getSelection();\n if (!selection) return;\n const range = selection.getRangeAt(0);\n range.deleteContents();\n range.insertNode(fragment);\n}\nfunction $c409e47346e83e74$export$3f99968195accfaf(selector, root, align, justify) {\n const [_, ID] = /^#(.+)/.exec(selector) || [];\n if (ID === \"top\") window.scrollTo({\n top: 0,\n left: 0,\n behavior: \"smooth\"\n });\n else (root || document).querySelector(ID ? `[id=\"${ID}\"]` : selector)?.scrollIntoView({\n behavior: \"smooth\",\n block: align,\n inline: justify\n });\n}\nfunction $c409e47346e83e74$export$eafdbaa868ea9975(box, handler, depth = 6) {\n return Array.from(box.querySelectorAll(Array.from(new Array(depth), (_, index)=>`h${++index}`) + \"\"), (header)=>{\n new IntersectionObserver(([item])=>{\n if (!item.isIntersecting) return;\n const target = item.target;\n handler({\n target: target,\n links: [\n ...target.ownerDocument.querySelectorAll(`[href=\"#${target.id}\"]`)\n ]\n });\n }).observe(header);\n if (!header.id.trim()) header.id = header.textContent.trim().replace(/\\W+/g, \"-\");\n return {\n level: +header.tagName[1],\n id: header.id,\n text: header.textContent.trim()\n };\n });\n}\nfunction $c409e47346e83e74$export$36a0c1ca2ae264fa(root, handler) {\n var last = document.visibilityState === \"visible\" ? 1 : 0;\n function change(state) {\n if (state === 3 || last === 3) handler(state === 3);\n last = state;\n }\n new IntersectionObserver(([{ isIntersecting: isIntersecting }])=>change(isIntersecting ? last | 2 : last & 1)).observe(root);\n document.addEventListener(\"visibilitychange\", ()=>change(document.visibilityState === \"visible\" ? last | 1 : last & 2));\n}\nfunction $c409e47346e83e74$export$86d7c59254d6a2c9(form) {\n const data = {};\n for (const field of form.elements){\n let { name: name, value: value, checked: checked, defaultValue: defaultValue, selectedOptions: selectedOptions, files: files } = field;\n const type = field.type;\n if (!name || value === \"\") continue;\n const box = type !== \"fieldset\" && field.closest(\"fieldset\");\n if (box && box !== form) continue;\n let parsedValue = value;\n switch(type){\n case \"radio\":\n case \"checkbox\":\n if (checked) parsedValue = defaultValue ? $c409e47346e83e74$export$7ea17d45ecdcf634(defaultValue) : true;\n else continue;\n break;\n case \"select-multiple\":\n parsedValue = Array.from(selectedOptions, ({ value: value })=>$c409e47346e83e74$export$7ea17d45ecdcf634(value));\n break;\n case \"fieldset\":\n parsedValue = $c409e47346e83e74$export$86d7c59254d6a2c9(field);\n break;\n case \"file\":\n parsedValue = files && Array.from(files);\n break;\n case \"date\":\n case \"datetime-local\":\n case \"month\":\n case \"hidden\":\n case \"number\":\n case \"range\":\n case \"select-one\":\n parsedValue = $c409e47346e83e74$export$7ea17d45ecdcf634(value);\n }\n if (name in data) data[name] = [].concat(data[name], parsedValue);\n else data[name] = !(parsedValue instanceof Array) || !$c409e47346e83e74$export$dd1bc94b04021eeb(parsedValue[1]) ? parsedValue : parsedValue[0];\n }\n return data;\n}\nvar $c409e47346e83e74$var$$bb23e0c794fefbef$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$bb23e0c794fefbef$exports, \"sleep\", function() {\n return $c409e47346e83e74$export$e772c8ff12451969;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$bb23e0c794fefbef$exports, \"asyncLoop\", function() {\n return $c409e47346e83e74$export$57207d71b8c929c8;\n});\nfunction $c409e47346e83e74$export$e772c8ff12451969(seconds = 1) {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n}\nfunction $c409e47346e83e74$export$57207d71b8c929c8(executor, seconds = 1) {\n var stop = false;\n (async ()=>{\n while(!stop){\n const result = executor();\n if (result instanceof Promise) await result;\n await $c409e47346e83e74$export$e772c8ff12451969(seconds);\n }\n })();\n return ()=>stop = true;\n}\nvar $c409e47346e83e74$var$$19ed8aeb7905a045$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"delegate\", function() {\n return $c409e47346e83e74$export$10b1921597150314;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"documentReady\", function() {\n return $c409e47346e83e74$export$3e2b244719956741;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"promisify\", function() {\n return $c409e47346e83e74$export$1d1d2ed6b55cf67f;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"createMessageServer\", function() {\n return $c409e47346e83e74$export$2155c0b5a4b77fb8;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"createMessageClient\", function() {\n return $c409e47346e83e74$export$9d97473344489dfc;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"serviceWorkerUpdate\", function() {\n return $c409e47346e83e74$export$d635d04af3887bbe;\n});\nfunction $c409e47346e83e74$export$10b1921597150314(selector, handler) {\n return function(event) {\n var node, path = event.composedPath();\n while((node = path.shift()) && node !== event.currentTarget)if (node instanceof HTMLElement && node.matches(selector)) return handler.call(this, event, node, event.detail);\n };\n}\nconst $c409e47346e83e74$export$3e2b244719956741 = typeof window !== \"undefined\" ? new Promise((resolve)=>{\n function done() {\n document?.removeEventListener(\"DOMContentLoaded\", done);\n window.removeEventListener(\"load\", done);\n resolve();\n }\n document?.addEventListener(\"DOMContentLoaded\", done);\n window.addEventListener(\"load\", done);\n setTimeout(function check() {\n document?.readyState === \"complete\" ? resolve() : setTimeout(check);\n });\n}) : Promise.resolve();\nfunction $c409e47346e83e74$export$1d1d2ed6b55cf67f(scope, element) {\n return new Promise((resolve, reject)=>{\n function end(event) {\n resolve(event), clean();\n }\n function cancel(event) {\n reject(event), clean();\n }\n function clean() {\n element.removeEventListener(scope + \"end\", end);\n element.removeEventListener(scope + \"cancel\", cancel);\n }\n element.addEventListener(scope + \"end\", end);\n element.addEventListener(scope + \"cancel\", cancel);\n });\n}\nfunction $c409e47346e83e74$export$2155c0b5a4b77fb8(handlers) {\n async function server({ data: { type: type, id: id, ...data }, source: source, origin: origin }) {\n var result = handlers[type]?.(data);\n if (result instanceof Promise) result = await result;\n // @ts-ignore\n source.postMessage({\n ...result,\n id: id\n }, origin);\n }\n globalThis.addEventListener(\"message\", server);\n return ()=>globalThis.removeEventListener(\"message\", server);\n}\nfunction $c409e47346e83e74$export$9d97473344489dfc(target, origin = \"*\") {\n return (type, data)=>new Promise((resolve)=>{\n const UID = $c409e47346e83e74$export$89912e019eef22aa();\n function handler({ data: { id: id, ...data } }) {\n if (id !== UID) return;\n resolve(data);\n globalThis.removeEventListener(\"message\", handler);\n }\n globalThis.addEventListener(\"message\", handler);\n // @ts-ignore\n target.postMessage({\n id: UID,\n type: type,\n ...data\n }, origin);\n });\n}\nfunction $c409e47346e83e74$export$d635d04af3887bbe(registration) {\n return new Promise((resolve)=>{\n if (registration.waiting) return resolve(registration.waiting);\n registration.onupdatefound = ()=>registration.installing?.addEventListener(\"statechange\", function() {\n if (this.state === \"installed\" && navigator.serviceWorker.controller) resolve(this);\n });\n });\n}\nvar $c409e47346e83e74$var$$7a08303ce13c49c5$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"PageVector\", function() {\n return $c409e47346e83e74$export$1b88f6b6d432a52a;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"getSwipeVector\", function() {\n return $c409e47346e83e74$export$b70f6380221b1350;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"durationOf\", function() {\n return $c409e47346e83e74$export$75d6cbe4503e149;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"watchMotion\", function() {\n return $c409e47346e83e74$export$b2618d51188815c2;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"transitIn\", function() {\n return $c409e47346e83e74$export$490814474ddbb428;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"animateIn\", function() {\n return $c409e47346e83e74$export$3ea201dffb50dfef;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"transitOut\", function() {\n return $c409e47346e83e74$export$d1012c7198c6b460;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"animateOut\", function() {\n return $c409e47346e83e74$export$a35a418b7b17958e;\n});\nclass $c409e47346e83e74$export$1b88f6b6d432a52a {\n constructor(from, to){\n this.from = from;\n this.to = to;\n }\n get length() {\n const { from: from, to: to } = this;\n return Math.sqrt(Math.pow(to.x - from.x, 2) + Math.pow(to.y - from.y, 2) + (to.z != null ? Math.pow(to.z - from.z, 2) : 0));\n }\n get direction() {\n const { from: from, to: to } = this;\n const XD = to.x - from.x, YD = to.y - from.y, ZD = to.z - from.z;\n const XL = Math.abs(XD), YL = Math.abs(YD), ZL = Math.abs(ZD);\n switch(isNaN(ZL) ? Math.max(XL, YL) : Math.max(XL, YL, ZL)){\n case XL:\n return XD > 0 ? \"right\" : \"left\";\n case YL:\n return YD > 0 ? \"forward\" : \"backward\";\n case ZL:\n return ZD > 0 ? \"up\" : \"down\";\n }\n }\n}\nfunction $c409e47346e83e74$export$b70f6380221b1350(from, to, threshold = parseInt(getComputedStyle(document.body).fontSize) * 6) {\n const vector = new $c409e47346e83e74$export$1b88f6b6d432a52a(from, to);\n if (vector.length >= threshold && !getSelection()?.toString().trim()) return vector;\n}\nfunction $c409e47346e83e74$export$75d6cbe4503e149(type, element) {\n const { transitionDuration: transitionDuration, animationDuration: animationDuration } = getComputedStyle(element);\n const duration = type === \"animation\" ? animationDuration : transitionDuration;\n return parseFloat(duration) * (duration.slice(-2) === \"ms\" ? 1 : 1000);\n}\nfunction $c409e47346e83e74$export$b2618d51188815c2(type, element) {\n return Promise.race([\n $c409e47346e83e74$export$1d1d2ed6b55cf67f(type, element).catch((event)=>Promise.resolve(event)),\n new Promise((resolve)=>setTimeout(resolve, $c409e47346e83e74$export$75d6cbe4503e149(type, element)))\n ]);\n}\nfunction $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeIn(type, element, className, display) {\n element.style.display = display;\n const end = $c409e47346e83e74$export$b2618d51188815c2(type, element);\n return new Promise((resolve)=>requestAnimationFrame(()=>{\n element.classList.add(className);\n end.then(resolve);\n }));\n}\nasync function $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeOut(type, element, className, remove) {\n const end = $c409e47346e83e74$export$b2618d51188815c2(type, element);\n element.classList.remove(className);\n await end;\n if (remove) element.remove();\n else element.style.display = \"none\";\n}\nfunction $c409e47346e83e74$export$490814474ddbb428(element, className, display = \"block\") {\n return $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeIn(\"transition\", element, className, display);\n}\nfunction $c409e47346e83e74$export$3ea201dffb50dfef(element, className, display = \"block\") {\n return $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeIn(\"animation\", element, className, display);\n}\nfunction $c409e47346e83e74$export$d1012c7198c6b460(element, className, remove) {\n return $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeOut(\"transition\", element, className, remove);\n}\nfunction $c409e47346e83e74$export$a35a418b7b17958e(element, className, remove) {\n return $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeOut(\"animation\", element, className, remove);\n}\nvar $c409e47346e83e74$var$$69bd9f0117925302$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$69bd9f0117925302$exports, \"describe\", function() {\n return $c409e47346e83e74$export$cd5450f3a47e3789;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$69bd9f0117925302$exports, \"it\", function() {\n return $c409e47346e83e74$export$3486a10f30cf1ee4;\n});\nasync function $c409e47346e83e74$export$cd5450f3a47e3789(title, cases) {\n console.log(title);\n console.time(title);\n await cases();\n console.timeEnd(title);\n}\nasync function $c409e47346e83e74$export$3486a10f30cf1ee4(title, userCase, secondsOut = 3) {\n title = \" \" + title;\n console.time(title);\n async function timeOut() {\n await $c409e47346e83e74$export$e772c8ff12451969(secondsOut);\n throw new RangeError(\"Timed out\");\n }\n try {\n return await Promise.race([\n userCase((status)=>console.assert(status, title)),\n timeOut()\n ]);\n } finally{\n console.timeEnd(title);\n }\n}\n\n});\n\nparcelRegister(\"2flNv\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.VNode = module.exports.VNodeMeta = void 0;\n\nvar $ceFTv = parcelRequire(\"ceFTv\");\n\nvar $iYM07 = parcelRequire(\"iYM07\");\n\nvar $gPvyW = parcelRequire(\"gPvyW\");\nvar $1a2de400000fbc4f$var$VNodeMeta = /** @class */ function() {\n function VNodeMeta() {\n this.children = [];\n }\n return VNodeMeta;\n}();\nmodule.exports.VNodeMeta = $1a2de400000fbc4f$var$VNodeMeta;\nvar $1a2de400000fbc4f$var$VNode = /** @class */ function(_super) {\n $ceFTv.__extends(VNode, _super);\n function VNode(_b) {\n var e_1, _c, _d, e_2, _e;\n var _this = this;\n var children = _b.children, meta = $ceFTv.__rest(_b, [\n \"children\"\n ]);\n _this = _super.call(this) || this;\n Object.assign(_this, meta);\n try {\n for(var _f = $ceFTv.__values(children || []), _g = _f.next(); !_g.done; _g = _f.next()){\n var vNode = _g.value;\n (_d = _this.children).push.apply(_d, $ceFTv.__spreadArray([], $ceFTv.__read(_a.isFragment(vNode) ? vNode.children || [] : [\n vNode\n ]), false));\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (_g && !_g.done && (_c = _f.return)) _c.call(_f);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n try {\n for(var _h = $ceFTv.__values(_this.children), _j = _h.next(); !_j.done; _j = _h.next()){\n var child = _j.value;\n child.parent = _this;\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally{\n try {\n if (_j && !_j.done && (_e = _h.return)) _e.call(_h);\n } finally{\n if (e_2) throw e_2.error;\n }\n }\n var tagName = meta.tagName, is = meta.is, props = meta.props;\n if (!tagName && !(props === null || props === void 0 ? void 0 : props.className) && !is) return _this;\n _this.selector = [\n tagName === null || tagName === void 0 ? void 0 : tagName.toLowerCase(),\n (props === null || props === void 0 ? void 0 : props.className) && \".\".concat(props.className.trim().replace(/\\s+/, '.')),\n is && \"[is=\\\"\".concat(is, \"\\\"]\")\n ].filter(Boolean).join('');\n return _this;\n }\n VNode.prototype.walkUp = function() {\n var current;\n return $ceFTv.__generator(this, function(_b) {\n switch(_b.label){\n case 0:\n current = this;\n _b.label = 1;\n case 1:\n if (!(current = current.parent)) return [\n 3 /*break*/ ,\n 3\n ];\n return [\n 4 /*yield*/ ,\n current\n ];\n case 2:\n _b.sent();\n return [\n 3 /*break*/ ,\n 1\n ];\n case 3:\n return [\n 2 /*return*/ \n ];\n }\n });\n };\n VNode.prototype.namespaceOf = function(tagName) {\n var e_3, _b;\n if ($gPvyW.XMLNamespace[tagName]) return $gPvyW.XMLNamespace[tagName];\n try {\n for(var _c = $ceFTv.__values(this.walkUp()), _d = _c.next(); !_d.done; _d = _c.next()){\n var namespace = _d.value.namespace;\n if (namespace) return namespace;\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally{\n try {\n if (_d && !_d.done && (_b = _c.return)) _b.call(_c);\n } finally{\n if (e_3) throw e_3.error;\n }\n }\n return $gPvyW.XMLNamespace.html;\n };\n VNode.prototype.createDOM = function(document1) {\n if (document1 === void 0) document1 = globalThis.document;\n var _b = this, tagName = _b.tagName, is = _b.is, text = _b.text;\n return this.node = text ? document1.createTextNode(text) : !tagName ? document1.createDocumentFragment() : document1.createElementNS(this.namespace || (this.namespace = this.namespaceOf(tagName)), tagName, {\n is: is\n });\n };\n VNode.prototype.toJSON = function() {\n var _b = this, key = _b.key, text = _b.text, selector = _b.selector, namespace = _b.namespace, tagName = _b.tagName, is = _b.is, props = _b.props, style = _b.style, children = _b.children;\n return JSON.parse(JSON.stringify({\n key: key,\n text: text,\n selector: selector,\n namespace: namespace,\n tagName: tagName,\n is: is,\n props: props,\n style: style,\n children: children\n }));\n };\n VNode.prototype.generateElementXML = function() {\n var _b, tagName, props, style, children, node, body, shadowRoots, innerHTML, restProps, _c, _d, _e, _i, key, _f, _g, _h, _j, key, children_1, children_1_1, child, e_4_1;\n var e_4, _k;\n return $ceFTv.__generator(this, function(_l) {\n switch(_l.label){\n case 0:\n _b = this, tagName = _b.tagName, props = _b.props, style = _b.style, children = _b.children, node = _b.node;\n if (!(tagName.includes('-') && (0, $gPvyW.elementTypeOf)(tagName) === 'html')) return [\n 3 /*break*/ ,\n 2\n ];\n body = ((node === null || node === void 0 ? void 0 : node.ownerDocument) || document).implementation.createHTMLDocument().body;\n body.innerHTML = \"<\".concat(tagName, \">\");\n shadowRoots = $ceFTv.__spreadArray([], $ceFTv.__read((0, $iYM07.findShadowRoots)(body)), false);\n return [\n 4 /*yield*/ ,\n body.getHTML({\n serializableShadowRoots: true,\n shadowRoots: shadowRoots\n })\n ];\n case 1:\n _l.sent();\n return [\n 3 /*break*/ ,\n 29\n ];\n case 2:\n innerHTML = props.innerHTML, restProps = $ceFTv.__rest(props, [\n \"innerHTML\"\n ]);\n return [\n 4 /*yield*/ ,\n \"<\".concat(tagName)\n ];\n case 3:\n _l.sent();\n _c = restProps;\n _d = [];\n for(_e in _c)_d.push(_e);\n _i = 0;\n _l.label = 4;\n case 4:\n if (!(_i < _d.length)) return [\n 3 /*break*/ ,\n 7\n ];\n _e = _d[_i];\n if (!(_e in _c)) return [\n 3 /*break*/ ,\n 6\n ];\n key = _e;\n return [\n 4 /*yield*/ ,\n \" \".concat(_a.propsMap[key] || key, \"=\\\"\").concat(restProps[key], \"\\\"\")\n ];\n case 5:\n _l.sent();\n _l.label = 6;\n case 6:\n _i++;\n return [\n 3 /*break*/ ,\n 4\n ];\n case 7:\n if (!style) return [\n 3 /*break*/ ,\n 14\n ];\n return [\n 4 /*yield*/ ,\n \" style=\\\"\"\n ];\n case 8:\n _l.sent();\n _f = style;\n _g = [];\n for(_h in _f)_g.push(_h);\n _j = 0;\n _l.label = 9;\n case 9:\n if (!(_j < _g.length)) return [\n 3 /*break*/ ,\n 12\n ];\n _h = _g[_j];\n if (!(_h in _f)) return [\n 3 /*break*/ ,\n 11\n ];\n key = _h;\n return [\n 4 /*yield*/ ,\n \"\".concat((0, $gPvyW.toHyphenCase)(key), \":\").concat(style[key], \";\")\n ];\n case 10:\n _l.sent();\n _l.label = 11;\n case 11:\n _j++;\n return [\n 3 /*break*/ ,\n 9\n ];\n case 12:\n return [\n 4 /*yield*/ ,\n \"\\\"\"\n ];\n case 13:\n _l.sent();\n _l.label = 14;\n case 14:\n if (!innerHTML) return [\n 3 /*break*/ ,\n 16\n ];\n return [\n 4 /*yield*/ ,\n \">\".concat(innerHTML, \"\")\n ];\n case 15:\n _l.sent();\n return [\n 3 /*break*/ ,\n 29\n ];\n case 16:\n if (!children[0]) return [\n 3 /*break*/ ,\n 27\n ];\n return [\n 4 /*yield*/ ,\n '>'\n ];\n case 17:\n _l.sent();\n _l.label = 18;\n case 18:\n _l.trys.push([\n 18,\n 23,\n 24,\n 25\n ]);\n children_1 = $ceFTv.__values(children), children_1_1 = children_1.next();\n _l.label = 19;\n case 19:\n if (!!children_1_1.done) return [\n 3 /*break*/ ,\n 22\n ];\n child = children_1_1.value;\n return [\n 5 /*yield**/ ,\n $ceFTv.__values(child.generateXML())\n ];\n case 20:\n _l.sent();\n _l.label = 21;\n case 21:\n children_1_1 = children_1.next();\n return [\n 3 /*break*/ ,\n 19\n ];\n case 22:\n return [\n 3 /*break*/ ,\n 25\n ];\n case 23:\n e_4_1 = _l.sent();\n e_4 = {\n error: e_4_1\n };\n return [\n 3 /*break*/ ,\n 25\n ];\n case 24:\n try {\n if (children_1_1 && !children_1_1.done && (_k = children_1.return)) _k.call(children_1);\n } finally{\n if (e_4) throw e_4.error;\n }\n return [\n 7 /*endfinally*/ \n ];\n case 25:\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 26:\n _l.sent();\n return [\n 3 /*break*/ ,\n 29\n ];\n case 27:\n return [\n 4 /*yield*/ ,\n tagName === 'script' ? '>' : ' />'\n ];\n case 28:\n _l.sent();\n _l.label = 29;\n case 29:\n return [\n 2 /*return*/ \n ];\n }\n });\n };\n VNode.prototype.generateXML = function() {\n var mode;\n return $ceFTv.__generator(this, function(_b) {\n switch(_b.label){\n case 0:\n if (!_a.isFragment(this)) return [\n 3 /*break*/ ,\n 5\n ];\n return [\n 4 /*yield*/ ,\n ''\n ];\n case 4:\n _b.sent();\n return [\n 3 /*break*/ ,\n 9\n ];\n case 5:\n if (!(this.text != null)) return [\n 3 /*break*/ ,\n 7\n ];\n return [\n 4 /*yield*/ ,\n this.text\n ];\n case 6:\n _b.sent();\n return [\n 3 /*break*/ ,\n 9\n ];\n case 7:\n return [\n 5 /*yield**/ ,\n $ceFTv.__values(this.generateElementXML())\n ];\n case 8:\n _b.sent();\n _b.label = 9;\n case 9:\n return [\n 2 /*return*/ \n ];\n }\n });\n };\n VNode.isFragment = function(_b) {\n var key = _b.key, node = _b.node, children = _b.children, rest = $ceFTv.__rest(_b, [\n \"key\",\n \"node\",\n \"children\"\n ]);\n for(var key_1 in rest)if (!(0, $gPvyW.isEmpty)(rest[key_1])) return false;\n return true;\n };\n VNode.fromDOM = function(node) {\n var _this = this;\n if (node instanceof Text) return new _a({\n node: node,\n text: node.nodeValue\n });\n if (!(node instanceof Element)) return new _a({\n node: node\n });\n var _b = node, namespaceURI = _b.namespaceURI, tagName = _b.tagName, attributes = _b.attributes, style = _b.style, childNodes = _b.childNodes;\n var vNode = {\n node: node,\n namespace: namespaceURI,\n tagName: tagName.toLowerCase(),\n is: node.getAttribute('is')\n };\n var props = Array.from(attributes, function(_b) {\n var name = _b.name, value = _b.value;\n return name !== 'style' && [\n _this.attrsMap[name] || name,\n value\n ];\n }).filter(Boolean);\n if (props[0]) vNode.props = Object.fromEntries(props);\n var styles = Array.from(style, function(key) {\n return [\n key,\n style[key]\n ];\n });\n if (styles[0]) vNode.style = Object.fromEntries(styles);\n var children = Array.from(childNodes, function(node) {\n return _a.fromDOM(node);\n });\n if (children[0]) vNode.children = children;\n return new _a(vNode);\n };\n var _a;\n _a = VNode;\n VNode.propsMap = {\n className: 'class',\n htmlFor: 'for'\n };\n VNode.attrsMap = Object.fromEntries(Object.entries(_a.propsMap).map(function(item) {\n return item.reverse();\n }));\n return VNode;\n}($1a2de400000fbc4f$var$VNodeMeta);\nmodule.exports.VNode = $1a2de400000fbc4f$var$VNode;\n\n});\nparcelRegister(\"iYM07\", function(module, exports) {\nvar $dd13108d31ab34bb$var$__generator = module.exports && module.exports.__generator || function(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\nvar $dd13108d31ab34bb$var$__read = module.exports && module.exports.__read || function(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while((n === void 0 || n-- > 0) && !(r = i.next()).done)ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally{\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally{\n if (e) throw e.error;\n }\n }\n return ar;\n};\nvar $dd13108d31ab34bb$var$__spreadArray = module.exports && module.exports.__spreadArray || function(to, from, pack) {\n if (pack || arguments.length === 2) {\n for(var i = 0, l = from.length, ar; i < l; i++)if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar $dd13108d31ab34bb$var$__values = module.exports && module.exports.__values || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n(function(factory) {\n if (typeof module.exports === \"object\") {\n var v = factory(undefined, module.exports);\n if (v !== undefined) module.exports = v;\n } else if (typeof define === \"function\" && define.amd) define([\n \"require\",\n \"exports\"\n ], factory);\n})(function(require1, exports1) {\n \"use strict\";\n var _a, _b, _c, _d;\n Object.defineProperty(exports1, \"__esModule\", {\n value: true\n });\n exports1.findShadowRoots = findShadowRoots;\n exports1.generateHTML = generateHTML;\n exports1.getHTML = getHTML;\n exports1.attachDeclarativeShadowRoots = attachDeclarativeShadowRoots;\n exports1.setHTMLUnsafe = setHTMLUnsafe;\n exports1.parseHTMLUnsafe = parseHTMLUnsafe;\n var xmlSerializer = new XMLSerializer(), attachShadow = HTMLElement.prototype.attachShadow, shadowDOMs = new WeakMap();\n HTMLElement.prototype.attachShadow = function(options) {\n var shadowRoot = attachShadow.call(this, options);\n shadowDOMs.set(this, shadowRoot);\n return shadowRoot;\n };\n function findShadowRoots(root) {\n var walker, currentNode, shadowRoot;\n return $dd13108d31ab34bb$var$__generator(this, function(_a) {\n switch(_a.label){\n case 0:\n walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: function(node) {\n return node instanceof HTMLElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n currentNode = null;\n _a.label = 1;\n case 1:\n if (!(currentNode = walker.nextNode())) return [\n 3 /*break*/ ,\n 5\n ];\n shadowRoot = shadowDOMs.get(currentNode);\n if (!shadowRoot) return [\n 3 /*break*/ ,\n 4\n ];\n return [\n 4 /*yield*/ ,\n shadowRoot\n ];\n case 2:\n _a.sent();\n return [\n 5 /*yield**/ ,\n $dd13108d31ab34bb$var$__values(findShadowRoots(shadowRoot))\n ];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n return [\n 3 /*break*/ ,\n 1\n ];\n case 5:\n return [\n 2 /*return*/ \n ];\n }\n });\n }\n function generateHTML(root, _a) {\n var walker, currentNode, tagName, attributes, shadowRoot, shadowRootHTML, nextSibling, parentElement;\n var _b = _a === void 0 ? {} : _a, serializableShadowRoots = _b.serializableShadowRoots, shadowRoots = _b.shadowRoots;\n return $dd13108d31ab34bb$var$__generator(this, function(_c) {\n switch(_c.label){\n case 0:\n shadowRoots = (shadowRoots === null || shadowRoots === void 0 ? void 0 : shadowRoots.filter(Boolean)) || [];\n if (!(!serializableShadowRoots || !shadowRoots[0])) return [\n 3 /*break*/ ,\n 2\n ];\n return [\n 4 /*yield*/ ,\n root.innerHTML\n ];\n case 1:\n _c.sent();\n return [\n 2 /*return*/ \n ];\n case 2:\n walker = document.createTreeWalker(root, NodeFilter.SHOW_ALL, {\n acceptNode: function(node) {\n return node === root || node instanceof SVGElement ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;\n }\n });\n currentNode = null;\n _c.label = 3;\n case 3:\n if (!(currentNode = walker.nextNode())) return [\n 3 /*break*/ ,\n 19\n ];\n if (!(currentNode instanceof CDATASection)) return [\n 3 /*break*/ ,\n 5\n ];\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 4:\n _c.sent();\n return [\n 3 /*break*/ ,\n 16\n ];\n case 5:\n if (!(currentNode instanceof Text)) return [\n 3 /*break*/ ,\n 7\n ];\n return [\n 4 /*yield*/ ,\n currentNode.nodeValue || \"\"\n ];\n case 6:\n _c.sent();\n return [\n 3 /*break*/ ,\n 16\n ];\n case 7:\n if (!(currentNode instanceof Comment)) return [\n 3 /*break*/ ,\n 9\n ];\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 8:\n _c.sent();\n return [\n 3 /*break*/ ,\n 16\n ];\n case 9:\n if (!(currentNode instanceof SVGElement)) return [\n 3 /*break*/ ,\n 11\n ];\n return [\n 4 /*yield*/ ,\n xmlSerializer.serializeToString(currentNode)\n ];\n case 10:\n _c.sent();\n return [\n 3 /*break*/ ,\n 16\n ];\n case 11:\n if (!(currentNode instanceof Element)) return [\n 3 /*break*/ ,\n 16\n ];\n tagName = currentNode.tagName.toLowerCase(), attributes = $dd13108d31ab34bb$var$__spreadArray([], $dd13108d31ab34bb$var$__read(currentNode.attributes), false).map(function(_a) {\n var name = _a.name, value = _a.value;\n return \"\".concat(name, \"=\").concat(JSON.parse(value));\n }), shadowRoot = shadowDOMs.get(currentNode);\n return [\n 4 /*yield*/ ,\n \"<\".concat($dd13108d31ab34bb$var$__spreadArray([\n tagName\n ], $dd13108d31ab34bb$var$__read(attributes), false).join(\" \"), \">\")\n ];\n case 12:\n _c.sent();\n if (!(shadowRoot && shadowRoots.includes(shadowRoot))) return [\n 3 /*break*/ ,\n 14\n ];\n shadowRootHTML = $dd13108d31ab34bb$var$__spreadArray([], $dd13108d31ab34bb$var$__read(generateHTML(shadowRoot, {\n serializableShadowRoots: serializableShadowRoots,\n shadowRoots: shadowRoots\n })), false).join(\"\");\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 13:\n _c.sent();\n _c.label = 14;\n case 14:\n if (!!currentNode.childNodes[0]) return [\n 3 /*break*/ ,\n 16\n ];\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 15:\n _c.sent();\n _c.label = 16;\n case 16:\n nextSibling = currentNode.nextSibling, parentElement = currentNode.parentElement;\n if (!(!nextSibling && parentElement && parentElement !== root)) return [\n 3 /*break*/ ,\n 18\n ];\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 17:\n _c.sent();\n _c.label = 18;\n case 18:\n return [\n 3 /*break*/ ,\n 3\n ];\n case 19:\n return [\n 2 /*return*/ \n ];\n }\n });\n }\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/getHTML}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getHTML}\n */ function getHTML(options) {\n if (options === void 0) options = {};\n return $dd13108d31ab34bb$var$__spreadArray([], $dd13108d31ab34bb$var$__read(generateHTML(this, options)), false).join(\"\");\n }\n function attachDeclarativeShadowRoots(root) {\n var e_1, _a;\n var templates = root.querySelectorAll(\"template[shadowrootmode]\");\n try {\n for(var templates_1 = $dd13108d31ab34bb$var$__values(templates), templates_1_1 = templates_1.next(); !templates_1_1.done; templates_1_1 = templates_1.next()){\n var template = templates_1_1.value;\n var parentElement = template.parentElement, content = template.content;\n var shadowRoot = parentElement.attachShadow({\n mode: template.getAttribute(\"shadowrootmode\")\n });\n shadowRoot.append(content);\n template.remove();\n attachDeclarativeShadowRoots(shadowRoot);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (templates_1_1 && !templates_1_1.done && (_a = templates_1.return)) _a.call(templates_1);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n }\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/setHTMLUnsafe}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/setHTMLUnsafe}\n */ function setHTMLUnsafe(html) {\n this.innerHTML = html;\n attachDeclarativeShadowRoots(this);\n }\n var domParser = new DOMParser(), initDocument = function(_a) {\n var _b = _a === void 0 ? document : _a, documentElement = _b.documentElement;\n return attachDeclarativeShadowRoots(documentElement);\n };\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Document/parseHTMLUnsafe_static}\n */ function parseHTMLUnsafe(html) {\n var document1 = domParser.parseFromString(html, \"text/html\");\n initDocument(document1);\n return document1;\n }\n (_a = Element.prototype).getHTML || (_a.getHTML = getHTML);\n (_b = Element.prototype).setHTMLUnsafe || (_b.setHTMLUnsafe = setHTMLUnsafe);\n (_c = ShadowRoot.prototype).getHTML || (_c.getHTML = getHTML);\n (_d = ShadowRoot.prototype).setHTMLUnsafe || (_d.setHTMLUnsafe = setHTMLUnsafe);\n Document.parseHTMLUnsafe || (Document.parseHTMLUnsafe = parseHTMLUnsafe);\n new Promise(function(resolve) {\n if (document.readyState === \"complete\") resolve();\n else {\n document.addEventListener(\"DOMContentLoaded\", resolve);\n window.addEventListener(\"load\", resolve);\n }\n }).then(function() {\n return initDocument();\n });\n});\n\n});\n\n\n\n\n\n//# sourceMappingURL=async.fcf3ae1c.js.map\n","import { FC } from 'web-cell';\r\nimport { PageProps } from '../../../source';\r\n\r\nconst AsyncPage: FC = ({ path, id, edit, ...props }) => (\r\n
\r\n

Async

\r\n
\r\n            {JSON.stringify({ path, id, edit, ...props }, null, 4)}\r\n        
\r\n
\r\n);\r\nexport default AsyncPage;\r\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Fragment = exports.jsxDEV = exports.jsxs = void 0;\nexports.jsx = jsx;\nvar tslib_1 = require(\"tslib\");\nvar web_utility_1 = require(\"web-utility\");\nvar VDOM_1 = require(\"./dist/VDOM\");\n/**\n * @see {@link https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md}\n * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx}\n */\nfunction jsx(type, _a, key) {\n var ref = _a.ref, is = _a.is, style = _a.style, children = _a.children, props = tslib_1.__rest(_a, [\"ref\", \"is\", \"style\", \"children\"]);\n if (typeof type === 'function' && (0, web_utility_1.isHTMLElementClass)(type))\n type = (0, web_utility_1.tagNameOf)(type);\n children = [children]\n .flat(Infinity)\n .map(function (node) {\n return node instanceof Object\n ? new VDOM_1.VNode(node)\n : node === 0 || node\n ? new VDOM_1.VNode({ text: node.toString() })\n : undefined;\n })\n .filter(Boolean);\n var commonProps = { key: key, ref: ref, is: is, style: style, children: children };\n return typeof type === 'string'\n ? new VDOM_1.VNode(tslib_1.__assign(tslib_1.__assign({}, commonProps), { tagName: type, props: props }))\n : type(tslib_1.__assign(tslib_1.__assign({}, commonProps), props));\n}\nexports.jsxs = jsx;\nexports.jsxDEV = jsx;\n/**\n * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#react-automatic-runtime-1}\n */\nvar Fragment = function (_a) {\n var key = _a.key, ref = _a.ref, is = _a.is, style = _a.style, children = _a.children, props = tslib_1.__rest(_a, [\"key\", \"ref\", \"is\", \"style\", \"children\"]);\n return new VDOM_1.VNode({\n key: key,\n ref: ref,\n is: is,\n props: (0, web_utility_1.isEmpty)(props) ? undefined : props,\n style: style,\n children: children\n });\n};\nexports.Fragment = Fragment;\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\nvar $9b05bcda60cc529c$exports = {};\n\n$parcel$export($9b05bcda60cc529c$exports, \"likeNull\", function () { return $9b05bcda60cc529c$export$61cc6ed0f143570b; });\n$parcel$export($9b05bcda60cc529c$exports, \"isEmpty\", function () { return $9b05bcda60cc529c$export$dd1bc94b04021eeb; });\n$parcel$export($9b05bcda60cc529c$exports, \"classNameOf\", function () { return $9b05bcda60cc529c$export$a09f818797e212c4; });\n$parcel$export($9b05bcda60cc529c$exports, \"assertInheritance\", function () { return $9b05bcda60cc529c$export$170f4e08cad8229d; });\n$parcel$export($9b05bcda60cc529c$exports, \"proxyPrototype\", function () { return $9b05bcda60cc529c$export$2a489b3f92f4996a; });\n$parcel$export($9b05bcda60cc529c$exports, \"isUnsafeNumeric\", function () { return $9b05bcda60cc529c$export$67a6ce548ae77071; });\n$parcel$export($9b05bcda60cc529c$exports, \"byteLength\", function () { return $9b05bcda60cc529c$export$a48f0734ac7c2329; });\n$parcel$export($9b05bcda60cc529c$exports, \"toHyphenCase\", function () { return $9b05bcda60cc529c$export$3f34ca2fef821bbd; });\n$parcel$export($9b05bcda60cc529c$exports, \"toCamelCase\", function () { return $9b05bcda60cc529c$export$86f54f62aa7a7514; });\n$parcel$export($9b05bcda60cc529c$exports, \"uniqueID\", function () { return $9b05bcda60cc529c$export$89912e019eef22aa; });\n$parcel$export($9b05bcda60cc529c$exports, \"objectFrom\", function () { return $9b05bcda60cc529c$export$1c8ba402144543e5; });\n$parcel$export($9b05bcda60cc529c$exports, \"DiffStatus\", function () { return $9b05bcda60cc529c$export$2ddabb89308e1a22; });\n$parcel$export($9b05bcda60cc529c$exports, \"diffKeys\", function () { return $9b05bcda60cc529c$export$14527669107aa301; });\n$parcel$export($9b05bcda60cc529c$exports, \"groupBy\", function () { return $9b05bcda60cc529c$export$3f063810d7bf01bd; });\n$parcel$export($9b05bcda60cc529c$exports, \"likeArray\", function () { return $9b05bcda60cc529c$export$b5a4d6f439a5044d; });\n$parcel$export($9b05bcda60cc529c$exports, \"isTypedArray\", function () { return $9b05bcda60cc529c$export$b119cc7e1840e59c; });\n$parcel$export($9b05bcda60cc529c$exports, \"makeArray\", function () { return $9b05bcda60cc529c$export$7b85fd78dd236198; });\n$parcel$export($9b05bcda60cc529c$exports, \"splitArray\", function () { return $9b05bcda60cc529c$export$697c3df919c0e61a; });\n$parcel$export($9b05bcda60cc529c$exports, \"findDeep\", function () { return $9b05bcda60cc529c$export$e6b5ff3168b5942b; });\n$parcel$export($9b05bcda60cc529c$exports, \"countBy\", function () { return $9b05bcda60cc529c$export$1d012a0dff3dab06; });\n$parcel$export($9b05bcda60cc529c$exports, \"cache\", function () { return $9b05bcda60cc529c$export$69a3209f1a06c04d; });\n$parcel$export($9b05bcda60cc529c$exports, \"createAsyncIterator\", function () { return $9b05bcda60cc529c$export$86c18c6347f4a8c4; });\n$parcel$export($9b05bcda60cc529c$exports, \"mergeStream\", function () { return $9b05bcda60cc529c$export$dce9414bed0662c; });\n$parcel$export($9b05bcda60cc529c$exports, \"ByteSize\", function () { return $9b05bcda60cc529c$export$271f7c16f175f804; });\nvar $6a9944941b4c1893$exports = {};\n\n$parcel$export($6a9944941b4c1893$exports, \"sum\", function () { return $6a9944941b4c1893$export$8a63f25cc62965f1; });\n$parcel$export($6a9944941b4c1893$exports, \"averageOf\", function () { return $6a9944941b4c1893$export$e1f36757ecda301d; });\n$parcel$export($6a9944941b4c1893$exports, \"varianceOf\", function () { return $6a9944941b4c1893$export$8e694e1eafd55acb; });\n$parcel$export($6a9944941b4c1893$exports, \"standardDeviationOf\", function () { return $6a9944941b4c1893$export$57d7c52a66287430; });\n$parcel$export($6a9944941b4c1893$exports, \"hypotenuseOf\", function () { return $6a9944941b4c1893$export$2b4693832ca3ce16; });\n$parcel$export($6a9944941b4c1893$exports, \"carryFloat\", function () { return $6a9944941b4c1893$export$5b784e078da1ce6; });\n$parcel$export($6a9944941b4c1893$exports, \"fixFloat\", function () { return $6a9944941b4c1893$export$17ec9c9f4f23588c; });\n$parcel$export($6a9944941b4c1893$exports, \"Scalar\", function () { return $6a9944941b4c1893$export$595dbf49c602a1f; });\nfunction $6a9944941b4c1893$export$8a63f25cc62965f1(...data) {\n return data.reduce((sum, item)=>sum + item, 0);\n}\nfunction $6a9944941b4c1893$export$e1f36757ecda301d(...data) {\n return $6a9944941b4c1893$export$8a63f25cc62965f1(...data) / data.length;\n}\nfunction $6a9944941b4c1893$export$8e694e1eafd55acb(data, sample = false) {\n const average = $6a9944941b4c1893$export$e1f36757ecda301d(...data);\n const summary = $6a9944941b4c1893$export$8a63f25cc62965f1(...data.map((item)=>(item - average) ** 2));\n return summary / (data.length - (sample ? 1 : 0));\n}\nfunction $6a9944941b4c1893$export$57d7c52a66287430(data, sample = false) {\n return Math.sqrt($6a9944941b4c1893$export$8e694e1eafd55acb(data, sample));\n}\nfunction $6a9944941b4c1893$export$2b4693832ca3ce16(...data) {\n return Math.sqrt($6a9944941b4c1893$export$8a63f25cc62965f1(...data.map((item)=>item ** 2)));\n}\nfunction $6a9944941b4c1893$export$5b784e078da1ce6(raw, length) {\n const text = raw.toFixed(length + 2);\n const offset = text.indexOf(\".\") + length + 1;\n const cut = (text)=>text.slice(0, offset - (length ? 0 : 1));\n if (!+text.slice(offset)) return cut(text);\n const result = cut((+cut(text) + 10 ** -length).toFixed(length));\n return result.includes(\".\") ? result.padEnd(offset, \"0\") : result;\n}\nfunction $6a9944941b4c1893$export$17ec9c9f4f23588c(raw, length = 2) {\n const text = raw.toFixed(length + 2);\n const floatOffset = text.indexOf(\".\");\n if (floatOffset < 0) return length ? `${text}.${\"0\".repeat(length)}` : text;\n const offset = floatOffset + length + 1;\n const before = +text[offset - 1], anchor = +text[offset], after = +text[offset + 1];\n const carry = anchor > 5 || anchor === 5 && (!!after || !!(before % 2));\n if (carry) return $6a9944941b4c1893$export$5b784e078da1ce6(raw, length);\n const result = text.slice(0, offset - (length ? 0 : 1));\n return result.includes(\".\") ? result.padEnd(offset, \"0\") : result;\n}\nclass $6a9944941b4c1893$export$595dbf49c602a1f {\n constructor(value){\n this.value = value;\n }\n valueOf() {\n return this.value;\n }\n toShortString(fractionDigits = 2) {\n const { units: units, value: value } = this;\n const { base: base, name: name } = [\n ...units\n ].reverse().find(({ base: base })=>Math.abs(value) >= base) || units[0];\n return `${(value / base).toFixed(fractionDigits)} ${name}`;\n }\n static distanceOf(a, b) {\n return Reflect.construct(this, [\n a - b\n ]);\n }\n}\n\n\nfunction $9b05bcda60cc529c$export$61cc6ed0f143570b(value) {\n return !(value != null) || Number.isNaN(value);\n}\nfunction $9b05bcda60cc529c$export$dd1bc94b04021eeb(value) {\n return $9b05bcda60cc529c$export$61cc6ed0f143570b(value) || (typeof value === \"object\" ? !Object.keys(value).length : value === \"\");\n}\nconst $9b05bcda60cc529c$export$a09f818797e212c4 = (data)=>Object.prototype.toString.call(data).slice(8, -1);\nfunction $9b05bcda60cc529c$export$170f4e08cad8229d(Sub, Super) {\n return Sub.prototype instanceof Super;\n}\nfunction $9b05bcda60cc529c$export$2a489b3f92f4996a(target, dataStore, setter) {\n const prototype = Object.getPrototypeOf(target);\n const prototypeProxy = new Proxy(prototype, {\n set: (_, key, value, receiver)=>{\n if (key in receiver) Reflect.set(prototype, key, value, receiver);\n else dataStore[key] = value;\n setter?.(key, value);\n return true;\n },\n get: (prototype, key, receiver)=>key in dataStore ? dataStore[key] : Reflect.get(prototype, key, receiver)\n });\n Object.setPrototypeOf(target, prototypeProxy);\n}\nfunction $9b05bcda60cc529c$export$67a6ce548ae77071(raw) {\n return /^[\\d.]+$/.test(raw) && raw.localeCompare(Number.MAX_SAFE_INTEGER + \"\", undefined, {\n numeric: true\n }) > 0;\n}\nfunction $9b05bcda60cc529c$export$a48f0734ac7c2329(raw) {\n return raw.replace(/[^\\u0021-\\u007e\\uff61-\\uffef]/g, \"xx\").length;\n}\nfunction $9b05bcda60cc529c$export$3f34ca2fef821bbd(raw) {\n return raw.replace(/[A-Z]+|[^A-Za-z][A-Za-z]/g, (match, offset)=>`${offset ? \"-\" : \"\"}${(match[1] || match[0]).toLowerCase()}`);\n}\nfunction $9b05bcda60cc529c$export$86f54f62aa7a7514(raw, large = false) {\n return raw.replace(/^[A-Za-z]|[^A-Za-z][A-Za-z]/g, (match, offset)=>offset || large ? (match[1] || match[0]).toUpperCase() : match.toLowerCase());\n}\nfunction $9b05bcda60cc529c$export$89912e019eef22aa() {\n return (Date.now() + parseInt((Math.random() + \"\").slice(2))).toString(36);\n}\nfunction $9b05bcda60cc529c$export$1c8ba402144543e5(values, keys) {\n return Object.fromEntries(values.map((value, index)=>[\n keys[index],\n value\n ]));\n}\nvar $9b05bcda60cc529c$export$2ddabb89308e1a22;\n(function(DiffStatus) {\n DiffStatus[DiffStatus[\"Old\"] = -1] = \"Old\";\n DiffStatus[DiffStatus[\"Same\"] = 0] = \"Same\";\n DiffStatus[DiffStatus[\"New\"] = 1] = \"New\";\n})($9b05bcda60cc529c$export$2ddabb89308e1a22 || ($9b05bcda60cc529c$export$2ddabb89308e1a22 = {}));\nfunction $9b05bcda60cc529c$export$14527669107aa301(oldList, newList) {\n const map = {};\n for (const item of oldList)map[item] = -1;\n for (const item of newList){\n map[item] ||= 0;\n map[item] += 1;\n }\n return {\n map: map,\n group: $9b05bcda60cc529c$export$3f063810d7bf01bd(Object.entries(map), ([key, status])=>status)\n };\n}\nfunction $9b05bcda60cc529c$export$b5a4d6f439a5044d(data) {\n if ($9b05bcda60cc529c$export$61cc6ed0f143570b(data)) return false;\n const { length: length } = data;\n return typeof length === \"number\" && length >= 0 && ~~length === length;\n}\nconst $9b05bcda60cc529c$export$b119cc7e1840e59c = (data)=>data instanceof Object.getPrototypeOf(Int8Array);\nfunction $9b05bcda60cc529c$export$7b85fd78dd236198(data) {\n if (data instanceof Array) return data;\n if ($9b05bcda60cc529c$export$61cc6ed0f143570b(data)) return [];\n if ($9b05bcda60cc529c$export$b5a4d6f439a5044d(data)) return Array.from(data);\n return [\n data\n ];\n}\nconst $9b05bcda60cc529c$export$697c3df919c0e61a = (array, unitLength)=>array.reduce((grid, item, index)=>{\n (grid[~~(index / unitLength)] ||= [])[index % unitLength] = item;\n return grid;\n }, []);\nfunction $9b05bcda60cc529c$export$e6b5ff3168b5942b(list, subKey, handler) {\n for (const item of list){\n if (handler(item)) return [\n item\n ];\n if (item[subKey] instanceof Array) {\n const result = $9b05bcda60cc529c$export$e6b5ff3168b5942b(item[subKey], subKey, handler);\n if (result.length) return [\n item,\n ...result\n ];\n }\n }\n return [];\n}\nfunction $9b05bcda60cc529c$export$3f063810d7bf01bd(list, iteratee) {\n const data = {};\n for (const item of list){\n let keys = iteratee instanceof Function ? iteratee(item) : item[iteratee];\n if (!(keys instanceof Array)) keys = [\n keys\n ];\n for (const key of new Set(keys.filter((key)=>key != null)))(data[key] = data[key] || []).push(item);\n }\n return data;\n}\nfunction $9b05bcda60cc529c$export$1d012a0dff3dab06(list, iteratee) {\n const group = $9b05bcda60cc529c$export$3f063810d7bf01bd(list, iteratee);\n const sortedList = Object.entries(group).map(([key, { length: length }])=>[\n key,\n length\n ]);\n return Object.fromEntries(sortedList);\n}\nfunction $9b05bcda60cc529c$export$69a3209f1a06c04d(executor, title) {\n var cacheData;\n return function(...data) {\n if (cacheData != null) return cacheData;\n console.trace(`[Cache] execute: ${title}`);\n cacheData = executor.call(this, ()=>cacheData = undefined, ...data);\n Promise.resolve(cacheData).then((data)=>console.log(`[Cache] refreshed: ${title} => ${data}`), (error)=>console.error(`[Cache] failed: ${error?.message || error}`));\n return cacheData;\n };\n}\nasync function* $9b05bcda60cc529c$export$86c18c6347f4a8c4(executor) {\n let { promise: promise, resolve: resolve, reject: reject } = Promise.withResolvers();\n const doneSymbol = Symbol(\"done\"), done = Promise.withResolvers();\n const disposer = executor({\n next: (value)=>resolve(value),\n error: (error)=>{\n reject(error);\n // @ts-ignore\n disposer?.();\n },\n complete: ()=>{\n done.resolve(doneSymbol);\n // @ts-ignore\n disposer?.();\n }\n });\n while(true){\n const value = await Promise.race([\n promise,\n done.promise\n ]);\n if (value === doneSymbol) return;\n yield value;\n ({ promise: promise, resolve: resolve, reject: reject } = Promise.withResolvers());\n }\n}\nasync function* $9b05bcda60cc529c$export$dce9414bed0662c(...sources) {\n var iterators = sources.map((item)=>item());\n while(iterators[0]){\n const dones = [];\n for(let i = 0, iterator; iterator = iterators[i]; i++){\n const { done: done, value: value } = await iterator.next();\n if (!done) yield value;\n else dones.push(i);\n }\n iterators = iterators.filter((_, i)=>!dones.includes(i));\n }\n}\nclass $9b05bcda60cc529c$export$271f7c16f175f804 extends (0, $6a9944941b4c1893$export$595dbf49c602a1f) {\n constructor(...args){\n super(...args);\n this.units = [\n \"\",\n \"K\",\n \"M\",\n \"G\",\n \"T\",\n \"P\",\n \"E\",\n \"Z\",\n \"Y\"\n ].map((name, i)=>({\n base: 1024 ** i,\n name: name + \"B\"\n }));\n }\n}\n\n\n\nvar $f872d8bba1c0f79f$exports = {};\n\n$parcel$export($f872d8bba1c0f79f$exports, \"Second\", function () { return $f872d8bba1c0f79f$export$c489aa6f7fd82b1a; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Minute\", function () { return $f872d8bba1c0f79f$export$cbd942915f33be50; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Quarter\", function () { return $f872d8bba1c0f79f$export$9b886f8493244014; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Hour\", function () { return $f872d8bba1c0f79f$export$e99cbb807a5bb10d; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Day\", function () { return $f872d8bba1c0f79f$export$7a9a31a911eb9a20; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Week\", function () { return $f872d8bba1c0f79f$export$fca4f8121099df57; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Year\", function () { return $f872d8bba1c0f79f$export$6ce2f08d515512; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Month\", function () { return $f872d8bba1c0f79f$export$951c8378cdfec6e6; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Season\", function () { return $f872d8bba1c0f79f$export$1a4097b876a13bf7; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Timestamp\", function () { return $f872d8bba1c0f79f$export$d9bcbd5e1ff81430; });\n$parcel$export($f872d8bba1c0f79f$exports, \"diffTime\", function () { return $f872d8bba1c0f79f$export$506c8e8f8c8edda; });\n$parcel$export($f872d8bba1c0f79f$exports, \"formatDate\", function () { return $f872d8bba1c0f79f$export$3ae94a2503e890a1; });\n$parcel$export($f872d8bba1c0f79f$exports, \"changeMonth\", function () { return $f872d8bba1c0f79f$export$62ad822b3a5fd9a0; });\n\nconst $f872d8bba1c0f79f$export$c489aa6f7fd82b1a = 1000;\nconst $f872d8bba1c0f79f$export$cbd942915f33be50 = $f872d8bba1c0f79f$export$c489aa6f7fd82b1a * 60;\nconst $f872d8bba1c0f79f$export$9b886f8493244014 = $f872d8bba1c0f79f$export$cbd942915f33be50 * 15;\nconst $f872d8bba1c0f79f$export$e99cbb807a5bb10d = $f872d8bba1c0f79f$export$9b886f8493244014 * 4;\nconst $f872d8bba1c0f79f$export$7a9a31a911eb9a20 = $f872d8bba1c0f79f$export$e99cbb807a5bb10d * 24;\nconst $f872d8bba1c0f79f$export$fca4f8121099df57 = $f872d8bba1c0f79f$export$7a9a31a911eb9a20 * 7;\nconst $f872d8bba1c0f79f$export$6ce2f08d515512 = $f872d8bba1c0f79f$export$7a9a31a911eb9a20 * 365;\nconst $f872d8bba1c0f79f$export$951c8378cdfec6e6 = $f872d8bba1c0f79f$export$6ce2f08d515512 / 12;\nconst $f872d8bba1c0f79f$export$1a4097b876a13bf7 = $f872d8bba1c0f79f$export$951c8378cdfec6e6 * 3;\nclass $f872d8bba1c0f79f$export$d9bcbd5e1ff81430 extends (0, $6a9944941b4c1893$export$595dbf49c602a1f) {\n toShortString(fractionDigits = 0) {\n return super.toShortString(fractionDigits);\n }\n constructor(...args){\n super(...args);\n this.units = [\n {\n base: $f872d8bba1c0f79f$export$c489aa6f7fd82b1a,\n name: \"s\"\n },\n {\n base: $f872d8bba1c0f79f$export$cbd942915f33be50,\n name: \"m\"\n },\n {\n base: $f872d8bba1c0f79f$export$e99cbb807a5bb10d,\n name: \"H\"\n },\n {\n base: $f872d8bba1c0f79f$export$7a9a31a911eb9a20,\n name: \"D\"\n },\n {\n base: $f872d8bba1c0f79f$export$fca4f8121099df57,\n name: \"W\"\n },\n {\n base: $f872d8bba1c0f79f$export$951c8378cdfec6e6,\n name: \"M\"\n },\n {\n base: $f872d8bba1c0f79f$export$6ce2f08d515512,\n name: \"Y\"\n }\n ];\n }\n}\nfunction $f872d8bba1c0f79f$export$506c8e8f8c8edda(end, start = new Date()) {\n const timeDistance = $f872d8bba1c0f79f$export$d9bcbd5e1ff81430.distanceOf(+new Date(end), +new Date(start));\n const [value, unit] = timeDistance.toShortString().split(/\\s+/);\n return {\n distance: +value,\n unit: unit\n };\n}\nfunction $f872d8bba1c0f79f$var$fitUnit(value) {\n value = +value + \"\";\n return (template)=>(value.length < template.length ? value.padStart(template.length, \"0\") : value).slice(-Math.max(template.length, 2));\n}\nfunction $f872d8bba1c0f79f$export$3ae94a2503e890a1(time = new Date(), template = \"YYYY-MM-DD HH:mm:ss\") {\n time = time instanceof Date ? time : new Date(time);\n time = new Date(+time - time.getTimezoneOffset() * $f872d8bba1c0f79f$export$cbd942915f33be50);\n const [year, month, day, hour, minute, second, millisecond] = time.toJSON().split(/\\D/);\n return template.replace(/ms/g, millisecond).replace(/Y+/g, $f872d8bba1c0f79f$var$fitUnit(year)).replace(/M+/g, $f872d8bba1c0f79f$var$fitUnit(month)).replace(/D+/g, $f872d8bba1c0f79f$var$fitUnit(day)).replace(/H+/g, $f872d8bba1c0f79f$var$fitUnit(hour)).replace(/m+/g, $f872d8bba1c0f79f$var$fitUnit(minute)).replace(/s+/g, $f872d8bba1c0f79f$var$fitUnit(second));\n}\nfunction $f872d8bba1c0f79f$export$62ad822b3a5fd9a0(date, delta) {\n date = new Date(date);\n const month = date.getMonth() + delta;\n date.setFullYear(date.getFullYear() + Math.floor(month / 12));\n delta = month % 12;\n date.setMonth(delta < 0 ? 12 + delta : delta);\n return date;\n}\n\n\nvar $ba0e5dc395660a7c$exports = {};\n\n$parcel$export($ba0e5dc395660a7c$exports, \"parseJSON\", function () { return $ba0e5dc395660a7c$export$27924e57e9afff7f; });\n$parcel$export($ba0e5dc395660a7c$exports, \"toJSValue\", function () { return $ba0e5dc395660a7c$export$7ea17d45ecdcf634; });\n$parcel$export($ba0e5dc395660a7c$exports, \"parseTextTable\", function () { return $ba0e5dc395660a7c$export$bb8626e4916f587b; });\n\nfunction $ba0e5dc395660a7c$export$27924e57e9afff7f(raw) {\n function parseItem(value) {\n if (typeof value === \"string\" && /^\\d+(-\\d{1,2}){1,2}/.test(value)) {\n const date = new Date(value);\n if (!Number.isNaN(+date)) return date;\n }\n return value;\n }\n const value = parseItem(raw);\n if (typeof value !== \"string\" || (0, $9b05bcda60cc529c$export$67a6ce548ae77071)(value)) return value;\n try {\n return JSON.parse(raw, (key, value)=>parseItem(value));\n } catch {\n return raw;\n }\n}\nfunction $ba0e5dc395660a7c$export$7ea17d45ecdcf634(raw) {\n const parsed = $ba0e5dc395660a7c$export$27924e57e9afff7f(raw);\n if (typeof parsed !== \"string\") return parsed;\n const number = +parsed;\n return Number.isNaN(number) || number + \"\" !== parsed ? parsed : number;\n}\nfunction $ba0e5dc395660a7c$var$readQuoteValue(raw) {\n const quote = raw[0];\n const index = raw.indexOf(quote, 1);\n if (index < 0) throw SyntaxError(`A ${quote} is missing`);\n return raw.slice(1, index);\n}\nfunction $ba0e5dc395660a7c$export$bb8626e4916f587b(raw, header, separator = \",\") {\n const data = raw.trim().split(/[\\r\\n]+/).map((row)=>{\n const list = [];\n do {\n let value;\n if (row[0] === '\"' || row[0] === \"'\") {\n value = $ba0e5dc395660a7c$var$readQuoteValue(row);\n row = row.slice(value.length + 3);\n } else {\n const index = row.indexOf(separator);\n if (index > -1) {\n value = row.slice(0, index);\n row = row.slice(index + 1);\n } else {\n value = row;\n row = \"\";\n }\n }\n list.push($ba0e5dc395660a7c$export$7ea17d45ecdcf634(value.trim()));\n }while (row);\n return list;\n });\n return !header ? data : data.slice(1).map((row)=>row.reduce((object, item, index)=>{\n object[data[0][index]] = item;\n return object;\n }, {}));\n}\n\n\nvar $083124ac4b1a50a0$exports = {};\n\n$parcel$export($083124ac4b1a50a0$exports, \"isXDomain\", function () { return $083124ac4b1a50a0$export$71e6483fc2b024eb; });\n$parcel$export($083124ac4b1a50a0$exports, \"parseURLData\", function () { return $083124ac4b1a50a0$export$eb9b2aadbe449a20; });\n$parcel$export($083124ac4b1a50a0$exports, \"buildURLData\", function () { return $083124ac4b1a50a0$export$13397a83aa5915d6; });\n$parcel$export($083124ac4b1a50a0$exports, \"blobOf\", function () { return $083124ac4b1a50a0$export$fd89523fba250fa4; });\n$parcel$export($083124ac4b1a50a0$exports, \"blobFrom\", function () { return $083124ac4b1a50a0$export$504fbde693c1771c; });\n\n\nfunction $083124ac4b1a50a0$export$71e6483fc2b024eb(URI) {\n return new URL(URI, document.baseURI).origin !== location.origin;\n}\nfunction $083124ac4b1a50a0$export$eb9b2aadbe449a20(raw = globalThis.location?.search, toBuiltIn = true) {\n const list = raw.split(/\\?|#/);\n const data = new URLSearchParams(list[1] || list[0]);\n return Object.fromEntries([\n ...data.keys()\n ].map((key)=>{\n const list = toBuiltIn ? data.getAll(key).map((0, $ba0e5dc395660a7c$export$27924e57e9afff7f)) : data.getAll(key);\n return [\n key,\n list.length < 2 ? list[0] : list\n ];\n }));\n}\nconst $083124ac4b1a50a0$var$stringify = (value)=>typeof value === \"string\" ? value : (0, $9b05bcda60cc529c$export$b5a4d6f439a5044d)(value) ? (0, $9b05bcda60cc529c$export$7b85fd78dd236198)(value) + \"\" : JSON.stringify(value);\nfunction $083124ac4b1a50a0$export$13397a83aa5915d6(map) {\n if (!(map instanceof Array)) map = Object.entries(map);\n const list = map.map(([key, value])=>!(0, $9b05bcda60cc529c$export$dd1bc94b04021eeb)(value) && [\n key,\n $083124ac4b1a50a0$var$stringify(value)\n ]).filter(Boolean);\n return new URLSearchParams(list);\n}\nasync function $083124ac4b1a50a0$export$fd89523fba250fa4(URI) {\n return (await fetch(URI + \"\")).blob();\n}\nconst $083124ac4b1a50a0$var$DataURI = /^data:(.+?\\/(.+?))?(;base64)?,([\\s\\S]+)/;\nfunction $083124ac4b1a50a0$export$504fbde693c1771c(URI) {\n var [_, type, __, base64, data] = $083124ac4b1a50a0$var$DataURI.exec(URI) || [];\n data = base64 ? atob(data) : data;\n const aBuffer = new ArrayBuffer(data.length);\n const uBuffer = new Uint8Array(aBuffer);\n for(let i = 0; data[i]; i++)uBuffer[i] = data.charCodeAt(i);\n return new Blob([\n aBuffer\n ], {\n type: type\n });\n}\n\n\nvar $50872bf213056663$exports = {};\n\n$parcel$export($50872bf213056663$exports, \"makeCRC32\", function () { return $50872bf213056663$export$1b9ac4d3de3ffd2e; });\n$parcel$export($50872bf213056663$exports, \"makeSHA\", function () { return $50872bf213056663$export$d51f3b55e8d1aa73; });\nconst $50872bf213056663$var$CRC_32_Table = Array.from(new Array(256), (_, cell)=>{\n for(var j = 0; j < 8; j++)if (cell & 1) cell = cell >> 1 & 0x7fffffff ^ 0xedb88320;\n else cell = cell >> 1 & 0x7fffffff;\n return cell;\n});\nfunction $50872bf213056663$export$1b9ac4d3de3ffd2e(raw) {\n var value = 0xffffffff;\n for (const char of raw)value = value >> 8 & 0x00ffffff ^ $50872bf213056663$var$CRC_32_Table[value & 0xff ^ char.charCodeAt(0)];\n return \"0x\" + ((value ^ 0xffffffff) >>> 0).toString(16);\n}\nif (typeof self === \"object\") {\n if (\"msCrypto\" in globalThis) {\n // @ts-ignore\n const { subtle: subtle } = globalThis.crypto = globalThis.msCrypto;\n for(const key in subtle){\n const origin = subtle[key];\n if (origin instanceof Function) subtle[key] = function() {\n const observer = origin.apply(this, arguments);\n return new Promise((resolve, reject)=>{\n observer.oncomplete = ({ target: target })=>resolve(target.result);\n observer.onabort = observer.onerror = reject;\n });\n };\n }\n }\n const { crypto: crypto1 } = globalThis;\n if (!crypto1?.subtle && crypto1?.[\"webkitSubtle\"]) // @ts-ignore\n crypto1.subtle = crypto1[\"webkitSubtle\"];\n}\nasync function $50872bf213056663$export$d51f3b55e8d1aa73(raw, algorithm = \"SHA-1\") {\n const buffer = await crypto.subtle.digest(algorithm, new TextEncoder().encode(raw));\n return Array.from(new Uint8Array(buffer), (byte)=>byte.toString(16).padStart(2, \"0\")).join(\"\");\n}\n\n\nvar $93a3089d2937b23f$exports = {};\n\n\nvar $3e0a089cc13f69ad$exports = {};\n\n$parcel$export($3e0a089cc13f69ad$exports, \"XMLNamespace\", function () { return $3e0a089cc13f69ad$export$f5a4056b78c72efa; });\n$parcel$export($3e0a089cc13f69ad$exports, \"templateOf\", function () { return $3e0a089cc13f69ad$export$2ee022bbbc550b25; });\n$parcel$export($3e0a089cc13f69ad$exports, \"elementTypeOf\", function () { return $3e0a089cc13f69ad$export$a549dd5cef7f8327; });\n$parcel$export($3e0a089cc13f69ad$exports, \"isHTMLElementClass\", function () { return $3e0a089cc13f69ad$export$8eece510bcb9c62c; });\n$parcel$export($3e0a089cc13f69ad$exports, \"tagNameOf\", function () { return $3e0a089cc13f69ad$export$b8a1af58c024fefd; });\n$parcel$export($3e0a089cc13f69ad$exports, \"isDOMReadOnly\", function () { return $3e0a089cc13f69ad$export$a2cf0d4bb6e06de4; });\n$parcel$export($3e0a089cc13f69ad$exports, \"parseDOM\", function () { return $3e0a089cc13f69ad$export$d66b332881d9723f; });\n$parcel$export($3e0a089cc13f69ad$exports, \"stringifyDOM\", function () { return $3e0a089cc13f69ad$export$b0709844452f8b6b; });\n$parcel$export($3e0a089cc13f69ad$exports, \"walkDOM\", function () { return $3e0a089cc13f69ad$export$5118471ee5d5453b; });\n$parcel$export($3e0a089cc13f69ad$exports, \"getVisibleText\", function () { return $3e0a089cc13f69ad$export$be4650432daa84fd; });\n$parcel$export($3e0a089cc13f69ad$exports, \"splitPages\", function () { return $3e0a089cc13f69ad$export$578e38b4a3e0b255; });\n$parcel$export($3e0a089cc13f69ad$exports, \"importCSS\", function () { return $3e0a089cc13f69ad$export$7cd14c57bbb84350; });\n$parcel$export($3e0a089cc13f69ad$exports, \"stringifyCSS\", function () { return $3e0a089cc13f69ad$export$5100419dfae0456d; });\n$parcel$export($3e0a089cc13f69ad$exports, \"insertToCursor\", function () { return $3e0a089cc13f69ad$export$28d9d24a8cd0ffc2; });\n$parcel$export($3e0a089cc13f69ad$exports, \"scrollTo\", function () { return $3e0a089cc13f69ad$export$3f99968195accfaf; });\n$parcel$export($3e0a089cc13f69ad$exports, \"watchScroll\", function () { return $3e0a089cc13f69ad$export$eafdbaa868ea9975; });\n$parcel$export($3e0a089cc13f69ad$exports, \"watchVisible\", function () { return $3e0a089cc13f69ad$export$36a0c1ca2ae264fa; });\n$parcel$export($3e0a089cc13f69ad$exports, \"formToJSON\", function () { return $3e0a089cc13f69ad$export$86d7c59254d6a2c9; });\n\n\nconst $3e0a089cc13f69ad$export$f5a4056b78c72efa = {\n html: \"http://www.w3.org/1999/xhtml\",\n svg: \"http://www.w3.org/2000/svg\",\n math: \"http://www.w3.org/1998/Math/MathML\"\n};\nconst $3e0a089cc13f69ad$var$templateMap = {};\nfunction $3e0a089cc13f69ad$export$2ee022bbbc550b25(tagName) {\n if ($3e0a089cc13f69ad$var$templateMap[tagName]) return $3e0a089cc13f69ad$var$templateMap[tagName];\n const spawn = document.createElement(\"template\");\n spawn.innerHTML = `<${tagName} />`;\n return $3e0a089cc13f69ad$var$templateMap[tagName] = spawn.content.firstElementChild;\n}\nfunction $3e0a089cc13f69ad$export$a549dd5cef7f8327(tagName) {\n if (tagName.includes(\"-\")) return \"html\";\n const [prefix, localName] = tagName.split(\":\");\n if (localName) return prefix === \"html\" ? \"html\" : \"xml\";\n const node = $3e0a089cc13f69ad$export$2ee022bbbc550b25(tagName);\n return node instanceof HTMLElement && !(node instanceof HTMLUnknownElement) ? \"html\" : \"xml\";\n}\nfunction $3e0a089cc13f69ad$export$8eece510bcb9c62c(Class) {\n return (0, $9b05bcda60cc529c$export$170f4e08cad8229d)(Class, HTMLElement);\n}\nconst $3e0a089cc13f69ad$var$nameMap = new WeakMap();\nfunction $3e0a089cc13f69ad$export$b8a1af58c024fefd(Class) {\n const name = $3e0a089cc13f69ad$var$nameMap.get(Class);\n if (name) return name;\n var { tagName: tagName } = new Class();\n $3e0a089cc13f69ad$var$nameMap.set(Class, tagName = tagName.toLowerCase());\n return tagName;\n}\nfunction $3e0a089cc13f69ad$export$a2cf0d4bb6e06de4(tagName, propertyName) {\n /**\n * fetch from https://html.spec.whatwg.org/\n */ const ReadOnly_Properties = [\n [\n HTMLLinkElement,\n [\n \"sizes\"\n ]\n ],\n [\n HTMLIFrameElement,\n [\n \"sandbox\"\n ]\n ],\n [\n HTMLObjectElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLInputElement,\n [\n \"form\",\n \"list\"\n ]\n ],\n [\n HTMLButtonElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLSelectElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLTextAreaElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLOutputElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLFieldSetElement,\n [\n \"form\"\n ]\n ]\n ];\n const template = $3e0a089cc13f69ad$export$2ee022bbbc550b25(tagName);\n for (const [Class, keys] of ReadOnly_Properties)if (template instanceof Class && keys.includes(propertyName)) return true;\n return false;\n}\nfunction $3e0a089cc13f69ad$export$d66b332881d9723f(HTML) {\n const spawn = document.createElement(\"template\");\n spawn.innerHTML = HTML;\n return [\n ...spawn.content.childNodes\n ].map((node)=>{\n node.remove();\n return node;\n });\n}\nfunction $3e0a089cc13f69ad$export$b0709844452f8b6b(node) {\n return new XMLSerializer().serializeToString(node).replace(/ xmlns=\"http:\\/\\/www.w3.org\\/1999\\/xhtml\"/g, \"\");\n}\nfunction* $3e0a089cc13f69ad$export$5118471ee5d5453b(root, type) {\n const children = [\n ...root.childNodes\n ];\n if ((0, $9b05bcda60cc529c$export$dd1bc94b04021eeb)(type) || type === root.nodeType) yield root;\n for (const node of children)yield* $3e0a089cc13f69ad$export$5118471ee5d5453b(node, type);\n}\nfunction $3e0a089cc13f69ad$export$be4650432daa84fd(root) {\n var text = \"\";\n for (const { nodeType: nodeType, parentElement: parentElement, nodeValue: nodeValue } of $3e0a089cc13f69ad$export$5118471ee5d5453b(root))if (nodeType === Node.TEXT_NODE && parentElement.getAttribute(\"aria-hidden\") !== \"true\") {\n const { width: width, height: height } = parentElement.getBoundingClientRect();\n if (width && height) text += nodeValue.trim().replace(/\\s+/g, \" \");\n }\n return text;\n}\nfunction $3e0a089cc13f69ad$export$578e38b4a3e0b255({ offsetWidth: offsetWidth, children: children }, pageHeight = 841.89, pageWidth = 595.28) {\n const scrollHeight = pageHeight / pageWidth * offsetWidth;\n var offset = 0;\n return [\n ...children\n ].reduce((pages, node)=>{\n var { offsetTop: top, offsetHeight: height } = node;\n top += offset;\n var bottom = top + height;\n const bottomOffset = bottom / scrollHeight;\n const topIndex = ~~(top / scrollHeight), bottomIndex = ~~bottomOffset;\n if (topIndex !== bottomIndex) offset += height - bottomOffset;\n (pages[bottomIndex] ||= []).push(node);\n return pages;\n }, []);\n}\nfunction $3e0a089cc13f69ad$export$7cd14c57bbb84350(URI, { alternate: alternate, ...options } = {}) {\n const style = [\n ...document.styleSheets\n ].find(({ href: href })=>href === URI);\n if (style) return Promise.resolve(style);\n const link = document.createElement(\"link\");\n return new Promise((resolve, reject)=>{\n link.onload = ()=>resolve(link.sheet);\n link.onerror = (_1, _2, _3, _4, error)=>reject(error);\n Object.assign(link, options);\n link.rel = (alternate ? \"alternate \" : \"\") + \"stylesheet\";\n link.href = URI;\n document.head.append(link);\n });\n}\nfunction $3e0a089cc13f69ad$export$5100419dfae0456d(data, depth = 0, indent = \" \") {\n const padding = indent.repeat(depth);\n return Object.entries(data).map(([key, value])=>typeof value !== \"object\" ? `${padding}${(0, $9b05bcda60cc529c$export$3f34ca2fef821bbd)(key)}: ${value};` : `${padding}${key} {\n${$3e0a089cc13f69ad$export$5100419dfae0456d(value, depth + 1, indent)}\n${padding}}`).join(\"\\n\");\n}\nfunction $3e0a089cc13f69ad$export$28d9d24a8cd0ffc2(...nodes) {\n const fragment = document.createDocumentFragment();\n fragment.append(...nodes);\n for (const node of $3e0a089cc13f69ad$export$5118471ee5d5453b(fragment))if (![\n 1,\n 3,\n 11\n ].includes(node.nodeType) || [\n \"meta\",\n \"title\",\n \"link\",\n \"script\"\n ].includes(node.nodeName.toLowerCase())) node.replaceWith(...node.childNodes);\n const selection = globalThis.getSelection();\n if (!selection) return;\n const range = selection.getRangeAt(0);\n range.deleteContents();\n range.insertNode(fragment);\n}\nfunction $3e0a089cc13f69ad$export$3f99968195accfaf(selector, root, align, justify) {\n const [_, ID] = /^#(.+)/.exec(selector) || [];\n if (ID === \"top\") window.scrollTo({\n top: 0,\n left: 0,\n behavior: \"smooth\"\n });\n else (root || document).querySelector(ID ? `[id=\"${ID}\"]` : selector)?.scrollIntoView({\n behavior: \"smooth\",\n block: align,\n inline: justify\n });\n}\nfunction $3e0a089cc13f69ad$export$eafdbaa868ea9975(box, handler, depth = 6) {\n return Array.from(box.querySelectorAll(Array.from(new Array(depth), (_, index)=>`h${++index}`) + \"\"), (header)=>{\n new IntersectionObserver(([item])=>{\n if (!item.isIntersecting) return;\n const target = item.target;\n handler({\n target: target,\n links: [\n ...target.ownerDocument.querySelectorAll(`[href=\"#${target.id}\"]`)\n ]\n });\n }).observe(header);\n if (!header.id.trim()) header.id = header.textContent.trim().replace(/\\W+/g, \"-\");\n return {\n level: +header.tagName[1],\n id: header.id,\n text: header.textContent.trim()\n };\n });\n}\nfunction $3e0a089cc13f69ad$export$36a0c1ca2ae264fa(root, handler) {\n var last = document.visibilityState === \"visible\" ? 1 : 0;\n function change(state) {\n if (state === 3 || last === 3) handler(state === 3);\n last = state;\n }\n new IntersectionObserver(([{ isIntersecting: isIntersecting }])=>change(isIntersecting ? last | 2 : last & 1)).observe(root);\n document.addEventListener(\"visibilitychange\", ()=>change(document.visibilityState === \"visible\" ? last | 1 : last & 2));\n}\nfunction $3e0a089cc13f69ad$export$86d7c59254d6a2c9(form) {\n const data = {};\n for (const field of form.elements){\n let { name: name, value: value, checked: checked, defaultValue: defaultValue, selectedOptions: selectedOptions, files: files } = field;\n const type = field.type;\n if (!name || value === \"\") continue;\n const box = type !== \"fieldset\" && field.closest(\"fieldset\");\n if (box && box !== form) continue;\n let parsedValue = value;\n switch(type){\n case \"radio\":\n case \"checkbox\":\n if (checked) parsedValue = defaultValue ? (0, $ba0e5dc395660a7c$export$7ea17d45ecdcf634)(defaultValue) : true;\n else continue;\n break;\n case \"select-multiple\":\n parsedValue = Array.from(selectedOptions, ({ value: value })=>(0, $ba0e5dc395660a7c$export$7ea17d45ecdcf634)(value));\n break;\n case \"fieldset\":\n parsedValue = $3e0a089cc13f69ad$export$86d7c59254d6a2c9(field);\n break;\n case \"file\":\n parsedValue = files && Array.from(files);\n break;\n case \"date\":\n case \"datetime-local\":\n case \"month\":\n case \"hidden\":\n case \"number\":\n case \"range\":\n case \"select-one\":\n parsedValue = (0, $ba0e5dc395660a7c$export$7ea17d45ecdcf634)(value);\n }\n if (name in data) data[name] = [].concat(data[name], parsedValue);\n else data[name] = !(parsedValue instanceof Array) || !(0, $9b05bcda60cc529c$export$dd1bc94b04021eeb)(parsedValue[1]) ? parsedValue : parsedValue[0];\n }\n return data;\n}\n\n\nvar $bb23e0c794fefbef$exports = {};\n\n$parcel$export($bb23e0c794fefbef$exports, \"sleep\", function () { return $bb23e0c794fefbef$export$e772c8ff12451969; });\n$parcel$export($bb23e0c794fefbef$exports, \"asyncLoop\", function () { return $bb23e0c794fefbef$export$57207d71b8c929c8; });\nfunction $bb23e0c794fefbef$export$e772c8ff12451969(seconds = 1) {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n}\nfunction $bb23e0c794fefbef$export$57207d71b8c929c8(executor, seconds = 1) {\n var stop = false;\n (async ()=>{\n while(!stop){\n const result = executor();\n if (result instanceof Promise) await result;\n await $bb23e0c794fefbef$export$e772c8ff12451969(seconds);\n }\n })();\n return ()=>stop = true;\n}\n\n\nvar $19ed8aeb7905a045$exports = {};\n\n$parcel$export($19ed8aeb7905a045$exports, \"delegate\", function () { return $19ed8aeb7905a045$export$10b1921597150314; });\n$parcel$export($19ed8aeb7905a045$exports, \"documentReady\", function () { return $19ed8aeb7905a045$export$3e2b244719956741; });\n$parcel$export($19ed8aeb7905a045$exports, \"promisify\", function () { return $19ed8aeb7905a045$export$1d1d2ed6b55cf67f; });\n$parcel$export($19ed8aeb7905a045$exports, \"createMessageServer\", function () { return $19ed8aeb7905a045$export$2155c0b5a4b77fb8; });\n$parcel$export($19ed8aeb7905a045$exports, \"createMessageClient\", function () { return $19ed8aeb7905a045$export$9d97473344489dfc; });\n$parcel$export($19ed8aeb7905a045$exports, \"serviceWorkerUpdate\", function () { return $19ed8aeb7905a045$export$d635d04af3887bbe; });\n\nfunction $19ed8aeb7905a045$export$10b1921597150314(selector, handler) {\n return function(event) {\n var node, path = event.composedPath();\n while((node = path.shift()) && node !== event.currentTarget)if (node instanceof HTMLElement && node.matches(selector)) return handler.call(this, event, node, event.detail);\n };\n}\nconst $19ed8aeb7905a045$export$3e2b244719956741 = typeof window !== \"undefined\" ? new Promise((resolve)=>{\n function done() {\n document?.removeEventListener(\"DOMContentLoaded\", done);\n window.removeEventListener(\"load\", done);\n resolve();\n }\n document?.addEventListener(\"DOMContentLoaded\", done);\n window.addEventListener(\"load\", done);\n setTimeout(function check() {\n document?.readyState === \"complete\" ? resolve() : setTimeout(check);\n });\n}) : Promise.resolve();\nfunction $19ed8aeb7905a045$export$1d1d2ed6b55cf67f(scope, element) {\n return new Promise((resolve, reject)=>{\n function end(event) {\n resolve(event), clean();\n }\n function cancel(event) {\n reject(event), clean();\n }\n function clean() {\n element.removeEventListener(scope + \"end\", end);\n element.removeEventListener(scope + \"cancel\", cancel);\n }\n element.addEventListener(scope + \"end\", end);\n element.addEventListener(scope + \"cancel\", cancel);\n });\n}\nfunction $19ed8aeb7905a045$export$2155c0b5a4b77fb8(handlers) {\n async function server({ data: { type: type, id: id, ...data }, source: source, origin: origin }) {\n var result = handlers[type]?.(data);\n if (result instanceof Promise) result = await result;\n // @ts-ignore\n source.postMessage({\n ...result,\n id: id\n }, origin);\n }\n globalThis.addEventListener(\"message\", server);\n return ()=>globalThis.removeEventListener(\"message\", server);\n}\nfunction $19ed8aeb7905a045$export$9d97473344489dfc(target, origin = \"*\") {\n return (type, data)=>new Promise((resolve)=>{\n const UID = (0, $9b05bcda60cc529c$export$89912e019eef22aa)();\n function handler({ data: { id: id, ...data } }) {\n if (id !== UID) return;\n resolve(data);\n globalThis.removeEventListener(\"message\", handler);\n }\n globalThis.addEventListener(\"message\", handler);\n // @ts-ignore\n target.postMessage({\n id: UID,\n type: type,\n ...data\n }, origin);\n });\n}\nfunction $19ed8aeb7905a045$export$d635d04af3887bbe(registration) {\n return new Promise((resolve)=>{\n if (registration.waiting) return resolve(registration.waiting);\n registration.onupdatefound = ()=>registration.installing?.addEventListener(\"statechange\", function() {\n if (this.state === \"installed\" && navigator.serviceWorker.controller) resolve(this);\n });\n });\n}\n\n\nvar $7a08303ce13c49c5$exports = {};\n\n$parcel$export($7a08303ce13c49c5$exports, \"PageVector\", function () { return $7a08303ce13c49c5$export$1b88f6b6d432a52a; });\n$parcel$export($7a08303ce13c49c5$exports, \"getSwipeVector\", function () { return $7a08303ce13c49c5$export$b70f6380221b1350; });\n$parcel$export($7a08303ce13c49c5$exports, \"durationOf\", function () { return $7a08303ce13c49c5$export$75d6cbe4503e149; });\n$parcel$export($7a08303ce13c49c5$exports, \"watchMotion\", function () { return $7a08303ce13c49c5$export$b2618d51188815c2; });\n$parcel$export($7a08303ce13c49c5$exports, \"transitIn\", function () { return $7a08303ce13c49c5$export$490814474ddbb428; });\n$parcel$export($7a08303ce13c49c5$exports, \"animateIn\", function () { return $7a08303ce13c49c5$export$3ea201dffb50dfef; });\n$parcel$export($7a08303ce13c49c5$exports, \"transitOut\", function () { return $7a08303ce13c49c5$export$d1012c7198c6b460; });\n$parcel$export($7a08303ce13c49c5$exports, \"animateOut\", function () { return $7a08303ce13c49c5$export$a35a418b7b17958e; });\n\nclass $7a08303ce13c49c5$export$1b88f6b6d432a52a {\n constructor(from, to){\n this.from = from;\n this.to = to;\n }\n get length() {\n const { from: from, to: to } = this;\n return Math.sqrt(Math.pow(to.x - from.x, 2) + Math.pow(to.y - from.y, 2) + (to.z != null ? Math.pow(to.z - from.z, 2) : 0));\n }\n get direction() {\n const { from: from, to: to } = this;\n const XD = to.x - from.x, YD = to.y - from.y, ZD = to.z - from.z;\n const XL = Math.abs(XD), YL = Math.abs(YD), ZL = Math.abs(ZD);\n switch(isNaN(ZL) ? Math.max(XL, YL) : Math.max(XL, YL, ZL)){\n case XL:\n return XD > 0 ? \"right\" : \"left\";\n case YL:\n return YD > 0 ? \"forward\" : \"backward\";\n case ZL:\n return ZD > 0 ? \"up\" : \"down\";\n }\n }\n}\nfunction $7a08303ce13c49c5$export$b70f6380221b1350(from, to, threshold = parseInt(getComputedStyle(document.body).fontSize) * 6) {\n const vector = new $7a08303ce13c49c5$export$1b88f6b6d432a52a(from, to);\n if (vector.length >= threshold && !getSelection()?.toString().trim()) return vector;\n}\nfunction $7a08303ce13c49c5$export$75d6cbe4503e149(type, element) {\n const { transitionDuration: transitionDuration, animationDuration: animationDuration } = getComputedStyle(element);\n const duration = type === \"animation\" ? animationDuration : transitionDuration;\n return parseFloat(duration) * (duration.slice(-2) === \"ms\" ? 1 : 1000);\n}\nfunction $7a08303ce13c49c5$export$b2618d51188815c2(type, element) {\n return Promise.race([\n (0, $19ed8aeb7905a045$export$1d1d2ed6b55cf67f)(type, element).catch((event)=>Promise.resolve(event)),\n new Promise((resolve)=>setTimeout(resolve, $7a08303ce13c49c5$export$75d6cbe4503e149(type, element)))\n ]);\n}\nfunction $7a08303ce13c49c5$var$fadeIn(type, element, className, display) {\n element.style.display = display;\n const end = $7a08303ce13c49c5$export$b2618d51188815c2(type, element);\n return new Promise((resolve)=>requestAnimationFrame(()=>{\n element.classList.add(className);\n end.then(resolve);\n }));\n}\nasync function $7a08303ce13c49c5$var$fadeOut(type, element, className, remove) {\n const end = $7a08303ce13c49c5$export$b2618d51188815c2(type, element);\n element.classList.remove(className);\n await end;\n if (remove) element.remove();\n else element.style.display = \"none\";\n}\nfunction $7a08303ce13c49c5$export$490814474ddbb428(element, className, display = \"block\") {\n return $7a08303ce13c49c5$var$fadeIn(\"transition\", element, className, display);\n}\nfunction $7a08303ce13c49c5$export$3ea201dffb50dfef(element, className, display = \"block\") {\n return $7a08303ce13c49c5$var$fadeIn(\"animation\", element, className, display);\n}\nfunction $7a08303ce13c49c5$export$d1012c7198c6b460(element, className, remove) {\n return $7a08303ce13c49c5$var$fadeOut(\"transition\", element, className, remove);\n}\nfunction $7a08303ce13c49c5$export$a35a418b7b17958e(element, className, remove) {\n return $7a08303ce13c49c5$var$fadeOut(\"animation\", element, className, remove);\n}\n\n\nvar $69bd9f0117925302$exports = {};\n\n$parcel$export($69bd9f0117925302$exports, \"describe\", function () { return $69bd9f0117925302$export$cd5450f3a47e3789; });\n$parcel$export($69bd9f0117925302$exports, \"it\", function () { return $69bd9f0117925302$export$3486a10f30cf1ee4; });\n\nasync function $69bd9f0117925302$export$cd5450f3a47e3789(title, cases) {\n console.log(title);\n console.time(title);\n await cases();\n console.timeEnd(title);\n}\nasync function $69bd9f0117925302$export$3486a10f30cf1ee4(title, userCase, secondsOut = 3) {\n title = \" \" + title;\n console.time(title);\n async function timeOut() {\n await (0, $bb23e0c794fefbef$export$e772c8ff12451969)(secondsOut);\n throw new RangeError(\"Timed out\");\n }\n try {\n return await Promise.race([\n userCase((status)=>console.assert(status, title)),\n timeOut()\n ]);\n } finally{\n console.timeEnd(title);\n }\n}\n\n\n\n\nexport {$9b05bcda60cc529c$export$61cc6ed0f143570b as likeNull, $9b05bcda60cc529c$export$dd1bc94b04021eeb as isEmpty, $9b05bcda60cc529c$export$a09f818797e212c4 as classNameOf, $9b05bcda60cc529c$export$170f4e08cad8229d as assertInheritance, $9b05bcda60cc529c$export$2a489b3f92f4996a as proxyPrototype, $9b05bcda60cc529c$export$67a6ce548ae77071 as isUnsafeNumeric, $9b05bcda60cc529c$export$a48f0734ac7c2329 as byteLength, $9b05bcda60cc529c$export$3f34ca2fef821bbd as toHyphenCase, $9b05bcda60cc529c$export$86f54f62aa7a7514 as toCamelCase, $9b05bcda60cc529c$export$89912e019eef22aa as uniqueID, $9b05bcda60cc529c$export$1c8ba402144543e5 as objectFrom, $9b05bcda60cc529c$export$2ddabb89308e1a22 as DiffStatus, $9b05bcda60cc529c$export$14527669107aa301 as diffKeys, $9b05bcda60cc529c$export$3f063810d7bf01bd as groupBy, $9b05bcda60cc529c$export$b5a4d6f439a5044d as likeArray, $9b05bcda60cc529c$export$b119cc7e1840e59c as isTypedArray, $9b05bcda60cc529c$export$7b85fd78dd236198 as makeArray, $9b05bcda60cc529c$export$697c3df919c0e61a as splitArray, $9b05bcda60cc529c$export$e6b5ff3168b5942b as findDeep, $9b05bcda60cc529c$export$1d012a0dff3dab06 as countBy, $9b05bcda60cc529c$export$69a3209f1a06c04d as cache, $9b05bcda60cc529c$export$86c18c6347f4a8c4 as createAsyncIterator, $9b05bcda60cc529c$export$dce9414bed0662c as mergeStream, $9b05bcda60cc529c$export$271f7c16f175f804 as ByteSize, $6a9944941b4c1893$export$8a63f25cc62965f1 as sum, $6a9944941b4c1893$export$e1f36757ecda301d as averageOf, $6a9944941b4c1893$export$8e694e1eafd55acb as varianceOf, $6a9944941b4c1893$export$57d7c52a66287430 as standardDeviationOf, $6a9944941b4c1893$export$2b4693832ca3ce16 as hypotenuseOf, $6a9944941b4c1893$export$5b784e078da1ce6 as carryFloat, $6a9944941b4c1893$export$17ec9c9f4f23588c as fixFloat, $6a9944941b4c1893$export$595dbf49c602a1f as Scalar, $f872d8bba1c0f79f$export$c489aa6f7fd82b1a as Second, $f872d8bba1c0f79f$export$cbd942915f33be50 as Minute, $f872d8bba1c0f79f$export$9b886f8493244014 as Quarter, $f872d8bba1c0f79f$export$e99cbb807a5bb10d as Hour, $f872d8bba1c0f79f$export$7a9a31a911eb9a20 as Day, $f872d8bba1c0f79f$export$fca4f8121099df57 as Week, $f872d8bba1c0f79f$export$6ce2f08d515512 as Year, $f872d8bba1c0f79f$export$951c8378cdfec6e6 as Month, $f872d8bba1c0f79f$export$1a4097b876a13bf7 as Season, $f872d8bba1c0f79f$export$d9bcbd5e1ff81430 as Timestamp, $f872d8bba1c0f79f$export$506c8e8f8c8edda as diffTime, $f872d8bba1c0f79f$export$3ae94a2503e890a1 as formatDate, $f872d8bba1c0f79f$export$62ad822b3a5fd9a0 as changeMonth, $ba0e5dc395660a7c$export$27924e57e9afff7f as parseJSON, $ba0e5dc395660a7c$export$7ea17d45ecdcf634 as toJSValue, $ba0e5dc395660a7c$export$bb8626e4916f587b as parseTextTable, $083124ac4b1a50a0$export$71e6483fc2b024eb as isXDomain, $083124ac4b1a50a0$export$eb9b2aadbe449a20 as parseURLData, $083124ac4b1a50a0$export$13397a83aa5915d6 as buildURLData, $083124ac4b1a50a0$export$fd89523fba250fa4 as blobOf, $083124ac4b1a50a0$export$504fbde693c1771c as blobFrom, $50872bf213056663$export$1b9ac4d3de3ffd2e as makeCRC32, $50872bf213056663$export$d51f3b55e8d1aa73 as makeSHA, $3e0a089cc13f69ad$export$f5a4056b78c72efa as XMLNamespace, $3e0a089cc13f69ad$export$2ee022bbbc550b25 as templateOf, $3e0a089cc13f69ad$export$a549dd5cef7f8327 as elementTypeOf, $3e0a089cc13f69ad$export$8eece510bcb9c62c as isHTMLElementClass, $3e0a089cc13f69ad$export$b8a1af58c024fefd as tagNameOf, $3e0a089cc13f69ad$export$a2cf0d4bb6e06de4 as isDOMReadOnly, $3e0a089cc13f69ad$export$d66b332881d9723f as parseDOM, $3e0a089cc13f69ad$export$b0709844452f8b6b as stringifyDOM, $3e0a089cc13f69ad$export$5118471ee5d5453b as walkDOM, $3e0a089cc13f69ad$export$be4650432daa84fd as getVisibleText, $3e0a089cc13f69ad$export$578e38b4a3e0b255 as splitPages, $3e0a089cc13f69ad$export$7cd14c57bbb84350 as importCSS, $3e0a089cc13f69ad$export$5100419dfae0456d as stringifyCSS, $3e0a089cc13f69ad$export$28d9d24a8cd0ffc2 as insertToCursor, $3e0a089cc13f69ad$export$3f99968195accfaf as scrollTo, $3e0a089cc13f69ad$export$eafdbaa868ea9975 as watchScroll, $3e0a089cc13f69ad$export$36a0c1ca2ae264fa as watchVisible, $3e0a089cc13f69ad$export$86d7c59254d6a2c9 as formToJSON, $bb23e0c794fefbef$export$e772c8ff12451969 as sleep, $bb23e0c794fefbef$export$57207d71b8c929c8 as asyncLoop, $19ed8aeb7905a045$export$10b1921597150314 as delegate, $19ed8aeb7905a045$export$3e2b244719956741 as documentReady, $19ed8aeb7905a045$export$1d1d2ed6b55cf67f as promisify, $19ed8aeb7905a045$export$2155c0b5a4b77fb8 as createMessageServer, $19ed8aeb7905a045$export$9d97473344489dfc as createMessageClient, $19ed8aeb7905a045$export$d635d04af3887bbe as serviceWorkerUpdate, $7a08303ce13c49c5$export$1b88f6b6d432a52a as PageVector, $7a08303ce13c49c5$export$b70f6380221b1350 as getSwipeVector, $7a08303ce13c49c5$export$75d6cbe4503e149 as durationOf, $7a08303ce13c49c5$export$b2618d51188815c2 as watchMotion, $7a08303ce13c49c5$export$490814474ddbb428 as transitIn, $7a08303ce13c49c5$export$3ea201dffb50dfef as animateIn, $7a08303ce13c49c5$export$d1012c7198c6b460 as transitOut, $7a08303ce13c49c5$export$a35a418b7b17958e as animateOut, $69bd9f0117925302$export$cd5450f3a47e3789 as describe, $69bd9f0117925302$export$3486a10f30cf1ee4 as it};\n//# sourceMappingURL=index.esm.js.map\n","export * from './data';\nexport * from './math';\nexport * from './date';\nexport * from './parser';\nexport * from './URL';\nexport * from './crypto';\nexport * from './DOM-type';\nexport * from './DOM';\nexport * from './timer';\nexport * from './event';\nexport * from './animation';\nexport * from './assert';\n","import { Scalar } from './math';\n\nexport type Constructor = new (...args: any[]) => T;\n\nexport type AbstractClass = abstract new (...args: any[]) => T;\n\nexport type Values = Required[keyof T];\n\nexport type TypeKeys = {\n [K in keyof T]: Required[K] extends D ? K : never;\n}[keyof T];\n\nexport type PickSingle = T extends infer S | (infer S)[] ? S : T;\n\nexport type PickData = Omit>;\n\nexport type DataKeys = Exclude>;\n\nexport function likeNull(value?: any) {\n return !(value != null) || Number.isNaN(value);\n}\n\nexport function isEmpty(value?: any) {\n return (\n likeNull(value) ||\n (typeof value === 'object' ? !Object.keys(value).length : value === '')\n );\n}\n\n/**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag}\n */\nexport const classNameOf = (data: any): string =>\n Object.prototype.toString.call(data).slice(8, -1);\n\nexport function assertInheritance(Sub: Function, Super: Function) {\n return Sub.prototype instanceof Super;\n}\n\nexport function proxyPrototype(\n target: T,\n dataStore: Record,\n setter?: (key: IndexKey, value: any) => any\n) {\n const prototype = Object.getPrototypeOf(target);\n\n const prototypeProxy = new Proxy(prototype, {\n set: (_, key, value, receiver) => {\n if (key in receiver) Reflect.set(prototype, key, value, receiver);\n else dataStore[key] = value;\n\n setter?.(key, value);\n\n return true;\n },\n get: (prototype, key, receiver) =>\n key in dataStore\n ? dataStore[key]\n : Reflect.get(prototype, key, receiver)\n });\n\n Object.setPrototypeOf(target, prototypeProxy);\n}\n\nexport function isUnsafeNumeric(raw: string) {\n return (\n /^[\\d.]+$/.test(raw) &&\n raw.localeCompare(Number.MAX_SAFE_INTEGER + '', undefined, {\n numeric: true\n }) > 0\n );\n}\n\nexport function byteLength(raw: string) {\n return raw.replace(/[^\\u0021-\\u007e\\uff61-\\uffef]/g, 'xx').length;\n}\n\nexport type HyphenCase = T extends `${infer L}${infer R}`\n ? `${L extends Uppercase ? `-${Lowercase}` : L}${HyphenCase}`\n : T;\nexport function toHyphenCase(raw: string) {\n return raw.replace(\n /[A-Z]+|[^A-Za-z][A-Za-z]/g,\n (match, offset) =>\n `${offset ? '-' : ''}${(match[1] || match[0]).toLowerCase()}`\n );\n}\n\nexport type CamelCase<\n Raw extends string,\n Delimiter extends string = '-'\n> = Uncapitalize<\n Raw extends `${infer L}${Delimiter}${infer R}`\n ? `${Capitalize}${Capitalize>}`\n : `${Capitalize}`\n>;\nexport function toCamelCase(raw: string, large = false) {\n return raw.replace(/^[A-Za-z]|[^A-Za-z][A-Za-z]/g, (match, offset) =>\n offset || large\n ? (match[1] || match[0]).toUpperCase()\n : match.toLowerCase()\n );\n}\n\nexport function uniqueID() {\n return (Date.now() + parseInt((Math.random() + '').slice(2))).toString(36);\n}\n\nexport function objectFrom(values: V[], keys: K[]) {\n return Object.fromEntries(\n values.map((value, index) => [keys[index], value])\n ) as Record;\n}\n\nexport enum DiffStatus {\n Old = -1,\n Same = 0,\n New = 1\n}\n\nexport function diffKeys(oldList: T[], newList: T[]) {\n const map = {} as Record;\n\n for (const item of oldList) map[item] = DiffStatus.Old;\n\n for (const item of newList) {\n map[item] ||= 0;\n map[item] += DiffStatus.New;\n }\n\n return {\n map,\n group: groupBy(\n Object.entries(map),\n ([key, status]) => status\n )\n };\n}\n\nexport type ResultArray = T extends ArrayLike ? D[] : T[];\n\nexport function likeArray(data?: any): data is ArrayLike {\n if (likeNull(data)) return false;\n\n const { length } = data;\n\n return typeof length === 'number' && length >= 0 && ~~length === length;\n}\n\nexport type TypedArray =\n | Int8Array\n | Uint8Array\n | Uint8ClampedArray\n | Int16Array\n | Uint16Array\n | Int32Array\n | Uint32Array\n | Float32Array\n | Float64Array\n | BigInt64Array\n | BigUint64Array;\n\n/**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray}\n */\nexport const isTypedArray = (data: any): data is TypedArray =>\n data instanceof Object.getPrototypeOf(Int8Array);\n\nexport function makeArray(data?: T) {\n if (data instanceof Array) return data as unknown as ResultArray;\n\n if (likeNull(data)) return [] as ResultArray;\n\n if (likeArray(data)) return Array.from(data) as ResultArray;\n\n return [data] as ResultArray;\n}\n\nexport const splitArray = (array: T[], unitLength: number) =>\n array.reduce((grid, item, index) => {\n (grid[~~(index / unitLength)] ||= [])[index % unitLength] = item;\n\n return grid;\n }, [] as T[][]);\n\nexport function findDeep(\n list: T[],\n subKey: TypeKeys, any[]>,\n handler: (item: T) => boolean\n): T[] {\n for (const item of list) {\n if (handler(item)) return [item];\n\n if (item[subKey] instanceof Array) {\n const result = findDeep(\n item[subKey] as unknown as T[],\n subKey,\n handler\n );\n if (result.length) return [item, ...result];\n }\n }\n return [];\n}\n\nexport type IndexKey = number | string | symbol;\nexport type GroupKey> = keyof T | IndexKey;\nexport type Iteratee> =\n | keyof T\n | ((item: T) => GroupKey | GroupKey[]);\n\nexport function groupBy>(\n list: T[],\n iteratee: Iteratee\n) {\n const data = {} as Record, T[]>;\n\n for (const item of list) {\n let keys =\n iteratee instanceof Function ? iteratee(item) : item[iteratee];\n\n if (!(keys instanceof Array)) keys = [keys];\n\n for (const key of new Set(\n (keys as GroupKey[]).filter(key => key != null)\n ))\n (data[key] = data[key] || []).push(item);\n }\n\n return data;\n}\n\nexport function countBy>(\n list: T[],\n iteratee: Iteratee\n) {\n const group = groupBy(list, iteratee);\n\n const sortedList = Object.entries(group).map(\n ([key, { length }]) => [key, length] as const\n );\n return Object.fromEntries(sortedList);\n}\n\nexport function cache(\n executor: (cleaner: () => void, ...data: I[]) => O,\n title: string\n) {\n var cacheData: O;\n\n return function (...data: I[]) {\n if (cacheData != null) return cacheData;\n\n console.trace(`[Cache] execute: ${title}`);\n\n cacheData = executor.call(\n this,\n (): void => (cacheData = undefined),\n ...data\n );\n Promise.resolve(cacheData).then(\n data => console.log(`[Cache] refreshed: ${title} => ${data}`),\n error => console.error(`[Cache] failed: ${error?.message || error}`)\n );\n return cacheData;\n };\n}\n\nexport interface IteratorController {\n next: (value: V) => any;\n error: (error: E) => any;\n complete: () => any;\n}\n\nexport async function* createAsyncIterator(\n executor: (controller: IteratorController) => (() => any) | void\n) {\n let { promise, resolve, reject } = Promise.withResolvers();\n\n const doneSymbol = Symbol('done'),\n done = Promise.withResolvers();\n\n const disposer = executor({\n next: value => resolve(value),\n error: error => {\n reject(error);\n // @ts-ignore\n disposer?.();\n },\n complete: () => {\n done.resolve(doneSymbol);\n // @ts-ignore\n disposer?.();\n }\n });\n\n while (true) {\n const value = await Promise.race([promise, done.promise]);\n\n if (value === doneSymbol) return;\n\n yield value as V;\n\n ({ promise, resolve, reject } = Promise.withResolvers());\n }\n}\n\nexport async function* mergeStream(\n ...sources: (() => AsyncIterator)[]\n) {\n var iterators = sources.map(item => item());\n\n while (iterators[0]) {\n const dones: number[] = [];\n\n for (\n let i = 0, iterator: AsyncIterator;\n (iterator = iterators[i]);\n i++\n ) {\n const { done, value } = await iterator.next();\n\n if (!done) yield value;\n else dones.push(i);\n }\n iterators = iterators.filter((_, i) => !dones.includes(i));\n }\n}\n\nexport class ByteSize extends Scalar {\n units = ['', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'].map((name, i) => ({\n base: 1024 ** i,\n name: name + 'B'\n }));\n}\n","export function sum(...data: number[]) {\n return data.reduce((sum, item) => sum + item, 0);\n}\n\nexport function averageOf(...data: number[]) {\n return sum(...data) / data.length;\n}\n\nexport function varianceOf(data: number[], sample = false) {\n const average = averageOf(...data);\n const summary = sum(...data.map(item => (item - average) ** 2));\n\n return summary / (data.length - (sample ? 1 : 0));\n}\n\nexport function standardDeviationOf(data: number[], sample = false) {\n return Math.sqrt(varianceOf(data, sample));\n}\n\nexport function hypotenuseOf(...data: number[]) {\n return Math.sqrt(sum(...data.map(item => item ** 2)));\n}\n\nexport function carryFloat(raw: number, length: number) {\n const text = raw.toFixed(length + 2);\n const offset = text.indexOf('.') + length + 1;\n\n const cut = (text: string) => text.slice(0, offset - (length ? 0 : 1));\n\n if (!+text.slice(offset)) return cut(text);\n\n const result = cut((+cut(text) + 10 ** -length).toFixed(length));\n\n return result.includes('.') ? result.padEnd(offset, '0') : result;\n}\n\nexport function fixFloat(raw: number, length = 2) {\n const text = raw.toFixed(length + 2);\n const floatOffset = text.indexOf('.');\n\n if (floatOffset < 0) return length ? `${text}.${'0'.repeat(length)}` : text;\n\n const offset = floatOffset + length + 1;\n\n const before = +text[offset - 1],\n anchor = +text[offset],\n after = +text[offset + 1];\n\n const carry = anchor > 5 || (anchor === 5 && (!!after || !!(before % 2)));\n\n if (carry) return carryFloat(raw, length);\n\n const result = text.slice(0, offset - (length ? 0 : 1));\n\n return result.includes('.') ? result.padEnd(offset, '0') : result;\n}\n\nexport abstract class Scalar {\n abstract units: { base: number; name: string }[];\n\n constructor(public value: number) {}\n\n valueOf() {\n return this.value;\n }\n\n toShortString(fractionDigits = 2) {\n const { units, value } = this;\n const { base, name } =\n [...units].reverse().find(({ base }) => Math.abs(value) >= base) ||\n units[0];\n\n return `${(value / base).toFixed(fractionDigits)} ${name}`;\n }\n\n static distanceOf(a: number, b: number) {\n return Reflect.construct(this, [a - b]) as T;\n }\n}\n","import { Scalar } from './math';\n\nexport const Second = 1000;\nexport const Minute = Second * 60;\nexport const Quarter = Minute * 15;\nexport const Hour = Quarter * 4;\nexport const Day = Hour * 24;\nexport const Week = Day * 7;\nexport const Year = Day * 365;\nexport const Month = Year / 12;\nexport const Season = Month * 3;\n\nexport class Timestamp extends Scalar {\n units = [\n { base: Second, name: 's' },\n { base: Minute, name: 'm' },\n { base: Hour, name: 'H' },\n { base: Day, name: 'D' },\n { base: Week, name: 'W' },\n { base: Month, name: 'M' },\n { base: Year, name: 'Y' }\n ];\n\n toShortString(fractionDigits = 0) {\n return super.toShortString(fractionDigits);\n }\n}\n\nexport type TimeData = number | string | Date;\n\n/**\n * @deprecated since v4.4, use {@link Timestamp.distanceOf} instead.\n */\nexport function diffTime(end: TimeData, start: TimeData = new Date()) {\n const timeDistance = Timestamp.distanceOf(\n +new Date(end),\n +new Date(start)\n ) as Timestamp;\n\n const [value, unit] = timeDistance.toShortString().split(/\\s+/);\n\n return { distance: +value, unit };\n}\n\nfunction fitUnit(value: string) {\n value = +value + '';\n\n return (template: string) =>\n (value.length < template.length\n ? value.padStart(template.length, '0')\n : value\n ).slice(-Math.max(template.length, 2));\n}\n\nexport function formatDate(\n time: TimeData = new Date(),\n template = 'YYYY-MM-DD HH:mm:ss'\n) {\n time = time instanceof Date ? time : new Date(time);\n time = new Date(+time - time.getTimezoneOffset() * Minute);\n\n const [year, month, day, hour, minute, second, millisecond] = time\n .toJSON()\n .split(/\\D/);\n\n return template\n .replace(/ms/g, millisecond)\n .replace(/Y+/g, fitUnit(year))\n .replace(/M+/g, fitUnit(month))\n .replace(/D+/g, fitUnit(day))\n .replace(/H+/g, fitUnit(hour))\n .replace(/m+/g, fitUnit(minute))\n .replace(/s+/g, fitUnit(second));\n}\n\nexport function changeMonth(date: TimeData, delta: number) {\n date = new Date(date);\n\n const month = date.getMonth() + delta;\n\n date.setFullYear(date.getFullYear() + Math.floor(month / 12));\n\n delta = month % 12;\n\n date.setMonth(delta < 0 ? 12 + delta : delta);\n\n return date;\n}\n","import { isUnsafeNumeric } from './data';\n\nexport function parseJSON(raw: string) {\n function parseItem(value: any) {\n if (typeof value === 'string' && /^\\d+(-\\d{1,2}){1,2}/.test(value)) {\n const date = new Date(value);\n\n if (!Number.isNaN(+date)) return date;\n }\n return value;\n }\n\n const value = parseItem(raw);\n\n if (typeof value !== 'string' || isUnsafeNumeric(value)) return value;\n\n try {\n return JSON.parse(raw, (key, value) => parseItem(value));\n } catch {\n return raw;\n }\n}\n\nexport function toJSValue(raw: string) {\n const parsed = parseJSON(raw);\n\n if (typeof parsed !== 'string') return parsed;\n\n const number = +parsed;\n\n return Number.isNaN(number) || number + '' !== parsed ? parsed : number;\n}\n\nfunction readQuoteValue(raw: string) {\n const quote = raw[0];\n const index = raw.indexOf(quote, 1);\n\n if (index < 0) throw SyntaxError(`A ${quote} is missing`);\n\n return raw.slice(1, index);\n}\n\nexport function parseTextTable(\n raw: string,\n header?: boolean,\n separator = ','\n) {\n const data = raw\n .trim()\n .split(/[\\r\\n]+/)\n .map(row => {\n const list = [];\n\n do {\n let value: string;\n\n if (row[0] === '\"' || row[0] === \"'\") {\n value = readQuoteValue(row);\n\n row = row.slice(value.length + 3);\n } else {\n const index = row.indexOf(separator);\n\n if (index > -1) {\n value = row.slice(0, index);\n row = row.slice(index + 1);\n } else {\n value = row;\n row = '';\n }\n }\n list.push(toJSValue(value.trim()));\n } while (row);\n\n return list;\n });\n\n return !header\n ? data\n : data.slice(1).map(\n row =>\n row.reduce((object, item, index) => {\n object[data[0][index]] = item;\n\n return object;\n }, {}) as T\n );\n}\n","import { isEmpty, likeArray, makeArray } from './data';\nimport { parseJSON } from './parser';\n\nexport function isXDomain(URI: string) {\n return new URL(URI, document.baseURI).origin !== location.origin;\n}\n\nexport type JSONValue = number | boolean | string | null;\nexport interface URLData {\n [key: string]: JSONValue | JSONValue[] | URLData | URLData[] | E;\n}\n\nexport function parseURLData(\n raw = globalThis.location?.search,\n toBuiltIn = true\n): URLData {\n const list = raw.split(/\\?|#/);\n const data = new URLSearchParams(list[1] || list[0]);\n\n return Object.fromEntries(\n [...data.keys()].map(key => {\n const list = toBuiltIn\n ? data.getAll(key).map(parseJSON)\n : data.getAll(key);\n\n return [key, list.length < 2 ? list[0] : list];\n })\n );\n}\n\nconst stringify = (value: any) =>\n typeof value === 'string'\n ? value\n : likeArray(value)\n ? makeArray(value) + ''\n : JSON.stringify(value);\n\nexport function buildURLData(map: string[][] | Record) {\n if (!(map instanceof Array)) map = Object.entries(map);\n\n const list = (map as any[][])\n .map(([key, value]) => !isEmpty(value) && [key, stringify(value)])\n .filter(Boolean);\n\n return new URLSearchParams(list);\n}\n\nexport async function blobOf(URI: string | URL) {\n return (await fetch(URI + '')).blob();\n}\n\nconst DataURI = /^data:(.+?\\/(.+?))?(;base64)?,([\\s\\S]+)/;\n/**\n * Blob logic forked from axes's\n *\n * @see http://www.cnblogs.com/axes/p/4603984.html\n */\nexport function blobFrom(URI: string) {\n var [_, type, __, base64, data] = DataURI.exec(URI) || [];\n\n data = base64 ? atob(data) : data;\n\n const aBuffer = new ArrayBuffer(data.length);\n const uBuffer = new Uint8Array(aBuffer);\n\n for (let i = 0; data[i]; i++) uBuffer[i] = data.charCodeAt(i);\n\n return new Blob([aBuffer], { type });\n}\n","const CRC_32_Table = Array.from(new Array(256), (_, cell) => {\n for (var j = 0; j < 8; j++)\n if (cell & 1) cell = ((cell >> 1) & 0x7fffffff) ^ 0xedb88320;\n else cell = (cell >> 1) & 0x7fffffff;\n\n return cell;\n});\n\n/**\n * CRC-32 algorithm forked from Bakasen's\n *\n * @see http://blog.csdn.net/bakasen/article/details/6043797\n */\nexport function makeCRC32(raw: string) {\n var value = 0xffffffff;\n\n for (const char of raw)\n value =\n ((value >> 8) & 0x00ffffff) ^\n CRC_32_Table[(value & 0xff) ^ char.charCodeAt(0)];\n\n return '0x' + ((value ^ 0xffffffff) >>> 0).toString(16);\n}\n\nif (typeof self === 'object') {\n if ('msCrypto' in globalThis) {\n // @ts-ignore\n const { subtle } = (globalThis.crypto = globalThis.msCrypto as Crypto);\n\n for (const key in subtle) {\n const origin = subtle[key];\n\n if (origin instanceof Function)\n subtle[key] = function () {\n const observer = origin.apply(this, arguments);\n\n return new Promise((resolve, reject) => {\n observer.oncomplete = ({\n target\n }: Parameters[0]) =>\n resolve(target.result);\n\n observer.onabort = observer.onerror = reject;\n });\n };\n }\n }\n const { crypto } = globalThis;\n\n if (!crypto?.subtle && crypto?.['webkitSubtle'])\n // @ts-ignore\n crypto.subtle = crypto['webkitSubtle'];\n}\n\nexport type SHAAlgorithm = 'SHA-1' | 'SHA-256' | 'SHA-384' | 'SHA-512';\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest#Converting_a_digest_to_a_hex_string\n */\nexport async function makeSHA(raw: string, algorithm: SHAAlgorithm = 'SHA-1') {\n const buffer = await crypto.subtle.digest(\n algorithm,\n new TextEncoder().encode(raw)\n );\n return Array.from(new Uint8Array(buffer), byte =>\n byte.toString(16).padStart(2, '0')\n ).join('');\n}\n","import type { IAom } from 'element-internals-polyfill';\n\nimport type { DataKeys, PickData, Constructor } from './data';\n\nexport type SelfCloseTags =\n | 'area'\n | 'base'\n | 'br'\n | 'col'\n | 'embed'\n | 'hr'\n | 'img'\n | 'input'\n | 'link'\n | 'meta'\n | 'param'\n | 'source'\n | 'track'\n | 'wbr';\n\nexport type ShadowableTags =\n | 'article'\n | 'aside'\n | 'blockquote'\n | 'body'\n | 'div'\n | 'footer'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'header'\n | 'main'\n | 'nav'\n | 'p'\n | 'section'\n | 'span'\n | `${string}-${string}`;\n\n/* -------------------- Event Handlers -------------------- */\n\nexport type EventTypes = {\n [K in keyof typeof globalThis]: K extends `${infer N}Event`\n ? N extends ''\n ? never\n : N\n : never;\n}[keyof typeof globalThis];\n\nexport type UniqueEventNames = {\n [K in keyof HTMLElementEventMap]: K extends `${Lowercase}${string}`\n ? never\n : K extends `${string}${Lowercase}`\n ? never\n : K;\n}[keyof HTMLElementEventMap];\n\nexport type ComplexUniqueEventNames = {\n [K in UniqueEventNames]: K extends `${infer L}${UniqueEventNames}`\n ? L extends ''\n ? never\n : K\n : never;\n}[UniqueEventNames];\n\nexport type SimpleEventNames = Exclude<\n UniqueEventNames,\n ComplexUniqueEventNames\n>;\n\nexport type EventHandlerNames = {\n [K in keyof T]: K extends `on${infer N}`\n ? T[K] extends (event: Event) => any\n ? N\n : never\n : never;\n}[keyof T];\n\nexport type CamelEventName = T extends SimpleEventNames\n ? Capitalize\n : T extends `${infer L}${SimpleEventNames}`\n ? T extends `${L}${infer R}`\n ? `${Capitalize}${Capitalize}`\n : T\n : T extends `${Lowercase}${infer R}`\n ? T extends `${infer L}${R}`\n ? `${Capitalize}${Capitalize}`\n : T\n : T extends `${infer L}${Lowercase}`\n ? T extends `${L}${infer R}`\n ? `${Capitalize}${Capitalize}`\n : T\n : T;\n\nexport type EventHandlers<\n T extends Element,\n M extends HTMLElementEventMap = HTMLElementEventMap\n> = {\n [K in EventHandlerNames as `on${CamelEventName}`]: (\n event: M[K]\n ) => any;\n};\n\nexport type ContainerEvents = 'focusin' | 'focusout';\n\nexport type ContainerEventHandlers =\n T extends SelfCloseTags\n ? {}\n : {\n [K in ContainerEvents as `on${CamelEventName}`]: (\n event: HTMLElementEventMap[K]\n ) => any;\n };\n\n/* -------------------- DOM Props -------------------- */\n\nexport type XMLOwnKeys<\n T extends HTMLElement | SVGElement | MathMLElement = HTMLElement\n> = Exclude;\n/**\n * @deprecated since v4.4.2, use {@link XMLOwnKeys} instead\n */\nexport type HTMLOwnKeys = XMLOwnKeys;\n/**\n * @deprecated since v4.4.2, use {@link XMLOwnKeys} instead\n */\nexport type SVGOwnKeys = XMLOwnKeys;\n\nexport type CSSStyles = Partial<\n Omit, 'length' | 'parentRule'> &\n Record\n>;\nexport type CSSRule = Record;\nexport type CSSObject = CSSRule | Record;\n\nexport type DOMProps_Read2Write> = {\n [K in keyof T]: T[K] extends HTMLElement\n ? string\n : T[K] extends DOMTokenList\n ? string\n : T[K] extends Element\n ? string\n : T[K] extends CSSStyleDeclaration\n ? CSSStyles\n : T[K];\n};\nexport type HTMLProps = Partial<\n IAom &\n EventHandlers &\n DOMProps_Read2Write, XMLOwnKeys>>>\n>;\n\nexport type SVGProps_Read2Write> = {\n [K in keyof T]: T[K] extends\n | SVGAnimatedString\n | SVGAnimatedBoolean\n | SVGAnimatedEnumeration\n | SVGAnimatedNumber\n | SVGAnimatedNumberList\n | SVGAnimatedInteger\n | SVGAnimatedLength\n | SVGAnimatedLengthList\n | SVGAnimatedPoints\n | SVGAnimatedAngle\n | SVGAnimatedRect\n | SVGAnimatedPreserveAspectRatio\n | SVGAnimatedTransformList\n ? string\n : T[K];\n};\nexport type SVGProps = Partial<\n EventHandlers &\n SVGProps_Read2Write<\n DOMProps_Read2Write, XMLOwnKeys>>>\n >\n>;\n\nexport type MathMLProps = Partial<\n EventHandlers &\n DOMProps_Read2Write, XMLOwnKeys>>>\n>;\n\nexport interface HTMLHyperLinkProps\n extends HTMLProps {\n href?: string;\n target?: '_self' | '_parent' | '_top' | '_blank';\n}\n\nexport type HTMLTableCellProps = HTMLProps;\n\nexport type BaseFieldProps = Partial<\n Pick<\n HTMLInputElement,\n 'name' | 'defaultValue' | 'value' | 'required' | 'disabled'\n >\n>;\nexport interface BaseInputProps\n extends Partial> {\n list?: string;\n}\nexport type TextFieldProps = BaseInputProps &\n Partial<\n Pick<\n HTMLInputElement,\n | 'size'\n | 'minLength'\n | 'maxLength'\n | 'pattern'\n | 'autocomplete'\n | 'spellcheck'\n >\n >;\nexport type NumberFieldProps = BaseInputProps &\n Partial>;\n\nexport type HTMLFieldInternals = Pick<\n HTMLInputElement,\n | 'form'\n | 'validity'\n | 'validationMessage'\n | 'willValidate'\n | 'checkValidity'\n | 'reportValidity'\n>;\n\nexport type HTMLFieldProps =\n HTMLProps & BaseFieldProps;\n\nexport interface HTMLButtonProps extends HTMLFieldProps {}\n\nexport interface HTMLInputProps\n extends HTMLFieldProps,\n Omit {\n type?:\n | 'checkbox'\n | 'color'\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'file'\n | 'hidden'\n | 'month'\n | 'number'\n | 'password'\n | 'radio'\n | 'range'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url'\n | 'week'\n | HTMLButtonProps['type'];\n}\n\nexport type HTMLField = HTMLInputElement &\n HTMLTextAreaElement &\n HTMLSelectElement &\n HTMLFieldSetElement;\n\n/**\n * @see https://developers.google.com/web/fundamentals/web-components/customelements#reactions\n */\nexport interface CustomElement extends HTMLElement {\n /**\n * Called every time the element is inserted into the DOM\n */\n connectedCallback?(): void;\n /**\n * Called every time the element is removed from the DOM.\n */\n disconnectedCallback?(): void;\n /**\n * Called when an observed attribute has been added, removed, updated, or replaced.\n * Also called for initial values when an element is created by the parser, or upgraded.\n *\n * Note: only attributes listed in static `observedAttributes` property will receive this callback.\n */\n attributeChangedCallback?(\n name: string,\n oldValue: string,\n newValue: string\n ): void;\n /**\n * The custom element has been moved into a new document\n * (e.g. someone called `document.adoptNode(el)`).\n */\n adoptedCallback?(): void;\n}\n\n/**\n * @see https://developers.google.com/web/fundamentals/web-components/customelements#attrchanges\n */\nexport interface CustomElementClass {\n new (...data: any[]): T;\n\n observedAttributes?: string[];\n}\n\n/**\n * @see https://web.dev/more-capable-form-controls/#lifecycle-callbacks\n */\nexport interface CustomFormElement\n extends CustomElement,\n BaseFieldProps,\n HTMLFieldInternals {\n /**\n * Called when the browser associates the element with a form element,\n * or disassociates the element from a form element.\n */\n formAssociatedCallback?(form: HTMLFormElement): void;\n /**\n * Called after the disabled state of the element changes,\n * either because the disabled attribute of this element was added or removed;\n * or because the disabled state changed on a `
` that's an ancestor of this element.\n *\n * @param disabled This parameter represents the new disabled state of the element.\n */\n formDisabledCallback?(disabled: boolean): void;\n /**\n * Called after the form is reset.\n * The element should reset itself to some kind of default state.\n */\n formResetCallback?(): void;\n /**\n * Called in one of two circumstances:\n * - When the browser restores the state of the element (for example, after a navigation, or when the browser restarts). The `mode` argument is `\"restore\"` in this case.\n * - When the browser's input-assist features such as form autofilling sets a value. The `mode` argument is `\"autocomplete\"` in this case.\n *\n * @param state The type of this argument depends on how the `this.internals.setFormValue()` method was called.\n * @param mode\n */\n formStateRestoreCallback?(\n state: string | File | FormData,\n mode: 'restore' | 'autocomplete'\n ): void;\n}\n\n/**\n * @see https://web.dev/more-capable-form-controls/#defining-a-form-associated-custom-element\n */\nexport interface CustomFormElementClass\n extends CustomElementClass {\n formAssociated?: boolean;\n}\n","import { URLData } from './URL';\nimport { HTMLProps, HTMLField, CSSStyles, CSSObject } from './DOM-type';\nimport { Constructor, isEmpty, assertInheritance, toHyphenCase } from './data';\nimport { toJSValue } from './parser';\n\nexport const XMLNamespace = {\n html: 'http://www.w3.org/1999/xhtml',\n svg: 'http://www.w3.org/2000/svg',\n math: 'http://www.w3.org/1998/Math/MathML'\n};\n\nconst templateMap: Record = {};\n\nexport function templateOf(tagName: string) {\n if (templateMap[tagName]) return templateMap[tagName];\n\n const spawn = document.createElement('template');\n\n spawn.innerHTML = `<${tagName} />`;\n\n return (templateMap[tagName] = spawn.content.firstElementChild!);\n}\n\nexport function elementTypeOf(tagName: string) {\n if (tagName.includes('-')) return 'html';\n\n const [prefix, localName] = tagName.split(':');\n\n if (localName) return prefix === 'html' ? 'html' : 'xml';\n\n const node = templateOf(tagName);\n\n return node instanceof HTMLElement && !(node instanceof HTMLUnknownElement)\n ? 'html'\n : 'xml';\n}\n\nexport function isHTMLElementClass>(\n Class: any\n): Class is T {\n return assertInheritance(Class, HTMLElement);\n}\n\nconst nameMap = new WeakMap, string>();\n\nexport function tagNameOf(Class: CustomElementConstructor) {\n const name = nameMap.get(Class);\n\n if (name) return name;\n\n var { tagName } = new Class();\n\n nameMap.set(Class, (tagName = tagName.toLowerCase()));\n\n return tagName;\n}\n\nexport function isDOMReadOnly(\n tagName: T,\n propertyName: keyof HTMLProps\n) {\n /**\n * fetch from https://html.spec.whatwg.org/\n */\n const ReadOnly_Properties: [Constructor, string[]][] = [\n [HTMLLinkElement, ['sizes']],\n [HTMLIFrameElement, ['sandbox']],\n [HTMLObjectElement, ['form']],\n [HTMLInputElement, ['form', 'list']],\n [HTMLButtonElement, ['form']],\n [HTMLSelectElement, ['form']],\n [HTMLTextAreaElement, ['form']],\n [HTMLOutputElement, ['form']],\n [HTMLFieldSetElement, ['form']]\n ];\n const template = templateOf(tagName);\n\n for (const [Class, keys] of ReadOnly_Properties)\n if (template instanceof Class && keys.includes(propertyName as string))\n return true;\n return false;\n}\n\nexport function parseDOM(HTML: string) {\n const spawn = document.createElement('template');\n\n spawn.innerHTML = HTML;\n\n return [...spawn.content.childNodes].map(node => {\n node.remove();\n return node;\n });\n}\n\nexport function stringifyDOM(node: Node) {\n return new XMLSerializer()\n .serializeToString(node)\n .replace(/ xmlns=\"http:\\/\\/www.w3.org\\/1999\\/xhtml\"/g, '');\n}\n\nexport function* walkDOM(\n root: Node,\n type?: Node['nodeType']\n): Generator {\n const children = [...root.childNodes];\n\n if (isEmpty(type) || type === root.nodeType) yield root as T;\n\n for (const node of children) yield* walkDOM(node, type);\n}\n\nexport function getVisibleText(root: Element) {\n var text = '';\n\n for (const { nodeType, parentElement, nodeValue } of walkDOM(root))\n if (\n nodeType === Node.TEXT_NODE &&\n parentElement.getAttribute('aria-hidden') !== 'true'\n ) {\n const { width, height } = parentElement.getBoundingClientRect();\n\n if (width && height) text += nodeValue.trim().replace(/\\s+/g, ' ');\n }\n\n return text;\n}\n\n/**\n * Split a DOM tree into Pages like PDF files\n *\n * @param pageHeight the default value is A4 paper's height\n * @param pageWidth the default value is A4 paper's width\n */\nexport function splitPages(\n { offsetWidth, children }: HTMLElement,\n pageHeight = 841.89,\n pageWidth = 595.28\n) {\n const scrollHeight = (pageHeight / pageWidth) * offsetWidth;\n var offset = 0;\n\n return [...children].reduce((pages, node) => {\n var { offsetTop: top, offsetHeight: height } = node as HTMLElement;\n top += offset;\n var bottom = top + height;\n\n const bottomOffset = bottom / scrollHeight;\n const topIndex = ~~(top / scrollHeight),\n bottomIndex = ~~bottomOffset;\n\n if (topIndex !== bottomIndex) offset += height - bottomOffset;\n\n (pages[bottomIndex] ||= []).push(node);\n\n return pages;\n }, [] as Element[][]);\n}\n\nexport interface CSSOptions\n extends Pick<\n HTMLLinkElement,\n 'title' | 'media' | 'crossOrigin' | 'integrity'\n > {\n alternate?: boolean;\n}\n\nexport function importCSS(\n URI: string,\n { alternate, ...options }: CSSOptions = {} as CSSOptions\n) {\n const style = [...document.styleSheets].find(({ href }) => href === URI);\n\n if (style) return Promise.resolve(style);\n\n const link = document.createElement('link');\n\n return new Promise((resolve, reject) => {\n link.onload = () => resolve(link.sheet);\n link.onerror = (_1, _2, _3, _4, error) => reject(error);\n\n Object.assign(link, options);\n\n link.rel = (alternate ? 'alternate ' : '') + 'stylesheet';\n link.href = URI;\n\n document.head.append(link);\n });\n}\n\nexport function stringifyCSS(\n data: CSSStyles | CSSObject,\n depth = 0,\n indent = ' '\n): string {\n const padding = indent.repeat(depth);\n\n return Object.entries(data)\n .map(([key, value]) =>\n typeof value !== 'object'\n ? `${padding}${toHyphenCase(key)}: ${value};`\n : `${padding}${key} {\n${stringifyCSS(value as CSSObject, depth + 1, indent)}\n${padding}}`\n )\n .join('\\n');\n}\n\nexport function insertToCursor(...nodes: Node[]) {\n const fragment = document.createDocumentFragment();\n\n fragment.append(...nodes);\n\n for (const node of walkDOM(fragment))\n if (\n ![1, 3, 11].includes(node.nodeType) ||\n ['meta', 'title', 'link', 'script'].includes(\n node.nodeName.toLowerCase()\n )\n )\n (node as ChildNode).replaceWith(...node.childNodes);\n\n const selection = globalThis.getSelection();\n\n if (!selection) return;\n\n const range = selection.getRangeAt(0);\n\n range.deleteContents();\n range.insertNode(fragment);\n}\n\nexport function scrollTo(\n selector: string,\n root?: Element,\n align?: ScrollLogicalPosition,\n justify?: ScrollLogicalPosition\n) {\n const [_, ID] = /^#(.+)/.exec(selector) || [];\n\n if (ID === 'top') window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });\n else\n (root || document)\n .querySelector(ID ? `[id=\"${ID}\"]` : selector)\n ?.scrollIntoView({\n behavior: 'smooth',\n block: align,\n inline: justify\n });\n}\n\nexport interface ScrollEvent {\n target: HTMLHeadingElement;\n links: (HTMLAnchorElement | HTMLAreaElement)[];\n}\n\nexport function watchScroll(\n box: HTMLElement,\n handler: (event: ScrollEvent) => any,\n depth = 6\n) {\n return Array.from(\n box.querySelectorAll(\n Array.from(new Array(depth), (_, index) => `h${++index}`) + ''\n ),\n header => {\n new IntersectionObserver(([item]) => {\n if (!item.isIntersecting) return;\n\n const target = item.target as HTMLHeadingElement;\n\n handler({\n target,\n links: [\n ...target.ownerDocument.querySelectorAll<\n HTMLAnchorElement | HTMLAreaElement\n >(`[href=\"#${target.id}\"]`)\n ]\n });\n }).observe(header);\n\n if (!header.id.trim())\n header.id = header.textContent.trim().replace(/\\W+/g, '-');\n\n return {\n level: +header.tagName[1],\n id: header.id,\n text: header.textContent.trim()\n };\n }\n );\n}\n\nexport function watchVisible(\n root: Element,\n handler: (visible: boolean) => any\n) {\n var last = document.visibilityState === 'visible' ? 1 : 0;\n\n function change(state: number) {\n if (state === 3 || last === 3) handler(state === 3);\n\n last = state;\n }\n\n new IntersectionObserver(([{ isIntersecting }]) =>\n change(isIntersecting ? last | 2 : last & 1)\n ).observe(root);\n\n document.addEventListener('visibilitychange', () =>\n change(document.visibilityState === 'visible' ? last | 1 : last & 2)\n );\n}\n\nexport function formToJSON>(\n form: HTMLFormElement | HTMLFieldSetElement\n) {\n const data = {} as T;\n\n for (const field of form.elements) {\n let { name, value, checked, defaultValue, selectedOptions, files } =\n field as HTMLField;\n const type = (field as HTMLField).type as string;\n\n if (!name || value === '') continue;\n\n const box = type !== 'fieldset' && field.closest('fieldset');\n\n if (box && box !== form) continue;\n\n let parsedValue: any = value;\n\n switch (type) {\n case 'radio':\n case 'checkbox':\n if (checked)\n parsedValue = defaultValue ? toJSValue(defaultValue) : true;\n else continue;\n break;\n case 'select-multiple':\n parsedValue = Array.from(selectedOptions, ({ value }) =>\n toJSValue(value)\n );\n break;\n case 'fieldset':\n parsedValue = formToJSON(field as HTMLFieldSetElement);\n break;\n case 'file':\n parsedValue = files && Array.from(files);\n break;\n case 'date':\n case 'datetime-local':\n case 'month':\n case 'hidden':\n case 'number':\n case 'range':\n case 'select-one':\n parsedValue = toJSValue(value);\n }\n\n if (name in data) data[name] = [].concat(data[name], parsedValue);\n else\n data[name] =\n !(parsedValue instanceof Array) || !isEmpty(parsedValue[1])\n ? parsedValue\n : parsedValue[0];\n }\n\n return data;\n}\n","export function sleep(seconds = 1) {\n return new Promise(resolve => setTimeout(resolve, seconds * 1000));\n}\n\nexport function asyncLoop(executor: (...data: any[]) => any, seconds = 1) {\n var stop = false;\n\n (async () => {\n while (!stop) {\n const result = executor();\n\n if (result instanceof Promise) await result;\n\n await sleep(seconds);\n }\n })();\n\n return () => (stop = true);\n}\n","import { uniqueID } from './data';\n\nexport type DelegateEventHandler = (\n event: Event,\n currentTarget: Element,\n detail?: T\n) => any;\n\nexport function delegate(\n selector: string,\n handler: DelegateEventHandler\n) {\n return function (this: Node, event: Event) {\n var node: EventTarget,\n path = event.composedPath();\n\n while ((node = path.shift()) && node !== event.currentTarget)\n if (node instanceof HTMLElement && node.matches(selector))\n return handler.call(\n this,\n event,\n node,\n (event as CustomEvent).detail\n );\n };\n}\n\nexport const documentReady =\n typeof window !== 'undefined'\n ? new Promise(resolve => {\n function done() {\n document?.removeEventListener('DOMContentLoaded', done);\n window.removeEventListener('load', done);\n resolve();\n }\n document?.addEventListener('DOMContentLoaded', done);\n window.addEventListener('load', done);\n\n setTimeout(function check() {\n document?.readyState === 'complete'\n ? resolve()\n : setTimeout(check);\n });\n })\n : Promise.resolve();\n\nexport function promisify(scope: string, element: Element) {\n return new Promise((resolve, reject) => {\n function end(event: T) {\n resolve(event), clean();\n }\n function cancel(event: T) {\n reject(event), clean();\n }\n\n function clean() {\n element.removeEventListener(scope + 'end', end);\n element.removeEventListener(scope + 'cancel', cancel);\n }\n\n element.addEventListener(scope + 'end', end);\n element.addEventListener(scope + 'cancel', cancel);\n });\n}\n\nexport type MessageGlobal = Window | Worker;\n\nexport function createMessageServer(\n handlers: Record any | Promise>\n) {\n async function server({\n data: { type, id, ...data },\n source,\n origin\n }: MessageEvent) {\n var result = handlers[type]?.(data);\n\n if (result instanceof Promise) result = await result;\n // @ts-ignore\n (source as MessageGlobal).postMessage({ ...result, id }, origin);\n }\n\n globalThis.addEventListener('message', server);\n\n return () => globalThis.removeEventListener('message', server);\n}\n\nexport function createMessageClient(target: Window | Worker, origin = '*') {\n return (type: string, data?: any) =>\n new Promise(resolve => {\n const UID = uniqueID();\n\n function handler({ data: { id, ...data } }: MessageEvent) {\n if (id !== UID) return;\n\n resolve(data);\n\n globalThis.removeEventListener('message', handler);\n }\n\n globalThis.addEventListener('message', handler);\n // @ts-ignore\n target.postMessage({ id: UID, type, ...data }, origin);\n });\n}\n\nexport function serviceWorkerUpdate(registration: ServiceWorkerRegistration) {\n return new Promise(resolve => {\n if (registration.waiting) return resolve(registration.waiting);\n\n registration.onupdatefound = () =>\n registration.installing?.addEventListener(\n 'statechange',\n function () {\n if (\n this.state === 'installed' &&\n navigator.serviceWorker.controller\n )\n resolve(this);\n }\n );\n });\n}\n","import { promisify } from './event';\n\nexport interface CartesianCoordinate {\n x: number;\n y: number;\n z?: number;\n}\n\nexport class PageVector {\n from: CartesianCoordinate;\n to: CartesianCoordinate;\n\n constructor(from: CartesianCoordinate, to: CartesianCoordinate) {\n this.from = from;\n this.to = to;\n }\n\n get length() {\n const { from, to } = this;\n\n return Math.sqrt(\n Math.pow(to.x - from.x, 2) +\n Math.pow(to.y - from.y, 2) +\n (to.z != null ? Math.pow(to.z - from.z, 2) : 0)\n );\n }\n\n get direction() {\n const { from, to } = this;\n const XD = to.x - from.x,\n YD = to.y - from.y,\n ZD = to.z - from.z;\n const XL = Math.abs(XD),\n YL = Math.abs(YD),\n ZL = Math.abs(ZD);\n\n switch (isNaN(ZL) ? Math.max(XL, YL) : Math.max(XL, YL, ZL)) {\n case XL:\n return XD > 0 ? 'right' : 'left';\n case YL:\n return YD > 0 ? 'forward' : 'backward';\n case ZL:\n return ZD > 0 ? 'up' : 'down';\n }\n }\n}\n\nexport function getSwipeVector(\n from: CartesianCoordinate,\n to: CartesianCoordinate,\n threshold = parseInt(getComputedStyle(document.body).fontSize) * 6\n) {\n const vector = new PageVector(from, to);\n\n if (vector.length >= threshold && !getSelection()?.toString().trim())\n return vector;\n}\n\nexport interface AnimationEvents {\n transition: TransitionEvent;\n animation: AnimationEvent;\n}\n\nexport type AnimationType = keyof AnimationEvents;\n\nexport function durationOf(type: AnimationType, element: HTMLElement) {\n const { transitionDuration, animationDuration } = getComputedStyle(element);\n\n const duration =\n type === 'animation' ? animationDuration : transitionDuration;\n\n return parseFloat(duration) * (duration.slice(-2) === 'ms' ? 1 : 1000);\n}\n\nexport function watchMotion(\n type: T,\n element: HTMLElement\n) {\n return Promise.race([\n promisify(type, element).catch(event =>\n Promise.resolve(event)\n ),\n new Promise(resolve =>\n setTimeout(resolve, durationOf(type, element))\n )\n ]);\n}\n\nfunction fadeIn(\n type: T,\n element: HTMLElement,\n className: string,\n display: string\n) {\n element.style.display = display;\n\n const end = watchMotion(type, element);\n\n return new Promise(resolve =>\n requestAnimationFrame(() => {\n element.classList.add(className);\n\n end.then(resolve);\n })\n );\n}\n\nasync function fadeOut(\n type: T,\n element: HTMLElement,\n className: string,\n remove?: boolean\n) {\n const end = watchMotion(type, element);\n\n element.classList.remove(className);\n\n await end;\n\n if (remove) element.remove();\n else element.style.display = 'none';\n}\n\nexport function transitIn(\n element: HTMLElement,\n className: string,\n display = 'block'\n) {\n return fadeIn('transition', element, className, display);\n}\n\nexport function animateIn(\n element: HTMLElement,\n className: string,\n display = 'block'\n) {\n return fadeIn('animation', element, className, display);\n}\n\nexport function transitOut(\n element: HTMLElement,\n className: string,\n remove?: boolean\n) {\n return fadeOut('transition', element, className, remove);\n}\n\nexport function animateOut(\n element: HTMLElement,\n className: string,\n remove?: boolean\n) {\n return fadeOut('animation', element, className, remove);\n}\n","import { sleep } from './timer';\n\nexport async function describe(title: string, cases: () => any) {\n console.log(title);\n console.time(title);\n\n await cases();\n\n console.timeEnd(title);\n}\n\nexport async function it(\n title: string,\n userCase: (expect: (status: boolean) => void) => T | Promise,\n secondsOut = 3\n): Promise {\n title = ' ' + title;\n\n console.time(title);\n\n async function timeOut(): Promise {\n await sleep(secondsOut);\n\n throw new RangeError('Timed out');\n }\n try {\n return await Promise.race([\n userCase(status => console.assert(status, title)),\n timeOut()\n ]);\n } finally {\n console.timeEnd(title);\n }\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VNode = exports.VNodeMeta = void 0;\nvar tslib_1 = require(\"tslib\");\nvar declarative_shadow_dom_polyfill_1 = require(\"declarative-shadow-dom-polyfill\");\nvar web_utility_1 = require(\"web-utility\");\nvar VNodeMeta = /** @class */ (function () {\n function VNodeMeta() {\n this.children = [];\n }\n return VNodeMeta;\n}());\nexports.VNodeMeta = VNodeMeta;\nvar VNode = /** @class */ (function (_super) {\n tslib_1.__extends(VNode, _super);\n function VNode(_b) {\n var e_1, _c, _d, e_2, _e;\n var _this = this;\n var children = _b.children, meta = tslib_1.__rest(_b, [\"children\"]);\n _this = _super.call(this) || this;\n Object.assign(_this, meta);\n try {\n for (var _f = tslib_1.__values(children || []), _g = _f.next(); !_g.done; _g = _f.next()) {\n var vNode = _g.value;\n (_d = _this.children).push.apply(_d, tslib_1.__spreadArray([], tslib_1.__read((_a.isFragment(vNode) ? vNode.children || [] : [vNode])), false));\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_g && !_g.done && (_c = _f.return)) _c.call(_f);\n }\n finally { if (e_1) throw e_1.error; }\n }\n try {\n for (var _h = tslib_1.__values(_this.children), _j = _h.next(); !_j.done; _j = _h.next()) {\n var child = _j.value;\n child.parent = _this;\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_j && !_j.done && (_e = _h.return)) _e.call(_h);\n }\n finally { if (e_2) throw e_2.error; }\n }\n var tagName = meta.tagName, is = meta.is, props = meta.props;\n if (!tagName && !(props === null || props === void 0 ? void 0 : props.className) && !is)\n return _this;\n _this.selector = [\n tagName === null || tagName === void 0 ? void 0 : tagName.toLowerCase(),\n (props === null || props === void 0 ? void 0 : props.className) && \".\".concat(props.className.trim().replace(/\\s+/, '.')),\n is && \"[is=\\\"\".concat(is, \"\\\"]\")\n ]\n .filter(Boolean)\n .join('');\n return _this;\n }\n VNode.prototype.walkUp = function () {\n var current;\n return tslib_1.__generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n current = this;\n _b.label = 1;\n case 1:\n if (!(current = current.parent)) return [3 /*break*/, 3];\n return [4 /*yield*/, current];\n case 2:\n _b.sent();\n return [3 /*break*/, 1];\n case 3: return [2 /*return*/];\n }\n });\n };\n VNode.prototype.namespaceOf = function (tagName) {\n var e_3, _b;\n if (web_utility_1.XMLNamespace[tagName])\n return web_utility_1.XMLNamespace[tagName];\n try {\n for (var _c = tslib_1.__values(this.walkUp()), _d = _c.next(); !_d.done; _d = _c.next()) {\n var namespace = _d.value.namespace;\n if (namespace)\n return namespace;\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (_d && !_d.done && (_b = _c.return)) _b.call(_c);\n }\n finally { if (e_3) throw e_3.error; }\n }\n return web_utility_1.XMLNamespace.html;\n };\n VNode.prototype.createDOM = function (document) {\n if (document === void 0) { document = globalThis.document; }\n var _b = this, tagName = _b.tagName, is = _b.is, text = _b.text;\n return (this.node = text\n ? document.createTextNode(text)\n : !tagName\n ? document.createDocumentFragment()\n : document.createElementNS((this.namespace || (this.namespace = this.namespaceOf(tagName))), tagName, {\n is: is\n }));\n };\n VNode.prototype.toJSON = function () {\n var _b = this, key = _b.key, text = _b.text, selector = _b.selector, namespace = _b.namespace, tagName = _b.tagName, is = _b.is, props = _b.props, style = _b.style, children = _b.children;\n return JSON.parse(JSON.stringify({ key: key, text: text, selector: selector, namespace: namespace, tagName: tagName, is: is, props: props, style: style, children: children }));\n };\n VNode.prototype.generateElementXML = function () {\n var _b, tagName, props, style, children, node, body, shadowRoots, innerHTML, restProps, _c, _d, _e, _i, key, _f, _g, _h, _j, key, children_1, children_1_1, child, e_4_1;\n var e_4, _k;\n return tslib_1.__generator(this, function (_l) {\n switch (_l.label) {\n case 0:\n _b = this, tagName = _b.tagName, props = _b.props, style = _b.style, children = _b.children, node = _b.node;\n if (!(tagName.includes('-') && (0, web_utility_1.elementTypeOf)(tagName) === 'html')) return [3 /*break*/, 2];\n body = ((node === null || node === void 0 ? void 0 : node.ownerDocument) || document).implementation.createHTMLDocument().body;\n body.innerHTML = \"<\".concat(tagName, \">\");\n shadowRoots = tslib_1.__spreadArray([], tslib_1.__read((0, declarative_shadow_dom_polyfill_1.findShadowRoots)(body)), false);\n return [4 /*yield*/, body.getHTML({ serializableShadowRoots: true, shadowRoots: shadowRoots })];\n case 1:\n _l.sent();\n return [3 /*break*/, 29];\n case 2:\n innerHTML = props.innerHTML, restProps = tslib_1.__rest(props, [\"innerHTML\"]);\n return [4 /*yield*/, \"<\".concat(tagName)];\n case 3:\n _l.sent();\n _c = restProps;\n _d = [];\n for (_e in _c)\n _d.push(_e);\n _i = 0;\n _l.label = 4;\n case 4:\n if (!(_i < _d.length)) return [3 /*break*/, 7];\n _e = _d[_i];\n if (!(_e in _c)) return [3 /*break*/, 6];\n key = _e;\n return [4 /*yield*/, \" \".concat(_a.propsMap[key] || key, \"=\\\"\").concat(restProps[key], \"\\\"\")];\n case 5:\n _l.sent();\n _l.label = 6;\n case 6:\n _i++;\n return [3 /*break*/, 4];\n case 7:\n if (!style) return [3 /*break*/, 14];\n return [4 /*yield*/, \" style=\\\"\"];\n case 8:\n _l.sent();\n _f = style;\n _g = [];\n for (_h in _f)\n _g.push(_h);\n _j = 0;\n _l.label = 9;\n case 9:\n if (!(_j < _g.length)) return [3 /*break*/, 12];\n _h = _g[_j];\n if (!(_h in _f)) return [3 /*break*/, 11];\n key = _h;\n return [4 /*yield*/, \"\".concat((0, web_utility_1.toHyphenCase)(key), \":\").concat(style[key], \";\")];\n case 10:\n _l.sent();\n _l.label = 11;\n case 11:\n _j++;\n return [3 /*break*/, 9];\n case 12: return [4 /*yield*/, \"\\\"\"];\n case 13:\n _l.sent();\n _l.label = 14;\n case 14:\n if (!innerHTML) return [3 /*break*/, 16];\n return [4 /*yield*/, \">\".concat(innerHTML, \"\")];\n case 15:\n _l.sent();\n return [3 /*break*/, 29];\n case 16:\n if (!children[0]) return [3 /*break*/, 27];\n return [4 /*yield*/, '>'];\n case 17:\n _l.sent();\n _l.label = 18;\n case 18:\n _l.trys.push([18, 23, 24, 25]);\n children_1 = tslib_1.__values(children), children_1_1 = children_1.next();\n _l.label = 19;\n case 19:\n if (!!children_1_1.done) return [3 /*break*/, 22];\n child = children_1_1.value;\n return [5 /*yield**/, tslib_1.__values(child.generateXML())];\n case 20:\n _l.sent();\n _l.label = 21;\n case 21:\n children_1_1 = children_1.next();\n return [3 /*break*/, 19];\n case 22: return [3 /*break*/, 25];\n case 23:\n e_4_1 = _l.sent();\n e_4 = { error: e_4_1 };\n return [3 /*break*/, 25];\n case 24:\n try {\n if (children_1_1 && !children_1_1.done && (_k = children_1.return)) _k.call(children_1);\n }\n finally { if (e_4) throw e_4.error; }\n return [7 /*endfinally*/];\n case 25: return [4 /*yield*/, \"\")];\n case 26:\n _l.sent();\n return [3 /*break*/, 29];\n case 27: return [4 /*yield*/, tagName === 'script' ? '>' : ' />'];\n case 28:\n _l.sent();\n _l.label = 29;\n case 29: return [2 /*return*/];\n }\n });\n };\n VNode.prototype.generateXML = function () {\n var mode;\n return tslib_1.__generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!_a.isFragment(this)) return [3 /*break*/, 5];\n return [4 /*yield*/, ''];\n case 4:\n _b.sent();\n return [3 /*break*/, 9];\n case 5:\n if (!(this.text != null)) return [3 /*break*/, 7];\n return [4 /*yield*/, this.text];\n case 6:\n _b.sent();\n return [3 /*break*/, 9];\n case 7: return [5 /*yield**/, tslib_1.__values(this.generateElementXML())];\n case 8:\n _b.sent();\n _b.label = 9;\n case 9: return [2 /*return*/];\n }\n });\n };\n VNode.isFragment = function (_b) {\n var key = _b.key, node = _b.node, children = _b.children, rest = tslib_1.__rest(_b, [\"key\", \"node\", \"children\"]);\n for (var key_1 in rest)\n if (!(0, web_utility_1.isEmpty)(rest[key_1]))\n return false;\n return true;\n };\n VNode.fromDOM = function (node) {\n var _this = this;\n if (node instanceof Text)\n return new _a({ node: node, text: node.nodeValue });\n if (!(node instanceof Element))\n return new _a({ node: node });\n var _b = node, namespaceURI = _b.namespaceURI, tagName = _b.tagName, attributes = _b.attributes, style = _b.style, childNodes = _b.childNodes;\n var vNode = {\n node: node,\n namespace: namespaceURI,\n tagName: tagName.toLowerCase(),\n is: node.getAttribute('is')\n };\n var props = Array.from(attributes, function (_b) {\n var name = _b.name, value = _b.value;\n return name !== 'style' && [_this.attrsMap[name] || name, value];\n }).filter(Boolean);\n if (props[0])\n vNode.props = Object.fromEntries(props);\n var styles = Array.from(style, function (key) { return [key, style[key]]; });\n if (styles[0])\n vNode.style = Object.fromEntries(styles);\n var children = Array.from(childNodes, function (node) { return _a.fromDOM(node); });\n if (children[0])\n vNode.children = children;\n return new _a(vNode);\n };\n var _a;\n _a = VNode;\n VNode.propsMap = {\n className: 'class',\n htmlFor: 'for'\n };\n VNode.attrsMap = Object.fromEntries(Object.entries(_a.propsMap).map(function (item) { return item.reverse(); }));\n return VNode;\n}(VNodeMeta));\nexports.VNode = VNode;\n","var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n(function (factory) {\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\n var v = factory(require, exports);\n if (v !== undefined) module.exports = v;\n }\n else if (typeof define === \"function\" && define.amd) {\n define([\"require\", \"exports\"], factory);\n }\n})(function (require, exports) {\n \"use strict\";\n var _a, _b, _c, _d;\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.findShadowRoots = findShadowRoots;\n exports.generateHTML = generateHTML;\n exports.getHTML = getHTML;\n exports.attachDeclarativeShadowRoots = attachDeclarativeShadowRoots;\n exports.setHTMLUnsafe = setHTMLUnsafe;\n exports.parseHTMLUnsafe = parseHTMLUnsafe;\n var xmlSerializer = new XMLSerializer(), attachShadow = HTMLElement.prototype.attachShadow, shadowDOMs = new WeakMap();\n HTMLElement.prototype.attachShadow = function (options) {\n var shadowRoot = attachShadow.call(this, options);\n shadowDOMs.set(this, shadowRoot);\n return shadowRoot;\n };\n function findShadowRoots(root) {\n var walker, currentNode, shadowRoot;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: function (node) {\n return node instanceof HTMLElement\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_SKIP;\n }\n });\n currentNode = null;\n _a.label = 1;\n case 1:\n if (!(currentNode = walker.nextNode())) return [3 /*break*/, 5];\n shadowRoot = shadowDOMs.get(currentNode);\n if (!shadowRoot) return [3 /*break*/, 4];\n return [4 /*yield*/, shadowRoot];\n case 2:\n _a.sent();\n return [5 /*yield**/, __values(findShadowRoots(shadowRoot))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [3 /*break*/, 1];\n case 5: return [2 /*return*/];\n }\n });\n }\n function generateHTML(root, _a) {\n var walker, currentNode, tagName, attributes, shadowRoot, shadowRootHTML, nextSibling, parentElement;\n var _b = _a === void 0 ? {} : _a, serializableShadowRoots = _b.serializableShadowRoots, shadowRoots = _b.shadowRoots;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n shadowRoots = (shadowRoots === null || shadowRoots === void 0 ? void 0 : shadowRoots.filter(Boolean)) || [];\n if (!(!serializableShadowRoots || !shadowRoots[0])) return [3 /*break*/, 2];\n return [4 /*yield*/, root.innerHTML];\n case 1:\n _c.sent();\n return [2 /*return*/];\n case 2:\n walker = document.createTreeWalker(root, NodeFilter.SHOW_ALL, {\n acceptNode: function (node) {\n return node === root || node instanceof SVGElement\n ? NodeFilter.FILTER_SKIP\n : NodeFilter.FILTER_ACCEPT;\n }\n });\n currentNode = null;\n _c.label = 3;\n case 3:\n if (!(currentNode = walker.nextNode())) return [3 /*break*/, 19];\n if (!(currentNode instanceof CDATASection)) return [3 /*break*/, 5];\n return [4 /*yield*/, \"\")];\n case 4:\n _c.sent();\n return [3 /*break*/, 16];\n case 5:\n if (!(currentNode instanceof Text)) return [3 /*break*/, 7];\n return [4 /*yield*/, currentNode.nodeValue || \"\"];\n case 6:\n _c.sent();\n return [3 /*break*/, 16];\n case 7:\n if (!(currentNode instanceof Comment)) return [3 /*break*/, 9];\n return [4 /*yield*/, \"\")];\n case 8:\n _c.sent();\n return [3 /*break*/, 16];\n case 9:\n if (!(currentNode instanceof SVGElement)) return [3 /*break*/, 11];\n return [4 /*yield*/, xmlSerializer.serializeToString(currentNode)];\n case 10:\n _c.sent();\n return [3 /*break*/, 16];\n case 11:\n if (!(currentNode instanceof Element)) return [3 /*break*/, 16];\n tagName = currentNode.tagName.toLowerCase(), attributes = __spreadArray([], __read(currentNode.attributes), false).map(function (_a) {\n var name = _a.name, value = _a.value;\n return \"\".concat(name, \"=\").concat(JSON.parse(value));\n }), shadowRoot = shadowDOMs.get(currentNode);\n return [4 /*yield*/, \"<\".concat(__spreadArray([tagName], __read(attributes), false).join(\" \"), \">\")];\n case 12:\n _c.sent();\n if (!(shadowRoot && shadowRoots.includes(shadowRoot))) return [3 /*break*/, 14];\n shadowRootHTML = __spreadArray([], __read(generateHTML(shadowRoot, { serializableShadowRoots: serializableShadowRoots, shadowRoots: shadowRoots })), false).join(\"\");\n return [4 /*yield*/, \"\")];\n case 13:\n _c.sent();\n _c.label = 14;\n case 14:\n if (!!currentNode.childNodes[0]) return [3 /*break*/, 16];\n return [4 /*yield*/, \"\")];\n case 15:\n _c.sent();\n _c.label = 16;\n case 16:\n nextSibling = currentNode.nextSibling, parentElement = currentNode.parentElement;\n if (!(!nextSibling && parentElement && parentElement !== root)) return [3 /*break*/, 18];\n return [4 /*yield*/, \"\")];\n case 17:\n _c.sent();\n _c.label = 18;\n case 18: return [3 /*break*/, 3];\n case 19: return [2 /*return*/];\n }\n });\n }\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/getHTML}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getHTML}\n */\n function getHTML(options) {\n if (options === void 0) { options = {}; }\n return __spreadArray([], __read(generateHTML(this, options)), false).join(\"\");\n }\n function attachDeclarativeShadowRoots(root) {\n var e_1, _a;\n var templates = root.querySelectorAll(\"template[shadowrootmode]\");\n try {\n for (var templates_1 = __values(templates), templates_1_1 = templates_1.next(); !templates_1_1.done; templates_1_1 = templates_1.next()) {\n var template = templates_1_1.value;\n var parentElement = template.parentElement, content = template.content;\n var shadowRoot = parentElement.attachShadow({\n mode: template.getAttribute(\"shadowrootmode\")\n });\n shadowRoot.append(content);\n template.remove();\n attachDeclarativeShadowRoots(shadowRoot);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (templates_1_1 && !templates_1_1.done && (_a = templates_1.return)) _a.call(templates_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/setHTMLUnsafe}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/setHTMLUnsafe}\n */\n function setHTMLUnsafe(html) {\n this.innerHTML = html;\n attachDeclarativeShadowRoots(this);\n }\n var domParser = new DOMParser(), initDocument = function (_a) {\n var _b = _a === void 0 ? document : _a, documentElement = _b.documentElement;\n return attachDeclarativeShadowRoots(documentElement);\n };\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Document/parseHTMLUnsafe_static}\n */\n function parseHTMLUnsafe(html) {\n var document = domParser.parseFromString(html, \"text/html\");\n initDocument(document);\n return document;\n }\n (_a = Element.prototype).getHTML || (_a.getHTML = getHTML);\n (_b = Element.prototype).setHTMLUnsafe || (_b.setHTMLUnsafe = setHTMLUnsafe);\n (_c = ShadowRoot.prototype).getHTML || (_c.getHTML = getHTML);\n (_d = ShadowRoot.prototype).setHTMLUnsafe || (_d.setHTMLUnsafe = setHTMLUnsafe);\n Document.parseHTMLUnsafe || (Document.parseHTMLUnsafe = parseHTMLUnsafe);\n new Promise(function (resolve) {\n if (document.readyState === \"complete\")\n resolve();\n else {\n document.addEventListener(\"DOMContentLoaded\", resolve);\n window.addEventListener(\"load\", resolve);\n }\n }).then(function () { return initDocument(); });\n});\n//# sourceMappingURL=index.js.map","export interface HTMLSerializationOptions {\n serializableShadowRoots?: boolean;\n shadowRoots?: ShadowRoot[];\n}\n\nconst xmlSerializer = new XMLSerializer(),\n { attachShadow } = HTMLElement.prototype,\n shadowDOMs = new WeakMap();\n\nHTMLElement.prototype.attachShadow = function (options: ShadowRootInit) {\n const shadowRoot = attachShadow.call(this, options);\n\n shadowDOMs.set(this, shadowRoot);\n\n return shadowRoot;\n};\n\nexport function* findShadowRoots(root: Node): Generator {\n const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node: Element) =>\n node instanceof HTMLElement\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_SKIP\n });\n var currentNode: HTMLElement | null = null;\n\n while ((currentNode = walker.nextNode() as HTMLElement)) {\n const shadowRoot = shadowDOMs.get(currentNode);\n\n if (shadowRoot) {\n yield shadowRoot;\n yield* findShadowRoots(shadowRoot);\n }\n }\n}\n\nexport function* generateHTML(\n root: Node,\n { serializableShadowRoots, shadowRoots }: HTMLSerializationOptions = {}\n): Generator {\n shadowRoots = shadowRoots?.filter(Boolean) || [];\n\n if (!serializableShadowRoots || !shadowRoots[0]) {\n yield (root as HTMLElement).innerHTML;\n return;\n }\n\n const walker = document.createTreeWalker(root, NodeFilter.SHOW_ALL, {\n acceptNode: (node) =>\n node === root || node instanceof SVGElement\n ? NodeFilter.FILTER_SKIP\n : NodeFilter.FILTER_ACCEPT\n });\n var currentNode: Node | null = null;\n\n while ((currentNode = walker.nextNode())) {\n if (currentNode instanceof CDATASection)\n yield ``;\n else if (currentNode instanceof Text) yield currentNode.nodeValue || \"\";\n else if (currentNode instanceof Comment)\n yield ``;\n else if (currentNode instanceof SVGElement)\n yield xmlSerializer.serializeToString(currentNode);\n else if (currentNode instanceof Element) {\n const tagName = currentNode.tagName.toLowerCase(),\n attributes = [...currentNode.attributes].map(\n ({ name, value }) => `${name}=${JSON.parse(value)}`\n ),\n shadowRoot = shadowDOMs.get(currentNode);\n\n yield `<${[tagName, ...attributes].join(\" \")}>`;\n\n if (shadowRoot && shadowRoots.includes(shadowRoot)) {\n const shadowRootHTML = [\n ...generateHTML(shadowRoot, { serializableShadowRoots, shadowRoots })\n ].join(\"\");\n\n yield ``;\n }\n if (!currentNode.childNodes[0]) yield ``;\n }\n const { nextSibling, parentElement } = currentNode;\n\n if (!nextSibling && parentElement && parentElement !== root)\n yield ``;\n }\n}\n\n/**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/getHTML}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getHTML}\n */\nexport function getHTML(\n this: Element | ShadowRoot,\n options: HTMLSerializationOptions = {}\n) {\n return [...generateHTML(this, options)].join(\"\");\n}\n\nexport function attachDeclarativeShadowRoots(root: HTMLElement | ShadowRoot) {\n const templates = root.querySelectorAll(\n \"template[shadowrootmode]\"\n );\n\n for (const template of templates) {\n const { parentElement, content } = template;\n\n const shadowRoot = parentElement!.attachShadow({\n mode: template.getAttribute(\"shadowrootmode\") as ShadowRootMode\n });\n\n shadowRoot.append(content);\n\n template.remove();\n\n attachDeclarativeShadowRoots(shadowRoot);\n }\n}\n/**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/setHTMLUnsafe}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/setHTMLUnsafe}\n */\nexport function setHTMLUnsafe(this: Element | ShadowRoot, html: string) {\n this.innerHTML = html;\n\n attachDeclarativeShadowRoots(this as HTMLElement);\n}\n\nconst domParser = new DOMParser(),\n initDocument = ({ documentElement } = document) =>\n attachDeclarativeShadowRoots(documentElement);\n/**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Document/parseHTMLUnsafe_static}\n */\nexport function parseHTMLUnsafe(html: string) {\n const document = domParser.parseFromString(html, \"text/html\");\n\n initDocument(document);\n\n return document;\n}\n\ndeclare global {\n interface ShadowRootSerializable {\n getHTML: typeof getHTML;\n }\n interface Element extends ShadowRootSerializable {}\n interface ShadowRoot extends ShadowRootSerializable {}\n}\n\nElement.prototype.getHTML ||= getHTML;\nElement.prototype.setHTMLUnsafe ||= setHTMLUnsafe;\nShadowRoot.prototype.getHTML ||= getHTML;\nShadowRoot.prototype.setHTMLUnsafe ||= setHTMLUnsafe;\nDocument.parseHTMLUnsafe ||= parseHTMLUnsafe;\n\nnew Promise((resolve) => {\n if (document.readyState === \"complete\") resolve();\n else {\n document.addEventListener(\"DOMContentLoaded\", resolve);\n window.addEventListener(\"load\", resolve);\n }\n}).then(() => initDocument());\n"],"names":["$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","parcelRequire","$parcel$global","globalThis","parcelRegister","register","module","exports","value","$f9909ccf4763075a$export$2e2bcd8739ae039","$zlbOT","$f9909ccf4763075a$var$__rest","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","_a","path","id","edit","props","jsxs","assign","children","jsx","JSON","stringify","Fragment","jsxDEV","$06a3b4d229715e45$var$jsx","$ceFTv","$gPvyW","$2flNv","type","key","ref","is","style","__rest","isHTMLElementClass","tagNameOf","commonProps","flat","Infinity","map","node","VNode","text","toString","undefined","filter","Boolean","__assign","tagName","isEmpty","$8e874a2fb001c377$export$a8ba968b8961cb8a","$8e874a2fb001c377$export$18ce0697a983be9b","$8e874a2fb001c377$export$3c9a16f847548506","$8e874a2fb001c377$export$1050f835b63b671e","$8e874a2fb001c377$export$67ebef60e6f28a6","$8e874a2fb001c377$export$f33643c0debef087","$8e874a2fb001c377$export$19a8beecd37a4c45","$8e874a2fb001c377$export$8d051b38c9118094","$8e874a2fb001c377$export$1216008129fb82ed","$8e874a2fb001c377$var$extendStatics","d","b","setPrototypeOf","__proto__","Array","TypeError","String","__","constructor","create","arguments","apply","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","done","adopt","then","body","f","y","_","label","sent","trys","ops","g","Iterator","verb","Symbol","iterator","op","pop","push","$8e874a2fb001c377$export$45d3717a4c69092e","o","m","k","k2","desc","getOwnPropertyDescriptor","__esModule","writable","r","ar","error","to","from","pack","l","slice","concat","SuppressedError","$c409e47346e83e74$var$$parcel$export","$c409e47346e83e74$export$dd1bc94b04021eeb","$c409e47346e83e74$export$3f34ca2fef821bbd","$c409e47346e83e74$export$86f54f62aa7a7514","$c409e47346e83e74$export$2ddabb89308e1a22","$c409e47346e83e74$export$14527669107aa301","$c409e47346e83e74$export$3f063810d7bf01bd","$c409e47346e83e74$export$27924e57e9afff7f","$c409e47346e83e74$export$71e6483fc2b024eb","$c409e47346e83e74$export$eb9b2aadbe449a20","$c409e47346e83e74$export$13397a83aa5915d6","$c409e47346e83e74$export$f5a4056b78c72efa","$c409e47346e83e74$export$2ee022bbbc550b25","$c409e47346e83e74$export$a549dd5cef7f8327","$c409e47346e83e74$export$8eece510bcb9c62c","$c409e47346e83e74$export$b8a1af58c024fefd","$c409e47346e83e74$export$be4650432daa84fd","$c409e47346e83e74$export$7cd14c57bbb84350","$c409e47346e83e74$export$3f99968195accfaf","$c409e47346e83e74$export$86d7c59254d6a2c9","$c409e47346e83e74$export$10b1921597150314","$c409e47346e83e74$export$3e2b244719956741","DiffStatus","$c409e47346e83e74$var$$9b05bcda60cc529c$exports","$c409e47346e83e74$export$61cc6ed0f143570b","$c409e47346e83e74$export$a09f818797e212c4","$c409e47346e83e74$export$170f4e08cad8229d","$c409e47346e83e74$export$2a489b3f92f4996a","$c409e47346e83e74$export$67a6ce548ae77071","$c409e47346e83e74$export$a48f0734ac7c2329","$c409e47346e83e74$export$89912e019eef22aa","$c409e47346e83e74$export$1c8ba402144543e5","$c409e47346e83e74$export$b5a4d6f439a5044d","$c409e47346e83e74$export$b119cc7e1840e59c","$c409e47346e83e74$export$7b85fd78dd236198","$c409e47346e83e74$export$697c3df919c0e61a","$c409e47346e83e74$export$e6b5ff3168b5942b","list","subKey","handler","item","$c409e47346e83e74$export$1d012a0dff3dab06","$c409e47346e83e74$export$69a3209f1a06c04d","$c409e47346e83e74$export$86c18c6347f4a8c4","$c409e47346e83e74$export$dce9414bed0662c","$c409e47346e83e74$export$271f7c16f175f804","$c409e47346e83e74$var$$6a9944941b4c1893$exports","$c409e47346e83e74$export$8a63f25cc62965f1","data","reduce","sum","$c409e47346e83e74$export$e1f36757ecda301d","$c409e47346e83e74$export$8e694e1eafd55acb","sample","average","summary","$c409e47346e83e74$export$57d7c52a66287430","Math","sqrt","$c409e47346e83e74$export$2b4693832ca3ce16","$c409e47346e83e74$export$5b784e078da1ce6","raw","toFixed","offset","cut","includes","padEnd","$c409e47346e83e74$export$17ec9c9f4f23588c","floatOffset","repeat","before","anchor","after","$c409e47346e83e74$export$595dbf49c602a1f","valueOf","toShortString","fractionDigits","units","base","name","reverse","find","abs","distanceOf","a","Reflect","construct","Number","isNaN","keys","Sub","Super","target","dataStore","setter","getPrototypeOf","Proxy","receiver","test","localeCompare","MAX_SAFE_INTEGER","numeric","replace","match","toLowerCase","large","toUpperCase","Date","now","parseInt","random","values","fromEntries","index","oldList","newList","group","entries","status","Int8Array","array","unitLength","grid","iteratee","Function","Set","executor","title","cacheData","console","trace","log","message","promise","withResolvers","doneSymbol","disposer","complete","race","sources","iterators","dones","args","$c409e47346e83e74$var$$f872d8bba1c0f79f$exports","$c409e47346e83e74$export$c489aa6f7fd82b1a","$c409e47346e83e74$export$cbd942915f33be50","$c409e47346e83e74$export$9b886f8493244014","$c409e47346e83e74$export$e99cbb807a5bb10d","$c409e47346e83e74$export$7a9a31a911eb9a20","$c409e47346e83e74$export$fca4f8121099df57","$c409e47346e83e74$export$6ce2f08d515512","$c409e47346e83e74$export$951c8378cdfec6e6","$c409e47346e83e74$export$1a4097b876a13bf7","$c409e47346e83e74$export$d9bcbd5e1ff81430","$c409e47346e83e74$export$506c8e8f8c8edda","$c409e47346e83e74$export$3ae94a2503e890a1","$c409e47346e83e74$export$62ad822b3a5fd9a0","end","start","unit","timeDistance","split","distance","$c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit","template","padStart","max","time","year","month","day","hour","minute","second","millisecond","getTimezoneOffset","toJSON","date","delta","getMonth","setFullYear","getFullYear","floor","setMonth","$c409e47346e83e74$var$$ba0e5dc395660a7c$exports","parseItem","parse","$c409e47346e83e74$export$7ea17d45ecdcf634","parsed","number","$c409e47346e83e74$export$bb8626e4916f587b","header","separator","trim","row","$c409e47346e83e74$var$$ba0e5dc395660a7c$var$readQuoteValue","quote","SyntaxError","object","$c409e47346e83e74$var$$083124ac4b1a50a0$exports","URI","URL","document","baseURI","origin","location","search","toBuiltIn","URLSearchParams","getAll","$c409e47346e83e74$export$fd89523fba250fa4","$c409e47346e83e74$export$504fbde693c1771c","$c409e47346e83e74$var$$083124ac4b1a50a0$var$stringify","fetch","blob","$c409e47346e83e74$var$$083124ac4b1a50a0$var$DataURI","base64","exec","aBuffer","ArrayBuffer","atob","uBuffer","Uint8Array","charCodeAt","Blob","$c409e47346e83e74$var$$50872bf213056663$exports","$c409e47346e83e74$export$1b9ac4d3de3ffd2e","$c409e47346e83e74$export$d51f3b55e8d1aa73","$c409e47346e83e74$var$$50872bf213056663$var$CRC_32_Table","cell","j","char","self","subtle","crypto","msCrypto","observer","oncomplete","onabort","onerror","crypto1","algorithm","digest","TextEncoder","encode","byte","join","$c409e47346e83e74$var$$3e0a089cc13f69ad$exports","$c409e47346e83e74$export$a2cf0d4bb6e06de4","$c409e47346e83e74$export$d66b332881d9723f","$c409e47346e83e74$export$b0709844452f8b6b","$c409e47346e83e74$export$5118471ee5d5453b","$c409e47346e83e74$export$578e38b4a3e0b255","$c409e47346e83e74$export$5100419dfae0456d","depth","indent","padding","$c409e47346e83e74$export$28d9d24a8cd0ffc2","$c409e47346e83e74$export$eafdbaa868ea9975","$c409e47346e83e74$export$36a0c1ca2ae264fa","html","svg","math","$c409e47346e83e74$var$$3e0a089cc13f69ad$var$templateMap","spawn","createElement","innerHTML","content","firstElementChild","prefix","localName","HTMLElement","HTMLUnknownElement","Class","$c409e47346e83e74$var$$3e0a089cc13f69ad$var$nameMap","WeakMap","propertyName","ReadOnly_Properties","HTMLLinkElement","HTMLIFrameElement","HTMLObjectElement","HTMLInputElement","HTMLButtonElement","HTMLSelectElement","HTMLTextAreaElement","HTMLOutputElement","HTMLFieldSetElement","HTML","childNodes","remove","XMLSerializer","serializeToString","root","nodeType","parentElement","nodeValue","Node","TEXT_NODE","getAttribute","width","height","getBoundingClientRect","offsetWidth","pageHeight","pageWidth","scrollHeight","pages","offsetTop","top","offsetHeight","bottomOffset","bottom","bottomIndex","alternate","options","styleSheets","href","link","onload","sheet","_1","_2","_3","_4","rel","head","append","nodes","fragment","createDocumentFragment","nodeName","replaceWith","selection","getSelection","range","getRangeAt","deleteContents","insertNode","selector","align","justify","ID","window","scrollTo","left","behavior","querySelector","scrollIntoView","block","inline","box","querySelectorAll","IntersectionObserver","isIntersecting","links","ownerDocument","observe","textContent","level","last","visibilityState","change","state","addEventListener","form","field","elements","checked","defaultValue","selectedOptions","files","closest","parsedValue","$c409e47346e83e74$var$$bb23e0c794fefbef$exports","$c409e47346e83e74$export$e772c8ff12451969","seconds","setTimeout","$c409e47346e83e74$export$57207d71b8c929c8","stop","$c409e47346e83e74$var$$19ed8aeb7905a045$exports","event","composedPath","shift","currentTarget","matches","detail","$c409e47346e83e74$export$1d1d2ed6b55cf67f","$c409e47346e83e74$export$2155c0b5a4b77fb8","$c409e47346e83e74$export$9d97473344489dfc","$c409e47346e83e74$export$d635d04af3887bbe","removeEventListener","check","readyState","scope","element","clean","cancel","handlers","server","source","postMessage","UID","registration","waiting","onupdatefound","installing","navigator","serviceWorker","controller","$c409e47346e83e74$var$$7a08303ce13c49c5$exports","$c409e47346e83e74$export$1b88f6b6d432a52a","$c409e47346e83e74$export$b70f6380221b1350","$c409e47346e83e74$export$75d6cbe4503e149","$c409e47346e83e74$export$b2618d51188815c2","$c409e47346e83e74$export$490814474ddbb428","$c409e47346e83e74$export$3ea201dffb50dfef","$c409e47346e83e74$export$d1012c7198c6b460","$c409e47346e83e74$export$a35a418b7b17958e","pow","x","z","direction","XD","YD","ZD","XL","YL","ZL","threshold","getComputedStyle","fontSize","vector","transitionDuration","animationDuration","duration","parseFloat","catch","$c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeIn","className","display","requestAnimationFrame","classList","add","$c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeOut","$c409e47346e83e74$var$$69bd9f0117925302$exports","$c409e47346e83e74$export$cd5450f3a47e3789","cases","timeEnd","$c409e47346e83e74$export$3486a10f30cf1ee4","userCase","secondsOut","timeOut","RangeError","assert","VNodeMeta","$iYM07","$1a2de400000fbc4f$var$VNodeMeta","$1a2de400000fbc4f$var$VNode","_super","_b","e_1","_c","_d","e_2","_e","_this","meta","_f","__values","_g","vNode","__spreadArray","__read","isFragment","e_1_1","return","_h","_j","child","parent","e_2_1","__extends","walkUp","current","__generator","namespaceOf","e_3","XMLNamespace","namespace","e_3_1","createDOM","document1","createTextNode","createElementNS","generateElementXML","shadowRoots","restProps","_i","children_1","children_1_1","e_4","_k","_l","elementTypeOf","implementation","createHTMLDocument","findShadowRoots","getHTML","serializableShadowRoots","propsMap","toHyphenCase","generateXML","mode","rest","key_1","fromDOM","Text","Element","namespaceURI","attributes","attrsMap","styles","htmlFor","$dd13108d31ab34bb$var$__generator","$dd13108d31ab34bb$var$__read","$dd13108d31ab34bb$var$__spreadArray","$dd13108d31ab34bb$var$__values","factory","define","amd","require1","exports1","walker","currentNode","shadowRoot","createTreeWalker","NodeFilter","SHOW_ELEMENT","acceptNode","FILTER_ACCEPT","FILTER_SKIP","nextNode","shadowDOMs","generateHTML","attachDeclarativeShadowRoots","setHTMLUnsafe","parseHTMLUnsafe","xmlSerializer","attachShadow","shadowRootHTML","nextSibling","SHOW_ALL","SVGElement","CDATASection","Comment","templates","templates_1","templates_1_1","domParser","DOMParser","initDocument","documentElement","parseFromString","ShadowRoot","Document"],"version":3,"file":"async.fcf3ae1c.js.map"} \ No newline at end of file diff --git a/preview/index.362ffb12.js b/preview/index.362ffb12.js new file mode 100644 index 0000000..5d784b5 --- /dev/null +++ b/preview/index.362ffb12.js @@ -0,0 +1,10 @@ +let e,t,r,n,i,o,a,s,l,u,c,h,f,d,p,b,v,m,_,y,g,w,S,O,T,E,P,x,k,j,C,A,R,M,L,N,D,q,I,V,W,B,$,F,z;function U(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var H,K,G,X,Y,J,Q,Z,ee,et,er,en,ei,eo,ea,es,el,eu,ec,eh,ef=globalThis,ed={},ep={},eb=ef.parcelRequire94c2;null==eb&&((eb=function(e){if(e in ed)return ed[e].exports;if(e in ep){var t=ep[e];delete ep[e];var r={id:e,exports:{}};return ed[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=function(e,t){ep[e]=t},ef.parcelRequire94c2=eb);var ev=eb.register;ev("73lZE",function(e,t){U(e.exports,"register",()=>r,e=>r=e),U(e.exports,"resolve",()=>n,e=>n=e);var r,n,i=new Map;r=function(e,t){for(var r=0;rn),U(e.exports,"__assign",()=>i),U(e.exports,"__rest",()=>o),U(e.exports,"__awaiter",()=>a),U(e.exports,"__generator",()=>s),U(e.exports,"__exportStar",()=>u),U(e.exports,"__values",()=>c),U(e.exports,"__read",()=>h),U(e.exports,"__spreadArray",()=>f);var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function s(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function f(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;iv),U(e.exports,"toHyphenCase",()=>S),U(e.exports,"toCamelCase",()=>O),U(e.exports,"DiffStatus",()=>i),U(e.exports,"diffKeys",()=>P),U(e.exports,"groupBy",()=>A),U(e.exports,"parseJSON",()=>ee),U(e.exports,"isXDomain",()=>ei),U(e.exports,"parseURLData",()=>eo),U(e.exports,"buildURLData",()=>es),U(e.exports,"XMLNamespace",()=>ev),U(e.exports,"templateOf",()=>e_),U(e.exports,"elementTypeOf",()=>ey),U(e.exports,"isHTMLElementClass",()=>eg),U(e.exports,"tagNameOf",()=>eS),U(e.exports,"getVisibleText",()=>ex),U(e.exports,"importCSS",()=>ej),U(e.exports,"scrollTo",()=>eA),U(e.exports,"formToJSON",()=>eL),U(e.exports,"delegate",()=>eV),U(e.exports,"documentReady",()=>eW);var n,i,o={};r(o,"likeNull",function(){return b}),r(o,"isEmpty",function(){return v}),r(o,"classNameOf",function(){return m}),r(o,"assertInheritance",function(){return _}),r(o,"proxyPrototype",function(){return y}),r(o,"isUnsafeNumeric",function(){return g}),r(o,"byteLength",function(){return w}),r(o,"toHyphenCase",function(){return S}),r(o,"toCamelCase",function(){return O}),r(o,"uniqueID",function(){return T}),r(o,"objectFrom",function(){return E}),r(o,"DiffStatus",function(){return i}),r(o,"diffKeys",function(){return P}),r(o,"groupBy",function(){return A}),r(o,"likeArray",function(){return x}),r(o,"isTypedArray",function(){return k}),r(o,"makeArray",function(){return j}),r(o,"splitArray",function(){return C}),r(o,"findDeep",function(){return function e(t,r,n){for(let i of t){if(n(i))return[i];if(i[r]instanceof Array){let t=e(i[r],r,n);if(t.length)return[i,...t]}}return[]}}),r(o,"countBy",function(){return R}),r(o,"cache",function(){return M}),r(o,"createAsyncIterator",function(){return L}),r(o,"mergeStream",function(){return N}),r(o,"ByteSize",function(){return D});var a={};function s(...e){return e.reduce((e,t)=>e+t,0)}function l(...e){return s(...e)/e.length}function u(e,t=!1){let r=l(...e);return s(...e.map(e=>(e-r)**2))/(e.length-(t?1:0))}function c(e,t=!1){return Math.sqrt(u(e,t))}function h(...e){return Math.sqrt(s(...e.map(e=>e**2)))}function f(e,t){let r=e.toFixed(t+2),n=r.indexOf(".")+t+1,i=e=>e.slice(0,n-(t?0:1));if(!+r.slice(n))return i(r);let o=i((+i(r)+10**-t).toFixed(t));return o.includes(".")?o.padEnd(n,"0"):o}function d(e,t=2){let r=e.toFixed(t+2),n=r.indexOf(".");if(n<0)return t?`${r}.${"0".repeat(t)}`:r;let i=n+t+1,o=+r[i-1],a=+r[i],s=+r[i+1];if(a>5||5===a&&(s||o%2))return f(e,t);let l=r.slice(0,i-(t?0:1));return l.includes(".")?l.padEnd(i,"0"):l}r(a,"sum",function(){return s}),r(a,"averageOf",function(){return l}),r(a,"varianceOf",function(){return u}),r(a,"standardDeviationOf",function(){return c}),r(a,"hypotenuseOf",function(){return h}),r(a,"carryFloat",function(){return f}),r(a,"fixFloat",function(){return d}),r(a,"Scalar",function(){return p});class p{constructor(e){this.value=e}valueOf(){return this.value}toShortString(e=2){let{units:t,value:r}=this,{base:n,name:i}=[...t].reverse().find(({base:e})=>Math.abs(r)>=e)||t[0];return`${(r/n).toFixed(e)} ${i}`}static distanceOf(e,t){return Reflect.construct(this,[e-t])}}function b(e){return!(null!=e)||Number.isNaN(e)}function v(e){return b(e)||("object"==typeof e?!Object.keys(e).length:""===e)}let m=e=>Object.prototype.toString.call(e).slice(8,-1);function _(e,t){return e.prototype instanceof t}function y(e,t,r){let n=Object.getPrototypeOf(e);Object.setPrototypeOf(e,new Proxy(n,{set:(e,i,o,a)=>(i in a?Reflect.set(n,i,o,a):t[i]=o,r?.(i,o),!0),get:(e,r,n)=>r in t?t[r]:Reflect.get(e,r,n)}))}function g(e){return/^[\d.]+$/.test(e)&&e.localeCompare(Number.MAX_SAFE_INTEGER+"",void 0,{numeric:!0})>0}function w(e){return e.replace(/[^\u0021-\u007e\uff61-\uffef]/g,"xx").length}function S(e){return e.replace(/[A-Z]+|[^A-Za-z][A-Za-z]/g,(e,t)=>`${t?"-":""}${(e[1]||e[0]).toLowerCase()}`)}function O(e,t=!1){return e.replace(/^[A-Za-z]|[^A-Za-z][A-Za-z]/g,(e,r)=>r||t?(e[1]||e[0]).toUpperCase():e.toLowerCase())}function T(){return(Date.now()+parseInt((Math.random()+"").slice(2))).toString(36)}function E(e,t){return Object.fromEntries(e.map((e,r)=>[t[r],e]))}function P(e,t){let r={};for(let t of e)r[t]=-1;for(let e of t)r[e]||=0,r[e]+=1;return{map:r,group:A(Object.entries(r),([e,t])=>t)}}function x(e){if(b(e))return!1;let{length:t}=e;return"number"==typeof t&&t>=0&&~~t===t}(n=i||(i={}))[n.Old=-1]="Old",n[n.Same=0]="Same",n[n.New=1]="New";let k=e=>e instanceof Object.getPrototypeOf(Int8Array);function j(e){return e instanceof Array?e:b(e)?[]:x(e)?Array.from(e):[e]}let C=(e,t)=>e.reduce((e,r,n)=>((e[~~(n/t)]||=[])[n%t]=r,e),[]);function A(e,t){let r={};for(let n of e){let e=t instanceof Function?t(n):n[t];for(let t of(e instanceof Array||(e=[e]),new Set(e.filter(e=>null!=e))))(r[t]=r[t]||[]).push(n)}return r}function R(e,t){return Object.fromEntries(Object.entries(A(e,t)).map(([e,{length:t}])=>[e,t]))}function M(e,t){var r;return function(...n){return null!=r||(console.trace(`[Cache] execute: ${t}`),Promise.resolve(r=e.call(this,()=>r=void 0,...n)).then(e=>console.log(`[Cache] refreshed: ${t} => ${e}`),e=>console.error(`[Cache] failed: ${e?.message||e}`))),r}}async function*L(e){let{promise:t,resolve:r,reject:n}=Promise.withResolvers(),i=Symbol("done"),o=Promise.withResolvers(),a=e({next:e=>r(e),error:e=>{n(e),a?.()},complete:()=>{o.resolve(i),a?.()}});for(;;){let e=await Promise.race([t,o.promise]);if(e===i)return;yield e,{promise:t,resolve:r,reject:n}=Promise.withResolvers()}}async function*N(...e){for(var t=e.map(e=>e());t[0];){let e=[];for(let r=0,n;n=t[r];r++){let{done:t,value:i}=await n.next();t?e.push(r):yield i}t=t.filter((t,r)=>!e.includes(r))}}class D extends p{constructor(...e){super(...e),this.units=["","K","M","G","T","P","E","Z","Y"].map((e,t)=>({base:1024**t,name:e+"B"}))}}var q={};r(q,"Second",function(){return I}),r(q,"Minute",function(){return V}),r(q,"Quarter",function(){return W}),r(q,"Hour",function(){return B}),r(q,"Day",function(){return $}),r(q,"Week",function(){return F}),r(q,"Year",function(){return z}),r(q,"Month",function(){return H}),r(q,"Season",function(){return K}),r(q,"Timestamp",function(){return G}),r(q,"diffTime",function(){return X}),r(q,"formatDate",function(){return J}),r(q,"changeMonth",function(){return Q});let I=1e3,V=6e4,W=9e5,B=36e5,$=864e5,F=6048e5,z=31536e6,H=2628e6,K=7884e6;class G extends p{toShortString(e=0){return super.toShortString(e)}constructor(...e){super(...e),this.units=[{base:I,name:"s"},{base:V,name:"m"},{base:B,name:"H"},{base:$,name:"D"},{base:F,name:"W"},{base:H,name:"M"},{base:z,name:"Y"}]}}function X(e,t=new Date){let[r,n]=G.distanceOf(+new Date(e),+new Date(t)).toShortString().split(/\s+/);return{distance:+r,unit:n}}function Y(e){return e=+e+"",t=>(e.lengtht(r))}catch{return e}}function et(e){let t=ee(e);if("string"!=typeof t)return t;let r=+t;return Number.isNaN(r)||r+""!==t?t:r}function er(e,t,r=","){let n=e.trim().split(/[\r\n]+/).map(e=>{let t=[];do{let n;if('"'===e[0]||"'"===e[0])n=function(e){let t=e[0],r=e.indexOf(t,1);if(r<0)throw SyntaxError(`A ${t} is missing`);return e.slice(1,r)}(e),e=e.slice(n.length+3);else{let t=e.indexOf(r);t>-1?(n=e.slice(0,t),e=e.slice(t+1)):(n=e,e="")}t.push(et(n.trim()))}while(e)return t});return t?n.slice(1).map(e=>e.reduce((e,t,r)=>(e[n[0][r]]=t,e),{})):n}r(Z,"parseJSON",function(){return ee}),r(Z,"toJSValue",function(){return et}),r(Z,"parseTextTable",function(){return er});var en={};function ei(e){return new URL(e,document.baseURI).origin!==location.origin}function eo(e=globalThis.location?.search,t=!0){let r=e.split(/\?|#/),n=new URLSearchParams(r[1]||r[0]);return Object.fromEntries([...n.keys()].map(e=>{let r=t?n.getAll(e).map(ee):n.getAll(e);return[e,r.length<2?r[0]:r]}))}r(en,"isXDomain",function(){return ei}),r(en,"parseURLData",function(){return eo}),r(en,"buildURLData",function(){return es}),r(en,"blobOf",function(){return el}),r(en,"blobFrom",function(){return ec});let ea=e=>"string"==typeof e?e:x(e)?j(e)+"":JSON.stringify(e);function es(e){return e instanceof Array||(e=Object.entries(e)),new URLSearchParams(e.map(([e,t])=>!v(t)&&[e,ea(t)]).filter(Boolean))}async function el(e){return(await fetch(e+"")).blob()}let eu=/^data:(.+?\/(.+?))?(;base64)?,([\s\S]+)/;function ec(e){var[t,r,n,i,o]=eu.exec(e)||[];let a=new ArrayBuffer((o=i?atob(o):o).length),s=new Uint8Array(a);for(let e=0;o[e];e++)s[e]=o.charCodeAt(e);return new Blob([a],{type:r})}var eh={};r(eh,"makeCRC32",function(){return ed}),r(eh,"makeSHA",function(){return ep});let ef=Array.from(Array(256),(e,t)=>{for(var r=0;r<8;r++)t=1&t?t>>1&0x7fffffff^0xedb88320:t>>1&0x7fffffff;return t});function ed(e){var t=0xffffffff;for(let r of e)t=t>>8&0xffffff^ef[255&t^r.charCodeAt(0)];return"0x"+((0xffffffff^t)>>>0).toString(16)}if("object"==typeof self){if("msCrypto"in globalThis){let{subtle:e}=globalThis.crypto=globalThis.msCrypto;for(let t in e){let r=e[t];r instanceof Function&&(e[t]=function(){let e=r.apply(this,arguments);return new Promise((t,r)=>{e.oncomplete=({target:e})=>t(e.result),e.onabort=e.onerror=r})})}}let{crypto:e}=globalThis;!e?.subtle&&e?.webkitSubtle&&(e.subtle=e.webkitSubtle)}async function ep(e,t="SHA-1"){return Array.from(new Uint8Array(await crypto.subtle.digest(t,new TextEncoder().encode(e))),e=>e.toString(16).padStart(2,"0")).join("")}var eb={};r(eb,"XMLNamespace",function(){return ev}),r(eb,"templateOf",function(){return e_}),r(eb,"elementTypeOf",function(){return ey}),r(eb,"isHTMLElementClass",function(){return eg}),r(eb,"tagNameOf",function(){return eS}),r(eb,"isDOMReadOnly",function(){return eO}),r(eb,"parseDOM",function(){return eT}),r(eb,"stringifyDOM",function(){return eE}),r(eb,"walkDOM",function(){return eP}),r(eb,"getVisibleText",function(){return ex}),r(eb,"splitPages",function(){return ek}),r(eb,"importCSS",function(){return ej}),r(eb,"stringifyCSS",function(){return function e(t,r=0,n=" "){let i=n.repeat(r);return Object.entries(t).map(([t,o])=>"object"!=typeof o?`${i}${S(t)}: ${o};`:`${i}${t} { +${e(o,r+1,n)} +${i}}`).join("\n")}}),r(eb,"insertToCursor",function(){return eC}),r(eb,"scrollTo",function(){return eA}),r(eb,"watchScroll",function(){return eR}),r(eb,"watchVisible",function(){return eM}),r(eb,"formToJSON",function(){return eL});let ev={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},em={};function e_(e){if(em[e])return em[e];let t=document.createElement("template");return t.innerHTML=`<${e} />`,em[e]=t.content.firstElementChild}function ey(e){if(e.includes("-"))return"html";let[t,r]=e.split(":");if(r)return"html"===t?"html":"xml";let n=e_(e);return n instanceof HTMLElement&&!(n instanceof HTMLUnknownElement)?"html":"xml"}function eg(e){return _(e,HTMLElement)}let ew=new WeakMap;function eS(e){let t=ew.get(e);if(t)return t;var{tagName:r}=new e;return ew.set(e,r=r.toLowerCase()),r}function eO(e,t){let r=[[HTMLLinkElement,["sizes"]],[HTMLIFrameElement,["sandbox"]],[HTMLObjectElement,["form"]],[HTMLInputElement,["form","list"]],[HTMLButtonElement,["form"]],[HTMLSelectElement,["form"]],[HTMLTextAreaElement,["form"]],[HTMLOutputElement,["form"]],[HTMLFieldSetElement,["form"]]],n=e_(e);for(let[e,i]of r)if(n instanceof e&&i.includes(t))return!0;return!1}function eT(e){let t=document.createElement("template");return t.innerHTML=e,[...t.content.childNodes].map(e=>(e.remove(),e))}function eE(e){return new XMLSerializer().serializeToString(e).replace(/ xmlns="http:\/\/www.w3.org\/1999\/xhtml"/g,"")}function*eP(e,t){let r=[...e.childNodes];for(let n of((v(t)||t===e.nodeType)&&(yield e),r))yield*eP(n,t)}function ex(e){var t="";for(let{nodeType:r,parentElement:n,nodeValue:i}of eP(e))if(r===Node.TEXT_NODE&&"true"!==n.getAttribute("aria-hidden")){let{width:e,height:r}=n.getBoundingClientRect();e&&r&&(t+=i.trim().replace(/\s+/g," "))}return t}function ek({offsetWidth:e,children:t},r=841.89,n=595.28){let i=r/n*e;var o=0;return[...t].reduce((e,t)=>{var{offsetTop:r,offsetHeight:n}=t;let a=((r+=o)+n)/i,s=~~a;return~~(r/i)!==s&&(o+=n-a),(e[s]||=[]).push(t),e},[])}function ej(e,{alternate:t,...r}={}){let n=[...document.styleSheets].find(({href:t})=>t===e);if(n)return Promise.resolve(n);let i=document.createElement("link");return new Promise((n,o)=>{i.onload=()=>n(i.sheet),i.onerror=(e,t,r,n,i)=>o(i),Object.assign(i,r),i.rel=(t?"alternate ":"")+"stylesheet",i.href=e,document.head.append(i)})}function eC(...e){let t=document.createDocumentFragment();for(let r of(t.append(...e),eP(t)))(![1,3,11].includes(r.nodeType)||["meta","title","link","script"].includes(r.nodeName.toLowerCase()))&&r.replaceWith(...r.childNodes);let r=globalThis.getSelection();if(!r)return;let n=r.getRangeAt(0);n.deleteContents(),n.insertNode(t)}function eA(e,t,r,n){let[i,o]=/^#(.+)/.exec(e)||[];"top"===o?window.scrollTo({top:0,left:0,behavior:"smooth"}):(t||document).querySelector(o?`[id="${o}"]`:e)?.scrollIntoView({behavior:"smooth",block:r,inline:n})}function eR(e,t,r=6){return Array.from(e.querySelectorAll(Array.from(Array(r),(e,t)=>`h${++t}`)+""),e=>(new IntersectionObserver(([e])=>{if(!e.isIntersecting)return;let r=e.target;t({target:r,links:[...r.ownerDocument.querySelectorAll(`[href="#${r.id}"]`)]})}).observe(e),e.id.trim()||(e.id=e.textContent.trim().replace(/\W+/g,"-")),{level:+e.tagName[1],id:e.id,text:e.textContent.trim()}))}function eM(e,t){var r="visible"===document.visibilityState?1:0;function n(e){(3===e||3===r)&&t(3===e),r=e}new IntersectionObserver(([{isIntersecting:e}])=>n(e?2|r:1&r)).observe(e),document.addEventListener("visibilitychange",()=>n("visible"===document.visibilityState?1|r:2&r))}function eL(e){let t={};for(let r of e.elements){let{name:n,value:i,checked:o,defaultValue:a,selectedOptions:s,files:l}=r,u=r.type;if(!n||""===i)continue;let c="fieldset"!==u&&r.closest("fieldset");if(c&&c!==e)continue;let h=i;switch(u){case"radio":case"checkbox":if(!o)continue;h=!a||et(a);break;case"select-multiple":h=Array.from(s,({value:e})=>et(e));break;case"fieldset":h=eL(r);break;case"file":h=l&&Array.from(l);break;case"date":case"datetime-local":case"month":case"hidden":case"number":case"range":case"select-one":h=et(i)}n in t?t[n]=[].concat(t[n],h):t[n]=h instanceof Array&&v(h[1])?h[0]:h}return t}var eN={};function eD(e=1){return new Promise(t=>setTimeout(t,1e3*e))}function eq(e,t=1){var r=!1;return(async()=>{for(;!r;){let r=e();r instanceof Promise&&await r,await eD(t)}})(),()=>r=!0}r(eN,"sleep",function(){return eD}),r(eN,"asyncLoop",function(){return eq});var eI={};function eV(e,t){return function(r){for(var n,i=r.composedPath();(n=i.shift())&&n!==r.currentTarget;)if(n instanceof HTMLElement&&n.matches(e))return t.call(this,r,n,r.detail)}}r(eI,"delegate",function(){return eV}),r(eI,"documentReady",function(){return eW}),r(eI,"promisify",function(){return eB}),r(eI,"createMessageServer",function(){return e$}),r(eI,"createMessageClient",function(){return eF}),r(eI,"serviceWorkerUpdate",function(){return ez});let eW="undefined"!=typeof window?new Promise(e=>{function t(){document?.removeEventListener("DOMContentLoaded",t),window.removeEventListener("load",t),e()}document?.addEventListener("DOMContentLoaded",t),window.addEventListener("load",t),setTimeout(function t(){document?.readyState==="complete"?e():setTimeout(t)})}):Promise.resolve();function eB(e,t){return new Promise((r,n)=>{function i(e){r(e),a()}function o(e){n(e),a()}function a(){t.removeEventListener(e+"end",i),t.removeEventListener(e+"cancel",o)}t.addEventListener(e+"end",i),t.addEventListener(e+"cancel",o)})}function e$(e){async function t({data:{type:t,id:r,...n},source:i,origin:o}){var a=e[t]?.(n);a instanceof Promise&&(a=await a),i.postMessage({...a,id:r},o)}return globalThis.addEventListener("message",t),()=>globalThis.removeEventListener("message",t)}function eF(e,t="*"){return(r,n)=>new Promise(i=>{let o=T();globalThis.addEventListener("message",function e({data:{id:t,...r}}){t===o&&(i(r),globalThis.removeEventListener("message",e))}),e.postMessage({id:o,type:r,...n},t)})}function ez(e){return new Promise(t=>{if(e.waiting)return t(e.waiting);e.onupdatefound=()=>e.installing?.addEventListener("statechange",function(){"installed"===this.state&&navigator.serviceWorker.controller&&t(this)})})}var eU={};r(eU,"PageVector",function(){return eH}),r(eU,"getSwipeVector",function(){return eK}),r(eU,"durationOf",function(){return eG}),r(eU,"watchMotion",function(){return eX}),r(eU,"transitIn",function(){return eQ}),r(eU,"animateIn",function(){return eZ}),r(eU,"transitOut",function(){return e0}),r(eU,"animateOut",function(){return e1});class eH{constructor(e,t){this.from=e,this.to=t}get length(){let{from:e,to:t}=this;return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)+(null!=t.z?Math.pow(t.z-e.z,2):0))}get direction(){let{from:e,to:t}=this,r=t.x-e.x,n=t.y-e.y,i=t.z-e.z,o=Math.abs(r),a=Math.abs(n),s=Math.abs(i);switch(isNaN(s)?Math.max(o,a):Math.max(o,a,s)){case o:return r>0?"right":"left";case a:return n>0?"forward":"backward";case s:return i>0?"up":"down"}}}function eK(e,t,r=6*parseInt(getComputedStyle(document.body).fontSize)){let n=new eH(e,t);if(n.length>=r&&!getSelection()?.toString().trim())return n}function eG(e,t){let{transitionDuration:r,animationDuration:n}=getComputedStyle(t),i="animation"===e?n:r;return parseFloat(i)*("ms"===i.slice(-2)?1:1e3)}function eX(e,t){return Promise.race([eB(e,t).catch(e=>Promise.resolve(e)),new Promise(r=>setTimeout(r,eG(e,t)))])}function eY(e,t,r,n){t.style.display=n;let i=eX(e,t);return new Promise(e=>requestAnimationFrame(()=>{t.classList.add(r),i.then(e)}))}async function eJ(e,t,r,n){let i=eX(e,t);t.classList.remove(r),await i,n?t.remove():t.style.display="none"}function eQ(e,t,r="block"){return eY("transition",e,t,r)}function eZ(e,t,r="block"){return eY("animation",e,t,r)}function e0(e,t,r){return eJ("transition",e,t,r)}function e1(e,t,r){return eJ("animation",e,t,r)}var e2={};async function e3(e,t){console.log(e),console.time(e),await t(),console.timeEnd(e)}async function e4(e,t,r=3){async function n(){throw await eD(r),RangeError("Timed out")}console.time(e=" "+e);try{return await Promise.race([t(t=>console.assert(t,e)),n()])}finally{console.timeEnd(e)}}r(e2,"describe",function(){return e3}),r(e2,"it",function(){return e4})}),ev("2flNv",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.VNode=e.exports.VNodeMeta=void 0;var r=eb("ceFTv"),n=eb("iYM07"),i=eb("gPvyW"),o=function(){this.children=[]};e.exports.VNodeMeta=o;var a=function(e){var t;function o(n){var i,o,a,s,l,u=this,c=n.children,h=r.__rest(n,["children"]);Object.assign(u=e.call(this)||this,h);try{for(var f=r.__values(c||[]),d=f.next();!d.done;d=f.next()){var p=d.value;(a=u.children).push.apply(a,r.__spreadArray([],r.__read(t.isFragment(p)?p.children||[]:[p]),!1))}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}try{for(var b=r.__values(u.children),v=b.next();!v.done;v=b.next())v.value.parent=u}catch(e){s={error:e}}finally{try{v&&!v.done&&(l=b.return)&&l.call(b)}finally{if(s)throw s.error}}var m=h.tagName,_=h.is,y=h.props;return(m||(null==y?void 0:y.className)||_)&&(u.selector=[null==m?void 0:m.toLowerCase(),(null==y?void 0:y.className)&&".".concat(y.className.trim().replace(/\s+/,".")),_&&'[is="'.concat(_,'"]')].filter(Boolean).join("")),u}return r.__extends(o,e),o.prototype.walkUp=function(){var e;return r.__generator(this,function(t){switch(t.label){case 0:e=this,t.label=1;case 1:if(!(e=e.parent))return[3,3];return[4,e];case 2:return t.sent(),[3,1];case 3:return[2]}})},o.prototype.namespaceOf=function(e){var t,n;if(i.XMLNamespace[e])return i.XMLNamespace[e];try{for(var o=r.__values(this.walkUp()),a=o.next();!a.done;a=o.next()){var s=a.value.namespace;if(s)return s}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i.XMLNamespace.html},o.prototype.createDOM=function(e){void 0===e&&(e=globalThis.document);var t=this.tagName,r=this.is,n=this.text;return this.node=n?e.createTextNode(n):t?e.createElementNS(this.namespace||(this.namespace=this.namespaceOf(t)),t,{is:r}):e.createDocumentFragment()},o.prototype.toJSON=function(){return JSON.parse(JSON.stringify({key:this.key,text:this.text,selector:this.selector,namespace:this.namespace,tagName:this.tagName,is:this.is,props:this.props,style:this.style,children:this.children}))},o.prototype.generateElementXML=function(){var e,o,a,s,l,u,c,h,f,d,p,b,v,m,_,y,g,w,S,O,T,E,P,x;return r.__generator(this,function(k){switch(k.label){case 0:if(e=this,o=e.tagName,a=e.props,s=e.style,l=e.children,u=e.node,!(o.includes("-")&&"html"===(0,i.elementTypeOf)(o)))return[3,2];return(c=((null==u?void 0:u.ownerDocument)||document).implementation.createHTMLDocument().body).innerHTML="<".concat(o,">"),h=r.__spreadArray([],r.__read((0,n.findShadowRoots)(c)),!1),[4,c.getHTML({serializableShadowRoots:!0,shadowRoots:h})];case 1:return k.sent(),[3,29];case 2:return f=a.innerHTML,d=r.__rest(a,["innerHTML"]),[4,"<".concat(o)];case 3:for(v in k.sent(),b=[],p=d)b.push(v);m=0,k.label=4;case 4:if(!(m".concat(f,"")];case 15:return k.sent(),[3,29];case 16:if(!l[0])return[3,27];return[4,">"];case 17:k.sent(),k.label=18;case 18:k.trys.push([18,23,24,25]),T=(O=r.__values(l)).next(),k.label=19;case 19:if(T.done)return[3,22];return E=T.value,[5,r.__values(E.generateXML())];case 20:k.sent(),k.label=21;case 21:return T=O.next(),[3,19];case 22:return[3,25];case 23:return P={error:k.sent()},[3,25];case 24:try{T&&!T.done&&(x=O.return)&&x.call(O)}finally{if(P)throw P.error}return[7];case 25:return[4,"")];case 26:return k.sent(),[3,29];case 27:return[4,"script"===o?"><\/script>":" />"];case 28:k.sent(),k.label=29;case 29:return[2]}})},o.prototype.generateXML=function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:if(!t.isFragment(this))return[3,5];return[4,""];case 4:case 6:return n.sent(),[3,9];case 5:if(!(null!=this.text))return[3,7];return[4,this.text];case 7:return[5,r.__values(this.generateElementXML())];case 8:n.sent(),n.label=9;case 9:return[2]}})},o.isFragment=function(e){e.key,e.node,e.children;var t=r.__rest(e,["key","node","children"]);for(var n in t)if(!(0,i.isEmpty)(t[n]))return!1;return!0},o.fromDOM=function(e){var r=this;if(e instanceof Text)return new t({node:e,text:e.nodeValue});if(!(e instanceof Element))return new t({node:e});var n=e.namespaceURI,i=e.tagName,o=e.attributes,a=e.style,s=e.childNodes,l={node:e,namespace:n,tagName:i.toLowerCase(),is:e.getAttribute("is")},u=Array.from(o,function(e){var t=e.name,n=e.value;return"style"!==t&&[r.attrsMap[t]||t,n]}).filter(Boolean);u[0]&&(l.props=Object.fromEntries(u));var c=Array.from(a,function(e){return[e,a[e]]});c[0]&&(l.style=Object.fromEntries(c));var h=Array.from(s,function(e){return t.fromDOM(e)});return h[0]&&(l.children=h),new t(l)},t=o,o.propsMap={className:"class",htmlFor:"for"},o.attrsMap=Object.fromEntries(Object.entries(t.propsMap).map(function(e){return e.reverse()})),o}(o);e.exports.VNode=a}),ev("iYM07",function(e,t){var r=e.exports&&e.exports.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=e.exports&&e.exports.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(t){if("object"==typeof e.exports){var r=t(void 0,e.exports);void 0!==r&&(e.exports=r)}else"function"==typeof define&&define.amd&&define(["require","exports"],t)}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findShadowRoots=function e(t){var n,i,a;return r(this,function(r){switch(r.label){case 0:n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return e instanceof HTMLElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),i=null,r.label=1;case 1:if(!(i=n.nextNode()))return[3,5];if(!(a=f.get(i)))return[3,4];return[4,a];case 2:return r.sent(),[5,o(e(a))];case 3:r.sent(),r.label=4;case 4:return[3,1];case 5:return[2]}})},t.generateHTML=d,t.getHTML=p,t.attachDeclarativeShadowRoots=b,t.setHTMLUnsafe=v,t.parseHTMLUnsafe=y;var a,s,l,u,c=new XMLSerializer,h=HTMLElement.prototype.attachShadow,f=new WeakMap;function d(e,t){var o,a,s,l,u,h,p,b,v=void 0===t?{}:t,m=v.serializableShadowRoots,_=v.shadowRoots;return r(this,function(t){switch(t.label){case 0:if(_=(null==_?void 0:_.filter(Boolean))||[],!(!m||!_[0]))return[3,2];return[4,e.innerHTML];case 1:return t.sent(),[2];case 2:o=document.createTreeWalker(e,NodeFilter.SHOW_ALL,{acceptNode:function(t){return t===e||t instanceof SVGElement?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}}),a=null,t.label=3;case 3:if(!(a=o.nextNode()))return[3,19];if(!(a instanceof CDATASection))return[3,5];return[4,"")];case 4:case 6:case 8:case 10:return t.sent(),[3,16];case 5:if(!(a instanceof Text))return[3,7];return[4,a.nodeValue||""];case 7:if(!(a instanceof Comment))return[3,9];return[4,"\x3c!--".concat(a.nodeValue,"--\x3e")];case 9:if(!(a instanceof SVGElement))return[3,11];return[4,c.serializeToString(a)];case 11:if(!(a instanceof Element))return[3,16];return s=a.tagName.toLowerCase(),l=i([],n(a.attributes),!1).map(function(e){var t=e.name,r=e.value;return"".concat(t,"=").concat(JSON.parse(r))}),u=f.get(a),[4,"<".concat(i([s],n(l),!1).join(" "),">")];case 12:if(t.sent(),!(u&&_.includes(u)))return[3,14];return h=i([],n(d(u,{serializableShadowRoots:m,shadowRoots:_})),!1).join(""),[4,'")];case 13:t.sent(),t.label=14;case 14:if(a.childNodes[0])return[3,16];return[4,"")];case 15:t.sent(),t.label=16;case 16:if(p=a.nextSibling,b=a.parentElement,!(!p&&b&&b!==e))return[3,18];return[4,"")];case 17:t.sent(),t.label=18;case 18:return[3,3];case 19:return[2]}})}function p(e){return void 0===e&&(e={}),i([],n(d(this,e)),!1).join("")}function b(e){var t,r,n=e.querySelectorAll("template[shadowrootmode]");try{for(var i=o(n),a=i.next();!a.done;a=i.next()){var s=a.value,l=s.parentElement,u=s.content,c=l.attachShadow({mode:s.getAttribute("shadowrootmode")});c.append(u),s.remove(),b(c)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}function v(e){this.innerHTML=e,b(this)}HTMLElement.prototype.attachShadow=function(e){var t=h.call(this,e);return f.set(this,t),t};var m=new DOMParser,_=function(e){return b((void 0===e?document:e).documentElement)};function y(e){var t=m.parseFromString(e,"text/html");return _(t),t}(a=Element.prototype).getHTML||(a.getHTML=p),(s=Element.prototype).setHTMLUnsafe||(s.setHTMLUnsafe=v),(l=ShadowRoot.prototype).getHTML||(l.getHTML=p),(u=ShadowRoot.prototype).setHTMLUnsafe||(u.setHTMLUnsafe=v),Document.parseHTMLUnsafe||(Document.parseHTMLUnsafe=y),new Promise(function(e){"complete"===document.readyState?e():(document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}).then(function(){return _()})})}),ev("iBSPL",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.DOMRenderer=void 0;var r=eb("ceFTv");eb("8BuuC");var n=eb("i3JFt"),i=eb("gPvyW"),o=eb("2flNv"),a=function(){function e(){var e=this;this.eventPattern=/^on[A-Z]/,this.ariaPattern=/^aira[A-Z]/,this.document=globalThis.document,this.treeCache=new WeakMap,this.signalCache=new WeakMap,this.keyOf=function(e,t){var r=e.key,n=e.text,i=e.props,o=e.selector;return(null==r?void 0:r.toString())||(null==i?void 0:i.id)||(n||o||"")+t},this.vNodeOf=function(t,r){return t.find(function(t,n){return"".concat(e.keyOf(t,n))===String(r)})},this.propsKeyOf=function(t){return t.startsWith("aria-")?(0,i.toCamelCase)(t):e.eventPattern.test(t)?t.toLowerCase():t},this.attrsNameOf=function(e){return o.VNode.propsMap[e]||e},this.removeProperty=function(t,r){return e.eventPattern.test(r)?t[r.toLowerCase()]=null:t.removeAttribute(e.ariaPattern.test(r)?(0,i.toHyphenCase)(r):e.attrsNameOf(r))},this.setProperty=function(t,r,n){if((0,i.templateOf)(t.tagName)&&"xml"===(0,i.elementTypeOf)(t.tagName)||r.includes("-"))t.setAttribute(e.attrsNameOf(r),n);else try{var o=e.propsKeyOf(r);!e.eventPattern.test(r)||o in t||e.handleCustomEvent(t,o.slice(2)),t[o]=n}catch(i){t.setAttribute(e.attrsNameOf(r),n)}}}return e.prototype.updateProps=function(e,t,n,o,a){void 0===t&&(t={}),void 0===n&&(n={});var s,l,u,c,h=(0,i.diffKeys)(Object.keys(t),Object.keys(n)).group;try{for(var f=r.__values(h[i.DiffStatus.Old]||[]),d=f.next();!d.done;d=f.next()){var p=r.__read(d.value,1)[0];null==o||o(e,p)}}catch(e){s={error:e}}finally{try{d&&!d.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}try{for(var b=r.__values(r.__spreadArray(r.__spreadArray([],r.__read(h[i.DiffStatus.Same]||[]),!1),r.__read(h[i.DiffStatus.New]||[]),!1)),v=b.next();!v.done;v=b.next()){var p=r.__read(v.value,1)[0];t[p]!==n[p]&&(a instanceof Function?a(e,p,n[p]):Reflect.set(e,p,n[p]))}}catch(e){u={error:e}}finally{try{v&&!v.done&&(c=b.return)&&c.call(b)}finally{if(u)throw u.error}}},e.prototype.deleteNode=function(e){var t=e.ref,r=e.node,n=e.children;r instanceof DocumentFragment?null==n||n.forEach(this.deleteNode):r&&(r.remove(),null==t||t())},e.prototype.commitChild=function(e,t,r){void 0===r&&(r=0);var n=e.childNodes[r];n!==t&&(n?n.before(t):e.append(t))},e.prototype.diffVChildren=function(e,t){var n,a,s,l,u,c,h,f,d,p,b,v,m,_,y,g,w,S,O,T,E,P,x,k=this;return r.__generator(this,function(j){switch(j.label){case 0:t.children=t.children.map(function(e){return new o.VNode(e)}),a=(n=(0,i.diffKeys)(e.children.map(this.keyOf),t.children.map(this.keyOf))).map,l=(s=n.group)[i.DiffStatus.Old]&&(0,i.groupBy)(s[i.DiffStatus.Old].map(function(t){var n=r.__read(t,1)[0];return k.vNodeOf(e.children,n)}),function(e){return e.selector+""}),j.label=1;case 1:j.trys.push([1,7,8,9]),c=(u=r.__values(t.children.entries())).next(),j.label=2;case 2:if(c.done)return[3,6];return f=(h=r.__read(c.value,2))[0],d=h[1],b=a[p=this.keyOf(d,f)]===i.DiffStatus.Same?this.vNodeOf(e.children,p):null===(x=null==l?void 0:l[d.selector])||void 0===x?void 0:x.shift(),[4,{index:f,oldVNode:b,newVNode:d}];case 3:if(j.sent(),!((null==b?void 0:b.children[0])||d.children[0]))return[3,5];return b||(b=new o.VNode(r.__assign(r.__assign({},d),{children:[]}))),[5,r.__values(this.diffVChildren(b,d))];case 4:j.sent(),j.label=5;case 5:return c=u.next(),[3,2];case 6:return[3,9];case 7:return O={error:j.sent()},[3,9];case 8:try{c&&!c.done&&(T=u.return)&&T.call(u)}finally{if(O)throw O.error}return[7];case 9:for(_ in m=[],v=l)m.push(_);y=0,j.label=10;case 10:if(!(ythis.h(e)}u(e){var t=this.o++;return this.l[t]=e,this.i.postMessage(t),t}p(e){delete this.l[e]}h(e){var t=e.data;if(t in this.l){var r=this.l[t];delete this.l[t],r()}}}function r(){return r.v||(r.v=new t),r.v}class n{constructor(e,t,r){void 0===r&&(r=0),this.k=e,this.T=null,this.C=null,this.m=!1,this._(t,r)}isIdleCallback(){return 0===this.T}I(){return 2===this.T}cancel(){if(!this.m)switch(this.m=!0,this.T){case 0:cancelIdleCallback(this.C);break;case 1:clearTimeout(this.C);break;case 2:r().p(this.C);break;default:throw TypeError("Unknown CallbackType")}}_(t,n){if(n&&n>0)return this.T=1,void(this.C=setTimeout(()=>{this.P()},n));if(!e.includes(t))throw TypeError("Invalid task priority : "+t);return"background"===t&&"function"==typeof requestIdleCallback?(this.T=0,void(this.C=requestIdleCallback(()=>{this.P()}))):"function"==typeof MessageChannel?(this.T=2,void(this.C=r().u(()=>{this.P()}))):(this.T=1,void(this.C=setTimeout(()=>{this.P()})))}P(){this.m||this.k()}}var i=0;class o{constructor(){this.j=null,this.M=null}isEmpty(){return null==this.j}push(e){if("object"!=typeof e)throw TypeError("Task must be an Object");e.A=i++,this.isEmpty()?(e.N=null,this.j=e):(e.N=this.M,this.M.O=e),e.O=null,this.M=e}takeNextTask(){if(this.isEmpty())return null;var e=this.j;return this.q(e),e}merge(e,t){if("function"!=typeof t)throw TypeError("Must provide a selector function.");if(null==e)throw Error("sourceQueue cannot be null");for(var r=this.j,n=null,i=e.j;i;){var o=i;if(i=i.O,t(o)){for(e.q(o);r&&r.A{n.onprioritychange&&n.onprioritychange(e)})}setPriority(t){if(!e.includes(t))throw TypeError("Invalid task priority: "+t);if(this.R)throw new DOMException("","NotAllowedError");if(this.signal.priority!==t){this.R=!0;var r=this.H;this.H=t;var n=new a("prioritychange",{previousPriority:r});this.signal.dispatchEvent(n),this.R=!1}}}void 0===self.scheduler?(self.scheduler=new class{constructor(){this.S={},e.forEach(e=>{this.S[e]=[new o,new o]}),this.U=null,this.W=new WeakMap}yield(){return this.B(()=>{},{priority:"user-visible"},!0)}postTask(e,t){return this.B(e,t,!1)}B(t,r,n){if(void 0!==(r=Object.assign({},r)).signal){if(null===r.signal||!("aborted"in r.signal)||"function"!=typeof r.signal.addEventListener)return Promise.reject(TypeError("'signal' is not a valid 'AbortSignal'"));if(r.signal&&r.signal.priority&&!e.includes(r.signal.priority))return Promise.reject(TypeError("Invalid task priority: '"+r.signal.priority+"'"))}if(void 0!==r.priority&&(null===r.priority||!e.includes(r.priority)))return Promise.reject(TypeError("Invalid task priority: '"+r.priority+"'"));if(void 0===r.delay&&(r.delay=0),r.delay=Number(r.delay),r.delay<0)return Promise.reject(TypeError("'delay' must be a positive number."));var i={callback:t,options:r,resolve:null,reject:null,hostCallback:null,abortCallback:null,onTaskCompleted:function(){this.options.signal&&this.abortCallback&&(this.options.signal.removeEventListener("abort",this.abortCallback),this.abortCallback=null)},onTaskAborted:function(){this.hostCallback&&(this.hostCallback.cancel(),this.hostCallback=null),this.options.signal.removeEventListener("abort",this.abortCallback),this.abortCallback=null,this.reject(this.options.signal.reason)},isAborted:function(){return this.options.signal&&this.options.signal.aborted},isContinuation:n},o=new Promise((e,t)=>{i.resolve=e,i.reject=t});return this._(i),o}_(e){var t=e.options.signal;if(t){if(t.aborted)return void e.reject(t.reason);e.abortCallback=()=>{e.onTaskAborted()},t.addEventListener("abort",e.abortCallback)}e.options.delay>0?e.hostCallback=new n(()=>{e.hostCallback=null,this.F(e)},null,e.options.delay):(this.G(e),this.J())}F(e){this.G(e),this.U&&(this.U.cancel(),this.U=null),this.K()}L(e){var t=this.W.get(e);if(void 0===t)throw Error("Attempting to change priority on an unregistered signal");if(t!==e.priority){for(var r=0;r<2;r++)this.S[e.priority][r].merge(this.S[t][r],t=>t.options.signal===e);this.W.set(e,e.priority)}}K(){this.U=null,this.V(),this.J()}J(){var{priority:e}=this.X();null!=e&&("background"!==e&&this.U&&this.U.isIdleCallback()&&(this.U.cancel(),this.U=null),this.U||(this.U=new n(()=>{this.K()},e,0)))}G(t){var r;if(!e.includes(r=t.options.priority?t.options.priority:t.options.signal&&t.options.signal.priority?t.options.signal.priority:"user-visible"))throw TypeError("Invalid task priority: "+r);if(t.options.signal&&t.options.signal.priority){var n=t.options.signal;this.W.has(n)||(n.addEventListener("prioritychange",()=>{this.L(n)}),this.W.set(n,n.priority))}this.S[r][t.isContinuation?0:1].push(t)}V(){var e=null;do{var{priority:t,type:r}=this.X();if(null==t)return;e=this.S[t][r].takeNextTask()}while(e.isAborted())try{var n=e.callback();e.resolve(n)}catch(t){e.reject(t)}finally{e.onTaskCompleted()}}X(){for(var t=0;t{},{priority:"user-blocking"})})}()}),ev("i3JFt",function(e,t){var r,n,i;/** + * @license + * web-streams-polyfill v4.0.0 + * Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors. + * This code is released under the MIT license. + * SPDX-License-Identifier: MIT + */function o(){}function a(e){return"object"==typeof e&&null!==e||"function"==typeof e}function s(e,t){try{Object.defineProperty(e,"name",{value:t,configurable:!0})}catch(e){}}U(e.exports,"ReadableStream",()=>t0);let l=Promise,u=Promise.resolve.bind(l),c=Promise.prototype.then,h=Promise.reject.bind(l);function f(e){return new l(e)}function d(e){return f(t=>t(e))}function p(e,t,r){return c.call(e,t,r)}function b(e,t,r){p(p(e,t,r),void 0,o)}function v(e,t){b(e,void 0,t)}function m(e){p(e,void 0,o)}let _=e=>{if("function"==typeof queueMicrotask)_=queueMicrotask;else{let e=d(void 0);_=t=>p(e,t)}return _(e)};function y(e,t,r){if("function"!=typeof e)throw TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function g(e,t,r){try{return d(y(e,t,r))}catch(e){return h(e)}}class w{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){let t=this._back,r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){let e=this._front,t=e,r=this._cursor,n=r+1,i=e._elements,o=i[r];return 16384===n&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),i[r]=void 0,o}forEach(e){let t=this._cursor,r=this._front,n=r._elements;for(;!(t===n.length&&void 0===r._next||t===n.length&&(n=(r=r._next)._elements,t=0,0===n.length));)e(n[t]),++t}peek(){let e=this._front,t=this._cursor;return e._elements[t]}}let S=Symbol("[[AbortSteps]]"),O=Symbol("[[ErrorSteps]]"),T=Symbol("[[CancelSteps]]"),E=Symbol("[[PullSteps]]"),P=Symbol("[[ReleaseSteps]]");function x(e,t){var r;e._ownerReadableStream=t,t._reader=e,"readable"===t._state?A(e):"closed"===t._state?(A(e),M(e)):(r=t._storedError,A(e),R(e,r))}function k(e,t){return t6(e._ownerReadableStream,t)}function j(e){var t;let r=e._ownerReadableStream;"readable"===r._state?R(e,TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):(t=TypeError("Reader was released and can no longer be used to monitor the stream's closedness"),A(e),R(e,t)),r._readableStreamController[P](),r._reader=void 0,e._ownerReadableStream=void 0}function C(e){return TypeError("Cannot "+e+" a stream using a released reader")}function A(e){e._closedPromise=f((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r})}function R(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function M(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}let L=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},N=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function D(e,t){var r;if(void 0!==e&&"object"!=typeof(r=e)&&"function"!=typeof r)throw TypeError(`${t} is not an object.`)}function q(e,t){if("function"!=typeof e)throw TypeError(`${t} is not a function.`)}function I(e,t){if(!("object"==typeof e&&null!==e||"function"==typeof e))throw TypeError(`${t} is not an object.`)}function V(e,t,r){if(void 0===e)throw TypeError(`Parameter ${t} is required in '${r}'.`)}function W(e,t,r){if(void 0===e)throw TypeError(`${t} is required in '${r}'.`)}function B(e){return Number(e)}function $(e,t){var r,n;let i=Number.MAX_SAFE_INTEGER,o=Number(e);if(!L(o=0===(r=o)?0:r))throw TypeError(`${t} is not a finite number`);if((o=0===(n=N(o))?0:n)<0||o>i)throw TypeError(`${t} is outside the accepted range of 0 to ${i}, inclusive`);return L(o)&&0!==o?o:0}function F(e,t){if(!t4(e))throw TypeError(`${t} is not a ReadableStream.`)}function z(e){return new Y(e)}function H(e,t){e._reader._readRequests.push(t)}function K(e,t,r){let n=e._reader._readRequests.shift();r?n._closeSteps():n._chunkSteps(t)}function G(e){return e._reader._readRequests.length}function X(e){let t=e._reader;return void 0!==t&&!!J(t)}class Y{constructor(e){if(V(e,1,"ReadableStreamDefaultReader"),F(e,"First parameter"),t8(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");x(this,e),this._readRequests=new w}get closed(){return J(this)?this._closedPromise:h(ee("closed"))}cancel(e){return J(this)?void 0===this._ownerReadableStream?h(C("cancel")):k(this,e):h(ee("cancel"))}read(){let e,t;if(!J(this))return h(ee("read"));if(void 0===this._ownerReadableStream)return h(C("read from"));let r=f((r,n)=>{e=r,t=n});return Q(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!J(this))throw ee("releaseLock");void 0!==this._ownerReadableStream&&(j(this),Z(this,TypeError("Reader was released")))}}function J(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof Y}function Q(e,t){let r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[E](t)}function Z(e,t){let r=e._readRequests;e._readRequests=new w,r.forEach(e=>{e._errorSteps(t)})}function ee(e){return TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}function et(e){return e.slice()}function er(e,t,r,n,i){new Uint8Array(e).set(new Uint8Array(r,n,i),t)}Object.defineProperties(Y.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),s(Y.prototype.cancel,"cancel"),s(Y.prototype.read,"read"),s(Y.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Y.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let en=e=>(en="function"==typeof e.transfer?e=>e.transfer():"function"==typeof structuredClone?e=>structuredClone(e,{transfer:[e]}):e=>e)(e),ei=e=>(ei="boolean"==typeof e.detached?e=>e.detached:e=>0===e.byteLength)(e);function eo(e,t,r){if(e.slice)return e.slice(t,r);let n=r-t,i=new ArrayBuffer(n);return er(i,0,e,t,n),i}function ea(e,t){let r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(`${String(t)} is not a function`);return r}}function es(e){try{let t=e.done,r=e.value;return p(u(r),e=>({done:t,value:e}))}catch(e){return h(e)}}let el=null!==(i=null!==(r=Symbol.asyncIterator)&&void 0!==r?r:null===(n=Symbol.for)||void 0===n?void 0:n.call(Symbol,"Symbol.asyncIterator"))&&void 0!==i?i:"@@asyncIterator";function eu(e){let t=y(e.nextMethod,e.iterator,[]);if(!a(t))throw TypeError("The iterator.next() method must return an object");return t}class ec{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){let e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?p(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){let t=()=>this._returnSteps(e);return this._ongoingPromise?p(this._ongoingPromise,t,t):t()}_nextSteps(){let e,t;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let r=this._reader,n=f((r,n)=>{e=r,t=n});return Q(r,{_chunkSteps:t=>{this._ongoingPromise=void 0,_(()=>e({value:t,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,j(r),e({value:void 0,done:!0})},_errorSteps:e=>{this._ongoingPromise=void 0,this._isFinished=!0,j(r),t(e)}}),n}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;let t=this._reader;if(!this._preventCancel){let r=k(t,e);return j(t),p(r,()=>({value:e,done:!0}),void 0)}return j(t),d({value:e,done:!0})}}let eh={next(){return ed(this)?this._asyncIteratorImpl.next():h(ep("next"))},return(e){return ed(this)?this._asyncIteratorImpl.return(e):h(ep("return"))},[el](){return this}};function ed(e){if(!a(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof ec}catch(e){return!1}}function ep(e){return TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}Object.defineProperty(eh,el,{enumerable:!1});let eb=Number.isNaN||function(e){return e!=e};function ev(e){return new Uint8Array(eo(e.buffer,e.byteOffset,e.byteOffset+e.byteLength))}function em(e){let t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function e_(e,t,r){if("number"!=typeof r||eb(r)||r<0||r===1/0)throw RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function ey(e){e._queue=new w,e._queueTotalSize=0}function eg(e){return e===DataView}class ew{constructor(){throw TypeError("Illegal constructor")}get view(){if(!eT(this))throw eX("view");return this._view}respond(e){if(!eT(this))throw eX("respond");if(V(e,1,"respond"),e=$(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");if(ei(this._view.buffer))throw TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");eH(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!eT(this))throw eX("respondWithNewView");if(V(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");if(ei(e.buffer))throw TypeError("The given view's buffer has been detached and so cannot be used as a response");eK(this._associatedReadableByteStreamController,e)}}Object.defineProperties(ew.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),s(ew.prototype.respond,"respond"),s(ew.prototype.respondWithNewView,"respondWithNewView"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ew.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class eS{constructor(){throw TypeError("Illegal constructor")}get byobRequest(){if(!eO(this))throw eY("byobRequest");return ez(this)}get desiredSize(){if(!eO(this))throw eY("desiredSize");return eU(this)}close(){if(!eO(this))throw eY("close");if(this._closeRequested)throw TypeError("The stream has already been closed; do not close it again!");let e=this._controlledReadableByteStream._state;if("readable"!==e)throw TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);eW(this)}enqueue(e){if(!eO(this))throw eY("enqueue");if(V(e,1,"enqueue"),!ArrayBuffer.isView(e))throw TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw TypeError("stream is closed or draining");let t=this._controlledReadableByteStream._state;if("readable"!==t)throw TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);eB(this,e)}error(e){if(!eO(this))throw eY("error");e$(this,e)}[T](e){eP(this),ey(this);let t=this._cancelAlgorithm(e);return eV(this),t}[E](e){let t=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void eF(this,e);let r=this._autoAllocateChunkSize;if(void 0!==r){let t;try{t=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}let n={buffer:t,bufferByteLength:r,byteOffset:0,byteLength:r,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(n)}H(t,e),eE(this)}[P](){if(this._pendingPullIntos.length>0){let e=this._pendingPullIntos.peek();e.readerType="none",this._pendingPullIntos=new w,this._pendingPullIntos.push(e)}}}function eO(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof eS}function eT(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof ew}function eE(e){if(function(e){let t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&!!(X(t)&&G(t)>0||eZ(t)&&eQ(t)>0||eU(e)>0)}(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,b(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,eE(e)),null),t=>(e$(e,t),null))}}function eP(e){eN(e),e._pendingPullIntos=new w}function ex(e,t){let r=!1;"closed"===e._state&&(r=!0);let n=ek(t);"default"===t.readerType?K(e,n,r):function(e,t,r){let n=e._reader._readIntoRequests.shift();r?n._closeSteps(t):n._chunkSteps(t)}(e,n,r)}function ek(e){let t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function ej(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function eC(e,t,r,n){let i;try{i=eo(t,r,r+n)}catch(t){throw e$(e,t),t}ej(e,i,0,n)}function eA(e,t){t.bytesFilled>0&&eC(e,t.buffer,t.byteOffset,t.bytesFilled),eI(e)}function eR(e,t){let r=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),n=t.bytesFilled+r,i=r,o=!1,a=n-n%t.elementSize;a>=t.minimumFill&&(i=a-t.bytesFilled,o=!0);let s=e._queue;for(;i>0;){let r=s.peek(),n=Math.min(i,r.byteLength),o=t.byteOffset+t.bytesFilled;er(t.buffer,o,r.buffer,r.byteOffset,n),r.byteLength===n?s.shift():(r.byteOffset+=n,r.byteLength-=n),e._queueTotalSize-=n,eM(e,n,t),i-=n}return o}function eM(e,t,r){r.bytesFilled+=t}function eL(e){0===e._queueTotalSize&&e._closeRequested?(eV(e),t5(e._controlledReadableByteStream)):eE(e)}function eN(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function eD(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;let t=e._pendingPullIntos.peek();eR(e,t)&&(eI(e),ex(e._controlledReadableByteStream,t))}}function eq(e,t){let r=e._pendingPullIntos.peek();eN(e),"closed"===e._controlledReadableByteStream._state?function(e,t){"none"===t.readerType&&eI(e);let r=e._controlledReadableByteStream;if(eZ(r))for(;eQ(r)>0;)ex(r,eI(e))}(e,r):function(e,t,r){if(eM(0,t,r),"none"===r.readerType)return eA(e,r),void eD(e);if(r.bytesFilled0){let t=r.byteOffset+r.bytesFilled;eC(e,r.buffer,t-n,n)}r.bytesFilled-=n,ex(e._controlledReadableByteStream,r),eD(e)}(e,t,r),eE(e)}function eI(e){return e._pendingPullIntos.shift()}function eV(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function eW(e){let t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state){if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){let t=e._pendingPullIntos.peek();if(t.bytesFilled%t.elementSize!=0){let t=TypeError("Insufficient bytes to fill elements in the given buffer");throw e$(e,t),t}}eV(e),t5(t)}}}function eB(e,t){let r=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==r._state)return;let{buffer:n,byteOffset:i,byteLength:o}=t;if(ei(n))throw TypeError("chunk's buffer is detached and so cannot be enqueued");let a=en(n);if(e._pendingPullIntos.length>0){let t=e._pendingPullIntos.peek();if(ei(t.buffer))throw TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");eN(e),t.buffer=en(t.buffer),"none"===t.readerType&&eA(e,t)}X(r)?(function(e){let t=e._controlledReadableByteStream._reader;for(;t._readRequests.length>0;){if(0===e._queueTotalSize)return;eF(e,t._readRequests.shift())}}(e),0===G(r))?ej(e,a,i,o):(e._pendingPullIntos.length>0&&eI(e),K(r,new Uint8Array(a,i,o),!1)):eZ(r)?(ej(e,a,i,o),eD(e)):ej(e,a,i,o),eE(e)}function e$(e,t){let r=e._controlledReadableByteStream;"readable"===r._state&&(eP(e),ey(e),eV(e),t9(r,t))}function eF(e,t){let r=e._queue.shift();e._queueTotalSize-=r.byteLength,eL(e);let n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);t._chunkSteps(n)}function ez(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){let t=e._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),n=Object.create(ew.prototype);n._associatedReadableByteStreamController=e,n._view=r,e._byobRequest=n}return e._byobRequest}function eU(e){let t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function eH(e,t){let r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(r.bytesFilled+t>r.byteLength)throw RangeError("bytesWritten out of range")}r.buffer=en(r.buffer),eq(e,t)}function eK(e,t){let r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw RangeError("The region specified by view does not match byobRequest");if(r.bufferByteLength!==t.buffer.byteLength)throw RangeError("The buffer of view has different capacity than byobRequest");if(r.bytesFilled+t.byteLength>r.byteLength)throw RangeError("The region specified by view is larger than byobRequest");let n=t.byteLength;r.buffer=en(t.buffer),eq(e,n)}function eG(e,t,r,n,i,o,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,ey(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=a,t._pendingPullIntos=new w,e._readableStreamController=t,b(d(r()),()=>(t._started=!0,eE(t),null),e=>(e$(t,e),null))}function eX(e){return TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function eY(e){return TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function eJ(e,t){e._reader._readIntoRequests.push(t)}function eQ(e){return e._reader._readIntoRequests.length}function eZ(e){let t=e._reader;return void 0!==t&&!!e1(t)}Object.defineProperties(eS.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),s(eS.prototype.close,"close"),s(eS.prototype.enqueue,"enqueue"),s(eS.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(eS.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class e0{constructor(e){if(V(e,1,"ReadableStreamBYOBReader"),F(e,"First parameter"),t8(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");if(!eO(e._readableStreamController))throw TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");x(this,e),this._readIntoRequests=new w}get closed(){return e1(this)?this._closedPromise:h(e4("closed"))}cancel(e){return e1(this)?void 0===this._ownerReadableStream?h(C("cancel")):k(this,e):h(e4("cancel"))}read(e,t={}){let r,n,i;if(!e1(this))return h(e4("read"));if(!ArrayBuffer.isView(e))return h(TypeError("view must be an array buffer view"));if(0===e.byteLength)return h(TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return h(TypeError("view's buffer must have non-zero byteLength"));if(ei(e.buffer))return h(TypeError("view's buffer has been detached"));try{var o,a;o="options",D(t,o),r={min:$(null!==(a=null==t?void 0:t.min)&&void 0!==a?a:1,`${o} has member 'min' that`)}}catch(e){return h(e)}let s=r.min;if(0===s)return h(TypeError("options.min must be greater than 0"));if(eg(e.constructor)){if(s>e.byteLength)return h(RangeError("options.min must be less than or equal to view's byteLength"))}else if(s>e.length)return h(RangeError("options.min must be less than or equal to view's length"));if(void 0===this._ownerReadableStream)return h(C("read from"));let l=f((e,t)=>{n=e,i=t});return e2(this,e,s,{_chunkSteps:e=>n({value:e,done:!1}),_closeSteps:e=>n({value:e,done:!0}),_errorSteps:e=>i(e)}),l}releaseLock(){if(!e1(this))throw e4("releaseLock");void 0!==this._ownerReadableStream&&(j(this),e3(this,TypeError("Reader was released")))}}function e1(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof e0}function e2(e,t,r,n){let i=e._ownerReadableStream;i._disturbed=!0,"errored"===i._state?n._errorSteps(i._storedError):function(e,t,r,n){let i;let o=e._controlledReadableByteStream,a=t.constructor,s=eg(a)?1:a.BYTES_PER_ELEMENT,{byteOffset:l,byteLength:u}=t;try{i=en(t.buffer)}catch(e){return void n._errorSteps(e)}let c={buffer:i,bufferByteLength:i.byteLength,byteOffset:l,byteLength:u,bytesFilled:0,minimumFill:r*s,elementSize:s,viewConstructor:a,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(c),void eJ(o,n);if("closed"!==o._state){if(e._queueTotalSize>0){if(eR(e,c)){let t=ek(c);return eL(e),void n._chunkSteps(t)}if(e._closeRequested){let t=TypeError("Insufficient bytes to fill elements in the given buffer");return e$(e,t),void n._errorSteps(t)}}e._pendingPullIntos.push(c),eJ(o,n),eE(e)}else{let e=new a(c.buffer,c.byteOffset,0);n._closeSteps(e)}}(i._readableStreamController,t,r,n)}function e3(e,t){let r=e._readIntoRequests;e._readIntoRequests=new w,r.forEach(e=>{e._errorSteps(t)})}function e4(e){return TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function e8(e,t){let{highWaterMark:r}=e;if(void 0===r)return t;if(eb(r)||r<0)throw RangeError("Invalid highWaterMark");return r}function e6(e){let{size:t}=e;return t||(()=>1)}function e5(e,t){D(e,t);let r=null==e?void 0:e.highWaterMark,n=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:B(r),size:void 0===n?void 0:(q(n,`${t} has member 'size' that`),e=>B(n(e)))}}function e9(e,t){if(!tr(e))throw TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(e0.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),s(e0.prototype.cancel,"cancel"),s(e0.prototype.read,"read"),s(e0.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(e0.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});let e7="function"==typeof AbortController;class te{constructor(e={},t={}){void 0===e?e=null:I(e,"First parameter");let r=e5(t,"Second parameter"),n=function(e,t){D(e,t);let r=null==e?void 0:e.abort,n=null==e?void 0:e.close,i=null==e?void 0:e.start,o=null==e?void 0:e.type,a=null==e?void 0:e.write;return{abort:void 0===r?void 0:(q(r,`${t} has member 'abort' that`),t=>g(r,e,[t])),close:void 0===n?void 0:(q(n,`${t} has member 'close' that`),()=>g(n,e,[])),start:void 0===i?void 0:(q(i,`${t} has member 'start' that`),t=>y(i,e,[t])),write:void 0===a?void 0:(q(a,`${t} has member 'write' that`),(t,r)=>g(a,e,[t,r])),type:o}}(e,"First parameter");if(tt(this),void 0!==n.type)throw RangeError("Invalid type is specified");let i=e6(r);!function(e,t,r,n){let i,o;let a=Object.create(ty.prototype);i=void 0!==t.start?()=>t.start(a):()=>{},o=void 0!==t.write?e=>t.write(e,a):()=>d(void 0),tw(e,a,i,o,void 0!==t.close?()=>t.close():()=>d(void 0),void 0!==t.abort?e=>t.abort(e):()=>d(void 0),r,n)}(this,n,e8(r,1),i)}get locked(){if(!tr(this))throw tx("locked");return tn(this)}abort(e){return tr(this)?tn(this)?h(TypeError("Cannot abort a stream that already has a writer")):ti(this,e):h(tx("abort"))}close(){return tr(this)?tn(this)?h(TypeError("Cannot close a stream that already has a writer")):tu(this)?h(TypeError("Cannot close an already-closing stream")):to(this):h(tx("close"))}getWriter(){if(!tr(this))throw tx("getWriter");return new tf(this)}}function tt(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new w,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function tr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof te}function tn(e){return void 0!==e._writer}function ti(e,t){var r;if("closed"===e._state||"errored"===e._state)return d(void 0);e._writableStreamController._abortReason=t,null===(r=e._writableStreamController._abortController)||void 0===r||r.abort(t);let n=e._state;if("closed"===n||"errored"===n)return d(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let i=!1;"erroring"===n&&(i=!0,t=void 0);let o=f((r,n)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:n,_reason:t,_wasAlreadyErroring:i}});return e._pendingAbortRequest._promise=o,i||ts(e,t),o}function to(e){var t;let r=e._state;if("closed"===r||"errored"===r)return h(TypeError(`The stream (in ${r} state) is not in the writable state and cannot be closed`));let n=f((t,r)=>{e._closeRequest={_resolve:t,_reject:r}}),i=e._writer;return void 0!==i&&e._backpressure&&"writable"===r&&tq(i),e_(t=e._writableStreamController,t_,0),tT(t),n}function ta(e,t){"writable"!==e._state?tl(e):ts(e,t)}function ts(e,t){let r=e._writableStreamController;e._state="erroring",e._storedError=t;let n=e._writer;void 0!==n&&tb(n,t),!(void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest)&&r._started&&tl(e)}function tl(e){e._state="errored",e._writableStreamController[O]();let t=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(t)}),e._writeRequests=new w,void 0===e._pendingAbortRequest)return void tc(e);let r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void tc(e);b(e._writableStreamController[S](r._reason),()=>(r._resolve(),tc(e),null),t=>(r._reject(t),tc(e),null))}function tu(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function tc(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);let t=e._writer;void 0!==t&&tR(t,e._storedError)}function th(e,t){let r=e._writer;void 0!==r&&t!==e._backpressure&&(t?tL(r):tq(r)),e._backpressure=t}Object.defineProperties(te.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),s(te.prototype.abort,"abort"),s(te.prototype.close,"close"),s(te.prototype.getWriter,"getWriter"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(te.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class tf{constructor(e){if(V(e,1,"WritableStreamDefaultWriter"),e9(e,"First parameter"),tn(e))throw TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;let t=e._state;if("writable"===t)!tu(e)&&e._backpressure?tL(this):(tL(this),tq(this)),tA(this);else if("erroring"===t)tN(this,e._storedError),tA(this);else if("closed"===t)tL(this),tq(this),tA(this),tM(this);else{let t=e._storedError;tN(this,t),tA(this),tR(this,t)}}get closed(){return td(this)?this._closedPromise:h(tj("closed"))}get desiredSize(){if(!td(this))throw tj("desiredSize");if(void 0===this._ownerWritableStream)throw tC("desiredSize");return function(e){let t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:tO(t._writableStreamController)}(this)}get ready(){return td(this)?this._readyPromise:h(tj("ready"))}abort(e){return td(this)?void 0===this._ownerWritableStream?h(tC("abort")):ti(this._ownerWritableStream,e):h(tj("abort"))}close(){if(!td(this))return h(tj("close"));let e=this._ownerWritableStream;return void 0===e?h(tC("close")):tu(e)?h(TypeError("Cannot close an already-closing stream")):tp(this)}releaseLock(){if(!td(this))throw tj("releaseLock");void 0!==this._ownerWritableStream&&tv(this)}write(e){return td(this)?void 0===this._ownerWritableStream?h(tC("write to")):tm(this,e):h(tj("write"))}}function td(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof tf}function tp(e){return to(e._ownerWritableStream)}function tb(e,t){"pending"===e._readyPromiseState?tD(e,t):tN(e,t)}function tv(e){let t=e._ownerWritableStream,r=TypeError("Writer was released and can no longer be used to monitor the stream's closedness");tb(e,r),"pending"===e._closedPromiseState||tA(e),tR(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function tm(e,t){let r=e._ownerWritableStream,n=r._writableStreamController,i=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return tE(e,t),1}}(n,t);if(r!==e._ownerWritableStream)return h(tC("write to"));let o=r._state;if("errored"===o)return h(r._storedError);if(tu(r)||"closed"===o)return h(TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return h(r._storedError);let a=f((e,t)=>{r._writeRequests.push({_resolve:e,_reject:t})});return function(e,t,r){try{e_(e,t,r)}catch(t){return void tE(e,t)}let n=e._controlledWritableStream;tu(n)||"writable"!==n._state||th(n,0>=tO(e)),tT(e)}(n,t,i),a}Object.defineProperties(tf.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),s(tf.prototype.abort,"abort"),s(tf.prototype.close,"close"),s(tf.prototype.releaseLock,"releaseLock"),s(tf.prototype.write,"write"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tf.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});let t_={};class ty{constructor(){throw TypeError("Illegal constructor")}get abortReason(){if(!tg(this))throw tk("abortReason");return this._abortReason}get signal(){if(!tg(this))throw tk("signal");if(void 0===this._abortController)throw TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(e){if(!tg(this))throw tk("error");"writable"===this._controlledWritableStream._state&&tP(this,e)}[S](e){let t=this._abortAlgorithm(e);return tS(this),t}[O](){ey(this)}}function tg(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof ty}function tw(e,t,r,n,i,o,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,ey(t),t._abortReason=void 0,t._abortController=function(){if(e7)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=o,th(e,0>=tO(t)),b(d(r()),()=>(t._started=!0,tT(t),null),r=>(t._started=!0,ta(e,r),null))}function tS(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function tO(e){return e._strategyHWM-e._queueTotalSize}function tT(e){let t=e._controlledWritableStream;if(!e._started||void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void tl(t);if(0===e._queue.length)return;let r=e._queue.peek().value;r===t_?function(e){let t=e._controlledWritableStream;t._inFlightCloseRequest=t._closeRequest,t._closeRequest=void 0,em(e);let r=e._closeAlgorithm();tS(e),b(r,()=>((function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";let t=e._writer;void 0!==t&&tM(t)})(t),null),e=>(t._inFlightCloseRequest._reject(e),t._inFlightCloseRequest=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._reject(e),t._pendingAbortRequest=void 0),ta(t,e),null))}(e):function(e,t){let r=e._controlledWritableStream;r._inFlightWriteRequest=r._writeRequests.shift(),b(e._writeAlgorithm(t),()=>{r._inFlightWriteRequest._resolve(void 0),r._inFlightWriteRequest=void 0;let t=r._state;return em(e),tu(r)||"writable"!==t||th(r,0>=tO(e)),tT(e),null},t=>("writable"===r._state&&tS(e),r._inFlightWriteRequest._reject(t),r._inFlightWriteRequest=void 0,ta(r,t),null))}(e,r)}function tE(e,t){"writable"===e._controlledWritableStream._state&&tP(e,t)}function tP(e,t){let r=e._controlledWritableStream;tS(e),ts(r,t)}function tx(e){return TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function tk(e){return TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function tj(e){return TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function tC(e){return TypeError("Cannot "+e+" a stream using a released writer")}function tA(e){e._closedPromise=f((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function tR(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function tM(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function tL(e){e._readyPromise=f((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function tN(e,t){tL(e),tD(e,t)}function tD(e,t){void 0!==e._readyPromise_reject&&(m(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function tq(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(ty.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ty.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});let tI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==ef?ef:void 0,tV=function(){let e=null==tI?void 0:tI.DOMException;return!function(e){if("function"!=typeof e&&"object"!=typeof e||"DOMException"!==e.name)return!1;try{return new e,!0}catch(e){return!1}}(e)?void 0:e}()||function(){let e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return s(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}();function tW(e,t,r,n,i,a){let s=z(e),l=new tf(t);e._disturbed=!0;let u=!1,c=d(void 0);return f((_,y)=>{var g,w;let S;if(void 0!==a){if(S=()=>{let r=void 0!==a.reason?a.reason:new tV("Aborted","AbortError"),o=[];n||o.push(()=>"writable"===t._state?ti(t,r):d(void 0)),i||o.push(()=>"readable"===e._state?t6(e,r):d(void 0)),E(()=>Promise.all(o.map(e=>e())),!0,r)},a.aborted)return void S();a.addEventListener("abort",S)}if(T(e,s._closedPromise,e=>(n?P(!0,e):E(()=>ti(t,e),!0,e),null)),T(t,l._closedPromise,t=>(i?P(!0,t):E(()=>t6(e,t),!0,t),null)),g=s._closedPromise,w=()=>(r?P():E(()=>(function(e){let t=e._ownerWritableStream,r=t._state;return tu(t)||"closed"===r?d(void 0):"errored"===r?h(t._storedError):tp(e)})(l)),null),"closed"===e._state?w():b(g,w),tu(t)||"closed"===t._state){let t=TypeError("the destination writable stream closed before all data could be piped to it");i?P(!0,t):E(()=>t6(e,t),!0,t)}function O(){let e=c;return p(c,()=>e!==c?O():void 0)}function T(e,t,r){"errored"===e._state?r(e._storedError):v(t,r)}function E(e,r,n){function i(){return b(e(),()=>x(r,n),e=>x(!0,e)),null}u||(u=!0,"writable"!==t._state||tu(t)?i():b(O(),i))}function P(e,r){u||(u=!0,"writable"!==t._state||tu(t)?x(e,r):b(O(),()=>x(e,r)))}function x(e,t){return tv(l),j(s),void 0!==a&&a.removeEventListener("abort",S),e?y(t):_(void 0),null}m(f((e,t)=>{!function r(n){n?e():p(u?d(!0):p(l._readyPromise,()=>f((e,t)=>{Q(s,{_chunkSteps:t=>{c=p(tm(l,t),void 0,o),e(!1)},_closeSteps:()=>e(!0),_errorSteps:t})})),r,t)}(!1)}))})}class tB{constructor(){throw TypeError("Illegal constructor")}get desiredSize(){if(!t$(this))throw tQ("desiredSize");return tX(this)}close(){if(!t$(this))throw tQ("close");if(!tY(this))throw TypeError("The stream is not in a state that permits close");tH(this)}enqueue(e){if(!t$(this))throw tQ("enqueue");if(!tY(this))throw TypeError("The stream is not in a state that permits enqueue");return tK(this,e)}error(e){if(!t$(this))throw tQ("error");tG(this,e)}[T](e){ey(this);let t=this._cancelAlgorithm(e);return tU(this),t}[E](e){let t=this._controlledReadableStream;if(this._queue.length>0){let r=em(this);this._closeRequested&&0===this._queue.length?(tU(this),t5(t)):tF(this),e._chunkSteps(r)}else H(t,e),tF(this)}[P](){}}function t$(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof tB}function tF(e){if(tz(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,b(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,tF(e)),null),t=>(tG(e,t),null))}}function tz(e){let t=e._controlledReadableStream;return!!tY(e)&&!!e._started&&(!!(t8(t)&&G(t)>0)||tX(e)>0)}function tU(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function tH(e){if(!tY(e))return;let t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(tU(e),t5(t))}function tK(e,t){if(!tY(e))return;let r=e._controlledReadableStream;if(t8(r)&&G(r)>0)K(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw tG(e,t),t}try{e_(e,t,r)}catch(t){throw tG(e,t),t}}tF(e)}function tG(e,t){let r=e._controlledReadableStream;"readable"===r._state&&(ey(e),tU(e),t9(r,t))}function tX(e){let t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function tY(e){let t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function tJ(e,t,r,n,i,o,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ey(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,e._readableStreamController=t,b(d(r()),()=>(t._started=!0,tF(t),null),e=>(tG(t,e),null))}function tQ(e){return TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function tZ(e,t){D(e,t);let r=null==e?void 0:e.preventAbort,n=null==e?void 0:e.preventCancel,i=null==e?void 0:e.preventClose,o=null==e?void 0:e.signal;return void 0!==o&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw TypeError(`${t} is not an AbortSignal.`)}(o,`${t} has member 'signal' that`),{preventAbort:!!r,preventCancel:!!n,preventClose:!!i,signal:o}}Object.defineProperties(tB.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),s(tB.prototype.close,"close"),s(tB.prototype.enqueue,"enqueue"),s(tB.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tB.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class t0{constructor(e={},t={}){void 0===e?e=null:I(e,"First parameter");let r=e5(t,"Second parameter"),n=function(e,t){D(e,t);let r=null==e?void 0:e.autoAllocateChunkSize,n=null==e?void 0:e.cancel,i=null==e?void 0:e.pull,o=null==e?void 0:e.start,a=null==e?void 0:e.type;return{autoAllocateChunkSize:void 0===r?void 0:$(r,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===n?void 0:(q(n,`${t} has member 'cancel' that`),t=>g(n,e,[t])),pull:void 0===i?void 0:(q(i,`${t} has member 'pull' that`),t=>g(i,e,[t])),start:void 0===o?void 0:(q(o,`${t} has member 'start' that`),t=>y(o,e,[t])),type:void 0===a?void 0:function(e,t){if("bytes"!=(e=`${e}`))throw TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}(a,`${t} has member 'type' that`)}}(e,"First parameter");if(t3(this),"bytes"===n.type){if(void 0!==r.size)throw RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,r){let n,i,o;let a=Object.create(eS.prototype);n=void 0!==t.start?()=>t.start(a):()=>{},i=void 0!==t.pull?()=>t.pull(a):()=>d(void 0),o=void 0!==t.cancel?e=>t.cancel(e):()=>d(void 0);let s=t.autoAllocateChunkSize;if(0===s)throw TypeError("autoAllocateChunkSize must be greater than 0");eG(e,a,n,i,o,r,s)}(this,n,e8(r,0))}else{let e=e6(r);!function(e,t,r,n){let i,o;let a=Object.create(tB.prototype);i=void 0!==t.start?()=>t.start(a):()=>{},o=void 0!==t.pull?()=>t.pull(a):()=>d(void 0),tJ(e,a,i,o,void 0!==t.cancel?e=>t.cancel(e):()=>d(void 0),r,n)}(this,n,e8(r,1),e)}}get locked(){if(!t4(this))throw t7("locked");return t8(this)}cancel(e){return t4(this)?t8(this)?h(TypeError("Cannot cancel a stream that already has a reader")):t6(this,e):h(t7("cancel"))}getReader(e){if(!t4(this))throw t7("getReader");return void 0===function(e,t){D(e,t);let r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:function(e,t){if("byob"!=(e=`${e}`))throw TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}(r,`${t} has member 'mode' that`)}}(e,"First parameter").mode?z(this):new e0(this)}pipeThrough(e,t={}){if(!t4(this))throw t7("pipeThrough");V(e,1,"pipeThrough");let r=function(e,t){D(e,t);let r=null==e?void 0:e.readable;W(r,"readable","ReadableWritablePair"),F(r,`${t} has member 'readable' that`);let n=null==e?void 0:e.writable;return W(n,"writable","ReadableWritablePair"),e9(n,`${t} has member 'writable' that`),{readable:r,writable:n}}(e,"First parameter"),n=tZ(t,"Second parameter");if(t8(this))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(tn(r.writable))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return m(tW(this,r.writable,n.preventClose,n.preventAbort,n.preventCancel,n.signal)),r.readable}pipeTo(e,t={}){let r;if(!t4(this))return h(t7("pipeTo"));if(void 0===e)return h("Parameter 1 is required in 'pipeTo'.");if(!tr(e))return h(TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));try{r=tZ(t,"Second parameter")}catch(e){return h(e)}return t8(this)?h(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):tn(e)?h(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):tW(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!t4(this))throw t7("tee");return et(eO(this._readableStreamController)?function(e){let t,r,n,i,o,a=z(e),s=!1,l=!1,u=!1,c=!1,h=!1,p=f(e=>{o=e});function b(e){v(e._closedPromise,t=>(e!==a||(e$(n._readableStreamController,t),e$(i._readableStreamController,t),c&&h||o(void 0)),null))}function m(){e1(a)&&(j(a),b(a=z(e))),Q(a,{_chunkSteps:t=>{_(()=>{l=!1,u=!1;let r=t;if(!c&&!h)try{r=ev(t)}catch(t){return e$(n._readableStreamController,t),e$(i._readableStreamController,t),void o(t6(e,t))}c||eB(n._readableStreamController,t),h||eB(i._readableStreamController,r),s=!1,l?g():u&&w()})},_closeSteps:()=>{s=!1,c||eW(n._readableStreamController),h||eW(i._readableStreamController),n._readableStreamController._pendingPullIntos.length>0&&eH(n._readableStreamController,0),i._readableStreamController._pendingPullIntos.length>0&&eH(i._readableStreamController,0),c&&h||o(void 0)},_errorSteps:()=>{s=!1}})}function y(t,r){J(a)&&(j(a),b(a=new e0(e)));let f=r?i:n,d=r?n:i;e2(a,t,1,{_chunkSteps:t=>{_(()=>{l=!1,u=!1;let n=r?h:c;if(r?c:h)n||eK(f._readableStreamController,t);else{let r;try{r=ev(t)}catch(t){return e$(f._readableStreamController,t),e$(d._readableStreamController,t),void o(t6(e,t))}n||eK(f._readableStreamController,t),eB(d._readableStreamController,r)}s=!1,l?g():u&&w()})},_closeSteps:e=>{s=!1;let t=r?h:c,n=r?c:h;t||eW(f._readableStreamController),n||eW(d._readableStreamController),void 0!==e&&(t||eK(f._readableStreamController,e),!n&&d._readableStreamController._pendingPullIntos.length>0&&eH(d._readableStreamController,0)),t&&n||o(void 0)},_errorSteps:()=>{s=!1}})}function g(){if(s)return l=!0,d(void 0);s=!0;let e=ez(n._readableStreamController);return null===e?m():y(e._view,!1),d(void 0)}function w(){if(s)return u=!0,d(void 0);s=!0;let e=ez(i._readableStreamController);return null===e?m():y(e._view,!0),d(void 0)}function S(){}return n=t2(S,g,function(n){if(c=!0,t=n,h){let n=t6(e,et([t,r]));o(n)}return p}),i=t2(S,w,function(n){if(h=!0,r=n,c){let n=t6(e,et([t,r]));o(n)}return p}),b(a),[n,i]}(this):function(e,t){let r=z(e),n,i,o,a,s,l=!1,u=!1,c=!1,h=!1,p=f(e=>{s=e});function b(){return l?u=!0:(l=!0,Q(r,{_chunkSteps:e=>{_(()=>{u=!1,c||tK(o._readableStreamController,e),h||tK(a._readableStreamController,e),l=!1,u&&b()})},_closeSteps:()=>{l=!1,c||tH(o._readableStreamController),h||tH(a._readableStreamController),c&&h||s(void 0)},_errorSteps:()=>{l=!1}})),d(void 0)}function m(){}return o=t1(m,b,function(t){if(c=!0,n=t,h){let t=t6(e,et([n,i]));s(t)}return p}),a=t1(m,b,function(t){if(h=!0,i=t,c){let t=t6(e,et([n,i]));s(t)}return p}),v(r._closedPromise,e=>(tG(o._readableStreamController,e),tG(a._readableStreamController,e),c&&h||s(void 0),null)),[o,a]}(this))}values(e){if(!t4(this))throw t7("values");return function(e,t){let r=new ec(z(e),t),n=Object.create(eh);return n._asyncIteratorImpl=r,n}(this,(D(e,"First parameter"),{preventCancel:!!(null==e?void 0:e.preventCancel)}).preventCancel)}[el](e){return this.values(e)}static from(e){var t;let r;return a(e)&&void 0!==e.getReader?(t=e.getReader(),r=t1(o,function(){let e;try{e=t.read()}catch(e){return h(e)}return p(e,e=>{if(!a(e))throw TypeError("The promise returned by the reader.read() method must fulfill with an object");if(e.done)tH(r._readableStreamController);else{let t=e.value;tK(r._readableStreamController,t)}},void 0)},function(e){try{return d(t.cancel(e))}catch(e){return h(e)}},0)):function(e){let t;let r=function e(t,r="sync",n){if(void 0===n){if("async"===r){if(void 0===(n=ea(t,el)))return function(e){let t={next(){let t;try{t=eu(e)}catch(e){return h(e)}return es(t)},return(t){let r;try{let n=ea(e.iterator,"return");if(void 0===n)return d({done:!0,value:t});r=y(n,e.iterator,[t])}catch(e){return h(e)}return a(r)?es(r):h(TypeError("The iterator.return() method must return an object"))}};return{iterator:t,nextMethod:t.next,done:!1}}(e(t,"sync",ea(t,Symbol.iterator)))}else n=ea(t,Symbol.iterator)}if(void 0===n)throw TypeError("The object is not iterable");let i=y(n,t,[]);if(!a(i))throw TypeError("The iterator method must return an object");return{iterator:i,nextMethod:i.next,done:!1}}(e,"async");return t=t1(o,function(){let e;try{e=eu(r)}catch(e){return h(e)}return p(d(e),e=>{if(!a(e))throw TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(e.done)tH(t._readableStreamController);else{let r=e.value;tK(t._readableStreamController,r)}},void 0)},function(e){let t;let n=r.iterator;try{t=ea(n,"return")}catch(e){return h(e)}return void 0===t?d(void 0):p(g(t,n,[e]),e=>{if(!a(e))throw TypeError("The promise returned by the iterator.return() method must fulfill with an object")},void 0)},0)}(e)}}function t1(e,t,r,n=1,i=()=>1){let o=Object.create(t0.prototype);return t3(o),tJ(o,Object.create(tB.prototype),e,t,r,n,i),o}function t2(e,t,r){let n=Object.create(t0.prototype);return t3(n),eG(n,Object.create(eS.prototype),e,t,r,0,void 0),n}function t3(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function t4(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof t0}function t8(e){return void 0!==e._reader}function t6(e,t){if(e._disturbed=!0,"closed"===e._state)return d(void 0);if("errored"===e._state)return h(e._storedError);t5(e);let r=e._reader;if(void 0!==r&&e1(r)){let e=r._readIntoRequests;r._readIntoRequests=new w,e.forEach(e=>{e._closeSteps(void 0)})}return p(e._readableStreamController[T](t),o,void 0)}function t5(e){e._state="closed";let t=e._reader;if(void 0!==t&&(M(t),J(t))){let e=t._readRequests;t._readRequests=new w,e.forEach(e=>{e._closeSteps()})}}function t9(e,t){e._state="errored",e._storedError=t;let r=e._reader;void 0!==r&&(R(r,t),J(r)?Z(r,t):e3(r,t))}function t7(e){return TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function re(e,t){D(e,t);let r=null==e?void 0:e.highWaterMark;return W(r,"highWaterMark","QueuingStrategyInit"),{highWaterMark:B(r)}}Object.defineProperties(t0,{from:{enumerable:!0}}),Object.defineProperties(t0.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),s(t0.from,"from"),s(t0.prototype.cancel,"cancel"),s(t0.prototype.getReader,"getReader"),s(t0.prototype.pipeThrough,"pipeThrough"),s(t0.prototype.pipeTo,"pipeTo"),s(t0.prototype.tee,"tee"),s(t0.prototype.values,"values"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(t0.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(t0.prototype,el,{value:t0.prototype.values,writable:!0,configurable:!0});let rt=e=>e.byteLength;s(rt,"size");class rr{constructor(e){V(e,1,"ByteLengthQueuingStrategy"),e=re(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!ri(this))throw rn("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!ri(this))throw rn("size");return rt}}function rn(e){return TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function ri(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof rr}Object.defineProperties(rr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(rr.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});let ro=()=>1;s(ro,"size");class ra{constructor(e){V(e,1,"CountQueuingStrategy"),e=re(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!rl(this))throw rs("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!rl(this))throw rs("size");return ro}}function rs(e){return TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function rl(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof ra}Object.defineProperties(ra.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ra.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class ru{constructor(e={},t={},r={}){let n;void 0===e&&(e=null);let i=e5(t,"Second parameter"),o=e5(r,"Third parameter"),a=function(e,t){D(e,t);let r=null==e?void 0:e.cancel,n=null==e?void 0:e.flush,i=null==e?void 0:e.readableType,o=null==e?void 0:e.start,a=null==e?void 0:e.transform,s=null==e?void 0:e.writableType;return{cancel:void 0===r?void 0:(q(r,`${t} has member 'cancel' that`),t=>g(r,e,[t])),flush:void 0===n?void 0:(q(n,`${t} has member 'flush' that`),t=>g(n,e,[t])),readableType:i,start:void 0===o?void 0:(q(o,`${t} has member 'start' that`),t=>y(o,e,[t])),transform:void 0===a?void 0:(q(a,`${t} has member 'transform' that`),(t,r)=>g(a,e,[t,r])),writableType:s}}(e,"First parameter");if(void 0!==a.readableType)throw RangeError("Invalid readableType specified");if(void 0!==a.writableType)throw RangeError("Invalid writableType specified");let s=e8(o,0),l=e6(o),u=e8(i,1),c=e6(i);(function(e,t,r,n,i,o){function a(){return t}e._writable=function(e,t,r,n,i=1,o=()=>1){let a=Object.create(te.prototype);return tt(a),tw(a,Object.create(ty.prototype),e,t,r,n,i,o),a}(a,function(t){return function(e,t){let r=e._transformStreamController;return e._backpressure?p(e._backpressureChangePromise,()=>{let n=e._writable;if("erroring"===n._state)throw n._storedError;return ry(r,t)},void 0):ry(r,t)}(e,t)},function(){return function(e){let t=e._transformStreamController;if(void 0!==t._finishPromise)return t._finishPromise;let r=e._readable;t._finishPromise=f((e,r)=>{t._finishPromise_resolve=e,t._finishPromise_reject=r});let n=t._flushAlgorithm();return rm(t),b(n,()=>("errored"===r._state?rS(t,r._storedError):(tH(r._readableStreamController),rw(t)),null),e=>(tG(r._readableStreamController,e),rS(t,e),null)),t._finishPromise}(e)},function(t){return function(e,t){let r=e._transformStreamController;if(void 0!==r._finishPromise)return r._finishPromise;let n=e._readable;r._finishPromise=f((e,t)=>{r._finishPromise_resolve=e,r._finishPromise_reject=t});let i=r._cancelAlgorithm(t);return rm(r),b(i,()=>("errored"===n._state?rS(r,n._storedError):(tG(n._readableStreamController,t),rw(r)),null),e=>(tG(n._readableStreamController,e),rS(r,e),null)),r._finishPromise}(e,t)},r,n),e._readable=t1(a,function(){return rp(e,!1),e._backpressureChangePromise},function(t){return function(e,t){let r=e._transformStreamController;if(void 0!==r._finishPromise)return r._finishPromise;let n=e._writable;r._finishPromise=f((e,t)=>{r._finishPromise_resolve=e,r._finishPromise_reject=t});let i=r._cancelAlgorithm(t);return rm(r),b(i,()=>("errored"===n._state?rS(r,n._storedError):(tE(n._writableStreamController,t),rd(e),rw(r)),null),t=>(tE(n._writableStreamController,t),rd(e),rS(r,t),null)),r._finishPromise}(e,t)},i,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,rp(e,!0),e._transformStreamController=void 0})(this,f(e=>{n=e}),u,c,s,l),function(e,t){let r,n,i;let o=Object.create(rb.prototype);r=void 0!==t.transform?e=>t.transform(e,o):e=>{try{return r_(o,e),d(void 0)}catch(e){return h(e)}},n=void 0!==t.flush?()=>t.flush(o):()=>d(void 0),i=void 0!==t.cancel?e=>t.cancel(e):()=>d(void 0),o._controlledTransformStream=e,e._transformStreamController=o,o._transformAlgorithm=r,o._flushAlgorithm=n,o._cancelAlgorithm=i,o._finishPromise=void 0,o._finishPromise_resolve=void 0,o._finishPromise_reject=void 0}(this,a),void 0!==a.start?n(a.start(this._transformStreamController)):n(void 0)}get readable(){if(!rc(this))throw rO("readable");return this._readable}get writable(){if(!rc(this))throw rO("writable");return this._writable}}function rc(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof ru}function rh(e,t){tG(e._readable._readableStreamController,t),rf(e,t)}function rf(e,t){rm(e._transformStreamController),tE(e._writable._writableStreamController,t),rd(e)}function rd(e){e._backpressure&&rp(e,!1)}function rp(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=f(t=>{e._backpressureChangePromise_resolve=t}),e._backpressure=t}Object.defineProperties(ru.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ru.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});class rb{constructor(){throw TypeError("Illegal constructor")}get desiredSize(){if(!rv(this))throw rg("desiredSize");return tX(this._controlledTransformStream._readable._readableStreamController)}enqueue(e){if(!rv(this))throw rg("enqueue");r_(this,e)}error(e){if(!rv(this))throw rg("error");rh(this._controlledTransformStream,e)}terminate(){if(!rv(this))throw rg("terminate");!function(e){let t=e._controlledTransformStream;tH(t._readable._readableStreamController),rf(t,TypeError("TransformStream terminated"))}(this)}}function rv(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof rb}function rm(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0,e._cancelAlgorithm=void 0}function r_(e,t){let r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!tY(n))throw TypeError("Readable side is not in a state that permits enqueue");try{tK(n,t)}catch(e){throw rf(r,e),r._readable._storedError}!tz(n)!==r._backpressure&&rp(r,!0)}function ry(e,t){return p(e._transformAlgorithm(t),void 0,t=>{throw rh(e._controlledTransformStream,t),t})}function rg(e){return TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function rw(e){void 0!==e._finishPromise_resolve&&(e._finishPromise_resolve(),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0)}function rS(e,t){void 0!==e._finishPromise_reject&&(m(e._finishPromise),e._finishPromise_reject(t),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0)}function rO(e){return TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(rb.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),s(rb.prototype.enqueue,"enqueue"),s(rb.prototype.error,"error"),s(rb.prototype.terminate,"terminate"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(rb.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0})}),ev("a2E6i",function(e,t){function r(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;neW),U(e.exports,"computed",()=>ez),U(e.exports,"autorun",()=>tx),U(e.exports,"action",()=>tT),U(e.exports,"reaction",()=>tC),U(e.exports,"configure",()=>tL);var n,i,o,a,s,l,u,c,h,f,d,p={};function b(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==ef?ef:"undefined"!=typeof self?self:p}var v=Object.assign,m=Object.getOwnPropertyDescriptor,_=Object.defineProperty,y=Object.prototype,g=[];Object.freeze(g);var w={};Object.freeze(w);var S="undefined"!=typeof Proxy,O=/*#__PURE__*/Object.toString();function T(){S||r("Proxy not available")}function E(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var P=function(){};function x(e){return"function"==typeof e}function k(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function j(e){return null!==e&&"object"==typeof e}function C(e){if(!j(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r.toString()===O}function A(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function R(e,t,r){_(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function M(e,t,r){_(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function L(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(e){return j(e)&&!0===e[r]}}function N(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function D(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var q=void 0!==Object.getOwnPropertySymbols,I="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:q?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function V(e){return null===e?null:"object"==typeof e?""+e:e}function W(e,t){return y.hasOwnProperty.call(e,t)}var B=Object.getOwnPropertyDescriptors||function(e){var t={};return I(e).forEach(function(r){t[r]=m(e,r)}),t};function $(e,t,r){return r?e|=t:e&=~t,e}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;tn&&(n=s.dependenciesState_)}for(r.length=i,e.newObserving_=null,o=t.length;o--;){var l=t[o];0===l.diffValue&&ta(l,e),l.diffValue=0}for(;i--;){var u=r[i];1===u.diffValue&&(u.diffValue=0,u.observers_.add(e),u.lowestObserverState_>e.dependenciesState_&&(u.lowestObserverState_=e.dependenciesState_))}n!==h.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}(e),te(i),n}function e8(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)ta(t[r],e);e.dependenciesState_=h.NOT_TRACKING_}function e6(e){var t=e5();try{return e()}finally{e9(t)}}function e5(){var e=to.trackingDerivation;return to.trackingDerivation=null,e}function e9(e){to.trackingDerivation=e}function e7(e){var t=to.allowStateReads;return to.allowStateReads=e,t}function te(e){to.allowStateReads=e}function tt(e){if(e.dependenciesState_!==h.UP_TO_DATE_){e.dependenciesState_=h.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=h.UP_TO_DATE_}}var tr=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},tn=!0,ti=!1,to=((o=/*#__PURE__*/b()).__mobxInstanceCount>0&&!o.__mobxGlobals&&(tn=!1),o.__mobxGlobals&&o.__mobxGlobals.version!==new tr().version&&(tn=!1),tn)?o.__mobxGlobals?(o.__mobxInstanceCount+=1,o.__mobxGlobals.UNCHANGED||(o.__mobxGlobals.UNCHANGED={}),o.__mobxGlobals):(o.__mobxInstanceCount=1,o.__mobxGlobals=/*#__PURE__*/new tr):(setTimeout(function(){ti||r(35)},1),new tr);function ta(e,t){e.observers_.delete(t),0===e.observers_.size&&ts(e)}function ts(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,to.pendingUnobservations.push(e))}function tl(){to.inBatch++}function tu(){if(0==--to.inBatch){tp();for(var e=to.pendingUnobservations,t=0;t0&&ts(e),!1)}function th(e){e.lowestObserverState_!==h.STALE_&&(e.lowestObserverState_=h.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===h.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=h.STALE_}))}var tf=/*#__PURE__*/function(){function e(e,t,r,n){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=h.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=f.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=r,this.requiresObservable_=n}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,to.pendingReactions.push(this),tp())},t.runReaction_=function(){if(!this.isDisposed){tl(),this.isScheduled=!1;var e=to.trackingContext;if(to.trackingContext=this,e3(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}to.trackingContext=e,tu()}},t.track=function(e){if(!this.isDisposed){tl(),this.isRunning=!0;var t=to.trackingContext;to.trackingContext=this;var r=e4(this,e,void 0);to.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&e8(this),e2(r)&&this.reportExceptionInDerivation_(r.cause),tu()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_){this.errorHandler_(e,this);return}if(to.disableErrorBoundaries)throw e;to.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",e),to.globalReactionErrorHandlers.forEach(function(r){return r(e,t)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(tl(),e8(this),tu()))},t.getDisposer_=function(e){var t=this,r=function r(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",r)};return null==e||null==e.addEventListener||e.addEventListener("abort",r),r[et]=this,r},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},H(e,[{key:"isDisposed",get:function(){return!!(this.flags_&e.isDisposedMask_)},set:function(t){this.flags_=$(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return!!(this.flags_&e.isScheduledMask_)},set:function(t){this.flags_=$(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return!!(this.flags_&e.isTrackPendingMask_)},set:function(t){this.flags_=$(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return!!(this.flags_&e.isRunningMask_)},set:function(t){this.flags_=$(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return this.flags_&e.diffValueMask_?1:0},set:function(t){this.flags_=$(this.flags_,e.diffValueMask_,1===t)}}])}();tf.isDisposedMask_=1,tf.isScheduledMask_=2,tf.isTrackPendingMask_=4,tf.isRunningMask_=8,tf.diffValueMask_=16;var td=function(e){return e()};function tp(){to.inBatch>0||to.isRunningReactions||td(tb)}function tb(){to.isRunningReactions=!0;for(var e=to.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n",t,e):x(r)?eX(t,r,e):ee(r)?(e?tw:ty).decorate_20223_(t,r):k(r)?Z(t,r,e?tw:ty):k(t)?Q(el(e?t_:tm,{name:t,autoAction:e})):void 0}}var tT=/*#__PURE__*/tO(!1);Object.assign(tT,ty);var tE=/*#__PURE__*/tO(!0);function tP(e){return x(e)&&!0===e.isMobxAction}function tx(e,t){void 0===t&&(t=w);var r,n,i,o,a,s=null!=(r=null==(n=t)?void 0:n.name)?r:"Autorun";if(t.scheduler||t.delay){var l=tj(t),u=!1;a=new tf(s,function(){u||(u=!0,l(function(){u=!1,a.isDisposed||a.track(c)}))},t.onError,t.requiresObservable)}else a=new tf(s,function(){this.track(c)},t.onError,t.requiresObservable);function c(){e(a)}return null!=(i=t)&&null!=(i=i.signal)&&i.aborted||a.schedule_(),a.getDisposer_(null==(o=t)?void 0:o.signal)}Object.assign(tE,tw),tT.bound=/*#__PURE__*/Q(tg),tE.bound=/*#__PURE__*/Q(tS);var tk=function(e){return e()};function tj(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:tk}function tC(e,t,r){void 0===r&&(r=w);var n,i,o,a,s,l=null!=(i=r.name)?i:"Reaction",u=tT(l,r.onError?(n=r.onError,function(){try{return t.apply(this,arguments)}catch(e){n.call(this,e)}}):t),c=!r.scheduler&&!r.delay,h=tj(r),f=!0,d=!1,p=r.compareStructural?eo.structural:r.equals||eo.default,b=new tf(l,function(){f||c?v():d||(d=!0,h(v))},r.onError,r.requiresObservable);function v(){if(d=!1,!b.isDisposed){var t=!1,n=s;b.track(function(){var r=function(e,t){var r=eY(e);try{return t()}finally{eJ(r)}}(!1,function(){return e(b)});t=f||!p(s,r),s=r}),f&&r.fireImmediately?u(s,n,b):!f&&t&&u(s,n,b),f=!1}}return null!=(o=r)&&null!=(o=o.signal)&&o.aborted||b.schedule_(),b.getDisposer_(null==(a=r)?void 0:a.signal)}function tA(e,t,r){return tR("onBUO",e,t,r)}function tR(e,t,r,n){var i="function"==typeof n?rS(t,r):rS(t),o=x(n)?n:r,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var tM="always";function tL(e){!0===e.isolateGlobalState&&function(){if((to.pendingReactions.length||to.inBatch||to.isRunningReactions)&&r(36),ti=!0,tn){var e=b();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),to=new tr}}();var t,n,i=e.useProxies,o=e.enforceActions;if(void 0!==i&&(to.useProxies=i===tM||"never"!==i&&"undefined"!=typeof Proxy),"ifavailable"===i&&(to.verifyProxies=!0),void 0!==o){var a=o===tM?tM:"observed"===o;to.enforceActions=a,to.allowStateChanges=!0!==a&&a!==tM}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(to[t]=!!e[t])}),to.allowStateReads=!to.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=td,td=function(e){return t(function(){return n(e)})})}var tN=0;function tD(){this.message="FLOW_CANCELLED"}tD.prototype=/*#__PURE__*/Object.create(Error.prototype);var tq=/*#__PURE__*/ep("flow"),tI=/*#__PURE__*/ep("flow.bound",{bound:!0}),tV=/*#__PURE__*/Object.assign(function(e,t){if(ee(t))return tq.decorate_20223_(e,t);if(k(t))return Z(e,t,tq);var r=e.name||"",n=function(){var t,n=arguments,i=++tN,o=tT(r+" - runid: "+i+" - init",e).apply(this,n),a=void 0,s=new Promise(function(e,n){var s=0;function l(e){var t;a=void 0;try{t=tT(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return n(e)}c(t)}function u(e){var t;a=void 0;try{t=tT(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}c(t)}function c(t){if(x(null==t?void 0:t.then)){t.then(c,n);return}return t.done?e(t.value):(a=Promise.resolve(t.value)).then(l,u)}t=n,l(void 0)});return s.cancel=tT(r+" - runid: "+i+" - cancel",function(){try{a&&tW(a);var e=o.return(void 0),r=Promise.resolve(e.value);r.then(P,P),tW(r),t(new tD)}catch(e){t(e)}}),s};return n.isMobXFlow=!0,n},tq);function tW(e){x(e.cancel)&&e.cancel()}function tB(e){return(null==e?void 0:e.isMobXFlow)===!0}function t$(e){return!!e&&(rd(e)||!!e[et]||en(e)||tv(e)||e0(e))}function tF(e,t){void 0===t&&(t=void 0),tl();try{return e.apply(t)}finally{tu()}}tV.bound=/*#__PURE__*/Q(tI);var tz={has:function(e,t){return e[et].has_(t)},get:function(e,t){return e[et].get_(t)},set:function(e,t,r){var n;return!!k(t)&&(null==(n=e[et].set_(t,r,!0))||n)},deleteProperty:function(e,t){var r;return!!k(t)&&(null==(r=e[et].delete_(t,!0))||r)},defineProperty:function(e,t,r){var n;return null==(n=e[et].defineProperty_(t,r))||n},ownKeys:function(e){return e[et].ownKeys_()},preventExtensions:function(e){r(13)}};function tU(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function tH(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),E(function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)})}function tK(e,t){var n=e5();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o0}function tX(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),E(function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)})}function tY(e,t){var r=e5(),n=e.changeListeners_;if(n){n=n.slice();for(var i=0,o=n.length;i0?e.map(this.dehancer):e},t.intercept_=function(e){return tH(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),tX(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t){if(e>t){for(var n=Array(e-t),i=0;i0&&rw(e+t+1)},t.spliceWithArray_=function(e,t,r){var n=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1==arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===r&&(r=g),tU(this)){var o=tK(this,{object:this.proxy_,type:tJ,index:e,removedCount:t,added:r});if(!o)return g;t=o.removedCount,r=o.added}if(r=0===r.length?r:r.map(function(e){return n.enhancer_(e,void 0)}),this.legacyMode_){var a=r.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,r);return(0!==t||0!==r.length)&&this.notifyArraySplice_(e,r,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,r){if(r.length<1e4){var n;return(n=this.values_).splice.apply(n,[e,t].concat(r))}var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=r.length-t;for(var a=0;a=this.values_.length){console.warn("[mobx] Out of bounds read: "+e);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e])},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e2?r-2:0),i=2;i-1&&(this.splice(r,1),!0)}};function t2(e,t){"function"==typeof Array.prototype[e]&&(t1[e]=t(e))}function t3(e){return function(){var t=this[et];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function t4(e){return function(t,r){var n=this,i=this[et];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e](function(e,i){return t.call(r,e,i,n)})}}function t8(e){return function(){var t=this,r=this[et];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),i=arguments[0];return arguments[0]=function(e,r,n){return i(e,r,n,t)},n[e].apply(n,arguments)}}t2("at",t3),t2("concat",t3),t2("flat",t3),t2("includes",t3),t2("indexOf",t3),t2("join",t3),t2("lastIndexOf",t3),t2("slice",t3),t2("toString",t3),t2("toLocaleString",t3),t2("toSorted",t3),t2("toSpliced",t3),t2("with",t3),t2("every",t4),t2("filter",t4),t2("find",t4),t2("findIndex",t4),t2("findLast",t4),t2("findLastIndex",t4),t2("flatMap",t4),t2("forEach",t4),t2("map",t4),t2("some",t4),t2("toReversed",t4),t2("reduce",t8),t2("reduceRight",t8);var t6=/*#__PURE__*/L("ObservableArrayAdministration",t0);function t5(e){return j(e)&&t6(e[et])}var t9={},t7="delete",re=/*#__PURE__*/function(){function e(e,t,n){var i=this;void 0===t&&(t=ea),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[et]=t9,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,x(Map)||r(18),rT(function(){i.keysAtom_=ei("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,e&&i.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!to.trackingDerivation)return this.has_(e);var r=this.hasMap_.get(e);if(!r){var n=r=new eQ(this.has_(e),es,"ObservableMap.key?",!1);this.hasMap_.set(e,n),tA(n,function(){return t.hasMap_.delete(e)})}return r.get()},t.set=function(e,t){var r=this.has_(e);if(tU(this)){var n=tK(this,{type:r?tQ:"add",object:this,newValue:t,name:e});if(!n)return this;t=n.newValue}return r?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,tU(this)&&!tK(this,{type:t7,object:this,name:e}))return!1;if(this.has_(e)){var r=tG(this),n=r?{observableKind:"map",debugObjectName:this.name_,type:t7,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return tF(function(){var r;t.keysAtom_.reportChanged(),null==(r=t.hasMap_.get(e))||r.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),r&&tY(this,n),!0}return!1},t.updateValue_=function(e,t){var r=this.data_.get(e);if((t=r.prepareNewValue_(t))!==to.UNCHANGED){var n=tG(this),i=n?{observableKind:"map",debugObjectName:this.name_,type:tQ,object:this,oldValue:r.value_,name:e,newValue:t}:null;r.setNewValue_(t),n&&tY(this,i)}},t.addValue_=function(e,t){var r=this;this.keysAtom_,tF(function(){var n,i=new eQ(t,r.enhancer_,"ObservableMap.key",!1);r.data_.set(e,i),t=i.value_,null==(n=r.hasMap_.get(e))||n.setNewValue_(!0),r.keysAtom_.reportChanged()});var n=tG(this),i=n?{observableKind:"map",debugObjectName:this.name_,type:"add",object:this,name:e,newValue:t}:null;n&&tY(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return rr({next:function(){var r=t.next(),n=r.done,i=r.value;return{done:n,value:n?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return rr({next:function(){var r=t.next(),n=r.done,i=r.value;return{done:n,value:n?void 0:[i,e.get(i)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var r,n=K(this);!(r=n()).done;){var i=r.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return rt(e)&&(e=new Map(e)),tF(function(){C(e)?(function(e){var t=Object.keys(e);if(!q)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(t){return y.propertyIsEnumerable.call(e,t)})):t})(e).forEach(function(r){return t.set(r,e[r])}):Array.isArray(e)?e.forEach(function(e){var r=e[0],n=e[1];return t.set(r,n)}):N(e)?(null!==Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(e)))&&r(19,e),e.forEach(function(e,r){return t.set(r,e)})):null!=e&&r(20,e)}),this},t.clear=function(){var e=this;tF(function(){e6(function(){for(var t,r=K(e.keys());!(t=r()).done;){var n=t.value;e.delete(n)}})})},t.replace=function(e){var t=this;return tF(function(){for(var n,i=function(e){if(N(e)||rt(e))return e;if(Array.isArray(e))return new Map(e);if(!C(e))return r(21,e);var t=new Map;for(var n in e)t.set(n,e[n]);return t}(e),o=new Map,a=!1,s=K(t.data_.keys());!(n=s()).done;){var l=n.value;if(!i.has(l)){if(t.delete(l))a=!0;else{var u=t.data_.get(l);o.set(l,u)}}}for(var c,h=K(i.entries());!(c=h()).done;){var f=c.value,d=f[0],p=f[1],b=t.data_.has(d);if(t.set(d,p),t.data_.has(d)){var v=t.data_.get(d);o.set(d,v),b||(a=!0)}}if(!a){if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var m=t.data_.keys(),_=o.keys(),y=m.next(),g=_.next();!y.done;){if(y.value!==g.value){t.keysAtom_.reportChanged();break}y=m.next(),g=_.next()}}t.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return tX(this,e)},t.intercept_=function(e){return tH(this,e)},H(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),rt=/*#__PURE__*/L("ObservableMap",re);function rr(e){return e[Symbol.toStringTag]="MapIterator",rj(e)}var rn={},ri=/*#__PURE__*/function(){function e(e,t,n){var i=this;void 0===t&&(t=ea),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[et]=rn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,x(Set)||r(22),this.enhancer_=function(e,r){return t(e,r,n)},rT(function(){i.atom_=ei(i.name_),e&&i.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;tF(function(){e6(function(){for(var t,r=K(e.data_.values());!(t=r()).done;){var n=t.value;e.delete(n)}})})},t.forEach=function(e,t){for(var r,n=K(this);!(r=n()).done;){var i=r.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,tU(this)&&!tK(this,{type:"add",object:this,newValue:e}))return this;if(!this.has(e)){tF(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r=tG(this),n=r?{observableKind:"set",debugObjectName:this.name_,type:"add",object:this,newValue:e}:null;r&&tY(this,n)}return this},t.delete=function(e){var t=this;if(tU(this)&&!tK(this,{type:t7,object:this,oldValue:e}))return!1;if(this.has(e)){var r=tG(this),n=r?{observableKind:"set",debugObjectName:this.name_,type:t7,object:this,oldValue:e}:null;return tF(function(){t.atom_.reportChanged(),t.data_.delete(e)}),r&&tY(this,n),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),r=Array.from(this.values());return ra({next:function(){var n=e;return e+=1,nrm){for(var t,r=rm;r=0&&n++}t=rx(t),r=rx(r);var l="[object Array]"===s;if(!l){if("object"!=typeof t||"object"!=typeof r)return!1;var u=t.constructor,c=r.constructor;if(u!==c&&!(x(u)&&u instanceof u&&x(c)&&c instanceof c)&&"constructor"in t&&"constructor"in r)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var h=(i=i||[]).length;h--;)if(i[h]===t)return o[h]===r;if(i.push(t),o.push(r),l){if((h=t.length)!==r.length)return!1;for(;h--;)if(!e(t[h],r[h],n-1,i,o))return!1}else{var f,d=Object.keys(t);if(h=d.length,Object.keys(r).length!==h)return!1;for(;h--;)if(!(W(r,f=d[h])&&e(t[f],r[f],n-1,i,o)))return!1}return i.pop(),o.pop(),!0}(e,t,r)}function rx(e){return t5(e)?e.slice():N(e)||rt(e)||D(e)||ro(e)?Array.from(e.entries()):e}var rk=(null==(d=/*#__PURE__*/b().Iterator)?void 0:d.prototype)||{};function rj(e){return e[Symbol.iterator]=rC,Object.assign(Object.create(rk),e)}function rC(){return this}["Symbol","Map","Set"].forEach(function(e){void 0===b()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:rO},$mobx:et})}),ev("czJVf",function(e,t){var r=eb("8HlFz");e.exports=r("lwDaG").then(()=>eb("lqqxu"))}),ev("8HlFz",function(e,t){e.exports=function(e){return import(eb("73lZE").resolve(e))}}),eb("73lZE").register(new URL("",import.meta.url).toString(),JSON.parse('["aEKk8","index.362ffb12.js","lwDaG","async.fcf3ae1c.js"]'));var em=eb("zlbOT"),e_={};Object.defineProperty(e_,"__esModule",{value:!0});var ey=eb("ceFTv");ey.__exportStar(eb("2flNv"),e_),ey.__exportStar(eb("iBSPL"),e_);var eg=eb("a2E6i"),em=eb("zlbOT"),eg=eb("a2E6i"),ew=eb("gPvyW");function eS(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var eO={};eS(eO,"AnimateCSS",function(){return e$});var eT={};eS(eT,"Defer",function(){return eE}),eS(eT,"getMobxData",function(){return eP}),eS(eT,"animated",function(){return ex});class eE{constructor(){Object.defineProperty(this,"resolve",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reject",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"promise",{enumerable:!0,configurable:!0,writable:!0,value:new Promise((e,t)=>{this.resolve=e,this.reject=t})})}}function eP(e){var t;for(let r of Object.getOwnPropertySymbols(e)){let n=null===(t=e[r])||void 0===t?void 0:t.values_;if(n instanceof Map)return Object.fromEntries(Array.from(n,([e,{value_:t}])=>[e,t]))}}const ex=(e,t)=>new Promise(r=>{let n=(0,ew.delegate)(t,t=>{e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),r(t)});e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)});var ek={};eS(ek,"component",function(){return eC}),eS(ek,"on",function(){return eA});const ej=new WeakMap;function eC(e){return(t,{addInitializer:r})=>(r(function(){var t;null===(t=globalThis.customElements)||void 0===t||t.define(e.tagName,this,e)}),class extends t{get root(){return this.shadowRoot||this.internals.shadowRoot||this}constructor(){var t;super(),Object.defineProperty(this,"internals",{enumerable:!0,configurable:!0,writable:!0,value:this.tagName.includes("-")?this.attachInternals():void 0}),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:new e_.DOMRenderer}),Object.defineProperty(this,"mounted",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!e.mode||(null===(t=this.internals)||void 0===t?void 0:t.shadowRoot)||this.attachShadow(e)}async connectedCallback(){var t,r;let{mode:n}=e,i=!(null!=n),{root:o}=this;for(let{type:e,selector:t,handler:r}of ej.get(this)||[])i&&/^:host/.test(t)&&console.warn(`[WebCell] DOM Event delegation of "${t}" won't work if you don't invoke "this.attachShadow()" manually.`),o.addEventListener(e,r);null===(t=super.connectedCallback)||void 0===t||t.call(this),this.mounted||(await this.update(),this.mounted=!0,null===(r=this.mountedCallback)||void 0===r||r.call(this))}updateDOM(t){var r,n;let i=this.renderer.render(t,this.root,e.renderMode);return i instanceof Promise?i.then(null===(r=this.updatedCallback)||void 0===r?void 0:r.bind(this)):null===(n=this.updatedCallback)||void 0===n?void 0:n.call(this)}async update(){var t;let r=null===(t=this.render)||void 0===t?void 0:t.call(this),n=(0,ew.isEmpty)(r)?e.mode?(0,em.jsx)("slot",{}):null:r;if(!(null!=n))return;if(!e.transitible||"function"!=typeof document.startViewTransition)return this.updateDOM(n);let{updateCallbackDone:i,finished:o}=document.startViewTransition(()=>this.updateDOM(n));try{await o}catch(e){return i}}disconnectedCallback(){var e;let{root:t}=this;for(let{type:e,handler:r}of ej.get(this)||[])t.removeEventListener(e,r);null===(e=super.disconnectedCallback)||void 0===e||e.call(this)}emit(e,t,{cancelable:r,bubbles:n,composed:i}={}){return this.dispatchEvent(new CustomEvent(e,{detail:t,cancelable:r,bubbles:n,composed:i}))}})}function eA(e,t){return(r,{addInitializer:n})=>n(function(){let n=ej.get(this)||[],i=(0,ew.delegate)(t,r.bind(this));n.push({type:e,selector:t,handler:i}),ej.set(this,n)})}var eR={};eS(eR,"observer",function(){return eN}),eS(eR,"attribute",function(){return eD}),eS(eR,"reaction",function(){return eq});var eM=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};const eL=new WeakMap;function eN(e,t){return(0,ew.isHTMLElementClass)(e)?function(e){var t,r;class n extends e{get props(){return eP(this)}constructor(){super(),t.add(this),Object.defineProperty(this,"disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"update",{enumerable:!0,configurable:!0,writable:!0,value:()=>{let{update:e}=Object.getPrototypeOf(this);return new Promise(t=>this.disposers.push((0,eg.autorun)(()=>e.call(this).then(t))))}}),Promise.resolve().then(()=>eM(this,t,"m",r).call(this))}disconnectedCallback(){var e;for(let e of this.disposers)e();this.disposers.length=0,null===(e=super.disconnectedCallback)||void 0===e||e.call(this)}setAttribute(e,t){let r=super.getAttribute(e),n=this.constructor.observedAttributes;super.setAttribute(e,t),n.includes(e)&&this.attributeChangedCallback(e,r,t)}attributeChangedCallback(e,t,r){var n;this[(0,ew.toCamelCase)(e)]=(0,ew.parseJSON)(r),null===(n=super.attributeChangedCallback)||void 0===n||n.call(this,e,t,r)}syncPropAttr(e){var t;let r=this[(0,ew.toCamelCase)(e)];if(!(null!=r)||!1===r)return this.removeAttribute(e);"object"==typeof(r=!0===r?e:r)&&(r="object"==typeof(r=null===(t=r.toJSON)||void 0===t?void 0:t.call(r))?JSON.stringify(r):r),super.setAttribute(e,r)}}return t=new WeakSet,r=function(){let e=this.constructor.observedAttributes||[],t=eL.get(this)||[];this.disposers.push(...e.map(e=>(0,eg.autorun)(()=>this.syncPropAttr(e))),...t.map(({expression:e,effect:t})=>(0,eg.reaction)(t=>e(this,t),t.bind(this))))},Object.defineProperty(n,"observedAttributes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),n}(e):function(e){let t=new e_.DOMRenderer;return r=>{let n=e(r),i;if(!(0,e_.VNode).isFragment(n)){let o=(0,eg.autorun)(()=>{(n=e(r))&&i&&t.patch((0,e_.VNode).fromDOM(i),n)}),{ref:a}=n;n.ref=e=>{e?i=e:o(),null==a||a(e)}}return n}}(e)}function eD(e,{name:t,addInitializer:r}){r(function(){let e=this.constructor.observedAttributes,r=(0,ew.toHyphenCase)(t.toString());e.includes(r)||e.push(r)})}function eq(e){return(t,{addInitializer:r})=>r(function(){let r=eL.get(this)||[];r.push({expression:e,effect:t}),eL.set(this,r)})}var eI=function(e,t,r){for(var n=arguments.length>2,i=0;i=0;d--){var p={};for(var b in n)p[b]="access"===b?{}:n[b];for(var b in n.access)p.access[b]=n.access[b];p.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var v=(0,r[d])("accessor"===l?{get:h.get,set:h.set}:h[u],p);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(s=a(v.get))&&(h.get=s),(s=a(v.set))&&(h.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===l?i.unshift(s):h[u]=s)}c&&Object.defineProperty(c,n.name,h),f=!0},eW=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},eB=function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r};let e$=(o=[eC({tagName:"animation-css"}),eN],a=[],s=HTMLElement,l=[],u=[],c=[],h=[],f=[],t=class extends s{constructor(){super(...arguments),H.set(this,(eI(this,l),eI(this,u,void 0))),K.set(this,(eI(this,c),eI(this,h,!1))),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:eI(this,f)})}get type(){return eW(this,H,"f")}set type(e){eB(this,H,e,"f")}get playing(){return eW(this,K,"f")}set playing(e){eB(this,K,e,"f")}async connectedCallback(){await (0,ew.importCSS)("https://unpkg.com/animate.css@4/animate.min.css"),this.typeChanged()}async typeChanged(){this.playing=!0,await ex(this,".animate__animated"),this.playing=!1}render(){let{type:e,playing:t,component:r}=this;return t?(0,em.jsx)(r,{className:`animate__animated animate__${e}`}):e.includes("Out")?(0,em.jsx)(em.Fragment,{}):(0,em.jsx)(r,{})}},H=new WeakMap,K=new WeakMap,G=t,"symbol"==typeof(X="AnimateCSS")&&(X=X.description?"[".concat(X.description,"]"):""),Object.defineProperty(G,"name",{configurable:!0,value:X}),(()=>{var d;let p="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(d=s[Symbol.metadata])&&void 0!==d?d:null):void 0;r=[eD,eg.observable],n=[eD,eg.observable],i=[eq(({type:e})=>e)],eV(t,null,r,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:p},u,c),eV(t,null,n,{kind:"accessor",name:"playing",static:!1,private:!1,access:{has:e=>"playing"in e,get:e=>e.playing,set:(e,t)=>{e.playing=t}},metadata:p},h,f),eV(t,null,i,{kind:"method",name:"typeChanged",static:!1,private:!1,access:{has:e=>"typeChanged"in e,get:e=>e.typeChanged},metadata:p},null,l),eV(null,e={value:t},o,{kind:"class",name:t.name,metadata:p},null,a),t=e.value,p&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:p}),eI(t,a)})(),t);Object.keys(Y={}).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(eO,e)||Object.defineProperty(eO,e,{enumerable:!0,get:function(){return Y[e]}})});var eF={};eS(eF,"AsyncCell",function(){return eX}),eS(eF,"lazy",function(){return eY});var ez=function(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,l=n.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?n.static?e:e.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),f=!1,d=r.length-1;d>=0;d--){var p={};for(var b in n)p[b]="access"===b?{}:n[b];for(var b in n.access)p.access[b]=n.access[b];p.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var v=(0,r[d])("accessor"===l?{get:h.get,set:h.set}:h[u],p);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(s=a(v.get))&&(h.get=s),(s=a(v.set))&&(h.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===l?i.unshift(s):h[u]=s)}c&&Object.defineProperty(c,n.name,h),f=!0},eU=function(e,t,r){for(var n=arguments.length>2,i=0;it.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let eX=(m=[eC({tagName:"async-cell"}),eN],_=[],y=HTMLElement,g=[],w=[],S=[],O=[],p=class extends y{get component(){return eH(this,J,"f")}set component(e){eK(this,J,e,"f")}get delegatedProps(){return eH(this,Q,"f")}set delegatedProps(e){eK(this,Q,e,"f")}connectedCallback(){this.load()}async load(){this.component=void 0;let e=await this.loader();this.component=t=>{var{children:r}=t,n=eG(t,["children"]);return(0,em.jsx)(e,Object.assign({},n,{children:r}))},this.emit("load",this.component)}render(){let{component:e,props:t,delegatedProps:r}=this,n=Object.assign(Object.assign({},t),r),{children:i}=n,o=eG(n,["children"]);return e&&(0,em.jsx)(e,Object.assign({},o,{children:i}))}constructor(){super(...arguments),Object.defineProperty(this,"loader",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),J.set(this,eU(this,g,void 0)),Q.set(this,(eU(this,w),eU(this,S,void 0))),eU(this,O)}},J=new WeakMap,Q=new WeakMap,Z=p,"symbol"==typeof(ee="AsyncCell")&&(ee=ee.description?"[".concat(ee.description,"]"):""),Object.defineProperty(Z,"name",{configurable:!0,value:ee}),(()=>{var e;let t="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=y[Symbol.metadata])&&void 0!==e?e:null):void 0;b=[eg.observable],v=[eg.observable],ez(p,null,b,{kind:"accessor",name:"component",static:!1,private:!1,access:{has:e=>"component"in e,get:e=>e.component,set:(e,t)=>{e.component=t}},metadata:t},g,w),ez(p,null,v,{kind:"accessor",name:"delegatedProps",static:!1,private:!1,access:{has:e=>"delegatedProps"in e,get:e=>e.delegatedProps,set:(e,t)=>{e.delegatedProps=t}},metadata:t},S,O),ez(null,d={value:p},m,{kind:"class",name:p.name,metadata:t},null,_),p=d.value,t&&Object.defineProperty(p,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t}),eU(p,_)})(),p);function eY(e){return t=>(0,em.jsx)(eX,{delegatedProps:t,loader:async()=>(await e()).default})}eS({},"formField",function(){return e1});var eJ=function(e,t,r){for(var n=arguments.length>2,i=0;i=0;d--){var p={};for(var b in n)p[b]="access"===b?{}:n[b];for(var b in n.access)p.access[b]=n.access[b];p.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var v=(0,r[d])("accessor"===l?{get:h.get,set:h.set}:h[u],p);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(s=a(v.get))&&(h.get=s),(s=a(v.set))&&(h.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===l?i.unshift(s):h[u]=s)}c&&Object.defineProperty(c,n.name,h),f=!0},eZ=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},e0=function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r};function e1(e,t){var r,n,i,o,a,s;let l,u,c,h,f,d,p,b,v,m,_,y,g,w,S,O,T,E;return p=e,b=[],v=[],m=[],_=[],y=[],g=[],w=[],S=[],O=[],T=[],E=[],r=class extends p{setValue(e){this.internals.setFormValue(e)}formDisabledCallback(e){this.disabled=e}get name(){return eZ(this,n,"f")}set name(e){e0(this,n,e,"f")}get value(){return eZ(this,i,"f")}set value(e){e0(this,i,e,"f")}get required(){return eZ(this,o,"f")}set required(e){e0(this,o,e,"f")}get disabled(){return eZ(this,a,"f")}set disabled(e){e0(this,a,e,"f")}get autofocus(){return eZ(this,s,"f")}set autofocus(e){e0(this,s,e,"f")}set defaultValue(e){var t;this.setAttribute("value",e),null!==(t=this.value)&&void 0!==t||(this.value=e)}get defaultValue(){return this.getAttribute("value")}get form(){return this.internals.form}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}get willValidate(){return this.internals.willValidate}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}constructor(){super(...arguments),n.set(this,(eJ(this,b),eJ(this,v,void 0))),i.set(this,(eJ(this,m),eJ(this,_,void 0))),o.set(this,(eJ(this,y),eJ(this,g,void 0))),a.set(this,(eJ(this,w),eJ(this,S,void 0))),s.set(this,(eJ(this,O),eJ(this,T,void 0))),eJ(this,E)}},n=new WeakMap,i=new WeakMap,o=new WeakMap,a=new WeakMap,s=new WeakMap,(()=>{var e;let t="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=p[Symbol.metadata])&&void 0!==e?e:null):void 0;l=[eq(({value:e})=>e)],u=[eD,eg.observable],c=[eg.observable],h=[eD,eg.observable],f=[eD,eg.observable],d=[eD,eg.observable],eQ(r,null,l,{kind:"method",name:"setValue",static:!1,private:!1,access:{has:e=>"setValue"in e,get:e=>e.setValue},metadata:t},null,b),eQ(r,null,u,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},v,m),eQ(r,null,c,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},_,y),eQ(r,null,h,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:e=>"required"in e,get:e=>e.required,set:(e,t)=>{e.required=t}},metadata:t},g,w),eQ(r,null,f,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:t},S,O),eQ(r,null,d,{kind:"accessor",name:"autofocus",static:!1,private:!1,access:{has:e=>"autofocus"in e,get:e=>e.autofocus,set:(e,t)=>{e.autofocus=t}},metadata:t},T,E),t&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})})(),Object.defineProperty(r,"formAssociated",{enumerable:!0,configurable:!0,writable:!0,value:!0}),r}var ew=eb("gPvyW"),e2=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(e,t,r,n,i,o){this.type=e,this.name=t,this.prefix=r,this.value=n,this.suffix=i,this.modifier=o}hasCustomName(){return""!==this.name&&"number"!=typeof this.name}},e3=/[$_\p{ID_Start}]/u,e4=/[$_\u200C\u200D\p{ID_Continue}]/u;function e8(e,t=!1){let r=[],n=0;for(;n{if(al("OTHER_MODIFIER")??l("ASTERISK"),c=e=>{let t=l(e);if(void 0!==t)return t;let{type:n,index:i}=r[a];throw TypeError(`Unexpected ${n} at ${i}, expected ${e}`)},h=()=>{let e="",t;for(;t=l("CHAR")??l("ESCAPED_CHAR");)e+=t;return e},f=t.encodePart||(e=>e),d="",p=e=>{d+=e},b=()=>{d.length&&(i.push(new e2(3,"","",f(d),"",3)),d="")},v=(e,t,r,a,l)=>{let u,c,h=3;switch(l){case"?":h=1;break;case"*":h=0;break;case"+":h=2}if(!t&&!r&&3===h){p(e);return}if(b(),!t&&!r){if(!e)return;i.push(new e2(3,"","",f(e),"",h));return}let d=2;if((u=r?"*"===r?".*":r:n)===n?(d=1,u=""):".*"===u&&(d=0,u=""),t?c=t:r&&(c=o++),s.has(c))throw TypeError(`Duplicate name '${c}'.`);s.add(c),i.push(new e2(d,c,f(e),u,f(a),h))};for(;a-1)}return a||(n+=`(?=${o}|${i})`),new RegExp(n,e9(r))}var tt={delimiter:"",prefixes:"",sensitive:!0,strict:!0},tr={delimiter:".",prefixes:"",sensitive:!0,strict:!0},tn={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function ti(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function to(e){return!!e&&!(e.length<2)&&("["===e[0]||("\\"===e[0]||"{"===e[0])&&"["===e[1])}var ta=["ftp","file","http","https","ws","wss"];function ts(e){if(!e)return!0;for(let t of ta)if(e.test(t))return!0;return!1}function tl(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function tu(e){if(""===e)return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw TypeError(`Invalid protocol '${e}'.`)}function tc(e){if(""===e)return e;let t=new URL("https://example.com");return t.username=e,t.username}function th(e){if(""===e)return e;let t=new URL("https://example.com");return t.password=e,t.password}function tf(e){if(""===e)return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function td(e){if(""===e)return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function tp(e){if(""===e||/^[0-9]*$/.test(e)&&65535>=parseInt(e))return e;throw TypeError(`Invalid port '${e}'.`)}function tb(e){if(""===e)return e;let t=new URL("https://example.com");return t.pathname="/"!==e[0]?"/-"+e:e,"/"!==e[0]?t.pathname.substring(2,t.pathname.length):t.pathname}function tv(e){return""===e?e:new URL(`data:${e}`).pathname}function tm(e){if(""===e)return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function t_(e){if(""===e)return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var ty=class{#e;#t=[];#r={};#n=0;#i=1;#o=0;#a=0;#s=0;#l=0;#u=!1;constructor(e){this.#e=e}get result(){return this.#r}parse(){for(this.#t=e8(this.#e,!0);this.#n0){if(!this.#b())continue;this.#s-=1}if(this.#v()){this.#s+=1;continue}switch(this.#a){case 0:this.#m()&&this.#p(1);break;case 1:if(this.#m()){this.#_();let e=7,t=1;this.#y()?(e=2,t=3):this.#u&&(e=2),this.#f(e,t)}break;case 2:this.#g()?this.#p(3):(this.#w()||this.#d()||this.#h())&&this.#p(5);break;case 3:this.#S()?this.#f(4,1):this.#g()&&this.#f(5,1);break;case 4:this.#g()&&this.#f(5,1);break;case 5:this.#O()?this.#l+=1:this.#T()&&(this.#l-=1),this.#E()&&!this.#l?this.#f(6,1):this.#w()?this.#f(7,0):this.#d()?this.#f(8,1):this.#h()&&this.#f(9,1);break;case 6:this.#w()?this.#f(7,0):this.#d()?this.#f(8,1):this.#h()&&this.#f(9,1);break;case 7:this.#d()?this.#f(8,1):this.#h()&&this.#f(9,1);break;case 8:this.#h()&&this.#f(9,1)}}void 0!==this.#r.hostname&&void 0===this.#r.port&&(this.#r.port="")}#f(e,t){switch(this.#a){case 0:case 2:break;case 1:this.#r.protocol=this.#P();break;case 3:this.#r.username=this.#P();break;case 4:this.#r.password=this.#P();break;case 5:this.#r.hostname=this.#P();break;case 6:this.#r.port=this.#P();break;case 7:this.#r.pathname=this.#P();break;case 8:this.#r.search=this.#P();break;case 9:this.#r.hash=this.#P()}0!==this.#a&&10!==e&&([1,2,3,4].includes(this.#a)&&[6,7,8,9].includes(e)&&(this.#r.hostname??=""),[1,2,3,4,5,6].includes(this.#a)&&[8,9].includes(e)&&(this.#r.pathname??=this.#u?"/":""),[1,2,3,4,5,6,7].includes(this.#a)&&9===e&&(this.#r.search??="")),this.#x(e,t)}#x(e,t){this.#a=e,this.#o=this.#n+t,this.#n+=t,this.#i=0}#c(){this.#n=this.#o,this.#i=0}#p(e){this.#c(),this.#a=e}#k(e){return e<0&&(e=this.#t.length-e),e=0&&(e.pathname=tS(l.pathname.substring(0,t+1),r)+e.pathname)}e.pathname=function(e,t,r){if(r||""===e)return e;if(t&&!ta.includes(t))return new URL(`${t}:${e}`).pathname;let n="/"==e[0];return e=new URL(n?e:"/-"+e,"https://example.com").pathname,n||(e=e.substring(2,e.length)),e}(e.pathname,e.protocol,r)}return"string"==typeof t.search&&(e.search=function(e,t){if(e=ti(e,"?"),t||""===e)return e;let r=new URL("https://example.com");return r.search=e,r.search?r.search.substring(1,r.search.length):""}(t.search,r)),"string"==typeof t.hash&&(e.hash=function(e,t){if(e=ti(e,"#"),t||""===e)return e;let r=new URL("https://example.com");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):""}(t.hash,r)),e}function tT(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}var tE=class{#e;#t={};#r={};#n={};#i={};#o=!1;constructor(e={},t,r){try{let n,i;if("string"==typeof t?n=t:r=t,"string"==typeof e){let t=new ty(e);if(t.parse(),e=t.result,void 0===n&&"string"!=typeof e.protocol)throw TypeError("A base URL must be provided for a relative constructor string.");e.baseURL=n}else{if(!e||"object"!=typeof e)throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(n)throw TypeError("parameter 1 is not of type 'string'.")}typeof r>"u"&&(r={ignoreCase:!1});let o={ignoreCase:!0===r.ignoreCase};for(i of(this.#e=tO({pathname:"*",protocol:"*",username:"*",password:"*",hostname:"*",port:"*",search:"*",hash:"*"},e,!0),tl(this.#e.protocol)===this.#e.port&&(this.#e.port=""),tg)){if(!(i in this.#e))continue;let e={},t=this.#e[i];switch(this.#r[i]=[],i){case"protocol":Object.assign(e,tt),e.encodePart=tu;break;case"username":Object.assign(e,tt),e.encodePart=tc;break;case"password":Object.assign(e,tt),e.encodePart=th;break;case"hostname":Object.assign(e,tr),to(t)?e.encodePart=td:e.encodePart=tf;break;case"port":Object.assign(e,tt),e.encodePart=tp;break;case"pathname":ts(this.#t.protocol)?(Object.assign(e,tn,o),e.encodePart=tb):(Object.assign(e,tt,o),e.encodePart=tv);break;case"search":Object.assign(e,tt,o),e.encodePart=tm;break;case"hash":Object.assign(e,tt,o),e.encodePart=t_}try{this.#i[i]=e6(t,e),this.#t[i]=te(this.#i[i],this.#r[i],e),this.#n[i]=function(e,t){t.delimiter??="/#?",t.prefixes??="./",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith="";let r=`[^${t.delimiter.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}]+?`,n=/[$_\u200C\u200D\p{ID_Continue}]/u,i="";for(let o=0;o0?e[o-1]:null,c=o0?c.value[0]:"";l=n.test(e)}else l=!c.hasCustomName()}if(!l&&!a.prefix.length&&u&&3===u.type){let e=u.value[u.value.length-1];l=t.prefixes.includes(e)}l&&(i+="{"),i+=tT(a.prefix),s&&(i+=`:${a.name}`),2===a.type?i+=`(${a.value})`:1===a.type?s||(i+=`(${r})`):0===a.type&&(s||u&&3!==u.type&&3===u.modifier&&!l&&""===a.prefix?i+="(.*)":i+="*"),1===a.type&&s&&a.suffix.length&&n.test(a.suffix[0])&&(i+="\\"),i+=tT(a.suffix),l&&(i+="}"),3!==a.modifier&&(i+=e7(a.modifier))}return i}(this.#i[i],e),this.#o=this.#o||this.#i[i].some(e=>2===e.type)}catch{throw TypeError(`invalid ${i} pattern '${this.#e[i]}'.`)}}}catch(e){throw TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}test(e={},t){let r,n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof e&&t)throw TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return!1;try{n="object"==typeof e?tO(n,e,!1):tO(n,tw(e,t),!1)}catch{return!1}for(r of tg)if(!this.#t[r].exec(n[r]))return!1;return!0}exec(e={},t){let r,n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof e&&t)throw TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return;try{n="object"==typeof e?tO(n,e,!1):tO(n,tw(e,t),!1)}catch{return null}let i={};for(r of(t?i.inputs=[e,t]:i.inputs=[e],tg)){let e=this.#t[r].exec(n[r]);if(!e)return null;let t={};for(let[n,i]of this.#r[r].entries())if("string"==typeof i||"number"==typeof i){let r=e[n+1];t[i]=r}i[r]={input:n[r]??"",groups:t}}return i}static compareComponent(e,t,r){let n=(e,t)=>{for(let r of["type","modifier","prefix","value","suffix"]){if(e[r]{let r=0;for(;r2,i=0;i=0;d--){var p={};for(var b in n)p[b]="access"===b?{}:n[b];for(var b in n.access)p.access[b]=n.access[b];p.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var v=(0,r[d])("accessor"===l?{get:h.get,set:h.set}:h[u],p);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(s=a(v.get))&&(h.get=s),(s=a(v.set))&&(h.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===l?i.unshift(s):h[u]=s)}c&&Object.defineProperty(c,n.name,h),f=!0},tk=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},tj=function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r};const{location:tC,history:tA}=window,tR=null===(eu=document.querySelector("base"))||void 0===eu?void 0:eu.getAttribute("href"),tM=(tR?new URL(tR,tC.origin)+"":tC.href.split(/\?|#/)[0]).replace(/\/$/,""),tL=null===(ec=document.querySelector("title"))||void 0===ec?void 0:ec.textContent.trim();(et=eh||(eh={})).hash="#",et.history="/";let tN=(x=[],k=[],j=[],C=[],A=[],er=class{get path(){return tk(this,en,"f")}set path(e){tj(this,en,e,"f")}get oldPath(){return tk(this,ei,"f")}set oldPath(e){tj(this,ei,e,"f")}constructor(e=tM,t=eh.hash){Object.defineProperty(this,"baseURL",{enumerable:!0,configurable:!0,writable:!0,value:(tP(this,x),e)}),Object.defineProperty(this,"delimiter",{enumerable:!0,configurable:!0,writable:!0,value:t}),en.set(this,tP(this,k,void 0)),ei.set(this,(tP(this,j),tP(this,C,void 0))),Object.defineProperty(this,"restore",{enumerable:!0,configurable:!0,writable:!0,value:(tP(this,A),()=>{let{state:e}=tA;this.push(),document.title=(null==e?void 0:e.title)||this.titleOf()||tL||tC.href})}),Object.defineProperty(this,"handleForm",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>{let{method:r,target:n}=t;if("get"!==r||"_self"!==(n||"_self"))return;e.preventDefault();let i=t.getAttribute("action"),o=(0,ew.buildURLData)((0,ew.formToJSON)(t));this.push(`${i}?${o}`)}}),this.restore(),window.addEventListener("hashchange",this.restore),window.addEventListener("popstate",this.restore),document.addEventListener("click",(0,ew.delegate)("a[href], area[href]",this.handleLink.bind(this))),document.addEventListener("submit",(0,ew.delegate)("form[action]",this.handleForm))}push(e=tC.href){var t;return(e=e.replace(this.baseURL,""),this.delimiter===eh.hash&&(e=(null===(t=e.match(/#.*/))||void 0===t?void 0:t[0])||eh.hash),e===this.path)?e:(this.oldPath=this.path,this.path=e)}static dataOf(e){let[t,r]=e.split("#");return(0,ew.parseURLData)(r||t)}match(e,t=this.path){var r;if(!t)return;let{pathname:n,hash:i}=new URLPattern(e,this.baseURL).exec(new URL(t.split("?")[0],this.baseURL))||{};return null===(r=i||n)||void 0===r?void 0:r.groups}static getTitle(e){return e.title||(0,ew.getVisibleText)(e)}titleOf(e=this.path){if(e=e.replace(/^\//,""))for(let t of document.querySelectorAll(`a[href="${e}"], area[href="${e}"]`)){let e=er.getTitle(t);if(e)return e}}handleLink(e,t){let r=t.getAttribute("href");if("_self"!==(t.target||"_self")||(0,ew.isXDomain)(r))return;if(e.preventDefault(),r.startsWith("#"))try{if(document.querySelector(r)||"#top"===r)return(0,ew.scrollTo)(r,e.currentTarget)}catch(e){}let n=er.getTitle(t);tA.pushState({title:n},document.title=n,r),this.push(r)}},en=new WeakMap,ei=new WeakMap,(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;T=[eg.observable],E=[eg.observable],P=[eg.action],tx(er,null,T,{kind:"accessor",name:"path",static:!1,private:!1,access:{has:e=>"path"in e,get:e=>e.path,set:(e,t)=>{e.path=t}},metadata:e},k,j),tx(er,null,E,{kind:"accessor",name:"oldPath",static:!1,private:!1,access:{has:e=>"oldPath"in e,get:e=>e.oldPath,set:(e,t)=>{e.oldPath=t}},metadata:e},C,A),tx(er,null,P,{kind:"method",name:"push",static:!1,private:!1,access:{has:e=>"push"in e,get:e=>e.push},metadata:e},null,x),e&&Object.defineProperty(er,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),er);var em=eb("zlbOT"),eg=eb("a2E6i"),tD=function(e,t,r){for(var n=arguments.length>2,i=0;i=0;d--){var p={};for(var b in n)p[b]="access"===b?{}:n[b];for(var b in n.access)p.access[b]=n.access[b];p.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var v=(0,r[d])("accessor"===l?{get:h.get,set:h.set}:h[u],p);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(s=a(v.get))&&(h.get=s),(s=a(v.set))&&(h.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===l?i.unshift(s):h[u]=s)}c&&Object.defineProperty(c,n.name,h),f=!0},tI=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},tV=function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r};let tW=(q=[eC({tagName:"cell-route",transitible:!0}),eN],I=[],V=HTMLElement,W=[],B=[],$=[],F=[],z=[],M=class extends V{constructor(){super(...arguments),eo.set(this,(tD(this,W),tD(this,B,void 0))),ea.set(this,(tD(this,$),tD(this,F,void 0))),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:tD(this,z)})}get history(){return tI(this,eo,"f")}set history(e){tV(this,eo,e,"f")}get path(){return tI(this,ea,"f")}set path(e){tV(this,ea,e,"f")}get matched(){var e;return null===(e=this.history)||void 0===e?void 0:e.match(this.path)}connectedCallback(){this.history||(this.history=new tN)}render(){let{history:e,component:t,matched:r}=this,{path:n}=e||{};return r?(0,em.jsx)(t,Object.assign({},r,tN.dataOf(n),{path:n,history:e})):(0,em.jsx)(em.Fragment,{})}},eo=new WeakMap,ea=new WeakMap,es=M,"symbol"==typeof(el="CellRoute")&&(el=el.description?"[".concat(el.description,"]"):""),Object.defineProperty(es,"name",{configurable:!0,value:el}),(()=>{var e;let t="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=V[Symbol.metadata])&&void 0!==e?e:null):void 0;L=[eg.observable],N=[eD,eg.observable],D=[eg.computed],tq(M,null,L,{kind:"accessor",name:"history",static:!1,private:!1,access:{has:e=>"history"in e,get:e=>e.history,set:(e,t)=>{e.history=t}},metadata:t},B,$),tq(M,null,N,{kind:"accessor",name:"path",static:!1,private:!1,access:{has:e=>"path"in e,get:e=>e.path,set:(e,t)=>{e.path=t}},metadata:t},F,z),tq(M,null,D,{kind:"getter",name:"matched",static:!1,private:!1,access:{has:e=>"matched"in e,get:e=>e.matched},metadata:t},null,W),tq(null,R={value:M},q,{kind:"class",name:M.name,metadata:t},null,I),M=R.value,t&&Object.defineProperty(M,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t}),tD(M,I)})(),M);var em=eb("zlbOT"),tB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},em=eb("zlbOT"),t$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const tF=e=>{var{path:t,id:r,edit:n}=e,i=t$(e,["path","id","edit"]);return(0,em.jsxs)("ul",Object.assign({},i,{children:[(0,em.jsxs)("li",{children:["Path: ",t]}),(0,em.jsxs)("li",{children:["Data: ",JSON.stringify({id:r,edit:n})]})]}))},tz=eY(()=>eb("czJVf"));(0,eg.configure)({enforceActions:"never"});const{Route:tU,Link:tH}=function(e={}){var{mode:t="hash",basePath:r=""}=e,n=tB(e,["mode","basePath"]);let i=eh[t],o=new tN((new URL(r,location.origin)+"").replace(/\/$/,""),eh[t]);return{Route:e=>{var{path:t}=e,r=tB(e,["path"]);return(0,em.jsx)(tW,Object.assign({},r,n,{history:o,path:i+t}))},Link:e=>{var{to:t,children:r}=e,n=tB(e,["to","children"]);return(0,em.jsx)("a",Object.assign({},n,{href:i+t,children:r}))},Form:e=>{var{action:t,children:r}=e,n=tB(e,["action","children"]);return(0,em.jsx)("form",Object.assign({},n,{action:i+t,children:r}))}}}();(0,ew.documentReady).then(()=>new(0,e_.DOMRenderer)().render((0,em.jsxs)(em.Fragment,{children:[(0,em.jsxs)("nav",{children:[(0,em.jsx)(tH,{to:"list/1",children:"List page"}),(0,em.jsx)(tH,{to:"detail/2?edit=true",children:"Detail page"}),(0,em.jsx)(tH,{to:"async/3?edit=true",children:"Async page"})]}),(0,em.jsxs)("main",{className:"router",children:[(0,em.jsx)(tU,{path:"",component:e=>(0,em.jsx)("div",Object.assign({},e,{children:"Home Page"}))}),(0,em.jsx)(tU,{path:"list/:id",component:tF}),(0,em.jsx)(tU,{path:"detail/:id",component:tF}),(0,em.jsx)(tU,{path:"async/:id",component:tz})]})]}))); +//# sourceMappingURL=index.362ffb12.js.map diff --git a/preview/index.362ffb12.js.map b/preview/index.362ffb12.js.map new file mode 100644 index 0000000..33c8629 --- /dev/null +++ b/preview/index.362ffb12.js.map @@ -0,0 +1 @@ +{"mappings":"I,E,E,E,E,E6FiBC,E,EAGW,E,E,E,E,E,E,E,E,E,EKAX,E,EAI8B,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,EMF9B,E,EAK8B,E,E,E,E,E,E,S,E,C,C,C,C,C,C,C,E,O,c,C,E,E,C,I,E,I,E,W,C,E,a,C,C,E,C,I,E,E,E,E,E,E,E,E,GHHnB,G,G,G,G,G,G,G,G,G,GAAA,G,G,W,G,C,E,G,C,E,G,G,iB,A,O,K,A,C,G,S,C,E,G,K,G,O,E,C,E,C,O,C,G,K,G,C,I,E,E,C,E,A,Q,E,C,E,C,I,E,C,G,E,Q,C,C,E,O,E,C,E,C,E,E,I,C,E,O,C,E,E,O,E,E,O,A,C,I,E,A,M,uB,E,I,O,E,I,C,mB,C,C,E,Q,C,S,C,C,C,E,E,C,E,C,C,E,G,iB,C,I,I,G,G,Q,C,G,Q,S,C,C,C,E,E,E,O,C,W,I,E,A,G,E,G,E,E,O,C,U,I,E,A,G,E,GpGtBZ,IAgBA,EACA,EAjBI,EAAU,IAAI,IAgBlB,EAfA,SAAkB,CAAO,CAAE,CAAQ,EACjC,IAAK,IAAI,EAAI,EAAG,EAAI,EAAS,MAAM,CAAG,EAAG,GAAK,EAC5C,EAAQ,GAAG,CAAC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AA,GAAA,AAAA,EAAC,GAAI,CAAC,GAAG,oBAAmB,SAAA,YAAA,GAAkB,AAAA,GAElD,AAAA,CAAA,EAAA,GAAA,IAAA,AAAA,EAAA,OAAA,CAAM,UAAU,SAAQ,SAAA,CACpB,AAAA,CAAA,EAAA,GAAA,GAAA,AAAA,EAAC,GAAK,CACF,KAAK,GACL,UAAW,AAAA,GAAS,AAAA,CAAA,EAAA,GAAA,GAAA,AAAA,EAAA,MAAA,OAAA,MAAA,CAAA,CAAA,EAAS,EAAK,CAAA,SAAA,WAAA,GAAiB,GAEvD,AAAA,CAAA,EAAA,GAAA,GAAA,AAAA,EAAC,GAAK,CAAC,KAAK,WAAW,UAAW,EAAQ,GAC1C,AAAA,CAAA,EAAA,GAAA,GAAA,AAAA,EAAC,GAAK,CAAC,KAAK,aAAa,UAAW,EAAQ,GAC5C,AAAA,CAAA,EAAA,GAAA,GAAA,AAAA,EAAC,GAAK,CAAC,KAAK,YAAY,UAAW,EAAS,GAAI,AAAA,GAC7C,AAAA","sources":["","node_modules/.pnpm/@parcel+runtime-js@2.13.0_@parcel+core@2.13.0_@swc+helpers@0.5.15_/node_modules/@parcel/runtime-js/lib/helpers/bundle-manifest.js","node_modules/.pnpm/dom-renderer@2.6.0_typescript@5.6.3/node_modules/dom-renderer/jsx-runtime.js","node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/index.esm.js","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/index.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/data.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/math.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/date.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/parser.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/URL.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/crypto.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/DOM-type.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/DOM.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/timer.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/event.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/animation.ts","node_modules/.pnpm/web-utility@4.4.2_typescript@5.6.3/node_modules/web-utility/dist/source/assert.ts","node_modules/.pnpm/dom-renderer@2.6.0_typescript@5.6.3/node_modules/dom-renderer/dist/VDOM.js","node_modules/.pnpm/declarative-shadow-dom-polyfill@0.4.0_typescript@5.6.3/node_modules/declarative-shadow-dom-polyfill/dist/index.js","node_modules/.pnpm/declarative-shadow-dom-polyfill@0.4.0_typescript@5.6.3/node_modules/declarative-shadow-dom-polyfill/source/index.ts","node_modules/.pnpm/dom-renderer@2.6.0_typescript@5.6.3/node_modules/dom-renderer/dist/DOMRenderer.js","node_modules/.pnpm/scheduler-polyfill@1.3.0/node_modules/scheduler-polyfill/dist/scheduler-polyfill.js","node_modules/.pnpm/scheduler-polyfill@1.3.0/node_modules/scheduler-polyfill/src/scheduler-priorities.js","node_modules/.pnpm/scheduler-polyfill@1.3.0/node_modules/scheduler-polyfill/src/host-callback.js","node_modules/.pnpm/scheduler-polyfill@1.3.0/node_modules/scheduler-polyfill/src/intrusive-task-queue.js","node_modules/.pnpm/scheduler-polyfill@1.3.0/node_modules/scheduler-polyfill/src/task-controller.js","node_modules/.pnpm/scheduler-polyfill@1.3.0/node_modules/scheduler-polyfill/src/polyfill.js","node_modules/.pnpm/scheduler-polyfill@1.3.0/node_modules/scheduler-polyfill/src/scheduler.js","node_modules/.pnpm/scheduler-polyfill@1.3.0/node_modules/scheduler-polyfill/src/yield.js","node_modules/.pnpm/web-streams-polyfill@4.0.0/node_modules/web-streams-polyfill/dist/ponyfill.mjs","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/dist/mobx.esm.js","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/errors.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/utils/global.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/utils/utils.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/decorators.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/core/atom.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/utils/comparer.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/modifiers.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/overrideannotation.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/actionannotation.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/flowannotation.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/computedannotation.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/observableannotation.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/autoannotation.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/observable.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/computed.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/core/action.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/observablevalue.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/core/computedvalue.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/core/derivation.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/core/globalstate.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/core/observable.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/core/reaction.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/core/spy.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/action.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/autorun.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/become-observed.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/configure.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/extendobservable.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/extras.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/flow.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/intercept-read.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/intercept.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/iscomputed.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/isobservable.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/object-api.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/observe.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/tojs.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/trace.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/transaction.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/when.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/dynamicobject.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/intercept-utils.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/listen-utils.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/makeObservable.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/observablearray.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/observablemap.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/observableset.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/observableobject.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/legacyobservablearray.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/types/type-utils.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/utils/eq.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/utils/iterable.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/api/annotation.ts","node_modules/.pnpm/mobx@6.13.5/node_modules/mobx/src/mobx.ts","node_modules/.pnpm/@parcel+runtime-js@2.13.0_@parcel+core@2.13.0_@swc+helpers@0.5.15_/node_modules/@parcel/runtime-js/lib/runtime-cab8a91a5a77f278.js","node_modules/.pnpm/@parcel+runtime-js@2.13.0_@parcel+core@2.13.0_@swc+helpers@0.5.15_/node_modules/@parcel/runtime-js/lib/helpers/browser/esm-js-loader.js","node_modules/.pnpm/@parcel+runtime-js@2.13.0_@parcel+core@2.13.0_@swc+helpers@0.5.15_/node_modules/@parcel/runtime-js/lib/runtime-1e8adf9611de6235.js","test/source/page/index.tsx","node_modules/.pnpm/dom-renderer@2.6.0_typescript@5.6.3/node_modules/dom-renderer/dist/index.js","node_modules/.pnpm/web-cell@3.0.3_jsdom@20.0.3_typescript@5.6.3/node_modules/web-cell/dist/index.esm.js","node_modules/.pnpm/web-cell@3.0.3_jsdom@20.0.3_typescript@5.6.3/node_modules/web-cell/dist/source/index.ts","node_modules/.pnpm/web-cell@3.0.3_jsdom@20.0.3_typescript@5.6.3/node_modules/web-cell/dist/source/Animation/index.tsx","node_modules/.pnpm/web-cell@3.0.3_jsdom@20.0.3_typescript@5.6.3/node_modules/web-cell/dist/source/utility.ts","node_modules/.pnpm/web-cell@3.0.3_jsdom@20.0.3_typescript@5.6.3/node_modules/web-cell/dist/source/WebCell.tsx","node_modules/.pnpm/web-cell@3.0.3_jsdom@20.0.3_typescript@5.6.3/node_modules/web-cell/dist/source/decorator.ts","node_modules/.pnpm/web-cell@3.0.3_jsdom@20.0.3_typescript@5.6.3/node_modules/web-cell/dist/source/Animation/type.ts","node_modules/.pnpm/web-cell@3.0.3_jsdom@20.0.3_typescript@5.6.3/node_modules/web-cell/dist/source/Async.tsx","node_modules/.pnpm/web-cell@3.0.3_jsdom@20.0.3_typescript@5.6.3/node_modules/web-cell/dist/source/WebField.ts","source/index.ts","source/History.ts","node_modules/.pnpm/urlpattern-polyfill@10.0.0/node_modules/urlpattern-polyfill/index.js","node_modules/.pnpm/urlpattern-polyfill@10.0.0/node_modules/urlpattern-polyfill/dist/urlpattern.js","source/Router.tsx","source/utility.ts","source/scope.tsx","test/source/page/example.tsx"],"sourcesContent":["\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequire94c2\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequire94c2\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"73lZE\", function(module, exports) {\n\n$parcel$export(module.exports, \"register\", () => $5229dfa3f3078c99$export$6503ec6e8aabbaf, (v) => $5229dfa3f3078c99$export$6503ec6e8aabbaf = v);\n$parcel$export(module.exports, \"resolve\", () => $5229dfa3f3078c99$export$f7ad0328861e2f03, (v) => $5229dfa3f3078c99$export$f7ad0328861e2f03 = v);\nvar $5229dfa3f3078c99$export$6503ec6e8aabbaf;\nvar $5229dfa3f3078c99$export$f7ad0328861e2f03;\n\"use strict\";\nvar $5229dfa3f3078c99$var$mapping = new Map();\nfunction $5229dfa3f3078c99$var$register(baseUrl, manifest) {\n for(var i = 0; i < manifest.length - 1; i += 2)$5229dfa3f3078c99$var$mapping.set(manifest[i], {\n baseUrl: baseUrl,\n path: manifest[i + 1]\n });\n}\nfunction $5229dfa3f3078c99$var$resolve(id) {\n var resolved = $5229dfa3f3078c99$var$mapping.get(id);\n if (resolved == null) throw new Error('Could not resolve bundle with id ' + id);\n return new URL(resolved.path, resolved.baseUrl).toString();\n}\n$5229dfa3f3078c99$export$6503ec6e8aabbaf = $5229dfa3f3078c99$var$register;\n$5229dfa3f3078c99$export$f7ad0328861e2f03 = $5229dfa3f3078c99$var$resolve;\n\n});\n\nparcelRegister(\"zlbOT\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.Fragment = module.exports.jsxDEV = module.exports.jsxs = void 0;\nmodule.exports.jsx = $06a3b4d229715e45$var$jsx;\n\nvar $ceFTv = parcelRequire(\"ceFTv\");\n\nvar $gPvyW = parcelRequire(\"gPvyW\");\n\nvar $2flNv = parcelRequire(\"2flNv\");\n/**\n * @see {@link https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md}\n * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx}\n */ function $06a3b4d229715e45$var$jsx(type, _a, key) {\n var ref = _a.ref, is = _a.is, style = _a.style, children = _a.children, props = $ceFTv.__rest(_a, [\n \"ref\",\n \"is\",\n \"style\",\n \"children\"\n ]);\n if (typeof type === 'function' && (0, $gPvyW.isHTMLElementClass)(type)) type = (0, $gPvyW.tagNameOf)(type);\n children = [\n children\n ].flat(Infinity).map(function(node) {\n return node instanceof Object ? new $2flNv.VNode(node) : node === 0 || node ? new $2flNv.VNode({\n text: node.toString()\n }) : undefined;\n }).filter(Boolean);\n var commonProps = {\n key: key,\n ref: ref,\n is: is,\n style: style,\n children: children\n };\n return typeof type === 'string' ? new $2flNv.VNode($ceFTv.__assign($ceFTv.__assign({}, commonProps), {\n tagName: type,\n props: props\n })) : type($ceFTv.__assign($ceFTv.__assign({}, commonProps), props));\n}\nmodule.exports.jsxs = $06a3b4d229715e45$var$jsx;\nmodule.exports.jsxDEV = $06a3b4d229715e45$var$jsx;\n/**\n * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#react-automatic-runtime-1}\n */ var $06a3b4d229715e45$var$Fragment = function(_a) {\n var key = _a.key, ref = _a.ref, is = _a.is, style = _a.style, children = _a.children, props = $ceFTv.__rest(_a, [\n \"key\",\n \"ref\",\n \"is\",\n \"style\",\n \"children\"\n ]);\n return new $2flNv.VNode({\n key: key,\n ref: ref,\n is: is,\n props: (0, $gPvyW.isEmpty)(props) ? undefined : props,\n style: style,\n children: children\n });\n};\nmodule.exports.Fragment = $06a3b4d229715e45$var$Fragment;\n\n});\nparcelRegister(\"ceFTv\", function(module, exports) {\n\n$parcel$export(module.exports, \"__extends\", () => $8e874a2fb001c377$export$a8ba968b8961cb8a);\n$parcel$export(module.exports, \"__assign\", () => $8e874a2fb001c377$export$18ce0697a983be9b);\n$parcel$export(module.exports, \"__rest\", () => $8e874a2fb001c377$export$3c9a16f847548506);\n$parcel$export(module.exports, \"__awaiter\", () => $8e874a2fb001c377$export$1050f835b63b671e);\n$parcel$export(module.exports, \"__generator\", () => $8e874a2fb001c377$export$67ebef60e6f28a6);\n$parcel$export(module.exports, \"__exportStar\", () => $8e874a2fb001c377$export$f33643c0debef087);\n$parcel$export(module.exports, \"__values\", () => $8e874a2fb001c377$export$19a8beecd37a4c45);\n$parcel$export(module.exports, \"__read\", () => $8e874a2fb001c377$export$8d051b38c9118094);\n$parcel$export(module.exports, \"__spreadArray\", () => $8e874a2fb001c377$export$1216008129fb82ed);\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */ var $8e874a2fb001c377$var$extendStatics = function(d, b) {\n $8e874a2fb001c377$var$extendStatics = Object.setPrototypeOf || ({\n __proto__: []\n }) instanceof Array && function(d, b) {\n d.__proto__ = b;\n } || function(d, b) {\n for(var p in b)if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return $8e874a2fb001c377$var$extendStatics(d, b);\n};\nfunction $8e874a2fb001c377$export$a8ba968b8961cb8a(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n $8e874a2fb001c377$var$extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nvar $8e874a2fb001c377$export$18ce0697a983be9b = function() {\n $8e874a2fb001c377$export$18ce0697a983be9b = Object.assign || function __assign(t) {\n for(var s, i = 1, n = arguments.length; i < n; i++){\n s = arguments[i];\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return $8e874a2fb001c377$export$18ce0697a983be9b.apply(this, arguments);\n};\nfunction $8e874a2fb001c377$export$3c9a16f847548506(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction $8e874a2fb001c377$export$29e00dfd3077644b(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nfunction $8e874a2fb001c377$export$d5ad3fd78186038f(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n}\nfunction $8e874a2fb001c377$export$3a84e1ae4e97e9b0(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n}\nfunction $8e874a2fb001c377$export$d831c04e792af3d(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n}\nfunction $8e874a2fb001c377$export$6a2a36740a146cb8(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n}\nfunction $8e874a2fb001c377$export$d1a06452d3489bc7(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n}\nfunction $8e874a2fb001c377$export$f1db080c865becb9(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nfunction $8e874a2fb001c377$export$1050f835b63b671e(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction $8e874a2fb001c377$export$67ebef60e6f28a6(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar $8e874a2fb001c377$export$45d3717a4c69092e = Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {\n enumerable: true,\n get: function() {\n return m[k];\n }\n };\n Object.defineProperty(o, k2, desc);\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nfunction $8e874a2fb001c377$export$f33643c0debef087(m, o) {\n for(var p in m)if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) $8e874a2fb001c377$export$45d3717a4c69092e(o, m, p);\n}\nfunction $8e874a2fb001c377$export$19a8beecd37a4c45(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nfunction $8e874a2fb001c377$export$8d051b38c9118094(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while((n === void 0 || n-- > 0) && !(r = i.next()).done)ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally{\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally{\n if (e) throw e.error;\n }\n }\n return ar;\n}\nfunction $8e874a2fb001c377$export$afc72e2116322959() {\n for(var ar = [], i = 0; i < arguments.length; i++)ar = ar.concat($8e874a2fb001c377$export$8d051b38c9118094(arguments[i]));\n return ar;\n}\nfunction $8e874a2fb001c377$export$6388937ca91ccae8() {\n for(var s = 0, i = 0, il = arguments.length; i < il; i++)s += arguments[i].length;\n for(var r = Array(s), k = 0, i = 0; i < il; i++)for(var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)r[k] = a[j];\n return r;\n}\nfunction $8e874a2fb001c377$export$1216008129fb82ed(to, from, pack) {\n if (pack || arguments.length === 2) {\n for(var i = 0, l = from.length, ar; i < l; i++)if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nfunction $8e874a2fb001c377$export$10c90e4f7922046c(v) {\n return this instanceof $8e874a2fb001c377$export$10c90e4f7922046c ? (this.v = v, this) : new $8e874a2fb001c377$export$10c90e4f7922046c(v);\n}\nfunction $8e874a2fb001c377$export$e427f37a30a4de9b(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function() {\n return this;\n }, i;\n function awaitReturn(f) {\n return function(v) {\n return Promise.resolve(v).then(f, reject);\n };\n }\n function verb(n, f) {\n if (g[n]) {\n i[n] = function(v) {\n return new Promise(function(a, b) {\n q.push([\n n,\n v,\n a,\n b\n ]) > 1 || resume(n, v);\n });\n };\n if (f) i[n] = f(i[n]);\n }\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof $8e874a2fb001c377$export$10c90e4f7922046c ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume(\"next\", value);\n }\n function reject(value) {\n resume(\"throw\", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nfunction $8e874a2fb001c377$export$bbd80228419bb833(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function(e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function() {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function(v) {\n return (p = !p) ? {\n value: $8e874a2fb001c377$export$10c90e4f7922046c(o[n](v)),\n done: false\n } : f ? f(v) : v;\n } : f;\n }\n}\nfunction $8e874a2fb001c377$export$e3b29a3d6162315f(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof $8e874a2fb001c377$export$19a8beecd37a4c45 === \"function\" ? $8e874a2fb001c377$export$19a8beecd37a4c45(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function(v) {\n return new Promise(function(resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function(v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nfunction $8e874a2fb001c377$export$4fb47efe1390b86f(cooked, raw) {\n if (Object.defineProperty) Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n else cooked.raw = raw;\n return cooked;\n}\nvar $8e874a2fb001c377$var$__setModuleDefault = Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n};\nvar $8e874a2fb001c377$var$ownKeys = function(o) {\n $8e874a2fb001c377$var$ownKeys = Object.getOwnPropertyNames || function(o) {\n var ar = [];\n for(var k in o)if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return $8e874a2fb001c377$var$ownKeys(o);\n};\nfunction $8e874a2fb001c377$export$c21735bcef00d192(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k = $8e874a2fb001c377$var$ownKeys(mod), i = 0; i < k.length; i++)if (k[i] !== \"default\") $8e874a2fb001c377$export$45d3717a4c69092e(result, mod, k[i]);\n }\n $8e874a2fb001c377$var$__setModuleDefault(result, mod);\n return result;\n}\nfunction $8e874a2fb001c377$export$da59b14a69baef04(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nfunction $8e874a2fb001c377$export$d5dcaf168c640c35(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nfunction $8e874a2fb001c377$export$d40a35129aaff81f(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\nfunction $8e874a2fb001c377$export$81fdc39f203e4e04(state, receiver) {\n if (receiver === null || typeof receiver !== \"object\" && typeof receiver !== \"function\") throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\nfunction $8e874a2fb001c377$export$88ac25d8e944e405(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() {\n try {\n inner.call(this);\n } catch (e) {\n return Promise.reject(e);\n }\n };\n env.stack.push({\n value: value,\n dispose: dispose,\n async: async\n });\n } else if (async) env.stack.push({\n async: true\n });\n return value;\n}\nvar $8e874a2fb001c377$var$_SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function(error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\nfunction $8e874a2fb001c377$export$8f076105dc360e92(env) {\n function fail(e) {\n env.error = env.hasError ? new $8e874a2fb001c377$var$_SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while(r = env.stack.pop())try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {\n fail(e);\n return next();\n });\n } else s |= 1;\n } catch (e) {\n fail(e);\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\nfunction $8e874a2fb001c377$export$889dfb5d17574b0b(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : d + ext + \".\" + cm.toLowerCase() + \"js\";\n });\n return path;\n}\nvar $8e874a2fb001c377$export$2e2bcd8739ae039 = {\n __extends: $8e874a2fb001c377$export$a8ba968b8961cb8a,\n __assign: $8e874a2fb001c377$export$18ce0697a983be9b,\n __rest: $8e874a2fb001c377$export$3c9a16f847548506,\n __decorate: $8e874a2fb001c377$export$29e00dfd3077644b,\n __param: $8e874a2fb001c377$export$d5ad3fd78186038f,\n __esDecorate: $8e874a2fb001c377$export$3a84e1ae4e97e9b0,\n __runInitializers: $8e874a2fb001c377$export$d831c04e792af3d,\n __propKey: $8e874a2fb001c377$export$6a2a36740a146cb8,\n __setFunctionName: $8e874a2fb001c377$export$d1a06452d3489bc7,\n __metadata: $8e874a2fb001c377$export$f1db080c865becb9,\n __awaiter: $8e874a2fb001c377$export$1050f835b63b671e,\n __generator: $8e874a2fb001c377$export$67ebef60e6f28a6,\n __createBinding: $8e874a2fb001c377$export$45d3717a4c69092e,\n __exportStar: $8e874a2fb001c377$export$f33643c0debef087,\n __values: $8e874a2fb001c377$export$19a8beecd37a4c45,\n __read: $8e874a2fb001c377$export$8d051b38c9118094,\n __spread: $8e874a2fb001c377$export$afc72e2116322959,\n __spreadArrays: $8e874a2fb001c377$export$6388937ca91ccae8,\n __spreadArray: $8e874a2fb001c377$export$1216008129fb82ed,\n __await: $8e874a2fb001c377$export$10c90e4f7922046c,\n __asyncGenerator: $8e874a2fb001c377$export$e427f37a30a4de9b,\n __asyncDelegator: $8e874a2fb001c377$export$bbd80228419bb833,\n __asyncValues: $8e874a2fb001c377$export$e3b29a3d6162315f,\n __makeTemplateObject: $8e874a2fb001c377$export$4fb47efe1390b86f,\n __importStar: $8e874a2fb001c377$export$c21735bcef00d192,\n __importDefault: $8e874a2fb001c377$export$da59b14a69baef04,\n __classPrivateFieldGet: $8e874a2fb001c377$export$d5dcaf168c640c35,\n __classPrivateFieldSet: $8e874a2fb001c377$export$d40a35129aaff81f,\n __classPrivateFieldIn: $8e874a2fb001c377$export$81fdc39f203e4e04,\n __addDisposableResource: $8e874a2fb001c377$export$88ac25d8e944e405,\n __disposeResources: $8e874a2fb001c377$export$8f076105dc360e92,\n __rewriteRelativeImportExtension: $8e874a2fb001c377$export$889dfb5d17574b0b\n};\n\n});\n\nparcelRegister(\"gPvyW\", function(module, exports) {\n\n$parcel$export(module.exports, \"isEmpty\", () => $c409e47346e83e74$export$dd1bc94b04021eeb);\n$parcel$export(module.exports, \"toHyphenCase\", () => $c409e47346e83e74$export$3f34ca2fef821bbd);\n$parcel$export(module.exports, \"toCamelCase\", () => $c409e47346e83e74$export$86f54f62aa7a7514);\n$parcel$export(module.exports, \"DiffStatus\", () => $c409e47346e83e74$export$2ddabb89308e1a22);\n$parcel$export(module.exports, \"diffKeys\", () => $c409e47346e83e74$export$14527669107aa301);\n$parcel$export(module.exports, \"groupBy\", () => $c409e47346e83e74$export$3f063810d7bf01bd);\n$parcel$export(module.exports, \"parseJSON\", () => $c409e47346e83e74$export$27924e57e9afff7f);\n$parcel$export(module.exports, \"isXDomain\", () => $c409e47346e83e74$export$71e6483fc2b024eb);\n$parcel$export(module.exports, \"parseURLData\", () => $c409e47346e83e74$export$eb9b2aadbe449a20);\n$parcel$export(module.exports, \"buildURLData\", () => $c409e47346e83e74$export$13397a83aa5915d6);\n$parcel$export(module.exports, \"XMLNamespace\", () => $c409e47346e83e74$export$f5a4056b78c72efa);\n$parcel$export(module.exports, \"templateOf\", () => $c409e47346e83e74$export$2ee022bbbc550b25);\n$parcel$export(module.exports, \"elementTypeOf\", () => $c409e47346e83e74$export$a549dd5cef7f8327);\n$parcel$export(module.exports, \"isHTMLElementClass\", () => $c409e47346e83e74$export$8eece510bcb9c62c);\n$parcel$export(module.exports, \"tagNameOf\", () => $c409e47346e83e74$export$b8a1af58c024fefd);\n$parcel$export(module.exports, \"getVisibleText\", () => $c409e47346e83e74$export$be4650432daa84fd);\n$parcel$export(module.exports, \"importCSS\", () => $c409e47346e83e74$export$7cd14c57bbb84350);\n$parcel$export(module.exports, \"scrollTo\", () => $c409e47346e83e74$export$3f99968195accfaf);\n$parcel$export(module.exports, \"formToJSON\", () => $c409e47346e83e74$export$86d7c59254d6a2c9);\n$parcel$export(module.exports, \"delegate\", () => $c409e47346e83e74$export$10b1921597150314);\n$parcel$export(module.exports, \"documentReady\", () => $c409e47346e83e74$export$3e2b244719956741);\nfunction $c409e47346e83e74$var$$parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {\n get: v,\n set: s,\n enumerable: true,\n configurable: true\n });\n}\nvar $c409e47346e83e74$var$$9b05bcda60cc529c$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"likeNull\", function() {\n return $c409e47346e83e74$export$61cc6ed0f143570b;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"isEmpty\", function() {\n return $c409e47346e83e74$export$dd1bc94b04021eeb;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"classNameOf\", function() {\n return $c409e47346e83e74$export$a09f818797e212c4;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"assertInheritance\", function() {\n return $c409e47346e83e74$export$170f4e08cad8229d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"proxyPrototype\", function() {\n return $c409e47346e83e74$export$2a489b3f92f4996a;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"isUnsafeNumeric\", function() {\n return $c409e47346e83e74$export$67a6ce548ae77071;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"byteLength\", function() {\n return $c409e47346e83e74$export$a48f0734ac7c2329;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"toHyphenCase\", function() {\n return $c409e47346e83e74$export$3f34ca2fef821bbd;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"toCamelCase\", function() {\n return $c409e47346e83e74$export$86f54f62aa7a7514;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"uniqueID\", function() {\n return $c409e47346e83e74$export$89912e019eef22aa;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"objectFrom\", function() {\n return $c409e47346e83e74$export$1c8ba402144543e5;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"DiffStatus\", function() {\n return $c409e47346e83e74$export$2ddabb89308e1a22;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"diffKeys\", function() {\n return $c409e47346e83e74$export$14527669107aa301;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"groupBy\", function() {\n return $c409e47346e83e74$export$3f063810d7bf01bd;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"likeArray\", function() {\n return $c409e47346e83e74$export$b5a4d6f439a5044d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"isTypedArray\", function() {\n return $c409e47346e83e74$export$b119cc7e1840e59c;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"makeArray\", function() {\n return $c409e47346e83e74$export$7b85fd78dd236198;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"splitArray\", function() {\n return $c409e47346e83e74$export$697c3df919c0e61a;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"findDeep\", function() {\n return $c409e47346e83e74$export$e6b5ff3168b5942b;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"countBy\", function() {\n return $c409e47346e83e74$export$1d012a0dff3dab06;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"cache\", function() {\n return $c409e47346e83e74$export$69a3209f1a06c04d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"createAsyncIterator\", function() {\n return $c409e47346e83e74$export$86c18c6347f4a8c4;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"mergeStream\", function() {\n return $c409e47346e83e74$export$dce9414bed0662c;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$9b05bcda60cc529c$exports, \"ByteSize\", function() {\n return $c409e47346e83e74$export$271f7c16f175f804;\n});\nvar $c409e47346e83e74$var$$6a9944941b4c1893$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"sum\", function() {\n return $c409e47346e83e74$export$8a63f25cc62965f1;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"averageOf\", function() {\n return $c409e47346e83e74$export$e1f36757ecda301d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"varianceOf\", function() {\n return $c409e47346e83e74$export$8e694e1eafd55acb;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"standardDeviationOf\", function() {\n return $c409e47346e83e74$export$57d7c52a66287430;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"hypotenuseOf\", function() {\n return $c409e47346e83e74$export$2b4693832ca3ce16;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"carryFloat\", function() {\n return $c409e47346e83e74$export$5b784e078da1ce6;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"fixFloat\", function() {\n return $c409e47346e83e74$export$17ec9c9f4f23588c;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$6a9944941b4c1893$exports, \"Scalar\", function() {\n return $c409e47346e83e74$export$595dbf49c602a1f;\n});\nfunction $c409e47346e83e74$export$8a63f25cc62965f1(...data) {\n return data.reduce((sum, item)=>sum + item, 0);\n}\nfunction $c409e47346e83e74$export$e1f36757ecda301d(...data) {\n return $c409e47346e83e74$export$8a63f25cc62965f1(...data) / data.length;\n}\nfunction $c409e47346e83e74$export$8e694e1eafd55acb(data, sample = false) {\n const average = $c409e47346e83e74$export$e1f36757ecda301d(...data);\n const summary = $c409e47346e83e74$export$8a63f25cc62965f1(...data.map((item)=>(item - average) ** 2));\n return summary / (data.length - (sample ? 1 : 0));\n}\nfunction $c409e47346e83e74$export$57d7c52a66287430(data, sample = false) {\n return Math.sqrt($c409e47346e83e74$export$8e694e1eafd55acb(data, sample));\n}\nfunction $c409e47346e83e74$export$2b4693832ca3ce16(...data) {\n return Math.sqrt($c409e47346e83e74$export$8a63f25cc62965f1(...data.map((item)=>item ** 2)));\n}\nfunction $c409e47346e83e74$export$5b784e078da1ce6(raw, length) {\n const text = raw.toFixed(length + 2);\n const offset = text.indexOf(\".\") + length + 1;\n const cut = (text)=>text.slice(0, offset - (length ? 0 : 1));\n if (!+text.slice(offset)) return cut(text);\n const result = cut((+cut(text) + 10 ** -length).toFixed(length));\n return result.includes(\".\") ? result.padEnd(offset, \"0\") : result;\n}\nfunction $c409e47346e83e74$export$17ec9c9f4f23588c(raw, length = 2) {\n const text = raw.toFixed(length + 2);\n const floatOffset = text.indexOf(\".\");\n if (floatOffset < 0) return length ? `${text}.${\"0\".repeat(length)}` : text;\n const offset = floatOffset + length + 1;\n const before = +text[offset - 1], anchor = +text[offset], after = +text[offset + 1];\n const carry = anchor > 5 || anchor === 5 && (!!after || !!(before % 2));\n if (carry) return $c409e47346e83e74$export$5b784e078da1ce6(raw, length);\n const result = text.slice(0, offset - (length ? 0 : 1));\n return result.includes(\".\") ? result.padEnd(offset, \"0\") : result;\n}\nclass $c409e47346e83e74$export$595dbf49c602a1f {\n constructor(value){\n this.value = value;\n }\n valueOf() {\n return this.value;\n }\n toShortString(fractionDigits = 2) {\n const { units: units, value: value } = this;\n const { base: base, name: name } = [\n ...units\n ].reverse().find(({ base: base })=>Math.abs(value) >= base) || units[0];\n return `${(value / base).toFixed(fractionDigits)} ${name}`;\n }\n static distanceOf(a, b) {\n return Reflect.construct(this, [\n a - b\n ]);\n }\n}\nfunction $c409e47346e83e74$export$61cc6ed0f143570b(value) {\n return !(value != null) || Number.isNaN(value);\n}\nfunction $c409e47346e83e74$export$dd1bc94b04021eeb(value) {\n return $c409e47346e83e74$export$61cc6ed0f143570b(value) || (typeof value === \"object\" ? !Object.keys(value).length : value === \"\");\n}\nconst $c409e47346e83e74$export$a09f818797e212c4 = (data)=>Object.prototype.toString.call(data).slice(8, -1);\nfunction $c409e47346e83e74$export$170f4e08cad8229d(Sub, Super) {\n return Sub.prototype instanceof Super;\n}\nfunction $c409e47346e83e74$export$2a489b3f92f4996a(target, dataStore, setter) {\n const prototype = Object.getPrototypeOf(target);\n const prototypeProxy = new Proxy(prototype, {\n set: (_, key, value, receiver)=>{\n if (key in receiver) Reflect.set(prototype, key, value, receiver);\n else dataStore[key] = value;\n setter?.(key, value);\n return true;\n },\n get: (prototype, key, receiver)=>key in dataStore ? dataStore[key] : Reflect.get(prototype, key, receiver)\n });\n Object.setPrototypeOf(target, prototypeProxy);\n}\nfunction $c409e47346e83e74$export$67a6ce548ae77071(raw) {\n return /^[\\d.]+$/.test(raw) && raw.localeCompare(Number.MAX_SAFE_INTEGER + \"\", undefined, {\n numeric: true\n }) > 0;\n}\nfunction $c409e47346e83e74$export$a48f0734ac7c2329(raw) {\n return raw.replace(/[^\\u0021-\\u007e\\uff61-\\uffef]/g, \"xx\").length;\n}\nfunction $c409e47346e83e74$export$3f34ca2fef821bbd(raw) {\n return raw.replace(/[A-Z]+|[^A-Za-z][A-Za-z]/g, (match, offset)=>`${offset ? \"-\" : \"\"}${(match[1] || match[0]).toLowerCase()}`);\n}\nfunction $c409e47346e83e74$export$86f54f62aa7a7514(raw, large = false) {\n return raw.replace(/^[A-Za-z]|[^A-Za-z][A-Za-z]/g, (match, offset)=>offset || large ? (match[1] || match[0]).toUpperCase() : match.toLowerCase());\n}\nfunction $c409e47346e83e74$export$89912e019eef22aa() {\n return (Date.now() + parseInt((Math.random() + \"\").slice(2))).toString(36);\n}\nfunction $c409e47346e83e74$export$1c8ba402144543e5(values, keys) {\n return Object.fromEntries(values.map((value, index)=>[\n keys[index],\n value\n ]));\n}\nvar $c409e47346e83e74$export$2ddabb89308e1a22;\n(function(DiffStatus) {\n DiffStatus[DiffStatus[\"Old\"] = -1] = \"Old\";\n DiffStatus[DiffStatus[\"Same\"] = 0] = \"Same\";\n DiffStatus[DiffStatus[\"New\"] = 1] = \"New\";\n})($c409e47346e83e74$export$2ddabb89308e1a22 || ($c409e47346e83e74$export$2ddabb89308e1a22 = {}));\nfunction $c409e47346e83e74$export$14527669107aa301(oldList, newList) {\n const map = {};\n for (const item of oldList)map[item] = -1;\n for (const item of newList){\n map[item] ||= 0;\n map[item] += 1;\n }\n return {\n map: map,\n group: $c409e47346e83e74$export$3f063810d7bf01bd(Object.entries(map), ([key, status])=>status)\n };\n}\nfunction $c409e47346e83e74$export$b5a4d6f439a5044d(data) {\n if ($c409e47346e83e74$export$61cc6ed0f143570b(data)) return false;\n const { length: length } = data;\n return typeof length === \"number\" && length >= 0 && ~~length === length;\n}\nconst $c409e47346e83e74$export$b119cc7e1840e59c = (data)=>data instanceof Object.getPrototypeOf(Int8Array);\nfunction $c409e47346e83e74$export$7b85fd78dd236198(data) {\n if (data instanceof Array) return data;\n if ($c409e47346e83e74$export$61cc6ed0f143570b(data)) return [];\n if ($c409e47346e83e74$export$b5a4d6f439a5044d(data)) return Array.from(data);\n return [\n data\n ];\n}\nconst $c409e47346e83e74$export$697c3df919c0e61a = (array, unitLength)=>array.reduce((grid, item, index)=>{\n (grid[~~(index / unitLength)] ||= [])[index % unitLength] = item;\n return grid;\n }, []);\nfunction $c409e47346e83e74$export$e6b5ff3168b5942b(list, subKey, handler) {\n for (const item of list){\n if (handler(item)) return [\n item\n ];\n if (item[subKey] instanceof Array) {\n const result = $c409e47346e83e74$export$e6b5ff3168b5942b(item[subKey], subKey, handler);\n if (result.length) return [\n item,\n ...result\n ];\n }\n }\n return [];\n}\nfunction $c409e47346e83e74$export$3f063810d7bf01bd(list, iteratee) {\n const data = {};\n for (const item of list){\n let keys = iteratee instanceof Function ? iteratee(item) : item[iteratee];\n if (!(keys instanceof Array)) keys = [\n keys\n ];\n for (const key of new Set(keys.filter((key)=>key != null)))(data[key] = data[key] || []).push(item);\n }\n return data;\n}\nfunction $c409e47346e83e74$export$1d012a0dff3dab06(list, iteratee) {\n const group = $c409e47346e83e74$export$3f063810d7bf01bd(list, iteratee);\n const sortedList = Object.entries(group).map(([key, { length: length }])=>[\n key,\n length\n ]);\n return Object.fromEntries(sortedList);\n}\nfunction $c409e47346e83e74$export$69a3209f1a06c04d(executor, title) {\n var cacheData;\n return function(...data) {\n if (cacheData != null) return cacheData;\n console.trace(`[Cache] execute: ${title}`);\n cacheData = executor.call(this, ()=>cacheData = undefined, ...data);\n Promise.resolve(cacheData).then((data)=>console.log(`[Cache] refreshed: ${title} => ${data}`), (error)=>console.error(`[Cache] failed: ${error?.message || error}`));\n return cacheData;\n };\n}\nasync function* $c409e47346e83e74$export$86c18c6347f4a8c4(executor) {\n let { promise: promise, resolve: resolve, reject: reject } = Promise.withResolvers();\n const doneSymbol = Symbol(\"done\"), done = Promise.withResolvers();\n const disposer = executor({\n next: (value)=>resolve(value),\n error: (error)=>{\n reject(error);\n // @ts-ignore\n disposer?.();\n },\n complete: ()=>{\n done.resolve(doneSymbol);\n // @ts-ignore\n disposer?.();\n }\n });\n while(true){\n const value = await Promise.race([\n promise,\n done.promise\n ]);\n if (value === doneSymbol) return;\n yield value;\n ({ promise: promise, resolve: resolve, reject: reject } = Promise.withResolvers());\n }\n}\nasync function* $c409e47346e83e74$export$dce9414bed0662c(...sources) {\n var iterators = sources.map((item)=>item());\n while(iterators[0]){\n const dones = [];\n for(let i = 0, iterator; iterator = iterators[i]; i++){\n const { done: done, value: value } = await iterator.next();\n if (!done) yield value;\n else dones.push(i);\n }\n iterators = iterators.filter((_, i)=>!dones.includes(i));\n }\n}\nclass $c409e47346e83e74$export$271f7c16f175f804 extends $c409e47346e83e74$export$595dbf49c602a1f {\n constructor(...args){\n super(...args);\n this.units = [\n \"\",\n \"K\",\n \"M\",\n \"G\",\n \"T\",\n \"P\",\n \"E\",\n \"Z\",\n \"Y\"\n ].map((name, i)=>({\n base: 1024 ** i,\n name: name + \"B\"\n }));\n }\n}\nvar $c409e47346e83e74$var$$f872d8bba1c0f79f$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Second\", function() {\n return $c409e47346e83e74$export$c489aa6f7fd82b1a;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Minute\", function() {\n return $c409e47346e83e74$export$cbd942915f33be50;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Quarter\", function() {\n return $c409e47346e83e74$export$9b886f8493244014;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Hour\", function() {\n return $c409e47346e83e74$export$e99cbb807a5bb10d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Day\", function() {\n return $c409e47346e83e74$export$7a9a31a911eb9a20;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Week\", function() {\n return $c409e47346e83e74$export$fca4f8121099df57;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Year\", function() {\n return $c409e47346e83e74$export$6ce2f08d515512;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Month\", function() {\n return $c409e47346e83e74$export$951c8378cdfec6e6;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Season\", function() {\n return $c409e47346e83e74$export$1a4097b876a13bf7;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"Timestamp\", function() {\n return $c409e47346e83e74$export$d9bcbd5e1ff81430;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"diffTime\", function() {\n return $c409e47346e83e74$export$506c8e8f8c8edda;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"formatDate\", function() {\n return $c409e47346e83e74$export$3ae94a2503e890a1;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$f872d8bba1c0f79f$exports, \"changeMonth\", function() {\n return $c409e47346e83e74$export$62ad822b3a5fd9a0;\n});\nconst $c409e47346e83e74$export$c489aa6f7fd82b1a = 1000;\nconst $c409e47346e83e74$export$cbd942915f33be50 = $c409e47346e83e74$export$c489aa6f7fd82b1a * 60;\nconst $c409e47346e83e74$export$9b886f8493244014 = $c409e47346e83e74$export$cbd942915f33be50 * 15;\nconst $c409e47346e83e74$export$e99cbb807a5bb10d = $c409e47346e83e74$export$9b886f8493244014 * 4;\nconst $c409e47346e83e74$export$7a9a31a911eb9a20 = $c409e47346e83e74$export$e99cbb807a5bb10d * 24;\nconst $c409e47346e83e74$export$fca4f8121099df57 = $c409e47346e83e74$export$7a9a31a911eb9a20 * 7;\nconst $c409e47346e83e74$export$6ce2f08d515512 = $c409e47346e83e74$export$7a9a31a911eb9a20 * 365;\nconst $c409e47346e83e74$export$951c8378cdfec6e6 = $c409e47346e83e74$export$6ce2f08d515512 / 12;\nconst $c409e47346e83e74$export$1a4097b876a13bf7 = $c409e47346e83e74$export$951c8378cdfec6e6 * 3;\nclass $c409e47346e83e74$export$d9bcbd5e1ff81430 extends $c409e47346e83e74$export$595dbf49c602a1f {\n toShortString(fractionDigits = 0) {\n return super.toShortString(fractionDigits);\n }\n constructor(...args){\n super(...args);\n this.units = [\n {\n base: $c409e47346e83e74$export$c489aa6f7fd82b1a,\n name: \"s\"\n },\n {\n base: $c409e47346e83e74$export$cbd942915f33be50,\n name: \"m\"\n },\n {\n base: $c409e47346e83e74$export$e99cbb807a5bb10d,\n name: \"H\"\n },\n {\n base: $c409e47346e83e74$export$7a9a31a911eb9a20,\n name: \"D\"\n },\n {\n base: $c409e47346e83e74$export$fca4f8121099df57,\n name: \"W\"\n },\n {\n base: $c409e47346e83e74$export$951c8378cdfec6e6,\n name: \"M\"\n },\n {\n base: $c409e47346e83e74$export$6ce2f08d515512,\n name: \"Y\"\n }\n ];\n }\n}\nfunction $c409e47346e83e74$export$506c8e8f8c8edda(end, start = new Date()) {\n const timeDistance = $c409e47346e83e74$export$d9bcbd5e1ff81430.distanceOf(+new Date(end), +new Date(start));\n const [value, unit] = timeDistance.toShortString().split(/\\s+/);\n return {\n distance: +value,\n unit: unit\n };\n}\nfunction $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(value) {\n value = +value + \"\";\n return (template)=>(value.length < template.length ? value.padStart(template.length, \"0\") : value).slice(-Math.max(template.length, 2));\n}\nfunction $c409e47346e83e74$export$3ae94a2503e890a1(time = new Date(), template = \"YYYY-MM-DD HH:mm:ss\") {\n time = time instanceof Date ? time : new Date(time);\n time = new Date(+time - time.getTimezoneOffset() * $c409e47346e83e74$export$cbd942915f33be50);\n const [year, month, day, hour, minute, second, millisecond] = time.toJSON().split(/\\D/);\n return template.replace(/ms/g, millisecond).replace(/Y+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(year)).replace(/M+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(month)).replace(/D+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(day)).replace(/H+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(hour)).replace(/m+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(minute)).replace(/s+/g, $c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit(second));\n}\nfunction $c409e47346e83e74$export$62ad822b3a5fd9a0(date, delta) {\n date = new Date(date);\n const month = date.getMonth() + delta;\n date.setFullYear(date.getFullYear() + Math.floor(month / 12));\n delta = month % 12;\n date.setMonth(delta < 0 ? 12 + delta : delta);\n return date;\n}\nvar $c409e47346e83e74$var$$ba0e5dc395660a7c$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$ba0e5dc395660a7c$exports, \"parseJSON\", function() {\n return $c409e47346e83e74$export$27924e57e9afff7f;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$ba0e5dc395660a7c$exports, \"toJSValue\", function() {\n return $c409e47346e83e74$export$7ea17d45ecdcf634;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$ba0e5dc395660a7c$exports, \"parseTextTable\", function() {\n return $c409e47346e83e74$export$bb8626e4916f587b;\n});\nfunction $c409e47346e83e74$export$27924e57e9afff7f(raw) {\n function parseItem(value) {\n if (typeof value === \"string\" && /^\\d+(-\\d{1,2}){1,2}/.test(value)) {\n const date = new Date(value);\n if (!Number.isNaN(+date)) return date;\n }\n return value;\n }\n const value = parseItem(raw);\n if (typeof value !== \"string\" || $c409e47346e83e74$export$67a6ce548ae77071(value)) return value;\n try {\n return JSON.parse(raw, (key, value)=>parseItem(value));\n } catch {\n return raw;\n }\n}\nfunction $c409e47346e83e74$export$7ea17d45ecdcf634(raw) {\n const parsed = $c409e47346e83e74$export$27924e57e9afff7f(raw);\n if (typeof parsed !== \"string\") return parsed;\n const number = +parsed;\n return Number.isNaN(number) || number + \"\" !== parsed ? parsed : number;\n}\nfunction $c409e47346e83e74$var$$ba0e5dc395660a7c$var$readQuoteValue(raw) {\n const quote = raw[0];\n const index = raw.indexOf(quote, 1);\n if (index < 0) throw SyntaxError(`A ${quote} is missing`);\n return raw.slice(1, index);\n}\nfunction $c409e47346e83e74$export$bb8626e4916f587b(raw, header, separator = \",\") {\n const data = raw.trim().split(/[\\r\\n]+/).map((row)=>{\n const list = [];\n do {\n let value;\n if (row[0] === '\"' || row[0] === \"'\") {\n value = $c409e47346e83e74$var$$ba0e5dc395660a7c$var$readQuoteValue(row);\n row = row.slice(value.length + 3);\n } else {\n const index = row.indexOf(separator);\n if (index > -1) {\n value = row.slice(0, index);\n row = row.slice(index + 1);\n } else {\n value = row;\n row = \"\";\n }\n }\n list.push($c409e47346e83e74$export$7ea17d45ecdcf634(value.trim()));\n }while (row);\n return list;\n });\n return !header ? data : data.slice(1).map((row)=>row.reduce((object, item, index)=>{\n object[data[0][index]] = item;\n return object;\n }, {}));\n}\nvar $c409e47346e83e74$var$$083124ac4b1a50a0$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$083124ac4b1a50a0$exports, \"isXDomain\", function() {\n return $c409e47346e83e74$export$71e6483fc2b024eb;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$083124ac4b1a50a0$exports, \"parseURLData\", function() {\n return $c409e47346e83e74$export$eb9b2aadbe449a20;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$083124ac4b1a50a0$exports, \"buildURLData\", function() {\n return $c409e47346e83e74$export$13397a83aa5915d6;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$083124ac4b1a50a0$exports, \"blobOf\", function() {\n return $c409e47346e83e74$export$fd89523fba250fa4;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$083124ac4b1a50a0$exports, \"blobFrom\", function() {\n return $c409e47346e83e74$export$504fbde693c1771c;\n});\nfunction $c409e47346e83e74$export$71e6483fc2b024eb(URI) {\n return new URL(URI, document.baseURI).origin !== location.origin;\n}\nfunction $c409e47346e83e74$export$eb9b2aadbe449a20(raw = globalThis.location?.search, toBuiltIn = true) {\n const list = raw.split(/\\?|#/);\n const data = new URLSearchParams(list[1] || list[0]);\n return Object.fromEntries([\n ...data.keys()\n ].map((key)=>{\n const list = toBuiltIn ? data.getAll(key).map($c409e47346e83e74$export$27924e57e9afff7f) : data.getAll(key);\n return [\n key,\n list.length < 2 ? list[0] : list\n ];\n }));\n}\nconst $c409e47346e83e74$var$$083124ac4b1a50a0$var$stringify = (value)=>typeof value === \"string\" ? value : $c409e47346e83e74$export$b5a4d6f439a5044d(value) ? $c409e47346e83e74$export$7b85fd78dd236198(value) + \"\" : JSON.stringify(value);\nfunction $c409e47346e83e74$export$13397a83aa5915d6(map) {\n if (!(map instanceof Array)) map = Object.entries(map);\n const list = map.map(([key, value])=>!$c409e47346e83e74$export$dd1bc94b04021eeb(value) && [\n key,\n $c409e47346e83e74$var$$083124ac4b1a50a0$var$stringify(value)\n ]).filter(Boolean);\n return new URLSearchParams(list);\n}\nasync function $c409e47346e83e74$export$fd89523fba250fa4(URI) {\n return (await fetch(URI + \"\")).blob();\n}\nconst $c409e47346e83e74$var$$083124ac4b1a50a0$var$DataURI = /^data:(.+?\\/(.+?))?(;base64)?,([\\s\\S]+)/;\nfunction $c409e47346e83e74$export$504fbde693c1771c(URI) {\n var [_, type, __, base64, data] = $c409e47346e83e74$var$$083124ac4b1a50a0$var$DataURI.exec(URI) || [];\n data = base64 ? atob(data) : data;\n const aBuffer = new ArrayBuffer(data.length);\n const uBuffer = new Uint8Array(aBuffer);\n for(let i = 0; data[i]; i++)uBuffer[i] = data.charCodeAt(i);\n return new Blob([\n aBuffer\n ], {\n type: type\n });\n}\nvar $c409e47346e83e74$var$$50872bf213056663$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$50872bf213056663$exports, \"makeCRC32\", function() {\n return $c409e47346e83e74$export$1b9ac4d3de3ffd2e;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$50872bf213056663$exports, \"makeSHA\", function() {\n return $c409e47346e83e74$export$d51f3b55e8d1aa73;\n});\nconst $c409e47346e83e74$var$$50872bf213056663$var$CRC_32_Table = Array.from(new Array(256), (_, cell)=>{\n for(var j = 0; j < 8; j++)if (cell & 1) cell = cell >> 1 & 0x7fffffff ^ 0xedb88320;\n else cell = cell >> 1 & 0x7fffffff;\n return cell;\n});\nfunction $c409e47346e83e74$export$1b9ac4d3de3ffd2e(raw) {\n var value = 0xffffffff;\n for (const char of raw)value = value >> 8 & 0x00ffffff ^ $c409e47346e83e74$var$$50872bf213056663$var$CRC_32_Table[value & 0xff ^ char.charCodeAt(0)];\n return \"0x\" + ((value ^ 0xffffffff) >>> 0).toString(16);\n}\nif (typeof self === \"object\") {\n if (\"msCrypto\" in globalThis) {\n // @ts-ignore\n const { subtle: subtle } = globalThis.crypto = globalThis.msCrypto;\n for(const key in subtle){\n const origin = subtle[key];\n if (origin instanceof Function) subtle[key] = function() {\n const observer = origin.apply(this, arguments);\n return new Promise((resolve, reject)=>{\n observer.oncomplete = ({ target: target })=>resolve(target.result);\n observer.onabort = observer.onerror = reject;\n });\n };\n }\n }\n const { crypto: crypto1 } = globalThis;\n if (!crypto1?.subtle && crypto1?.[\"webkitSubtle\"]) crypto1.subtle = crypto1[\"webkitSubtle\"];\n}\nasync function $c409e47346e83e74$export$d51f3b55e8d1aa73(raw, algorithm = \"SHA-1\") {\n const buffer = await crypto.subtle.digest(algorithm, new TextEncoder().encode(raw));\n return Array.from(new Uint8Array(buffer), (byte)=>byte.toString(16).padStart(2, \"0\")).join(\"\");\n}\nvar $c409e47346e83e74$var$$93a3089d2937b23f$exports = {};\nvar $c409e47346e83e74$var$$3e0a089cc13f69ad$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"XMLNamespace\", function() {\n return $c409e47346e83e74$export$f5a4056b78c72efa;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"templateOf\", function() {\n return $c409e47346e83e74$export$2ee022bbbc550b25;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"elementTypeOf\", function() {\n return $c409e47346e83e74$export$a549dd5cef7f8327;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"isHTMLElementClass\", function() {\n return $c409e47346e83e74$export$8eece510bcb9c62c;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"tagNameOf\", function() {\n return $c409e47346e83e74$export$b8a1af58c024fefd;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"isDOMReadOnly\", function() {\n return $c409e47346e83e74$export$a2cf0d4bb6e06de4;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"parseDOM\", function() {\n return $c409e47346e83e74$export$d66b332881d9723f;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"stringifyDOM\", function() {\n return $c409e47346e83e74$export$b0709844452f8b6b;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"walkDOM\", function() {\n return $c409e47346e83e74$export$5118471ee5d5453b;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"getVisibleText\", function() {\n return $c409e47346e83e74$export$be4650432daa84fd;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"splitPages\", function() {\n return $c409e47346e83e74$export$578e38b4a3e0b255;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"importCSS\", function() {\n return $c409e47346e83e74$export$7cd14c57bbb84350;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"stringifyCSS\", function() {\n return $c409e47346e83e74$export$5100419dfae0456d;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"insertToCursor\", function() {\n return $c409e47346e83e74$export$28d9d24a8cd0ffc2;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"scrollTo\", function() {\n return $c409e47346e83e74$export$3f99968195accfaf;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"watchScroll\", function() {\n return $c409e47346e83e74$export$eafdbaa868ea9975;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"watchVisible\", function() {\n return $c409e47346e83e74$export$36a0c1ca2ae264fa;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$3e0a089cc13f69ad$exports, \"formToJSON\", function() {\n return $c409e47346e83e74$export$86d7c59254d6a2c9;\n});\nconst $c409e47346e83e74$export$f5a4056b78c72efa = {\n html: \"http://www.w3.org/1999/xhtml\",\n svg: \"http://www.w3.org/2000/svg\",\n math: \"http://www.w3.org/1998/Math/MathML\"\n};\nconst $c409e47346e83e74$var$$3e0a089cc13f69ad$var$templateMap = {};\nfunction $c409e47346e83e74$export$2ee022bbbc550b25(tagName) {\n if ($c409e47346e83e74$var$$3e0a089cc13f69ad$var$templateMap[tagName]) return $c409e47346e83e74$var$$3e0a089cc13f69ad$var$templateMap[tagName];\n const spawn = document.createElement(\"template\");\n spawn.innerHTML = `<${tagName} />`;\n return $c409e47346e83e74$var$$3e0a089cc13f69ad$var$templateMap[tagName] = spawn.content.firstElementChild;\n}\nfunction $c409e47346e83e74$export$a549dd5cef7f8327(tagName) {\n if (tagName.includes(\"-\")) return \"html\";\n const [prefix, localName] = tagName.split(\":\");\n if (localName) return prefix === \"html\" ? \"html\" : \"xml\";\n const node = $c409e47346e83e74$export$2ee022bbbc550b25(tagName);\n return node instanceof HTMLElement && !(node instanceof HTMLUnknownElement) ? \"html\" : \"xml\";\n}\nfunction $c409e47346e83e74$export$8eece510bcb9c62c(Class) {\n return $c409e47346e83e74$export$170f4e08cad8229d(Class, HTMLElement);\n}\nconst $c409e47346e83e74$var$$3e0a089cc13f69ad$var$nameMap = new WeakMap();\nfunction $c409e47346e83e74$export$b8a1af58c024fefd(Class) {\n const name = $c409e47346e83e74$var$$3e0a089cc13f69ad$var$nameMap.get(Class);\n if (name) return name;\n var { tagName: tagName } = new Class();\n $c409e47346e83e74$var$$3e0a089cc13f69ad$var$nameMap.set(Class, tagName = tagName.toLowerCase());\n return tagName;\n}\nfunction $c409e47346e83e74$export$a2cf0d4bb6e06de4(tagName, propertyName) {\n /**\n * fetch from https://html.spec.whatwg.org/\n */ const ReadOnly_Properties = [\n [\n HTMLLinkElement,\n [\n \"sizes\"\n ]\n ],\n [\n HTMLIFrameElement,\n [\n \"sandbox\"\n ]\n ],\n [\n HTMLObjectElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLInputElement,\n [\n \"form\",\n \"list\"\n ]\n ],\n [\n HTMLButtonElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLSelectElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLTextAreaElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLOutputElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLFieldSetElement,\n [\n \"form\"\n ]\n ]\n ];\n const template = $c409e47346e83e74$export$2ee022bbbc550b25(tagName);\n for (const [Class, keys] of ReadOnly_Properties)if (template instanceof Class && keys.includes(propertyName)) return true;\n return false;\n}\nfunction $c409e47346e83e74$export$d66b332881d9723f(HTML) {\n const spawn = document.createElement(\"template\");\n spawn.innerHTML = HTML;\n return [\n ...spawn.content.childNodes\n ].map((node)=>{\n node.remove();\n return node;\n });\n}\nfunction $c409e47346e83e74$export$b0709844452f8b6b(node) {\n return new XMLSerializer().serializeToString(node).replace(/ xmlns=\"http:\\/\\/www.w3.org\\/1999\\/xhtml\"/g, \"\");\n}\nfunction* $c409e47346e83e74$export$5118471ee5d5453b(root, type) {\n const children = [\n ...root.childNodes\n ];\n if ($c409e47346e83e74$export$dd1bc94b04021eeb(type) || type === root.nodeType) yield root;\n for (const node of children)yield* $c409e47346e83e74$export$5118471ee5d5453b(node, type);\n}\nfunction $c409e47346e83e74$export$be4650432daa84fd(root) {\n var text = \"\";\n for (const { nodeType: nodeType, parentElement: parentElement, nodeValue: nodeValue } of $c409e47346e83e74$export$5118471ee5d5453b(root))if (nodeType === Node.TEXT_NODE && parentElement.getAttribute(\"aria-hidden\") !== \"true\") {\n const { width: width, height: height } = parentElement.getBoundingClientRect();\n if (width && height) text += nodeValue.trim().replace(/\\s+/g, \" \");\n }\n return text;\n}\nfunction $c409e47346e83e74$export$578e38b4a3e0b255({ offsetWidth: offsetWidth, children: children }, pageHeight = 841.89, pageWidth = 595.28) {\n const scrollHeight = pageHeight / pageWidth * offsetWidth;\n var offset = 0;\n return [\n ...children\n ].reduce((pages, node)=>{\n var { offsetTop: top, offsetHeight: height } = node;\n top += offset;\n var bottom = top + height;\n const bottomOffset = bottom / scrollHeight;\n const topIndex = ~~(top / scrollHeight), bottomIndex = ~~bottomOffset;\n if (topIndex !== bottomIndex) offset += height - bottomOffset;\n (pages[bottomIndex] ||= []).push(node);\n return pages;\n }, []);\n}\nfunction $c409e47346e83e74$export$7cd14c57bbb84350(URI, { alternate: alternate, ...options } = {}) {\n const style = [\n ...document.styleSheets\n ].find(({ href: href })=>href === URI);\n if (style) return Promise.resolve(style);\n const link = document.createElement(\"link\");\n return new Promise((resolve, reject)=>{\n link.onload = ()=>resolve(link.sheet);\n link.onerror = (_1, _2, _3, _4, error)=>reject(error);\n Object.assign(link, options);\n link.rel = (alternate ? \"alternate \" : \"\") + \"stylesheet\";\n link.href = URI;\n document.head.append(link);\n });\n}\nfunction $c409e47346e83e74$export$5100419dfae0456d(data, depth = 0, indent = \" \") {\n const padding = indent.repeat(depth);\n return Object.entries(data).map(([key, value])=>typeof value !== \"object\" ? `${padding}${$c409e47346e83e74$export$3f34ca2fef821bbd(key)}: ${value};` : `${padding}${key} {\n${$c409e47346e83e74$export$5100419dfae0456d(value, depth + 1, indent)}\n${padding}}`).join(\"\\n\");\n}\nfunction $c409e47346e83e74$export$28d9d24a8cd0ffc2(...nodes) {\n const fragment = document.createDocumentFragment();\n fragment.append(...nodes);\n for (const node of $c409e47346e83e74$export$5118471ee5d5453b(fragment))if (![\n 1,\n 3,\n 11\n ].includes(node.nodeType) || [\n \"meta\",\n \"title\",\n \"link\",\n \"script\"\n ].includes(node.nodeName.toLowerCase())) node.replaceWith(...node.childNodes);\n const selection = globalThis.getSelection();\n if (!selection) return;\n const range = selection.getRangeAt(0);\n range.deleteContents();\n range.insertNode(fragment);\n}\nfunction $c409e47346e83e74$export$3f99968195accfaf(selector, root, align, justify) {\n const [_, ID] = /^#(.+)/.exec(selector) || [];\n if (ID === \"top\") window.scrollTo({\n top: 0,\n left: 0,\n behavior: \"smooth\"\n });\n else (root || document).querySelector(ID ? `[id=\"${ID}\"]` : selector)?.scrollIntoView({\n behavior: \"smooth\",\n block: align,\n inline: justify\n });\n}\nfunction $c409e47346e83e74$export$eafdbaa868ea9975(box, handler, depth = 6) {\n return Array.from(box.querySelectorAll(Array.from(new Array(depth), (_, index)=>`h${++index}`) + \"\"), (header)=>{\n new IntersectionObserver(([item])=>{\n if (!item.isIntersecting) return;\n const target = item.target;\n handler({\n target: target,\n links: [\n ...target.ownerDocument.querySelectorAll(`[href=\"#${target.id}\"]`)\n ]\n });\n }).observe(header);\n if (!header.id.trim()) header.id = header.textContent.trim().replace(/\\W+/g, \"-\");\n return {\n level: +header.tagName[1],\n id: header.id,\n text: header.textContent.trim()\n };\n });\n}\nfunction $c409e47346e83e74$export$36a0c1ca2ae264fa(root, handler) {\n var last = document.visibilityState === \"visible\" ? 1 : 0;\n function change(state) {\n if (state === 3 || last === 3) handler(state === 3);\n last = state;\n }\n new IntersectionObserver(([{ isIntersecting: isIntersecting }])=>change(isIntersecting ? last | 2 : last & 1)).observe(root);\n document.addEventListener(\"visibilitychange\", ()=>change(document.visibilityState === \"visible\" ? last | 1 : last & 2));\n}\nfunction $c409e47346e83e74$export$86d7c59254d6a2c9(form) {\n const data = {};\n for (const field of form.elements){\n let { name: name, value: value, checked: checked, defaultValue: defaultValue, selectedOptions: selectedOptions, files: files } = field;\n const type = field.type;\n if (!name || value === \"\") continue;\n const box = type !== \"fieldset\" && field.closest(\"fieldset\");\n if (box && box !== form) continue;\n let parsedValue = value;\n switch(type){\n case \"radio\":\n case \"checkbox\":\n if (checked) parsedValue = defaultValue ? $c409e47346e83e74$export$7ea17d45ecdcf634(defaultValue) : true;\n else continue;\n break;\n case \"select-multiple\":\n parsedValue = Array.from(selectedOptions, ({ value: value })=>$c409e47346e83e74$export$7ea17d45ecdcf634(value));\n break;\n case \"fieldset\":\n parsedValue = $c409e47346e83e74$export$86d7c59254d6a2c9(field);\n break;\n case \"file\":\n parsedValue = files && Array.from(files);\n break;\n case \"date\":\n case \"datetime-local\":\n case \"month\":\n case \"hidden\":\n case \"number\":\n case \"range\":\n case \"select-one\":\n parsedValue = $c409e47346e83e74$export$7ea17d45ecdcf634(value);\n }\n if (name in data) data[name] = [].concat(data[name], parsedValue);\n else data[name] = !(parsedValue instanceof Array) || !$c409e47346e83e74$export$dd1bc94b04021eeb(parsedValue[1]) ? parsedValue : parsedValue[0];\n }\n return data;\n}\nvar $c409e47346e83e74$var$$bb23e0c794fefbef$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$bb23e0c794fefbef$exports, \"sleep\", function() {\n return $c409e47346e83e74$export$e772c8ff12451969;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$bb23e0c794fefbef$exports, \"asyncLoop\", function() {\n return $c409e47346e83e74$export$57207d71b8c929c8;\n});\nfunction $c409e47346e83e74$export$e772c8ff12451969(seconds = 1) {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n}\nfunction $c409e47346e83e74$export$57207d71b8c929c8(executor, seconds = 1) {\n var stop = false;\n (async ()=>{\n while(!stop){\n const result = executor();\n if (result instanceof Promise) await result;\n await $c409e47346e83e74$export$e772c8ff12451969(seconds);\n }\n })();\n return ()=>stop = true;\n}\nvar $c409e47346e83e74$var$$19ed8aeb7905a045$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"delegate\", function() {\n return $c409e47346e83e74$export$10b1921597150314;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"documentReady\", function() {\n return $c409e47346e83e74$export$3e2b244719956741;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"promisify\", function() {\n return $c409e47346e83e74$export$1d1d2ed6b55cf67f;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"createMessageServer\", function() {\n return $c409e47346e83e74$export$2155c0b5a4b77fb8;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"createMessageClient\", function() {\n return $c409e47346e83e74$export$9d97473344489dfc;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$19ed8aeb7905a045$exports, \"serviceWorkerUpdate\", function() {\n return $c409e47346e83e74$export$d635d04af3887bbe;\n});\nfunction $c409e47346e83e74$export$10b1921597150314(selector, handler) {\n return function(event) {\n var node, path = event.composedPath();\n while((node = path.shift()) && node !== event.currentTarget)if (node instanceof HTMLElement && node.matches(selector)) return handler.call(this, event, node, event.detail);\n };\n}\nconst $c409e47346e83e74$export$3e2b244719956741 = typeof window !== \"undefined\" ? new Promise((resolve)=>{\n function done() {\n document?.removeEventListener(\"DOMContentLoaded\", done);\n window.removeEventListener(\"load\", done);\n resolve();\n }\n document?.addEventListener(\"DOMContentLoaded\", done);\n window.addEventListener(\"load\", done);\n setTimeout(function check() {\n document?.readyState === \"complete\" ? resolve() : setTimeout(check);\n });\n}) : Promise.resolve();\nfunction $c409e47346e83e74$export$1d1d2ed6b55cf67f(scope, element) {\n return new Promise((resolve, reject)=>{\n function end(event) {\n resolve(event), clean();\n }\n function cancel(event) {\n reject(event), clean();\n }\n function clean() {\n element.removeEventListener(scope + \"end\", end);\n element.removeEventListener(scope + \"cancel\", cancel);\n }\n element.addEventListener(scope + \"end\", end);\n element.addEventListener(scope + \"cancel\", cancel);\n });\n}\nfunction $c409e47346e83e74$export$2155c0b5a4b77fb8(handlers) {\n async function server({ data: { type: type, id: id, ...data }, source: source, origin: origin }) {\n var result = handlers[type]?.(data);\n if (result instanceof Promise) result = await result;\n // @ts-ignore\n source.postMessage({\n ...result,\n id: id\n }, origin);\n }\n globalThis.addEventListener(\"message\", server);\n return ()=>globalThis.removeEventListener(\"message\", server);\n}\nfunction $c409e47346e83e74$export$9d97473344489dfc(target, origin = \"*\") {\n return (type, data)=>new Promise((resolve)=>{\n const UID = $c409e47346e83e74$export$89912e019eef22aa();\n function handler({ data: { id: id, ...data } }) {\n if (id !== UID) return;\n resolve(data);\n globalThis.removeEventListener(\"message\", handler);\n }\n globalThis.addEventListener(\"message\", handler);\n // @ts-ignore\n target.postMessage({\n id: UID,\n type: type,\n ...data\n }, origin);\n });\n}\nfunction $c409e47346e83e74$export$d635d04af3887bbe(registration) {\n return new Promise((resolve)=>{\n if (registration.waiting) return resolve(registration.waiting);\n registration.onupdatefound = ()=>registration.installing?.addEventListener(\"statechange\", function() {\n if (this.state === \"installed\" && navigator.serviceWorker.controller) resolve(this);\n });\n });\n}\nvar $c409e47346e83e74$var$$7a08303ce13c49c5$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"PageVector\", function() {\n return $c409e47346e83e74$export$1b88f6b6d432a52a;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"getSwipeVector\", function() {\n return $c409e47346e83e74$export$b70f6380221b1350;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"durationOf\", function() {\n return $c409e47346e83e74$export$75d6cbe4503e149;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"watchMotion\", function() {\n return $c409e47346e83e74$export$b2618d51188815c2;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"transitIn\", function() {\n return $c409e47346e83e74$export$490814474ddbb428;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"animateIn\", function() {\n return $c409e47346e83e74$export$3ea201dffb50dfef;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"transitOut\", function() {\n return $c409e47346e83e74$export$d1012c7198c6b460;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$7a08303ce13c49c5$exports, \"animateOut\", function() {\n return $c409e47346e83e74$export$a35a418b7b17958e;\n});\nclass $c409e47346e83e74$export$1b88f6b6d432a52a {\n constructor(from, to){\n this.from = from;\n this.to = to;\n }\n get length() {\n const { from: from, to: to } = this;\n return Math.sqrt(Math.pow(to.x - from.x, 2) + Math.pow(to.y - from.y, 2) + (to.z != null ? Math.pow(to.z - from.z, 2) : 0));\n }\n get direction() {\n const { from: from, to: to } = this;\n const XD = to.x - from.x, YD = to.y - from.y, ZD = to.z - from.z;\n const XL = Math.abs(XD), YL = Math.abs(YD), ZL = Math.abs(ZD);\n switch(isNaN(ZL) ? Math.max(XL, YL) : Math.max(XL, YL, ZL)){\n case XL:\n return XD > 0 ? \"right\" : \"left\";\n case YL:\n return YD > 0 ? \"forward\" : \"backward\";\n case ZL:\n return ZD > 0 ? \"up\" : \"down\";\n }\n }\n}\nfunction $c409e47346e83e74$export$b70f6380221b1350(from, to, threshold = parseInt(getComputedStyle(document.body).fontSize) * 6) {\n const vector = new $c409e47346e83e74$export$1b88f6b6d432a52a(from, to);\n if (vector.length >= threshold && !getSelection()?.toString().trim()) return vector;\n}\nfunction $c409e47346e83e74$export$75d6cbe4503e149(type, element) {\n const { transitionDuration: transitionDuration, animationDuration: animationDuration } = getComputedStyle(element);\n const duration = type === \"animation\" ? animationDuration : transitionDuration;\n return parseFloat(duration) * (duration.slice(-2) === \"ms\" ? 1 : 1000);\n}\nfunction $c409e47346e83e74$export$b2618d51188815c2(type, element) {\n return Promise.race([\n $c409e47346e83e74$export$1d1d2ed6b55cf67f(type, element).catch((event)=>Promise.resolve(event)),\n new Promise((resolve)=>setTimeout(resolve, $c409e47346e83e74$export$75d6cbe4503e149(type, element)))\n ]);\n}\nfunction $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeIn(type, element, className, display) {\n element.style.display = display;\n const end = $c409e47346e83e74$export$b2618d51188815c2(type, element);\n return new Promise((resolve)=>requestAnimationFrame(()=>{\n element.classList.add(className);\n end.then(resolve);\n }));\n}\nasync function $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeOut(type, element, className, remove) {\n const end = $c409e47346e83e74$export$b2618d51188815c2(type, element);\n element.classList.remove(className);\n await end;\n if (remove) element.remove();\n else element.style.display = \"none\";\n}\nfunction $c409e47346e83e74$export$490814474ddbb428(element, className, display = \"block\") {\n return $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeIn(\"transition\", element, className, display);\n}\nfunction $c409e47346e83e74$export$3ea201dffb50dfef(element, className, display = \"block\") {\n return $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeIn(\"animation\", element, className, display);\n}\nfunction $c409e47346e83e74$export$d1012c7198c6b460(element, className, remove) {\n return $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeOut(\"transition\", element, className, remove);\n}\nfunction $c409e47346e83e74$export$a35a418b7b17958e(element, className, remove) {\n return $c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeOut(\"animation\", element, className, remove);\n}\nvar $c409e47346e83e74$var$$69bd9f0117925302$exports = {};\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$69bd9f0117925302$exports, \"describe\", function() {\n return $c409e47346e83e74$export$cd5450f3a47e3789;\n});\n$c409e47346e83e74$var$$parcel$export($c409e47346e83e74$var$$69bd9f0117925302$exports, \"it\", function() {\n return $c409e47346e83e74$export$3486a10f30cf1ee4;\n});\nasync function $c409e47346e83e74$export$cd5450f3a47e3789(title, cases) {\n console.log(title);\n console.time(title);\n await cases();\n console.timeEnd(title);\n}\nasync function $c409e47346e83e74$export$3486a10f30cf1ee4(title, userCase, secondsOut = 3) {\n title = \" \" + title;\n console.time(title);\n async function timeOut() {\n await $c409e47346e83e74$export$e772c8ff12451969(secondsOut);\n throw new RangeError(\"Timed out\");\n }\n try {\n return await Promise.race([\n userCase((status)=>console.assert(status, title)),\n timeOut()\n ]);\n } finally{\n console.timeEnd(title);\n }\n}\n\n});\n\nparcelRegister(\"2flNv\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.VNode = module.exports.VNodeMeta = void 0;\n\nvar $ceFTv = parcelRequire(\"ceFTv\");\n\nvar $iYM07 = parcelRequire(\"iYM07\");\n\nvar $gPvyW = parcelRequire(\"gPvyW\");\nvar $1a2de400000fbc4f$var$VNodeMeta = /** @class */ function() {\n function VNodeMeta() {\n this.children = [];\n }\n return VNodeMeta;\n}();\nmodule.exports.VNodeMeta = $1a2de400000fbc4f$var$VNodeMeta;\nvar $1a2de400000fbc4f$var$VNode = /** @class */ function(_super) {\n $ceFTv.__extends(VNode, _super);\n function VNode(_b) {\n var e_1, _c, _d, e_2, _e;\n var _this = this;\n var children = _b.children, meta = $ceFTv.__rest(_b, [\n \"children\"\n ]);\n _this = _super.call(this) || this;\n Object.assign(_this, meta);\n try {\n for(var _f = $ceFTv.__values(children || []), _g = _f.next(); !_g.done; _g = _f.next()){\n var vNode = _g.value;\n (_d = _this.children).push.apply(_d, $ceFTv.__spreadArray([], $ceFTv.__read(_a.isFragment(vNode) ? vNode.children || [] : [\n vNode\n ]), false));\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (_g && !_g.done && (_c = _f.return)) _c.call(_f);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n try {\n for(var _h = $ceFTv.__values(_this.children), _j = _h.next(); !_j.done; _j = _h.next()){\n var child = _j.value;\n child.parent = _this;\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally{\n try {\n if (_j && !_j.done && (_e = _h.return)) _e.call(_h);\n } finally{\n if (e_2) throw e_2.error;\n }\n }\n var tagName = meta.tagName, is = meta.is, props = meta.props;\n if (!tagName && !(props === null || props === void 0 ? void 0 : props.className) && !is) return _this;\n _this.selector = [\n tagName === null || tagName === void 0 ? void 0 : tagName.toLowerCase(),\n (props === null || props === void 0 ? void 0 : props.className) && \".\".concat(props.className.trim().replace(/\\s+/, '.')),\n is && \"[is=\\\"\".concat(is, \"\\\"]\")\n ].filter(Boolean).join('');\n return _this;\n }\n VNode.prototype.walkUp = function() {\n var current;\n return $ceFTv.__generator(this, function(_b) {\n switch(_b.label){\n case 0:\n current = this;\n _b.label = 1;\n case 1:\n if (!(current = current.parent)) return [\n 3 /*break*/ ,\n 3\n ];\n return [\n 4 /*yield*/ ,\n current\n ];\n case 2:\n _b.sent();\n return [\n 3 /*break*/ ,\n 1\n ];\n case 3:\n return [\n 2 /*return*/ \n ];\n }\n });\n };\n VNode.prototype.namespaceOf = function(tagName) {\n var e_3, _b;\n if ($gPvyW.XMLNamespace[tagName]) return $gPvyW.XMLNamespace[tagName];\n try {\n for(var _c = $ceFTv.__values(this.walkUp()), _d = _c.next(); !_d.done; _d = _c.next()){\n var namespace = _d.value.namespace;\n if (namespace) return namespace;\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally{\n try {\n if (_d && !_d.done && (_b = _c.return)) _b.call(_c);\n } finally{\n if (e_3) throw e_3.error;\n }\n }\n return $gPvyW.XMLNamespace.html;\n };\n VNode.prototype.createDOM = function(document1) {\n if (document1 === void 0) document1 = globalThis.document;\n var _b = this, tagName = _b.tagName, is = _b.is, text = _b.text;\n return this.node = text ? document1.createTextNode(text) : !tagName ? document1.createDocumentFragment() : document1.createElementNS(this.namespace || (this.namespace = this.namespaceOf(tagName)), tagName, {\n is: is\n });\n };\n VNode.prototype.toJSON = function() {\n var _b = this, key = _b.key, text = _b.text, selector = _b.selector, namespace = _b.namespace, tagName = _b.tagName, is = _b.is, props = _b.props, style = _b.style, children = _b.children;\n return JSON.parse(JSON.stringify({\n key: key,\n text: text,\n selector: selector,\n namespace: namespace,\n tagName: tagName,\n is: is,\n props: props,\n style: style,\n children: children\n }));\n };\n VNode.prototype.generateElementXML = function() {\n var _b, tagName, props, style, children, node, body, shadowRoots, innerHTML, restProps, _c, _d, _e, _i, key, _f, _g, _h, _j, key, children_1, children_1_1, child, e_4_1;\n var e_4, _k;\n return $ceFTv.__generator(this, function(_l) {\n switch(_l.label){\n case 0:\n _b = this, tagName = _b.tagName, props = _b.props, style = _b.style, children = _b.children, node = _b.node;\n if (!(tagName.includes('-') && (0, $gPvyW.elementTypeOf)(tagName) === 'html')) return [\n 3 /*break*/ ,\n 2\n ];\n body = ((node === null || node === void 0 ? void 0 : node.ownerDocument) || document).implementation.createHTMLDocument().body;\n body.innerHTML = \"<\".concat(tagName, \">\");\n shadowRoots = $ceFTv.__spreadArray([], $ceFTv.__read((0, $iYM07.findShadowRoots)(body)), false);\n return [\n 4 /*yield*/ ,\n body.getHTML({\n serializableShadowRoots: true,\n shadowRoots: shadowRoots\n })\n ];\n case 1:\n _l.sent();\n return [\n 3 /*break*/ ,\n 29\n ];\n case 2:\n innerHTML = props.innerHTML, restProps = $ceFTv.__rest(props, [\n \"innerHTML\"\n ]);\n return [\n 4 /*yield*/ ,\n \"<\".concat(tagName)\n ];\n case 3:\n _l.sent();\n _c = restProps;\n _d = [];\n for(_e in _c)_d.push(_e);\n _i = 0;\n _l.label = 4;\n case 4:\n if (!(_i < _d.length)) return [\n 3 /*break*/ ,\n 7\n ];\n _e = _d[_i];\n if (!(_e in _c)) return [\n 3 /*break*/ ,\n 6\n ];\n key = _e;\n return [\n 4 /*yield*/ ,\n \" \".concat(_a.propsMap[key] || key, \"=\\\"\").concat(restProps[key], \"\\\"\")\n ];\n case 5:\n _l.sent();\n _l.label = 6;\n case 6:\n _i++;\n return [\n 3 /*break*/ ,\n 4\n ];\n case 7:\n if (!style) return [\n 3 /*break*/ ,\n 14\n ];\n return [\n 4 /*yield*/ ,\n \" style=\\\"\"\n ];\n case 8:\n _l.sent();\n _f = style;\n _g = [];\n for(_h in _f)_g.push(_h);\n _j = 0;\n _l.label = 9;\n case 9:\n if (!(_j < _g.length)) return [\n 3 /*break*/ ,\n 12\n ];\n _h = _g[_j];\n if (!(_h in _f)) return [\n 3 /*break*/ ,\n 11\n ];\n key = _h;\n return [\n 4 /*yield*/ ,\n \"\".concat((0, $gPvyW.toHyphenCase)(key), \":\").concat(style[key], \";\")\n ];\n case 10:\n _l.sent();\n _l.label = 11;\n case 11:\n _j++;\n return [\n 3 /*break*/ ,\n 9\n ];\n case 12:\n return [\n 4 /*yield*/ ,\n \"\\\"\"\n ];\n case 13:\n _l.sent();\n _l.label = 14;\n case 14:\n if (!innerHTML) return [\n 3 /*break*/ ,\n 16\n ];\n return [\n 4 /*yield*/ ,\n \">\".concat(innerHTML, \"\")\n ];\n case 15:\n _l.sent();\n return [\n 3 /*break*/ ,\n 29\n ];\n case 16:\n if (!children[0]) return [\n 3 /*break*/ ,\n 27\n ];\n return [\n 4 /*yield*/ ,\n '>'\n ];\n case 17:\n _l.sent();\n _l.label = 18;\n case 18:\n _l.trys.push([\n 18,\n 23,\n 24,\n 25\n ]);\n children_1 = $ceFTv.__values(children), children_1_1 = children_1.next();\n _l.label = 19;\n case 19:\n if (!!children_1_1.done) return [\n 3 /*break*/ ,\n 22\n ];\n child = children_1_1.value;\n return [\n 5 /*yield**/ ,\n $ceFTv.__values(child.generateXML())\n ];\n case 20:\n _l.sent();\n _l.label = 21;\n case 21:\n children_1_1 = children_1.next();\n return [\n 3 /*break*/ ,\n 19\n ];\n case 22:\n return [\n 3 /*break*/ ,\n 25\n ];\n case 23:\n e_4_1 = _l.sent();\n e_4 = {\n error: e_4_1\n };\n return [\n 3 /*break*/ ,\n 25\n ];\n case 24:\n try {\n if (children_1_1 && !children_1_1.done && (_k = children_1.return)) _k.call(children_1);\n } finally{\n if (e_4) throw e_4.error;\n }\n return [\n 7 /*endfinally*/ \n ];\n case 25:\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 26:\n _l.sent();\n return [\n 3 /*break*/ ,\n 29\n ];\n case 27:\n return [\n 4 /*yield*/ ,\n tagName === 'script' ? '>' : ' />'\n ];\n case 28:\n _l.sent();\n _l.label = 29;\n case 29:\n return [\n 2 /*return*/ \n ];\n }\n });\n };\n VNode.prototype.generateXML = function() {\n var mode;\n return $ceFTv.__generator(this, function(_b) {\n switch(_b.label){\n case 0:\n if (!_a.isFragment(this)) return [\n 3 /*break*/ ,\n 5\n ];\n return [\n 4 /*yield*/ ,\n ''\n ];\n case 4:\n _b.sent();\n return [\n 3 /*break*/ ,\n 9\n ];\n case 5:\n if (!(this.text != null)) return [\n 3 /*break*/ ,\n 7\n ];\n return [\n 4 /*yield*/ ,\n this.text\n ];\n case 6:\n _b.sent();\n return [\n 3 /*break*/ ,\n 9\n ];\n case 7:\n return [\n 5 /*yield**/ ,\n $ceFTv.__values(this.generateElementXML())\n ];\n case 8:\n _b.sent();\n _b.label = 9;\n case 9:\n return [\n 2 /*return*/ \n ];\n }\n });\n };\n VNode.isFragment = function(_b) {\n var key = _b.key, node = _b.node, children = _b.children, rest = $ceFTv.__rest(_b, [\n \"key\",\n \"node\",\n \"children\"\n ]);\n for(var key_1 in rest)if (!(0, $gPvyW.isEmpty)(rest[key_1])) return false;\n return true;\n };\n VNode.fromDOM = function(node) {\n var _this = this;\n if (node instanceof Text) return new _a({\n node: node,\n text: node.nodeValue\n });\n if (!(node instanceof Element)) return new _a({\n node: node\n });\n var _b = node, namespaceURI = _b.namespaceURI, tagName = _b.tagName, attributes = _b.attributes, style = _b.style, childNodes = _b.childNodes;\n var vNode = {\n node: node,\n namespace: namespaceURI,\n tagName: tagName.toLowerCase(),\n is: node.getAttribute('is')\n };\n var props = Array.from(attributes, function(_b) {\n var name = _b.name, value = _b.value;\n return name !== 'style' && [\n _this.attrsMap[name] || name,\n value\n ];\n }).filter(Boolean);\n if (props[0]) vNode.props = Object.fromEntries(props);\n var styles = Array.from(style, function(key) {\n return [\n key,\n style[key]\n ];\n });\n if (styles[0]) vNode.style = Object.fromEntries(styles);\n var children = Array.from(childNodes, function(node) {\n return _a.fromDOM(node);\n });\n if (children[0]) vNode.children = children;\n return new _a(vNode);\n };\n var _a;\n _a = VNode;\n VNode.propsMap = {\n className: 'class',\n htmlFor: 'for'\n };\n VNode.attrsMap = Object.fromEntries(Object.entries(_a.propsMap).map(function(item) {\n return item.reverse();\n }));\n return VNode;\n}($1a2de400000fbc4f$var$VNodeMeta);\nmodule.exports.VNode = $1a2de400000fbc4f$var$VNode;\n\n});\nparcelRegister(\"iYM07\", function(module, exports) {\nvar $dd13108d31ab34bb$var$__generator = module.exports && module.exports.__generator || function(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\nvar $dd13108d31ab34bb$var$__read = module.exports && module.exports.__read || function(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while((n === void 0 || n-- > 0) && !(r = i.next()).done)ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally{\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally{\n if (e) throw e.error;\n }\n }\n return ar;\n};\nvar $dd13108d31ab34bb$var$__spreadArray = module.exports && module.exports.__spreadArray || function(to, from, pack) {\n if (pack || arguments.length === 2) {\n for(var i = 0, l = from.length, ar; i < l; i++)if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar $dd13108d31ab34bb$var$__values = module.exports && module.exports.__values || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n(function(factory) {\n if (typeof module.exports === \"object\") {\n var v = factory(undefined, module.exports);\n if (v !== undefined) module.exports = v;\n } else if (typeof define === \"function\" && define.amd) define([\n \"require\",\n \"exports\"\n ], factory);\n})(function(require1, exports1) {\n \"use strict\";\n var _a, _b, _c, _d;\n Object.defineProperty(exports1, \"__esModule\", {\n value: true\n });\n exports1.findShadowRoots = findShadowRoots;\n exports1.generateHTML = generateHTML;\n exports1.getHTML = getHTML;\n exports1.attachDeclarativeShadowRoots = attachDeclarativeShadowRoots;\n exports1.setHTMLUnsafe = setHTMLUnsafe;\n exports1.parseHTMLUnsafe = parseHTMLUnsafe;\n var xmlSerializer = new XMLSerializer(), attachShadow = HTMLElement.prototype.attachShadow, shadowDOMs = new WeakMap();\n HTMLElement.prototype.attachShadow = function(options) {\n var shadowRoot = attachShadow.call(this, options);\n shadowDOMs.set(this, shadowRoot);\n return shadowRoot;\n };\n function findShadowRoots(root) {\n var walker, currentNode, shadowRoot;\n return $dd13108d31ab34bb$var$__generator(this, function(_a) {\n switch(_a.label){\n case 0:\n walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: function(node) {\n return node instanceof HTMLElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n currentNode = null;\n _a.label = 1;\n case 1:\n if (!(currentNode = walker.nextNode())) return [\n 3 /*break*/ ,\n 5\n ];\n shadowRoot = shadowDOMs.get(currentNode);\n if (!shadowRoot) return [\n 3 /*break*/ ,\n 4\n ];\n return [\n 4 /*yield*/ ,\n shadowRoot\n ];\n case 2:\n _a.sent();\n return [\n 5 /*yield**/ ,\n $dd13108d31ab34bb$var$__values(findShadowRoots(shadowRoot))\n ];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n return [\n 3 /*break*/ ,\n 1\n ];\n case 5:\n return [\n 2 /*return*/ \n ];\n }\n });\n }\n function generateHTML(root, _a) {\n var walker, currentNode, tagName, attributes, shadowRoot, shadowRootHTML, nextSibling, parentElement;\n var _b = _a === void 0 ? {} : _a, serializableShadowRoots = _b.serializableShadowRoots, shadowRoots = _b.shadowRoots;\n return $dd13108d31ab34bb$var$__generator(this, function(_c) {\n switch(_c.label){\n case 0:\n shadowRoots = (shadowRoots === null || shadowRoots === void 0 ? void 0 : shadowRoots.filter(Boolean)) || [];\n if (!(!serializableShadowRoots || !shadowRoots[0])) return [\n 3 /*break*/ ,\n 2\n ];\n return [\n 4 /*yield*/ ,\n root.innerHTML\n ];\n case 1:\n _c.sent();\n return [\n 2 /*return*/ \n ];\n case 2:\n walker = document.createTreeWalker(root, NodeFilter.SHOW_ALL, {\n acceptNode: function(node) {\n return node === root || node instanceof SVGElement ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;\n }\n });\n currentNode = null;\n _c.label = 3;\n case 3:\n if (!(currentNode = walker.nextNode())) return [\n 3 /*break*/ ,\n 19\n ];\n if (!(currentNode instanceof CDATASection)) return [\n 3 /*break*/ ,\n 5\n ];\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 4:\n _c.sent();\n return [\n 3 /*break*/ ,\n 16\n ];\n case 5:\n if (!(currentNode instanceof Text)) return [\n 3 /*break*/ ,\n 7\n ];\n return [\n 4 /*yield*/ ,\n currentNode.nodeValue || \"\"\n ];\n case 6:\n _c.sent();\n return [\n 3 /*break*/ ,\n 16\n ];\n case 7:\n if (!(currentNode instanceof Comment)) return [\n 3 /*break*/ ,\n 9\n ];\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 8:\n _c.sent();\n return [\n 3 /*break*/ ,\n 16\n ];\n case 9:\n if (!(currentNode instanceof SVGElement)) return [\n 3 /*break*/ ,\n 11\n ];\n return [\n 4 /*yield*/ ,\n xmlSerializer.serializeToString(currentNode)\n ];\n case 10:\n _c.sent();\n return [\n 3 /*break*/ ,\n 16\n ];\n case 11:\n if (!(currentNode instanceof Element)) return [\n 3 /*break*/ ,\n 16\n ];\n tagName = currentNode.tagName.toLowerCase(), attributes = $dd13108d31ab34bb$var$__spreadArray([], $dd13108d31ab34bb$var$__read(currentNode.attributes), false).map(function(_a) {\n var name = _a.name, value = _a.value;\n return \"\".concat(name, \"=\").concat(JSON.parse(value));\n }), shadowRoot = shadowDOMs.get(currentNode);\n return [\n 4 /*yield*/ ,\n \"<\".concat($dd13108d31ab34bb$var$__spreadArray([\n tagName\n ], $dd13108d31ab34bb$var$__read(attributes), false).join(\" \"), \">\")\n ];\n case 12:\n _c.sent();\n if (!(shadowRoot && shadowRoots.includes(shadowRoot))) return [\n 3 /*break*/ ,\n 14\n ];\n shadowRootHTML = $dd13108d31ab34bb$var$__spreadArray([], $dd13108d31ab34bb$var$__read(generateHTML(shadowRoot, {\n serializableShadowRoots: serializableShadowRoots,\n shadowRoots: shadowRoots\n })), false).join(\"\");\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 13:\n _c.sent();\n _c.label = 14;\n case 14:\n if (!!currentNode.childNodes[0]) return [\n 3 /*break*/ ,\n 16\n ];\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 15:\n _c.sent();\n _c.label = 16;\n case 16:\n nextSibling = currentNode.nextSibling, parentElement = currentNode.parentElement;\n if (!(!nextSibling && parentElement && parentElement !== root)) return [\n 3 /*break*/ ,\n 18\n ];\n return [\n 4 /*yield*/ ,\n \"\")\n ];\n case 17:\n _c.sent();\n _c.label = 18;\n case 18:\n return [\n 3 /*break*/ ,\n 3\n ];\n case 19:\n return [\n 2 /*return*/ \n ];\n }\n });\n }\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/getHTML}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getHTML}\n */ function getHTML(options) {\n if (options === void 0) options = {};\n return $dd13108d31ab34bb$var$__spreadArray([], $dd13108d31ab34bb$var$__read(generateHTML(this, options)), false).join(\"\");\n }\n function attachDeclarativeShadowRoots(root) {\n var e_1, _a;\n var templates = root.querySelectorAll(\"template[shadowrootmode]\");\n try {\n for(var templates_1 = $dd13108d31ab34bb$var$__values(templates), templates_1_1 = templates_1.next(); !templates_1_1.done; templates_1_1 = templates_1.next()){\n var template = templates_1_1.value;\n var parentElement = template.parentElement, content = template.content;\n var shadowRoot = parentElement.attachShadow({\n mode: template.getAttribute(\"shadowrootmode\")\n });\n shadowRoot.append(content);\n template.remove();\n attachDeclarativeShadowRoots(shadowRoot);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (templates_1_1 && !templates_1_1.done && (_a = templates_1.return)) _a.call(templates_1);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n }\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/setHTMLUnsafe}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/setHTMLUnsafe}\n */ function setHTMLUnsafe(html) {\n this.innerHTML = html;\n attachDeclarativeShadowRoots(this);\n }\n var domParser = new DOMParser(), initDocument = function(_a) {\n var _b = _a === void 0 ? document : _a, documentElement = _b.documentElement;\n return attachDeclarativeShadowRoots(documentElement);\n };\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Document/parseHTMLUnsafe_static}\n */ function parseHTMLUnsafe(html) {\n var document1 = domParser.parseFromString(html, \"text/html\");\n initDocument(document1);\n return document1;\n }\n (_a = Element.prototype).getHTML || (_a.getHTML = getHTML);\n (_b = Element.prototype).setHTMLUnsafe || (_b.setHTMLUnsafe = setHTMLUnsafe);\n (_c = ShadowRoot.prototype).getHTML || (_c.getHTML = getHTML);\n (_d = ShadowRoot.prototype).setHTMLUnsafe || (_d.setHTMLUnsafe = setHTMLUnsafe);\n Document.parseHTMLUnsafe || (Document.parseHTMLUnsafe = parseHTMLUnsafe);\n new Promise(function(resolve) {\n if (document.readyState === \"complete\") resolve();\n else {\n document.addEventListener(\"DOMContentLoaded\", resolve);\n window.addEventListener(\"load\", resolve);\n }\n }).then(function() {\n return initDocument();\n });\n});\n\n});\n\n\n\nparcelRegister(\"iBSPL\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.DOMRenderer = void 0;\n\nvar $ceFTv = parcelRequire(\"ceFTv\");\nparcelRequire(\"8BuuC\");\n\nvar $i3JFt = parcelRequire(\"i3JFt\");\n\nvar $gPvyW = parcelRequire(\"gPvyW\");\n\nvar $2flNv = parcelRequire(\"2flNv\");\nvar $d8c6378e8b7c900e$var$DOMRenderer = /** @class */ function() {\n function DOMRenderer() {\n var _this = this;\n this.eventPattern = /^on[A-Z]/;\n this.ariaPattern = /^aira[A-Z]/;\n this.document = globalThis.document;\n this.treeCache = new WeakMap();\n this.signalCache = new WeakMap();\n this.keyOf = function(_a, index) {\n var key = _a.key, text = _a.text, props = _a.props, selector = _a.selector;\n return (key === null || key === void 0 ? void 0 : key.toString()) || (props === null || props === void 0 ? void 0 : props.id) || (text || selector || '') + index;\n };\n this.vNodeOf = function(list, key) {\n return list.find(function(vNode, index) {\n return \"\".concat(_this.keyOf(vNode, index)) === String(key);\n });\n };\n this.propsKeyOf = function(key) {\n return key.startsWith('aria-') ? (0, $gPvyW.toCamelCase)(key) : _this.eventPattern.test(key) ? key.toLowerCase() : key;\n };\n this.attrsNameOf = function(key) {\n return $2flNv.VNode.propsMap[key] || key;\n };\n this.removeProperty = function(node, key) {\n return _this.eventPattern.test(key) ? node[key.toLowerCase()] = null : node.removeAttribute(_this.ariaPattern.test(key) ? (0, $gPvyW.toHyphenCase)(key) : _this.attrsNameOf(key));\n };\n this.setProperty = function(node, key, value) {\n var isXML = (0, $gPvyW.templateOf)(node.tagName) && (0, $gPvyW.elementTypeOf)(node.tagName) === 'xml';\n if (isXML || key.includes('-')) node.setAttribute(_this.attrsNameOf(key), value);\n else try {\n var name_1 = _this.propsKeyOf(key);\n if (_this.eventPattern.test(key) && !(name_1 in node)) _this.handleCustomEvent(node, name_1.slice(2));\n node[name_1] = value;\n } catch (_a) {\n node.setAttribute(_this.attrsNameOf(key), value);\n }\n };\n }\n DOMRenderer.prototype.updateProps = function(node, oldProps, newProps, onDelete, onAdd) {\n var e_1, _a, e_2, _b;\n if (oldProps === void 0) oldProps = {};\n if (newProps === void 0) newProps = {};\n var group = (0, $gPvyW.diffKeys)(Object.keys(oldProps), Object.keys(newProps)).group;\n try {\n for(var _c = $ceFTv.__values(group[$gPvyW.DiffStatus.Old] || []), _d = _c.next(); !_d.done; _d = _c.next()){\n var _e = $ceFTv.__read(_d.value, 1), key = _e[0];\n onDelete === null || onDelete === void 0 || onDelete(node, key);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n try {\n for(var _f = $ceFTv.__values($ceFTv.__spreadArray($ceFTv.__spreadArray([], $ceFTv.__read(group[$gPvyW.DiffStatus.Same] || []), false), $ceFTv.__read(group[$gPvyW.DiffStatus.New] || []), false)), _g = _f.next(); !_g.done; _g = _f.next()){\n var _h = $ceFTv.__read(_g.value, 1), key = _h[0];\n if (oldProps[key] !== newProps[key]) {\n if (onAdd instanceof Function) onAdd(node, key, newProps[key]);\n else Reflect.set(node, key, newProps[key]);\n }\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally{\n try {\n if (_g && !_g.done && (_b = _f.return)) _b.call(_f);\n } finally{\n if (e_2) throw e_2.error;\n }\n }\n };\n DOMRenderer.prototype.deleteNode = function(_a) {\n var ref = _a.ref, node = _a.node, children = _a.children;\n if (node instanceof DocumentFragment) children === null || children === void 0 || children.forEach(this.deleteNode);\n else if (node) {\n node.remove();\n ref === null || ref === void 0 || ref();\n }\n };\n DOMRenderer.prototype.commitChild = function(root, node, index) {\n if (index === void 0) index = 0;\n var targetNode = root.childNodes[index];\n if (targetNode === node) return;\n if (!targetNode) root.append(node);\n else targetNode.before(node);\n };\n DOMRenderer.prototype.diffVChildren = function(oldVNode, newVNode) {\n var _a, map, group, deletingGroup, _b, _c, _d, index, newVChild, key, oldVChild, e_3_1, _e, _f, _g, _i, selector, _h, _j, oldVNode_1, e_4_1;\n var e_3, _k, e_4, _l;\n var _this = this;\n var _m;\n return $ceFTv.__generator(this, function(_o) {\n switch(_o.label){\n case 0:\n newVNode.children = newVNode.children.map(function(vNode) {\n return new $2flNv.VNode(vNode);\n });\n _a = (0, $gPvyW.diffKeys)(oldVNode.children.map(this.keyOf), newVNode.children.map(this.keyOf)), map = _a.map, group = _a.group;\n deletingGroup = group[$gPvyW.DiffStatus.Old] && (0, $gPvyW.groupBy)(group[$gPvyW.DiffStatus.Old].map(function(_a) {\n var _b = $ceFTv.__read(_a, 1), key = _b[0];\n return _this.vNodeOf(oldVNode.children, key);\n }), function(_a) {\n var selector = _a.selector;\n return selector + '';\n });\n _o.label = 1;\n case 1:\n _o.trys.push([\n 1,\n 7,\n 8,\n 9\n ]);\n _b = $ceFTv.__values(newVNode.children.entries()), _c = _b.next();\n _o.label = 2;\n case 2:\n if (!!_c.done) return [\n 3 /*break*/ ,\n 6\n ];\n _d = $ceFTv.__read(_c.value, 2), index = _d[0], newVChild = _d[1];\n key = this.keyOf(newVChild, index);\n oldVChild = map[key] === $gPvyW.DiffStatus.Same ? this.vNodeOf(oldVNode.children, key) : (_m = deletingGroup === null || deletingGroup === void 0 ? void 0 : deletingGroup[newVChild.selector]) === null || _m === void 0 ? void 0 : _m.shift();\n return [\n 4 /*yield*/ ,\n {\n index: index,\n oldVNode: oldVChild,\n newVNode: newVChild\n }\n ];\n case 3:\n _o.sent();\n if (!((oldVChild === null || oldVChild === void 0 ? void 0 : oldVChild.children[0]) || newVChild.children[0])) return [\n 3 /*break*/ ,\n 5\n ];\n oldVChild || (oldVChild = new $2flNv.VNode($ceFTv.__assign($ceFTv.__assign({}, newVChild), {\n children: []\n })));\n return [\n 5 /*yield**/ ,\n $ceFTv.__values(this.diffVChildren(oldVChild, newVChild))\n ];\n case 4:\n _o.sent();\n _o.label = 5;\n case 5:\n _c = _b.next();\n return [\n 3 /*break*/ ,\n 2\n ];\n case 6:\n return [\n 3 /*break*/ ,\n 9\n ];\n case 7:\n e_3_1 = _o.sent();\n e_3 = {\n error: e_3_1\n };\n return [\n 3 /*break*/ ,\n 9\n ];\n case 8:\n try {\n if (_c && !_c.done && (_k = _b.return)) _k.call(_b);\n } finally{\n if (e_3) throw e_3.error;\n }\n return [\n 7 /*endfinally*/ \n ];\n case 9:\n _e = deletingGroup;\n _f = [];\n for(_g in _e)_f.push(_g);\n _i = 0;\n _o.label = 10;\n case 10:\n if (!(_i < _f.length)) return [\n 3 /*break*/ ,\n 19\n ];\n _g = _f[_i];\n if (!(_g in _e)) return [\n 3 /*break*/ ,\n 18\n ];\n selector = _g;\n _o.label = 11;\n case 11:\n _o.trys.push([\n 11,\n 16,\n 17,\n 18\n ]);\n _h = (e_4 = void 0, $ceFTv.__values(deletingGroup[selector])), _j = _h.next();\n _o.label = 12;\n case 12:\n if (!!_j.done) return [\n 3 /*break*/ ,\n 15\n ];\n oldVNode_1 = _j.value;\n return [\n 4 /*yield*/ ,\n {\n oldVNode: oldVNode_1\n }\n ];\n case 13:\n _o.sent();\n _o.label = 14;\n case 14:\n _j = _h.next();\n return [\n 3 /*break*/ ,\n 12\n ];\n case 15:\n return [\n 3 /*break*/ ,\n 18\n ];\n case 16:\n e_4_1 = _o.sent();\n e_4 = {\n error: e_4_1\n };\n return [\n 3 /*break*/ ,\n 18\n ];\n case 17:\n try {\n if (_j && !_j.done && (_l = _h.return)) _l.call(_h);\n } finally{\n if (e_4) throw e_4.error;\n }\n return [\n 7 /*endfinally*/ \n ];\n case 18:\n _i++;\n return [\n 3 /*break*/ ,\n 10\n ];\n case 19:\n return [\n 2 /*return*/ \n ];\n }\n });\n };\n DOMRenderer.prototype.handleCustomEvent = function(node, event) {\n var handler;\n Object.defineProperty(node, \"on\".concat(event), {\n set: function(value) {\n if (handler) node.removeEventListener(event, handler);\n node.addEventListener(event, handler = value);\n },\n get: function() {\n return handler;\n }\n });\n };\n DOMRenderer.prototype.patchNode = function(oldVNode, newVNode) {\n this.updateProps(oldVNode.node, oldVNode.props, newVNode.props, this.removeProperty, this.setProperty);\n this.updateProps(oldVNode.node.style, oldVNode.style, newVNode.style, function(style, key) {\n return style.removeProperty((0, $gPvyW.toHyphenCase)(key));\n }, function(style, key, value) {\n return style.setProperty((0, $gPvyW.toHyphenCase)(key), value);\n });\n newVNode.node || (newVNode.node = oldVNode.node);\n return newVNode;\n };\n DOMRenderer.prototype.generateDOM = function(oldVRoot, newVRoot) {\n var _a, _b, _c, index, oldVNode, newVNode, inserting, tagName, node, parent_1, e_5_1;\n var e_5, _d;\n var _e;\n return $ceFTv.__generator(this, function(_f) {\n switch(_f.label){\n case 0:\n if ($2flNv.VNode.isFragment(newVRoot)) newVRoot = new $2flNv.VNode($ceFTv.__assign($ceFTv.__assign({}, oldVRoot), {\n children: newVRoot.children\n }));\n return [\n 4 /*yield*/ ,\n this.patchNode(oldVRoot, newVRoot)\n ];\n case 1:\n _f.sent();\n _f.label = 2;\n case 2:\n _f.trys.push([\n 2,\n 7,\n 8,\n 9\n ]);\n _a = $ceFTv.__values(this.diffVChildren(oldVRoot, newVRoot)), _b = _a.next();\n _f.label = 3;\n case 3:\n if (!!_b.done) return [\n 3 /*break*/ ,\n 6\n ];\n _c = _b.value, index = _c.index, oldVNode = _c.oldVNode, newVNode = _c.newVNode;\n if (!newVNode) {\n this.deleteNode(oldVNode);\n return [\n 3 /*break*/ ,\n 5\n ];\n }\n inserting = !oldVNode;\n if (oldVNode) newVNode.node = oldVNode.node;\n else {\n newVNode.createDOM(this.document);\n tagName = newVNode.tagName, node = newVNode.node, parent_1 = newVNode.parent;\n oldVNode = new $2flNv.VNode({\n tagName: tagName,\n node: node,\n parent: parent_1\n });\n }\n if (newVNode.text) oldVNode.node.nodeValue = newVNode.text;\n else if (!$2flNv.VNode.isFragment(newVNode)) this.patchNode(oldVNode, newVNode);\n if (oldVNode.parent) {\n this.commitChild(oldVNode.parent.node, newVNode.node, index);\n if (inserting) (_e = newVNode.ref) === null || _e === void 0 || _e.call(newVNode, newVNode.node);\n }\n return [\n 4 /*yield*/ ,\n newVNode\n ];\n case 4:\n _f.sent();\n _f.label = 5;\n case 5:\n _b = _a.next();\n return [\n 3 /*break*/ ,\n 3\n ];\n case 6:\n return [\n 3 /*break*/ ,\n 9\n ];\n case 7:\n e_5_1 = _f.sent();\n e_5 = {\n error: e_5_1\n };\n return [\n 3 /*break*/ ,\n 9\n ];\n case 8:\n try {\n if (_b && !_b.done && (_d = _a.return)) _d.call(_a);\n } finally{\n if (e_5) throw e_5.error;\n }\n return [\n 7 /*endfinally*/ \n ];\n case 9:\n return [\n 2 /*return*/ \n ];\n }\n });\n };\n DOMRenderer.prototype.patch = function(oldVRoot, newVRoot) {\n var e_6, _a;\n var count = 0;\n try {\n for(var _b = $ceFTv.__values(this.generateDOM(oldVRoot, newVRoot)), _c = _b.next(); !_c.done; _c = _b.next()){\n var newVNode = _c.value;\n if (++count === 1) newVRoot = newVNode;\n }\n } catch (e_6_1) {\n e_6 = {\n error: e_6_1\n };\n } finally{\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally{\n if (e_6) throw e_6.error;\n }\n }\n return newVRoot;\n };\n DOMRenderer.prototype.patchAsync = function(oldVRoot, newVRoot) {\n return $ceFTv.__awaiter(this, void 0, void 0, function() {\n var oldController, controller, count, _a, _b, newVNode, e_7_1;\n var e_7, _c;\n return $ceFTv.__generator(this, function(_d) {\n switch(_d.label){\n case 0:\n oldController = this.signalCache.get(oldVRoot.node);\n if (oldController) {\n oldController.abort();\n oldVRoot = $2flNv.VNode.fromDOM(oldVRoot.node);\n }\n controller = new AbortController();\n this.signalCache.set(oldVRoot.node, controller);\n count = 0;\n _d.label = 1;\n case 1:\n _d.trys.push([\n 1,\n 6,\n 7,\n 8\n ]);\n _a = $ceFTv.__values(this.generateDOM(oldVRoot, newVRoot)), _b = _a.next();\n _d.label = 2;\n case 2:\n if (!!_b.done) return [\n 3 /*break*/ ,\n 5\n ];\n newVNode = _b.value;\n if (++count === 1) newVRoot = newVNode;\n return [\n 4 /*yield*/ ,\n scheduler.yield()\n ];\n case 3:\n _d.sent();\n if (controller.signal.aborted) {\n this.signalCache.delete(oldVRoot.node);\n controller.signal.throwIfAborted();\n }\n _d.label = 4;\n case 4:\n _b = _a.next();\n return [\n 3 /*break*/ ,\n 2\n ];\n case 5:\n return [\n 3 /*break*/ ,\n 8\n ];\n case 6:\n e_7_1 = _d.sent();\n e_7 = {\n error: e_7_1\n };\n return [\n 3 /*break*/ ,\n 8\n ];\n case 7:\n try {\n if (_b && !_b.done && (_c = _a.return)) _c.call(_a);\n } finally{\n if (e_7) throw e_7.error;\n }\n return [\n 7 /*endfinally*/ \n ];\n case 8:\n this.signalCache.delete(oldVRoot.node);\n return [\n 2 /*return*/ ,\n newVRoot\n ];\n }\n });\n });\n };\n DOMRenderer.prototype.render = function(vNode, node, mode) {\n var _this = this;\n var _a;\n if (node === void 0) node = (_a = globalThis.document) === null || _a === void 0 ? void 0 : _a.body;\n if (mode === void 0) mode = 'sync';\n this.document = node.ownerDocument;\n var root = this.treeCache.get(node) || $2flNv.VNode.fromDOM(node);\n var done = function(root) {\n return _this.treeCache.set(node, root) && root;\n };\n return mode === 'sync' ? done(this.patch(root, new $2flNv.VNode($ceFTv.__assign($ceFTv.__assign({}, root), {\n children: [\n vNode\n ]\n })))) : this.patchAsync(root, new $2flNv.VNode($ceFTv.__assign($ceFTv.__assign({}, root), {\n children: [\n vNode\n ]\n }))).then(done);\n };\n DOMRenderer.prototype.renderToStaticMarkup = function(tree) {\n return $ceFTv.__spreadArray([], $ceFTv.__read(tree.generateXML()), false).join('');\n };\n DOMRenderer.prototype.renderToReadableStream = function(tree) {\n return $i3JFt.ReadableStream.from(tree.generateXML());\n };\n return DOMRenderer;\n}();\nmodule.exports.DOMRenderer = $d8c6378e8b7c900e$var$DOMRenderer;\n\n});\nparcelRegister(\"8BuuC\", function(module, exports) {\n!function() {\n var t = [\n \"user-blocking\",\n \"user-visible\",\n \"background\"\n ];\n class i {\n constructor(){\n this.t = new MessageChannel, this.i = this.t.port2, this.l = {}, this.o = 1, this.t.port1.onmessage = (t)=>this.h(t);\n }\n u(t) {\n var i = this.o++;\n return this.l[i] = t, this.i.postMessage(i), i;\n }\n p(t) {\n delete this.l[t];\n }\n h(t) {\n var i = t.data;\n if (i in this.l) {\n var r = this.l[i];\n delete this.l[i], r();\n }\n }\n }\n function r() {\n return r.v || (r.v = new i), r.v;\n }\n class s {\n constructor(t, i, r){\n void 0 === r && (r = 0), this.k = t, this.T = null, this.C = null, this.m = !1, this._(i, r);\n }\n isIdleCallback() {\n return 0 === this.T;\n }\n I() {\n return 2 === this.T;\n }\n cancel() {\n if (!this.m) switch(this.m = !0, this.T){\n case 0:\n cancelIdleCallback(this.C);\n break;\n case 1:\n clearTimeout(this.C);\n break;\n case 2:\n r().p(this.C);\n break;\n default:\n throw new TypeError(\"Unknown CallbackType\");\n }\n }\n _(i, s) {\n if (s && s > 0) return this.T = 1, void (this.C = setTimeout(()=>{\n this.P();\n }, s));\n if (!t.includes(i)) throw new TypeError(\"Invalid task priority : \" + i);\n return \"background\" === i && \"function\" == typeof requestIdleCallback ? (this.T = 0, void (this.C = requestIdleCallback(()=>{\n this.P();\n }))) : \"function\" == typeof MessageChannel ? (this.T = 2, void (this.C = r().u(()=>{\n this.P();\n }))) : (this.T = 1, void (this.C = setTimeout(()=>{\n this.P();\n })));\n }\n P() {\n this.m || this.k();\n }\n }\n var e = 0;\n class n {\n constructor(){\n this.j = null, this.M = null;\n }\n isEmpty() {\n return null == this.j;\n }\n push(t) {\n if (\"object\" != typeof t) throw new TypeError(\"Task must be an Object\");\n t.A = e++, this.isEmpty() ? (t.N = null, this.j = t) : (t.N = this.M, this.M.O = t), t.O = null, this.M = t;\n }\n takeNextTask() {\n if (this.isEmpty()) return null;\n var t = this.j;\n return this.q(t), t;\n }\n merge(t, i) {\n if (\"function\" != typeof i) throw new TypeError(\"Must provide a selector function.\");\n if (null == t) throw new Error(\"sourceQueue cannot be null\");\n for(var r = this.j, s = null, e = t.j; e;){\n var n = e;\n if (e = e.O, i(n)) {\n for(t.q(n); r && r.A < n.A;)s = r, r = r.O;\n this.D(n, s), s = n;\n }\n }\n }\n D(t, i) {\n if (i != this.M) {\n var r = i ? i.O : this.j;\n t.O = r, r.N = t, t.N = i, null != i ? i.O = t : this.j = t;\n } else this.push(t);\n }\n q(t) {\n if (null == t) throw new Error(\"Expected task to be non-null\");\n t === this.j && (this.j = t.O), t === this.M && (this.M = this.M.N), t.O && (t.O.N = t.N), t.N && (t.N.O = t.O);\n }\n }\n class l extends Event {\n constructor(i, r){\n if (!r || !t.includes(r.previousPriority)) throw new TypeError(\"Invalid task priority: '\" + r.previousPriority + \"'\");\n super(i), this.previousPriority = r.previousPriority;\n }\n }\n class o extends AbortController {\n constructor(i){\n if (void 0 === i && (i = {}), super(), null == i && (i = {}), \"object\" != typeof i) throw new TypeError(\"'init' is not an object\");\n var r, s, e = void 0 === i.priority ? \"user-visible\" : i.priority;\n if (!t.includes(e)) throw new TypeError(\"Invalid task priority: '\" + e + \"'\");\n this.H = e, this.R = !1, s = (r = this).signal, Object.defineProperties(s, {\n priority: {\n get: function() {\n return r.H;\n },\n enumerable: !0\n },\n onprioritychange: {\n value: null,\n writable: !0,\n enumerable: !0\n }\n }), s.addEventListener(\"prioritychange\", (t)=>{\n s.onprioritychange && s.onprioritychange(t);\n });\n }\n setPriority(i) {\n if (!t.includes(i)) throw new TypeError(\"Invalid task priority: \" + i);\n if (this.R) throw new DOMException(\"\", \"NotAllowedError\");\n if (this.signal.priority !== i) {\n this.R = !0;\n var r = this.H;\n this.H = i;\n var s = new l(\"prioritychange\", {\n previousPriority: r\n });\n this.signal.dispatchEvent(s), this.R = !1;\n }\n }\n }\n void 0 === self.scheduler ? (self.scheduler = new class {\n constructor(){\n this.S = {}, t.forEach((t)=>{\n this.S[t] = [\n new n,\n new n\n ];\n }), this.U = null, this.W = new WeakMap;\n }\n yield() {\n return this.B(()=>{}, {\n priority: \"user-visible\"\n }, !0);\n }\n postTask(t, i) {\n return this.B(t, i, !1);\n }\n B(i, r, s) {\n if (void 0 !== (r = Object.assign({}, r)).signal) {\n if (null === r.signal || !(\"aborted\" in r.signal) || \"function\" != typeof r.signal.addEventListener) return Promise.reject(new TypeError(\"'signal' is not a valid 'AbortSignal'\"));\n if (r.signal && r.signal.priority && !t.includes(r.signal.priority)) return Promise.reject(new TypeError(\"Invalid task priority: '\" + r.signal.priority + \"'\"));\n }\n if (void 0 !== r.priority && (null === r.priority || !t.includes(r.priority))) return Promise.reject(new TypeError(\"Invalid task priority: '\" + r.priority + \"'\"));\n if (void 0 === r.delay && (r.delay = 0), r.delay = Number(r.delay), r.delay < 0) return Promise.reject(new TypeError(\"'delay' must be a positive number.\"));\n var e = {\n callback: i,\n options: r,\n resolve: null,\n reject: null,\n hostCallback: null,\n abortCallback: null,\n onTaskCompleted: function() {\n this.options.signal && this.abortCallback && (this.options.signal.removeEventListener(\"abort\", this.abortCallback), this.abortCallback = null);\n },\n onTaskAborted: function() {\n this.hostCallback && (this.hostCallback.cancel(), this.hostCallback = null), this.options.signal.removeEventListener(\"abort\", this.abortCallback), this.abortCallback = null, this.reject(this.options.signal.reason);\n },\n isAborted: function() {\n return this.options.signal && this.options.signal.aborted;\n },\n isContinuation: s\n }, n = new Promise((t, i)=>{\n e.resolve = t, e.reject = i;\n });\n return this._(e), n;\n }\n _(t) {\n var i = t.options.signal;\n if (i) {\n if (i.aborted) return void t.reject(i.reason);\n t.abortCallback = ()=>{\n t.onTaskAborted();\n }, i.addEventListener(\"abort\", t.abortCallback);\n }\n t.options.delay > 0 ? t.hostCallback = new s(()=>{\n t.hostCallback = null, this.F(t);\n }, null, t.options.delay) : (this.G(t), this.J());\n }\n F(t) {\n this.G(t), this.U && (this.U.cancel(), this.U = null), this.K();\n }\n L(t) {\n var i = this.W.get(t);\n if (void 0 === i) throw new Error(\"Attempting to change priority on an unregistered signal\");\n if (i !== t.priority) {\n for(var r = 0; r < 2; r++)this.S[t.priority][r].merge(this.S[i][r], (i)=>i.options.signal === t);\n this.W.set(t, t.priority);\n }\n }\n K() {\n this.U = null, this.V(), this.J();\n }\n J() {\n var { priority: t } = this.X();\n null != t && (\"background\" !== t && this.U && this.U.isIdleCallback() && (this.U.cancel(), this.U = null), this.U || (this.U = new s(()=>{\n this.K();\n }, t, 0)));\n }\n G(i) {\n var r;\n if (!t.includes(r = i.options.priority ? i.options.priority : i.options.signal && i.options.signal.priority ? i.options.signal.priority : \"user-visible\")) throw new TypeError(\"Invalid task priority: \" + r);\n if (i.options.signal && i.options.signal.priority) {\n var s = i.options.signal;\n this.W.has(s) || (s.addEventListener(\"prioritychange\", ()=>{\n this.L(s);\n }), this.W.set(s, s.priority));\n }\n this.S[r][i.isContinuation ? 0 : 1].push(i);\n }\n V() {\n var t = null;\n do {\n var { priority: i, type: r } = this.X();\n if (null == i) return;\n t = this.S[i][r].takeNextTask();\n }while (t.isAborted());\n try {\n var s = t.callback();\n t.resolve(s);\n } catch (i) {\n t.reject(i);\n } finally{\n t.onTaskCompleted();\n }\n }\n X() {\n for(var i = 0; i < t.length; i++)for(var r = t[i], s = 0; s < 2; s++)if (!this.S[r][s].isEmpty()) return {\n priority: r,\n type: s\n };\n return {\n priority: null,\n type: 0\n };\n }\n }, self.TaskController = o, self.TaskPriorityChangeEvent = l) : self.scheduler.yield || (self.scheduler.yield = function() {\n return self.scheduler.postTask(()=>{}, {\n priority: \"user-blocking\"\n });\n });\n}();\n\n});\n\nparcelRegister(\"i3JFt\", function(module, exports) {\n\n$parcel$export(module.exports, \"ReadableStream\", () => $33f07bbd4ddcb7b3$export$5d3e1e5268af5f76);\n/**\n * @license\n * web-streams-polyfill v4.0.0\n * Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.\n * This code is released under the MIT license.\n * SPDX-License-Identifier: MIT\n */ function $33f07bbd4ddcb7b3$var$e() {}\nfunction $33f07bbd4ddcb7b3$var$t(e) {\n return \"object\" == typeof e && null !== e || \"function\" == typeof e;\n}\nconst $33f07bbd4ddcb7b3$var$r = $33f07bbd4ddcb7b3$var$e;\nfunction $33f07bbd4ddcb7b3$var$o(e, t) {\n try {\n Object.defineProperty(e, \"name\", {\n value: t,\n configurable: !0\n });\n } catch (e) {}\n}\nconst $33f07bbd4ddcb7b3$var$n = Promise, $33f07bbd4ddcb7b3$var$a = Promise.resolve.bind($33f07bbd4ddcb7b3$var$n), $33f07bbd4ddcb7b3$var$i = Promise.prototype.then, $33f07bbd4ddcb7b3$var$l = Promise.reject.bind($33f07bbd4ddcb7b3$var$n), $33f07bbd4ddcb7b3$var$s = $33f07bbd4ddcb7b3$var$a;\nfunction $33f07bbd4ddcb7b3$var$u(e) {\n return new $33f07bbd4ddcb7b3$var$n(e);\n}\nfunction $33f07bbd4ddcb7b3$var$c(e) {\n return $33f07bbd4ddcb7b3$var$u((t)=>t(e));\n}\nfunction $33f07bbd4ddcb7b3$var$d(e) {\n return $33f07bbd4ddcb7b3$var$l(e);\n}\nfunction $33f07bbd4ddcb7b3$var$f(e, t, r) {\n return $33f07bbd4ddcb7b3$var$i.call(e, t, r);\n}\nfunction $33f07bbd4ddcb7b3$var$b(e, t, o) {\n $33f07bbd4ddcb7b3$var$f($33f07bbd4ddcb7b3$var$f(e, t, o), void 0, $33f07bbd4ddcb7b3$var$r);\n}\nfunction $33f07bbd4ddcb7b3$var$h(e, t) {\n $33f07bbd4ddcb7b3$var$b(e, t);\n}\nfunction $33f07bbd4ddcb7b3$var$m(e, t) {\n $33f07bbd4ddcb7b3$var$b(e, void 0, t);\n}\nfunction $33f07bbd4ddcb7b3$var$_(e, t, r) {\n return $33f07bbd4ddcb7b3$var$f(e, t, r);\n}\nfunction $33f07bbd4ddcb7b3$var$p(e) {\n $33f07bbd4ddcb7b3$var$f(e, void 0, $33f07bbd4ddcb7b3$var$r);\n}\nlet $33f07bbd4ddcb7b3$var$y = (e)=>{\n if (\"function\" == typeof queueMicrotask) $33f07bbd4ddcb7b3$var$y = queueMicrotask;\n else {\n const e = $33f07bbd4ddcb7b3$var$c(void 0);\n $33f07bbd4ddcb7b3$var$y = (t)=>$33f07bbd4ddcb7b3$var$f(e, t);\n }\n return $33f07bbd4ddcb7b3$var$y(e);\n};\nfunction $33f07bbd4ddcb7b3$var$S(e, t, r) {\n if (\"function\" != typeof e) throw new TypeError(\"Argument is not a function\");\n return Function.prototype.apply.call(e, t, r);\n}\nfunction $33f07bbd4ddcb7b3$var$g(e, t, r) {\n try {\n return $33f07bbd4ddcb7b3$var$c($33f07bbd4ddcb7b3$var$S(e, t, r));\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n}\nclass $33f07bbd4ddcb7b3$var$v {\n constructor(){\n this._cursor = 0, this._size = 0, this._front = {\n _elements: [],\n _next: void 0\n }, this._back = this._front, this._cursor = 0, this._size = 0;\n }\n get length() {\n return this._size;\n }\n push(e) {\n const t = this._back;\n let r = t;\n 16383 === t._elements.length && (r = {\n _elements: [],\n _next: void 0\n }), t._elements.push(e), r !== t && (this._back = r, t._next = r), ++this._size;\n }\n shift() {\n const e = this._front;\n let t = e;\n const r = this._cursor;\n let o = r + 1;\n const n = e._elements, a = n[r];\n return 16384 === o && (t = e._next, o = 0), --this._size, this._cursor = o, e !== t && (this._front = t), n[r] = void 0, a;\n }\n forEach(e) {\n let t = this._cursor, r = this._front, o = r._elements;\n for(; !(t === o.length && void 0 === r._next || t === o.length && (r = r._next, o = r._elements, t = 0, 0 === o.length));)e(o[t]), ++t;\n }\n peek() {\n const e = this._front, t = this._cursor;\n return e._elements[t];\n }\n}\nconst $33f07bbd4ddcb7b3$var$w = Symbol(\"[[AbortSteps]]\"), $33f07bbd4ddcb7b3$var$R = Symbol(\"[[ErrorSteps]]\"), $33f07bbd4ddcb7b3$var$T = Symbol(\"[[CancelSteps]]\"), $33f07bbd4ddcb7b3$var$C = Symbol(\"[[PullSteps]]\"), $33f07bbd4ddcb7b3$var$P = Symbol(\"[[ReleaseSteps]]\");\nfunction $33f07bbd4ddcb7b3$var$q(e, t) {\n e._ownerReadableStream = t, t._reader = e, \"readable\" === t._state ? $33f07bbd4ddcb7b3$var$B(e) : \"closed\" === t._state ? function(e) {\n $33f07bbd4ddcb7b3$var$B(e), $33f07bbd4ddcb7b3$var$A(e);\n }(e) : $33f07bbd4ddcb7b3$var$k(e, t._storedError);\n}\nfunction $33f07bbd4ddcb7b3$var$E(e, t) {\n return $33f07bbd4ddcb7b3$var$Or(e._ownerReadableStream, t);\n}\nfunction $33f07bbd4ddcb7b3$var$W(e) {\n const t = e._ownerReadableStream;\n \"readable\" === t._state ? $33f07bbd4ddcb7b3$var$j(e, new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\")) : function(e, t) {\n $33f07bbd4ddcb7b3$var$k(e, t);\n }(e, new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\")), t._readableStreamController[$33f07bbd4ddcb7b3$var$P](), t._reader = void 0, e._ownerReadableStream = void 0;\n}\nfunction $33f07bbd4ddcb7b3$var$O(e) {\n return new TypeError(\"Cannot \" + e + \" a stream using a released reader\");\n}\nfunction $33f07bbd4ddcb7b3$var$B(e) {\n e._closedPromise = $33f07bbd4ddcb7b3$var$u((t, r)=>{\n e._closedPromise_resolve = t, e._closedPromise_reject = r;\n });\n}\nfunction $33f07bbd4ddcb7b3$var$k(e, t) {\n $33f07bbd4ddcb7b3$var$B(e), $33f07bbd4ddcb7b3$var$j(e, t);\n}\nfunction $33f07bbd4ddcb7b3$var$j(e, t) {\n void 0 !== e._closedPromise_reject && ($33f07bbd4ddcb7b3$var$p(e._closedPromise), e._closedPromise_reject(t), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0);\n}\nfunction $33f07bbd4ddcb7b3$var$A(e) {\n void 0 !== e._closedPromise_resolve && (e._closedPromise_resolve(void 0), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0);\n}\nconst $33f07bbd4ddcb7b3$var$z = Number.isFinite || function(e) {\n return \"number\" == typeof e && isFinite(e);\n}, $33f07bbd4ddcb7b3$var$D = Math.trunc || function(e) {\n return e < 0 ? Math.ceil(e) : Math.floor(e);\n};\nfunction $33f07bbd4ddcb7b3$var$L(e, t) {\n if (void 0 !== e && \"object\" != typeof (r = e) && \"function\" != typeof r) throw new TypeError(`${t} is not an object.`);\n var r;\n}\nfunction $33f07bbd4ddcb7b3$var$F(e, t) {\n if (\"function\" != typeof e) throw new TypeError(`${t} is not a function.`);\n}\nfunction $33f07bbd4ddcb7b3$var$I(e, t) {\n if (!function(e) {\n return \"object\" == typeof e && null !== e || \"function\" == typeof e;\n }(e)) throw new TypeError(`${t} is not an object.`);\n}\nfunction $33f07bbd4ddcb7b3$var$$(e, t, r) {\n if (void 0 === e) throw new TypeError(`Parameter ${t} is required in '${r}'.`);\n}\nfunction $33f07bbd4ddcb7b3$var$M(e, t, r) {\n if (void 0 === e) throw new TypeError(`${t} is required in '${r}'.`);\n}\nfunction $33f07bbd4ddcb7b3$var$Y(e) {\n return Number(e);\n}\nfunction $33f07bbd4ddcb7b3$var$x(e) {\n return 0 === e ? 0 : e;\n}\nfunction $33f07bbd4ddcb7b3$var$Q(e, t) {\n const r = Number.MAX_SAFE_INTEGER;\n let o = Number(e);\n if (o = $33f07bbd4ddcb7b3$var$x(o), !$33f07bbd4ddcb7b3$var$z(o)) throw new TypeError(`${t} is not a finite number`);\n if (o = function(e) {\n return $33f07bbd4ddcb7b3$var$x($33f07bbd4ddcb7b3$var$D(e));\n }(o), o < 0 || o > r) throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);\n return $33f07bbd4ddcb7b3$var$z(o) && 0 !== o ? o : 0;\n}\nfunction $33f07bbd4ddcb7b3$var$N(e, t) {\n if (!$33f07bbd4ddcb7b3$var$Er(e)) throw new TypeError(`${t} is not a ReadableStream.`);\n}\nfunction $33f07bbd4ddcb7b3$var$H(e) {\n return new $33f07bbd4ddcb7b3$export$a890bf36e2af9168(e);\n}\nfunction $33f07bbd4ddcb7b3$var$V(e, t) {\n e._reader._readRequests.push(t);\n}\nfunction $33f07bbd4ddcb7b3$var$U(e, t, r) {\n const o = e._reader._readRequests.shift();\n r ? o._closeSteps() : o._chunkSteps(t);\n}\nfunction $33f07bbd4ddcb7b3$var$G(e) {\n return e._reader._readRequests.length;\n}\nfunction $33f07bbd4ddcb7b3$var$X(e) {\n const t = e._reader;\n return void 0 !== t && !!$33f07bbd4ddcb7b3$var$J(t);\n}\nclass $33f07bbd4ddcb7b3$export$a890bf36e2af9168 {\n constructor(e){\n if ($33f07bbd4ddcb7b3$var$$(e, 1, \"ReadableStreamDefaultReader\"), $33f07bbd4ddcb7b3$var$N(e, \"First parameter\"), $33f07bbd4ddcb7b3$var$Wr(e)) throw new TypeError(\"This stream has already been locked for exclusive reading by another reader\");\n $33f07bbd4ddcb7b3$var$q(this, e), this._readRequests = new $33f07bbd4ddcb7b3$var$v;\n }\n get closed() {\n return $33f07bbd4ddcb7b3$var$J(this) ? this._closedPromise : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$ee(\"closed\"));\n }\n cancel(e) {\n return $33f07bbd4ddcb7b3$var$J(this) ? void 0 === this._ownerReadableStream ? $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$O(\"cancel\")) : $33f07bbd4ddcb7b3$var$E(this, e) : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$ee(\"cancel\"));\n }\n read() {\n if (!$33f07bbd4ddcb7b3$var$J(this)) return $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$ee(\"read\"));\n if (void 0 === this._ownerReadableStream) return $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$O(\"read from\"));\n let e, t;\n const r = $33f07bbd4ddcb7b3$var$u((r, o)=>{\n e = r, t = o;\n });\n return $33f07bbd4ddcb7b3$var$K(this, {\n _chunkSteps: (t)=>e({\n value: t,\n done: !1\n }),\n _closeSteps: ()=>e({\n value: void 0,\n done: !0\n }),\n _errorSteps: (e)=>t(e)\n }), r;\n }\n releaseLock() {\n if (!$33f07bbd4ddcb7b3$var$J(this)) throw $33f07bbd4ddcb7b3$var$ee(\"releaseLock\");\n void 0 !== this._ownerReadableStream && function(e) {\n $33f07bbd4ddcb7b3$var$W(e);\n const t = new TypeError(\"Reader was released\");\n $33f07bbd4ddcb7b3$var$Z(e, t);\n }(this);\n }\n}\nfunction $33f07bbd4ddcb7b3$var$J(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_readRequests\") && e instanceof $33f07bbd4ddcb7b3$export$a890bf36e2af9168;\n}\nfunction $33f07bbd4ddcb7b3$var$K(e, t) {\n const r = e._ownerReadableStream;\n r._disturbed = !0, \"closed\" === r._state ? t._closeSteps() : \"errored\" === r._state ? t._errorSteps(r._storedError) : r._readableStreamController[$33f07bbd4ddcb7b3$var$C](t);\n}\nfunction $33f07bbd4ddcb7b3$var$Z(e, t) {\n const r = e._readRequests;\n e._readRequests = new $33f07bbd4ddcb7b3$var$v, r.forEach((e)=>{\n e._errorSteps(t);\n });\n}\nfunction $33f07bbd4ddcb7b3$var$ee(e) {\n return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`);\n}\nvar $33f07bbd4ddcb7b3$var$te, $33f07bbd4ddcb7b3$var$re, $33f07bbd4ddcb7b3$var$oe;\nfunction $33f07bbd4ddcb7b3$var$ne(e) {\n return e.slice();\n}\nfunction $33f07bbd4ddcb7b3$var$ae(e, t, r, o, n) {\n new Uint8Array(e).set(new Uint8Array(r, o, n), t);\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$a890bf36e2af9168.prototype, {\n cancel: {\n enumerable: !0\n },\n read: {\n enumerable: !0\n },\n releaseLock: {\n enumerable: !0\n },\n closed: {\n enumerable: !0\n }\n}), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$a890bf36e2af9168.prototype.cancel, \"cancel\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$a890bf36e2af9168.prototype.read, \"read\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$a890bf36e2af9168.prototype.releaseLock, \"releaseLock\"), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$a890bf36e2af9168.prototype, Symbol.toStringTag, {\n value: \"ReadableStreamDefaultReader\",\n configurable: !0\n});\nlet $33f07bbd4ddcb7b3$var$ie = (e)=>($33f07bbd4ddcb7b3$var$ie = \"function\" == typeof e.transfer ? (e)=>e.transfer() : \"function\" == typeof structuredClone ? (e)=>structuredClone(e, {\n transfer: [\n e\n ]\n }) : (e)=>e, $33f07bbd4ddcb7b3$var$ie(e)), $33f07bbd4ddcb7b3$var$le = (e)=>($33f07bbd4ddcb7b3$var$le = \"boolean\" == typeof e.detached ? (e)=>e.detached : (e)=>0 === e.byteLength, $33f07bbd4ddcb7b3$var$le(e));\nfunction $33f07bbd4ddcb7b3$var$se(e, t, r) {\n if (e.slice) return e.slice(t, r);\n const o = r - t, n = new ArrayBuffer(o);\n return $33f07bbd4ddcb7b3$var$ae(n, 0, e, t, o), n;\n}\nfunction $33f07bbd4ddcb7b3$var$ue(e, t) {\n const r = e[t];\n if (null != r) {\n if (\"function\" != typeof r) throw new TypeError(`${String(t)} is not a function`);\n return r;\n }\n}\nfunction $33f07bbd4ddcb7b3$var$ce(e) {\n try {\n const t = e.done, r = e.value;\n return $33f07bbd4ddcb7b3$var$f($33f07bbd4ddcb7b3$var$s(r), (e)=>({\n done: t,\n value: e\n }));\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n}\nconst $33f07bbd4ddcb7b3$var$de = null !== ($33f07bbd4ddcb7b3$var$oe = null !== ($33f07bbd4ddcb7b3$var$te = Symbol.asyncIterator) && void 0 !== $33f07bbd4ddcb7b3$var$te ? $33f07bbd4ddcb7b3$var$te : null === ($33f07bbd4ddcb7b3$var$re = Symbol.for) || void 0 === $33f07bbd4ddcb7b3$var$re ? void 0 : $33f07bbd4ddcb7b3$var$re.call(Symbol, \"Symbol.asyncIterator\")) && void 0 !== $33f07bbd4ddcb7b3$var$oe ? $33f07bbd4ddcb7b3$var$oe : \"@@asyncIterator\";\nfunction $33f07bbd4ddcb7b3$var$fe(e, r = \"sync\", o) {\n if (void 0 === o) {\n if (\"async\" === r) {\n if (void 0 === (o = $33f07bbd4ddcb7b3$var$ue(e, $33f07bbd4ddcb7b3$var$de))) return function(e) {\n const r = {\n next () {\n let t;\n try {\n t = $33f07bbd4ddcb7b3$var$be(e);\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n return $33f07bbd4ddcb7b3$var$ce(t);\n },\n return (r) {\n let o;\n try {\n const t = $33f07bbd4ddcb7b3$var$ue(e.iterator, \"return\");\n if (void 0 === t) return $33f07bbd4ddcb7b3$var$c({\n done: !0,\n value: r\n });\n o = $33f07bbd4ddcb7b3$var$S(t, e.iterator, [\n r\n ]);\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n return $33f07bbd4ddcb7b3$var$t(o) ? $33f07bbd4ddcb7b3$var$ce(o) : $33f07bbd4ddcb7b3$var$d(new TypeError(\"The iterator.return() method must return an object\"));\n }\n };\n return {\n iterator: r,\n nextMethod: r.next,\n done: !1\n };\n }($33f07bbd4ddcb7b3$var$fe(e, \"sync\", $33f07bbd4ddcb7b3$var$ue(e, Symbol.iterator)));\n } else o = $33f07bbd4ddcb7b3$var$ue(e, Symbol.iterator);\n }\n if (void 0 === o) throw new TypeError(\"The object is not iterable\");\n const n = $33f07bbd4ddcb7b3$var$S(o, e, []);\n if (!$33f07bbd4ddcb7b3$var$t(n)) throw new TypeError(\"The iterator method must return an object\");\n return {\n iterator: n,\n nextMethod: n.next,\n done: !1\n };\n}\nfunction $33f07bbd4ddcb7b3$var$be(e) {\n const r = $33f07bbd4ddcb7b3$var$S(e.nextMethod, e.iterator, []);\n if (!$33f07bbd4ddcb7b3$var$t(r)) throw new TypeError(\"The iterator.next() method must return an object\");\n return r;\n}\nclass $33f07bbd4ddcb7b3$var$he {\n constructor(e, t){\n this._ongoingPromise = void 0, this._isFinished = !1, this._reader = e, this._preventCancel = t;\n }\n next() {\n const e = ()=>this._nextSteps();\n return this._ongoingPromise = this._ongoingPromise ? $33f07bbd4ddcb7b3$var$_(this._ongoingPromise, e, e) : e(), this._ongoingPromise;\n }\n return(e) {\n const t = ()=>this._returnSteps(e);\n return this._ongoingPromise ? $33f07bbd4ddcb7b3$var$_(this._ongoingPromise, t, t) : t();\n }\n _nextSteps() {\n if (this._isFinished) return Promise.resolve({\n value: void 0,\n done: !0\n });\n const e = this._reader;\n let t, r;\n const o = $33f07bbd4ddcb7b3$var$u((e, o)=>{\n t = e, r = o;\n });\n return $33f07bbd4ddcb7b3$var$K(e, {\n _chunkSteps: (e)=>{\n this._ongoingPromise = void 0, $33f07bbd4ddcb7b3$var$y(()=>t({\n value: e,\n done: !1\n }));\n },\n _closeSteps: ()=>{\n this._ongoingPromise = void 0, this._isFinished = !0, $33f07bbd4ddcb7b3$var$W(e), t({\n value: void 0,\n done: !0\n });\n },\n _errorSteps: (t)=>{\n this._ongoingPromise = void 0, this._isFinished = !0, $33f07bbd4ddcb7b3$var$W(e), r(t);\n }\n }), o;\n }\n _returnSteps(e) {\n if (this._isFinished) return Promise.resolve({\n value: e,\n done: !0\n });\n this._isFinished = !0;\n const t = this._reader;\n if (!this._preventCancel) {\n const r = $33f07bbd4ddcb7b3$var$E(t, e);\n return $33f07bbd4ddcb7b3$var$W(t), $33f07bbd4ddcb7b3$var$_(r, ()=>({\n value: e,\n done: !0\n }));\n }\n return $33f07bbd4ddcb7b3$var$W(t), $33f07bbd4ddcb7b3$var$c({\n value: e,\n done: !0\n });\n }\n}\nconst $33f07bbd4ddcb7b3$var$me = {\n next () {\n return $33f07bbd4ddcb7b3$var$_e(this) ? this._asyncIteratorImpl.next() : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$pe(\"next\"));\n },\n return (e) {\n return $33f07bbd4ddcb7b3$var$_e(this) ? this._asyncIteratorImpl.return(e) : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$pe(\"return\"));\n },\n [$33f07bbd4ddcb7b3$var$de] () {\n return this;\n }\n};\nfunction $33f07bbd4ddcb7b3$var$_e(e) {\n if (!$33f07bbd4ddcb7b3$var$t(e)) return !1;\n if (!Object.prototype.hasOwnProperty.call(e, \"_asyncIteratorImpl\")) return !1;\n try {\n return e._asyncIteratorImpl instanceof $33f07bbd4ddcb7b3$var$he;\n } catch (e) {\n return !1;\n }\n}\nfunction $33f07bbd4ddcb7b3$var$pe(e) {\n return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`);\n}\nObject.defineProperty($33f07bbd4ddcb7b3$var$me, $33f07bbd4ddcb7b3$var$de, {\n enumerable: !1\n});\nconst $33f07bbd4ddcb7b3$var$ye = Number.isNaN || function(e) {\n return e != e;\n};\nfunction $33f07bbd4ddcb7b3$var$Se(e) {\n const t = $33f07bbd4ddcb7b3$var$se(e.buffer, e.byteOffset, e.byteOffset + e.byteLength);\n return new Uint8Array(t);\n}\nfunction $33f07bbd4ddcb7b3$var$ge(e) {\n const t = e._queue.shift();\n return e._queueTotalSize -= t.size, e._queueTotalSize < 0 && (e._queueTotalSize = 0), t.value;\n}\nfunction $33f07bbd4ddcb7b3$var$ve(e, t, r) {\n if (\"number\" != typeof (o = r) || $33f07bbd4ddcb7b3$var$ye(o) || o < 0 || r === 1 / 0) throw new RangeError(\"Size must be a finite, non-NaN, non-negative number.\");\n var o;\n e._queue.push({\n value: t,\n size: r\n }), e._queueTotalSize += r;\n}\nfunction $33f07bbd4ddcb7b3$var$we(e) {\n e._queue = new $33f07bbd4ddcb7b3$var$v, e._queueTotalSize = 0;\n}\nfunction $33f07bbd4ddcb7b3$var$Re(e) {\n return e === DataView;\n}\nclass $33f07bbd4ddcb7b3$export$fbcf11583158d2c {\n constructor(){\n throw new TypeError(\"Illegal constructor\");\n }\n get view() {\n if (!$33f07bbd4ddcb7b3$var$Ce(this)) throw $33f07bbd4ddcb7b3$var$Je(\"view\");\n return this._view;\n }\n respond(e) {\n if (!$33f07bbd4ddcb7b3$var$Ce(this)) throw $33f07bbd4ddcb7b3$var$Je(\"respond\");\n if ($33f07bbd4ddcb7b3$var$$(e, 1, \"respond\"), e = $33f07bbd4ddcb7b3$var$Q(e, \"First parameter\"), void 0 === this._associatedReadableByteStreamController) throw new TypeError(\"This BYOB request has been invalidated\");\n if ($33f07bbd4ddcb7b3$var$le(this._view.buffer)) throw new TypeError(\"The BYOB request's buffer has been detached and so cannot be used as a response\");\n $33f07bbd4ddcb7b3$var$Ue(this._associatedReadableByteStreamController, e);\n }\n respondWithNewView(e) {\n if (!$33f07bbd4ddcb7b3$var$Ce(this)) throw $33f07bbd4ddcb7b3$var$Je(\"respondWithNewView\");\n if ($33f07bbd4ddcb7b3$var$$(e, 1, \"respondWithNewView\"), !ArrayBuffer.isView(e)) throw new TypeError(\"You can only respond with array buffer views\");\n if (void 0 === this._associatedReadableByteStreamController) throw new TypeError(\"This BYOB request has been invalidated\");\n if ($33f07bbd4ddcb7b3$var$le(e.buffer)) throw new TypeError(\"The given view's buffer has been detached and so cannot be used as a response\");\n $33f07bbd4ddcb7b3$var$Ge(this._associatedReadableByteStreamController, e);\n }\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$fbcf11583158d2c.prototype, {\n respond: {\n enumerable: !0\n },\n respondWithNewView: {\n enumerable: !0\n },\n view: {\n enumerable: !0\n }\n}), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$fbcf11583158d2c.prototype.respond, \"respond\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$fbcf11583158d2c.prototype.respondWithNewView, \"respondWithNewView\"), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$fbcf11583158d2c.prototype, Symbol.toStringTag, {\n value: \"ReadableStreamBYOBRequest\",\n configurable: !0\n});\nclass $33f07bbd4ddcb7b3$export$2047cf34091e94ac {\n constructor(){\n throw new TypeError(\"Illegal constructor\");\n }\n get byobRequest() {\n if (!$33f07bbd4ddcb7b3$var$Te(this)) throw $33f07bbd4ddcb7b3$var$Ke(\"byobRequest\");\n return $33f07bbd4ddcb7b3$var$He(this);\n }\n get desiredSize() {\n if (!$33f07bbd4ddcb7b3$var$Te(this)) throw $33f07bbd4ddcb7b3$var$Ke(\"desiredSize\");\n return $33f07bbd4ddcb7b3$var$Ve(this);\n }\n close() {\n if (!$33f07bbd4ddcb7b3$var$Te(this)) throw $33f07bbd4ddcb7b3$var$Ke(\"close\");\n if (this._closeRequested) throw new TypeError(\"The stream has already been closed; do not close it again!\");\n const e = this._controlledReadableByteStream._state;\n if (\"readable\" !== e) throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);\n $33f07bbd4ddcb7b3$var$Ye(this);\n }\n enqueue(e) {\n if (!$33f07bbd4ddcb7b3$var$Te(this)) throw $33f07bbd4ddcb7b3$var$Ke(\"enqueue\");\n if ($33f07bbd4ddcb7b3$var$$(e, 1, \"enqueue\"), !ArrayBuffer.isView(e)) throw new TypeError(\"chunk must be an array buffer view\");\n if (0 === e.byteLength) throw new TypeError(\"chunk must have non-zero byteLength\");\n if (0 === e.buffer.byteLength) throw new TypeError(\"chunk's buffer must have non-zero byteLength\");\n if (this._closeRequested) throw new TypeError(\"stream is closed or draining\");\n const t = this._controlledReadableByteStream._state;\n if (\"readable\" !== t) throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);\n $33f07bbd4ddcb7b3$var$xe(this, e);\n }\n error(e) {\n if (!$33f07bbd4ddcb7b3$var$Te(this)) throw $33f07bbd4ddcb7b3$var$Ke(\"error\");\n $33f07bbd4ddcb7b3$var$Qe(this, e);\n }\n [$33f07bbd4ddcb7b3$var$T](e) {\n $33f07bbd4ddcb7b3$var$qe(this), $33f07bbd4ddcb7b3$var$we(this);\n const t = this._cancelAlgorithm(e);\n return $33f07bbd4ddcb7b3$var$Me(this), t;\n }\n [$33f07bbd4ddcb7b3$var$C](e) {\n const t = this._controlledReadableByteStream;\n if (this._queueTotalSize > 0) return void $33f07bbd4ddcb7b3$var$Ne(this, e);\n const r = this._autoAllocateChunkSize;\n if (void 0 !== r) {\n let t;\n try {\n t = new ArrayBuffer(r);\n } catch (t) {\n return void e._errorSteps(t);\n }\n const o = {\n buffer: t,\n bufferByteLength: r,\n byteOffset: 0,\n byteLength: r,\n bytesFilled: 0,\n minimumFill: 1,\n elementSize: 1,\n viewConstructor: Uint8Array,\n readerType: \"default\"\n };\n this._pendingPullIntos.push(o);\n }\n $33f07bbd4ddcb7b3$var$V(t, e), $33f07bbd4ddcb7b3$var$Pe(this);\n }\n [$33f07bbd4ddcb7b3$var$P]() {\n if (this._pendingPullIntos.length > 0) {\n const e = this._pendingPullIntos.peek();\n e.readerType = \"none\", this._pendingPullIntos = new $33f07bbd4ddcb7b3$var$v, this._pendingPullIntos.push(e);\n }\n }\n}\nfunction $33f07bbd4ddcb7b3$var$Te(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_controlledReadableByteStream\") && e instanceof $33f07bbd4ddcb7b3$export$2047cf34091e94ac;\n}\nfunction $33f07bbd4ddcb7b3$var$Ce(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_associatedReadableByteStreamController\") && e instanceof $33f07bbd4ddcb7b3$export$fbcf11583158d2c;\n}\nfunction $33f07bbd4ddcb7b3$var$Pe(e) {\n const t = function(e) {\n const t = e._controlledReadableByteStream;\n if (\"readable\" !== t._state) return !1;\n if (e._closeRequested) return !1;\n if (!e._started) return !1;\n if ($33f07bbd4ddcb7b3$var$X(t) && $33f07bbd4ddcb7b3$var$G(t) > 0) return !0;\n if ($33f07bbd4ddcb7b3$var$ot(t) && $33f07bbd4ddcb7b3$var$rt(t) > 0) return !0;\n const r = $33f07bbd4ddcb7b3$var$Ve(e);\n if (r > 0) return !0;\n return !1;\n }(e);\n if (!t) return;\n if (e._pulling) return void (e._pullAgain = !0);\n e._pulling = !0;\n $33f07bbd4ddcb7b3$var$b(e._pullAlgorithm(), ()=>(e._pulling = !1, e._pullAgain && (e._pullAgain = !1, $33f07bbd4ddcb7b3$var$Pe(e)), null), (t)=>($33f07bbd4ddcb7b3$var$Qe(e, t), null));\n}\nfunction $33f07bbd4ddcb7b3$var$qe(e) {\n $33f07bbd4ddcb7b3$var$De(e), e._pendingPullIntos = new $33f07bbd4ddcb7b3$var$v;\n}\nfunction $33f07bbd4ddcb7b3$var$Ee(e, t) {\n let r = !1;\n \"closed\" === e._state && (r = !0);\n const o = $33f07bbd4ddcb7b3$var$We(t);\n \"default\" === t.readerType ? $33f07bbd4ddcb7b3$var$U(e, o, r) : function(e, t, r) {\n const o = e._reader, n = o._readIntoRequests.shift();\n r ? n._closeSteps(t) : n._chunkSteps(t);\n }(e, o, r);\n}\nfunction $33f07bbd4ddcb7b3$var$We(e) {\n const t = e.bytesFilled, r = e.elementSize;\n return new e.viewConstructor(e.buffer, e.byteOffset, t / r);\n}\nfunction $33f07bbd4ddcb7b3$var$Oe(e, t, r, o) {\n e._queue.push({\n buffer: t,\n byteOffset: r,\n byteLength: o\n }), e._queueTotalSize += o;\n}\nfunction $33f07bbd4ddcb7b3$var$Be(e, t, r, o) {\n let n;\n try {\n n = $33f07bbd4ddcb7b3$var$se(t, r, r + o);\n } catch (t) {\n throw $33f07bbd4ddcb7b3$var$Qe(e, t), t;\n }\n $33f07bbd4ddcb7b3$var$Oe(e, n, 0, o);\n}\nfunction $33f07bbd4ddcb7b3$var$ke(e, t) {\n t.bytesFilled > 0 && $33f07bbd4ddcb7b3$var$Be(e, t.buffer, t.byteOffset, t.bytesFilled), $33f07bbd4ddcb7b3$var$$e(e);\n}\nfunction $33f07bbd4ddcb7b3$var$je(e, t) {\n const r = Math.min(e._queueTotalSize, t.byteLength - t.bytesFilled), o = t.bytesFilled + r;\n let n = r, a = !1;\n const i = o - o % t.elementSize;\n i >= t.minimumFill && (n = i - t.bytesFilled, a = !0);\n const l = e._queue;\n for(; n > 0;){\n const r = l.peek(), o = Math.min(n, r.byteLength), a = t.byteOffset + t.bytesFilled;\n $33f07bbd4ddcb7b3$var$ae(t.buffer, a, r.buffer, r.byteOffset, o), r.byteLength === o ? l.shift() : (r.byteOffset += o, r.byteLength -= o), e._queueTotalSize -= o, $33f07bbd4ddcb7b3$var$Ae(e, o, t), n -= o;\n }\n return a;\n}\nfunction $33f07bbd4ddcb7b3$var$Ae(e, t, r) {\n r.bytesFilled += t;\n}\nfunction $33f07bbd4ddcb7b3$var$ze(e) {\n 0 === e._queueTotalSize && e._closeRequested ? ($33f07bbd4ddcb7b3$var$Me(e), $33f07bbd4ddcb7b3$var$Br(e._controlledReadableByteStream)) : $33f07bbd4ddcb7b3$var$Pe(e);\n}\nfunction $33f07bbd4ddcb7b3$var$De(e) {\n null !== e._byobRequest && (e._byobRequest._associatedReadableByteStreamController = void 0, e._byobRequest._view = null, e._byobRequest = null);\n}\nfunction $33f07bbd4ddcb7b3$var$Le(e) {\n for(; e._pendingPullIntos.length > 0;){\n if (0 === e._queueTotalSize) return;\n const t = e._pendingPullIntos.peek();\n $33f07bbd4ddcb7b3$var$je(e, t) && ($33f07bbd4ddcb7b3$var$$e(e), $33f07bbd4ddcb7b3$var$Ee(e._controlledReadableByteStream, t));\n }\n}\nfunction $33f07bbd4ddcb7b3$var$Fe(e, t, r, o) {\n const n = e._controlledReadableByteStream, a = t.constructor, i = function(e) {\n return $33f07bbd4ddcb7b3$var$Re(e) ? 1 : e.BYTES_PER_ELEMENT;\n }(a), { byteOffset: l, byteLength: s } = t, u = r * i;\n let c;\n try {\n c = $33f07bbd4ddcb7b3$var$ie(t.buffer);\n } catch (e) {\n return void o._errorSteps(e);\n }\n const d = {\n buffer: c,\n bufferByteLength: c.byteLength,\n byteOffset: l,\n byteLength: s,\n bytesFilled: 0,\n minimumFill: u,\n elementSize: i,\n viewConstructor: a,\n readerType: \"byob\"\n };\n if (e._pendingPullIntos.length > 0) return e._pendingPullIntos.push(d), void $33f07bbd4ddcb7b3$var$tt(n, o);\n if (\"closed\" !== n._state) {\n if (e._queueTotalSize > 0) {\n if ($33f07bbd4ddcb7b3$var$je(e, d)) {\n const t = $33f07bbd4ddcb7b3$var$We(d);\n return $33f07bbd4ddcb7b3$var$ze(e), void o._chunkSteps(t);\n }\n if (e._closeRequested) {\n const t = new TypeError(\"Insufficient bytes to fill elements in the given buffer\");\n return $33f07bbd4ddcb7b3$var$Qe(e, t), void o._errorSteps(t);\n }\n }\n e._pendingPullIntos.push(d), $33f07bbd4ddcb7b3$var$tt(n, o), $33f07bbd4ddcb7b3$var$Pe(e);\n } else {\n const e = new a(d.buffer, d.byteOffset, 0);\n o._closeSteps(e);\n }\n}\nfunction $33f07bbd4ddcb7b3$var$Ie(e, t) {\n const r = e._pendingPullIntos.peek();\n $33f07bbd4ddcb7b3$var$De(e);\n \"closed\" === e._controlledReadableByteStream._state ? function(e, t) {\n \"none\" === t.readerType && $33f07bbd4ddcb7b3$var$$e(e);\n const r = e._controlledReadableByteStream;\n if ($33f07bbd4ddcb7b3$var$ot(r)) for(; $33f07bbd4ddcb7b3$var$rt(r) > 0;)$33f07bbd4ddcb7b3$var$Ee(r, $33f07bbd4ddcb7b3$var$$e(e));\n }(e, r) : function(e, t, r) {\n if ($33f07bbd4ddcb7b3$var$Ae(0, t, r), \"none\" === r.readerType) return $33f07bbd4ddcb7b3$var$ke(e, r), void $33f07bbd4ddcb7b3$var$Le(e);\n if (r.bytesFilled < r.minimumFill) return;\n $33f07bbd4ddcb7b3$var$$e(e);\n const o = r.bytesFilled % r.elementSize;\n if (o > 0) {\n const t = r.byteOffset + r.bytesFilled;\n $33f07bbd4ddcb7b3$var$Be(e, r.buffer, t - o, o);\n }\n r.bytesFilled -= o, $33f07bbd4ddcb7b3$var$Ee(e._controlledReadableByteStream, r), $33f07bbd4ddcb7b3$var$Le(e);\n }(e, t, r), $33f07bbd4ddcb7b3$var$Pe(e);\n}\nfunction $33f07bbd4ddcb7b3$var$$e(e) {\n return e._pendingPullIntos.shift();\n}\nfunction $33f07bbd4ddcb7b3$var$Me(e) {\n e._pullAlgorithm = void 0, e._cancelAlgorithm = void 0;\n}\nfunction $33f07bbd4ddcb7b3$var$Ye(e) {\n const t = e._controlledReadableByteStream;\n if (!e._closeRequested && \"readable\" === t._state) {\n if (e._queueTotalSize > 0) e._closeRequested = !0;\n else {\n if (e._pendingPullIntos.length > 0) {\n const t = e._pendingPullIntos.peek();\n if (t.bytesFilled % t.elementSize != 0) {\n const t = new TypeError(\"Insufficient bytes to fill elements in the given buffer\");\n throw $33f07bbd4ddcb7b3$var$Qe(e, t), t;\n }\n }\n $33f07bbd4ddcb7b3$var$Me(e), $33f07bbd4ddcb7b3$var$Br(t);\n }\n }\n}\nfunction $33f07bbd4ddcb7b3$var$xe(e, t) {\n const r = e._controlledReadableByteStream;\n if (e._closeRequested || \"readable\" !== r._state) return;\n const { buffer: o, byteOffset: n, byteLength: a } = t;\n if ($33f07bbd4ddcb7b3$var$le(o)) throw new TypeError(\"chunk's buffer is detached and so cannot be enqueued\");\n const i = $33f07bbd4ddcb7b3$var$ie(o);\n if (e._pendingPullIntos.length > 0) {\n const t = e._pendingPullIntos.peek();\n if ($33f07bbd4ddcb7b3$var$le(t.buffer)) throw new TypeError(\"The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk\");\n $33f07bbd4ddcb7b3$var$De(e), t.buffer = $33f07bbd4ddcb7b3$var$ie(t.buffer), \"none\" === t.readerType && $33f07bbd4ddcb7b3$var$ke(e, t);\n }\n if ($33f07bbd4ddcb7b3$var$X(r)) {\n if (function(e) {\n const t = e._controlledReadableByteStream._reader;\n for(; t._readRequests.length > 0;){\n if (0 === e._queueTotalSize) return;\n $33f07bbd4ddcb7b3$var$Ne(e, t._readRequests.shift());\n }\n }(e), 0 === $33f07bbd4ddcb7b3$var$G(r)) $33f07bbd4ddcb7b3$var$Oe(e, i, n, a);\n else {\n e._pendingPullIntos.length > 0 && $33f07bbd4ddcb7b3$var$$e(e);\n $33f07bbd4ddcb7b3$var$U(r, new Uint8Array(i, n, a), !1);\n }\n } else $33f07bbd4ddcb7b3$var$ot(r) ? ($33f07bbd4ddcb7b3$var$Oe(e, i, n, a), $33f07bbd4ddcb7b3$var$Le(e)) : $33f07bbd4ddcb7b3$var$Oe(e, i, n, a);\n $33f07bbd4ddcb7b3$var$Pe(e);\n}\nfunction $33f07bbd4ddcb7b3$var$Qe(e, t) {\n const r = e._controlledReadableByteStream;\n \"readable\" === r._state && ($33f07bbd4ddcb7b3$var$qe(e), $33f07bbd4ddcb7b3$var$we(e), $33f07bbd4ddcb7b3$var$Me(e), $33f07bbd4ddcb7b3$var$kr(r, t));\n}\nfunction $33f07bbd4ddcb7b3$var$Ne(e, t) {\n const r = e._queue.shift();\n e._queueTotalSize -= r.byteLength, $33f07bbd4ddcb7b3$var$ze(e);\n const o = new Uint8Array(r.buffer, r.byteOffset, r.byteLength);\n t._chunkSteps(o);\n}\nfunction $33f07bbd4ddcb7b3$var$He(e) {\n if (null === e._byobRequest && e._pendingPullIntos.length > 0) {\n const t = e._pendingPullIntos.peek(), r = new Uint8Array(t.buffer, t.byteOffset + t.bytesFilled, t.byteLength - t.bytesFilled), o = Object.create($33f07bbd4ddcb7b3$export$fbcf11583158d2c.prototype);\n !function(e, t, r) {\n e._associatedReadableByteStreamController = t, e._view = r;\n }(o, e, r), e._byobRequest = o;\n }\n return e._byobRequest;\n}\nfunction $33f07bbd4ddcb7b3$var$Ve(e) {\n const t = e._controlledReadableByteStream._state;\n return \"errored\" === t ? null : \"closed\" === t ? 0 : e._strategyHWM - e._queueTotalSize;\n}\nfunction $33f07bbd4ddcb7b3$var$Ue(e, t) {\n const r = e._pendingPullIntos.peek();\n if (\"closed\" === e._controlledReadableByteStream._state) {\n if (0 !== t) throw new TypeError(\"bytesWritten must be 0 when calling respond() on a closed stream\");\n } else {\n if (0 === t) throw new TypeError(\"bytesWritten must be greater than 0 when calling respond() on a readable stream\");\n if (r.bytesFilled + t > r.byteLength) throw new RangeError(\"bytesWritten out of range\");\n }\n r.buffer = $33f07bbd4ddcb7b3$var$ie(r.buffer), $33f07bbd4ddcb7b3$var$Ie(e, t);\n}\nfunction $33f07bbd4ddcb7b3$var$Ge(e, t) {\n const r = e._pendingPullIntos.peek();\n if (\"closed\" === e._controlledReadableByteStream._state) {\n if (0 !== t.byteLength) throw new TypeError(\"The view's length must be 0 when calling respondWithNewView() on a closed stream\");\n } else if (0 === t.byteLength) throw new TypeError(\"The view's length must be greater than 0 when calling respondWithNewView() on a readable stream\");\n if (r.byteOffset + r.bytesFilled !== t.byteOffset) throw new RangeError(\"The region specified by view does not match byobRequest\");\n if (r.bufferByteLength !== t.buffer.byteLength) throw new RangeError(\"The buffer of view has different capacity than byobRequest\");\n if (r.bytesFilled + t.byteLength > r.byteLength) throw new RangeError(\"The region specified by view is larger than byobRequest\");\n const o = t.byteLength;\n r.buffer = $33f07bbd4ddcb7b3$var$ie(t.buffer), $33f07bbd4ddcb7b3$var$Ie(e, o);\n}\nfunction $33f07bbd4ddcb7b3$var$Xe(e, t, r, o, n, a, i) {\n t._controlledReadableByteStream = e, t._pullAgain = !1, t._pulling = !1, t._byobRequest = null, t._queue = t._queueTotalSize = void 0, $33f07bbd4ddcb7b3$var$we(t), t._closeRequested = !1, t._started = !1, t._strategyHWM = a, t._pullAlgorithm = o, t._cancelAlgorithm = n, t._autoAllocateChunkSize = i, t._pendingPullIntos = new $33f07bbd4ddcb7b3$var$v, e._readableStreamController = t;\n $33f07bbd4ddcb7b3$var$b($33f07bbd4ddcb7b3$var$c(r()), ()=>(t._started = !0, $33f07bbd4ddcb7b3$var$Pe(t), null), (e)=>($33f07bbd4ddcb7b3$var$Qe(t, e), null));\n}\nfunction $33f07bbd4ddcb7b3$var$Je(e) {\n return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`);\n}\nfunction $33f07bbd4ddcb7b3$var$Ke(e) {\n return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`);\n}\nfunction $33f07bbd4ddcb7b3$var$Ze(e, t) {\n if (\"byob\" !== (e = `${e}`)) throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);\n return e;\n}\nfunction $33f07bbd4ddcb7b3$var$et(e) {\n return new $33f07bbd4ddcb7b3$export$20068a30393fcc28(e);\n}\nfunction $33f07bbd4ddcb7b3$var$tt(e, t) {\n e._reader._readIntoRequests.push(t);\n}\nfunction $33f07bbd4ddcb7b3$var$rt(e) {\n return e._reader._readIntoRequests.length;\n}\nfunction $33f07bbd4ddcb7b3$var$ot(e) {\n const t = e._reader;\n return void 0 !== t && !!$33f07bbd4ddcb7b3$var$nt(t);\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$2047cf34091e94ac.prototype, {\n close: {\n enumerable: !0\n },\n enqueue: {\n enumerable: !0\n },\n error: {\n enumerable: !0\n },\n byobRequest: {\n enumerable: !0\n },\n desiredSize: {\n enumerable: !0\n }\n}), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$2047cf34091e94ac.prototype.close, \"close\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$2047cf34091e94ac.prototype.enqueue, \"enqueue\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$2047cf34091e94ac.prototype.error, \"error\"), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$2047cf34091e94ac.prototype, Symbol.toStringTag, {\n value: \"ReadableByteStreamController\",\n configurable: !0\n});\nclass $33f07bbd4ddcb7b3$export$20068a30393fcc28 {\n constructor(e){\n if ($33f07bbd4ddcb7b3$var$$(e, 1, \"ReadableStreamBYOBReader\"), $33f07bbd4ddcb7b3$var$N(e, \"First parameter\"), $33f07bbd4ddcb7b3$var$Wr(e)) throw new TypeError(\"This stream has already been locked for exclusive reading by another reader\");\n if (!$33f07bbd4ddcb7b3$var$Te(e._readableStreamController)) throw new TypeError(\"Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source\");\n $33f07bbd4ddcb7b3$var$q(this, e), this._readIntoRequests = new $33f07bbd4ddcb7b3$var$v;\n }\n get closed() {\n return $33f07bbd4ddcb7b3$var$nt(this) ? this._closedPromise : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$lt(\"closed\"));\n }\n cancel(e) {\n return $33f07bbd4ddcb7b3$var$nt(this) ? void 0 === this._ownerReadableStream ? $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$O(\"cancel\")) : $33f07bbd4ddcb7b3$var$E(this, e) : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$lt(\"cancel\"));\n }\n read(e, t = {}) {\n if (!$33f07bbd4ddcb7b3$var$nt(this)) return $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$lt(\"read\"));\n if (!ArrayBuffer.isView(e)) return $33f07bbd4ddcb7b3$var$d(new TypeError(\"view must be an array buffer view\"));\n if (0 === e.byteLength) return $33f07bbd4ddcb7b3$var$d(new TypeError(\"view must have non-zero byteLength\"));\n if (0 === e.buffer.byteLength) return $33f07bbd4ddcb7b3$var$d(new TypeError(\"view's buffer must have non-zero byteLength\"));\n if ($33f07bbd4ddcb7b3$var$le(e.buffer)) return $33f07bbd4ddcb7b3$var$d(new TypeError(\"view's buffer has been detached\"));\n let r;\n try {\n r = function(e, t) {\n var r;\n return $33f07bbd4ddcb7b3$var$L(e, t), {\n min: $33f07bbd4ddcb7b3$var$Q(null !== (r = null == e ? void 0 : e.min) && void 0 !== r ? r : 1, `${t} has member 'min' that`)\n };\n }(t, \"options\");\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n const o = r.min;\n if (0 === o) return $33f07bbd4ddcb7b3$var$d(new TypeError(\"options.min must be greater than 0\"));\n if (function(e) {\n return $33f07bbd4ddcb7b3$var$Re(e.constructor);\n }(e)) {\n if (o > e.byteLength) return $33f07bbd4ddcb7b3$var$d(new RangeError(\"options.min must be less than or equal to view's byteLength\"));\n } else if (o > e.length) return $33f07bbd4ddcb7b3$var$d(new RangeError(\"options.min must be less than or equal to view's length\"));\n if (void 0 === this._ownerReadableStream) return $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$O(\"read from\"));\n let n, a;\n const i = $33f07bbd4ddcb7b3$var$u((e, t)=>{\n n = e, a = t;\n });\n return $33f07bbd4ddcb7b3$var$at(this, e, o, {\n _chunkSteps: (e)=>n({\n value: e,\n done: !1\n }),\n _closeSteps: (e)=>n({\n value: e,\n done: !0\n }),\n _errorSteps: (e)=>a(e)\n }), i;\n }\n releaseLock() {\n if (!$33f07bbd4ddcb7b3$var$nt(this)) throw $33f07bbd4ddcb7b3$var$lt(\"releaseLock\");\n void 0 !== this._ownerReadableStream && function(e) {\n $33f07bbd4ddcb7b3$var$W(e);\n const t = new TypeError(\"Reader was released\");\n $33f07bbd4ddcb7b3$var$it(e, t);\n }(this);\n }\n}\nfunction $33f07bbd4ddcb7b3$var$nt(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_readIntoRequests\") && e instanceof $33f07bbd4ddcb7b3$export$20068a30393fcc28;\n}\nfunction $33f07bbd4ddcb7b3$var$at(e, t, r, o) {\n const n = e._ownerReadableStream;\n n._disturbed = !0, \"errored\" === n._state ? o._errorSteps(n._storedError) : $33f07bbd4ddcb7b3$var$Fe(n._readableStreamController, t, r, o);\n}\nfunction $33f07bbd4ddcb7b3$var$it(e, t) {\n const r = e._readIntoRequests;\n e._readIntoRequests = new $33f07bbd4ddcb7b3$var$v, r.forEach((e)=>{\n e._errorSteps(t);\n });\n}\nfunction $33f07bbd4ddcb7b3$var$lt(e) {\n return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`);\n}\nfunction $33f07bbd4ddcb7b3$var$st(e, t) {\n const { highWaterMark: r } = e;\n if (void 0 === r) return t;\n if ($33f07bbd4ddcb7b3$var$ye(r) || r < 0) throw new RangeError(\"Invalid highWaterMark\");\n return r;\n}\nfunction $33f07bbd4ddcb7b3$var$ut(e) {\n const { size: t } = e;\n return t || (()=>1);\n}\nfunction $33f07bbd4ddcb7b3$var$ct(e, t) {\n $33f07bbd4ddcb7b3$var$L(e, t);\n const r = null == e ? void 0 : e.highWaterMark, o = null == e ? void 0 : e.size;\n return {\n highWaterMark: void 0 === r ? void 0 : $33f07bbd4ddcb7b3$var$Y(r),\n size: void 0 === o ? void 0 : $33f07bbd4ddcb7b3$var$dt(o, `${t} has member 'size' that`)\n };\n}\nfunction $33f07bbd4ddcb7b3$var$dt(e, t) {\n return $33f07bbd4ddcb7b3$var$F(e, t), (t)=>$33f07bbd4ddcb7b3$var$Y(e(t));\n}\nfunction $33f07bbd4ddcb7b3$var$ft(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), (r)=>$33f07bbd4ddcb7b3$var$g(e, t, [\n r\n ]);\n}\nfunction $33f07bbd4ddcb7b3$var$bt(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), ()=>$33f07bbd4ddcb7b3$var$g(e, t, []);\n}\nfunction $33f07bbd4ddcb7b3$var$ht(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), (r)=>$33f07bbd4ddcb7b3$var$S(e, t, [\n r\n ]);\n}\nfunction $33f07bbd4ddcb7b3$var$mt(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), (r, o)=>$33f07bbd4ddcb7b3$var$g(e, t, [\n r,\n o\n ]);\n}\nfunction $33f07bbd4ddcb7b3$var$_t(e, t) {\n if (!$33f07bbd4ddcb7b3$var$gt(e)) throw new TypeError(`${t} is not a WritableStream.`);\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$20068a30393fcc28.prototype, {\n cancel: {\n enumerable: !0\n },\n read: {\n enumerable: !0\n },\n releaseLock: {\n enumerable: !0\n },\n closed: {\n enumerable: !0\n }\n}), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$20068a30393fcc28.prototype.cancel, \"cancel\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$20068a30393fcc28.prototype.read, \"read\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$20068a30393fcc28.prototype.releaseLock, \"releaseLock\"), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$20068a30393fcc28.prototype, Symbol.toStringTag, {\n value: \"ReadableStreamBYOBReader\",\n configurable: !0\n});\nconst $33f07bbd4ddcb7b3$var$pt = \"function\" == typeof AbortController;\nclass $33f07bbd4ddcb7b3$export$826849241f7970f8 {\n constructor(e = {}, t = {}){\n void 0 === e ? e = null : $33f07bbd4ddcb7b3$var$I(e, \"First parameter\");\n const r = $33f07bbd4ddcb7b3$var$ct(t, \"Second parameter\"), o = function(e, t) {\n $33f07bbd4ddcb7b3$var$L(e, t);\n const r = null == e ? void 0 : e.abort, o = null == e ? void 0 : e.close, n = null == e ? void 0 : e.start, a = null == e ? void 0 : e.type, i = null == e ? void 0 : e.write;\n return {\n abort: void 0 === r ? void 0 : $33f07bbd4ddcb7b3$var$ft(r, e, `${t} has member 'abort' that`),\n close: void 0 === o ? void 0 : $33f07bbd4ddcb7b3$var$bt(o, e, `${t} has member 'close' that`),\n start: void 0 === n ? void 0 : $33f07bbd4ddcb7b3$var$ht(n, e, `${t} has member 'start' that`),\n write: void 0 === i ? void 0 : $33f07bbd4ddcb7b3$var$mt(i, e, `${t} has member 'write' that`),\n type: a\n };\n }(e, \"First parameter\");\n $33f07bbd4ddcb7b3$var$St(this);\n if (void 0 !== o.type) throw new RangeError(\"Invalid type is specified\");\n const n = $33f07bbd4ddcb7b3$var$ut(r);\n !function(e, t, r, o) {\n const n = Object.create($33f07bbd4ddcb7b3$export$9e6890cb9a51c7c2.prototype);\n let a, i, l, s;\n a = void 0 !== t.start ? ()=>t.start(n) : ()=>{};\n i = void 0 !== t.write ? (e)=>t.write(e, n) : ()=>$33f07bbd4ddcb7b3$var$c(void 0);\n l = void 0 !== t.close ? ()=>t.close() : ()=>$33f07bbd4ddcb7b3$var$c(void 0);\n s = void 0 !== t.abort ? (e)=>t.abort(e) : ()=>$33f07bbd4ddcb7b3$var$c(void 0);\n $33f07bbd4ddcb7b3$var$Ft(e, n, a, i, l, s, r, o);\n }(this, o, $33f07bbd4ddcb7b3$var$st(r, 1), n);\n }\n get locked() {\n if (!$33f07bbd4ddcb7b3$var$gt(this)) throw $33f07bbd4ddcb7b3$var$Nt(\"locked\");\n return $33f07bbd4ddcb7b3$var$vt(this);\n }\n abort(e) {\n return $33f07bbd4ddcb7b3$var$gt(this) ? $33f07bbd4ddcb7b3$var$vt(this) ? $33f07bbd4ddcb7b3$var$d(new TypeError(\"Cannot abort a stream that already has a writer\")) : $33f07bbd4ddcb7b3$var$wt(this, e) : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Nt(\"abort\"));\n }\n close() {\n return $33f07bbd4ddcb7b3$var$gt(this) ? $33f07bbd4ddcb7b3$var$vt(this) ? $33f07bbd4ddcb7b3$var$d(new TypeError(\"Cannot close a stream that already has a writer\")) : $33f07bbd4ddcb7b3$var$qt(this) ? $33f07bbd4ddcb7b3$var$d(new TypeError(\"Cannot close an already-closing stream\")) : $33f07bbd4ddcb7b3$var$Rt(this) : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Nt(\"close\"));\n }\n getWriter() {\n if (!$33f07bbd4ddcb7b3$var$gt(this)) throw $33f07bbd4ddcb7b3$var$Nt(\"getWriter\");\n return $33f07bbd4ddcb7b3$var$yt(this);\n }\n}\nfunction $33f07bbd4ddcb7b3$var$yt(e) {\n return new $33f07bbd4ddcb7b3$export$9295348f005d6054(e);\n}\nfunction $33f07bbd4ddcb7b3$var$St(e) {\n e._state = \"writable\", e._storedError = void 0, e._writer = void 0, e._writableStreamController = void 0, e._writeRequests = new $33f07bbd4ddcb7b3$var$v, e._inFlightWriteRequest = void 0, e._closeRequest = void 0, e._inFlightCloseRequest = void 0, e._pendingAbortRequest = void 0, e._backpressure = !1;\n}\nfunction $33f07bbd4ddcb7b3$var$gt(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_writableStreamController\") && e instanceof $33f07bbd4ddcb7b3$export$826849241f7970f8;\n}\nfunction $33f07bbd4ddcb7b3$var$vt(e) {\n return void 0 !== e._writer;\n}\nfunction $33f07bbd4ddcb7b3$var$wt(e, t) {\n var r;\n if (\"closed\" === e._state || \"errored\" === e._state) return $33f07bbd4ddcb7b3$var$c(void 0);\n e._writableStreamController._abortReason = t, null === (r = e._writableStreamController._abortController) || void 0 === r || r.abort(t);\n const o = e._state;\n if (\"closed\" === o || \"errored\" === o) return $33f07bbd4ddcb7b3$var$c(void 0);\n if (void 0 !== e._pendingAbortRequest) return e._pendingAbortRequest._promise;\n let n = !1;\n \"erroring\" === o && (n = !0, t = void 0);\n const a = $33f07bbd4ddcb7b3$var$u((r, o)=>{\n e._pendingAbortRequest = {\n _promise: void 0,\n _resolve: r,\n _reject: o,\n _reason: t,\n _wasAlreadyErroring: n\n };\n });\n return e._pendingAbortRequest._promise = a, n || $33f07bbd4ddcb7b3$var$Ct(e, t), a;\n}\nfunction $33f07bbd4ddcb7b3$var$Rt(e) {\n const t = e._state;\n if (\"closed\" === t || \"errored\" === t) return $33f07bbd4ddcb7b3$var$d(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));\n const r = $33f07bbd4ddcb7b3$var$u((t, r)=>{\n const o = {\n _resolve: t,\n _reject: r\n };\n e._closeRequest = o;\n }), o = e._writer;\n var n;\n return void 0 !== o && e._backpressure && \"writable\" === t && $33f07bbd4ddcb7b3$var$or(o), $33f07bbd4ddcb7b3$var$ve(n = e._writableStreamController, $33f07bbd4ddcb7b3$var$Dt, 0), $33f07bbd4ddcb7b3$var$Mt(n), r;\n}\nfunction $33f07bbd4ddcb7b3$var$Tt(e, t) {\n \"writable\" !== e._state ? $33f07bbd4ddcb7b3$var$Pt(e) : $33f07bbd4ddcb7b3$var$Ct(e, t);\n}\nfunction $33f07bbd4ddcb7b3$var$Ct(e, t) {\n const r = e._writableStreamController;\n e._state = \"erroring\", e._storedError = t;\n const o = e._writer;\n void 0 !== o && $33f07bbd4ddcb7b3$var$jt(o, t), !function(e) {\n if (void 0 === e._inFlightWriteRequest && void 0 === e._inFlightCloseRequest) return !1;\n return !0;\n }(e) && r._started && $33f07bbd4ddcb7b3$var$Pt(e);\n}\nfunction $33f07bbd4ddcb7b3$var$Pt(e) {\n e._state = \"errored\", e._writableStreamController[$33f07bbd4ddcb7b3$var$R]();\n const t = e._storedError;\n if (e._writeRequests.forEach((e)=>{\n e._reject(t);\n }), e._writeRequests = new $33f07bbd4ddcb7b3$var$v, void 0 === e._pendingAbortRequest) return void $33f07bbd4ddcb7b3$var$Et(e);\n const r = e._pendingAbortRequest;\n if (e._pendingAbortRequest = void 0, r._wasAlreadyErroring) return r._reject(t), void $33f07bbd4ddcb7b3$var$Et(e);\n $33f07bbd4ddcb7b3$var$b(e._writableStreamController[$33f07bbd4ddcb7b3$var$w](r._reason), ()=>(r._resolve(), $33f07bbd4ddcb7b3$var$Et(e), null), (t)=>(r._reject(t), $33f07bbd4ddcb7b3$var$Et(e), null));\n}\nfunction $33f07bbd4ddcb7b3$var$qt(e) {\n return void 0 !== e._closeRequest || void 0 !== e._inFlightCloseRequest;\n}\nfunction $33f07bbd4ddcb7b3$var$Et(e) {\n void 0 !== e._closeRequest && (e._closeRequest._reject(e._storedError), e._closeRequest = void 0);\n const t = e._writer;\n void 0 !== t && $33f07bbd4ddcb7b3$var$Jt(t, e._storedError);\n}\nfunction $33f07bbd4ddcb7b3$var$Wt(e, t) {\n const r = e._writer;\n void 0 !== r && t !== e._backpressure && (t ? function(e) {\n $33f07bbd4ddcb7b3$var$Zt(e);\n }(r) : $33f07bbd4ddcb7b3$var$or(r)), e._backpressure = t;\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$826849241f7970f8.prototype, {\n abort: {\n enumerable: !0\n },\n close: {\n enumerable: !0\n },\n getWriter: {\n enumerable: !0\n },\n locked: {\n enumerable: !0\n }\n}), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$826849241f7970f8.prototype.abort, \"abort\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$826849241f7970f8.prototype.close, \"close\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$826849241f7970f8.prototype.getWriter, \"getWriter\"), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$826849241f7970f8.prototype, Symbol.toStringTag, {\n value: \"WritableStream\",\n configurable: !0\n});\nclass $33f07bbd4ddcb7b3$export$9295348f005d6054 {\n constructor(e){\n if ($33f07bbd4ddcb7b3$var$$(e, 1, \"WritableStreamDefaultWriter\"), $33f07bbd4ddcb7b3$var$_t(e, \"First parameter\"), $33f07bbd4ddcb7b3$var$vt(e)) throw new TypeError(\"This stream has already been locked for exclusive writing by another writer\");\n this._ownerWritableStream = e, e._writer = this;\n const t = e._state;\n if (\"writable\" === t) !$33f07bbd4ddcb7b3$var$qt(e) && e._backpressure ? $33f07bbd4ddcb7b3$var$Zt(this) : $33f07bbd4ddcb7b3$var$tr(this), $33f07bbd4ddcb7b3$var$Gt(this);\n else if (\"erroring\" === t) $33f07bbd4ddcb7b3$var$er(this, e._storedError), $33f07bbd4ddcb7b3$var$Gt(this);\n else if (\"closed\" === t) $33f07bbd4ddcb7b3$var$tr(this), $33f07bbd4ddcb7b3$var$Gt(r = this), $33f07bbd4ddcb7b3$var$Kt(r);\n else {\n const t = e._storedError;\n $33f07bbd4ddcb7b3$var$er(this, t), $33f07bbd4ddcb7b3$var$Xt(this, t);\n }\n var r;\n }\n get closed() {\n return $33f07bbd4ddcb7b3$var$Ot(this) ? this._closedPromise : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Vt(\"closed\"));\n }\n get desiredSize() {\n if (!$33f07bbd4ddcb7b3$var$Ot(this)) throw $33f07bbd4ddcb7b3$var$Vt(\"desiredSize\");\n if (void 0 === this._ownerWritableStream) throw $33f07bbd4ddcb7b3$var$Ut(\"desiredSize\");\n return function(e) {\n const t = e._ownerWritableStream, r = t._state;\n if (\"errored\" === r || \"erroring\" === r) return null;\n if (\"closed\" === r) return 0;\n return $33f07bbd4ddcb7b3$var$$t(t._writableStreamController);\n }(this);\n }\n get ready() {\n return $33f07bbd4ddcb7b3$var$Ot(this) ? this._readyPromise : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Vt(\"ready\"));\n }\n abort(e) {\n return $33f07bbd4ddcb7b3$var$Ot(this) ? void 0 === this._ownerWritableStream ? $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Ut(\"abort\")) : function(e, t) {\n return $33f07bbd4ddcb7b3$var$wt(e._ownerWritableStream, t);\n }(this, e) : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Vt(\"abort\"));\n }\n close() {\n if (!$33f07bbd4ddcb7b3$var$Ot(this)) return $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Vt(\"close\"));\n const e = this._ownerWritableStream;\n return void 0 === e ? $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Ut(\"close\")) : $33f07bbd4ddcb7b3$var$qt(e) ? $33f07bbd4ddcb7b3$var$d(new TypeError(\"Cannot close an already-closing stream\")) : $33f07bbd4ddcb7b3$var$Bt(this);\n }\n releaseLock() {\n if (!$33f07bbd4ddcb7b3$var$Ot(this)) throw $33f07bbd4ddcb7b3$var$Vt(\"releaseLock\");\n void 0 !== this._ownerWritableStream && $33f07bbd4ddcb7b3$var$At(this);\n }\n write(e) {\n return $33f07bbd4ddcb7b3$var$Ot(this) ? void 0 === this._ownerWritableStream ? $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Ut(\"write to\")) : $33f07bbd4ddcb7b3$var$zt(this, e) : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Vt(\"write\"));\n }\n}\nfunction $33f07bbd4ddcb7b3$var$Ot(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_ownerWritableStream\") && e instanceof $33f07bbd4ddcb7b3$export$9295348f005d6054;\n}\nfunction $33f07bbd4ddcb7b3$var$Bt(e) {\n return $33f07bbd4ddcb7b3$var$Rt(e._ownerWritableStream);\n}\nfunction $33f07bbd4ddcb7b3$var$kt(e, t) {\n \"pending\" === e._closedPromiseState ? $33f07bbd4ddcb7b3$var$Jt(e, t) : function(e, t) {\n $33f07bbd4ddcb7b3$var$Xt(e, t);\n }(e, t);\n}\nfunction $33f07bbd4ddcb7b3$var$jt(e, t) {\n \"pending\" === e._readyPromiseState ? $33f07bbd4ddcb7b3$var$rr(e, t) : function(e, t) {\n $33f07bbd4ddcb7b3$var$er(e, t);\n }(e, t);\n}\nfunction $33f07bbd4ddcb7b3$var$At(e) {\n const t = e._ownerWritableStream, r = new TypeError(\"Writer was released and can no longer be used to monitor the stream's closedness\");\n $33f07bbd4ddcb7b3$var$jt(e, r), $33f07bbd4ddcb7b3$var$kt(e, r), t._writer = void 0, e._ownerWritableStream = void 0;\n}\nfunction $33f07bbd4ddcb7b3$var$zt(e, t) {\n const r = e._ownerWritableStream, o = r._writableStreamController, n = function(e, t) {\n try {\n return e._strategySizeAlgorithm(t);\n } catch (t) {\n return $33f07bbd4ddcb7b3$var$Yt(e, t), 1;\n }\n }(o, t);\n if (r !== e._ownerWritableStream) return $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$Ut(\"write to\"));\n const a = r._state;\n if (\"errored\" === a) return $33f07bbd4ddcb7b3$var$d(r._storedError);\n if ($33f07bbd4ddcb7b3$var$qt(r) || \"closed\" === a) return $33f07bbd4ddcb7b3$var$d(new TypeError(\"The stream is closing or closed and cannot be written to\"));\n if (\"erroring\" === a) return $33f07bbd4ddcb7b3$var$d(r._storedError);\n const i = function(e) {\n return $33f07bbd4ddcb7b3$var$u((t, r)=>{\n const o = {\n _resolve: t,\n _reject: r\n };\n e._writeRequests.push(o);\n });\n }(r);\n return function(e, t, r) {\n try {\n $33f07bbd4ddcb7b3$var$ve(e, t, r);\n } catch (t) {\n return void $33f07bbd4ddcb7b3$var$Yt(e, t);\n }\n const o = e._controlledWritableStream;\n if (!$33f07bbd4ddcb7b3$var$qt(o) && \"writable\" === o._state) $33f07bbd4ddcb7b3$var$Wt(o, $33f07bbd4ddcb7b3$var$xt(e));\n $33f07bbd4ddcb7b3$var$Mt(e);\n }(o, t, n), i;\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$9295348f005d6054.prototype, {\n abort: {\n enumerable: !0\n },\n close: {\n enumerable: !0\n },\n releaseLock: {\n enumerable: !0\n },\n write: {\n enumerable: !0\n },\n closed: {\n enumerable: !0\n },\n desiredSize: {\n enumerable: !0\n },\n ready: {\n enumerable: !0\n }\n}), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$9295348f005d6054.prototype.abort, \"abort\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$9295348f005d6054.prototype.close, \"close\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$9295348f005d6054.prototype.releaseLock, \"releaseLock\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$9295348f005d6054.prototype.write, \"write\"), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$9295348f005d6054.prototype, Symbol.toStringTag, {\n value: \"WritableStreamDefaultWriter\",\n configurable: !0\n});\nconst $33f07bbd4ddcb7b3$var$Dt = {};\nclass $33f07bbd4ddcb7b3$export$9e6890cb9a51c7c2 {\n constructor(){\n throw new TypeError(\"Illegal constructor\");\n }\n get abortReason() {\n if (!$33f07bbd4ddcb7b3$var$Lt(this)) throw $33f07bbd4ddcb7b3$var$Ht(\"abortReason\");\n return this._abortReason;\n }\n get signal() {\n if (!$33f07bbd4ddcb7b3$var$Lt(this)) throw $33f07bbd4ddcb7b3$var$Ht(\"signal\");\n if (void 0 === this._abortController) throw new TypeError(\"WritableStreamDefaultController.prototype.signal is not supported\");\n return this._abortController.signal;\n }\n error(e) {\n if (!$33f07bbd4ddcb7b3$var$Lt(this)) throw $33f07bbd4ddcb7b3$var$Ht(\"error\");\n \"writable\" === this._controlledWritableStream._state && $33f07bbd4ddcb7b3$var$Qt(this, e);\n }\n [$33f07bbd4ddcb7b3$var$w](e) {\n const t = this._abortAlgorithm(e);\n return $33f07bbd4ddcb7b3$var$It(this), t;\n }\n [$33f07bbd4ddcb7b3$var$R]() {\n $33f07bbd4ddcb7b3$var$we(this);\n }\n}\nfunction $33f07bbd4ddcb7b3$var$Lt(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_controlledWritableStream\") && e instanceof $33f07bbd4ddcb7b3$export$9e6890cb9a51c7c2;\n}\nfunction $33f07bbd4ddcb7b3$var$Ft(e, t, r, o, n, a, i, l) {\n t._controlledWritableStream = e, e._writableStreamController = t, t._queue = void 0, t._queueTotalSize = void 0, $33f07bbd4ddcb7b3$var$we(t), t._abortReason = void 0, t._abortController = function() {\n if ($33f07bbd4ddcb7b3$var$pt) return new AbortController;\n }(), t._started = !1, t._strategySizeAlgorithm = l, t._strategyHWM = i, t._writeAlgorithm = o, t._closeAlgorithm = n, t._abortAlgorithm = a;\n const s = $33f07bbd4ddcb7b3$var$xt(t);\n $33f07bbd4ddcb7b3$var$Wt(e, s);\n $33f07bbd4ddcb7b3$var$b($33f07bbd4ddcb7b3$var$c(r()), ()=>(t._started = !0, $33f07bbd4ddcb7b3$var$Mt(t), null), (r)=>(t._started = !0, $33f07bbd4ddcb7b3$var$Tt(e, r), null));\n}\nfunction $33f07bbd4ddcb7b3$var$It(e) {\n e._writeAlgorithm = void 0, e._closeAlgorithm = void 0, e._abortAlgorithm = void 0, e._strategySizeAlgorithm = void 0;\n}\nfunction $33f07bbd4ddcb7b3$var$$t(e) {\n return e._strategyHWM - e._queueTotalSize;\n}\nfunction $33f07bbd4ddcb7b3$var$Mt(e) {\n const t = e._controlledWritableStream;\n if (!e._started) return;\n if (void 0 !== t._inFlightWriteRequest) return;\n if (\"erroring\" === t._state) return void $33f07bbd4ddcb7b3$var$Pt(t);\n if (0 === e._queue.length) return;\n const r = e._queue.peek().value;\n r === $33f07bbd4ddcb7b3$var$Dt ? function(e) {\n const t = e._controlledWritableStream;\n (function(e) {\n e._inFlightCloseRequest = e._closeRequest, e._closeRequest = void 0;\n })(t), $33f07bbd4ddcb7b3$var$ge(e);\n const r = e._closeAlgorithm();\n $33f07bbd4ddcb7b3$var$It(e), $33f07bbd4ddcb7b3$var$b(r, ()=>((function(e) {\n e._inFlightCloseRequest._resolve(void 0), e._inFlightCloseRequest = void 0, \"erroring\" === e._state && (e._storedError = void 0, void 0 !== e._pendingAbortRequest && (e._pendingAbortRequest._resolve(), e._pendingAbortRequest = void 0)), e._state = \"closed\";\n const t = e._writer;\n void 0 !== t && $33f07bbd4ddcb7b3$var$Kt(t);\n })(t), null), (e)=>((function(e, t) {\n e._inFlightCloseRequest._reject(t), e._inFlightCloseRequest = void 0, void 0 !== e._pendingAbortRequest && (e._pendingAbortRequest._reject(t), e._pendingAbortRequest = void 0), $33f07bbd4ddcb7b3$var$Tt(e, t);\n })(t, e), null));\n }(e) : function(e, t) {\n const r = e._controlledWritableStream;\n !function(e) {\n e._inFlightWriteRequest = e._writeRequests.shift();\n }(r);\n const o = e._writeAlgorithm(t);\n $33f07bbd4ddcb7b3$var$b(o, ()=>{\n !function(e) {\n e._inFlightWriteRequest._resolve(void 0), e._inFlightWriteRequest = void 0;\n }(r);\n const t = r._state;\n if ($33f07bbd4ddcb7b3$var$ge(e), !$33f07bbd4ddcb7b3$var$qt(r) && \"writable\" === t) {\n const t = $33f07bbd4ddcb7b3$var$xt(e);\n $33f07bbd4ddcb7b3$var$Wt(r, t);\n }\n return $33f07bbd4ddcb7b3$var$Mt(e), null;\n }, (t)=>(\"writable\" === r._state && $33f07bbd4ddcb7b3$var$It(e), function(e, t) {\n e._inFlightWriteRequest._reject(t), e._inFlightWriteRequest = void 0, $33f07bbd4ddcb7b3$var$Tt(e, t);\n }(r, t), null));\n }(e, r);\n}\nfunction $33f07bbd4ddcb7b3$var$Yt(e, t) {\n \"writable\" === e._controlledWritableStream._state && $33f07bbd4ddcb7b3$var$Qt(e, t);\n}\nfunction $33f07bbd4ddcb7b3$var$xt(e) {\n return $33f07bbd4ddcb7b3$var$$t(e) <= 0;\n}\nfunction $33f07bbd4ddcb7b3$var$Qt(e, t) {\n const r = e._controlledWritableStream;\n $33f07bbd4ddcb7b3$var$It(e), $33f07bbd4ddcb7b3$var$Ct(r, t);\n}\nfunction $33f07bbd4ddcb7b3$var$Nt(e) {\n return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`);\n}\nfunction $33f07bbd4ddcb7b3$var$Ht(e) {\n return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`);\n}\nfunction $33f07bbd4ddcb7b3$var$Vt(e) {\n return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`);\n}\nfunction $33f07bbd4ddcb7b3$var$Ut(e) {\n return new TypeError(\"Cannot \" + e + \" a stream using a released writer\");\n}\nfunction $33f07bbd4ddcb7b3$var$Gt(e) {\n e._closedPromise = $33f07bbd4ddcb7b3$var$u((t, r)=>{\n e._closedPromise_resolve = t, e._closedPromise_reject = r, e._closedPromiseState = \"pending\";\n });\n}\nfunction $33f07bbd4ddcb7b3$var$Xt(e, t) {\n $33f07bbd4ddcb7b3$var$Gt(e), $33f07bbd4ddcb7b3$var$Jt(e, t);\n}\nfunction $33f07bbd4ddcb7b3$var$Jt(e, t) {\n void 0 !== e._closedPromise_reject && ($33f07bbd4ddcb7b3$var$p(e._closedPromise), e._closedPromise_reject(t), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = \"rejected\");\n}\nfunction $33f07bbd4ddcb7b3$var$Kt(e) {\n void 0 !== e._closedPromise_resolve && (e._closedPromise_resolve(void 0), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = \"resolved\");\n}\nfunction $33f07bbd4ddcb7b3$var$Zt(e) {\n e._readyPromise = $33f07bbd4ddcb7b3$var$u((t, r)=>{\n e._readyPromise_resolve = t, e._readyPromise_reject = r;\n }), e._readyPromiseState = \"pending\";\n}\nfunction $33f07bbd4ddcb7b3$var$er(e, t) {\n $33f07bbd4ddcb7b3$var$Zt(e), $33f07bbd4ddcb7b3$var$rr(e, t);\n}\nfunction $33f07bbd4ddcb7b3$var$tr(e) {\n $33f07bbd4ddcb7b3$var$Zt(e), $33f07bbd4ddcb7b3$var$or(e);\n}\nfunction $33f07bbd4ddcb7b3$var$rr(e, t) {\n void 0 !== e._readyPromise_reject && ($33f07bbd4ddcb7b3$var$p(e._readyPromise), e._readyPromise_reject(t), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = \"rejected\");\n}\nfunction $33f07bbd4ddcb7b3$var$or(e) {\n void 0 !== e._readyPromise_resolve && (e._readyPromise_resolve(void 0), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = \"fulfilled\");\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$9e6890cb9a51c7c2.prototype, {\n abortReason: {\n enumerable: !0\n },\n signal: {\n enumerable: !0\n },\n error: {\n enumerable: !0\n }\n}), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$9e6890cb9a51c7c2.prototype, Symbol.toStringTag, {\n value: \"WritableStreamDefaultController\",\n configurable: !0\n});\nconst $33f07bbd4ddcb7b3$var$nr = \"undefined\" != typeof globalThis ? globalThis : \"undefined\" != typeof self ? self : \"undefined\" != typeof $parcel$global ? $parcel$global : void 0;\nconst $33f07bbd4ddcb7b3$var$ar = function() {\n const e = null == $33f07bbd4ddcb7b3$var$nr ? void 0 : $33f07bbd4ddcb7b3$var$nr.DOMException;\n return function(e) {\n if (\"function\" != typeof e && \"object\" != typeof e) return !1;\n if (\"DOMException\" !== e.name) return !1;\n try {\n return new e, !0;\n } catch (e) {\n return !1;\n }\n }(e) ? e : void 0;\n}() || function() {\n const e = function(e, t) {\n this.message = e || \"\", this.name = t || \"Error\", Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);\n };\n return $33f07bbd4ddcb7b3$var$o(e, \"DOMException\"), e.prototype = Object.create(Error.prototype), Object.defineProperty(e.prototype, \"constructor\", {\n value: e,\n writable: !0,\n configurable: !0\n }), e;\n}();\nfunction $33f07bbd4ddcb7b3$var$ir(t, r, o, n, a, i) {\n const l = $33f07bbd4ddcb7b3$var$H(t), s = $33f07bbd4ddcb7b3$var$yt(r);\n t._disturbed = !0;\n let _ = !1, y = $33f07bbd4ddcb7b3$var$c(void 0);\n return $33f07bbd4ddcb7b3$var$u((S, g)=>{\n let v;\n if (void 0 !== i) {\n if (v = ()=>{\n const e = void 0 !== i.reason ? i.reason : new $33f07bbd4ddcb7b3$var$ar(\"Aborted\", \"AbortError\"), o = [];\n n || o.push(()=>\"writable\" === r._state ? $33f07bbd4ddcb7b3$var$wt(r, e) : $33f07bbd4ddcb7b3$var$c(void 0)), a || o.push(()=>\"readable\" === t._state ? $33f07bbd4ddcb7b3$var$Or(t, e) : $33f07bbd4ddcb7b3$var$c(void 0)), q(()=>Promise.all(o.map((e)=>e())), !0, e);\n }, i.aborted) return void v();\n i.addEventListener(\"abort\", v);\n }\n var w, R, T;\n if (P(t, l._closedPromise, (e)=>(n ? E(!0, e) : q(()=>$33f07bbd4ddcb7b3$var$wt(r, e), !0, e), null)), P(r, s._closedPromise, (e)=>(a ? E(!0, e) : q(()=>$33f07bbd4ddcb7b3$var$Or(t, e), !0, e), null)), w = t, R = l._closedPromise, T = ()=>(o ? E() : q(()=>(function(e) {\n const t = e._ownerWritableStream, r = t._state;\n return $33f07bbd4ddcb7b3$var$qt(t) || \"closed\" === r ? $33f07bbd4ddcb7b3$var$c(void 0) : \"errored\" === r ? $33f07bbd4ddcb7b3$var$d(t._storedError) : $33f07bbd4ddcb7b3$var$Bt(e);\n })(s)), null), \"closed\" === w._state ? T() : $33f07bbd4ddcb7b3$var$h(R, T), $33f07bbd4ddcb7b3$var$qt(r) || \"closed\" === r._state) {\n const e = new TypeError(\"the destination writable stream closed before all data could be piped to it\");\n a ? E(!0, e) : q(()=>$33f07bbd4ddcb7b3$var$Or(t, e), !0, e);\n }\n function C() {\n const e = y;\n return $33f07bbd4ddcb7b3$var$f(y, ()=>e !== y ? C() : void 0);\n }\n function P(e, t, r) {\n \"errored\" === e._state ? r(e._storedError) : $33f07bbd4ddcb7b3$var$m(t, r);\n }\n function q(e, t, o) {\n function n() {\n return $33f07bbd4ddcb7b3$var$b(e(), ()=>O(t, o), (e)=>O(!0, e)), null;\n }\n _ || (_ = !0, \"writable\" !== r._state || $33f07bbd4ddcb7b3$var$qt(r) ? n() : $33f07bbd4ddcb7b3$var$h(C(), n));\n }\n function E(e, t) {\n _ || (_ = !0, \"writable\" !== r._state || $33f07bbd4ddcb7b3$var$qt(r) ? O(e, t) : $33f07bbd4ddcb7b3$var$h(C(), ()=>O(e, t)));\n }\n function O(e, t) {\n return $33f07bbd4ddcb7b3$var$At(s), $33f07bbd4ddcb7b3$var$W(l), void 0 !== i && i.removeEventListener(\"abort\", v), e ? g(t) : S(void 0), null;\n }\n $33f07bbd4ddcb7b3$var$p($33f07bbd4ddcb7b3$var$u((t, r)=>{\n !function o(n) {\n n ? t() : $33f07bbd4ddcb7b3$var$f(_ ? $33f07bbd4ddcb7b3$var$c(!0) : $33f07bbd4ddcb7b3$var$f(s._readyPromise, ()=>$33f07bbd4ddcb7b3$var$u((t, r)=>{\n $33f07bbd4ddcb7b3$var$K(l, {\n _chunkSteps: (r)=>{\n y = $33f07bbd4ddcb7b3$var$f($33f07bbd4ddcb7b3$var$zt(s, r), void 0, $33f07bbd4ddcb7b3$var$e), t(!1);\n },\n _closeSteps: ()=>t(!0),\n _errorSteps: r\n });\n })), o, r);\n }(!1);\n }));\n });\n}\nclass $33f07bbd4ddcb7b3$export$b0bb6d0989d67700 {\n constructor(){\n throw new TypeError(\"Illegal constructor\");\n }\n get desiredSize() {\n if (!$33f07bbd4ddcb7b3$var$lr(this)) throw $33f07bbd4ddcb7b3$var$pr(\"desiredSize\");\n return $33f07bbd4ddcb7b3$var$hr(this);\n }\n close() {\n if (!$33f07bbd4ddcb7b3$var$lr(this)) throw $33f07bbd4ddcb7b3$var$pr(\"close\");\n if (!$33f07bbd4ddcb7b3$var$mr(this)) throw new TypeError(\"The stream is not in a state that permits close\");\n $33f07bbd4ddcb7b3$var$dr(this);\n }\n enqueue(e) {\n if (!$33f07bbd4ddcb7b3$var$lr(this)) throw $33f07bbd4ddcb7b3$var$pr(\"enqueue\");\n if (!$33f07bbd4ddcb7b3$var$mr(this)) throw new TypeError(\"The stream is not in a state that permits enqueue\");\n return $33f07bbd4ddcb7b3$var$fr(this, e);\n }\n error(e) {\n if (!$33f07bbd4ddcb7b3$var$lr(this)) throw $33f07bbd4ddcb7b3$var$pr(\"error\");\n $33f07bbd4ddcb7b3$var$br(this, e);\n }\n [$33f07bbd4ddcb7b3$var$T](e) {\n $33f07bbd4ddcb7b3$var$we(this);\n const t = this._cancelAlgorithm(e);\n return $33f07bbd4ddcb7b3$var$cr(this), t;\n }\n [$33f07bbd4ddcb7b3$var$C](e) {\n const t = this._controlledReadableStream;\n if (this._queue.length > 0) {\n const r = $33f07bbd4ddcb7b3$var$ge(this);\n this._closeRequested && 0 === this._queue.length ? ($33f07bbd4ddcb7b3$var$cr(this), $33f07bbd4ddcb7b3$var$Br(t)) : $33f07bbd4ddcb7b3$var$sr(this), e._chunkSteps(r);\n } else $33f07bbd4ddcb7b3$var$V(t, e), $33f07bbd4ddcb7b3$var$sr(this);\n }\n [$33f07bbd4ddcb7b3$var$P]() {}\n}\nfunction $33f07bbd4ddcb7b3$var$lr(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_controlledReadableStream\") && e instanceof $33f07bbd4ddcb7b3$export$b0bb6d0989d67700;\n}\nfunction $33f07bbd4ddcb7b3$var$sr(e) {\n if (!$33f07bbd4ddcb7b3$var$ur(e)) return;\n if (e._pulling) return void (e._pullAgain = !0);\n e._pulling = !0;\n $33f07bbd4ddcb7b3$var$b(e._pullAlgorithm(), ()=>(e._pulling = !1, e._pullAgain && (e._pullAgain = !1, $33f07bbd4ddcb7b3$var$sr(e)), null), (t)=>($33f07bbd4ddcb7b3$var$br(e, t), null));\n}\nfunction $33f07bbd4ddcb7b3$var$ur(e) {\n const t = e._controlledReadableStream;\n if (!$33f07bbd4ddcb7b3$var$mr(e)) return !1;\n if (!e._started) return !1;\n if ($33f07bbd4ddcb7b3$var$Wr(t) && $33f07bbd4ddcb7b3$var$G(t) > 0) return !0;\n return $33f07bbd4ddcb7b3$var$hr(e) > 0;\n}\nfunction $33f07bbd4ddcb7b3$var$cr(e) {\n e._pullAlgorithm = void 0, e._cancelAlgorithm = void 0, e._strategySizeAlgorithm = void 0;\n}\nfunction $33f07bbd4ddcb7b3$var$dr(e) {\n if (!$33f07bbd4ddcb7b3$var$mr(e)) return;\n const t = e._controlledReadableStream;\n e._closeRequested = !0, 0 === e._queue.length && ($33f07bbd4ddcb7b3$var$cr(e), $33f07bbd4ddcb7b3$var$Br(t));\n}\nfunction $33f07bbd4ddcb7b3$var$fr(e, t) {\n if (!$33f07bbd4ddcb7b3$var$mr(e)) return;\n const r = e._controlledReadableStream;\n if ($33f07bbd4ddcb7b3$var$Wr(r) && $33f07bbd4ddcb7b3$var$G(r) > 0) $33f07bbd4ddcb7b3$var$U(r, t, !1);\n else {\n let r;\n try {\n r = e._strategySizeAlgorithm(t);\n } catch (t) {\n throw $33f07bbd4ddcb7b3$var$br(e, t), t;\n }\n try {\n $33f07bbd4ddcb7b3$var$ve(e, t, r);\n } catch (t) {\n throw $33f07bbd4ddcb7b3$var$br(e, t), t;\n }\n }\n $33f07bbd4ddcb7b3$var$sr(e);\n}\nfunction $33f07bbd4ddcb7b3$var$br(e, t) {\n const r = e._controlledReadableStream;\n \"readable\" === r._state && ($33f07bbd4ddcb7b3$var$we(e), $33f07bbd4ddcb7b3$var$cr(e), $33f07bbd4ddcb7b3$var$kr(r, t));\n}\nfunction $33f07bbd4ddcb7b3$var$hr(e) {\n const t = e._controlledReadableStream._state;\n return \"errored\" === t ? null : \"closed\" === t ? 0 : e._strategyHWM - e._queueTotalSize;\n}\nfunction $33f07bbd4ddcb7b3$var$mr(e) {\n const t = e._controlledReadableStream._state;\n return !e._closeRequested && \"readable\" === t;\n}\nfunction $33f07bbd4ddcb7b3$var$_r(e, t, r, o, n, a, i) {\n t._controlledReadableStream = e, t._queue = void 0, t._queueTotalSize = void 0, $33f07bbd4ddcb7b3$var$we(t), t._started = !1, t._closeRequested = !1, t._pullAgain = !1, t._pulling = !1, t._strategySizeAlgorithm = i, t._strategyHWM = a, t._pullAlgorithm = o, t._cancelAlgorithm = n, e._readableStreamController = t;\n $33f07bbd4ddcb7b3$var$b($33f07bbd4ddcb7b3$var$c(r()), ()=>(t._started = !0, $33f07bbd4ddcb7b3$var$sr(t), null), (e)=>($33f07bbd4ddcb7b3$var$br(t, e), null));\n}\nfunction $33f07bbd4ddcb7b3$var$pr(e) {\n return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`);\n}\nfunction $33f07bbd4ddcb7b3$var$yr(e, t) {\n return $33f07bbd4ddcb7b3$var$Te(e._readableStreamController) ? function(e) {\n let t, r, o, n, a, i = $33f07bbd4ddcb7b3$var$H(e), l = !1, s = !1, d = !1, f = !1, b = !1;\n const h = $33f07bbd4ddcb7b3$var$u((e)=>{\n a = e;\n });\n function _(e) {\n $33f07bbd4ddcb7b3$var$m(e._closedPromise, (t)=>(e !== i || ($33f07bbd4ddcb7b3$var$Qe(o._readableStreamController, t), $33f07bbd4ddcb7b3$var$Qe(n._readableStreamController, t), f && b || a(void 0)), null));\n }\n function p() {\n $33f07bbd4ddcb7b3$var$nt(i) && ($33f07bbd4ddcb7b3$var$W(i), i = $33f07bbd4ddcb7b3$var$H(e), _(i));\n $33f07bbd4ddcb7b3$var$K(i, {\n _chunkSteps: (t)=>{\n $33f07bbd4ddcb7b3$var$y(()=>{\n s = !1, d = !1;\n const r = t;\n let i = t;\n if (!f && !b) try {\n i = $33f07bbd4ddcb7b3$var$Se(t);\n } catch (t) {\n return $33f07bbd4ddcb7b3$var$Qe(o._readableStreamController, t), $33f07bbd4ddcb7b3$var$Qe(n._readableStreamController, t), void a($33f07bbd4ddcb7b3$var$Or(e, t));\n }\n f || $33f07bbd4ddcb7b3$var$xe(o._readableStreamController, r), b || $33f07bbd4ddcb7b3$var$xe(n._readableStreamController, i), l = !1, s ? g() : d && v();\n });\n },\n _closeSteps: ()=>{\n l = !1, f || $33f07bbd4ddcb7b3$var$Ye(o._readableStreamController), b || $33f07bbd4ddcb7b3$var$Ye(n._readableStreamController), o._readableStreamController._pendingPullIntos.length > 0 && $33f07bbd4ddcb7b3$var$Ue(o._readableStreamController, 0), n._readableStreamController._pendingPullIntos.length > 0 && $33f07bbd4ddcb7b3$var$Ue(n._readableStreamController, 0), f && b || a(void 0);\n },\n _errorSteps: ()=>{\n l = !1;\n }\n });\n }\n function S(t, r) {\n $33f07bbd4ddcb7b3$var$J(i) && ($33f07bbd4ddcb7b3$var$W(i), i = $33f07bbd4ddcb7b3$var$et(e), _(i));\n const u = r ? n : o, c = r ? o : n;\n $33f07bbd4ddcb7b3$var$at(i, t, 1, {\n _chunkSteps: (t)=>{\n $33f07bbd4ddcb7b3$var$y(()=>{\n s = !1, d = !1;\n const o = r ? b : f;\n if (r ? f : b) o || $33f07bbd4ddcb7b3$var$Ge(u._readableStreamController, t);\n else {\n let r;\n try {\n r = $33f07bbd4ddcb7b3$var$Se(t);\n } catch (t) {\n return $33f07bbd4ddcb7b3$var$Qe(u._readableStreamController, t), $33f07bbd4ddcb7b3$var$Qe(c._readableStreamController, t), void a($33f07bbd4ddcb7b3$var$Or(e, t));\n }\n o || $33f07bbd4ddcb7b3$var$Ge(u._readableStreamController, t), $33f07bbd4ddcb7b3$var$xe(c._readableStreamController, r);\n }\n l = !1, s ? g() : d && v();\n });\n },\n _closeSteps: (e)=>{\n l = !1;\n const t = r ? b : f, o = r ? f : b;\n t || $33f07bbd4ddcb7b3$var$Ye(u._readableStreamController), o || $33f07bbd4ddcb7b3$var$Ye(c._readableStreamController), void 0 !== e && (t || $33f07bbd4ddcb7b3$var$Ge(u._readableStreamController, e), !o && c._readableStreamController._pendingPullIntos.length > 0 && $33f07bbd4ddcb7b3$var$Ue(c._readableStreamController, 0)), t && o || a(void 0);\n },\n _errorSteps: ()=>{\n l = !1;\n }\n });\n }\n function g() {\n if (l) return s = !0, $33f07bbd4ddcb7b3$var$c(void 0);\n l = !0;\n const e = $33f07bbd4ddcb7b3$var$He(o._readableStreamController);\n return null === e ? p() : S(e._view, !1), $33f07bbd4ddcb7b3$var$c(void 0);\n }\n function v() {\n if (l) return d = !0, $33f07bbd4ddcb7b3$var$c(void 0);\n l = !0;\n const e = $33f07bbd4ddcb7b3$var$He(n._readableStreamController);\n return null === e ? p() : S(e._view, !0), $33f07bbd4ddcb7b3$var$c(void 0);\n }\n function w(o) {\n if (f = !0, t = o, b) {\n const o = $33f07bbd4ddcb7b3$var$ne([\n t,\n r\n ]), n = $33f07bbd4ddcb7b3$var$Or(e, o);\n a(n);\n }\n return h;\n }\n function R(o) {\n if (b = !0, r = o, f) {\n const o = $33f07bbd4ddcb7b3$var$ne([\n t,\n r\n ]), n = $33f07bbd4ddcb7b3$var$Or(e, o);\n a(n);\n }\n return h;\n }\n function T() {}\n return o = $33f07bbd4ddcb7b3$var$Pr(T, g, w), n = $33f07bbd4ddcb7b3$var$Pr(T, v, R), _(i), [\n o,\n n\n ];\n }(e) : function(e, t) {\n const r = $33f07bbd4ddcb7b3$var$H(e);\n let o, n, a, i, l, s = !1, d = !1, f = !1, b = !1;\n const h = $33f07bbd4ddcb7b3$var$u((e)=>{\n l = e;\n });\n function _() {\n if (s) return d = !0, $33f07bbd4ddcb7b3$var$c(void 0);\n s = !0;\n return $33f07bbd4ddcb7b3$var$K(r, {\n _chunkSteps: (e)=>{\n $33f07bbd4ddcb7b3$var$y(()=>{\n d = !1;\n const t = e, r = e;\n f || $33f07bbd4ddcb7b3$var$fr(a._readableStreamController, t), b || $33f07bbd4ddcb7b3$var$fr(i._readableStreamController, r), s = !1, d && _();\n });\n },\n _closeSteps: ()=>{\n s = !1, f || $33f07bbd4ddcb7b3$var$dr(a._readableStreamController), b || $33f07bbd4ddcb7b3$var$dr(i._readableStreamController), f && b || l(void 0);\n },\n _errorSteps: ()=>{\n s = !1;\n }\n }), $33f07bbd4ddcb7b3$var$c(void 0);\n }\n function p(t) {\n if (f = !0, o = t, b) {\n const t = $33f07bbd4ddcb7b3$var$ne([\n o,\n n\n ]), r = $33f07bbd4ddcb7b3$var$Or(e, t);\n l(r);\n }\n return h;\n }\n function S(t) {\n if (b = !0, n = t, f) {\n const t = $33f07bbd4ddcb7b3$var$ne([\n o,\n n\n ]), r = $33f07bbd4ddcb7b3$var$Or(e, t);\n l(r);\n }\n return h;\n }\n function g() {}\n return a = $33f07bbd4ddcb7b3$var$Cr(g, _, p), i = $33f07bbd4ddcb7b3$var$Cr(g, _, S), $33f07bbd4ddcb7b3$var$m(r._closedPromise, (e)=>($33f07bbd4ddcb7b3$var$br(a._readableStreamController, e), $33f07bbd4ddcb7b3$var$br(i._readableStreamController, e), f && b || l(void 0), null)), [\n a,\n i\n ];\n }(e);\n}\nfunction $33f07bbd4ddcb7b3$var$Sr(r) {\n var o;\n return $33f07bbd4ddcb7b3$var$t(o = r) && void 0 !== o.getReader ? function(r) {\n let o;\n function n() {\n let e;\n try {\n e = r.read();\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n return $33f07bbd4ddcb7b3$var$_(e, (e)=>{\n if (!$33f07bbd4ddcb7b3$var$t(e)) throw new TypeError(\"The promise returned by the reader.read() method must fulfill with an object\");\n if (e.done) $33f07bbd4ddcb7b3$var$dr(o._readableStreamController);\n else {\n const t = e.value;\n $33f07bbd4ddcb7b3$var$fr(o._readableStreamController, t);\n }\n });\n }\n function a(e) {\n try {\n return $33f07bbd4ddcb7b3$var$c(r.cancel(e));\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n }\n return o = $33f07bbd4ddcb7b3$var$Cr($33f07bbd4ddcb7b3$var$e, n, a, 0), o;\n }(r.getReader()) : function(r) {\n let o;\n const n = $33f07bbd4ddcb7b3$var$fe(r, \"async\");\n function a() {\n let e;\n try {\n e = $33f07bbd4ddcb7b3$var$be(n);\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n return $33f07bbd4ddcb7b3$var$_($33f07bbd4ddcb7b3$var$c(e), (e)=>{\n if (!$33f07bbd4ddcb7b3$var$t(e)) throw new TypeError(\"The promise returned by the iterator.next() method must fulfill with an object\");\n if (e.done) $33f07bbd4ddcb7b3$var$dr(o._readableStreamController);\n else {\n const t = e.value;\n $33f07bbd4ddcb7b3$var$fr(o._readableStreamController, t);\n }\n });\n }\n function i(e) {\n const r = n.iterator;\n let o;\n try {\n o = $33f07bbd4ddcb7b3$var$ue(r, \"return\");\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n if (void 0 === o) return $33f07bbd4ddcb7b3$var$c(void 0);\n return $33f07bbd4ddcb7b3$var$_($33f07bbd4ddcb7b3$var$g(o, r, [\n e\n ]), (e)=>{\n if (!$33f07bbd4ddcb7b3$var$t(e)) throw new TypeError(\"The promise returned by the iterator.return() method must fulfill with an object\");\n });\n }\n return o = $33f07bbd4ddcb7b3$var$Cr($33f07bbd4ddcb7b3$var$e, a, i, 0), o;\n }(r);\n}\nfunction $33f07bbd4ddcb7b3$var$gr(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), (r)=>$33f07bbd4ddcb7b3$var$g(e, t, [\n r\n ]);\n}\nfunction $33f07bbd4ddcb7b3$var$vr(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), (r)=>$33f07bbd4ddcb7b3$var$g(e, t, [\n r\n ]);\n}\nfunction $33f07bbd4ddcb7b3$var$wr(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), (r)=>$33f07bbd4ddcb7b3$var$S(e, t, [\n r\n ]);\n}\nfunction $33f07bbd4ddcb7b3$var$Rr(e, t) {\n if (\"bytes\" !== (e = `${e}`)) throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);\n return e;\n}\nfunction $33f07bbd4ddcb7b3$var$Tr(e, t) {\n $33f07bbd4ddcb7b3$var$L(e, t);\n const r = null == e ? void 0 : e.preventAbort, o = null == e ? void 0 : e.preventCancel, n = null == e ? void 0 : e.preventClose, a = null == e ? void 0 : e.signal;\n return void 0 !== a && function(e, t) {\n if (!function(e) {\n if (\"object\" != typeof e || null === e) return !1;\n try {\n return \"boolean\" == typeof e.aborted;\n } catch (e) {\n return !1;\n }\n }(e)) throw new TypeError(`${t} is not an AbortSignal.`);\n }(a, `${t} has member 'signal' that`), {\n preventAbort: Boolean(r),\n preventCancel: Boolean(o),\n preventClose: Boolean(n),\n signal: a\n };\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$b0bb6d0989d67700.prototype, {\n close: {\n enumerable: !0\n },\n enqueue: {\n enumerable: !0\n },\n error: {\n enumerable: !0\n },\n desiredSize: {\n enumerable: !0\n }\n}), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$b0bb6d0989d67700.prototype.close, \"close\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$b0bb6d0989d67700.prototype.enqueue, \"enqueue\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$b0bb6d0989d67700.prototype.error, \"error\"), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$b0bb6d0989d67700.prototype, Symbol.toStringTag, {\n value: \"ReadableStreamDefaultController\",\n configurable: !0\n});\nclass $33f07bbd4ddcb7b3$export$5d3e1e5268af5f76 {\n constructor(e = {}, t = {}){\n void 0 === e ? e = null : $33f07bbd4ddcb7b3$var$I(e, \"First parameter\");\n const r = $33f07bbd4ddcb7b3$var$ct(t, \"Second parameter\"), o = function(e, t) {\n $33f07bbd4ddcb7b3$var$L(e, t);\n const r = e, o = null == r ? void 0 : r.autoAllocateChunkSize, n = null == r ? void 0 : r.cancel, a = null == r ? void 0 : r.pull, i = null == r ? void 0 : r.start, l = null == r ? void 0 : r.type;\n return {\n autoAllocateChunkSize: void 0 === o ? void 0 : $33f07bbd4ddcb7b3$var$Q(o, `${t} has member 'autoAllocateChunkSize' that`),\n cancel: void 0 === n ? void 0 : $33f07bbd4ddcb7b3$var$gr(n, r, `${t} has member 'cancel' that`),\n pull: void 0 === a ? void 0 : $33f07bbd4ddcb7b3$var$vr(a, r, `${t} has member 'pull' that`),\n start: void 0 === i ? void 0 : $33f07bbd4ddcb7b3$var$wr(i, r, `${t} has member 'start' that`),\n type: void 0 === l ? void 0 : $33f07bbd4ddcb7b3$var$Rr(l, `${t} has member 'type' that`)\n };\n }(e, \"First parameter\");\n if ($33f07bbd4ddcb7b3$var$qr(this), \"bytes\" === o.type) {\n if (void 0 !== r.size) throw new RangeError(\"The strategy for a byte stream cannot have a size function\");\n !function(e, t, r) {\n const o = Object.create($33f07bbd4ddcb7b3$export$2047cf34091e94ac.prototype);\n let n, a, i;\n n = void 0 !== t.start ? ()=>t.start(o) : ()=>{}, a = void 0 !== t.pull ? ()=>t.pull(o) : ()=>$33f07bbd4ddcb7b3$var$c(void 0), i = void 0 !== t.cancel ? (e)=>t.cancel(e) : ()=>$33f07bbd4ddcb7b3$var$c(void 0);\n const l = t.autoAllocateChunkSize;\n if (0 === l) throw new TypeError(\"autoAllocateChunkSize must be greater than 0\");\n $33f07bbd4ddcb7b3$var$Xe(e, o, n, a, i, r, l);\n }(this, o, $33f07bbd4ddcb7b3$var$st(r, 0));\n } else {\n const e = $33f07bbd4ddcb7b3$var$ut(r);\n !function(e, t, r, o) {\n const n = Object.create($33f07bbd4ddcb7b3$export$b0bb6d0989d67700.prototype);\n let a, i, l;\n a = void 0 !== t.start ? ()=>t.start(n) : ()=>{}, i = void 0 !== t.pull ? ()=>t.pull(n) : ()=>$33f07bbd4ddcb7b3$var$c(void 0), l = void 0 !== t.cancel ? (e)=>t.cancel(e) : ()=>$33f07bbd4ddcb7b3$var$c(void 0), $33f07bbd4ddcb7b3$var$_r(e, n, a, i, l, r, o);\n }(this, o, $33f07bbd4ddcb7b3$var$st(r, 1), e);\n }\n }\n get locked() {\n if (!$33f07bbd4ddcb7b3$var$Er(this)) throw $33f07bbd4ddcb7b3$var$jr(\"locked\");\n return $33f07bbd4ddcb7b3$var$Wr(this);\n }\n cancel(e) {\n return $33f07bbd4ddcb7b3$var$Er(this) ? $33f07bbd4ddcb7b3$var$Wr(this) ? $33f07bbd4ddcb7b3$var$d(new TypeError(\"Cannot cancel a stream that already has a reader\")) : $33f07bbd4ddcb7b3$var$Or(this, e) : $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$jr(\"cancel\"));\n }\n getReader(e) {\n if (!$33f07bbd4ddcb7b3$var$Er(this)) throw $33f07bbd4ddcb7b3$var$jr(\"getReader\");\n return void 0 === function(e, t) {\n $33f07bbd4ddcb7b3$var$L(e, t);\n const r = null == e ? void 0 : e.mode;\n return {\n mode: void 0 === r ? void 0 : $33f07bbd4ddcb7b3$var$Ze(r, `${t} has member 'mode' that`)\n };\n }(e, \"First parameter\").mode ? $33f07bbd4ddcb7b3$var$H(this) : $33f07bbd4ddcb7b3$var$et(this);\n }\n pipeThrough(e, t = {}) {\n if (!$33f07bbd4ddcb7b3$var$Er(this)) throw $33f07bbd4ddcb7b3$var$jr(\"pipeThrough\");\n $33f07bbd4ddcb7b3$var$$(e, 1, \"pipeThrough\");\n const r = function(e, t) {\n $33f07bbd4ddcb7b3$var$L(e, t);\n const r = null == e ? void 0 : e.readable;\n $33f07bbd4ddcb7b3$var$M(r, \"readable\", \"ReadableWritablePair\"), $33f07bbd4ddcb7b3$var$N(r, `${t} has member 'readable' that`);\n const o = null == e ? void 0 : e.writable;\n return $33f07bbd4ddcb7b3$var$M(o, \"writable\", \"ReadableWritablePair\"), $33f07bbd4ddcb7b3$var$_t(o, `${t} has member 'writable' that`), {\n readable: r,\n writable: o\n };\n }(e, \"First parameter\"), o = $33f07bbd4ddcb7b3$var$Tr(t, \"Second parameter\");\n if ($33f07bbd4ddcb7b3$var$Wr(this)) throw new TypeError(\"ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream\");\n if ($33f07bbd4ddcb7b3$var$vt(r.writable)) throw new TypeError(\"ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream\");\n return $33f07bbd4ddcb7b3$var$p($33f07bbd4ddcb7b3$var$ir(this, r.writable, o.preventClose, o.preventAbort, o.preventCancel, o.signal)), r.readable;\n }\n pipeTo(e, t = {}) {\n if (!$33f07bbd4ddcb7b3$var$Er(this)) return $33f07bbd4ddcb7b3$var$d($33f07bbd4ddcb7b3$var$jr(\"pipeTo\"));\n if (void 0 === e) return $33f07bbd4ddcb7b3$var$d(\"Parameter 1 is required in 'pipeTo'.\");\n if (!$33f07bbd4ddcb7b3$var$gt(e)) return $33f07bbd4ddcb7b3$var$d(new TypeError(\"ReadableStream.prototype.pipeTo's first argument must be a WritableStream\"));\n let r;\n try {\n r = $33f07bbd4ddcb7b3$var$Tr(t, \"Second parameter\");\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n return $33f07bbd4ddcb7b3$var$Wr(this) ? $33f07bbd4ddcb7b3$var$d(new TypeError(\"ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream\")) : $33f07bbd4ddcb7b3$var$vt(e) ? $33f07bbd4ddcb7b3$var$d(new TypeError(\"ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream\")) : $33f07bbd4ddcb7b3$var$ir(this, e, r.preventClose, r.preventAbort, r.preventCancel, r.signal);\n }\n tee() {\n if (!$33f07bbd4ddcb7b3$var$Er(this)) throw $33f07bbd4ddcb7b3$var$jr(\"tee\");\n return $33f07bbd4ddcb7b3$var$ne($33f07bbd4ddcb7b3$var$yr(this));\n }\n values(e) {\n if (!$33f07bbd4ddcb7b3$var$Er(this)) throw $33f07bbd4ddcb7b3$var$jr(\"values\");\n return function(e, t) {\n const r = $33f07bbd4ddcb7b3$var$H(e), o = new $33f07bbd4ddcb7b3$var$he(r, t), n = Object.create($33f07bbd4ddcb7b3$var$me);\n return n._asyncIteratorImpl = o, n;\n }(this, function(e, t) {\n $33f07bbd4ddcb7b3$var$L(e, t);\n const r = null == e ? void 0 : e.preventCancel;\n return {\n preventCancel: Boolean(r)\n };\n }(e, \"First parameter\").preventCancel);\n }\n [$33f07bbd4ddcb7b3$var$de](e) {\n return this.values(e);\n }\n static from(e) {\n return $33f07bbd4ddcb7b3$var$Sr(e);\n }\n}\nfunction $33f07bbd4ddcb7b3$var$Cr(e, t, r, o = 1, n = ()=>1) {\n const a = Object.create($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype);\n $33f07bbd4ddcb7b3$var$qr(a);\n return $33f07bbd4ddcb7b3$var$_r(a, Object.create($33f07bbd4ddcb7b3$export$b0bb6d0989d67700.prototype), e, t, r, o, n), a;\n}\nfunction $33f07bbd4ddcb7b3$var$Pr(e, t, r) {\n const o = Object.create($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype);\n $33f07bbd4ddcb7b3$var$qr(o);\n return $33f07bbd4ddcb7b3$var$Xe(o, Object.create($33f07bbd4ddcb7b3$export$2047cf34091e94ac.prototype), e, t, r, 0, void 0), o;\n}\nfunction $33f07bbd4ddcb7b3$var$qr(e) {\n e._state = \"readable\", e._reader = void 0, e._storedError = void 0, e._disturbed = !1;\n}\nfunction $33f07bbd4ddcb7b3$var$Er(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_readableStreamController\") && e instanceof $33f07bbd4ddcb7b3$export$5d3e1e5268af5f76;\n}\nfunction $33f07bbd4ddcb7b3$var$Wr(e) {\n return void 0 !== e._reader;\n}\nfunction $33f07bbd4ddcb7b3$var$Or(t, r) {\n if (t._disturbed = !0, \"closed\" === t._state) return $33f07bbd4ddcb7b3$var$c(void 0);\n if (\"errored\" === t._state) return $33f07bbd4ddcb7b3$var$d(t._storedError);\n $33f07bbd4ddcb7b3$var$Br(t);\n const o = t._reader;\n if (void 0 !== o && $33f07bbd4ddcb7b3$var$nt(o)) {\n const e = o._readIntoRequests;\n o._readIntoRequests = new $33f07bbd4ddcb7b3$var$v, e.forEach((e)=>{\n e._closeSteps(void 0);\n });\n }\n return $33f07bbd4ddcb7b3$var$_(t._readableStreamController[$33f07bbd4ddcb7b3$var$T](r), $33f07bbd4ddcb7b3$var$e);\n}\nfunction $33f07bbd4ddcb7b3$var$Br(e) {\n e._state = \"closed\";\n const t = e._reader;\n if (void 0 !== t && ($33f07bbd4ddcb7b3$var$A(t), $33f07bbd4ddcb7b3$var$J(t))) {\n const e = t._readRequests;\n t._readRequests = new $33f07bbd4ddcb7b3$var$v, e.forEach((e)=>{\n e._closeSteps();\n });\n }\n}\nfunction $33f07bbd4ddcb7b3$var$kr(e, t) {\n e._state = \"errored\", e._storedError = t;\n const r = e._reader;\n void 0 !== r && ($33f07bbd4ddcb7b3$var$j(r, t), $33f07bbd4ddcb7b3$var$J(r) ? $33f07bbd4ddcb7b3$var$Z(r, t) : $33f07bbd4ddcb7b3$var$it(r, t));\n}\nfunction $33f07bbd4ddcb7b3$var$jr(e) {\n return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`);\n}\nfunction $33f07bbd4ddcb7b3$var$Ar(e, t) {\n $33f07bbd4ddcb7b3$var$L(e, t);\n const r = null == e ? void 0 : e.highWaterMark;\n return $33f07bbd4ddcb7b3$var$M(r, \"highWaterMark\", \"QueuingStrategyInit\"), {\n highWaterMark: $33f07bbd4ddcb7b3$var$Y(r)\n };\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76, {\n from: {\n enumerable: !0\n }\n}), Object.defineProperties($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype, {\n cancel: {\n enumerable: !0\n },\n getReader: {\n enumerable: !0\n },\n pipeThrough: {\n enumerable: !0\n },\n pipeTo: {\n enumerable: !0\n },\n tee: {\n enumerable: !0\n },\n values: {\n enumerable: !0\n },\n locked: {\n enumerable: !0\n }\n}), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.from, \"from\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype.cancel, \"cancel\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype.getReader, \"getReader\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype.pipeThrough, \"pipeThrough\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype.pipeTo, \"pipeTo\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype.tee, \"tee\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype.values, \"values\"), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype, Symbol.toStringTag, {\n value: \"ReadableStream\",\n configurable: !0\n}), Object.defineProperty($33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype, $33f07bbd4ddcb7b3$var$de, {\n value: $33f07bbd4ddcb7b3$export$5d3e1e5268af5f76.prototype.values,\n writable: !0,\n configurable: !0\n});\nconst $33f07bbd4ddcb7b3$var$zr = (e)=>e.byteLength;\n$33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$var$zr, \"size\");\nclass $33f07bbd4ddcb7b3$export$d386b5f37d154119 {\n constructor(e){\n $33f07bbd4ddcb7b3$var$$(e, 1, \"ByteLengthQueuingStrategy\"), e = $33f07bbd4ddcb7b3$var$Ar(e, \"First parameter\"), this._byteLengthQueuingStrategyHighWaterMark = e.highWaterMark;\n }\n get highWaterMark() {\n if (!$33f07bbd4ddcb7b3$var$Lr(this)) throw $33f07bbd4ddcb7b3$var$Dr(\"highWaterMark\");\n return this._byteLengthQueuingStrategyHighWaterMark;\n }\n get size() {\n if (!$33f07bbd4ddcb7b3$var$Lr(this)) throw $33f07bbd4ddcb7b3$var$Dr(\"size\");\n return $33f07bbd4ddcb7b3$var$zr;\n }\n}\nfunction $33f07bbd4ddcb7b3$var$Dr(e) {\n return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`);\n}\nfunction $33f07bbd4ddcb7b3$var$Lr(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_byteLengthQueuingStrategyHighWaterMark\") && e instanceof $33f07bbd4ddcb7b3$export$d386b5f37d154119;\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$d386b5f37d154119.prototype, {\n highWaterMark: {\n enumerable: !0\n },\n size: {\n enumerable: !0\n }\n}), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$d386b5f37d154119.prototype, Symbol.toStringTag, {\n value: \"ByteLengthQueuingStrategy\",\n configurable: !0\n});\nconst $33f07bbd4ddcb7b3$var$Fr = ()=>1;\n$33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$var$Fr, \"size\");\nclass $33f07bbd4ddcb7b3$export$9ebfec18c2dfc625 {\n constructor(e){\n $33f07bbd4ddcb7b3$var$$(e, 1, \"CountQueuingStrategy\"), e = $33f07bbd4ddcb7b3$var$Ar(e, \"First parameter\"), this._countQueuingStrategyHighWaterMark = e.highWaterMark;\n }\n get highWaterMark() {\n if (!$33f07bbd4ddcb7b3$var$$r(this)) throw $33f07bbd4ddcb7b3$var$Ir(\"highWaterMark\");\n return this._countQueuingStrategyHighWaterMark;\n }\n get size() {\n if (!$33f07bbd4ddcb7b3$var$$r(this)) throw $33f07bbd4ddcb7b3$var$Ir(\"size\");\n return $33f07bbd4ddcb7b3$var$Fr;\n }\n}\nfunction $33f07bbd4ddcb7b3$var$Ir(e) {\n return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`);\n}\nfunction $33f07bbd4ddcb7b3$var$$r(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_countQueuingStrategyHighWaterMark\") && e instanceof $33f07bbd4ddcb7b3$export$9ebfec18c2dfc625;\n}\nfunction $33f07bbd4ddcb7b3$var$Mr(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), (r)=>$33f07bbd4ddcb7b3$var$g(e, t, [\n r\n ]);\n}\nfunction $33f07bbd4ddcb7b3$var$Yr(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), (r)=>$33f07bbd4ddcb7b3$var$S(e, t, [\n r\n ]);\n}\nfunction $33f07bbd4ddcb7b3$var$xr(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), (r, o)=>$33f07bbd4ddcb7b3$var$g(e, t, [\n r,\n o\n ]);\n}\nfunction $33f07bbd4ddcb7b3$var$Qr(e, t, r) {\n return $33f07bbd4ddcb7b3$var$F(e, r), (r)=>$33f07bbd4ddcb7b3$var$g(e, t, [\n r\n ]);\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$9ebfec18c2dfc625.prototype, {\n highWaterMark: {\n enumerable: !0\n },\n size: {\n enumerable: !0\n }\n}), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$9ebfec18c2dfc625.prototype, Symbol.toStringTag, {\n value: \"CountQueuingStrategy\",\n configurable: !0\n});\nclass $33f07bbd4ddcb7b3$export$d102341634899398 {\n constructor(e = {}, t = {}, r = {}){\n void 0 === e && (e = null);\n const o = $33f07bbd4ddcb7b3$var$ct(t, \"Second parameter\"), n = $33f07bbd4ddcb7b3$var$ct(r, \"Third parameter\"), a = function(e, t) {\n $33f07bbd4ddcb7b3$var$L(e, t);\n const r = null == e ? void 0 : e.cancel, o = null == e ? void 0 : e.flush, n = null == e ? void 0 : e.readableType, a = null == e ? void 0 : e.start, i = null == e ? void 0 : e.transform, l = null == e ? void 0 : e.writableType;\n return {\n cancel: void 0 === r ? void 0 : $33f07bbd4ddcb7b3$var$Qr(r, e, `${t} has member 'cancel' that`),\n flush: void 0 === o ? void 0 : $33f07bbd4ddcb7b3$var$Mr(o, e, `${t} has member 'flush' that`),\n readableType: n,\n start: void 0 === a ? void 0 : $33f07bbd4ddcb7b3$var$Yr(a, e, `${t} has member 'start' that`),\n transform: void 0 === i ? void 0 : $33f07bbd4ddcb7b3$var$xr(i, e, `${t} has member 'transform' that`),\n writableType: l\n };\n }(e, \"First parameter\");\n if (void 0 !== a.readableType) throw new RangeError(\"Invalid readableType specified\");\n if (void 0 !== a.writableType) throw new RangeError(\"Invalid writableType specified\");\n const i = $33f07bbd4ddcb7b3$var$st(n, 0), l = $33f07bbd4ddcb7b3$var$ut(n), s = $33f07bbd4ddcb7b3$var$st(o, 1), f = $33f07bbd4ddcb7b3$var$ut(o);\n let h;\n !function(e, t, r, o, n, a) {\n function i() {\n return t;\n }\n function l(t) {\n return function(e, t) {\n const r = e._transformStreamController;\n if (e._backpressure) return $33f07bbd4ddcb7b3$var$_(e._backpressureChangePromise, ()=>{\n const o = e._writable;\n if (\"erroring\" === o._state) throw o._storedError;\n return $33f07bbd4ddcb7b3$var$Zr(r, t);\n });\n return $33f07bbd4ddcb7b3$var$Zr(r, t);\n }(e, t);\n }\n function s(t) {\n return function(e, t) {\n const r = e._transformStreamController;\n if (void 0 !== r._finishPromise) return r._finishPromise;\n const o = e._readable;\n r._finishPromise = $33f07bbd4ddcb7b3$var$u((e, t)=>{\n r._finishPromise_resolve = e, r._finishPromise_reject = t;\n });\n const n = r._cancelAlgorithm(t);\n return $33f07bbd4ddcb7b3$var$Jr(r), $33f07bbd4ddcb7b3$var$b(n, ()=>(\"errored\" === o._state ? $33f07bbd4ddcb7b3$var$ro(r, o._storedError) : ($33f07bbd4ddcb7b3$var$br(o._readableStreamController, t), $33f07bbd4ddcb7b3$var$to(r)), null), (e)=>($33f07bbd4ddcb7b3$var$br(o._readableStreamController, e), $33f07bbd4ddcb7b3$var$ro(r, e), null)), r._finishPromise;\n }(e, t);\n }\n function c() {\n return function(e) {\n const t = e._transformStreamController;\n if (void 0 !== t._finishPromise) return t._finishPromise;\n const r = e._readable;\n t._finishPromise = $33f07bbd4ddcb7b3$var$u((e, r)=>{\n t._finishPromise_resolve = e, t._finishPromise_reject = r;\n });\n const o = t._flushAlgorithm();\n return $33f07bbd4ddcb7b3$var$Jr(t), $33f07bbd4ddcb7b3$var$b(o, ()=>(\"errored\" === r._state ? $33f07bbd4ddcb7b3$var$ro(t, r._storedError) : ($33f07bbd4ddcb7b3$var$dr(r._readableStreamController), $33f07bbd4ddcb7b3$var$to(t)), null), (e)=>($33f07bbd4ddcb7b3$var$br(r._readableStreamController, e), $33f07bbd4ddcb7b3$var$ro(t, e), null)), t._finishPromise;\n }(e);\n }\n function d() {\n return function(e) {\n return $33f07bbd4ddcb7b3$var$Gr(e, !1), e._backpressureChangePromise;\n }(e);\n }\n function f(t) {\n return function(e, t) {\n const r = e._transformStreamController;\n if (void 0 !== r._finishPromise) return r._finishPromise;\n const o = e._writable;\n r._finishPromise = $33f07bbd4ddcb7b3$var$u((e, t)=>{\n r._finishPromise_resolve = e, r._finishPromise_reject = t;\n });\n const n = r._cancelAlgorithm(t);\n return $33f07bbd4ddcb7b3$var$Jr(r), $33f07bbd4ddcb7b3$var$b(n, ()=>(\"errored\" === o._state ? $33f07bbd4ddcb7b3$var$ro(r, o._storedError) : ($33f07bbd4ddcb7b3$var$Yt(o._writableStreamController, t), $33f07bbd4ddcb7b3$var$Ur(e), $33f07bbd4ddcb7b3$var$to(r)), null), (t)=>($33f07bbd4ddcb7b3$var$Yt(o._writableStreamController, t), $33f07bbd4ddcb7b3$var$Ur(e), $33f07bbd4ddcb7b3$var$ro(r, t), null)), r._finishPromise;\n }(e, t);\n }\n e._writable = function(e, t, r, o, n = 1, a = ()=>1) {\n const i = Object.create($33f07bbd4ddcb7b3$export$826849241f7970f8.prototype);\n return $33f07bbd4ddcb7b3$var$St(i), $33f07bbd4ddcb7b3$var$Ft(i, Object.create($33f07bbd4ddcb7b3$export$9e6890cb9a51c7c2.prototype), e, t, r, o, n, a), i;\n }(i, l, c, s, r, o), e._readable = $33f07bbd4ddcb7b3$var$Cr(i, d, f, n, a), e._backpressure = void 0, e._backpressureChangePromise = void 0, e._backpressureChangePromise_resolve = void 0, $33f07bbd4ddcb7b3$var$Gr(e, !0), e._transformStreamController = void 0;\n }(this, $33f07bbd4ddcb7b3$var$u((e)=>{\n h = e;\n }), s, f, i, l), function(e, t) {\n const r = Object.create($33f07bbd4ddcb7b3$export$a55559184460222.prototype);\n let o, n, a;\n o = void 0 !== t.transform ? (e)=>t.transform(e, r) : (e)=>{\n try {\n return $33f07bbd4ddcb7b3$var$Kr(r, e), $33f07bbd4ddcb7b3$var$c(void 0);\n } catch (e) {\n return $33f07bbd4ddcb7b3$var$d(e);\n }\n };\n n = void 0 !== t.flush ? ()=>t.flush(r) : ()=>$33f07bbd4ddcb7b3$var$c(void 0);\n a = void 0 !== t.cancel ? (e)=>t.cancel(e) : ()=>$33f07bbd4ddcb7b3$var$c(void 0);\n !function(e, t, r, o, n) {\n t._controlledTransformStream = e, e._transformStreamController = t, t._transformAlgorithm = r, t._flushAlgorithm = o, t._cancelAlgorithm = n, t._finishPromise = void 0, t._finishPromise_resolve = void 0, t._finishPromise_reject = void 0;\n }(e, r, o, n, a);\n }(this, a), void 0 !== a.start ? h(a.start(this._transformStreamController)) : h(void 0);\n }\n get readable() {\n if (!$33f07bbd4ddcb7b3$var$Nr(this)) throw $33f07bbd4ddcb7b3$var$oo(\"readable\");\n return this._readable;\n }\n get writable() {\n if (!$33f07bbd4ddcb7b3$var$Nr(this)) throw $33f07bbd4ddcb7b3$var$oo(\"writable\");\n return this._writable;\n }\n}\nfunction $33f07bbd4ddcb7b3$var$Nr(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_transformStreamController\") && e instanceof $33f07bbd4ddcb7b3$export$d102341634899398;\n}\nfunction $33f07bbd4ddcb7b3$var$Hr(e, t) {\n $33f07bbd4ddcb7b3$var$br(e._readable._readableStreamController, t), $33f07bbd4ddcb7b3$var$Vr(e, t);\n}\nfunction $33f07bbd4ddcb7b3$var$Vr(e, t) {\n $33f07bbd4ddcb7b3$var$Jr(e._transformStreamController), $33f07bbd4ddcb7b3$var$Yt(e._writable._writableStreamController, t), $33f07bbd4ddcb7b3$var$Ur(e);\n}\nfunction $33f07bbd4ddcb7b3$var$Ur(e) {\n e._backpressure && $33f07bbd4ddcb7b3$var$Gr(e, !1);\n}\nfunction $33f07bbd4ddcb7b3$var$Gr(e, t) {\n void 0 !== e._backpressureChangePromise && e._backpressureChangePromise_resolve(), e._backpressureChangePromise = $33f07bbd4ddcb7b3$var$u((t)=>{\n e._backpressureChangePromise_resolve = t;\n }), e._backpressure = t;\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$d102341634899398.prototype, {\n readable: {\n enumerable: !0\n },\n writable: {\n enumerable: !0\n }\n}), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$d102341634899398.prototype, Symbol.toStringTag, {\n value: \"TransformStream\",\n configurable: !0\n});\nclass $33f07bbd4ddcb7b3$export$a55559184460222 {\n constructor(){\n throw new TypeError(\"Illegal constructor\");\n }\n get desiredSize() {\n if (!$33f07bbd4ddcb7b3$var$Xr(this)) throw $33f07bbd4ddcb7b3$var$eo(\"desiredSize\");\n return $33f07bbd4ddcb7b3$var$hr(this._controlledTransformStream._readable._readableStreamController);\n }\n enqueue(e) {\n if (!$33f07bbd4ddcb7b3$var$Xr(this)) throw $33f07bbd4ddcb7b3$var$eo(\"enqueue\");\n $33f07bbd4ddcb7b3$var$Kr(this, e);\n }\n error(e) {\n if (!$33f07bbd4ddcb7b3$var$Xr(this)) throw $33f07bbd4ddcb7b3$var$eo(\"error\");\n var t;\n t = e, $33f07bbd4ddcb7b3$var$Hr(this._controlledTransformStream, t);\n }\n terminate() {\n if (!$33f07bbd4ddcb7b3$var$Xr(this)) throw $33f07bbd4ddcb7b3$var$eo(\"terminate\");\n !function(e) {\n const t = e._controlledTransformStream;\n $33f07bbd4ddcb7b3$var$dr(t._readable._readableStreamController);\n const r = new TypeError(\"TransformStream terminated\");\n $33f07bbd4ddcb7b3$var$Vr(t, r);\n }(this);\n }\n}\nfunction $33f07bbd4ddcb7b3$var$Xr(e) {\n return !!$33f07bbd4ddcb7b3$var$t(e) && !!Object.prototype.hasOwnProperty.call(e, \"_controlledTransformStream\") && e instanceof $33f07bbd4ddcb7b3$export$a55559184460222;\n}\nfunction $33f07bbd4ddcb7b3$var$Jr(e) {\n e._transformAlgorithm = void 0, e._flushAlgorithm = void 0, e._cancelAlgorithm = void 0;\n}\nfunction $33f07bbd4ddcb7b3$var$Kr(e, t) {\n const r = e._controlledTransformStream, o = r._readable._readableStreamController;\n if (!$33f07bbd4ddcb7b3$var$mr(o)) throw new TypeError(\"Readable side is not in a state that permits enqueue\");\n try {\n $33f07bbd4ddcb7b3$var$fr(o, t);\n } catch (e) {\n throw $33f07bbd4ddcb7b3$var$Vr(r, e), r._readable._storedError;\n }\n const n = function(e) {\n return !$33f07bbd4ddcb7b3$var$ur(e);\n }(o);\n n !== r._backpressure && $33f07bbd4ddcb7b3$var$Gr(r, !0);\n}\nfunction $33f07bbd4ddcb7b3$var$Zr(e, t) {\n return $33f07bbd4ddcb7b3$var$_(e._transformAlgorithm(t), void 0, (t)=>{\n throw $33f07bbd4ddcb7b3$var$Hr(e._controlledTransformStream, t), t;\n });\n}\nfunction $33f07bbd4ddcb7b3$var$eo(e) {\n return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`);\n}\nfunction $33f07bbd4ddcb7b3$var$to(e) {\n void 0 !== e._finishPromise_resolve && (e._finishPromise_resolve(), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0);\n}\nfunction $33f07bbd4ddcb7b3$var$ro(e, t) {\n void 0 !== e._finishPromise_reject && ($33f07bbd4ddcb7b3$var$p(e._finishPromise), e._finishPromise_reject(t), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0);\n}\nfunction $33f07bbd4ddcb7b3$var$oo(e) {\n return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`);\n}\nObject.defineProperties($33f07bbd4ddcb7b3$export$a55559184460222.prototype, {\n enqueue: {\n enumerable: !0\n },\n error: {\n enumerable: !0\n },\n terminate: {\n enumerable: !0\n },\n desiredSize: {\n enumerable: !0\n }\n}), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$a55559184460222.prototype.enqueue, \"enqueue\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$a55559184460222.prototype.error, \"error\"), $33f07bbd4ddcb7b3$var$o($33f07bbd4ddcb7b3$export$a55559184460222.prototype.terminate, \"terminate\"), \"symbol\" == typeof Symbol.toStringTag && Object.defineProperty($33f07bbd4ddcb7b3$export$a55559184460222.prototype, Symbol.toStringTag, {\n value: \"TransformStreamDefaultController\",\n configurable: !0\n});\n\n});\n\n\nparcelRegister(\"a2E6i\", function(module, exports) {\n\n$parcel$export(module.exports, \"observable\", () => observable);\n$parcel$export(module.exports, \"computed\", () => computed);\n$parcel$export(module.exports, \"autorun\", () => autorun);\n$parcel$export(module.exports, \"action\", () => action);\n$parcel$export(module.exports, \"reaction\", () => reaction);\n$parcel$export(module.exports, \"configure\", () => configure);\nvar niceErrors = {\n 0: \"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'\",\n 1: function _(annotationType, key) {\n return \"Cannot apply '\" + annotationType + \"' to '\" + key.toString() + \"': Field not found.\";\n },\n /*\n 2(prop) {\n return `invalid decorator for '${prop.toString()}'`\n },\n 3(prop) {\n return `Cannot decorate '${prop.toString()}': action can only be used on properties with a function value.`\n },\n 4(prop) {\n return `Cannot decorate '${prop.toString()}': computed can only be used on getter properties.`\n },\n */ 5: \"'keys()' can only be used on observable objects, arrays, sets and maps\",\n 6: \"'values()' can only be used on observable objects, arrays, sets and maps\",\n 7: \"'entries()' can only be used on observable objects, arrays and maps\",\n 8: \"'set()' can only be used on observable objects, arrays and maps\",\n 9: \"'remove()' can only be used on observable objects, arrays and maps\",\n 10: \"'has()' can only be used on observable objects, arrays and maps\",\n 11: \"'get()' can only be used on observable objects, arrays and maps\",\n 12: \"Invalid annotation\",\n 13: \"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)\",\n 14: \"Intercept handlers should return nothing or a change object\",\n 15: \"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)\",\n 16: \"Modification exception: the internal structure of an observable array was changed.\",\n 17: function _(index, length) {\n return \"[mobx.array] Index out of bounds, \" + index + \" is larger than \" + length;\n },\n 18: \"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js\",\n 19: function _(other) {\n return \"Cannot initialize from classes that inherit from Map: \" + other.constructor.name;\n },\n 20: function _(other) {\n return \"Cannot initialize map from \" + other;\n },\n 21: function _(dataStructure) {\n return \"Cannot convert to map from '\" + dataStructure + \"'\";\n },\n 22: \"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js\",\n 23: \"It is not possible to get index atoms from arrays\",\n 24: function _(thing) {\n return \"Cannot obtain administration from \" + thing;\n },\n 25: function _(property, name) {\n return \"the entry '\" + property + \"' does not exist in the observable map '\" + name + \"'\";\n },\n 26: \"please specify a property\",\n 27: function _(property, name) {\n return \"no observable property '\" + property.toString() + \"' found on the observable object '\" + name + \"'\";\n },\n 28: function _(thing) {\n return \"Cannot obtain atom from \" + thing;\n },\n 29: \"Expecting some object\",\n 30: \"invalid action stack. did you forget to finish an action?\",\n 31: \"missing option for computed: get\",\n 32: function _(name, derivation) {\n return \"Cycle detected in computation \" + name + \": \" + derivation;\n },\n 33: function _(name) {\n return \"The setter of computed value '\" + name + \"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?\";\n },\n 34: function _(name) {\n return \"[ComputedValue '\" + name + \"'] It is not possible to assign a new value to a computed value.\";\n },\n 35: \"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`\",\n 36: \"isolateGlobalState should be called before MobX is running any reactions\",\n 37: function _(method) {\n return \"[mobx] `observableArray.\" + method + \"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice().\" + method + \"()` instead\";\n },\n 38: \"'ownKeys()' can only be used on observable objects\",\n 39: \"'defineProperty()' can only be used on observable objects\"\n};\nvar errors = {};\nfunction die(error) {\n for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];\n var e;\n throw new Error(typeof error === \"number\" ? \"[MobX] minified error nr: \" + error + (args.length ? \" \" + args.map(String).join(\",\") : \"\") + \". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts\" : \"[MobX] \" + error);\n}\nvar mockGlobal = {};\nfunction getGlobal() {\n if (typeof globalThis !== \"undefined\") return globalThis;\n if (typeof window !== \"undefined\") return window;\n if (typeof $parcel$global !== \"undefined\") return $parcel$global;\n if (typeof self !== \"undefined\") return self;\n return mockGlobal;\n}\n// We shorten anything used > 5 times\nvar assign = Object.assign;\nvar getDescriptor = Object.getOwnPropertyDescriptor;\nvar defineProperty = Object.defineProperty;\nvar objectPrototype = Object.prototype;\nvar EMPTY_ARRAY = [];\nObject.freeze(EMPTY_ARRAY);\nvar EMPTY_OBJECT = {};\nObject.freeze(EMPTY_OBJECT);\nvar hasProxy = typeof Proxy !== \"undefined\";\nvar plainObjectString = /*#__PURE__*/ Object.toString();\nfunction assertProxies() {\n if (!hasProxy) die(\"Proxy not available\");\n}\nfunction warnAboutProxyRequirement(msg) {}\nfunction getNextId() {\n return ++globalState.mobxGuid;\n}\n/**\n * Makes sure that the provided function is invoked at most once.\n */ function once(func) {\n var invoked = false;\n return function() {\n if (invoked) return;\n invoked = true;\n return func.apply(this, arguments);\n };\n}\nvar noop = function noop() {};\nfunction isFunction(fn) {\n return typeof fn === \"function\";\n}\nfunction isStringish(value) {\n var t = typeof value;\n switch(t){\n case \"string\":\n case \"symbol\":\n case \"number\":\n return true;\n }\n return false;\n}\nfunction isObject(value) {\n return value !== null && typeof value === \"object\";\n}\nfunction isPlainObject(value) {\n if (!isObject(value)) return false;\n var proto = Object.getPrototypeOf(value);\n if (proto == null) return true;\n var protoConstructor = Object.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof protoConstructor === \"function\" && protoConstructor.toString() === plainObjectString;\n}\n// https://stackoverflow.com/a/37865170\nfunction isGenerator(obj) {\n var constructor = obj == null ? void 0 : obj.constructor;\n if (!constructor) return false;\n if (\"GeneratorFunction\" === constructor.name || \"GeneratorFunction\" === constructor.displayName) return true;\n return false;\n}\nfunction addHiddenProp(object, propName, value) {\n defineProperty(object, propName, {\n enumerable: false,\n writable: true,\n configurable: true,\n value: value\n });\n}\nfunction addHiddenFinalProp(object, propName, value) {\n defineProperty(object, propName, {\n enumerable: false,\n writable: false,\n configurable: true,\n value: value\n });\n}\nfunction createInstanceofPredicate(name, theClass) {\n var propName = \"isMobX\" + name;\n theClass.prototype[propName] = true;\n return function(x) {\n return isObject(x) && x[propName] === true;\n };\n}\n/**\n * Yields true for both native and observable Map, even across different windows.\n */ function isES6Map(thing) {\n return thing != null && Object.prototype.toString.call(thing) === \"[object Map]\";\n}\n/**\n * Makes sure a Map is an instance of non-inherited native or observable Map.\n */ function isPlainES6Map(thing) {\n var mapProto = Object.getPrototypeOf(thing);\n var objectProto = Object.getPrototypeOf(mapProto);\n var nullProto = Object.getPrototypeOf(objectProto);\n return nullProto === null;\n}\n/**\n * Yields true for both native and observable Set, even across different windows.\n */ function isES6Set(thing) {\n return thing != null && Object.prototype.toString.call(thing) === \"[object Set]\";\n}\nvar hasGetOwnPropertySymbols = typeof Object.getOwnPropertySymbols !== \"undefined\";\n/**\n * Returns the following: own enumerable keys and symbols.\n */ function getPlainObjectKeys(object) {\n var keys = Object.keys(object);\n // Not supported in IE, so there are not going to be symbol props anyway...\n if (!hasGetOwnPropertySymbols) return keys;\n var symbols = Object.getOwnPropertySymbols(object);\n if (!symbols.length) return keys;\n return [].concat(keys, symbols.filter(function(s) {\n return objectPrototype.propertyIsEnumerable.call(object, s);\n }));\n}\n// From Immer utils\n// Returns all own keys, including non-enumerable and symbolic\nvar ownKeys = typeof Reflect !== \"undefined\" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function(obj) {\n return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));\n} : /* istanbul ignore next */ Object.getOwnPropertyNames;\nfunction stringifyKey(key) {\n if (typeof key === \"string\") return key;\n if (typeof key === \"symbol\") return key.toString();\n return new String(key).toString();\n}\nfunction toPrimitive(value) {\n return value === null ? null : typeof value === \"object\" ? \"\" + value : value;\n}\nfunction hasProp(target, prop) {\n return objectPrototype.hasOwnProperty.call(target, prop);\n}\n// From Immer utils\nvar getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors(target) {\n // Polyfill needed for Hermes and IE, see https://github.com/facebook/hermes/issues/274\n var res = {};\n // Note: without polyfill for ownKeys, symbols won't be picked up\n ownKeys(target).forEach(function(key) {\n res[key] = getDescriptor(target, key);\n });\n return res;\n};\nfunction getFlag(flags, mask) {\n return !!(flags & mask);\n}\nfunction setFlag(flags, mask, newValue) {\n if (newValue) flags |= mask;\n else flags &= ~mask;\n return flags;\n}\nfunction _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];\n return n;\n}\nfunction _defineProperties(e, r) {\n for(var t = 0; t < r.length; t++){\n var o = r[t];\n o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);\n }\n}\nfunction _createClass(e, r, t) {\n return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), e;\n}\nfunction _createForOfIteratorHelperLoose(r, e) {\n var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (t) return (t = t.call(r)).next.bind(t);\n if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) {\n t && (r = t);\n var o = 0;\n return function() {\n return o >= r.length ? {\n done: !0\n } : {\n done: !1,\n value: r[o++]\n };\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function(n) {\n for(var e = 1; e < arguments.length; e++){\n var t = arguments[e];\n for(var r in t)({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);\n}\nfunction _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nfunction _toPrimitive(t, r) {\n if (\"object\" != typeof t || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != typeof i) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nfunction _toPropertyKey(t) {\n var i = _toPrimitive(t, \"string\");\n return \"symbol\" == typeof i ? i : i + \"\";\n}\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return _arrayLikeToArray(r, a);\n var t = ({}).toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;\n }\n}\nvar storedAnnotationsSymbol = /*#__PURE__*/ Symbol(\"mobx-stored-annotations\");\n/**\n * Creates a function that acts as\n * - decorator\n * - annotation object\n */ function createDecoratorAnnotation(annotation) {\n function decorator(target, property) {\n if (is20223Decorator(property)) return annotation.decorate_20223_(target, property);\n else storeAnnotation(target, property, annotation);\n }\n return Object.assign(decorator, annotation);\n}\n/**\n * Stores annotation to prototype,\n * so it can be inspected later by `makeObservable` called from constructor\n */ function storeAnnotation(prototype, key, annotation) {\n if (!hasProp(prototype, storedAnnotationsSymbol)) addHiddenProp(prototype, storedAnnotationsSymbol, _extends({}, prototype[storedAnnotationsSymbol]));\n var fieldName;\n // Cannot re-decorate\n assertNotDecorated(prototype, annotation, key);\n // Ignore override\n if (!isOverride(annotation)) prototype[storedAnnotationsSymbol][key] = annotation;\n}\nfunction assertNotDecorated(prototype, annotation, key) {\n var fieldName, currentAnnotationType, requestedAnnotationType;\n}\n/**\n * Collects annotations from prototypes and stores them on target (instance)\n */ function collectStoredAnnotations(target) {\n if (!hasProp(target, storedAnnotationsSymbol)) // if (__DEV__ && !target[storedAnnotationsSymbol]) {\n // die(\n // `No annotations were passed to makeObservable, but no decorated members have been found either`\n // )\n // }\n // We need a copy as we will remove annotation from the list once it's applied.\n addHiddenProp(target, storedAnnotationsSymbol, _extends({}, target[storedAnnotationsSymbol]));\n return target[storedAnnotationsSymbol];\n}\nfunction is20223Decorator(context) {\n return typeof context == \"object\" && typeof context[\"kind\"] == \"string\";\n}\nfunction assert20223DecoratorType(context, types) {}\nvar $mobx = /*#__PURE__*/ Symbol(\"mobx administration\");\nvar Atom = /*#__PURE__*/ function() {\n /**\n * Create a new atom. For debugging purposes it is recommended to give it a name.\n * The onBecomeObserved and onBecomeUnobserved callbacks can be used for resource management.\n */ function Atom(name_) {\n if (name_ === void 0) name_ = \"Atom\";\n this.name_ = void 0;\n this.flags_ = 0;\n this.observers_ = new Set();\n this.lastAccessedBy_ = 0;\n this.lowestObserverState_ = IDerivationState_.NOT_TRACKING_;\n // onBecomeObservedListeners\n this.onBOL = void 0;\n // onBecomeUnobservedListeners\n this.onBUOL = void 0;\n this.name_ = name_;\n }\n // for effective unobserving. BaseAtom has true, for extra optimization, so its onBecomeUnobserved never gets called, because it's not needed\n var _proto = Atom.prototype;\n _proto.onBO = function onBO() {\n if (this.onBOL) this.onBOL.forEach(function(listener) {\n return listener();\n });\n };\n _proto.onBUO = function onBUO() {\n if (this.onBUOL) this.onBUOL.forEach(function(listener) {\n return listener();\n });\n } /**\n * Invoke this method to notify mobx that your atom has been used somehow.\n * Returns true if there is currently a reactive context.\n */ ;\n _proto.reportObserved = function reportObserved$1() {\n return reportObserved(this);\n } /**\n * Invoke this method _after_ this method has changed to signal mobx that all its observers should invalidate.\n */ ;\n _proto.reportChanged = function reportChanged() {\n startBatch();\n propagateChanged(this);\n endBatch();\n };\n _proto.toString = function toString() {\n return this.name_;\n };\n return _createClass(Atom, [\n {\n key: \"isBeingObserved\",\n get: function get() {\n return getFlag(this.flags_, Atom.isBeingObservedMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Atom.isBeingObservedMask_, newValue);\n }\n },\n {\n key: \"isPendingUnobservation\",\n get: function get() {\n return getFlag(this.flags_, Atom.isPendingUnobservationMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Atom.isPendingUnobservationMask_, newValue);\n }\n },\n {\n key: \"diffValue\",\n get: function get() {\n return getFlag(this.flags_, Atom.diffValueMask_) ? 1 : 0;\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Atom.diffValueMask_, newValue === 1 ? true : false);\n }\n }\n ]);\n}();\nAtom.isBeingObservedMask_ = 1;\nAtom.isPendingUnobservationMask_ = 2;\nAtom.diffValueMask_ = 4;\nvar isAtom = /*#__PURE__*/ createInstanceofPredicate(\"Atom\", Atom);\nfunction createAtom(name, onBecomeObservedHandler, onBecomeUnobservedHandler) {\n if (onBecomeObservedHandler === void 0) onBecomeObservedHandler = noop;\n if (onBecomeUnobservedHandler === void 0) onBecomeUnobservedHandler = noop;\n var atom = new Atom(name);\n // default `noop` listener will not initialize the hook Set\n if (onBecomeObservedHandler !== noop) onBecomeObserved(atom, onBecomeObservedHandler);\n if (onBecomeUnobservedHandler !== noop) onBecomeUnobserved(atom, onBecomeUnobservedHandler);\n return atom;\n}\nfunction identityComparer(a, b) {\n return a === b;\n}\nfunction structuralComparer(a, b) {\n return deepEqual(a, b);\n}\nfunction shallowComparer(a, b) {\n return deepEqual(a, b, 1);\n}\nfunction defaultComparer(a, b) {\n if (Object.is) return Object.is(a, b);\n return a === b ? a !== 0 || 1 / a === 1 / b : a !== a && b !== b;\n}\nvar comparer = {\n identity: identityComparer,\n structural: structuralComparer,\n \"default\": defaultComparer,\n shallow: shallowComparer\n};\nfunction deepEnhancer(v, _, name) {\n // it is an observable already, done\n if (isObservable(v)) return v;\n // something that can be converted and mutated?\n if (Array.isArray(v)) return observable.array(v, {\n name: name\n });\n if (isPlainObject(v)) return observable.object(v, undefined, {\n name: name\n });\n if (isES6Map(v)) return observable.map(v, {\n name: name\n });\n if (isES6Set(v)) return observable.set(v, {\n name: name\n });\n if (typeof v === \"function\" && !isAction(v) && !isFlow(v)) {\n if (isGenerator(v)) return flow(v);\n else return autoAction(name, v);\n }\n return v;\n}\nfunction shallowEnhancer(v, _, name) {\n if (v === undefined || v === null) return v;\n if (isObservableObject(v) || isObservableArray(v) || isObservableMap(v) || isObservableSet(v)) return v;\n if (Array.isArray(v)) return observable.array(v, {\n name: name,\n deep: false\n });\n if (isPlainObject(v)) return observable.object(v, undefined, {\n name: name,\n deep: false\n });\n if (isES6Map(v)) return observable.map(v, {\n name: name,\n deep: false\n });\n if (isES6Set(v)) return observable.set(v, {\n name: name,\n deep: false\n });\n}\nfunction referenceEnhancer(newValue) {\n // never turn into an observable\n return newValue;\n}\nfunction refStructEnhancer(v, oldValue) {\n if (deepEqual(v, oldValue)) return oldValue;\n return v;\n}\nvar OVERRIDE = \"override\";\nvar override = /*#__PURE__*/ createDecoratorAnnotation({\n annotationType_: OVERRIDE,\n make_: make_,\n extend_: extend_,\n decorate_20223_: decorate_20223_\n});\nfunction isOverride(annotation) {\n return annotation.annotationType_ === OVERRIDE;\n}\nfunction make_(adm, key) {\n return 0 /* MakeResult.Cancel */ ;\n}\nfunction extend_(adm, key, descriptor, proxyTrap) {\n die(\"'\" + this.annotationType_ + \"' can only be used with 'makeObservable'\");\n}\nfunction decorate_20223_(desc, context) {\n console.warn(\"'\" + this.annotationType_ + \"' cannot be used with decorators - this is a no-op\");\n}\nfunction createActionAnnotation(name, options) {\n return {\n annotationType_: name,\n options_: options,\n make_: make_$1,\n extend_: extend_$1,\n decorate_20223_: decorate_20223_$1\n };\n}\nfunction make_$1(adm, key, descriptor, source) {\n var _this$options_;\n // bound\n if ((_this$options_ = this.options_) != null && _this$options_.bound) return this.extend_(adm, key, descriptor, false) === null ? 0 /* MakeResult.Cancel */ : 1 /* MakeResult.Break */ ;\n // own\n if (source === adm.target_) return this.extend_(adm, key, descriptor, false) === null ? 0 /* MakeResult.Cancel */ : 2 /* MakeResult.Continue */ ;\n // prototype\n if (isAction(descriptor.value)) // A prototype could have been annotated already by other constructor,\n // rest of the proto chain must be annotated already\n return 1 /* MakeResult.Break */ ;\n var actionDescriptor = createActionDescriptor(adm, this, key, descriptor, false);\n defineProperty(source, key, actionDescriptor);\n return 2 /* MakeResult.Continue */ ;\n}\nfunction extend_$1(adm, key, descriptor, proxyTrap) {\n var actionDescriptor = createActionDescriptor(adm, this, key, descriptor);\n return adm.defineProperty_(key, actionDescriptor, proxyTrap);\n}\nfunction decorate_20223_$1(mthd, context) {\n var kind = context.kind, name = context.name, addInitializer = context.addInitializer;\n var ann = this;\n var _createAction = function _createAction(m) {\n var _ann$options_$name, _ann$options_, _ann$options_$autoAct, _ann$options_2;\n return createAction((_ann$options_$name = (_ann$options_ = ann.options_) == null ? void 0 : _ann$options_.name) != null ? _ann$options_$name : name.toString(), m, (_ann$options_$autoAct = (_ann$options_2 = ann.options_) == null ? void 0 : _ann$options_2.autoAction) != null ? _ann$options_$autoAct : false);\n };\n if (kind == \"field\") return function(initMthd) {\n var _ann$options_3;\n var mthd = initMthd;\n if (!isAction(mthd)) mthd = _createAction(mthd);\n if ((_ann$options_3 = ann.options_) != null && _ann$options_3.bound) {\n mthd = mthd.bind(this);\n mthd.isMobxAction = true;\n }\n return mthd;\n };\n if (kind == \"method\") {\n var _this$options_2;\n if (!isAction(mthd)) mthd = _createAction(mthd);\n if ((_this$options_2 = this.options_) != null && _this$options_2.bound) addInitializer(function() {\n var self1 = this;\n var bound = self1[name].bind(self1);\n bound.isMobxAction = true;\n self1[name] = bound;\n });\n return mthd;\n }\n die(\"Cannot apply '\" + ann.annotationType_ + \"' to '\" + String(name) + \"' (kind: \" + kind + \"):\" + (\"\\n'\" + ann.annotationType_ + \"' can only be used on properties with a function value.\"));\n}\nfunction assertActionDescriptor(adm, _ref, key, _ref2) {\n var annotationType_ = _ref.annotationType_;\n var value = _ref2.value;\n}\nfunction createActionDescriptor(adm, annotation, key, descriptor, // provides ability to disable safeDescriptors for prototypes\nsafeDescriptors) {\n var _annotation$options_, _annotation$options_$, _annotation$options_2, _annotation$options_$2, _annotation$options_3, _annotation$options_4, _adm$proxy_2;\n if (safeDescriptors === void 0) safeDescriptors = globalState.safeDescriptors;\n assertActionDescriptor(adm, annotation, key, descriptor);\n var value = descriptor.value;\n if ((_annotation$options_ = annotation.options_) != null && _annotation$options_.bound) {\n var _adm$proxy_;\n value = value.bind((_adm$proxy_ = adm.proxy_) != null ? _adm$proxy_ : adm.target_);\n }\n return {\n value: createAction((_annotation$options_$ = (_annotation$options_2 = annotation.options_) == null ? void 0 : _annotation$options_2.name) != null ? _annotation$options_$ : key.toString(), value, (_annotation$options_$2 = (_annotation$options_3 = annotation.options_) == null ? void 0 : _annotation$options_3.autoAction) != null ? _annotation$options_$2 : false, // https://github.com/mobxjs/mobx/discussions/3140\n (_annotation$options_4 = annotation.options_) != null && _annotation$options_4.bound ? (_adm$proxy_2 = adm.proxy_) != null ? _adm$proxy_2 : adm.target_ : undefined),\n // Non-configurable for classes\n // prevents accidental field redefinition in subclass\n configurable: safeDescriptors ? adm.isPlainObject_ : true,\n // https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058\n enumerable: false,\n // Non-obsevable, therefore non-writable\n // Also prevents rewriting in subclass constructor\n writable: safeDescriptors ? false : true\n };\n}\nfunction createFlowAnnotation(name, options) {\n return {\n annotationType_: name,\n options_: options,\n make_: make_$2,\n extend_: extend_$2,\n decorate_20223_: decorate_20223_$2\n };\n}\nfunction make_$2(adm, key, descriptor, source) {\n var _this$options_;\n // own\n if (source === adm.target_) return this.extend_(adm, key, descriptor, false) === null ? 0 /* MakeResult.Cancel */ : 2 /* MakeResult.Continue */ ;\n // prototype\n // bound - must annotate protos to support super.flow()\n if ((_this$options_ = this.options_) != null && _this$options_.bound && (!hasProp(adm.target_, key) || !isFlow(adm.target_[key]))) {\n if (this.extend_(adm, key, descriptor, false) === null) return 0 /* MakeResult.Cancel */ ;\n }\n if (isFlow(descriptor.value)) // A prototype could have been annotated already by other constructor,\n // rest of the proto chain must be annotated already\n return 1 /* MakeResult.Break */ ;\n var flowDescriptor = createFlowDescriptor(adm, this, key, descriptor, false, false);\n defineProperty(source, key, flowDescriptor);\n return 2 /* MakeResult.Continue */ ;\n}\nfunction extend_$2(adm, key, descriptor, proxyTrap) {\n var _this$options_2;\n var flowDescriptor = createFlowDescriptor(adm, this, key, descriptor, (_this$options_2 = this.options_) == null ? void 0 : _this$options_2.bound);\n return adm.defineProperty_(key, flowDescriptor, proxyTrap);\n}\nfunction decorate_20223_$2(mthd, context) {\n var _this$options_3;\n var name = context.name, addInitializer = context.addInitializer;\n if (!isFlow(mthd)) mthd = flow(mthd);\n if ((_this$options_3 = this.options_) != null && _this$options_3.bound) addInitializer(function() {\n var self1 = this;\n var bound = self1[name].bind(self1);\n bound.isMobXFlow = true;\n self1[name] = bound;\n });\n return mthd;\n}\nfunction assertFlowDescriptor(adm, _ref, key, _ref2) {\n var annotationType_ = _ref.annotationType_;\n var value = _ref2.value;\n}\nfunction createFlowDescriptor(adm, annotation, key, descriptor, bound, // provides ability to disable safeDescriptors for prototypes\nsafeDescriptors) {\n if (safeDescriptors === void 0) safeDescriptors = globalState.safeDescriptors;\n assertFlowDescriptor(adm, annotation, key, descriptor);\n var value = descriptor.value;\n // In case of flow.bound, the descriptor can be from already annotated prototype\n if (!isFlow(value)) value = flow(value);\n if (bound) {\n var _adm$proxy_;\n // We do not keep original function around, so we bind the existing flow\n value = value.bind((_adm$proxy_ = adm.proxy_) != null ? _adm$proxy_ : adm.target_);\n // This is normally set by `flow`, but `bind` returns new function...\n value.isMobXFlow = true;\n }\n return {\n value: value,\n // Non-configurable for classes\n // prevents accidental field redefinition in subclass\n configurable: safeDescriptors ? adm.isPlainObject_ : true,\n // https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058\n enumerable: false,\n // Non-obsevable, therefore non-writable\n // Also prevents rewriting in subclass constructor\n writable: safeDescriptors ? false : true\n };\n}\nfunction createComputedAnnotation(name, options) {\n return {\n annotationType_: name,\n options_: options,\n make_: make_$3,\n extend_: extend_$3,\n decorate_20223_: decorate_20223_$3\n };\n}\nfunction make_$3(adm, key, descriptor) {\n return this.extend_(adm, key, descriptor, false) === null ? 0 /* MakeResult.Cancel */ : 1 /* MakeResult.Break */ ;\n}\nfunction extend_$3(adm, key, descriptor, proxyTrap) {\n assertComputedDescriptor(adm, this, key, descriptor);\n return adm.defineComputedProperty_(key, _extends({}, this.options_, {\n get: descriptor.get,\n set: descriptor.set\n }), proxyTrap);\n}\nfunction decorate_20223_$3(get, context) {\n var ann = this;\n var key = context.name, addInitializer = context.addInitializer;\n addInitializer(function() {\n var adm = asObservableObject(this)[$mobx];\n var options = _extends({}, ann.options_, {\n get: get,\n context: this\n });\n options.name || (options.name = \"ObservableObject.\" + key.toString());\n adm.values_.set(key, new ComputedValue(options));\n });\n return function() {\n return this[$mobx].getObservablePropValue_(key);\n };\n}\nfunction assertComputedDescriptor(adm, _ref, key, _ref2) {\n var annotationType_ = _ref.annotationType_;\n var get = _ref2.get;\n}\nfunction createObservableAnnotation(name, options) {\n return {\n annotationType_: name,\n options_: options,\n make_: make_$4,\n extend_: extend_$4,\n decorate_20223_: decorate_20223_$4\n };\n}\nfunction make_$4(adm, key, descriptor) {\n return this.extend_(adm, key, descriptor, false) === null ? 0 /* MakeResult.Cancel */ : 1 /* MakeResult.Break */ ;\n}\nfunction extend_$4(adm, key, descriptor, proxyTrap) {\n var _this$options_$enhanc, _this$options_;\n assertObservableDescriptor(adm, this, key, descriptor);\n return adm.defineObservableProperty_(key, descriptor.value, (_this$options_$enhanc = (_this$options_ = this.options_) == null ? void 0 : _this$options_.enhancer) != null ? _this$options_$enhanc : deepEnhancer, proxyTrap);\n}\nfunction decorate_20223_$4(desc, context) {\n var ann = this;\n var kind = context.kind, name = context.name;\n // The laziness here is not ideal... It's a workaround to how 2022.3 Decorators are implemented:\n // `addInitializer` callbacks are executed _before_ any accessors are defined (instead of the ideal-for-us right after each).\n // This means that, if we were to do our stuff in an `addInitializer`, we'd attempt to read a private slot\n // before it has been initialized. The runtime doesn't like that and throws a `Cannot read private member\n // from an object whose class did not declare it` error.\n // TODO: it seems that this will not be required anymore in the final version of the spec\n // See TODO: link\n var initializedObjects = new WeakSet();\n function initializeObservable(target, value) {\n var _ann$options_$enhance, _ann$options_;\n var adm = asObservableObject(target)[$mobx];\n var observable = new ObservableValue(value, (_ann$options_$enhance = (_ann$options_ = ann.options_) == null ? void 0 : _ann$options_.enhancer) != null ? _ann$options_$enhance : deepEnhancer, \"ObservableObject.\" + name.toString(), false);\n adm.values_.set(name, observable);\n initializedObjects.add(target);\n }\n if (kind == \"accessor\") return {\n get: function get() {\n if (!initializedObjects.has(this)) initializeObservable(this, desc.get.call(this));\n return this[$mobx].getObservablePropValue_(name);\n },\n set: function set(value) {\n if (!initializedObjects.has(this)) initializeObservable(this, value);\n return this[$mobx].setObservablePropValue_(name, value);\n },\n init: function init(value) {\n if (!initializedObjects.has(this)) initializeObservable(this, value);\n return value;\n }\n };\n return;\n}\nfunction assertObservableDescriptor(adm, _ref, key, descriptor) {\n var annotationType_ = _ref.annotationType_;\n}\nvar AUTO = \"true\";\nvar autoAnnotation = /*#__PURE__*/ createAutoAnnotation();\nfunction createAutoAnnotation(options) {\n return {\n annotationType_: AUTO,\n options_: options,\n make_: make_$5,\n extend_: extend_$5,\n decorate_20223_: decorate_20223_$5\n };\n}\nfunction make_$5(adm, key, descriptor, source) {\n var _this$options_3, _this$options_4;\n // getter -> computed\n if (descriptor.get) return computed.make_(adm, key, descriptor, source);\n // lone setter -> action setter\n if (descriptor.set) {\n // TODO make action applicable to setter and delegate to action.make_\n var set = createAction(key.toString(), descriptor.set);\n // own\n if (source === adm.target_) return adm.defineProperty_(key, {\n configurable: globalState.safeDescriptors ? adm.isPlainObject_ : true,\n set: set\n }) === null ? 0 /* MakeResult.Cancel */ : 2 /* MakeResult.Continue */ ;\n // proto\n defineProperty(source, key, {\n configurable: true,\n set: set\n });\n return 2 /* MakeResult.Continue */ ;\n }\n // function on proto -> autoAction/flow\n if (source !== adm.target_ && typeof descriptor.value === \"function\") {\n var _this$options_2;\n if (isGenerator(descriptor.value)) {\n var _this$options_;\n var flowAnnotation = (_this$options_ = this.options_) != null && _this$options_.autoBind ? flow.bound : flow;\n return flowAnnotation.make_(adm, key, descriptor, source);\n }\n var actionAnnotation = (_this$options_2 = this.options_) != null && _this$options_2.autoBind ? autoAction.bound : autoAction;\n return actionAnnotation.make_(adm, key, descriptor, source);\n }\n // other -> observable\n // Copy props from proto as well, see test:\n // \"decorate should work with Object.create\"\n var observableAnnotation = ((_this$options_3 = this.options_) == null ? void 0 : _this$options_3.deep) === false ? observable.ref : observable;\n // if function respect autoBind option\n if (typeof descriptor.value === \"function\" && (_this$options_4 = this.options_) != null && _this$options_4.autoBind) {\n var _adm$proxy_;\n descriptor.value = descriptor.value.bind((_adm$proxy_ = adm.proxy_) != null ? _adm$proxy_ : adm.target_);\n }\n return observableAnnotation.make_(adm, key, descriptor, source);\n}\nfunction extend_$5(adm, key, descriptor, proxyTrap) {\n var _this$options_5, _this$options_6;\n // getter -> computed\n if (descriptor.get) return computed.extend_(adm, key, descriptor, proxyTrap);\n // lone setter -> action setter\n if (descriptor.set) // TODO make action applicable to setter and delegate to action.extend_\n return adm.defineProperty_(key, {\n configurable: globalState.safeDescriptors ? adm.isPlainObject_ : true,\n set: createAction(key.toString(), descriptor.set)\n }, proxyTrap);\n // other -> observable\n // if function respect autoBind option\n if (typeof descriptor.value === \"function\" && (_this$options_5 = this.options_) != null && _this$options_5.autoBind) {\n var _adm$proxy_2;\n descriptor.value = descriptor.value.bind((_adm$proxy_2 = adm.proxy_) != null ? _adm$proxy_2 : adm.target_);\n }\n var observableAnnotation = ((_this$options_6 = this.options_) == null ? void 0 : _this$options_6.deep) === false ? observable.ref : observable;\n return observableAnnotation.extend_(adm, key, descriptor, proxyTrap);\n}\nfunction decorate_20223_$5(desc, context) {\n die(\"'\" + this.annotationType_ + \"' cannot be used as a decorator\");\n}\nvar OBSERVABLE = \"observable\";\nvar OBSERVABLE_REF = \"observable.ref\";\nvar OBSERVABLE_SHALLOW = \"observable.shallow\";\nvar OBSERVABLE_STRUCT = \"observable.struct\";\n// Predefined bags of create observable options, to avoid allocating temporarily option objects\n// in the majority of cases\nvar defaultCreateObservableOptions = {\n deep: true,\n name: undefined,\n defaultDecorator: undefined,\n proxy: true\n};\nObject.freeze(defaultCreateObservableOptions);\nfunction asCreateObservableOptions(thing) {\n return thing || defaultCreateObservableOptions;\n}\nvar observableAnnotation = /*#__PURE__*/ createObservableAnnotation(OBSERVABLE);\nvar observableRefAnnotation = /*#__PURE__*/ createObservableAnnotation(OBSERVABLE_REF, {\n enhancer: referenceEnhancer\n});\nvar observableShallowAnnotation = /*#__PURE__*/ createObservableAnnotation(OBSERVABLE_SHALLOW, {\n enhancer: shallowEnhancer\n});\nvar observableStructAnnotation = /*#__PURE__*/ createObservableAnnotation(OBSERVABLE_STRUCT, {\n enhancer: refStructEnhancer\n});\nvar observableDecoratorAnnotation = /*#__PURE__*/ createDecoratorAnnotation(observableAnnotation);\nfunction getEnhancerFromOptions(options) {\n return options.deep === true ? deepEnhancer : options.deep === false ? referenceEnhancer : getEnhancerFromAnnotation(options.defaultDecorator);\n}\nfunction getAnnotationFromOptions(options) {\n var _options$defaultDecor;\n return options ? (_options$defaultDecor = options.defaultDecorator) != null ? _options$defaultDecor : createAutoAnnotation(options) : undefined;\n}\nfunction getEnhancerFromAnnotation(annotation) {\n var _annotation$options_$, _annotation$options_;\n return !annotation ? deepEnhancer : (_annotation$options_$ = (_annotation$options_ = annotation.options_) == null ? void 0 : _annotation$options_.enhancer) != null ? _annotation$options_$ : deepEnhancer;\n}\n/**\n * Turns an object, array or function into a reactive structure.\n * @param v the value which should become observable.\n */ function createObservable(v, arg2, arg3) {\n // @observable someProp; (2022.3 Decorators)\n if (is20223Decorator(arg2)) return observableAnnotation.decorate_20223_(v, arg2);\n // @observable someProp;\n if (isStringish(arg2)) {\n storeAnnotation(v, arg2, observableAnnotation);\n return;\n }\n // already observable - ignore\n if (isObservable(v)) return v;\n // plain object\n if (isPlainObject(v)) return observable.object(v, arg2, arg3);\n // Array\n if (Array.isArray(v)) return observable.array(v, arg2);\n // Map\n if (isES6Map(v)) return observable.map(v, arg2);\n // Set\n if (isES6Set(v)) return observable.set(v, arg2);\n // other object - ignore\n if (typeof v === \"object\" && v !== null) return v;\n // anything else\n return observable.box(v, arg2);\n}\nassign(createObservable, observableDecoratorAnnotation);\nvar observableFactories = {\n box: function box(value, options) {\n var o = asCreateObservableOptions(options);\n return new ObservableValue(value, getEnhancerFromOptions(o), o.name, true, o.equals);\n },\n array: function array(initialValues, options) {\n var o = asCreateObservableOptions(options);\n return (globalState.useProxies === false || o.proxy === false ? createLegacyArray : createObservableArray)(initialValues, getEnhancerFromOptions(o), o.name);\n },\n map: function map(initialValues, options) {\n var o = asCreateObservableOptions(options);\n return new ObservableMap(initialValues, getEnhancerFromOptions(o), o.name);\n },\n set: function set(initialValues, options) {\n var o = asCreateObservableOptions(options);\n return new ObservableSet(initialValues, getEnhancerFromOptions(o), o.name);\n },\n object: function object(props, decorators, options) {\n return initObservable(function() {\n return extendObservable(globalState.useProxies === false || (options == null ? void 0 : options.proxy) === false ? asObservableObject({}, options) : asDynamicObservableObject({}, options), props, decorators);\n });\n },\n ref: /*#__PURE__*/ createDecoratorAnnotation(observableRefAnnotation),\n shallow: /*#__PURE__*/ createDecoratorAnnotation(observableShallowAnnotation),\n deep: observableDecoratorAnnotation,\n struct: /*#__PURE__*/ createDecoratorAnnotation(observableStructAnnotation)\n};\n// eslint-disable-next-line\nvar observable = /*#__PURE__*/ assign(createObservable, observableFactories);\nvar COMPUTED = \"computed\";\nvar COMPUTED_STRUCT = \"computed.struct\";\nvar computedAnnotation = /*#__PURE__*/ createComputedAnnotation(COMPUTED);\nvar computedStructAnnotation = /*#__PURE__*/ createComputedAnnotation(COMPUTED_STRUCT, {\n equals: comparer.structural\n});\n/**\n * Decorator for class properties: @computed get value() { return expr; }.\n * For legacy purposes also invokable as ES5 observable created: `computed(() => expr)`;\n */ var computed = function computed(arg1, arg2) {\n if (is20223Decorator(arg2)) // @computed (2022.3 Decorators)\n return computedAnnotation.decorate_20223_(arg1, arg2);\n if (isStringish(arg2)) // @computed\n return storeAnnotation(arg1, arg2, computedAnnotation);\n if (isPlainObject(arg1)) // @computed({ options })\n return createDecoratorAnnotation(createComputedAnnotation(COMPUTED, arg1));\n var opts = isPlainObject(arg2) ? arg2 : {};\n opts.get = arg1;\n opts.name || (opts.name = arg1.name || \"\"); /* for generated name */ \n return new ComputedValue(opts);\n};\nObject.assign(computed, computedAnnotation);\ncomputed.struct = /*#__PURE__*/ createDecoratorAnnotation(computedStructAnnotation);\nvar _getDescriptor$config, _getDescriptor;\n// we don't use globalState for these in order to avoid possible issues with multiple\n// mobx versions\nvar currentActionId = 0;\nvar nextActionId = 1;\nvar isFunctionNameConfigurable = (_getDescriptor$config = (_getDescriptor = /*#__PURE__*/ getDescriptor(function() {}, \"name\")) == null ? void 0 : _getDescriptor.configurable) != null ? _getDescriptor$config : false;\n// we can safely recycle this object\nvar tmpNameDescriptor = {\n value: \"action\",\n configurable: true,\n writable: false,\n enumerable: false\n};\nfunction createAction(actionName, fn, autoAction, ref) {\n if (autoAction === void 0) autoAction = false;\n function res() {\n return executeAction(actionName, autoAction, fn, ref || this, arguments);\n }\n res.isMobxAction = true;\n res.toString = function() {\n return fn.toString();\n };\n if (isFunctionNameConfigurable) {\n tmpNameDescriptor.value = actionName;\n defineProperty(res, \"name\", tmpNameDescriptor);\n }\n return res;\n}\nfunction executeAction(actionName, canRunAsDerivation, fn, scope, args) {\n var runInfo = _startAction(actionName, canRunAsDerivation, scope, args);\n try {\n return fn.apply(scope, args);\n } catch (err) {\n runInfo.error_ = err;\n throw err;\n } finally{\n _endAction(runInfo);\n }\n}\nfunction _startAction(actionName, canRunAsDerivation, // true for autoAction\nscope, args) {\n var notifySpy_ = false;\n var startTime_ = 0;\n var flattenedArgs;\n var prevDerivation_ = globalState.trackingDerivation;\n var runAsAction = !canRunAsDerivation || !prevDerivation_;\n startBatch();\n var prevAllowStateChanges_ = globalState.allowStateChanges; // by default preserve previous allow\n if (runAsAction) {\n untrackedStart();\n prevAllowStateChanges_ = allowStateChangesStart(true);\n }\n var prevAllowStateReads_ = allowStateReadsStart(true);\n var runInfo = {\n runAsAction_: runAsAction,\n prevDerivation_: prevDerivation_,\n prevAllowStateChanges_: prevAllowStateChanges_,\n prevAllowStateReads_: prevAllowStateReads_,\n notifySpy_: notifySpy_,\n startTime_: startTime_,\n actionId_: nextActionId++,\n parentActionId_: currentActionId\n };\n currentActionId = runInfo.actionId_;\n return runInfo;\n}\nfunction _endAction(runInfo) {\n if (currentActionId !== runInfo.actionId_) die(30);\n currentActionId = runInfo.parentActionId_;\n if (runInfo.error_ !== undefined) globalState.suppressReactionErrors = true;\n allowStateChangesEnd(runInfo.prevAllowStateChanges_);\n allowStateReadsEnd(runInfo.prevAllowStateReads_);\n endBatch();\n if (runInfo.runAsAction_) untrackedEnd(runInfo.prevDerivation_);\n globalState.suppressReactionErrors = false;\n}\nfunction allowStateChanges(allowStateChanges, func) {\n var prev = allowStateChangesStart(allowStateChanges);\n try {\n return func();\n } finally{\n allowStateChangesEnd(prev);\n }\n}\nfunction allowStateChangesStart(allowStateChanges) {\n var prev = globalState.allowStateChanges;\n globalState.allowStateChanges = allowStateChanges;\n return prev;\n}\nfunction allowStateChangesEnd(prev) {\n globalState.allowStateChanges = prev;\n}\nvar CREATE = \"create\";\nvar ObservableValue = /*#__PURE__*/ function(_Atom) {\n function ObservableValue(value, enhancer, name_, notifySpy, equals) {\n var _this;\n if (name_ === void 0) name_ = \"ObservableValue\";\n if (notifySpy === void 0) notifySpy = true;\n if (equals === void 0) equals = comparer[\"default\"];\n _this = _Atom.call(this, name_) || this;\n _this.enhancer = void 0;\n _this.name_ = void 0;\n _this.equals = void 0;\n _this.hasUnreportedChange_ = false;\n _this.interceptors_ = void 0;\n _this.changeListeners_ = void 0;\n _this.value_ = void 0;\n _this.dehancer = void 0;\n _this.enhancer = enhancer;\n _this.name_ = name_;\n _this.equals = equals;\n _this.value_ = enhancer(value, undefined, name_);\n return _this;\n }\n _inheritsLoose(ObservableValue, _Atom);\n var _proto = ObservableValue.prototype;\n _proto.dehanceValue = function dehanceValue(value) {\n if (this.dehancer !== undefined) return this.dehancer(value);\n return value;\n };\n _proto.set = function set(newValue) {\n var oldValue = this.value_;\n newValue = this.prepareNewValue_(newValue);\n if (newValue !== globalState.UNCHANGED) {\n var notifySpy = isSpyEnabled();\n this.setNewValue_(newValue);\n }\n };\n _proto.prepareNewValue_ = function prepareNewValue_(newValue) {\n checkIfStateModificationsAreAllowed(this);\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this,\n type: UPDATE,\n newValue: newValue\n });\n if (!change) return globalState.UNCHANGED;\n newValue = change.newValue;\n }\n // apply modifier\n newValue = this.enhancer(newValue, this.value_, this.name_);\n return this.equals(this.value_, newValue) ? globalState.UNCHANGED : newValue;\n };\n _proto.setNewValue_ = function setNewValue_(newValue) {\n var oldValue = this.value_;\n this.value_ = newValue;\n this.reportChanged();\n if (hasListeners(this)) notifyListeners(this, {\n type: UPDATE,\n object: this,\n newValue: newValue,\n oldValue: oldValue\n });\n };\n _proto.get = function get() {\n this.reportObserved();\n return this.dehanceValue(this.value_);\n };\n _proto.intercept_ = function intercept_(handler) {\n return registerInterceptor(this, handler);\n };\n _proto.observe_ = function observe_(listener, fireImmediately) {\n if (fireImmediately) listener({\n observableKind: \"value\",\n debugObjectName: this.name_,\n object: this,\n type: UPDATE,\n newValue: this.value_,\n oldValue: undefined\n });\n return registerListener(this, listener);\n };\n _proto.raw = function raw() {\n // used by MST ot get undehanced value\n return this.value_;\n };\n _proto.toJSON = function toJSON() {\n return this.get();\n };\n _proto.toString = function toString() {\n return this.name_ + \"[\" + this.value_ + \"]\";\n };\n _proto.valueOf = function valueOf() {\n return toPrimitive(this.get());\n };\n _proto[Symbol.toPrimitive] = function() {\n return this.valueOf();\n };\n return ObservableValue;\n}(Atom);\nvar isObservableValue = /*#__PURE__*/ createInstanceofPredicate(\"ObservableValue\", ObservableValue);\n/**\n * A node in the state dependency root that observes other nodes, and can be observed itself.\n *\n * ComputedValue will remember the result of the computation for the duration of the batch, or\n * while being observed.\n *\n * During this time it will recompute only when one of its direct dependencies changed,\n * but only when it is being accessed with `ComputedValue.get()`.\n *\n * Implementation description:\n * 1. First time it's being accessed it will compute and remember result\n * give back remembered result until 2. happens\n * 2. First time any deep dependency change, propagate POSSIBLY_STALE to all observers, wait for 3.\n * 3. When it's being accessed, recompute if any shallow dependency changed.\n * if result changed: propagate STALE to all observers, that were POSSIBLY_STALE from the last step.\n * go to step 2. either way\n *\n * If at any point it's outside batch and it isn't observed: reset everything and go to 1.\n */ var ComputedValue = /*#__PURE__*/ function() {\n /**\n * Create a new computed value based on a function expression.\n *\n * The `name` property is for debug purposes only.\n *\n * The `equals` property specifies the comparer function to use to determine if a newly produced\n * value differs from the previous value. Two comparers are provided in the library; `defaultComparer`\n * compares based on identity comparison (===), and `structuralComparer` deeply compares the structure.\n * Structural comparison can be convenient if you always produce a new aggregated object and\n * don't want to notify observers if it is structurally the same.\n * This is useful for working with vectors, mouse coordinates etc.\n */ function ComputedValue(options) {\n this.dependenciesState_ = IDerivationState_.NOT_TRACKING_;\n this.observing_ = [];\n // nodes we are looking at. Our value depends on these nodes\n this.newObserving_ = null;\n // during tracking it's an array with new observed observers\n this.observers_ = new Set();\n this.runId_ = 0;\n this.lastAccessedBy_ = 0;\n this.lowestObserverState_ = IDerivationState_.UP_TO_DATE_;\n this.unboundDepsCount_ = 0;\n this.value_ = new CaughtException(null);\n this.name_ = void 0;\n this.triggeredBy_ = void 0;\n this.flags_ = 0;\n this.derivation = void 0;\n // N.B: unminified as it is used by MST\n this.setter_ = void 0;\n this.isTracing_ = TraceMode.NONE;\n this.scope_ = void 0;\n this.equals_ = void 0;\n this.requiresReaction_ = void 0;\n this.keepAlive_ = void 0;\n this.onBOL = void 0;\n this.onBUOL = void 0;\n if (!options.get) die(31);\n this.derivation = options.get;\n this.name_ = options.name || \"ComputedValue\";\n if (options.set) this.setter_ = createAction(\"ComputedValue-setter\", options.set);\n this.equals_ = options.equals || (options.compareStructural || options.struct ? comparer.structural : comparer[\"default\"]);\n this.scope_ = options.context;\n this.requiresReaction_ = options.requiresReaction;\n this.keepAlive_ = !!options.keepAlive;\n }\n var _proto = ComputedValue.prototype;\n _proto.onBecomeStale_ = function onBecomeStale_() {\n propagateMaybeChanged(this);\n };\n _proto.onBO = function onBO() {\n if (this.onBOL) this.onBOL.forEach(function(listener) {\n return listener();\n });\n };\n _proto.onBUO = function onBUO() {\n if (this.onBUOL) this.onBUOL.forEach(function(listener) {\n return listener();\n });\n };\n /**\n * Returns the current value of this computed value.\n * Will evaluate its computation first if needed.\n */ _proto.get = function get() {\n if (this.isComputing) die(32, this.name_, this.derivation);\n if (globalState.inBatch === 0 && // !globalState.trackingDerivatpion &&\n this.observers_.size === 0 && !this.keepAlive_) {\n if (shouldCompute(this)) {\n this.warnAboutUntrackedRead_();\n startBatch(); // See perf test 'computed memoization'\n this.value_ = this.computeValue_(false);\n endBatch();\n }\n } else {\n reportObserved(this);\n if (shouldCompute(this)) {\n var prevTrackingContext = globalState.trackingContext;\n if (this.keepAlive_ && !prevTrackingContext) globalState.trackingContext = this;\n if (this.trackAndCompute()) propagateChangeConfirmed(this);\n globalState.trackingContext = prevTrackingContext;\n }\n }\n var result = this.value_;\n if (isCaughtException(result)) throw result.cause;\n return result;\n };\n _proto.set = function set(value) {\n if (this.setter_) {\n if (this.isRunningSetter) die(33, this.name_);\n this.isRunningSetter = true;\n try {\n this.setter_.call(this.scope_, value);\n } finally{\n this.isRunningSetter = false;\n }\n } else die(34, this.name_);\n };\n _proto.trackAndCompute = function trackAndCompute() {\n // N.B: unminified as it is used by MST\n var oldValue = this.value_;\n var wasSuspended = /* see #1208 */ this.dependenciesState_ === IDerivationState_.NOT_TRACKING_;\n var newValue = this.computeValue_(true);\n var changed = wasSuspended || isCaughtException(oldValue) || isCaughtException(newValue) || !this.equals_(oldValue, newValue);\n if (changed) this.value_ = newValue;\n return changed;\n };\n _proto.computeValue_ = function computeValue_(track) {\n this.isComputing = true;\n // don't allow state changes during computation\n var prev = allowStateChangesStart(false);\n var res;\n if (track) res = trackDerivedFunction(this, this.derivation, this.scope_);\n else {\n if (globalState.disableErrorBoundaries === true) res = this.derivation.call(this.scope_);\n else try {\n res = this.derivation.call(this.scope_);\n } catch (e) {\n res = new CaughtException(e);\n }\n }\n allowStateChangesEnd(prev);\n this.isComputing = false;\n return res;\n };\n _proto.suspend_ = function suspend_() {\n if (!this.keepAlive_) {\n clearObserving(this);\n this.value_ = undefined; // don't hold on to computed value!\n }\n };\n _proto.observe_ = function observe_(listener, fireImmediately) {\n var _this = this;\n var firstTime = true;\n var prevValue = undefined;\n return autorun(function() {\n // TODO: why is this in a different place than the spyReport() function? in all other observables it's called in the same place\n var newValue = _this.get();\n if (!firstTime || fireImmediately) {\n var prevU = untrackedStart();\n listener({\n observableKind: \"computed\",\n debugObjectName: _this.name_,\n type: UPDATE,\n object: _this,\n newValue: newValue,\n oldValue: prevValue\n });\n untrackedEnd(prevU);\n }\n firstTime = false;\n prevValue = newValue;\n });\n };\n _proto.warnAboutUntrackedRead_ = function warnAboutUntrackedRead_() {\n return;\n };\n _proto.toString = function toString() {\n return this.name_ + \"[\" + this.derivation.toString() + \"]\";\n };\n _proto.valueOf = function valueOf() {\n return toPrimitive(this.get());\n };\n _proto[Symbol.toPrimitive] = function() {\n return this.valueOf();\n };\n return _createClass(ComputedValue, [\n {\n key: \"isComputing\",\n get: function get() {\n return getFlag(this.flags_, ComputedValue.isComputingMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isComputingMask_, newValue);\n }\n },\n {\n key: \"isRunningSetter\",\n get: function get() {\n return getFlag(this.flags_, ComputedValue.isRunningSetterMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isRunningSetterMask_, newValue);\n }\n },\n {\n key: \"isBeingObserved\",\n get: function get() {\n return getFlag(this.flags_, ComputedValue.isBeingObservedMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isBeingObservedMask_, newValue);\n }\n },\n {\n key: \"isPendingUnobservation\",\n get: function get() {\n return getFlag(this.flags_, ComputedValue.isPendingUnobservationMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isPendingUnobservationMask_, newValue);\n }\n },\n {\n key: \"diffValue\",\n get: function get() {\n return getFlag(this.flags_, ComputedValue.diffValueMask_) ? 1 : 0;\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, ComputedValue.diffValueMask_, newValue === 1 ? true : false);\n }\n }\n ]);\n}();\nComputedValue.isComputingMask_ = 1;\nComputedValue.isRunningSetterMask_ = 2;\nComputedValue.isBeingObservedMask_ = 4;\nComputedValue.isPendingUnobservationMask_ = 8;\nComputedValue.diffValueMask_ = 16;\nvar isComputedValue = /*#__PURE__*/ createInstanceofPredicate(\"ComputedValue\", ComputedValue);\nvar IDerivationState_;\n(function(IDerivationState_) {\n // before being run or (outside batch and not being observed)\n // at this point derivation is not holding any data about dependency tree\n IDerivationState_[IDerivationState_[\"NOT_TRACKING_\"] = -1] = \"NOT_TRACKING_\";\n // no shallow dependency changed since last computation\n // won't recalculate derivation\n // this is what makes mobx fast\n IDerivationState_[IDerivationState_[\"UP_TO_DATE_\"] = 0] = \"UP_TO_DATE_\";\n // some deep dependency changed, but don't know if shallow dependency changed\n // will require to check first if UP_TO_DATE or POSSIBLY_STALE\n // currently only ComputedValue will propagate POSSIBLY_STALE\n //\n // having this state is second big optimization:\n // don't have to recompute on every dependency change, but only when it's needed\n IDerivationState_[IDerivationState_[\"POSSIBLY_STALE_\"] = 1] = \"POSSIBLY_STALE_\";\n // A shallow dependency has changed since last computation and the derivation\n // will need to recompute when it's needed next.\n IDerivationState_[IDerivationState_[\"STALE_\"] = 2] = \"STALE_\";\n})(IDerivationState_ || (IDerivationState_ = {}));\nvar TraceMode;\n(function(TraceMode) {\n TraceMode[TraceMode[\"NONE\"] = 0] = \"NONE\";\n TraceMode[TraceMode[\"LOG\"] = 1] = \"LOG\";\n TraceMode[TraceMode[\"BREAK\"] = 2] = \"BREAK\";\n})(TraceMode || (TraceMode = {}));\nvar CaughtException = function CaughtException(cause) {\n this.cause = void 0;\n this.cause = cause;\n// Empty\n};\nfunction isCaughtException(e) {\n return e instanceof CaughtException;\n}\n/**\n * Finds out whether any dependency of the derivation has actually changed.\n * If dependenciesState is 1 then it will recalculate dependencies,\n * if any dependency changed it will propagate it by changing dependenciesState to 2.\n *\n * By iterating over the dependencies in the same order that they were reported and\n * stopping on the first change, all the recalculations are only called for ComputedValues\n * that will be tracked by derivation. That is because we assume that if the first x\n * dependencies of the derivation doesn't change then the derivation should run the same way\n * up until accessing x-th dependency.\n */ function shouldCompute(derivation) {\n switch(derivation.dependenciesState_){\n case IDerivationState_.UP_TO_DATE_:\n return false;\n case IDerivationState_.NOT_TRACKING_:\n case IDerivationState_.STALE_:\n return true;\n case IDerivationState_.POSSIBLY_STALE_:\n // state propagation can occur outside of action/reactive context #2195\n var prevAllowStateReads = allowStateReadsStart(true);\n var prevUntracked = untrackedStart(); // no need for those computeds to be reported, they will be picked up in trackDerivedFunction.\n var obs = derivation.observing_, l = obs.length;\n for(var i = 0; i < l; i++){\n var obj = obs[i];\n if (isComputedValue(obj)) {\n if (globalState.disableErrorBoundaries) obj.get();\n else try {\n obj.get();\n } catch (e) {\n // we are not interested in the value *or* exception at this moment, but if there is one, notify all\n untrackedEnd(prevUntracked);\n allowStateReadsEnd(prevAllowStateReads);\n return true;\n }\n // if ComputedValue `obj` actually changed it will be computed and propagated to its observers.\n // and `derivation` is an observer of `obj`\n // invariantShouldCompute(derivation)\n if (derivation.dependenciesState_ === IDerivationState_.STALE_) {\n untrackedEnd(prevUntracked);\n allowStateReadsEnd(prevAllowStateReads);\n return true;\n }\n }\n }\n changeDependenciesStateTo0(derivation);\n untrackedEnd(prevUntracked);\n allowStateReadsEnd(prevAllowStateReads);\n return false;\n }\n}\nfunction isComputingDerivation() {\n return globalState.trackingDerivation !== null; // filter out actions inside computations\n}\nfunction checkIfStateModificationsAreAllowed(atom) {\n var hasObservers;\n return;\n}\nfunction checkIfStateReadsAreAllowed(observable) {}\n/**\n * Executes the provided function `f` and tracks which observables are being accessed.\n * The tracking information is stored on the `derivation` object and the derivation is registered\n * as observer of any of the accessed observables.\n */ function trackDerivedFunction(derivation, f, context) {\n var prevAllowStateReads = allowStateReadsStart(true);\n changeDependenciesStateTo0(derivation);\n // Preallocate array; will be trimmed by bindDependencies.\n derivation.newObserving_ = new Array(// Reserve constant space for initial dependencies, dynamic space otherwise.\n // See https://github.com/mobxjs/mobx/pull/3833\n derivation.runId_ === 0 ? 100 : derivation.observing_.length);\n derivation.unboundDepsCount_ = 0;\n derivation.runId_ = ++globalState.runId;\n var prevTracking = globalState.trackingDerivation;\n globalState.trackingDerivation = derivation;\n globalState.inBatch++;\n var result;\n if (globalState.disableErrorBoundaries === true) result = f.call(context);\n else try {\n result = f.call(context);\n } catch (e) {\n result = new CaughtException(e);\n }\n globalState.inBatch--;\n globalState.trackingDerivation = prevTracking;\n bindDependencies(derivation);\n warnAboutDerivationWithoutDependencies(derivation);\n allowStateReadsEnd(prevAllowStateReads);\n return result;\n}\nfunction warnAboutDerivationWithoutDependencies(derivation) {\n return;\n}\n/**\n * diffs newObserving with observing.\n * update observing to be newObserving with unique observables\n * notify observers that become observed/unobserved\n */ function bindDependencies(derivation) {\n // invariant(derivation.dependenciesState !== IDerivationState.NOT_TRACKING, \"INTERNAL ERROR bindDependencies expects derivation.dependenciesState !== -1\");\n var prevObserving = derivation.observing_;\n var observing = derivation.observing_ = derivation.newObserving_;\n var lowestNewObservingDerivationState = IDerivationState_.UP_TO_DATE_;\n // Go through all new observables and check diffValue: (this list can contain duplicates):\n // 0: first occurrence, change to 1 and keep it\n // 1: extra occurrence, drop it\n var i0 = 0, l = derivation.unboundDepsCount_;\n for(var i = 0; i < l; i++){\n var dep = observing[i];\n if (dep.diffValue === 0) {\n dep.diffValue = 1;\n if (i0 !== i) observing[i0] = dep;\n i0++;\n }\n // Upcast is 'safe' here, because if dep is IObservable, `dependenciesState` will be undefined,\n // not hitting the condition\n if (dep.dependenciesState_ > lowestNewObservingDerivationState) lowestNewObservingDerivationState = dep.dependenciesState_;\n }\n observing.length = i0;\n derivation.newObserving_ = null; // newObserving shouldn't be needed outside tracking (statement moved down to work around FF bug, see #614)\n // Go through all old observables and check diffValue: (it is unique after last bindDependencies)\n // 0: it's not in new observables, unobserve it\n // 1: it keeps being observed, don't want to notify it. change to 0\n l = prevObserving.length;\n while(l--){\n var _dep = prevObserving[l];\n if (_dep.diffValue === 0) removeObserver(_dep, derivation);\n _dep.diffValue = 0;\n }\n // Go through all new observables and check diffValue: (now it should be unique)\n // 0: it was set to 0 in last loop. don't need to do anything.\n // 1: it wasn't observed, let's observe it. set back to 0\n while(i0--){\n var _dep2 = observing[i0];\n if (_dep2.diffValue === 1) {\n _dep2.diffValue = 0;\n addObserver(_dep2, derivation);\n }\n }\n // Some new observed derivations may become stale during this derivation computation\n // so they have had no chance to propagate staleness (#916)\n if (lowestNewObservingDerivationState !== IDerivationState_.UP_TO_DATE_) {\n derivation.dependenciesState_ = lowestNewObservingDerivationState;\n derivation.onBecomeStale_();\n }\n}\nfunction clearObserving(derivation) {\n // invariant(globalState.inBatch > 0, \"INTERNAL ERROR clearObserving should be called only inside batch\");\n var obs = derivation.observing_;\n derivation.observing_ = [];\n var i = obs.length;\n while(i--)removeObserver(obs[i], derivation);\n derivation.dependenciesState_ = IDerivationState_.NOT_TRACKING_;\n}\nfunction untracked(action) {\n var prev = untrackedStart();\n try {\n return action();\n } finally{\n untrackedEnd(prev);\n }\n}\nfunction untrackedStart() {\n var prev = globalState.trackingDerivation;\n globalState.trackingDerivation = null;\n return prev;\n}\nfunction untrackedEnd(prev) {\n globalState.trackingDerivation = prev;\n}\nfunction allowStateReadsStart(allowStateReads) {\n var prev = globalState.allowStateReads;\n globalState.allowStateReads = allowStateReads;\n return prev;\n}\nfunction allowStateReadsEnd(prev) {\n globalState.allowStateReads = prev;\n}\n/**\n * needed to keep `lowestObserverState` correct. when changing from (2 or 1) to 0\n *\n */ function changeDependenciesStateTo0(derivation) {\n if (derivation.dependenciesState_ === IDerivationState_.UP_TO_DATE_) return;\n derivation.dependenciesState_ = IDerivationState_.UP_TO_DATE_;\n var obs = derivation.observing_;\n var i = obs.length;\n while(i--)obs[i].lowestObserverState_ = IDerivationState_.UP_TO_DATE_;\n}\n/**\n * These values will persist if global state is reset\n */ var persistentKeys = [\n \"mobxGuid\",\n \"spyListeners\",\n \"enforceActions\",\n \"computedRequiresReaction\",\n \"reactionRequiresObservable\",\n \"observableRequiresReaction\",\n \"allowStateReads\",\n \"disableErrorBoundaries\",\n \"runId\",\n \"UNCHANGED\",\n \"useProxies\"\n];\nvar MobXGlobals = function MobXGlobals() {\n /**\n * MobXGlobals version.\n * MobX compatiblity with other versions loaded in memory as long as this version matches.\n * It indicates that the global state still stores similar information\n *\n * N.B: this version is unrelated to the package version of MobX, and is only the version of the\n * internal state storage of MobX, and can be the same across many different package versions\n */ this.version = 6;\n /**\n * globally unique token to signal unchanged\n */ this.UNCHANGED = {};\n /**\n * Currently running derivation\n */ this.trackingDerivation = null;\n /**\n * Currently running reaction. This determines if we currently have a reactive context.\n * (Tracking derivation is also set for temporal tracking of computed values inside actions,\n * but trackingReaction can only be set by a form of Reaction)\n */ this.trackingContext = null;\n /**\n * Each time a derivation is tracked, it is assigned a unique run-id\n */ this.runId = 0;\n /**\n * 'guid' for general purpose. Will be persisted amongst resets.\n */ this.mobxGuid = 0;\n /**\n * Are we in a batch block? (and how many of them)\n */ this.inBatch = 0;\n /**\n * Observables that don't have observers anymore, and are about to be\n * suspended, unless somebody else accesses it in the same batch\n *\n * @type {IObservable[]}\n */ this.pendingUnobservations = [];\n /**\n * List of scheduled, not yet executed, reactions.\n */ this.pendingReactions = [];\n /**\n * Are we currently processing reactions?\n */ this.isRunningReactions = false;\n /**\n * Is it allowed to change observables at this point?\n * In general, MobX doesn't allow that when running computations and React.render.\n * To ensure that those functions stay pure.\n */ this.allowStateChanges = false;\n /**\n * Is it allowed to read observables at this point?\n * Used to hold the state needed for `observableRequiresReaction`\n */ this.allowStateReads = true;\n /**\n * If strict mode is enabled, state changes are by default not allowed\n */ this.enforceActions = true;\n /**\n * Spy callbacks\n */ this.spyListeners = [];\n /**\n * Globally attached error handlers that react specifically to errors in reactions\n */ this.globalReactionErrorHandlers = [];\n /**\n * Warn if computed values are accessed outside a reactive context\n */ this.computedRequiresReaction = false;\n /**\n * (Experimental)\n * Warn if you try to create to derivation / reactive context without accessing any observable.\n */ this.reactionRequiresObservable = false;\n /**\n * (Experimental)\n * Warn if observables are accessed outside a reactive context\n */ this.observableRequiresReaction = false;\n /*\n * Don't catch and rethrow exceptions. This is useful for inspecting the state of\n * the stack when an exception occurs while debugging.\n */ this.disableErrorBoundaries = false;\n /*\n * If true, we are already handling an exception in an action. Any errors in reactions should be suppressed, as\n * they are not the cause, see: https://github.com/mobxjs/mobx/issues/1836\n */ this.suppressReactionErrors = false;\n this.useProxies = true;\n /*\n * print warnings about code that would fail if proxies weren't available\n */ this.verifyProxies = false;\n /**\n * False forces all object's descriptors to\n * writable: true\n * configurable: true\n */ this.safeDescriptors = true;\n};\nvar canMergeGlobalState = true;\nvar isolateCalled = false;\nvar globalState = /*#__PURE__*/ function() {\n var global1 = /*#__PURE__*/ getGlobal();\n if (global1.__mobxInstanceCount > 0 && !global1.__mobxGlobals) canMergeGlobalState = false;\n if (global1.__mobxGlobals && global1.__mobxGlobals.version !== new MobXGlobals().version) canMergeGlobalState = false;\n if (!canMergeGlobalState) {\n // Because this is a IIFE we need to let isolateCalled a chance to change\n // so we run it after the event loop completed at least 1 iteration\n setTimeout(function() {\n if (!isolateCalled) die(35);\n }, 1);\n return new MobXGlobals();\n } else if (global1.__mobxGlobals) {\n global1.__mobxInstanceCount += 1;\n if (!global1.__mobxGlobals.UNCHANGED) global1.__mobxGlobals.UNCHANGED = {};\n // make merge backward compatible\n return global1.__mobxGlobals;\n } else {\n global1.__mobxInstanceCount = 1;\n return global1.__mobxGlobals = /*#__PURE__*/ new MobXGlobals();\n }\n}();\nfunction isolateGlobalState() {\n if (globalState.pendingReactions.length || globalState.inBatch || globalState.isRunningReactions) die(36);\n isolateCalled = true;\n if (canMergeGlobalState) {\n var global1 = getGlobal();\n if (--global1.__mobxInstanceCount === 0) global1.__mobxGlobals = undefined;\n globalState = new MobXGlobals();\n }\n}\nfunction getGlobalState() {\n return globalState;\n}\n/**\n * For testing purposes only; this will break the internal state of existing observables,\n * but can be used to get back at a stable state after throwing errors\n */ function resetGlobalState() {\n var defaultGlobals = new MobXGlobals();\n for(var key in defaultGlobals)if (persistentKeys.indexOf(key) === -1) globalState[key] = defaultGlobals[key];\n globalState.allowStateChanges = !globalState.enforceActions;\n}\nfunction hasObservers(observable) {\n return observable.observers_ && observable.observers_.size > 0;\n}\nfunction getObservers(observable) {\n return observable.observers_;\n}\n// function invariantObservers(observable: IObservable) {\n// const list = observable.observers\n// const map = observable.observersIndexes\n// const l = list.length\n// for (let i = 0; i < l; i++) {\n// const id = list[i].__mapid\n// if (i) {\n// invariant(map[id] === i, \"INTERNAL ERROR maps derivation.__mapid to index in list\") // for performance\n// } else {\n// invariant(!(id in map), \"INTERNAL ERROR observer on index 0 shouldn't be held in map.\") // for performance\n// }\n// }\n// invariant(\n// list.length === 0 || Object.keys(map).length === list.length - 1,\n// \"INTERNAL ERROR there is no junk in map\"\n// )\n// }\nfunction addObserver(observable, node) {\n // invariant(node.dependenciesState !== -1, \"INTERNAL ERROR, can add only dependenciesState !== -1\");\n // invariant(observable._observers.indexOf(node) === -1, \"INTERNAL ERROR add already added node\");\n // invariantObservers(observable);\n observable.observers_.add(node);\n if (observable.lowestObserverState_ > node.dependenciesState_) observable.lowestObserverState_ = node.dependenciesState_;\n// invariantObservers(observable);\n// invariant(observable._observers.indexOf(node) !== -1, \"INTERNAL ERROR didn't add node\");\n}\nfunction removeObserver(observable, node) {\n // invariant(globalState.inBatch > 0, \"INTERNAL ERROR, remove should be called only inside batch\");\n // invariant(observable._observers.indexOf(node) !== -1, \"INTERNAL ERROR remove already removed node\");\n // invariantObservers(observable);\n observable.observers_[\"delete\"](node);\n if (observable.observers_.size === 0) // deleting last observer\n queueForUnobservation(observable);\n// invariantObservers(observable);\n// invariant(observable._observers.indexOf(node) === -1, \"INTERNAL ERROR remove already removed node2\");\n}\nfunction queueForUnobservation(observable) {\n if (observable.isPendingUnobservation === false) {\n // invariant(observable._observers.length === 0, \"INTERNAL ERROR, should only queue for unobservation unobserved observables\");\n observable.isPendingUnobservation = true;\n globalState.pendingUnobservations.push(observable);\n }\n}\n/**\n * Batch starts a transaction, at least for purposes of memoizing ComputedValues when nothing else does.\n * During a batch `onBecomeUnobserved` will be called at most once per observable.\n * Avoids unnecessary recalculations.\n */ function startBatch() {\n globalState.inBatch++;\n}\nfunction endBatch() {\n if (--globalState.inBatch === 0) {\n runReactions();\n // the batch is actually about to finish, all unobserving should happen here.\n var list = globalState.pendingUnobservations;\n for(var i = 0; i < list.length; i++){\n var observable = list[i];\n observable.isPendingUnobservation = false;\n if (observable.observers_.size === 0) {\n if (observable.isBeingObserved) {\n // if this observable had reactive observers, trigger the hooks\n observable.isBeingObserved = false;\n observable.onBUO();\n }\n if (observable instanceof ComputedValue) // computed values are automatically teared down when the last observer leaves\n // this process happens recursively, this computed might be the last observabe of another, etc..\n observable.suspend_();\n }\n }\n globalState.pendingUnobservations = [];\n }\n}\nfunction reportObserved(observable) {\n checkIfStateReadsAreAllowed(observable);\n var derivation = globalState.trackingDerivation;\n if (derivation !== null) {\n /**\n * Simple optimization, give each derivation run an unique id (runId)\n * Check if last time this observable was accessed the same runId is used\n * if this is the case, the relation is already known\n */ if (derivation.runId_ !== observable.lastAccessedBy_) {\n observable.lastAccessedBy_ = derivation.runId_;\n // Tried storing newObserving, or observing, or both as Set, but performance didn't come close...\n derivation.newObserving_[derivation.unboundDepsCount_++] = observable;\n if (!observable.isBeingObserved && globalState.trackingContext) {\n observable.isBeingObserved = true;\n observable.onBO();\n }\n }\n return observable.isBeingObserved;\n } else if (observable.observers_.size === 0 && globalState.inBatch > 0) queueForUnobservation(observable);\n return false;\n}\n// function invariantLOS(observable: IObservable, msg: string) {\n// // it's expensive so better not run it in produciton. but temporarily helpful for testing\n// const min = getObservers(observable).reduce((a, b) => Math.min(a, b.dependenciesState), 2)\n// if (min >= observable.lowestObserverState) return // <- the only assumption about `lowestObserverState`\n// throw new Error(\n// \"lowestObserverState is wrong for \" +\n// msg +\n// \" because \" +\n// min +\n// \" < \" +\n// observable.lowestObserverState\n// )\n// }\n/**\n * NOTE: current propagation mechanism will in case of self reruning autoruns behave unexpectedly\n * It will propagate changes to observers from previous run\n * It's hard or maybe impossible (with reasonable perf) to get it right with current approach\n * Hopefully self reruning autoruns aren't a feature people should depend on\n * Also most basic use cases should be ok\n */ // Called by Atom when its value changes\nfunction propagateChanged(observable) {\n // invariantLOS(observable, \"changed start\");\n if (observable.lowestObserverState_ === IDerivationState_.STALE_) return;\n observable.lowestObserverState_ = IDerivationState_.STALE_;\n // Ideally we use for..of here, but the downcompiled version is really slow...\n observable.observers_.forEach(function(d) {\n if (d.dependenciesState_ === IDerivationState_.UP_TO_DATE_) d.onBecomeStale_();\n d.dependenciesState_ = IDerivationState_.STALE_;\n });\n// invariantLOS(observable, \"changed end\");\n}\n// Called by ComputedValue when it recalculate and its value changed\nfunction propagateChangeConfirmed(observable) {\n // invariantLOS(observable, \"confirmed start\");\n if (observable.lowestObserverState_ === IDerivationState_.STALE_) return;\n observable.lowestObserverState_ = IDerivationState_.STALE_;\n observable.observers_.forEach(function(d) {\n if (d.dependenciesState_ === IDerivationState_.POSSIBLY_STALE_) d.dependenciesState_ = IDerivationState_.STALE_;\n else if (d.dependenciesState_ === IDerivationState_.UP_TO_DATE_ // this happens during computing of `d`, just keep lowestObserverState up to date.\n ) observable.lowestObserverState_ = IDerivationState_.UP_TO_DATE_;\n });\n// invariantLOS(observable, \"confirmed end\");\n}\n// Used by computed when its dependency changed, but we don't wan't to immediately recompute.\nfunction propagateMaybeChanged(observable) {\n // invariantLOS(observable, \"maybe start\");\n if (observable.lowestObserverState_ !== IDerivationState_.UP_TO_DATE_) return;\n observable.lowestObserverState_ = IDerivationState_.POSSIBLY_STALE_;\n observable.observers_.forEach(function(d) {\n if (d.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {\n d.dependenciesState_ = IDerivationState_.POSSIBLY_STALE_;\n d.onBecomeStale_();\n }\n });\n// invariantLOS(observable, \"maybe end\");\n}\nfunction logTraceInfo(derivation, observable) {\n console.log(\"[mobx.trace] '\" + derivation.name_ + \"' is invalidated due to a change in: '\" + observable.name_ + \"'\");\n if (derivation.isTracing_ === TraceMode.BREAK) {\n var lines = [];\n printDepTree(getDependencyTree(derivation), lines, 1);\n // prettier-ignore\n new Function(\"debugger;\\n/*\\nTracing '\" + derivation.name_ + \"'\\n\\nYou are entering this break point because derivation '\" + derivation.name_ + \"' is being traced and '\" + observable.name_ + \"' is now forcing it to update.\\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\\n\\n\" + (derivation instanceof ComputedValue ? derivation.derivation.toString().replace(/[*]\\//g, \"/\") : \"\") + \"\\n\\nThe dependencies for this derivation are:\\n\\n\" + lines.join(\"\\n\") + \"\\n*/\\n \")();\n }\n}\nfunction printDepTree(tree, lines, depth) {\n if (lines.length >= 1000) {\n lines.push(\"(and many more)\");\n return;\n }\n lines.push(\"\" + \"\\t\".repeat(depth - 1) + tree.name);\n if (tree.dependencies) tree.dependencies.forEach(function(child) {\n return printDepTree(child, lines, depth + 1);\n });\n}\nvar Reaction = /*#__PURE__*/ function() {\n function Reaction(name_, onInvalidate_, errorHandler_, requiresObservable_) {\n if (name_ === void 0) name_ = \"Reaction\";\n this.name_ = void 0;\n this.onInvalidate_ = void 0;\n this.errorHandler_ = void 0;\n this.requiresObservable_ = void 0;\n this.observing_ = [];\n // nodes we are looking at. Our value depends on these nodes\n this.newObserving_ = [];\n this.dependenciesState_ = IDerivationState_.NOT_TRACKING_;\n this.runId_ = 0;\n this.unboundDepsCount_ = 0;\n this.flags_ = 0;\n this.isTracing_ = TraceMode.NONE;\n this.name_ = name_;\n this.onInvalidate_ = onInvalidate_;\n this.errorHandler_ = errorHandler_;\n this.requiresObservable_ = requiresObservable_;\n }\n var _proto = Reaction.prototype;\n _proto.onBecomeStale_ = function onBecomeStale_() {\n this.schedule_();\n };\n _proto.schedule_ = function schedule_() {\n if (!this.isScheduled) {\n this.isScheduled = true;\n globalState.pendingReactions.push(this);\n runReactions();\n }\n } /**\n * internal, use schedule() if you intend to kick off a reaction\n */ ;\n _proto.runReaction_ = function runReaction_() {\n if (!this.isDisposed) {\n startBatch();\n this.isScheduled = false;\n var prev = globalState.trackingContext;\n globalState.trackingContext = this;\n if (shouldCompute(this)) {\n this.isTrackPending = true;\n try {\n this.onInvalidate_();\n } catch (e) {\n this.reportExceptionInDerivation_(e);\n }\n }\n globalState.trackingContext = prev;\n endBatch();\n }\n };\n _proto.track = function track(fn) {\n if (this.isDisposed) return;\n startBatch();\n var notify = isSpyEnabled();\n var startTime;\n this.isRunning = true;\n var prevReaction = globalState.trackingContext; // reactions could create reactions...\n globalState.trackingContext = this;\n var result = trackDerivedFunction(this, fn, undefined);\n globalState.trackingContext = prevReaction;\n this.isRunning = false;\n this.isTrackPending = false;\n if (this.isDisposed) // disposed during last run. Clean up everything that was bound after the dispose call.\n clearObserving(this);\n if (isCaughtException(result)) this.reportExceptionInDerivation_(result.cause);\n endBatch();\n };\n _proto.reportExceptionInDerivation_ = function reportExceptionInDerivation_(error) {\n var _this = this;\n if (this.errorHandler_) {\n this.errorHandler_(error, this);\n return;\n }\n if (globalState.disableErrorBoundaries) throw error;\n var message = \"[mobx] uncaught error in '\" + this + \"'\";\n if (!globalState.suppressReactionErrors) console.error(message, error);\n // prettier-ignore\n globalState.globalReactionErrorHandlers.forEach(function(f) {\n return f(error, _this);\n });\n };\n _proto.dispose = function dispose() {\n if (!this.isDisposed) {\n this.isDisposed = true;\n if (!this.isRunning) {\n // if disposed while running, clean up later. Maybe not optimal, but rare case\n startBatch();\n clearObserving(this);\n endBatch();\n }\n }\n };\n _proto.getDisposer_ = function getDisposer_(abortSignal) {\n var _this2 = this;\n var dispose = function dispose() {\n _this2.dispose();\n abortSignal == null || abortSignal.removeEventListener == null || abortSignal.removeEventListener(\"abort\", dispose);\n };\n abortSignal == null || abortSignal.addEventListener == null || abortSignal.addEventListener(\"abort\", dispose);\n dispose[$mobx] = this;\n return dispose;\n };\n _proto.toString = function toString() {\n return \"Reaction[\" + this.name_ + \"]\";\n };\n _proto.trace = function trace$1(enterBreakPoint) {\n if (enterBreakPoint === void 0) enterBreakPoint = false;\n trace(this, enterBreakPoint);\n };\n return _createClass(Reaction, [\n {\n key: \"isDisposed\",\n get: function get() {\n return getFlag(this.flags_, Reaction.isDisposedMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Reaction.isDisposedMask_, newValue);\n }\n },\n {\n key: \"isScheduled\",\n get: function get() {\n return getFlag(this.flags_, Reaction.isScheduledMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Reaction.isScheduledMask_, newValue);\n }\n },\n {\n key: \"isTrackPending\",\n get: function get() {\n return getFlag(this.flags_, Reaction.isTrackPendingMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Reaction.isTrackPendingMask_, newValue);\n }\n },\n {\n key: \"isRunning\",\n get: function get() {\n return getFlag(this.flags_, Reaction.isRunningMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Reaction.isRunningMask_, newValue);\n }\n },\n {\n key: \"diffValue\",\n get: function get() {\n return getFlag(this.flags_, Reaction.diffValueMask_) ? 1 : 0;\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Reaction.diffValueMask_, newValue === 1 ? true : false);\n }\n }\n ]);\n}();\nReaction.isDisposedMask_ = 1;\nReaction.isScheduledMask_ = 2;\nReaction.isTrackPendingMask_ = 4;\nReaction.isRunningMask_ = 8;\nReaction.diffValueMask_ = 16;\nfunction onReactionError(handler) {\n globalState.globalReactionErrorHandlers.push(handler);\n return function() {\n var idx = globalState.globalReactionErrorHandlers.indexOf(handler);\n if (idx >= 0) globalState.globalReactionErrorHandlers.splice(idx, 1);\n };\n}\n/**\n * Magic number alert!\n * Defines within how many times a reaction is allowed to re-trigger itself\n * until it is assumed that this is gonna be a never ending loop...\n */ var MAX_REACTION_ITERATIONS = 100;\nvar reactionScheduler = function reactionScheduler(f) {\n return f();\n};\nfunction runReactions() {\n // Trampolining, if runReactions are already running, new reactions will be picked up\n if (globalState.inBatch > 0 || globalState.isRunningReactions) return;\n reactionScheduler(runReactionsHelper);\n}\nfunction runReactionsHelper() {\n globalState.isRunningReactions = true;\n var allReactions = globalState.pendingReactions;\n var iterations = 0;\n // While running reactions, new reactions might be triggered.\n // Hence we work with two variables and check whether\n // we converge to no remaining reactions after a while.\n while(allReactions.length > 0){\n if (++iterations === MAX_REACTION_ITERATIONS) {\n console.error(\"[mobx] cycle in reaction: \" + allReactions[0]);\n allReactions.splice(0); // clear reactions\n }\n var remainingReactions = allReactions.splice(0);\n for(var i = 0, l = remainingReactions.length; i < l; i++)remainingReactions[i].runReaction_();\n }\n globalState.isRunningReactions = false;\n}\nvar isReaction = /*#__PURE__*/ createInstanceofPredicate(\"Reaction\", Reaction);\nfunction setReactionScheduler(fn) {\n var baseScheduler = reactionScheduler;\n reactionScheduler = function reactionScheduler(f) {\n return fn(function() {\n return baseScheduler(f);\n });\n };\n}\nfunction isSpyEnabled() {\n return false;\n}\nfunction spyReport(event) {\n var listeners, i, l;\n return;\n}\nfunction spyReportStart(event) {\n var change;\n return;\n}\nvar END_EVENT = {\n type: \"report-end\",\n spyReportEnd: true\n};\nfunction spyReportEnd(change) {\n return;\n}\nfunction spy(listener) {\n console.warn(\"[mobx.spy] Is a no-op in production builds\");\n return function() {};\n}\nvar ACTION = \"action\";\nvar ACTION_BOUND = \"action.bound\";\nvar AUTOACTION = \"autoAction\";\nvar AUTOACTION_BOUND = \"autoAction.bound\";\nvar DEFAULT_ACTION_NAME = \"\";\nvar actionAnnotation = /*#__PURE__*/ createActionAnnotation(ACTION);\nvar actionBoundAnnotation = /*#__PURE__*/ createActionAnnotation(ACTION_BOUND, {\n bound: true\n});\nvar autoActionAnnotation = /*#__PURE__*/ createActionAnnotation(AUTOACTION, {\n autoAction: true\n});\nvar autoActionBoundAnnotation = /*#__PURE__*/ createActionAnnotation(AUTOACTION_BOUND, {\n autoAction: true,\n bound: true\n});\nfunction createActionFactory(autoAction) {\n var res = function action(arg1, arg2) {\n // action(fn() {})\n if (isFunction(arg1)) return createAction(arg1.name || DEFAULT_ACTION_NAME, arg1, autoAction);\n // action(\"name\", fn() {})\n if (isFunction(arg2)) return createAction(arg1, arg2, autoAction);\n // @action (2022.3 Decorators)\n if (is20223Decorator(arg2)) return (autoAction ? autoActionAnnotation : actionAnnotation).decorate_20223_(arg1, arg2);\n // @action\n if (isStringish(arg2)) return storeAnnotation(arg1, arg2, autoAction ? autoActionAnnotation : actionAnnotation);\n // action(\"name\") & @action(\"name\")\n if (isStringish(arg1)) return createDecoratorAnnotation(createActionAnnotation(autoAction ? AUTOACTION : ACTION, {\n name: arg1,\n autoAction: autoAction\n }));\n };\n return res;\n}\nvar action = /*#__PURE__*/ createActionFactory(false);\nObject.assign(action, actionAnnotation);\nvar autoAction = /*#__PURE__*/ createActionFactory(true);\nObject.assign(autoAction, autoActionAnnotation);\naction.bound = /*#__PURE__*/ createDecoratorAnnotation(actionBoundAnnotation);\nautoAction.bound = /*#__PURE__*/ createDecoratorAnnotation(autoActionBoundAnnotation);\nfunction runInAction(fn) {\n return executeAction(fn.name || DEFAULT_ACTION_NAME, false, fn, this, undefined);\n}\nfunction isAction(thing) {\n return isFunction(thing) && thing.isMobxAction === true;\n}\n/**\n * Creates a named reactive view and keeps it alive, so that the view is always\n * updated if one of the dependencies changes, even when the view is not further used by something else.\n * @param view The reactive view\n * @returns disposer function, which can be used to stop the view from being updated in the future.\n */ function autorun(view, opts) {\n var _opts$name, _opts, _opts2, _opts3;\n if (opts === void 0) opts = EMPTY_OBJECT;\n var name = (_opts$name = (_opts = opts) == null ? void 0 : _opts.name) != null ? _opts$name : \"Autorun\";\n var runSync = !opts.scheduler && !opts.delay;\n var reaction;\n if (runSync) // normal autorun\n reaction = new Reaction(name, function() {\n this.track(reactionRunner);\n }, opts.onError, opts.requiresObservable);\n else {\n var scheduler = createSchedulerFromOptions(opts);\n // debounced autorun\n var isScheduled = false;\n reaction = new Reaction(name, function() {\n if (!isScheduled) {\n isScheduled = true;\n scheduler(function() {\n isScheduled = false;\n if (!reaction.isDisposed) reaction.track(reactionRunner);\n });\n }\n }, opts.onError, opts.requiresObservable);\n }\n function reactionRunner() {\n view(reaction);\n }\n if (!((_opts2 = opts) != null && (_opts2 = _opts2.signal) != null && _opts2.aborted)) reaction.schedule_();\n return reaction.getDisposer_((_opts3 = opts) == null ? void 0 : _opts3.signal);\n}\nvar run = function run(f) {\n return f();\n};\nfunction createSchedulerFromOptions(opts) {\n return opts.scheduler ? opts.scheduler : opts.delay ? function(f) {\n return setTimeout(f, opts.delay);\n } : run;\n}\nfunction reaction(expression, effect, opts) {\n var _opts$name2, _opts4, _opts5;\n if (opts === void 0) opts = EMPTY_OBJECT;\n var name = (_opts$name2 = opts.name) != null ? _opts$name2 : \"Reaction\";\n var effectAction = action(name, opts.onError ? wrapErrorHandler(opts.onError, effect) : effect);\n var runSync = !opts.scheduler && !opts.delay;\n var scheduler = createSchedulerFromOptions(opts);\n var firstTime = true;\n var isScheduled = false;\n var value;\n var equals = opts.compareStructural ? comparer.structural : opts.equals || comparer[\"default\"];\n var r = new Reaction(name, function() {\n if (firstTime || runSync) reactionRunner();\n else if (!isScheduled) {\n isScheduled = true;\n scheduler(reactionRunner);\n }\n }, opts.onError, opts.requiresObservable);\n function reactionRunner() {\n isScheduled = false;\n if (r.isDisposed) return;\n var changed = false;\n var oldValue = value;\n r.track(function() {\n var nextValue = allowStateChanges(false, function() {\n return expression(r);\n });\n changed = firstTime || !equals(value, nextValue);\n value = nextValue;\n });\n if (firstTime && opts.fireImmediately) effectAction(value, oldValue, r);\n else if (!firstTime && changed) effectAction(value, oldValue, r);\n firstTime = false;\n }\n if (!((_opts4 = opts) != null && (_opts4 = _opts4.signal) != null && _opts4.aborted)) r.schedule_();\n return r.getDisposer_((_opts5 = opts) == null ? void 0 : _opts5.signal);\n}\nfunction wrapErrorHandler(errorHandler, baseFn) {\n return function() {\n try {\n return baseFn.apply(this, arguments);\n } catch (e) {\n errorHandler.call(this, e);\n }\n };\n}\nvar ON_BECOME_OBSERVED = \"onBO\";\nvar ON_BECOME_UNOBSERVED = \"onBUO\";\nfunction onBecomeObserved(thing, arg2, arg3) {\n return interceptHook(ON_BECOME_OBSERVED, thing, arg2, arg3);\n}\nfunction onBecomeUnobserved(thing, arg2, arg3) {\n return interceptHook(ON_BECOME_UNOBSERVED, thing, arg2, arg3);\n}\nfunction interceptHook(hook, thing, arg2, arg3) {\n var atom = typeof arg3 === \"function\" ? getAtom(thing, arg2) : getAtom(thing);\n var cb = isFunction(arg3) ? arg3 : arg2;\n var listenersKey = hook + \"L\";\n if (atom[listenersKey]) atom[listenersKey].add(cb);\n else atom[listenersKey] = new Set([\n cb\n ]);\n return function() {\n var hookListeners = atom[listenersKey];\n if (hookListeners) {\n hookListeners[\"delete\"](cb);\n if (hookListeners.size === 0) delete atom[listenersKey];\n }\n };\n}\nvar NEVER = \"never\";\nvar ALWAYS = \"always\";\nvar OBSERVED = \"observed\";\n// const IF_AVAILABLE = \"ifavailable\"\nfunction configure(options) {\n if (options.isolateGlobalState === true) isolateGlobalState();\n var useProxies = options.useProxies, enforceActions = options.enforceActions;\n if (useProxies !== undefined) globalState.useProxies = useProxies === ALWAYS ? true : useProxies === NEVER ? false : typeof Proxy !== \"undefined\";\n if (useProxies === \"ifavailable\") globalState.verifyProxies = true;\n if (enforceActions !== undefined) {\n var ea = enforceActions === ALWAYS ? ALWAYS : enforceActions === OBSERVED;\n globalState.enforceActions = ea;\n globalState.allowStateChanges = ea === true || ea === ALWAYS ? false : true;\n }\n [\n \"computedRequiresReaction\",\n \"reactionRequiresObservable\",\n \"observableRequiresReaction\",\n \"disableErrorBoundaries\",\n \"safeDescriptors\"\n ].forEach(function(key) {\n if (key in options) globalState[key] = !!options[key];\n });\n globalState.allowStateReads = !globalState.observableRequiresReaction;\n if (options.reactionScheduler) setReactionScheduler(options.reactionScheduler);\n}\nfunction extendObservable(target, properties, annotations, options) {\n // Pull descriptors first, so we don't have to deal with props added by administration ($mobx)\n var descriptors = getOwnPropertyDescriptors(properties);\n initObservable(function() {\n var adm = asObservableObject(target, options)[$mobx];\n ownKeys(descriptors).forEach(function(key) {\n adm.extend_(key, descriptors[key], // must pass \"undefined\" for { key: undefined }\n !annotations ? true : key in annotations ? annotations[key] : true);\n });\n });\n return target;\n}\nfunction getDependencyTree(thing, property) {\n return nodeToDependencyTree(getAtom(thing, property));\n}\nfunction nodeToDependencyTree(node) {\n var result = {\n name: node.name_\n };\n if (node.observing_ && node.observing_.length > 0) result.dependencies = unique(node.observing_).map(nodeToDependencyTree);\n return result;\n}\nfunction getObserverTree(thing, property) {\n return nodeToObserverTree(getAtom(thing, property));\n}\nfunction nodeToObserverTree(node) {\n var result = {\n name: node.name_\n };\n if (hasObservers(node)) result.observers = Array.from(getObservers(node)).map(nodeToObserverTree);\n return result;\n}\nfunction unique(list) {\n return Array.from(new Set(list));\n}\nvar generatorId = 0;\nfunction FlowCancellationError() {\n this.message = \"FLOW_CANCELLED\";\n}\nFlowCancellationError.prototype = /*#__PURE__*/ Object.create(Error.prototype);\nfunction isFlowCancellationError(error) {\n return error instanceof FlowCancellationError;\n}\nvar flowAnnotation = /*#__PURE__*/ createFlowAnnotation(\"flow\");\nvar flowBoundAnnotation = /*#__PURE__*/ createFlowAnnotation(\"flow.bound\", {\n bound: true\n});\nvar flow = /*#__PURE__*/ Object.assign(function flow(arg1, arg2) {\n // @flow (2022.3 Decorators)\n if (is20223Decorator(arg2)) return flowAnnotation.decorate_20223_(arg1, arg2);\n // @flow\n if (isStringish(arg2)) return storeAnnotation(arg1, arg2, flowAnnotation);\n var generator = arg1;\n var name = generator.name || \"\";\n // Implementation based on https://github.com/tj/co/blob/master/index.js\n var res = function res() {\n var ctx = this;\n var args = arguments;\n var runId = ++generatorId;\n var gen = action(name + \" - runid: \" + runId + \" - init\", generator).apply(ctx, args);\n var rejector;\n var pendingPromise = undefined;\n var promise = new Promise(function(resolve, reject) {\n var stepId = 0;\n rejector = reject;\n function onFulfilled(res) {\n pendingPromise = undefined;\n var ret;\n try {\n ret = action(name + \" - runid: \" + runId + \" - yield \" + stepId++, gen.next).call(gen, res);\n } catch (e) {\n return reject(e);\n }\n next(ret);\n }\n function onRejected(err) {\n pendingPromise = undefined;\n var ret;\n try {\n ret = action(name + \" - runid: \" + runId + \" - yield \" + stepId++, gen[\"throw\"]).call(gen, err);\n } catch (e) {\n return reject(e);\n }\n next(ret);\n }\n function next(ret) {\n if (isFunction(ret == null ? void 0 : ret.then)) {\n // an async iterator\n ret.then(next, reject);\n return;\n }\n if (ret.done) return resolve(ret.value);\n pendingPromise = Promise.resolve(ret.value);\n return pendingPromise.then(onFulfilled, onRejected);\n }\n onFulfilled(undefined); // kick off the process\n });\n promise.cancel = action(name + \" - runid: \" + runId + \" - cancel\", function() {\n try {\n if (pendingPromise) cancelPromise(pendingPromise);\n // Finally block can return (or yield) stuff..\n var _res = gen[\"return\"](undefined);\n // eat anything that promise would do, it's cancelled!\n var yieldedPromise = Promise.resolve(_res.value);\n yieldedPromise.then(noop, noop);\n cancelPromise(yieldedPromise); // maybe it can be cancelled :)\n // reject our original promise\n rejector(new FlowCancellationError());\n } catch (e) {\n rejector(e); // there could be a throwing finally block\n }\n });\n return promise;\n };\n res.isMobXFlow = true;\n return res;\n}, flowAnnotation);\nflow.bound = /*#__PURE__*/ createDecoratorAnnotation(flowBoundAnnotation);\nfunction cancelPromise(promise) {\n if (isFunction(promise.cancel)) promise.cancel();\n}\nfunction flowResult(result) {\n return result; // just tricking TypeScript :)\n}\nfunction isFlow(fn) {\n return (fn == null ? void 0 : fn.isMobXFlow) === true;\n}\nfunction interceptReads(thing, propOrHandler, handler) {\n var target;\n if (isObservableMap(thing) || isObservableArray(thing) || isObservableValue(thing)) target = getAdministration(thing);\n else if (isObservableObject(thing)) target = getAdministration(thing, propOrHandler);\n target.dehancer = typeof propOrHandler === \"function\" ? propOrHandler : handler;\n return function() {\n target.dehancer = undefined;\n };\n}\nfunction intercept(thing, propOrHandler, handler) {\n if (isFunction(handler)) return interceptProperty(thing, propOrHandler, handler);\n else return interceptInterceptable(thing, propOrHandler);\n}\nfunction interceptInterceptable(thing, handler) {\n return getAdministration(thing).intercept_(handler);\n}\nfunction interceptProperty(thing, property, handler) {\n return getAdministration(thing, property).intercept_(handler);\n}\nfunction _isComputed(value, property) {\n if (property === undefined) return isComputedValue(value);\n if (isObservableObject(value) === false) return false;\n if (!value[$mobx].values_.has(property)) return false;\n var atom = getAtom(value, property);\n return isComputedValue(atom);\n}\nfunction isComputed(value) {\n return _isComputed(value);\n}\nfunction isComputedProp(value, propName) {\n return _isComputed(value, propName);\n}\nfunction _isObservable(value, property) {\n if (!value) return false;\n if (property !== undefined) {\n if (isObservableObject(value)) return value[$mobx].values_.has(property);\n return false;\n }\n // For first check, see #701\n return isObservableObject(value) || !!value[$mobx] || isAtom(value) || isReaction(value) || isComputedValue(value);\n}\nfunction isObservable(value) {\n return _isObservable(value);\n}\nfunction isObservableProp(value, propName) {\n return _isObservable(value, propName);\n}\nfunction keys(obj) {\n if (isObservableObject(obj)) return obj[$mobx].keys_();\n if (isObservableMap(obj) || isObservableSet(obj)) return Array.from(obj.keys());\n if (isObservableArray(obj)) return obj.map(function(_, index) {\n return index;\n });\n die(5);\n}\nfunction values(obj) {\n if (isObservableObject(obj)) return keys(obj).map(function(key) {\n return obj[key];\n });\n if (isObservableMap(obj)) return keys(obj).map(function(key) {\n return obj.get(key);\n });\n if (isObservableSet(obj)) return Array.from(obj.values());\n if (isObservableArray(obj)) return obj.slice();\n die(6);\n}\nfunction entries(obj) {\n if (isObservableObject(obj)) return keys(obj).map(function(key) {\n return [\n key,\n obj[key]\n ];\n });\n if (isObservableMap(obj)) return keys(obj).map(function(key) {\n return [\n key,\n obj.get(key)\n ];\n });\n if (isObservableSet(obj)) return Array.from(obj.entries());\n if (isObservableArray(obj)) return obj.map(function(key, index) {\n return [\n index,\n key\n ];\n });\n die(7);\n}\nfunction set(obj, key, value) {\n if (arguments.length === 2 && !isObservableSet(obj)) {\n startBatch();\n var _values = key;\n try {\n for(var _key in _values)set(obj, _key, _values[_key]);\n } finally{\n endBatch();\n }\n return;\n }\n if (isObservableObject(obj)) obj[$mobx].set_(key, value);\n else if (isObservableMap(obj)) obj.set(key, value);\n else if (isObservableSet(obj)) obj.add(key);\n else if (isObservableArray(obj)) {\n if (typeof key !== \"number\") key = parseInt(key, 10);\n if (key < 0) die(\"Invalid index: '\" + key + \"'\");\n startBatch();\n if (key >= obj.length) obj.length = key + 1;\n obj[key] = value;\n endBatch();\n } else die(8);\n}\nfunction remove(obj, key) {\n if (isObservableObject(obj)) obj[$mobx].delete_(key);\n else if (isObservableMap(obj)) obj[\"delete\"](key);\n else if (isObservableSet(obj)) obj[\"delete\"](key);\n else if (isObservableArray(obj)) {\n if (typeof key !== \"number\") key = parseInt(key, 10);\n obj.splice(key, 1);\n } else die(9);\n}\nfunction has(obj, key) {\n if (isObservableObject(obj)) return obj[$mobx].has_(key);\n else if (isObservableMap(obj)) return obj.has(key);\n else if (isObservableSet(obj)) return obj.has(key);\n else if (isObservableArray(obj)) return key >= 0 && key < obj.length;\n die(10);\n}\nfunction get(obj, key) {\n if (!has(obj, key)) return undefined;\n if (isObservableObject(obj)) return obj[$mobx].get_(key);\n else if (isObservableMap(obj)) return obj.get(key);\n else if (isObservableArray(obj)) return obj[key];\n die(11);\n}\nfunction apiDefineProperty(obj, key, descriptor) {\n if (isObservableObject(obj)) return obj[$mobx].defineProperty_(key, descriptor);\n die(39);\n}\nfunction apiOwnKeys(obj) {\n if (isObservableObject(obj)) return obj[$mobx].ownKeys_();\n die(38);\n}\nfunction observe(thing, propOrCb, cbOrFire, fireImmediately) {\n if (isFunction(cbOrFire)) return observeObservableProperty(thing, propOrCb, cbOrFire, fireImmediately);\n else return observeObservable(thing, propOrCb, cbOrFire);\n}\nfunction observeObservable(thing, listener, fireImmediately) {\n return getAdministration(thing).observe_(listener, fireImmediately);\n}\nfunction observeObservableProperty(thing, property, listener, fireImmediately) {\n return getAdministration(thing, property).observe_(listener, fireImmediately);\n}\nfunction cache(map, key, value) {\n map.set(key, value);\n return value;\n}\nfunction toJSHelper(source, __alreadySeen) {\n if (source == null || typeof source !== \"object\" || source instanceof Date || !isObservable(source)) return source;\n if (isObservableValue(source) || isComputedValue(source)) return toJSHelper(source.get(), __alreadySeen);\n if (__alreadySeen.has(source)) return __alreadySeen.get(source);\n if (isObservableArray(source)) {\n var res = cache(__alreadySeen, source, new Array(source.length));\n source.forEach(function(value, idx) {\n res[idx] = toJSHelper(value, __alreadySeen);\n });\n return res;\n }\n if (isObservableSet(source)) {\n var _res = cache(__alreadySeen, source, new Set());\n source.forEach(function(value) {\n _res.add(toJSHelper(value, __alreadySeen));\n });\n return _res;\n }\n if (isObservableMap(source)) {\n var _res2 = cache(__alreadySeen, source, new Map());\n source.forEach(function(value, key) {\n _res2.set(key, toJSHelper(value, __alreadySeen));\n });\n return _res2;\n } else {\n // must be observable object\n var _res3 = cache(__alreadySeen, source, {});\n apiOwnKeys(source).forEach(function(key) {\n if (objectPrototype.propertyIsEnumerable.call(source, key)) _res3[key] = toJSHelper(source[key], __alreadySeen);\n });\n return _res3;\n }\n}\n/**\n * Recursively converts an observable to it's non-observable native counterpart.\n * It does NOT recurse into non-observables, these are left as they are, even if they contain observables.\n * Computed and other non-enumerable properties are completely ignored.\n * Complex scenarios require custom solution, eg implementing `toJSON` or using `serializr` lib.\n */ function toJS(source, options) {\n return toJSHelper(source, new Map());\n}\nfunction trace() {\n var enterBreakPoint, _len, args, _key, derivation;\n return;\n}\nfunction getAtomFromArgs(args) {\n switch(args.length){\n case 0:\n return globalState.trackingDerivation;\n case 1:\n return getAtom(args[0]);\n case 2:\n return getAtom(args[0], args[1]);\n }\n}\n/**\n * During a transaction no views are updated until the end of the transaction.\n * The transaction will be run synchronously nonetheless.\n *\n * @param action a function that updates some reactive state\n * @returns any value that was returned by the 'action' parameter.\n */ function transaction(action, thisArg) {\n if (thisArg === void 0) thisArg = undefined;\n startBatch();\n try {\n return action.apply(thisArg);\n } finally{\n endBatch();\n }\n}\nfunction when(predicate, arg1, arg2) {\n if (arguments.length === 1 || arg1 && typeof arg1 === \"object\") return whenPromise(predicate, arg1);\n return _when(predicate, arg1, arg2 || {});\n}\nfunction _when(predicate, effect, opts) {\n var timeoutHandle;\n if (typeof opts.timeout === \"number\") {\n var error = new Error(\"WHEN_TIMEOUT\");\n timeoutHandle = setTimeout(function() {\n if (!disposer[$mobx].isDisposed) {\n disposer();\n if (opts.onError) opts.onError(error);\n else throw error;\n }\n }, opts.timeout);\n }\n opts.name = \"When\";\n var effectAction = createAction(\"When-effect\", effect);\n // eslint-disable-next-line\n var disposer = autorun(function(r) {\n // predicate should not change state\n var cond = allowStateChanges(false, predicate);\n if (cond) {\n r.dispose();\n if (timeoutHandle) clearTimeout(timeoutHandle);\n effectAction();\n }\n }, opts);\n return disposer;\n}\nfunction whenPromise(predicate, opts) {\n var _opts$signal;\n if (opts != null && (_opts$signal = opts.signal) != null && _opts$signal.aborted) return Object.assign(Promise.reject(new Error(\"WHEN_ABORTED\")), {\n cancel: function cancel() {\n return null;\n }\n });\n var cancel;\n var abort;\n var res = new Promise(function(resolve, reject) {\n var _opts$signal2;\n var disposer = _when(predicate, resolve, _extends({}, opts, {\n onError: reject\n }));\n cancel = function cancel() {\n disposer();\n reject(new Error(\"WHEN_CANCELLED\"));\n };\n abort = function abort() {\n disposer();\n reject(new Error(\"WHEN_ABORTED\"));\n };\n opts == null || (_opts$signal2 = opts.signal) == null || _opts$signal2.addEventListener == null || _opts$signal2.addEventListener(\"abort\", abort);\n })[\"finally\"](function() {\n var _opts$signal3;\n return opts == null || (_opts$signal3 = opts.signal) == null || _opts$signal3.removeEventListener == null ? void 0 : _opts$signal3.removeEventListener(\"abort\", abort);\n });\n res.cancel = cancel;\n return res;\n}\nfunction getAdm(target) {\n return target[$mobx];\n}\n// Optimization: we don't need the intermediate objects and could have a completely custom administration for DynamicObjects,\n// and skip either the internal values map, or the base object with its property descriptors!\nvar objectProxyTraps = {\n has: function has(target, name) {\n return getAdm(target).has_(name);\n },\n get: function get(target, name) {\n return getAdm(target).get_(name);\n },\n set: function set(target, name, value) {\n var _getAdm$set_;\n if (!isStringish(name)) return false;\n // null (intercepted) -> true (success)\n return (_getAdm$set_ = getAdm(target).set_(name, value, true)) != null ? _getAdm$set_ : true;\n },\n deleteProperty: function deleteProperty(target, name) {\n var _getAdm$delete_;\n if (!isStringish(name)) return false;\n // null (intercepted) -> true (success)\n return (_getAdm$delete_ = getAdm(target).delete_(name, true)) != null ? _getAdm$delete_ : true;\n },\n defineProperty: function defineProperty(target, name, descriptor) {\n var _getAdm$definePropert;\n // null (intercepted) -> true (success)\n return (_getAdm$definePropert = getAdm(target).defineProperty_(name, descriptor)) != null ? _getAdm$definePropert : true;\n },\n ownKeys: function ownKeys(target) {\n return getAdm(target).ownKeys_();\n },\n preventExtensions: function preventExtensions(target) {\n die(13);\n }\n};\nfunction asDynamicObservableObject(target, options) {\n var _target$$mobx, _target$$mobx$proxy_;\n assertProxies();\n target = asObservableObject(target, options);\n return (_target$$mobx$proxy_ = (_target$$mobx = target[$mobx]).proxy_) != null ? _target$$mobx$proxy_ : _target$$mobx.proxy_ = new Proxy(target, objectProxyTraps);\n}\nfunction hasInterceptors(interceptable) {\n return interceptable.interceptors_ !== undefined && interceptable.interceptors_.length > 0;\n}\nfunction registerInterceptor(interceptable, handler) {\n var interceptors = interceptable.interceptors_ || (interceptable.interceptors_ = []);\n interceptors.push(handler);\n return once(function() {\n var idx = interceptors.indexOf(handler);\n if (idx !== -1) interceptors.splice(idx, 1);\n });\n}\nfunction interceptChange(interceptable, change) {\n var prevU = untrackedStart();\n try {\n // Interceptor can modify the array, copy it to avoid concurrent modification, see #1950\n var interceptors = [].concat(interceptable.interceptors_ || []);\n for(var i = 0, l = interceptors.length; i < l; i++){\n change = interceptors[i](change);\n if (change && !change.type) die(14);\n if (!change) break;\n }\n return change;\n } finally{\n untrackedEnd(prevU);\n }\n}\nfunction hasListeners(listenable) {\n return listenable.changeListeners_ !== undefined && listenable.changeListeners_.length > 0;\n}\nfunction registerListener(listenable, handler) {\n var listeners = listenable.changeListeners_ || (listenable.changeListeners_ = []);\n listeners.push(handler);\n return once(function() {\n var idx = listeners.indexOf(handler);\n if (idx !== -1) listeners.splice(idx, 1);\n });\n}\nfunction notifyListeners(listenable, change) {\n var prevU = untrackedStart();\n var listeners = listenable.changeListeners_;\n if (!listeners) return;\n listeners = listeners.slice();\n for(var i = 0, l = listeners.length; i < l; i++)listeners[i](change);\n untrackedEnd(prevU);\n}\nfunction makeObservable(target, annotations, options) {\n initObservable(function() {\n var _annotations;\n var adm = asObservableObject(target, options)[$mobx];\n // Default to decorators\n (_annotations = annotations) != null ? _annotations : annotations = collectStoredAnnotations(target);\n // Annotate\n ownKeys(annotations).forEach(function(key) {\n return adm.make_(key, annotations[key]);\n });\n });\n return target;\n}\n// proto[keysSymbol] = new Set()\nvar keysSymbol = /*#__PURE__*/ Symbol(\"mobx-keys\");\nfunction makeAutoObservable(target, overrides, options) {\n // Optimization: avoid visiting protos\n // Assumes that annotation.make_/.extend_ works the same for plain objects\n if (isPlainObject(target)) return extendObservable(target, target, overrides, options);\n initObservable(function() {\n var adm = asObservableObject(target, options)[$mobx];\n // Optimization: cache keys on proto\n // Assumes makeAutoObservable can be called only once per object and can't be used in subclass\n if (!target[keysSymbol]) {\n var proto = Object.getPrototypeOf(target);\n var keys = new Set([].concat(ownKeys(target), ownKeys(proto)));\n keys[\"delete\"](\"constructor\");\n keys[\"delete\"]($mobx);\n addHiddenProp(proto, keysSymbol, keys);\n }\n target[keysSymbol].forEach(function(key) {\n return adm.make_(key, // must pass \"undefined\" for { key: undefined }\n !overrides ? true : key in overrides ? overrides[key] : true);\n });\n });\n return target;\n}\nvar SPLICE = \"splice\";\nvar UPDATE = \"update\";\nvar MAX_SPLICE_SIZE = 10000; // See e.g. https://github.com/mobxjs/mobx/issues/859\nvar arrayTraps = {\n get: function get(target, name) {\n var adm = target[$mobx];\n if (name === $mobx) return adm;\n if (name === \"length\") return adm.getArrayLength_();\n if (typeof name === \"string\" && !isNaN(name)) return adm.get_(parseInt(name));\n if (hasProp(arrayExtensions, name)) return arrayExtensions[name];\n return target[name];\n },\n set: function set(target, name, value) {\n var adm = target[$mobx];\n if (name === \"length\") adm.setArrayLength_(value);\n if (typeof name === \"symbol\" || isNaN(name)) target[name] = value;\n else // numeric string\n adm.set_(parseInt(name), value);\n return true;\n },\n preventExtensions: function preventExtensions() {\n die(15);\n }\n};\nvar ObservableArrayAdministration = /*#__PURE__*/ function() {\n function ObservableArrayAdministration(name, enhancer, owned_, legacyMode_) {\n if (name === void 0) name = \"ObservableArray\";\n this.owned_ = void 0;\n this.legacyMode_ = void 0;\n this.atom_ = void 0;\n this.values_ = [];\n // this is the prop that gets proxied, so can't replace it!\n this.interceptors_ = void 0;\n this.changeListeners_ = void 0;\n this.enhancer_ = void 0;\n this.dehancer = void 0;\n this.proxy_ = void 0;\n this.lastKnownLength_ = 0;\n this.owned_ = owned_;\n this.legacyMode_ = legacyMode_;\n this.atom_ = new Atom(name);\n this.enhancer_ = function(newV, oldV) {\n return enhancer(newV, oldV, \"ObservableArray[..]\");\n };\n }\n var _proto = ObservableArrayAdministration.prototype;\n _proto.dehanceValue_ = function dehanceValue_(value) {\n if (this.dehancer !== undefined) return this.dehancer(value);\n return value;\n };\n _proto.dehanceValues_ = function dehanceValues_(values) {\n if (this.dehancer !== undefined && values.length > 0) return values.map(this.dehancer);\n return values;\n };\n _proto.intercept_ = function intercept_(handler) {\n return registerInterceptor(this, handler);\n };\n _proto.observe_ = function observe_(listener, fireImmediately) {\n if (fireImmediately === void 0) fireImmediately = false;\n if (fireImmediately) listener({\n observableKind: \"array\",\n object: this.proxy_,\n debugObjectName: this.atom_.name_,\n type: \"splice\",\n index: 0,\n added: this.values_.slice(),\n addedCount: this.values_.length,\n removed: [],\n removedCount: 0\n });\n return registerListener(this, listener);\n };\n _proto.getArrayLength_ = function getArrayLength_() {\n this.atom_.reportObserved();\n return this.values_.length;\n };\n _proto.setArrayLength_ = function setArrayLength_(newLength) {\n if (typeof newLength !== \"number\" || isNaN(newLength) || newLength < 0) die(\"Out of range: \" + newLength);\n var currentLength = this.values_.length;\n if (newLength === currentLength) return;\n else if (newLength > currentLength) {\n var newItems = new Array(newLength - currentLength);\n for(var i = 0; i < newLength - currentLength; i++)newItems[i] = undefined;\n // No Array.fill everywhere...\n this.spliceWithArray_(currentLength, 0, newItems);\n } else this.spliceWithArray_(newLength, currentLength - newLength);\n };\n _proto.updateArrayLength_ = function updateArrayLength_(oldLength, delta) {\n if (oldLength !== this.lastKnownLength_) die(16);\n this.lastKnownLength_ += delta;\n if (this.legacyMode_ && delta > 0) reserveArrayBuffer(oldLength + delta + 1);\n };\n _proto.spliceWithArray_ = function spliceWithArray_(index, deleteCount, newItems) {\n var _this = this;\n checkIfStateModificationsAreAllowed(this.atom_);\n var length = this.values_.length;\n if (index === undefined) index = 0;\n else if (index > length) index = length;\n else if (index < 0) index = Math.max(0, length + index);\n if (arguments.length === 1) deleteCount = length - index;\n else if (deleteCount === undefined || deleteCount === null) deleteCount = 0;\n else deleteCount = Math.max(0, Math.min(deleteCount, length - index));\n if (newItems === undefined) newItems = EMPTY_ARRAY;\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this.proxy_,\n type: SPLICE,\n index: index,\n removedCount: deleteCount,\n added: newItems\n });\n if (!change) return EMPTY_ARRAY;\n deleteCount = change.removedCount;\n newItems = change.added;\n }\n newItems = newItems.length === 0 ? newItems : newItems.map(function(v) {\n return _this.enhancer_(v, undefined);\n });\n if (this.legacyMode_ || false) {\n var lengthDelta = newItems.length - deleteCount;\n this.updateArrayLength_(length, lengthDelta); // checks if internal array wasn't modified\n }\n var res = this.spliceItemsIntoValues_(index, deleteCount, newItems);\n if (deleteCount !== 0 || newItems.length !== 0) this.notifyArraySplice_(index, newItems, res);\n return this.dehanceValues_(res);\n };\n _proto.spliceItemsIntoValues_ = function spliceItemsIntoValues_(index, deleteCount, newItems) {\n if (newItems.length < MAX_SPLICE_SIZE) {\n var _this$values_;\n return (_this$values_ = this.values_).splice.apply(_this$values_, [\n index,\n deleteCount\n ].concat(newItems));\n } else {\n // The items removed by the splice\n var res = this.values_.slice(index, index + deleteCount);\n // The items that that should remain at the end of the array\n var oldItems = this.values_.slice(index + deleteCount);\n // New length is the previous length + addition count - deletion count\n this.values_.length += newItems.length - deleteCount;\n for(var i = 0; i < newItems.length; i++)this.values_[index + i] = newItems[i];\n for(var _i = 0; _i < oldItems.length; _i++)this.values_[index + newItems.length + _i] = oldItems[_i];\n return res;\n }\n };\n _proto.notifyArrayChildUpdate_ = function notifyArrayChildUpdate_(index, newValue, oldValue) {\n var notifySpy = !this.owned_ && isSpyEnabled();\n var notify = hasListeners(this);\n var change = notify || notifySpy ? {\n observableKind: \"array\",\n object: this.proxy_,\n type: UPDATE,\n debugObjectName: this.atom_.name_,\n index: index,\n newValue: newValue,\n oldValue: oldValue\n } : null;\n this.atom_.reportChanged();\n if (notify) notifyListeners(this, change);\n };\n _proto.notifyArraySplice_ = function notifyArraySplice_(index, added, removed) {\n var notifySpy = !this.owned_ && isSpyEnabled();\n var notify = hasListeners(this);\n var change = notify || notifySpy ? {\n observableKind: \"array\",\n object: this.proxy_,\n debugObjectName: this.atom_.name_,\n type: SPLICE,\n index: index,\n removed: removed,\n added: added,\n removedCount: removed.length,\n addedCount: added.length\n } : null;\n this.atom_.reportChanged();\n // conform: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/observe\n if (notify) notifyListeners(this, change);\n };\n _proto.get_ = function get_(index) {\n if (this.legacyMode_ && index >= this.values_.length) {\n console.warn(\"[mobx] Out of bounds read: \" + index);\n return undefined;\n }\n this.atom_.reportObserved();\n return this.dehanceValue_(this.values_[index]);\n };\n _proto.set_ = function set_(index, newValue) {\n var values = this.values_;\n if (this.legacyMode_ && index > values.length) // out of bounds\n die(17, index, values.length);\n if (index < values.length) {\n // update at index in range\n checkIfStateModificationsAreAllowed(this.atom_);\n var oldValue = values[index];\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: UPDATE,\n object: this.proxy_,\n // since \"this\" is the real array we need to pass its proxy\n index: index,\n newValue: newValue\n });\n if (!change) return;\n newValue = change.newValue;\n }\n newValue = this.enhancer_(newValue, oldValue);\n var changed = newValue !== oldValue;\n if (changed) {\n values[index] = newValue;\n this.notifyArrayChildUpdate_(index, newValue, oldValue);\n }\n } else {\n // For out of bound index, we don't create an actual sparse array,\n // but rather fill the holes with undefined (same as setArrayLength_).\n // This could be considered a bug.\n var newItems = new Array(index + 1 - values.length);\n for(var i = 0; i < newItems.length - 1; i++)newItems[i] = undefined;\n // No Array.fill everywhere...\n newItems[newItems.length - 1] = newValue;\n this.spliceWithArray_(values.length, 0, newItems);\n }\n };\n return ObservableArrayAdministration;\n}();\nfunction createObservableArray(initialValues, enhancer, name, owned) {\n if (name === void 0) name = \"ObservableArray\";\n if (owned === void 0) owned = false;\n assertProxies();\n return initObservable(function() {\n var adm = new ObservableArrayAdministration(name, enhancer, owned, false);\n addHiddenFinalProp(adm.values_, $mobx, adm);\n var proxy = new Proxy(adm.values_, arrayTraps);\n adm.proxy_ = proxy;\n if (initialValues && initialValues.length) adm.spliceWithArray_(0, 0, initialValues);\n return proxy;\n });\n}\n// eslint-disable-next-line\nvar arrayExtensions = {\n clear: function clear() {\n return this.splice(0);\n },\n replace: function replace(newItems) {\n var adm = this[$mobx];\n return adm.spliceWithArray_(0, adm.values_.length, newItems);\n },\n // Used by JSON.stringify\n toJSON: function toJSON() {\n return this.slice();\n },\n /*\n * functions that do alter the internal structure of the array, (based on lib.es6.d.ts)\n * since these functions alter the inner structure of the array, the have side effects.\n * Because the have side effects, they should not be used in computed function,\n * and for that reason the do not call dependencyState.notifyObserved\n */ splice: function splice(index, deleteCount) {\n for(var _len = arguments.length, newItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++)newItems[_key - 2] = arguments[_key];\n var adm = this[$mobx];\n switch(arguments.length){\n case 0:\n return [];\n case 1:\n return adm.spliceWithArray_(index);\n case 2:\n return adm.spliceWithArray_(index, deleteCount);\n }\n return adm.spliceWithArray_(index, deleteCount, newItems);\n },\n spliceWithArray: function spliceWithArray(index, deleteCount, newItems) {\n return this[$mobx].spliceWithArray_(index, deleteCount, newItems);\n },\n push: function push() {\n var adm = this[$mobx];\n for(var _len2 = arguments.length, items = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)items[_key2] = arguments[_key2];\n adm.spliceWithArray_(adm.values_.length, 0, items);\n return adm.values_.length;\n },\n pop: function pop() {\n return this.splice(Math.max(this[$mobx].values_.length - 1, 0), 1)[0];\n },\n shift: function shift() {\n return this.splice(0, 1)[0];\n },\n unshift: function unshift() {\n var adm = this[$mobx];\n for(var _len3 = arguments.length, items = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++)items[_key3] = arguments[_key3];\n adm.spliceWithArray_(0, 0, items);\n return adm.values_.length;\n },\n reverse: function reverse() {\n // reverse by default mutates in place before returning the result\n // which makes it both a 'derivation' and a 'mutation'.\n if (globalState.trackingDerivation) die(37, \"reverse\");\n this.replace(this.slice().reverse());\n return this;\n },\n sort: function sort() {\n // sort by default mutates in place before returning the result\n // which goes against all good practices. Let's not change the array in place!\n if (globalState.trackingDerivation) die(37, \"sort\");\n var copy = this.slice();\n copy.sort.apply(copy, arguments);\n this.replace(copy);\n return this;\n },\n remove: function remove(value) {\n var adm = this[$mobx];\n var idx = adm.dehanceValues_(adm.values_).indexOf(value);\n if (idx > -1) {\n this.splice(idx, 1);\n return true;\n }\n return false;\n }\n};\n/**\n * Wrap function from prototype\n * Without this, everything works as well, but this works\n * faster as everything works on unproxied values\n */ addArrayExtension(\"at\", simpleFunc);\naddArrayExtension(\"concat\", simpleFunc);\naddArrayExtension(\"flat\", simpleFunc);\naddArrayExtension(\"includes\", simpleFunc);\naddArrayExtension(\"indexOf\", simpleFunc);\naddArrayExtension(\"join\", simpleFunc);\naddArrayExtension(\"lastIndexOf\", simpleFunc);\naddArrayExtension(\"slice\", simpleFunc);\naddArrayExtension(\"toString\", simpleFunc);\naddArrayExtension(\"toLocaleString\", simpleFunc);\naddArrayExtension(\"toSorted\", simpleFunc);\naddArrayExtension(\"toSpliced\", simpleFunc);\naddArrayExtension(\"with\", simpleFunc);\n// map\naddArrayExtension(\"every\", mapLikeFunc);\naddArrayExtension(\"filter\", mapLikeFunc);\naddArrayExtension(\"find\", mapLikeFunc);\naddArrayExtension(\"findIndex\", mapLikeFunc);\naddArrayExtension(\"findLast\", mapLikeFunc);\naddArrayExtension(\"findLastIndex\", mapLikeFunc);\naddArrayExtension(\"flatMap\", mapLikeFunc);\naddArrayExtension(\"forEach\", mapLikeFunc);\naddArrayExtension(\"map\", mapLikeFunc);\naddArrayExtension(\"some\", mapLikeFunc);\naddArrayExtension(\"toReversed\", mapLikeFunc);\n// reduce\naddArrayExtension(\"reduce\", reduceLikeFunc);\naddArrayExtension(\"reduceRight\", reduceLikeFunc);\nfunction addArrayExtension(funcName, funcFactory) {\n if (typeof Array.prototype[funcName] === \"function\") arrayExtensions[funcName] = funcFactory(funcName);\n}\n// Report and delegate to dehanced array\nfunction simpleFunc(funcName) {\n return function() {\n var adm = this[$mobx];\n adm.atom_.reportObserved();\n var dehancedValues = adm.dehanceValues_(adm.values_);\n return dehancedValues[funcName].apply(dehancedValues, arguments);\n };\n}\n// Make sure callbacks receive correct array arg #2326\nfunction mapLikeFunc(funcName) {\n return function(callback, thisArg) {\n var _this2 = this;\n var adm = this[$mobx];\n adm.atom_.reportObserved();\n var dehancedValues = adm.dehanceValues_(adm.values_);\n return dehancedValues[funcName](function(element, index) {\n return callback.call(thisArg, element, index, _this2);\n });\n };\n}\n// Make sure callbacks receive correct array arg #2326\nfunction reduceLikeFunc(funcName) {\n return function() {\n var _this3 = this;\n var adm = this[$mobx];\n adm.atom_.reportObserved();\n var dehancedValues = adm.dehanceValues_(adm.values_);\n // #2432 - reduce behavior depends on arguments.length\n var callback = arguments[0];\n arguments[0] = function(accumulator, currentValue, index) {\n return callback(accumulator, currentValue, index, _this3);\n };\n return dehancedValues[funcName].apply(dehancedValues, arguments);\n };\n}\nvar isObservableArrayAdministration = /*#__PURE__*/ createInstanceofPredicate(\"ObservableArrayAdministration\", ObservableArrayAdministration);\nfunction isObservableArray(thing) {\n return isObject(thing) && isObservableArrayAdministration(thing[$mobx]);\n}\nvar ObservableMapMarker = {};\nvar ADD = \"add\";\nvar DELETE = \"delete\";\n// just extend Map? See also https://gist.github.com/nestharus/13b4d74f2ef4a2f4357dbd3fc23c1e54\n// But: https://github.com/mobxjs/mobx/issues/1556\nvar ObservableMap = /*#__PURE__*/ function() {\n function ObservableMap(initialData, enhancer_, name_) {\n var _this = this;\n if (enhancer_ === void 0) enhancer_ = deepEnhancer;\n if (name_ === void 0) name_ = \"ObservableMap\";\n this.enhancer_ = void 0;\n this.name_ = void 0;\n this[$mobx] = ObservableMapMarker;\n this.data_ = void 0;\n this.hasMap_ = void 0;\n // hasMap, not hashMap >-).\n this.keysAtom_ = void 0;\n this.interceptors_ = void 0;\n this.changeListeners_ = void 0;\n this.dehancer = void 0;\n this.enhancer_ = enhancer_;\n this.name_ = name_;\n if (!isFunction(Map)) die(18);\n initObservable(function() {\n _this.keysAtom_ = createAtom(\"ObservableMap.keys()\");\n _this.data_ = new Map();\n _this.hasMap_ = new Map();\n if (initialData) _this.merge(initialData);\n });\n }\n var _proto = ObservableMap.prototype;\n _proto.has_ = function has_(key) {\n return this.data_.has(key);\n };\n _proto.has = function has(key) {\n var _this2 = this;\n if (!globalState.trackingDerivation) return this.has_(key);\n var entry = this.hasMap_.get(key);\n if (!entry) {\n var newEntry = entry = new ObservableValue(this.has_(key), referenceEnhancer, \"ObservableMap.key?\", false);\n this.hasMap_.set(key, newEntry);\n onBecomeUnobserved(newEntry, function() {\n return _this2.hasMap_[\"delete\"](key);\n });\n }\n return entry.get();\n };\n _proto.set = function set(key, value) {\n var hasKey = this.has_(key);\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: hasKey ? UPDATE : ADD,\n object: this,\n newValue: value,\n name: key\n });\n if (!change) return this;\n value = change.newValue;\n }\n if (hasKey) this.updateValue_(key, value);\n else this.addValue_(key, value);\n return this;\n };\n _proto[\"delete\"] = function _delete(key) {\n var _this3 = this;\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: DELETE,\n object: this,\n name: key\n });\n if (!change) return false;\n }\n if (this.has_(key)) {\n var notifySpy = isSpyEnabled();\n var notify = hasListeners(this);\n var _change = notify || notifySpy ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: DELETE,\n object: this,\n oldValue: this.data_.get(key).value_,\n name: key\n } : null;\n transaction(function() {\n var _this3$hasMap_$get;\n _this3.keysAtom_.reportChanged();\n (_this3$hasMap_$get = _this3.hasMap_.get(key)) == null || _this3$hasMap_$get.setNewValue_(false);\n var observable = _this3.data_.get(key);\n observable.setNewValue_(undefined);\n _this3.data_[\"delete\"](key);\n });\n if (notify) notifyListeners(this, _change);\n return true;\n }\n return false;\n };\n _proto.updateValue_ = function updateValue_(key, newValue) {\n var observable = this.data_.get(key);\n newValue = observable.prepareNewValue_(newValue);\n if (newValue !== globalState.UNCHANGED) {\n var notifySpy = isSpyEnabled();\n var notify = hasListeners(this);\n var change = notify || notifySpy ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: UPDATE,\n object: this,\n oldValue: observable.value_,\n name: key,\n newValue: newValue\n } : null;\n observable.setNewValue_(newValue);\n if (notify) notifyListeners(this, change);\n }\n };\n _proto.addValue_ = function addValue_(key, newValue) {\n var _this4 = this;\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n transaction(function() {\n var _this4$hasMap_$get;\n var observable = new ObservableValue(newValue, _this4.enhancer_, \"ObservableMap.key\", false);\n _this4.data_.set(key, observable);\n newValue = observable.value_; // value might have been changed\n (_this4$hasMap_$get = _this4.hasMap_.get(key)) == null || _this4$hasMap_$get.setNewValue_(true);\n _this4.keysAtom_.reportChanged();\n });\n var notifySpy = isSpyEnabled();\n var notify = hasListeners(this);\n var change = notify || notifySpy ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: ADD,\n object: this,\n name: key,\n newValue: newValue\n } : null;\n if (notify) notifyListeners(this, change);\n };\n _proto.get = function get(key) {\n if (this.has(key)) return this.dehanceValue_(this.data_.get(key).get());\n return this.dehanceValue_(undefined);\n };\n _proto.dehanceValue_ = function dehanceValue_(value) {\n if (this.dehancer !== undefined) return this.dehancer(value);\n return value;\n };\n _proto.keys = function keys() {\n this.keysAtom_.reportObserved();\n return this.data_.keys();\n };\n _proto.values = function values() {\n var self1 = this;\n var keys = this.keys();\n return makeIterableForMap({\n next: function next() {\n var _keys$next = keys.next(), done = _keys$next.done, value = _keys$next.value;\n return {\n done: done,\n value: done ? undefined : self1.get(value)\n };\n }\n });\n };\n _proto.entries = function entries() {\n var self1 = this;\n var keys = this.keys();\n return makeIterableForMap({\n next: function next() {\n var _keys$next2 = keys.next(), done = _keys$next2.done, value = _keys$next2.value;\n return {\n done: done,\n value: done ? undefined : [\n value,\n self1.get(value)\n ]\n };\n }\n });\n };\n _proto[Symbol.iterator] = function() {\n return this.entries();\n };\n _proto.forEach = function forEach(callback, thisArg) {\n for(var _iterator = _createForOfIteratorHelperLoose(this), _step; !(_step = _iterator()).done;){\n var _step$value = _step.value, key = _step$value[0], value = _step$value[1];\n callback.call(thisArg, value, key, this);\n }\n } /** Merge another object into this object, returns this. */ ;\n _proto.merge = function merge(other) {\n var _this5 = this;\n if (isObservableMap(other)) other = new Map(other);\n transaction(function() {\n if (isPlainObject(other)) getPlainObjectKeys(other).forEach(function(key) {\n return _this5.set(key, other[key]);\n });\n else if (Array.isArray(other)) other.forEach(function(_ref) {\n var key = _ref[0], value = _ref[1];\n return _this5.set(key, value);\n });\n else if (isES6Map(other)) {\n if (!isPlainES6Map(other)) die(19, other);\n other.forEach(function(value, key) {\n return _this5.set(key, value);\n });\n } else if (other !== null && other !== undefined) die(20, other);\n });\n return this;\n };\n _proto.clear = function clear() {\n var _this6 = this;\n transaction(function() {\n untracked(function() {\n for(var _iterator2 = _createForOfIteratorHelperLoose(_this6.keys()), _step2; !(_step2 = _iterator2()).done;){\n var key = _step2.value;\n _this6[\"delete\"](key);\n }\n });\n });\n };\n _proto.replace = function replace(values) {\n var _this7 = this;\n // Implementation requirements:\n // - respect ordering of replacement map\n // - allow interceptors to run and potentially prevent individual operations\n // - don't recreate observables that already exist in original map (so we don't destroy existing subscriptions)\n // - don't _keysAtom.reportChanged if the keys of resulting map are indentical (order matters!)\n // - note that result map may differ from replacement map due to the interceptors\n transaction(function() {\n // Convert to map so we can do quick key lookups\n var replacementMap = convertToMap(values);\n var orderedData = new Map();\n // Used for optimization\n var keysReportChangedCalled = false;\n // Delete keys that don't exist in replacement map\n // if the key deletion is prevented by interceptor\n // add entry at the beginning of the result map\n for(var _iterator3 = _createForOfIteratorHelperLoose(_this7.data_.keys()), _step3; !(_step3 = _iterator3()).done;){\n var key = _step3.value;\n // Concurrently iterating/deleting keys\n // iterator should handle this correctly\n if (!replacementMap.has(key)) {\n var deleted = _this7[\"delete\"](key);\n // Was the key removed?\n if (deleted) // _keysAtom.reportChanged() was already called\n keysReportChangedCalled = true;\n else {\n // Delete prevented by interceptor\n var value = _this7.data_.get(key);\n orderedData.set(key, value);\n }\n }\n }\n // Merge entries\n for(var _iterator4 = _createForOfIteratorHelperLoose(replacementMap.entries()), _step4; !(_step4 = _iterator4()).done;){\n var _step4$value = _step4.value, _key = _step4$value[0], _value = _step4$value[1];\n // We will want to know whether a new key is added\n var keyExisted = _this7.data_.has(_key);\n // Add or update value\n _this7.set(_key, _value);\n // The addition could have been prevent by interceptor\n if (_this7.data_.has(_key)) {\n // The update could have been prevented by interceptor\n // and also we want to preserve existing values\n // so use value from _data map (instead of replacement map)\n var _value2 = _this7.data_.get(_key);\n orderedData.set(_key, _value2);\n // Was a new key added?\n if (!keyExisted) // _keysAtom.reportChanged() was already called\n keysReportChangedCalled = true;\n }\n }\n // Check for possible key order change\n if (!keysReportChangedCalled) {\n if (_this7.data_.size !== orderedData.size) // If size differs, keys are definitely modified\n _this7.keysAtom_.reportChanged();\n else {\n var iter1 = _this7.data_.keys();\n var iter2 = orderedData.keys();\n var next1 = iter1.next();\n var next2 = iter2.next();\n while(!next1.done){\n if (next1.value !== next2.value) {\n _this7.keysAtom_.reportChanged();\n break;\n }\n next1 = iter1.next();\n next2 = iter2.next();\n }\n }\n }\n // Use correctly ordered map\n _this7.data_ = orderedData;\n });\n return this;\n };\n _proto.toString = function toString() {\n return \"[object ObservableMap]\";\n };\n _proto.toJSON = function toJSON() {\n return Array.from(this);\n };\n /**\n * Observes this object. Triggers for the events 'add', 'update' and 'delete'.\n * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe\n * for callback details\n */ _proto.observe_ = function observe_(listener, fireImmediately) {\n return registerListener(this, listener);\n };\n _proto.intercept_ = function intercept_(handler) {\n return registerInterceptor(this, handler);\n };\n return _createClass(ObservableMap, [\n {\n key: \"size\",\n get: function get() {\n this.keysAtom_.reportObserved();\n return this.data_.size;\n }\n },\n {\n key: Symbol.toStringTag,\n get: function get() {\n return \"Map\";\n }\n }\n ]);\n}();\n// eslint-disable-next-line\nvar isObservableMap = /*#__PURE__*/ createInstanceofPredicate(\"ObservableMap\", ObservableMap);\nfunction makeIterableForMap(iterator) {\n iterator[Symbol.toStringTag] = \"MapIterator\";\n return makeIterable(iterator);\n}\nfunction convertToMap(dataStructure) {\n if (isES6Map(dataStructure) || isObservableMap(dataStructure)) return dataStructure;\n else if (Array.isArray(dataStructure)) return new Map(dataStructure);\n else if (isPlainObject(dataStructure)) {\n var map = new Map();\n for(var key in dataStructure)map.set(key, dataStructure[key]);\n return map;\n } else return die(21, dataStructure);\n}\nvar ObservableSetMarker = {};\nvar ObservableSet = /*#__PURE__*/ function() {\n function ObservableSet(initialData, enhancer, name_) {\n var _this = this;\n if (enhancer === void 0) enhancer = deepEnhancer;\n if (name_ === void 0) name_ = \"ObservableSet\";\n this.name_ = void 0;\n this[$mobx] = ObservableSetMarker;\n this.data_ = new Set();\n this.atom_ = void 0;\n this.changeListeners_ = void 0;\n this.interceptors_ = void 0;\n this.dehancer = void 0;\n this.enhancer_ = void 0;\n this.name_ = name_;\n if (!isFunction(Set)) die(22);\n this.enhancer_ = function(newV, oldV) {\n return enhancer(newV, oldV, name_);\n };\n initObservable(function() {\n _this.atom_ = createAtom(_this.name_);\n if (initialData) _this.replace(initialData);\n });\n }\n var _proto = ObservableSet.prototype;\n _proto.dehanceValue_ = function dehanceValue_(value) {\n if (this.dehancer !== undefined) return this.dehancer(value);\n return value;\n };\n _proto.clear = function clear() {\n var _this2 = this;\n transaction(function() {\n untracked(function() {\n for(var _iterator = _createForOfIteratorHelperLoose(_this2.data_.values()), _step; !(_step = _iterator()).done;){\n var value = _step.value;\n _this2[\"delete\"](value);\n }\n });\n });\n };\n _proto.forEach = function forEach(callbackFn, thisArg) {\n for(var _iterator2 = _createForOfIteratorHelperLoose(this), _step2; !(_step2 = _iterator2()).done;){\n var value = _step2.value;\n callbackFn.call(thisArg, value, value, this);\n }\n };\n _proto.add = function add(value) {\n var _this3 = this;\n checkIfStateModificationsAreAllowed(this.atom_);\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: ADD,\n object: this,\n newValue: value\n });\n if (!change) return this;\n // ideally, value = change.value would be done here, so that values can be\n // changed by interceptor. Same applies for other Set and Map api's.\n }\n if (!this.has(value)) {\n transaction(function() {\n _this3.data_.add(_this3.enhancer_(value, undefined));\n _this3.atom_.reportChanged();\n });\n var notifySpy = false;\n var notify = hasListeners(this);\n var _change = notify || notifySpy ? {\n observableKind: \"set\",\n debugObjectName: this.name_,\n type: ADD,\n object: this,\n newValue: value\n } : null;\n if (notify) notifyListeners(this, _change);\n }\n return this;\n };\n _proto[\"delete\"] = function _delete(value) {\n var _this4 = this;\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: DELETE,\n object: this,\n oldValue: value\n });\n if (!change) return false;\n }\n if (this.has(value)) {\n var notifySpy = false;\n var notify = hasListeners(this);\n var _change2 = notify || notifySpy ? {\n observableKind: \"set\",\n debugObjectName: this.name_,\n type: DELETE,\n object: this,\n oldValue: value\n } : null;\n transaction(function() {\n _this4.atom_.reportChanged();\n _this4.data_[\"delete\"](value);\n });\n if (notify) notifyListeners(this, _change2);\n return true;\n }\n return false;\n };\n _proto.has = function has(value) {\n this.atom_.reportObserved();\n return this.data_.has(this.dehanceValue_(value));\n };\n _proto.entries = function entries() {\n var nextIndex = 0;\n var keys = Array.from(this.keys());\n var values = Array.from(this.values());\n return makeIterableForSet({\n next: function next() {\n var index = nextIndex;\n nextIndex += 1;\n return index < values.length ? {\n value: [\n keys[index],\n values[index]\n ],\n done: false\n } : {\n value: undefined,\n done: true\n };\n }\n });\n };\n _proto.keys = function keys() {\n return this.values();\n };\n _proto.values = function values() {\n this.atom_.reportObserved();\n var self1 = this;\n var nextIndex = 0;\n var observableValues = Array.from(this.data_.values());\n return makeIterableForSet({\n next: function next() {\n return nextIndex < observableValues.length ? {\n value: self1.dehanceValue_(observableValues[nextIndex++]),\n done: false\n } : {\n value: undefined,\n done: true\n };\n }\n });\n };\n _proto.intersection = function intersection(otherSet) {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) return otherSet.intersection(this);\n else {\n var dehancedSet = new Set(this);\n return dehancedSet.intersection(otherSet);\n }\n };\n _proto.union = function union(otherSet) {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) return otherSet.union(this);\n else {\n var dehancedSet = new Set(this);\n return dehancedSet.union(otherSet);\n }\n };\n _proto.difference = function difference(otherSet) {\n return new Set(this).difference(otherSet);\n };\n _proto.symmetricDifference = function symmetricDifference(otherSet) {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) return otherSet.symmetricDifference(this);\n else {\n var dehancedSet = new Set(this);\n return dehancedSet.symmetricDifference(otherSet);\n }\n };\n _proto.isSubsetOf = function isSubsetOf(otherSet) {\n return new Set(this).isSubsetOf(otherSet);\n };\n _proto.isSupersetOf = function isSupersetOf(otherSet) {\n return new Set(this).isSupersetOf(otherSet);\n };\n _proto.isDisjointFrom = function isDisjointFrom(otherSet) {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) return otherSet.isDisjointFrom(this);\n else {\n var dehancedSet = new Set(this);\n return dehancedSet.isDisjointFrom(otherSet);\n }\n };\n _proto.replace = function replace(other) {\n var _this5 = this;\n if (isObservableSet(other)) other = new Set(other);\n transaction(function() {\n if (Array.isArray(other)) {\n _this5.clear();\n other.forEach(function(value) {\n return _this5.add(value);\n });\n } else if (isES6Set(other)) {\n _this5.clear();\n other.forEach(function(value) {\n return _this5.add(value);\n });\n } else if (other !== null && other !== undefined) die(\"Cannot initialize set from \" + other);\n });\n return this;\n };\n _proto.observe_ = function observe_(listener, fireImmediately) {\n return registerListener(this, listener);\n };\n _proto.intercept_ = function intercept_(handler) {\n return registerInterceptor(this, handler);\n };\n _proto.toJSON = function toJSON() {\n return Array.from(this);\n };\n _proto.toString = function toString() {\n return \"[object ObservableSet]\";\n };\n _proto[Symbol.iterator] = function() {\n return this.values();\n };\n return _createClass(ObservableSet, [\n {\n key: \"size\",\n get: function get() {\n this.atom_.reportObserved();\n return this.data_.size;\n }\n },\n {\n key: Symbol.toStringTag,\n get: function get() {\n return \"Set\";\n }\n }\n ]);\n}();\n// eslint-disable-next-line\nvar isObservableSet = /*#__PURE__*/ createInstanceofPredicate(\"ObservableSet\", ObservableSet);\nfunction makeIterableForSet(iterator) {\n iterator[Symbol.toStringTag] = \"SetIterator\";\n return makeIterable(iterator);\n}\nvar descriptorCache = /*#__PURE__*/ Object.create(null);\nvar REMOVE = \"remove\";\nvar ObservableObjectAdministration = /*#__PURE__*/ function() {\n function ObservableObjectAdministration(target_, values_, name_, // Used anytime annotation is not explicitely provided\n defaultAnnotation_) {\n if (values_ === void 0) values_ = new Map();\n if (defaultAnnotation_ === void 0) defaultAnnotation_ = autoAnnotation;\n this.target_ = void 0;\n this.values_ = void 0;\n this.name_ = void 0;\n this.defaultAnnotation_ = void 0;\n this.keysAtom_ = void 0;\n this.changeListeners_ = void 0;\n this.interceptors_ = void 0;\n this.proxy_ = void 0;\n this.isPlainObject_ = void 0;\n this.appliedAnnotations_ = void 0;\n this.pendingKeys_ = void 0;\n this.target_ = target_;\n this.values_ = values_;\n this.name_ = name_;\n this.defaultAnnotation_ = defaultAnnotation_;\n this.keysAtom_ = new Atom(\"ObservableObject.keys\");\n // Optimization: we use this frequently\n this.isPlainObject_ = isPlainObject(this.target_);\n }\n var _proto = ObservableObjectAdministration.prototype;\n _proto.getObservablePropValue_ = function getObservablePropValue_(key) {\n return this.values_.get(key).get();\n };\n _proto.setObservablePropValue_ = function setObservablePropValue_(key, newValue) {\n var observable = this.values_.get(key);\n if (observable instanceof ComputedValue) {\n observable.set(newValue);\n return true;\n }\n // intercept\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: UPDATE,\n object: this.proxy_ || this.target_,\n name: key,\n newValue: newValue\n });\n if (!change) return null;\n newValue = change.newValue;\n }\n newValue = observable.prepareNewValue_(newValue);\n // notify spy & observers\n if (newValue !== globalState.UNCHANGED) {\n var notify = hasListeners(this);\n var notifySpy = false;\n var _change = notify || notifySpy ? {\n type: UPDATE,\n observableKind: \"object\",\n debugObjectName: this.name_,\n object: this.proxy_ || this.target_,\n oldValue: observable.value_,\n name: key,\n newValue: newValue\n } : null;\n observable.setNewValue_(newValue);\n if (notify) notifyListeners(this, _change);\n }\n return true;\n };\n _proto.get_ = function get_(key) {\n if (globalState.trackingDerivation && !hasProp(this.target_, key)) // Key doesn't exist yet, subscribe for it in case it's added later\n this.has_(key);\n return this.target_[key];\n } /**\n * @param {PropertyKey} key\n * @param {any} value\n * @param {Annotation|boolean} annotation true - use default annotation, false - copy as is\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */ ;\n _proto.set_ = function set_(key, value, proxyTrap) {\n if (proxyTrap === void 0) proxyTrap = false;\n // Don't use .has(key) - we care about own\n if (hasProp(this.target_, key)) {\n // Existing prop\n if (this.values_.has(key)) // Observable (can be intercepted)\n return this.setObservablePropValue_(key, value);\n else if (proxyTrap) // Non-observable - proxy\n return Reflect.set(this.target_, key, value);\n else {\n // Non-observable\n this.target_[key] = value;\n return true;\n }\n } else // New prop\n return this.extend_(key, {\n value: value,\n enumerable: true,\n writable: true,\n configurable: true\n }, this.defaultAnnotation_, proxyTrap);\n };\n _proto.has_ = function has_(key) {\n if (!globalState.trackingDerivation) // Skip key subscription outside derivation\n return key in this.target_;\n this.pendingKeys_ || (this.pendingKeys_ = new Map());\n var entry = this.pendingKeys_.get(key);\n if (!entry) {\n entry = new ObservableValue(key in this.target_, referenceEnhancer, \"ObservableObject.key?\", false);\n this.pendingKeys_.set(key, entry);\n }\n return entry.get();\n } /**\n * @param {PropertyKey} key\n * @param {Annotation|boolean} annotation true - use default annotation, false - ignore prop\n */ ;\n _proto.make_ = function make_(key, annotation) {\n if (annotation === true) annotation = this.defaultAnnotation_;\n if (annotation === false) return;\n assertAnnotable(this, annotation, key);\n if (!(key in this.target_)) {\n var _this$target_$storedA;\n // Throw on missing key, except for decorators:\n // Decorator annotations are collected from whole prototype chain.\n // When called from super() some props may not exist yet.\n // However we don't have to worry about missing prop,\n // because the decorator must have been applied to something.\n if ((_this$target_$storedA = this.target_[storedAnnotationsSymbol]) != null && _this$target_$storedA[key]) return; // will be annotated by subclass constructor\n else die(1, annotation.annotationType_, this.name_ + \".\" + key.toString());\n }\n var source = this.target_;\n while(source && source !== objectPrototype){\n var descriptor = getDescriptor(source, key);\n if (descriptor) {\n var outcome = annotation.make_(this, key, descriptor, source);\n if (outcome === 0 /* MakeResult.Cancel */ ) return;\n if (outcome === 1 /* MakeResult.Break */ ) break;\n }\n source = Object.getPrototypeOf(source);\n }\n recordAnnotationApplied(this, annotation, key);\n } /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {Annotation|boolean} annotation true - use default annotation, false - copy as is\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */ ;\n _proto.extend_ = function extend_(key, descriptor, annotation, proxyTrap) {\n if (proxyTrap === void 0) proxyTrap = false;\n if (annotation === true) annotation = this.defaultAnnotation_;\n if (annotation === false) return this.defineProperty_(key, descriptor, proxyTrap);\n assertAnnotable(this, annotation, key);\n var outcome = annotation.extend_(this, key, descriptor, proxyTrap);\n if (outcome) recordAnnotationApplied(this, annotation, key);\n return outcome;\n } /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */ ;\n _proto.defineProperty_ = function defineProperty_(key, descriptor, proxyTrap) {\n if (proxyTrap === void 0) proxyTrap = false;\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n try {\n startBatch();\n // Delete\n var deleteOutcome = this.delete_(key);\n if (!deleteOutcome) // Failure or intercepted\n return deleteOutcome;\n // ADD interceptor\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: descriptor.value\n });\n if (!change) return null;\n var newValue = change.newValue;\n if (descriptor.value !== newValue) descriptor = _extends({}, descriptor, {\n value: newValue\n });\n }\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) return false;\n } else defineProperty(this.target_, key, descriptor);\n // Notify\n this.notifyPropertyAddition_(key, descriptor.value);\n } finally{\n endBatch();\n }\n return true;\n };\n _proto.defineObservableProperty_ = function defineObservableProperty_(key, value, enhancer, proxyTrap) {\n if (proxyTrap === void 0) proxyTrap = false;\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n try {\n startBatch();\n // Delete\n var deleteOutcome = this.delete_(key);\n if (!deleteOutcome) // Failure or intercepted\n return deleteOutcome;\n // ADD interceptor\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: value\n });\n if (!change) return null;\n value = change.newValue;\n }\n var cachedDescriptor = getCachedObservablePropDescriptor(key);\n var descriptor = {\n configurable: globalState.safeDescriptors ? this.isPlainObject_ : true,\n enumerable: true,\n get: cachedDescriptor.get,\n set: cachedDescriptor.set\n };\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) return false;\n } else defineProperty(this.target_, key, descriptor);\n var observable = new ObservableValue(value, enhancer, \"ObservableObject.key\", false);\n this.values_.set(key, observable);\n // Notify (value possibly changed by ObservableValue)\n this.notifyPropertyAddition_(key, observable.value_);\n } finally{\n endBatch();\n }\n return true;\n };\n _proto.defineComputedProperty_ = function defineComputedProperty_(key, options, proxyTrap) {\n if (proxyTrap === void 0) proxyTrap = false;\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n try {\n startBatch();\n // Delete\n var deleteOutcome = this.delete_(key);\n if (!deleteOutcome) // Failure or intercepted\n return deleteOutcome;\n // ADD interceptor\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: undefined\n });\n if (!change) return null;\n }\n options.name || (options.name = \"ObservableObject.key\");\n options.context = this.proxy_ || this.target_;\n var cachedDescriptor = getCachedObservablePropDescriptor(key);\n var descriptor = {\n configurable: globalState.safeDescriptors ? this.isPlainObject_ : true,\n enumerable: false,\n get: cachedDescriptor.get,\n set: cachedDescriptor.set\n };\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) return false;\n } else defineProperty(this.target_, key, descriptor);\n this.values_.set(key, new ComputedValue(options));\n // Notify\n this.notifyPropertyAddition_(key, undefined);\n } finally{\n endBatch();\n }\n return true;\n } /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */ ;\n _proto.delete_ = function delete_(key, proxyTrap) {\n if (proxyTrap === void 0) proxyTrap = false;\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n // No such prop\n if (!hasProp(this.target_, key)) return true;\n // Intercept\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: REMOVE\n });\n // Cancelled\n if (!change) return null;\n }\n // Delete\n try {\n var _this$pendingKeys_;\n startBatch();\n var notify = hasListeners(this);\n var notifySpy = false;\n var observable = this.values_.get(key);\n // Value needed for spies/listeners\n var value = undefined;\n // Optimization: don't pull the value unless we will need it\n if (!observable && (notify || notifySpy)) {\n var _getDescriptor;\n value = (_getDescriptor = getDescriptor(this.target_, key)) == null ? void 0 : _getDescriptor.value;\n }\n // delete prop (do first, may fail)\n if (proxyTrap) {\n if (!Reflect.deleteProperty(this.target_, key)) return false;\n } else delete this.target_[key];\n // Clear observable\n if (observable) {\n this.values_[\"delete\"](key);\n // for computed, value is undefined\n if (observable instanceof ObservableValue) value = observable.value_;\n // Notify: autorun(() => obj[key]), see #1796\n propagateChanged(observable);\n }\n // Notify \"keys/entries/values\" observers\n this.keysAtom_.reportChanged();\n // Notify \"has\" observers\n // \"in\" as it may still exist in proto\n (_this$pendingKeys_ = this.pendingKeys_) == null || (_this$pendingKeys_ = _this$pendingKeys_.get(key)) == null || _this$pendingKeys_.set(key in this.target_);\n // Notify spies/listeners\n if (notify || notifySpy) {\n var _change2 = {\n type: REMOVE,\n observableKind: \"object\",\n object: this.proxy_ || this.target_,\n debugObjectName: this.name_,\n oldValue: value,\n name: key\n };\n if (notify) notifyListeners(this, _change2);\n }\n } finally{\n endBatch();\n }\n return true;\n } /**\n * Observes this object. Triggers for the events 'add', 'update' and 'delete'.\n * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe\n * for callback details\n */ ;\n _proto.observe_ = function observe_(callback, fireImmediately) {\n return registerListener(this, callback);\n };\n _proto.intercept_ = function intercept_(handler) {\n return registerInterceptor(this, handler);\n };\n _proto.notifyPropertyAddition_ = function notifyPropertyAddition_(key, value) {\n var _this$pendingKeys_2;\n var notify = hasListeners(this);\n var notifySpy = false;\n if (notify || notifySpy) {\n var change = notify || notifySpy ? {\n type: ADD,\n observableKind: \"object\",\n debugObjectName: this.name_,\n object: this.proxy_ || this.target_,\n name: key,\n newValue: value\n } : null;\n if (notify) notifyListeners(this, change);\n }\n (_this$pendingKeys_2 = this.pendingKeys_) == null || (_this$pendingKeys_2 = _this$pendingKeys_2.get(key)) == null || _this$pendingKeys_2.set(true);\n // Notify \"keys/entries/values\" observers\n this.keysAtom_.reportChanged();\n };\n _proto.ownKeys_ = function ownKeys_() {\n this.keysAtom_.reportObserved();\n return ownKeys(this.target_);\n };\n _proto.keys_ = function keys_() {\n // Returns enumerable && own, but unfortunately keysAtom will report on ANY key change.\n // There is no way to distinguish between Object.keys(object) and Reflect.ownKeys(object) - both are handled by ownKeys trap.\n // We can either over-report in Object.keys(object) or under-report in Reflect.ownKeys(object)\n // We choose to over-report in Object.keys(object), because:\n // - typically it's used with simple data objects\n // - when symbolic/non-enumerable keys are relevant Reflect.ownKeys works as expected\n this.keysAtom_.reportObserved();\n return Object.keys(this.target_);\n };\n return ObservableObjectAdministration;\n}();\nfunction asObservableObject(target, options) {\n var _options$name;\n if (hasProp(target, $mobx)) return target;\n var name = (_options$name = options == null ? void 0 : options.name) != null ? _options$name : \"ObservableObject\";\n var adm = new ObservableObjectAdministration(target, new Map(), String(name), getAnnotationFromOptions(options));\n addHiddenProp(target, $mobx, adm);\n return target;\n}\nvar isObservableObjectAdministration = /*#__PURE__*/ createInstanceofPredicate(\"ObservableObjectAdministration\", ObservableObjectAdministration);\nfunction getCachedObservablePropDescriptor(key) {\n return descriptorCache[key] || (descriptorCache[key] = {\n get: function get() {\n return this[$mobx].getObservablePropValue_(key);\n },\n set: function set(value) {\n return this[$mobx].setObservablePropValue_(key, value);\n }\n });\n}\nfunction isObservableObject(thing) {\n if (isObject(thing)) return isObservableObjectAdministration(thing[$mobx]);\n return false;\n}\nfunction recordAnnotationApplied(adm, annotation, key) {\n var _adm$target_$storedAn;\n // Remove applied decorator annotation so we don't try to apply it again in subclass constructor\n (_adm$target_$storedAn = adm.target_[storedAnnotationsSymbol]) == null || delete _adm$target_$storedAn[key];\n}\nfunction assertAnnotable(adm, annotation, key) {\n var fieldName, currentAnnotationType, requestedAnnotationType;\n}\n// Bug in safari 9.* (or iOS 9 safari mobile). See #364\nvar ENTRY_0 = /*#__PURE__*/ createArrayEntryDescriptor(0);\nvar safariPrototypeSetterInheritanceBug = /*#__PURE__*/ function() {\n var v = false;\n var p = {};\n Object.defineProperty(p, \"0\", {\n set: function set() {\n v = true;\n }\n });\n /*#__PURE__*/ Object.create(p)[\"0\"] = 1;\n return v === false;\n}();\n/**\n * This array buffer contains two lists of properties, so that all arrays\n * can recycle their property definitions, which significantly improves performance of creating\n * properties on the fly.\n */ var OBSERVABLE_ARRAY_BUFFER_SIZE = 0;\n// Typescript workaround to make sure ObservableArray extends Array\nvar StubArray = function StubArray() {};\nfunction inherit(ctor, proto) {\n if (Object.setPrototypeOf) Object.setPrototypeOf(ctor.prototype, proto);\n else if (ctor.prototype.__proto__ !== undefined) ctor.prototype.__proto__ = proto;\n else ctor.prototype = proto;\n}\ninherit(StubArray, Array.prototype);\n// Weex proto freeze protection was here,\n// but it is unclear why the hack is need as MobX never changed the prototype\n// anyway, so removed it in V6\nvar LegacyObservableArray = /*#__PURE__*/ function(_StubArray) {\n function LegacyObservableArray(initialValues, enhancer, name, owned) {\n var _this;\n if (name === void 0) name = \"ObservableArray\";\n if (owned === void 0) owned = false;\n _this = _StubArray.call(this) || this;\n initObservable(function() {\n var adm = new ObservableArrayAdministration(name, enhancer, owned, true);\n adm.proxy_ = _this;\n addHiddenFinalProp(_this, $mobx, adm);\n if (initialValues && initialValues.length) // @ts-ignore\n _this.spliceWithArray(0, 0, initialValues);\n if (safariPrototypeSetterInheritanceBug) // Seems that Safari won't use numeric prototype setter until any * numeric property is\n // defined on the instance. After that it works fine, even if this property is deleted.\n Object.defineProperty(_this, \"0\", ENTRY_0);\n });\n return _this;\n }\n _inheritsLoose(LegacyObservableArray, _StubArray);\n var _proto = LegacyObservableArray.prototype;\n _proto.concat = function concat() {\n this[$mobx].atom_.reportObserved();\n for(var _len = arguments.length, arrays = new Array(_len), _key = 0; _key < _len; _key++)arrays[_key] = arguments[_key];\n return Array.prototype.concat.apply(this.slice(), //@ts-ignore\n arrays.map(function(a) {\n return isObservableArray(a) ? a.slice() : a;\n }));\n };\n _proto[Symbol.iterator] = function() {\n var self1 = this;\n var nextIndex = 0;\n return makeIterable({\n next: function next() {\n return nextIndex < self1.length ? {\n value: self1[nextIndex++],\n done: false\n } : {\n done: true,\n value: undefined\n };\n }\n });\n };\n return _createClass(LegacyObservableArray, [\n {\n key: \"length\",\n get: function get() {\n return this[$mobx].getArrayLength_();\n },\n set: function set(newLength) {\n this[$mobx].setArrayLength_(newLength);\n }\n },\n {\n key: Symbol.toStringTag,\n get: function get() {\n return \"Array\";\n }\n }\n ]);\n}(StubArray);\nObject.entries(arrayExtensions).forEach(function(_ref) {\n var prop = _ref[0], fn = _ref[1];\n if (prop !== \"concat\") addHiddenProp(LegacyObservableArray.prototype, prop, fn);\n});\nfunction createArrayEntryDescriptor(index) {\n return {\n enumerable: false,\n configurable: true,\n get: function get() {\n return this[$mobx].get_(index);\n },\n set: function set(value) {\n this[$mobx].set_(index, value);\n }\n };\n}\nfunction createArrayBufferItem(index) {\n defineProperty(LegacyObservableArray.prototype, \"\" + index, createArrayEntryDescriptor(index));\n}\nfunction reserveArrayBuffer(max) {\n if (max > OBSERVABLE_ARRAY_BUFFER_SIZE) {\n for(var index = OBSERVABLE_ARRAY_BUFFER_SIZE; index < max + 100; index++)createArrayBufferItem(index);\n OBSERVABLE_ARRAY_BUFFER_SIZE = max;\n }\n}\nreserveArrayBuffer(1000);\nfunction createLegacyArray(initialValues, enhancer, name) {\n return new LegacyObservableArray(initialValues, enhancer, name);\n}\nfunction getAtom(thing, property) {\n if (typeof thing === \"object\" && thing !== null) {\n if (isObservableArray(thing)) {\n if (property !== undefined) die(23);\n return thing[$mobx].atom_;\n }\n if (isObservableSet(thing)) return thing.atom_;\n if (isObservableMap(thing)) {\n if (property === undefined) return thing.keysAtom_;\n var observable = thing.data_.get(property) || thing.hasMap_.get(property);\n if (!observable) die(25, property, getDebugName(thing));\n return observable;\n }\n if (isObservableObject(thing)) {\n if (!property) return die(26);\n var _observable = thing[$mobx].values_.get(property);\n if (!_observable) die(27, property, getDebugName(thing));\n return _observable;\n }\n if (isAtom(thing) || isComputedValue(thing) || isReaction(thing)) return thing;\n } else if (isFunction(thing)) {\n if (isReaction(thing[$mobx])) // disposer function\n return thing[$mobx];\n }\n die(28);\n}\nfunction getAdministration(thing, property) {\n if (!thing) die(29);\n if (property !== undefined) return getAdministration(getAtom(thing, property));\n if (isAtom(thing) || isComputedValue(thing) || isReaction(thing)) return thing;\n if (isObservableMap(thing) || isObservableSet(thing)) return thing;\n if (thing[$mobx]) return thing[$mobx];\n die(24, thing);\n}\nfunction getDebugName(thing, property) {\n var named;\n if (property !== undefined) named = getAtom(thing, property);\n else if (isAction(thing)) return thing.name;\n else if (isObservableObject(thing) || isObservableMap(thing) || isObservableSet(thing)) named = getAdministration(thing);\n else // valid for arrays as well\n named = getAtom(thing);\n return named.name_;\n}\n/**\n * Helper function for initializing observable structures, it applies:\n * 1. allowStateChanges so we don't violate enforceActions.\n * 2. untracked so we don't accidentaly subscribe to anything observable accessed during init in case the observable is created inside derivation.\n * 3. batch to avoid state version updates\n */ function initObservable(cb) {\n var derivation = untrackedStart();\n var allowStateChanges = allowStateChangesStart(true);\n startBatch();\n try {\n return cb();\n } finally{\n endBatch();\n allowStateChangesEnd(allowStateChanges);\n untrackedEnd(derivation);\n }\n}\nvar toString = objectPrototype.toString;\nfunction deepEqual(a, b, depth) {\n if (depth === void 0) depth = -1;\n return eq(a, b, depth);\n}\n// Copied from https://github.com/jashkenas/underscore/blob/5c237a7c682fb68fd5378203f0bf22dce1624854/underscore.js#L1186-L1289\n// Internal recursive comparison function for `isEqual`.\nfunction eq(a, b, depth, aStack, bStack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) return a !== 0 || 1 / a === 1 / b;\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) return false;\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) return b !== b;\n // Exhaust primitive checks\n var type = typeof a;\n if (type !== \"function\" && type !== \"object\" && typeof b != \"object\") return false;\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className !== toString.call(b)) return false;\n switch(className){\n // Strings, numbers, regular expressions, dates, and booleans are compared by value.\n case \"[object RegExp]\":\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n case \"[object String]\":\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return \"\" + a === \"\" + b;\n case \"[object Number]\":\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) return +b !== +b;\n // An `egal` comparison is performed for other numeric values.\n return +a === 0 ? 1 / +a === 1 / b : +a === +b;\n case \"[object Date]\":\n case \"[object Boolean]\":\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b;\n case \"[object Symbol]\":\n return typeof Symbol !== \"undefined\" && Symbol.valueOf.call(a) === Symbol.valueOf.call(b);\n case \"[object Map]\":\n case \"[object Set]\":\n // Maps and Sets are unwrapped to arrays of entry-pairs, adding an incidental level.\n // Hide this extra level by increasing the depth.\n if (depth >= 0) depth++;\n break;\n }\n // Unwrap any wrapped objects.\n a = unwrap(a);\n b = unwrap(b);\n var areArrays = className === \"[object Array]\";\n if (!areArrays) {\n if (typeof a != \"object\" || typeof b != \"object\") return false;\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n var aCtor = a.constructor, bCtor = b.constructor;\n if (aCtor !== bCtor && !(isFunction(aCtor) && aCtor instanceof aCtor && isFunction(bCtor) && bCtor instanceof bCtor) && \"constructor\" in a && \"constructor\" in b) return false;\n }\n if (depth === 0) return false;\n else if (depth < 0) depth = -1;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || [];\n bStack = bStack || [];\n var length = aStack.length;\n while(length--){\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) return bStack[length] === b;\n }\n // Add the first object to the stack of traversed objects.\n aStack.push(a);\n bStack.push(b);\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length;\n if (length !== b.length) return false;\n // Deep compare the contents, ignoring non-numeric properties.\n while(length--){\n if (!eq(a[length], b[length], depth - 1, aStack, bStack)) return false;\n }\n } else {\n // Deep compare objects.\n var keys = Object.keys(a);\n var key;\n length = keys.length;\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (Object.keys(b).length !== length) return false;\n while(length--){\n // Deep compare each member\n key = keys[length];\n if (!(hasProp(b, key) && eq(a[key], b[key], depth - 1, aStack, bStack))) return false;\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop();\n bStack.pop();\n return true;\n}\nfunction unwrap(a) {\n if (isObservableArray(a)) return a.slice();\n if (isES6Map(a) || isObservableMap(a)) return Array.from(a.entries());\n if (isES6Set(a) || isObservableSet(a)) return Array.from(a.entries());\n return a;\n}\nvar _getGlobal$Iterator;\n// safely get iterator prototype if available\nvar maybeIteratorPrototype = ((_getGlobal$Iterator = /*#__PURE__*/ getGlobal().Iterator) == null ? void 0 : _getGlobal$Iterator.prototype) || {};\nfunction makeIterable(iterator) {\n iterator[Symbol.iterator] = getSelf;\n return Object.assign(Object.create(maybeIteratorPrototype), iterator);\n}\nfunction getSelf() {\n return this;\n}\nfunction isAnnotation(thing) {\n return(// Can be function\n thing instanceof Object && typeof thing.annotationType_ === \"string\" && isFunction(thing.make_) && isFunction(thing.extend_));\n}\n/**\n * (c) Michel Weststrate 2015 - 2020\n * MIT Licensed\n *\n * Welcome to the mobx sources! To get a global overview of how MobX internally works,\n * this is a good place to start:\n * https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74\n *\n * Source folders:\n * ===============\n *\n * - api/ Most of the public static methods exposed by the module can be found here.\n * - core/ Implementation of the MobX algorithm; atoms, derivations, reactions, dependency trees, optimizations. Cool stuff can be found here.\n * - types/ All the magic that is need to have observable objects, arrays and values is in this folder. Including the modifiers like `asFlat`.\n * - utils/ Utility stuff.\n *\n */ [\n \"Symbol\",\n \"Map\",\n \"Set\"\n].forEach(function(m) {\n var g = getGlobal();\n if (typeof g[m] === \"undefined\") die(\"MobX requires global '\" + m + \"' to be available or polyfilled\");\n});\nif (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === \"object\") // See: https://github.com/andykog/mobx-devtools/\n__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({\n spy: spy,\n extras: {\n getDebugName: getDebugName\n },\n $mobx: $mobx\n});\n\n});\n\nparcelRegister(\"czJVf\", function(module, exports) {\n\nvar $8HlFz = parcelRequire(\"8HlFz\");\nmodule.exports = $8HlFz(\"lwDaG\").then(()=>parcelRequire('lqqxu'));\n\n});\nparcelRegister(\"8HlFz\", function(module, exports) {\n\"use strict\";\n\nfunction $655325f76e635bd0$var$load(id) {\n // eslint-disable-next-line no-undef\n return import((parcelRequire(\"73lZE\")).resolve(id));\n}\nmodule.exports = $655325f76e635bd0$var$load;\n\n});\n\n\nvar $e0c3b8f1804c40d3$exports = {};\n\n(parcelRequire(\"73lZE\")).register(new URL(\"\", import.meta.url).toString(), JSON.parse(\"[\\\"aEKk8\\\",\\\"index.362ffb12.js\\\",\\\"lwDaG\\\",\\\"async.fcf3ae1c.js\\\"]\"));\n\n\nvar $zlbOT = parcelRequire(\"zlbOT\");\nvar $4955fe2876130610$exports = {};\n\"use strict\";\nObject.defineProperty($4955fe2876130610$exports, \"__esModule\", {\n value: true\n});\n\nvar $ceFTv = parcelRequire(\"ceFTv\");\n\n$ceFTv.__exportStar((parcelRequire(\"2flNv\")), $4955fe2876130610$exports);\n\n$ceFTv.__exportStar((parcelRequire(\"iBSPL\")), $4955fe2876130610$exports);\n\n\n\nvar $a2E6i = parcelRequire(\"a2E6i\");\n\nvar $zlbOT = parcelRequire(\"zlbOT\");\n\nvar $a2E6i = parcelRequire(\"a2E6i\");\n\nvar $gPvyW = parcelRequire(\"gPvyW\");\n\nfunction $f251dea0ed59a781$var$$parcel$exportWildcard(dest, source) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) return;\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function get() {\n return source[key];\n }\n });\n });\n return dest;\n}\nfunction $f251dea0ed59a781$var$$parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {\n get: v,\n set: s,\n enumerable: true,\n configurable: true\n });\n}\nvar $f251dea0ed59a781$var$$d4436c849e74ae70$exports = {};\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$d4436c849e74ae70$exports, \"AnimateCSS\", function() {\n return $f251dea0ed59a781$export$2e9a7bb10257a509;\n});\nvar $f251dea0ed59a781$var$$552a56cc5ff3f479$exports = {};\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$552a56cc5ff3f479$exports, \"Defer\", function() {\n return $f251dea0ed59a781$export$c7e91f8aec23ae14;\n});\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$552a56cc5ff3f479$exports, \"getMobxData\", function() {\n return $f251dea0ed59a781$export$b06b4c21253e26e2;\n});\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$552a56cc5ff3f479$exports, \"animated\", function() {\n return $f251dea0ed59a781$export$4077c0dfbe9c3861;\n});\nclass $f251dea0ed59a781$export$c7e91f8aec23ae14 {\n constructor(){\n Object.defineProperty(this, \"resolve\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"reject\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"promise\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: new Promise((resolve, reject)=>{\n this.resolve = resolve;\n this.reject = reject;\n })\n });\n }\n}\nfunction $f251dea0ed59a781$export$b06b4c21253e26e2(observable) {\n var _a;\n for (const key of Object.getOwnPropertySymbols(observable)){\n const store = (_a = observable[key]) === null || _a === void 0 ? void 0 : _a.values_;\n if (store instanceof Map) return Object.fromEntries(Array.from(store, ([key, { value_: value_ }])=>[\n key,\n value_\n ]));\n }\n}\nconst $f251dea0ed59a781$export$4077c0dfbe9c3861 = (root, targetSelector)=>new Promise((resolve)=>{\n const ended = (0, $gPvyW.delegate)(targetSelector, (event)=>{\n root.removeEventListener('animationend', ended);\n root.removeEventListener('animationcancel', ended);\n resolve(event);\n });\n root.addEventListener('animationend', ended);\n root.addEventListener('animationcancel', ended);\n });\nvar $f251dea0ed59a781$var$$317b1f21909c74b8$exports = {};\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$317b1f21909c74b8$exports, \"component\", function() {\n return $f251dea0ed59a781$export$d8556a2a8f973135;\n});\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$317b1f21909c74b8$exports, \"on\", function() {\n return $f251dea0ed59a781$export$af631764ddc44097;\n});\nconst $f251dea0ed59a781$var$$317b1f21909c74b8$var$eventMap = new WeakMap();\nfunction $f251dea0ed59a781$export$d8556a2a8f973135(meta) {\n return (Class, { addInitializer: addInitializer })=>{\n class RendererComponent extends Class {\n get root() {\n return this.shadowRoot || this.internals.shadowRoot || this;\n }\n constructor(){\n var _a;\n super();\n Object.defineProperty(this, \"internals\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: this.tagName.includes('-') ? this.attachInternals() : undefined\n });\n Object.defineProperty(this, \"renderer\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: new (0, $4955fe2876130610$exports.DOMRenderer)()\n });\n Object.defineProperty(this, \"mounted\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: false\n });\n if (meta.mode && !((_a = this.internals) === null || _a === void 0 ? void 0 : _a.shadowRoot)) this.attachShadow(meta);\n }\n async connectedCallback() {\n var _a, _b;\n const { mode: mode } = meta;\n const renderChildren = !(mode != null);\n const { root: root } = this, events = $f251dea0ed59a781$var$$317b1f21909c74b8$var$eventMap.get(this) || [];\n for (const { type: type, selector: selector, handler: handler } of events){\n if (renderChildren && /^:host/.test(selector)) console.warn(`[WebCell] DOM Event delegation of \"${selector}\" won't work if you don't invoke \"this.attachShadow()\" manually.`);\n root.addEventListener(type, handler);\n }\n (_a = super['connectedCallback']) === null || _a === void 0 || _a.call(this);\n if (this.mounted) return;\n await this.update();\n this.mounted = true;\n (_b = this.mountedCallback) === null || _b === void 0 || _b.call(this);\n }\n updateDOM(content) {\n var _a, _b;\n const result = this.renderer.render(content, this.root, meta.renderMode);\n return result instanceof Promise ? result.then((_a = this.updatedCallback) === null || _a === void 0 ? void 0 : _a.bind(this)) : (_b = this.updatedCallback) === null || _b === void 0 ? void 0 : _b.call(this);\n }\n async update() {\n var _a;\n const vNode = (_a = this.render) === null || _a === void 0 ? void 0 : _a.call(this);\n const content = (0, $gPvyW.isEmpty)(vNode) ? meta.mode ? (0, $zlbOT.jsx)(\"slot\", {}) : null : vNode;\n if (!(content != null)) return;\n if (!meta.transitible || typeof document.startViewTransition !== 'function') return this.updateDOM(content);\n const { updateCallbackDone: updateCallbackDone, finished: finished } = document.startViewTransition(()=>this.updateDOM(content));\n try {\n await finished;\n } catch (_b) {\n return updateCallbackDone;\n }\n }\n disconnectedCallback() {\n var _a;\n const { root: root } = this, events = $f251dea0ed59a781$var$$317b1f21909c74b8$var$eventMap.get(this) || [];\n for (const { type: type, handler: handler } of events)root.removeEventListener(type, handler);\n (_a = super['disconnectedCallback']) === null || _a === void 0 || _a.call(this);\n }\n emit(event, detail, { cancelable: cancelable, bubbles: bubbles, composed: composed } = {}) {\n return this.dispatchEvent(new CustomEvent(event, {\n detail: detail,\n cancelable: cancelable,\n bubbles: bubbles,\n composed: composed\n }));\n }\n }\n addInitializer(function() {\n var _a;\n (_a = globalThis.customElements) === null || _a === void 0 || _a.define(meta.tagName, this, meta);\n });\n return RendererComponent;\n };\n}\nfunction $f251dea0ed59a781$export$af631764ddc44097(type, selector) {\n return (method, { addInitializer: addInitializer })=>addInitializer(function() {\n const events = $f251dea0ed59a781$var$$317b1f21909c74b8$var$eventMap.get(this) || [], handler = (0, $gPvyW.delegate)(selector, method.bind(this));\n events.push({\n type: type,\n selector: selector,\n handler: handler\n });\n $f251dea0ed59a781$var$$317b1f21909c74b8$var$eventMap.set(this, events);\n });\n}\nvar $f251dea0ed59a781$var$$0c03e47eb1097734$exports = {};\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$0c03e47eb1097734$exports, \"observer\", function() {\n return $f251dea0ed59a781$export$b6ae1bc530f4c149;\n});\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$0c03e47eb1097734$exports, \"attribute\", function() {\n return $f251dea0ed59a781$export$af4b9a83f4b00434;\n});\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$0c03e47eb1097734$exports, \"reaction\", function() {\n return $f251dea0ed59a781$export$7203b476385689ae;\n});\nvar $f251dea0ed59a781$var$$0c03e47eb1097734$var$__classPrivateFieldGet = function(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nfunction $f251dea0ed59a781$var$$0c03e47eb1097734$var$wrapFunction(func) {\n const renderer = new (0, $4955fe2876130610$exports.DOMRenderer)();\n return (props)=>{\n let tree = func(props), root;\n if (!(0, $4955fe2876130610$exports.VNode).isFragment(tree)) {\n const disposer = (0, $a2E6i.autorun)(()=>{\n tree = func(props);\n if (tree && root) renderer.patch((0, $4955fe2876130610$exports.VNode).fromDOM(root), tree);\n });\n const { ref: ref } = tree;\n tree.ref = (node)=>{\n if (node) root = node;\n else disposer();\n ref === null || ref === void 0 || ref(node);\n };\n }\n return tree;\n };\n}\nconst $f251dea0ed59a781$var$$0c03e47eb1097734$var$reactionMap = new WeakMap();\nfunction $f251dea0ed59a781$var$$0c03e47eb1097734$var$wrapClass(Component) {\n var _ObserverComponent_instances, _ObserverComponent_boot;\n class ObserverComponent extends Component {\n get props() {\n return $f251dea0ed59a781$export$b06b4c21253e26e2(this);\n }\n constructor(){\n super();\n _ObserverComponent_instances.add(this);\n Object.defineProperty(this, \"disposers\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: []\n });\n Object.defineProperty(this, \"update\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: ()=>{\n const { update: update } = Object.getPrototypeOf(this);\n return new Promise((resolve)=>this.disposers.push((0, $a2E6i.autorun)(()=>update.call(this).then(resolve))));\n }\n });\n Promise.resolve().then(()=>$f251dea0ed59a781$var$$0c03e47eb1097734$var$__classPrivateFieldGet(this, _ObserverComponent_instances, \"m\", _ObserverComponent_boot).call(this));\n }\n disconnectedCallback() {\n var _a;\n for (const disposer of this.disposers)disposer();\n this.disposers.length = 0;\n (_a = super['disconnectedCallback']) === null || _a === void 0 || _a.call(this);\n }\n setAttribute(name, value) {\n const old = super.getAttribute(name), names = this.constructor['observedAttributes'];\n super.setAttribute(name, value);\n if (names.includes(name)) this.attributeChangedCallback(name, old, value);\n }\n attributeChangedCallback(name, old, value) {\n var _a;\n this[(0, $gPvyW.toCamelCase)(name)] = (0, $gPvyW.parseJSON)(value);\n (_a = super['attributeChangedCallback']) === null || _a === void 0 || _a.call(this, name, old, value);\n }\n syncPropAttr(name) {\n var _a;\n let value = this[(0, $gPvyW.toCamelCase)(name)];\n if (!(value != null) || value === false) return this.removeAttribute(name);\n value = value === true ? name : value;\n if (typeof value === 'object') {\n value = (_a = value.toJSON) === null || _a === void 0 ? void 0 : _a.call(value);\n value = typeof value === 'object' ? JSON.stringify(value) : value;\n }\n super.setAttribute(name, value);\n }\n }\n _ObserverComponent_instances = new WeakSet(), _ObserverComponent_boot = function _ObserverComponent_boot() {\n const names = this.constructor['observedAttributes'] || [], reactions = $f251dea0ed59a781$var$$0c03e47eb1097734$var$reactionMap.get(this) || [];\n this.disposers.push(...names.map((name)=>(0, $a2E6i.autorun)(()=>this.syncPropAttr(name))), ...reactions.map(({ expression: expression, effect: effect })=>(0, $a2E6i.reaction)((reaction)=>expression(this, reaction), effect.bind(this))));\n };\n Object.defineProperty(ObserverComponent, \"observedAttributes\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: []\n });\n return ObserverComponent;\n}\nfunction $f251dea0ed59a781$export$b6ae1bc530f4c149(func, _) {\n return (0, $gPvyW.isHTMLElementClass)(func) ? $f251dea0ed59a781$var$$0c03e47eb1097734$var$wrapClass(func) : $f251dea0ed59a781$var$$0c03e47eb1097734$var$wrapFunction(func);\n}\nfunction $f251dea0ed59a781$export$af4b9a83f4b00434(_, { name: name, addInitializer: addInitializer }) {\n addInitializer(function() {\n const names = this.constructor['observedAttributes'], attribute = (0, $gPvyW.toHyphenCase)(name.toString());\n if (!names.includes(attribute)) names.push(attribute);\n });\n}\nfunction $f251dea0ed59a781$export$7203b476385689ae(expression) {\n return (effect, { addInitializer: addInitializer })=>addInitializer(function() {\n const reactions = $f251dea0ed59a781$var$$0c03e47eb1097734$var$reactionMap.get(this) || [];\n reactions.push({\n expression: expression,\n effect: effect\n });\n $f251dea0ed59a781$var$$0c03e47eb1097734$var$reactionMap.set(this, reactions);\n });\n}\nvar $f251dea0ed59a781$var$$819b340f625a29f4$exports = {};\nvar $f251dea0ed59a781$var$$d4436c849e74ae70$var$__runInitializers = function(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n};\nvar $f251dea0ed59a781$var$$d4436c849e74ae70$var$__esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\nvar $f251dea0ed59a781$var$$d4436c849e74ae70$var$__setFunctionName = function(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n};\nvar $f251dea0ed59a781$var$$d4436c849e74ae70$var$__classPrivateFieldGet = function(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar $f251dea0ed59a781$var$$d4436c849e74ae70$var$__classPrivateFieldSet = function(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n};\nlet $f251dea0ed59a781$export$2e9a7bb10257a509 = (()=>{\n var _AnimateCSS_type_accessor_storage, _AnimateCSS_playing_accessor_storage;\n let _classDecorators = [\n $f251dea0ed59a781$export$d8556a2a8f973135({\n tagName: 'animation-css'\n }),\n $f251dea0ed59a781$export$b6ae1bc530f4c149\n ];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _type_decorators;\n let _type_initializers = [];\n let _type_extraInitializers = [];\n let _playing_decorators;\n let _playing_initializers = [];\n let _playing_extraInitializers = [];\n let _typeChanged_decorators;\n var AnimateCSS = _classThis = class extends _classSuper {\n constructor(){\n super(...arguments);\n _AnimateCSS_type_accessor_storage.set(this, ($f251dea0ed59a781$var$$d4436c849e74ae70$var$__runInitializers(this, _instanceExtraInitializers), $f251dea0ed59a781$var$$d4436c849e74ae70$var$__runInitializers(this, _type_initializers, void 0)));\n _AnimateCSS_playing_accessor_storage.set(this, ($f251dea0ed59a781$var$$d4436c849e74ae70$var$__runInitializers(this, _type_extraInitializers), $f251dea0ed59a781$var$$d4436c849e74ae70$var$__runInitializers(this, _playing_initializers, false)));\n Object.defineProperty(this, \"component\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: $f251dea0ed59a781$var$$d4436c849e74ae70$var$__runInitializers(this, _playing_extraInitializers)\n });\n }\n get type() {\n return $f251dea0ed59a781$var$$d4436c849e74ae70$var$__classPrivateFieldGet(this, _AnimateCSS_type_accessor_storage, \"f\");\n }\n set type(value) {\n $f251dea0ed59a781$var$$d4436c849e74ae70$var$__classPrivateFieldSet(this, _AnimateCSS_type_accessor_storage, value, \"f\");\n }\n get playing() {\n return $f251dea0ed59a781$var$$d4436c849e74ae70$var$__classPrivateFieldGet(this, _AnimateCSS_playing_accessor_storage, \"f\");\n }\n set playing(value) {\n $f251dea0ed59a781$var$$d4436c849e74ae70$var$__classPrivateFieldSet(this, _AnimateCSS_playing_accessor_storage, value, \"f\");\n }\n async connectedCallback() {\n await (0, $gPvyW.importCSS)('https://unpkg.com/animate.css@4/animate.min.css');\n this.typeChanged();\n }\n async typeChanged() {\n this.playing = true;\n await $f251dea0ed59a781$export$4077c0dfbe9c3861(this, '.animate__animated');\n this.playing = false;\n }\n render() {\n const { type: type, playing: playing, component: Tag } = this;\n return playing ? (0, $zlbOT.jsx)(Tag, {\n className: `animate__animated animate__${type}`\n }) : type.includes('Out') ? (0, $zlbOT.jsx)((0, $zlbOT.Fragment), {}) : (0, $zlbOT.jsx)(Tag, {});\n }\n };\n _AnimateCSS_type_accessor_storage = new WeakMap();\n _AnimateCSS_playing_accessor_storage = new WeakMap();\n $f251dea0ed59a781$var$$d4436c849e74ae70$var$__setFunctionName(_classThis, \"AnimateCSS\");\n (()=>{\n var _a;\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;\n _type_decorators = [\n $f251dea0ed59a781$export$af4b9a83f4b00434,\n (0, $a2E6i.observable)\n ];\n _playing_decorators = [\n $f251dea0ed59a781$export$af4b9a83f4b00434,\n (0, $a2E6i.observable)\n ];\n _typeChanged_decorators = [\n $f251dea0ed59a781$export$7203b476385689ae(({ type: type })=>type)\n ];\n $f251dea0ed59a781$var$$d4436c849e74ae70$var$__esDecorate(_classThis, null, _type_decorators, {\n kind: \"accessor\",\n name: \"type\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"type\" in obj,\n get: (obj)=>obj.type,\n set: (obj, value)=>{\n obj.type = value;\n }\n },\n metadata: _metadata\n }, _type_initializers, _type_extraInitializers);\n $f251dea0ed59a781$var$$d4436c849e74ae70$var$__esDecorate(_classThis, null, _playing_decorators, {\n kind: \"accessor\",\n name: \"playing\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"playing\" in obj,\n get: (obj)=>obj.playing,\n set: (obj, value)=>{\n obj.playing = value;\n }\n },\n metadata: _metadata\n }, _playing_initializers, _playing_extraInitializers);\n $f251dea0ed59a781$var$$d4436c849e74ae70$var$__esDecorate(_classThis, null, _typeChanged_decorators, {\n kind: \"method\",\n name: \"typeChanged\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"typeChanged\" in obj,\n get: (obj)=>obj.typeChanged\n },\n metadata: _metadata\n }, null, _instanceExtraInitializers);\n $f251dea0ed59a781$var$$d4436c849e74ae70$var$__esDecorate(null, _classDescriptor = {\n value: _classThis\n }, _classDecorators, {\n kind: \"class\",\n name: _classThis.name,\n metadata: _metadata\n }, null, _classExtraInitializers);\n AnimateCSS = _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: _metadata\n });\n $f251dea0ed59a781$var$$d4436c849e74ae70$var$__runInitializers(_classThis, _classExtraInitializers);\n })();\n return AnimateCSS = _classThis;\n})();\n$f251dea0ed59a781$var$$parcel$exportWildcard($f251dea0ed59a781$var$$d4436c849e74ae70$exports, $f251dea0ed59a781$var$$819b340f625a29f4$exports);\nvar $f251dea0ed59a781$var$$8acf79bd061a8fc3$exports = {};\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$8acf79bd061a8fc3$exports, \"AsyncCell\", function() {\n return $f251dea0ed59a781$export$854a54a999c89982;\n});\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$8acf79bd061a8fc3$exports, \"lazy\", function() {\n return $f251dea0ed59a781$export$488013bae63b21da;\n});\nvar $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\nvar $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__runInitializers = function(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n};\nvar $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__setFunctionName = function(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n};\nvar $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__classPrivateFieldGet = function(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__classPrivateFieldSet = function(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n};\nvar $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__rest = function(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nlet $f251dea0ed59a781$export$854a54a999c89982 = (()=>{\n var _AsyncCell_component_accessor_storage, _AsyncCell_delegatedProps_accessor_storage;\n let _classDecorators = [\n $f251dea0ed59a781$export$d8556a2a8f973135({\n tagName: 'async-cell'\n }),\n $f251dea0ed59a781$export$b6ae1bc530f4c149\n ];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _component_decorators;\n let _component_initializers = [];\n let _component_extraInitializers = [];\n let _delegatedProps_decorators;\n let _delegatedProps_initializers = [];\n let _delegatedProps_extraInitializers = [];\n var AsyncCell = _classThis = class extends _classSuper {\n get component() {\n return $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__classPrivateFieldGet(this, _AsyncCell_component_accessor_storage, \"f\");\n }\n set component(value) {\n $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__classPrivateFieldSet(this, _AsyncCell_component_accessor_storage, value, \"f\");\n }\n get delegatedProps() {\n return $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__classPrivateFieldGet(this, _AsyncCell_delegatedProps_accessor_storage, \"f\");\n }\n set delegatedProps(value) {\n $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__classPrivateFieldSet(this, _AsyncCell_delegatedProps_accessor_storage, value, \"f\");\n }\n connectedCallback() {\n this.load();\n }\n async load() {\n this.component = undefined;\n const Tag = await this.loader();\n this.component = (_a)=>{\n var { children: children } = _a, props = $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__rest(_a, [\n \"children\"\n ]);\n return (0, $zlbOT.jsx)(Tag, Object.assign({}, props, {\n children: children\n }));\n };\n this.emit('load', this.component);\n }\n render() {\n const { component: Tag, props: props, delegatedProps: delegatedProps } = this;\n const _a = Object.assign(Object.assign({}, props), delegatedProps), { children: children } = _a, data = $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__rest(_a, [\n \"children\"\n ]);\n return Tag && (0, $zlbOT.jsx)(Tag, Object.assign({}, data, {\n children: children\n }));\n }\n constructor(){\n super(...arguments);\n Object.defineProperty(this, \"loader\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n _AsyncCell_component_accessor_storage.set(this, $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__runInitializers(this, _component_initializers, void 0));\n _AsyncCell_delegatedProps_accessor_storage.set(this, ($f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__runInitializers(this, _component_extraInitializers), $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__runInitializers(this, _delegatedProps_initializers, void 0)));\n $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__runInitializers(this, _delegatedProps_extraInitializers);\n }\n };\n _AsyncCell_component_accessor_storage = new WeakMap();\n _AsyncCell_delegatedProps_accessor_storage = new WeakMap();\n $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__setFunctionName(_classThis, \"AsyncCell\");\n (()=>{\n var _a;\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;\n _component_decorators = [\n (0, $a2E6i.observable)\n ];\n _delegatedProps_decorators = [\n (0, $a2E6i.observable)\n ];\n $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__esDecorate(_classThis, null, _component_decorators, {\n kind: \"accessor\",\n name: \"component\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"component\" in obj,\n get: (obj)=>obj.component,\n set: (obj, value)=>{\n obj.component = value;\n }\n },\n metadata: _metadata\n }, _component_initializers, _component_extraInitializers);\n $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__esDecorate(_classThis, null, _delegatedProps_decorators, {\n kind: \"accessor\",\n name: \"delegatedProps\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"delegatedProps\" in obj,\n get: (obj)=>obj.delegatedProps,\n set: (obj, value)=>{\n obj.delegatedProps = value;\n }\n },\n metadata: _metadata\n }, _delegatedProps_initializers, _delegatedProps_extraInitializers);\n $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__esDecorate(null, _classDescriptor = {\n value: _classThis\n }, _classDecorators, {\n kind: \"class\",\n name: _classThis.name,\n metadata: _metadata\n }, null, _classExtraInitializers);\n AsyncCell = _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: _metadata\n });\n $f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__runInitializers(_classThis, _classExtraInitializers);\n })();\n return AsyncCell = _classThis;\n})();\nfunction $f251dea0ed59a781$export$488013bae63b21da(loader) {\n return (props)=>(0, $zlbOT.jsx)($f251dea0ed59a781$export$854a54a999c89982, {\n delegatedProps: props,\n loader: async ()=>(await loader()).default\n });\n}\nvar $f251dea0ed59a781$var$$29675797ddd6c4f7$exports = {};\n$f251dea0ed59a781$var$$parcel$export($f251dea0ed59a781$var$$29675797ddd6c4f7$exports, \"formField\", function() {\n return $f251dea0ed59a781$export$2a668e8d088a0667;\n});\nvar $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers = function(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n};\nvar $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\nvar $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldGet = function(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldSet = function(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n};\nfunction $f251dea0ed59a781$export$2a668e8d088a0667(Class, _) {\n let FormFieldComponent = (()=>{\n var _a, _FormFieldComponent_name_accessor_storage, _FormFieldComponent_value_accessor_storage, _FormFieldComponent_required_accessor_storage, _FormFieldComponent_disabled_accessor_storage, _FormFieldComponent_autofocus_accessor_storage;\n let _classSuper = Class;\n let _instanceExtraInitializers = [];\n let _setValue_decorators;\n let _name_decorators;\n let _name_initializers = [];\n let _name_extraInitializers = [];\n let _value_decorators;\n let _value_initializers = [];\n let _value_extraInitializers = [];\n let _required_decorators;\n let _required_initializers = [];\n let _required_extraInitializers = [];\n let _disabled_decorators;\n let _disabled_initializers = [];\n let _disabled_extraInitializers = [];\n let _autofocus_decorators;\n let _autofocus_initializers = [];\n let _autofocus_extraInitializers = [];\n return _a = class FormFieldComponent extends _classSuper {\n setValue(value) {\n this.internals.setFormValue(value);\n }\n formDisabledCallback(disabled) {\n this.disabled = disabled;\n }\n get name() {\n return $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldGet(this, _FormFieldComponent_name_accessor_storage, \"f\");\n }\n set name(value) {\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldSet(this, _FormFieldComponent_name_accessor_storage, value, \"f\");\n }\n get value() {\n return $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldGet(this, _FormFieldComponent_value_accessor_storage, \"f\");\n }\n set value(value) {\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldSet(this, _FormFieldComponent_value_accessor_storage, value, \"f\");\n }\n get required() {\n return $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldGet(this, _FormFieldComponent_required_accessor_storage, \"f\");\n }\n set required(value) {\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldSet(this, _FormFieldComponent_required_accessor_storage, value, \"f\");\n }\n get disabled() {\n return $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldGet(this, _FormFieldComponent_disabled_accessor_storage, \"f\");\n }\n set disabled(value) {\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldSet(this, _FormFieldComponent_disabled_accessor_storage, value, \"f\");\n }\n get autofocus() {\n return $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldGet(this, _FormFieldComponent_autofocus_accessor_storage, \"f\");\n }\n set autofocus(value) {\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldSet(this, _FormFieldComponent_autofocus_accessor_storage, value, \"f\");\n }\n set defaultValue(raw) {\n var _b;\n this.setAttribute('value', raw);\n (_b = this.value) !== null && _b !== void 0 ? _b : this.value = raw;\n }\n get defaultValue() {\n return this.getAttribute('value');\n }\n get form() {\n return this.internals.form;\n }\n get validity() {\n return this.internals.validity;\n }\n get validationMessage() {\n return this.internals.validationMessage;\n }\n get willValidate() {\n return this.internals.willValidate;\n }\n checkValidity() {\n return this.internals.checkValidity();\n }\n reportValidity() {\n return this.internals.reportValidity();\n }\n constructor(){\n super(...arguments);\n _FormFieldComponent_name_accessor_storage.set(this, ($f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _instanceExtraInitializers), $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _name_initializers, void 0)));\n _FormFieldComponent_value_accessor_storage.set(this, ($f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _name_extraInitializers), $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _value_initializers, void 0)));\n _FormFieldComponent_required_accessor_storage.set(this, ($f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _value_extraInitializers), $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _required_initializers, void 0)));\n _FormFieldComponent_disabled_accessor_storage.set(this, ($f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _required_extraInitializers), $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _disabled_initializers, void 0)));\n _FormFieldComponent_autofocus_accessor_storage.set(this, ($f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _disabled_extraInitializers), $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _autofocus_initializers, void 0)));\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers(this, _autofocus_extraInitializers);\n }\n }, _FormFieldComponent_name_accessor_storage = new WeakMap(), _FormFieldComponent_value_accessor_storage = new WeakMap(), _FormFieldComponent_required_accessor_storage = new WeakMap(), _FormFieldComponent_disabled_accessor_storage = new WeakMap(), _FormFieldComponent_autofocus_accessor_storage = new WeakMap(), (()=>{\n var _b;\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create((_b = _classSuper[Symbol.metadata]) !== null && _b !== void 0 ? _b : null) : void 0;\n _setValue_decorators = [\n $f251dea0ed59a781$export$7203b476385689ae(({ value: value })=>value)\n ];\n _name_decorators = [\n $f251dea0ed59a781$export$af4b9a83f4b00434,\n (0, $a2E6i.observable)\n ];\n _value_decorators = [\n (0, $a2E6i.observable)\n ];\n _required_decorators = [\n $f251dea0ed59a781$export$af4b9a83f4b00434,\n (0, $a2E6i.observable)\n ];\n _disabled_decorators = [\n $f251dea0ed59a781$export$af4b9a83f4b00434,\n (0, $a2E6i.observable)\n ];\n _autofocus_decorators = [\n $f251dea0ed59a781$export$af4b9a83f4b00434,\n (0, $a2E6i.observable)\n ];\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__esDecorate(_a, null, _setValue_decorators, {\n kind: \"method\",\n name: \"setValue\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"setValue\" in obj,\n get: (obj)=>obj.setValue\n },\n metadata: _metadata\n }, null, _instanceExtraInitializers);\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__esDecorate(_a, null, _name_decorators, {\n kind: \"accessor\",\n name: \"name\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"name\" in obj,\n get: (obj)=>obj.name,\n set: (obj, value)=>{\n obj.name = value;\n }\n },\n metadata: _metadata\n }, _name_initializers, _name_extraInitializers);\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__esDecorate(_a, null, _value_decorators, {\n kind: \"accessor\",\n name: \"value\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"value\" in obj,\n get: (obj)=>obj.value,\n set: (obj, value)=>{\n obj.value = value;\n }\n },\n metadata: _metadata\n }, _value_initializers, _value_extraInitializers);\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__esDecorate(_a, null, _required_decorators, {\n kind: \"accessor\",\n name: \"required\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"required\" in obj,\n get: (obj)=>obj.required,\n set: (obj, value)=>{\n obj.required = value;\n }\n },\n metadata: _metadata\n }, _required_initializers, _required_extraInitializers);\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__esDecorate(_a, null, _disabled_decorators, {\n kind: \"accessor\",\n name: \"disabled\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"disabled\" in obj,\n get: (obj)=>obj.disabled,\n set: (obj, value)=>{\n obj.disabled = value;\n }\n },\n metadata: _metadata\n }, _disabled_initializers, _disabled_extraInitializers);\n $f251dea0ed59a781$var$$29675797ddd6c4f7$var$__esDecorate(_a, null, _autofocus_decorators, {\n kind: \"accessor\",\n name: \"autofocus\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"autofocus\" in obj,\n get: (obj)=>obj.autofocus,\n set: (obj, value)=>{\n obj.autofocus = value;\n }\n },\n metadata: _metadata\n }, _autofocus_initializers, _autofocus_extraInitializers);\n if (_metadata) Object.defineProperty(_a, Symbol.metadata, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: _metadata\n });\n })(), Object.defineProperty(_a, \"formAssociated\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: true\n }), _a;\n })();\n return FormFieldComponent;\n}\n\n\n\nvar $gPvyW = parcelRequire(\"gPvyW\");\nvar $da37ce670175a8d0$var$R = class {\n type = 3;\n name = \"\";\n prefix = \"\";\n value = \"\";\n suffix = \"\";\n modifier = 3;\n constructor(t, r, n, o, c, l){\n this.type = t, this.name = r, this.prefix = n, this.value = o, this.suffix = c, this.modifier = l;\n }\n hasCustomName() {\n return this.name !== \"\" && typeof this.name != \"number\";\n }\n}, $da37ce670175a8d0$var$be = /[$_\\p{ID_Start}]/u, $da37ce670175a8d0$var$Pe = /[$_\\u200C\\u200D\\p{ID_Continue}]/u, $da37ce670175a8d0$var$M = \".*\";\nfunction $da37ce670175a8d0$var$Re(e, t) {\n return (t ? /^[\\x00-\\xFF]*$/ : /^[\\x00-\\x7F]*$/).test(e);\n}\nfunction $da37ce670175a8d0$var$v(e, t = !1) {\n let r = [], n = 0;\n for(; n < e.length;){\n let o = e[n], c = function(l) {\n if (!t) throw new TypeError(l);\n r.push({\n type: \"INVALID_CHAR\",\n index: n,\n value: e[n++]\n });\n };\n if (o === \"*\") {\n r.push({\n type: \"ASTERISK\",\n index: n,\n value: e[n++]\n });\n continue;\n }\n if (o === \"+\" || o === \"?\") {\n r.push({\n type: \"OTHER_MODIFIER\",\n index: n,\n value: e[n++]\n });\n continue;\n }\n if (o === \"\\\\\") {\n r.push({\n type: \"ESCAPED_CHAR\",\n index: n++,\n value: e[n++]\n });\n continue;\n }\n if (o === \"{\") {\n r.push({\n type: \"OPEN\",\n index: n,\n value: e[n++]\n });\n continue;\n }\n if (o === \"}\") {\n r.push({\n type: \"CLOSE\",\n index: n,\n value: e[n++]\n });\n continue;\n }\n if (o === \":\") {\n let l = \"\", s = n + 1;\n for(; s < e.length;){\n let i = e.substr(s, 1);\n if (s === n + 1 && $da37ce670175a8d0$var$be.test(i) || s !== n + 1 && $da37ce670175a8d0$var$Pe.test(i)) {\n l += e[s++];\n continue;\n }\n break;\n }\n if (!l) {\n c(`Missing parameter name at ${n}`);\n continue;\n }\n r.push({\n type: \"NAME\",\n index: n,\n value: l\n }), n = s;\n continue;\n }\n if (o === \"(\") {\n let l = 1, s = \"\", i = n + 1, a = !1;\n if (e[i] === \"?\") {\n c(`Pattern cannot start with \"?\" at ${i}`);\n continue;\n }\n for(; i < e.length;){\n if (!$da37ce670175a8d0$var$Re(e[i], !1)) {\n c(`Invalid character '${e[i]}' at ${i}.`), a = !0;\n break;\n }\n if (e[i] === \"\\\\\") {\n s += e[i++] + e[i++];\n continue;\n }\n if (e[i] === \")\") {\n if (l--, l === 0) {\n i++;\n break;\n }\n } else if (e[i] === \"(\" && (l++, e[i + 1] !== \"?\")) {\n c(`Capturing groups are not allowed at ${i}`), a = !0;\n break;\n }\n s += e[i++];\n }\n if (a) continue;\n if (l) {\n c(`Unbalanced pattern at ${n}`);\n continue;\n }\n if (!s) {\n c(`Missing pattern at ${n}`);\n continue;\n }\n r.push({\n type: \"REGEX\",\n index: n,\n value: s\n }), n = i;\n continue;\n }\n r.push({\n type: \"CHAR\",\n index: n,\n value: e[n++]\n });\n }\n return r.push({\n type: \"END\",\n index: n,\n value: \"\"\n }), r;\n}\nfunction $da37ce670175a8d0$var$D(e, t = {}) {\n let r = $da37ce670175a8d0$var$v(e);\n t.delimiter ??= \"/#?\", t.prefixes ??= \"./\";\n let n = `[^${$da37ce670175a8d0$var$S(t.delimiter)}]+?`, o = [], c = 0, l = 0, s = \"\", i = new Set, a = (h)=>{\n if (l < r.length && r[l].type === h) return r[l++].value;\n }, f = ()=>a(\"OTHER_MODIFIER\") ?? a(\"ASTERISK\"), d = (h)=>{\n let u = a(h);\n if (u !== void 0) return u;\n let { type: p, index: A } = r[l];\n throw new TypeError(`Unexpected ${p} at ${A}, expected ${h}`);\n }, T = ()=>{\n let h = \"\", u;\n for(; u = a(\"CHAR\") ?? a(\"ESCAPED_CHAR\");)h += u;\n return h;\n }, Se = (h)=>h, L = t.encodePart || Se, I = \"\", U = (h)=>{\n I += h;\n }, $ = ()=>{\n I.length && (o.push(new $da37ce670175a8d0$var$R(3, \"\", \"\", L(I), \"\", 3)), I = \"\");\n }, V = (h, u, p, A, Y)=>{\n let g = 3;\n switch(Y){\n case \"?\":\n g = 1;\n break;\n case \"*\":\n g = 0;\n break;\n case \"+\":\n g = 2;\n break;\n }\n if (!u && !p && g === 3) {\n U(h);\n return;\n }\n if ($(), !u && !p) {\n if (!h) return;\n o.push(new $da37ce670175a8d0$var$R(3, \"\", \"\", L(h), \"\", g));\n return;\n }\n let m;\n p ? p === \"*\" ? m = $da37ce670175a8d0$var$M : m = p : m = n;\n let O = 2;\n m === n ? (O = 1, m = \"\") : m === $da37ce670175a8d0$var$M && (O = 0, m = \"\");\n let P;\n if (u ? P = u : p && (P = c++), i.has(P)) throw new TypeError(`Duplicate name '${P}'.`);\n i.add(P), o.push(new $da37ce670175a8d0$var$R(O, P, L(h), m, L(A), g));\n };\n for(; l < r.length;){\n let h = a(\"CHAR\"), u = a(\"NAME\"), p = a(\"REGEX\");\n if (!u && !p && (p = a(\"ASTERISK\")), u || p) {\n let g = h ?? \"\";\n t.prefixes.indexOf(g) === -1 && (U(g), g = \"\"), $();\n let m = f();\n V(g, u, p, \"\", m);\n continue;\n }\n let A = h ?? a(\"ESCAPED_CHAR\");\n if (A) {\n U(A);\n continue;\n }\n if (a(\"OPEN\")) {\n let g = T(), m = a(\"NAME\"), O = a(\"REGEX\");\n !m && !O && (O = a(\"ASTERISK\"));\n let P = T();\n d(\"CLOSE\");\n let xe = f();\n V(g, m, O, P, xe);\n continue;\n }\n $(), d(\"END\");\n }\n return o;\n}\nfunction $da37ce670175a8d0$var$S(e) {\n return e.replace(/([.+*?^${}()[\\]|/\\\\])/g, \"\\\\$1\");\n}\nfunction $da37ce670175a8d0$var$X(e) {\n return e && e.ignoreCase ? \"ui\" : \"u\";\n}\nfunction $da37ce670175a8d0$var$Z(e, t, r) {\n return $da37ce670175a8d0$var$F($da37ce670175a8d0$var$D(e, r), t, r);\n}\nfunction $da37ce670175a8d0$var$k(e) {\n switch(e){\n case 0:\n return \"*\";\n case 1:\n return \"?\";\n case 2:\n return \"+\";\n case 3:\n return \"\";\n }\n}\nfunction $da37ce670175a8d0$var$F(e, t, r = {}) {\n r.delimiter ??= \"/#?\", r.prefixes ??= \"./\", r.sensitive ??= !1, r.strict ??= !1, r.end ??= !0, r.start ??= !0, r.endsWith = \"\";\n let n = r.start ? \"^\" : \"\";\n for (let s of e){\n if (s.type === 3) {\n s.modifier === 3 ? n += $da37ce670175a8d0$var$S(s.value) : n += `(?:${$da37ce670175a8d0$var$S(s.value)})${$da37ce670175a8d0$var$k(s.modifier)}`;\n continue;\n }\n t && t.push(s.name);\n let i = `[^${$da37ce670175a8d0$var$S(r.delimiter)}]+?`, a = s.value;\n if (s.type === 1 ? a = i : s.type === 0 && (a = $da37ce670175a8d0$var$M), !s.prefix.length && !s.suffix.length) {\n s.modifier === 3 || s.modifier === 1 ? n += `(${a})${$da37ce670175a8d0$var$k(s.modifier)}` : n += `((?:${a})${$da37ce670175a8d0$var$k(s.modifier)})`;\n continue;\n }\n if (s.modifier === 3 || s.modifier === 1) {\n n += `(?:${$da37ce670175a8d0$var$S(s.prefix)}(${a})${$da37ce670175a8d0$var$S(s.suffix)})`, n += $da37ce670175a8d0$var$k(s.modifier);\n continue;\n }\n n += `(?:${$da37ce670175a8d0$var$S(s.prefix)}`, n += `((?:${a})(?:`, n += $da37ce670175a8d0$var$S(s.suffix), n += $da37ce670175a8d0$var$S(s.prefix), n += `(?:${a}))*)${$da37ce670175a8d0$var$S(s.suffix)})`, s.modifier === 0 && (n += \"?\");\n }\n let o = `[${$da37ce670175a8d0$var$S(r.endsWith)}]|$`, c = `[${$da37ce670175a8d0$var$S(r.delimiter)}]`;\n if (r.end) return r.strict || (n += `${c}?`), r.endsWith.length ? n += `(?=${o})` : n += \"$\", new RegExp(n, $da37ce670175a8d0$var$X(r));\n r.strict || (n += `(?:${c}(?=${o}))?`);\n let l = !1;\n if (e.length) {\n let s = e[e.length - 1];\n s.type === 3 && s.modifier === 3 && (l = r.delimiter.indexOf(s) > -1);\n }\n return l || (n += `(?=${c}|${o})`), new RegExp(n, $da37ce670175a8d0$var$X(r));\n}\nvar $da37ce670175a8d0$var$x = {\n delimiter: \"\",\n prefixes: \"\",\n sensitive: !0,\n strict: !0\n}, $da37ce670175a8d0$var$B = {\n delimiter: \".\",\n prefixes: \"\",\n sensitive: !0,\n strict: !0\n}, $da37ce670175a8d0$var$q = {\n delimiter: \"/\",\n prefixes: \"/\",\n sensitive: !0,\n strict: !0\n};\nfunction $da37ce670175a8d0$var$J(e, t) {\n return e.length ? e[0] === \"/\" ? !0 : !t || e.length < 2 ? !1 : (e[0] == \"\\\\\" || e[0] == \"{\") && e[1] == \"/\" : !1;\n}\nfunction $da37ce670175a8d0$var$Q(e, t) {\n return e.startsWith(t) ? e.substring(t.length, e.length) : e;\n}\nfunction $da37ce670175a8d0$var$Ee(e, t) {\n return e.endsWith(t) ? e.substr(0, e.length - t.length) : e;\n}\nfunction $da37ce670175a8d0$var$W(e) {\n return !e || e.length < 2 ? !1 : e[0] === \"[\" || (e[0] === \"\\\\\" || e[0] === \"{\") && e[1] === \"[\";\n}\nvar $da37ce670175a8d0$var$ee = [\n \"ftp\",\n \"file\",\n \"http\",\n \"https\",\n \"ws\",\n \"wss\"\n];\nfunction $da37ce670175a8d0$var$N(e) {\n if (!e) return !0;\n for (let t of $da37ce670175a8d0$var$ee)if (e.test(t)) return !0;\n return !1;\n}\nfunction $da37ce670175a8d0$var$te(e, t) {\n if (e = $da37ce670175a8d0$var$Q(e, \"#\"), t || e === \"\") return e;\n let r = new URL(\"https://example.com\");\n return r.hash = e, r.hash ? r.hash.substring(1, r.hash.length) : \"\";\n}\nfunction $da37ce670175a8d0$var$re(e, t) {\n if (e = $da37ce670175a8d0$var$Q(e, \"?\"), t || e === \"\") return e;\n let r = new URL(\"https://example.com\");\n return r.search = e, r.search ? r.search.substring(1, r.search.length) : \"\";\n}\nfunction $da37ce670175a8d0$var$ne(e, t) {\n return t || e === \"\" ? e : $da37ce670175a8d0$var$W(e) ? $da37ce670175a8d0$var$j(e) : $da37ce670175a8d0$var$z(e);\n}\nfunction $da37ce670175a8d0$var$se(e, t) {\n if (t || e === \"\") return e;\n let r = new URL(\"https://example.com\");\n return r.password = e, r.password;\n}\nfunction $da37ce670175a8d0$var$ie(e, t) {\n if (t || e === \"\") return e;\n let r = new URL(\"https://example.com\");\n return r.username = e, r.username;\n}\nfunction $da37ce670175a8d0$var$ae(e, t, r) {\n if (r || e === \"\") return e;\n if (t && !$da37ce670175a8d0$var$ee.includes(t)) return new URL(`${t}:${e}`).pathname;\n let n = e[0] == \"/\";\n return e = new URL(n ? e : \"/-\" + e, \"https://example.com\").pathname, n || (e = e.substring(2, e.length)), e;\n}\nfunction $da37ce670175a8d0$var$oe(e, t, r) {\n return $da37ce670175a8d0$var$_(t) === e && (e = \"\"), r || e === \"\" ? e : $da37ce670175a8d0$var$K(e);\n}\nfunction $da37ce670175a8d0$var$ce(e, t) {\n return e = $da37ce670175a8d0$var$Ee(e, \":\"), t || e === \"\" ? e : $da37ce670175a8d0$var$y(e);\n}\nfunction $da37ce670175a8d0$var$_(e) {\n switch(e){\n case \"ws\":\n case \"http\":\n return \"80\";\n case \"wws\":\n case \"https\":\n return \"443\";\n case \"ftp\":\n return \"21\";\n default:\n return \"\";\n }\n}\nfunction $da37ce670175a8d0$var$y(e) {\n if (e === \"\") return e;\n if (/^[-+.A-Za-z0-9]*$/.test(e)) return e.toLowerCase();\n throw new TypeError(`Invalid protocol '${e}'.`);\n}\nfunction $da37ce670175a8d0$var$le(e) {\n if (e === \"\") return e;\n let t = new URL(\"https://example.com\");\n return t.username = e, t.username;\n}\nfunction $da37ce670175a8d0$var$fe(e) {\n if (e === \"\") return e;\n let t = new URL(\"https://example.com\");\n return t.password = e, t.password;\n}\nfunction $da37ce670175a8d0$var$z(e) {\n if (e === \"\") return e;\n if (/[\\t\\n\\r #%/:<>?@[\\]^\\\\|]/g.test(e)) throw new TypeError(`Invalid hostname '${e}'`);\n let t = new URL(\"https://example.com\");\n return t.hostname = e, t.hostname;\n}\nfunction $da37ce670175a8d0$var$j(e) {\n if (e === \"\") return e;\n if (/[^0-9a-fA-F[\\]:]/g.test(e)) throw new TypeError(`Invalid IPv6 hostname '${e}'`);\n return e.toLowerCase();\n}\nfunction $da37ce670175a8d0$var$K(e) {\n if (e === \"\" || /^[0-9]*$/.test(e) && parseInt(e) <= 65535) return e;\n throw new TypeError(`Invalid port '${e}'.`);\n}\nfunction $da37ce670175a8d0$var$he(e) {\n if (e === \"\") return e;\n let t = new URL(\"https://example.com\");\n return t.pathname = e[0] !== \"/\" ? \"/-\" + e : e, e[0] !== \"/\" ? t.pathname.substring(2, t.pathname.length) : t.pathname;\n}\nfunction $da37ce670175a8d0$var$ue(e) {\n return e === \"\" ? e : new URL(`data:${e}`).pathname;\n}\nfunction $da37ce670175a8d0$var$de(e) {\n if (e === \"\") return e;\n let t = new URL(\"https://example.com\");\n return t.search = e, t.search.substring(1, t.search.length);\n}\nfunction $da37ce670175a8d0$var$pe(e) {\n if (e === \"\") return e;\n let t = new URL(\"https://example.com\");\n return t.hash = e, t.hash.substring(1, t.hash.length);\n}\nvar $da37ce670175a8d0$var$H = class {\n #i;\n #n = [];\n #t = {};\n #e = 0;\n #s = 1;\n #l = 0;\n #o = 0;\n #d = 0;\n #p = 0;\n #g = !1;\n constructor(t){\n this.#i = t;\n }\n get result() {\n return this.#t;\n }\n parse() {\n for(this.#n = $da37ce670175a8d0$var$v(this.#i, !0); this.#e < this.#n.length; this.#e += this.#s){\n if (this.#s = 1, this.#n[this.#e].type === \"END\") {\n if (this.#o === 0) {\n this.#b(), this.#f() ? this.#r(9, 1) : this.#h() ? this.#r(8, 1) : this.#r(7, 0);\n continue;\n } else if (this.#o === 2) {\n this.#u(5);\n continue;\n }\n this.#r(10, 0);\n break;\n }\n if (this.#d > 0) {\n if (this.#A()) this.#d -= 1;\n else continue;\n }\n if (this.#T()) {\n this.#d += 1;\n continue;\n }\n switch(this.#o){\n case 0:\n this.#P() && this.#u(1);\n break;\n case 1:\n if (this.#P()) {\n this.#C();\n let t = 7, r = 1;\n this.#E() ? (t = 2, r = 3) : this.#g && (t = 2), this.#r(t, r);\n }\n break;\n case 2:\n this.#S() ? this.#u(3) : (this.#x() || this.#h() || this.#f()) && this.#u(5);\n break;\n case 3:\n this.#O() ? this.#r(4, 1) : this.#S() && this.#r(5, 1);\n break;\n case 4:\n this.#S() && this.#r(5, 1);\n break;\n case 5:\n this.#y() ? this.#p += 1 : this.#w() && (this.#p -= 1), this.#k() && !this.#p ? this.#r(6, 1) : this.#x() ? this.#r(7, 0) : this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);\n break;\n case 6:\n this.#x() ? this.#r(7, 0) : this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);\n break;\n case 7:\n this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);\n break;\n case 8:\n this.#f() && this.#r(9, 1);\n break;\n case 9:\n break;\n case 10:\n break;\n }\n }\n this.#t.hostname !== void 0 && this.#t.port === void 0 && (this.#t.port = \"\");\n }\n #r(t, r) {\n switch(this.#o){\n case 0:\n break;\n case 1:\n this.#t.protocol = this.#c();\n break;\n case 2:\n break;\n case 3:\n this.#t.username = this.#c();\n break;\n case 4:\n this.#t.password = this.#c();\n break;\n case 5:\n this.#t.hostname = this.#c();\n break;\n case 6:\n this.#t.port = this.#c();\n break;\n case 7:\n this.#t.pathname = this.#c();\n break;\n case 8:\n this.#t.search = this.#c();\n break;\n case 9:\n this.#t.hash = this.#c();\n break;\n case 10:\n break;\n }\n this.#o !== 0 && t !== 10 && ([\n 1,\n 2,\n 3,\n 4\n ].includes(this.#o) && [\n 6,\n 7,\n 8,\n 9\n ].includes(t) && (this.#t.hostname ??= \"\"), [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6\n ].includes(this.#o) && [\n 8,\n 9\n ].includes(t) && (this.#t.pathname ??= this.#g ? \"/\" : \"\"), [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7\n ].includes(this.#o) && t === 9 && (this.#t.search ??= \"\")), this.#R(t, r);\n }\n #R(t, r) {\n this.#o = t, this.#l = this.#e + r, this.#e += r, this.#s = 0;\n }\n #b() {\n this.#e = this.#l, this.#s = 0;\n }\n #u(t) {\n this.#b(), this.#o = t;\n }\n #m(t) {\n return t < 0 && (t = this.#n.length - t), t < this.#n.length ? this.#n[t] : this.#n[this.#n.length - 1];\n }\n #a(t, r) {\n let n = this.#m(t);\n return n.value === r && (n.type === \"CHAR\" || n.type === \"ESCAPED_CHAR\" || n.type === \"INVALID_CHAR\");\n }\n #P() {\n return this.#a(this.#e, \":\");\n }\n #E() {\n return this.#a(this.#e + 1, \"/\") && this.#a(this.#e + 2, \"/\");\n }\n #S() {\n return this.#a(this.#e, \"@\");\n }\n #O() {\n return this.#a(this.#e, \":\");\n }\n #k() {\n return this.#a(this.#e, \":\");\n }\n #x() {\n return this.#a(this.#e, \"/\");\n }\n #h() {\n if (this.#a(this.#e, \"?\")) return !0;\n if (this.#n[this.#e].value !== \"?\") return !1;\n let t = this.#m(this.#e - 1);\n return t.type !== \"NAME\" && t.type !== \"REGEX\" && t.type !== \"CLOSE\" && t.type !== \"ASTERISK\";\n }\n #f() {\n return this.#a(this.#e, \"#\");\n }\n #T() {\n return this.#n[this.#e].type == \"OPEN\";\n }\n #A() {\n return this.#n[this.#e].type == \"CLOSE\";\n }\n #y() {\n return this.#a(this.#e, \"[\");\n }\n #w() {\n return this.#a(this.#e, \"]\");\n }\n #c() {\n let t = this.#n[this.#e], r = this.#m(this.#l).index;\n return this.#i.substring(r, t.index);\n }\n #C() {\n let t = {};\n Object.assign(t, $da37ce670175a8d0$var$x), t.encodePart = $da37ce670175a8d0$var$y;\n let r = $da37ce670175a8d0$var$Z(this.#c(), void 0, t);\n this.#g = $da37ce670175a8d0$var$N(r);\n }\n};\nvar $da37ce670175a8d0$var$G = [\n \"protocol\",\n \"username\",\n \"password\",\n \"hostname\",\n \"port\",\n \"pathname\",\n \"search\",\n \"hash\"\n], $da37ce670175a8d0$var$E = \"*\";\nfunction $da37ce670175a8d0$var$ge(e, t) {\n if (typeof e != \"string\") throw new TypeError(\"parameter 1 is not of type 'string'.\");\n let r = new URL(e, t);\n return {\n protocol: r.protocol.substring(0, r.protocol.length - 1),\n username: r.username,\n password: r.password,\n hostname: r.hostname,\n port: r.port,\n pathname: r.pathname,\n search: r.search !== \"\" ? r.search.substring(1, r.search.length) : void 0,\n hash: r.hash !== \"\" ? r.hash.substring(1, r.hash.length) : void 0\n };\n}\nfunction $da37ce670175a8d0$var$b(e, t) {\n return t ? $da37ce670175a8d0$var$C(e) : e;\n}\nfunction $da37ce670175a8d0$var$w(e, t, r) {\n let n;\n if (typeof t.baseURL == \"string\") try {\n n = new URL(t.baseURL), t.protocol === void 0 && (e.protocol = $da37ce670175a8d0$var$b(n.protocol.substring(0, n.protocol.length - 1), r)), !r && t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.username === void 0 && (e.username = $da37ce670175a8d0$var$b(n.username, r)), !r && t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.username === void 0 && t.password === void 0 && (e.password = $da37ce670175a8d0$var$b(n.password, r)), t.protocol === void 0 && t.hostname === void 0 && (e.hostname = $da37ce670175a8d0$var$b(n.hostname, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && (e.port = $da37ce670175a8d0$var$b(n.port, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && (e.pathname = $da37ce670175a8d0$var$b(n.pathname, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && t.search === void 0 && (e.search = $da37ce670175a8d0$var$b(n.search.substring(1, n.search.length), r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && t.search === void 0 && t.hash === void 0 && (e.hash = $da37ce670175a8d0$var$b(n.hash.substring(1, n.hash.length), r));\n } catch {\n throw new TypeError(`invalid baseURL '${t.baseURL}'.`);\n }\n if (typeof t.protocol == \"string\" && (e.protocol = $da37ce670175a8d0$var$ce(t.protocol, r)), typeof t.username == \"string\" && (e.username = $da37ce670175a8d0$var$ie(t.username, r)), typeof t.password == \"string\" && (e.password = $da37ce670175a8d0$var$se(t.password, r)), typeof t.hostname == \"string\" && (e.hostname = $da37ce670175a8d0$var$ne(t.hostname, r)), typeof t.port == \"string\" && (e.port = $da37ce670175a8d0$var$oe(t.port, e.protocol, r)), typeof t.pathname == \"string\") {\n if (e.pathname = t.pathname, n && !$da37ce670175a8d0$var$J(e.pathname, r)) {\n let o = n.pathname.lastIndexOf(\"/\");\n o >= 0 && (e.pathname = $da37ce670175a8d0$var$b(n.pathname.substring(0, o + 1), r) + e.pathname);\n }\n e.pathname = $da37ce670175a8d0$var$ae(e.pathname, e.protocol, r);\n }\n return typeof t.search == \"string\" && (e.search = $da37ce670175a8d0$var$re(t.search, r)), typeof t.hash == \"string\" && (e.hash = $da37ce670175a8d0$var$te(t.hash, r)), e;\n}\nfunction $da37ce670175a8d0$var$C(e) {\n return e.replace(/([+*?:{}()\\\\])/g, \"\\\\$1\");\n}\nfunction $da37ce670175a8d0$var$Oe(e) {\n return e.replace(/([.+*?^${}()[\\]|/\\\\])/g, \"\\\\$1\");\n}\nfunction $da37ce670175a8d0$var$ke(e, t) {\n t.delimiter ??= \"/#?\", t.prefixes ??= \"./\", t.sensitive ??= !1, t.strict ??= !1, t.end ??= !0, t.start ??= !0, t.endsWith = \"\";\n let r = \".*\", n = `[^${$da37ce670175a8d0$var$Oe(t.delimiter)}]+?`, o = /[$_\\u200C\\u200D\\p{ID_Continue}]/u, c = \"\";\n for(let l = 0; l < e.length; ++l){\n let s = e[l];\n if (s.type === 3) {\n if (s.modifier === 3) {\n c += $da37ce670175a8d0$var$C(s.value);\n continue;\n }\n c += `{${$da37ce670175a8d0$var$C(s.value)}}${$da37ce670175a8d0$var$k(s.modifier)}`;\n continue;\n }\n let i = s.hasCustomName(), a = !!s.suffix.length || !!s.prefix.length && (s.prefix.length !== 1 || !t.prefixes.includes(s.prefix)), f = l > 0 ? e[l - 1] : null, d = l < e.length - 1 ? e[l + 1] : null;\n if (!a && i && s.type === 1 && s.modifier === 3 && d && !d.prefix.length && !d.suffix.length) {\n if (d.type === 3) {\n let T = d.value.length > 0 ? d.value[0] : \"\";\n a = o.test(T);\n } else a = !d.hasCustomName();\n }\n if (!a && !s.prefix.length && f && f.type === 3) {\n let T = f.value[f.value.length - 1];\n a = t.prefixes.includes(T);\n }\n a && (c += \"{\"), c += $da37ce670175a8d0$var$C(s.prefix), i && (c += `:${s.name}`), s.type === 2 ? c += `(${s.value})` : s.type === 1 ? i || (c += `(${n})`) : s.type === 0 && (!i && (!f || f.type === 3 || f.modifier !== 3 || a || s.prefix !== \"\") ? c += \"*\" : c += `(${r})`), s.type === 1 && i && s.suffix.length && o.test(s.suffix[0]) && (c += \"\\\\\"), c += $da37ce670175a8d0$var$C(s.suffix), a && (c += \"}\"), s.modifier !== 3 && (c += $da37ce670175a8d0$var$k(s.modifier));\n }\n return c;\n}\nvar $da37ce670175a8d0$export$a348b14d2b61192c = class {\n #i;\n #n = {};\n #t = {};\n #e = {};\n #s = {};\n #l = !1;\n constructor(t = {}, r, n){\n try {\n let o;\n if (typeof r == \"string\" ? o = r : n = r, typeof t == \"string\") {\n let i = new $da37ce670175a8d0$var$H(t);\n if (i.parse(), t = i.result, o === void 0 && typeof t.protocol != \"string\") throw new TypeError(\"A base URL must be provided for a relative constructor string.\");\n t.baseURL = o;\n } else {\n if (!t || typeof t != \"object\") throw new TypeError(\"parameter 1 is not of type 'string' and cannot convert to dictionary.\");\n if (o) throw new TypeError(\"parameter 1 is not of type 'string'.\");\n }\n typeof n > \"u\" && (n = {\n ignoreCase: !1\n });\n let c = {\n ignoreCase: n.ignoreCase === !0\n }, l = {\n pathname: $da37ce670175a8d0$var$E,\n protocol: $da37ce670175a8d0$var$E,\n username: $da37ce670175a8d0$var$E,\n password: $da37ce670175a8d0$var$E,\n hostname: $da37ce670175a8d0$var$E,\n port: $da37ce670175a8d0$var$E,\n search: $da37ce670175a8d0$var$E,\n hash: $da37ce670175a8d0$var$E\n };\n this.#i = $da37ce670175a8d0$var$w(l, t, !0), $da37ce670175a8d0$var$_(this.#i.protocol) === this.#i.port && (this.#i.port = \"\");\n let s;\n for (s of $da37ce670175a8d0$var$G){\n if (!(s in this.#i)) continue;\n let i = {}, a = this.#i[s];\n switch(this.#t[s] = [], s){\n case \"protocol\":\n Object.assign(i, $da37ce670175a8d0$var$x), i.encodePart = $da37ce670175a8d0$var$y;\n break;\n case \"username\":\n Object.assign(i, $da37ce670175a8d0$var$x), i.encodePart = $da37ce670175a8d0$var$le;\n break;\n case \"password\":\n Object.assign(i, $da37ce670175a8d0$var$x), i.encodePart = $da37ce670175a8d0$var$fe;\n break;\n case \"hostname\":\n Object.assign(i, $da37ce670175a8d0$var$B), $da37ce670175a8d0$var$W(a) ? i.encodePart = $da37ce670175a8d0$var$j : i.encodePart = $da37ce670175a8d0$var$z;\n break;\n case \"port\":\n Object.assign(i, $da37ce670175a8d0$var$x), i.encodePart = $da37ce670175a8d0$var$K;\n break;\n case \"pathname\":\n $da37ce670175a8d0$var$N(this.#n.protocol) ? (Object.assign(i, $da37ce670175a8d0$var$q, c), i.encodePart = $da37ce670175a8d0$var$he) : (Object.assign(i, $da37ce670175a8d0$var$x, c), i.encodePart = $da37ce670175a8d0$var$ue);\n break;\n case \"search\":\n Object.assign(i, $da37ce670175a8d0$var$x, c), i.encodePart = $da37ce670175a8d0$var$de;\n break;\n case \"hash\":\n Object.assign(i, $da37ce670175a8d0$var$x, c), i.encodePart = $da37ce670175a8d0$var$pe;\n break;\n }\n try {\n this.#s[s] = $da37ce670175a8d0$var$D(a, i), this.#n[s] = $da37ce670175a8d0$var$F(this.#s[s], this.#t[s], i), this.#e[s] = $da37ce670175a8d0$var$ke(this.#s[s], i), this.#l = this.#l || this.#s[s].some((f)=>f.type === 2);\n } catch {\n throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`);\n }\n }\n } catch (o) {\n throw new TypeError(`Failed to construct 'URLPattern': ${o.message}`);\n }\n }\n test(t = {}, r) {\n let n = {\n pathname: \"\",\n protocol: \"\",\n username: \"\",\n password: \"\",\n hostname: \"\",\n port: \"\",\n search: \"\",\n hash: \"\"\n };\n if (typeof t != \"string\" && r) throw new TypeError(\"parameter 1 is not of type 'string'.\");\n if (typeof t > \"u\") return !1;\n try {\n typeof t == \"object\" ? n = $da37ce670175a8d0$var$w(n, t, !1) : n = $da37ce670175a8d0$var$w(n, $da37ce670175a8d0$var$ge(t, r), !1);\n } catch {\n return !1;\n }\n let o;\n for (o of $da37ce670175a8d0$var$G)if (!this.#n[o].exec(n[o])) return !1;\n return !0;\n }\n exec(t = {}, r) {\n let n = {\n pathname: \"\",\n protocol: \"\",\n username: \"\",\n password: \"\",\n hostname: \"\",\n port: \"\",\n search: \"\",\n hash: \"\"\n };\n if (typeof t != \"string\" && r) throw new TypeError(\"parameter 1 is not of type 'string'.\");\n if (typeof t > \"u\") return;\n try {\n typeof t == \"object\" ? n = $da37ce670175a8d0$var$w(n, t, !1) : n = $da37ce670175a8d0$var$w(n, $da37ce670175a8d0$var$ge(t, r), !1);\n } catch {\n return null;\n }\n let o = {};\n r ? o.inputs = [\n t,\n r\n ] : o.inputs = [\n t\n ];\n let c;\n for (c of $da37ce670175a8d0$var$G){\n let l = this.#n[c].exec(n[c]);\n if (!l) return null;\n let s = {};\n for (let [i, a] of this.#t[c].entries())if (typeof a == \"string\" || typeof a == \"number\") {\n let f = l[i + 1];\n s[a] = f;\n }\n o[c] = {\n input: n[c] ?? \"\",\n groups: s\n };\n }\n return o;\n }\n static compareComponent(t, r, n) {\n let o = (i, a)=>{\n for (let f of [\n \"type\",\n \"modifier\",\n \"prefix\",\n \"value\",\n \"suffix\"\n ]){\n if (i[f] < a[f]) return -1;\n if (i[f] === a[f]) continue;\n return 1;\n }\n return 0;\n }, c = new $da37ce670175a8d0$var$R(3, \"\", \"\", \"\", \"\", 3), l = new $da37ce670175a8d0$var$R(0, \"\", \"\", \"\", \"\", 3), s = (i, a)=>{\n let f = 0;\n for(; f < Math.min(i.length, a.length); ++f){\n let d = o(i[f], a[f]);\n if (d) return d;\n }\n return i.length === a.length ? 0 : o(i[f] ?? c, a[f] ?? c);\n };\n return !r.#e[t] && !n.#e[t] ? 0 : r.#e[t] && !n.#e[t] ? s(r.#s[t], [\n l\n ]) : !r.#e[t] && n.#e[t] ? s([\n l\n ], n.#s[t]) : s(r.#s[t], n.#s[t]);\n }\n get protocol() {\n return this.#e.protocol;\n }\n get username() {\n return this.#e.username;\n }\n get password() {\n return this.#e.password;\n }\n get hostname() {\n return this.#e.hostname;\n }\n get port() {\n return this.#e.port;\n }\n get pathname() {\n return this.#e.pathname;\n }\n get search() {\n return this.#e.search;\n }\n get hash() {\n return this.#e.hash;\n }\n get hasRegExpGroups() {\n return this.#l;\n }\n};\n\n\nif (!globalThis.URLPattern) globalThis.URLPattern = (0, $da37ce670175a8d0$export$a348b14d2b61192c);\n\n\n\nvar $gPvyW = parcelRequire(\"gPvyW\");\n\nvar $a2E6i = parcelRequire(\"a2E6i\");\nvar $384c7d366e28ec64$var$__runInitializers = undefined && undefined.__runInitializers || function(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n};\nvar $384c7d366e28ec64$var$__esDecorate = undefined && undefined.__esDecorate || function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\nvar $384c7d366e28ec64$var$__classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar $384c7d366e28ec64$var$__classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n};\nvar $384c7d366e28ec64$var$_a, $384c7d366e28ec64$var$_b;\nconst { location: $384c7d366e28ec64$var$location, history: $384c7d366e28ec64$var$history } = window;\nconst $384c7d366e28ec64$var$basePath = ($384c7d366e28ec64$var$_a = document.querySelector('base')) === null || $384c7d366e28ec64$var$_a === void 0 ? void 0 : $384c7d366e28ec64$var$_a.getAttribute('href');\nconst $384c7d366e28ec64$var$defaultBaseURL = ($384c7d366e28ec64$var$basePath ? new URL($384c7d366e28ec64$var$basePath, $384c7d366e28ec64$var$location.origin) + '' : $384c7d366e28ec64$var$location.href.split(/\\?|#/)[0]).replace(/\\/$/, '');\nconst $384c7d366e28ec64$var$originalTitle = ($384c7d366e28ec64$var$_b = document.querySelector('title')) === null || $384c7d366e28ec64$var$_b === void 0 ? void 0 : $384c7d366e28ec64$var$_b.textContent.trim();\nvar $384c7d366e28ec64$export$fc55ead6785c2297;\n(function(RouterMode) {\n RouterMode[\"hash\"] = \"#\";\n RouterMode[\"history\"] = \"/\";\n})($384c7d366e28ec64$export$fc55ead6785c2297 || ($384c7d366e28ec64$export$fc55ead6785c2297 = {}));\nlet $384c7d366e28ec64$export$84202caead5689ba = (()=>{\n var _a, _History_path_accessor_storage, _History_oldPath_accessor_storage;\n let _instanceExtraInitializers = [];\n let _path_decorators;\n let _path_initializers = [];\n let _path_extraInitializers = [];\n let _oldPath_decorators;\n let _oldPath_initializers = [];\n let _oldPath_extraInitializers = [];\n let _push_decorators;\n return _a = class History {\n get path() {\n return $384c7d366e28ec64$var$__classPrivateFieldGet(this, _History_path_accessor_storage, \"f\");\n }\n set path(value) {\n $384c7d366e28ec64$var$__classPrivateFieldSet(this, _History_path_accessor_storage, value, \"f\");\n }\n get oldPath() {\n return $384c7d366e28ec64$var$__classPrivateFieldGet(this, _History_oldPath_accessor_storage, \"f\");\n }\n set oldPath(value) {\n $384c7d366e28ec64$var$__classPrivateFieldSet(this, _History_oldPath_accessor_storage, value, \"f\");\n }\n constructor(baseURL = $384c7d366e28ec64$var$defaultBaseURL, delimiter = $384c7d366e28ec64$export$fc55ead6785c2297.hash){\n Object.defineProperty(this, \"baseURL\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: ($384c7d366e28ec64$var$__runInitializers(this, _instanceExtraInitializers), baseURL)\n });\n Object.defineProperty(this, \"delimiter\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: delimiter\n });\n _History_path_accessor_storage.set(this, $384c7d366e28ec64$var$__runInitializers(this, _path_initializers, void 0));\n _History_oldPath_accessor_storage.set(this, ($384c7d366e28ec64$var$__runInitializers(this, _path_extraInitializers), $384c7d366e28ec64$var$__runInitializers(this, _oldPath_initializers, void 0)));\n Object.defineProperty(this, \"restore\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: ($384c7d366e28ec64$var$__runInitializers(this, _oldPath_extraInitializers), ()=>{\n const { state: state } = $384c7d366e28ec64$var$history;\n this.push();\n document.title = (state === null || state === void 0 ? void 0 : state.title) || this.titleOf() || $384c7d366e28ec64$var$originalTitle || $384c7d366e28ec64$var$location.href;\n })\n });\n Object.defineProperty(this, \"handleForm\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: (event, form)=>{\n const { method: method, target: target } = form;\n if (method !== 'get' || (target || '_self') !== '_self') return;\n event.preventDefault();\n const path = form.getAttribute('action'), data = (0, $gPvyW.buildURLData)((0, $gPvyW.formToJSON)(form));\n this.push(`${path}?${data}`);\n }\n });\n this.restore();\n window.addEventListener('hashchange', this.restore);\n window.addEventListener('popstate', this.restore);\n document.addEventListener('click', (0, $gPvyW.delegate)('a[href], area[href]', this.handleLink.bind(this)));\n document.addEventListener('submit', (0, $gPvyW.delegate)('form[action]', this.handleForm));\n }\n push(path = $384c7d366e28ec64$var$location.href) {\n var _b;\n path = path.replace(this.baseURL, '');\n if (this.delimiter === $384c7d366e28ec64$export$fc55ead6785c2297.hash) path = ((_b = path.match(/#.*/)) === null || _b === void 0 ? void 0 : _b[0]) || $384c7d366e28ec64$export$fc55ead6785c2297.hash;\n if (path === this.path) return path;\n this.oldPath = this.path;\n return this.path = path;\n }\n static dataOf(path) {\n const [before, after] = path.split('#');\n return (0, $gPvyW.parseURLData)(after || before);\n }\n match(pattern, path = this.path) {\n var _b;\n if (!path) return;\n const { pathname: pathname, hash: hash } = new URLPattern(pattern, this.baseURL).exec(new URL(path.split('?')[0], this.baseURL)) || {};\n return (_b = hash || pathname) === null || _b === void 0 ? void 0 : _b.groups;\n }\n static getTitle(root) {\n return root.title || (0, $gPvyW.getVisibleText)(root);\n }\n titleOf(path = this.path) {\n path = path.replace(/^\\//, '');\n if (path) for (const node of document.querySelectorAll(`a[href=\"${path}\"], area[href=\"${path}\"]`)){\n const title = _a.getTitle(node);\n if (title) return title;\n }\n }\n handleLink(event, link) {\n const path = link.getAttribute('href');\n if ((link.target || '_self') !== '_self' || (0, $gPvyW.isXDomain)(path)) return;\n event.preventDefault();\n if (path.startsWith('#')) try {\n if (document.querySelector(path) || path === '#top') return (0, $gPvyW.scrollTo)(path, event.currentTarget);\n } catch (_b) {}\n const title = _a.getTitle(link);\n $384c7d366e28ec64$var$history.pushState({\n title: title\n }, document.title = title, path);\n this.push(path);\n }\n }, _History_path_accessor_storage = new WeakMap(), _History_oldPath_accessor_storage = new WeakMap(), (()=>{\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(null) : void 0;\n _path_decorators = [\n (0, $a2E6i.observable)\n ];\n _oldPath_decorators = [\n (0, $a2E6i.observable)\n ];\n _push_decorators = [\n (0, $a2E6i.action)\n ];\n $384c7d366e28ec64$var$__esDecorate(_a, null, _path_decorators, {\n kind: \"accessor\",\n name: \"path\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"path\" in obj,\n get: (obj)=>obj.path,\n set: (obj, value)=>{\n obj.path = value;\n }\n },\n metadata: _metadata\n }, _path_initializers, _path_extraInitializers);\n $384c7d366e28ec64$var$__esDecorate(_a, null, _oldPath_decorators, {\n kind: \"accessor\",\n name: \"oldPath\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"oldPath\" in obj,\n get: (obj)=>obj.oldPath,\n set: (obj, value)=>{\n obj.oldPath = value;\n }\n },\n metadata: _metadata\n }, _oldPath_initializers, _oldPath_extraInitializers);\n $384c7d366e28ec64$var$__esDecorate(_a, null, _push_decorators, {\n kind: \"method\",\n name: \"push\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"push\" in obj,\n get: (obj)=>obj.push\n },\n metadata: _metadata\n }, null, _instanceExtraInitializers);\n if (_metadata) Object.defineProperty(_a, Symbol.metadata, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: _metadata\n });\n })(), _a;\n})();\n\n\n\nvar $zlbOT = parcelRequire(\"zlbOT\");\n\nvar $a2E6i = parcelRequire(\"a2E6i\");\n\n\nvar $dffc13ac2f1ac226$var$__runInitializers = undefined && undefined.__runInitializers || function(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n};\nvar $dffc13ac2f1ac226$var$__esDecorate = undefined && undefined.__esDecorate || function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\nvar $dffc13ac2f1ac226$var$__setFunctionName = undefined && undefined.__setFunctionName || function(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n};\nvar $dffc13ac2f1ac226$var$__classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar $dffc13ac2f1ac226$var$__classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n};\nlet $dffc13ac2f1ac226$export$d6c529ca17cdd16f = (()=>{\n var _CellRoute_history_accessor_storage, _CellRoute_path_accessor_storage;\n let _classDecorators = [\n (0, $f251dea0ed59a781$export$d8556a2a8f973135)({\n tagName: 'cell-route',\n transitible: true\n }),\n (0, $f251dea0ed59a781$export$b6ae1bc530f4c149)\n ];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _history_decorators;\n let _history_initializers = [];\n let _history_extraInitializers = [];\n let _path_decorators;\n let _path_initializers = [];\n let _path_extraInitializers = [];\n let _get_matched_decorators;\n var CellRoute = _classThis = class extends _classSuper {\n constructor(){\n super(...arguments);\n _CellRoute_history_accessor_storage.set(this, ($dffc13ac2f1ac226$var$__runInitializers(this, _instanceExtraInitializers), $dffc13ac2f1ac226$var$__runInitializers(this, _history_initializers, void 0)));\n _CellRoute_path_accessor_storage.set(this, ($dffc13ac2f1ac226$var$__runInitializers(this, _history_extraInitializers), $dffc13ac2f1ac226$var$__runInitializers(this, _path_initializers, void 0)));\n Object.defineProperty(this, \"component\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: $dffc13ac2f1ac226$var$__runInitializers(this, _path_extraInitializers)\n });\n }\n get history() {\n return $dffc13ac2f1ac226$var$__classPrivateFieldGet(this, _CellRoute_history_accessor_storage, \"f\");\n }\n set history(value) {\n $dffc13ac2f1ac226$var$__classPrivateFieldSet(this, _CellRoute_history_accessor_storage, value, \"f\");\n }\n get path() {\n return $dffc13ac2f1ac226$var$__classPrivateFieldGet(this, _CellRoute_path_accessor_storage, \"f\");\n }\n set path(value) {\n $dffc13ac2f1ac226$var$__classPrivateFieldSet(this, _CellRoute_path_accessor_storage, value, \"f\");\n }\n get matched() {\n var _a;\n return (_a = this.history) === null || _a === void 0 ? void 0 : _a.match(this.path);\n }\n connectedCallback() {\n this.history || (this.history = new (0, $384c7d366e28ec64$export$84202caead5689ba)());\n }\n render() {\n const { history: history, component: Tag, matched: matched } = this;\n const { path: path } = history || {};\n return matched ? (0, $zlbOT.jsx)(Tag, Object.assign({}, matched, (0, $384c7d366e28ec64$export$84202caead5689ba).dataOf(path), {\n path: path,\n history: history\n })) : (0, $zlbOT.jsx)((0, $zlbOT.Fragment), {});\n }\n };\n _CellRoute_history_accessor_storage = new WeakMap();\n _CellRoute_path_accessor_storage = new WeakMap();\n $dffc13ac2f1ac226$var$__setFunctionName(_classThis, \"CellRoute\");\n (()=>{\n var _a;\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;\n _history_decorators = [\n (0, $a2E6i.observable)\n ];\n _path_decorators = [\n (0, $f251dea0ed59a781$export$af4b9a83f4b00434),\n (0, $a2E6i.observable)\n ];\n _get_matched_decorators = [\n (0, $a2E6i.computed)\n ];\n $dffc13ac2f1ac226$var$__esDecorate(_classThis, null, _history_decorators, {\n kind: \"accessor\",\n name: \"history\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"history\" in obj,\n get: (obj)=>obj.history,\n set: (obj, value)=>{\n obj.history = value;\n }\n },\n metadata: _metadata\n }, _history_initializers, _history_extraInitializers);\n $dffc13ac2f1ac226$var$__esDecorate(_classThis, null, _path_decorators, {\n kind: \"accessor\",\n name: \"path\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"path\" in obj,\n get: (obj)=>obj.path,\n set: (obj, value)=>{\n obj.path = value;\n }\n },\n metadata: _metadata\n }, _path_initializers, _path_extraInitializers);\n $dffc13ac2f1ac226$var$__esDecorate(_classThis, null, _get_matched_decorators, {\n kind: \"getter\",\n name: \"matched\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"matched\" in obj,\n get: (obj)=>obj.matched\n },\n metadata: _metadata\n }, null, _instanceExtraInitializers);\n $dffc13ac2f1ac226$var$__esDecorate(null, _classDescriptor = {\n value: _classThis\n }, _classDecorators, {\n kind: \"class\",\n name: _classThis.name,\n metadata: _metadata\n }, null, _classExtraInitializers);\n CellRoute = _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: _metadata\n });\n $dffc13ac2f1ac226$var$__runInitializers(_classThis, _classExtraInitializers);\n })();\n return CellRoute = _classThis;\n})();\n\n\n\n\n\nvar $zlbOT = parcelRequire(\"zlbOT\");\n\n\nvar $865cbf18b84122c3$var$__rest = undefined && undefined.__rest || function(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nfunction $865cbf18b84122c3$export$baddd0131ee8c05b(_a = {}) {\n var { mode: mode = 'hash', basePath: basePath = '' } = _a, scopeProps = $865cbf18b84122c3$var$__rest(_a, [\n \"mode\",\n \"basePath\"\n ]);\n const prefix = (0, $384c7d366e28ec64$export$fc55ead6785c2297)[mode], history = new (0, $384c7d366e28ec64$export$84202caead5689ba)((new URL(basePath, location.origin) + '').replace(/\\/$/, ''), (0, $384c7d366e28ec64$export$fc55ead6785c2297)[mode]);\n return {\n Route: (_a)=>{\n var { path: path } = _a, props = $865cbf18b84122c3$var$__rest(_a, [\n \"path\"\n ]);\n return (0, $zlbOT.jsx)((0, $dffc13ac2f1ac226$export$d6c529ca17cdd16f), Object.assign({}, props, scopeProps, {\n history: history,\n path: prefix + path\n }));\n },\n Link: (_a)=>{\n var { to: to, children: children } = _a, props = $865cbf18b84122c3$var$__rest(_a, [\n \"to\",\n \"children\"\n ]);\n return (0, $zlbOT.jsx)(\"a\", Object.assign({}, props, {\n href: prefix + to,\n children: children\n }));\n },\n // @ts-ignore\n Form: (_a)=>{\n var { action: action, children: children } = _a, props = $865cbf18b84122c3$var$__rest(_a, [\n \"action\",\n \"children\"\n ]);\n return(// @ts-ignore\n (0, $zlbOT.jsx)(\"form\", Object.assign({}, props, {\n action: prefix + action,\n children: children\n })));\n }\n };\n}\n\n\n\n\n\nvar $zlbOT = parcelRequire(\"zlbOT\");\nvar $5c1b14ef22af8749$var$__rest = undefined && undefined.__rest || function(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nconst $5c1b14ef22af8749$export$479dc530b3dbf38d = (_a)=>{\n var { path: path, id: id, edit: edit } = _a, props = $5c1b14ef22af8749$var$__rest(_a, [\n \"path\",\n \"id\",\n \"edit\"\n ]);\n return (0, $zlbOT.jsxs)(\"ul\", Object.assign({}, props, {\n children: [\n (0, $zlbOT.jsxs)(\"li\", {\n children: [\n \"Path: \",\n path\n ]\n }),\n (0, $zlbOT.jsxs)(\"li\", {\n children: [\n \"Data: \",\n JSON.stringify({\n id: id,\n edit: edit\n })\n ]\n })\n ]\n }));\n};\n\n\n\nconst $9ce2fd83c2c883c2$var$AsyncPage = (0, $f251dea0ed59a781$export$488013bae63b21da)(()=>(parcelRequire(\"czJVf\")));\n(0, $a2E6i.configure)({\n enforceActions: 'never'\n});\nconst { Route: $9ce2fd83c2c883c2$var$Route, Link: $9ce2fd83c2c883c2$var$Link } = (0, $865cbf18b84122c3$export$baddd0131ee8c05b)();\n(0, $gPvyW.documentReady).then(()=>new (0, $4955fe2876130610$exports.DOMRenderer)().render((0, $zlbOT.jsxs)((0, $zlbOT.Fragment), {\n children: [\n (0, $zlbOT.jsxs)(\"nav\", {\n children: [\n (0, $zlbOT.jsx)($9ce2fd83c2c883c2$var$Link, {\n to: \"list/1\",\n children: \"List page\"\n }),\n (0, $zlbOT.jsx)($9ce2fd83c2c883c2$var$Link, {\n to: \"detail/2?edit=true\",\n children: \"Detail page\"\n }),\n (0, $zlbOT.jsx)($9ce2fd83c2c883c2$var$Link, {\n to: \"async/3?edit=true\",\n children: \"Async page\"\n })\n ]\n }),\n (0, $zlbOT.jsxs)(\"main\", {\n className: \"router\",\n children: [\n (0, $zlbOT.jsx)($9ce2fd83c2c883c2$var$Route, {\n path: \"\",\n component: (props)=>(0, $zlbOT.jsx)(\"div\", Object.assign({}, props, {\n children: \"Home Page\"\n }))\n }),\n (0, $zlbOT.jsx)($9ce2fd83c2c883c2$var$Route, {\n path: \"list/:id\",\n component: (0, $5c1b14ef22af8749$export$479dc530b3dbf38d)\n }),\n (0, $zlbOT.jsx)($9ce2fd83c2c883c2$var$Route, {\n path: \"detail/:id\",\n component: (0, $5c1b14ef22af8749$export$479dc530b3dbf38d)\n }),\n (0, $zlbOT.jsx)($9ce2fd83c2c883c2$var$Route, {\n path: \"async/:id\",\n component: $9ce2fd83c2c883c2$var$AsyncPage\n })\n ]\n })\n ]\n })));\n\n\n//# sourceMappingURL=index.362ffb12.js.map\n","\"use strict\";\n\nvar mapping = new Map();\nfunction register(baseUrl, manifest) {\n for (var i = 0; i < manifest.length - 1; i += 2) {\n mapping.set(manifest[i], {\n baseUrl: baseUrl,\n path: manifest[i + 1]\n });\n }\n}\nfunction resolve(id) {\n var resolved = mapping.get(id);\n if (resolved == null) {\n throw new Error('Could not resolve bundle with id ' + id);\n }\n return new URL(resolved.path, resolved.baseUrl).toString();\n}\nmodule.exports.register = register;\nmodule.exports.resolve = resolve;","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Fragment = exports.jsxDEV = exports.jsxs = void 0;\nexports.jsx = jsx;\nvar tslib_1 = require(\"tslib\");\nvar web_utility_1 = require(\"web-utility\");\nvar VDOM_1 = require(\"./dist/VDOM\");\n/**\n * @see {@link https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md}\n * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx}\n */\nfunction jsx(type, _a, key) {\n var ref = _a.ref, is = _a.is, style = _a.style, children = _a.children, props = tslib_1.__rest(_a, [\"ref\", \"is\", \"style\", \"children\"]);\n if (typeof type === 'function' && (0, web_utility_1.isHTMLElementClass)(type))\n type = (0, web_utility_1.tagNameOf)(type);\n children = [children]\n .flat(Infinity)\n .map(function (node) {\n return node instanceof Object\n ? new VDOM_1.VNode(node)\n : node === 0 || node\n ? new VDOM_1.VNode({ text: node.toString() })\n : undefined;\n })\n .filter(Boolean);\n var commonProps = { key: key, ref: ref, is: is, style: style, children: children };\n return typeof type === 'string'\n ? new VDOM_1.VNode(tslib_1.__assign(tslib_1.__assign({}, commonProps), { tagName: type, props: props }))\n : type(tslib_1.__assign(tslib_1.__assign({}, commonProps), props));\n}\nexports.jsxs = jsx;\nexports.jsxDEV = jsx;\n/**\n * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#react-automatic-runtime-1}\n */\nvar Fragment = function (_a) {\n var key = _a.key, ref = _a.ref, is = _a.is, style = _a.style, children = _a.children, props = tslib_1.__rest(_a, [\"key\", \"ref\", \"is\", \"style\", \"children\"]);\n return new VDOM_1.VNode({\n key: key,\n ref: ref,\n is: is,\n props: (0, web_utility_1.isEmpty)(props) ? undefined : props,\n style: style,\n children: children\n });\n};\nexports.Fragment = Fragment;\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\nvar $9b05bcda60cc529c$exports = {};\n\n$parcel$export($9b05bcda60cc529c$exports, \"likeNull\", function () { return $9b05bcda60cc529c$export$61cc6ed0f143570b; });\n$parcel$export($9b05bcda60cc529c$exports, \"isEmpty\", function () { return $9b05bcda60cc529c$export$dd1bc94b04021eeb; });\n$parcel$export($9b05bcda60cc529c$exports, \"classNameOf\", function () { return $9b05bcda60cc529c$export$a09f818797e212c4; });\n$parcel$export($9b05bcda60cc529c$exports, \"assertInheritance\", function () { return $9b05bcda60cc529c$export$170f4e08cad8229d; });\n$parcel$export($9b05bcda60cc529c$exports, \"proxyPrototype\", function () { return $9b05bcda60cc529c$export$2a489b3f92f4996a; });\n$parcel$export($9b05bcda60cc529c$exports, \"isUnsafeNumeric\", function () { return $9b05bcda60cc529c$export$67a6ce548ae77071; });\n$parcel$export($9b05bcda60cc529c$exports, \"byteLength\", function () { return $9b05bcda60cc529c$export$a48f0734ac7c2329; });\n$parcel$export($9b05bcda60cc529c$exports, \"toHyphenCase\", function () { return $9b05bcda60cc529c$export$3f34ca2fef821bbd; });\n$parcel$export($9b05bcda60cc529c$exports, \"toCamelCase\", function () { return $9b05bcda60cc529c$export$86f54f62aa7a7514; });\n$parcel$export($9b05bcda60cc529c$exports, \"uniqueID\", function () { return $9b05bcda60cc529c$export$89912e019eef22aa; });\n$parcel$export($9b05bcda60cc529c$exports, \"objectFrom\", function () { return $9b05bcda60cc529c$export$1c8ba402144543e5; });\n$parcel$export($9b05bcda60cc529c$exports, \"DiffStatus\", function () { return $9b05bcda60cc529c$export$2ddabb89308e1a22; });\n$parcel$export($9b05bcda60cc529c$exports, \"diffKeys\", function () { return $9b05bcda60cc529c$export$14527669107aa301; });\n$parcel$export($9b05bcda60cc529c$exports, \"groupBy\", function () { return $9b05bcda60cc529c$export$3f063810d7bf01bd; });\n$parcel$export($9b05bcda60cc529c$exports, \"likeArray\", function () { return $9b05bcda60cc529c$export$b5a4d6f439a5044d; });\n$parcel$export($9b05bcda60cc529c$exports, \"isTypedArray\", function () { return $9b05bcda60cc529c$export$b119cc7e1840e59c; });\n$parcel$export($9b05bcda60cc529c$exports, \"makeArray\", function () { return $9b05bcda60cc529c$export$7b85fd78dd236198; });\n$parcel$export($9b05bcda60cc529c$exports, \"splitArray\", function () { return $9b05bcda60cc529c$export$697c3df919c0e61a; });\n$parcel$export($9b05bcda60cc529c$exports, \"findDeep\", function () { return $9b05bcda60cc529c$export$e6b5ff3168b5942b; });\n$parcel$export($9b05bcda60cc529c$exports, \"countBy\", function () { return $9b05bcda60cc529c$export$1d012a0dff3dab06; });\n$parcel$export($9b05bcda60cc529c$exports, \"cache\", function () { return $9b05bcda60cc529c$export$69a3209f1a06c04d; });\n$parcel$export($9b05bcda60cc529c$exports, \"createAsyncIterator\", function () { return $9b05bcda60cc529c$export$86c18c6347f4a8c4; });\n$parcel$export($9b05bcda60cc529c$exports, \"mergeStream\", function () { return $9b05bcda60cc529c$export$dce9414bed0662c; });\n$parcel$export($9b05bcda60cc529c$exports, \"ByteSize\", function () { return $9b05bcda60cc529c$export$271f7c16f175f804; });\nvar $6a9944941b4c1893$exports = {};\n\n$parcel$export($6a9944941b4c1893$exports, \"sum\", function () { return $6a9944941b4c1893$export$8a63f25cc62965f1; });\n$parcel$export($6a9944941b4c1893$exports, \"averageOf\", function () { return $6a9944941b4c1893$export$e1f36757ecda301d; });\n$parcel$export($6a9944941b4c1893$exports, \"varianceOf\", function () { return $6a9944941b4c1893$export$8e694e1eafd55acb; });\n$parcel$export($6a9944941b4c1893$exports, \"standardDeviationOf\", function () { return $6a9944941b4c1893$export$57d7c52a66287430; });\n$parcel$export($6a9944941b4c1893$exports, \"hypotenuseOf\", function () { return $6a9944941b4c1893$export$2b4693832ca3ce16; });\n$parcel$export($6a9944941b4c1893$exports, \"carryFloat\", function () { return $6a9944941b4c1893$export$5b784e078da1ce6; });\n$parcel$export($6a9944941b4c1893$exports, \"fixFloat\", function () { return $6a9944941b4c1893$export$17ec9c9f4f23588c; });\n$parcel$export($6a9944941b4c1893$exports, \"Scalar\", function () { return $6a9944941b4c1893$export$595dbf49c602a1f; });\nfunction $6a9944941b4c1893$export$8a63f25cc62965f1(...data) {\n return data.reduce((sum, item)=>sum + item, 0);\n}\nfunction $6a9944941b4c1893$export$e1f36757ecda301d(...data) {\n return $6a9944941b4c1893$export$8a63f25cc62965f1(...data) / data.length;\n}\nfunction $6a9944941b4c1893$export$8e694e1eafd55acb(data, sample = false) {\n const average = $6a9944941b4c1893$export$e1f36757ecda301d(...data);\n const summary = $6a9944941b4c1893$export$8a63f25cc62965f1(...data.map((item)=>(item - average) ** 2));\n return summary / (data.length - (sample ? 1 : 0));\n}\nfunction $6a9944941b4c1893$export$57d7c52a66287430(data, sample = false) {\n return Math.sqrt($6a9944941b4c1893$export$8e694e1eafd55acb(data, sample));\n}\nfunction $6a9944941b4c1893$export$2b4693832ca3ce16(...data) {\n return Math.sqrt($6a9944941b4c1893$export$8a63f25cc62965f1(...data.map((item)=>item ** 2)));\n}\nfunction $6a9944941b4c1893$export$5b784e078da1ce6(raw, length) {\n const text = raw.toFixed(length + 2);\n const offset = text.indexOf(\".\") + length + 1;\n const cut = (text)=>text.slice(0, offset - (length ? 0 : 1));\n if (!+text.slice(offset)) return cut(text);\n const result = cut((+cut(text) + 10 ** -length).toFixed(length));\n return result.includes(\".\") ? result.padEnd(offset, \"0\") : result;\n}\nfunction $6a9944941b4c1893$export$17ec9c9f4f23588c(raw, length = 2) {\n const text = raw.toFixed(length + 2);\n const floatOffset = text.indexOf(\".\");\n if (floatOffset < 0) return length ? `${text}.${\"0\".repeat(length)}` : text;\n const offset = floatOffset + length + 1;\n const before = +text[offset - 1], anchor = +text[offset], after = +text[offset + 1];\n const carry = anchor > 5 || anchor === 5 && (!!after || !!(before % 2));\n if (carry) return $6a9944941b4c1893$export$5b784e078da1ce6(raw, length);\n const result = text.slice(0, offset - (length ? 0 : 1));\n return result.includes(\".\") ? result.padEnd(offset, \"0\") : result;\n}\nclass $6a9944941b4c1893$export$595dbf49c602a1f {\n constructor(value){\n this.value = value;\n }\n valueOf() {\n return this.value;\n }\n toShortString(fractionDigits = 2) {\n const { units: units, value: value } = this;\n const { base: base, name: name } = [\n ...units\n ].reverse().find(({ base: base })=>Math.abs(value) >= base) || units[0];\n return `${(value / base).toFixed(fractionDigits)} ${name}`;\n }\n static distanceOf(a, b) {\n return Reflect.construct(this, [\n a - b\n ]);\n }\n}\n\n\nfunction $9b05bcda60cc529c$export$61cc6ed0f143570b(value) {\n return !(value != null) || Number.isNaN(value);\n}\nfunction $9b05bcda60cc529c$export$dd1bc94b04021eeb(value) {\n return $9b05bcda60cc529c$export$61cc6ed0f143570b(value) || (typeof value === \"object\" ? !Object.keys(value).length : value === \"\");\n}\nconst $9b05bcda60cc529c$export$a09f818797e212c4 = (data)=>Object.prototype.toString.call(data).slice(8, -1);\nfunction $9b05bcda60cc529c$export$170f4e08cad8229d(Sub, Super) {\n return Sub.prototype instanceof Super;\n}\nfunction $9b05bcda60cc529c$export$2a489b3f92f4996a(target, dataStore, setter) {\n const prototype = Object.getPrototypeOf(target);\n const prototypeProxy = new Proxy(prototype, {\n set: (_, key, value, receiver)=>{\n if (key in receiver) Reflect.set(prototype, key, value, receiver);\n else dataStore[key] = value;\n setter?.(key, value);\n return true;\n },\n get: (prototype, key, receiver)=>key in dataStore ? dataStore[key] : Reflect.get(prototype, key, receiver)\n });\n Object.setPrototypeOf(target, prototypeProxy);\n}\nfunction $9b05bcda60cc529c$export$67a6ce548ae77071(raw) {\n return /^[\\d.]+$/.test(raw) && raw.localeCompare(Number.MAX_SAFE_INTEGER + \"\", undefined, {\n numeric: true\n }) > 0;\n}\nfunction $9b05bcda60cc529c$export$a48f0734ac7c2329(raw) {\n return raw.replace(/[^\\u0021-\\u007e\\uff61-\\uffef]/g, \"xx\").length;\n}\nfunction $9b05bcda60cc529c$export$3f34ca2fef821bbd(raw) {\n return raw.replace(/[A-Z]+|[^A-Za-z][A-Za-z]/g, (match, offset)=>`${offset ? \"-\" : \"\"}${(match[1] || match[0]).toLowerCase()}`);\n}\nfunction $9b05bcda60cc529c$export$86f54f62aa7a7514(raw, large = false) {\n return raw.replace(/^[A-Za-z]|[^A-Za-z][A-Za-z]/g, (match, offset)=>offset || large ? (match[1] || match[0]).toUpperCase() : match.toLowerCase());\n}\nfunction $9b05bcda60cc529c$export$89912e019eef22aa() {\n return (Date.now() + parseInt((Math.random() + \"\").slice(2))).toString(36);\n}\nfunction $9b05bcda60cc529c$export$1c8ba402144543e5(values, keys) {\n return Object.fromEntries(values.map((value, index)=>[\n keys[index],\n value\n ]));\n}\nvar $9b05bcda60cc529c$export$2ddabb89308e1a22;\n(function(DiffStatus) {\n DiffStatus[DiffStatus[\"Old\"] = -1] = \"Old\";\n DiffStatus[DiffStatus[\"Same\"] = 0] = \"Same\";\n DiffStatus[DiffStatus[\"New\"] = 1] = \"New\";\n})($9b05bcda60cc529c$export$2ddabb89308e1a22 || ($9b05bcda60cc529c$export$2ddabb89308e1a22 = {}));\nfunction $9b05bcda60cc529c$export$14527669107aa301(oldList, newList) {\n const map = {};\n for (const item of oldList)map[item] = -1;\n for (const item of newList){\n map[item] ||= 0;\n map[item] += 1;\n }\n return {\n map: map,\n group: $9b05bcda60cc529c$export$3f063810d7bf01bd(Object.entries(map), ([key, status])=>status)\n };\n}\nfunction $9b05bcda60cc529c$export$b5a4d6f439a5044d(data) {\n if ($9b05bcda60cc529c$export$61cc6ed0f143570b(data)) return false;\n const { length: length } = data;\n return typeof length === \"number\" && length >= 0 && ~~length === length;\n}\nconst $9b05bcda60cc529c$export$b119cc7e1840e59c = (data)=>data instanceof Object.getPrototypeOf(Int8Array);\nfunction $9b05bcda60cc529c$export$7b85fd78dd236198(data) {\n if (data instanceof Array) return data;\n if ($9b05bcda60cc529c$export$61cc6ed0f143570b(data)) return [];\n if ($9b05bcda60cc529c$export$b5a4d6f439a5044d(data)) return Array.from(data);\n return [\n data\n ];\n}\nconst $9b05bcda60cc529c$export$697c3df919c0e61a = (array, unitLength)=>array.reduce((grid, item, index)=>{\n (grid[~~(index / unitLength)] ||= [])[index % unitLength] = item;\n return grid;\n }, []);\nfunction $9b05bcda60cc529c$export$e6b5ff3168b5942b(list, subKey, handler) {\n for (const item of list){\n if (handler(item)) return [\n item\n ];\n if (item[subKey] instanceof Array) {\n const result = $9b05bcda60cc529c$export$e6b5ff3168b5942b(item[subKey], subKey, handler);\n if (result.length) return [\n item,\n ...result\n ];\n }\n }\n return [];\n}\nfunction $9b05bcda60cc529c$export$3f063810d7bf01bd(list, iteratee) {\n const data = {};\n for (const item of list){\n let keys = iteratee instanceof Function ? iteratee(item) : item[iteratee];\n if (!(keys instanceof Array)) keys = [\n keys\n ];\n for (const key of new Set(keys.filter((key)=>key != null)))(data[key] = data[key] || []).push(item);\n }\n return data;\n}\nfunction $9b05bcda60cc529c$export$1d012a0dff3dab06(list, iteratee) {\n const group = $9b05bcda60cc529c$export$3f063810d7bf01bd(list, iteratee);\n const sortedList = Object.entries(group).map(([key, { length: length }])=>[\n key,\n length\n ]);\n return Object.fromEntries(sortedList);\n}\nfunction $9b05bcda60cc529c$export$69a3209f1a06c04d(executor, title) {\n var cacheData;\n return function(...data) {\n if (cacheData != null) return cacheData;\n console.trace(`[Cache] execute: ${title}`);\n cacheData = executor.call(this, ()=>cacheData = undefined, ...data);\n Promise.resolve(cacheData).then((data)=>console.log(`[Cache] refreshed: ${title} => ${data}`), (error)=>console.error(`[Cache] failed: ${error?.message || error}`));\n return cacheData;\n };\n}\nasync function* $9b05bcda60cc529c$export$86c18c6347f4a8c4(executor) {\n let { promise: promise, resolve: resolve, reject: reject } = Promise.withResolvers();\n const doneSymbol = Symbol(\"done\"), done = Promise.withResolvers();\n const disposer = executor({\n next: (value)=>resolve(value),\n error: (error)=>{\n reject(error);\n // @ts-ignore\n disposer?.();\n },\n complete: ()=>{\n done.resolve(doneSymbol);\n // @ts-ignore\n disposer?.();\n }\n });\n while(true){\n const value = await Promise.race([\n promise,\n done.promise\n ]);\n if (value === doneSymbol) return;\n yield value;\n ({ promise: promise, resolve: resolve, reject: reject } = Promise.withResolvers());\n }\n}\nasync function* $9b05bcda60cc529c$export$dce9414bed0662c(...sources) {\n var iterators = sources.map((item)=>item());\n while(iterators[0]){\n const dones = [];\n for(let i = 0, iterator; iterator = iterators[i]; i++){\n const { done: done, value: value } = await iterator.next();\n if (!done) yield value;\n else dones.push(i);\n }\n iterators = iterators.filter((_, i)=>!dones.includes(i));\n }\n}\nclass $9b05bcda60cc529c$export$271f7c16f175f804 extends (0, $6a9944941b4c1893$export$595dbf49c602a1f) {\n constructor(...args){\n super(...args);\n this.units = [\n \"\",\n \"K\",\n \"M\",\n \"G\",\n \"T\",\n \"P\",\n \"E\",\n \"Z\",\n \"Y\"\n ].map((name, i)=>({\n base: 1024 ** i,\n name: name + \"B\"\n }));\n }\n}\n\n\n\nvar $f872d8bba1c0f79f$exports = {};\n\n$parcel$export($f872d8bba1c0f79f$exports, \"Second\", function () { return $f872d8bba1c0f79f$export$c489aa6f7fd82b1a; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Minute\", function () { return $f872d8bba1c0f79f$export$cbd942915f33be50; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Quarter\", function () { return $f872d8bba1c0f79f$export$9b886f8493244014; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Hour\", function () { return $f872d8bba1c0f79f$export$e99cbb807a5bb10d; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Day\", function () { return $f872d8bba1c0f79f$export$7a9a31a911eb9a20; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Week\", function () { return $f872d8bba1c0f79f$export$fca4f8121099df57; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Year\", function () { return $f872d8bba1c0f79f$export$6ce2f08d515512; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Month\", function () { return $f872d8bba1c0f79f$export$951c8378cdfec6e6; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Season\", function () { return $f872d8bba1c0f79f$export$1a4097b876a13bf7; });\n$parcel$export($f872d8bba1c0f79f$exports, \"Timestamp\", function () { return $f872d8bba1c0f79f$export$d9bcbd5e1ff81430; });\n$parcel$export($f872d8bba1c0f79f$exports, \"diffTime\", function () { return $f872d8bba1c0f79f$export$506c8e8f8c8edda; });\n$parcel$export($f872d8bba1c0f79f$exports, \"formatDate\", function () { return $f872d8bba1c0f79f$export$3ae94a2503e890a1; });\n$parcel$export($f872d8bba1c0f79f$exports, \"changeMonth\", function () { return $f872d8bba1c0f79f$export$62ad822b3a5fd9a0; });\n\nconst $f872d8bba1c0f79f$export$c489aa6f7fd82b1a = 1000;\nconst $f872d8bba1c0f79f$export$cbd942915f33be50 = $f872d8bba1c0f79f$export$c489aa6f7fd82b1a * 60;\nconst $f872d8bba1c0f79f$export$9b886f8493244014 = $f872d8bba1c0f79f$export$cbd942915f33be50 * 15;\nconst $f872d8bba1c0f79f$export$e99cbb807a5bb10d = $f872d8bba1c0f79f$export$9b886f8493244014 * 4;\nconst $f872d8bba1c0f79f$export$7a9a31a911eb9a20 = $f872d8bba1c0f79f$export$e99cbb807a5bb10d * 24;\nconst $f872d8bba1c0f79f$export$fca4f8121099df57 = $f872d8bba1c0f79f$export$7a9a31a911eb9a20 * 7;\nconst $f872d8bba1c0f79f$export$6ce2f08d515512 = $f872d8bba1c0f79f$export$7a9a31a911eb9a20 * 365;\nconst $f872d8bba1c0f79f$export$951c8378cdfec6e6 = $f872d8bba1c0f79f$export$6ce2f08d515512 / 12;\nconst $f872d8bba1c0f79f$export$1a4097b876a13bf7 = $f872d8bba1c0f79f$export$951c8378cdfec6e6 * 3;\nclass $f872d8bba1c0f79f$export$d9bcbd5e1ff81430 extends (0, $6a9944941b4c1893$export$595dbf49c602a1f) {\n toShortString(fractionDigits = 0) {\n return super.toShortString(fractionDigits);\n }\n constructor(...args){\n super(...args);\n this.units = [\n {\n base: $f872d8bba1c0f79f$export$c489aa6f7fd82b1a,\n name: \"s\"\n },\n {\n base: $f872d8bba1c0f79f$export$cbd942915f33be50,\n name: \"m\"\n },\n {\n base: $f872d8bba1c0f79f$export$e99cbb807a5bb10d,\n name: \"H\"\n },\n {\n base: $f872d8bba1c0f79f$export$7a9a31a911eb9a20,\n name: \"D\"\n },\n {\n base: $f872d8bba1c0f79f$export$fca4f8121099df57,\n name: \"W\"\n },\n {\n base: $f872d8bba1c0f79f$export$951c8378cdfec6e6,\n name: \"M\"\n },\n {\n base: $f872d8bba1c0f79f$export$6ce2f08d515512,\n name: \"Y\"\n }\n ];\n }\n}\nfunction $f872d8bba1c0f79f$export$506c8e8f8c8edda(end, start = new Date()) {\n const timeDistance = $f872d8bba1c0f79f$export$d9bcbd5e1ff81430.distanceOf(+new Date(end), +new Date(start));\n const [value, unit] = timeDistance.toShortString().split(/\\s+/);\n return {\n distance: +value,\n unit: unit\n };\n}\nfunction $f872d8bba1c0f79f$var$fitUnit(value) {\n value = +value + \"\";\n return (template)=>(value.length < template.length ? value.padStart(template.length, \"0\") : value).slice(-Math.max(template.length, 2));\n}\nfunction $f872d8bba1c0f79f$export$3ae94a2503e890a1(time = new Date(), template = \"YYYY-MM-DD HH:mm:ss\") {\n time = time instanceof Date ? time : new Date(time);\n time = new Date(+time - time.getTimezoneOffset() * $f872d8bba1c0f79f$export$cbd942915f33be50);\n const [year, month, day, hour, minute, second, millisecond] = time.toJSON().split(/\\D/);\n return template.replace(/ms/g, millisecond).replace(/Y+/g, $f872d8bba1c0f79f$var$fitUnit(year)).replace(/M+/g, $f872d8bba1c0f79f$var$fitUnit(month)).replace(/D+/g, $f872d8bba1c0f79f$var$fitUnit(day)).replace(/H+/g, $f872d8bba1c0f79f$var$fitUnit(hour)).replace(/m+/g, $f872d8bba1c0f79f$var$fitUnit(minute)).replace(/s+/g, $f872d8bba1c0f79f$var$fitUnit(second));\n}\nfunction $f872d8bba1c0f79f$export$62ad822b3a5fd9a0(date, delta) {\n date = new Date(date);\n const month = date.getMonth() + delta;\n date.setFullYear(date.getFullYear() + Math.floor(month / 12));\n delta = month % 12;\n date.setMonth(delta < 0 ? 12 + delta : delta);\n return date;\n}\n\n\nvar $ba0e5dc395660a7c$exports = {};\n\n$parcel$export($ba0e5dc395660a7c$exports, \"parseJSON\", function () { return $ba0e5dc395660a7c$export$27924e57e9afff7f; });\n$parcel$export($ba0e5dc395660a7c$exports, \"toJSValue\", function () { return $ba0e5dc395660a7c$export$7ea17d45ecdcf634; });\n$parcel$export($ba0e5dc395660a7c$exports, \"parseTextTable\", function () { return $ba0e5dc395660a7c$export$bb8626e4916f587b; });\n\nfunction $ba0e5dc395660a7c$export$27924e57e9afff7f(raw) {\n function parseItem(value) {\n if (typeof value === \"string\" && /^\\d+(-\\d{1,2}){1,2}/.test(value)) {\n const date = new Date(value);\n if (!Number.isNaN(+date)) return date;\n }\n return value;\n }\n const value = parseItem(raw);\n if (typeof value !== \"string\" || (0, $9b05bcda60cc529c$export$67a6ce548ae77071)(value)) return value;\n try {\n return JSON.parse(raw, (key, value)=>parseItem(value));\n } catch {\n return raw;\n }\n}\nfunction $ba0e5dc395660a7c$export$7ea17d45ecdcf634(raw) {\n const parsed = $ba0e5dc395660a7c$export$27924e57e9afff7f(raw);\n if (typeof parsed !== \"string\") return parsed;\n const number = +parsed;\n return Number.isNaN(number) || number + \"\" !== parsed ? parsed : number;\n}\nfunction $ba0e5dc395660a7c$var$readQuoteValue(raw) {\n const quote = raw[0];\n const index = raw.indexOf(quote, 1);\n if (index < 0) throw SyntaxError(`A ${quote} is missing`);\n return raw.slice(1, index);\n}\nfunction $ba0e5dc395660a7c$export$bb8626e4916f587b(raw, header, separator = \",\") {\n const data = raw.trim().split(/[\\r\\n]+/).map((row)=>{\n const list = [];\n do {\n let value;\n if (row[0] === '\"' || row[0] === \"'\") {\n value = $ba0e5dc395660a7c$var$readQuoteValue(row);\n row = row.slice(value.length + 3);\n } else {\n const index = row.indexOf(separator);\n if (index > -1) {\n value = row.slice(0, index);\n row = row.slice(index + 1);\n } else {\n value = row;\n row = \"\";\n }\n }\n list.push($ba0e5dc395660a7c$export$7ea17d45ecdcf634(value.trim()));\n }while (row);\n return list;\n });\n return !header ? data : data.slice(1).map((row)=>row.reduce((object, item, index)=>{\n object[data[0][index]] = item;\n return object;\n }, {}));\n}\n\n\nvar $083124ac4b1a50a0$exports = {};\n\n$parcel$export($083124ac4b1a50a0$exports, \"isXDomain\", function () { return $083124ac4b1a50a0$export$71e6483fc2b024eb; });\n$parcel$export($083124ac4b1a50a0$exports, \"parseURLData\", function () { return $083124ac4b1a50a0$export$eb9b2aadbe449a20; });\n$parcel$export($083124ac4b1a50a0$exports, \"buildURLData\", function () { return $083124ac4b1a50a0$export$13397a83aa5915d6; });\n$parcel$export($083124ac4b1a50a0$exports, \"blobOf\", function () { return $083124ac4b1a50a0$export$fd89523fba250fa4; });\n$parcel$export($083124ac4b1a50a0$exports, \"blobFrom\", function () { return $083124ac4b1a50a0$export$504fbde693c1771c; });\n\n\nfunction $083124ac4b1a50a0$export$71e6483fc2b024eb(URI) {\n return new URL(URI, document.baseURI).origin !== location.origin;\n}\nfunction $083124ac4b1a50a0$export$eb9b2aadbe449a20(raw = globalThis.location?.search, toBuiltIn = true) {\n const list = raw.split(/\\?|#/);\n const data = new URLSearchParams(list[1] || list[0]);\n return Object.fromEntries([\n ...data.keys()\n ].map((key)=>{\n const list = toBuiltIn ? data.getAll(key).map((0, $ba0e5dc395660a7c$export$27924e57e9afff7f)) : data.getAll(key);\n return [\n key,\n list.length < 2 ? list[0] : list\n ];\n }));\n}\nconst $083124ac4b1a50a0$var$stringify = (value)=>typeof value === \"string\" ? value : (0, $9b05bcda60cc529c$export$b5a4d6f439a5044d)(value) ? (0, $9b05bcda60cc529c$export$7b85fd78dd236198)(value) + \"\" : JSON.stringify(value);\nfunction $083124ac4b1a50a0$export$13397a83aa5915d6(map) {\n if (!(map instanceof Array)) map = Object.entries(map);\n const list = map.map(([key, value])=>!(0, $9b05bcda60cc529c$export$dd1bc94b04021eeb)(value) && [\n key,\n $083124ac4b1a50a0$var$stringify(value)\n ]).filter(Boolean);\n return new URLSearchParams(list);\n}\nasync function $083124ac4b1a50a0$export$fd89523fba250fa4(URI) {\n return (await fetch(URI + \"\")).blob();\n}\nconst $083124ac4b1a50a0$var$DataURI = /^data:(.+?\\/(.+?))?(;base64)?,([\\s\\S]+)/;\nfunction $083124ac4b1a50a0$export$504fbde693c1771c(URI) {\n var [_, type, __, base64, data] = $083124ac4b1a50a0$var$DataURI.exec(URI) || [];\n data = base64 ? atob(data) : data;\n const aBuffer = new ArrayBuffer(data.length);\n const uBuffer = new Uint8Array(aBuffer);\n for(let i = 0; data[i]; i++)uBuffer[i] = data.charCodeAt(i);\n return new Blob([\n aBuffer\n ], {\n type: type\n });\n}\n\n\nvar $50872bf213056663$exports = {};\n\n$parcel$export($50872bf213056663$exports, \"makeCRC32\", function () { return $50872bf213056663$export$1b9ac4d3de3ffd2e; });\n$parcel$export($50872bf213056663$exports, \"makeSHA\", function () { return $50872bf213056663$export$d51f3b55e8d1aa73; });\nconst $50872bf213056663$var$CRC_32_Table = Array.from(new Array(256), (_, cell)=>{\n for(var j = 0; j < 8; j++)if (cell & 1) cell = cell >> 1 & 0x7fffffff ^ 0xedb88320;\n else cell = cell >> 1 & 0x7fffffff;\n return cell;\n});\nfunction $50872bf213056663$export$1b9ac4d3de3ffd2e(raw) {\n var value = 0xffffffff;\n for (const char of raw)value = value >> 8 & 0x00ffffff ^ $50872bf213056663$var$CRC_32_Table[value & 0xff ^ char.charCodeAt(0)];\n return \"0x\" + ((value ^ 0xffffffff) >>> 0).toString(16);\n}\nif (typeof self === \"object\") {\n if (\"msCrypto\" in globalThis) {\n // @ts-ignore\n const { subtle: subtle } = globalThis.crypto = globalThis.msCrypto;\n for(const key in subtle){\n const origin = subtle[key];\n if (origin instanceof Function) subtle[key] = function() {\n const observer = origin.apply(this, arguments);\n return new Promise((resolve, reject)=>{\n observer.oncomplete = ({ target: target })=>resolve(target.result);\n observer.onabort = observer.onerror = reject;\n });\n };\n }\n }\n const { crypto: crypto1 } = globalThis;\n if (!crypto1?.subtle && crypto1?.[\"webkitSubtle\"]) // @ts-ignore\n crypto1.subtle = crypto1[\"webkitSubtle\"];\n}\nasync function $50872bf213056663$export$d51f3b55e8d1aa73(raw, algorithm = \"SHA-1\") {\n const buffer = await crypto.subtle.digest(algorithm, new TextEncoder().encode(raw));\n return Array.from(new Uint8Array(buffer), (byte)=>byte.toString(16).padStart(2, \"0\")).join(\"\");\n}\n\n\nvar $93a3089d2937b23f$exports = {};\n\n\nvar $3e0a089cc13f69ad$exports = {};\n\n$parcel$export($3e0a089cc13f69ad$exports, \"XMLNamespace\", function () { return $3e0a089cc13f69ad$export$f5a4056b78c72efa; });\n$parcel$export($3e0a089cc13f69ad$exports, \"templateOf\", function () { return $3e0a089cc13f69ad$export$2ee022bbbc550b25; });\n$parcel$export($3e0a089cc13f69ad$exports, \"elementTypeOf\", function () { return $3e0a089cc13f69ad$export$a549dd5cef7f8327; });\n$parcel$export($3e0a089cc13f69ad$exports, \"isHTMLElementClass\", function () { return $3e0a089cc13f69ad$export$8eece510bcb9c62c; });\n$parcel$export($3e0a089cc13f69ad$exports, \"tagNameOf\", function () { return $3e0a089cc13f69ad$export$b8a1af58c024fefd; });\n$parcel$export($3e0a089cc13f69ad$exports, \"isDOMReadOnly\", function () { return $3e0a089cc13f69ad$export$a2cf0d4bb6e06de4; });\n$parcel$export($3e0a089cc13f69ad$exports, \"parseDOM\", function () { return $3e0a089cc13f69ad$export$d66b332881d9723f; });\n$parcel$export($3e0a089cc13f69ad$exports, \"stringifyDOM\", function () { return $3e0a089cc13f69ad$export$b0709844452f8b6b; });\n$parcel$export($3e0a089cc13f69ad$exports, \"walkDOM\", function () { return $3e0a089cc13f69ad$export$5118471ee5d5453b; });\n$parcel$export($3e0a089cc13f69ad$exports, \"getVisibleText\", function () { return $3e0a089cc13f69ad$export$be4650432daa84fd; });\n$parcel$export($3e0a089cc13f69ad$exports, \"splitPages\", function () { return $3e0a089cc13f69ad$export$578e38b4a3e0b255; });\n$parcel$export($3e0a089cc13f69ad$exports, \"importCSS\", function () { return $3e0a089cc13f69ad$export$7cd14c57bbb84350; });\n$parcel$export($3e0a089cc13f69ad$exports, \"stringifyCSS\", function () { return $3e0a089cc13f69ad$export$5100419dfae0456d; });\n$parcel$export($3e0a089cc13f69ad$exports, \"insertToCursor\", function () { return $3e0a089cc13f69ad$export$28d9d24a8cd0ffc2; });\n$parcel$export($3e0a089cc13f69ad$exports, \"scrollTo\", function () { return $3e0a089cc13f69ad$export$3f99968195accfaf; });\n$parcel$export($3e0a089cc13f69ad$exports, \"watchScroll\", function () { return $3e0a089cc13f69ad$export$eafdbaa868ea9975; });\n$parcel$export($3e0a089cc13f69ad$exports, \"watchVisible\", function () { return $3e0a089cc13f69ad$export$36a0c1ca2ae264fa; });\n$parcel$export($3e0a089cc13f69ad$exports, \"formToJSON\", function () { return $3e0a089cc13f69ad$export$86d7c59254d6a2c9; });\n\n\nconst $3e0a089cc13f69ad$export$f5a4056b78c72efa = {\n html: \"http://www.w3.org/1999/xhtml\",\n svg: \"http://www.w3.org/2000/svg\",\n math: \"http://www.w3.org/1998/Math/MathML\"\n};\nconst $3e0a089cc13f69ad$var$templateMap = {};\nfunction $3e0a089cc13f69ad$export$2ee022bbbc550b25(tagName) {\n if ($3e0a089cc13f69ad$var$templateMap[tagName]) return $3e0a089cc13f69ad$var$templateMap[tagName];\n const spawn = document.createElement(\"template\");\n spawn.innerHTML = `<${tagName} />`;\n return $3e0a089cc13f69ad$var$templateMap[tagName] = spawn.content.firstElementChild;\n}\nfunction $3e0a089cc13f69ad$export$a549dd5cef7f8327(tagName) {\n if (tagName.includes(\"-\")) return \"html\";\n const [prefix, localName] = tagName.split(\":\");\n if (localName) return prefix === \"html\" ? \"html\" : \"xml\";\n const node = $3e0a089cc13f69ad$export$2ee022bbbc550b25(tagName);\n return node instanceof HTMLElement && !(node instanceof HTMLUnknownElement) ? \"html\" : \"xml\";\n}\nfunction $3e0a089cc13f69ad$export$8eece510bcb9c62c(Class) {\n return (0, $9b05bcda60cc529c$export$170f4e08cad8229d)(Class, HTMLElement);\n}\nconst $3e0a089cc13f69ad$var$nameMap = new WeakMap();\nfunction $3e0a089cc13f69ad$export$b8a1af58c024fefd(Class) {\n const name = $3e0a089cc13f69ad$var$nameMap.get(Class);\n if (name) return name;\n var { tagName: tagName } = new Class();\n $3e0a089cc13f69ad$var$nameMap.set(Class, tagName = tagName.toLowerCase());\n return tagName;\n}\nfunction $3e0a089cc13f69ad$export$a2cf0d4bb6e06de4(tagName, propertyName) {\n /**\n * fetch from https://html.spec.whatwg.org/\n */ const ReadOnly_Properties = [\n [\n HTMLLinkElement,\n [\n \"sizes\"\n ]\n ],\n [\n HTMLIFrameElement,\n [\n \"sandbox\"\n ]\n ],\n [\n HTMLObjectElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLInputElement,\n [\n \"form\",\n \"list\"\n ]\n ],\n [\n HTMLButtonElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLSelectElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLTextAreaElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLOutputElement,\n [\n \"form\"\n ]\n ],\n [\n HTMLFieldSetElement,\n [\n \"form\"\n ]\n ]\n ];\n const template = $3e0a089cc13f69ad$export$2ee022bbbc550b25(tagName);\n for (const [Class, keys] of ReadOnly_Properties)if (template instanceof Class && keys.includes(propertyName)) return true;\n return false;\n}\nfunction $3e0a089cc13f69ad$export$d66b332881d9723f(HTML) {\n const spawn = document.createElement(\"template\");\n spawn.innerHTML = HTML;\n return [\n ...spawn.content.childNodes\n ].map((node)=>{\n node.remove();\n return node;\n });\n}\nfunction $3e0a089cc13f69ad$export$b0709844452f8b6b(node) {\n return new XMLSerializer().serializeToString(node).replace(/ xmlns=\"http:\\/\\/www.w3.org\\/1999\\/xhtml\"/g, \"\");\n}\nfunction* $3e0a089cc13f69ad$export$5118471ee5d5453b(root, type) {\n const children = [\n ...root.childNodes\n ];\n if ((0, $9b05bcda60cc529c$export$dd1bc94b04021eeb)(type) || type === root.nodeType) yield root;\n for (const node of children)yield* $3e0a089cc13f69ad$export$5118471ee5d5453b(node, type);\n}\nfunction $3e0a089cc13f69ad$export$be4650432daa84fd(root) {\n var text = \"\";\n for (const { nodeType: nodeType, parentElement: parentElement, nodeValue: nodeValue } of $3e0a089cc13f69ad$export$5118471ee5d5453b(root))if (nodeType === Node.TEXT_NODE && parentElement.getAttribute(\"aria-hidden\") !== \"true\") {\n const { width: width, height: height } = parentElement.getBoundingClientRect();\n if (width && height) text += nodeValue.trim().replace(/\\s+/g, \" \");\n }\n return text;\n}\nfunction $3e0a089cc13f69ad$export$578e38b4a3e0b255({ offsetWidth: offsetWidth, children: children }, pageHeight = 841.89, pageWidth = 595.28) {\n const scrollHeight = pageHeight / pageWidth * offsetWidth;\n var offset = 0;\n return [\n ...children\n ].reduce((pages, node)=>{\n var { offsetTop: top, offsetHeight: height } = node;\n top += offset;\n var bottom = top + height;\n const bottomOffset = bottom / scrollHeight;\n const topIndex = ~~(top / scrollHeight), bottomIndex = ~~bottomOffset;\n if (topIndex !== bottomIndex) offset += height - bottomOffset;\n (pages[bottomIndex] ||= []).push(node);\n return pages;\n }, []);\n}\nfunction $3e0a089cc13f69ad$export$7cd14c57bbb84350(URI, { alternate: alternate, ...options } = {}) {\n const style = [\n ...document.styleSheets\n ].find(({ href: href })=>href === URI);\n if (style) return Promise.resolve(style);\n const link = document.createElement(\"link\");\n return new Promise((resolve, reject)=>{\n link.onload = ()=>resolve(link.sheet);\n link.onerror = (_1, _2, _3, _4, error)=>reject(error);\n Object.assign(link, options);\n link.rel = (alternate ? \"alternate \" : \"\") + \"stylesheet\";\n link.href = URI;\n document.head.append(link);\n });\n}\nfunction $3e0a089cc13f69ad$export$5100419dfae0456d(data, depth = 0, indent = \" \") {\n const padding = indent.repeat(depth);\n return Object.entries(data).map(([key, value])=>typeof value !== \"object\" ? `${padding}${(0, $9b05bcda60cc529c$export$3f34ca2fef821bbd)(key)}: ${value};` : `${padding}${key} {\n${$3e0a089cc13f69ad$export$5100419dfae0456d(value, depth + 1, indent)}\n${padding}}`).join(\"\\n\");\n}\nfunction $3e0a089cc13f69ad$export$28d9d24a8cd0ffc2(...nodes) {\n const fragment = document.createDocumentFragment();\n fragment.append(...nodes);\n for (const node of $3e0a089cc13f69ad$export$5118471ee5d5453b(fragment))if (![\n 1,\n 3,\n 11\n ].includes(node.nodeType) || [\n \"meta\",\n \"title\",\n \"link\",\n \"script\"\n ].includes(node.nodeName.toLowerCase())) node.replaceWith(...node.childNodes);\n const selection = globalThis.getSelection();\n if (!selection) return;\n const range = selection.getRangeAt(0);\n range.deleteContents();\n range.insertNode(fragment);\n}\nfunction $3e0a089cc13f69ad$export$3f99968195accfaf(selector, root, align, justify) {\n const [_, ID] = /^#(.+)/.exec(selector) || [];\n if (ID === \"top\") window.scrollTo({\n top: 0,\n left: 0,\n behavior: \"smooth\"\n });\n else (root || document).querySelector(ID ? `[id=\"${ID}\"]` : selector)?.scrollIntoView({\n behavior: \"smooth\",\n block: align,\n inline: justify\n });\n}\nfunction $3e0a089cc13f69ad$export$eafdbaa868ea9975(box, handler, depth = 6) {\n return Array.from(box.querySelectorAll(Array.from(new Array(depth), (_, index)=>`h${++index}`) + \"\"), (header)=>{\n new IntersectionObserver(([item])=>{\n if (!item.isIntersecting) return;\n const target = item.target;\n handler({\n target: target,\n links: [\n ...target.ownerDocument.querySelectorAll(`[href=\"#${target.id}\"]`)\n ]\n });\n }).observe(header);\n if (!header.id.trim()) header.id = header.textContent.trim().replace(/\\W+/g, \"-\");\n return {\n level: +header.tagName[1],\n id: header.id,\n text: header.textContent.trim()\n };\n });\n}\nfunction $3e0a089cc13f69ad$export$36a0c1ca2ae264fa(root, handler) {\n var last = document.visibilityState === \"visible\" ? 1 : 0;\n function change(state) {\n if (state === 3 || last === 3) handler(state === 3);\n last = state;\n }\n new IntersectionObserver(([{ isIntersecting: isIntersecting }])=>change(isIntersecting ? last | 2 : last & 1)).observe(root);\n document.addEventListener(\"visibilitychange\", ()=>change(document.visibilityState === \"visible\" ? last | 1 : last & 2));\n}\nfunction $3e0a089cc13f69ad$export$86d7c59254d6a2c9(form) {\n const data = {};\n for (const field of form.elements){\n let { name: name, value: value, checked: checked, defaultValue: defaultValue, selectedOptions: selectedOptions, files: files } = field;\n const type = field.type;\n if (!name || value === \"\") continue;\n const box = type !== \"fieldset\" && field.closest(\"fieldset\");\n if (box && box !== form) continue;\n let parsedValue = value;\n switch(type){\n case \"radio\":\n case \"checkbox\":\n if (checked) parsedValue = defaultValue ? (0, $ba0e5dc395660a7c$export$7ea17d45ecdcf634)(defaultValue) : true;\n else continue;\n break;\n case \"select-multiple\":\n parsedValue = Array.from(selectedOptions, ({ value: value })=>(0, $ba0e5dc395660a7c$export$7ea17d45ecdcf634)(value));\n break;\n case \"fieldset\":\n parsedValue = $3e0a089cc13f69ad$export$86d7c59254d6a2c9(field);\n break;\n case \"file\":\n parsedValue = files && Array.from(files);\n break;\n case \"date\":\n case \"datetime-local\":\n case \"month\":\n case \"hidden\":\n case \"number\":\n case \"range\":\n case \"select-one\":\n parsedValue = (0, $ba0e5dc395660a7c$export$7ea17d45ecdcf634)(value);\n }\n if (name in data) data[name] = [].concat(data[name], parsedValue);\n else data[name] = !(parsedValue instanceof Array) || !(0, $9b05bcda60cc529c$export$dd1bc94b04021eeb)(parsedValue[1]) ? parsedValue : parsedValue[0];\n }\n return data;\n}\n\n\nvar $bb23e0c794fefbef$exports = {};\n\n$parcel$export($bb23e0c794fefbef$exports, \"sleep\", function () { return $bb23e0c794fefbef$export$e772c8ff12451969; });\n$parcel$export($bb23e0c794fefbef$exports, \"asyncLoop\", function () { return $bb23e0c794fefbef$export$57207d71b8c929c8; });\nfunction $bb23e0c794fefbef$export$e772c8ff12451969(seconds = 1) {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n}\nfunction $bb23e0c794fefbef$export$57207d71b8c929c8(executor, seconds = 1) {\n var stop = false;\n (async ()=>{\n while(!stop){\n const result = executor();\n if (result instanceof Promise) await result;\n await $bb23e0c794fefbef$export$e772c8ff12451969(seconds);\n }\n })();\n return ()=>stop = true;\n}\n\n\nvar $19ed8aeb7905a045$exports = {};\n\n$parcel$export($19ed8aeb7905a045$exports, \"delegate\", function () { return $19ed8aeb7905a045$export$10b1921597150314; });\n$parcel$export($19ed8aeb7905a045$exports, \"documentReady\", function () { return $19ed8aeb7905a045$export$3e2b244719956741; });\n$parcel$export($19ed8aeb7905a045$exports, \"promisify\", function () { return $19ed8aeb7905a045$export$1d1d2ed6b55cf67f; });\n$parcel$export($19ed8aeb7905a045$exports, \"createMessageServer\", function () { return $19ed8aeb7905a045$export$2155c0b5a4b77fb8; });\n$parcel$export($19ed8aeb7905a045$exports, \"createMessageClient\", function () { return $19ed8aeb7905a045$export$9d97473344489dfc; });\n$parcel$export($19ed8aeb7905a045$exports, \"serviceWorkerUpdate\", function () { return $19ed8aeb7905a045$export$d635d04af3887bbe; });\n\nfunction $19ed8aeb7905a045$export$10b1921597150314(selector, handler) {\n return function(event) {\n var node, path = event.composedPath();\n while((node = path.shift()) && node !== event.currentTarget)if (node instanceof HTMLElement && node.matches(selector)) return handler.call(this, event, node, event.detail);\n };\n}\nconst $19ed8aeb7905a045$export$3e2b244719956741 = typeof window !== \"undefined\" ? new Promise((resolve)=>{\n function done() {\n document?.removeEventListener(\"DOMContentLoaded\", done);\n window.removeEventListener(\"load\", done);\n resolve();\n }\n document?.addEventListener(\"DOMContentLoaded\", done);\n window.addEventListener(\"load\", done);\n setTimeout(function check() {\n document?.readyState === \"complete\" ? resolve() : setTimeout(check);\n });\n}) : Promise.resolve();\nfunction $19ed8aeb7905a045$export$1d1d2ed6b55cf67f(scope, element) {\n return new Promise((resolve, reject)=>{\n function end(event) {\n resolve(event), clean();\n }\n function cancel(event) {\n reject(event), clean();\n }\n function clean() {\n element.removeEventListener(scope + \"end\", end);\n element.removeEventListener(scope + \"cancel\", cancel);\n }\n element.addEventListener(scope + \"end\", end);\n element.addEventListener(scope + \"cancel\", cancel);\n });\n}\nfunction $19ed8aeb7905a045$export$2155c0b5a4b77fb8(handlers) {\n async function server({ data: { type: type, id: id, ...data }, source: source, origin: origin }) {\n var result = handlers[type]?.(data);\n if (result instanceof Promise) result = await result;\n // @ts-ignore\n source.postMessage({\n ...result,\n id: id\n }, origin);\n }\n globalThis.addEventListener(\"message\", server);\n return ()=>globalThis.removeEventListener(\"message\", server);\n}\nfunction $19ed8aeb7905a045$export$9d97473344489dfc(target, origin = \"*\") {\n return (type, data)=>new Promise((resolve)=>{\n const UID = (0, $9b05bcda60cc529c$export$89912e019eef22aa)();\n function handler({ data: { id: id, ...data } }) {\n if (id !== UID) return;\n resolve(data);\n globalThis.removeEventListener(\"message\", handler);\n }\n globalThis.addEventListener(\"message\", handler);\n // @ts-ignore\n target.postMessage({\n id: UID,\n type: type,\n ...data\n }, origin);\n });\n}\nfunction $19ed8aeb7905a045$export$d635d04af3887bbe(registration) {\n return new Promise((resolve)=>{\n if (registration.waiting) return resolve(registration.waiting);\n registration.onupdatefound = ()=>registration.installing?.addEventListener(\"statechange\", function() {\n if (this.state === \"installed\" && navigator.serviceWorker.controller) resolve(this);\n });\n });\n}\n\n\nvar $7a08303ce13c49c5$exports = {};\n\n$parcel$export($7a08303ce13c49c5$exports, \"PageVector\", function () { return $7a08303ce13c49c5$export$1b88f6b6d432a52a; });\n$parcel$export($7a08303ce13c49c5$exports, \"getSwipeVector\", function () { return $7a08303ce13c49c5$export$b70f6380221b1350; });\n$parcel$export($7a08303ce13c49c5$exports, \"durationOf\", function () { return $7a08303ce13c49c5$export$75d6cbe4503e149; });\n$parcel$export($7a08303ce13c49c5$exports, \"watchMotion\", function () { return $7a08303ce13c49c5$export$b2618d51188815c2; });\n$parcel$export($7a08303ce13c49c5$exports, \"transitIn\", function () { return $7a08303ce13c49c5$export$490814474ddbb428; });\n$parcel$export($7a08303ce13c49c5$exports, \"animateIn\", function () { return $7a08303ce13c49c5$export$3ea201dffb50dfef; });\n$parcel$export($7a08303ce13c49c5$exports, \"transitOut\", function () { return $7a08303ce13c49c5$export$d1012c7198c6b460; });\n$parcel$export($7a08303ce13c49c5$exports, \"animateOut\", function () { return $7a08303ce13c49c5$export$a35a418b7b17958e; });\n\nclass $7a08303ce13c49c5$export$1b88f6b6d432a52a {\n constructor(from, to){\n this.from = from;\n this.to = to;\n }\n get length() {\n const { from: from, to: to } = this;\n return Math.sqrt(Math.pow(to.x - from.x, 2) + Math.pow(to.y - from.y, 2) + (to.z != null ? Math.pow(to.z - from.z, 2) : 0));\n }\n get direction() {\n const { from: from, to: to } = this;\n const XD = to.x - from.x, YD = to.y - from.y, ZD = to.z - from.z;\n const XL = Math.abs(XD), YL = Math.abs(YD), ZL = Math.abs(ZD);\n switch(isNaN(ZL) ? Math.max(XL, YL) : Math.max(XL, YL, ZL)){\n case XL:\n return XD > 0 ? \"right\" : \"left\";\n case YL:\n return YD > 0 ? \"forward\" : \"backward\";\n case ZL:\n return ZD > 0 ? \"up\" : \"down\";\n }\n }\n}\nfunction $7a08303ce13c49c5$export$b70f6380221b1350(from, to, threshold = parseInt(getComputedStyle(document.body).fontSize) * 6) {\n const vector = new $7a08303ce13c49c5$export$1b88f6b6d432a52a(from, to);\n if (vector.length >= threshold && !getSelection()?.toString().trim()) return vector;\n}\nfunction $7a08303ce13c49c5$export$75d6cbe4503e149(type, element) {\n const { transitionDuration: transitionDuration, animationDuration: animationDuration } = getComputedStyle(element);\n const duration = type === \"animation\" ? animationDuration : transitionDuration;\n return parseFloat(duration) * (duration.slice(-2) === \"ms\" ? 1 : 1000);\n}\nfunction $7a08303ce13c49c5$export$b2618d51188815c2(type, element) {\n return Promise.race([\n (0, $19ed8aeb7905a045$export$1d1d2ed6b55cf67f)(type, element).catch((event)=>Promise.resolve(event)),\n new Promise((resolve)=>setTimeout(resolve, $7a08303ce13c49c5$export$75d6cbe4503e149(type, element)))\n ]);\n}\nfunction $7a08303ce13c49c5$var$fadeIn(type, element, className, display) {\n element.style.display = display;\n const end = $7a08303ce13c49c5$export$b2618d51188815c2(type, element);\n return new Promise((resolve)=>requestAnimationFrame(()=>{\n element.classList.add(className);\n end.then(resolve);\n }));\n}\nasync function $7a08303ce13c49c5$var$fadeOut(type, element, className, remove) {\n const end = $7a08303ce13c49c5$export$b2618d51188815c2(type, element);\n element.classList.remove(className);\n await end;\n if (remove) element.remove();\n else element.style.display = \"none\";\n}\nfunction $7a08303ce13c49c5$export$490814474ddbb428(element, className, display = \"block\") {\n return $7a08303ce13c49c5$var$fadeIn(\"transition\", element, className, display);\n}\nfunction $7a08303ce13c49c5$export$3ea201dffb50dfef(element, className, display = \"block\") {\n return $7a08303ce13c49c5$var$fadeIn(\"animation\", element, className, display);\n}\nfunction $7a08303ce13c49c5$export$d1012c7198c6b460(element, className, remove) {\n return $7a08303ce13c49c5$var$fadeOut(\"transition\", element, className, remove);\n}\nfunction $7a08303ce13c49c5$export$a35a418b7b17958e(element, className, remove) {\n return $7a08303ce13c49c5$var$fadeOut(\"animation\", element, className, remove);\n}\n\n\nvar $69bd9f0117925302$exports = {};\n\n$parcel$export($69bd9f0117925302$exports, \"describe\", function () { return $69bd9f0117925302$export$cd5450f3a47e3789; });\n$parcel$export($69bd9f0117925302$exports, \"it\", function () { return $69bd9f0117925302$export$3486a10f30cf1ee4; });\n\nasync function $69bd9f0117925302$export$cd5450f3a47e3789(title, cases) {\n console.log(title);\n console.time(title);\n await cases();\n console.timeEnd(title);\n}\nasync function $69bd9f0117925302$export$3486a10f30cf1ee4(title, userCase, secondsOut = 3) {\n title = \" \" + title;\n console.time(title);\n async function timeOut() {\n await (0, $bb23e0c794fefbef$export$e772c8ff12451969)(secondsOut);\n throw new RangeError(\"Timed out\");\n }\n try {\n return await Promise.race([\n userCase((status)=>console.assert(status, title)),\n timeOut()\n ]);\n } finally{\n console.timeEnd(title);\n }\n}\n\n\n\n\nexport {$9b05bcda60cc529c$export$61cc6ed0f143570b as likeNull, $9b05bcda60cc529c$export$dd1bc94b04021eeb as isEmpty, $9b05bcda60cc529c$export$a09f818797e212c4 as classNameOf, $9b05bcda60cc529c$export$170f4e08cad8229d as assertInheritance, $9b05bcda60cc529c$export$2a489b3f92f4996a as proxyPrototype, $9b05bcda60cc529c$export$67a6ce548ae77071 as isUnsafeNumeric, $9b05bcda60cc529c$export$a48f0734ac7c2329 as byteLength, $9b05bcda60cc529c$export$3f34ca2fef821bbd as toHyphenCase, $9b05bcda60cc529c$export$86f54f62aa7a7514 as toCamelCase, $9b05bcda60cc529c$export$89912e019eef22aa as uniqueID, $9b05bcda60cc529c$export$1c8ba402144543e5 as objectFrom, $9b05bcda60cc529c$export$2ddabb89308e1a22 as DiffStatus, $9b05bcda60cc529c$export$14527669107aa301 as diffKeys, $9b05bcda60cc529c$export$3f063810d7bf01bd as groupBy, $9b05bcda60cc529c$export$b5a4d6f439a5044d as likeArray, $9b05bcda60cc529c$export$b119cc7e1840e59c as isTypedArray, $9b05bcda60cc529c$export$7b85fd78dd236198 as makeArray, $9b05bcda60cc529c$export$697c3df919c0e61a as splitArray, $9b05bcda60cc529c$export$e6b5ff3168b5942b as findDeep, $9b05bcda60cc529c$export$1d012a0dff3dab06 as countBy, $9b05bcda60cc529c$export$69a3209f1a06c04d as cache, $9b05bcda60cc529c$export$86c18c6347f4a8c4 as createAsyncIterator, $9b05bcda60cc529c$export$dce9414bed0662c as mergeStream, $9b05bcda60cc529c$export$271f7c16f175f804 as ByteSize, $6a9944941b4c1893$export$8a63f25cc62965f1 as sum, $6a9944941b4c1893$export$e1f36757ecda301d as averageOf, $6a9944941b4c1893$export$8e694e1eafd55acb as varianceOf, $6a9944941b4c1893$export$57d7c52a66287430 as standardDeviationOf, $6a9944941b4c1893$export$2b4693832ca3ce16 as hypotenuseOf, $6a9944941b4c1893$export$5b784e078da1ce6 as carryFloat, $6a9944941b4c1893$export$17ec9c9f4f23588c as fixFloat, $6a9944941b4c1893$export$595dbf49c602a1f as Scalar, $f872d8bba1c0f79f$export$c489aa6f7fd82b1a as Second, $f872d8bba1c0f79f$export$cbd942915f33be50 as Minute, $f872d8bba1c0f79f$export$9b886f8493244014 as Quarter, $f872d8bba1c0f79f$export$e99cbb807a5bb10d as Hour, $f872d8bba1c0f79f$export$7a9a31a911eb9a20 as Day, $f872d8bba1c0f79f$export$fca4f8121099df57 as Week, $f872d8bba1c0f79f$export$6ce2f08d515512 as Year, $f872d8bba1c0f79f$export$951c8378cdfec6e6 as Month, $f872d8bba1c0f79f$export$1a4097b876a13bf7 as Season, $f872d8bba1c0f79f$export$d9bcbd5e1ff81430 as Timestamp, $f872d8bba1c0f79f$export$506c8e8f8c8edda as diffTime, $f872d8bba1c0f79f$export$3ae94a2503e890a1 as formatDate, $f872d8bba1c0f79f$export$62ad822b3a5fd9a0 as changeMonth, $ba0e5dc395660a7c$export$27924e57e9afff7f as parseJSON, $ba0e5dc395660a7c$export$7ea17d45ecdcf634 as toJSValue, $ba0e5dc395660a7c$export$bb8626e4916f587b as parseTextTable, $083124ac4b1a50a0$export$71e6483fc2b024eb as isXDomain, $083124ac4b1a50a0$export$eb9b2aadbe449a20 as parseURLData, $083124ac4b1a50a0$export$13397a83aa5915d6 as buildURLData, $083124ac4b1a50a0$export$fd89523fba250fa4 as blobOf, $083124ac4b1a50a0$export$504fbde693c1771c as blobFrom, $50872bf213056663$export$1b9ac4d3de3ffd2e as makeCRC32, $50872bf213056663$export$d51f3b55e8d1aa73 as makeSHA, $3e0a089cc13f69ad$export$f5a4056b78c72efa as XMLNamespace, $3e0a089cc13f69ad$export$2ee022bbbc550b25 as templateOf, $3e0a089cc13f69ad$export$a549dd5cef7f8327 as elementTypeOf, $3e0a089cc13f69ad$export$8eece510bcb9c62c as isHTMLElementClass, $3e0a089cc13f69ad$export$b8a1af58c024fefd as tagNameOf, $3e0a089cc13f69ad$export$a2cf0d4bb6e06de4 as isDOMReadOnly, $3e0a089cc13f69ad$export$d66b332881d9723f as parseDOM, $3e0a089cc13f69ad$export$b0709844452f8b6b as stringifyDOM, $3e0a089cc13f69ad$export$5118471ee5d5453b as walkDOM, $3e0a089cc13f69ad$export$be4650432daa84fd as getVisibleText, $3e0a089cc13f69ad$export$578e38b4a3e0b255 as splitPages, $3e0a089cc13f69ad$export$7cd14c57bbb84350 as importCSS, $3e0a089cc13f69ad$export$5100419dfae0456d as stringifyCSS, $3e0a089cc13f69ad$export$28d9d24a8cd0ffc2 as insertToCursor, $3e0a089cc13f69ad$export$3f99968195accfaf as scrollTo, $3e0a089cc13f69ad$export$eafdbaa868ea9975 as watchScroll, $3e0a089cc13f69ad$export$36a0c1ca2ae264fa as watchVisible, $3e0a089cc13f69ad$export$86d7c59254d6a2c9 as formToJSON, $bb23e0c794fefbef$export$e772c8ff12451969 as sleep, $bb23e0c794fefbef$export$57207d71b8c929c8 as asyncLoop, $19ed8aeb7905a045$export$10b1921597150314 as delegate, $19ed8aeb7905a045$export$3e2b244719956741 as documentReady, $19ed8aeb7905a045$export$1d1d2ed6b55cf67f as promisify, $19ed8aeb7905a045$export$2155c0b5a4b77fb8 as createMessageServer, $19ed8aeb7905a045$export$9d97473344489dfc as createMessageClient, $19ed8aeb7905a045$export$d635d04af3887bbe as serviceWorkerUpdate, $7a08303ce13c49c5$export$1b88f6b6d432a52a as PageVector, $7a08303ce13c49c5$export$b70f6380221b1350 as getSwipeVector, $7a08303ce13c49c5$export$75d6cbe4503e149 as durationOf, $7a08303ce13c49c5$export$b2618d51188815c2 as watchMotion, $7a08303ce13c49c5$export$490814474ddbb428 as transitIn, $7a08303ce13c49c5$export$3ea201dffb50dfef as animateIn, $7a08303ce13c49c5$export$d1012c7198c6b460 as transitOut, $7a08303ce13c49c5$export$a35a418b7b17958e as animateOut, $69bd9f0117925302$export$cd5450f3a47e3789 as describe, $69bd9f0117925302$export$3486a10f30cf1ee4 as it};\n//# sourceMappingURL=index.esm.js.map\n","export * from './data';\nexport * from './math';\nexport * from './date';\nexport * from './parser';\nexport * from './URL';\nexport * from './crypto';\nexport * from './DOM-type';\nexport * from './DOM';\nexport * from './timer';\nexport * from './event';\nexport * from './animation';\nexport * from './assert';\n","import { Scalar } from './math';\n\nexport type Constructor = new (...args: any[]) => T;\n\nexport type AbstractClass = abstract new (...args: any[]) => T;\n\nexport type Values = Required[keyof T];\n\nexport type TypeKeys = {\n [K in keyof T]: Required[K] extends D ? K : never;\n}[keyof T];\n\nexport type PickSingle = T extends infer S | (infer S)[] ? S : T;\n\nexport type PickData = Omit>;\n\nexport type DataKeys = Exclude>;\n\nexport function likeNull(value?: any) {\n return !(value != null) || Number.isNaN(value);\n}\n\nexport function isEmpty(value?: any) {\n return (\n likeNull(value) ||\n (typeof value === 'object' ? !Object.keys(value).length : value === '')\n );\n}\n\n/**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag}\n */\nexport const classNameOf = (data: any): string =>\n Object.prototype.toString.call(data).slice(8, -1);\n\nexport function assertInheritance(Sub: Function, Super: Function) {\n return Sub.prototype instanceof Super;\n}\n\nexport function proxyPrototype(\n target: T,\n dataStore: Record,\n setter?: (key: IndexKey, value: any) => any\n) {\n const prototype = Object.getPrototypeOf(target);\n\n const prototypeProxy = new Proxy(prototype, {\n set: (_, key, value, receiver) => {\n if (key in receiver) Reflect.set(prototype, key, value, receiver);\n else dataStore[key] = value;\n\n setter?.(key, value);\n\n return true;\n },\n get: (prototype, key, receiver) =>\n key in dataStore\n ? dataStore[key]\n : Reflect.get(prototype, key, receiver)\n });\n\n Object.setPrototypeOf(target, prototypeProxy);\n}\n\nexport function isUnsafeNumeric(raw: string) {\n return (\n /^[\\d.]+$/.test(raw) &&\n raw.localeCompare(Number.MAX_SAFE_INTEGER + '', undefined, {\n numeric: true\n }) > 0\n );\n}\n\nexport function byteLength(raw: string) {\n return raw.replace(/[^\\u0021-\\u007e\\uff61-\\uffef]/g, 'xx').length;\n}\n\nexport type HyphenCase = T extends `${infer L}${infer R}`\n ? `${L extends Uppercase ? `-${Lowercase}` : L}${HyphenCase}`\n : T;\nexport function toHyphenCase(raw: string) {\n return raw.replace(\n /[A-Z]+|[^A-Za-z][A-Za-z]/g,\n (match, offset) =>\n `${offset ? '-' : ''}${(match[1] || match[0]).toLowerCase()}`\n );\n}\n\nexport type CamelCase<\n Raw extends string,\n Delimiter extends string = '-'\n> = Uncapitalize<\n Raw extends `${infer L}${Delimiter}${infer R}`\n ? `${Capitalize}${Capitalize>}`\n : `${Capitalize}`\n>;\nexport function toCamelCase(raw: string, large = false) {\n return raw.replace(/^[A-Za-z]|[^A-Za-z][A-Za-z]/g, (match, offset) =>\n offset || large\n ? (match[1] || match[0]).toUpperCase()\n : match.toLowerCase()\n );\n}\n\nexport function uniqueID() {\n return (Date.now() + parseInt((Math.random() + '').slice(2))).toString(36);\n}\n\nexport function objectFrom(values: V[], keys: K[]) {\n return Object.fromEntries(\n values.map((value, index) => [keys[index], value])\n ) as Record;\n}\n\nexport enum DiffStatus {\n Old = -1,\n Same = 0,\n New = 1\n}\n\nexport function diffKeys(oldList: T[], newList: T[]) {\n const map = {} as Record;\n\n for (const item of oldList) map[item] = DiffStatus.Old;\n\n for (const item of newList) {\n map[item] ||= 0;\n map[item] += DiffStatus.New;\n }\n\n return {\n map,\n group: groupBy(\n Object.entries(map),\n ([key, status]) => status\n )\n };\n}\n\nexport type ResultArray = T extends ArrayLike ? D[] : T[];\n\nexport function likeArray(data?: any): data is ArrayLike {\n if (likeNull(data)) return false;\n\n const { length } = data;\n\n return typeof length === 'number' && length >= 0 && ~~length === length;\n}\n\nexport type TypedArray =\n | Int8Array\n | Uint8Array\n | Uint8ClampedArray\n | Int16Array\n | Uint16Array\n | Int32Array\n | Uint32Array\n | Float32Array\n | Float64Array\n | BigInt64Array\n | BigUint64Array;\n\n/**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray}\n */\nexport const isTypedArray = (data: any): data is TypedArray =>\n data instanceof Object.getPrototypeOf(Int8Array);\n\nexport function makeArray(data?: T) {\n if (data instanceof Array) return data as unknown as ResultArray;\n\n if (likeNull(data)) return [] as ResultArray;\n\n if (likeArray(data)) return Array.from(data) as ResultArray;\n\n return [data] as ResultArray;\n}\n\nexport const splitArray = (array: T[], unitLength: number) =>\n array.reduce((grid, item, index) => {\n (grid[~~(index / unitLength)] ||= [])[index % unitLength] = item;\n\n return grid;\n }, [] as T[][]);\n\nexport function findDeep(\n list: T[],\n subKey: TypeKeys, any[]>,\n handler: (item: T) => boolean\n): T[] {\n for (const item of list) {\n if (handler(item)) return [item];\n\n if (item[subKey] instanceof Array) {\n const result = findDeep(\n item[subKey] as unknown as T[],\n subKey,\n handler\n );\n if (result.length) return [item, ...result];\n }\n }\n return [];\n}\n\nexport type IndexKey = number | string | symbol;\nexport type GroupKey> = keyof T | IndexKey;\nexport type Iteratee> =\n | keyof T\n | ((item: T) => GroupKey | GroupKey[]);\n\nexport function groupBy>(\n list: T[],\n iteratee: Iteratee\n) {\n const data = {} as Record, T[]>;\n\n for (const item of list) {\n let keys =\n iteratee instanceof Function ? iteratee(item) : item[iteratee];\n\n if (!(keys instanceof Array)) keys = [keys];\n\n for (const key of new Set(\n (keys as GroupKey[]).filter(key => key != null)\n ))\n (data[key] = data[key] || []).push(item);\n }\n\n return data;\n}\n\nexport function countBy>(\n list: T[],\n iteratee: Iteratee\n) {\n const group = groupBy(list, iteratee);\n\n const sortedList = Object.entries(group).map(\n ([key, { length }]) => [key, length] as const\n );\n return Object.fromEntries(sortedList);\n}\n\nexport function cache(\n executor: (cleaner: () => void, ...data: I[]) => O,\n title: string\n) {\n var cacheData: O;\n\n return function (...data: I[]) {\n if (cacheData != null) return cacheData;\n\n console.trace(`[Cache] execute: ${title}`);\n\n cacheData = executor.call(\n this,\n (): void => (cacheData = undefined),\n ...data\n );\n Promise.resolve(cacheData).then(\n data => console.log(`[Cache] refreshed: ${title} => ${data}`),\n error => console.error(`[Cache] failed: ${error?.message || error}`)\n );\n return cacheData;\n };\n}\n\nexport interface IteratorController {\n next: (value: V) => any;\n error: (error: E) => any;\n complete: () => any;\n}\n\nexport async function* createAsyncIterator(\n executor: (controller: IteratorController) => (() => any) | void\n) {\n let { promise, resolve, reject } = Promise.withResolvers();\n\n const doneSymbol = Symbol('done'),\n done = Promise.withResolvers();\n\n const disposer = executor({\n next: value => resolve(value),\n error: error => {\n reject(error);\n // @ts-ignore\n disposer?.();\n },\n complete: () => {\n done.resolve(doneSymbol);\n // @ts-ignore\n disposer?.();\n }\n });\n\n while (true) {\n const value = await Promise.race([promise, done.promise]);\n\n if (value === doneSymbol) return;\n\n yield value as V;\n\n ({ promise, resolve, reject } = Promise.withResolvers());\n }\n}\n\nexport async function* mergeStream(\n ...sources: (() => AsyncIterator)[]\n) {\n var iterators = sources.map(item => item());\n\n while (iterators[0]) {\n const dones: number[] = [];\n\n for (\n let i = 0, iterator: AsyncIterator;\n (iterator = iterators[i]);\n i++\n ) {\n const { done, value } = await iterator.next();\n\n if (!done) yield value;\n else dones.push(i);\n }\n iterators = iterators.filter((_, i) => !dones.includes(i));\n }\n}\n\nexport class ByteSize extends Scalar {\n units = ['', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'].map((name, i) => ({\n base: 1024 ** i,\n name: name + 'B'\n }));\n}\n","export function sum(...data: number[]) {\n return data.reduce((sum, item) => sum + item, 0);\n}\n\nexport function averageOf(...data: number[]) {\n return sum(...data) / data.length;\n}\n\nexport function varianceOf(data: number[], sample = false) {\n const average = averageOf(...data);\n const summary = sum(...data.map(item => (item - average) ** 2));\n\n return summary / (data.length - (sample ? 1 : 0));\n}\n\nexport function standardDeviationOf(data: number[], sample = false) {\n return Math.sqrt(varianceOf(data, sample));\n}\n\nexport function hypotenuseOf(...data: number[]) {\n return Math.sqrt(sum(...data.map(item => item ** 2)));\n}\n\nexport function carryFloat(raw: number, length: number) {\n const text = raw.toFixed(length + 2);\n const offset = text.indexOf('.') + length + 1;\n\n const cut = (text: string) => text.slice(0, offset - (length ? 0 : 1));\n\n if (!+text.slice(offset)) return cut(text);\n\n const result = cut((+cut(text) + 10 ** -length).toFixed(length));\n\n return result.includes('.') ? result.padEnd(offset, '0') : result;\n}\n\nexport function fixFloat(raw: number, length = 2) {\n const text = raw.toFixed(length + 2);\n const floatOffset = text.indexOf('.');\n\n if (floatOffset < 0) return length ? `${text}.${'0'.repeat(length)}` : text;\n\n const offset = floatOffset + length + 1;\n\n const before = +text[offset - 1],\n anchor = +text[offset],\n after = +text[offset + 1];\n\n const carry = anchor > 5 || (anchor === 5 && (!!after || !!(before % 2)));\n\n if (carry) return carryFloat(raw, length);\n\n const result = text.slice(0, offset - (length ? 0 : 1));\n\n return result.includes('.') ? result.padEnd(offset, '0') : result;\n}\n\nexport abstract class Scalar {\n abstract units: { base: number; name: string }[];\n\n constructor(public value: number) {}\n\n valueOf() {\n return this.value;\n }\n\n toShortString(fractionDigits = 2) {\n const { units, value } = this;\n const { base, name } =\n [...units].reverse().find(({ base }) => Math.abs(value) >= base) ||\n units[0];\n\n return `${(value / base).toFixed(fractionDigits)} ${name}`;\n }\n\n static distanceOf(a: number, b: number) {\n return Reflect.construct(this, [a - b]) as T;\n }\n}\n","import { Scalar } from './math';\n\nexport const Second = 1000;\nexport const Minute = Second * 60;\nexport const Quarter = Minute * 15;\nexport const Hour = Quarter * 4;\nexport const Day = Hour * 24;\nexport const Week = Day * 7;\nexport const Year = Day * 365;\nexport const Month = Year / 12;\nexport const Season = Month * 3;\n\nexport class Timestamp extends Scalar {\n units = [\n { base: Second, name: 's' },\n { base: Minute, name: 'm' },\n { base: Hour, name: 'H' },\n { base: Day, name: 'D' },\n { base: Week, name: 'W' },\n { base: Month, name: 'M' },\n { base: Year, name: 'Y' }\n ];\n\n toShortString(fractionDigits = 0) {\n return super.toShortString(fractionDigits);\n }\n}\n\nexport type TimeData = number | string | Date;\n\n/**\n * @deprecated since v4.4, use {@link Timestamp.distanceOf} instead.\n */\nexport function diffTime(end: TimeData, start: TimeData = new Date()) {\n const timeDistance = Timestamp.distanceOf(\n +new Date(end),\n +new Date(start)\n ) as Timestamp;\n\n const [value, unit] = timeDistance.toShortString().split(/\\s+/);\n\n return { distance: +value, unit };\n}\n\nfunction fitUnit(value: string) {\n value = +value + '';\n\n return (template: string) =>\n (value.length < template.length\n ? value.padStart(template.length, '0')\n : value\n ).slice(-Math.max(template.length, 2));\n}\n\nexport function formatDate(\n time: TimeData = new Date(),\n template = 'YYYY-MM-DD HH:mm:ss'\n) {\n time = time instanceof Date ? time : new Date(time);\n time = new Date(+time - time.getTimezoneOffset() * Minute);\n\n const [year, month, day, hour, minute, second, millisecond] = time\n .toJSON()\n .split(/\\D/);\n\n return template\n .replace(/ms/g, millisecond)\n .replace(/Y+/g, fitUnit(year))\n .replace(/M+/g, fitUnit(month))\n .replace(/D+/g, fitUnit(day))\n .replace(/H+/g, fitUnit(hour))\n .replace(/m+/g, fitUnit(minute))\n .replace(/s+/g, fitUnit(second));\n}\n\nexport function changeMonth(date: TimeData, delta: number) {\n date = new Date(date);\n\n const month = date.getMonth() + delta;\n\n date.setFullYear(date.getFullYear() + Math.floor(month / 12));\n\n delta = month % 12;\n\n date.setMonth(delta < 0 ? 12 + delta : delta);\n\n return date;\n}\n","import { isUnsafeNumeric } from './data';\n\nexport function parseJSON(raw: string) {\n function parseItem(value: any) {\n if (typeof value === 'string' && /^\\d+(-\\d{1,2}){1,2}/.test(value)) {\n const date = new Date(value);\n\n if (!Number.isNaN(+date)) return date;\n }\n return value;\n }\n\n const value = parseItem(raw);\n\n if (typeof value !== 'string' || isUnsafeNumeric(value)) return value;\n\n try {\n return JSON.parse(raw, (key, value) => parseItem(value));\n } catch {\n return raw;\n }\n}\n\nexport function toJSValue(raw: string) {\n const parsed = parseJSON(raw);\n\n if (typeof parsed !== 'string') return parsed;\n\n const number = +parsed;\n\n return Number.isNaN(number) || number + '' !== parsed ? parsed : number;\n}\n\nfunction readQuoteValue(raw: string) {\n const quote = raw[0];\n const index = raw.indexOf(quote, 1);\n\n if (index < 0) throw SyntaxError(`A ${quote} is missing`);\n\n return raw.slice(1, index);\n}\n\nexport function parseTextTable(\n raw: string,\n header?: boolean,\n separator = ','\n) {\n const data = raw\n .trim()\n .split(/[\\r\\n]+/)\n .map(row => {\n const list = [];\n\n do {\n let value: string;\n\n if (row[0] === '\"' || row[0] === \"'\") {\n value = readQuoteValue(row);\n\n row = row.slice(value.length + 3);\n } else {\n const index = row.indexOf(separator);\n\n if (index > -1) {\n value = row.slice(0, index);\n row = row.slice(index + 1);\n } else {\n value = row;\n row = '';\n }\n }\n list.push(toJSValue(value.trim()));\n } while (row);\n\n return list;\n });\n\n return !header\n ? data\n : data.slice(1).map(\n row =>\n row.reduce((object, item, index) => {\n object[data[0][index]] = item;\n\n return object;\n }, {}) as T\n );\n}\n","import { isEmpty, likeArray, makeArray } from './data';\nimport { parseJSON } from './parser';\n\nexport function isXDomain(URI: string) {\n return new URL(URI, document.baseURI).origin !== location.origin;\n}\n\nexport type JSONValue = number | boolean | string | null;\nexport interface URLData {\n [key: string]: JSONValue | JSONValue[] | URLData | URLData[] | E;\n}\n\nexport function parseURLData(\n raw = globalThis.location?.search,\n toBuiltIn = true\n): URLData {\n const list = raw.split(/\\?|#/);\n const data = new URLSearchParams(list[1] || list[0]);\n\n return Object.fromEntries(\n [...data.keys()].map(key => {\n const list = toBuiltIn\n ? data.getAll(key).map(parseJSON)\n : data.getAll(key);\n\n return [key, list.length < 2 ? list[0] : list];\n })\n );\n}\n\nconst stringify = (value: any) =>\n typeof value === 'string'\n ? value\n : likeArray(value)\n ? makeArray(value) + ''\n : JSON.stringify(value);\n\nexport function buildURLData(map: string[][] | Record) {\n if (!(map instanceof Array)) map = Object.entries(map);\n\n const list = (map as any[][])\n .map(([key, value]) => !isEmpty(value) && [key, stringify(value)])\n .filter(Boolean);\n\n return new URLSearchParams(list);\n}\n\nexport async function blobOf(URI: string | URL) {\n return (await fetch(URI + '')).blob();\n}\n\nconst DataURI = /^data:(.+?\\/(.+?))?(;base64)?,([\\s\\S]+)/;\n/**\n * Blob logic forked from axes's\n *\n * @see http://www.cnblogs.com/axes/p/4603984.html\n */\nexport function blobFrom(URI: string) {\n var [_, type, __, base64, data] = DataURI.exec(URI) || [];\n\n data = base64 ? atob(data) : data;\n\n const aBuffer = new ArrayBuffer(data.length);\n const uBuffer = new Uint8Array(aBuffer);\n\n for (let i = 0; data[i]; i++) uBuffer[i] = data.charCodeAt(i);\n\n return new Blob([aBuffer], { type });\n}\n","const CRC_32_Table = Array.from(new Array(256), (_, cell) => {\n for (var j = 0; j < 8; j++)\n if (cell & 1) cell = ((cell >> 1) & 0x7fffffff) ^ 0xedb88320;\n else cell = (cell >> 1) & 0x7fffffff;\n\n return cell;\n});\n\n/**\n * CRC-32 algorithm forked from Bakasen's\n *\n * @see http://blog.csdn.net/bakasen/article/details/6043797\n */\nexport function makeCRC32(raw: string) {\n var value = 0xffffffff;\n\n for (const char of raw)\n value =\n ((value >> 8) & 0x00ffffff) ^\n CRC_32_Table[(value & 0xff) ^ char.charCodeAt(0)];\n\n return '0x' + ((value ^ 0xffffffff) >>> 0).toString(16);\n}\n\nif (typeof self === 'object') {\n if ('msCrypto' in globalThis) {\n // @ts-ignore\n const { subtle } = (globalThis.crypto = globalThis.msCrypto as Crypto);\n\n for (const key in subtle) {\n const origin = subtle[key];\n\n if (origin instanceof Function)\n subtle[key] = function () {\n const observer = origin.apply(this, arguments);\n\n return new Promise((resolve, reject) => {\n observer.oncomplete = ({\n target\n }: Parameters[0]) =>\n resolve(target.result);\n\n observer.onabort = observer.onerror = reject;\n });\n };\n }\n }\n const { crypto } = globalThis;\n\n if (!crypto?.subtle && crypto?.['webkitSubtle'])\n // @ts-ignore\n crypto.subtle = crypto['webkitSubtle'];\n}\n\nexport type SHAAlgorithm = 'SHA-1' | 'SHA-256' | 'SHA-384' | 'SHA-512';\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest#Converting_a_digest_to_a_hex_string\n */\nexport async function makeSHA(raw: string, algorithm: SHAAlgorithm = 'SHA-1') {\n const buffer = await crypto.subtle.digest(\n algorithm,\n new TextEncoder().encode(raw)\n );\n return Array.from(new Uint8Array(buffer), byte =>\n byte.toString(16).padStart(2, '0')\n ).join('');\n}\n","import type { IAom } from 'element-internals-polyfill';\n\nimport type { DataKeys, PickData, Constructor } from './data';\n\nexport type SelfCloseTags =\n | 'area'\n | 'base'\n | 'br'\n | 'col'\n | 'embed'\n | 'hr'\n | 'img'\n | 'input'\n | 'link'\n | 'meta'\n | 'param'\n | 'source'\n | 'track'\n | 'wbr';\n\nexport type ShadowableTags =\n | 'article'\n | 'aside'\n | 'blockquote'\n | 'body'\n | 'div'\n | 'footer'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'header'\n | 'main'\n | 'nav'\n | 'p'\n | 'section'\n | 'span'\n | `${string}-${string}`;\n\n/* -------------------- Event Handlers -------------------- */\n\nexport type EventTypes = {\n [K in keyof typeof globalThis]: K extends `${infer N}Event`\n ? N extends ''\n ? never\n : N\n : never;\n}[keyof typeof globalThis];\n\nexport type UniqueEventNames = {\n [K in keyof HTMLElementEventMap]: K extends `${Lowercase}${string}`\n ? never\n : K extends `${string}${Lowercase}`\n ? never\n : K;\n}[keyof HTMLElementEventMap];\n\nexport type ComplexUniqueEventNames = {\n [K in UniqueEventNames]: K extends `${infer L}${UniqueEventNames}`\n ? L extends ''\n ? never\n : K\n : never;\n}[UniqueEventNames];\n\nexport type SimpleEventNames = Exclude<\n UniqueEventNames,\n ComplexUniqueEventNames\n>;\n\nexport type EventHandlerNames = {\n [K in keyof T]: K extends `on${infer N}`\n ? T[K] extends (event: Event) => any\n ? N\n : never\n : never;\n}[keyof T];\n\nexport type CamelEventName = T extends SimpleEventNames\n ? Capitalize\n : T extends `${infer L}${SimpleEventNames}`\n ? T extends `${L}${infer R}`\n ? `${Capitalize}${Capitalize}`\n : T\n : T extends `${Lowercase}${infer R}`\n ? T extends `${infer L}${R}`\n ? `${Capitalize}${Capitalize}`\n : T\n : T extends `${infer L}${Lowercase}`\n ? T extends `${L}${infer R}`\n ? `${Capitalize}${Capitalize}`\n : T\n : T;\n\nexport type EventHandlers<\n T extends Element,\n M extends HTMLElementEventMap = HTMLElementEventMap\n> = {\n [K in EventHandlerNames as `on${CamelEventName}`]: (\n event: M[K]\n ) => any;\n};\n\nexport type ContainerEvents = 'focusin' | 'focusout';\n\nexport type ContainerEventHandlers =\n T extends SelfCloseTags\n ? {}\n : {\n [K in ContainerEvents as `on${CamelEventName}`]: (\n event: HTMLElementEventMap[K]\n ) => any;\n };\n\n/* -------------------- DOM Props -------------------- */\n\nexport type XMLOwnKeys<\n T extends HTMLElement | SVGElement | MathMLElement = HTMLElement\n> = Exclude;\n/**\n * @deprecated since v4.4.2, use {@link XMLOwnKeys} instead\n */\nexport type HTMLOwnKeys = XMLOwnKeys;\n/**\n * @deprecated since v4.4.2, use {@link XMLOwnKeys} instead\n */\nexport type SVGOwnKeys = XMLOwnKeys;\n\nexport type CSSStyles = Partial<\n Omit, 'length' | 'parentRule'> &\n Record\n>;\nexport type CSSRule = Record;\nexport type CSSObject = CSSRule | Record;\n\nexport type DOMProps_Read2Write> = {\n [K in keyof T]: T[K] extends HTMLElement\n ? string\n : T[K] extends DOMTokenList\n ? string\n : T[K] extends Element\n ? string\n : T[K] extends CSSStyleDeclaration\n ? CSSStyles\n : T[K];\n};\nexport type HTMLProps = Partial<\n IAom &\n EventHandlers &\n DOMProps_Read2Write, XMLOwnKeys>>>\n>;\n\nexport type SVGProps_Read2Write> = {\n [K in keyof T]: T[K] extends\n | SVGAnimatedString\n | SVGAnimatedBoolean\n | SVGAnimatedEnumeration\n | SVGAnimatedNumber\n | SVGAnimatedNumberList\n | SVGAnimatedInteger\n | SVGAnimatedLength\n | SVGAnimatedLengthList\n | SVGAnimatedPoints\n | SVGAnimatedAngle\n | SVGAnimatedRect\n | SVGAnimatedPreserveAspectRatio\n | SVGAnimatedTransformList\n ? string\n : T[K];\n};\nexport type SVGProps = Partial<\n EventHandlers &\n SVGProps_Read2Write<\n DOMProps_Read2Write, XMLOwnKeys>>>\n >\n>;\n\nexport type MathMLProps = Partial<\n EventHandlers &\n DOMProps_Read2Write, XMLOwnKeys>>>\n>;\n\nexport interface HTMLHyperLinkProps\n extends HTMLProps {\n href?: string;\n target?: '_self' | '_parent' | '_top' | '_blank';\n}\n\nexport type HTMLTableCellProps = HTMLProps;\n\nexport type BaseFieldProps = Partial<\n Pick<\n HTMLInputElement,\n 'name' | 'defaultValue' | 'value' | 'required' | 'disabled'\n >\n>;\nexport interface BaseInputProps\n extends Partial> {\n list?: string;\n}\nexport type TextFieldProps = BaseInputProps &\n Partial<\n Pick<\n HTMLInputElement,\n | 'size'\n | 'minLength'\n | 'maxLength'\n | 'pattern'\n | 'autocomplete'\n | 'spellcheck'\n >\n >;\nexport type NumberFieldProps = BaseInputProps &\n Partial>;\n\nexport type HTMLFieldInternals = Pick<\n HTMLInputElement,\n | 'form'\n | 'validity'\n | 'validationMessage'\n | 'willValidate'\n | 'checkValidity'\n | 'reportValidity'\n>;\n\nexport type HTMLFieldProps =\n HTMLProps & BaseFieldProps;\n\nexport interface HTMLButtonProps extends HTMLFieldProps {}\n\nexport interface HTMLInputProps\n extends HTMLFieldProps,\n Omit {\n type?:\n | 'checkbox'\n | 'color'\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'file'\n | 'hidden'\n | 'month'\n | 'number'\n | 'password'\n | 'radio'\n | 'range'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url'\n | 'week'\n | HTMLButtonProps['type'];\n}\n\nexport type HTMLField = HTMLInputElement &\n HTMLTextAreaElement &\n HTMLSelectElement &\n HTMLFieldSetElement;\n\n/**\n * @see https://developers.google.com/web/fundamentals/web-components/customelements#reactions\n */\nexport interface CustomElement extends HTMLElement {\n /**\n * Called every time the element is inserted into the DOM\n */\n connectedCallback?(): void;\n /**\n * Called every time the element is removed from the DOM.\n */\n disconnectedCallback?(): void;\n /**\n * Called when an observed attribute has been added, removed, updated, or replaced.\n * Also called for initial values when an element is created by the parser, or upgraded.\n *\n * Note: only attributes listed in static `observedAttributes` property will receive this callback.\n */\n attributeChangedCallback?(\n name: string,\n oldValue: string,\n newValue: string\n ): void;\n /**\n * The custom element has been moved into a new document\n * (e.g. someone called `document.adoptNode(el)`).\n */\n adoptedCallback?(): void;\n}\n\n/**\n * @see https://developers.google.com/web/fundamentals/web-components/customelements#attrchanges\n */\nexport interface CustomElementClass {\n new (...data: any[]): T;\n\n observedAttributes?: string[];\n}\n\n/**\n * @see https://web.dev/more-capable-form-controls/#lifecycle-callbacks\n */\nexport interface CustomFormElement\n extends CustomElement,\n BaseFieldProps,\n HTMLFieldInternals {\n /**\n * Called when the browser associates the element with a form element,\n * or disassociates the element from a form element.\n */\n formAssociatedCallback?(form: HTMLFormElement): void;\n /**\n * Called after the disabled state of the element changes,\n * either because the disabled attribute of this element was added or removed;\n * or because the disabled state changed on a `
` that's an ancestor of this element.\n *\n * @param disabled This parameter represents the new disabled state of the element.\n */\n formDisabledCallback?(disabled: boolean): void;\n /**\n * Called after the form is reset.\n * The element should reset itself to some kind of default state.\n */\n formResetCallback?(): void;\n /**\n * Called in one of two circumstances:\n * - When the browser restores the state of the element (for example, after a navigation, or when the browser restarts). The `mode` argument is `\"restore\"` in this case.\n * - When the browser's input-assist features such as form autofilling sets a value. The `mode` argument is `\"autocomplete\"` in this case.\n *\n * @param state The type of this argument depends on how the `this.internals.setFormValue()` method was called.\n * @param mode\n */\n formStateRestoreCallback?(\n state: string | File | FormData,\n mode: 'restore' | 'autocomplete'\n ): void;\n}\n\n/**\n * @see https://web.dev/more-capable-form-controls/#defining-a-form-associated-custom-element\n */\nexport interface CustomFormElementClass\n extends CustomElementClass {\n formAssociated?: boolean;\n}\n","import { URLData } from './URL';\nimport { HTMLProps, HTMLField, CSSStyles, CSSObject } from './DOM-type';\nimport { Constructor, isEmpty, assertInheritance, toHyphenCase } from './data';\nimport { toJSValue } from './parser';\n\nexport const XMLNamespace = {\n html: 'http://www.w3.org/1999/xhtml',\n svg: 'http://www.w3.org/2000/svg',\n math: 'http://www.w3.org/1998/Math/MathML'\n};\n\nconst templateMap: Record = {};\n\nexport function templateOf(tagName: string) {\n if (templateMap[tagName]) return templateMap[tagName];\n\n const spawn = document.createElement('template');\n\n spawn.innerHTML = `<${tagName} />`;\n\n return (templateMap[tagName] = spawn.content.firstElementChild!);\n}\n\nexport function elementTypeOf(tagName: string) {\n if (tagName.includes('-')) return 'html';\n\n const [prefix, localName] = tagName.split(':');\n\n if (localName) return prefix === 'html' ? 'html' : 'xml';\n\n const node = templateOf(tagName);\n\n return node instanceof HTMLElement && !(node instanceof HTMLUnknownElement)\n ? 'html'\n : 'xml';\n}\n\nexport function isHTMLElementClass>(\n Class: any\n): Class is T {\n return assertInheritance(Class, HTMLElement);\n}\n\nconst nameMap = new WeakMap, string>();\n\nexport function tagNameOf(Class: CustomElementConstructor) {\n const name = nameMap.get(Class);\n\n if (name) return name;\n\n var { tagName } = new Class();\n\n nameMap.set(Class, (tagName = tagName.toLowerCase()));\n\n return tagName;\n}\n\nexport function isDOMReadOnly(\n tagName: T,\n propertyName: keyof HTMLProps\n) {\n /**\n * fetch from https://html.spec.whatwg.org/\n */\n const ReadOnly_Properties: [Constructor, string[]][] = [\n [HTMLLinkElement, ['sizes']],\n [HTMLIFrameElement, ['sandbox']],\n [HTMLObjectElement, ['form']],\n [HTMLInputElement, ['form', 'list']],\n [HTMLButtonElement, ['form']],\n [HTMLSelectElement, ['form']],\n [HTMLTextAreaElement, ['form']],\n [HTMLOutputElement, ['form']],\n [HTMLFieldSetElement, ['form']]\n ];\n const template = templateOf(tagName);\n\n for (const [Class, keys] of ReadOnly_Properties)\n if (template instanceof Class && keys.includes(propertyName as string))\n return true;\n return false;\n}\n\nexport function parseDOM(HTML: string) {\n const spawn = document.createElement('template');\n\n spawn.innerHTML = HTML;\n\n return [...spawn.content.childNodes].map(node => {\n node.remove();\n return node;\n });\n}\n\nexport function stringifyDOM(node: Node) {\n return new XMLSerializer()\n .serializeToString(node)\n .replace(/ xmlns=\"http:\\/\\/www.w3.org\\/1999\\/xhtml\"/g, '');\n}\n\nexport function* walkDOM(\n root: Node,\n type?: Node['nodeType']\n): Generator {\n const children = [...root.childNodes];\n\n if (isEmpty(type) || type === root.nodeType) yield root as T;\n\n for (const node of children) yield* walkDOM(node, type);\n}\n\nexport function getVisibleText(root: Element) {\n var text = '';\n\n for (const { nodeType, parentElement, nodeValue } of walkDOM(root))\n if (\n nodeType === Node.TEXT_NODE &&\n parentElement.getAttribute('aria-hidden') !== 'true'\n ) {\n const { width, height } = parentElement.getBoundingClientRect();\n\n if (width && height) text += nodeValue.trim().replace(/\\s+/g, ' ');\n }\n\n return text;\n}\n\n/**\n * Split a DOM tree into Pages like PDF files\n *\n * @param pageHeight the default value is A4 paper's height\n * @param pageWidth the default value is A4 paper's width\n */\nexport function splitPages(\n { offsetWidth, children }: HTMLElement,\n pageHeight = 841.89,\n pageWidth = 595.28\n) {\n const scrollHeight = (pageHeight / pageWidth) * offsetWidth;\n var offset = 0;\n\n return [...children].reduce((pages, node) => {\n var { offsetTop: top, offsetHeight: height } = node as HTMLElement;\n top += offset;\n var bottom = top + height;\n\n const bottomOffset = bottom / scrollHeight;\n const topIndex = ~~(top / scrollHeight),\n bottomIndex = ~~bottomOffset;\n\n if (topIndex !== bottomIndex) offset += height - bottomOffset;\n\n (pages[bottomIndex] ||= []).push(node);\n\n return pages;\n }, [] as Element[][]);\n}\n\nexport interface CSSOptions\n extends Pick<\n HTMLLinkElement,\n 'title' | 'media' | 'crossOrigin' | 'integrity'\n > {\n alternate?: boolean;\n}\n\nexport function importCSS(\n URI: string,\n { alternate, ...options }: CSSOptions = {} as CSSOptions\n) {\n const style = [...document.styleSheets].find(({ href }) => href === URI);\n\n if (style) return Promise.resolve(style);\n\n const link = document.createElement('link');\n\n return new Promise((resolve, reject) => {\n link.onload = () => resolve(link.sheet);\n link.onerror = (_1, _2, _3, _4, error) => reject(error);\n\n Object.assign(link, options);\n\n link.rel = (alternate ? 'alternate ' : '') + 'stylesheet';\n link.href = URI;\n\n document.head.append(link);\n });\n}\n\nexport function stringifyCSS(\n data: CSSStyles | CSSObject,\n depth = 0,\n indent = ' '\n): string {\n const padding = indent.repeat(depth);\n\n return Object.entries(data)\n .map(([key, value]) =>\n typeof value !== 'object'\n ? `${padding}${toHyphenCase(key)}: ${value};`\n : `${padding}${key} {\n${stringifyCSS(value as CSSObject, depth + 1, indent)}\n${padding}}`\n )\n .join('\\n');\n}\n\nexport function insertToCursor(...nodes: Node[]) {\n const fragment = document.createDocumentFragment();\n\n fragment.append(...nodes);\n\n for (const node of walkDOM(fragment))\n if (\n ![1, 3, 11].includes(node.nodeType) ||\n ['meta', 'title', 'link', 'script'].includes(\n node.nodeName.toLowerCase()\n )\n )\n (node as ChildNode).replaceWith(...node.childNodes);\n\n const selection = globalThis.getSelection();\n\n if (!selection) return;\n\n const range = selection.getRangeAt(0);\n\n range.deleteContents();\n range.insertNode(fragment);\n}\n\nexport function scrollTo(\n selector: string,\n root?: Element,\n align?: ScrollLogicalPosition,\n justify?: ScrollLogicalPosition\n) {\n const [_, ID] = /^#(.+)/.exec(selector) || [];\n\n if (ID === 'top') window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });\n else\n (root || document)\n .querySelector(ID ? `[id=\"${ID}\"]` : selector)\n ?.scrollIntoView({\n behavior: 'smooth',\n block: align,\n inline: justify\n });\n}\n\nexport interface ScrollEvent {\n target: HTMLHeadingElement;\n links: (HTMLAnchorElement | HTMLAreaElement)[];\n}\n\nexport function watchScroll(\n box: HTMLElement,\n handler: (event: ScrollEvent) => any,\n depth = 6\n) {\n return Array.from(\n box.querySelectorAll(\n Array.from(new Array(depth), (_, index) => `h${++index}`) + ''\n ),\n header => {\n new IntersectionObserver(([item]) => {\n if (!item.isIntersecting) return;\n\n const target = item.target as HTMLHeadingElement;\n\n handler({\n target,\n links: [\n ...target.ownerDocument.querySelectorAll<\n HTMLAnchorElement | HTMLAreaElement\n >(`[href=\"#${target.id}\"]`)\n ]\n });\n }).observe(header);\n\n if (!header.id.trim())\n header.id = header.textContent.trim().replace(/\\W+/g, '-');\n\n return {\n level: +header.tagName[1],\n id: header.id,\n text: header.textContent.trim()\n };\n }\n );\n}\n\nexport function watchVisible(\n root: Element,\n handler: (visible: boolean) => any\n) {\n var last = document.visibilityState === 'visible' ? 1 : 0;\n\n function change(state: number) {\n if (state === 3 || last === 3) handler(state === 3);\n\n last = state;\n }\n\n new IntersectionObserver(([{ isIntersecting }]) =>\n change(isIntersecting ? last | 2 : last & 1)\n ).observe(root);\n\n document.addEventListener('visibilitychange', () =>\n change(document.visibilityState === 'visible' ? last | 1 : last & 2)\n );\n}\n\nexport function formToJSON>(\n form: HTMLFormElement | HTMLFieldSetElement\n) {\n const data = {} as T;\n\n for (const field of form.elements) {\n let { name, value, checked, defaultValue, selectedOptions, files } =\n field as HTMLField;\n const type = (field as HTMLField).type as string;\n\n if (!name || value === '') continue;\n\n const box = type !== 'fieldset' && field.closest('fieldset');\n\n if (box && box !== form) continue;\n\n let parsedValue: any = value;\n\n switch (type) {\n case 'radio':\n case 'checkbox':\n if (checked)\n parsedValue = defaultValue ? toJSValue(defaultValue) : true;\n else continue;\n break;\n case 'select-multiple':\n parsedValue = Array.from(selectedOptions, ({ value }) =>\n toJSValue(value)\n );\n break;\n case 'fieldset':\n parsedValue = formToJSON(field as HTMLFieldSetElement);\n break;\n case 'file':\n parsedValue = files && Array.from(files);\n break;\n case 'date':\n case 'datetime-local':\n case 'month':\n case 'hidden':\n case 'number':\n case 'range':\n case 'select-one':\n parsedValue = toJSValue(value);\n }\n\n if (name in data) data[name] = [].concat(data[name], parsedValue);\n else\n data[name] =\n !(parsedValue instanceof Array) || !isEmpty(parsedValue[1])\n ? parsedValue\n : parsedValue[0];\n }\n\n return data;\n}\n","export function sleep(seconds = 1) {\n return new Promise(resolve => setTimeout(resolve, seconds * 1000));\n}\n\nexport function asyncLoop(executor: (...data: any[]) => any, seconds = 1) {\n var stop = false;\n\n (async () => {\n while (!stop) {\n const result = executor();\n\n if (result instanceof Promise) await result;\n\n await sleep(seconds);\n }\n })();\n\n return () => (stop = true);\n}\n","import { uniqueID } from './data';\n\nexport type DelegateEventHandler = (\n event: Event,\n currentTarget: Element,\n detail?: T\n) => any;\n\nexport function delegate(\n selector: string,\n handler: DelegateEventHandler\n) {\n return function (this: Node, event: Event) {\n var node: EventTarget,\n path = event.composedPath();\n\n while ((node = path.shift()) && node !== event.currentTarget)\n if (node instanceof HTMLElement && node.matches(selector))\n return handler.call(\n this,\n event,\n node,\n (event as CustomEvent).detail\n );\n };\n}\n\nexport const documentReady =\n typeof window !== 'undefined'\n ? new Promise(resolve => {\n function done() {\n document?.removeEventListener('DOMContentLoaded', done);\n window.removeEventListener('load', done);\n resolve();\n }\n document?.addEventListener('DOMContentLoaded', done);\n window.addEventListener('load', done);\n\n setTimeout(function check() {\n document?.readyState === 'complete'\n ? resolve()\n : setTimeout(check);\n });\n })\n : Promise.resolve();\n\nexport function promisify(scope: string, element: Element) {\n return new Promise((resolve, reject) => {\n function end(event: T) {\n resolve(event), clean();\n }\n function cancel(event: T) {\n reject(event), clean();\n }\n\n function clean() {\n element.removeEventListener(scope + 'end', end);\n element.removeEventListener(scope + 'cancel', cancel);\n }\n\n element.addEventListener(scope + 'end', end);\n element.addEventListener(scope + 'cancel', cancel);\n });\n}\n\nexport type MessageGlobal = Window | Worker;\n\nexport function createMessageServer(\n handlers: Record any | Promise>\n) {\n async function server({\n data: { type, id, ...data },\n source,\n origin\n }: MessageEvent) {\n var result = handlers[type]?.(data);\n\n if (result instanceof Promise) result = await result;\n // @ts-ignore\n (source as MessageGlobal).postMessage({ ...result, id }, origin);\n }\n\n globalThis.addEventListener('message', server);\n\n return () => globalThis.removeEventListener('message', server);\n}\n\nexport function createMessageClient(target: Window | Worker, origin = '*') {\n return (type: string, data?: any) =>\n new Promise(resolve => {\n const UID = uniqueID();\n\n function handler({ data: { id, ...data } }: MessageEvent) {\n if (id !== UID) return;\n\n resolve(data);\n\n globalThis.removeEventListener('message', handler);\n }\n\n globalThis.addEventListener('message', handler);\n // @ts-ignore\n target.postMessage({ id: UID, type, ...data }, origin);\n });\n}\n\nexport function serviceWorkerUpdate(registration: ServiceWorkerRegistration) {\n return new Promise(resolve => {\n if (registration.waiting) return resolve(registration.waiting);\n\n registration.onupdatefound = () =>\n registration.installing?.addEventListener(\n 'statechange',\n function () {\n if (\n this.state === 'installed' &&\n navigator.serviceWorker.controller\n )\n resolve(this);\n }\n );\n });\n}\n","import { promisify } from './event';\n\nexport interface CartesianCoordinate {\n x: number;\n y: number;\n z?: number;\n}\n\nexport class PageVector {\n from: CartesianCoordinate;\n to: CartesianCoordinate;\n\n constructor(from: CartesianCoordinate, to: CartesianCoordinate) {\n this.from = from;\n this.to = to;\n }\n\n get length() {\n const { from, to } = this;\n\n return Math.sqrt(\n Math.pow(to.x - from.x, 2) +\n Math.pow(to.y - from.y, 2) +\n (to.z != null ? Math.pow(to.z - from.z, 2) : 0)\n );\n }\n\n get direction() {\n const { from, to } = this;\n const XD = to.x - from.x,\n YD = to.y - from.y,\n ZD = to.z - from.z;\n const XL = Math.abs(XD),\n YL = Math.abs(YD),\n ZL = Math.abs(ZD);\n\n switch (isNaN(ZL) ? Math.max(XL, YL) : Math.max(XL, YL, ZL)) {\n case XL:\n return XD > 0 ? 'right' : 'left';\n case YL:\n return YD > 0 ? 'forward' : 'backward';\n case ZL:\n return ZD > 0 ? 'up' : 'down';\n }\n }\n}\n\nexport function getSwipeVector(\n from: CartesianCoordinate,\n to: CartesianCoordinate,\n threshold = parseInt(getComputedStyle(document.body).fontSize) * 6\n) {\n const vector = new PageVector(from, to);\n\n if (vector.length >= threshold && !getSelection()?.toString().trim())\n return vector;\n}\n\nexport interface AnimationEvents {\n transition: TransitionEvent;\n animation: AnimationEvent;\n}\n\nexport type AnimationType = keyof AnimationEvents;\n\nexport function durationOf(type: AnimationType, element: HTMLElement) {\n const { transitionDuration, animationDuration } = getComputedStyle(element);\n\n const duration =\n type === 'animation' ? animationDuration : transitionDuration;\n\n return parseFloat(duration) * (duration.slice(-2) === 'ms' ? 1 : 1000);\n}\n\nexport function watchMotion(\n type: T,\n element: HTMLElement\n) {\n return Promise.race([\n promisify(type, element).catch(event =>\n Promise.resolve(event)\n ),\n new Promise(resolve =>\n setTimeout(resolve, durationOf(type, element))\n )\n ]);\n}\n\nfunction fadeIn(\n type: T,\n element: HTMLElement,\n className: string,\n display: string\n) {\n element.style.display = display;\n\n const end = watchMotion(type, element);\n\n return new Promise(resolve =>\n requestAnimationFrame(() => {\n element.classList.add(className);\n\n end.then(resolve);\n })\n );\n}\n\nasync function fadeOut(\n type: T,\n element: HTMLElement,\n className: string,\n remove?: boolean\n) {\n const end = watchMotion(type, element);\n\n element.classList.remove(className);\n\n await end;\n\n if (remove) element.remove();\n else element.style.display = 'none';\n}\n\nexport function transitIn(\n element: HTMLElement,\n className: string,\n display = 'block'\n) {\n return fadeIn('transition', element, className, display);\n}\n\nexport function animateIn(\n element: HTMLElement,\n className: string,\n display = 'block'\n) {\n return fadeIn('animation', element, className, display);\n}\n\nexport function transitOut(\n element: HTMLElement,\n className: string,\n remove?: boolean\n) {\n return fadeOut('transition', element, className, remove);\n}\n\nexport function animateOut(\n element: HTMLElement,\n className: string,\n remove?: boolean\n) {\n return fadeOut('animation', element, className, remove);\n}\n","import { sleep } from './timer';\n\nexport async function describe(title: string, cases: () => any) {\n console.log(title);\n console.time(title);\n\n await cases();\n\n console.timeEnd(title);\n}\n\nexport async function it(\n title: string,\n userCase: (expect: (status: boolean) => void) => T | Promise,\n secondsOut = 3\n): Promise {\n title = ' ' + title;\n\n console.time(title);\n\n async function timeOut(): Promise {\n await sleep(secondsOut);\n\n throw new RangeError('Timed out');\n }\n try {\n return await Promise.race([\n userCase(status => console.assert(status, title)),\n timeOut()\n ]);\n } finally {\n console.timeEnd(title);\n }\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VNode = exports.VNodeMeta = void 0;\nvar tslib_1 = require(\"tslib\");\nvar declarative_shadow_dom_polyfill_1 = require(\"declarative-shadow-dom-polyfill\");\nvar web_utility_1 = require(\"web-utility\");\nvar VNodeMeta = /** @class */ (function () {\n function VNodeMeta() {\n this.children = [];\n }\n return VNodeMeta;\n}());\nexports.VNodeMeta = VNodeMeta;\nvar VNode = /** @class */ (function (_super) {\n tslib_1.__extends(VNode, _super);\n function VNode(_b) {\n var e_1, _c, _d, e_2, _e;\n var _this = this;\n var children = _b.children, meta = tslib_1.__rest(_b, [\"children\"]);\n _this = _super.call(this) || this;\n Object.assign(_this, meta);\n try {\n for (var _f = tslib_1.__values(children || []), _g = _f.next(); !_g.done; _g = _f.next()) {\n var vNode = _g.value;\n (_d = _this.children).push.apply(_d, tslib_1.__spreadArray([], tslib_1.__read((_a.isFragment(vNode) ? vNode.children || [] : [vNode])), false));\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_g && !_g.done && (_c = _f.return)) _c.call(_f);\n }\n finally { if (e_1) throw e_1.error; }\n }\n try {\n for (var _h = tslib_1.__values(_this.children), _j = _h.next(); !_j.done; _j = _h.next()) {\n var child = _j.value;\n child.parent = _this;\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_j && !_j.done && (_e = _h.return)) _e.call(_h);\n }\n finally { if (e_2) throw e_2.error; }\n }\n var tagName = meta.tagName, is = meta.is, props = meta.props;\n if (!tagName && !(props === null || props === void 0 ? void 0 : props.className) && !is)\n return _this;\n _this.selector = [\n tagName === null || tagName === void 0 ? void 0 : tagName.toLowerCase(),\n (props === null || props === void 0 ? void 0 : props.className) && \".\".concat(props.className.trim().replace(/\\s+/, '.')),\n is && \"[is=\\\"\".concat(is, \"\\\"]\")\n ]\n .filter(Boolean)\n .join('');\n return _this;\n }\n VNode.prototype.walkUp = function () {\n var current;\n return tslib_1.__generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n current = this;\n _b.label = 1;\n case 1:\n if (!(current = current.parent)) return [3 /*break*/, 3];\n return [4 /*yield*/, current];\n case 2:\n _b.sent();\n return [3 /*break*/, 1];\n case 3: return [2 /*return*/];\n }\n });\n };\n VNode.prototype.namespaceOf = function (tagName) {\n var e_3, _b;\n if (web_utility_1.XMLNamespace[tagName])\n return web_utility_1.XMLNamespace[tagName];\n try {\n for (var _c = tslib_1.__values(this.walkUp()), _d = _c.next(); !_d.done; _d = _c.next()) {\n var namespace = _d.value.namespace;\n if (namespace)\n return namespace;\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (_d && !_d.done && (_b = _c.return)) _b.call(_c);\n }\n finally { if (e_3) throw e_3.error; }\n }\n return web_utility_1.XMLNamespace.html;\n };\n VNode.prototype.createDOM = function (document) {\n if (document === void 0) { document = globalThis.document; }\n var _b = this, tagName = _b.tagName, is = _b.is, text = _b.text;\n return (this.node = text\n ? document.createTextNode(text)\n : !tagName\n ? document.createDocumentFragment()\n : document.createElementNS((this.namespace || (this.namespace = this.namespaceOf(tagName))), tagName, {\n is: is\n }));\n };\n VNode.prototype.toJSON = function () {\n var _b = this, key = _b.key, text = _b.text, selector = _b.selector, namespace = _b.namespace, tagName = _b.tagName, is = _b.is, props = _b.props, style = _b.style, children = _b.children;\n return JSON.parse(JSON.stringify({ key: key, text: text, selector: selector, namespace: namespace, tagName: tagName, is: is, props: props, style: style, children: children }));\n };\n VNode.prototype.generateElementXML = function () {\n var _b, tagName, props, style, children, node, body, shadowRoots, innerHTML, restProps, _c, _d, _e, _i, key, _f, _g, _h, _j, key, children_1, children_1_1, child, e_4_1;\n var e_4, _k;\n return tslib_1.__generator(this, function (_l) {\n switch (_l.label) {\n case 0:\n _b = this, tagName = _b.tagName, props = _b.props, style = _b.style, children = _b.children, node = _b.node;\n if (!(tagName.includes('-') && (0, web_utility_1.elementTypeOf)(tagName) === 'html')) return [3 /*break*/, 2];\n body = ((node === null || node === void 0 ? void 0 : node.ownerDocument) || document).implementation.createHTMLDocument().body;\n body.innerHTML = \"<\".concat(tagName, \">\");\n shadowRoots = tslib_1.__spreadArray([], tslib_1.__read((0, declarative_shadow_dom_polyfill_1.findShadowRoots)(body)), false);\n return [4 /*yield*/, body.getHTML({ serializableShadowRoots: true, shadowRoots: shadowRoots })];\n case 1:\n _l.sent();\n return [3 /*break*/, 29];\n case 2:\n innerHTML = props.innerHTML, restProps = tslib_1.__rest(props, [\"innerHTML\"]);\n return [4 /*yield*/, \"<\".concat(tagName)];\n case 3:\n _l.sent();\n _c = restProps;\n _d = [];\n for (_e in _c)\n _d.push(_e);\n _i = 0;\n _l.label = 4;\n case 4:\n if (!(_i < _d.length)) return [3 /*break*/, 7];\n _e = _d[_i];\n if (!(_e in _c)) return [3 /*break*/, 6];\n key = _e;\n return [4 /*yield*/, \" \".concat(_a.propsMap[key] || key, \"=\\\"\").concat(restProps[key], \"\\\"\")];\n case 5:\n _l.sent();\n _l.label = 6;\n case 6:\n _i++;\n return [3 /*break*/, 4];\n case 7:\n if (!style) return [3 /*break*/, 14];\n return [4 /*yield*/, \" style=\\\"\"];\n case 8:\n _l.sent();\n _f = style;\n _g = [];\n for (_h in _f)\n _g.push(_h);\n _j = 0;\n _l.label = 9;\n case 9:\n if (!(_j < _g.length)) return [3 /*break*/, 12];\n _h = _g[_j];\n if (!(_h in _f)) return [3 /*break*/, 11];\n key = _h;\n return [4 /*yield*/, \"\".concat((0, web_utility_1.toHyphenCase)(key), \":\").concat(style[key], \";\")];\n case 10:\n _l.sent();\n _l.label = 11;\n case 11:\n _j++;\n return [3 /*break*/, 9];\n case 12: return [4 /*yield*/, \"\\\"\"];\n case 13:\n _l.sent();\n _l.label = 14;\n case 14:\n if (!innerHTML) return [3 /*break*/, 16];\n return [4 /*yield*/, \">\".concat(innerHTML, \"\")];\n case 15:\n _l.sent();\n return [3 /*break*/, 29];\n case 16:\n if (!children[0]) return [3 /*break*/, 27];\n return [4 /*yield*/, '>'];\n case 17:\n _l.sent();\n _l.label = 18;\n case 18:\n _l.trys.push([18, 23, 24, 25]);\n children_1 = tslib_1.__values(children), children_1_1 = children_1.next();\n _l.label = 19;\n case 19:\n if (!!children_1_1.done) return [3 /*break*/, 22];\n child = children_1_1.value;\n return [5 /*yield**/, tslib_1.__values(child.generateXML())];\n case 20:\n _l.sent();\n _l.label = 21;\n case 21:\n children_1_1 = children_1.next();\n return [3 /*break*/, 19];\n case 22: return [3 /*break*/, 25];\n case 23:\n e_4_1 = _l.sent();\n e_4 = { error: e_4_1 };\n return [3 /*break*/, 25];\n case 24:\n try {\n if (children_1_1 && !children_1_1.done && (_k = children_1.return)) _k.call(children_1);\n }\n finally { if (e_4) throw e_4.error; }\n return [7 /*endfinally*/];\n case 25: return [4 /*yield*/, \"\")];\n case 26:\n _l.sent();\n return [3 /*break*/, 29];\n case 27: return [4 /*yield*/, tagName === 'script' ? '>' : ' />'];\n case 28:\n _l.sent();\n _l.label = 29;\n case 29: return [2 /*return*/];\n }\n });\n };\n VNode.prototype.generateXML = function () {\n var mode;\n return tslib_1.__generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!_a.isFragment(this)) return [3 /*break*/, 5];\n return [4 /*yield*/, ''];\n case 4:\n _b.sent();\n return [3 /*break*/, 9];\n case 5:\n if (!(this.text != null)) return [3 /*break*/, 7];\n return [4 /*yield*/, this.text];\n case 6:\n _b.sent();\n return [3 /*break*/, 9];\n case 7: return [5 /*yield**/, tslib_1.__values(this.generateElementXML())];\n case 8:\n _b.sent();\n _b.label = 9;\n case 9: return [2 /*return*/];\n }\n });\n };\n VNode.isFragment = function (_b) {\n var key = _b.key, node = _b.node, children = _b.children, rest = tslib_1.__rest(_b, [\"key\", \"node\", \"children\"]);\n for (var key_1 in rest)\n if (!(0, web_utility_1.isEmpty)(rest[key_1]))\n return false;\n return true;\n };\n VNode.fromDOM = function (node) {\n var _this = this;\n if (node instanceof Text)\n return new _a({ node: node, text: node.nodeValue });\n if (!(node instanceof Element))\n return new _a({ node: node });\n var _b = node, namespaceURI = _b.namespaceURI, tagName = _b.tagName, attributes = _b.attributes, style = _b.style, childNodes = _b.childNodes;\n var vNode = {\n node: node,\n namespace: namespaceURI,\n tagName: tagName.toLowerCase(),\n is: node.getAttribute('is')\n };\n var props = Array.from(attributes, function (_b) {\n var name = _b.name, value = _b.value;\n return name !== 'style' && [_this.attrsMap[name] || name, value];\n }).filter(Boolean);\n if (props[0])\n vNode.props = Object.fromEntries(props);\n var styles = Array.from(style, function (key) { return [key, style[key]]; });\n if (styles[0])\n vNode.style = Object.fromEntries(styles);\n var children = Array.from(childNodes, function (node) { return _a.fromDOM(node); });\n if (children[0])\n vNode.children = children;\n return new _a(vNode);\n };\n var _a;\n _a = VNode;\n VNode.propsMap = {\n className: 'class',\n htmlFor: 'for'\n };\n VNode.attrsMap = Object.fromEntries(Object.entries(_a.propsMap).map(function (item) { return item.reverse(); }));\n return VNode;\n}(VNodeMeta));\nexports.VNode = VNode;\n","var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n(function (factory) {\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\n var v = factory(require, exports);\n if (v !== undefined) module.exports = v;\n }\n else if (typeof define === \"function\" && define.amd) {\n define([\"require\", \"exports\"], factory);\n }\n})(function (require, exports) {\n \"use strict\";\n var _a, _b, _c, _d;\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.findShadowRoots = findShadowRoots;\n exports.generateHTML = generateHTML;\n exports.getHTML = getHTML;\n exports.attachDeclarativeShadowRoots = attachDeclarativeShadowRoots;\n exports.setHTMLUnsafe = setHTMLUnsafe;\n exports.parseHTMLUnsafe = parseHTMLUnsafe;\n var xmlSerializer = new XMLSerializer(), attachShadow = HTMLElement.prototype.attachShadow, shadowDOMs = new WeakMap();\n HTMLElement.prototype.attachShadow = function (options) {\n var shadowRoot = attachShadow.call(this, options);\n shadowDOMs.set(this, shadowRoot);\n return shadowRoot;\n };\n function findShadowRoots(root) {\n var walker, currentNode, shadowRoot;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: function (node) {\n return node instanceof HTMLElement\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_SKIP;\n }\n });\n currentNode = null;\n _a.label = 1;\n case 1:\n if (!(currentNode = walker.nextNode())) return [3 /*break*/, 5];\n shadowRoot = shadowDOMs.get(currentNode);\n if (!shadowRoot) return [3 /*break*/, 4];\n return [4 /*yield*/, shadowRoot];\n case 2:\n _a.sent();\n return [5 /*yield**/, __values(findShadowRoots(shadowRoot))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [3 /*break*/, 1];\n case 5: return [2 /*return*/];\n }\n });\n }\n function generateHTML(root, _a) {\n var walker, currentNode, tagName, attributes, shadowRoot, shadowRootHTML, nextSibling, parentElement;\n var _b = _a === void 0 ? {} : _a, serializableShadowRoots = _b.serializableShadowRoots, shadowRoots = _b.shadowRoots;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n shadowRoots = (shadowRoots === null || shadowRoots === void 0 ? void 0 : shadowRoots.filter(Boolean)) || [];\n if (!(!serializableShadowRoots || !shadowRoots[0])) return [3 /*break*/, 2];\n return [4 /*yield*/, root.innerHTML];\n case 1:\n _c.sent();\n return [2 /*return*/];\n case 2:\n walker = document.createTreeWalker(root, NodeFilter.SHOW_ALL, {\n acceptNode: function (node) {\n return node === root || node instanceof SVGElement\n ? NodeFilter.FILTER_SKIP\n : NodeFilter.FILTER_ACCEPT;\n }\n });\n currentNode = null;\n _c.label = 3;\n case 3:\n if (!(currentNode = walker.nextNode())) return [3 /*break*/, 19];\n if (!(currentNode instanceof CDATASection)) return [3 /*break*/, 5];\n return [4 /*yield*/, \"\")];\n case 4:\n _c.sent();\n return [3 /*break*/, 16];\n case 5:\n if (!(currentNode instanceof Text)) return [3 /*break*/, 7];\n return [4 /*yield*/, currentNode.nodeValue || \"\"];\n case 6:\n _c.sent();\n return [3 /*break*/, 16];\n case 7:\n if (!(currentNode instanceof Comment)) return [3 /*break*/, 9];\n return [4 /*yield*/, \"\")];\n case 8:\n _c.sent();\n return [3 /*break*/, 16];\n case 9:\n if (!(currentNode instanceof SVGElement)) return [3 /*break*/, 11];\n return [4 /*yield*/, xmlSerializer.serializeToString(currentNode)];\n case 10:\n _c.sent();\n return [3 /*break*/, 16];\n case 11:\n if (!(currentNode instanceof Element)) return [3 /*break*/, 16];\n tagName = currentNode.tagName.toLowerCase(), attributes = __spreadArray([], __read(currentNode.attributes), false).map(function (_a) {\n var name = _a.name, value = _a.value;\n return \"\".concat(name, \"=\").concat(JSON.parse(value));\n }), shadowRoot = shadowDOMs.get(currentNode);\n return [4 /*yield*/, \"<\".concat(__spreadArray([tagName], __read(attributes), false).join(\" \"), \">\")];\n case 12:\n _c.sent();\n if (!(shadowRoot && shadowRoots.includes(shadowRoot))) return [3 /*break*/, 14];\n shadowRootHTML = __spreadArray([], __read(generateHTML(shadowRoot, { serializableShadowRoots: serializableShadowRoots, shadowRoots: shadowRoots })), false).join(\"\");\n return [4 /*yield*/, \"\")];\n case 13:\n _c.sent();\n _c.label = 14;\n case 14:\n if (!!currentNode.childNodes[0]) return [3 /*break*/, 16];\n return [4 /*yield*/, \"\")];\n case 15:\n _c.sent();\n _c.label = 16;\n case 16:\n nextSibling = currentNode.nextSibling, parentElement = currentNode.parentElement;\n if (!(!nextSibling && parentElement && parentElement !== root)) return [3 /*break*/, 18];\n return [4 /*yield*/, \"\")];\n case 17:\n _c.sent();\n _c.label = 18;\n case 18: return [3 /*break*/, 3];\n case 19: return [2 /*return*/];\n }\n });\n }\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/getHTML}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getHTML}\n */\n function getHTML(options) {\n if (options === void 0) { options = {}; }\n return __spreadArray([], __read(generateHTML(this, options)), false).join(\"\");\n }\n function attachDeclarativeShadowRoots(root) {\n var e_1, _a;\n var templates = root.querySelectorAll(\"template[shadowrootmode]\");\n try {\n for (var templates_1 = __values(templates), templates_1_1 = templates_1.next(); !templates_1_1.done; templates_1_1 = templates_1.next()) {\n var template = templates_1_1.value;\n var parentElement = template.parentElement, content = template.content;\n var shadowRoot = parentElement.attachShadow({\n mode: template.getAttribute(\"shadowrootmode\")\n });\n shadowRoot.append(content);\n template.remove();\n attachDeclarativeShadowRoots(shadowRoot);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (templates_1_1 && !templates_1_1.done && (_a = templates_1.return)) _a.call(templates_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/setHTMLUnsafe}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/setHTMLUnsafe}\n */\n function setHTMLUnsafe(html) {\n this.innerHTML = html;\n attachDeclarativeShadowRoots(this);\n }\n var domParser = new DOMParser(), initDocument = function (_a) {\n var _b = _a === void 0 ? document : _a, documentElement = _b.documentElement;\n return attachDeclarativeShadowRoots(documentElement);\n };\n /**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Document/parseHTMLUnsafe_static}\n */\n function parseHTMLUnsafe(html) {\n var document = domParser.parseFromString(html, \"text/html\");\n initDocument(document);\n return document;\n }\n (_a = Element.prototype).getHTML || (_a.getHTML = getHTML);\n (_b = Element.prototype).setHTMLUnsafe || (_b.setHTMLUnsafe = setHTMLUnsafe);\n (_c = ShadowRoot.prototype).getHTML || (_c.getHTML = getHTML);\n (_d = ShadowRoot.prototype).setHTMLUnsafe || (_d.setHTMLUnsafe = setHTMLUnsafe);\n Document.parseHTMLUnsafe || (Document.parseHTMLUnsafe = parseHTMLUnsafe);\n new Promise(function (resolve) {\n if (document.readyState === \"complete\")\n resolve();\n else {\n document.addEventListener(\"DOMContentLoaded\", resolve);\n window.addEventListener(\"load\", resolve);\n }\n }).then(function () { return initDocument(); });\n});\n//# sourceMappingURL=index.js.map","export interface HTMLSerializationOptions {\n serializableShadowRoots?: boolean;\n shadowRoots?: ShadowRoot[];\n}\n\nconst xmlSerializer = new XMLSerializer(),\n { attachShadow } = HTMLElement.prototype,\n shadowDOMs = new WeakMap();\n\nHTMLElement.prototype.attachShadow = function (options: ShadowRootInit) {\n const shadowRoot = attachShadow.call(this, options);\n\n shadowDOMs.set(this, shadowRoot);\n\n return shadowRoot;\n};\n\nexport function* findShadowRoots(root: Node): Generator {\n const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node: Element) =>\n node instanceof HTMLElement\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_SKIP\n });\n var currentNode: HTMLElement | null = null;\n\n while ((currentNode = walker.nextNode() as HTMLElement)) {\n const shadowRoot = shadowDOMs.get(currentNode);\n\n if (shadowRoot) {\n yield shadowRoot;\n yield* findShadowRoots(shadowRoot);\n }\n }\n}\n\nexport function* generateHTML(\n root: Node,\n { serializableShadowRoots, shadowRoots }: HTMLSerializationOptions = {}\n): Generator {\n shadowRoots = shadowRoots?.filter(Boolean) || [];\n\n if (!serializableShadowRoots || !shadowRoots[0]) {\n yield (root as HTMLElement).innerHTML;\n return;\n }\n\n const walker = document.createTreeWalker(root, NodeFilter.SHOW_ALL, {\n acceptNode: (node) =>\n node === root || node instanceof SVGElement\n ? NodeFilter.FILTER_SKIP\n : NodeFilter.FILTER_ACCEPT\n });\n var currentNode: Node | null = null;\n\n while ((currentNode = walker.nextNode())) {\n if (currentNode instanceof CDATASection)\n yield ``;\n else if (currentNode instanceof Text) yield currentNode.nodeValue || \"\";\n else if (currentNode instanceof Comment)\n yield ``;\n else if (currentNode instanceof SVGElement)\n yield xmlSerializer.serializeToString(currentNode);\n else if (currentNode instanceof Element) {\n const tagName = currentNode.tagName.toLowerCase(),\n attributes = [...currentNode.attributes].map(\n ({ name, value }) => `${name}=${JSON.parse(value)}`\n ),\n shadowRoot = shadowDOMs.get(currentNode);\n\n yield `<${[tagName, ...attributes].join(\" \")}>`;\n\n if (shadowRoot && shadowRoots.includes(shadowRoot)) {\n const shadowRootHTML = [\n ...generateHTML(shadowRoot, { serializableShadowRoots, shadowRoots })\n ].join(\"\");\n\n yield ``;\n }\n if (!currentNode.childNodes[0]) yield ``;\n }\n const { nextSibling, parentElement } = currentNode;\n\n if (!nextSibling && parentElement && parentElement !== root)\n yield ``;\n }\n}\n\n/**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/getHTML}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getHTML}\n */\nexport function getHTML(\n this: Element | ShadowRoot,\n options: HTMLSerializationOptions = {}\n) {\n return [...generateHTML(this, options)].join(\"\");\n}\n\nexport function attachDeclarativeShadowRoots(root: HTMLElement | ShadowRoot) {\n const templates = root.querySelectorAll(\n \"template[shadowrootmode]\"\n );\n\n for (const template of templates) {\n const { parentElement, content } = template;\n\n const shadowRoot = parentElement!.attachShadow({\n mode: template.getAttribute(\"shadowrootmode\") as ShadowRootMode\n });\n\n shadowRoot.append(content);\n\n template.remove();\n\n attachDeclarativeShadowRoots(shadowRoot);\n }\n}\n/**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/setHTMLUnsafe}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/setHTMLUnsafe}\n */\nexport function setHTMLUnsafe(this: Element | ShadowRoot, html: string) {\n this.innerHTML = html;\n\n attachDeclarativeShadowRoots(this as HTMLElement);\n}\n\nconst domParser = new DOMParser(),\n initDocument = ({ documentElement } = document) =>\n attachDeclarativeShadowRoots(documentElement);\n/**\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Document/parseHTMLUnsafe_static}\n */\nexport function parseHTMLUnsafe(html: string) {\n const document = domParser.parseFromString(html, \"text/html\");\n\n initDocument(document);\n\n return document;\n}\n\ndeclare global {\n interface ShadowRootSerializable {\n getHTML: typeof getHTML;\n }\n interface Element extends ShadowRootSerializable {}\n interface ShadowRoot extends ShadowRootSerializable {}\n}\n\nElement.prototype.getHTML ||= getHTML;\nElement.prototype.setHTMLUnsafe ||= setHTMLUnsafe;\nShadowRoot.prototype.getHTML ||= getHTML;\nShadowRoot.prototype.setHTMLUnsafe ||= setHTMLUnsafe;\nDocument.parseHTMLUnsafe ||= parseHTMLUnsafe;\n\nnew Promise((resolve) => {\n if (document.readyState === \"complete\") resolve();\n else {\n document.addEventListener(\"DOMContentLoaded\", resolve);\n window.addEventListener(\"load\", resolve);\n }\n}).then(() => initDocument());\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DOMRenderer = void 0;\nvar tslib_1 = require(\"tslib\");\nrequire(\"scheduler-polyfill\");\nvar web_streams_polyfill_1 = require(\"web-streams-polyfill\");\nvar web_utility_1 = require(\"web-utility\");\nvar VDOM_1 = require(\"./VDOM\");\nvar DOMRenderer = /** @class */ (function () {\n function DOMRenderer() {\n var _this = this;\n this.eventPattern = /^on[A-Z]/;\n this.ariaPattern = /^aira[A-Z]/;\n this.document = globalThis.document;\n this.treeCache = new WeakMap();\n this.signalCache = new WeakMap();\n this.keyOf = function (_a, index) {\n var key = _a.key, text = _a.text, props = _a.props, selector = _a.selector;\n return (key === null || key === void 0 ? void 0 : key.toString()) || (props === null || props === void 0 ? void 0 : props.id) || (text || selector || '') + index;\n };\n this.vNodeOf = function (list, key) {\n return list.find(function (vNode, index) { return \"\".concat(_this.keyOf(vNode, index)) === String(key); });\n };\n this.propsKeyOf = function (key) {\n return key.startsWith('aria-')\n ? (0, web_utility_1.toCamelCase)(key)\n : _this.eventPattern.test(key)\n ? key.toLowerCase()\n : key;\n };\n this.attrsNameOf = function (key) { return VDOM_1.VNode.propsMap[key] || key; };\n this.removeProperty = function (node, key) {\n return _this.eventPattern.test(key)\n ? (node[key.toLowerCase()] = null)\n : node.removeAttribute(_this.ariaPattern.test(key) ? (0, web_utility_1.toHyphenCase)(key) : _this.attrsNameOf(key));\n };\n this.setProperty = function (node, key, value) {\n var isXML = (0, web_utility_1.templateOf)(node.tagName) && (0, web_utility_1.elementTypeOf)(node.tagName) === 'xml';\n if (isXML || key.includes('-'))\n node.setAttribute(_this.attrsNameOf(key), value);\n else\n try {\n var name_1 = _this.propsKeyOf(key);\n if (_this.eventPattern.test(key) && !(name_1 in node))\n _this.handleCustomEvent(node, name_1.slice(2));\n node[name_1] = value;\n }\n catch (_a) {\n node.setAttribute(_this.attrsNameOf(key), value);\n }\n };\n }\n DOMRenderer.prototype.updateProps = function (node, oldProps, newProps, onDelete, onAdd) {\n var e_1, _a, e_2, _b;\n if (oldProps === void 0) { oldProps = {}; }\n if (newProps === void 0) { newProps = {}; }\n var group = (0, web_utility_1.diffKeys)(Object.keys(oldProps), Object.keys(newProps)).group;\n try {\n for (var _c = tslib_1.__values(group[web_utility_1.DiffStatus.Old] || []), _d = _c.next(); !_d.done; _d = _c.next()) {\n var _e = tslib_1.__read(_d.value, 1), key = _e[0];\n onDelete === null || onDelete === void 0 ? void 0 : onDelete(node, key);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n }\n finally { if (e_1) throw e_1.error; }\n }\n try {\n for (var _f = tslib_1.__values(tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read((group[web_utility_1.DiffStatus.Same] || [])), false), tslib_1.__read((group[web_utility_1.DiffStatus.New] || [])), false)), _g = _f.next(); !_g.done; _g = _f.next()) {\n var _h = tslib_1.__read(_g.value, 1), key = _h[0];\n if (oldProps[key] !== newProps[key])\n if (onAdd instanceof Function)\n onAdd(node, key, newProps[key]);\n else\n Reflect.set(node, key, newProps[key]);\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_g && !_g.done && (_b = _f.return)) _b.call(_f);\n }\n finally { if (e_2) throw e_2.error; }\n }\n };\n DOMRenderer.prototype.deleteNode = function (_a) {\n var ref = _a.ref, node = _a.node, children = _a.children;\n if (node instanceof DocumentFragment)\n children === null || children === void 0 ? void 0 : children.forEach(this.deleteNode);\n else if (node) {\n node.remove();\n ref === null || ref === void 0 ? void 0 : ref();\n }\n };\n DOMRenderer.prototype.commitChild = function (root, node, index) {\n if (index === void 0) { index = 0; }\n var targetNode = root.childNodes[index];\n if (targetNode === node)\n return;\n if (!targetNode)\n root.append(node);\n else\n targetNode.before(node);\n };\n DOMRenderer.prototype.diffVChildren = function (oldVNode, newVNode) {\n var _a, map, group, deletingGroup, _b, _c, _d, index, newVChild, key, oldVChild, e_3_1, _e, _f, _g, _i, selector, _h, _j, oldVNode_1, e_4_1;\n var e_3, _k, e_4, _l;\n var _this = this;\n var _m;\n return tslib_1.__generator(this, function (_o) {\n switch (_o.label) {\n case 0:\n newVNode.children = newVNode.children.map(function (vNode) { return new VDOM_1.VNode(vNode); });\n _a = (0, web_utility_1.diffKeys)(oldVNode.children.map(this.keyOf), newVNode.children.map(this.keyOf)), map = _a.map, group = _a.group;\n deletingGroup = group[web_utility_1.DiffStatus.Old] &&\n (0, web_utility_1.groupBy)(group[web_utility_1.DiffStatus.Old].map(function (_a) {\n var _b = tslib_1.__read(_a, 1), key = _b[0];\n return _this.vNodeOf(oldVNode.children, key);\n }), function (_a) {\n var selector = _a.selector;\n return selector + '';\n });\n _o.label = 1;\n case 1:\n _o.trys.push([1, 7, 8, 9]);\n _b = tslib_1.__values(newVNode.children.entries()), _c = _b.next();\n _o.label = 2;\n case 2:\n if (!!_c.done) return [3 /*break*/, 6];\n _d = tslib_1.__read(_c.value, 2), index = _d[0], newVChild = _d[1];\n key = this.keyOf(newVChild, index);\n oldVChild = map[key] === web_utility_1.DiffStatus.Same\n ? this.vNodeOf(oldVNode.children, key)\n : (_m = deletingGroup === null || deletingGroup === void 0 ? void 0 : deletingGroup[newVChild.selector]) === null || _m === void 0 ? void 0 : _m.shift();\n return [4 /*yield*/, { index: index, oldVNode: oldVChild, newVNode: newVChild }];\n case 3:\n _o.sent();\n if (!((oldVChild === null || oldVChild === void 0 ? void 0 : oldVChild.children[0]) || newVChild.children[0])) return [3 /*break*/, 5];\n oldVChild || (oldVChild = new VDOM_1.VNode(tslib_1.__assign(tslib_1.__assign({}, newVChild), { children: [] })));\n return [5 /*yield**/, tslib_1.__values(this.diffVChildren(oldVChild, newVChild))];\n case 4:\n _o.sent();\n _o.label = 5;\n case 5:\n _c = _b.next();\n return [3 /*break*/, 2];\n case 6: return [3 /*break*/, 9];\n case 7:\n e_3_1 = _o.sent();\n e_3 = { error: e_3_1 };\n return [3 /*break*/, 9];\n case 8:\n try {\n if (_c && !_c.done && (_k = _b.return)) _k.call(_b);\n }\n finally { if (e_3) throw e_3.error; }\n return [7 /*endfinally*/];\n case 9:\n _e = deletingGroup;\n _f = [];\n for (_g in _e)\n _f.push(_g);\n _i = 0;\n _o.label = 10;\n case 10:\n if (!(_i < _f.length)) return [3 /*break*/, 19];\n _g = _f[_i];\n if (!(_g in _e)) return [3 /*break*/, 18];\n selector = _g;\n _o.label = 11;\n case 11:\n _o.trys.push([11, 16, 17, 18]);\n _h = (e_4 = void 0, tslib_1.__values(deletingGroup[selector])), _j = _h.next();\n _o.label = 12;\n case 12:\n if (!!_j.done) return [3 /*break*/, 15];\n oldVNode_1 = _j.value;\n return [4 /*yield*/, { oldVNode: oldVNode_1 }];\n case 13:\n _o.sent();\n _o.label = 14;\n case 14:\n _j = _h.next();\n return [3 /*break*/, 12];\n case 15: return [3 /*break*/, 18];\n case 16:\n e_4_1 = _o.sent();\n e_4 = { error: e_4_1 };\n return [3 /*break*/, 18];\n case 17:\n try {\n if (_j && !_j.done && (_l = _h.return)) _l.call(_h);\n }\n finally { if (e_4) throw e_4.error; }\n return [7 /*endfinally*/];\n case 18:\n _i++;\n return [3 /*break*/, 10];\n case 19: return [2 /*return*/];\n }\n });\n };\n DOMRenderer.prototype.handleCustomEvent = function (node, event) {\n var handler;\n Object.defineProperty(node, \"on\".concat(event), {\n set: function (value) {\n if (handler)\n node.removeEventListener(event, handler);\n node.addEventListener(event, (handler = value));\n },\n get: function () { return handler; }\n });\n };\n DOMRenderer.prototype.patchNode = function (oldVNode, newVNode) {\n this.updateProps(oldVNode.node, oldVNode.props, newVNode.props, this.removeProperty, this.setProperty);\n this.updateProps(oldVNode.node.style, oldVNode.style, newVNode.style, function (style, key) { return style.removeProperty((0, web_utility_1.toHyphenCase)(key)); }, function (style, key, value) { return style.setProperty((0, web_utility_1.toHyphenCase)(key), value); });\n newVNode.node || (newVNode.node = oldVNode.node);\n return newVNode;\n };\n DOMRenderer.prototype.generateDOM = function (oldVRoot, newVRoot) {\n var _a, _b, _c, index, oldVNode, newVNode, inserting, tagName, node, parent_1, e_5_1;\n var e_5, _d;\n var _e;\n return tslib_1.__generator(this, function (_f) {\n switch (_f.label) {\n case 0:\n if (VDOM_1.VNode.isFragment(newVRoot))\n newVRoot = new VDOM_1.VNode(tslib_1.__assign(tslib_1.__assign({}, oldVRoot), { children: newVRoot.children }));\n return [4 /*yield*/, this.patchNode(oldVRoot, newVRoot)];\n case 1:\n _f.sent();\n _f.label = 2;\n case 2:\n _f.trys.push([2, 7, 8, 9]);\n _a = tslib_1.__values(this.diffVChildren(oldVRoot, newVRoot)), _b = _a.next();\n _f.label = 3;\n case 3:\n if (!!_b.done) return [3 /*break*/, 6];\n _c = _b.value, index = _c.index, oldVNode = _c.oldVNode, newVNode = _c.newVNode;\n if (!newVNode) {\n this.deleteNode(oldVNode);\n return [3 /*break*/, 5];\n }\n inserting = !oldVNode;\n if (oldVNode)\n newVNode.node = oldVNode.node;\n else {\n newVNode.createDOM(this.document);\n tagName = newVNode.tagName, node = newVNode.node, parent_1 = newVNode.parent;\n oldVNode = new VDOM_1.VNode({ tagName: tagName, node: node, parent: parent_1 });\n }\n if (newVNode.text)\n oldVNode.node.nodeValue = newVNode.text;\n else if (!VDOM_1.VNode.isFragment(newVNode))\n this.patchNode(oldVNode, newVNode);\n if (oldVNode.parent) {\n this.commitChild(oldVNode.parent.node, newVNode.node, index);\n if (inserting)\n (_e = newVNode.ref) === null || _e === void 0 ? void 0 : _e.call(newVNode, newVNode.node);\n }\n return [4 /*yield*/, newVNode];\n case 4:\n _f.sent();\n _f.label = 5;\n case 5:\n _b = _a.next();\n return [3 /*break*/, 3];\n case 6: return [3 /*break*/, 9];\n case 7:\n e_5_1 = _f.sent();\n e_5 = { error: e_5_1 };\n return [3 /*break*/, 9];\n case 8:\n try {\n if (_b && !_b.done && (_d = _a.return)) _d.call(_a);\n }\n finally { if (e_5) throw e_5.error; }\n return [7 /*endfinally*/];\n case 9: return [2 /*return*/];\n }\n });\n };\n DOMRenderer.prototype.patch = function (oldVRoot, newVRoot) {\n var e_6, _a;\n var count = 0;\n try {\n for (var _b = tslib_1.__values(this.generateDOM(oldVRoot, newVRoot)), _c = _b.next(); !_c.done; _c = _b.next()) {\n var newVNode = _c.value;\n if (++count === 1)\n newVRoot = newVNode;\n }\n }\n catch (e_6_1) { e_6 = { error: e_6_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_6) throw e_6.error; }\n }\n return newVRoot;\n };\n DOMRenderer.prototype.patchAsync = function (oldVRoot, newVRoot) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var oldController, controller, count, _a, _b, newVNode, e_7_1;\n var e_7, _c;\n return tslib_1.__generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n oldController = this.signalCache.get(oldVRoot.node);\n if (oldController) {\n oldController.abort();\n oldVRoot = VDOM_1.VNode.fromDOM(oldVRoot.node);\n }\n controller = new AbortController();\n this.signalCache.set(oldVRoot.node, controller);\n count = 0;\n _d.label = 1;\n case 1:\n _d.trys.push([1, 6, 7, 8]);\n _a = tslib_1.__values(this.generateDOM(oldVRoot, newVRoot)), _b = _a.next();\n _d.label = 2;\n case 2:\n if (!!_b.done) return [3 /*break*/, 5];\n newVNode = _b.value;\n if (++count === 1)\n newVRoot = newVNode;\n return [4 /*yield*/, scheduler.yield()];\n case 3:\n _d.sent();\n if (controller.signal.aborted) {\n this.signalCache.delete(oldVRoot.node);\n controller.signal.throwIfAborted();\n }\n _d.label = 4;\n case 4:\n _b = _a.next();\n return [3 /*break*/, 2];\n case 5: return [3 /*break*/, 8];\n case 6:\n e_7_1 = _d.sent();\n e_7 = { error: e_7_1 };\n return [3 /*break*/, 8];\n case 7:\n try {\n if (_b && !_b.done && (_c = _a.return)) _c.call(_a);\n }\n finally { if (e_7) throw e_7.error; }\n return [7 /*endfinally*/];\n case 8:\n this.signalCache.delete(oldVRoot.node);\n return [2 /*return*/, newVRoot];\n }\n });\n });\n };\n DOMRenderer.prototype.render = function (vNode, node, mode) {\n var _this = this;\n var _a;\n if (node === void 0) { node = (_a = globalThis.document) === null || _a === void 0 ? void 0 : _a.body; }\n if (mode === void 0) { mode = 'sync'; }\n this.document = node.ownerDocument;\n var root = this.treeCache.get(node) || VDOM_1.VNode.fromDOM(node);\n var done = function (root) { return _this.treeCache.set(node, root) && root; };\n return mode === 'sync'\n ? done(this.patch(root, new VDOM_1.VNode(tslib_1.__assign(tslib_1.__assign({}, root), { children: [vNode] }))))\n : this.patchAsync(root, new VDOM_1.VNode(tslib_1.__assign(tslib_1.__assign({}, root), { children: [vNode] }))).then(done);\n };\n DOMRenderer.prototype.renderToStaticMarkup = function (tree) {\n return tslib_1.__spreadArray([], tslib_1.__read(tree.generateXML()), false).join('');\n };\n DOMRenderer.prototype.renderToReadableStream = function (tree) {\n return web_streams_polyfill_1.ReadableStream.from(tree.generateXML());\n };\n return DOMRenderer;\n}());\nexports.DOMRenderer = DOMRenderer;\n","!function(){var t=[\"user-blocking\",\"user-visible\",\"background\"];class i{constructor(){this.t=new MessageChannel,this.i=this.t.port2,this.l={},this.o=1,this.t.port1.onmessage=t=>this.h(t)}u(t){var i=this.o++;return this.l[i]=t,this.i.postMessage(i),i}p(t){delete this.l[t]}h(t){var i=t.data;if(i in this.l){var r=this.l[i];delete this.l[i],r()}}}function r(){return r.v||(r.v=new i),r.v}class s{constructor(t,i,r){void 0===r&&(r=0),this.k=t,this.T=null,this.C=null,this.m=!1,this._(i,r)}isIdleCallback(){return 0===this.T}I(){return 2===this.T}cancel(){if(!this.m)switch(this.m=!0,this.T){case 0:cancelIdleCallback(this.C);break;case 1:clearTimeout(this.C);break;case 2:r().p(this.C);break;default:throw new TypeError(\"Unknown CallbackType\")}}_(i,s){if(s&&s>0)return this.T=1,void(this.C=setTimeout(()=>{this.P()},s));if(!t.includes(i))throw new TypeError(\"Invalid task priority : \"+i);return\"background\"===i&&\"function\"==typeof requestIdleCallback?(this.T=0,void(this.C=requestIdleCallback(()=>{this.P()}))):\"function\"==typeof MessageChannel?(this.T=2,void(this.C=r().u(()=>{this.P()}))):(this.T=1,void(this.C=setTimeout(()=>{this.P()})))}P(){this.m||this.k()}}var e=0;class n{constructor(){this.j=null,this.M=null}isEmpty(){return null==this.j}push(t){if(\"object\"!=typeof t)throw new TypeError(\"Task must be an Object\");t.A=e++,this.isEmpty()?(t.N=null,this.j=t):(t.N=this.M,this.M.O=t),t.O=null,this.M=t}takeNextTask(){if(this.isEmpty())return null;var t=this.j;return this.q(t),t}merge(t,i){if(\"function\"!=typeof i)throw new TypeError(\"Must provide a selector function.\");if(null==t)throw new Error(\"sourceQueue cannot be null\");for(var r=this.j,s=null,e=t.j;e;){var n=e;if(e=e.O,i(n)){for(t.q(n);r&&r.A{s.onprioritychange&&s.onprioritychange(t)})}setPriority(i){if(!t.includes(i))throw new TypeError(\"Invalid task priority: \"+i);if(this.R)throw new DOMException(\"\",\"NotAllowedError\");if(this.signal.priority!==i){this.R=!0;var r=this.H;this.H=i;var s=new l(\"prioritychange\",{previousPriority:r});this.signal.dispatchEvent(s),this.R=!1}}}void 0===self.scheduler?(self.scheduler=new class{constructor(){this.S={},t.forEach(t=>{this.S[t]=[new n,new n]}),this.U=null,this.W=new WeakMap}yield(){return this.B(()=>{},{priority:\"user-visible\"},!0)}postTask(t,i){return this.B(t,i,!1)}B(i,r,s){if(void 0!==(r=Object.assign({},r)).signal){if(null===r.signal||!(\"aborted\"in r.signal)||\"function\"!=typeof r.signal.addEventListener)return Promise.reject(new TypeError(\"'signal' is not a valid 'AbortSignal'\"));if(r.signal&&r.signal.priority&&!t.includes(r.signal.priority))return Promise.reject(new TypeError(\"Invalid task priority: '\"+r.signal.priority+\"'\"))}if(void 0!==r.priority&&(null===r.priority||!t.includes(r.priority)))return Promise.reject(new TypeError(\"Invalid task priority: '\"+r.priority+\"'\"));if(void 0===r.delay&&(r.delay=0),r.delay=Number(r.delay),r.delay<0)return Promise.reject(new TypeError(\"'delay' must be a positive number.\"));var e={callback:i,options:r,resolve:null,reject:null,hostCallback:null,abortCallback:null,onTaskCompleted:function(){this.options.signal&&this.abortCallback&&(this.options.signal.removeEventListener(\"abort\",this.abortCallback),this.abortCallback=null)},onTaskAborted:function(){this.hostCallback&&(this.hostCallback.cancel(),this.hostCallback=null),this.options.signal.removeEventListener(\"abort\",this.abortCallback),this.abortCallback=null,this.reject(this.options.signal.reason)},isAborted:function(){return this.options.signal&&this.options.signal.aborted},isContinuation:s},n=new Promise((t,i)=>{e.resolve=t,e.reject=i});return this._(e),n}_(t){var i=t.options.signal;if(i){if(i.aborted)return void t.reject(i.reason);t.abortCallback=()=>{t.onTaskAborted()},i.addEventListener(\"abort\",t.abortCallback)}t.options.delay>0?t.hostCallback=new s(()=>{t.hostCallback=null,this.F(t)},null,t.options.delay):(this.G(t),this.J())}F(t){this.G(t),this.U&&(this.U.cancel(),this.U=null),this.K()}L(t){var i=this.W.get(t);if(void 0===i)throw new Error(\"Attempting to change priority on an unregistered signal\");if(i!==t.priority){for(var r=0;r<2;r++)this.S[t.priority][r].merge(this.S[i][r],i=>i.options.signal===t);this.W.set(t,t.priority)}}K(){this.U=null,this.V(),this.J()}J(){var{priority:t}=this.X();null!=t&&(\"background\"!==t&&this.U&&this.U.isIdleCallback()&&(this.U.cancel(),this.U=null),this.U||(this.U=new s(()=>{this.K()},t,0)))}G(i){var r;if(!t.includes(r=i.options.priority?i.options.priority:i.options.signal&&i.options.signal.priority?i.options.signal.priority:\"user-visible\"))throw new TypeError(\"Invalid task priority: \"+r);if(i.options.signal&&i.options.signal.priority){var s=i.options.signal;this.W.has(s)||(s.addEventListener(\"prioritychange\",()=>{this.L(s)}),this.W.set(s,s.priority))}this.S[r][i.isContinuation?0:1].push(i)}V(){var t=null;do{var{priority:i,type:r}=this.X();if(null==i)return;t=this.S[i][r].takeNextTask()}while(t.isAborted());try{var s=t.callback();t.resolve(s)}catch(i){t.reject(i)}finally{t.onTaskCompleted()}}X(){for(var i=0;i{},{priority:\"user-blocking\"})})}();\n//# sourceMappingURL=scheduler-polyfill.js.map\n","/**\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * The list of scheduler priorities in order from highest to lowest.\n * @const {!Array}\n */\nconst SCHEDULER_PRIORITIES = ['user-blocking', 'user-visible', 'background'];\n\nexport {SCHEDULER_PRIORITIES};\n","/**\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {SCHEDULER_PRIORITIES} from './scheduler-priorities.js';\n\n/**\n * This class manages scheduling and running callbacks using postMessage.\n * @private\n */\nclass PostMessageCallbackMananger {\n /**\n * Construct a PostMessageCallbackMananger, which handles scheduling\n * and running callbacks via a MessageChannel.\n */\n constructor() {\n /**\n * @private\n * @const {!MessageChannel}\n */\n this.channel_ = new MessageChannel();\n\n /**\n * @private\n * @const {MessagePort}\n */\n this.sendPort_ = this.channel_.port2;\n\n /**\n * @private\n * @const {!Object}\n */\n this.messages_ = {};\n\n /**\n * @private\n * @type {number}\n */\n this.nextMessageHandle_ = 1;\n\n this.channel_.port1.onmessage = (e) => this.onMessageReceived_(e);\n }\n\n /**\n * @param {function(): undefined} callback\n * @return {number} A handle that can used for cancellation.\n */\n queueCallback_(callback) {\n // We support multiple pending postMessage callbacks by associating a handle\n // with each message, which is used to look up the callback when the message\n // is received.\n const handle = this.nextMessageHandle_++;\n this.messages_[handle] = callback;\n this.sendPort_.postMessage(handle);\n return handle;\n }\n\n /**\n * @param {number} handle The handle returned when the callback was queued.\n */\n cancelCallback_(handle) {\n delete this.messages_[handle];\n }\n\n /**\n * The onmessage handler, invoked when the postMessage runs.\n * @private\n * @param {!Event} e\n */\n onMessageReceived_(e) {\n const handle = e.data;\n // The handle will have been removed if the callback was canceled.\n if (!(handle in this.messages_)) return;\n const callback = this.messages_[handle];\n delete this.messages_[handle];\n callback();\n }\n}\n\n/**\n * Get the lazily initialized instance of PostMessageCallbackMananger, which\n * is initialized that way to avoid errors if MessageChannel is not available.\n *\n * @return {!PostMessageCallbackMananger}\n */\nfunction getPostMessageCallbackManager() {\n if (!getPostMessageCallbackManager.instance_) {\n getPostMessageCallbackManager.instance_ = new PostMessageCallbackMananger();\n }\n return getPostMessageCallbackManager.instance_;\n}\n\n/** @enum {number} */\nconst CallbackType = {\n REQUEST_IDLE_CALLBACK: 0,\n SET_TIMEOUT: 1,\n POST_MESSAGE: 2,\n};\n\n/**\n * HostCallback is used for tracking host callbacks, both for the schedueler\n * entrypoint --- which can be a postMessage, setTimeout, or\n * requestIdleCallback --- and for delayed tasks.\n */\nclass HostCallback {\n /**\n * @param {function(): undefined} callback\n * @param {?string} priority The scheduler priority of the associated host\n * callback. This is used to determine which type of underlying API to\n * use. This can be null if delay is set.\n * @param {number} delay An optional delay. Tasks with a delay will\n * ignore the `priority` parameter and use setTimeout.\n */\n constructor(callback, priority, delay = 0) {\n /** @const {function(): undefined} */\n this.callback_ = callback;\n\n /**\n * @private\n * @type {CallbackType}\n */\n this.callbackType_ = null;\n\n /**\n * Handle for cancellation, which is set when the callback is scheduled.\n * @private\n * @type {?number}\n */\n this.handle_ = null;\n\n /**\n * @private\n * @type {boolean}\n */\n this.canceled_ = false;\n\n this.schedule_(priority, delay);\n }\n\n /**\n * Returns true iff this task was scheduled with requestIdleCallback.\n * @return {boolean}\n */\n isIdleCallback() {\n return this.callbackType_ === CallbackType.REQUEST_IDLE_CALLBACK;\n }\n\n /**\n * Returns true iff this task was scheduled with MessageChannel.\n * @return {boolean}\n */\n isMessageChannelCallback_() {\n return this.callbackType_ === CallbackType.POST_MESSAGE;\n }\n\n /**\n * Cancel the host callback, and if possible, cancel the underlying API call.\n */\n cancel() {\n if (this.canceled_) return;\n this.canceled_ = true;\n\n switch (this.callbackType_) {\n case CallbackType.REQUEST_IDLE_CALLBACK:\n cancelIdleCallback(this.handle_);\n break;\n case CallbackType.SET_TIMEOUT:\n clearTimeout(this.handle_);\n break;\n case CallbackType.POST_MESSAGE:\n getPostMessageCallbackManager().cancelCallback_(this.handle_);\n break;\n default:\n throw new TypeError('Unknown CallbackType');\n }\n }\n\n /**\n * @private\n * @param {?string} priority The scheduler priority of the associated host\n * callback. This is used to determine which type of underlying API to\n * use. This can be null if delay is set.\n * @param {number} delay An optional delay. Tasks with a delay will\n * ignore the `priority` parameter and use setTimeout.\n */\n schedule_(priority, delay) {\n // For the delay case, our only option is setTimeout. This gets queued at\n // the appropriate priority when the callback runs. If the delay <= 0 and\n // MessageChannel is available, we use postMessage below.\n if (delay && delay > 0) {\n this.callbackType_ = CallbackType.SET_TIMEOUT;\n this.handle_ = setTimeout(() => {\n this.runCallback_();\n }, delay);\n return;\n }\n\n // This shouldn't happen since Scheduler checks the priority before creating\n // a HostCallback, but fail loudly in case it does.\n if (!SCHEDULER_PRIORITIES.includes(priority)) {\n throw new TypeError(`Invalid task priority : ${priority}`);\n }\n\n if (priority === 'background' &&\n typeof requestIdleCallback === 'function') {\n this.callbackType_ = CallbackType.REQUEST_IDLE_CALLBACK;\n this.handle_ = requestIdleCallback(() => {\n this.runCallback_();\n });\n return;\n }\n\n // Use MessageChannel if avaliable.\n if (typeof MessageChannel === 'function') {\n this.callbackType_ = CallbackType.POST_MESSAGE;\n // TODO: Consider using setTimeout in the background so tasks are\n // throttled. One caveat here is that requestIdleCallback may not be\n // throttled.\n this.handle_ = getPostMessageCallbackManager().queueCallback_(() => {\n this.runCallback_();\n });\n return;\n }\n\n // Some JS environments may not support MessageChannel.\n // This makes setTimeout the only option.\n this.callbackType_ = CallbackType.SET_TIMEOUT;\n this.handle_ = setTimeout(() => {\n this.runCallback_();\n });\n }\n\n /** Run the associated callback. */\n runCallback_() {\n if (this.canceled_) return;\n this.callback_();\n }\n}\n\nexport {HostCallback};\n","/**\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * This represents the overall task queuing order and is used for moving tasks\n * between task queues for priority changes.\n * @private\n * @type {number}\n */\nlet nextSequence = 0;\n\n/**\n * An implementation of a task queue that augments the data being stored with\n * pointers to the previous and next entries. Storing the pointers on the data\n * reduces the number of objects created, cutting down on object churn.\n *\n * This task queue is implemented as a doubly-linked list, optimizing for\n * queueing and dequeing, as well as performant merges for priority change.\n *\n * This adds the following properties to tasks it owns:\n * - tq_sequence_: The overall queueing order.\n * - tq_prev_: A pointer to the previous task.\n * - tq_next_: A pointer to the next task.\n */\nclass IntrusiveTaskQueue {\n /**\n * Constructs an empty IntrusiveTaskQueue.\n */\n constructor() {\n /**\n * @private\n * @const {!Object}\n */\n this.head_ = null;\n\n /**\n * @private\n * @const {!Object}\n */\n this.tail_ = null;\n }\n\n /** @return {boolean} */\n isEmpty() {\n return this.head_ == null;\n }\n\n /** @param {!Object} task */\n push(task) {\n if (typeof task !== 'object') throw new TypeError('Task must be an Object');\n\n task.tq_sequence_ = nextSequence++;\n\n if (this.isEmpty()) {\n task.tq_prev_ = null;\n this.head_ = task;\n } else {\n task.tq_prev_ = this.tail_;\n this.tail_.tq_next_ = task;\n }\n\n task.tq_next_ = null;\n this.tail_ = task;\n }\n\n /** @return {?Object} The oldest task or null of the queue is empty. */\n takeNextTask() {\n if (this.isEmpty()) return null;\n const task = this.head_;\n this.remove_(task);\n return task;\n }\n\n /**\n * Merges all tasks from `sourceQueue` into this task queue for which\n * `selector` returns true . Tasks are insterted into this queue based on\n * their sequence number.\n *\n * @param {!IntrusiveTaskQueue} sourceQueue\n * @param {function(!Object): boolean} selector\n */\n merge(sourceQueue, selector) {\n if (typeof selector !== 'function') {\n throw new TypeError('Must provide a selector function.');\n }\n if (sourceQueue == null) throw new Error('sourceQueue cannot be null');\n\n let currentTask = this.head_;\n let previousTask = null;\n let iterator = sourceQueue.head_;\n\n while (iterator) {\n // Advance the iterator now before we mutate it and ivalidate the\n // pointers.\n const taskToMove = iterator;\n iterator = iterator.tq_next_;\n\n if (selector(taskToMove)) {\n sourceQueue.remove_(taskToMove);\n // Fast-forward until we're just past the insertion point. The new task\n // is inserted between previousTask and currentTask.\n while (currentTask &&\n (currentTask.tq_sequence_ < taskToMove.tq_sequence_)) {\n previousTask = currentTask;\n currentTask = currentTask.tq_next_;\n }\n this.insert_(taskToMove, previousTask);\n previousTask = taskToMove;\n }\n }\n }\n\n /**\n * Insert `task` into this queue directly after `parentTask`.\n * @private\n * @param {!Object} task The task to insert.\n * @param {?Object} parentTask The task preceding `task` in this queue, or\n * null if `task` should be inserted at the beginning.\n */\n insert_(task, parentTask) {\n // We can simply push the new task if it belongs at the end.\n if (parentTask == this.tail_) {\n this.push(task);\n return;\n }\n\n // `nextTask` is the next task in the list, which should not be null since\n // `parentTask` is not the tail (which is the only task with a null next\n // pointer).\n const nextTask = parentTask ? parentTask.tq_next_ : this.head_;\n\n task.tq_next_ = nextTask;\n nextTask.tq_prev_ = task;\n\n task.tq_prev_ = parentTask;\n\n if (parentTask != null) {\n parentTask.tq_next_ = task;\n } else {\n this.head_ = task;\n }\n }\n\n /**\n * @private\n * @param {!Object} task\n */\n remove_(task) {\n if (task == null) throw new Error('Expected task to be non-null');\n if (task === this.head_) this.head_ = task.tq_next_;\n if (task === this.tail_) this.tail_ = this.tail_.tq_prev_;\n if (task.tq_next_) task.tq_next_.tq_prev_ = task.tq_prev_;\n if (task.tq_prev_) task.tq_prev_.tq_next_ = task.tq_next_;\n }\n}\n\n/**\n * Returns an array containing the elements of this task queue in order. This\n * is meant to be used for debugging and might be removed.\n *\n * @param {IntrusiveTaskQueue} queue\n * @return {!Array}\n */\nfunction toArray(queue) {\n let node = queue.head_;\n const a = [];\n while (node !== null) {\n a.push(node);\n node = node.tq_next_;\n }\n return a;\n}\n\nexport {IntrusiveTaskQueue, toArray};\n","/**\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {SCHEDULER_PRIORITIES} from './scheduler-priorities.js';\n\n/**\n * Makes the controller's signal a TaskSignal by adding a read-only priority\n * property.\n * @private\n * @param {TaskController} controller\n */\nfunction makeTaskSignal(controller) {\n const signal = controller.signal;\n Object.defineProperties(signal, {\n priority: {\n get: function() {\n return controller.priority_;\n },\n enumerable: true,\n },\n onprioritychange: {\n value: null,\n writable: true,\n enumerable: true,\n },\n });\n signal.addEventListener('prioritychange', (e) => {\n if (signal.onprioritychange) {\n signal.onprioritychange(e);\n }\n });\n}\n\n/**\n * Event type used for priority change events:\n * https://wicg.github.io/scheduling-apis/#sec-task-priority-change-event.\n */\nclass TaskPriorityChangeEvent extends Event {\n /**\n * Constructs a TaskPriorityChangeEvent. Events of this type are typically\n * named 'prioritychange', which is the name used for events triggered by\n * TaskController.setPriority().\n *\n * @param {?string} typeArg\n * @param {{previousPriority: string}} init\n */\n constructor(typeArg, init) {\n if (!init || !SCHEDULER_PRIORITIES.includes(init.previousPriority)) {\n throw new TypeError(`Invalid task priority: '${init.previousPriority}'`);\n }\n super(typeArg);\n this.previousPriority = init.previousPriority;\n }\n}\n\n/**\n * TaskController enables changing the priority of tasks associated with its\n * TaskSignal.\n *\n * Unfortunately, we can't implement TaskSignal by extending AbortSignal because\n * we can't call its constructor. We can't implement a separate TaskSignal class\n * because we need the inheritance so that TaskSignals can be passed to other\n * APIs. We therefore modify the TaskController's underlying AbortSignal, adding\n * the priority property.\n */\nclass TaskController extends AbortController {\n /**\n * @param {{priority: string}} init\n */\n constructor(init = {}) {\n super();\n\n if (init == null) init = {};\n if (typeof init !== 'object') {\n throw new TypeError(`'init' is not an object`);\n }\n\n const priority =\n init.priority === undefined ? 'user-visible' : init.priority;\n if (!SCHEDULER_PRIORITIES.includes(priority)) {\n throw new TypeError(`Invalid task priority: '${priority}'`);\n }\n\n /**\n * @private\n * @type {string}\n */\n this.priority_ = priority;\n\n /**\n * @private\n * @type {boolean}\n */\n this.isPriorityChanging_ = false;\n\n makeTaskSignal(this);\n }\n\n /**\n * Change the priority of all tasks associated with this controller's signal.\n * @param {string} priority\n */\n setPriority(priority) {\n if (!SCHEDULER_PRIORITIES.includes(priority)) {\n throw new TypeError('Invalid task priority: ' + priority);\n }\n if (this.isPriorityChanging_) throw new DOMException('', 'NotAllowedError');\n if (this.signal.priority === priority) return;\n\n this.isPriorityChanging_ = true;\n\n const previousPriority = this.priority_;\n this.priority_ = priority;\n\n const e = new TaskPriorityChangeEvent('prioritychange', {previousPriority});\n this.signal.dispatchEvent(e);\n\n this.isPriorityChanging_ = false;\n }\n}\n\nexport {TaskController, TaskPriorityChangeEvent};\n","/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Scheduler} from './scheduler.js';\nimport {TaskController, TaskPriorityChangeEvent} from './task-controller.js';\nimport {schedulerYield} from './yield.js';\n\nif (typeof self.scheduler === 'undefined') {\n self.scheduler = new Scheduler();\n self.TaskController = TaskController;\n self.TaskPriorityChangeEvent = TaskPriorityChangeEvent;\n} else if (!self.scheduler.yield) {\n self.scheduler.yield = schedulerYield;\n}\n","/**\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HostCallback} from './host-callback.js';\nimport {IntrusiveTaskQueue as TaskQueue} from './intrusive-task-queue.js';\nimport {SCHEDULER_PRIORITIES} from './scheduler-priorities.js';\n\n/**\n * Polyfill of the scheduler API: https://wicg.github.io/scheduling-apis/.\n */\nclass Scheduler {\n /**\n * Constructs a Scheduler object. There should only be one Scheduler per page\n * since tasks are only run in priority order within a particular scheduler.\n */\n constructor() {\n /**\n * @const {Object}\n *\n * Continuation and task queue for each priority, in that order.\n */\n this.queues_ = {};\n SCHEDULER_PRIORITIES.forEach((priority) => {\n this.queues_[priority] = [new TaskQueue(), new TaskQueue()];\n });\n\n /*\n * We only schedule a single host callback, which can be a setTimeout,\n * requestIdleCallback, or postMessage, which will run the oldest, highest\n * priority task.\n *\n * TODO(shaseley): consider an option for supporting multiple outstanding\n * callbacks, which more closely matches the current Chromium\n * implementation.\n *\n * @private\n * @type {?HostCallback}\n */\n this.pendingHostCallback_ = null;\n\n /**\n * This keeps track of signals we know about for priority changes. The\n * entries are (key = signal, value = current priority). When we encounter\n * a new TaskSignal (an AbortSignal with a priority property), we listen for\n * priority changes so we can move tasks between queues accordingly.\n * @const {!WeakMap}\n */\n this.signals_ = new WeakMap();\n }\n\n /**\n * Returns a promise that is resolved in a new task.\n *\n * @return {!Promise<*>}\n */\n yield() {\n // Inheritance is not supported. Use default options instead.\n return this.postTaskOrContinuation_(\n () => {}, {priority: 'user-visible'}, true);\n }\n\n /**\n * Schedules `callback` to be run asynchronously, returning a promise that is\n * resolved with the callback's result when it finishes running. The resulting\n * promise is rejected if the callback throws an exception, or if the\n * associated signal is aborted.\n *\n * @param {function(): *} callback\n * @param {{signal: AbortSignal, priorty: string, delay: number}} options\n * @return {!Promise<*>}\n */\n postTask(callback, options) {\n return this.postTaskOrContinuation_(callback, options, false);\n }\n\n /**\n * Common scheduling logic for postTask and yield.\n *\n * @param {function(): *} callback\n * @param {{signal: AbortSignal, priorty: string, delay: number}} options\n * @param {boolean} isContinuation\n * @return {!Promise<*>}\n */\n postTaskOrContinuation_(callback, options, isContinuation) {\n // Make a copy since we modify some of the options.\n options = Object.assign({}, options);\n\n if (options.signal !== undefined) {\n // Non-numeric options cannot be null for this API. Also make sure we can\n // use this object as an AbortSignal.\n if (options.signal === null || !('aborted' in options.signal) ||\n typeof options.signal.addEventListener !== 'function') {\n return Promise.reject(new TypeError(\n `'signal' is not a valid 'AbortSignal'`));\n }\n // If this is a TaskSignal, make sure the priority is valid.\n if (options.signal && options.signal.priority &&\n !SCHEDULER_PRIORITIES.includes(options.signal.priority)) {\n return Promise.reject(new TypeError(\n `Invalid task priority: '${options.signal.priority}'`));\n }\n }\n\n if (options.priority !== undefined) {\n // Non-numeric options cannot be null for this API.\n if (options.priority === null ||\n !SCHEDULER_PRIORITIES.includes(options.priority)) {\n return Promise.reject(new TypeError(\n `Invalid task priority: '${options.priority}'`));\n }\n }\n\n if (options.delay === undefined) options.delay = 0;\n // Unlike setTimeout, postTask uses [EnforceRange] and rejects negative\n // delay values. But it also converts non-numeric values to numbers. Since\n // IDL and Number() both use the same underlying ECMAScript algorithm\n // (ToNumber()), convert the value using Number(delay) and then check the\n // range.\n options.delay = Number(options.delay);\n if (options.delay < 0) {\n return Promise.reject(new TypeError(\n `'delay' must be a positive number.`));\n }\n\n const task = {\n callback,\n options,\n\n /** The resolve function from the associated Promise. */\n resolve: null,\n\n /** The reject function from the associated Promise. */\n reject: null,\n\n /** The pending HostCallback, which is set iff this is a delayed task. */\n hostCallback: null,\n\n /**\n * The callback passed to the abort event listener, which calls\n * `onAbort` and is bound to this task via an => function.\n */\n abortCallback: null,\n\n onTaskCompleted: function() {\n if (!this.options.signal || !this.abortCallback) return;\n this.options.signal.removeEventListener('abort', this.abortCallback);\n this.abortCallback = null;\n },\n\n onTaskAborted: function() {\n // If this is a delayed task that hasn't expired yet, cancel the host\n // callback.\n if (this.hostCallback) {\n this.hostCallback.cancel();\n this.hostCallback = null;\n }\n this.options.signal.removeEventListener('abort', this.abortCallback);\n this.abortCallback = null;\n this.reject(this.options.signal.reason);\n },\n\n isAborted: function() {\n return this.options.signal && this.options.signal.aborted;\n },\n\n isContinuation,\n };\n\n const resultPromise = new Promise((resolve, reject) => {\n task.resolve = resolve;\n task.reject = reject;\n });\n\n this.schedule_(task);\n\n return resultPromise;\n }\n\n /**\n * @private\n * @param {!Object} task\n */\n schedule_(task) {\n // Handle tasks that have already been aborted or might be aborted in the\n // future.\n const signal = task.options.signal;\n if (signal) {\n if (signal.aborted) {\n task.reject(signal.reason);\n return;\n }\n\n task.abortCallback = () => {\n task.onTaskAborted();\n };\n signal.addEventListener('abort', task.abortCallback);\n }\n\n // Handle delayed tasks.\n if (task.options.delay > 0) {\n task.hostCallback = new HostCallback(() => {\n task.hostCallback = null;\n this.onTaskDelayExpired_(task);\n }, null /* priority */, task.options.delay);\n return;\n }\n\n this.pushTask_(task);\n this.scheduleHostCallbackIfNeeded_();\n }\n\n /**\n * Callback invoked when a delayed task's timeout expires.\n * @private\n * @param {!Object} task\n */\n onTaskDelayExpired_(task) {\n // We need to queue the task in the appropriate queue, most importantly\n // to ensure ordering guarantees.\n this.pushTask_(task);\n\n // We also use this as an entrypoint into the scheduler and run the\n // next task, rather than waiting for the pending callback or scheduling\n // another one.\n if (this.pendingHostCallback_) {\n this.pendingHostCallback_.cancel();\n this.pendingHostCallback_ = null;\n }\n this.schedulerEntryCallback_();\n }\n\n /**\n * Callback invoked when a priortychange event is raised for `signal`.\n * @private\n * @param {!AbortSignal} signal\n */\n onPriorityChange_(signal) {\n const oldPriority = this.signals_.get(signal);\n if (oldPriority === undefined) {\n throw new Error(\n 'Attempting to change priority on an unregistered signal');\n }\n if (oldPriority === signal.priority) return;\n\n // Change priority for both continuations and tasks.\n for (let i = 0; i < 2; i++) {\n const sourceQueue = this.queues_[oldPriority][i];\n const destinationQueue = this.queues_[signal.priority][i];\n\n destinationQueue.merge(sourceQueue, (task) => {\n return task.options.signal === signal;\n });\n }\n\n this.signals_.set(signal, signal.priority);\n }\n\n /**\n * Callback invoked when the host callback fires.\n * @private\n */\n schedulerEntryCallback_() {\n this.pendingHostCallback_ = null;\n this.runNextTask_();\n this.scheduleHostCallbackIfNeeded_();\n }\n\n /**\n * Schedule the next scheduler callback if there are any pending tasks.\n */\n scheduleHostCallbackIfNeeded_() {\n const {priority} = this.nextTaskPriority_();\n if (priority == null) return;\n\n // We might need to upgrade to a non-idle callback if a higher priority task\n // is scheduled, in which case we cancel the pending host callback and\n // reschedule.\n if (priority !== 'background' && this.pendingHostCallback_ &&\n this.pendingHostCallback_.isIdleCallback()) {\n this.pendingHostCallback_.cancel();\n this.pendingHostCallback_ = null;\n }\n\n // Either the priority of the new task is compatible with the pending host\n // callback, or it's a lower priorty (we handled the other case above). In\n // either case, the pending callback is still valid.\n if (this.pendingHostCallback_) return;\n\n this.pendingHostCallback_ = new HostCallback(() => {\n this.schedulerEntryCallback_();\n }, priority, 0 /* delay */);\n }\n\n /**\n * Compute the `task` priority and push it onto the appropriate task queue.\n * If the priority comes from the associated signal, this will set up an event\n * listener to listen for priority changes.\n * @private\n * @param {!Object} task\n */\n pushTask_(task) {\n // If an explicit priority was provided, we use that. Otherwise if a\n // TaskSignal was provided, we get the priority from that. If neither a\n // priority or TaskSignal was provided, we default to 'user-visible'.\n let priority;\n if (task.options.priority) {\n priority = task.options.priority;\n } else if (task.options.signal && task.options.signal.priority) {\n priority = task.options.signal.priority;\n } else {\n priority = 'user-visible';\n }\n\n // The priority should have already been validated before calling this\n // method, but check the assumption and fail loudly if it doesn't hold.\n if (!SCHEDULER_PRIORITIES.includes(priority)) {\n throw new TypeError(`Invalid task priority: ${priority}`);\n }\n\n // Subscribe to priority change events if this is the first time we're\n // learning about this signal.\n if (task.options.signal && task.options.signal.priority) {\n const signal = task.options.signal;\n if (!this.signals_.has(signal)) {\n signal.addEventListener('prioritychange', () => {\n this.onPriorityChange_(signal);\n });\n this.signals_.set(signal, signal.priority);\n }\n }\n this.queues_[priority][task.isContinuation ? 0 : 1].push(task);\n }\n\n /**\n * Run the oldest highest priority non-aborted task, if there is one.\n * @private\n */\n runNextTask_() {\n let task = null;\n\n // Aborted tasks aren't removed from the task queue, so we need to keep\n // looping until we find a non-aborted task. Alternatively, we should\n // consider just removing them from their queue.\n do {\n // TODO(shaseley): This can potentially run a background task in a\n // non-background task host callback.\n const {priority, type} = this.nextTaskPriority_();\n // No tasks to run.\n if (priority == null) return;\n\n // Note: `task` will only be null if the queue is empty, which should not\n // be the case if we found the priority of the next task to run.\n task = this.queues_[priority][type].takeNextTask();\n } while (task.isAborted());\n\n try {\n const result = task.callback();\n task.resolve(result);\n } catch (e) {\n task.reject(e);\n } finally {\n task.onTaskCompleted();\n }\n }\n\n /**\n * Get the priority and type of the next task or continuation to run.\n * @private\n * @return {{priority: ?string, type: number}} Returns the priority and type\n * of the next continuation or task to run, or null if all queues are\n * empty.\n */\n nextTaskPriority_() {\n for (let i = 0; i < SCHEDULER_PRIORITIES.length; i++) {\n const priority = SCHEDULER_PRIORITIES[i];\n for (let type = 0; type < 2; type++) {\n if (!this.queues_[priority][type].isEmpty()) return {priority, type};\n }\n }\n return {priority: null, type: 0};\n }\n}\n\nexport {Scheduler};\n","/**\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @fileoverview This version of scheduler.yield() is only used if\n * self.scheduler is defined. It assumes that this is the native implementation\n * (i.e. running in an older browser), and it uses scheduler.postTask() to\n * schedule continuations at 'user-blocking' priority.\n */\n\n/**\n * Returns a promise that is resolved in a new task. This schedules\n * continuations as 'user-blocking' scheduler.postTask() tasks.\n *\n * @return {!Promise<*>}\n */\nfunction schedulerYield() {\n // Use 'user-blocking' priority to get similar scheduling behavior as\n // scheduler.yield(). Note: we can't reliably inherit priority and abort since\n // we lose context if async functions are spread across multiple tasks.\n return self.scheduler.postTask(() => {}, {priority: 'user-blocking'});\n}\n\nexport {schedulerYield};\n","/**\n * @license\n * web-streams-polyfill v4.0.0\n * Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.\n * This code is released under the MIT license.\n * SPDX-License-Identifier: MIT\n */\nfunction e(){}function t(e){return\"object\"==typeof e&&null!==e||\"function\"==typeof e}const r=e;function o(e,t){try{Object.defineProperty(e,\"name\",{value:t,configurable:!0})}catch(e){}}const n=Promise,a=Promise.resolve.bind(n),i=Promise.prototype.then,l=Promise.reject.bind(n),s=a;function u(e){return new n(e)}function c(e){return u((t=>t(e)))}function d(e){return l(e)}function f(e,t,r){return i.call(e,t,r)}function b(e,t,o){f(f(e,t,o),void 0,r)}function h(e,t){b(e,t)}function m(e,t){b(e,void 0,t)}function _(e,t,r){return f(e,t,r)}function p(e){f(e,void 0,r)}let y=e=>{if(\"function\"==typeof queueMicrotask)y=queueMicrotask;else{const e=c(void 0);y=t=>f(e,t)}return y(e)};function S(e,t,r){if(\"function\"!=typeof e)throw new TypeError(\"Argument is not a function\");return Function.prototype.apply.call(e,t,r)}function g(e,t,r){try{return c(S(e,t,r))}catch(e){return d(e)}}class v{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){const e=this._front;let t=e;const r=this._cursor;let o=r+1;const n=e._elements,a=n[r];return 16384===o&&(t=e._next,o=0),--this._size,this._cursor=o,e!==t&&(this._front=t),n[r]=void 0,a}forEach(e){let t=this._cursor,r=this._front,o=r._elements;for(;!(t===o.length&&void 0===r._next||t===o.length&&(r=r._next,o=r._elements,t=0,0===o.length));)e(o[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}const w=Symbol(\"[[AbortSteps]]\"),R=Symbol(\"[[ErrorSteps]]\"),T=Symbol(\"[[CancelSteps]]\"),C=Symbol(\"[[PullSteps]]\"),P=Symbol(\"[[ReleaseSteps]]\");function q(e,t){e._ownerReadableStream=t,t._reader=e,\"readable\"===t._state?B(e):\"closed\"===t._state?function(e){B(e),A(e)}(e):k(e,t._storedError)}function E(e,t){return Or(e._ownerReadableStream,t)}function W(e){const t=e._ownerReadableStream;\"readable\"===t._state?j(e,new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\")):function(e,t){k(e,t)}(e,new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\")),t._readableStreamController[P](),t._reader=void 0,e._ownerReadableStream=void 0}function O(e){return new TypeError(\"Cannot \"+e+\" a stream using a released reader\")}function B(e){e._closedPromise=u(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function k(e,t){B(e),j(e,t)}function j(e,t){void 0!==e._closedPromise_reject&&(p(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function A(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const z=Number.isFinite||function(e){return\"number\"==typeof e&&isFinite(e)},D=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function L(e,t){if(void 0!==e&&(\"object\"!=typeof(r=e)&&\"function\"!=typeof r))throw new TypeError(`${t} is not an object.`);var r}function F(e,t){if(\"function\"!=typeof e)throw new TypeError(`${t} is not a function.`)}function I(e,t){if(!function(e){return\"object\"==typeof e&&null!==e||\"function\"==typeof e}(e))throw new TypeError(`${t} is not an object.`)}function $(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function M(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in '${r}'.`)}function Y(e){return Number(e)}function x(e){return 0===e?0:e}function Q(e,t){const r=Number.MAX_SAFE_INTEGER;let o=Number(e);if(o=x(o),!z(o))throw new TypeError(`${t} is not a finite number`);if(o=function(e){return x(D(e))}(o),o<0||o>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return z(o)&&0!==o?o:0}function N(e,t){if(!Er(e))throw new TypeError(`${t} is not a ReadableStream.`)}function H(e){return new ReadableStreamDefaultReader(e)}function V(e,t){e._reader._readRequests.push(t)}function U(e,t,r){const o=e._reader._readRequests.shift();r?o._closeSteps():o._chunkSteps(t)}function G(e){return e._reader._readRequests.length}function X(e){const t=e._reader;return void 0!==t&&!!J(t)}class ReadableStreamDefaultReader{constructor(e){if($(e,1,\"ReadableStreamDefaultReader\"),N(e,\"First parameter\"),Wr(e))throw new TypeError(\"This stream has already been locked for exclusive reading by another reader\");q(this,e),this._readRequests=new v}get closed(){return J(this)?this._closedPromise:d(ee(\"closed\"))}cancel(e=void 0){return J(this)?void 0===this._ownerReadableStream?d(O(\"cancel\")):E(this,e):d(ee(\"cancel\"))}read(){if(!J(this))return d(ee(\"read\"));if(void 0===this._ownerReadableStream)return d(O(\"read from\"));let e,t;const r=u(((r,o)=>{e=r,t=o}));return K(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!J(this))throw ee(\"releaseLock\");void 0!==this._ownerReadableStream&&function(e){W(e);const t=new TypeError(\"Reader was released\");Z(e,t)}(this)}}function J(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_readRequests\")&&e instanceof ReadableStreamDefaultReader)}function K(e,t){const r=e._ownerReadableStream;r._disturbed=!0,\"closed\"===r._state?t._closeSteps():\"errored\"===r._state?t._errorSteps(r._storedError):r._readableStreamController[C](t)}function Z(e,t){const r=e._readRequests;e._readRequests=new v,r.forEach((e=>{e._errorSteps(t)}))}function ee(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}var te,re,oe;function ne(e){return e.slice()}function ae(e,t,r,o,n){new Uint8Array(e).set(new Uint8Array(r,o,n),t)}Object.defineProperties(ReadableStreamDefaultReader.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),o(ReadableStreamDefaultReader.prototype.cancel,\"cancel\"),o(ReadableStreamDefaultReader.prototype.read,\"read\"),o(ReadableStreamDefaultReader.prototype.releaseLock,\"releaseLock\"),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(ReadableStreamDefaultReader.prototype,Symbol.toStringTag,{value:\"ReadableStreamDefaultReader\",configurable:!0});let ie=e=>(ie=\"function\"==typeof e.transfer?e=>e.transfer():\"function\"==typeof structuredClone?e=>structuredClone(e,{transfer:[e]}):e=>e,ie(e)),le=e=>(le=\"boolean\"==typeof e.detached?e=>e.detached:e=>0===e.byteLength,le(e));function se(e,t,r){if(e.slice)return e.slice(t,r);const o=r-t,n=new ArrayBuffer(o);return ae(n,0,e,t,o),n}function ue(e,t){const r=e[t];if(null!=r){if(\"function\"!=typeof r)throw new TypeError(`${String(t)} is not a function`);return r}}function ce(e){try{const t=e.done,r=e.value;return f(s(r),(e=>({done:t,value:e})))}catch(e){return d(e)}}const de=null!==(oe=null!==(te=Symbol.asyncIterator)&&void 0!==te?te:null===(re=Symbol.for)||void 0===re?void 0:re.call(Symbol,\"Symbol.asyncIterator\"))&&void 0!==oe?oe:\"@@asyncIterator\";function fe(e,r=\"sync\",o){if(void 0===o)if(\"async\"===r){if(void 0===(o=ue(e,de))){return function(e){const r={next(){let t;try{t=be(e)}catch(e){return d(e)}return ce(t)},return(r){let o;try{const t=ue(e.iterator,\"return\");if(void 0===t)return c({done:!0,value:r});o=S(t,e.iterator,[r])}catch(e){return d(e)}return t(o)?ce(o):d(new TypeError(\"The iterator.return() method must return an object\"))}};return{iterator:r,nextMethod:r.next,done:!1}}(fe(e,\"sync\",ue(e,Symbol.iterator)))}}else o=ue(e,Symbol.iterator);if(void 0===o)throw new TypeError(\"The object is not iterable\");const n=S(o,e,[]);if(!t(n))throw new TypeError(\"The iterator method must return an object\");return{iterator:n,nextMethod:n.next,done:!1}}function be(e){const r=S(e.nextMethod,e.iterator,[]);if(!t(r))throw new TypeError(\"The iterator.next() method must return an object\");return r}class he{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?_(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise?_(this._ongoingPromise,t,t):t()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;let t,r;const o=u(((e,o)=>{t=e,r=o}));return K(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,y((()=>t({value:e,done:!1})))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,W(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,W(e),r(t)}}),o}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(!this._preventCancel){const r=E(t,e);return W(t),_(r,(()=>({value:e,done:!0})))}return W(t),c({value:e,done:!0})}}const me={next(){return _e(this)?this._asyncIteratorImpl.next():d(pe(\"next\"))},return(e){return _e(this)?this._asyncIteratorImpl.return(e):d(pe(\"return\"))},[de](){return this}};function _e(e){if(!t(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,\"_asyncIteratorImpl\"))return!1;try{return e._asyncIteratorImpl instanceof he}catch(e){return!1}}function pe(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}Object.defineProperty(me,de,{enumerable:!1});const ye=Number.isNaN||function(e){return e!=e};function Se(e){const t=se(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function ge(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function ve(e,t,r){if(\"number\"!=typeof(o=r)||ye(o)||o<0||r===1/0)throw new RangeError(\"Size must be a finite, non-NaN, non-negative number.\");var o;e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function we(e){e._queue=new v,e._queueTotalSize=0}function Re(e){return e===DataView}class ReadableStreamBYOBRequest{constructor(){throw new TypeError(\"Illegal constructor\")}get view(){if(!Ce(this))throw Je(\"view\");return this._view}respond(e){if(!Ce(this))throw Je(\"respond\");if($(e,1,\"respond\"),e=Q(e,\"First parameter\"),void 0===this._associatedReadableByteStreamController)throw new TypeError(\"This BYOB request has been invalidated\");if(le(this._view.buffer))throw new TypeError(\"The BYOB request's buffer has been detached and so cannot be used as a response\");Ue(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!Ce(this))throw Je(\"respondWithNewView\");if($(e,1,\"respondWithNewView\"),!ArrayBuffer.isView(e))throw new TypeError(\"You can only respond with array buffer views\");if(void 0===this._associatedReadableByteStreamController)throw new TypeError(\"This BYOB request has been invalidated\");if(le(e.buffer))throw new TypeError(\"The given view's buffer has been detached and so cannot be used as a response\");Ge(this._associatedReadableByteStreamController,e)}}Object.defineProperties(ReadableStreamBYOBRequest.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),o(ReadableStreamBYOBRequest.prototype.respond,\"respond\"),o(ReadableStreamBYOBRequest.prototype.respondWithNewView,\"respondWithNewView\"),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(ReadableStreamBYOBRequest.prototype,Symbol.toStringTag,{value:\"ReadableStreamBYOBRequest\",configurable:!0});class ReadableByteStreamController{constructor(){throw new TypeError(\"Illegal constructor\")}get byobRequest(){if(!Te(this))throw Ke(\"byobRequest\");return He(this)}get desiredSize(){if(!Te(this))throw Ke(\"desiredSize\");return Ve(this)}close(){if(!Te(this))throw Ke(\"close\");if(this._closeRequested)throw new TypeError(\"The stream has already been closed; do not close it again!\");const e=this._controlledReadableByteStream._state;if(\"readable\"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);Ye(this)}enqueue(e){if(!Te(this))throw Ke(\"enqueue\");if($(e,1,\"enqueue\"),!ArrayBuffer.isView(e))throw new TypeError(\"chunk must be an array buffer view\");if(0===e.byteLength)throw new TypeError(\"chunk must have non-zero byteLength\");if(0===e.buffer.byteLength)throw new TypeError(\"chunk's buffer must have non-zero byteLength\");if(this._closeRequested)throw new TypeError(\"stream is closed or draining\");const t=this._controlledReadableByteStream._state;if(\"readable\"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);xe(this,e)}error(e=void 0){if(!Te(this))throw Ke(\"error\");Qe(this,e)}[T](e){qe(this),we(this);const t=this._cancelAlgorithm(e);return Me(this),t}[C](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void Ne(this,e);const r=this._autoAllocateChunkSize;if(void 0!==r){let t;try{t=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}const o={buffer:t,bufferByteLength:r,byteOffset:0,byteLength:r,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:\"default\"};this._pendingPullIntos.push(o)}V(t,e),Pe(this)}[P](){if(this._pendingPullIntos.length>0){const e=this._pendingPullIntos.peek();e.readerType=\"none\",this._pendingPullIntos=new v,this._pendingPullIntos.push(e)}}}function Te(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_controlledReadableByteStream\")&&e instanceof ReadableByteStreamController)}function Ce(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_associatedReadableByteStreamController\")&&e instanceof ReadableStreamBYOBRequest)}function Pe(e){const t=function(e){const t=e._controlledReadableByteStream;if(\"readable\"!==t._state)return!1;if(e._closeRequested)return!1;if(!e._started)return!1;if(X(t)&&G(t)>0)return!0;if(ot(t)&&rt(t)>0)return!0;const r=Ve(e);if(r>0)return!0;return!1}(e);if(!t)return;if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0;b(e._pullAlgorithm(),(()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Pe(e)),null)),(t=>(Qe(e,t),null)))}function qe(e){De(e),e._pendingPullIntos=new v}function Ee(e,t){let r=!1;\"closed\"===e._state&&(r=!0);const o=We(t);\"default\"===t.readerType?U(e,o,r):function(e,t,r){const o=e._reader,n=o._readIntoRequests.shift();r?n._closeSteps(t):n._chunkSteps(t)}(e,o,r)}function We(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function Oe(e,t,r,o){e._queue.push({buffer:t,byteOffset:r,byteLength:o}),e._queueTotalSize+=o}function Be(e,t,r,o){let n;try{n=se(t,r,r+o)}catch(t){throw Qe(e,t),t}Oe(e,n,0,o)}function ke(e,t){t.bytesFilled>0&&Be(e,t.buffer,t.byteOffset,t.bytesFilled),$e(e)}function je(e,t){const r=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+r;let n=r,a=!1;const i=o-o%t.elementSize;i>=t.minimumFill&&(n=i-t.bytesFilled,a=!0);const l=e._queue;for(;n>0;){const r=l.peek(),o=Math.min(n,r.byteLength),a=t.byteOffset+t.bytesFilled;ae(t.buffer,a,r.buffer,r.byteOffset,o),r.byteLength===o?l.shift():(r.byteOffset+=o,r.byteLength-=o),e._queueTotalSize-=o,Ae(e,o,t),n-=o}return a}function Ae(e,t,r){r.bytesFilled+=t}function ze(e){0===e._queueTotalSize&&e._closeRequested?(Me(e),Br(e._controlledReadableByteStream)):Pe(e)}function De(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function Le(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;const t=e._pendingPullIntos.peek();je(e,t)&&($e(e),Ee(e._controlledReadableByteStream,t))}}function Fe(e,t,r,o){const n=e._controlledReadableByteStream,a=t.constructor,i=function(e){return Re(e)?1:e.BYTES_PER_ELEMENT}(a),{byteOffset:l,byteLength:s}=t,u=r*i;let c;try{c=ie(t.buffer)}catch(e){return void o._errorSteps(e)}const d={buffer:c,bufferByteLength:c.byteLength,byteOffset:l,byteLength:s,bytesFilled:0,minimumFill:u,elementSize:i,viewConstructor:a,readerType:\"byob\"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(d),void tt(n,o);if(\"closed\"!==n._state){if(e._queueTotalSize>0){if(je(e,d)){const t=We(d);return ze(e),void o._chunkSteps(t)}if(e._closeRequested){const t=new TypeError(\"Insufficient bytes to fill elements in the given buffer\");return Qe(e,t),void o._errorSteps(t)}}e._pendingPullIntos.push(d),tt(n,o),Pe(e)}else{const e=new a(d.buffer,d.byteOffset,0);o._closeSteps(e)}}function Ie(e,t){const r=e._pendingPullIntos.peek();De(e);\"closed\"===e._controlledReadableByteStream._state?function(e,t){\"none\"===t.readerType&&$e(e);const r=e._controlledReadableByteStream;if(ot(r))for(;rt(r)>0;)Ee(r,$e(e))}(e,r):function(e,t,r){if(Ae(0,t,r),\"none\"===r.readerType)return ke(e,r),void Le(e);if(r.bytesFilled0){const t=r.byteOffset+r.bytesFilled;Be(e,r.buffer,t-o,o)}r.bytesFilled-=o,Ee(e._controlledReadableByteStream,r),Le(e)}(e,t,r),Pe(e)}function $e(e){return e._pendingPullIntos.shift()}function Me(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ye(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&\"readable\"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(t.bytesFilled%t.elementSize!=0){const t=new TypeError(\"Insufficient bytes to fill elements in the given buffer\");throw Qe(e,t),t}}Me(e),Br(t)}}function xe(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||\"readable\"!==r._state)return;const{buffer:o,byteOffset:n,byteLength:a}=t;if(le(o))throw new TypeError(\"chunk's buffer is detached and so cannot be enqueued\");const i=ie(o);if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(le(t.buffer))throw new TypeError(\"The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk\");De(e),t.buffer=ie(t.buffer),\"none\"===t.readerType&&ke(e,t)}if(X(r))if(function(e){const t=e._controlledReadableByteStream._reader;for(;t._readRequests.length>0;){if(0===e._queueTotalSize)return;Ne(e,t._readRequests.shift())}}(e),0===G(r))Oe(e,i,n,a);else{e._pendingPullIntos.length>0&&$e(e);U(r,new Uint8Array(i,n,a),!1)}else ot(r)?(Oe(e,i,n,a),Le(e)):Oe(e,i,n,a);Pe(e)}function Qe(e,t){const r=e._controlledReadableByteStream;\"readable\"===r._state&&(qe(e),we(e),Me(e),kr(r,t))}function Ne(e,t){const r=e._queue.shift();e._queueTotalSize-=r.byteLength,ze(e);const o=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);t._chunkSteps(o)}function He(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),o=Object.create(ReadableStreamBYOBRequest.prototype);!function(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}(o,e,r),e._byobRequest=o}return e._byobRequest}function Ve(e){const t=e._controlledReadableByteStream._state;return\"errored\"===t?null:\"closed\"===t?0:e._strategyHWM-e._queueTotalSize}function Ue(e,t){const r=e._pendingPullIntos.peek();if(\"closed\"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError(\"bytesWritten must be 0 when calling respond() on a closed stream\")}else{if(0===t)throw new TypeError(\"bytesWritten must be greater than 0 when calling respond() on a readable stream\");if(r.bytesFilled+t>r.byteLength)throw new RangeError(\"bytesWritten out of range\")}r.buffer=ie(r.buffer),Ie(e,t)}function Ge(e,t){const r=e._pendingPullIntos.peek();if(\"closed\"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw new TypeError(\"The view's length must be 0 when calling respondWithNewView() on a closed stream\")}else if(0===t.byteLength)throw new TypeError(\"The view's length must be greater than 0 when calling respondWithNewView() on a readable stream\");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError(\"The region specified by view does not match byobRequest\");if(r.bufferByteLength!==t.buffer.byteLength)throw new RangeError(\"The buffer of view has different capacity than byobRequest\");if(r.bytesFilled+t.byteLength>r.byteLength)throw new RangeError(\"The region specified by view is larger than byobRequest\");const o=t.byteLength;r.buffer=ie(t.buffer),Ie(e,o)}function Xe(e,t,r,o,n,a,i){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,we(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=a,t._pullAlgorithm=o,t._cancelAlgorithm=n,t._autoAllocateChunkSize=i,t._pendingPullIntos=new v,e._readableStreamController=t;b(c(r()),(()=>(t._started=!0,Pe(t),null)),(e=>(Qe(t,e),null)))}function Je(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function Ke(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function Ze(e,t){if(\"byob\"!==(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function et(e){return new ReadableStreamBYOBReader(e)}function tt(e,t){e._reader._readIntoRequests.push(t)}function rt(e){return e._reader._readIntoRequests.length}function ot(e){const t=e._reader;return void 0!==t&&!!nt(t)}Object.defineProperties(ReadableByteStreamController.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),o(ReadableByteStreamController.prototype.close,\"close\"),o(ReadableByteStreamController.prototype.enqueue,\"enqueue\"),o(ReadableByteStreamController.prototype.error,\"error\"),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(ReadableByteStreamController.prototype,Symbol.toStringTag,{value:\"ReadableByteStreamController\",configurable:!0});class ReadableStreamBYOBReader{constructor(e){if($(e,1,\"ReadableStreamBYOBReader\"),N(e,\"First parameter\"),Wr(e))throw new TypeError(\"This stream has already been locked for exclusive reading by another reader\");if(!Te(e._readableStreamController))throw new TypeError(\"Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source\");q(this,e),this._readIntoRequests=new v}get closed(){return nt(this)?this._closedPromise:d(lt(\"closed\"))}cancel(e=void 0){return nt(this)?void 0===this._ownerReadableStream?d(O(\"cancel\")):E(this,e):d(lt(\"cancel\"))}read(e,t={}){if(!nt(this))return d(lt(\"read\"));if(!ArrayBuffer.isView(e))return d(new TypeError(\"view must be an array buffer view\"));if(0===e.byteLength)return d(new TypeError(\"view must have non-zero byteLength\"));if(0===e.buffer.byteLength)return d(new TypeError(\"view's buffer must have non-zero byteLength\"));if(le(e.buffer))return d(new TypeError(\"view's buffer has been detached\"));let r;try{r=function(e,t){var r;return L(e,t),{min:Q(null!==(r=null==e?void 0:e.min)&&void 0!==r?r:1,`${t} has member 'min' that`)}}(t,\"options\")}catch(e){return d(e)}const o=r.min;if(0===o)return d(new TypeError(\"options.min must be greater than 0\"));if(function(e){return Re(e.constructor)}(e)){if(o>e.byteLength)return d(new RangeError(\"options.min must be less than or equal to view's byteLength\"))}else if(o>e.length)return d(new RangeError(\"options.min must be less than or equal to view's length\"));if(void 0===this._ownerReadableStream)return d(O(\"read from\"));let n,a;const i=u(((e,t)=>{n=e,a=t}));return at(this,e,o,{_chunkSteps:e=>n({value:e,done:!1}),_closeSteps:e=>n({value:e,done:!0}),_errorSteps:e=>a(e)}),i}releaseLock(){if(!nt(this))throw lt(\"releaseLock\");void 0!==this._ownerReadableStream&&function(e){W(e);const t=new TypeError(\"Reader was released\");it(e,t)}(this)}}function nt(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_readIntoRequests\")&&e instanceof ReadableStreamBYOBReader)}function at(e,t,r,o){const n=e._ownerReadableStream;n._disturbed=!0,\"errored\"===n._state?o._errorSteps(n._storedError):Fe(n._readableStreamController,t,r,o)}function it(e,t){const r=e._readIntoRequests;e._readIntoRequests=new v,r.forEach((e=>{e._errorSteps(t)}))}function lt(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function st(e,t){const{highWaterMark:r}=e;if(void 0===r)return t;if(ye(r)||r<0)throw new RangeError(\"Invalid highWaterMark\");return r}function ut(e){const{size:t}=e;return t||(()=>1)}function ct(e,t){L(e,t);const r=null==e?void 0:e.highWaterMark,o=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:Y(r),size:void 0===o?void 0:dt(o,`${t} has member 'size' that`)}}function dt(e,t){return F(e,t),t=>Y(e(t))}function ft(e,t,r){return F(e,r),r=>g(e,t,[r])}function bt(e,t,r){return F(e,r),()=>g(e,t,[])}function ht(e,t,r){return F(e,r),r=>S(e,t,[r])}function mt(e,t,r){return F(e,r),(r,o)=>g(e,t,[r,o])}function _t(e,t){if(!gt(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(ReadableStreamBYOBReader.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),o(ReadableStreamBYOBReader.prototype.cancel,\"cancel\"),o(ReadableStreamBYOBReader.prototype.read,\"read\"),o(ReadableStreamBYOBReader.prototype.releaseLock,\"releaseLock\"),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(ReadableStreamBYOBReader.prototype,Symbol.toStringTag,{value:\"ReadableStreamBYOBReader\",configurable:!0});const pt=\"function\"==typeof AbortController;class WritableStream{constructor(e={},t={}){void 0===e?e=null:I(e,\"First parameter\");const r=ct(t,\"Second parameter\"),o=function(e,t){L(e,t);const r=null==e?void 0:e.abort,o=null==e?void 0:e.close,n=null==e?void 0:e.start,a=null==e?void 0:e.type,i=null==e?void 0:e.write;return{abort:void 0===r?void 0:ft(r,e,`${t} has member 'abort' that`),close:void 0===o?void 0:bt(o,e,`${t} has member 'close' that`),start:void 0===n?void 0:ht(n,e,`${t} has member 'start' that`),write:void 0===i?void 0:mt(i,e,`${t} has member 'write' that`),type:a}}(e,\"First parameter\");St(this);if(void 0!==o.type)throw new RangeError(\"Invalid type is specified\");const n=ut(r);!function(e,t,r,o){const n=Object.create(WritableStreamDefaultController.prototype);let a,i,l,s;a=void 0!==t.start?()=>t.start(n):()=>{};i=void 0!==t.write?e=>t.write(e,n):()=>c(void 0);l=void 0!==t.close?()=>t.close():()=>c(void 0);s=void 0!==t.abort?e=>t.abort(e):()=>c(void 0);Ft(e,n,a,i,l,s,r,o)}(this,o,st(r,1),n)}get locked(){if(!gt(this))throw Nt(\"locked\");return vt(this)}abort(e=void 0){return gt(this)?vt(this)?d(new TypeError(\"Cannot abort a stream that already has a writer\")):wt(this,e):d(Nt(\"abort\"))}close(){return gt(this)?vt(this)?d(new TypeError(\"Cannot close a stream that already has a writer\")):qt(this)?d(new TypeError(\"Cannot close an already-closing stream\")):Rt(this):d(Nt(\"close\"))}getWriter(){if(!gt(this))throw Nt(\"getWriter\");return yt(this)}}function yt(e){return new WritableStreamDefaultWriter(e)}function St(e){e._state=\"writable\",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new v,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function gt(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_writableStreamController\")&&e instanceof WritableStream)}function vt(e){return void 0!==e._writer}function wt(e,t){var r;if(\"closed\"===e._state||\"errored\"===e._state)return c(void 0);e._writableStreamController._abortReason=t,null===(r=e._writableStreamController._abortController)||void 0===r||r.abort(t);const o=e._state;if(\"closed\"===o||\"errored\"===o)return c(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let n=!1;\"erroring\"===o&&(n=!0,t=void 0);const a=u(((r,o)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:o,_reason:t,_wasAlreadyErroring:n}}));return e._pendingAbortRequest._promise=a,n||Ct(e,t),a}function Rt(e){const t=e._state;if(\"closed\"===t||\"errored\"===t)return d(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=u(((t,r)=>{const o={_resolve:t,_reject:r};e._closeRequest=o})),o=e._writer;var n;return void 0!==o&&e._backpressure&&\"writable\"===t&&or(o),ve(n=e._writableStreamController,Dt,0),Mt(n),r}function Tt(e,t){\"writable\"!==e._state?Pt(e):Ct(e,t)}function Ct(e,t){const r=e._writableStreamController;e._state=\"erroring\",e._storedError=t;const o=e._writer;void 0!==o&&jt(o,t),!function(e){if(void 0===e._inFlightWriteRequest&&void 0===e._inFlightCloseRequest)return!1;return!0}(e)&&r._started&&Pt(e)}function Pt(e){e._state=\"errored\",e._writableStreamController[R]();const t=e._storedError;if(e._writeRequests.forEach((e=>{e._reject(t)})),e._writeRequests=new v,void 0===e._pendingAbortRequest)return void Et(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void Et(e);b(e._writableStreamController[w](r._reason),(()=>(r._resolve(),Et(e),null)),(t=>(r._reject(t),Et(e),null)))}function qt(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function Et(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&Jt(t,e._storedError)}function Wt(e,t){const r=e._writer;void 0!==r&&t!==e._backpressure&&(t?function(e){Zt(e)}(r):or(r)),e._backpressure=t}Object.defineProperties(WritableStream.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),o(WritableStream.prototype.abort,\"abort\"),o(WritableStream.prototype.close,\"close\"),o(WritableStream.prototype.getWriter,\"getWriter\"),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(WritableStream.prototype,Symbol.toStringTag,{value:\"WritableStream\",configurable:!0});class WritableStreamDefaultWriter{constructor(e){if($(e,1,\"WritableStreamDefaultWriter\"),_t(e,\"First parameter\"),vt(e))throw new TypeError(\"This stream has already been locked for exclusive writing by another writer\");this._ownerWritableStream=e,e._writer=this;const t=e._state;if(\"writable\"===t)!qt(e)&&e._backpressure?Zt(this):tr(this),Gt(this);else if(\"erroring\"===t)er(this,e._storedError),Gt(this);else if(\"closed\"===t)tr(this),Gt(r=this),Kt(r);else{const t=e._storedError;er(this,t),Xt(this,t)}var r}get closed(){return Ot(this)?this._closedPromise:d(Vt(\"closed\"))}get desiredSize(){if(!Ot(this))throw Vt(\"desiredSize\");if(void 0===this._ownerWritableStream)throw Ut(\"desiredSize\");return function(e){const t=e._ownerWritableStream,r=t._state;if(\"errored\"===r||\"erroring\"===r)return null;if(\"closed\"===r)return 0;return $t(t._writableStreamController)}(this)}get ready(){return Ot(this)?this._readyPromise:d(Vt(\"ready\"))}abort(e=void 0){return Ot(this)?void 0===this._ownerWritableStream?d(Ut(\"abort\")):function(e,t){return wt(e._ownerWritableStream,t)}(this,e):d(Vt(\"abort\"))}close(){if(!Ot(this))return d(Vt(\"close\"));const e=this._ownerWritableStream;return void 0===e?d(Ut(\"close\")):qt(e)?d(new TypeError(\"Cannot close an already-closing stream\")):Bt(this)}releaseLock(){if(!Ot(this))throw Vt(\"releaseLock\");void 0!==this._ownerWritableStream&&At(this)}write(e=void 0){return Ot(this)?void 0===this._ownerWritableStream?d(Ut(\"write to\")):zt(this,e):d(Vt(\"write\"))}}function Ot(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_ownerWritableStream\")&&e instanceof WritableStreamDefaultWriter)}function Bt(e){return Rt(e._ownerWritableStream)}function kt(e,t){\"pending\"===e._closedPromiseState?Jt(e,t):function(e,t){Xt(e,t)}(e,t)}function jt(e,t){\"pending\"===e._readyPromiseState?rr(e,t):function(e,t){er(e,t)}(e,t)}function At(e){const t=e._ownerWritableStream,r=new TypeError(\"Writer was released and can no longer be used to monitor the stream's closedness\");jt(e,r),kt(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function zt(e,t){const r=e._ownerWritableStream,o=r._writableStreamController,n=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return Yt(e,t),1}}(o,t);if(r!==e._ownerWritableStream)return d(Ut(\"write to\"));const a=r._state;if(\"errored\"===a)return d(r._storedError);if(qt(r)||\"closed\"===a)return d(new TypeError(\"The stream is closing or closed and cannot be written to\"));if(\"erroring\"===a)return d(r._storedError);const i=function(e){return u(((t,r)=>{const o={_resolve:t,_reject:r};e._writeRequests.push(o)}))}(r);return function(e,t,r){try{ve(e,t,r)}catch(t){return void Yt(e,t)}const o=e._controlledWritableStream;if(!qt(o)&&\"writable\"===o._state){Wt(o,xt(e))}Mt(e)}(o,t,n),i}Object.defineProperties(WritableStreamDefaultWriter.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),o(WritableStreamDefaultWriter.prototype.abort,\"abort\"),o(WritableStreamDefaultWriter.prototype.close,\"close\"),o(WritableStreamDefaultWriter.prototype.releaseLock,\"releaseLock\"),o(WritableStreamDefaultWriter.prototype.write,\"write\"),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(WritableStreamDefaultWriter.prototype,Symbol.toStringTag,{value:\"WritableStreamDefaultWriter\",configurable:!0});const Dt={};class WritableStreamDefaultController{constructor(){throw new TypeError(\"Illegal constructor\")}get abortReason(){if(!Lt(this))throw Ht(\"abortReason\");return this._abortReason}get signal(){if(!Lt(this))throw Ht(\"signal\");if(void 0===this._abortController)throw new TypeError(\"WritableStreamDefaultController.prototype.signal is not supported\");return this._abortController.signal}error(e=void 0){if(!Lt(this))throw Ht(\"error\");\"writable\"===this._controlledWritableStream._state&&Qt(this,e)}[w](e){const t=this._abortAlgorithm(e);return It(this),t}[R](){we(this)}}function Lt(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_controlledWritableStream\")&&e instanceof WritableStreamDefaultController)}function Ft(e,t,r,o,n,a,i,l){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,we(t),t._abortReason=void 0,t._abortController=function(){if(pt)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=l,t._strategyHWM=i,t._writeAlgorithm=o,t._closeAlgorithm=n,t._abortAlgorithm=a;const s=xt(t);Wt(e,s);b(c(r()),(()=>(t._started=!0,Mt(t),null)),(r=>(t._started=!0,Tt(e,r),null)))}function It(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function $t(e){return e._strategyHWM-e._queueTotalSize}function Mt(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if(\"erroring\"===t._state)return void Pt(t);if(0===e._queue.length)return;const r=e._queue.peek().value;r===Dt?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),ge(e);const r=e._closeAlgorithm();It(e),b(r,(()=>(function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,\"erroring\"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state=\"closed\";const t=e._writer;void 0!==t&&Kt(t)}(t),null)),(e=>(function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),Tt(e,t)}(t,e),null)))}(e):function(e,t){const r=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(r);const o=e._writeAlgorithm(t);b(o,(()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(r);const t=r._state;if(ge(e),!qt(r)&&\"writable\"===t){const t=xt(e);Wt(r,t)}return Mt(e),null}),(t=>(\"writable\"===r._state&&It(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,Tt(e,t)}(r,t),null)))}(e,r)}function Yt(e,t){\"writable\"===e._controlledWritableStream._state&&Qt(e,t)}function xt(e){return $t(e)<=0}function Qt(e,t){const r=e._controlledWritableStream;It(e),Ct(r,t)}function Nt(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function Ht(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function Vt(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Ut(e){return new TypeError(\"Cannot \"+e+\" a stream using a released writer\")}function Gt(e){e._closedPromise=u(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState=\"pending\"}))}function Xt(e,t){Gt(e),Jt(e,t)}function Jt(e,t){void 0!==e._closedPromise_reject&&(p(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState=\"rejected\")}function Kt(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState=\"resolved\")}function Zt(e){e._readyPromise=u(((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState=\"pending\"}function er(e,t){Zt(e),rr(e,t)}function tr(e){Zt(e),or(e)}function rr(e,t){void 0!==e._readyPromise_reject&&(p(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState=\"rejected\")}function or(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState=\"fulfilled\")}Object.defineProperties(WritableStreamDefaultController.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(WritableStreamDefaultController.prototype,Symbol.toStringTag,{value:\"WritableStreamDefaultController\",configurable:!0});const nr=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:\"undefined\"!=typeof global?global:void 0;const ar=function(){const e=null==nr?void 0:nr.DOMException;return function(e){if(\"function\"!=typeof e&&\"object\"!=typeof e)return!1;if(\"DOMException\"!==e.name)return!1;try{return new e,!0}catch(e){return!1}}(e)?e:void 0}()||function(){const e=function(e,t){this.message=e||\"\",this.name=t||\"Error\",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return o(e,\"DOMException\"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,\"constructor\",{value:e,writable:!0,configurable:!0}),e}();function ir(t,r,o,n,a,i){const l=H(t),s=yt(r);t._disturbed=!0;let _=!1,y=c(void 0);return u(((S,g)=>{let v;if(void 0!==i){if(v=()=>{const e=void 0!==i.reason?i.reason:new ar(\"Aborted\",\"AbortError\"),o=[];n||o.push((()=>\"writable\"===r._state?wt(r,e):c(void 0))),a||o.push((()=>\"readable\"===t._state?Or(t,e):c(void 0))),q((()=>Promise.all(o.map((e=>e())))),!0,e)},i.aborted)return void v();i.addEventListener(\"abort\",v)}var w,R,T;if(P(t,l._closedPromise,(e=>(n?E(!0,e):q((()=>wt(r,e)),!0,e),null))),P(r,s._closedPromise,(e=>(a?E(!0,e):q((()=>Or(t,e)),!0,e),null))),w=t,R=l._closedPromise,T=()=>(o?E():q((()=>function(e){const t=e._ownerWritableStream,r=t._state;return qt(t)||\"closed\"===r?c(void 0):\"errored\"===r?d(t._storedError):Bt(e)}(s))),null),\"closed\"===w._state?T():h(R,T),qt(r)||\"closed\"===r._state){const e=new TypeError(\"the destination writable stream closed before all data could be piped to it\");a?E(!0,e):q((()=>Or(t,e)),!0,e)}function C(){const e=y;return f(y,(()=>e!==y?C():void 0))}function P(e,t,r){\"errored\"===e._state?r(e._storedError):m(t,r)}function q(e,t,o){function n(){return b(e(),(()=>O(t,o)),(e=>O(!0,e))),null}_||(_=!0,\"writable\"!==r._state||qt(r)?n():h(C(),n))}function E(e,t){_||(_=!0,\"writable\"!==r._state||qt(r)?O(e,t):h(C(),(()=>O(e,t))))}function O(e,t){return At(s),W(l),void 0!==i&&i.removeEventListener(\"abort\",v),e?g(t):S(void 0),null}p(u(((t,r)=>{!function o(n){n?t():f(_?c(!0):f(s._readyPromise,(()=>u(((t,r)=>{K(l,{_chunkSteps:r=>{y=f(zt(s,r),void 0,e),t(!1)},_closeSteps:()=>t(!0),_errorSteps:r})})))),o,r)}(!1)})))}))}class ReadableStreamDefaultController{constructor(){throw new TypeError(\"Illegal constructor\")}get desiredSize(){if(!lr(this))throw pr(\"desiredSize\");return hr(this)}close(){if(!lr(this))throw pr(\"close\");if(!mr(this))throw new TypeError(\"The stream is not in a state that permits close\");dr(this)}enqueue(e=void 0){if(!lr(this))throw pr(\"enqueue\");if(!mr(this))throw new TypeError(\"The stream is not in a state that permits enqueue\");return fr(this,e)}error(e=void 0){if(!lr(this))throw pr(\"error\");br(this,e)}[T](e){we(this);const t=this._cancelAlgorithm(e);return cr(this),t}[C](e){const t=this._controlledReadableStream;if(this._queue.length>0){const r=ge(this);this._closeRequested&&0===this._queue.length?(cr(this),Br(t)):sr(this),e._chunkSteps(r)}else V(t,e),sr(this)}[P](){}}function lr(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_controlledReadableStream\")&&e instanceof ReadableStreamDefaultController)}function sr(e){if(!ur(e))return;if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0;b(e._pullAlgorithm(),(()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,sr(e)),null)),(t=>(br(e,t),null)))}function ur(e){const t=e._controlledReadableStream;if(!mr(e))return!1;if(!e._started)return!1;if(Wr(t)&&G(t)>0)return!0;return hr(e)>0}function cr(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function dr(e){if(!mr(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(cr(e),Br(t))}function fr(e,t){if(!mr(e))return;const r=e._controlledReadableStream;if(Wr(r)&&G(r)>0)U(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw br(e,t),t}try{ve(e,t,r)}catch(t){throw br(e,t),t}}sr(e)}function br(e,t){const r=e._controlledReadableStream;\"readable\"===r._state&&(we(e),cr(e),kr(r,t))}function hr(e){const t=e._controlledReadableStream._state;return\"errored\"===t?null:\"closed\"===t?0:e._strategyHWM-e._queueTotalSize}function mr(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&\"readable\"===t}function _r(e,t,r,o,n,a,i){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,we(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=i,t._strategyHWM=a,t._pullAlgorithm=o,t._cancelAlgorithm=n,e._readableStreamController=t;b(c(r()),(()=>(t._started=!0,sr(t),null)),(e=>(br(t,e),null)))}function pr(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function yr(e,t){return Te(e._readableStreamController)?function(e){let t,r,o,n,a,i=H(e),l=!1,s=!1,d=!1,f=!1,b=!1;const h=u((e=>{a=e}));function _(e){m(e._closedPromise,(t=>(e!==i||(Qe(o._readableStreamController,t),Qe(n._readableStreamController,t),f&&b||a(void 0)),null)))}function p(){nt(i)&&(W(i),i=H(e),_(i));K(i,{_chunkSteps:t=>{y((()=>{s=!1,d=!1;const r=t;let i=t;if(!f&&!b)try{i=Se(t)}catch(t){return Qe(o._readableStreamController,t),Qe(n._readableStreamController,t),void a(Or(e,t))}f||xe(o._readableStreamController,r),b||xe(n._readableStreamController,i),l=!1,s?g():d&&v()}))},_closeSteps:()=>{l=!1,f||Ye(o._readableStreamController),b||Ye(n._readableStreamController),o._readableStreamController._pendingPullIntos.length>0&&Ue(o._readableStreamController,0),n._readableStreamController._pendingPullIntos.length>0&&Ue(n._readableStreamController,0),f&&b||a(void 0)},_errorSteps:()=>{l=!1}})}function S(t,r){J(i)&&(W(i),i=et(e),_(i));const u=r?n:o,c=r?o:n;at(i,t,1,{_chunkSteps:t=>{y((()=>{s=!1,d=!1;const o=r?b:f;if(r?f:b)o||Ge(u._readableStreamController,t);else{let r;try{r=Se(t)}catch(t){return Qe(u._readableStreamController,t),Qe(c._readableStreamController,t),void a(Or(e,t))}o||Ge(u._readableStreamController,t),xe(c._readableStreamController,r)}l=!1,s?g():d&&v()}))},_closeSteps:e=>{l=!1;const t=r?b:f,o=r?f:b;t||Ye(u._readableStreamController),o||Ye(c._readableStreamController),void 0!==e&&(t||Ge(u._readableStreamController,e),!o&&c._readableStreamController._pendingPullIntos.length>0&&Ue(c._readableStreamController,0)),t&&o||a(void 0)},_errorSteps:()=>{l=!1}})}function g(){if(l)return s=!0,c(void 0);l=!0;const e=He(o._readableStreamController);return null===e?p():S(e._view,!1),c(void 0)}function v(){if(l)return d=!0,c(void 0);l=!0;const e=He(n._readableStreamController);return null===e?p():S(e._view,!0),c(void 0)}function w(o){if(f=!0,t=o,b){const o=ne([t,r]),n=Or(e,o);a(n)}return h}function R(o){if(b=!0,r=o,f){const o=ne([t,r]),n=Or(e,o);a(n)}return h}function T(){}return o=Pr(T,g,w),n=Pr(T,v,R),_(i),[o,n]}(e):function(e,t){const r=H(e);let o,n,a,i,l,s=!1,d=!1,f=!1,b=!1;const h=u((e=>{l=e}));function _(){if(s)return d=!0,c(void 0);s=!0;return K(r,{_chunkSteps:e=>{y((()=>{d=!1;const t=e,r=e;f||fr(a._readableStreamController,t),b||fr(i._readableStreamController,r),s=!1,d&&_()}))},_closeSteps:()=>{s=!1,f||dr(a._readableStreamController),b||dr(i._readableStreamController),f&&b||l(void 0)},_errorSteps:()=>{s=!1}}),c(void 0)}function p(t){if(f=!0,o=t,b){const t=ne([o,n]),r=Or(e,t);l(r)}return h}function S(t){if(b=!0,n=t,f){const t=ne([o,n]),r=Or(e,t);l(r)}return h}function g(){}return a=Cr(g,_,p),i=Cr(g,_,S),m(r._closedPromise,(e=>(br(a._readableStreamController,e),br(i._readableStreamController,e),f&&b||l(void 0),null))),[a,i]}(e)}function Sr(r){return t(o=r)&&void 0!==o.getReader?function(r){let o;function n(){let e;try{e=r.read()}catch(e){return d(e)}return _(e,(e=>{if(!t(e))throw new TypeError(\"The promise returned by the reader.read() method must fulfill with an object\");if(e.done)dr(o._readableStreamController);else{const t=e.value;fr(o._readableStreamController,t)}}))}function a(e){try{return c(r.cancel(e))}catch(e){return d(e)}}return o=Cr(e,n,a,0),o}(r.getReader()):function(r){let o;const n=fe(r,\"async\");function a(){let e;try{e=be(n)}catch(e){return d(e)}return _(c(e),(e=>{if(!t(e))throw new TypeError(\"The promise returned by the iterator.next() method must fulfill with an object\");if(e.done)dr(o._readableStreamController);else{const t=e.value;fr(o._readableStreamController,t)}}))}function i(e){const r=n.iterator;let o;try{o=ue(r,\"return\")}catch(e){return d(e)}if(void 0===o)return c(void 0);return _(g(o,r,[e]),(e=>{if(!t(e))throw new TypeError(\"The promise returned by the iterator.return() method must fulfill with an object\")}))}return o=Cr(e,a,i,0),o}(r);var o}function gr(e,t,r){return F(e,r),r=>g(e,t,[r])}function vr(e,t,r){return F(e,r),r=>g(e,t,[r])}function wr(e,t,r){return F(e,r),r=>S(e,t,[r])}function Rr(e,t){if(\"bytes\"!==(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function Tr(e,t){L(e,t);const r=null==e?void 0:e.preventAbort,o=null==e?void 0:e.preventCancel,n=null==e?void 0:e.preventClose,a=null==e?void 0:e.signal;return void 0!==a&&function(e,t){if(!function(e){if(\"object\"!=typeof e||null===e)return!1;try{return\"boolean\"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(`${t} is not an AbortSignal.`)}(a,`${t} has member 'signal' that`),{preventAbort:Boolean(r),preventCancel:Boolean(o),preventClose:Boolean(n),signal:a}}Object.defineProperties(ReadableStreamDefaultController.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),o(ReadableStreamDefaultController.prototype.close,\"close\"),o(ReadableStreamDefaultController.prototype.enqueue,\"enqueue\"),o(ReadableStreamDefaultController.prototype.error,\"error\"),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(ReadableStreamDefaultController.prototype,Symbol.toStringTag,{value:\"ReadableStreamDefaultController\",configurable:!0});class ReadableStream{constructor(e={},t={}){void 0===e?e=null:I(e,\"First parameter\");const r=ct(t,\"Second parameter\"),o=function(e,t){L(e,t);const r=e,o=null==r?void 0:r.autoAllocateChunkSize,n=null==r?void 0:r.cancel,a=null==r?void 0:r.pull,i=null==r?void 0:r.start,l=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===o?void 0:Q(o,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===n?void 0:gr(n,r,`${t} has member 'cancel' that`),pull:void 0===a?void 0:vr(a,r,`${t} has member 'pull' that`),start:void 0===i?void 0:wr(i,r,`${t} has member 'start' that`),type:void 0===l?void 0:Rr(l,`${t} has member 'type' that`)}}(e,\"First parameter\");if(qr(this),\"bytes\"===o.type){if(void 0!==r.size)throw new RangeError(\"The strategy for a byte stream cannot have a size function\");!function(e,t,r){const o=Object.create(ReadableByteStreamController.prototype);let n,a,i;n=void 0!==t.start?()=>t.start(o):()=>{},a=void 0!==t.pull?()=>t.pull(o):()=>c(void 0),i=void 0!==t.cancel?e=>t.cancel(e):()=>c(void 0);const l=t.autoAllocateChunkSize;if(0===l)throw new TypeError(\"autoAllocateChunkSize must be greater than 0\");Xe(e,o,n,a,i,r,l)}(this,o,st(r,0))}else{const e=ut(r);!function(e,t,r,o){const n=Object.create(ReadableStreamDefaultController.prototype);let a,i,l;a=void 0!==t.start?()=>t.start(n):()=>{},i=void 0!==t.pull?()=>t.pull(n):()=>c(void 0),l=void 0!==t.cancel?e=>t.cancel(e):()=>c(void 0),_r(e,n,a,i,l,r,o)}(this,o,st(r,1),e)}}get locked(){if(!Er(this))throw jr(\"locked\");return Wr(this)}cancel(e=void 0){return Er(this)?Wr(this)?d(new TypeError(\"Cannot cancel a stream that already has a reader\")):Or(this,e):d(jr(\"cancel\"))}getReader(e=void 0){if(!Er(this))throw jr(\"getReader\");return void 0===function(e,t){L(e,t);const r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:Ze(r,`${t} has member 'mode' that`)}}(e,\"First parameter\").mode?H(this):et(this)}pipeThrough(e,t={}){if(!Er(this))throw jr(\"pipeThrough\");$(e,1,\"pipeThrough\");const r=function(e,t){L(e,t);const r=null==e?void 0:e.readable;M(r,\"readable\",\"ReadableWritablePair\"),N(r,`${t} has member 'readable' that`);const o=null==e?void 0:e.writable;return M(o,\"writable\",\"ReadableWritablePair\"),_t(o,`${t} has member 'writable' that`),{readable:r,writable:o}}(e,\"First parameter\"),o=Tr(t,\"Second parameter\");if(Wr(this))throw new TypeError(\"ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream\");if(vt(r.writable))throw new TypeError(\"ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream\");return p(ir(this,r.writable,o.preventClose,o.preventAbort,o.preventCancel,o.signal)),r.readable}pipeTo(e,t={}){if(!Er(this))return d(jr(\"pipeTo\"));if(void 0===e)return d(\"Parameter 1 is required in 'pipeTo'.\");if(!gt(e))return d(new TypeError(\"ReadableStream.prototype.pipeTo's first argument must be a WritableStream\"));let r;try{r=Tr(t,\"Second parameter\")}catch(e){return d(e)}return Wr(this)?d(new TypeError(\"ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream\")):vt(e)?d(new TypeError(\"ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream\")):ir(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!Er(this))throw jr(\"tee\");return ne(yr(this))}values(e=void 0){if(!Er(this))throw jr(\"values\");return function(e,t){const r=H(e),o=new he(r,t),n=Object.create(me);return n._asyncIteratorImpl=o,n}(this,function(e,t){L(e,t);const r=null==e?void 0:e.preventCancel;return{preventCancel:Boolean(r)}}(e,\"First parameter\").preventCancel)}[de](e){return this.values(e)}static from(e){return Sr(e)}}function Cr(e,t,r,o=1,n=(()=>1)){const a=Object.create(ReadableStream.prototype);qr(a);return _r(a,Object.create(ReadableStreamDefaultController.prototype),e,t,r,o,n),a}function Pr(e,t,r){const o=Object.create(ReadableStream.prototype);qr(o);return Xe(o,Object.create(ReadableByteStreamController.prototype),e,t,r,0,void 0),o}function qr(e){e._state=\"readable\",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Er(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_readableStreamController\")&&e instanceof ReadableStream)}function Wr(e){return void 0!==e._reader}function Or(t,r){if(t._disturbed=!0,\"closed\"===t._state)return c(void 0);if(\"errored\"===t._state)return d(t._storedError);Br(t);const o=t._reader;if(void 0!==o&&nt(o)){const e=o._readIntoRequests;o._readIntoRequests=new v,e.forEach((e=>{e._closeSteps(void 0)}))}return _(t._readableStreamController[T](r),e)}function Br(e){e._state=\"closed\";const t=e._reader;if(void 0!==t&&(A(t),J(t))){const e=t._readRequests;t._readRequests=new v,e.forEach((e=>{e._closeSteps()}))}}function kr(e,t){e._state=\"errored\",e._storedError=t;const r=e._reader;void 0!==r&&(j(r,t),J(r)?Z(r,t):it(r,t))}function jr(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function Ar(e,t){L(e,t);const r=null==e?void 0:e.highWaterMark;return M(r,\"highWaterMark\",\"QueuingStrategyInit\"),{highWaterMark:Y(r)}}Object.defineProperties(ReadableStream,{from:{enumerable:!0}}),Object.defineProperties(ReadableStream.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),o(ReadableStream.from,\"from\"),o(ReadableStream.prototype.cancel,\"cancel\"),o(ReadableStream.prototype.getReader,\"getReader\"),o(ReadableStream.prototype.pipeThrough,\"pipeThrough\"),o(ReadableStream.prototype.pipeTo,\"pipeTo\"),o(ReadableStream.prototype.tee,\"tee\"),o(ReadableStream.prototype.values,\"values\"),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(ReadableStream.prototype,Symbol.toStringTag,{value:\"ReadableStream\",configurable:!0}),Object.defineProperty(ReadableStream.prototype,de,{value:ReadableStream.prototype.values,writable:!0,configurable:!0});const zr=e=>e.byteLength;o(zr,\"size\");class ByteLengthQueuingStrategy{constructor(e){$(e,1,\"ByteLengthQueuingStrategy\"),e=Ar(e,\"First parameter\"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!Lr(this))throw Dr(\"highWaterMark\");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Lr(this))throw Dr(\"size\");return zr}}function Dr(e){return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function Lr(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_byteLengthQueuingStrategyHighWaterMark\")&&e instanceof ByteLengthQueuingStrategy)}Object.defineProperties(ByteLengthQueuingStrategy.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(ByteLengthQueuingStrategy.prototype,Symbol.toStringTag,{value:\"ByteLengthQueuingStrategy\",configurable:!0});const Fr=()=>1;o(Fr,\"size\");class CountQueuingStrategy{constructor(e){$(e,1,\"CountQueuingStrategy\"),e=Ar(e,\"First parameter\"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!$r(this))throw Ir(\"highWaterMark\");return this._countQueuingStrategyHighWaterMark}get size(){if(!$r(this))throw Ir(\"size\");return Fr}}function Ir(e){return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function $r(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_countQueuingStrategyHighWaterMark\")&&e instanceof CountQueuingStrategy)}function Mr(e,t,r){return F(e,r),r=>g(e,t,[r])}function Yr(e,t,r){return F(e,r),r=>S(e,t,[r])}function xr(e,t,r){return F(e,r),(r,o)=>g(e,t,[r,o])}function Qr(e,t,r){return F(e,r),r=>g(e,t,[r])}Object.defineProperties(CountQueuingStrategy.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(CountQueuingStrategy.prototype,Symbol.toStringTag,{value:\"CountQueuingStrategy\",configurable:!0});class TransformStream{constructor(e={},t={},r={}){void 0===e&&(e=null);const o=ct(t,\"Second parameter\"),n=ct(r,\"Third parameter\"),a=function(e,t){L(e,t);const r=null==e?void 0:e.cancel,o=null==e?void 0:e.flush,n=null==e?void 0:e.readableType,a=null==e?void 0:e.start,i=null==e?void 0:e.transform,l=null==e?void 0:e.writableType;return{cancel:void 0===r?void 0:Qr(r,e,`${t} has member 'cancel' that`),flush:void 0===o?void 0:Mr(o,e,`${t} has member 'flush' that`),readableType:n,start:void 0===a?void 0:Yr(a,e,`${t} has member 'start' that`),transform:void 0===i?void 0:xr(i,e,`${t} has member 'transform' that`),writableType:l}}(e,\"First parameter\");if(void 0!==a.readableType)throw new RangeError(\"Invalid readableType specified\");if(void 0!==a.writableType)throw new RangeError(\"Invalid writableType specified\");const i=st(n,0),l=ut(n),s=st(o,1),f=ut(o);let h;!function(e,t,r,o,n,a){function i(){return t}function l(t){return function(e,t){const r=e._transformStreamController;if(e._backpressure){return _(e._backpressureChangePromise,(()=>{const o=e._writable;if(\"erroring\"===o._state)throw o._storedError;return Zr(r,t)}))}return Zr(r,t)}(e,t)}function s(t){return function(e,t){const r=e._transformStreamController;if(void 0!==r._finishPromise)return r._finishPromise;const o=e._readable;r._finishPromise=u(((e,t)=>{r._finishPromise_resolve=e,r._finishPromise_reject=t}));const n=r._cancelAlgorithm(t);return Jr(r),b(n,(()=>(\"errored\"===o._state?ro(r,o._storedError):(br(o._readableStreamController,t),to(r)),null)),(e=>(br(o._readableStreamController,e),ro(r,e),null))),r._finishPromise}(e,t)}function c(){return function(e){const t=e._transformStreamController;if(void 0!==t._finishPromise)return t._finishPromise;const r=e._readable;t._finishPromise=u(((e,r)=>{t._finishPromise_resolve=e,t._finishPromise_reject=r}));const o=t._flushAlgorithm();return Jr(t),b(o,(()=>(\"errored\"===r._state?ro(t,r._storedError):(dr(r._readableStreamController),to(t)),null)),(e=>(br(r._readableStreamController,e),ro(t,e),null))),t._finishPromise}(e)}function d(){return function(e){return Gr(e,!1),e._backpressureChangePromise}(e)}function f(t){return function(e,t){const r=e._transformStreamController;if(void 0!==r._finishPromise)return r._finishPromise;const o=e._writable;r._finishPromise=u(((e,t)=>{r._finishPromise_resolve=e,r._finishPromise_reject=t}));const n=r._cancelAlgorithm(t);return Jr(r),b(n,(()=>(\"errored\"===o._state?ro(r,o._storedError):(Yt(o._writableStreamController,t),Ur(e),to(r)),null)),(t=>(Yt(o._writableStreamController,t),Ur(e),ro(r,t),null))),r._finishPromise}(e,t)}e._writable=function(e,t,r,o,n=1,a=(()=>1)){const i=Object.create(WritableStream.prototype);return St(i),Ft(i,Object.create(WritableStreamDefaultController.prototype),e,t,r,o,n,a),i}(i,l,c,s,r,o),e._readable=Cr(i,d,f,n,a),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Gr(e,!0),e._transformStreamController=void 0}(this,u((e=>{h=e})),s,f,i,l),function(e,t){const r=Object.create(TransformStreamDefaultController.prototype);let o,n,a;o=void 0!==t.transform?e=>t.transform(e,r):e=>{try{return Kr(r,e),c(void 0)}catch(e){return d(e)}};n=void 0!==t.flush?()=>t.flush(r):()=>c(void 0);a=void 0!==t.cancel?e=>t.cancel(e):()=>c(void 0);!function(e,t,r,o,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=o,t._cancelAlgorithm=n,t._finishPromise=void 0,t._finishPromise_resolve=void 0,t._finishPromise_reject=void 0}(e,r,o,n,a)}(this,a),void 0!==a.start?h(a.start(this._transformStreamController)):h(void 0)}get readable(){if(!Nr(this))throw oo(\"readable\");return this._readable}get writable(){if(!Nr(this))throw oo(\"writable\");return this._writable}}function Nr(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_transformStreamController\")&&e instanceof TransformStream)}function Hr(e,t){br(e._readable._readableStreamController,t),Vr(e,t)}function Vr(e,t){Jr(e._transformStreamController),Yt(e._writable._writableStreamController,t),Ur(e)}function Ur(e){e._backpressure&&Gr(e,!1)}function Gr(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=u((t=>{e._backpressureChangePromise_resolve=t})),e._backpressure=t}Object.defineProperties(TransformStream.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(TransformStream.prototype,Symbol.toStringTag,{value:\"TransformStream\",configurable:!0});class TransformStreamDefaultController{constructor(){throw new TypeError(\"Illegal constructor\")}get desiredSize(){if(!Xr(this))throw eo(\"desiredSize\");return hr(this._controlledTransformStream._readable._readableStreamController)}enqueue(e=void 0){if(!Xr(this))throw eo(\"enqueue\");Kr(this,e)}error(e=void 0){if(!Xr(this))throw eo(\"error\");var t;t=e,Hr(this._controlledTransformStream,t)}terminate(){if(!Xr(this))throw eo(\"terminate\");!function(e){const t=e._controlledTransformStream;dr(t._readable._readableStreamController);const r=new TypeError(\"TransformStream terminated\");Vr(t,r)}(this)}}function Xr(e){return!!t(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_controlledTransformStream\")&&e instanceof TransformStreamDefaultController)}function Jr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0,e._cancelAlgorithm=void 0}function Kr(e,t){const r=e._controlledTransformStream,o=r._readable._readableStreamController;if(!mr(o))throw new TypeError(\"Readable side is not in a state that permits enqueue\");try{fr(o,t)}catch(e){throw Vr(r,e),r._readable._storedError}const n=function(e){return!ur(e)}(o);n!==r._backpressure&&Gr(r,!0)}function Zr(e,t){return _(e._transformAlgorithm(t),void 0,(t=>{throw Hr(e._controlledTransformStream,t),t}))}function eo(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function to(e){void 0!==e._finishPromise_resolve&&(e._finishPromise_resolve(),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0)}function ro(e,t){void 0!==e._finishPromise_reject&&(p(e._finishPromise),e._finishPromise_reject(t),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0)}function oo(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(TransformStreamDefaultController.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),o(TransformStreamDefaultController.prototype.enqueue,\"enqueue\"),o(TransformStreamDefaultController.prototype.error,\"error\"),o(TransformStreamDefaultController.prototype.terminate,\"terminate\"),\"symbol\"==typeof Symbol.toStringTag&&Object.defineProperty(TransformStreamDefaultController.prototype,Symbol.toStringTag,{value:\"TransformStreamDefaultController\",configurable:!0});export{ByteLengthQueuingStrategy,CountQueuingStrategy,ReadableByteStreamController,ReadableStream,ReadableStreamBYOBReader,ReadableStreamBYOBRequest,ReadableStreamDefaultController,ReadableStreamDefaultReader,TransformStream,TransformStreamDefaultController,WritableStream,WritableStreamDefaultController,WritableStreamDefaultWriter};\n","var niceErrors = {\n 0: \"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'\",\n 1: function _(annotationType, key) {\n return \"Cannot apply '\" + annotationType + \"' to '\" + key.toString() + \"': Field not found.\";\n },\n /*\n 2(prop) {\n return `invalid decorator for '${prop.toString()}'`\n },\n 3(prop) {\n return `Cannot decorate '${prop.toString()}': action can only be used on properties with a function value.`\n },\n 4(prop) {\n return `Cannot decorate '${prop.toString()}': computed can only be used on getter properties.`\n },\n */\n 5: \"'keys()' can only be used on observable objects, arrays, sets and maps\",\n 6: \"'values()' can only be used on observable objects, arrays, sets and maps\",\n 7: \"'entries()' can only be used on observable objects, arrays and maps\",\n 8: \"'set()' can only be used on observable objects, arrays and maps\",\n 9: \"'remove()' can only be used on observable objects, arrays and maps\",\n 10: \"'has()' can only be used on observable objects, arrays and maps\",\n 11: \"'get()' can only be used on observable objects, arrays and maps\",\n 12: \"Invalid annotation\",\n 13: \"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)\",\n 14: \"Intercept handlers should return nothing or a change object\",\n 15: \"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)\",\n 16: \"Modification exception: the internal structure of an observable array was changed.\",\n 17: function _(index, length) {\n return \"[mobx.array] Index out of bounds, \" + index + \" is larger than \" + length;\n },\n 18: \"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js\",\n 19: function _(other) {\n return \"Cannot initialize from classes that inherit from Map: \" + other.constructor.name;\n },\n 20: function _(other) {\n return \"Cannot initialize map from \" + other;\n },\n 21: function _(dataStructure) {\n return \"Cannot convert to map from '\" + dataStructure + \"'\";\n },\n 22: \"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js\",\n 23: \"It is not possible to get index atoms from arrays\",\n 24: function _(thing) {\n return \"Cannot obtain administration from \" + thing;\n },\n 25: function _(property, name) {\n return \"the entry '\" + property + \"' does not exist in the observable map '\" + name + \"'\";\n },\n 26: \"please specify a property\",\n 27: function _(property, name) {\n return \"no observable property '\" + property.toString() + \"' found on the observable object '\" + name + \"'\";\n },\n 28: function _(thing) {\n return \"Cannot obtain atom from \" + thing;\n },\n 29: \"Expecting some object\",\n 30: \"invalid action stack. did you forget to finish an action?\",\n 31: \"missing option for computed: get\",\n 32: function _(name, derivation) {\n return \"Cycle detected in computation \" + name + \": \" + derivation;\n },\n 33: function _(name) {\n return \"The setter of computed value '\" + name + \"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?\";\n },\n 34: function _(name) {\n return \"[ComputedValue '\" + name + \"'] It is not possible to assign a new value to a computed value.\";\n },\n 35: \"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`\",\n 36: \"isolateGlobalState should be called before MobX is running any reactions\",\n 37: function _(method) {\n return \"[mobx] `observableArray.\" + method + \"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice().\" + method + \"()` instead\";\n },\n 38: \"'ownKeys()' can only be used on observable objects\",\n 39: \"'defineProperty()' can only be used on observable objects\"\n};\nvar errors = process.env.NODE_ENV !== \"production\" ? niceErrors : {};\nfunction die(error) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n if (process.env.NODE_ENV !== \"production\") {\n var e = typeof error === \"string\" ? error : errors[error];\n if (typeof e === \"function\") e = e.apply(null, args);\n throw new Error(\"[MobX] \" + e);\n }\n throw new Error(typeof error === \"number\" ? \"[MobX] minified error nr: \" + error + (args.length ? \" \" + args.map(String).join(\",\") : \"\") + \". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts\" : \"[MobX] \" + error);\n}\n\nvar mockGlobal = {};\nfunction getGlobal() {\n if (typeof globalThis !== \"undefined\") {\n return globalThis;\n }\n if (typeof window !== \"undefined\") {\n return window;\n }\n if (typeof global !== \"undefined\") {\n return global;\n }\n if (typeof self !== \"undefined\") {\n return self;\n }\n return mockGlobal;\n}\n\n// We shorten anything used > 5 times\nvar assign = Object.assign;\nvar getDescriptor = Object.getOwnPropertyDescriptor;\nvar defineProperty = Object.defineProperty;\nvar objectPrototype = Object.prototype;\nvar EMPTY_ARRAY = [];\nObject.freeze(EMPTY_ARRAY);\nvar EMPTY_OBJECT = {};\nObject.freeze(EMPTY_OBJECT);\nvar hasProxy = typeof Proxy !== \"undefined\";\nvar plainObjectString = /*#__PURE__*/Object.toString();\nfunction assertProxies() {\n if (!hasProxy) {\n die(process.env.NODE_ENV !== \"production\" ? \"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`\" : \"Proxy not available\");\n }\n}\nfunction warnAboutProxyRequirement(msg) {\n if (process.env.NODE_ENV !== \"production\" && globalState.verifyProxies) {\n die(\"MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to \" + msg);\n }\n}\nfunction getNextId() {\n return ++globalState.mobxGuid;\n}\n/**\n * Makes sure that the provided function is invoked at most once.\n */\nfunction once(func) {\n var invoked = false;\n return function () {\n if (invoked) {\n return;\n }\n invoked = true;\n return func.apply(this, arguments);\n };\n}\nvar noop = function noop() {};\nfunction isFunction(fn) {\n return typeof fn === \"function\";\n}\nfunction isStringish(value) {\n var t = typeof value;\n switch (t) {\n case \"string\":\n case \"symbol\":\n case \"number\":\n return true;\n }\n return false;\n}\nfunction isObject(value) {\n return value !== null && typeof value === \"object\";\n}\nfunction isPlainObject(value) {\n if (!isObject(value)) {\n return false;\n }\n var proto = Object.getPrototypeOf(value);\n if (proto == null) {\n return true;\n }\n var protoConstructor = Object.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof protoConstructor === \"function\" && protoConstructor.toString() === plainObjectString;\n}\n// https://stackoverflow.com/a/37865170\nfunction isGenerator(obj) {\n var constructor = obj == null ? void 0 : obj.constructor;\n if (!constructor) {\n return false;\n }\n if (\"GeneratorFunction\" === constructor.name || \"GeneratorFunction\" === constructor.displayName) {\n return true;\n }\n return false;\n}\nfunction addHiddenProp(object, propName, value) {\n defineProperty(object, propName, {\n enumerable: false,\n writable: true,\n configurable: true,\n value: value\n });\n}\nfunction addHiddenFinalProp(object, propName, value) {\n defineProperty(object, propName, {\n enumerable: false,\n writable: false,\n configurable: true,\n value: value\n });\n}\nfunction createInstanceofPredicate(name, theClass) {\n var propName = \"isMobX\" + name;\n theClass.prototype[propName] = true;\n return function (x) {\n return isObject(x) && x[propName] === true;\n };\n}\n/**\n * Yields true for both native and observable Map, even across different windows.\n */\nfunction isES6Map(thing) {\n return thing != null && Object.prototype.toString.call(thing) === \"[object Map]\";\n}\n/**\n * Makes sure a Map is an instance of non-inherited native or observable Map.\n */\nfunction isPlainES6Map(thing) {\n var mapProto = Object.getPrototypeOf(thing);\n var objectProto = Object.getPrototypeOf(mapProto);\n var nullProto = Object.getPrototypeOf(objectProto);\n return nullProto === null;\n}\n/**\n * Yields true for both native and observable Set, even across different windows.\n */\nfunction isES6Set(thing) {\n return thing != null && Object.prototype.toString.call(thing) === \"[object Set]\";\n}\nvar hasGetOwnPropertySymbols = typeof Object.getOwnPropertySymbols !== \"undefined\";\n/**\n * Returns the following: own enumerable keys and symbols.\n */\nfunction getPlainObjectKeys(object) {\n var keys = Object.keys(object);\n // Not supported in IE, so there are not going to be symbol props anyway...\n if (!hasGetOwnPropertySymbols) {\n return keys;\n }\n var symbols = Object.getOwnPropertySymbols(object);\n if (!symbols.length) {\n return keys;\n }\n return [].concat(keys, symbols.filter(function (s) {\n return objectPrototype.propertyIsEnumerable.call(object, s);\n }));\n}\n// From Immer utils\n// Returns all own keys, including non-enumerable and symbolic\nvar ownKeys = typeof Reflect !== \"undefined\" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {\n return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));\n} : /* istanbul ignore next */Object.getOwnPropertyNames;\nfunction stringifyKey(key) {\n if (typeof key === \"string\") {\n return key;\n }\n if (typeof key === \"symbol\") {\n return key.toString();\n }\n return new String(key).toString();\n}\nfunction toPrimitive(value) {\n return value === null ? null : typeof value === \"object\" ? \"\" + value : value;\n}\nfunction hasProp(target, prop) {\n return objectPrototype.hasOwnProperty.call(target, prop);\n}\n// From Immer utils\nvar getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors(target) {\n // Polyfill needed for Hermes and IE, see https://github.com/facebook/hermes/issues/274\n var res = {};\n // Note: without polyfill for ownKeys, symbols won't be picked up\n ownKeys(target).forEach(function (key) {\n res[key] = getDescriptor(target, key);\n });\n return res;\n};\nfunction getFlag(flags, mask) {\n return !!(flags & mask);\n}\nfunction setFlag(flags, mask, newValue) {\n if (newValue) {\n flags |= mask;\n } else {\n flags &= ~mask;\n }\n return flags;\n}\n\nfunction _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nfunction _defineProperties(e, r) {\n for (var t = 0; t < r.length; t++) {\n var o = r[t];\n o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);\n }\n}\nfunction _createClass(e, r, t) {\n return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), e;\n}\nfunction _createForOfIteratorHelperLoose(r, e) {\n var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (t) return (t = t.call(r)).next.bind(t);\n if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) {\n t && (r = t);\n var o = 0;\n return function () {\n return o >= r.length ? {\n done: !0\n } : {\n done: !1,\n value: r[o++]\n };\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);\n}\nfunction _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nfunction _toPrimitive(t, r) {\n if (\"object\" != typeof t || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != typeof i) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nfunction _toPropertyKey(t) {\n var i = _toPrimitive(t, \"string\");\n return \"symbol\" == typeof i ? i : i + \"\";\n}\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return _arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;\n }\n}\n\nvar storedAnnotationsSymbol = /*#__PURE__*/Symbol(\"mobx-stored-annotations\");\n/**\n * Creates a function that acts as\n * - decorator\n * - annotation object\n */\nfunction createDecoratorAnnotation(annotation) {\n function decorator(target, property) {\n if (is20223Decorator(property)) {\n return annotation.decorate_20223_(target, property);\n } else {\n storeAnnotation(target, property, annotation);\n }\n }\n return Object.assign(decorator, annotation);\n}\n/**\n * Stores annotation to prototype,\n * so it can be inspected later by `makeObservable` called from constructor\n */\nfunction storeAnnotation(prototype, key, annotation) {\n if (!hasProp(prototype, storedAnnotationsSymbol)) {\n addHiddenProp(prototype, storedAnnotationsSymbol, _extends({}, prototype[storedAnnotationsSymbol]));\n }\n // @override must override something\n if (process.env.NODE_ENV !== \"production\" && isOverride(annotation) && !hasProp(prototype[storedAnnotationsSymbol], key)) {\n var fieldName = prototype.constructor.name + \".prototype.\" + key.toString();\n die(\"'\" + fieldName + \"' is decorated with 'override', \" + \"but no such decorated member was found on prototype.\");\n }\n // Cannot re-decorate\n assertNotDecorated(prototype, annotation, key);\n // Ignore override\n if (!isOverride(annotation)) {\n prototype[storedAnnotationsSymbol][key] = annotation;\n }\n}\nfunction assertNotDecorated(prototype, annotation, key) {\n if (process.env.NODE_ENV !== \"production\" && !isOverride(annotation) && hasProp(prototype[storedAnnotationsSymbol], key)) {\n var fieldName = prototype.constructor.name + \".prototype.\" + key.toString();\n var currentAnnotationType = prototype[storedAnnotationsSymbol][key].annotationType_;\n var requestedAnnotationType = annotation.annotationType_;\n die(\"Cannot apply '@\" + requestedAnnotationType + \"' to '\" + fieldName + \"':\" + (\"\\nThe field is already decorated with '@\" + currentAnnotationType + \"'.\") + \"\\nRe-decorating fields is not allowed.\" + \"\\nUse '@override' decorator for methods overridden by subclass.\");\n }\n}\n/**\n * Collects annotations from prototypes and stores them on target (instance)\n */\nfunction collectStoredAnnotations(target) {\n if (!hasProp(target, storedAnnotationsSymbol)) {\n // if (__DEV__ && !target[storedAnnotationsSymbol]) {\n // die(\n // `No annotations were passed to makeObservable, but no decorated members have been found either`\n // )\n // }\n // We need a copy as we will remove annotation from the list once it's applied.\n addHiddenProp(target, storedAnnotationsSymbol, _extends({}, target[storedAnnotationsSymbol]));\n }\n return target[storedAnnotationsSymbol];\n}\nfunction is20223Decorator(context) {\n return typeof context == \"object\" && typeof context[\"kind\"] == \"string\";\n}\nfunction assert20223DecoratorType(context, types) {\n if (process.env.NODE_ENV !== \"production\" && !types.includes(context.kind)) {\n die(\"The decorator applied to '\" + String(context.name) + \"' cannot be used on a \" + context.kind + \" element\");\n }\n}\n\nvar $mobx = /*#__PURE__*/Symbol(\"mobx administration\");\nvar Atom = /*#__PURE__*/function () {\n /**\n * Create a new atom. For debugging purposes it is recommended to give it a name.\n * The onBecomeObserved and onBecomeUnobserved callbacks can be used for resource management.\n */\n function Atom(name_) {\n if (name_ === void 0) {\n name_ = process.env.NODE_ENV !== \"production\" ? \"Atom@\" + getNextId() : \"Atom\";\n }\n this.name_ = void 0;\n this.flags_ = 0;\n this.observers_ = new Set();\n this.lastAccessedBy_ = 0;\n this.lowestObserverState_ = IDerivationState_.NOT_TRACKING_;\n // onBecomeObservedListeners\n this.onBOL = void 0;\n // onBecomeUnobservedListeners\n this.onBUOL = void 0;\n this.name_ = name_;\n }\n // for effective unobserving. BaseAtom has true, for extra optimization, so its onBecomeUnobserved never gets called, because it's not needed\n var _proto = Atom.prototype;\n _proto.onBO = function onBO() {\n if (this.onBOL) {\n this.onBOL.forEach(function (listener) {\n return listener();\n });\n }\n };\n _proto.onBUO = function onBUO() {\n if (this.onBUOL) {\n this.onBUOL.forEach(function (listener) {\n return listener();\n });\n }\n }\n /**\n * Invoke this method to notify mobx that your atom has been used somehow.\n * Returns true if there is currently a reactive context.\n */;\n _proto.reportObserved = function reportObserved$1() {\n return reportObserved(this);\n }\n /**\n * Invoke this method _after_ this method has changed to signal mobx that all its observers should invalidate.\n */;\n _proto.reportChanged = function reportChanged() {\n startBatch();\n propagateChanged(this);\n endBatch();\n };\n _proto.toString = function toString() {\n return this.name_;\n };\n return _createClass(Atom, [{\n key: \"isBeingObserved\",\n get: function get() {\n return getFlag(this.flags_, Atom.isBeingObservedMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Atom.isBeingObservedMask_, newValue);\n }\n }, {\n key: \"isPendingUnobservation\",\n get: function get() {\n return getFlag(this.flags_, Atom.isPendingUnobservationMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Atom.isPendingUnobservationMask_, newValue);\n }\n }, {\n key: \"diffValue\",\n get: function get() {\n return getFlag(this.flags_, Atom.diffValueMask_) ? 1 : 0;\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Atom.diffValueMask_, newValue === 1 ? true : false);\n }\n }]);\n}();\nAtom.isBeingObservedMask_ = 1;\nAtom.isPendingUnobservationMask_ = 2;\nAtom.diffValueMask_ = 4;\nvar isAtom = /*#__PURE__*/createInstanceofPredicate(\"Atom\", Atom);\nfunction createAtom(name, onBecomeObservedHandler, onBecomeUnobservedHandler) {\n if (onBecomeObservedHandler === void 0) {\n onBecomeObservedHandler = noop;\n }\n if (onBecomeUnobservedHandler === void 0) {\n onBecomeUnobservedHandler = noop;\n }\n var atom = new Atom(name);\n // default `noop` listener will not initialize the hook Set\n if (onBecomeObservedHandler !== noop) {\n onBecomeObserved(atom, onBecomeObservedHandler);\n }\n if (onBecomeUnobservedHandler !== noop) {\n onBecomeUnobserved(atom, onBecomeUnobservedHandler);\n }\n return atom;\n}\n\nfunction identityComparer(a, b) {\n return a === b;\n}\nfunction structuralComparer(a, b) {\n return deepEqual(a, b);\n}\nfunction shallowComparer(a, b) {\n return deepEqual(a, b, 1);\n}\nfunction defaultComparer(a, b) {\n if (Object.is) {\n return Object.is(a, b);\n }\n return a === b ? a !== 0 || 1 / a === 1 / b : a !== a && b !== b;\n}\nvar comparer = {\n identity: identityComparer,\n structural: structuralComparer,\n \"default\": defaultComparer,\n shallow: shallowComparer\n};\n\nfunction deepEnhancer(v, _, name) {\n // it is an observable already, done\n if (isObservable(v)) {\n return v;\n }\n // something that can be converted and mutated?\n if (Array.isArray(v)) {\n return observable.array(v, {\n name: name\n });\n }\n if (isPlainObject(v)) {\n return observable.object(v, undefined, {\n name: name\n });\n }\n if (isES6Map(v)) {\n return observable.map(v, {\n name: name\n });\n }\n if (isES6Set(v)) {\n return observable.set(v, {\n name: name\n });\n }\n if (typeof v === \"function\" && !isAction(v) && !isFlow(v)) {\n if (isGenerator(v)) {\n return flow(v);\n } else {\n return autoAction(name, v);\n }\n }\n return v;\n}\nfunction shallowEnhancer(v, _, name) {\n if (v === undefined || v === null) {\n return v;\n }\n if (isObservableObject(v) || isObservableArray(v) || isObservableMap(v) || isObservableSet(v)) {\n return v;\n }\n if (Array.isArray(v)) {\n return observable.array(v, {\n name: name,\n deep: false\n });\n }\n if (isPlainObject(v)) {\n return observable.object(v, undefined, {\n name: name,\n deep: false\n });\n }\n if (isES6Map(v)) {\n return observable.map(v, {\n name: name,\n deep: false\n });\n }\n if (isES6Set(v)) {\n return observable.set(v, {\n name: name,\n deep: false\n });\n }\n if (process.env.NODE_ENV !== \"production\") {\n die(\"The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets\");\n }\n}\nfunction referenceEnhancer(newValue) {\n // never turn into an observable\n return newValue;\n}\nfunction refStructEnhancer(v, oldValue) {\n if (process.env.NODE_ENV !== \"production\" && isObservable(v)) {\n die(\"observable.struct should not be used with observable values\");\n }\n if (deepEqual(v, oldValue)) {\n return oldValue;\n }\n return v;\n}\n\nvar OVERRIDE = \"override\";\nvar override = /*#__PURE__*/createDecoratorAnnotation({\n annotationType_: OVERRIDE,\n make_: make_,\n extend_: extend_,\n decorate_20223_: decorate_20223_\n});\nfunction isOverride(annotation) {\n return annotation.annotationType_ === OVERRIDE;\n}\nfunction make_(adm, key) {\n // Must not be plain object\n if (process.env.NODE_ENV !== \"production\" && adm.isPlainObject_) {\n die(\"Cannot apply '\" + this.annotationType_ + \"' to '\" + adm.name_ + \".\" + key.toString() + \"':\" + (\"\\n'\" + this.annotationType_ + \"' cannot be used on plain objects.\"));\n }\n // Must override something\n if (process.env.NODE_ENV !== \"production\" && !hasProp(adm.appliedAnnotations_, key)) {\n die(\"'\" + adm.name_ + \".\" + key.toString() + \"' is annotated with '\" + this.annotationType_ + \"', \" + \"but no such annotated member was found on prototype.\");\n }\n return 0 /* MakeResult.Cancel */;\n}\nfunction extend_(adm, key, descriptor, proxyTrap) {\n die(\"'\" + this.annotationType_ + \"' can only be used with 'makeObservable'\");\n}\nfunction decorate_20223_(desc, context) {\n console.warn(\"'\" + this.annotationType_ + \"' cannot be used with decorators - this is a no-op\");\n}\n\nfunction createActionAnnotation(name, options) {\n return {\n annotationType_: name,\n options_: options,\n make_: make_$1,\n extend_: extend_$1,\n decorate_20223_: decorate_20223_$1\n };\n}\nfunction make_$1(adm, key, descriptor, source) {\n var _this$options_;\n // bound\n if ((_this$options_ = this.options_) != null && _this$options_.bound) {\n return this.extend_(adm, key, descriptor, false) === null ? 0 /* MakeResult.Cancel */ : 1 /* MakeResult.Break */;\n }\n // own\n if (source === adm.target_) {\n return this.extend_(adm, key, descriptor, false) === null ? 0 /* MakeResult.Cancel */ : 2 /* MakeResult.Continue */;\n }\n // prototype\n if (isAction(descriptor.value)) {\n // A prototype could have been annotated already by other constructor,\n // rest of the proto chain must be annotated already\n return 1 /* MakeResult.Break */;\n }\n var actionDescriptor = createActionDescriptor(adm, this, key, descriptor, false);\n defineProperty(source, key, actionDescriptor);\n return 2 /* MakeResult.Continue */;\n}\nfunction extend_$1(adm, key, descriptor, proxyTrap) {\n var actionDescriptor = createActionDescriptor(adm, this, key, descriptor);\n return adm.defineProperty_(key, actionDescriptor, proxyTrap);\n}\nfunction decorate_20223_$1(mthd, context) {\n if (process.env.NODE_ENV !== \"production\") {\n assert20223DecoratorType(context, [\"method\", \"field\"]);\n }\n var kind = context.kind,\n name = context.name,\n addInitializer = context.addInitializer;\n var ann = this;\n var _createAction = function _createAction(m) {\n var _ann$options_$name, _ann$options_, _ann$options_$autoAct, _ann$options_2;\n return createAction((_ann$options_$name = (_ann$options_ = ann.options_) == null ? void 0 : _ann$options_.name) != null ? _ann$options_$name : name.toString(), m, (_ann$options_$autoAct = (_ann$options_2 = ann.options_) == null ? void 0 : _ann$options_2.autoAction) != null ? _ann$options_$autoAct : false);\n };\n if (kind == \"field\") {\n return function (initMthd) {\n var _ann$options_3;\n var mthd = initMthd;\n if (!isAction(mthd)) {\n mthd = _createAction(mthd);\n }\n if ((_ann$options_3 = ann.options_) != null && _ann$options_3.bound) {\n mthd = mthd.bind(this);\n mthd.isMobxAction = true;\n }\n return mthd;\n };\n }\n if (kind == \"method\") {\n var _this$options_2;\n if (!isAction(mthd)) {\n mthd = _createAction(mthd);\n }\n if ((_this$options_2 = this.options_) != null && _this$options_2.bound) {\n addInitializer(function () {\n var self = this;\n var bound = self[name].bind(self);\n bound.isMobxAction = true;\n self[name] = bound;\n });\n }\n return mthd;\n }\n die(\"Cannot apply '\" + ann.annotationType_ + \"' to '\" + String(name) + \"' (kind: \" + kind + \"):\" + (\"\\n'\" + ann.annotationType_ + \"' can only be used on properties with a function value.\"));\n}\nfunction assertActionDescriptor(adm, _ref, key, _ref2) {\n var annotationType_ = _ref.annotationType_;\n var value = _ref2.value;\n if (process.env.NODE_ENV !== \"production\" && !isFunction(value)) {\n die(\"Cannot apply '\" + annotationType_ + \"' to '\" + adm.name_ + \".\" + key.toString() + \"':\" + (\"\\n'\" + annotationType_ + \"' can only be used on properties with a function value.\"));\n }\n}\nfunction createActionDescriptor(adm, annotation, key, descriptor,\n// provides ability to disable safeDescriptors for prototypes\nsafeDescriptors) {\n var _annotation$options_, _annotation$options_$, _annotation$options_2, _annotation$options_$2, _annotation$options_3, _annotation$options_4, _adm$proxy_2;\n if (safeDescriptors === void 0) {\n safeDescriptors = globalState.safeDescriptors;\n }\n assertActionDescriptor(adm, annotation, key, descriptor);\n var value = descriptor.value;\n if ((_annotation$options_ = annotation.options_) != null && _annotation$options_.bound) {\n var _adm$proxy_;\n value = value.bind((_adm$proxy_ = adm.proxy_) != null ? _adm$proxy_ : adm.target_);\n }\n return {\n value: createAction((_annotation$options_$ = (_annotation$options_2 = annotation.options_) == null ? void 0 : _annotation$options_2.name) != null ? _annotation$options_$ : key.toString(), value, (_annotation$options_$2 = (_annotation$options_3 = annotation.options_) == null ? void 0 : _annotation$options_3.autoAction) != null ? _annotation$options_$2 : false,\n // https://github.com/mobxjs/mobx/discussions/3140\n (_annotation$options_4 = annotation.options_) != null && _annotation$options_4.bound ? (_adm$proxy_2 = adm.proxy_) != null ? _adm$proxy_2 : adm.target_ : undefined),\n // Non-configurable for classes\n // prevents accidental field redefinition in subclass\n configurable: safeDescriptors ? adm.isPlainObject_ : true,\n // https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058\n enumerable: false,\n // Non-obsevable, therefore non-writable\n // Also prevents rewriting in subclass constructor\n writable: safeDescriptors ? false : true\n };\n}\n\nfunction createFlowAnnotation(name, options) {\n return {\n annotationType_: name,\n options_: options,\n make_: make_$2,\n extend_: extend_$2,\n decorate_20223_: decorate_20223_$2\n };\n}\nfunction make_$2(adm, key, descriptor, source) {\n var _this$options_;\n // own\n if (source === adm.target_) {\n return this.extend_(adm, key, descriptor, false) === null ? 0 /* MakeResult.Cancel */ : 2 /* MakeResult.Continue */;\n }\n // prototype\n // bound - must annotate protos to support super.flow()\n if ((_this$options_ = this.options_) != null && _this$options_.bound && (!hasProp(adm.target_, key) || !isFlow(adm.target_[key]))) {\n if (this.extend_(adm, key, descriptor, false) === null) {\n return 0 /* MakeResult.Cancel */;\n }\n }\n if (isFlow(descriptor.value)) {\n // A prototype could have been annotated already by other constructor,\n // rest of the proto chain must be annotated already\n return 1 /* MakeResult.Break */;\n }\n var flowDescriptor = createFlowDescriptor(adm, this, key, descriptor, false, false);\n defineProperty(source, key, flowDescriptor);\n return 2 /* MakeResult.Continue */;\n}\nfunction extend_$2(adm, key, descriptor, proxyTrap) {\n var _this$options_2;\n var flowDescriptor = createFlowDescriptor(adm, this, key, descriptor, (_this$options_2 = this.options_) == null ? void 0 : _this$options_2.bound);\n return adm.defineProperty_(key, flowDescriptor, proxyTrap);\n}\nfunction decorate_20223_$2(mthd, context) {\n var _this$options_3;\n if (process.env.NODE_ENV !== \"production\") {\n assert20223DecoratorType(context, [\"method\"]);\n }\n var name = context.name,\n addInitializer = context.addInitializer;\n if (!isFlow(mthd)) {\n mthd = flow(mthd);\n }\n if ((_this$options_3 = this.options_) != null && _this$options_3.bound) {\n addInitializer(function () {\n var self = this;\n var bound = self[name].bind(self);\n bound.isMobXFlow = true;\n self[name] = bound;\n });\n }\n return mthd;\n}\nfunction assertFlowDescriptor(adm, _ref, key, _ref2) {\n var annotationType_ = _ref.annotationType_;\n var value = _ref2.value;\n if (process.env.NODE_ENV !== \"production\" && !isFunction(value)) {\n die(\"Cannot apply '\" + annotationType_ + \"' to '\" + adm.name_ + \".\" + key.toString() + \"':\" + (\"\\n'\" + annotationType_ + \"' can only be used on properties with a generator function value.\"));\n }\n}\nfunction createFlowDescriptor(adm, annotation, key, descriptor, bound,\n// provides ability to disable safeDescriptors for prototypes\nsafeDescriptors) {\n if (safeDescriptors === void 0) {\n safeDescriptors = globalState.safeDescriptors;\n }\n assertFlowDescriptor(adm, annotation, key, descriptor);\n var value = descriptor.value;\n // In case of flow.bound, the descriptor can be from already annotated prototype\n if (!isFlow(value)) {\n value = flow(value);\n }\n if (bound) {\n var _adm$proxy_;\n // We do not keep original function around, so we bind the existing flow\n value = value.bind((_adm$proxy_ = adm.proxy_) != null ? _adm$proxy_ : adm.target_);\n // This is normally set by `flow`, but `bind` returns new function...\n value.isMobXFlow = true;\n }\n return {\n value: value,\n // Non-configurable for classes\n // prevents accidental field redefinition in subclass\n configurable: safeDescriptors ? adm.isPlainObject_ : true,\n // https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058\n enumerable: false,\n // Non-obsevable, therefore non-writable\n // Also prevents rewriting in subclass constructor\n writable: safeDescriptors ? false : true\n };\n}\n\nfunction createComputedAnnotation(name, options) {\n return {\n annotationType_: name,\n options_: options,\n make_: make_$3,\n extend_: extend_$3,\n decorate_20223_: decorate_20223_$3\n };\n}\nfunction make_$3(adm, key, descriptor) {\n return this.extend_(adm, key, descriptor, false) === null ? 0 /* MakeResult.Cancel */ : 1 /* MakeResult.Break */;\n}\nfunction extend_$3(adm, key, descriptor, proxyTrap) {\n assertComputedDescriptor(adm, this, key, descriptor);\n return adm.defineComputedProperty_(key, _extends({}, this.options_, {\n get: descriptor.get,\n set: descriptor.set\n }), proxyTrap);\n}\nfunction decorate_20223_$3(get, context) {\n if (process.env.NODE_ENV !== \"production\") {\n assert20223DecoratorType(context, [\"getter\"]);\n }\n var ann = this;\n var key = context.name,\n addInitializer = context.addInitializer;\n addInitializer(function () {\n var adm = asObservableObject(this)[$mobx];\n var options = _extends({}, ann.options_, {\n get: get,\n context: this\n });\n options.name || (options.name = process.env.NODE_ENV !== \"production\" ? adm.name_ + \".\" + key.toString() : \"ObservableObject.\" + key.toString());\n adm.values_.set(key, new ComputedValue(options));\n });\n return function () {\n return this[$mobx].getObservablePropValue_(key);\n };\n}\nfunction assertComputedDescriptor(adm, _ref, key, _ref2) {\n var annotationType_ = _ref.annotationType_;\n var get = _ref2.get;\n if (process.env.NODE_ENV !== \"production\" && !get) {\n die(\"Cannot apply '\" + annotationType_ + \"' to '\" + adm.name_ + \".\" + key.toString() + \"':\" + (\"\\n'\" + annotationType_ + \"' can only be used on getter(+setter) properties.\"));\n }\n}\n\nfunction createObservableAnnotation(name, options) {\n return {\n annotationType_: name,\n options_: options,\n make_: make_$4,\n extend_: extend_$4,\n decorate_20223_: decorate_20223_$4\n };\n}\nfunction make_$4(adm, key, descriptor) {\n return this.extend_(adm, key, descriptor, false) === null ? 0 /* MakeResult.Cancel */ : 1 /* MakeResult.Break */;\n}\nfunction extend_$4(adm, key, descriptor, proxyTrap) {\n var _this$options_$enhanc, _this$options_;\n assertObservableDescriptor(adm, this, key, descriptor);\n return adm.defineObservableProperty_(key, descriptor.value, (_this$options_$enhanc = (_this$options_ = this.options_) == null ? void 0 : _this$options_.enhancer) != null ? _this$options_$enhanc : deepEnhancer, proxyTrap);\n}\nfunction decorate_20223_$4(desc, context) {\n if (process.env.NODE_ENV !== \"production\") {\n if (context.kind === \"field\") {\n throw die(\"Please use `@observable accessor \" + String(context.name) + \"` instead of `@observable \" + String(context.name) + \"`\");\n }\n assert20223DecoratorType(context, [\"accessor\"]);\n }\n var ann = this;\n var kind = context.kind,\n name = context.name;\n // The laziness here is not ideal... It's a workaround to how 2022.3 Decorators are implemented:\n // `addInitializer` callbacks are executed _before_ any accessors are defined (instead of the ideal-for-us right after each).\n // This means that, if we were to do our stuff in an `addInitializer`, we'd attempt to read a private slot\n // before it has been initialized. The runtime doesn't like that and throws a `Cannot read private member\n // from an object whose class did not declare it` error.\n // TODO: it seems that this will not be required anymore in the final version of the spec\n // See TODO: link\n var initializedObjects = new WeakSet();\n function initializeObservable(target, value) {\n var _ann$options_$enhance, _ann$options_;\n var adm = asObservableObject(target)[$mobx];\n var observable = new ObservableValue(value, (_ann$options_$enhance = (_ann$options_ = ann.options_) == null ? void 0 : _ann$options_.enhancer) != null ? _ann$options_$enhance : deepEnhancer, process.env.NODE_ENV !== \"production\" ? adm.name_ + \".\" + name.toString() : \"ObservableObject.\" + name.toString(), false);\n adm.values_.set(name, observable);\n initializedObjects.add(target);\n }\n if (kind == \"accessor\") {\n return {\n get: function get() {\n if (!initializedObjects.has(this)) {\n initializeObservable(this, desc.get.call(this));\n }\n return this[$mobx].getObservablePropValue_(name);\n },\n set: function set(value) {\n if (!initializedObjects.has(this)) {\n initializeObservable(this, value);\n }\n return this[$mobx].setObservablePropValue_(name, value);\n },\n init: function init(value) {\n if (!initializedObjects.has(this)) {\n initializeObservable(this, value);\n }\n return value;\n }\n };\n }\n return;\n}\nfunction assertObservableDescriptor(adm, _ref, key, descriptor) {\n var annotationType_ = _ref.annotationType_;\n if (process.env.NODE_ENV !== \"production\" && !(\"value\" in descriptor)) {\n die(\"Cannot apply '\" + annotationType_ + \"' to '\" + adm.name_ + \".\" + key.toString() + \"':\" + (\"\\n'\" + annotationType_ + \"' cannot be used on getter/setter properties\"));\n }\n}\n\nvar AUTO = \"true\";\nvar autoAnnotation = /*#__PURE__*/createAutoAnnotation();\nfunction createAutoAnnotation(options) {\n return {\n annotationType_: AUTO,\n options_: options,\n make_: make_$5,\n extend_: extend_$5,\n decorate_20223_: decorate_20223_$5\n };\n}\nfunction make_$5(adm, key, descriptor, source) {\n var _this$options_3, _this$options_4;\n // getter -> computed\n if (descriptor.get) {\n return computed.make_(adm, key, descriptor, source);\n }\n // lone setter -> action setter\n if (descriptor.set) {\n // TODO make action applicable to setter and delegate to action.make_\n var set = createAction(key.toString(), descriptor.set);\n // own\n if (source === adm.target_) {\n return adm.defineProperty_(key, {\n configurable: globalState.safeDescriptors ? adm.isPlainObject_ : true,\n set: set\n }) === null ? 0 /* MakeResult.Cancel */ : 2 /* MakeResult.Continue */;\n }\n // proto\n defineProperty(source, key, {\n configurable: true,\n set: set\n });\n return 2 /* MakeResult.Continue */;\n }\n // function on proto -> autoAction/flow\n if (source !== adm.target_ && typeof descriptor.value === \"function\") {\n var _this$options_2;\n if (isGenerator(descriptor.value)) {\n var _this$options_;\n var flowAnnotation = (_this$options_ = this.options_) != null && _this$options_.autoBind ? flow.bound : flow;\n return flowAnnotation.make_(adm, key, descriptor, source);\n }\n var actionAnnotation = (_this$options_2 = this.options_) != null && _this$options_2.autoBind ? autoAction.bound : autoAction;\n return actionAnnotation.make_(adm, key, descriptor, source);\n }\n // other -> observable\n // Copy props from proto as well, see test:\n // \"decorate should work with Object.create\"\n var observableAnnotation = ((_this$options_3 = this.options_) == null ? void 0 : _this$options_3.deep) === false ? observable.ref : observable;\n // if function respect autoBind option\n if (typeof descriptor.value === \"function\" && (_this$options_4 = this.options_) != null && _this$options_4.autoBind) {\n var _adm$proxy_;\n descriptor.value = descriptor.value.bind((_adm$proxy_ = adm.proxy_) != null ? _adm$proxy_ : adm.target_);\n }\n return observableAnnotation.make_(adm, key, descriptor, source);\n}\nfunction extend_$5(adm, key, descriptor, proxyTrap) {\n var _this$options_5, _this$options_6;\n // getter -> computed\n if (descriptor.get) {\n return computed.extend_(adm, key, descriptor, proxyTrap);\n }\n // lone setter -> action setter\n if (descriptor.set) {\n // TODO make action applicable to setter and delegate to action.extend_\n return adm.defineProperty_(key, {\n configurable: globalState.safeDescriptors ? adm.isPlainObject_ : true,\n set: createAction(key.toString(), descriptor.set)\n }, proxyTrap);\n }\n // other -> observable\n // if function respect autoBind option\n if (typeof descriptor.value === \"function\" && (_this$options_5 = this.options_) != null && _this$options_5.autoBind) {\n var _adm$proxy_2;\n descriptor.value = descriptor.value.bind((_adm$proxy_2 = adm.proxy_) != null ? _adm$proxy_2 : adm.target_);\n }\n var observableAnnotation = ((_this$options_6 = this.options_) == null ? void 0 : _this$options_6.deep) === false ? observable.ref : observable;\n return observableAnnotation.extend_(adm, key, descriptor, proxyTrap);\n}\nfunction decorate_20223_$5(desc, context) {\n die(\"'\" + this.annotationType_ + \"' cannot be used as a decorator\");\n}\n\nvar OBSERVABLE = \"observable\";\nvar OBSERVABLE_REF = \"observable.ref\";\nvar OBSERVABLE_SHALLOW = \"observable.shallow\";\nvar OBSERVABLE_STRUCT = \"observable.struct\";\n// Predefined bags of create observable options, to avoid allocating temporarily option objects\n// in the majority of cases\nvar defaultCreateObservableOptions = {\n deep: true,\n name: undefined,\n defaultDecorator: undefined,\n proxy: true\n};\nObject.freeze(defaultCreateObservableOptions);\nfunction asCreateObservableOptions(thing) {\n return thing || defaultCreateObservableOptions;\n}\nvar observableAnnotation = /*#__PURE__*/createObservableAnnotation(OBSERVABLE);\nvar observableRefAnnotation = /*#__PURE__*/createObservableAnnotation(OBSERVABLE_REF, {\n enhancer: referenceEnhancer\n});\nvar observableShallowAnnotation = /*#__PURE__*/createObservableAnnotation(OBSERVABLE_SHALLOW, {\n enhancer: shallowEnhancer\n});\nvar observableStructAnnotation = /*#__PURE__*/createObservableAnnotation(OBSERVABLE_STRUCT, {\n enhancer: refStructEnhancer\n});\nvar observableDecoratorAnnotation = /*#__PURE__*/createDecoratorAnnotation(observableAnnotation);\nfunction getEnhancerFromOptions(options) {\n return options.deep === true ? deepEnhancer : options.deep === false ? referenceEnhancer : getEnhancerFromAnnotation(options.defaultDecorator);\n}\nfunction getAnnotationFromOptions(options) {\n var _options$defaultDecor;\n return options ? (_options$defaultDecor = options.defaultDecorator) != null ? _options$defaultDecor : createAutoAnnotation(options) : undefined;\n}\nfunction getEnhancerFromAnnotation(annotation) {\n var _annotation$options_$, _annotation$options_;\n return !annotation ? deepEnhancer : (_annotation$options_$ = (_annotation$options_ = annotation.options_) == null ? void 0 : _annotation$options_.enhancer) != null ? _annotation$options_$ : deepEnhancer;\n}\n/**\n * Turns an object, array or function into a reactive structure.\n * @param v the value which should become observable.\n */\nfunction createObservable(v, arg2, arg3) {\n // @observable someProp; (2022.3 Decorators)\n if (is20223Decorator(arg2)) {\n return observableAnnotation.decorate_20223_(v, arg2);\n }\n // @observable someProp;\n if (isStringish(arg2)) {\n storeAnnotation(v, arg2, observableAnnotation);\n return;\n }\n // already observable - ignore\n if (isObservable(v)) {\n return v;\n }\n // plain object\n if (isPlainObject(v)) {\n return observable.object(v, arg2, arg3);\n }\n // Array\n if (Array.isArray(v)) {\n return observable.array(v, arg2);\n }\n // Map\n if (isES6Map(v)) {\n return observable.map(v, arg2);\n }\n // Set\n if (isES6Set(v)) {\n return observable.set(v, arg2);\n }\n // other object - ignore\n if (typeof v === \"object\" && v !== null) {\n return v;\n }\n // anything else\n return observable.box(v, arg2);\n}\nassign(createObservable, observableDecoratorAnnotation);\nvar observableFactories = {\n box: function box(value, options) {\n var o = asCreateObservableOptions(options);\n return new ObservableValue(value, getEnhancerFromOptions(o), o.name, true, o.equals);\n },\n array: function array(initialValues, options) {\n var o = asCreateObservableOptions(options);\n return (globalState.useProxies === false || o.proxy === false ? createLegacyArray : createObservableArray)(initialValues, getEnhancerFromOptions(o), o.name);\n },\n map: function map(initialValues, options) {\n var o = asCreateObservableOptions(options);\n return new ObservableMap(initialValues, getEnhancerFromOptions(o), o.name);\n },\n set: function set(initialValues, options) {\n var o = asCreateObservableOptions(options);\n return new ObservableSet(initialValues, getEnhancerFromOptions(o), o.name);\n },\n object: function object(props, decorators, options) {\n return initObservable(function () {\n return extendObservable(globalState.useProxies === false || (options == null ? void 0 : options.proxy) === false ? asObservableObject({}, options) : asDynamicObservableObject({}, options), props, decorators);\n });\n },\n ref: /*#__PURE__*/createDecoratorAnnotation(observableRefAnnotation),\n shallow: /*#__PURE__*/createDecoratorAnnotation(observableShallowAnnotation),\n deep: observableDecoratorAnnotation,\n struct: /*#__PURE__*/createDecoratorAnnotation(observableStructAnnotation)\n};\n// eslint-disable-next-line\nvar observable = /*#__PURE__*/assign(createObservable, observableFactories);\n\nvar COMPUTED = \"computed\";\nvar COMPUTED_STRUCT = \"computed.struct\";\nvar computedAnnotation = /*#__PURE__*/createComputedAnnotation(COMPUTED);\nvar computedStructAnnotation = /*#__PURE__*/createComputedAnnotation(COMPUTED_STRUCT, {\n equals: comparer.structural\n});\n/**\n * Decorator for class properties: @computed get value() { return expr; }.\n * For legacy purposes also invokable as ES5 observable created: `computed(() => expr)`;\n */\nvar computed = function computed(arg1, arg2) {\n if (is20223Decorator(arg2)) {\n // @computed (2022.3 Decorators)\n return computedAnnotation.decorate_20223_(arg1, arg2);\n }\n if (isStringish(arg2)) {\n // @computed\n return storeAnnotation(arg1, arg2, computedAnnotation);\n }\n if (isPlainObject(arg1)) {\n // @computed({ options })\n return createDecoratorAnnotation(createComputedAnnotation(COMPUTED, arg1));\n }\n // computed(expr, options?)\n if (process.env.NODE_ENV !== \"production\") {\n if (!isFunction(arg1)) {\n die(\"First argument to `computed` should be an expression.\");\n }\n if (isFunction(arg2)) {\n die(\"A setter as second argument is no longer supported, use `{ set: fn }` option instead\");\n }\n }\n var opts = isPlainObject(arg2) ? arg2 : {};\n opts.get = arg1;\n opts.name || (opts.name = arg1.name || \"\"); /* for generated name */\n return new ComputedValue(opts);\n};\nObject.assign(computed, computedAnnotation);\ncomputed.struct = /*#__PURE__*/createDecoratorAnnotation(computedStructAnnotation);\n\nvar _getDescriptor$config, _getDescriptor;\n// we don't use globalState for these in order to avoid possible issues with multiple\n// mobx versions\nvar currentActionId = 0;\nvar nextActionId = 1;\nvar isFunctionNameConfigurable = (_getDescriptor$config = (_getDescriptor = /*#__PURE__*/getDescriptor(function () {}, \"name\")) == null ? void 0 : _getDescriptor.configurable) != null ? _getDescriptor$config : false;\n// we can safely recycle this object\nvar tmpNameDescriptor = {\n value: \"action\",\n configurable: true,\n writable: false,\n enumerable: false\n};\nfunction createAction(actionName, fn, autoAction, ref) {\n if (autoAction === void 0) {\n autoAction = false;\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (!isFunction(fn)) {\n die(\"`action` can only be invoked on functions\");\n }\n if (typeof actionName !== \"string\" || !actionName) {\n die(\"actions should have valid names, got: '\" + actionName + \"'\");\n }\n }\n function res() {\n return executeAction(actionName, autoAction, fn, ref || this, arguments);\n }\n res.isMobxAction = true;\n res.toString = function () {\n return fn.toString();\n };\n if (isFunctionNameConfigurable) {\n tmpNameDescriptor.value = actionName;\n defineProperty(res, \"name\", tmpNameDescriptor);\n }\n return res;\n}\nfunction executeAction(actionName, canRunAsDerivation, fn, scope, args) {\n var runInfo = _startAction(actionName, canRunAsDerivation, scope, args);\n try {\n return fn.apply(scope, args);\n } catch (err) {\n runInfo.error_ = err;\n throw err;\n } finally {\n _endAction(runInfo);\n }\n}\nfunction _startAction(actionName, canRunAsDerivation,\n// true for autoAction\nscope, args) {\n var notifySpy_ = process.env.NODE_ENV !== \"production\" && isSpyEnabled() && !!actionName;\n var startTime_ = 0;\n if (process.env.NODE_ENV !== \"production\" && notifySpy_) {\n startTime_ = Date.now();\n var flattenedArgs = args ? Array.from(args) : EMPTY_ARRAY;\n spyReportStart({\n type: ACTION,\n name: actionName,\n object: scope,\n arguments: flattenedArgs\n });\n }\n var prevDerivation_ = globalState.trackingDerivation;\n var runAsAction = !canRunAsDerivation || !prevDerivation_;\n startBatch();\n var prevAllowStateChanges_ = globalState.allowStateChanges; // by default preserve previous allow\n if (runAsAction) {\n untrackedStart();\n prevAllowStateChanges_ = allowStateChangesStart(true);\n }\n var prevAllowStateReads_ = allowStateReadsStart(true);\n var runInfo = {\n runAsAction_: runAsAction,\n prevDerivation_: prevDerivation_,\n prevAllowStateChanges_: prevAllowStateChanges_,\n prevAllowStateReads_: prevAllowStateReads_,\n notifySpy_: notifySpy_,\n startTime_: startTime_,\n actionId_: nextActionId++,\n parentActionId_: currentActionId\n };\n currentActionId = runInfo.actionId_;\n return runInfo;\n}\nfunction _endAction(runInfo) {\n if (currentActionId !== runInfo.actionId_) {\n die(30);\n }\n currentActionId = runInfo.parentActionId_;\n if (runInfo.error_ !== undefined) {\n globalState.suppressReactionErrors = true;\n }\n allowStateChangesEnd(runInfo.prevAllowStateChanges_);\n allowStateReadsEnd(runInfo.prevAllowStateReads_);\n endBatch();\n if (runInfo.runAsAction_) {\n untrackedEnd(runInfo.prevDerivation_);\n }\n if (process.env.NODE_ENV !== \"production\" && runInfo.notifySpy_) {\n spyReportEnd({\n time: Date.now() - runInfo.startTime_\n });\n }\n globalState.suppressReactionErrors = false;\n}\nfunction allowStateChanges(allowStateChanges, func) {\n var prev = allowStateChangesStart(allowStateChanges);\n try {\n return func();\n } finally {\n allowStateChangesEnd(prev);\n }\n}\nfunction allowStateChangesStart(allowStateChanges) {\n var prev = globalState.allowStateChanges;\n globalState.allowStateChanges = allowStateChanges;\n return prev;\n}\nfunction allowStateChangesEnd(prev) {\n globalState.allowStateChanges = prev;\n}\n\nvar CREATE = \"create\";\nvar ObservableValue = /*#__PURE__*/function (_Atom) {\n function ObservableValue(value, enhancer, name_, notifySpy, equals) {\n var _this;\n if (name_ === void 0) {\n name_ = process.env.NODE_ENV !== \"production\" ? \"ObservableValue@\" + getNextId() : \"ObservableValue\";\n }\n if (notifySpy === void 0) {\n notifySpy = true;\n }\n if (equals === void 0) {\n equals = comparer[\"default\"];\n }\n _this = _Atom.call(this, name_) || this;\n _this.enhancer = void 0;\n _this.name_ = void 0;\n _this.equals = void 0;\n _this.hasUnreportedChange_ = false;\n _this.interceptors_ = void 0;\n _this.changeListeners_ = void 0;\n _this.value_ = void 0;\n _this.dehancer = void 0;\n _this.enhancer = enhancer;\n _this.name_ = name_;\n _this.equals = equals;\n _this.value_ = enhancer(value, undefined, name_);\n if (process.env.NODE_ENV !== \"production\" && notifySpy && isSpyEnabled()) {\n // only notify spy if this is a stand-alone observable\n spyReport({\n type: CREATE,\n object: _this,\n observableKind: \"value\",\n debugObjectName: _this.name_,\n newValue: \"\" + _this.value_\n });\n }\n return _this;\n }\n _inheritsLoose(ObservableValue, _Atom);\n var _proto = ObservableValue.prototype;\n _proto.dehanceValue = function dehanceValue(value) {\n if (this.dehancer !== undefined) {\n return this.dehancer(value);\n }\n return value;\n };\n _proto.set = function set(newValue) {\n var oldValue = this.value_;\n newValue = this.prepareNewValue_(newValue);\n if (newValue !== globalState.UNCHANGED) {\n var notifySpy = isSpyEnabled();\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportStart({\n type: UPDATE,\n object: this,\n observableKind: \"value\",\n debugObjectName: this.name_,\n newValue: newValue,\n oldValue: oldValue\n });\n }\n this.setNewValue_(newValue);\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportEnd();\n }\n }\n };\n _proto.prepareNewValue_ = function prepareNewValue_(newValue) {\n checkIfStateModificationsAreAllowed(this);\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this,\n type: UPDATE,\n newValue: newValue\n });\n if (!change) {\n return globalState.UNCHANGED;\n }\n newValue = change.newValue;\n }\n // apply modifier\n newValue = this.enhancer(newValue, this.value_, this.name_);\n return this.equals(this.value_, newValue) ? globalState.UNCHANGED : newValue;\n };\n _proto.setNewValue_ = function setNewValue_(newValue) {\n var oldValue = this.value_;\n this.value_ = newValue;\n this.reportChanged();\n if (hasListeners(this)) {\n notifyListeners(this, {\n type: UPDATE,\n object: this,\n newValue: newValue,\n oldValue: oldValue\n });\n }\n };\n _proto.get = function get() {\n this.reportObserved();\n return this.dehanceValue(this.value_);\n };\n _proto.intercept_ = function intercept_(handler) {\n return registerInterceptor(this, handler);\n };\n _proto.observe_ = function observe_(listener, fireImmediately) {\n if (fireImmediately) {\n listener({\n observableKind: \"value\",\n debugObjectName: this.name_,\n object: this,\n type: UPDATE,\n newValue: this.value_,\n oldValue: undefined\n });\n }\n return registerListener(this, listener);\n };\n _proto.raw = function raw() {\n // used by MST ot get undehanced value\n return this.value_;\n };\n _proto.toJSON = function toJSON() {\n return this.get();\n };\n _proto.toString = function toString() {\n return this.name_ + \"[\" + this.value_ + \"]\";\n };\n _proto.valueOf = function valueOf() {\n return toPrimitive(this.get());\n };\n _proto[Symbol.toPrimitive] = function () {\n return this.valueOf();\n };\n return ObservableValue;\n}(Atom);\nvar isObservableValue = /*#__PURE__*/createInstanceofPredicate(\"ObservableValue\", ObservableValue);\n\n/**\n * A node in the state dependency root that observes other nodes, and can be observed itself.\n *\n * ComputedValue will remember the result of the computation for the duration of the batch, or\n * while being observed.\n *\n * During this time it will recompute only when one of its direct dependencies changed,\n * but only when it is being accessed with `ComputedValue.get()`.\n *\n * Implementation description:\n * 1. First time it's being accessed it will compute and remember result\n * give back remembered result until 2. happens\n * 2. First time any deep dependency change, propagate POSSIBLY_STALE to all observers, wait for 3.\n * 3. When it's being accessed, recompute if any shallow dependency changed.\n * if result changed: propagate STALE to all observers, that were POSSIBLY_STALE from the last step.\n * go to step 2. either way\n *\n * If at any point it's outside batch and it isn't observed: reset everything and go to 1.\n */\nvar ComputedValue = /*#__PURE__*/function () {\n /**\n * Create a new computed value based on a function expression.\n *\n * The `name` property is for debug purposes only.\n *\n * The `equals` property specifies the comparer function to use to determine if a newly produced\n * value differs from the previous value. Two comparers are provided in the library; `defaultComparer`\n * compares based on identity comparison (===), and `structuralComparer` deeply compares the structure.\n * Structural comparison can be convenient if you always produce a new aggregated object and\n * don't want to notify observers if it is structurally the same.\n * This is useful for working with vectors, mouse coordinates etc.\n */\n function ComputedValue(options) {\n this.dependenciesState_ = IDerivationState_.NOT_TRACKING_;\n this.observing_ = [];\n // nodes we are looking at. Our value depends on these nodes\n this.newObserving_ = null;\n // during tracking it's an array with new observed observers\n this.observers_ = new Set();\n this.runId_ = 0;\n this.lastAccessedBy_ = 0;\n this.lowestObserverState_ = IDerivationState_.UP_TO_DATE_;\n this.unboundDepsCount_ = 0;\n this.value_ = new CaughtException(null);\n this.name_ = void 0;\n this.triggeredBy_ = void 0;\n this.flags_ = 0;\n this.derivation = void 0;\n // N.B: unminified as it is used by MST\n this.setter_ = void 0;\n this.isTracing_ = TraceMode.NONE;\n this.scope_ = void 0;\n this.equals_ = void 0;\n this.requiresReaction_ = void 0;\n this.keepAlive_ = void 0;\n this.onBOL = void 0;\n this.onBUOL = void 0;\n if (!options.get) {\n die(31);\n }\n this.derivation = options.get;\n this.name_ = options.name || (process.env.NODE_ENV !== \"production\" ? \"ComputedValue@\" + getNextId() : \"ComputedValue\");\n if (options.set) {\n this.setter_ = createAction(process.env.NODE_ENV !== \"production\" ? this.name_ + \"-setter\" : \"ComputedValue-setter\", options.set);\n }\n this.equals_ = options.equals || (options.compareStructural || options.struct ? comparer.structural : comparer[\"default\"]);\n this.scope_ = options.context;\n this.requiresReaction_ = options.requiresReaction;\n this.keepAlive_ = !!options.keepAlive;\n }\n var _proto = ComputedValue.prototype;\n _proto.onBecomeStale_ = function onBecomeStale_() {\n propagateMaybeChanged(this);\n };\n _proto.onBO = function onBO() {\n if (this.onBOL) {\n this.onBOL.forEach(function (listener) {\n return listener();\n });\n }\n };\n _proto.onBUO = function onBUO() {\n if (this.onBUOL) {\n this.onBUOL.forEach(function (listener) {\n return listener();\n });\n }\n }\n // to check for cycles\n ;\n /**\n * Returns the current value of this computed value.\n * Will evaluate its computation first if needed.\n */\n _proto.get = function get() {\n if (this.isComputing) {\n die(32, this.name_, this.derivation);\n }\n if (globalState.inBatch === 0 &&\n // !globalState.trackingDerivatpion &&\n this.observers_.size === 0 && !this.keepAlive_) {\n if (shouldCompute(this)) {\n this.warnAboutUntrackedRead_();\n startBatch(); // See perf test 'computed memoization'\n this.value_ = this.computeValue_(false);\n endBatch();\n }\n } else {\n reportObserved(this);\n if (shouldCompute(this)) {\n var prevTrackingContext = globalState.trackingContext;\n if (this.keepAlive_ && !prevTrackingContext) {\n globalState.trackingContext = this;\n }\n if (this.trackAndCompute()) {\n propagateChangeConfirmed(this);\n }\n globalState.trackingContext = prevTrackingContext;\n }\n }\n var result = this.value_;\n if (isCaughtException(result)) {\n throw result.cause;\n }\n return result;\n };\n _proto.set = function set(value) {\n if (this.setter_) {\n if (this.isRunningSetter) {\n die(33, this.name_);\n }\n this.isRunningSetter = true;\n try {\n this.setter_.call(this.scope_, value);\n } finally {\n this.isRunningSetter = false;\n }\n } else {\n die(34, this.name_);\n }\n };\n _proto.trackAndCompute = function trackAndCompute() {\n // N.B: unminified as it is used by MST\n var oldValue = this.value_;\n var wasSuspended = /* see #1208 */this.dependenciesState_ === IDerivationState_.NOT_TRACKING_;\n var newValue = this.computeValue_(true);\n var changed = wasSuspended || isCaughtException(oldValue) || isCaughtException(newValue) || !this.equals_(oldValue, newValue);\n if (changed) {\n this.value_ = newValue;\n if (process.env.NODE_ENV !== \"production\" && isSpyEnabled()) {\n spyReport({\n observableKind: \"computed\",\n debugObjectName: this.name_,\n object: this.scope_,\n type: \"update\",\n oldValue: oldValue,\n newValue: newValue\n });\n }\n }\n return changed;\n };\n _proto.computeValue_ = function computeValue_(track) {\n this.isComputing = true;\n // don't allow state changes during computation\n var prev = allowStateChangesStart(false);\n var res;\n if (track) {\n res = trackDerivedFunction(this, this.derivation, this.scope_);\n } else {\n if (globalState.disableErrorBoundaries === true) {\n res = this.derivation.call(this.scope_);\n } else {\n try {\n res = this.derivation.call(this.scope_);\n } catch (e) {\n res = new CaughtException(e);\n }\n }\n }\n allowStateChangesEnd(prev);\n this.isComputing = false;\n return res;\n };\n _proto.suspend_ = function suspend_() {\n if (!this.keepAlive_) {\n clearObserving(this);\n this.value_ = undefined; // don't hold on to computed value!\n if (process.env.NODE_ENV !== \"production\" && this.isTracing_ !== TraceMode.NONE) {\n console.log(\"[mobx.trace] Computed value '\" + this.name_ + \"' was suspended and it will recompute on the next access.\");\n }\n }\n };\n _proto.observe_ = function observe_(listener, fireImmediately) {\n var _this = this;\n var firstTime = true;\n var prevValue = undefined;\n return autorun(function () {\n // TODO: why is this in a different place than the spyReport() function? in all other observables it's called in the same place\n var newValue = _this.get();\n if (!firstTime || fireImmediately) {\n var prevU = untrackedStart();\n listener({\n observableKind: \"computed\",\n debugObjectName: _this.name_,\n type: UPDATE,\n object: _this,\n newValue: newValue,\n oldValue: prevValue\n });\n untrackedEnd(prevU);\n }\n firstTime = false;\n prevValue = newValue;\n });\n };\n _proto.warnAboutUntrackedRead_ = function warnAboutUntrackedRead_() {\n if (!(process.env.NODE_ENV !== \"production\")) {\n return;\n }\n if (this.isTracing_ !== TraceMode.NONE) {\n console.log(\"[mobx.trace] Computed value '\" + this.name_ + \"' is being read outside a reactive context. Doing a full recompute.\");\n }\n if (typeof this.requiresReaction_ === \"boolean\" ? this.requiresReaction_ : globalState.computedRequiresReaction) {\n console.warn(\"[mobx] Computed value '\" + this.name_ + \"' is being read outside a reactive context. Doing a full recompute.\");\n }\n };\n _proto.toString = function toString() {\n return this.name_ + \"[\" + this.derivation.toString() + \"]\";\n };\n _proto.valueOf = function valueOf() {\n return toPrimitive(this.get());\n };\n _proto[Symbol.toPrimitive] = function () {\n return this.valueOf();\n };\n return _createClass(ComputedValue, [{\n key: \"isComputing\",\n get: function get() {\n return getFlag(this.flags_, ComputedValue.isComputingMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isComputingMask_, newValue);\n }\n }, {\n key: \"isRunningSetter\",\n get: function get() {\n return getFlag(this.flags_, ComputedValue.isRunningSetterMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isRunningSetterMask_, newValue);\n }\n }, {\n key: \"isBeingObserved\",\n get: function get() {\n return getFlag(this.flags_, ComputedValue.isBeingObservedMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isBeingObservedMask_, newValue);\n }\n }, {\n key: \"isPendingUnobservation\",\n get: function get() {\n return getFlag(this.flags_, ComputedValue.isPendingUnobservationMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isPendingUnobservationMask_, newValue);\n }\n }, {\n key: \"diffValue\",\n get: function get() {\n return getFlag(this.flags_, ComputedValue.diffValueMask_) ? 1 : 0;\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, ComputedValue.diffValueMask_, newValue === 1 ? true : false);\n }\n }]);\n}();\nComputedValue.isComputingMask_ = 1;\nComputedValue.isRunningSetterMask_ = 2;\nComputedValue.isBeingObservedMask_ = 4;\nComputedValue.isPendingUnobservationMask_ = 8;\nComputedValue.diffValueMask_ = 16;\nvar isComputedValue = /*#__PURE__*/createInstanceofPredicate(\"ComputedValue\", ComputedValue);\n\nvar IDerivationState_;\n(function (IDerivationState_) {\n // before being run or (outside batch and not being observed)\n // at this point derivation is not holding any data about dependency tree\n IDerivationState_[IDerivationState_[\"NOT_TRACKING_\"] = -1] = \"NOT_TRACKING_\";\n // no shallow dependency changed since last computation\n // won't recalculate derivation\n // this is what makes mobx fast\n IDerivationState_[IDerivationState_[\"UP_TO_DATE_\"] = 0] = \"UP_TO_DATE_\";\n // some deep dependency changed, but don't know if shallow dependency changed\n // will require to check first if UP_TO_DATE or POSSIBLY_STALE\n // currently only ComputedValue will propagate POSSIBLY_STALE\n //\n // having this state is second big optimization:\n // don't have to recompute on every dependency change, but only when it's needed\n IDerivationState_[IDerivationState_[\"POSSIBLY_STALE_\"] = 1] = \"POSSIBLY_STALE_\";\n // A shallow dependency has changed since last computation and the derivation\n // will need to recompute when it's needed next.\n IDerivationState_[IDerivationState_[\"STALE_\"] = 2] = \"STALE_\";\n})(IDerivationState_ || (IDerivationState_ = {}));\nvar TraceMode;\n(function (TraceMode) {\n TraceMode[TraceMode[\"NONE\"] = 0] = \"NONE\";\n TraceMode[TraceMode[\"LOG\"] = 1] = \"LOG\";\n TraceMode[TraceMode[\"BREAK\"] = 2] = \"BREAK\";\n})(TraceMode || (TraceMode = {}));\nvar CaughtException = function CaughtException(cause) {\n this.cause = void 0;\n this.cause = cause;\n // Empty\n};\nfunction isCaughtException(e) {\n return e instanceof CaughtException;\n}\n/**\n * Finds out whether any dependency of the derivation has actually changed.\n * If dependenciesState is 1 then it will recalculate dependencies,\n * if any dependency changed it will propagate it by changing dependenciesState to 2.\n *\n * By iterating over the dependencies in the same order that they were reported and\n * stopping on the first change, all the recalculations are only called for ComputedValues\n * that will be tracked by derivation. That is because we assume that if the first x\n * dependencies of the derivation doesn't change then the derivation should run the same way\n * up until accessing x-th dependency.\n */\nfunction shouldCompute(derivation) {\n switch (derivation.dependenciesState_) {\n case IDerivationState_.UP_TO_DATE_:\n return false;\n case IDerivationState_.NOT_TRACKING_:\n case IDerivationState_.STALE_:\n return true;\n case IDerivationState_.POSSIBLY_STALE_:\n {\n // state propagation can occur outside of action/reactive context #2195\n var prevAllowStateReads = allowStateReadsStart(true);\n var prevUntracked = untrackedStart(); // no need for those computeds to be reported, they will be picked up in trackDerivedFunction.\n var obs = derivation.observing_,\n l = obs.length;\n for (var i = 0; i < l; i++) {\n var obj = obs[i];\n if (isComputedValue(obj)) {\n if (globalState.disableErrorBoundaries) {\n obj.get();\n } else {\n try {\n obj.get();\n } catch (e) {\n // we are not interested in the value *or* exception at this moment, but if there is one, notify all\n untrackedEnd(prevUntracked);\n allowStateReadsEnd(prevAllowStateReads);\n return true;\n }\n }\n // if ComputedValue `obj` actually changed it will be computed and propagated to its observers.\n // and `derivation` is an observer of `obj`\n // invariantShouldCompute(derivation)\n if (derivation.dependenciesState_ === IDerivationState_.STALE_) {\n untrackedEnd(prevUntracked);\n allowStateReadsEnd(prevAllowStateReads);\n return true;\n }\n }\n }\n changeDependenciesStateTo0(derivation);\n untrackedEnd(prevUntracked);\n allowStateReadsEnd(prevAllowStateReads);\n return false;\n }\n }\n}\nfunction isComputingDerivation() {\n return globalState.trackingDerivation !== null; // filter out actions inside computations\n}\nfunction checkIfStateModificationsAreAllowed(atom) {\n if (!(process.env.NODE_ENV !== \"production\")) {\n return;\n }\n var hasObservers = atom.observers_.size > 0;\n // Should not be possible to change observed state outside strict mode, except during initialization, see #563\n if (!globalState.allowStateChanges && (hasObservers || globalState.enforceActions === \"always\")) {\n console.warn(\"[MobX] \" + (globalState.enforceActions ? \"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: \" : \"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: \") + atom.name_);\n }\n}\nfunction checkIfStateReadsAreAllowed(observable) {\n if (process.env.NODE_ENV !== \"production\" && !globalState.allowStateReads && globalState.observableRequiresReaction) {\n console.warn(\"[mobx] Observable '\" + observable.name_ + \"' being read outside a reactive context.\");\n }\n}\n/**\n * Executes the provided function `f` and tracks which observables are being accessed.\n * The tracking information is stored on the `derivation` object and the derivation is registered\n * as observer of any of the accessed observables.\n */\nfunction trackDerivedFunction(derivation, f, context) {\n var prevAllowStateReads = allowStateReadsStart(true);\n changeDependenciesStateTo0(derivation);\n // Preallocate array; will be trimmed by bindDependencies.\n derivation.newObserving_ = new Array(\n // Reserve constant space for initial dependencies, dynamic space otherwise.\n // See https://github.com/mobxjs/mobx/pull/3833\n derivation.runId_ === 0 ? 100 : derivation.observing_.length);\n derivation.unboundDepsCount_ = 0;\n derivation.runId_ = ++globalState.runId;\n var prevTracking = globalState.trackingDerivation;\n globalState.trackingDerivation = derivation;\n globalState.inBatch++;\n var result;\n if (globalState.disableErrorBoundaries === true) {\n result = f.call(context);\n } else {\n try {\n result = f.call(context);\n } catch (e) {\n result = new CaughtException(e);\n }\n }\n globalState.inBatch--;\n globalState.trackingDerivation = prevTracking;\n bindDependencies(derivation);\n warnAboutDerivationWithoutDependencies(derivation);\n allowStateReadsEnd(prevAllowStateReads);\n return result;\n}\nfunction warnAboutDerivationWithoutDependencies(derivation) {\n if (!(process.env.NODE_ENV !== \"production\")) {\n return;\n }\n if (derivation.observing_.length !== 0) {\n return;\n }\n if (typeof derivation.requiresObservable_ === \"boolean\" ? derivation.requiresObservable_ : globalState.reactionRequiresObservable) {\n console.warn(\"[mobx] Derivation '\" + derivation.name_ + \"' is created/updated without reading any observable value.\");\n }\n}\n/**\n * diffs newObserving with observing.\n * update observing to be newObserving with unique observables\n * notify observers that become observed/unobserved\n */\nfunction bindDependencies(derivation) {\n // invariant(derivation.dependenciesState !== IDerivationState.NOT_TRACKING, \"INTERNAL ERROR bindDependencies expects derivation.dependenciesState !== -1\");\n var prevObserving = derivation.observing_;\n var observing = derivation.observing_ = derivation.newObserving_;\n var lowestNewObservingDerivationState = IDerivationState_.UP_TO_DATE_;\n // Go through all new observables and check diffValue: (this list can contain duplicates):\n // 0: first occurrence, change to 1 and keep it\n // 1: extra occurrence, drop it\n var i0 = 0,\n l = derivation.unboundDepsCount_;\n for (var i = 0; i < l; i++) {\n var dep = observing[i];\n if (dep.diffValue === 0) {\n dep.diffValue = 1;\n if (i0 !== i) {\n observing[i0] = dep;\n }\n i0++;\n }\n // Upcast is 'safe' here, because if dep is IObservable, `dependenciesState` will be undefined,\n // not hitting the condition\n if (dep.dependenciesState_ > lowestNewObservingDerivationState) {\n lowestNewObservingDerivationState = dep.dependenciesState_;\n }\n }\n observing.length = i0;\n derivation.newObserving_ = null; // newObserving shouldn't be needed outside tracking (statement moved down to work around FF bug, see #614)\n // Go through all old observables and check diffValue: (it is unique after last bindDependencies)\n // 0: it's not in new observables, unobserve it\n // 1: it keeps being observed, don't want to notify it. change to 0\n l = prevObserving.length;\n while (l--) {\n var _dep = prevObserving[l];\n if (_dep.diffValue === 0) {\n removeObserver(_dep, derivation);\n }\n _dep.diffValue = 0;\n }\n // Go through all new observables and check diffValue: (now it should be unique)\n // 0: it was set to 0 in last loop. don't need to do anything.\n // 1: it wasn't observed, let's observe it. set back to 0\n while (i0--) {\n var _dep2 = observing[i0];\n if (_dep2.diffValue === 1) {\n _dep2.diffValue = 0;\n addObserver(_dep2, derivation);\n }\n }\n // Some new observed derivations may become stale during this derivation computation\n // so they have had no chance to propagate staleness (#916)\n if (lowestNewObservingDerivationState !== IDerivationState_.UP_TO_DATE_) {\n derivation.dependenciesState_ = lowestNewObservingDerivationState;\n derivation.onBecomeStale_();\n }\n}\nfunction clearObserving(derivation) {\n // invariant(globalState.inBatch > 0, \"INTERNAL ERROR clearObserving should be called only inside batch\");\n var obs = derivation.observing_;\n derivation.observing_ = [];\n var i = obs.length;\n while (i--) {\n removeObserver(obs[i], derivation);\n }\n derivation.dependenciesState_ = IDerivationState_.NOT_TRACKING_;\n}\nfunction untracked(action) {\n var prev = untrackedStart();\n try {\n return action();\n } finally {\n untrackedEnd(prev);\n }\n}\nfunction untrackedStart() {\n var prev = globalState.trackingDerivation;\n globalState.trackingDerivation = null;\n return prev;\n}\nfunction untrackedEnd(prev) {\n globalState.trackingDerivation = prev;\n}\nfunction allowStateReadsStart(allowStateReads) {\n var prev = globalState.allowStateReads;\n globalState.allowStateReads = allowStateReads;\n return prev;\n}\nfunction allowStateReadsEnd(prev) {\n globalState.allowStateReads = prev;\n}\n/**\n * needed to keep `lowestObserverState` correct. when changing from (2 or 1) to 0\n *\n */\nfunction changeDependenciesStateTo0(derivation) {\n if (derivation.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {\n return;\n }\n derivation.dependenciesState_ = IDerivationState_.UP_TO_DATE_;\n var obs = derivation.observing_;\n var i = obs.length;\n while (i--) {\n obs[i].lowestObserverState_ = IDerivationState_.UP_TO_DATE_;\n }\n}\n\n/**\n * These values will persist if global state is reset\n */\nvar persistentKeys = [\"mobxGuid\", \"spyListeners\", \"enforceActions\", \"computedRequiresReaction\", \"reactionRequiresObservable\", \"observableRequiresReaction\", \"allowStateReads\", \"disableErrorBoundaries\", \"runId\", \"UNCHANGED\", \"useProxies\"];\nvar MobXGlobals = function MobXGlobals() {\n /**\n * MobXGlobals version.\n * MobX compatiblity with other versions loaded in memory as long as this version matches.\n * It indicates that the global state still stores similar information\n *\n * N.B: this version is unrelated to the package version of MobX, and is only the version of the\n * internal state storage of MobX, and can be the same across many different package versions\n */\n this.version = 6;\n /**\n * globally unique token to signal unchanged\n */\n this.UNCHANGED = {};\n /**\n * Currently running derivation\n */\n this.trackingDerivation = null;\n /**\n * Currently running reaction. This determines if we currently have a reactive context.\n * (Tracking derivation is also set for temporal tracking of computed values inside actions,\n * but trackingReaction can only be set by a form of Reaction)\n */\n this.trackingContext = null;\n /**\n * Each time a derivation is tracked, it is assigned a unique run-id\n */\n this.runId = 0;\n /**\n * 'guid' for general purpose. Will be persisted amongst resets.\n */\n this.mobxGuid = 0;\n /**\n * Are we in a batch block? (and how many of them)\n */\n this.inBatch = 0;\n /**\n * Observables that don't have observers anymore, and are about to be\n * suspended, unless somebody else accesses it in the same batch\n *\n * @type {IObservable[]}\n */\n this.pendingUnobservations = [];\n /**\n * List of scheduled, not yet executed, reactions.\n */\n this.pendingReactions = [];\n /**\n * Are we currently processing reactions?\n */\n this.isRunningReactions = false;\n /**\n * Is it allowed to change observables at this point?\n * In general, MobX doesn't allow that when running computations and React.render.\n * To ensure that those functions stay pure.\n */\n this.allowStateChanges = false;\n /**\n * Is it allowed to read observables at this point?\n * Used to hold the state needed for `observableRequiresReaction`\n */\n this.allowStateReads = true;\n /**\n * If strict mode is enabled, state changes are by default not allowed\n */\n this.enforceActions = true;\n /**\n * Spy callbacks\n */\n this.spyListeners = [];\n /**\n * Globally attached error handlers that react specifically to errors in reactions\n */\n this.globalReactionErrorHandlers = [];\n /**\n * Warn if computed values are accessed outside a reactive context\n */\n this.computedRequiresReaction = false;\n /**\n * (Experimental)\n * Warn if you try to create to derivation / reactive context without accessing any observable.\n */\n this.reactionRequiresObservable = false;\n /**\n * (Experimental)\n * Warn if observables are accessed outside a reactive context\n */\n this.observableRequiresReaction = false;\n /*\n * Don't catch and rethrow exceptions. This is useful for inspecting the state of\n * the stack when an exception occurs while debugging.\n */\n this.disableErrorBoundaries = false;\n /*\n * If true, we are already handling an exception in an action. Any errors in reactions should be suppressed, as\n * they are not the cause, see: https://github.com/mobxjs/mobx/issues/1836\n */\n this.suppressReactionErrors = false;\n this.useProxies = true;\n /*\n * print warnings about code that would fail if proxies weren't available\n */\n this.verifyProxies = false;\n /**\n * False forces all object's descriptors to\n * writable: true\n * configurable: true\n */\n this.safeDescriptors = true;\n};\nvar canMergeGlobalState = true;\nvar isolateCalled = false;\nvar globalState = /*#__PURE__*/function () {\n var global = /*#__PURE__*/getGlobal();\n if (global.__mobxInstanceCount > 0 && !global.__mobxGlobals) {\n canMergeGlobalState = false;\n }\n if (global.__mobxGlobals && global.__mobxGlobals.version !== new MobXGlobals().version) {\n canMergeGlobalState = false;\n }\n if (!canMergeGlobalState) {\n // Because this is a IIFE we need to let isolateCalled a chance to change\n // so we run it after the event loop completed at least 1 iteration\n setTimeout(function () {\n if (!isolateCalled) {\n die(35);\n }\n }, 1);\n return new MobXGlobals();\n } else if (global.__mobxGlobals) {\n global.__mobxInstanceCount += 1;\n if (!global.__mobxGlobals.UNCHANGED) {\n global.__mobxGlobals.UNCHANGED = {};\n } // make merge backward compatible\n return global.__mobxGlobals;\n } else {\n global.__mobxInstanceCount = 1;\n return global.__mobxGlobals = /*#__PURE__*/new MobXGlobals();\n }\n}();\nfunction isolateGlobalState() {\n if (globalState.pendingReactions.length || globalState.inBatch || globalState.isRunningReactions) {\n die(36);\n }\n isolateCalled = true;\n if (canMergeGlobalState) {\n var global = getGlobal();\n if (--global.__mobxInstanceCount === 0) {\n global.__mobxGlobals = undefined;\n }\n globalState = new MobXGlobals();\n }\n}\nfunction getGlobalState() {\n return globalState;\n}\n/**\n * For testing purposes only; this will break the internal state of existing observables,\n * but can be used to get back at a stable state after throwing errors\n */\nfunction resetGlobalState() {\n var defaultGlobals = new MobXGlobals();\n for (var key in defaultGlobals) {\n if (persistentKeys.indexOf(key) === -1) {\n globalState[key] = defaultGlobals[key];\n }\n }\n globalState.allowStateChanges = !globalState.enforceActions;\n}\n\nfunction hasObservers(observable) {\n return observable.observers_ && observable.observers_.size > 0;\n}\nfunction getObservers(observable) {\n return observable.observers_;\n}\n// function invariantObservers(observable: IObservable) {\n// const list = observable.observers\n// const map = observable.observersIndexes\n// const l = list.length\n// for (let i = 0; i < l; i++) {\n// const id = list[i].__mapid\n// if (i) {\n// invariant(map[id] === i, \"INTERNAL ERROR maps derivation.__mapid to index in list\") // for performance\n// } else {\n// invariant(!(id in map), \"INTERNAL ERROR observer on index 0 shouldn't be held in map.\") // for performance\n// }\n// }\n// invariant(\n// list.length === 0 || Object.keys(map).length === list.length - 1,\n// \"INTERNAL ERROR there is no junk in map\"\n// )\n// }\nfunction addObserver(observable, node) {\n // invariant(node.dependenciesState !== -1, \"INTERNAL ERROR, can add only dependenciesState !== -1\");\n // invariant(observable._observers.indexOf(node) === -1, \"INTERNAL ERROR add already added node\");\n // invariantObservers(observable);\n observable.observers_.add(node);\n if (observable.lowestObserverState_ > node.dependenciesState_) {\n observable.lowestObserverState_ = node.dependenciesState_;\n }\n // invariantObservers(observable);\n // invariant(observable._observers.indexOf(node) !== -1, \"INTERNAL ERROR didn't add node\");\n}\nfunction removeObserver(observable, node) {\n // invariant(globalState.inBatch > 0, \"INTERNAL ERROR, remove should be called only inside batch\");\n // invariant(observable._observers.indexOf(node) !== -1, \"INTERNAL ERROR remove already removed node\");\n // invariantObservers(observable);\n observable.observers_[\"delete\"](node);\n if (observable.observers_.size === 0) {\n // deleting last observer\n queueForUnobservation(observable);\n }\n // invariantObservers(observable);\n // invariant(observable._observers.indexOf(node) === -1, \"INTERNAL ERROR remove already removed node2\");\n}\nfunction queueForUnobservation(observable) {\n if (observable.isPendingUnobservation === false) {\n // invariant(observable._observers.length === 0, \"INTERNAL ERROR, should only queue for unobservation unobserved observables\");\n observable.isPendingUnobservation = true;\n globalState.pendingUnobservations.push(observable);\n }\n}\n/**\n * Batch starts a transaction, at least for purposes of memoizing ComputedValues when nothing else does.\n * During a batch `onBecomeUnobserved` will be called at most once per observable.\n * Avoids unnecessary recalculations.\n */\nfunction startBatch() {\n globalState.inBatch++;\n}\nfunction endBatch() {\n if (--globalState.inBatch === 0) {\n runReactions();\n // the batch is actually about to finish, all unobserving should happen here.\n var list = globalState.pendingUnobservations;\n for (var i = 0; i < list.length; i++) {\n var observable = list[i];\n observable.isPendingUnobservation = false;\n if (observable.observers_.size === 0) {\n if (observable.isBeingObserved) {\n // if this observable had reactive observers, trigger the hooks\n observable.isBeingObserved = false;\n observable.onBUO();\n }\n if (observable instanceof ComputedValue) {\n // computed values are automatically teared down when the last observer leaves\n // this process happens recursively, this computed might be the last observabe of another, etc..\n observable.suspend_();\n }\n }\n }\n globalState.pendingUnobservations = [];\n }\n}\nfunction reportObserved(observable) {\n checkIfStateReadsAreAllowed(observable);\n var derivation = globalState.trackingDerivation;\n if (derivation !== null) {\n /**\n * Simple optimization, give each derivation run an unique id (runId)\n * Check if last time this observable was accessed the same runId is used\n * if this is the case, the relation is already known\n */\n if (derivation.runId_ !== observable.lastAccessedBy_) {\n observable.lastAccessedBy_ = derivation.runId_;\n // Tried storing newObserving, or observing, or both as Set, but performance didn't come close...\n derivation.newObserving_[derivation.unboundDepsCount_++] = observable;\n if (!observable.isBeingObserved && globalState.trackingContext) {\n observable.isBeingObserved = true;\n observable.onBO();\n }\n }\n return observable.isBeingObserved;\n } else if (observable.observers_.size === 0 && globalState.inBatch > 0) {\n queueForUnobservation(observable);\n }\n return false;\n}\n// function invariantLOS(observable: IObservable, msg: string) {\n// // it's expensive so better not run it in produciton. but temporarily helpful for testing\n// const min = getObservers(observable).reduce((a, b) => Math.min(a, b.dependenciesState), 2)\n// if (min >= observable.lowestObserverState) return // <- the only assumption about `lowestObserverState`\n// throw new Error(\n// \"lowestObserverState is wrong for \" +\n// msg +\n// \" because \" +\n// min +\n// \" < \" +\n// observable.lowestObserverState\n// )\n// }\n/**\n * NOTE: current propagation mechanism will in case of self reruning autoruns behave unexpectedly\n * It will propagate changes to observers from previous run\n * It's hard or maybe impossible (with reasonable perf) to get it right with current approach\n * Hopefully self reruning autoruns aren't a feature people should depend on\n * Also most basic use cases should be ok\n */\n// Called by Atom when its value changes\nfunction propagateChanged(observable) {\n // invariantLOS(observable, \"changed start\");\n if (observable.lowestObserverState_ === IDerivationState_.STALE_) {\n return;\n }\n observable.lowestObserverState_ = IDerivationState_.STALE_;\n // Ideally we use for..of here, but the downcompiled version is really slow...\n observable.observers_.forEach(function (d) {\n if (d.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {\n if (process.env.NODE_ENV !== \"production\" && d.isTracing_ !== TraceMode.NONE) {\n logTraceInfo(d, observable);\n }\n d.onBecomeStale_();\n }\n d.dependenciesState_ = IDerivationState_.STALE_;\n });\n // invariantLOS(observable, \"changed end\");\n}\n// Called by ComputedValue when it recalculate and its value changed\nfunction propagateChangeConfirmed(observable) {\n // invariantLOS(observable, \"confirmed start\");\n if (observable.lowestObserverState_ === IDerivationState_.STALE_) {\n return;\n }\n observable.lowestObserverState_ = IDerivationState_.STALE_;\n observable.observers_.forEach(function (d) {\n if (d.dependenciesState_ === IDerivationState_.POSSIBLY_STALE_) {\n d.dependenciesState_ = IDerivationState_.STALE_;\n if (process.env.NODE_ENV !== \"production\" && d.isTracing_ !== TraceMode.NONE) {\n logTraceInfo(d, observable);\n }\n } else if (d.dependenciesState_ === IDerivationState_.UP_TO_DATE_ // this happens during computing of `d`, just keep lowestObserverState up to date.\n ) {\n observable.lowestObserverState_ = IDerivationState_.UP_TO_DATE_;\n }\n });\n // invariantLOS(observable, \"confirmed end\");\n}\n// Used by computed when its dependency changed, but we don't wan't to immediately recompute.\nfunction propagateMaybeChanged(observable) {\n // invariantLOS(observable, \"maybe start\");\n if (observable.lowestObserverState_ !== IDerivationState_.UP_TO_DATE_) {\n return;\n }\n observable.lowestObserverState_ = IDerivationState_.POSSIBLY_STALE_;\n observable.observers_.forEach(function (d) {\n if (d.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {\n d.dependenciesState_ = IDerivationState_.POSSIBLY_STALE_;\n d.onBecomeStale_();\n }\n });\n // invariantLOS(observable, \"maybe end\");\n}\nfunction logTraceInfo(derivation, observable) {\n console.log(\"[mobx.trace] '\" + derivation.name_ + \"' is invalidated due to a change in: '\" + observable.name_ + \"'\");\n if (derivation.isTracing_ === TraceMode.BREAK) {\n var lines = [];\n printDepTree(getDependencyTree(derivation), lines, 1);\n // prettier-ignore\n new Function(\"debugger;\\n/*\\nTracing '\" + derivation.name_ + \"'\\n\\nYou are entering this break point because derivation '\" + derivation.name_ + \"' is being traced and '\" + observable.name_ + \"' is now forcing it to update.\\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\\n\\n\" + (derivation instanceof ComputedValue ? derivation.derivation.toString().replace(/[*]\\//g, \"/\") : \"\") + \"\\n\\nThe dependencies for this derivation are:\\n\\n\" + lines.join(\"\\n\") + \"\\n*/\\n \")();\n }\n}\nfunction printDepTree(tree, lines, depth) {\n if (lines.length >= 1000) {\n lines.push(\"(and many more)\");\n return;\n }\n lines.push(\"\" + \"\\t\".repeat(depth - 1) + tree.name);\n if (tree.dependencies) {\n tree.dependencies.forEach(function (child) {\n return printDepTree(child, lines, depth + 1);\n });\n }\n}\n\nvar Reaction = /*#__PURE__*/function () {\n function Reaction(name_, onInvalidate_, errorHandler_, requiresObservable_) {\n if (name_ === void 0) {\n name_ = process.env.NODE_ENV !== \"production\" ? \"Reaction@\" + getNextId() : \"Reaction\";\n }\n this.name_ = void 0;\n this.onInvalidate_ = void 0;\n this.errorHandler_ = void 0;\n this.requiresObservable_ = void 0;\n this.observing_ = [];\n // nodes we are looking at. Our value depends on these nodes\n this.newObserving_ = [];\n this.dependenciesState_ = IDerivationState_.NOT_TRACKING_;\n this.runId_ = 0;\n this.unboundDepsCount_ = 0;\n this.flags_ = 0;\n this.isTracing_ = TraceMode.NONE;\n this.name_ = name_;\n this.onInvalidate_ = onInvalidate_;\n this.errorHandler_ = errorHandler_;\n this.requiresObservable_ = requiresObservable_;\n }\n var _proto = Reaction.prototype;\n _proto.onBecomeStale_ = function onBecomeStale_() {\n this.schedule_();\n };\n _proto.schedule_ = function schedule_() {\n if (!this.isScheduled) {\n this.isScheduled = true;\n globalState.pendingReactions.push(this);\n runReactions();\n }\n }\n /**\n * internal, use schedule() if you intend to kick off a reaction\n */;\n _proto.runReaction_ = function runReaction_() {\n if (!this.isDisposed) {\n startBatch();\n this.isScheduled = false;\n var prev = globalState.trackingContext;\n globalState.trackingContext = this;\n if (shouldCompute(this)) {\n this.isTrackPending = true;\n try {\n this.onInvalidate_();\n if (process.env.NODE_ENV !== \"production\" && this.isTrackPending && isSpyEnabled()) {\n // onInvalidate didn't trigger track right away..\n spyReport({\n name: this.name_,\n type: \"scheduled-reaction\"\n });\n }\n } catch (e) {\n this.reportExceptionInDerivation_(e);\n }\n }\n globalState.trackingContext = prev;\n endBatch();\n }\n };\n _proto.track = function track(fn) {\n if (this.isDisposed) {\n return;\n // console.warn(\"Reaction already disposed\") // Note: Not a warning / error in mobx 4 either\n }\n startBatch();\n var notify = isSpyEnabled();\n var startTime;\n if (process.env.NODE_ENV !== \"production\" && notify) {\n startTime = Date.now();\n spyReportStart({\n name: this.name_,\n type: \"reaction\"\n });\n }\n this.isRunning = true;\n var prevReaction = globalState.trackingContext; // reactions could create reactions...\n globalState.trackingContext = this;\n var result = trackDerivedFunction(this, fn, undefined);\n globalState.trackingContext = prevReaction;\n this.isRunning = false;\n this.isTrackPending = false;\n if (this.isDisposed) {\n // disposed during last run. Clean up everything that was bound after the dispose call.\n clearObserving(this);\n }\n if (isCaughtException(result)) {\n this.reportExceptionInDerivation_(result.cause);\n }\n if (process.env.NODE_ENV !== \"production\" && notify) {\n spyReportEnd({\n time: Date.now() - startTime\n });\n }\n endBatch();\n };\n _proto.reportExceptionInDerivation_ = function reportExceptionInDerivation_(error) {\n var _this = this;\n if (this.errorHandler_) {\n this.errorHandler_(error, this);\n return;\n }\n if (globalState.disableErrorBoundaries) {\n throw error;\n }\n var message = process.env.NODE_ENV !== \"production\" ? \"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '\" + this + \"'\" : \"[mobx] uncaught error in '\" + this + \"'\";\n if (!globalState.suppressReactionErrors) {\n console.error(message, error);\n /** If debugging brought you here, please, read the above message :-). Tnx! */\n } else if (process.env.NODE_ENV !== \"production\") {\n console.warn(\"[mobx] (error in reaction '\" + this.name_ + \"' suppressed, fix error of causing action below)\");\n } // prettier-ignore\n if (process.env.NODE_ENV !== \"production\" && isSpyEnabled()) {\n spyReport({\n type: \"error\",\n name: this.name_,\n message: message,\n error: \"\" + error\n });\n }\n globalState.globalReactionErrorHandlers.forEach(function (f) {\n return f(error, _this);\n });\n };\n _proto.dispose = function dispose() {\n if (!this.isDisposed) {\n this.isDisposed = true;\n if (!this.isRunning) {\n // if disposed while running, clean up later. Maybe not optimal, but rare case\n startBatch();\n clearObserving(this);\n endBatch();\n }\n }\n };\n _proto.getDisposer_ = function getDisposer_(abortSignal) {\n var _this2 = this;\n var dispose = function dispose() {\n _this2.dispose();\n abortSignal == null || abortSignal.removeEventListener == null || abortSignal.removeEventListener(\"abort\", dispose);\n };\n abortSignal == null || abortSignal.addEventListener == null || abortSignal.addEventListener(\"abort\", dispose);\n dispose[$mobx] = this;\n return dispose;\n };\n _proto.toString = function toString() {\n return \"Reaction[\" + this.name_ + \"]\";\n };\n _proto.trace = function trace$1(enterBreakPoint) {\n if (enterBreakPoint === void 0) {\n enterBreakPoint = false;\n }\n trace(this, enterBreakPoint);\n };\n return _createClass(Reaction, [{\n key: \"isDisposed\",\n get: function get() {\n return getFlag(this.flags_, Reaction.isDisposedMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Reaction.isDisposedMask_, newValue);\n }\n }, {\n key: \"isScheduled\",\n get: function get() {\n return getFlag(this.flags_, Reaction.isScheduledMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Reaction.isScheduledMask_, newValue);\n }\n }, {\n key: \"isTrackPending\",\n get: function get() {\n return getFlag(this.flags_, Reaction.isTrackPendingMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Reaction.isTrackPendingMask_, newValue);\n }\n }, {\n key: \"isRunning\",\n get: function get() {\n return getFlag(this.flags_, Reaction.isRunningMask_);\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Reaction.isRunningMask_, newValue);\n }\n }, {\n key: \"diffValue\",\n get: function get() {\n return getFlag(this.flags_, Reaction.diffValueMask_) ? 1 : 0;\n },\n set: function set(newValue) {\n this.flags_ = setFlag(this.flags_, Reaction.diffValueMask_, newValue === 1 ? true : false);\n }\n }]);\n}();\nReaction.isDisposedMask_ = 1;\nReaction.isScheduledMask_ = 2;\nReaction.isTrackPendingMask_ = 4;\nReaction.isRunningMask_ = 8;\nReaction.diffValueMask_ = 16;\nfunction onReactionError(handler) {\n globalState.globalReactionErrorHandlers.push(handler);\n return function () {\n var idx = globalState.globalReactionErrorHandlers.indexOf(handler);\n if (idx >= 0) {\n globalState.globalReactionErrorHandlers.splice(idx, 1);\n }\n };\n}\n/**\n * Magic number alert!\n * Defines within how many times a reaction is allowed to re-trigger itself\n * until it is assumed that this is gonna be a never ending loop...\n */\nvar MAX_REACTION_ITERATIONS = 100;\nvar reactionScheduler = function reactionScheduler(f) {\n return f();\n};\nfunction runReactions() {\n // Trampolining, if runReactions are already running, new reactions will be picked up\n if (globalState.inBatch > 0 || globalState.isRunningReactions) {\n return;\n }\n reactionScheduler(runReactionsHelper);\n}\nfunction runReactionsHelper() {\n globalState.isRunningReactions = true;\n var allReactions = globalState.pendingReactions;\n var iterations = 0;\n // While running reactions, new reactions might be triggered.\n // Hence we work with two variables and check whether\n // we converge to no remaining reactions after a while.\n while (allReactions.length > 0) {\n if (++iterations === MAX_REACTION_ITERATIONS) {\n console.error(process.env.NODE_ENV !== \"production\" ? \"Reaction doesn't converge to a stable state after \" + MAX_REACTION_ITERATIONS + \" iterations.\" + (\" Probably there is a cycle in the reactive function: \" + allReactions[0]) : \"[mobx] cycle in reaction: \" + allReactions[0]);\n allReactions.splice(0); // clear reactions\n }\n var remainingReactions = allReactions.splice(0);\n for (var i = 0, l = remainingReactions.length; i < l; i++) {\n remainingReactions[i].runReaction_();\n }\n }\n globalState.isRunningReactions = false;\n}\nvar isReaction = /*#__PURE__*/createInstanceofPredicate(\"Reaction\", Reaction);\nfunction setReactionScheduler(fn) {\n var baseScheduler = reactionScheduler;\n reactionScheduler = function reactionScheduler(f) {\n return fn(function () {\n return baseScheduler(f);\n });\n };\n}\n\nfunction isSpyEnabled() {\n return process.env.NODE_ENV !== \"production\" && !!globalState.spyListeners.length;\n}\nfunction spyReport(event) {\n if (!(process.env.NODE_ENV !== \"production\")) {\n return;\n } // dead code elimination can do the rest\n if (!globalState.spyListeners.length) {\n return;\n }\n var listeners = globalState.spyListeners;\n for (var i = 0, l = listeners.length; i < l; i++) {\n listeners[i](event);\n }\n}\nfunction spyReportStart(event) {\n if (!(process.env.NODE_ENV !== \"production\")) {\n return;\n }\n var change = _extends({}, event, {\n spyReportStart: true\n });\n spyReport(change);\n}\nvar END_EVENT = {\n type: \"report-end\",\n spyReportEnd: true\n};\nfunction spyReportEnd(change) {\n if (!(process.env.NODE_ENV !== \"production\")) {\n return;\n }\n if (change) {\n spyReport(_extends({}, change, {\n type: \"report-end\",\n spyReportEnd: true\n }));\n } else {\n spyReport(END_EVENT);\n }\n}\nfunction spy(listener) {\n if (!(process.env.NODE_ENV !== \"production\")) {\n console.warn(\"[mobx.spy] Is a no-op in production builds\");\n return function () {};\n } else {\n globalState.spyListeners.push(listener);\n return once(function () {\n globalState.spyListeners = globalState.spyListeners.filter(function (l) {\n return l !== listener;\n });\n });\n }\n}\n\nvar ACTION = \"action\";\nvar ACTION_BOUND = \"action.bound\";\nvar AUTOACTION = \"autoAction\";\nvar AUTOACTION_BOUND = \"autoAction.bound\";\nvar DEFAULT_ACTION_NAME = \"\";\nvar actionAnnotation = /*#__PURE__*/createActionAnnotation(ACTION);\nvar actionBoundAnnotation = /*#__PURE__*/createActionAnnotation(ACTION_BOUND, {\n bound: true\n});\nvar autoActionAnnotation = /*#__PURE__*/createActionAnnotation(AUTOACTION, {\n autoAction: true\n});\nvar autoActionBoundAnnotation = /*#__PURE__*/createActionAnnotation(AUTOACTION_BOUND, {\n autoAction: true,\n bound: true\n});\nfunction createActionFactory(autoAction) {\n var res = function action(arg1, arg2) {\n // action(fn() {})\n if (isFunction(arg1)) {\n return createAction(arg1.name || DEFAULT_ACTION_NAME, arg1, autoAction);\n }\n // action(\"name\", fn() {})\n if (isFunction(arg2)) {\n return createAction(arg1, arg2, autoAction);\n }\n // @action (2022.3 Decorators)\n if (is20223Decorator(arg2)) {\n return (autoAction ? autoActionAnnotation : actionAnnotation).decorate_20223_(arg1, arg2);\n }\n // @action\n if (isStringish(arg2)) {\n return storeAnnotation(arg1, arg2, autoAction ? autoActionAnnotation : actionAnnotation);\n }\n // action(\"name\") & @action(\"name\")\n if (isStringish(arg1)) {\n return createDecoratorAnnotation(createActionAnnotation(autoAction ? AUTOACTION : ACTION, {\n name: arg1,\n autoAction: autoAction\n }));\n }\n if (process.env.NODE_ENV !== \"production\") {\n die(\"Invalid arguments for `action`\");\n }\n };\n return res;\n}\nvar action = /*#__PURE__*/createActionFactory(false);\nObject.assign(action, actionAnnotation);\nvar autoAction = /*#__PURE__*/createActionFactory(true);\nObject.assign(autoAction, autoActionAnnotation);\naction.bound = /*#__PURE__*/createDecoratorAnnotation(actionBoundAnnotation);\nautoAction.bound = /*#__PURE__*/createDecoratorAnnotation(autoActionBoundAnnotation);\nfunction runInAction(fn) {\n return executeAction(fn.name || DEFAULT_ACTION_NAME, false, fn, this, undefined);\n}\nfunction isAction(thing) {\n return isFunction(thing) && thing.isMobxAction === true;\n}\n\n/**\n * Creates a named reactive view and keeps it alive, so that the view is always\n * updated if one of the dependencies changes, even when the view is not further used by something else.\n * @param view The reactive view\n * @returns disposer function, which can be used to stop the view from being updated in the future.\n */\nfunction autorun(view, opts) {\n var _opts$name, _opts, _opts2, _opts3;\n if (opts === void 0) {\n opts = EMPTY_OBJECT;\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (!isFunction(view)) {\n die(\"Autorun expects a function as first argument\");\n }\n if (isAction(view)) {\n die(\"Autorun does not accept actions since actions are untrackable\");\n }\n }\n var name = (_opts$name = (_opts = opts) == null ? void 0 : _opts.name) != null ? _opts$name : process.env.NODE_ENV !== \"production\" ? view.name || \"Autorun@\" + getNextId() : \"Autorun\";\n var runSync = !opts.scheduler && !opts.delay;\n var reaction;\n if (runSync) {\n // normal autorun\n reaction = new Reaction(name, function () {\n this.track(reactionRunner);\n }, opts.onError, opts.requiresObservable);\n } else {\n var scheduler = createSchedulerFromOptions(opts);\n // debounced autorun\n var isScheduled = false;\n reaction = new Reaction(name, function () {\n if (!isScheduled) {\n isScheduled = true;\n scheduler(function () {\n isScheduled = false;\n if (!reaction.isDisposed) {\n reaction.track(reactionRunner);\n }\n });\n }\n }, opts.onError, opts.requiresObservable);\n }\n function reactionRunner() {\n view(reaction);\n }\n if (!((_opts2 = opts) != null && (_opts2 = _opts2.signal) != null && _opts2.aborted)) {\n reaction.schedule_();\n }\n return reaction.getDisposer_((_opts3 = opts) == null ? void 0 : _opts3.signal);\n}\nvar run = function run(f) {\n return f();\n};\nfunction createSchedulerFromOptions(opts) {\n return opts.scheduler ? opts.scheduler : opts.delay ? function (f) {\n return setTimeout(f, opts.delay);\n } : run;\n}\nfunction reaction(expression, effect, opts) {\n var _opts$name2, _opts4, _opts5;\n if (opts === void 0) {\n opts = EMPTY_OBJECT;\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (!isFunction(expression) || !isFunction(effect)) {\n die(\"First and second argument to reaction should be functions\");\n }\n if (!isPlainObject(opts)) {\n die(\"Third argument of reactions should be an object\");\n }\n }\n var name = (_opts$name2 = opts.name) != null ? _opts$name2 : process.env.NODE_ENV !== \"production\" ? \"Reaction@\" + getNextId() : \"Reaction\";\n var effectAction = action(name, opts.onError ? wrapErrorHandler(opts.onError, effect) : effect);\n var runSync = !opts.scheduler && !opts.delay;\n var scheduler = createSchedulerFromOptions(opts);\n var firstTime = true;\n var isScheduled = false;\n var value;\n var equals = opts.compareStructural ? comparer.structural : opts.equals || comparer[\"default\"];\n var r = new Reaction(name, function () {\n if (firstTime || runSync) {\n reactionRunner();\n } else if (!isScheduled) {\n isScheduled = true;\n scheduler(reactionRunner);\n }\n }, opts.onError, opts.requiresObservable);\n function reactionRunner() {\n isScheduled = false;\n if (r.isDisposed) {\n return;\n }\n var changed = false;\n var oldValue = value;\n r.track(function () {\n var nextValue = allowStateChanges(false, function () {\n return expression(r);\n });\n changed = firstTime || !equals(value, nextValue);\n value = nextValue;\n });\n if (firstTime && opts.fireImmediately) {\n effectAction(value, oldValue, r);\n } else if (!firstTime && changed) {\n effectAction(value, oldValue, r);\n }\n firstTime = false;\n }\n if (!((_opts4 = opts) != null && (_opts4 = _opts4.signal) != null && _opts4.aborted)) {\n r.schedule_();\n }\n return r.getDisposer_((_opts5 = opts) == null ? void 0 : _opts5.signal);\n}\nfunction wrapErrorHandler(errorHandler, baseFn) {\n return function () {\n try {\n return baseFn.apply(this, arguments);\n } catch (e) {\n errorHandler.call(this, e);\n }\n };\n}\n\nvar ON_BECOME_OBSERVED = \"onBO\";\nvar ON_BECOME_UNOBSERVED = \"onBUO\";\nfunction onBecomeObserved(thing, arg2, arg3) {\n return interceptHook(ON_BECOME_OBSERVED, thing, arg2, arg3);\n}\nfunction onBecomeUnobserved(thing, arg2, arg3) {\n return interceptHook(ON_BECOME_UNOBSERVED, thing, arg2, arg3);\n}\nfunction interceptHook(hook, thing, arg2, arg3) {\n var atom = typeof arg3 === \"function\" ? getAtom(thing, arg2) : getAtom(thing);\n var cb = isFunction(arg3) ? arg3 : arg2;\n var listenersKey = hook + \"L\";\n if (atom[listenersKey]) {\n atom[listenersKey].add(cb);\n } else {\n atom[listenersKey] = new Set([cb]);\n }\n return function () {\n var hookListeners = atom[listenersKey];\n if (hookListeners) {\n hookListeners[\"delete\"](cb);\n if (hookListeners.size === 0) {\n delete atom[listenersKey];\n }\n }\n };\n}\n\nvar NEVER = \"never\";\nvar ALWAYS = \"always\";\nvar OBSERVED = \"observed\";\n// const IF_AVAILABLE = \"ifavailable\"\nfunction configure(options) {\n if (options.isolateGlobalState === true) {\n isolateGlobalState();\n }\n var useProxies = options.useProxies,\n enforceActions = options.enforceActions;\n if (useProxies !== undefined) {\n globalState.useProxies = useProxies === ALWAYS ? true : useProxies === NEVER ? false : typeof Proxy !== \"undefined\";\n }\n if (useProxies === \"ifavailable\") {\n globalState.verifyProxies = true;\n }\n if (enforceActions !== undefined) {\n var ea = enforceActions === ALWAYS ? ALWAYS : enforceActions === OBSERVED;\n globalState.enforceActions = ea;\n globalState.allowStateChanges = ea === true || ea === ALWAYS ? false : true;\n }\n [\"computedRequiresReaction\", \"reactionRequiresObservable\", \"observableRequiresReaction\", \"disableErrorBoundaries\", \"safeDescriptors\"].forEach(function (key) {\n if (key in options) {\n globalState[key] = !!options[key];\n }\n });\n globalState.allowStateReads = !globalState.observableRequiresReaction;\n if (process.env.NODE_ENV !== \"production\" && globalState.disableErrorBoundaries === true) {\n console.warn(\"WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled.\");\n }\n if (options.reactionScheduler) {\n setReactionScheduler(options.reactionScheduler);\n }\n}\n\nfunction extendObservable(target, properties, annotations, options) {\n if (process.env.NODE_ENV !== \"production\") {\n if (arguments.length > 4) {\n die(\"'extendObservable' expected 2-4 arguments\");\n }\n if (typeof target !== \"object\") {\n die(\"'extendObservable' expects an object as first argument\");\n }\n if (isObservableMap(target)) {\n die(\"'extendObservable' should not be used on maps, use map.merge instead\");\n }\n if (!isPlainObject(properties)) {\n die(\"'extendObservable' only accepts plain objects as second argument\");\n }\n if (isObservable(properties) || isObservable(annotations)) {\n die(\"Extending an object with another observable (object) is not supported\");\n }\n }\n // Pull descriptors first, so we don't have to deal with props added by administration ($mobx)\n var descriptors = getOwnPropertyDescriptors(properties);\n initObservable(function () {\n var adm = asObservableObject(target, options)[$mobx];\n ownKeys(descriptors).forEach(function (key) {\n adm.extend_(key, descriptors[key],\n // must pass \"undefined\" for { key: undefined }\n !annotations ? true : key in annotations ? annotations[key] : true);\n });\n });\n return target;\n}\n\nfunction getDependencyTree(thing, property) {\n return nodeToDependencyTree(getAtom(thing, property));\n}\nfunction nodeToDependencyTree(node) {\n var result = {\n name: node.name_\n };\n if (node.observing_ && node.observing_.length > 0) {\n result.dependencies = unique(node.observing_).map(nodeToDependencyTree);\n }\n return result;\n}\nfunction getObserverTree(thing, property) {\n return nodeToObserverTree(getAtom(thing, property));\n}\nfunction nodeToObserverTree(node) {\n var result = {\n name: node.name_\n };\n if (hasObservers(node)) {\n result.observers = Array.from(getObservers(node)).map(nodeToObserverTree);\n }\n return result;\n}\nfunction unique(list) {\n return Array.from(new Set(list));\n}\n\nvar generatorId = 0;\nfunction FlowCancellationError() {\n this.message = \"FLOW_CANCELLED\";\n}\nFlowCancellationError.prototype = /*#__PURE__*/Object.create(Error.prototype);\nfunction isFlowCancellationError(error) {\n return error instanceof FlowCancellationError;\n}\nvar flowAnnotation = /*#__PURE__*/createFlowAnnotation(\"flow\");\nvar flowBoundAnnotation = /*#__PURE__*/createFlowAnnotation(\"flow.bound\", {\n bound: true\n});\nvar flow = /*#__PURE__*/Object.assign(function flow(arg1, arg2) {\n // @flow (2022.3 Decorators)\n if (is20223Decorator(arg2)) {\n return flowAnnotation.decorate_20223_(arg1, arg2);\n }\n // @flow\n if (isStringish(arg2)) {\n return storeAnnotation(arg1, arg2, flowAnnotation);\n }\n // flow(fn)\n if (process.env.NODE_ENV !== \"production\" && arguments.length !== 1) {\n die(\"Flow expects single argument with generator function\");\n }\n var generator = arg1;\n var name = generator.name || \"\";\n // Implementation based on https://github.com/tj/co/blob/master/index.js\n var res = function res() {\n var ctx = this;\n var args = arguments;\n var runId = ++generatorId;\n var gen = action(name + \" - runid: \" + runId + \" - init\", generator).apply(ctx, args);\n var rejector;\n var pendingPromise = undefined;\n var promise = new Promise(function (resolve, reject) {\n var stepId = 0;\n rejector = reject;\n function onFulfilled(res) {\n pendingPromise = undefined;\n var ret;\n try {\n ret = action(name + \" - runid: \" + runId + \" - yield \" + stepId++, gen.next).call(gen, res);\n } catch (e) {\n return reject(e);\n }\n next(ret);\n }\n function onRejected(err) {\n pendingPromise = undefined;\n var ret;\n try {\n ret = action(name + \" - runid: \" + runId + \" - yield \" + stepId++, gen[\"throw\"]).call(gen, err);\n } catch (e) {\n return reject(e);\n }\n next(ret);\n }\n function next(ret) {\n if (isFunction(ret == null ? void 0 : ret.then)) {\n // an async iterator\n ret.then(next, reject);\n return;\n }\n if (ret.done) {\n return resolve(ret.value);\n }\n pendingPromise = Promise.resolve(ret.value);\n return pendingPromise.then(onFulfilled, onRejected);\n }\n onFulfilled(undefined); // kick off the process\n });\n promise.cancel = action(name + \" - runid: \" + runId + \" - cancel\", function () {\n try {\n if (pendingPromise) {\n cancelPromise(pendingPromise);\n }\n // Finally block can return (or yield) stuff..\n var _res = gen[\"return\"](undefined);\n // eat anything that promise would do, it's cancelled!\n var yieldedPromise = Promise.resolve(_res.value);\n yieldedPromise.then(noop, noop);\n cancelPromise(yieldedPromise); // maybe it can be cancelled :)\n // reject our original promise\n rejector(new FlowCancellationError());\n } catch (e) {\n rejector(e); // there could be a throwing finally block\n }\n });\n return promise;\n };\n res.isMobXFlow = true;\n return res;\n}, flowAnnotation);\nflow.bound = /*#__PURE__*/createDecoratorAnnotation(flowBoundAnnotation);\nfunction cancelPromise(promise) {\n if (isFunction(promise.cancel)) {\n promise.cancel();\n }\n}\nfunction flowResult(result) {\n return result; // just tricking TypeScript :)\n}\nfunction isFlow(fn) {\n return (fn == null ? void 0 : fn.isMobXFlow) === true;\n}\n\nfunction interceptReads(thing, propOrHandler, handler) {\n var target;\n if (isObservableMap(thing) || isObservableArray(thing) || isObservableValue(thing)) {\n target = getAdministration(thing);\n } else if (isObservableObject(thing)) {\n if (process.env.NODE_ENV !== \"production\" && !isStringish(propOrHandler)) {\n return die(\"InterceptReads can only be used with a specific property, not with an object in general\");\n }\n target = getAdministration(thing, propOrHandler);\n } else if (process.env.NODE_ENV !== \"production\") {\n return die(\"Expected observable map, object or array as first array\");\n }\n if (process.env.NODE_ENV !== \"production\" && target.dehancer !== undefined) {\n return die(\"An intercept reader was already established\");\n }\n target.dehancer = typeof propOrHandler === \"function\" ? propOrHandler : handler;\n return function () {\n target.dehancer = undefined;\n };\n}\n\nfunction intercept(thing, propOrHandler, handler) {\n if (isFunction(handler)) {\n return interceptProperty(thing, propOrHandler, handler);\n } else {\n return interceptInterceptable(thing, propOrHandler);\n }\n}\nfunction interceptInterceptable(thing, handler) {\n return getAdministration(thing).intercept_(handler);\n}\nfunction interceptProperty(thing, property, handler) {\n return getAdministration(thing, property).intercept_(handler);\n}\n\nfunction _isComputed(value, property) {\n if (property === undefined) {\n return isComputedValue(value);\n }\n if (isObservableObject(value) === false) {\n return false;\n }\n if (!value[$mobx].values_.has(property)) {\n return false;\n }\n var atom = getAtom(value, property);\n return isComputedValue(atom);\n}\nfunction isComputed(value) {\n if (process.env.NODE_ENV !== \"production\" && arguments.length > 1) {\n return die(\"isComputed expects only 1 argument. Use isComputedProp to inspect the observability of a property\");\n }\n return _isComputed(value);\n}\nfunction isComputedProp(value, propName) {\n if (process.env.NODE_ENV !== \"production\" && !isStringish(propName)) {\n return die(\"isComputed expected a property name as second argument\");\n }\n return _isComputed(value, propName);\n}\n\nfunction _isObservable(value, property) {\n if (!value) {\n return false;\n }\n if (property !== undefined) {\n if (process.env.NODE_ENV !== \"production\" && (isObservableMap(value) || isObservableArray(value))) {\n return die(\"isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.\");\n }\n if (isObservableObject(value)) {\n return value[$mobx].values_.has(property);\n }\n return false;\n }\n // For first check, see #701\n return isObservableObject(value) || !!value[$mobx] || isAtom(value) || isReaction(value) || isComputedValue(value);\n}\nfunction isObservable(value) {\n if (process.env.NODE_ENV !== \"production\" && arguments.length !== 1) {\n die(\"isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property\");\n }\n return _isObservable(value);\n}\nfunction isObservableProp(value, propName) {\n if (process.env.NODE_ENV !== \"production\" && !isStringish(propName)) {\n return die(\"expected a property name as second argument\");\n }\n return _isObservable(value, propName);\n}\n\nfunction keys(obj) {\n if (isObservableObject(obj)) {\n return obj[$mobx].keys_();\n }\n if (isObservableMap(obj) || isObservableSet(obj)) {\n return Array.from(obj.keys());\n }\n if (isObservableArray(obj)) {\n return obj.map(function (_, index) {\n return index;\n });\n }\n die(5);\n}\nfunction values(obj) {\n if (isObservableObject(obj)) {\n return keys(obj).map(function (key) {\n return obj[key];\n });\n }\n if (isObservableMap(obj)) {\n return keys(obj).map(function (key) {\n return obj.get(key);\n });\n }\n if (isObservableSet(obj)) {\n return Array.from(obj.values());\n }\n if (isObservableArray(obj)) {\n return obj.slice();\n }\n die(6);\n}\nfunction entries(obj) {\n if (isObservableObject(obj)) {\n return keys(obj).map(function (key) {\n return [key, obj[key]];\n });\n }\n if (isObservableMap(obj)) {\n return keys(obj).map(function (key) {\n return [key, obj.get(key)];\n });\n }\n if (isObservableSet(obj)) {\n return Array.from(obj.entries());\n }\n if (isObservableArray(obj)) {\n return obj.map(function (key, index) {\n return [index, key];\n });\n }\n die(7);\n}\nfunction set(obj, key, value) {\n if (arguments.length === 2 && !isObservableSet(obj)) {\n startBatch();\n var _values = key;\n try {\n for (var _key in _values) {\n set(obj, _key, _values[_key]);\n }\n } finally {\n endBatch();\n }\n return;\n }\n if (isObservableObject(obj)) {\n obj[$mobx].set_(key, value);\n } else if (isObservableMap(obj)) {\n obj.set(key, value);\n } else if (isObservableSet(obj)) {\n obj.add(key);\n } else if (isObservableArray(obj)) {\n if (typeof key !== \"number\") {\n key = parseInt(key, 10);\n }\n if (key < 0) {\n die(\"Invalid index: '\" + key + \"'\");\n }\n startBatch();\n if (key >= obj.length) {\n obj.length = key + 1;\n }\n obj[key] = value;\n endBatch();\n } else {\n die(8);\n }\n}\nfunction remove(obj, key) {\n if (isObservableObject(obj)) {\n obj[$mobx].delete_(key);\n } else if (isObservableMap(obj)) {\n obj[\"delete\"](key);\n } else if (isObservableSet(obj)) {\n obj[\"delete\"](key);\n } else if (isObservableArray(obj)) {\n if (typeof key !== \"number\") {\n key = parseInt(key, 10);\n }\n obj.splice(key, 1);\n } else {\n die(9);\n }\n}\nfunction has(obj, key) {\n if (isObservableObject(obj)) {\n return obj[$mobx].has_(key);\n } else if (isObservableMap(obj)) {\n return obj.has(key);\n } else if (isObservableSet(obj)) {\n return obj.has(key);\n } else if (isObservableArray(obj)) {\n return key >= 0 && key < obj.length;\n }\n die(10);\n}\nfunction get(obj, key) {\n if (!has(obj, key)) {\n return undefined;\n }\n if (isObservableObject(obj)) {\n return obj[$mobx].get_(key);\n } else if (isObservableMap(obj)) {\n return obj.get(key);\n } else if (isObservableArray(obj)) {\n return obj[key];\n }\n die(11);\n}\nfunction apiDefineProperty(obj, key, descriptor) {\n if (isObservableObject(obj)) {\n return obj[$mobx].defineProperty_(key, descriptor);\n }\n die(39);\n}\nfunction apiOwnKeys(obj) {\n if (isObservableObject(obj)) {\n return obj[$mobx].ownKeys_();\n }\n die(38);\n}\n\nfunction observe(thing, propOrCb, cbOrFire, fireImmediately) {\n if (isFunction(cbOrFire)) {\n return observeObservableProperty(thing, propOrCb, cbOrFire, fireImmediately);\n } else {\n return observeObservable(thing, propOrCb, cbOrFire);\n }\n}\nfunction observeObservable(thing, listener, fireImmediately) {\n return getAdministration(thing).observe_(listener, fireImmediately);\n}\nfunction observeObservableProperty(thing, property, listener, fireImmediately) {\n return getAdministration(thing, property).observe_(listener, fireImmediately);\n}\n\nfunction cache(map, key, value) {\n map.set(key, value);\n return value;\n}\nfunction toJSHelper(source, __alreadySeen) {\n if (source == null || typeof source !== \"object\" || source instanceof Date || !isObservable(source)) {\n return source;\n }\n if (isObservableValue(source) || isComputedValue(source)) {\n return toJSHelper(source.get(), __alreadySeen);\n }\n if (__alreadySeen.has(source)) {\n return __alreadySeen.get(source);\n }\n if (isObservableArray(source)) {\n var res = cache(__alreadySeen, source, new Array(source.length));\n source.forEach(function (value, idx) {\n res[idx] = toJSHelper(value, __alreadySeen);\n });\n return res;\n }\n if (isObservableSet(source)) {\n var _res = cache(__alreadySeen, source, new Set());\n source.forEach(function (value) {\n _res.add(toJSHelper(value, __alreadySeen));\n });\n return _res;\n }\n if (isObservableMap(source)) {\n var _res2 = cache(__alreadySeen, source, new Map());\n source.forEach(function (value, key) {\n _res2.set(key, toJSHelper(value, __alreadySeen));\n });\n return _res2;\n } else {\n // must be observable object\n var _res3 = cache(__alreadySeen, source, {});\n apiOwnKeys(source).forEach(function (key) {\n if (objectPrototype.propertyIsEnumerable.call(source, key)) {\n _res3[key] = toJSHelper(source[key], __alreadySeen);\n }\n });\n return _res3;\n }\n}\n/**\n * Recursively converts an observable to it's non-observable native counterpart.\n * It does NOT recurse into non-observables, these are left as they are, even if they contain observables.\n * Computed and other non-enumerable properties are completely ignored.\n * Complex scenarios require custom solution, eg implementing `toJSON` or using `serializr` lib.\n */\nfunction toJS(source, options) {\n if (process.env.NODE_ENV !== \"production\" && options) {\n die(\"toJS no longer supports options\");\n }\n return toJSHelper(source, new Map());\n}\n\nfunction trace() {\n if (!(process.env.NODE_ENV !== \"production\")) {\n return;\n }\n var enterBreakPoint = false;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n if (typeof args[args.length - 1] === \"boolean\") {\n enterBreakPoint = args.pop();\n }\n var derivation = getAtomFromArgs(args);\n if (!derivation) {\n return die(\"'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly\");\n }\n if (derivation.isTracing_ === TraceMode.NONE) {\n console.log(\"[mobx.trace] '\" + derivation.name_ + \"' tracing enabled\");\n }\n derivation.isTracing_ = enterBreakPoint ? TraceMode.BREAK : TraceMode.LOG;\n}\nfunction getAtomFromArgs(args) {\n switch (args.length) {\n case 0:\n return globalState.trackingDerivation;\n case 1:\n return getAtom(args[0]);\n case 2:\n return getAtom(args[0], args[1]);\n }\n}\n\n/**\n * During a transaction no views are updated until the end of the transaction.\n * The transaction will be run synchronously nonetheless.\n *\n * @param action a function that updates some reactive state\n * @returns any value that was returned by the 'action' parameter.\n */\nfunction transaction(action, thisArg) {\n if (thisArg === void 0) {\n thisArg = undefined;\n }\n startBatch();\n try {\n return action.apply(thisArg);\n } finally {\n endBatch();\n }\n}\n\nfunction when(predicate, arg1, arg2) {\n if (arguments.length === 1 || arg1 && typeof arg1 === \"object\") {\n return whenPromise(predicate, arg1);\n }\n return _when(predicate, arg1, arg2 || {});\n}\nfunction _when(predicate, effect, opts) {\n var timeoutHandle;\n if (typeof opts.timeout === \"number\") {\n var error = new Error(\"WHEN_TIMEOUT\");\n timeoutHandle = setTimeout(function () {\n if (!disposer[$mobx].isDisposed) {\n disposer();\n if (opts.onError) {\n opts.onError(error);\n } else {\n throw error;\n }\n }\n }, opts.timeout);\n }\n opts.name = process.env.NODE_ENV !== \"production\" ? opts.name || \"When@\" + getNextId() : \"When\";\n var effectAction = createAction(process.env.NODE_ENV !== \"production\" ? opts.name + \"-effect\" : \"When-effect\", effect);\n // eslint-disable-next-line\n var disposer = autorun(function (r) {\n // predicate should not change state\n var cond = allowStateChanges(false, predicate);\n if (cond) {\n r.dispose();\n if (timeoutHandle) {\n clearTimeout(timeoutHandle);\n }\n effectAction();\n }\n }, opts);\n return disposer;\n}\nfunction whenPromise(predicate, opts) {\n var _opts$signal;\n if (process.env.NODE_ENV !== \"production\" && opts && opts.onError) {\n return die(\"the options 'onError' and 'promise' cannot be combined\");\n }\n if (opts != null && (_opts$signal = opts.signal) != null && _opts$signal.aborted) {\n return Object.assign(Promise.reject(new Error(\"WHEN_ABORTED\")), {\n cancel: function cancel() {\n return null;\n }\n });\n }\n var cancel;\n var abort;\n var res = new Promise(function (resolve, reject) {\n var _opts$signal2;\n var disposer = _when(predicate, resolve, _extends({}, opts, {\n onError: reject\n }));\n cancel = function cancel() {\n disposer();\n reject(new Error(\"WHEN_CANCELLED\"));\n };\n abort = function abort() {\n disposer();\n reject(new Error(\"WHEN_ABORTED\"));\n };\n opts == null || (_opts$signal2 = opts.signal) == null || _opts$signal2.addEventListener == null || _opts$signal2.addEventListener(\"abort\", abort);\n })[\"finally\"](function () {\n var _opts$signal3;\n return opts == null || (_opts$signal3 = opts.signal) == null || _opts$signal3.removeEventListener == null ? void 0 : _opts$signal3.removeEventListener(\"abort\", abort);\n });\n res.cancel = cancel;\n return res;\n}\n\nfunction getAdm(target) {\n return target[$mobx];\n}\n// Optimization: we don't need the intermediate objects and could have a completely custom administration for DynamicObjects,\n// and skip either the internal values map, or the base object with its property descriptors!\nvar objectProxyTraps = {\n has: function has(target, name) {\n if (process.env.NODE_ENV !== \"production\" && globalState.trackingDerivation) {\n warnAboutProxyRequirement(\"detect new properties using the 'in' operator. Use 'has' from 'mobx' instead.\");\n }\n return getAdm(target).has_(name);\n },\n get: function get(target, name) {\n return getAdm(target).get_(name);\n },\n set: function set(target, name, value) {\n var _getAdm$set_;\n if (!isStringish(name)) {\n return false;\n }\n if (process.env.NODE_ENV !== \"production\" && !getAdm(target).values_.has(name)) {\n warnAboutProxyRequirement(\"add a new observable property through direct assignment. Use 'set' from 'mobx' instead.\");\n }\n // null (intercepted) -> true (success)\n return (_getAdm$set_ = getAdm(target).set_(name, value, true)) != null ? _getAdm$set_ : true;\n },\n deleteProperty: function deleteProperty(target, name) {\n var _getAdm$delete_;\n if (process.env.NODE_ENV !== \"production\") {\n warnAboutProxyRequirement(\"delete properties from an observable object. Use 'remove' from 'mobx' instead.\");\n }\n if (!isStringish(name)) {\n return false;\n }\n // null (intercepted) -> true (success)\n return (_getAdm$delete_ = getAdm(target).delete_(name, true)) != null ? _getAdm$delete_ : true;\n },\n defineProperty: function defineProperty(target, name, descriptor) {\n var _getAdm$definePropert;\n if (process.env.NODE_ENV !== \"production\") {\n warnAboutProxyRequirement(\"define property on an observable object. Use 'defineProperty' from 'mobx' instead.\");\n }\n // null (intercepted) -> true (success)\n return (_getAdm$definePropert = getAdm(target).defineProperty_(name, descriptor)) != null ? _getAdm$definePropert : true;\n },\n ownKeys: function ownKeys(target) {\n if (process.env.NODE_ENV !== \"production\" && globalState.trackingDerivation) {\n warnAboutProxyRequirement(\"iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead.\");\n }\n return getAdm(target).ownKeys_();\n },\n preventExtensions: function preventExtensions(target) {\n die(13);\n }\n};\nfunction asDynamicObservableObject(target, options) {\n var _target$$mobx, _target$$mobx$proxy_;\n assertProxies();\n target = asObservableObject(target, options);\n return (_target$$mobx$proxy_ = (_target$$mobx = target[$mobx]).proxy_) != null ? _target$$mobx$proxy_ : _target$$mobx.proxy_ = new Proxy(target, objectProxyTraps);\n}\n\nfunction hasInterceptors(interceptable) {\n return interceptable.interceptors_ !== undefined && interceptable.interceptors_.length > 0;\n}\nfunction registerInterceptor(interceptable, handler) {\n var interceptors = interceptable.interceptors_ || (interceptable.interceptors_ = []);\n interceptors.push(handler);\n return once(function () {\n var idx = interceptors.indexOf(handler);\n if (idx !== -1) {\n interceptors.splice(idx, 1);\n }\n });\n}\nfunction interceptChange(interceptable, change) {\n var prevU = untrackedStart();\n try {\n // Interceptor can modify the array, copy it to avoid concurrent modification, see #1950\n var interceptors = [].concat(interceptable.interceptors_ || []);\n for (var i = 0, l = interceptors.length; i < l; i++) {\n change = interceptors[i](change);\n if (change && !change.type) {\n die(14);\n }\n if (!change) {\n break;\n }\n }\n return change;\n } finally {\n untrackedEnd(prevU);\n }\n}\n\nfunction hasListeners(listenable) {\n return listenable.changeListeners_ !== undefined && listenable.changeListeners_.length > 0;\n}\nfunction registerListener(listenable, handler) {\n var listeners = listenable.changeListeners_ || (listenable.changeListeners_ = []);\n listeners.push(handler);\n return once(function () {\n var idx = listeners.indexOf(handler);\n if (idx !== -1) {\n listeners.splice(idx, 1);\n }\n });\n}\nfunction notifyListeners(listenable, change) {\n var prevU = untrackedStart();\n var listeners = listenable.changeListeners_;\n if (!listeners) {\n return;\n }\n listeners = listeners.slice();\n for (var i = 0, l = listeners.length; i < l; i++) {\n listeners[i](change);\n }\n untrackedEnd(prevU);\n}\n\nfunction makeObservable(target, annotations, options) {\n initObservable(function () {\n var _annotations;\n var adm = asObservableObject(target, options)[$mobx];\n if (process.env.NODE_ENV !== \"production\" && annotations && target[storedAnnotationsSymbol]) {\n die(\"makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.\");\n }\n // Default to decorators\n (_annotations = annotations) != null ? _annotations : annotations = collectStoredAnnotations(target);\n // Annotate\n ownKeys(annotations).forEach(function (key) {\n return adm.make_(key, annotations[key]);\n });\n });\n return target;\n}\n// proto[keysSymbol] = new Set()\nvar keysSymbol = /*#__PURE__*/Symbol(\"mobx-keys\");\nfunction makeAutoObservable(target, overrides, options) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!isPlainObject(target) && !isPlainObject(Object.getPrototypeOf(target))) {\n die(\"'makeAutoObservable' can only be used for classes that don't have a superclass\");\n }\n if (isObservableObject(target)) {\n die(\"makeAutoObservable can only be used on objects not already made observable\");\n }\n }\n // Optimization: avoid visiting protos\n // Assumes that annotation.make_/.extend_ works the same for plain objects\n if (isPlainObject(target)) {\n return extendObservable(target, target, overrides, options);\n }\n initObservable(function () {\n var adm = asObservableObject(target, options)[$mobx];\n // Optimization: cache keys on proto\n // Assumes makeAutoObservable can be called only once per object and can't be used in subclass\n if (!target[keysSymbol]) {\n var proto = Object.getPrototypeOf(target);\n var keys = new Set([].concat(ownKeys(target), ownKeys(proto)));\n keys[\"delete\"](\"constructor\");\n keys[\"delete\"]($mobx);\n addHiddenProp(proto, keysSymbol, keys);\n }\n target[keysSymbol].forEach(function (key) {\n return adm.make_(key,\n // must pass \"undefined\" for { key: undefined }\n !overrides ? true : key in overrides ? overrides[key] : true);\n });\n });\n return target;\n}\n\nvar SPLICE = \"splice\";\nvar UPDATE = \"update\";\nvar MAX_SPLICE_SIZE = 10000; // See e.g. https://github.com/mobxjs/mobx/issues/859\nvar arrayTraps = {\n get: function get(target, name) {\n var adm = target[$mobx];\n if (name === $mobx) {\n return adm;\n }\n if (name === \"length\") {\n return adm.getArrayLength_();\n }\n if (typeof name === \"string\" && !isNaN(name)) {\n return adm.get_(parseInt(name));\n }\n if (hasProp(arrayExtensions, name)) {\n return arrayExtensions[name];\n }\n return target[name];\n },\n set: function set(target, name, value) {\n var adm = target[$mobx];\n if (name === \"length\") {\n adm.setArrayLength_(value);\n }\n if (typeof name === \"symbol\" || isNaN(name)) {\n target[name] = value;\n } else {\n // numeric string\n adm.set_(parseInt(name), value);\n }\n return true;\n },\n preventExtensions: function preventExtensions() {\n die(15);\n }\n};\nvar ObservableArrayAdministration = /*#__PURE__*/function () {\n function ObservableArrayAdministration(name, enhancer, owned_, legacyMode_) {\n if (name === void 0) {\n name = process.env.NODE_ENV !== \"production\" ? \"ObservableArray@\" + getNextId() : \"ObservableArray\";\n }\n this.owned_ = void 0;\n this.legacyMode_ = void 0;\n this.atom_ = void 0;\n this.values_ = [];\n // this is the prop that gets proxied, so can't replace it!\n this.interceptors_ = void 0;\n this.changeListeners_ = void 0;\n this.enhancer_ = void 0;\n this.dehancer = void 0;\n this.proxy_ = void 0;\n this.lastKnownLength_ = 0;\n this.owned_ = owned_;\n this.legacyMode_ = legacyMode_;\n this.atom_ = new Atom(name);\n this.enhancer_ = function (newV, oldV) {\n return enhancer(newV, oldV, process.env.NODE_ENV !== \"production\" ? name + \"[..]\" : \"ObservableArray[..]\");\n };\n }\n var _proto = ObservableArrayAdministration.prototype;\n _proto.dehanceValue_ = function dehanceValue_(value) {\n if (this.dehancer !== undefined) {\n return this.dehancer(value);\n }\n return value;\n };\n _proto.dehanceValues_ = function dehanceValues_(values) {\n if (this.dehancer !== undefined && values.length > 0) {\n return values.map(this.dehancer);\n }\n return values;\n };\n _proto.intercept_ = function intercept_(handler) {\n return registerInterceptor(this, handler);\n };\n _proto.observe_ = function observe_(listener, fireImmediately) {\n if (fireImmediately === void 0) {\n fireImmediately = false;\n }\n if (fireImmediately) {\n listener({\n observableKind: \"array\",\n object: this.proxy_,\n debugObjectName: this.atom_.name_,\n type: \"splice\",\n index: 0,\n added: this.values_.slice(),\n addedCount: this.values_.length,\n removed: [],\n removedCount: 0\n });\n }\n return registerListener(this, listener);\n };\n _proto.getArrayLength_ = function getArrayLength_() {\n this.atom_.reportObserved();\n return this.values_.length;\n };\n _proto.setArrayLength_ = function setArrayLength_(newLength) {\n if (typeof newLength !== \"number\" || isNaN(newLength) || newLength < 0) {\n die(\"Out of range: \" + newLength);\n }\n var currentLength = this.values_.length;\n if (newLength === currentLength) {\n return;\n } else if (newLength > currentLength) {\n var newItems = new Array(newLength - currentLength);\n for (var i = 0; i < newLength - currentLength; i++) {\n newItems[i] = undefined;\n } // No Array.fill everywhere...\n this.spliceWithArray_(currentLength, 0, newItems);\n } else {\n this.spliceWithArray_(newLength, currentLength - newLength);\n }\n };\n _proto.updateArrayLength_ = function updateArrayLength_(oldLength, delta) {\n if (oldLength !== this.lastKnownLength_) {\n die(16);\n }\n this.lastKnownLength_ += delta;\n if (this.legacyMode_ && delta > 0) {\n reserveArrayBuffer(oldLength + delta + 1);\n }\n };\n _proto.spliceWithArray_ = function spliceWithArray_(index, deleteCount, newItems) {\n var _this = this;\n checkIfStateModificationsAreAllowed(this.atom_);\n var length = this.values_.length;\n if (index === undefined) {\n index = 0;\n } else if (index > length) {\n index = length;\n } else if (index < 0) {\n index = Math.max(0, length + index);\n }\n if (arguments.length === 1) {\n deleteCount = length - index;\n } else if (deleteCount === undefined || deleteCount === null) {\n deleteCount = 0;\n } else {\n deleteCount = Math.max(0, Math.min(deleteCount, length - index));\n }\n if (newItems === undefined) {\n newItems = EMPTY_ARRAY;\n }\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this.proxy_,\n type: SPLICE,\n index: index,\n removedCount: deleteCount,\n added: newItems\n });\n if (!change) {\n return EMPTY_ARRAY;\n }\n deleteCount = change.removedCount;\n newItems = change.added;\n }\n newItems = newItems.length === 0 ? newItems : newItems.map(function (v) {\n return _this.enhancer_(v, undefined);\n });\n if (this.legacyMode_ || process.env.NODE_ENV !== \"production\") {\n var lengthDelta = newItems.length - deleteCount;\n this.updateArrayLength_(length, lengthDelta); // checks if internal array wasn't modified\n }\n var res = this.spliceItemsIntoValues_(index, deleteCount, newItems);\n if (deleteCount !== 0 || newItems.length !== 0) {\n this.notifyArraySplice_(index, newItems, res);\n }\n return this.dehanceValues_(res);\n };\n _proto.spliceItemsIntoValues_ = function spliceItemsIntoValues_(index, deleteCount, newItems) {\n if (newItems.length < MAX_SPLICE_SIZE) {\n var _this$values_;\n return (_this$values_ = this.values_).splice.apply(_this$values_, [index, deleteCount].concat(newItems));\n } else {\n // The items removed by the splice\n var res = this.values_.slice(index, index + deleteCount);\n // The items that that should remain at the end of the array\n var oldItems = this.values_.slice(index + deleteCount);\n // New length is the previous length + addition count - deletion count\n this.values_.length += newItems.length - deleteCount;\n for (var i = 0; i < newItems.length; i++) {\n this.values_[index + i] = newItems[i];\n }\n for (var _i = 0; _i < oldItems.length; _i++) {\n this.values_[index + newItems.length + _i] = oldItems[_i];\n }\n return res;\n }\n };\n _proto.notifyArrayChildUpdate_ = function notifyArrayChildUpdate_(index, newValue, oldValue) {\n var notifySpy = !this.owned_ && isSpyEnabled();\n var notify = hasListeners(this);\n var change = notify || notifySpy ? {\n observableKind: \"array\",\n object: this.proxy_,\n type: UPDATE,\n debugObjectName: this.atom_.name_,\n index: index,\n newValue: newValue,\n oldValue: oldValue\n } : null;\n // The reason why this is on right hand side here (and not above), is this way the uglifier will drop it, but it won't\n // cause any runtime overhead in development mode without NODE_ENV set, unless spying is enabled\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportStart(change);\n }\n this.atom_.reportChanged();\n if (notify) {\n notifyListeners(this, change);\n }\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportEnd();\n }\n };\n _proto.notifyArraySplice_ = function notifyArraySplice_(index, added, removed) {\n var notifySpy = !this.owned_ && isSpyEnabled();\n var notify = hasListeners(this);\n var change = notify || notifySpy ? {\n observableKind: \"array\",\n object: this.proxy_,\n debugObjectName: this.atom_.name_,\n type: SPLICE,\n index: index,\n removed: removed,\n added: added,\n removedCount: removed.length,\n addedCount: added.length\n } : null;\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportStart(change);\n }\n this.atom_.reportChanged();\n // conform: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/observe\n if (notify) {\n notifyListeners(this, change);\n }\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportEnd();\n }\n };\n _proto.get_ = function get_(index) {\n if (this.legacyMode_ && index >= this.values_.length) {\n console.warn(process.env.NODE_ENV !== \"production\" ? \"[mobx.array] Attempt to read an array index (\" + index + \") that is out of bounds (\" + this.values_.length + \"). Please check length first. Out of bound indices will not be tracked by MobX\" : \"[mobx] Out of bounds read: \" + index);\n return undefined;\n }\n this.atom_.reportObserved();\n return this.dehanceValue_(this.values_[index]);\n };\n _proto.set_ = function set_(index, newValue) {\n var values = this.values_;\n if (this.legacyMode_ && index > values.length) {\n // out of bounds\n die(17, index, values.length);\n }\n if (index < values.length) {\n // update at index in range\n checkIfStateModificationsAreAllowed(this.atom_);\n var oldValue = values[index];\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: UPDATE,\n object: this.proxy_,\n // since \"this\" is the real array we need to pass its proxy\n index: index,\n newValue: newValue\n });\n if (!change) {\n return;\n }\n newValue = change.newValue;\n }\n newValue = this.enhancer_(newValue, oldValue);\n var changed = newValue !== oldValue;\n if (changed) {\n values[index] = newValue;\n this.notifyArrayChildUpdate_(index, newValue, oldValue);\n }\n } else {\n // For out of bound index, we don't create an actual sparse array,\n // but rather fill the holes with undefined (same as setArrayLength_).\n // This could be considered a bug.\n var newItems = new Array(index + 1 - values.length);\n for (var i = 0; i < newItems.length - 1; i++) {\n newItems[i] = undefined;\n } // No Array.fill everywhere...\n newItems[newItems.length - 1] = newValue;\n this.spliceWithArray_(values.length, 0, newItems);\n }\n };\n return ObservableArrayAdministration;\n}();\nfunction createObservableArray(initialValues, enhancer, name, owned) {\n if (name === void 0) {\n name = process.env.NODE_ENV !== \"production\" ? \"ObservableArray@\" + getNextId() : \"ObservableArray\";\n }\n if (owned === void 0) {\n owned = false;\n }\n assertProxies();\n return initObservable(function () {\n var adm = new ObservableArrayAdministration(name, enhancer, owned, false);\n addHiddenFinalProp(adm.values_, $mobx, adm);\n var proxy = new Proxy(adm.values_, arrayTraps);\n adm.proxy_ = proxy;\n if (initialValues && initialValues.length) {\n adm.spliceWithArray_(0, 0, initialValues);\n }\n return proxy;\n });\n}\n// eslint-disable-next-line\nvar arrayExtensions = {\n clear: function clear() {\n return this.splice(0);\n },\n replace: function replace(newItems) {\n var adm = this[$mobx];\n return adm.spliceWithArray_(0, adm.values_.length, newItems);\n },\n // Used by JSON.stringify\n toJSON: function toJSON() {\n return this.slice();\n },\n /*\n * functions that do alter the internal structure of the array, (based on lib.es6.d.ts)\n * since these functions alter the inner structure of the array, the have side effects.\n * Because the have side effects, they should not be used in computed function,\n * and for that reason the do not call dependencyState.notifyObserved\n */\n splice: function splice(index, deleteCount) {\n for (var _len = arguments.length, newItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n newItems[_key - 2] = arguments[_key];\n }\n var adm = this[$mobx];\n switch (arguments.length) {\n case 0:\n return [];\n case 1:\n return adm.spliceWithArray_(index);\n case 2:\n return adm.spliceWithArray_(index, deleteCount);\n }\n return adm.spliceWithArray_(index, deleteCount, newItems);\n },\n spliceWithArray: function spliceWithArray(index, deleteCount, newItems) {\n return this[$mobx].spliceWithArray_(index, deleteCount, newItems);\n },\n push: function push() {\n var adm = this[$mobx];\n for (var _len2 = arguments.length, items = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n items[_key2] = arguments[_key2];\n }\n adm.spliceWithArray_(adm.values_.length, 0, items);\n return adm.values_.length;\n },\n pop: function pop() {\n return this.splice(Math.max(this[$mobx].values_.length - 1, 0), 1)[0];\n },\n shift: function shift() {\n return this.splice(0, 1)[0];\n },\n unshift: function unshift() {\n var adm = this[$mobx];\n for (var _len3 = arguments.length, items = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n items[_key3] = arguments[_key3];\n }\n adm.spliceWithArray_(0, 0, items);\n return adm.values_.length;\n },\n reverse: function reverse() {\n // reverse by default mutates in place before returning the result\n // which makes it both a 'derivation' and a 'mutation'.\n if (globalState.trackingDerivation) {\n die(37, \"reverse\");\n }\n this.replace(this.slice().reverse());\n return this;\n },\n sort: function sort() {\n // sort by default mutates in place before returning the result\n // which goes against all good practices. Let's not change the array in place!\n if (globalState.trackingDerivation) {\n die(37, \"sort\");\n }\n var copy = this.slice();\n copy.sort.apply(copy, arguments);\n this.replace(copy);\n return this;\n },\n remove: function remove(value) {\n var adm = this[$mobx];\n var idx = adm.dehanceValues_(adm.values_).indexOf(value);\n if (idx > -1) {\n this.splice(idx, 1);\n return true;\n }\n return false;\n }\n};\n/**\n * Wrap function from prototype\n * Without this, everything works as well, but this works\n * faster as everything works on unproxied values\n */\naddArrayExtension(\"at\", simpleFunc);\naddArrayExtension(\"concat\", simpleFunc);\naddArrayExtension(\"flat\", simpleFunc);\naddArrayExtension(\"includes\", simpleFunc);\naddArrayExtension(\"indexOf\", simpleFunc);\naddArrayExtension(\"join\", simpleFunc);\naddArrayExtension(\"lastIndexOf\", simpleFunc);\naddArrayExtension(\"slice\", simpleFunc);\naddArrayExtension(\"toString\", simpleFunc);\naddArrayExtension(\"toLocaleString\", simpleFunc);\naddArrayExtension(\"toSorted\", simpleFunc);\naddArrayExtension(\"toSpliced\", simpleFunc);\naddArrayExtension(\"with\", simpleFunc);\n// map\naddArrayExtension(\"every\", mapLikeFunc);\naddArrayExtension(\"filter\", mapLikeFunc);\naddArrayExtension(\"find\", mapLikeFunc);\naddArrayExtension(\"findIndex\", mapLikeFunc);\naddArrayExtension(\"findLast\", mapLikeFunc);\naddArrayExtension(\"findLastIndex\", mapLikeFunc);\naddArrayExtension(\"flatMap\", mapLikeFunc);\naddArrayExtension(\"forEach\", mapLikeFunc);\naddArrayExtension(\"map\", mapLikeFunc);\naddArrayExtension(\"some\", mapLikeFunc);\naddArrayExtension(\"toReversed\", mapLikeFunc);\n// reduce\naddArrayExtension(\"reduce\", reduceLikeFunc);\naddArrayExtension(\"reduceRight\", reduceLikeFunc);\nfunction addArrayExtension(funcName, funcFactory) {\n if (typeof Array.prototype[funcName] === \"function\") {\n arrayExtensions[funcName] = funcFactory(funcName);\n }\n}\n// Report and delegate to dehanced array\nfunction simpleFunc(funcName) {\n return function () {\n var adm = this[$mobx];\n adm.atom_.reportObserved();\n var dehancedValues = adm.dehanceValues_(adm.values_);\n return dehancedValues[funcName].apply(dehancedValues, arguments);\n };\n}\n// Make sure callbacks receive correct array arg #2326\nfunction mapLikeFunc(funcName) {\n return function (callback, thisArg) {\n var _this2 = this;\n var adm = this[$mobx];\n adm.atom_.reportObserved();\n var dehancedValues = adm.dehanceValues_(adm.values_);\n return dehancedValues[funcName](function (element, index) {\n return callback.call(thisArg, element, index, _this2);\n });\n };\n}\n// Make sure callbacks receive correct array arg #2326\nfunction reduceLikeFunc(funcName) {\n return function () {\n var _this3 = this;\n var adm = this[$mobx];\n adm.atom_.reportObserved();\n var dehancedValues = adm.dehanceValues_(adm.values_);\n // #2432 - reduce behavior depends on arguments.length\n var callback = arguments[0];\n arguments[0] = function (accumulator, currentValue, index) {\n return callback(accumulator, currentValue, index, _this3);\n };\n return dehancedValues[funcName].apply(dehancedValues, arguments);\n };\n}\nvar isObservableArrayAdministration = /*#__PURE__*/createInstanceofPredicate(\"ObservableArrayAdministration\", ObservableArrayAdministration);\nfunction isObservableArray(thing) {\n return isObject(thing) && isObservableArrayAdministration(thing[$mobx]);\n}\n\nvar ObservableMapMarker = {};\nvar ADD = \"add\";\nvar DELETE = \"delete\";\n// just extend Map? See also https://gist.github.com/nestharus/13b4d74f2ef4a2f4357dbd3fc23c1e54\n// But: https://github.com/mobxjs/mobx/issues/1556\nvar ObservableMap = /*#__PURE__*/function () {\n function ObservableMap(initialData, enhancer_, name_) {\n var _this = this;\n if (enhancer_ === void 0) {\n enhancer_ = deepEnhancer;\n }\n if (name_ === void 0) {\n name_ = process.env.NODE_ENV !== \"production\" ? \"ObservableMap@\" + getNextId() : \"ObservableMap\";\n }\n this.enhancer_ = void 0;\n this.name_ = void 0;\n this[$mobx] = ObservableMapMarker;\n this.data_ = void 0;\n this.hasMap_ = void 0;\n // hasMap, not hashMap >-).\n this.keysAtom_ = void 0;\n this.interceptors_ = void 0;\n this.changeListeners_ = void 0;\n this.dehancer = void 0;\n this.enhancer_ = enhancer_;\n this.name_ = name_;\n if (!isFunction(Map)) {\n die(18);\n }\n initObservable(function () {\n _this.keysAtom_ = createAtom(process.env.NODE_ENV !== \"production\" ? _this.name_ + \".keys()\" : \"ObservableMap.keys()\");\n _this.data_ = new Map();\n _this.hasMap_ = new Map();\n if (initialData) {\n _this.merge(initialData);\n }\n });\n }\n var _proto = ObservableMap.prototype;\n _proto.has_ = function has_(key) {\n return this.data_.has(key);\n };\n _proto.has = function has(key) {\n var _this2 = this;\n if (!globalState.trackingDerivation) {\n return this.has_(key);\n }\n var entry = this.hasMap_.get(key);\n if (!entry) {\n var newEntry = entry = new ObservableValue(this.has_(key), referenceEnhancer, process.env.NODE_ENV !== \"production\" ? this.name_ + \".\" + stringifyKey(key) + \"?\" : \"ObservableMap.key?\", false);\n this.hasMap_.set(key, newEntry);\n onBecomeUnobserved(newEntry, function () {\n return _this2.hasMap_[\"delete\"](key);\n });\n }\n return entry.get();\n };\n _proto.set = function set(key, value) {\n var hasKey = this.has_(key);\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: hasKey ? UPDATE : ADD,\n object: this,\n newValue: value,\n name: key\n });\n if (!change) {\n return this;\n }\n value = change.newValue;\n }\n if (hasKey) {\n this.updateValue_(key, value);\n } else {\n this.addValue_(key, value);\n }\n return this;\n };\n _proto[\"delete\"] = function _delete(key) {\n var _this3 = this;\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: DELETE,\n object: this,\n name: key\n });\n if (!change) {\n return false;\n }\n }\n if (this.has_(key)) {\n var notifySpy = isSpyEnabled();\n var notify = hasListeners(this);\n var _change = notify || notifySpy ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: DELETE,\n object: this,\n oldValue: this.data_.get(key).value_,\n name: key\n } : null;\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportStart(_change);\n } // TODO fix type\n transaction(function () {\n var _this3$hasMap_$get;\n _this3.keysAtom_.reportChanged();\n (_this3$hasMap_$get = _this3.hasMap_.get(key)) == null || _this3$hasMap_$get.setNewValue_(false);\n var observable = _this3.data_.get(key);\n observable.setNewValue_(undefined);\n _this3.data_[\"delete\"](key);\n });\n if (notify) {\n notifyListeners(this, _change);\n }\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportEnd();\n }\n return true;\n }\n return false;\n };\n _proto.updateValue_ = function updateValue_(key, newValue) {\n var observable = this.data_.get(key);\n newValue = observable.prepareNewValue_(newValue);\n if (newValue !== globalState.UNCHANGED) {\n var notifySpy = isSpyEnabled();\n var notify = hasListeners(this);\n var change = notify || notifySpy ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: UPDATE,\n object: this,\n oldValue: observable.value_,\n name: key,\n newValue: newValue\n } : null;\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportStart(change);\n } // TODO fix type\n observable.setNewValue_(newValue);\n if (notify) {\n notifyListeners(this, change);\n }\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportEnd();\n }\n }\n };\n _proto.addValue_ = function addValue_(key, newValue) {\n var _this4 = this;\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n transaction(function () {\n var _this4$hasMap_$get;\n var observable = new ObservableValue(newValue, _this4.enhancer_, process.env.NODE_ENV !== \"production\" ? _this4.name_ + \".\" + stringifyKey(key) : \"ObservableMap.key\", false);\n _this4.data_.set(key, observable);\n newValue = observable.value_; // value might have been changed\n (_this4$hasMap_$get = _this4.hasMap_.get(key)) == null || _this4$hasMap_$get.setNewValue_(true);\n _this4.keysAtom_.reportChanged();\n });\n var notifySpy = isSpyEnabled();\n var notify = hasListeners(this);\n var change = notify || notifySpy ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: ADD,\n object: this,\n name: key,\n newValue: newValue\n } : null;\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportStart(change);\n } // TODO fix type\n if (notify) {\n notifyListeners(this, change);\n }\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportEnd();\n }\n };\n _proto.get = function get(key) {\n if (this.has(key)) {\n return this.dehanceValue_(this.data_.get(key).get());\n }\n return this.dehanceValue_(undefined);\n };\n _proto.dehanceValue_ = function dehanceValue_(value) {\n if (this.dehancer !== undefined) {\n return this.dehancer(value);\n }\n return value;\n };\n _proto.keys = function keys() {\n this.keysAtom_.reportObserved();\n return this.data_.keys();\n };\n _proto.values = function values() {\n var self = this;\n var keys = this.keys();\n return makeIterableForMap({\n next: function next() {\n var _keys$next = keys.next(),\n done = _keys$next.done,\n value = _keys$next.value;\n return {\n done: done,\n value: done ? undefined : self.get(value)\n };\n }\n });\n };\n _proto.entries = function entries() {\n var self = this;\n var keys = this.keys();\n return makeIterableForMap({\n next: function next() {\n var _keys$next2 = keys.next(),\n done = _keys$next2.done,\n value = _keys$next2.value;\n return {\n done: done,\n value: done ? undefined : [value, self.get(value)]\n };\n }\n });\n };\n _proto[Symbol.iterator] = function () {\n return this.entries();\n };\n _proto.forEach = function forEach(callback, thisArg) {\n for (var _iterator = _createForOfIteratorHelperLoose(this), _step; !(_step = _iterator()).done;) {\n var _step$value = _step.value,\n key = _step$value[0],\n value = _step$value[1];\n callback.call(thisArg, value, key, this);\n }\n }\n /** Merge another object into this object, returns this. */;\n _proto.merge = function merge(other) {\n var _this5 = this;\n if (isObservableMap(other)) {\n other = new Map(other);\n }\n transaction(function () {\n if (isPlainObject(other)) {\n getPlainObjectKeys(other).forEach(function (key) {\n return _this5.set(key, other[key]);\n });\n } else if (Array.isArray(other)) {\n other.forEach(function (_ref) {\n var key = _ref[0],\n value = _ref[1];\n return _this5.set(key, value);\n });\n } else if (isES6Map(other)) {\n if (!isPlainES6Map(other)) {\n die(19, other);\n }\n other.forEach(function (value, key) {\n return _this5.set(key, value);\n });\n } else if (other !== null && other !== undefined) {\n die(20, other);\n }\n });\n return this;\n };\n _proto.clear = function clear() {\n var _this6 = this;\n transaction(function () {\n untracked(function () {\n for (var _iterator2 = _createForOfIteratorHelperLoose(_this6.keys()), _step2; !(_step2 = _iterator2()).done;) {\n var key = _step2.value;\n _this6[\"delete\"](key);\n }\n });\n });\n };\n _proto.replace = function replace(values) {\n var _this7 = this;\n // Implementation requirements:\n // - respect ordering of replacement map\n // - allow interceptors to run and potentially prevent individual operations\n // - don't recreate observables that already exist in original map (so we don't destroy existing subscriptions)\n // - don't _keysAtom.reportChanged if the keys of resulting map are indentical (order matters!)\n // - note that result map may differ from replacement map due to the interceptors\n transaction(function () {\n // Convert to map so we can do quick key lookups\n var replacementMap = convertToMap(values);\n var orderedData = new Map();\n // Used for optimization\n var keysReportChangedCalled = false;\n // Delete keys that don't exist in replacement map\n // if the key deletion is prevented by interceptor\n // add entry at the beginning of the result map\n for (var _iterator3 = _createForOfIteratorHelperLoose(_this7.data_.keys()), _step3; !(_step3 = _iterator3()).done;) {\n var key = _step3.value;\n // Concurrently iterating/deleting keys\n // iterator should handle this correctly\n if (!replacementMap.has(key)) {\n var deleted = _this7[\"delete\"](key);\n // Was the key removed?\n if (deleted) {\n // _keysAtom.reportChanged() was already called\n keysReportChangedCalled = true;\n } else {\n // Delete prevented by interceptor\n var value = _this7.data_.get(key);\n orderedData.set(key, value);\n }\n }\n }\n // Merge entries\n for (var _iterator4 = _createForOfIteratorHelperLoose(replacementMap.entries()), _step4; !(_step4 = _iterator4()).done;) {\n var _step4$value = _step4.value,\n _key = _step4$value[0],\n _value = _step4$value[1];\n // We will want to know whether a new key is added\n var keyExisted = _this7.data_.has(_key);\n // Add or update value\n _this7.set(_key, _value);\n // The addition could have been prevent by interceptor\n if (_this7.data_.has(_key)) {\n // The update could have been prevented by interceptor\n // and also we want to preserve existing values\n // so use value from _data map (instead of replacement map)\n var _value2 = _this7.data_.get(_key);\n orderedData.set(_key, _value2);\n // Was a new key added?\n if (!keyExisted) {\n // _keysAtom.reportChanged() was already called\n keysReportChangedCalled = true;\n }\n }\n }\n // Check for possible key order change\n if (!keysReportChangedCalled) {\n if (_this7.data_.size !== orderedData.size) {\n // If size differs, keys are definitely modified\n _this7.keysAtom_.reportChanged();\n } else {\n var iter1 = _this7.data_.keys();\n var iter2 = orderedData.keys();\n var next1 = iter1.next();\n var next2 = iter2.next();\n while (!next1.done) {\n if (next1.value !== next2.value) {\n _this7.keysAtom_.reportChanged();\n break;\n }\n next1 = iter1.next();\n next2 = iter2.next();\n }\n }\n }\n // Use correctly ordered map\n _this7.data_ = orderedData;\n });\n return this;\n };\n _proto.toString = function toString() {\n return \"[object ObservableMap]\";\n };\n _proto.toJSON = function toJSON() {\n return Array.from(this);\n };\n /**\n * Observes this object. Triggers for the events 'add', 'update' and 'delete'.\n * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe\n * for callback details\n */\n _proto.observe_ = function observe_(listener, fireImmediately) {\n if (process.env.NODE_ENV !== \"production\" && fireImmediately === true) {\n die(\"`observe` doesn't support fireImmediately=true in combination with maps.\");\n }\n return registerListener(this, listener);\n };\n _proto.intercept_ = function intercept_(handler) {\n return registerInterceptor(this, handler);\n };\n return _createClass(ObservableMap, [{\n key: \"size\",\n get: function get() {\n this.keysAtom_.reportObserved();\n return this.data_.size;\n }\n }, {\n key: Symbol.toStringTag,\n get: function get() {\n return \"Map\";\n }\n }]);\n}();\n// eslint-disable-next-line\nvar isObservableMap = /*#__PURE__*/createInstanceofPredicate(\"ObservableMap\", ObservableMap);\nfunction makeIterableForMap(iterator) {\n iterator[Symbol.toStringTag] = \"MapIterator\";\n return makeIterable(iterator);\n}\nfunction convertToMap(dataStructure) {\n if (isES6Map(dataStructure) || isObservableMap(dataStructure)) {\n return dataStructure;\n } else if (Array.isArray(dataStructure)) {\n return new Map(dataStructure);\n } else if (isPlainObject(dataStructure)) {\n var map = new Map();\n for (var key in dataStructure) {\n map.set(key, dataStructure[key]);\n }\n return map;\n } else {\n return die(21, dataStructure);\n }\n}\n\nvar ObservableSetMarker = {};\nvar ObservableSet = /*#__PURE__*/function () {\n function ObservableSet(initialData, enhancer, name_) {\n var _this = this;\n if (enhancer === void 0) {\n enhancer = deepEnhancer;\n }\n if (name_ === void 0) {\n name_ = process.env.NODE_ENV !== \"production\" ? \"ObservableSet@\" + getNextId() : \"ObservableSet\";\n }\n this.name_ = void 0;\n this[$mobx] = ObservableSetMarker;\n this.data_ = new Set();\n this.atom_ = void 0;\n this.changeListeners_ = void 0;\n this.interceptors_ = void 0;\n this.dehancer = void 0;\n this.enhancer_ = void 0;\n this.name_ = name_;\n if (!isFunction(Set)) {\n die(22);\n }\n this.enhancer_ = function (newV, oldV) {\n return enhancer(newV, oldV, name_);\n };\n initObservable(function () {\n _this.atom_ = createAtom(_this.name_);\n if (initialData) {\n _this.replace(initialData);\n }\n });\n }\n var _proto = ObservableSet.prototype;\n _proto.dehanceValue_ = function dehanceValue_(value) {\n if (this.dehancer !== undefined) {\n return this.dehancer(value);\n }\n return value;\n };\n _proto.clear = function clear() {\n var _this2 = this;\n transaction(function () {\n untracked(function () {\n for (var _iterator = _createForOfIteratorHelperLoose(_this2.data_.values()), _step; !(_step = _iterator()).done;) {\n var value = _step.value;\n _this2[\"delete\"](value);\n }\n });\n });\n };\n _proto.forEach = function forEach(callbackFn, thisArg) {\n for (var _iterator2 = _createForOfIteratorHelperLoose(this), _step2; !(_step2 = _iterator2()).done;) {\n var value = _step2.value;\n callbackFn.call(thisArg, value, value, this);\n }\n };\n _proto.add = function add(value) {\n var _this3 = this;\n checkIfStateModificationsAreAllowed(this.atom_);\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: ADD,\n object: this,\n newValue: value\n });\n if (!change) {\n return this;\n }\n // ideally, value = change.value would be done here, so that values can be\n // changed by interceptor. Same applies for other Set and Map api's.\n }\n if (!this.has(value)) {\n transaction(function () {\n _this3.data_.add(_this3.enhancer_(value, undefined));\n _this3.atom_.reportChanged();\n });\n var notifySpy = process.env.NODE_ENV !== \"production\" && isSpyEnabled();\n var notify = hasListeners(this);\n var _change = notify || notifySpy ? {\n observableKind: \"set\",\n debugObjectName: this.name_,\n type: ADD,\n object: this,\n newValue: value\n } : null;\n if (notifySpy && process.env.NODE_ENV !== \"production\") {\n spyReportStart(_change);\n }\n if (notify) {\n notifyListeners(this, _change);\n }\n if (notifySpy && process.env.NODE_ENV !== \"production\") {\n spyReportEnd();\n }\n }\n return this;\n };\n _proto[\"delete\"] = function _delete(value) {\n var _this4 = this;\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: DELETE,\n object: this,\n oldValue: value\n });\n if (!change) {\n return false;\n }\n }\n if (this.has(value)) {\n var notifySpy = process.env.NODE_ENV !== \"production\" && isSpyEnabled();\n var notify = hasListeners(this);\n var _change2 = notify || notifySpy ? {\n observableKind: \"set\",\n debugObjectName: this.name_,\n type: DELETE,\n object: this,\n oldValue: value\n } : null;\n if (notifySpy && process.env.NODE_ENV !== \"production\") {\n spyReportStart(_change2);\n }\n transaction(function () {\n _this4.atom_.reportChanged();\n _this4.data_[\"delete\"](value);\n });\n if (notify) {\n notifyListeners(this, _change2);\n }\n if (notifySpy && process.env.NODE_ENV !== \"production\") {\n spyReportEnd();\n }\n return true;\n }\n return false;\n };\n _proto.has = function has(value) {\n this.atom_.reportObserved();\n return this.data_.has(this.dehanceValue_(value));\n };\n _proto.entries = function entries() {\n var nextIndex = 0;\n var keys = Array.from(this.keys());\n var values = Array.from(this.values());\n return makeIterableForSet({\n next: function next() {\n var index = nextIndex;\n nextIndex += 1;\n return index < values.length ? {\n value: [keys[index], values[index]],\n done: false\n } : {\n value: undefined,\n done: true\n };\n }\n });\n };\n _proto.keys = function keys() {\n return this.values();\n };\n _proto.values = function values() {\n this.atom_.reportObserved();\n var self = this;\n var nextIndex = 0;\n var observableValues = Array.from(this.data_.values());\n return makeIterableForSet({\n next: function next() {\n return nextIndex < observableValues.length ? {\n value: self.dehanceValue_(observableValues[nextIndex++]),\n done: false\n } : {\n value: undefined,\n done: true\n };\n }\n });\n };\n _proto.intersection = function intersection(otherSet) {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) {\n return otherSet.intersection(this);\n } else {\n var dehancedSet = new Set(this);\n return dehancedSet.intersection(otherSet);\n }\n };\n _proto.union = function union(otherSet) {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) {\n return otherSet.union(this);\n } else {\n var dehancedSet = new Set(this);\n return dehancedSet.union(otherSet);\n }\n };\n _proto.difference = function difference(otherSet) {\n return new Set(this).difference(otherSet);\n };\n _proto.symmetricDifference = function symmetricDifference(otherSet) {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) {\n return otherSet.symmetricDifference(this);\n } else {\n var dehancedSet = new Set(this);\n return dehancedSet.symmetricDifference(otherSet);\n }\n };\n _proto.isSubsetOf = function isSubsetOf(otherSet) {\n return new Set(this).isSubsetOf(otherSet);\n };\n _proto.isSupersetOf = function isSupersetOf(otherSet) {\n return new Set(this).isSupersetOf(otherSet);\n };\n _proto.isDisjointFrom = function isDisjointFrom(otherSet) {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) {\n return otherSet.isDisjointFrom(this);\n } else {\n var dehancedSet = new Set(this);\n return dehancedSet.isDisjointFrom(otherSet);\n }\n };\n _proto.replace = function replace(other) {\n var _this5 = this;\n if (isObservableSet(other)) {\n other = new Set(other);\n }\n transaction(function () {\n if (Array.isArray(other)) {\n _this5.clear();\n other.forEach(function (value) {\n return _this5.add(value);\n });\n } else if (isES6Set(other)) {\n _this5.clear();\n other.forEach(function (value) {\n return _this5.add(value);\n });\n } else if (other !== null && other !== undefined) {\n die(\"Cannot initialize set from \" + other);\n }\n });\n return this;\n };\n _proto.observe_ = function observe_(listener, fireImmediately) {\n // ... 'fireImmediately' could also be true?\n if (process.env.NODE_ENV !== \"production\" && fireImmediately === true) {\n die(\"`observe` doesn't support fireImmediately=true in combination with sets.\");\n }\n return registerListener(this, listener);\n };\n _proto.intercept_ = function intercept_(handler) {\n return registerInterceptor(this, handler);\n };\n _proto.toJSON = function toJSON() {\n return Array.from(this);\n };\n _proto.toString = function toString() {\n return \"[object ObservableSet]\";\n };\n _proto[Symbol.iterator] = function () {\n return this.values();\n };\n return _createClass(ObservableSet, [{\n key: \"size\",\n get: function get() {\n this.atom_.reportObserved();\n return this.data_.size;\n }\n }, {\n key: Symbol.toStringTag,\n get: function get() {\n return \"Set\";\n }\n }]);\n}();\n// eslint-disable-next-line\nvar isObservableSet = /*#__PURE__*/createInstanceofPredicate(\"ObservableSet\", ObservableSet);\nfunction makeIterableForSet(iterator) {\n iterator[Symbol.toStringTag] = \"SetIterator\";\n return makeIterable(iterator);\n}\n\nvar descriptorCache = /*#__PURE__*/Object.create(null);\nvar REMOVE = \"remove\";\nvar ObservableObjectAdministration = /*#__PURE__*/function () {\n function ObservableObjectAdministration(target_, values_, name_,\n // Used anytime annotation is not explicitely provided\n defaultAnnotation_) {\n if (values_ === void 0) {\n values_ = new Map();\n }\n if (defaultAnnotation_ === void 0) {\n defaultAnnotation_ = autoAnnotation;\n }\n this.target_ = void 0;\n this.values_ = void 0;\n this.name_ = void 0;\n this.defaultAnnotation_ = void 0;\n this.keysAtom_ = void 0;\n this.changeListeners_ = void 0;\n this.interceptors_ = void 0;\n this.proxy_ = void 0;\n this.isPlainObject_ = void 0;\n this.appliedAnnotations_ = void 0;\n this.pendingKeys_ = void 0;\n this.target_ = target_;\n this.values_ = values_;\n this.name_ = name_;\n this.defaultAnnotation_ = defaultAnnotation_;\n this.keysAtom_ = new Atom(process.env.NODE_ENV !== \"production\" ? this.name_ + \".keys\" : \"ObservableObject.keys\");\n // Optimization: we use this frequently\n this.isPlainObject_ = isPlainObject(this.target_);\n if (process.env.NODE_ENV !== \"production\" && !isAnnotation(this.defaultAnnotation_)) {\n die(\"defaultAnnotation must be valid annotation\");\n }\n if (process.env.NODE_ENV !== \"production\") {\n // Prepare structure for tracking which fields were already annotated\n this.appliedAnnotations_ = {};\n }\n }\n var _proto = ObservableObjectAdministration.prototype;\n _proto.getObservablePropValue_ = function getObservablePropValue_(key) {\n return this.values_.get(key).get();\n };\n _proto.setObservablePropValue_ = function setObservablePropValue_(key, newValue) {\n var observable = this.values_.get(key);\n if (observable instanceof ComputedValue) {\n observable.set(newValue);\n return true;\n }\n // intercept\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n type: UPDATE,\n object: this.proxy_ || this.target_,\n name: key,\n newValue: newValue\n });\n if (!change) {\n return null;\n }\n newValue = change.newValue;\n }\n newValue = observable.prepareNewValue_(newValue);\n // notify spy & observers\n if (newValue !== globalState.UNCHANGED) {\n var notify = hasListeners(this);\n var notifySpy = process.env.NODE_ENV !== \"production\" && isSpyEnabled();\n var _change = notify || notifySpy ? {\n type: UPDATE,\n observableKind: \"object\",\n debugObjectName: this.name_,\n object: this.proxy_ || this.target_,\n oldValue: observable.value_,\n name: key,\n newValue: newValue\n } : null;\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportStart(_change);\n }\n observable.setNewValue_(newValue);\n if (notify) {\n notifyListeners(this, _change);\n }\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportEnd();\n }\n }\n return true;\n };\n _proto.get_ = function get_(key) {\n if (globalState.trackingDerivation && !hasProp(this.target_, key)) {\n // Key doesn't exist yet, subscribe for it in case it's added later\n this.has_(key);\n }\n return this.target_[key];\n }\n /**\n * @param {PropertyKey} key\n * @param {any} value\n * @param {Annotation|boolean} annotation true - use default annotation, false - copy as is\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */;\n _proto.set_ = function set_(key, value, proxyTrap) {\n if (proxyTrap === void 0) {\n proxyTrap = false;\n }\n // Don't use .has(key) - we care about own\n if (hasProp(this.target_, key)) {\n // Existing prop\n if (this.values_.has(key)) {\n // Observable (can be intercepted)\n return this.setObservablePropValue_(key, value);\n } else if (proxyTrap) {\n // Non-observable - proxy\n return Reflect.set(this.target_, key, value);\n } else {\n // Non-observable\n this.target_[key] = value;\n return true;\n }\n } else {\n // New prop\n return this.extend_(key, {\n value: value,\n enumerable: true,\n writable: true,\n configurable: true\n }, this.defaultAnnotation_, proxyTrap);\n }\n }\n // Trap for \"in\"\n ;\n _proto.has_ = function has_(key) {\n if (!globalState.trackingDerivation) {\n // Skip key subscription outside derivation\n return key in this.target_;\n }\n this.pendingKeys_ || (this.pendingKeys_ = new Map());\n var entry = this.pendingKeys_.get(key);\n if (!entry) {\n entry = new ObservableValue(key in this.target_, referenceEnhancer, process.env.NODE_ENV !== \"production\" ? this.name_ + \".\" + stringifyKey(key) + \"?\" : \"ObservableObject.key?\", false);\n this.pendingKeys_.set(key, entry);\n }\n return entry.get();\n }\n /**\n * @param {PropertyKey} key\n * @param {Annotation|boolean} annotation true - use default annotation, false - ignore prop\n */;\n _proto.make_ = function make_(key, annotation) {\n if (annotation === true) {\n annotation = this.defaultAnnotation_;\n }\n if (annotation === false) {\n return;\n }\n assertAnnotable(this, annotation, key);\n if (!(key in this.target_)) {\n var _this$target_$storedA;\n // Throw on missing key, except for decorators:\n // Decorator annotations are collected from whole prototype chain.\n // When called from super() some props may not exist yet.\n // However we don't have to worry about missing prop,\n // because the decorator must have been applied to something.\n if ((_this$target_$storedA = this.target_[storedAnnotationsSymbol]) != null && _this$target_$storedA[key]) {\n return; // will be annotated by subclass constructor\n } else {\n die(1, annotation.annotationType_, this.name_ + \".\" + key.toString());\n }\n }\n var source = this.target_;\n while (source && source !== objectPrototype) {\n var descriptor = getDescriptor(source, key);\n if (descriptor) {\n var outcome = annotation.make_(this, key, descriptor, source);\n if (outcome === 0 /* MakeResult.Cancel */) {\n return;\n }\n if (outcome === 1 /* MakeResult.Break */) {\n break;\n }\n }\n source = Object.getPrototypeOf(source);\n }\n recordAnnotationApplied(this, annotation, key);\n }\n /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {Annotation|boolean} annotation true - use default annotation, false - copy as is\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */;\n _proto.extend_ = function extend_(key, descriptor, annotation, proxyTrap) {\n if (proxyTrap === void 0) {\n proxyTrap = false;\n }\n if (annotation === true) {\n annotation = this.defaultAnnotation_;\n }\n if (annotation === false) {\n return this.defineProperty_(key, descriptor, proxyTrap);\n }\n assertAnnotable(this, annotation, key);\n var outcome = annotation.extend_(this, key, descriptor, proxyTrap);\n if (outcome) {\n recordAnnotationApplied(this, annotation, key);\n }\n return outcome;\n }\n /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */;\n _proto.defineProperty_ = function defineProperty_(key, descriptor, proxyTrap) {\n if (proxyTrap === void 0) {\n proxyTrap = false;\n }\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n try {\n startBatch();\n // Delete\n var deleteOutcome = this.delete_(key);\n if (!deleteOutcome) {\n // Failure or intercepted\n return deleteOutcome;\n }\n // ADD interceptor\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: descriptor.value\n });\n if (!change) {\n return null;\n }\n var newValue = change.newValue;\n if (descriptor.value !== newValue) {\n descriptor = _extends({}, descriptor, {\n value: newValue\n });\n }\n }\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) {\n return false;\n }\n } else {\n defineProperty(this.target_, key, descriptor);\n }\n // Notify\n this.notifyPropertyAddition_(key, descriptor.value);\n } finally {\n endBatch();\n }\n return true;\n }\n // If original descriptor becomes relevant, move this to annotation directly\n ;\n _proto.defineObservableProperty_ = function defineObservableProperty_(key, value, enhancer, proxyTrap) {\n if (proxyTrap === void 0) {\n proxyTrap = false;\n }\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n try {\n startBatch();\n // Delete\n var deleteOutcome = this.delete_(key);\n if (!deleteOutcome) {\n // Failure or intercepted\n return deleteOutcome;\n }\n // ADD interceptor\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: value\n });\n if (!change) {\n return null;\n }\n value = change.newValue;\n }\n var cachedDescriptor = getCachedObservablePropDescriptor(key);\n var descriptor = {\n configurable: globalState.safeDescriptors ? this.isPlainObject_ : true,\n enumerable: true,\n get: cachedDescriptor.get,\n set: cachedDescriptor.set\n };\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) {\n return false;\n }\n } else {\n defineProperty(this.target_, key, descriptor);\n }\n var observable = new ObservableValue(value, enhancer, process.env.NODE_ENV !== \"production\" ? this.name_ + \".\" + key.toString() : \"ObservableObject.key\", false);\n this.values_.set(key, observable);\n // Notify (value possibly changed by ObservableValue)\n this.notifyPropertyAddition_(key, observable.value_);\n } finally {\n endBatch();\n }\n return true;\n }\n // If original descriptor becomes relevant, move this to annotation directly\n ;\n _proto.defineComputedProperty_ = function defineComputedProperty_(key, options, proxyTrap) {\n if (proxyTrap === void 0) {\n proxyTrap = false;\n }\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n try {\n startBatch();\n // Delete\n var deleteOutcome = this.delete_(key);\n if (!deleteOutcome) {\n // Failure or intercepted\n return deleteOutcome;\n }\n // ADD interceptor\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: undefined\n });\n if (!change) {\n return null;\n }\n }\n options.name || (options.name = process.env.NODE_ENV !== \"production\" ? this.name_ + \".\" + key.toString() : \"ObservableObject.key\");\n options.context = this.proxy_ || this.target_;\n var cachedDescriptor = getCachedObservablePropDescriptor(key);\n var descriptor = {\n configurable: globalState.safeDescriptors ? this.isPlainObject_ : true,\n enumerable: false,\n get: cachedDescriptor.get,\n set: cachedDescriptor.set\n };\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) {\n return false;\n }\n } else {\n defineProperty(this.target_, key, descriptor);\n }\n this.values_.set(key, new ComputedValue(options));\n // Notify\n this.notifyPropertyAddition_(key, undefined);\n } finally {\n endBatch();\n }\n return true;\n }\n /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */;\n _proto.delete_ = function delete_(key, proxyTrap) {\n if (proxyTrap === void 0) {\n proxyTrap = false;\n }\n checkIfStateModificationsAreAllowed(this.keysAtom_);\n // No such prop\n if (!hasProp(this.target_, key)) {\n return true;\n }\n // Intercept\n if (hasInterceptors(this)) {\n var change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: REMOVE\n });\n // Cancelled\n if (!change) {\n return null;\n }\n }\n // Delete\n try {\n var _this$pendingKeys_;\n startBatch();\n var notify = hasListeners(this);\n var notifySpy = process.env.NODE_ENV !== \"production\" && isSpyEnabled();\n var observable = this.values_.get(key);\n // Value needed for spies/listeners\n var value = undefined;\n // Optimization: don't pull the value unless we will need it\n if (!observable && (notify || notifySpy)) {\n var _getDescriptor;\n value = (_getDescriptor = getDescriptor(this.target_, key)) == null ? void 0 : _getDescriptor.value;\n }\n // delete prop (do first, may fail)\n if (proxyTrap) {\n if (!Reflect.deleteProperty(this.target_, key)) {\n return false;\n }\n } else {\n delete this.target_[key];\n }\n // Allow re-annotating this field\n if (process.env.NODE_ENV !== \"production\") {\n delete this.appliedAnnotations_[key];\n }\n // Clear observable\n if (observable) {\n this.values_[\"delete\"](key);\n // for computed, value is undefined\n if (observable instanceof ObservableValue) {\n value = observable.value_;\n }\n // Notify: autorun(() => obj[key]), see #1796\n propagateChanged(observable);\n }\n // Notify \"keys/entries/values\" observers\n this.keysAtom_.reportChanged();\n // Notify \"has\" observers\n // \"in\" as it may still exist in proto\n (_this$pendingKeys_ = this.pendingKeys_) == null || (_this$pendingKeys_ = _this$pendingKeys_.get(key)) == null || _this$pendingKeys_.set(key in this.target_);\n // Notify spies/listeners\n if (notify || notifySpy) {\n var _change2 = {\n type: REMOVE,\n observableKind: \"object\",\n object: this.proxy_ || this.target_,\n debugObjectName: this.name_,\n oldValue: value,\n name: key\n };\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportStart(_change2);\n }\n if (notify) {\n notifyListeners(this, _change2);\n }\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportEnd();\n }\n }\n } finally {\n endBatch();\n }\n return true;\n }\n /**\n * Observes this object. Triggers for the events 'add', 'update' and 'delete'.\n * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe\n * for callback details\n */;\n _proto.observe_ = function observe_(callback, fireImmediately) {\n if (process.env.NODE_ENV !== \"production\" && fireImmediately === true) {\n die(\"`observe` doesn't support the fire immediately property for observable objects.\");\n }\n return registerListener(this, callback);\n };\n _proto.intercept_ = function intercept_(handler) {\n return registerInterceptor(this, handler);\n };\n _proto.notifyPropertyAddition_ = function notifyPropertyAddition_(key, value) {\n var _this$pendingKeys_2;\n var notify = hasListeners(this);\n var notifySpy = process.env.NODE_ENV !== \"production\" && isSpyEnabled();\n if (notify || notifySpy) {\n var change = notify || notifySpy ? {\n type: ADD,\n observableKind: \"object\",\n debugObjectName: this.name_,\n object: this.proxy_ || this.target_,\n name: key,\n newValue: value\n } : null;\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportStart(change);\n }\n if (notify) {\n notifyListeners(this, change);\n }\n if (process.env.NODE_ENV !== \"production\" && notifySpy) {\n spyReportEnd();\n }\n }\n (_this$pendingKeys_2 = this.pendingKeys_) == null || (_this$pendingKeys_2 = _this$pendingKeys_2.get(key)) == null || _this$pendingKeys_2.set(true);\n // Notify \"keys/entries/values\" observers\n this.keysAtom_.reportChanged();\n };\n _proto.ownKeys_ = function ownKeys_() {\n this.keysAtom_.reportObserved();\n return ownKeys(this.target_);\n };\n _proto.keys_ = function keys_() {\n // Returns enumerable && own, but unfortunately keysAtom will report on ANY key change.\n // There is no way to distinguish between Object.keys(object) and Reflect.ownKeys(object) - both are handled by ownKeys trap.\n // We can either over-report in Object.keys(object) or under-report in Reflect.ownKeys(object)\n // We choose to over-report in Object.keys(object), because:\n // - typically it's used with simple data objects\n // - when symbolic/non-enumerable keys are relevant Reflect.ownKeys works as expected\n this.keysAtom_.reportObserved();\n return Object.keys(this.target_);\n };\n return ObservableObjectAdministration;\n}();\nfunction asObservableObject(target, options) {\n var _options$name;\n if (process.env.NODE_ENV !== \"production\" && options && isObservableObject(target)) {\n die(\"Options can't be provided for already observable objects.\");\n }\n if (hasProp(target, $mobx)) {\n if (process.env.NODE_ENV !== \"production\" && !(getAdministration(target) instanceof ObservableObjectAdministration)) {\n die(\"Cannot convert '\" + getDebugName(target) + \"' into observable object:\" + \"\\nThe target is already observable of different type.\" + \"\\nExtending builtins is not supported.\");\n }\n return target;\n }\n if (process.env.NODE_ENV !== \"production\" && !Object.isExtensible(target)) {\n die(\"Cannot make the designated object observable; it is not extensible\");\n }\n var name = (_options$name = options == null ? void 0 : options.name) != null ? _options$name : process.env.NODE_ENV !== \"production\" ? (isPlainObject(target) ? \"ObservableObject\" : target.constructor.name) + \"@\" + getNextId() : \"ObservableObject\";\n var adm = new ObservableObjectAdministration(target, new Map(), String(name), getAnnotationFromOptions(options));\n addHiddenProp(target, $mobx, adm);\n return target;\n}\nvar isObservableObjectAdministration = /*#__PURE__*/createInstanceofPredicate(\"ObservableObjectAdministration\", ObservableObjectAdministration);\nfunction getCachedObservablePropDescriptor(key) {\n return descriptorCache[key] || (descriptorCache[key] = {\n get: function get() {\n return this[$mobx].getObservablePropValue_(key);\n },\n set: function set(value) {\n return this[$mobx].setObservablePropValue_(key, value);\n }\n });\n}\nfunction isObservableObject(thing) {\n if (isObject(thing)) {\n return isObservableObjectAdministration(thing[$mobx]);\n }\n return false;\n}\nfunction recordAnnotationApplied(adm, annotation, key) {\n var _adm$target_$storedAn;\n if (process.env.NODE_ENV !== \"production\") {\n adm.appliedAnnotations_[key] = annotation;\n }\n // Remove applied decorator annotation so we don't try to apply it again in subclass constructor\n (_adm$target_$storedAn = adm.target_[storedAnnotationsSymbol]) == null || delete _adm$target_$storedAn[key];\n}\nfunction assertAnnotable(adm, annotation, key) {\n // Valid annotation\n if (process.env.NODE_ENV !== \"production\" && !isAnnotation(annotation)) {\n die(\"Cannot annotate '\" + adm.name_ + \".\" + key.toString() + \"': Invalid annotation.\");\n }\n /*\n // Configurable, not sealed, not frozen\n // Possibly not needed, just a little better error then the one thrown by engine.\n // Cases where this would be useful the most (subclass field initializer) are not interceptable by this.\n if (__DEV__) {\n const configurable = getDescriptor(adm.target_, key)?.configurable\n const frozen = Object.isFrozen(adm.target_)\n const sealed = Object.isSealed(adm.target_)\n if (!configurable || frozen || sealed) {\n const fieldName = `${adm.name_}.${key.toString()}`\n const requestedAnnotationType = annotation.annotationType_\n let error = `Cannot apply '${requestedAnnotationType}' to '${fieldName}':`\n if (frozen) {\n error += `\\nObject is frozen.`\n }\n if (sealed) {\n error += `\\nObject is sealed.`\n }\n if (!configurable) {\n error += `\\nproperty is not configurable.`\n // Mention only if caused by us to avoid confusion\n if (hasProp(adm.appliedAnnotations!, key)) {\n error += `\\nTo prevent accidental re-definition of a field by a subclass, `\n error += `all annotated fields of non-plain objects (classes) are not configurable.`\n }\n }\n die(error)\n }\n }\n */\n // Not annotated\n if (process.env.NODE_ENV !== \"production\" && !isOverride(annotation) && hasProp(adm.appliedAnnotations_, key)) {\n var fieldName = adm.name_ + \".\" + key.toString();\n var currentAnnotationType = adm.appliedAnnotations_[key].annotationType_;\n var requestedAnnotationType = annotation.annotationType_;\n die(\"Cannot apply '\" + requestedAnnotationType + \"' to '\" + fieldName + \"':\" + (\"\\nThe field is already annotated with '\" + currentAnnotationType + \"'.\") + \"\\nRe-annotating fields is not allowed.\" + \"\\nUse 'override' annotation for methods overridden by subclass.\");\n }\n}\n\n// Bug in safari 9.* (or iOS 9 safari mobile). See #364\nvar ENTRY_0 = /*#__PURE__*/createArrayEntryDescriptor(0);\nvar safariPrototypeSetterInheritanceBug = /*#__PURE__*/function () {\n var v = false;\n var p = {};\n Object.defineProperty(p, \"0\", {\n set: function set() {\n v = true;\n }\n });\n /*#__PURE__*/Object.create(p)[\"0\"] = 1;\n return v === false;\n}();\n/**\n * This array buffer contains two lists of properties, so that all arrays\n * can recycle their property definitions, which significantly improves performance of creating\n * properties on the fly.\n */\nvar OBSERVABLE_ARRAY_BUFFER_SIZE = 0;\n// Typescript workaround to make sure ObservableArray extends Array\nvar StubArray = function StubArray() {};\nfunction inherit(ctor, proto) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(ctor.prototype, proto);\n } else if (ctor.prototype.__proto__ !== undefined) {\n ctor.prototype.__proto__ = proto;\n } else {\n ctor.prototype = proto;\n }\n}\ninherit(StubArray, Array.prototype);\n// Weex proto freeze protection was here,\n// but it is unclear why the hack is need as MobX never changed the prototype\n// anyway, so removed it in V6\nvar LegacyObservableArray = /*#__PURE__*/function (_StubArray) {\n function LegacyObservableArray(initialValues, enhancer, name, owned) {\n var _this;\n if (name === void 0) {\n name = process.env.NODE_ENV !== \"production\" ? \"ObservableArray@\" + getNextId() : \"ObservableArray\";\n }\n if (owned === void 0) {\n owned = false;\n }\n _this = _StubArray.call(this) || this;\n initObservable(function () {\n var adm = new ObservableArrayAdministration(name, enhancer, owned, true);\n adm.proxy_ = _this;\n addHiddenFinalProp(_this, $mobx, adm);\n if (initialValues && initialValues.length) {\n // @ts-ignore\n _this.spliceWithArray(0, 0, initialValues);\n }\n if (safariPrototypeSetterInheritanceBug) {\n // Seems that Safari won't use numeric prototype setter until any * numeric property is\n // defined on the instance. After that it works fine, even if this property is deleted.\n Object.defineProperty(_this, \"0\", ENTRY_0);\n }\n });\n return _this;\n }\n _inheritsLoose(LegacyObservableArray, _StubArray);\n var _proto = LegacyObservableArray.prototype;\n _proto.concat = function concat() {\n this[$mobx].atom_.reportObserved();\n for (var _len = arguments.length, arrays = new Array(_len), _key = 0; _key < _len; _key++) {\n arrays[_key] = arguments[_key];\n }\n return Array.prototype.concat.apply(this.slice(),\n //@ts-ignore\n arrays.map(function (a) {\n return isObservableArray(a) ? a.slice() : a;\n }));\n };\n _proto[Symbol.iterator] = function () {\n var self = this;\n var nextIndex = 0;\n return makeIterable({\n next: function next() {\n return nextIndex < self.length ? {\n value: self[nextIndex++],\n done: false\n } : {\n done: true,\n value: undefined\n };\n }\n });\n };\n return _createClass(LegacyObservableArray, [{\n key: \"length\",\n get: function get() {\n return this[$mobx].getArrayLength_();\n },\n set: function set(newLength) {\n this[$mobx].setArrayLength_(newLength);\n }\n }, {\n key: Symbol.toStringTag,\n get: function get() {\n return \"Array\";\n }\n }]);\n}(StubArray);\nObject.entries(arrayExtensions).forEach(function (_ref) {\n var prop = _ref[0],\n fn = _ref[1];\n if (prop !== \"concat\") {\n addHiddenProp(LegacyObservableArray.prototype, prop, fn);\n }\n});\nfunction createArrayEntryDescriptor(index) {\n return {\n enumerable: false,\n configurable: true,\n get: function get() {\n return this[$mobx].get_(index);\n },\n set: function set(value) {\n this[$mobx].set_(index, value);\n }\n };\n}\nfunction createArrayBufferItem(index) {\n defineProperty(LegacyObservableArray.prototype, \"\" + index, createArrayEntryDescriptor(index));\n}\nfunction reserveArrayBuffer(max) {\n if (max > OBSERVABLE_ARRAY_BUFFER_SIZE) {\n for (var index = OBSERVABLE_ARRAY_BUFFER_SIZE; index < max + 100; index++) {\n createArrayBufferItem(index);\n }\n OBSERVABLE_ARRAY_BUFFER_SIZE = max;\n }\n}\nreserveArrayBuffer(1000);\nfunction createLegacyArray(initialValues, enhancer, name) {\n return new LegacyObservableArray(initialValues, enhancer, name);\n}\n\nfunction getAtom(thing, property) {\n if (typeof thing === \"object\" && thing !== null) {\n if (isObservableArray(thing)) {\n if (property !== undefined) {\n die(23);\n }\n return thing[$mobx].atom_;\n }\n if (isObservableSet(thing)) {\n return thing.atom_;\n }\n if (isObservableMap(thing)) {\n if (property === undefined) {\n return thing.keysAtom_;\n }\n var observable = thing.data_.get(property) || thing.hasMap_.get(property);\n if (!observable) {\n die(25, property, getDebugName(thing));\n }\n return observable;\n }\n if (isObservableObject(thing)) {\n if (!property) {\n return die(26);\n }\n var _observable = thing[$mobx].values_.get(property);\n if (!_observable) {\n die(27, property, getDebugName(thing));\n }\n return _observable;\n }\n if (isAtom(thing) || isComputedValue(thing) || isReaction(thing)) {\n return thing;\n }\n } else if (isFunction(thing)) {\n if (isReaction(thing[$mobx])) {\n // disposer function\n return thing[$mobx];\n }\n }\n die(28);\n}\nfunction getAdministration(thing, property) {\n if (!thing) {\n die(29);\n }\n if (property !== undefined) {\n return getAdministration(getAtom(thing, property));\n }\n if (isAtom(thing) || isComputedValue(thing) || isReaction(thing)) {\n return thing;\n }\n if (isObservableMap(thing) || isObservableSet(thing)) {\n return thing;\n }\n if (thing[$mobx]) {\n return thing[$mobx];\n }\n die(24, thing);\n}\nfunction getDebugName(thing, property) {\n var named;\n if (property !== undefined) {\n named = getAtom(thing, property);\n } else if (isAction(thing)) {\n return thing.name;\n } else if (isObservableObject(thing) || isObservableMap(thing) || isObservableSet(thing)) {\n named = getAdministration(thing);\n } else {\n // valid for arrays as well\n named = getAtom(thing);\n }\n return named.name_;\n}\n/**\n * Helper function for initializing observable structures, it applies:\n * 1. allowStateChanges so we don't violate enforceActions.\n * 2. untracked so we don't accidentaly subscribe to anything observable accessed during init in case the observable is created inside derivation.\n * 3. batch to avoid state version updates\n */\nfunction initObservable(cb) {\n var derivation = untrackedStart();\n var allowStateChanges = allowStateChangesStart(true);\n startBatch();\n try {\n return cb();\n } finally {\n endBatch();\n allowStateChangesEnd(allowStateChanges);\n untrackedEnd(derivation);\n }\n}\n\nvar toString = objectPrototype.toString;\nfunction deepEqual(a, b, depth) {\n if (depth === void 0) {\n depth = -1;\n }\n return eq(a, b, depth);\n}\n// Copied from https://github.com/jashkenas/underscore/blob/5c237a7c682fb68fd5378203f0bf22dce1624854/underscore.js#L1186-L1289\n// Internal recursive comparison function for `isEqual`.\nfunction eq(a, b, depth, aStack, bStack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) {\n return a !== 0 || 1 / a === 1 / b;\n }\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) {\n return false;\n }\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) {\n return b !== b;\n }\n // Exhaust primitive checks\n var type = typeof a;\n if (type !== \"function\" && type !== \"object\" && typeof b != \"object\") {\n return false;\n }\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className !== toString.call(b)) {\n return false;\n }\n switch (className) {\n // Strings, numbers, regular expressions, dates, and booleans are compared by value.\n case \"[object RegExp]\":\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n case \"[object String]\":\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return \"\" + a === \"\" + b;\n case \"[object Number]\":\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) {\n return +b !== +b;\n }\n // An `egal` comparison is performed for other numeric values.\n return +a === 0 ? 1 / +a === 1 / b : +a === +b;\n case \"[object Date]\":\n case \"[object Boolean]\":\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b;\n case \"[object Symbol]\":\n return typeof Symbol !== \"undefined\" && Symbol.valueOf.call(a) === Symbol.valueOf.call(b);\n case \"[object Map]\":\n case \"[object Set]\":\n // Maps and Sets are unwrapped to arrays of entry-pairs, adding an incidental level.\n // Hide this extra level by increasing the depth.\n if (depth >= 0) {\n depth++;\n }\n break;\n }\n // Unwrap any wrapped objects.\n a = unwrap(a);\n b = unwrap(b);\n var areArrays = className === \"[object Array]\";\n if (!areArrays) {\n if (typeof a != \"object\" || typeof b != \"object\") {\n return false;\n }\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n var aCtor = a.constructor,\n bCtor = b.constructor;\n if (aCtor !== bCtor && !(isFunction(aCtor) && aCtor instanceof aCtor && isFunction(bCtor) && bCtor instanceof bCtor) && \"constructor\" in a && \"constructor\" in b) {\n return false;\n }\n }\n if (depth === 0) {\n return false;\n } else if (depth < 0) {\n depth = -1;\n }\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || [];\n bStack = bStack || [];\n var length = aStack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) {\n return bStack[length] === b;\n }\n }\n // Add the first object to the stack of traversed objects.\n aStack.push(a);\n bStack.push(b);\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length;\n if (length !== b.length) {\n return false;\n }\n // Deep compare the contents, ignoring non-numeric properties.\n while (length--) {\n if (!eq(a[length], b[length], depth - 1, aStack, bStack)) {\n return false;\n }\n }\n } else {\n // Deep compare objects.\n var keys = Object.keys(a);\n var key;\n length = keys.length;\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (Object.keys(b).length !== length) {\n return false;\n }\n while (length--) {\n // Deep compare each member\n key = keys[length];\n if (!(hasProp(b, key) && eq(a[key], b[key], depth - 1, aStack, bStack))) {\n return false;\n }\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop();\n bStack.pop();\n return true;\n}\nfunction unwrap(a) {\n if (isObservableArray(a)) {\n return a.slice();\n }\n if (isES6Map(a) || isObservableMap(a)) {\n return Array.from(a.entries());\n }\n if (isES6Set(a) || isObservableSet(a)) {\n return Array.from(a.entries());\n }\n return a;\n}\n\nvar _getGlobal$Iterator;\n// safely get iterator prototype if available\nvar maybeIteratorPrototype = ((_getGlobal$Iterator = /*#__PURE__*/getGlobal().Iterator) == null ? void 0 : _getGlobal$Iterator.prototype) || {};\nfunction makeIterable(iterator) {\n iterator[Symbol.iterator] = getSelf;\n return Object.assign(Object.create(maybeIteratorPrototype), iterator);\n}\nfunction getSelf() {\n return this;\n}\n\nfunction isAnnotation(thing) {\n return (\n // Can be function\n thing instanceof Object && typeof thing.annotationType_ === \"string\" && isFunction(thing.make_) && isFunction(thing.extend_)\n );\n}\n\n/**\n * (c) Michel Weststrate 2015 - 2020\n * MIT Licensed\n *\n * Welcome to the mobx sources! To get a global overview of how MobX internally works,\n * this is a good place to start:\n * https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74\n *\n * Source folders:\n * ===============\n *\n * - api/ Most of the public static methods exposed by the module can be found here.\n * - core/ Implementation of the MobX algorithm; atoms, derivations, reactions, dependency trees, optimizations. Cool stuff can be found here.\n * - types/ All the magic that is need to have observable objects, arrays and values is in this folder. Including the modifiers like `asFlat`.\n * - utils/ Utility stuff.\n *\n */\n[\"Symbol\", \"Map\", \"Set\"].forEach(function (m) {\n var g = getGlobal();\n if (typeof g[m] === \"undefined\") {\n die(\"MobX requires global '\" + m + \"' to be available or polyfilled\");\n }\n});\nif (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === \"object\") {\n // See: https://github.com/andykog/mobx-devtools/\n __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({\n spy: spy,\n extras: {\n getDebugName: getDebugName\n },\n $mobx: $mobx\n });\n}\n\nexport { $mobx, FlowCancellationError, ObservableMap, ObservableSet, Reaction, allowStateChanges as _allowStateChanges, runInAction as _allowStateChangesInsideComputed, allowStateReadsEnd as _allowStateReadsEnd, allowStateReadsStart as _allowStateReadsStart, autoAction as _autoAction, _endAction, getAdministration as _getAdministration, getGlobalState as _getGlobalState, interceptReads as _interceptReads, isComputingDerivation as _isComputingDerivation, resetGlobalState as _resetGlobalState, _startAction, action, autorun, comparer, computed, configure, createAtom, apiDefineProperty as defineProperty, entries, extendObservable, flow, flowResult, get, getAtom, getDebugName, getDependencyTree, getObserverTree, has, intercept, isAction, isObservableValue as isBoxedObservable, isComputed, isComputedProp, isFlow, isFlowCancellationError, isObservable, isObservableArray, isObservableMap, isObservableObject, isObservableProp, isObservableSet, keys, makeAutoObservable, makeObservable, observable, observe, onBecomeObserved, onBecomeUnobserved, onReactionError, override, apiOwnKeys as ownKeys, reaction, remove, runInAction, set, spy, toJS, trace, transaction, untracked, values, when };\n//# sourceMappingURL=mobx.esm.js.map\n","const niceErrors = {\n 0: `Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'`,\n 1(annotationType, key: PropertyKey) {\n return `Cannot apply '${annotationType}' to '${key.toString()}': Field not found.`\n },\n /*\n 2(prop) {\n return `invalid decorator for '${prop.toString()}'`\n },\n 3(prop) {\n return `Cannot decorate '${prop.toString()}': action can only be used on properties with a function value.`\n },\n 4(prop) {\n return `Cannot decorate '${prop.toString()}': computed can only be used on getter properties.`\n },\n */\n 5: \"'keys()' can only be used on observable objects, arrays, sets and maps\",\n 6: \"'values()' can only be used on observable objects, arrays, sets and maps\",\n 7: \"'entries()' can only be used on observable objects, arrays and maps\",\n 8: \"'set()' can only be used on observable objects, arrays and maps\",\n 9: \"'remove()' can only be used on observable objects, arrays and maps\",\n 10: \"'has()' can only be used on observable objects, arrays and maps\",\n 11: \"'get()' can only be used on observable objects, arrays and maps\",\n 12: `Invalid annotation`,\n 13: `Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)`,\n 14: \"Intercept handlers should return nothing or a change object\",\n 15: `Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)`,\n 16: `Modification exception: the internal structure of an observable array was changed.`,\n 17(index, length) {\n return `[mobx.array] Index out of bounds, ${index} is larger than ${length}`\n },\n 18: \"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js\",\n 19(other) {\n return \"Cannot initialize from classes that inherit from Map: \" + other.constructor.name\n },\n 20(other) {\n return \"Cannot initialize map from \" + other\n },\n 21(dataStructure) {\n return `Cannot convert to map from '${dataStructure}'`\n },\n 22: \"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js\",\n 23: \"It is not possible to get index atoms from arrays\",\n 24(thing) {\n return \"Cannot obtain administration from \" + thing\n },\n 25(property, name) {\n return `the entry '${property}' does not exist in the observable map '${name}'`\n },\n 26: \"please specify a property\",\n 27(property, name) {\n return `no observable property '${property.toString()}' found on the observable object '${name}'`\n },\n 28(thing) {\n return \"Cannot obtain atom from \" + thing\n },\n 29: \"Expecting some object\",\n 30: \"invalid action stack. did you forget to finish an action?\",\n 31: \"missing option for computed: get\",\n 32(name, derivation) {\n return `Cycle detected in computation ${name}: ${derivation}`\n },\n 33(name) {\n return `The setter of computed value '${name}' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?`\n },\n 34(name) {\n return `[ComputedValue '${name}'] It is not possible to assign a new value to a computed value.`\n },\n 35: \"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`\",\n 36: \"isolateGlobalState should be called before MobX is running any reactions\",\n 37(method) {\n return `[mobx] \\`observableArray.${method}()\\` mutates the array in-place, which is not allowed inside a derivation. Use \\`array.slice().${method}()\\` instead`\n },\n 38: \"'ownKeys()' can only be used on observable objects\",\n 39: \"'defineProperty()' can only be used on observable objects\"\n} as const\n\nconst errors: typeof niceErrors = __DEV__ ? niceErrors : ({} as any)\n\nexport function die(error: string | keyof typeof errors, ...args: any[]): never {\n if (__DEV__) {\n let e: any = typeof error === \"string\" ? error : errors[error]\n if (typeof e === \"function\") e = e.apply(null, args as any)\n throw new Error(`[MobX] ${e}`)\n }\n throw new Error(\n typeof error === \"number\"\n ? `[MobX] minified error nr: ${error}${\n args.length ? \" \" + args.map(String).join(\",\") : \"\"\n }. Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts`\n : `[MobX] ${error}`\n )\n}\n","declare const window: any\ndeclare const self: any\n\nconst mockGlobal = {}\n\nexport function getGlobal() {\n if (typeof globalThis !== \"undefined\") {\n return globalThis\n }\n if (typeof window !== \"undefined\") {\n return window\n }\n if (typeof global !== \"undefined\") {\n return global\n }\n if (typeof self !== \"undefined\") {\n return self\n }\n return mockGlobal\n}\n","import { globalState, die } from \"../internal\"\n\n// We shorten anything used > 5 times\nexport const assign = Object.assign\nexport const getDescriptor = Object.getOwnPropertyDescriptor\nexport const defineProperty = Object.defineProperty\nexport const objectPrototype = Object.prototype\n\nexport const EMPTY_ARRAY = []\nObject.freeze(EMPTY_ARRAY)\n\nexport const EMPTY_OBJECT = {}\nObject.freeze(EMPTY_OBJECT)\n\nexport interface Lambda {\n (): void\n name?: string\n}\n\nconst hasProxy = typeof Proxy !== \"undefined\"\nconst plainObjectString = Object.toString()\n\nexport function assertProxies() {\n if (!hasProxy) {\n die(\n __DEV__\n ? \"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`\"\n : \"Proxy not available\"\n )\n }\n}\n\nexport function warnAboutProxyRequirement(msg: string) {\n if (__DEV__ && globalState.verifyProxies) {\n die(\n \"MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to \" +\n msg\n )\n }\n}\n\nexport function getNextId() {\n return ++globalState.mobxGuid\n}\n\n/**\n * Makes sure that the provided function is invoked at most once.\n */\nexport function once(func: Lambda): Lambda {\n let invoked = false\n return function () {\n if (invoked) {\n return\n }\n invoked = true\n return (func as any).apply(this, arguments)\n }\n}\n\nexport const noop = () => {}\n\nexport function isFunction(fn: any): fn is Function {\n return typeof fn === \"function\"\n}\n\nexport function isString(value: any): value is string {\n return typeof value === \"string\"\n}\n\nexport function isStringish(value: any): value is string | number | symbol {\n const t = typeof value\n switch (t) {\n case \"string\":\n case \"symbol\":\n case \"number\":\n return true\n }\n return false\n}\n\nexport function isObject(value: any): value is Object {\n return value !== null && typeof value === \"object\"\n}\n\nexport function isPlainObject(value: any) {\n if (!isObject(value)) {\n return false\n }\n const proto = Object.getPrototypeOf(value)\n if (proto == null) {\n return true\n }\n const protoConstructor = Object.hasOwnProperty.call(proto, \"constructor\") && proto.constructor\n return (\n typeof protoConstructor === \"function\" && protoConstructor.toString() === plainObjectString\n )\n}\n\n// https://stackoverflow.com/a/37865170\nexport function isGenerator(obj: any): boolean {\n const constructor = obj?.constructor\n if (!constructor) {\n return false\n }\n if (\n \"GeneratorFunction\" === constructor.name ||\n \"GeneratorFunction\" === constructor.displayName\n ) {\n return true\n }\n return false\n}\n\nexport function addHiddenProp(object: any, propName: PropertyKey, value: any) {\n defineProperty(object, propName, {\n enumerable: false,\n writable: true,\n configurable: true,\n value\n })\n}\n\nexport function addHiddenFinalProp(object: any, propName: PropertyKey, value: any) {\n defineProperty(object, propName, {\n enumerable: false,\n writable: false,\n configurable: true,\n value\n })\n}\n\nexport function createInstanceofPredicate(\n name: string,\n theClass: new (...args: any[]) => T\n): (x: any) => x is T {\n const propName = \"isMobX\" + name\n theClass.prototype[propName] = true\n return function (x) {\n return isObject(x) && x[propName] === true\n } as any\n}\n\n/**\n * Yields true for both native and observable Map, even across different windows.\n */\nexport function isES6Map(thing: unknown): thing is Map {\n return thing != null && Object.prototype.toString.call(thing) === \"[object Map]\"\n}\n\n/**\n * Makes sure a Map is an instance of non-inherited native or observable Map.\n */\nexport function isPlainES6Map(thing: Map): boolean {\n const mapProto = Object.getPrototypeOf(thing)\n const objectProto = Object.getPrototypeOf(mapProto)\n const nullProto = Object.getPrototypeOf(objectProto)\n return nullProto === null\n}\n\n/**\n * Yields true for both native and observable Set, even across different windows.\n */\nexport function isES6Set(thing: unknown): thing is Set {\n return thing != null && Object.prototype.toString.call(thing) === \"[object Set]\"\n}\n\nconst hasGetOwnPropertySymbols = typeof Object.getOwnPropertySymbols !== \"undefined\"\n\n/**\n * Returns the following: own enumerable keys and symbols.\n */\nexport function getPlainObjectKeys(object: any) {\n const keys = Object.keys(object)\n // Not supported in IE, so there are not going to be symbol props anyway...\n if (!hasGetOwnPropertySymbols) {\n return keys\n }\n const symbols = Object.getOwnPropertySymbols(object)\n if (!symbols.length) {\n return keys\n }\n return [...keys, ...symbols.filter(s => objectPrototype.propertyIsEnumerable.call(object, s))]\n}\n\n// From Immer utils\n// Returns all own keys, including non-enumerable and symbolic\nexport const ownKeys: (target: any) => Array =\n typeof Reflect !== \"undefined\" && Reflect.ownKeys\n ? Reflect.ownKeys\n : hasGetOwnPropertySymbols\n ? obj => Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj) as any)\n : /* istanbul ignore next */ Object.getOwnPropertyNames\n\nexport function stringifyKey(key: any): string {\n if (typeof key === \"string\") {\n return key\n }\n if (typeof key === \"symbol\") {\n return key.toString()\n }\n return new String(key).toString()\n}\n\nexport function toPrimitive(value: any) {\n return value === null ? null : typeof value === \"object\" ? \"\" + value : value\n}\n\nexport function hasProp(target: Object, prop: PropertyKey): boolean {\n return objectPrototype.hasOwnProperty.call(target, prop)\n}\n\n// From Immer utils\nexport const getOwnPropertyDescriptors =\n Object.getOwnPropertyDescriptors ||\n function getOwnPropertyDescriptors(target: any) {\n // Polyfill needed for Hermes and IE, see https://github.com/facebook/hermes/issues/274\n const res: any = {}\n // Note: without polyfill for ownKeys, symbols won't be picked up\n ownKeys(target).forEach(key => {\n res[key] = getDescriptor(target, key)\n })\n return res\n }\n\nexport function getFlag(flags: number, mask: number) {\n return !!(flags & mask)\n}\n\nexport function setFlag(flags: number, mask: number, newValue: boolean): number {\n if (newValue) {\n flags |= mask\n } else {\n flags &= ~mask\n }\n return flags\n}\n","import { Annotation, addHiddenProp, AnnotationsMap, hasProp, die, isOverride } from \"../internal\"\n\nimport type { Decorator } from \"../types/decorator_fills\"\n\nexport const storedAnnotationsSymbol = Symbol(\"mobx-stored-annotations\")\n\n/**\n * Creates a function that acts as\n * - decorator\n * - annotation object\n */\nexport function createDecoratorAnnotation(\n annotation: Annotation\n): PropertyDecorator & Annotation & D {\n function decorator(target, property) {\n if (is20223Decorator(property)) {\n return annotation.decorate_20223_(target, property)\n } else {\n storeAnnotation(target, property, annotation)\n }\n }\n return Object.assign(decorator, annotation) as any\n}\n\n/**\n * Stores annotation to prototype,\n * so it can be inspected later by `makeObservable` called from constructor\n */\nexport function storeAnnotation(prototype: any, key: PropertyKey, annotation: Annotation) {\n if (!hasProp(prototype, storedAnnotationsSymbol)) {\n addHiddenProp(prototype, storedAnnotationsSymbol, {\n // Inherit annotations\n ...prototype[storedAnnotationsSymbol]\n })\n }\n // @override must override something\n if (__DEV__ && isOverride(annotation) && !hasProp(prototype[storedAnnotationsSymbol], key)) {\n const fieldName = `${prototype.constructor.name}.prototype.${key.toString()}`\n die(\n `'${fieldName}' is decorated with 'override', ` +\n `but no such decorated member was found on prototype.`\n )\n }\n // Cannot re-decorate\n assertNotDecorated(prototype, annotation, key)\n\n // Ignore override\n if (!isOverride(annotation)) {\n prototype[storedAnnotationsSymbol][key] = annotation\n }\n}\n\nfunction assertNotDecorated(prototype: object, annotation: Annotation, key: PropertyKey) {\n if (__DEV__ && !isOverride(annotation) && hasProp(prototype[storedAnnotationsSymbol], key)) {\n const fieldName = `${prototype.constructor.name}.prototype.${key.toString()}`\n const currentAnnotationType = prototype[storedAnnotationsSymbol][key].annotationType_\n const requestedAnnotationType = annotation.annotationType_\n die(\n `Cannot apply '@${requestedAnnotationType}' to '${fieldName}':` +\n `\\nThe field is already decorated with '@${currentAnnotationType}'.` +\n `\\nRe-decorating fields is not allowed.` +\n `\\nUse '@override' decorator for methods overridden by subclass.`\n )\n }\n}\n\n/**\n * Collects annotations from prototypes and stores them on target (instance)\n */\nexport function collectStoredAnnotations(target): AnnotationsMap {\n if (!hasProp(target, storedAnnotationsSymbol)) {\n // if (__DEV__ && !target[storedAnnotationsSymbol]) {\n // die(\n // `No annotations were passed to makeObservable, but no decorated members have been found either`\n // )\n // }\n // We need a copy as we will remove annotation from the list once it's applied.\n addHiddenProp(target, storedAnnotationsSymbol, { ...target[storedAnnotationsSymbol] })\n }\n return target[storedAnnotationsSymbol]\n}\n\nexport function is20223Decorator(context): context is DecoratorContext {\n return typeof context == \"object\" && typeof context[\"kind\"] == \"string\"\n}\n\nexport function assert20223DecoratorType(\n context: DecoratorContext,\n types: DecoratorContext[\"kind\"][]\n) {\n if (__DEV__ && !types.includes(context.kind)) {\n die(\n `The decorator applied to '${String(context.name)}' cannot be used on a ${\n context.kind\n } element`\n )\n }\n}\n","import {\n IDerivationState_,\n IObservable,\n IDerivation,\n createInstanceofPredicate,\n endBatch,\n getNextId,\n noop,\n onBecomeObserved,\n onBecomeUnobserved,\n propagateChanged,\n reportObserved,\n startBatch,\n Lambda\n} from \"../internal\"\n\nimport { getFlag, setFlag } from \"../utils/utils\"\n\nexport const $mobx = Symbol(\"mobx administration\")\n\nexport interface IAtom extends IObservable {\n reportObserved(): boolean\n reportChanged(): void\n}\n\nexport class Atom implements IAtom {\n private static readonly isBeingObservedMask_ = 0b001\n private static readonly isPendingUnobservationMask_ = 0b010\n private static readonly diffValueMask_ = 0b100\n private flags_ = 0b000\n\n observers_ = new Set()\n\n lastAccessedBy_ = 0\n lowestObserverState_ = IDerivationState_.NOT_TRACKING_\n /**\n * Create a new atom. For debugging purposes it is recommended to give it a name.\n * The onBecomeObserved and onBecomeUnobserved callbacks can be used for resource management.\n */\n constructor(public name_ = __DEV__ ? \"Atom@\" + getNextId() : \"Atom\") {}\n\n // for effective unobserving. BaseAtom has true, for extra optimization, so its onBecomeUnobserved never gets called, because it's not needed\n get isBeingObserved(): boolean {\n return getFlag(this.flags_, Atom.isBeingObservedMask_)\n }\n set isBeingObserved(newValue: boolean) {\n this.flags_ = setFlag(this.flags_, Atom.isBeingObservedMask_, newValue)\n }\n\n get isPendingUnobservation(): boolean {\n return getFlag(this.flags_, Atom.isPendingUnobservationMask_)\n }\n set isPendingUnobservation(newValue: boolean) {\n this.flags_ = setFlag(this.flags_, Atom.isPendingUnobservationMask_, newValue)\n }\n\n get diffValue(): 0 | 1 {\n return getFlag(this.flags_, Atom.diffValueMask_) ? 1 : 0\n }\n set diffValue(newValue: 0 | 1) {\n this.flags_ = setFlag(this.flags_, Atom.diffValueMask_, newValue === 1 ? true : false)\n }\n\n // onBecomeObservedListeners\n public onBOL: Set | undefined\n // onBecomeUnobservedListeners\n public onBUOL: Set | undefined\n\n public onBO() {\n if (this.onBOL) {\n this.onBOL.forEach(listener => listener())\n }\n }\n\n public onBUO() {\n if (this.onBUOL) {\n this.onBUOL.forEach(listener => listener())\n }\n }\n\n /**\n * Invoke this method to notify mobx that your atom has been used somehow.\n * Returns true if there is currently a reactive context.\n */\n public reportObserved(): boolean {\n return reportObserved(this)\n }\n\n /**\n * Invoke this method _after_ this method has changed to signal mobx that all its observers should invalidate.\n */\n public reportChanged() {\n startBatch()\n propagateChanged(this)\n endBatch()\n }\n\n toString() {\n return this.name_\n }\n}\n\nexport const isAtom = createInstanceofPredicate(\"Atom\", Atom)\n\nexport function createAtom(\n name: string,\n onBecomeObservedHandler: () => void = noop,\n onBecomeUnobservedHandler: () => void = noop\n): IAtom {\n const atom = new Atom(name)\n // default `noop` listener will not initialize the hook Set\n if (onBecomeObservedHandler !== noop) {\n onBecomeObserved(atom, onBecomeObservedHandler)\n }\n\n if (onBecomeUnobservedHandler !== noop) {\n onBecomeUnobserved(atom, onBecomeUnobservedHandler)\n }\n return atom\n}\n","import { deepEqual } from \"../internal\"\n\nexport interface IEqualsComparer {\n (a: T, b: T): boolean\n}\n\nfunction identityComparer(a: any, b: any): boolean {\n return a === b\n}\n\nfunction structuralComparer(a: any, b: any): boolean {\n return deepEqual(a, b)\n}\n\nfunction shallowComparer(a: any, b: any): boolean {\n return deepEqual(a, b, 1)\n}\n\nfunction defaultComparer(a: any, b: any): boolean {\n if (Object.is) {\n return Object.is(a, b)\n }\n\n return a === b ? a !== 0 || 1 / a === 1 / b : a !== a && b !== b\n}\n\nexport const comparer = {\n identity: identityComparer,\n structural: structuralComparer,\n default: defaultComparer,\n shallow: shallowComparer\n}\n","import {\n deepEqual,\n isES6Map,\n isES6Set,\n isObservable,\n isObservableArray,\n isObservableMap,\n isObservableSet,\n isObservableObject,\n isPlainObject,\n observable,\n die,\n isAction,\n autoAction,\n flow,\n isFlow,\n isGenerator\n} from \"../internal\"\n\nexport interface IEnhancer {\n (newValue: T, oldValue: T | undefined, name: string): T\n}\n\nexport function deepEnhancer(v, _, name) {\n // it is an observable already, done\n if (isObservable(v)) {\n return v\n }\n\n // something that can be converted and mutated?\n if (Array.isArray(v)) {\n return observable.array(v, { name })\n }\n if (isPlainObject(v)) {\n return observable.object(v, undefined, { name })\n }\n if (isES6Map(v)) {\n return observable.map(v, { name })\n }\n if (isES6Set(v)) {\n return observable.set(v, { name })\n }\n if (typeof v === \"function\" && !isAction(v) && !isFlow(v)) {\n if (isGenerator(v)) {\n return flow(v)\n } else {\n return autoAction(name, v)\n }\n }\n return v\n}\n\nexport function shallowEnhancer(v, _, name): any {\n if (v === undefined || v === null) {\n return v\n }\n if (isObservableObject(v) || isObservableArray(v) || isObservableMap(v) || isObservableSet(v)) {\n return v\n }\n if (Array.isArray(v)) {\n return observable.array(v, { name, deep: false })\n }\n if (isPlainObject(v)) {\n return observable.object(v, undefined, { name, deep: false })\n }\n if (isES6Map(v)) {\n return observable.map(v, { name, deep: false })\n }\n if (isES6Set(v)) {\n return observable.set(v, { name, deep: false })\n }\n\n if (__DEV__) {\n die(\n \"The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets\"\n )\n }\n}\n\nexport function referenceEnhancer(newValue?) {\n // never turn into an observable\n return newValue\n}\n\nexport function refStructEnhancer(v, oldValue): any {\n if (__DEV__ && isObservable(v)) {\n die(`observable.struct should not be used with observable values`)\n }\n if (deepEqual(v, oldValue)) {\n return oldValue\n }\n return v\n}\n","import {\n die,\n Annotation,\n hasProp,\n createDecoratorAnnotation,\n ObservableObjectAdministration,\n MakeResult\n} from \"../internal\"\n\nimport type { ClassMethodDecorator } from \"./decorator_fills\"\n\nconst OVERRIDE = \"override\"\n\nexport const override: Annotation & PropertyDecorator & ClassMethodDecorator =\n createDecoratorAnnotation({\n annotationType_: OVERRIDE,\n make_,\n extend_,\n decorate_20223_\n })\n\nexport function isOverride(annotation: Annotation): boolean {\n return annotation.annotationType_ === OVERRIDE\n}\n\nfunction make_(this: Annotation, adm: ObservableObjectAdministration, key): MakeResult {\n // Must not be plain object\n if (__DEV__ && adm.isPlainObject_) {\n die(\n `Cannot apply '${this.annotationType_}' to '${adm.name_}.${key.toString()}':` +\n `\\n'${this.annotationType_}' cannot be used on plain objects.`\n )\n }\n // Must override something\n if (__DEV__ && !hasProp(adm.appliedAnnotations_!, key)) {\n die(\n `'${adm.name_}.${key.toString()}' is annotated with '${this.annotationType_}', ` +\n `but no such annotated member was found on prototype.`\n )\n }\n return MakeResult.Cancel\n}\n\nfunction extend_(this: Annotation, adm, key, descriptor, proxyTrap): boolean {\n die(`'${this.annotationType_}' can only be used with 'makeObservable'`)\n}\n\nfunction decorate_20223_(this: Annotation, desc, context: DecoratorContext) {\n console.warn(`'${this.annotationType_}' cannot be used with decorators - this is a no-op`)\n}\n","import {\n ObservableObjectAdministration,\n createAction,\n isAction,\n defineProperty,\n die,\n isFunction,\n Annotation,\n globalState,\n MakeResult,\n assert20223DecoratorType\n} from \"../internal\"\n\nexport function createActionAnnotation(name: string, options?: object): Annotation {\n return {\n annotationType_: name,\n options_: options,\n make_,\n extend_,\n decorate_20223_\n }\n}\n\nfunction make_(\n this: Annotation,\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n source: object\n): MakeResult {\n // bound\n if (this.options_?.bound) {\n return this.extend_(adm, key, descriptor, false) === null\n ? MakeResult.Cancel\n : MakeResult.Break\n }\n // own\n if (source === adm.target_) {\n return this.extend_(adm, key, descriptor, false) === null\n ? MakeResult.Cancel\n : MakeResult.Continue\n }\n // prototype\n if (isAction(descriptor.value)) {\n // A prototype could have been annotated already by other constructor,\n // rest of the proto chain must be annotated already\n return MakeResult.Break\n }\n const actionDescriptor = createActionDescriptor(adm, this, key, descriptor, false)\n defineProperty(source, key, actionDescriptor)\n return MakeResult.Continue\n}\n\nfunction extend_(\n this: Annotation,\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n): boolean | null {\n const actionDescriptor = createActionDescriptor(adm, this, key, descriptor)\n return adm.defineProperty_(key, actionDescriptor, proxyTrap)\n}\n\nfunction decorate_20223_(this: Annotation, mthd, context: DecoratorContext) {\n if (__DEV__) {\n assert20223DecoratorType(context, [\"method\", \"field\"])\n }\n const { kind, name, addInitializer } = context\n const ann = this\n\n const _createAction = m =>\n createAction(ann.options_?.name ?? name!.toString(), m, ann.options_?.autoAction ?? false)\n\n if (kind == \"field\") {\n return function (initMthd) {\n let mthd = initMthd\n if (!isAction(mthd)) {\n mthd = _createAction(mthd)\n }\n if (ann.options_?.bound) {\n mthd = mthd.bind(this)\n mthd.isMobxAction = true\n }\n return mthd\n }\n }\n\n if (kind == \"method\") {\n if (!isAction(mthd)) {\n mthd = _createAction(mthd)\n }\n\n if (this.options_?.bound) {\n addInitializer(function () {\n const self = this as any\n const bound = self[name].bind(self)\n bound.isMobxAction = true\n self[name] = bound\n })\n }\n\n return mthd\n }\n\n die(\n `Cannot apply '${ann.annotationType_}' to '${String(name)}' (kind: ${kind}):` +\n `\\n'${ann.annotationType_}' can only be used on properties with a function value.`\n )\n}\n\nfunction assertActionDescriptor(\n adm: ObservableObjectAdministration,\n { annotationType_ }: Annotation,\n key: PropertyKey,\n { value }: PropertyDescriptor\n) {\n if (__DEV__ && !isFunction(value)) {\n die(\n `Cannot apply '${annotationType_}' to '${adm.name_}.${key.toString()}':` +\n `\\n'${annotationType_}' can only be used on properties with a function value.`\n )\n }\n}\n\nexport function createActionDescriptor(\n adm: ObservableObjectAdministration,\n annotation: Annotation,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n // provides ability to disable safeDescriptors for prototypes\n safeDescriptors: boolean = globalState.safeDescriptors\n) {\n assertActionDescriptor(adm, annotation, key, descriptor)\n let { value } = descriptor\n if (annotation.options_?.bound) {\n value = value.bind(adm.proxy_ ?? adm.target_)\n }\n return {\n value: createAction(\n annotation.options_?.name ?? key.toString(),\n value,\n annotation.options_?.autoAction ?? false,\n // https://github.com/mobxjs/mobx/discussions/3140\n annotation.options_?.bound ? adm.proxy_ ?? adm.target_ : undefined\n ),\n // Non-configurable for classes\n // prevents accidental field redefinition in subclass\n configurable: safeDescriptors ? adm.isPlainObject_ : true,\n // https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058\n enumerable: false,\n // Non-obsevable, therefore non-writable\n // Also prevents rewriting in subclass constructor\n writable: safeDescriptors ? false : true\n }\n}\n","import {\n ObservableObjectAdministration,\n Annotation,\n defineProperty,\n die,\n flow,\n isFlow,\n isFunction,\n globalState,\n MakeResult,\n hasProp,\n assert20223DecoratorType\n} from \"../internal\"\n\nexport function createFlowAnnotation(name: string, options?: object): Annotation {\n return {\n annotationType_: name,\n options_: options,\n make_,\n extend_,\n decorate_20223_\n }\n}\n\nfunction make_(\n this: Annotation,\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n source: object\n): MakeResult {\n // own\n if (source === adm.target_) {\n return this.extend_(adm, key, descriptor, false) === null\n ? MakeResult.Cancel\n : MakeResult.Continue\n }\n // prototype\n // bound - must annotate protos to support super.flow()\n if (this.options_?.bound && (!hasProp(adm.target_, key) || !isFlow(adm.target_[key]))) {\n if (this.extend_(adm, key, descriptor, false) === null) {\n return MakeResult.Cancel\n }\n }\n if (isFlow(descriptor.value)) {\n // A prototype could have been annotated already by other constructor,\n // rest of the proto chain must be annotated already\n return MakeResult.Break\n }\n const flowDescriptor = createFlowDescriptor(adm, this, key, descriptor, false, false)\n defineProperty(source, key, flowDescriptor)\n return MakeResult.Continue\n}\n\nfunction extend_(\n this: Annotation,\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n): boolean | null {\n const flowDescriptor = createFlowDescriptor(adm, this, key, descriptor, this.options_?.bound)\n return adm.defineProperty_(key, flowDescriptor, proxyTrap)\n}\n\nfunction decorate_20223_(this: Annotation, mthd, context: ClassMethodDecoratorContext) {\n if (__DEV__) {\n assert20223DecoratorType(context, [\"method\"])\n }\n const { name, addInitializer } = context\n\n if (!isFlow(mthd)) {\n mthd = flow(mthd)\n }\n\n if (this.options_?.bound) {\n addInitializer(function () {\n const self = this as any\n const bound = self[name].bind(self)\n bound.isMobXFlow = true\n self[name] = bound\n })\n }\n\n return mthd\n}\n\nfunction assertFlowDescriptor(\n adm: ObservableObjectAdministration,\n { annotationType_ }: Annotation,\n key: PropertyKey,\n { value }: PropertyDescriptor\n) {\n if (__DEV__ && !isFunction(value)) {\n die(\n `Cannot apply '${annotationType_}' to '${adm.name_}.${key.toString()}':` +\n `\\n'${annotationType_}' can only be used on properties with a generator function value.`\n )\n }\n}\n\nfunction createFlowDescriptor(\n adm: ObservableObjectAdministration,\n annotation: Annotation,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n bound: boolean,\n // provides ability to disable safeDescriptors for prototypes\n safeDescriptors: boolean = globalState.safeDescriptors\n): PropertyDescriptor {\n assertFlowDescriptor(adm, annotation, key, descriptor)\n let { value } = descriptor\n // In case of flow.bound, the descriptor can be from already annotated prototype\n if (!isFlow(value)) {\n value = flow(value)\n }\n if (bound) {\n // We do not keep original function around, so we bind the existing flow\n value = value.bind(adm.proxy_ ?? adm.target_)\n // This is normally set by `flow`, but `bind` returns new function...\n value.isMobXFlow = true\n }\n return {\n value,\n // Non-configurable for classes\n // prevents accidental field redefinition in subclass\n configurable: safeDescriptors ? adm.isPlainObject_ : true,\n // https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058\n enumerable: false,\n // Non-obsevable, therefore non-writable\n // Also prevents rewriting in subclass constructor\n writable: safeDescriptors ? false : true\n }\n}\n","import {\n ObservableObjectAdministration,\n die,\n Annotation,\n MakeResult,\n assert20223DecoratorType,\n $mobx,\n asObservableObject,\n ComputedValue\n} from \"../internal\"\n\nexport function createComputedAnnotation(name: string, options?: object): Annotation {\n return {\n annotationType_: name,\n options_: options,\n make_,\n extend_,\n decorate_20223_\n }\n}\n\nfunction make_(\n this: Annotation,\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor\n): MakeResult {\n return this.extend_(adm, key, descriptor, false) === null ? MakeResult.Cancel : MakeResult.Break\n}\n\nfunction extend_(\n this: Annotation,\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n): boolean | null {\n assertComputedDescriptor(adm, this, key, descriptor)\n return adm.defineComputedProperty_(\n key,\n {\n ...this.options_,\n get: descriptor.get,\n set: descriptor.set\n },\n proxyTrap\n )\n}\n\nfunction decorate_20223_(this: Annotation, get, context: ClassGetterDecoratorContext) {\n if (__DEV__) {\n assert20223DecoratorType(context, [\"getter\"])\n }\n const ann = this\n const { name: key, addInitializer } = context\n\n addInitializer(function () {\n const adm: ObservableObjectAdministration = asObservableObject(this)[$mobx]\n const options = {\n ...ann.options_,\n get,\n context: this\n }\n options.name ||= __DEV__\n ? `${adm.name_}.${key.toString()}`\n : `ObservableObject.${key.toString()}`\n adm.values_.set(key, new ComputedValue(options))\n })\n\n return function () {\n return this[$mobx].getObservablePropValue_(key)\n }\n}\n\nfunction assertComputedDescriptor(\n adm: ObservableObjectAdministration,\n { annotationType_ }: Annotation,\n key: PropertyKey,\n { get }: PropertyDescriptor\n) {\n if (__DEV__ && !get) {\n die(\n `Cannot apply '${annotationType_}' to '${adm.name_}.${key.toString()}':` +\n `\\n'${annotationType_}' can only be used on getter(+setter) properties.`\n )\n }\n}\n","import {\n ObservableObjectAdministration,\n deepEnhancer,\n die,\n Annotation,\n MakeResult,\n assert20223DecoratorType,\n ObservableValue,\n asObservableObject,\n $mobx\n} from \"../internal\"\n\nexport function createObservableAnnotation(name: string, options?: object): Annotation {\n return {\n annotationType_: name,\n options_: options,\n make_,\n extend_,\n decorate_20223_\n }\n}\n\nfunction make_(\n this: Annotation,\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor\n): MakeResult {\n return this.extend_(adm, key, descriptor, false) === null ? MakeResult.Cancel : MakeResult.Break\n}\n\nfunction extend_(\n this: Annotation,\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n): boolean | null {\n assertObservableDescriptor(adm, this, key, descriptor)\n return adm.defineObservableProperty_(\n key,\n descriptor.value,\n this.options_?.enhancer ?? deepEnhancer,\n proxyTrap\n )\n}\n\nfunction decorate_20223_(\n this: Annotation,\n desc,\n context: ClassAccessorDecoratorContext | ClassFieldDecoratorContext\n) {\n if (__DEV__) {\n if (context.kind === \"field\") {\n throw die(\n `Please use \\`@observable accessor ${String(\n context.name\n )}\\` instead of \\`@observable ${String(context.name)}\\``\n )\n }\n assert20223DecoratorType(context, [\"accessor\"])\n }\n\n const ann = this\n const { kind, name } = context\n\n // The laziness here is not ideal... It's a workaround to how 2022.3 Decorators are implemented:\n // `addInitializer` callbacks are executed _before_ any accessors are defined (instead of the ideal-for-us right after each).\n // This means that, if we were to do our stuff in an `addInitializer`, we'd attempt to read a private slot\n // before it has been initialized. The runtime doesn't like that and throws a `Cannot read private member\n // from an object whose class did not declare it` error.\n // TODO: it seems that this will not be required anymore in the final version of the spec\n // See TODO: link\n const initializedObjects = new WeakSet()\n\n function initializeObservable(target, value) {\n const adm: ObservableObjectAdministration = asObservableObject(target)[$mobx]\n const observable = new ObservableValue(\n value,\n ann.options_?.enhancer ?? deepEnhancer,\n __DEV__ ? `${adm.name_}.${name.toString()}` : `ObservableObject.${name.toString()}`,\n false\n )\n adm.values_.set(name, observable)\n initializedObjects.add(target)\n }\n\n if (kind == \"accessor\") {\n return {\n get() {\n if (!initializedObjects.has(this)) {\n initializeObservable(this, desc.get.call(this))\n }\n return this[$mobx].getObservablePropValue_(name)\n },\n set(value) {\n if (!initializedObjects.has(this)) {\n initializeObservable(this, value)\n }\n return this[$mobx].setObservablePropValue_(name, value)\n },\n init(value) {\n if (!initializedObjects.has(this)) {\n initializeObservable(this, value)\n }\n return value\n }\n }\n }\n\n return\n}\n\nfunction assertObservableDescriptor(\n adm: ObservableObjectAdministration,\n { annotationType_ }: Annotation,\n key: PropertyKey,\n descriptor: PropertyDescriptor\n) {\n if (__DEV__ && !(\"value\" in descriptor)) {\n die(\n `Cannot apply '${annotationType_}' to '${adm.name_}.${key.toString()}':` +\n `\\n'${annotationType_}' cannot be used on getter/setter properties`\n )\n }\n}\n","import {\n ObservableObjectAdministration,\n observable,\n Annotation,\n defineProperty,\n createAction,\n globalState,\n flow,\n computed,\n autoAction,\n isGenerator,\n MakeResult,\n die\n} from \"../internal\"\n\nconst AUTO = \"true\"\n\nexport const autoAnnotation: Annotation = createAutoAnnotation()\n\nexport function createAutoAnnotation(options?: object): Annotation {\n return {\n annotationType_: AUTO,\n options_: options,\n make_,\n extend_,\n decorate_20223_\n }\n}\n\nfunction make_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n source: object\n): MakeResult {\n // getter -> computed\n if (descriptor.get) {\n return computed.make_(adm, key, descriptor, source)\n }\n // lone setter -> action setter\n if (descriptor.set) {\n // TODO make action applicable to setter and delegate to action.make_\n const set = createAction(key.toString(), descriptor.set) as (v: any) => void\n // own\n if (source === adm.target_) {\n return adm.defineProperty_(key, {\n configurable: globalState.safeDescriptors ? adm.isPlainObject_ : true,\n set\n }) === null\n ? MakeResult.Cancel\n : MakeResult.Continue\n }\n // proto\n defineProperty(source, key, {\n configurable: true,\n set\n })\n return MakeResult.Continue\n }\n // function on proto -> autoAction/flow\n if (source !== adm.target_ && typeof descriptor.value === \"function\") {\n if (isGenerator(descriptor.value)) {\n const flowAnnotation = this.options_?.autoBind ? flow.bound : flow\n return flowAnnotation.make_(adm, key, descriptor, source)\n }\n const actionAnnotation = this.options_?.autoBind ? autoAction.bound : autoAction\n return actionAnnotation.make_(adm, key, descriptor, source)\n }\n // other -> observable\n // Copy props from proto as well, see test:\n // \"decorate should work with Object.create\"\n let observableAnnotation = this.options_?.deep === false ? observable.ref : observable\n // if function respect autoBind option\n if (typeof descriptor.value === \"function\" && this.options_?.autoBind) {\n descriptor.value = descriptor.value.bind(adm.proxy_ ?? adm.target_)\n }\n return observableAnnotation.make_(adm, key, descriptor, source)\n}\n\nfunction extend_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n): boolean | null {\n // getter -> computed\n if (descriptor.get) {\n return computed.extend_(adm, key, descriptor, proxyTrap)\n }\n // lone setter -> action setter\n if (descriptor.set) {\n // TODO make action applicable to setter and delegate to action.extend_\n return adm.defineProperty_(\n key,\n {\n configurable: globalState.safeDescriptors ? adm.isPlainObject_ : true,\n set: createAction(key.toString(), descriptor.set) as (v: any) => void\n },\n proxyTrap\n )\n }\n // other -> observable\n // if function respect autoBind option\n if (typeof descriptor.value === \"function\" && this.options_?.autoBind) {\n descriptor.value = descriptor.value.bind(adm.proxy_ ?? adm.target_)\n }\n let observableAnnotation = this.options_?.deep === false ? observable.ref : observable\n return observableAnnotation.extend_(adm, key, descriptor, proxyTrap)\n}\n\nfunction decorate_20223_(this: Annotation, desc, context: ClassGetterDecoratorContext) {\n die(`'${this.annotationType_}' cannot be used as a decorator`)\n}\n","import {\n IEnhancer,\n IEqualsComparer,\n IObservableArray,\n IObservableMapInitialValues,\n IObservableSetInitialValues,\n IObservableValue,\n ObservableMap,\n ObservableSet,\n ObservableValue,\n asDynamicObservableObject,\n createObservableArray,\n deepEnhancer,\n extendObservable,\n isES6Map,\n isES6Set,\n isObservable,\n isPlainObject,\n referenceEnhancer,\n Annotation,\n shallowEnhancer,\n refStructEnhancer,\n AnnotationsMap,\n asObservableObject,\n storeAnnotation,\n createDecoratorAnnotation,\n createLegacyArray,\n globalState,\n assign,\n isStringish,\n createObservableAnnotation,\n createAutoAnnotation,\n is20223Decorator,\n initObservable\n} from \"../internal\"\n\nimport type { ClassAccessorDecorator, ClassFieldDecorator } from \"../types/decorator_fills\"\n\nexport const OBSERVABLE = \"observable\"\nexport const OBSERVABLE_REF = \"observable.ref\"\nexport const OBSERVABLE_SHALLOW = \"observable.shallow\"\nexport const OBSERVABLE_STRUCT = \"observable.struct\"\n\nexport type CreateObservableOptions = {\n name?: string\n equals?: IEqualsComparer\n deep?: boolean\n defaultDecorator?: Annotation\n proxy?: boolean\n autoBind?: boolean\n}\n\n// Predefined bags of create observable options, to avoid allocating temporarily option objects\n// in the majority of cases\nexport const defaultCreateObservableOptions: CreateObservableOptions = {\n deep: true,\n name: undefined,\n defaultDecorator: undefined,\n proxy: true\n}\nObject.freeze(defaultCreateObservableOptions)\n\nexport function asCreateObservableOptions(thing: any): CreateObservableOptions {\n return thing || defaultCreateObservableOptions\n}\n\nconst observableAnnotation = createObservableAnnotation(OBSERVABLE)\nconst observableRefAnnotation = createObservableAnnotation(OBSERVABLE_REF, {\n enhancer: referenceEnhancer\n})\nconst observableShallowAnnotation = createObservableAnnotation(OBSERVABLE_SHALLOW, {\n enhancer: shallowEnhancer\n})\nconst observableStructAnnotation = createObservableAnnotation(OBSERVABLE_STRUCT, {\n enhancer: refStructEnhancer\n})\nconst observableDecoratorAnnotation =\n createDecoratorAnnotation(observableAnnotation)\n\nexport function getEnhancerFromOptions(options: CreateObservableOptions): IEnhancer {\n return options.deep === true\n ? deepEnhancer\n : options.deep === false\n ? referenceEnhancer\n : getEnhancerFromAnnotation(options.defaultDecorator)\n}\n\nexport function getAnnotationFromOptions(\n options?: CreateObservableOptions\n): Annotation | undefined {\n return options ? options.defaultDecorator ?? createAutoAnnotation(options) : undefined\n}\n\nexport function getEnhancerFromAnnotation(annotation?: Annotation): IEnhancer {\n return !annotation ? deepEnhancer : annotation.options_?.enhancer ?? deepEnhancer\n}\n\n/**\n * Turns an object, array or function into a reactive structure.\n * @param v the value which should become observable.\n */\nfunction createObservable(v: any, arg2?: any, arg3?: any) {\n // @observable someProp; (2022.3 Decorators)\n if (is20223Decorator(arg2)) {\n return observableAnnotation.decorate_20223_(v, arg2)\n }\n\n // @observable someProp;\n if (isStringish(arg2)) {\n storeAnnotation(v, arg2, observableAnnotation)\n return\n }\n\n // already observable - ignore\n if (isObservable(v)) {\n return v\n }\n\n // plain object\n if (isPlainObject(v)) {\n return observable.object(v, arg2, arg3)\n }\n\n // Array\n if (Array.isArray(v)) {\n return observable.array(v, arg2)\n }\n\n // Map\n if (isES6Map(v)) {\n return observable.map(v, arg2)\n }\n\n // Set\n if (isES6Set(v)) {\n return observable.set(v, arg2)\n }\n\n // other object - ignore\n if (typeof v === \"object\" && v !== null) {\n return v\n }\n\n // anything else\n return observable.box(v, arg2)\n}\nassign(createObservable, observableDecoratorAnnotation)\n\nexport interface IObservableValueFactory {\n (value: T, options?: CreateObservableOptions): IObservableValue\n (value?: T, options?: CreateObservableOptions): IObservableValue\n}\n\nexport interface IObservableFactory\n extends Annotation,\n PropertyDecorator,\n ClassAccessorDecorator,\n ClassFieldDecorator {\n // TODO: remove ClassFieldDecorator, this is only temporarily support for legacy decorators\n (value: T[], options?: CreateObservableOptions): IObservableArray\n (value: Set, options?: CreateObservableOptions): ObservableSet\n (value: Map, options?: CreateObservableOptions): ObservableMap\n (\n value: T,\n decorators?: AnnotationsMap,\n options?: CreateObservableOptions\n ): T\n\n box: IObservableValueFactory\n array: (initialValues?: T[], options?: CreateObservableOptions) => IObservableArray\n set: (\n initialValues?: IObservableSetInitialValues,\n options?: CreateObservableOptions\n ) => ObservableSet\n map: (\n initialValues?: IObservableMapInitialValues,\n options?: CreateObservableOptions\n ) => ObservableMap\n object: (\n props: T,\n decorators?: AnnotationsMap,\n options?: CreateObservableOptions\n ) => T\n\n /**\n * Decorator that creates an observable that only observes the references, but doesn't try to turn the assigned value into an observable.ts.\n */\n ref: Annotation & PropertyDecorator & ClassAccessorDecorator & ClassFieldDecorator\n /**\n * Decorator that creates an observable converts its value (objects, maps or arrays) into a shallow observable structure\n */\n shallow: Annotation & PropertyDecorator & ClassAccessorDecorator & ClassFieldDecorator\n deep: Annotation & PropertyDecorator & ClassAccessorDecorator & ClassFieldDecorator\n struct: Annotation & PropertyDecorator & ClassAccessorDecorator & ClassFieldDecorator\n}\n\nconst observableFactories: IObservableFactory = {\n box(value: T, options?: CreateObservableOptions): IObservableValue {\n const o = asCreateObservableOptions(options)\n return new ObservableValue(value, getEnhancerFromOptions(o), o.name, true, o.equals)\n },\n array(initialValues?: T[], options?: CreateObservableOptions): IObservableArray {\n const o = asCreateObservableOptions(options)\n return (\n globalState.useProxies === false || o.proxy === false\n ? createLegacyArray\n : createObservableArray\n )(initialValues, getEnhancerFromOptions(o), o.name)\n },\n map(\n initialValues?: IObservableMapInitialValues,\n options?: CreateObservableOptions\n ): ObservableMap {\n const o = asCreateObservableOptions(options)\n return new ObservableMap(initialValues, getEnhancerFromOptions(o), o.name)\n },\n set(\n initialValues?: IObservableSetInitialValues,\n options?: CreateObservableOptions\n ): ObservableSet {\n const o = asCreateObservableOptions(options)\n return new ObservableSet(initialValues, getEnhancerFromOptions(o), o.name)\n },\n object(\n props: T,\n decorators?: AnnotationsMap,\n options?: CreateObservableOptions\n ): T {\n return initObservable(() =>\n extendObservable(\n globalState.useProxies === false || options?.proxy === false\n ? asObservableObject({}, options)\n : asDynamicObservableObject({}, options),\n props,\n decorators\n )\n )\n },\n ref: createDecoratorAnnotation(observableRefAnnotation),\n shallow: createDecoratorAnnotation(observableShallowAnnotation),\n deep: observableDecoratorAnnotation,\n struct: createDecoratorAnnotation(observableStructAnnotation)\n} as any\n\n// eslint-disable-next-line\nexport var observable: IObservableFactory = assign(createObservable, observableFactories)\n","import {\n ComputedValue,\n IComputedValueOptions,\n Annotation,\n storeAnnotation,\n createDecoratorAnnotation,\n isStringish,\n isPlainObject,\n isFunction,\n die,\n IComputedValue,\n createComputedAnnotation,\n comparer,\n is20223Decorator\n} from \"../internal\"\n\nimport type { ClassGetterDecorator } from \"../types/decorator_fills\"\n\nexport const COMPUTED = \"computed\"\nexport const COMPUTED_STRUCT = \"computed.struct\"\n\nexport interface IComputedFactory extends Annotation, PropertyDecorator, ClassGetterDecorator {\n // @computed(opts)\n (options: IComputedValueOptions): Annotation & PropertyDecorator & ClassGetterDecorator\n // computed(fn, opts)\n (func: () => T, options?: IComputedValueOptions): IComputedValue\n\n struct: Annotation & PropertyDecorator & ClassGetterDecorator\n}\n\nconst computedAnnotation = createComputedAnnotation(COMPUTED)\nconst computedStructAnnotation = createComputedAnnotation(COMPUTED_STRUCT, {\n equals: comparer.structural\n})\n\n/**\n * Decorator for class properties: @computed get value() { return expr; }.\n * For legacy purposes also invokable as ES5 observable created: `computed(() => expr)`;\n */\nexport const computed: IComputedFactory = function computed(arg1, arg2) {\n if (is20223Decorator(arg2)) {\n // @computed (2022.3 Decorators)\n return computedAnnotation.decorate_20223_(arg1, arg2)\n }\n if (isStringish(arg2)) {\n // @computed\n return storeAnnotation(arg1, arg2, computedAnnotation)\n }\n if (isPlainObject(arg1)) {\n // @computed({ options })\n return createDecoratorAnnotation(createComputedAnnotation(COMPUTED, arg1))\n }\n\n // computed(expr, options?)\n if (__DEV__) {\n if (!isFunction(arg1)) {\n die(\"First argument to `computed` should be an expression.\")\n }\n if (isFunction(arg2)) {\n die(\n \"A setter as second argument is no longer supported, use `{ set: fn }` option instead\"\n )\n }\n }\n const opts: IComputedValueOptions = isPlainObject(arg2) ? arg2 : {}\n opts.get = arg1\n opts.name ||= arg1.name || \"\" /* for generated name */\n\n return new ComputedValue(opts)\n} as any\n\nObject.assign(computed, computedAnnotation)\n\ncomputed.struct = createDecoratorAnnotation(computedStructAnnotation)\n","import {\n IDerivation,\n endBatch,\n globalState,\n isSpyEnabled,\n spyReportEnd,\n spyReportStart,\n startBatch,\n untrackedEnd,\n untrackedStart,\n isFunction,\n allowStateReadsStart,\n allowStateReadsEnd,\n ACTION,\n EMPTY_ARRAY,\n die,\n getDescriptor,\n defineProperty\n} from \"../internal\"\n\n// we don't use globalState for these in order to avoid possible issues with multiple\n// mobx versions\nlet currentActionId = 0\nlet nextActionId = 1\nconst isFunctionNameConfigurable = getDescriptor(() => {}, \"name\")?.configurable ?? false\n\n// we can safely recycle this object\nconst tmpNameDescriptor: PropertyDescriptor = {\n value: \"action\",\n configurable: true,\n writable: false,\n enumerable: false\n}\n\nexport function createAction(\n actionName: string,\n fn: Function,\n autoAction: boolean = false,\n ref?: Object\n): Function {\n if (__DEV__) {\n if (!isFunction(fn)) {\n die(\"`action` can only be invoked on functions\")\n }\n if (typeof actionName !== \"string\" || !actionName) {\n die(`actions should have valid names, got: '${actionName}'`)\n }\n }\n function res() {\n return executeAction(actionName, autoAction, fn, ref || this, arguments)\n }\n res.isMobxAction = true\n res.toString = () => fn.toString()\n if (isFunctionNameConfigurable) {\n tmpNameDescriptor.value = actionName\n defineProperty(res, \"name\", tmpNameDescriptor)\n }\n return res\n}\n\nexport function executeAction(\n actionName: string,\n canRunAsDerivation: boolean,\n fn: Function,\n scope?: any,\n args?: IArguments\n) {\n const runInfo = _startAction(actionName, canRunAsDerivation, scope, args)\n try {\n return fn.apply(scope, args)\n } catch (err) {\n runInfo.error_ = err\n throw err\n } finally {\n _endAction(runInfo)\n }\n}\n\nexport interface IActionRunInfo {\n prevDerivation_: IDerivation | null\n prevAllowStateChanges_: boolean\n prevAllowStateReads_: boolean\n notifySpy_: boolean\n startTime_: number\n error_?: any\n parentActionId_: number\n actionId_: number\n runAsAction_?: boolean\n}\n\nexport function _startAction(\n actionName: string,\n canRunAsDerivation: boolean, // true for autoAction\n scope: any,\n args?: IArguments\n): IActionRunInfo {\n const notifySpy_ = __DEV__ && isSpyEnabled() && !!actionName\n let startTime_: number = 0\n if (__DEV__ && notifySpy_) {\n startTime_ = Date.now()\n const flattenedArgs = args ? Array.from(args) : EMPTY_ARRAY\n spyReportStart({\n type: ACTION,\n name: actionName,\n object: scope,\n arguments: flattenedArgs\n })\n }\n const prevDerivation_ = globalState.trackingDerivation\n const runAsAction = !canRunAsDerivation || !prevDerivation_\n startBatch()\n let prevAllowStateChanges_ = globalState.allowStateChanges // by default preserve previous allow\n if (runAsAction) {\n untrackedStart()\n prevAllowStateChanges_ = allowStateChangesStart(true)\n }\n const prevAllowStateReads_ = allowStateReadsStart(true)\n const runInfo = {\n runAsAction_: runAsAction,\n prevDerivation_,\n prevAllowStateChanges_,\n prevAllowStateReads_,\n notifySpy_,\n startTime_,\n actionId_: nextActionId++,\n parentActionId_: currentActionId\n }\n currentActionId = runInfo.actionId_\n return runInfo\n}\n\nexport function _endAction(runInfo: IActionRunInfo) {\n if (currentActionId !== runInfo.actionId_) {\n die(30)\n }\n currentActionId = runInfo.parentActionId_\n\n if (runInfo.error_ !== undefined) {\n globalState.suppressReactionErrors = true\n }\n allowStateChangesEnd(runInfo.prevAllowStateChanges_)\n allowStateReadsEnd(runInfo.prevAllowStateReads_)\n endBatch()\n if (runInfo.runAsAction_) {\n untrackedEnd(runInfo.prevDerivation_)\n }\n if (__DEV__ && runInfo.notifySpy_) {\n spyReportEnd({ time: Date.now() - runInfo.startTime_ })\n }\n globalState.suppressReactionErrors = false\n}\n\nexport function allowStateChanges(allowStateChanges: boolean, func: () => T): T {\n const prev = allowStateChangesStart(allowStateChanges)\n try {\n return func()\n } finally {\n allowStateChangesEnd(prev)\n }\n}\n\nexport function allowStateChangesStart(allowStateChanges: boolean) {\n const prev = globalState.allowStateChanges\n globalState.allowStateChanges = allowStateChanges\n return prev\n}\n\nexport function allowStateChangesEnd(prev: boolean) {\n globalState.allowStateChanges = prev\n}\n","import {\n Atom,\n IEnhancer,\n IInterceptable,\n IEqualsComparer,\n IInterceptor,\n IListenable,\n Lambda,\n checkIfStateModificationsAreAllowed,\n comparer,\n createInstanceofPredicate,\n getNextId,\n hasInterceptors,\n hasListeners,\n interceptChange,\n isSpyEnabled,\n notifyListeners,\n registerInterceptor,\n registerListener,\n spyReport,\n spyReportEnd,\n spyReportStart,\n toPrimitive,\n globalState,\n IUNCHANGED,\n UPDATE\n} from \"../internal\"\n\nexport interface IValueWillChange {\n object: IObservableValue\n type: \"update\"\n newValue: T\n}\n\nexport type IValueDidChange = {\n type: \"update\"\n observableKind: \"value\"\n object: IObservableValue\n debugObjectName: string\n newValue: T\n oldValue: T | undefined\n}\nexport type IBoxDidChange =\n | {\n type: \"create\"\n observableKind: \"value\"\n object: IObservableValue\n debugObjectName: string\n newValue: T\n }\n | IValueDidChange\n\nexport interface IObservableValue {\n get(): T\n set(value: T): void\n}\n\nconst CREATE = \"create\"\n\nexport class ObservableValue\n extends Atom\n implements IObservableValue, IInterceptable>, IListenable\n{\n hasUnreportedChange_ = false\n interceptors_\n changeListeners_\n value_\n dehancer: any\n\n constructor(\n value: T,\n public enhancer: IEnhancer,\n public name_ = __DEV__ ? \"ObservableValue@\" + getNextId() : \"ObservableValue\",\n notifySpy = true,\n private equals: IEqualsComparer = comparer.default\n ) {\n super(name_)\n this.value_ = enhancer(value, undefined, name_)\n if (__DEV__ && notifySpy && isSpyEnabled()) {\n // only notify spy if this is a stand-alone observable\n spyReport({\n type: CREATE,\n object: this,\n observableKind: \"value\",\n debugObjectName: this.name_,\n newValue: \"\" + this.value_\n })\n }\n }\n\n private dehanceValue(value: T): T {\n if (this.dehancer !== undefined) {\n return this.dehancer(value)\n }\n return value\n }\n\n public set(newValue: T) {\n const oldValue = this.value_\n newValue = this.prepareNewValue_(newValue) as any\n if (newValue !== globalState.UNCHANGED) {\n const notifySpy = isSpyEnabled()\n if (__DEV__ && notifySpy) {\n spyReportStart({\n type: UPDATE,\n object: this,\n observableKind: \"value\",\n debugObjectName: this.name_,\n newValue,\n oldValue\n })\n }\n this.setNewValue_(newValue)\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n }\n\n private prepareNewValue_(newValue): T | IUNCHANGED {\n checkIfStateModificationsAreAllowed(this)\n if (hasInterceptors(this)) {\n const change = interceptChange>(this, {\n object: this,\n type: UPDATE,\n newValue\n })\n if (!change) {\n return globalState.UNCHANGED\n }\n newValue = change.newValue\n }\n // apply modifier\n newValue = this.enhancer(newValue, this.value_, this.name_)\n return this.equals(this.value_, newValue) ? globalState.UNCHANGED : newValue\n }\n\n setNewValue_(newValue: T) {\n const oldValue = this.value_\n this.value_ = newValue\n this.reportChanged()\n if (hasListeners(this)) {\n notifyListeners(this, {\n type: UPDATE,\n object: this,\n newValue,\n oldValue\n })\n }\n }\n\n public get(): T {\n this.reportObserved()\n return this.dehanceValue(this.value_)\n }\n\n intercept_(handler: IInterceptor>): Lambda {\n return registerInterceptor(this, handler)\n }\n\n observe_(listener: (change: IValueDidChange) => void, fireImmediately?: boolean): Lambda {\n if (fireImmediately) {\n listener({\n observableKind: \"value\",\n debugObjectName: this.name_,\n object: this,\n type: UPDATE,\n newValue: this.value_,\n oldValue: undefined\n })\n }\n return registerListener(this, listener)\n }\n\n raw() {\n // used by MST ot get undehanced value\n return this.value_\n }\n\n toJSON() {\n return this.get()\n }\n\n toString() {\n return `${this.name_}[${this.value_}]`\n }\n\n valueOf(): T {\n return toPrimitive(this.get())\n }\n\n [Symbol.toPrimitive]() {\n return this.valueOf()\n }\n}\n\nexport const isObservableValue = createInstanceofPredicate(\"ObservableValue\", ObservableValue) as (\n x: any\n) => x is IObservableValue\n","import {\n CaughtException,\n IDerivation,\n IDerivationState_,\n IEqualsComparer,\n IObservable,\n Lambda,\n TraceMode,\n autorun,\n clearObserving,\n comparer,\n createAction,\n createInstanceofPredicate,\n endBatch,\n getNextId,\n globalState,\n isCaughtException,\n isSpyEnabled,\n propagateChangeConfirmed,\n propagateMaybeChanged,\n reportObserved,\n shouldCompute,\n spyReport,\n startBatch,\n toPrimitive,\n trackDerivedFunction,\n untrackedEnd,\n untrackedStart,\n UPDATE,\n die,\n allowStateChangesStart,\n allowStateChangesEnd\n} from \"../internal\"\n\nimport { getFlag, setFlag } from \"../utils/utils\"\n\nexport interface IComputedValue {\n get(): T\n set(value: T): void\n}\n\nexport interface IComputedValueOptions {\n get?: () => T\n set?: (value: T) => void\n name?: string\n equals?: IEqualsComparer\n context?: any\n requiresReaction?: boolean\n keepAlive?: boolean\n}\n\nexport type IComputedDidChange = {\n type: \"update\"\n observableKind: \"computed\"\n object: unknown\n debugObjectName: string\n newValue: T\n oldValue: T | undefined\n}\n\n/**\n * A node in the state dependency root that observes other nodes, and can be observed itself.\n *\n * ComputedValue will remember the result of the computation for the duration of the batch, or\n * while being observed.\n *\n * During this time it will recompute only when one of its direct dependencies changed,\n * but only when it is being accessed with `ComputedValue.get()`.\n *\n * Implementation description:\n * 1. First time it's being accessed it will compute and remember result\n * give back remembered result until 2. happens\n * 2. First time any deep dependency change, propagate POSSIBLY_STALE to all observers, wait for 3.\n * 3. When it's being accessed, recompute if any shallow dependency changed.\n * if result changed: propagate STALE to all observers, that were POSSIBLY_STALE from the last step.\n * go to step 2. either way\n *\n * If at any point it's outside batch and it isn't observed: reset everything and go to 1.\n */\nexport class ComputedValue implements IObservable, IComputedValue, IDerivation {\n dependenciesState_ = IDerivationState_.NOT_TRACKING_\n observing_: IObservable[] = [] // nodes we are looking at. Our value depends on these nodes\n newObserving_ = null // during tracking it's an array with new observed observers\n observers_ = new Set()\n runId_ = 0\n lastAccessedBy_ = 0\n lowestObserverState_ = IDerivationState_.UP_TO_DATE_\n unboundDepsCount_ = 0\n protected value_: T | undefined | CaughtException = new CaughtException(null)\n name_: string\n triggeredBy_?: string\n\n private static readonly isComputingMask_ = 0b00001\n private static readonly isRunningSetterMask_ = 0b00010\n private static readonly isBeingObservedMask_ = 0b00100\n private static readonly isPendingUnobservationMask_ = 0b01000\n private static readonly diffValueMask_ = 0b10000\n private flags_ = 0b00000\n\n derivation: () => T // N.B: unminified as it is used by MST\n setter_?: (value: T) => void\n isTracing_: TraceMode = TraceMode.NONE\n scope_: Object | undefined\n private equals_: IEqualsComparer\n private requiresReaction_: boolean | undefined\n keepAlive_: boolean\n\n /**\n * Create a new computed value based on a function expression.\n *\n * The `name` property is for debug purposes only.\n *\n * The `equals` property specifies the comparer function to use to determine if a newly produced\n * value differs from the previous value. Two comparers are provided in the library; `defaultComparer`\n * compares based on identity comparison (===), and `structuralComparer` deeply compares the structure.\n * Structural comparison can be convenient if you always produce a new aggregated object and\n * don't want to notify observers if it is structurally the same.\n * This is useful for working with vectors, mouse coordinates etc.\n */\n constructor(options: IComputedValueOptions) {\n if (!options.get) {\n die(31)\n }\n this.derivation = options.get!\n this.name_ = options.name || (__DEV__ ? \"ComputedValue@\" + getNextId() : \"ComputedValue\")\n if (options.set) {\n this.setter_ = createAction(\n __DEV__ ? this.name_ + \"-setter\" : \"ComputedValue-setter\",\n options.set\n ) as any\n }\n this.equals_ =\n options.equals ||\n ((options as any).compareStructural || (options as any).struct\n ? comparer.structural\n : comparer.default)\n this.scope_ = options.context\n this.requiresReaction_ = options.requiresReaction\n this.keepAlive_ = !!options.keepAlive\n }\n\n onBecomeStale_() {\n propagateMaybeChanged(this)\n }\n\n public onBOL: Set | undefined\n public onBUOL: Set | undefined\n\n public onBO() {\n if (this.onBOL) {\n this.onBOL.forEach(listener => listener())\n }\n }\n\n public onBUO() {\n if (this.onBUOL) {\n this.onBUOL.forEach(listener => listener())\n }\n }\n\n // to check for cycles\n private get isComputing(): boolean {\n return getFlag(this.flags_, ComputedValue.isComputingMask_)\n }\n private set isComputing(newValue: boolean) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isComputingMask_, newValue)\n }\n\n private get isRunningSetter(): boolean {\n return getFlag(this.flags_, ComputedValue.isRunningSetterMask_)\n }\n private set isRunningSetter(newValue: boolean) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isRunningSetterMask_, newValue)\n }\n\n get isBeingObserved(): boolean {\n return getFlag(this.flags_, ComputedValue.isBeingObservedMask_)\n }\n set isBeingObserved(newValue: boolean) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isBeingObservedMask_, newValue)\n }\n\n get isPendingUnobservation(): boolean {\n return getFlag(this.flags_, ComputedValue.isPendingUnobservationMask_)\n }\n set isPendingUnobservation(newValue: boolean) {\n this.flags_ = setFlag(this.flags_, ComputedValue.isPendingUnobservationMask_, newValue)\n }\n\n get diffValue(): 0 | 1 {\n return getFlag(this.flags_, ComputedValue.diffValueMask_) ? 1 : 0\n }\n set diffValue(newValue: 0 | 1) {\n this.flags_ = setFlag(\n this.flags_,\n ComputedValue.diffValueMask_,\n newValue === 1 ? true : false\n )\n }\n\n /**\n * Returns the current value of this computed value.\n * Will evaluate its computation first if needed.\n */\n public get(): T {\n if (this.isComputing) {\n die(32, this.name_, this.derivation)\n }\n if (\n globalState.inBatch === 0 &&\n // !globalState.trackingDerivatpion &&\n this.observers_.size === 0 &&\n !this.keepAlive_\n ) {\n if (shouldCompute(this)) {\n this.warnAboutUntrackedRead_()\n startBatch() // See perf test 'computed memoization'\n this.value_ = this.computeValue_(false)\n endBatch()\n }\n } else {\n reportObserved(this)\n if (shouldCompute(this)) {\n let prevTrackingContext = globalState.trackingContext\n if (this.keepAlive_ && !prevTrackingContext) {\n globalState.trackingContext = this\n }\n if (this.trackAndCompute()) {\n propagateChangeConfirmed(this)\n }\n globalState.trackingContext = prevTrackingContext\n }\n }\n const result = this.value_!\n\n if (isCaughtException(result)) {\n throw result.cause\n }\n return result\n }\n\n public set(value: T) {\n if (this.setter_) {\n if (this.isRunningSetter) {\n die(33, this.name_)\n }\n this.isRunningSetter = true\n try {\n this.setter_.call(this.scope_, value)\n } finally {\n this.isRunningSetter = false\n }\n } else {\n die(34, this.name_)\n }\n }\n\n trackAndCompute(): boolean {\n // N.B: unminified as it is used by MST\n const oldValue = this.value_\n const wasSuspended =\n /* see #1208 */ this.dependenciesState_ === IDerivationState_.NOT_TRACKING_\n const newValue = this.computeValue_(true)\n\n const changed =\n wasSuspended ||\n isCaughtException(oldValue) ||\n isCaughtException(newValue) ||\n !this.equals_(oldValue, newValue)\n\n if (changed) {\n this.value_ = newValue\n\n if (__DEV__ && isSpyEnabled()) {\n spyReport({\n observableKind: \"computed\",\n debugObjectName: this.name_,\n object: this.scope_,\n type: \"update\",\n oldValue,\n newValue\n } as IComputedDidChange)\n }\n }\n\n return changed\n }\n\n computeValue_(track: boolean) {\n this.isComputing = true\n // don't allow state changes during computation\n const prev = allowStateChangesStart(false)\n let res: T | CaughtException\n if (track) {\n res = trackDerivedFunction(this, this.derivation, this.scope_)\n } else {\n if (globalState.disableErrorBoundaries === true) {\n res = this.derivation.call(this.scope_)\n } else {\n try {\n res = this.derivation.call(this.scope_)\n } catch (e) {\n res = new CaughtException(e)\n }\n }\n }\n allowStateChangesEnd(prev)\n this.isComputing = false\n return res\n }\n\n suspend_() {\n if (!this.keepAlive_) {\n clearObserving(this)\n this.value_ = undefined // don't hold on to computed value!\n if (__DEV__ && this.isTracing_ !== TraceMode.NONE) {\n console.log(\n `[mobx.trace] Computed value '${this.name_}' was suspended and it will recompute on the next access.`\n )\n }\n }\n }\n\n observe_(listener: (change: IComputedDidChange) => void, fireImmediately?: boolean): Lambda {\n let firstTime = true\n let prevValue: T | undefined = undefined\n return autorun(() => {\n // TODO: why is this in a different place than the spyReport() function? in all other observables it's called in the same place\n let newValue = this.get()\n if (!firstTime || fireImmediately) {\n const prevU = untrackedStart()\n listener({\n observableKind: \"computed\",\n debugObjectName: this.name_,\n type: UPDATE,\n object: this,\n newValue,\n oldValue: prevValue\n })\n untrackedEnd(prevU)\n }\n firstTime = false\n prevValue = newValue\n })\n }\n\n warnAboutUntrackedRead_() {\n if (!__DEV__) {\n return\n }\n if (this.isTracing_ !== TraceMode.NONE) {\n console.log(\n `[mobx.trace] Computed value '${this.name_}' is being read outside a reactive context. Doing a full recompute.`\n )\n }\n if (\n typeof this.requiresReaction_ === \"boolean\"\n ? this.requiresReaction_\n : globalState.computedRequiresReaction\n ) {\n console.warn(\n `[mobx] Computed value '${this.name_}' is being read outside a reactive context. Doing a full recompute.`\n )\n }\n }\n\n toString() {\n return `${this.name_}[${this.derivation.toString()}]`\n }\n\n valueOf(): T {\n return toPrimitive(this.get())\n }\n\n [Symbol.toPrimitive]() {\n return this.valueOf()\n }\n}\n\nexport const isComputedValue = createInstanceofPredicate(\"ComputedValue\", ComputedValue)\n","import {\n IAtom,\n IDepTreeNode,\n IObservable,\n addObserver,\n globalState,\n isComputedValue,\n removeObserver\n} from \"../internal\"\n\nexport enum IDerivationState_ {\n // before being run or (outside batch and not being observed)\n // at this point derivation is not holding any data about dependency tree\n NOT_TRACKING_ = -1,\n // no shallow dependency changed since last computation\n // won't recalculate derivation\n // this is what makes mobx fast\n UP_TO_DATE_ = 0,\n // some deep dependency changed, but don't know if shallow dependency changed\n // will require to check first if UP_TO_DATE or POSSIBLY_STALE\n // currently only ComputedValue will propagate POSSIBLY_STALE\n //\n // having this state is second big optimization:\n // don't have to recompute on every dependency change, but only when it's needed\n POSSIBLY_STALE_ = 1,\n // A shallow dependency has changed since last computation and the derivation\n // will need to recompute when it's needed next.\n STALE_ = 2\n}\n\nexport enum TraceMode {\n NONE,\n LOG,\n BREAK\n}\n\n/**\n * A derivation is everything that can be derived from the state (all the atoms) in a pure manner.\n * See https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74\n */\nexport interface IDerivation extends IDepTreeNode {\n observing_: IObservable[]\n newObserving_: null | IObservable[]\n dependenciesState_: IDerivationState_\n /**\n * Id of the current run of a derivation. Each time the derivation is tracked\n * this number is increased by one. This number is globally unique\n */\n runId_: number\n /**\n * amount of dependencies used by the derivation in this run, which has not been bound yet.\n */\n unboundDepsCount_: number\n onBecomeStale_(): void\n isTracing_: TraceMode\n\n /**\n * warn if the derivation has no dependencies after creation/update\n */\n requiresObservable_?: boolean\n}\n\nexport class CaughtException {\n constructor(public cause: any) {\n // Empty\n }\n}\n\nexport function isCaughtException(e: any): e is CaughtException {\n return e instanceof CaughtException\n}\n\n/**\n * Finds out whether any dependency of the derivation has actually changed.\n * If dependenciesState is 1 then it will recalculate dependencies,\n * if any dependency changed it will propagate it by changing dependenciesState to 2.\n *\n * By iterating over the dependencies in the same order that they were reported and\n * stopping on the first change, all the recalculations are only called for ComputedValues\n * that will be tracked by derivation. That is because we assume that if the first x\n * dependencies of the derivation doesn't change then the derivation should run the same way\n * up until accessing x-th dependency.\n */\nexport function shouldCompute(derivation: IDerivation): boolean {\n switch (derivation.dependenciesState_) {\n case IDerivationState_.UP_TO_DATE_:\n return false\n case IDerivationState_.NOT_TRACKING_:\n case IDerivationState_.STALE_:\n return true\n case IDerivationState_.POSSIBLY_STALE_: {\n // state propagation can occur outside of action/reactive context #2195\n const prevAllowStateReads = allowStateReadsStart(true)\n const prevUntracked = untrackedStart() // no need for those computeds to be reported, they will be picked up in trackDerivedFunction.\n const obs = derivation.observing_,\n l = obs.length\n for (let i = 0; i < l; i++) {\n const obj = obs[i]\n if (isComputedValue(obj)) {\n if (globalState.disableErrorBoundaries) {\n obj.get()\n } else {\n try {\n obj.get()\n } catch (e) {\n // we are not interested in the value *or* exception at this moment, but if there is one, notify all\n untrackedEnd(prevUntracked)\n allowStateReadsEnd(prevAllowStateReads)\n return true\n }\n }\n // if ComputedValue `obj` actually changed it will be computed and propagated to its observers.\n // and `derivation` is an observer of `obj`\n // invariantShouldCompute(derivation)\n if ((derivation.dependenciesState_ as any) === IDerivationState_.STALE_) {\n untrackedEnd(prevUntracked)\n allowStateReadsEnd(prevAllowStateReads)\n return true\n }\n }\n }\n changeDependenciesStateTo0(derivation)\n untrackedEnd(prevUntracked)\n allowStateReadsEnd(prevAllowStateReads)\n return false\n }\n }\n}\n\nexport function isComputingDerivation() {\n return globalState.trackingDerivation !== null // filter out actions inside computations\n}\n\nexport function checkIfStateModificationsAreAllowed(atom: IAtom) {\n if (!__DEV__) {\n return\n }\n const hasObservers = atom.observers_.size > 0\n // Should not be possible to change observed state outside strict mode, except during initialization, see #563\n if (\n !globalState.allowStateChanges &&\n (hasObservers || globalState.enforceActions === \"always\")\n ) {\n console.warn(\n \"[MobX] \" +\n (globalState.enforceActions\n ? \"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: \"\n : \"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: \") +\n atom.name_\n )\n }\n}\n\nexport function checkIfStateReadsAreAllowed(observable: IObservable) {\n if (__DEV__ && !globalState.allowStateReads && globalState.observableRequiresReaction) {\n console.warn(\n `[mobx] Observable '${observable.name_}' being read outside a reactive context.`\n )\n }\n}\n\n/**\n * Executes the provided function `f` and tracks which observables are being accessed.\n * The tracking information is stored on the `derivation` object and the derivation is registered\n * as observer of any of the accessed observables.\n */\nexport function trackDerivedFunction(derivation: IDerivation, f: () => T, context: any) {\n const prevAllowStateReads = allowStateReadsStart(true)\n changeDependenciesStateTo0(derivation)\n // Preallocate array; will be trimmed by bindDependencies.\n derivation.newObserving_ = new Array(\n // Reserve constant space for initial dependencies, dynamic space otherwise.\n // See https://github.com/mobxjs/mobx/pull/3833\n derivation.runId_ === 0 ? 100 : derivation.observing_.length\n )\n derivation.unboundDepsCount_ = 0\n derivation.runId_ = ++globalState.runId\n const prevTracking = globalState.trackingDerivation\n globalState.trackingDerivation = derivation\n globalState.inBatch++\n let result\n if (globalState.disableErrorBoundaries === true) {\n result = f.call(context)\n } else {\n try {\n result = f.call(context)\n } catch (e) {\n result = new CaughtException(e)\n }\n }\n globalState.inBatch--\n globalState.trackingDerivation = prevTracking\n bindDependencies(derivation)\n\n warnAboutDerivationWithoutDependencies(derivation)\n allowStateReadsEnd(prevAllowStateReads)\n return result\n}\n\nfunction warnAboutDerivationWithoutDependencies(derivation: IDerivation) {\n if (!__DEV__) {\n return\n }\n\n if (derivation.observing_.length !== 0) {\n return\n }\n\n if (\n typeof derivation.requiresObservable_ === \"boolean\"\n ? derivation.requiresObservable_\n : globalState.reactionRequiresObservable\n ) {\n console.warn(\n `[mobx] Derivation '${derivation.name_}' is created/updated without reading any observable value.`\n )\n }\n}\n\n/**\n * diffs newObserving with observing.\n * update observing to be newObserving with unique observables\n * notify observers that become observed/unobserved\n */\nfunction bindDependencies(derivation: IDerivation) {\n // invariant(derivation.dependenciesState !== IDerivationState.NOT_TRACKING, \"INTERNAL ERROR bindDependencies expects derivation.dependenciesState !== -1\");\n const prevObserving = derivation.observing_\n const observing = (derivation.observing_ = derivation.newObserving_!)\n let lowestNewObservingDerivationState = IDerivationState_.UP_TO_DATE_\n\n // Go through all new observables and check diffValue: (this list can contain duplicates):\n // 0: first occurrence, change to 1 and keep it\n // 1: extra occurrence, drop it\n let i0 = 0,\n l = derivation.unboundDepsCount_\n for (let i = 0; i < l; i++) {\n const dep = observing[i]\n if (dep.diffValue === 0) {\n dep.diffValue = 1\n if (i0 !== i) {\n observing[i0] = dep\n }\n i0++\n }\n\n // Upcast is 'safe' here, because if dep is IObservable, `dependenciesState` will be undefined,\n // not hitting the condition\n if ((dep as any as IDerivation).dependenciesState_ > lowestNewObservingDerivationState) {\n lowestNewObservingDerivationState = (dep as any as IDerivation).dependenciesState_\n }\n }\n observing.length = i0\n\n derivation.newObserving_ = null // newObserving shouldn't be needed outside tracking (statement moved down to work around FF bug, see #614)\n\n // Go through all old observables and check diffValue: (it is unique after last bindDependencies)\n // 0: it's not in new observables, unobserve it\n // 1: it keeps being observed, don't want to notify it. change to 0\n l = prevObserving.length\n while (l--) {\n const dep = prevObserving[l]\n if (dep.diffValue === 0) {\n removeObserver(dep, derivation)\n }\n dep.diffValue = 0\n }\n\n // Go through all new observables and check diffValue: (now it should be unique)\n // 0: it was set to 0 in last loop. don't need to do anything.\n // 1: it wasn't observed, let's observe it. set back to 0\n while (i0--) {\n const dep = observing[i0]\n if (dep.diffValue === 1) {\n dep.diffValue = 0\n addObserver(dep, derivation)\n }\n }\n\n // Some new observed derivations may become stale during this derivation computation\n // so they have had no chance to propagate staleness (#916)\n if (lowestNewObservingDerivationState !== IDerivationState_.UP_TO_DATE_) {\n derivation.dependenciesState_ = lowestNewObservingDerivationState\n derivation.onBecomeStale_()\n }\n}\n\nexport function clearObserving(derivation: IDerivation) {\n // invariant(globalState.inBatch > 0, \"INTERNAL ERROR clearObserving should be called only inside batch\");\n const obs = derivation.observing_\n derivation.observing_ = []\n let i = obs.length\n while (i--) {\n removeObserver(obs[i], derivation)\n }\n\n derivation.dependenciesState_ = IDerivationState_.NOT_TRACKING_\n}\n\nexport function untracked(action: () => T): T {\n const prev = untrackedStart()\n try {\n return action()\n } finally {\n untrackedEnd(prev)\n }\n}\n\nexport function untrackedStart(): IDerivation | null {\n const prev = globalState.trackingDerivation\n globalState.trackingDerivation = null\n return prev\n}\n\nexport function untrackedEnd(prev: IDerivation | null) {\n globalState.trackingDerivation = prev\n}\n\nexport function allowStateReadsStart(allowStateReads: boolean) {\n const prev = globalState.allowStateReads\n globalState.allowStateReads = allowStateReads\n return prev\n}\n\nexport function allowStateReadsEnd(prev: boolean) {\n globalState.allowStateReads = prev\n}\n\n/**\n * needed to keep `lowestObserverState` correct. when changing from (2 or 1) to 0\n *\n */\nexport function changeDependenciesStateTo0(derivation: IDerivation) {\n if (derivation.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {\n return\n }\n derivation.dependenciesState_ = IDerivationState_.UP_TO_DATE_\n\n const obs = derivation.observing_\n let i = obs.length\n while (i--) {\n obs[i].lowestObserverState_ = IDerivationState_.UP_TO_DATE_\n }\n}\n","import { IDerivation, IObservable, Reaction, die, getGlobal } from \"../internal\"\nimport { ComputedValue } from \"./computedvalue\"\n\n/**\n * These values will persist if global state is reset\n */\nconst persistentKeys: (keyof MobXGlobals)[] = [\n \"mobxGuid\",\n \"spyListeners\",\n \"enforceActions\",\n \"computedRequiresReaction\",\n \"reactionRequiresObservable\",\n \"observableRequiresReaction\",\n \"allowStateReads\",\n \"disableErrorBoundaries\",\n \"runId\",\n \"UNCHANGED\",\n \"useProxies\"\n]\n\nexport type IUNCHANGED = {}\n\nexport class MobXGlobals {\n /**\n * MobXGlobals version.\n * MobX compatiblity with other versions loaded in memory as long as this version matches.\n * It indicates that the global state still stores similar information\n *\n * N.B: this version is unrelated to the package version of MobX, and is only the version of the\n * internal state storage of MobX, and can be the same across many different package versions\n */\n version = 6\n\n /**\n * globally unique token to signal unchanged\n */\n UNCHANGED: IUNCHANGED = {}\n\n /**\n * Currently running derivation\n */\n trackingDerivation: IDerivation | null = null\n\n /**\n * Currently running reaction. This determines if we currently have a reactive context.\n * (Tracking derivation is also set for temporal tracking of computed values inside actions,\n * but trackingReaction can only be set by a form of Reaction)\n */\n trackingContext: Reaction | ComputedValue | null = null\n\n /**\n * Each time a derivation is tracked, it is assigned a unique run-id\n */\n runId = 0\n\n /**\n * 'guid' for general purpose. Will be persisted amongst resets.\n */\n mobxGuid = 0\n\n /**\n * Are we in a batch block? (and how many of them)\n */\n inBatch: number = 0\n\n /**\n * Observables that don't have observers anymore, and are about to be\n * suspended, unless somebody else accesses it in the same batch\n *\n * @type {IObservable[]}\n */\n pendingUnobservations: IObservable[] = []\n\n /**\n * List of scheduled, not yet executed, reactions.\n */\n pendingReactions: Reaction[] = []\n\n /**\n * Are we currently processing reactions?\n */\n isRunningReactions = false\n\n /**\n * Is it allowed to change observables at this point?\n * In general, MobX doesn't allow that when running computations and React.render.\n * To ensure that those functions stay pure.\n */\n allowStateChanges = false\n\n /**\n * Is it allowed to read observables at this point?\n * Used to hold the state needed for `observableRequiresReaction`\n */\n allowStateReads = true\n\n /**\n * If strict mode is enabled, state changes are by default not allowed\n */\n enforceActions: boolean | \"always\" = true\n\n /**\n * Spy callbacks\n */\n spyListeners: { (change: any): void }[] = []\n\n /**\n * Globally attached error handlers that react specifically to errors in reactions\n */\n globalReactionErrorHandlers: ((error: any, derivation: IDerivation) => void)[] = []\n\n /**\n * Warn if computed values are accessed outside a reactive context\n */\n computedRequiresReaction = false\n\n /**\n * (Experimental)\n * Warn if you try to create to derivation / reactive context without accessing any observable.\n */\n reactionRequiresObservable = false\n\n /**\n * (Experimental)\n * Warn if observables are accessed outside a reactive context\n */\n observableRequiresReaction = false\n\n /*\n * Don't catch and rethrow exceptions. This is useful for inspecting the state of\n * the stack when an exception occurs while debugging.\n */\n disableErrorBoundaries = false\n\n /*\n * If true, we are already handling an exception in an action. Any errors in reactions should be suppressed, as\n * they are not the cause, see: https://github.com/mobxjs/mobx/issues/1836\n */\n suppressReactionErrors = false\n\n useProxies = true\n /*\n * print warnings about code that would fail if proxies weren't available\n */\n verifyProxies = false\n\n /**\n * False forces all object's descriptors to\n * writable: true\n * configurable: true\n */\n safeDescriptors = true\n}\n\nlet canMergeGlobalState = true\nlet isolateCalled = false\n\nexport let globalState: MobXGlobals = (function () {\n let global = getGlobal()\n if (global.__mobxInstanceCount > 0 && !global.__mobxGlobals) {\n canMergeGlobalState = false\n }\n if (global.__mobxGlobals && global.__mobxGlobals.version !== new MobXGlobals().version) {\n canMergeGlobalState = false\n }\n\n if (!canMergeGlobalState) {\n // Because this is a IIFE we need to let isolateCalled a chance to change\n // so we run it after the event loop completed at least 1 iteration\n setTimeout(() => {\n if (!isolateCalled) {\n die(35)\n }\n }, 1)\n return new MobXGlobals()\n } else if (global.__mobxGlobals) {\n global.__mobxInstanceCount += 1\n if (!global.__mobxGlobals.UNCHANGED) {\n global.__mobxGlobals.UNCHANGED = {}\n } // make merge backward compatible\n return global.__mobxGlobals\n } else {\n global.__mobxInstanceCount = 1\n return (global.__mobxGlobals = new MobXGlobals())\n }\n})()\n\nexport function isolateGlobalState() {\n if (\n globalState.pendingReactions.length ||\n globalState.inBatch ||\n globalState.isRunningReactions\n ) {\n die(36)\n }\n isolateCalled = true\n if (canMergeGlobalState) {\n let global = getGlobal()\n if (--global.__mobxInstanceCount === 0) {\n global.__mobxGlobals = undefined\n }\n globalState = new MobXGlobals()\n }\n}\n\nexport function getGlobalState(): any {\n return globalState\n}\n\n/**\n * For testing purposes only; this will break the internal state of existing observables,\n * but can be used to get back at a stable state after throwing errors\n */\nexport function resetGlobalState() {\n const defaultGlobals = new MobXGlobals()\n for (let key in defaultGlobals) {\n if (persistentKeys.indexOf(key as any) === -1) {\n globalState[key] = defaultGlobals[key]\n }\n }\n globalState.allowStateChanges = !globalState.enforceActions\n}\n","import {\n Lambda,\n ComputedValue,\n IDependencyTree,\n IDerivation,\n IDerivationState_,\n TraceMode,\n getDependencyTree,\n globalState,\n runReactions,\n checkIfStateReadsAreAllowed\n} from \"../internal\"\n\nexport interface IDepTreeNode {\n name_: string\n observing_?: IObservable[]\n}\n\nexport interface IObservable extends IDepTreeNode {\n diffValue: number\n /**\n * Id of the derivation *run* that last accessed this observable.\n * If this id equals the *run* id of the current derivation,\n * the dependency is already established\n */\n lastAccessedBy_: number\n isBeingObserved: boolean\n\n lowestObserverState_: IDerivationState_ // Used to avoid redundant propagations\n isPendingUnobservation: boolean // Used to push itself to global.pendingUnobservations at most once per batch.\n\n observers_: Set\n\n onBUO(): void\n onBO(): void\n\n onBUOL: Set | undefined\n onBOL: Set | undefined\n}\n\nexport function hasObservers(observable: IObservable): boolean {\n return observable.observers_ && observable.observers_.size > 0\n}\n\nexport function getObservers(observable: IObservable): Set {\n return observable.observers_\n}\n\n// function invariantObservers(observable: IObservable) {\n// const list = observable.observers\n// const map = observable.observersIndexes\n// const l = list.length\n// for (let i = 0; i < l; i++) {\n// const id = list[i].__mapid\n// if (i) {\n// invariant(map[id] === i, \"INTERNAL ERROR maps derivation.__mapid to index in list\") // for performance\n// } else {\n// invariant(!(id in map), \"INTERNAL ERROR observer on index 0 shouldn't be held in map.\") // for performance\n// }\n// }\n// invariant(\n// list.length === 0 || Object.keys(map).length === list.length - 1,\n// \"INTERNAL ERROR there is no junk in map\"\n// )\n// }\nexport function addObserver(observable: IObservable, node: IDerivation) {\n // invariant(node.dependenciesState !== -1, \"INTERNAL ERROR, can add only dependenciesState !== -1\");\n // invariant(observable._observers.indexOf(node) === -1, \"INTERNAL ERROR add already added node\");\n // invariantObservers(observable);\n\n observable.observers_.add(node)\n if (observable.lowestObserverState_ > node.dependenciesState_) {\n observable.lowestObserverState_ = node.dependenciesState_\n }\n\n // invariantObservers(observable);\n // invariant(observable._observers.indexOf(node) !== -1, \"INTERNAL ERROR didn't add node\");\n}\n\nexport function removeObserver(observable: IObservable, node: IDerivation) {\n // invariant(globalState.inBatch > 0, \"INTERNAL ERROR, remove should be called only inside batch\");\n // invariant(observable._observers.indexOf(node) !== -1, \"INTERNAL ERROR remove already removed node\");\n // invariantObservers(observable);\n observable.observers_.delete(node)\n if (observable.observers_.size === 0) {\n // deleting last observer\n queueForUnobservation(observable)\n }\n // invariantObservers(observable);\n // invariant(observable._observers.indexOf(node) === -1, \"INTERNAL ERROR remove already removed node2\");\n}\n\nexport function queueForUnobservation(observable: IObservable) {\n if (observable.isPendingUnobservation === false) {\n // invariant(observable._observers.length === 0, \"INTERNAL ERROR, should only queue for unobservation unobserved observables\");\n observable.isPendingUnobservation = true\n globalState.pendingUnobservations.push(observable)\n }\n}\n\n/**\n * Batch starts a transaction, at least for purposes of memoizing ComputedValues when nothing else does.\n * During a batch `onBecomeUnobserved` will be called at most once per observable.\n * Avoids unnecessary recalculations.\n */\nexport function startBatch() {\n globalState.inBatch++\n}\n\nexport function endBatch() {\n if (--globalState.inBatch === 0) {\n runReactions()\n // the batch is actually about to finish, all unobserving should happen here.\n const list = globalState.pendingUnobservations\n for (let i = 0; i < list.length; i++) {\n const observable = list[i]\n observable.isPendingUnobservation = false\n if (observable.observers_.size === 0) {\n if (observable.isBeingObserved) {\n // if this observable had reactive observers, trigger the hooks\n observable.isBeingObserved = false\n observable.onBUO()\n }\n if (observable instanceof ComputedValue) {\n // computed values are automatically teared down when the last observer leaves\n // this process happens recursively, this computed might be the last observabe of another, etc..\n observable.suspend_()\n }\n }\n }\n globalState.pendingUnobservations = []\n }\n}\n\nexport function reportObserved(observable: IObservable): boolean {\n checkIfStateReadsAreAllowed(observable)\n\n const derivation = globalState.trackingDerivation\n if (derivation !== null) {\n /**\n * Simple optimization, give each derivation run an unique id (runId)\n * Check if last time this observable was accessed the same runId is used\n * if this is the case, the relation is already known\n */\n if (derivation.runId_ !== observable.lastAccessedBy_) {\n observable.lastAccessedBy_ = derivation.runId_\n // Tried storing newObserving, or observing, or both as Set, but performance didn't come close...\n derivation.newObserving_![derivation.unboundDepsCount_++] = observable\n if (!observable.isBeingObserved && globalState.trackingContext) {\n observable.isBeingObserved = true\n observable.onBO()\n }\n }\n return observable.isBeingObserved\n } else if (observable.observers_.size === 0 && globalState.inBatch > 0) {\n queueForUnobservation(observable)\n }\n\n return false\n}\n\n// function invariantLOS(observable: IObservable, msg: string) {\n// // it's expensive so better not run it in produciton. but temporarily helpful for testing\n// const min = getObservers(observable).reduce((a, b) => Math.min(a, b.dependenciesState), 2)\n// if (min >= observable.lowestObserverState) return // <- the only assumption about `lowestObserverState`\n// throw new Error(\n// \"lowestObserverState is wrong for \" +\n// msg +\n// \" because \" +\n// min +\n// \" < \" +\n// observable.lowestObserverState\n// )\n// }\n\n/**\n * NOTE: current propagation mechanism will in case of self reruning autoruns behave unexpectedly\n * It will propagate changes to observers from previous run\n * It's hard or maybe impossible (with reasonable perf) to get it right with current approach\n * Hopefully self reruning autoruns aren't a feature people should depend on\n * Also most basic use cases should be ok\n */\n\n// Called by Atom when its value changes\nexport function propagateChanged(observable: IObservable) {\n // invariantLOS(observable, \"changed start\");\n if (observable.lowestObserverState_ === IDerivationState_.STALE_) {\n return\n }\n observable.lowestObserverState_ = IDerivationState_.STALE_\n\n // Ideally we use for..of here, but the downcompiled version is really slow...\n observable.observers_.forEach(d => {\n if (d.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {\n if (__DEV__ && d.isTracing_ !== TraceMode.NONE) {\n logTraceInfo(d, observable)\n }\n d.onBecomeStale_()\n }\n d.dependenciesState_ = IDerivationState_.STALE_\n })\n // invariantLOS(observable, \"changed end\");\n}\n\n// Called by ComputedValue when it recalculate and its value changed\nexport function propagateChangeConfirmed(observable: IObservable) {\n // invariantLOS(observable, \"confirmed start\");\n if (observable.lowestObserverState_ === IDerivationState_.STALE_) {\n return\n }\n observable.lowestObserverState_ = IDerivationState_.STALE_\n\n observable.observers_.forEach(d => {\n if (d.dependenciesState_ === IDerivationState_.POSSIBLY_STALE_) {\n d.dependenciesState_ = IDerivationState_.STALE_\n if (__DEV__ && d.isTracing_ !== TraceMode.NONE) {\n logTraceInfo(d, observable)\n }\n } else if (\n d.dependenciesState_ === IDerivationState_.UP_TO_DATE_ // this happens during computing of `d`, just keep lowestObserverState up to date.\n ) {\n observable.lowestObserverState_ = IDerivationState_.UP_TO_DATE_\n }\n })\n // invariantLOS(observable, \"confirmed end\");\n}\n\n// Used by computed when its dependency changed, but we don't wan't to immediately recompute.\nexport function propagateMaybeChanged(observable: IObservable) {\n // invariantLOS(observable, \"maybe start\");\n if (observable.lowestObserverState_ !== IDerivationState_.UP_TO_DATE_) {\n return\n }\n observable.lowestObserverState_ = IDerivationState_.POSSIBLY_STALE_\n\n observable.observers_.forEach(d => {\n if (d.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {\n d.dependenciesState_ = IDerivationState_.POSSIBLY_STALE_\n d.onBecomeStale_()\n }\n })\n // invariantLOS(observable, \"maybe end\");\n}\n\nfunction logTraceInfo(derivation: IDerivation, observable: IObservable) {\n console.log(\n `[mobx.trace] '${derivation.name_}' is invalidated due to a change in: '${observable.name_}'`\n )\n if (derivation.isTracing_ === TraceMode.BREAK) {\n const lines = []\n printDepTree(getDependencyTree(derivation), lines, 1)\n\n // prettier-ignore\n new Function(\n`debugger;\n/*\nTracing '${derivation.name_}'\n\nYou are entering this break point because derivation '${derivation.name_}' is being traced and '${observable.name_}' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n${derivation instanceof ComputedValue ? derivation.derivation.toString().replace(/[*]\\//g, \"/\") : \"\"}\n\nThe dependencies for this derivation are:\n\n${lines.join(\"\\n\")}\n*/\n `)()\n }\n}\n\nfunction printDepTree(tree: IDependencyTree, lines: string[], depth: number) {\n if (lines.length >= 1000) {\n lines.push(\"(and many more)\")\n return\n }\n lines.push(`${\"\\t\".repeat(depth - 1)}${tree.name}`)\n if (tree.dependencies) {\n tree.dependencies.forEach(child => printDepTree(child, lines, depth + 1))\n }\n}\n","import {\n $mobx,\n IDerivation,\n IDerivationState_,\n IObservable,\n Lambda,\n TraceMode,\n clearObserving,\n createInstanceofPredicate,\n endBatch,\n getNextId,\n globalState,\n isCaughtException,\n isSpyEnabled,\n shouldCompute,\n spyReport,\n spyReportEnd,\n spyReportStart,\n startBatch,\n trace,\n trackDerivedFunction,\n GenericAbortSignal\n} from \"../internal\"\n\nimport { getFlag, setFlag } from \"../utils/utils\"\n\n/**\n * Reactions are a special kind of derivations. Several things distinguishes them from normal reactive computations\n *\n * 1) They will always run, whether they are used by other computations or not.\n * This means that they are very suitable for triggering side effects like logging, updating the DOM and making network requests.\n * 2) They are not observable themselves\n * 3) They will always run after any 'normal' derivations\n * 4) They are allowed to change the state and thereby triggering themselves again, as long as they make sure the state propagates to a stable state in a reasonable amount of iterations.\n *\n * The state machine of a Reaction is as follows:\n *\n * 1) after creating, the reaction should be started by calling `runReaction` or by scheduling it (see also `autorun`)\n * 2) the `onInvalidate` handler should somehow result in a call to `this.track(someFunction)`\n * 3) all observables accessed in `someFunction` will be observed by this reaction.\n * 4) as soon as some of the dependencies has changed the Reaction will be rescheduled for another run (after the current mutation or transaction). `isScheduled` will yield true once a dependency is stale and during this period\n * 5) `onInvalidate` will be called, and we are back at step 1.\n *\n */\n\nexport interface IReactionPublic {\n dispose(): void\n trace(enterBreakPoint?: boolean): void\n}\n\nexport interface IReactionDisposer {\n (): void\n [$mobx]: Reaction\n}\n\nexport class Reaction implements IDerivation, IReactionPublic {\n observing_: IObservable[] = [] // nodes we are looking at. Our value depends on these nodes\n newObserving_: IObservable[] = []\n dependenciesState_ = IDerivationState_.NOT_TRACKING_\n runId_ = 0\n unboundDepsCount_ = 0\n\n private static readonly isDisposedMask_ = 0b00001\n private static readonly isScheduledMask_ = 0b00010\n private static readonly isTrackPendingMask_ = 0b00100\n private static readonly isRunningMask_ = 0b01000\n private static readonly diffValueMask_ = 0b10000\n private flags_ = 0b00000\n\n isTracing_: TraceMode = TraceMode.NONE\n\n constructor(\n public name_: string = __DEV__ ? \"Reaction@\" + getNextId() : \"Reaction\",\n private onInvalidate_: () => void,\n private errorHandler_?: (error: any, derivation: IDerivation) => void,\n public requiresObservable_?\n ) {}\n\n get isDisposed() {\n return getFlag(this.flags_, Reaction.isDisposedMask_)\n }\n set isDisposed(newValue: boolean) {\n this.flags_ = setFlag(this.flags_, Reaction.isDisposedMask_, newValue)\n }\n\n get isScheduled() {\n return getFlag(this.flags_, Reaction.isScheduledMask_)\n }\n set isScheduled(newValue: boolean) {\n this.flags_ = setFlag(this.flags_, Reaction.isScheduledMask_, newValue)\n }\n\n get isTrackPending() {\n return getFlag(this.flags_, Reaction.isTrackPendingMask_)\n }\n set isTrackPending(newValue: boolean) {\n this.flags_ = setFlag(this.flags_, Reaction.isTrackPendingMask_, newValue)\n }\n\n get isRunning() {\n return getFlag(this.flags_, Reaction.isRunningMask_)\n }\n set isRunning(newValue: boolean) {\n this.flags_ = setFlag(this.flags_, Reaction.isRunningMask_, newValue)\n }\n\n get diffValue(): 0 | 1 {\n return getFlag(this.flags_, Reaction.diffValueMask_) ? 1 : 0\n }\n set diffValue(newValue: 0 | 1) {\n this.flags_ = setFlag(this.flags_, Reaction.diffValueMask_, newValue === 1 ? true : false)\n }\n\n onBecomeStale_() {\n this.schedule_()\n }\n\n schedule_() {\n if (!this.isScheduled) {\n this.isScheduled = true\n globalState.pendingReactions.push(this)\n runReactions()\n }\n }\n\n /**\n * internal, use schedule() if you intend to kick off a reaction\n */\n runReaction_() {\n if (!this.isDisposed) {\n startBatch()\n this.isScheduled = false\n const prev = globalState.trackingContext\n globalState.trackingContext = this\n if (shouldCompute(this)) {\n this.isTrackPending = true\n\n try {\n this.onInvalidate_()\n if (__DEV__ && this.isTrackPending && isSpyEnabled()) {\n // onInvalidate didn't trigger track right away..\n spyReport({\n name: this.name_,\n type: \"scheduled-reaction\"\n })\n }\n } catch (e) {\n this.reportExceptionInDerivation_(e)\n }\n }\n globalState.trackingContext = prev\n endBatch()\n }\n }\n\n track(fn: () => void) {\n if (this.isDisposed) {\n return\n // console.warn(\"Reaction already disposed\") // Note: Not a warning / error in mobx 4 either\n }\n startBatch()\n const notify = isSpyEnabled()\n let startTime\n if (__DEV__ && notify) {\n startTime = Date.now()\n spyReportStart({\n name: this.name_,\n type: \"reaction\"\n })\n }\n this.isRunning = true\n const prevReaction = globalState.trackingContext // reactions could create reactions...\n globalState.trackingContext = this\n const result = trackDerivedFunction(this, fn, undefined)\n globalState.trackingContext = prevReaction\n this.isRunning = false\n this.isTrackPending = false\n if (this.isDisposed) {\n // disposed during last run. Clean up everything that was bound after the dispose call.\n clearObserving(this)\n }\n if (isCaughtException(result)) {\n this.reportExceptionInDerivation_(result.cause)\n }\n if (__DEV__ && notify) {\n spyReportEnd({\n time: Date.now() - startTime\n })\n }\n endBatch()\n }\n\n reportExceptionInDerivation_(error: any) {\n if (this.errorHandler_) {\n this.errorHandler_(error, this)\n return\n }\n\n if (globalState.disableErrorBoundaries) {\n throw error\n }\n\n const message = __DEV__\n ? `[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '${this}'`\n : `[mobx] uncaught error in '${this}'`\n if (!globalState.suppressReactionErrors) {\n console.error(message, error)\n /** If debugging brought you here, please, read the above message :-). Tnx! */\n } else if (__DEV__) { console.warn(`[mobx] (error in reaction '${this.name_}' suppressed, fix error of causing action below)`) } // prettier-ignore\n\n if (__DEV__ && isSpyEnabled()) {\n spyReport({\n type: \"error\",\n name: this.name_,\n message,\n error: \"\" + error\n })\n }\n\n globalState.globalReactionErrorHandlers.forEach(f => f(error, this))\n }\n\n dispose() {\n if (!this.isDisposed) {\n this.isDisposed = true\n if (!this.isRunning) {\n // if disposed while running, clean up later. Maybe not optimal, but rare case\n startBatch()\n clearObserving(this)\n endBatch()\n }\n }\n }\n\n getDisposer_(abortSignal?: GenericAbortSignal): IReactionDisposer {\n const dispose = (() => {\n this.dispose()\n abortSignal?.removeEventListener?.(\"abort\", dispose)\n }) as IReactionDisposer\n abortSignal?.addEventListener?.(\"abort\", dispose)\n dispose[$mobx] = this\n\n return dispose\n }\n\n toString() {\n return `Reaction[${this.name_}]`\n }\n\n trace(enterBreakPoint: boolean = false) {\n trace(this, enterBreakPoint)\n }\n}\n\nexport function onReactionError(handler: (error: any, derivation: IDerivation) => void): Lambda {\n globalState.globalReactionErrorHandlers.push(handler)\n return () => {\n const idx = globalState.globalReactionErrorHandlers.indexOf(handler)\n if (idx >= 0) {\n globalState.globalReactionErrorHandlers.splice(idx, 1)\n }\n }\n}\n\n/**\n * Magic number alert!\n * Defines within how many times a reaction is allowed to re-trigger itself\n * until it is assumed that this is gonna be a never ending loop...\n */\nconst MAX_REACTION_ITERATIONS = 100\n\nlet reactionScheduler: (fn: () => void) => void = f => f()\n\nexport function runReactions() {\n // Trampolining, if runReactions are already running, new reactions will be picked up\n if (globalState.inBatch > 0 || globalState.isRunningReactions) {\n return\n }\n reactionScheduler(runReactionsHelper)\n}\n\nfunction runReactionsHelper() {\n globalState.isRunningReactions = true\n const allReactions = globalState.pendingReactions\n let iterations = 0\n\n // While running reactions, new reactions might be triggered.\n // Hence we work with two variables and check whether\n // we converge to no remaining reactions after a while.\n while (allReactions.length > 0) {\n if (++iterations === MAX_REACTION_ITERATIONS) {\n console.error(\n __DEV__\n ? `Reaction doesn't converge to a stable state after ${MAX_REACTION_ITERATIONS} iterations.` +\n ` Probably there is a cycle in the reactive function: ${allReactions[0]}`\n : `[mobx] cycle in reaction: ${allReactions[0]}`\n )\n allReactions.splice(0) // clear reactions\n }\n let remainingReactions = allReactions.splice(0)\n for (let i = 0, l = remainingReactions.length; i < l; i++) {\n remainingReactions[i].runReaction_()\n }\n }\n globalState.isRunningReactions = false\n}\n\nexport const isReaction = createInstanceofPredicate(\"Reaction\", Reaction)\n\nexport function setReactionScheduler(fn: (f: () => void) => void) {\n const baseScheduler = reactionScheduler\n reactionScheduler = f => fn(() => baseScheduler(f))\n}\n","import { IComputedDidChange } from \"./computedvalue\"\nimport { IValueDidChange, IBoxDidChange } from \"./../types/observablevalue\"\nimport { IObjectDidChange } from \"./../types/observableobject\"\nimport { IArrayDidChange } from \"./../types/observablearray\"\nimport { Lambda, globalState, once, ISetDidChange, IMapDidChange } from \"../internal\"\n\nexport function isSpyEnabled() {\n return __DEV__ && !!globalState.spyListeners.length\n}\n\nexport type PureSpyEvent =\n | { type: \"action\"; name: string; object: unknown; arguments: unknown[] }\n | { type: \"scheduled-reaction\"; name: string }\n | { type: \"reaction\"; name: string }\n | { type: \"error\"; name: string; message: string; error: string }\n | IComputedDidChange\n | IObjectDidChange\n | IArrayDidChange\n | IMapDidChange\n | ISetDidChange\n | IValueDidChange\n | IBoxDidChange\n | { type: \"report-end\"; spyReportEnd: true; time?: number }\n\ntype SpyEvent = PureSpyEvent & { spyReportStart?: true }\n\nexport function spyReport(event: SpyEvent) {\n if (!__DEV__) {\n return\n } // dead code elimination can do the rest\n if (!globalState.spyListeners.length) {\n return\n }\n const listeners = globalState.spyListeners\n for (let i = 0, l = listeners.length; i < l; i++) {\n listeners[i](event)\n }\n}\n\nexport function spyReportStart(event: PureSpyEvent) {\n if (!__DEV__) {\n return\n }\n const change = { ...event, spyReportStart: true as const }\n spyReport(change)\n}\n\nconst END_EVENT: SpyEvent = { type: \"report-end\", spyReportEnd: true }\n\nexport function spyReportEnd(change?: { time?: number }) {\n if (!__DEV__) {\n return\n }\n if (change) {\n spyReport({ ...change, type: \"report-end\", spyReportEnd: true })\n } else {\n spyReport(END_EVENT)\n }\n}\n\nexport function spy(listener: (change: SpyEvent) => void): Lambda {\n if (!__DEV__) {\n console.warn(`[mobx.spy] Is a no-op in production builds`)\n return function () {}\n } else {\n globalState.spyListeners.push(listener)\n return once(() => {\n globalState.spyListeners = globalState.spyListeners.filter(l => l !== listener)\n })\n }\n}\n","import {\n createAction,\n executeAction,\n Annotation,\n storeAnnotation,\n die,\n isFunction,\n isStringish,\n createDecoratorAnnotation,\n createActionAnnotation,\n is20223Decorator\n} from \"../internal\"\n\nimport type { ClassFieldDecorator, ClassMethodDecorator } from \"../types/decorator_fills\"\n\nexport const ACTION = \"action\"\nexport const ACTION_BOUND = \"action.bound\"\nexport const AUTOACTION = \"autoAction\"\nexport const AUTOACTION_BOUND = \"autoAction.bound\"\n\nconst DEFAULT_ACTION_NAME = \"\"\n\nconst actionAnnotation = createActionAnnotation(ACTION)\nconst actionBoundAnnotation = createActionAnnotation(ACTION_BOUND, {\n bound: true\n})\nconst autoActionAnnotation = createActionAnnotation(AUTOACTION, {\n autoAction: true\n})\nconst autoActionBoundAnnotation = createActionAnnotation(AUTOACTION_BOUND, {\n autoAction: true,\n bound: true\n})\n\nexport interface IActionFactory\n extends Annotation,\n PropertyDecorator,\n ClassMethodDecorator,\n ClassFieldDecorator {\n // nameless actions\n (fn: T): T\n // named actions\n (name: string, fn: T): T\n\n // named decorator\n (customName: string): PropertyDecorator &\n Annotation &\n ClassMethodDecorator &\n ClassFieldDecorator\n\n // decorator (name no longer supported)\n bound: Annotation & PropertyDecorator & ClassMethodDecorator & ClassFieldDecorator\n}\n\nfunction createActionFactory(autoAction: boolean): IActionFactory {\n const res: IActionFactory = function action(arg1, arg2?): any {\n // action(fn() {})\n if (isFunction(arg1)) {\n return createAction(arg1.name || DEFAULT_ACTION_NAME, arg1, autoAction)\n }\n // action(\"name\", fn() {})\n if (isFunction(arg2)) {\n return createAction(arg1, arg2, autoAction)\n }\n // @action (2022.3 Decorators)\n if (is20223Decorator(arg2)) {\n return (autoAction ? autoActionAnnotation : actionAnnotation).decorate_20223_(\n arg1,\n arg2\n )\n }\n // @action\n if (isStringish(arg2)) {\n return storeAnnotation(arg1, arg2, autoAction ? autoActionAnnotation : actionAnnotation)\n }\n // action(\"name\") & @action(\"name\")\n if (isStringish(arg1)) {\n return createDecoratorAnnotation(\n createActionAnnotation(autoAction ? AUTOACTION : ACTION, {\n name: arg1,\n autoAction\n })\n )\n }\n\n if (__DEV__) {\n die(\"Invalid arguments for `action`\")\n }\n } as IActionFactory\n return res\n}\n\nexport const action: IActionFactory = createActionFactory(false)\nObject.assign(action, actionAnnotation)\nexport const autoAction: IActionFactory = createActionFactory(true)\nObject.assign(autoAction, autoActionAnnotation)\n\naction.bound = createDecoratorAnnotation(actionBoundAnnotation)\nautoAction.bound = createDecoratorAnnotation(autoActionBoundAnnotation)\n\nexport function runInAction(fn: () => T): T {\n return executeAction(fn.name || DEFAULT_ACTION_NAME, false, fn, this, undefined)\n}\n\nexport function isAction(thing: any) {\n return isFunction(thing) && thing.isMobxAction === true\n}\n","import {\n EMPTY_OBJECT,\n IEqualsComparer,\n IReactionDisposer,\n IReactionPublic,\n Lambda,\n Reaction,\n action,\n comparer,\n getNextId,\n isAction,\n isFunction,\n isPlainObject,\n die,\n allowStateChanges,\n GenericAbortSignal\n} from \"../internal\"\n\nexport interface IAutorunOptions {\n delay?: number\n name?: string\n /**\n * Experimental.\n * Warns if the view doesn't track observables\n */\n requiresObservable?: boolean\n scheduler?: (callback: () => void) => any\n onError?: (error: any) => void\n signal?: GenericAbortSignal\n}\n\n/**\n * Creates a named reactive view and keeps it alive, so that the view is always\n * updated if one of the dependencies changes, even when the view is not further used by something else.\n * @param view The reactive view\n * @returns disposer function, which can be used to stop the view from being updated in the future.\n */\nexport function autorun(\n view: (r: IReactionPublic) => any,\n opts: IAutorunOptions = EMPTY_OBJECT\n): IReactionDisposer {\n if (__DEV__) {\n if (!isFunction(view)) {\n die(\"Autorun expects a function as first argument\")\n }\n if (isAction(view)) {\n die(\"Autorun does not accept actions since actions are untrackable\")\n }\n }\n\n const name: string =\n opts?.name ?? (__DEV__ ? (view as any).name || \"Autorun@\" + getNextId() : \"Autorun\")\n const runSync = !opts.scheduler && !opts.delay\n let reaction: Reaction\n\n if (runSync) {\n // normal autorun\n reaction = new Reaction(\n name,\n function (this: Reaction) {\n this.track(reactionRunner)\n },\n opts.onError,\n opts.requiresObservable\n )\n } else {\n const scheduler = createSchedulerFromOptions(opts)\n // debounced autorun\n let isScheduled = false\n\n reaction = new Reaction(\n name,\n () => {\n if (!isScheduled) {\n isScheduled = true\n scheduler(() => {\n isScheduled = false\n if (!reaction.isDisposed) {\n reaction.track(reactionRunner)\n }\n })\n }\n },\n opts.onError,\n opts.requiresObservable\n )\n }\n\n function reactionRunner() {\n view(reaction)\n }\n\n if (!opts?.signal?.aborted) {\n reaction.schedule_()\n }\n return reaction.getDisposer_(opts?.signal)\n}\n\nexport type IReactionOptions = IAutorunOptions & {\n fireImmediately?: FireImmediately\n equals?: IEqualsComparer\n}\n\nconst run = (f: Lambda) => f()\n\nfunction createSchedulerFromOptions(opts: IAutorunOptions) {\n return opts.scheduler\n ? opts.scheduler\n : opts.delay\n ? (f: Lambda) => setTimeout(f, opts.delay!)\n : run\n}\n\nexport function reaction(\n expression: (r: IReactionPublic) => T,\n effect: (\n arg: T,\n prev: FireImmediately extends true ? T | undefined : T,\n r: IReactionPublic\n ) => void,\n opts: IReactionOptions = EMPTY_OBJECT\n): IReactionDisposer {\n if (__DEV__) {\n if (!isFunction(expression) || !isFunction(effect)) {\n die(\"First and second argument to reaction should be functions\")\n }\n if (!isPlainObject(opts)) {\n die(\"Third argument of reactions should be an object\")\n }\n }\n const name = opts.name ?? (__DEV__ ? \"Reaction@\" + getNextId() : \"Reaction\")\n const effectAction = action(\n name,\n opts.onError ? wrapErrorHandler(opts.onError, effect) : effect\n )\n const runSync = !opts.scheduler && !opts.delay\n const scheduler = createSchedulerFromOptions(opts)\n\n let firstTime = true\n let isScheduled = false\n let value: T\n\n const equals: IEqualsComparer = (opts as any).compareStructural\n ? comparer.structural\n : opts.equals || comparer.default\n\n const r = new Reaction(\n name,\n () => {\n if (firstTime || runSync) {\n reactionRunner()\n } else if (!isScheduled) {\n isScheduled = true\n scheduler!(reactionRunner)\n }\n },\n opts.onError,\n opts.requiresObservable\n )\n\n function reactionRunner() {\n isScheduled = false\n if (r.isDisposed) {\n return\n }\n let changed: boolean = false\n const oldValue = value\n r.track(() => {\n const nextValue = allowStateChanges(false, () => expression(r))\n changed = firstTime || !equals(value, nextValue)\n value = nextValue\n })\n\n // This casting is nesessary as TS cannot infer proper type in current function implementation\n type OldValue = FireImmediately extends true ? T | undefined : T\n if (firstTime && opts.fireImmediately!) {\n effectAction(value, oldValue as OldValue, r)\n } else if (!firstTime && changed) {\n effectAction(value, oldValue as OldValue, r)\n }\n firstTime = false\n }\n\n if (!opts?.signal?.aborted) {\n r.schedule_()\n }\n return r.getDisposer_(opts?.signal)\n}\n\nfunction wrapErrorHandler(errorHandler, baseFn) {\n return function () {\n try {\n return baseFn.apply(this, arguments)\n } catch (e) {\n errorHandler.call(this, e)\n }\n }\n}\n","import {\n IComputedValue,\n IObservable,\n IObservableArray,\n Lambda,\n ObservableMap,\n getAtom,\n ObservableSet,\n isFunction,\n IObservableValue\n} from \"../internal\"\n\nconst ON_BECOME_OBSERVED = \"onBO\"\nconst ON_BECOME_UNOBSERVED = \"onBUO\"\n\nexport function onBecomeObserved(\n value:\n | IObservable\n | IComputedValue\n | IObservableArray\n | ObservableMap\n | ObservableSet\n | IObservableValue,\n listener: Lambda\n): Lambda\nexport function onBecomeObserved(\n value: ObservableMap | Object,\n property: K,\n listener: Lambda\n): Lambda\nexport function onBecomeObserved(thing, arg2, arg3?): Lambda {\n return interceptHook(ON_BECOME_OBSERVED, thing, arg2, arg3)\n}\n\nexport function onBecomeUnobserved(\n value:\n | IObservable\n | IComputedValue\n | IObservableArray\n | ObservableMap\n | ObservableSet\n | IObservableValue,\n listener: Lambda\n): Lambda\nexport function onBecomeUnobserved(\n value: ObservableMap | Object,\n property: K,\n listener: Lambda\n): Lambda\nexport function onBecomeUnobserved(thing, arg2, arg3?): Lambda {\n return interceptHook(ON_BECOME_UNOBSERVED, thing, arg2, arg3)\n}\n\nfunction interceptHook(hook: \"onBO\" | \"onBUO\", thing, arg2, arg3) {\n const atom: IObservable =\n typeof arg3 === \"function\" ? getAtom(thing, arg2) : (getAtom(thing) as any)\n const cb = isFunction(arg3) ? arg3 : arg2\n const listenersKey = `${hook}L` as \"onBOL\" | \"onBUOL\"\n\n if (atom[listenersKey]) {\n atom[listenersKey]!.add(cb)\n } else {\n atom[listenersKey] = new Set([cb])\n }\n\n return function () {\n const hookListeners = atom[listenersKey]\n if (hookListeners) {\n hookListeners.delete(cb)\n if (hookListeners.size === 0) {\n delete atom[listenersKey]\n }\n }\n }\n}\n","import { globalState, isolateGlobalState, setReactionScheduler } from \"../internal\"\n\nconst NEVER = \"never\"\nconst ALWAYS = \"always\"\nconst OBSERVED = \"observed\"\n// const IF_AVAILABLE = \"ifavailable\"\n\nexport function configure(options: {\n enforceActions?: \"never\" | \"always\" | \"observed\"\n computedRequiresReaction?: boolean\n /**\n * Warn if you try to create to derivation / reactive context without accessing any observable.\n */\n reactionRequiresObservable?: boolean\n /**\n * Warn if observables are accessed outside a reactive context\n */\n observableRequiresReaction?: boolean\n isolateGlobalState?: boolean\n disableErrorBoundaries?: boolean\n safeDescriptors?: boolean\n reactionScheduler?: (f: () => void) => void\n useProxies?: \"always\" | \"never\" | \"ifavailable\"\n}): void {\n if (options.isolateGlobalState === true) {\n isolateGlobalState()\n }\n const { useProxies, enforceActions } = options\n if (useProxies !== undefined) {\n globalState.useProxies =\n useProxies === ALWAYS\n ? true\n : useProxies === NEVER\n ? false\n : typeof Proxy !== \"undefined\"\n }\n if (useProxies === \"ifavailable\") {\n globalState.verifyProxies = true\n }\n if (enforceActions !== undefined) {\n const ea = enforceActions === ALWAYS ? ALWAYS : enforceActions === OBSERVED\n globalState.enforceActions = ea\n globalState.allowStateChanges = ea === true || ea === ALWAYS ? false : true\n }\n ;[\n \"computedRequiresReaction\",\n \"reactionRequiresObservable\",\n \"observableRequiresReaction\",\n \"disableErrorBoundaries\",\n \"safeDescriptors\"\n ].forEach(key => {\n if (key in options) {\n globalState[key] = !!options[key]\n }\n })\n globalState.allowStateReads = !globalState.observableRequiresReaction\n if (__DEV__ && globalState.disableErrorBoundaries === true) {\n console.warn(\n \"WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled.\"\n )\n }\n if (options.reactionScheduler) {\n setReactionScheduler(options.reactionScheduler)\n }\n}\n","import {\n CreateObservableOptions,\n isObservableMap,\n AnnotationsMap,\n asObservableObject,\n isPlainObject,\n ObservableObjectAdministration,\n isObservable,\n die,\n getOwnPropertyDescriptors,\n $mobx,\n ownKeys,\n initObservable\n} from \"../internal\"\n\nexport function extendObservable(\n target: A,\n properties: B,\n annotations?: AnnotationsMap,\n options?: CreateObservableOptions\n): A & B {\n if (__DEV__) {\n if (arguments.length > 4) {\n die(\"'extendObservable' expected 2-4 arguments\")\n }\n if (typeof target !== \"object\") {\n die(\"'extendObservable' expects an object as first argument\")\n }\n if (isObservableMap(target)) {\n die(\"'extendObservable' should not be used on maps, use map.merge instead\")\n }\n if (!isPlainObject(properties)) {\n die(`'extendObservable' only accepts plain objects as second argument`)\n }\n if (isObservable(properties) || isObservable(annotations)) {\n die(`Extending an object with another observable (object) is not supported`)\n }\n }\n // Pull descriptors first, so we don't have to deal with props added by administration ($mobx)\n const descriptors = getOwnPropertyDescriptors(properties)\n\n initObservable(() => {\n const adm: ObservableObjectAdministration = asObservableObject(target, options)[$mobx]\n ownKeys(descriptors).forEach(key => {\n adm.extend_(\n key,\n descriptors[key as any],\n // must pass \"undefined\" for { key: undefined }\n !annotations ? true : key in annotations ? annotations[key] : true\n )\n })\n })\n\n return target as any\n}\n","import { IDepTreeNode, getAtom, getObservers, hasObservers } from \"../internal\"\n\nexport interface IDependencyTree {\n name: string\n dependencies?: IDependencyTree[]\n}\n\nexport interface IObserverTree {\n name: string\n observers?: IObserverTree[]\n}\n\nexport function getDependencyTree(thing: any, property?: string): IDependencyTree {\n return nodeToDependencyTree(getAtom(thing, property))\n}\n\nfunction nodeToDependencyTree(node: IDepTreeNode): IDependencyTree {\n const result: IDependencyTree = {\n name: node.name_\n }\n if (node.observing_ && node.observing_.length > 0) {\n result.dependencies = unique(node.observing_).map(nodeToDependencyTree)\n }\n return result\n}\n\nexport function getObserverTree(thing: any, property?: string): IObserverTree {\n return nodeToObserverTree(getAtom(thing, property))\n}\n\nfunction nodeToObserverTree(node: IDepTreeNode): IObserverTree {\n const result: IObserverTree = {\n name: node.name_\n }\n if (hasObservers(node as any)) {\n result.observers = Array.from(getObservers(node as any)).map(nodeToObserverTree)\n }\n return result\n}\n\nfunction unique(list: T[]): T[] {\n return Array.from(new Set(list))\n}\n","import {\n action,\n noop,\n die,\n isFunction,\n Annotation,\n isStringish,\n storeAnnotation,\n createFlowAnnotation,\n createDecoratorAnnotation,\n is20223Decorator\n} from \"../internal\"\n\nimport type { ClassMethodDecorator } from \"../types/decorator_fills\"\n\nexport const FLOW = \"flow\"\n\nlet generatorId = 0\n\nexport function FlowCancellationError() {\n this.message = \"FLOW_CANCELLED\"\n}\nFlowCancellationError.prototype = Object.create(Error.prototype)\n\nexport function isFlowCancellationError(error: Error) {\n return error instanceof FlowCancellationError\n}\n\nexport type CancellablePromise = Promise & { cancel(): void }\n\ninterface Flow extends Annotation, PropertyDecorator, ClassMethodDecorator {\n (\n generator: (...args: Args) => Generator | AsyncGenerator\n ): (...args: Args) => CancellablePromise\n bound: Annotation & PropertyDecorator & ClassMethodDecorator\n}\n\nconst flowAnnotation = createFlowAnnotation(\"flow\")\nconst flowBoundAnnotation = createFlowAnnotation(\"flow.bound\", { bound: true })\n\nexport const flow: Flow = Object.assign(\n function flow(arg1, arg2?) {\n // @flow (2022.3 Decorators)\n if (is20223Decorator(arg2)) {\n return flowAnnotation.decorate_20223_(arg1, arg2)\n }\n // @flow\n if (isStringish(arg2)) {\n return storeAnnotation(arg1, arg2, flowAnnotation)\n }\n // flow(fn)\n if (__DEV__ && arguments.length !== 1) {\n die(`Flow expects single argument with generator function`)\n }\n const generator = arg1\n const name = generator.name || \"\"\n\n // Implementation based on https://github.com/tj/co/blob/master/index.js\n const res = function () {\n const ctx = this\n const args = arguments\n const runId = ++generatorId\n const gen = action(`${name} - runid: ${runId} - init`, generator).apply(ctx, args)\n let rejector: (error: any) => void\n let pendingPromise: CancellablePromise | undefined = undefined\n\n const promise = new Promise(function (resolve, reject) {\n let stepId = 0\n rejector = reject\n\n function onFulfilled(res: any) {\n pendingPromise = undefined\n let ret\n try {\n ret = action(\n `${name} - runid: ${runId} - yield ${stepId++}`,\n gen.next\n ).call(gen, res)\n } catch (e) {\n return reject(e)\n }\n\n next(ret)\n }\n\n function onRejected(err: any) {\n pendingPromise = undefined\n let ret\n try {\n ret = action(\n `${name} - runid: ${runId} - yield ${stepId++}`,\n gen.throw!\n ).call(gen, err)\n } catch (e) {\n return reject(e)\n }\n next(ret)\n }\n\n function next(ret: any) {\n if (isFunction(ret?.then)) {\n // an async iterator\n ret.then(next, reject)\n return\n }\n if (ret.done) {\n return resolve(ret.value)\n }\n pendingPromise = Promise.resolve(ret.value) as any\n return pendingPromise!.then(onFulfilled, onRejected)\n }\n\n onFulfilled(undefined) // kick off the process\n }) as any\n\n promise.cancel = action(`${name} - runid: ${runId} - cancel`, function () {\n try {\n if (pendingPromise) {\n cancelPromise(pendingPromise)\n }\n // Finally block can return (or yield) stuff..\n const res = gen.return!(undefined as any)\n // eat anything that promise would do, it's cancelled!\n const yieldedPromise = Promise.resolve(res.value)\n yieldedPromise.then(noop, noop)\n cancelPromise(yieldedPromise) // maybe it can be cancelled :)\n // reject our original promise\n rejector(new FlowCancellationError())\n } catch (e) {\n rejector(e) // there could be a throwing finally block\n }\n })\n return promise\n }\n res.isMobXFlow = true\n return res\n } as any,\n flowAnnotation\n)\n\nflow.bound = createDecoratorAnnotation(flowBoundAnnotation)\n\nfunction cancelPromise(promise) {\n if (isFunction(promise.cancel)) {\n promise.cancel()\n }\n}\n\nexport function flowResult(\n result: T\n): T extends Generator\n ? CancellablePromise\n : T extends CancellablePromise\n ? T\n : never {\n return result as any // just tricking TypeScript :)\n}\n\nexport function isFlow(fn: any): boolean {\n return fn?.isMobXFlow === true\n}\n","import {\n IObservableArray,\n IObservableValue,\n Lambda,\n ObservableMap,\n getAdministration,\n isObservableArray,\n isObservableMap,\n isObservableObject,\n isObservableValue,\n ObservableSet,\n die,\n isStringish\n} from \"../internal\"\n\nexport type ReadInterceptor = (value: any) => T\n\n/** Experimental feature right now, tested indirectly via Mobx-State-Tree */\nexport function interceptReads(value: IObservableValue, handler: ReadInterceptor): Lambda\nexport function interceptReads(\n observableArray: IObservableArray,\n handler: ReadInterceptor\n): Lambda\nexport function interceptReads(\n observableMap: ObservableMap,\n handler: ReadInterceptor\n): Lambda\nexport function interceptReads(\n observableSet: ObservableSet,\n handler: ReadInterceptor\n): Lambda\nexport function interceptReads(\n object: Object,\n property: string,\n handler: ReadInterceptor\n): Lambda\nexport function interceptReads(thing, propOrHandler?, handler?): Lambda {\n let target\n if (isObservableMap(thing) || isObservableArray(thing) || isObservableValue(thing)) {\n target = getAdministration(thing)\n } else if (isObservableObject(thing)) {\n if (__DEV__ && !isStringish(propOrHandler)) {\n return die(\n `InterceptReads can only be used with a specific property, not with an object in general`\n )\n }\n target = getAdministration(thing, propOrHandler)\n } else if (__DEV__) {\n return die(`Expected observable map, object or array as first array`)\n }\n if (__DEV__ && target.dehancer !== undefined) {\n return die(`An intercept reader was already established`)\n }\n target.dehancer = typeof propOrHandler === \"function\" ? propOrHandler : handler\n return () => {\n target.dehancer = undefined\n }\n}\n","import {\n IArrayWillChange,\n IArrayWillSplice,\n IInterceptor,\n IMapWillChange,\n IObjectWillChange,\n IObservableArray,\n IObservableValue,\n IValueWillChange,\n Lambda,\n ObservableMap,\n getAdministration,\n ObservableSet,\n ISetWillChange,\n isFunction\n} from \"../internal\"\n\nexport function intercept(\n value: IObservableValue,\n handler: IInterceptor>\n): Lambda\nexport function intercept(\n observableArray: IObservableArray | Array,\n handler: IInterceptor | IArrayWillSplice>\n): Lambda\nexport function intercept(\n observableMap: ObservableMap | Map,\n handler: IInterceptor>\n): Lambda\nexport function intercept(\n observableSet: ObservableSet | Set,\n handler: IInterceptor>\n): Lambda\nexport function intercept(\n observableMap: ObservableMap | Map,\n property: K,\n handler: IInterceptor>\n): Lambda\nexport function intercept(object: object, handler: IInterceptor): Lambda\nexport function intercept(\n object: T,\n property: K,\n handler: IInterceptor>\n): Lambda\nexport function intercept(thing, propOrHandler?, handler?): Lambda {\n if (isFunction(handler)) {\n return interceptProperty(thing, propOrHandler, handler)\n } else {\n return interceptInterceptable(thing, propOrHandler)\n }\n}\n\nfunction interceptInterceptable(thing, handler) {\n return getAdministration(thing).intercept_(handler)\n}\n\nfunction interceptProperty(thing, property, handler) {\n return getAdministration(thing, property).intercept_(handler)\n}\n","import { $mobx, getAtom, isComputedValue, isObservableObject, die, isStringish } from \"../internal\"\n\nexport function _isComputed(value, property?: PropertyKey): boolean {\n if (property === undefined) {\n return isComputedValue(value)\n }\n if (isObservableObject(value) === false) {\n return false\n }\n if (!value[$mobx].values_.has(property)) {\n return false\n }\n const atom = getAtom(value, property)\n return isComputedValue(atom)\n}\n\nexport function isComputed(value: any): boolean {\n if (__DEV__ && arguments.length > 1) {\n return die(\n `isComputed expects only 1 argument. Use isComputedProp to inspect the observability of a property`\n )\n }\n return _isComputed(value)\n}\n\nexport function isComputedProp(value: any, propName: PropertyKey): boolean {\n if (__DEV__ && !isStringish(propName)) {\n return die(`isComputed expected a property name as second argument`)\n }\n return _isComputed(value, propName)\n}\n","import {\n $mobx,\n isAtom,\n isComputedValue,\n isObservableArray,\n isObservableMap,\n isObservableObject,\n isReaction,\n die,\n isStringish\n} from \"../internal\"\n\nfunction _isObservable(value, property?: PropertyKey): boolean {\n if (!value) {\n return false\n }\n if (property !== undefined) {\n if (__DEV__ && (isObservableMap(value) || isObservableArray(value))) {\n return die(\n \"isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.\"\n )\n }\n if (isObservableObject(value)) {\n return value[$mobx].values_.has(property)\n }\n return false\n }\n // For first check, see #701\n return (\n isObservableObject(value) ||\n !!value[$mobx] ||\n isAtom(value) ||\n isReaction(value) ||\n isComputedValue(value)\n )\n}\n\nexport function isObservable(value: any): boolean {\n if (__DEV__ && arguments.length !== 1) {\n die(\n `isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property`\n )\n }\n return _isObservable(value)\n}\n\nexport function isObservableProp(value: any, propName: PropertyKey): boolean {\n if (__DEV__ && !isStringish(propName)) {\n return die(`expected a property name as second argument`)\n }\n return _isObservable(value, propName)\n}\n","import {\n $mobx,\n IIsObservableObject,\n IObservableArray,\n ObservableMap,\n ObservableSet,\n ObservableObjectAdministration,\n endBatch,\n isObservableArray,\n isObservableMap,\n isObservableSet,\n isObservableObject,\n startBatch,\n die\n} from \"../internal\"\n\nexport function keys(map: ObservableMap): ReadonlyArray\nexport function keys(ar: IObservableArray): ReadonlyArray\nexport function keys(set: ObservableSet): ReadonlyArray\nexport function keys(obj: T): ReadonlyArray\nexport function keys(obj: any): any {\n if (isObservableObject(obj)) {\n return (\n (obj as any as IIsObservableObject)[$mobx] as ObservableObjectAdministration\n ).keys_()\n }\n if (isObservableMap(obj) || isObservableSet(obj)) {\n return Array.from(obj.keys())\n }\n if (isObservableArray(obj)) {\n return obj.map((_, index) => index)\n }\n die(5)\n}\n\nexport function values(map: ObservableMap): ReadonlyArray\nexport function values(set: ObservableSet): ReadonlyArray\nexport function values(ar: IObservableArray): ReadonlyArray\nexport function values(obj: T): ReadonlyArray\nexport function values(obj: any): string[] {\n if (isObservableObject(obj)) {\n return keys(obj).map(key => obj[key])\n }\n if (isObservableMap(obj)) {\n return keys(obj).map(key => obj.get(key))\n }\n if (isObservableSet(obj)) {\n return Array.from(obj.values())\n }\n if (isObservableArray(obj)) {\n return obj.slice()\n }\n die(6)\n}\n\nexport function entries(map: ObservableMap): ReadonlyArray<[K, T]>\nexport function entries(set: ObservableSet): ReadonlyArray<[T, T]>\nexport function entries(ar: IObservableArray): ReadonlyArray<[number, T]>\nexport function entries(\n obj: T\n): ReadonlyArray<[string, T extends object ? T[keyof T] : any]>\nexport function entries(obj: any): any {\n if (isObservableObject(obj)) {\n return keys(obj).map(key => [key, obj[key]])\n }\n if (isObservableMap(obj)) {\n return keys(obj).map(key => [key, obj.get(key)])\n }\n if (isObservableSet(obj)) {\n return Array.from(obj.entries())\n }\n if (isObservableArray(obj)) {\n return obj.map((key, index) => [index, key])\n }\n die(7)\n}\n\nexport function set(obj: ObservableMap, values: { [key: string]: V })\nexport function set(obj: ObservableMap, key: K, value: V)\nexport function set(obj: ObservableSet, value: T)\nexport function set(obj: IObservableArray, index: number, value: T)\nexport function set(obj: T, values: { [key: string]: any })\nexport function set(obj: T, key: PropertyKey, value: any)\nexport function set(obj: any, key: any, value?: any): void {\n if (arguments.length === 2 && !isObservableSet(obj)) {\n startBatch()\n const values = key\n try {\n for (let key in values) {\n set(obj, key, values[key])\n }\n } finally {\n endBatch()\n }\n return\n }\n if (isObservableObject(obj)) {\n ;(obj as any as IIsObservableObject)[$mobx].set_(key, value)\n } else if (isObservableMap(obj)) {\n obj.set(key, value)\n } else if (isObservableSet(obj)) {\n obj.add(key)\n } else if (isObservableArray(obj)) {\n if (typeof key !== \"number\") {\n key = parseInt(key, 10)\n }\n if (key < 0) {\n die(`Invalid index: '${key}'`)\n }\n startBatch()\n if (key >= obj.length) {\n obj.length = key + 1\n }\n obj[key] = value\n endBatch()\n } else {\n die(8)\n }\n}\n\nexport function remove(obj: ObservableMap, key: K)\nexport function remove(obj: ObservableSet, key: T)\nexport function remove(obj: IObservableArray, index: number)\nexport function remove(obj: T, key: string)\nexport function remove(obj: any, key: any): void {\n if (isObservableObject(obj)) {\n ;(obj as any as IIsObservableObject)[$mobx].delete_(key)\n } else if (isObservableMap(obj)) {\n obj.delete(key)\n } else if (isObservableSet(obj)) {\n obj.delete(key)\n } else if (isObservableArray(obj)) {\n if (typeof key !== \"number\") {\n key = parseInt(key, 10)\n }\n obj.splice(key, 1)\n } else {\n die(9)\n }\n}\n\nexport function has(obj: ObservableMap, key: K): boolean\nexport function has(obj: ObservableSet, key: T): boolean\nexport function has(obj: IObservableArray, index: number): boolean\nexport function has(obj: T, key: string): boolean\nexport function has(obj: any, key: any): boolean {\n if (isObservableObject(obj)) {\n return (obj as any as IIsObservableObject)[$mobx].has_(key)\n } else if (isObservableMap(obj)) {\n return obj.has(key)\n } else if (isObservableSet(obj)) {\n return obj.has(key)\n } else if (isObservableArray(obj)) {\n return key >= 0 && key < obj.length\n }\n die(10)\n}\n\nexport function get(obj: ObservableMap, key: K): V | undefined\nexport function get(obj: IObservableArray, index: number): T | undefined\nexport function get(obj: T, key: string): any\nexport function get(obj: any, key: any): any {\n if (!has(obj, key)) {\n return undefined\n }\n if (isObservableObject(obj)) {\n return (obj as any as IIsObservableObject)[$mobx].get_(key)\n } else if (isObservableMap(obj)) {\n return obj.get(key)\n } else if (isObservableArray(obj)) {\n return obj[key]\n }\n die(11)\n}\n\nexport function apiDefineProperty(obj: Object, key: PropertyKey, descriptor: PropertyDescriptor) {\n if (isObservableObject(obj)) {\n return (obj as any as IIsObservableObject)[$mobx].defineProperty_(key, descriptor)\n }\n die(39)\n}\n\nexport function apiOwnKeys(obj: Object) {\n if (isObservableObject(obj)) {\n return (obj as any as IIsObservableObject)[$mobx].ownKeys_()\n }\n die(38)\n}\n","import {\n IArrayDidChange,\n IComputedValue,\n IMapDidChange,\n IObjectDidChange,\n IObservableArray,\n IObservableValue,\n IValueDidChange,\n Lambda,\n ObservableMap,\n getAdministration,\n ObservableSet,\n ISetDidChange,\n isFunction\n} from \"../internal\"\n\nexport function observe(\n value: IObservableValue | IComputedValue,\n listener: (change: IValueDidChange) => void,\n fireImmediately?: boolean\n): Lambda\nexport function observe(\n observableArray: IObservableArray | Array,\n listener: (change: IArrayDidChange) => void,\n fireImmediately?: boolean\n): Lambda\nexport function observe(\n // ObservableSet/ObservableMap are required despite they implement Set/Map: https://github.com/mobxjs/mobx/pull/3180#discussion_r746542929\n observableSet: ObservableSet | Set,\n listener: (change: ISetDidChange) => void,\n fireImmediately?: boolean\n): Lambda\nexport function observe(\n observableMap: ObservableMap | Map,\n listener: (change: IMapDidChange) => void,\n fireImmediately?: boolean\n): Lambda\nexport function observe(\n observableMap: ObservableMap | Map,\n property: K,\n listener: (change: IValueDidChange) => void,\n fireImmediately?: boolean\n): Lambda\nexport function observe(\n object: Object,\n listener: (change: IObjectDidChange) => void,\n fireImmediately?: boolean\n): Lambda\nexport function observe(\n object: T,\n property: K,\n listener: (change: IValueDidChange) => void,\n fireImmediately?: boolean\n): Lambda\nexport function observe(thing, propOrCb?, cbOrFire?, fireImmediately?): Lambda {\n if (isFunction(cbOrFire)) {\n return observeObservableProperty(thing, propOrCb, cbOrFire, fireImmediately)\n } else {\n return observeObservable(thing, propOrCb, cbOrFire)\n }\n}\n\nfunction observeObservable(thing, listener, fireImmediately: boolean) {\n return getAdministration(thing).observe_(listener, fireImmediately)\n}\n\nfunction observeObservableProperty(thing, property, listener, fireImmediately: boolean) {\n return getAdministration(thing, property).observe_(listener, fireImmediately)\n}\n","import {\n isObservable,\n isObservableArray,\n isObservableValue,\n isObservableMap,\n isObservableSet,\n isComputedValue,\n die,\n apiOwnKeys,\n objectPrototype\n} from \"../internal\"\n\nfunction cache(map: Map, key: K, value: V): V {\n map.set(key, value)\n return value\n}\n\nfunction toJSHelper(source, __alreadySeen: Map) {\n if (\n source == null ||\n typeof source !== \"object\" ||\n source instanceof Date ||\n !isObservable(source)\n ) {\n return source\n }\n\n if (isObservableValue(source) || isComputedValue(source)) {\n return toJSHelper(source.get(), __alreadySeen)\n }\n if (__alreadySeen.has(source)) {\n return __alreadySeen.get(source)\n }\n if (isObservableArray(source)) {\n const res = cache(__alreadySeen, source, new Array(source.length))\n source.forEach((value, idx) => {\n res[idx] = toJSHelper(value, __alreadySeen)\n })\n return res\n }\n if (isObservableSet(source)) {\n const res = cache(__alreadySeen, source, new Set())\n source.forEach(value => {\n res.add(toJSHelper(value, __alreadySeen))\n })\n return res\n }\n if (isObservableMap(source)) {\n const res = cache(__alreadySeen, source, new Map())\n source.forEach((value, key) => {\n res.set(key, toJSHelper(value, __alreadySeen))\n })\n return res\n } else {\n // must be observable object\n const res = cache(__alreadySeen, source, {})\n apiOwnKeys(source).forEach((key: any) => {\n if (objectPrototype.propertyIsEnumerable.call(source, key)) {\n res[key] = toJSHelper(source[key], __alreadySeen)\n }\n })\n return res\n }\n}\n\n/**\n * Recursively converts an observable to it's non-observable native counterpart.\n * It does NOT recurse into non-observables, these are left as they are, even if they contain observables.\n * Computed and other non-enumerable properties are completely ignored.\n * Complex scenarios require custom solution, eg implementing `toJSON` or using `serializr` lib.\n */\nexport function toJS(source: T, options?: any): T {\n if (__DEV__ && options) {\n die(\"toJS no longer supports options\")\n }\n return toJSHelper(source, new Map())\n}\n","import { TraceMode, die, getAtom, globalState } from \"../internal\"\n\nexport function trace(thing?: any, prop?: string, enterBreakPoint?: boolean): void\nexport function trace(thing?: any, enterBreakPoint?: boolean): void\nexport function trace(enterBreakPoint?: boolean): void\nexport function trace(...args: any[]): void {\n if (!__DEV__) {\n return\n }\n let enterBreakPoint = false\n if (typeof args[args.length - 1] === \"boolean\") {\n enterBreakPoint = args.pop()\n }\n const derivation = getAtomFromArgs(args)\n if (!derivation) {\n return die(\n `'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly`\n )\n }\n if (derivation.isTracing_ === TraceMode.NONE) {\n console.log(`[mobx.trace] '${derivation.name_}' tracing enabled`)\n }\n derivation.isTracing_ = enterBreakPoint ? TraceMode.BREAK : TraceMode.LOG\n}\n\nfunction getAtomFromArgs(args): any {\n switch (args.length) {\n case 0:\n return globalState.trackingDerivation\n case 1:\n return getAtom(args[0])\n case 2:\n return getAtom(args[0], args[1])\n }\n}\n","import { endBatch, startBatch } from \"../internal\"\n\n/**\n * During a transaction no views are updated until the end of the transaction.\n * The transaction will be run synchronously nonetheless.\n *\n * @param action a function that updates some reactive state\n * @returns any value that was returned by the 'action' parameter.\n */\nexport function transaction(action: () => T, thisArg = undefined): T {\n startBatch()\n try {\n return action.apply(thisArg)\n } finally {\n endBatch()\n }\n}\n","import {\n $mobx,\n IReactionDisposer,\n Lambda,\n autorun,\n createAction,\n getNextId,\n die,\n allowStateChanges,\n GenericAbortSignal\n} from \"../internal\"\n\nexport interface IWhenOptions {\n name?: string\n timeout?: number\n onError?: (error: any) => void\n signal?: GenericAbortSignal\n}\n\nexport function when(\n predicate: () => boolean,\n opts?: IWhenOptions\n): Promise & { cancel(): void }\nexport function when(\n predicate: () => boolean,\n effect: Lambda,\n opts?: IWhenOptions\n): IReactionDisposer\nexport function when(predicate: any, arg1?: any, arg2?: any): any {\n if (arguments.length === 1 || (arg1 && typeof arg1 === \"object\")) {\n return whenPromise(predicate, arg1)\n }\n return _when(predicate, arg1, arg2 || {})\n}\n\nfunction _when(predicate: () => boolean, effect: Lambda, opts: IWhenOptions): IReactionDisposer {\n let timeoutHandle: any\n if (typeof opts.timeout === \"number\") {\n const error = new Error(\"WHEN_TIMEOUT\")\n timeoutHandle = setTimeout(() => {\n if (!disposer[$mobx].isDisposed) {\n disposer()\n if (opts.onError) {\n opts.onError(error)\n } else {\n throw error\n }\n }\n }, opts.timeout)\n }\n\n opts.name = __DEV__ ? opts.name || \"When@\" + getNextId() : \"When\"\n const effectAction = createAction(\n __DEV__ ? opts.name + \"-effect\" : \"When-effect\",\n effect as Function\n )\n // eslint-disable-next-line\n var disposer = autorun(r => {\n // predicate should not change state\n let cond = allowStateChanges(false, predicate)\n if (cond) {\n r.dispose()\n if (timeoutHandle) {\n clearTimeout(timeoutHandle)\n }\n effectAction()\n }\n }, opts)\n return disposer\n}\n\nfunction whenPromise(\n predicate: () => boolean,\n opts?: IWhenOptions\n): Promise & { cancel(): void } {\n if (__DEV__ && opts && opts.onError) {\n return die(`the options 'onError' and 'promise' cannot be combined`)\n }\n if (opts?.signal?.aborted) {\n return Object.assign(Promise.reject(new Error(\"WHEN_ABORTED\")), { cancel: () => null })\n }\n let cancel\n let abort\n const res = new Promise((resolve, reject) => {\n let disposer = _when(predicate, resolve as Lambda, { ...opts, onError: reject })\n cancel = () => {\n disposer()\n reject(new Error(\"WHEN_CANCELLED\"))\n }\n abort = () => {\n disposer()\n reject(new Error(\"WHEN_ABORTED\"))\n }\n opts?.signal?.addEventListener?.(\"abort\", abort)\n }).finally(() => opts?.signal?.removeEventListener?.(\"abort\", abort))\n ;(res as any).cancel = cancel\n return res as any\n}\n","import {\n $mobx,\n IIsObservableObject,\n ObservableObjectAdministration,\n warnAboutProxyRequirement,\n assertProxies,\n die,\n isStringish,\n globalState,\n CreateObservableOptions,\n asObservableObject\n} from \"../internal\"\n\nfunction getAdm(target): ObservableObjectAdministration {\n return target[$mobx]\n}\n\n// Optimization: we don't need the intermediate objects and could have a completely custom administration for DynamicObjects,\n// and skip either the internal values map, or the base object with its property descriptors!\nconst objectProxyTraps: ProxyHandler = {\n has(target: IIsObservableObject, name: PropertyKey): boolean {\n if (__DEV__ && globalState.trackingDerivation) {\n warnAboutProxyRequirement(\n \"detect new properties using the 'in' operator. Use 'has' from 'mobx' instead.\"\n )\n }\n return getAdm(target).has_(name)\n },\n get(target: IIsObservableObject, name: PropertyKey): any {\n return getAdm(target).get_(name)\n },\n set(target: IIsObservableObject, name: PropertyKey, value: any): boolean {\n if (!isStringish(name)) {\n return false\n }\n if (__DEV__ && !getAdm(target).values_.has(name)) {\n warnAboutProxyRequirement(\n \"add a new observable property through direct assignment. Use 'set' from 'mobx' instead.\"\n )\n }\n // null (intercepted) -> true (success)\n return getAdm(target).set_(name, value, true) ?? true\n },\n deleteProperty(target: IIsObservableObject, name: PropertyKey): boolean {\n if (__DEV__) {\n warnAboutProxyRequirement(\n \"delete properties from an observable object. Use 'remove' from 'mobx' instead.\"\n )\n }\n if (!isStringish(name)) {\n return false\n }\n // null (intercepted) -> true (success)\n return getAdm(target).delete_(name, true) ?? true\n },\n defineProperty(\n target: IIsObservableObject,\n name: PropertyKey,\n descriptor: PropertyDescriptor\n ): boolean {\n if (__DEV__) {\n warnAboutProxyRequirement(\n \"define property on an observable object. Use 'defineProperty' from 'mobx' instead.\"\n )\n }\n // null (intercepted) -> true (success)\n return getAdm(target).defineProperty_(name, descriptor) ?? true\n },\n ownKeys(target: IIsObservableObject): ArrayLike {\n if (__DEV__ && globalState.trackingDerivation) {\n warnAboutProxyRequirement(\n \"iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead.\"\n )\n }\n return getAdm(target).ownKeys_()\n },\n preventExtensions(target) {\n die(13)\n }\n}\n\nexport function asDynamicObservableObject(\n target: any,\n options?: CreateObservableOptions\n): IIsObservableObject {\n assertProxies()\n target = asObservableObject(target, options)\n return (target[$mobx].proxy_ ??= new Proxy(target, objectProxyTraps))\n}\n","import { Lambda, once, untrackedEnd, untrackedStart, die } from \"../internal\"\n\nexport type IInterceptor = (change: T) => T | null\n\nexport interface IInterceptable {\n interceptors_: IInterceptor[] | undefined\n}\n\nexport function hasInterceptors(interceptable: IInterceptable) {\n return interceptable.interceptors_ !== undefined && interceptable.interceptors_.length > 0\n}\n\nexport function registerInterceptor(\n interceptable: IInterceptable,\n handler: IInterceptor\n): Lambda {\n const interceptors = interceptable.interceptors_ || (interceptable.interceptors_ = [])\n interceptors.push(handler)\n return once(() => {\n const idx = interceptors.indexOf(handler)\n if (idx !== -1) {\n interceptors.splice(idx, 1)\n }\n })\n}\n\nexport function interceptChange(\n interceptable: IInterceptable,\n change: T | null\n): T | null {\n const prevU = untrackedStart()\n try {\n // Interceptor can modify the array, copy it to avoid concurrent modification, see #1950\n const interceptors = [...(interceptable.interceptors_ || [])]\n for (let i = 0, l = interceptors.length; i < l; i++) {\n change = interceptors[i](change)\n if (change && !(change as any).type) {\n die(14)\n }\n if (!change) {\n break\n }\n }\n return change\n } finally {\n untrackedEnd(prevU)\n }\n}\n","import { Lambda, once, untrackedEnd, untrackedStart } from \"../internal\"\n\nexport interface IListenable {\n changeListeners_: Function[] | undefined\n}\n\nexport function hasListeners(listenable: IListenable) {\n return listenable.changeListeners_ !== undefined && listenable.changeListeners_.length > 0\n}\n\nexport function registerListener(listenable: IListenable, handler: Function): Lambda {\n const listeners = listenable.changeListeners_ || (listenable.changeListeners_ = [])\n listeners.push(handler)\n return once(() => {\n const idx = listeners.indexOf(handler)\n if (idx !== -1) {\n listeners.splice(idx, 1)\n }\n })\n}\n\nexport function notifyListeners(listenable: IListenable, change: T) {\n const prevU = untrackedStart()\n let listeners = listenable.changeListeners_\n if (!listeners) {\n return\n }\n listeners = listeners.slice()\n for (let i = 0, l = listeners.length; i < l; i++) {\n listeners[i](change)\n }\n untrackedEnd(prevU)\n}\n","import {\n $mobx,\n asObservableObject,\n AnnotationsMap,\n CreateObservableOptions,\n ObservableObjectAdministration,\n collectStoredAnnotations,\n isPlainObject,\n isObservableObject,\n die,\n ownKeys,\n extendObservable,\n addHiddenProp,\n storedAnnotationsSymbol,\n initObservable\n} from \"../internal\"\n\n// Hack based on https://github.com/Microsoft/TypeScript/issues/14829#issuecomment-322267089\n// We need this, because otherwise, AdditionalKeys is going to be inferred to be any\n// set of superfluous keys. But, we rather want to get a compile error unless AdditionalKeys is\n// _explicity_ passed as generic argument\n// Fixes: https://github.com/mobxjs/mobx/issues/2325#issuecomment-691070022\ntype NoInfer = [T][T extends any ? 0 : never]\n\ntype MakeObservableOptions = Omit\n\nexport function makeObservable(\n target: T,\n annotations?: AnnotationsMap>,\n options?: MakeObservableOptions\n): T {\n initObservable(() => {\n const adm: ObservableObjectAdministration = asObservableObject(target, options)[$mobx]\n if (__DEV__ && annotations && target[storedAnnotationsSymbol]) {\n die(\n `makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.`\n )\n }\n // Default to decorators\n annotations ??= collectStoredAnnotations(target)\n\n // Annotate\n ownKeys(annotations).forEach(key => adm.make_(key, annotations![key]))\n })\n return target\n}\n\n// proto[keysSymbol] = new Set()\nconst keysSymbol = Symbol(\"mobx-keys\")\n\nexport function makeAutoObservable(\n target: T,\n overrides?: AnnotationsMap>,\n options?: MakeObservableOptions\n): T {\n if (__DEV__) {\n if (!isPlainObject(target) && !isPlainObject(Object.getPrototypeOf(target))) {\n die(`'makeAutoObservable' can only be used for classes that don't have a superclass`)\n }\n if (isObservableObject(target)) {\n die(`makeAutoObservable can only be used on objects not already made observable`)\n }\n }\n\n // Optimization: avoid visiting protos\n // Assumes that annotation.make_/.extend_ works the same for plain objects\n if (isPlainObject(target)) {\n return extendObservable(target, target, overrides, options)\n }\n\n initObservable(() => {\n const adm: ObservableObjectAdministration = asObservableObject(target, options)[$mobx]\n\n // Optimization: cache keys on proto\n // Assumes makeAutoObservable can be called only once per object and can't be used in subclass\n if (!target[keysSymbol]) {\n const proto = Object.getPrototypeOf(target)\n const keys = new Set([...ownKeys(target), ...ownKeys(proto)])\n keys.delete(\"constructor\")\n keys.delete($mobx)\n addHiddenProp(proto, keysSymbol, keys)\n }\n\n target[keysSymbol].forEach(key =>\n adm.make_(\n key,\n // must pass \"undefined\" for { key: undefined }\n !overrides ? true : key in overrides ? overrides[key] : true\n )\n )\n })\n\n return target\n}\n","import {\n $mobx,\n Atom,\n EMPTY_ARRAY,\n IAtom,\n IEnhancer,\n IInterceptable,\n IInterceptor,\n IListenable,\n Lambda,\n addHiddenFinalProp,\n checkIfStateModificationsAreAllowed,\n createInstanceofPredicate,\n getNextId,\n hasInterceptors,\n hasListeners,\n interceptChange,\n isObject,\n isSpyEnabled,\n notifyListeners,\n registerInterceptor,\n registerListener,\n spyReportEnd,\n spyReportStart,\n assertProxies,\n reserveArrayBuffer,\n hasProp,\n die,\n globalState,\n initObservable\n} from \"../internal\"\n\nconst SPLICE = \"splice\"\nexport const UPDATE = \"update\"\nexport const MAX_SPLICE_SIZE = 10000 // See e.g. https://github.com/mobxjs/mobx/issues/859\n\nexport interface IObservableArray extends Array {\n spliceWithArray(index: number, deleteCount?: number, newItems?: T[]): T[]\n clear(): T[]\n replace(newItems: T[]): T[]\n remove(value: T): boolean\n toJSON(): T[]\n}\n\ninterface IArrayBaseChange {\n object: IObservableArray\n observableKind: \"array\"\n debugObjectName: string\n index: number\n}\n\nexport type IArrayDidChange = IArrayUpdate | IArraySplice\n\nexport interface IArrayUpdate extends IArrayBaseChange {\n type: \"update\"\n newValue: T\n oldValue: T\n}\n\nexport interface IArraySplice extends IArrayBaseChange {\n type: \"splice\"\n added: T[]\n addedCount: number\n removed: T[]\n removedCount: number\n}\n\nexport interface IArrayWillChange {\n object: IObservableArray\n index: number\n type: \"update\"\n newValue: T\n}\n\nexport interface IArrayWillSplice {\n object: IObservableArray\n index: number\n type: \"splice\"\n added: T[]\n removedCount: number\n}\n\nconst arrayTraps = {\n get(target, name) {\n const adm: ObservableArrayAdministration = target[$mobx]\n if (name === $mobx) {\n return adm\n }\n if (name === \"length\") {\n return adm.getArrayLength_()\n }\n if (typeof name === \"string\" && !isNaN(name as any)) {\n return adm.get_(parseInt(name))\n }\n if (hasProp(arrayExtensions, name)) {\n return arrayExtensions[name]\n }\n return target[name]\n },\n set(target, name, value): boolean {\n const adm: ObservableArrayAdministration = target[$mobx]\n if (name === \"length\") {\n adm.setArrayLength_(value)\n }\n if (typeof name === \"symbol\" || isNaN(name)) {\n target[name] = value\n } else {\n // numeric string\n adm.set_(parseInt(name), value)\n }\n return true\n },\n preventExtensions() {\n die(15)\n }\n}\n\nexport class ObservableArrayAdministration\n implements IInterceptable | IArrayWillSplice>, IListenable\n{\n atom_: IAtom\n readonly values_: any[] = [] // this is the prop that gets proxied, so can't replace it!\n interceptors_\n changeListeners_\n enhancer_: (newV: any, oldV: any | undefined) => any\n dehancer: any\n proxy_!: IObservableArray\n lastKnownLength_ = 0\n\n constructor(\n name = __DEV__ ? \"ObservableArray@\" + getNextId() : \"ObservableArray\",\n enhancer: IEnhancer,\n public owned_: boolean,\n public legacyMode_: boolean\n ) {\n this.atom_ = new Atom(name)\n this.enhancer_ = (newV, oldV) =>\n enhancer(newV, oldV, __DEV__ ? name + \"[..]\" : \"ObservableArray[..]\")\n }\n\n dehanceValue_(value: any): any {\n if (this.dehancer !== undefined) {\n return this.dehancer(value)\n }\n return value\n }\n\n dehanceValues_(values: any[]): any[] {\n if (this.dehancer !== undefined && values.length > 0) {\n return values.map(this.dehancer) as any\n }\n return values\n }\n\n intercept_(handler: IInterceptor | IArrayWillSplice>): Lambda {\n return registerInterceptor | IArrayWillSplice>(this, handler)\n }\n\n observe_(\n listener: (changeData: IArrayDidChange) => void,\n fireImmediately = false\n ): Lambda {\n if (fireImmediately) {\n listener(>{\n observableKind: \"array\",\n object: this.proxy_ as any,\n debugObjectName: this.atom_.name_,\n type: \"splice\",\n index: 0,\n added: this.values_.slice(),\n addedCount: this.values_.length,\n removed: [],\n removedCount: 0\n })\n }\n return registerListener(this, listener)\n }\n\n getArrayLength_(): number {\n this.atom_.reportObserved()\n return this.values_.length\n }\n\n setArrayLength_(newLength: number) {\n if (typeof newLength !== \"number\" || isNaN(newLength) || newLength < 0) {\n die(\"Out of range: \" + newLength)\n }\n let currentLength = this.values_.length\n if (newLength === currentLength) {\n return\n } else if (newLength > currentLength) {\n const newItems = new Array(newLength - currentLength)\n for (let i = 0; i < newLength - currentLength; i++) {\n newItems[i] = undefined\n } // No Array.fill everywhere...\n this.spliceWithArray_(currentLength, 0, newItems)\n } else {\n this.spliceWithArray_(newLength, currentLength - newLength)\n }\n }\n\n updateArrayLength_(oldLength: number, delta: number) {\n if (oldLength !== this.lastKnownLength_) {\n die(16)\n }\n this.lastKnownLength_ += delta\n if (this.legacyMode_ && delta > 0) {\n reserveArrayBuffer(oldLength + delta + 1)\n }\n }\n\n spliceWithArray_(index: number, deleteCount?: number, newItems?: any[]): any[] {\n checkIfStateModificationsAreAllowed(this.atom_)\n const length = this.values_.length\n\n if (index === undefined) {\n index = 0\n } else if (index > length) {\n index = length\n } else if (index < 0) {\n index = Math.max(0, length + index)\n }\n\n if (arguments.length === 1) {\n deleteCount = length - index\n } else if (deleteCount === undefined || deleteCount === null) {\n deleteCount = 0\n } else {\n deleteCount = Math.max(0, Math.min(deleteCount, length - index))\n }\n\n if (newItems === undefined) {\n newItems = EMPTY_ARRAY\n }\n\n if (hasInterceptors(this)) {\n const change = interceptChange>(this as any, {\n object: this.proxy_ as any,\n type: SPLICE,\n index,\n removedCount: deleteCount,\n added: newItems\n })\n if (!change) {\n return EMPTY_ARRAY\n }\n deleteCount = change.removedCount\n newItems = change.added\n }\n\n newItems =\n newItems.length === 0 ? newItems : newItems.map(v => this.enhancer_(v, undefined))\n if (this.legacyMode_ || __DEV__) {\n const lengthDelta = newItems.length - deleteCount\n this.updateArrayLength_(length, lengthDelta) // checks if internal array wasn't modified\n }\n const res = this.spliceItemsIntoValues_(index, deleteCount, newItems)\n\n if (deleteCount !== 0 || newItems.length !== 0) {\n this.notifyArraySplice_(index, newItems, res)\n }\n return this.dehanceValues_(res)\n }\n\n spliceItemsIntoValues_(index: number, deleteCount: number, newItems: any[]): any[] {\n if (newItems.length < MAX_SPLICE_SIZE) {\n return this.values_.splice(index, deleteCount, ...newItems)\n } else {\n // The items removed by the splice\n const res = this.values_.slice(index, index + deleteCount)\n // The items that that should remain at the end of the array\n let oldItems = this.values_.slice(index + deleteCount)\n // New length is the previous length + addition count - deletion count\n this.values_.length += newItems.length - deleteCount\n for (let i = 0; i < newItems.length; i++) {\n this.values_[index + i] = newItems[i]\n }\n for (let i = 0; i < oldItems.length; i++) {\n this.values_[index + newItems.length + i] = oldItems[i]\n }\n return res\n }\n }\n\n notifyArrayChildUpdate_(index: number, newValue: any, oldValue: any) {\n const notifySpy = !this.owned_ && isSpyEnabled()\n const notify = hasListeners(this)\n const change: IArrayDidChange | null =\n notify || notifySpy\n ? ({\n observableKind: \"array\",\n object: this.proxy_,\n type: UPDATE,\n debugObjectName: this.atom_.name_,\n index,\n newValue,\n oldValue\n } as const)\n : null\n\n // The reason why this is on right hand side here (and not above), is this way the uglifier will drop it, but it won't\n // cause any runtime overhead in development mode without NODE_ENV set, unless spying is enabled\n if (__DEV__ && notifySpy) {\n spyReportStart(change!)\n }\n this.atom_.reportChanged()\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n\n notifyArraySplice_(index: number, added: any[], removed: any[]) {\n const notifySpy = !this.owned_ && isSpyEnabled()\n const notify = hasListeners(this)\n const change: IArraySplice | null =\n notify || notifySpy\n ? ({\n observableKind: \"array\",\n object: this.proxy_,\n debugObjectName: this.atom_.name_,\n type: SPLICE,\n index,\n removed,\n added,\n removedCount: removed.length,\n addedCount: added.length\n } as const)\n : null\n\n if (__DEV__ && notifySpy) {\n spyReportStart(change!)\n }\n this.atom_.reportChanged()\n // conform: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/observe\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n\n get_(index: number): any | undefined {\n if (this.legacyMode_ && index >= this.values_.length) {\n console.warn(\n __DEV__\n ? `[mobx.array] Attempt to read an array index (${index}) that is out of bounds (${this.values_.length}). Please check length first. Out of bound indices will not be tracked by MobX`\n : `[mobx] Out of bounds read: ${index}`\n )\n return undefined\n }\n this.atom_.reportObserved()\n return this.dehanceValue_(this.values_[index])\n }\n\n set_(index: number, newValue: any) {\n const values = this.values_\n if (this.legacyMode_ && index > values.length) {\n // out of bounds\n die(17, index, values.length)\n }\n if (index < values.length) {\n // update at index in range\n checkIfStateModificationsAreAllowed(this.atom_)\n const oldValue = values[index]\n if (hasInterceptors(this)) {\n const change = interceptChange>(this as any, {\n type: UPDATE,\n object: this.proxy_ as any, // since \"this\" is the real array we need to pass its proxy\n index,\n newValue\n })\n if (!change) {\n return\n }\n newValue = change.newValue\n }\n newValue = this.enhancer_(newValue, oldValue)\n const changed = newValue !== oldValue\n if (changed) {\n values[index] = newValue\n this.notifyArrayChildUpdate_(index, newValue, oldValue)\n }\n } else {\n // For out of bound index, we don't create an actual sparse array,\n // but rather fill the holes with undefined (same as setArrayLength_).\n // This could be considered a bug.\n const newItems = new Array(index + 1 - values.length)\n for (let i = 0; i < newItems.length - 1; i++) {\n newItems[i] = undefined\n } // No Array.fill everywhere...\n newItems[newItems.length - 1] = newValue\n this.spliceWithArray_(values.length, 0, newItems)\n }\n }\n}\n\nexport function createObservableArray(\n initialValues: T[] | undefined,\n enhancer: IEnhancer,\n name = __DEV__ ? \"ObservableArray@\" + getNextId() : \"ObservableArray\",\n owned = false\n): IObservableArray {\n assertProxies()\n return initObservable(() => {\n const adm = new ObservableArrayAdministration(name, enhancer, owned, false)\n addHiddenFinalProp(adm.values_, $mobx, adm)\n const proxy = new Proxy(adm.values_, arrayTraps) as any\n adm.proxy_ = proxy\n if (initialValues && initialValues.length) {\n adm.spliceWithArray_(0, 0, initialValues)\n }\n return proxy\n })\n}\n\n// eslint-disable-next-line\nexport var arrayExtensions = {\n clear(): any[] {\n return this.splice(0)\n },\n\n replace(newItems: any[]) {\n const adm: ObservableArrayAdministration = this[$mobx]\n return adm.spliceWithArray_(0, adm.values_.length, newItems)\n },\n\n // Used by JSON.stringify\n toJSON(): any[] {\n return this.slice()\n },\n\n /*\n * functions that do alter the internal structure of the array, (based on lib.es6.d.ts)\n * since these functions alter the inner structure of the array, the have side effects.\n * Because the have side effects, they should not be used in computed function,\n * and for that reason the do not call dependencyState.notifyObserved\n */\n splice(index: number, deleteCount?: number, ...newItems: any[]): any[] {\n const adm: ObservableArrayAdministration = this[$mobx]\n switch (arguments.length) {\n case 0:\n return []\n case 1:\n return adm.spliceWithArray_(index)\n case 2:\n return adm.spliceWithArray_(index, deleteCount)\n }\n return adm.spliceWithArray_(index, deleteCount, newItems)\n },\n\n spliceWithArray(index: number, deleteCount?: number, newItems?: any[]): any[] {\n return (this[$mobx] as ObservableArrayAdministration).spliceWithArray_(\n index,\n deleteCount,\n newItems\n )\n },\n\n push(...items: any[]): number {\n const adm: ObservableArrayAdministration = this[$mobx]\n adm.spliceWithArray_(adm.values_.length, 0, items)\n return adm.values_.length\n },\n\n pop() {\n return this.splice(Math.max(this[$mobx].values_.length - 1, 0), 1)[0]\n },\n\n shift() {\n return this.splice(0, 1)[0]\n },\n\n unshift(...items: any[]): number {\n const adm: ObservableArrayAdministration = this[$mobx]\n adm.spliceWithArray_(0, 0, items)\n return adm.values_.length\n },\n\n reverse(): any[] {\n // reverse by default mutates in place before returning the result\n // which makes it both a 'derivation' and a 'mutation'.\n if (globalState.trackingDerivation) {\n die(37, \"reverse\")\n }\n this.replace(this.slice().reverse())\n return this\n },\n\n sort(): any[] {\n // sort by default mutates in place before returning the result\n // which goes against all good practices. Let's not change the array in place!\n if (globalState.trackingDerivation) {\n die(37, \"sort\")\n }\n const copy = this.slice()\n copy.sort.apply(copy, arguments)\n this.replace(copy)\n return this\n },\n\n remove(value: any): boolean {\n const adm: ObservableArrayAdministration = this[$mobx]\n const idx = adm.dehanceValues_(adm.values_).indexOf(value)\n if (idx > -1) {\n this.splice(idx, 1)\n return true\n }\n return false\n }\n}\n\n/**\n * Wrap function from prototype\n * Without this, everything works as well, but this works\n * faster as everything works on unproxied values\n */\naddArrayExtension(\"at\", simpleFunc)\naddArrayExtension(\"concat\", simpleFunc)\naddArrayExtension(\"flat\", simpleFunc)\naddArrayExtension(\"includes\", simpleFunc)\naddArrayExtension(\"indexOf\", simpleFunc)\naddArrayExtension(\"join\", simpleFunc)\naddArrayExtension(\"lastIndexOf\", simpleFunc)\naddArrayExtension(\"slice\", simpleFunc)\naddArrayExtension(\"toString\", simpleFunc)\naddArrayExtension(\"toLocaleString\", simpleFunc)\naddArrayExtension(\"toSorted\", simpleFunc)\naddArrayExtension(\"toSpliced\", simpleFunc)\naddArrayExtension(\"with\", simpleFunc)\n// map\naddArrayExtension(\"every\", mapLikeFunc)\naddArrayExtension(\"filter\", mapLikeFunc)\naddArrayExtension(\"find\", mapLikeFunc)\naddArrayExtension(\"findIndex\", mapLikeFunc)\naddArrayExtension(\"findLast\", mapLikeFunc)\naddArrayExtension(\"findLastIndex\", mapLikeFunc)\naddArrayExtension(\"flatMap\", mapLikeFunc)\naddArrayExtension(\"forEach\", mapLikeFunc)\naddArrayExtension(\"map\", mapLikeFunc)\naddArrayExtension(\"some\", mapLikeFunc)\naddArrayExtension(\"toReversed\", mapLikeFunc)\n// reduce\naddArrayExtension(\"reduce\", reduceLikeFunc)\naddArrayExtension(\"reduceRight\", reduceLikeFunc)\n\nfunction addArrayExtension(funcName, funcFactory) {\n if (typeof Array.prototype[funcName] === \"function\") {\n arrayExtensions[funcName] = funcFactory(funcName)\n }\n}\n\n// Report and delegate to dehanced array\nfunction simpleFunc(funcName) {\n return function () {\n const adm: ObservableArrayAdministration = this[$mobx]\n adm.atom_.reportObserved()\n const dehancedValues = adm.dehanceValues_(adm.values_)\n return dehancedValues[funcName].apply(dehancedValues, arguments)\n }\n}\n\n// Make sure callbacks receive correct array arg #2326\nfunction mapLikeFunc(funcName) {\n return function (callback, thisArg) {\n const adm: ObservableArrayAdministration = this[$mobx]\n adm.atom_.reportObserved()\n const dehancedValues = adm.dehanceValues_(adm.values_)\n return dehancedValues[funcName]((element, index) => {\n return callback.call(thisArg, element, index, this)\n })\n }\n}\n\n// Make sure callbacks receive correct array arg #2326\nfunction reduceLikeFunc(funcName) {\n return function () {\n const adm: ObservableArrayAdministration = this[$mobx]\n adm.atom_.reportObserved()\n const dehancedValues = adm.dehanceValues_(adm.values_)\n // #2432 - reduce behavior depends on arguments.length\n const callback = arguments[0]\n arguments[0] = (accumulator, currentValue, index) => {\n return callback(accumulator, currentValue, index, this)\n }\n return dehancedValues[funcName].apply(dehancedValues, arguments)\n }\n}\n\nconst isObservableArrayAdministration = createInstanceofPredicate(\n \"ObservableArrayAdministration\",\n ObservableArrayAdministration\n)\n\nexport function isObservableArray(thing): thing is IObservableArray {\n return isObject(thing) && isObservableArrayAdministration(thing[$mobx])\n}\n","import {\n $mobx,\n IEnhancer,\n IInterceptable,\n IInterceptor,\n IListenable,\n Lambda,\n ObservableValue,\n checkIfStateModificationsAreAllowed,\n createAtom,\n createInstanceofPredicate,\n makeIterable,\n deepEnhancer,\n getNextId,\n getPlainObjectKeys,\n hasInterceptors,\n hasListeners,\n interceptChange,\n isES6Map,\n isPlainES6Map,\n isPlainObject,\n isSpyEnabled,\n notifyListeners,\n referenceEnhancer,\n registerInterceptor,\n registerListener,\n spyReportEnd,\n spyReportStart,\n stringifyKey,\n transaction,\n untracked,\n onBecomeUnobserved,\n globalState,\n die,\n isFunction,\n UPDATE,\n IAtom,\n PureSpyEvent,\n initObservable\n} from \"../internal\"\n\nexport interface IKeyValueMap {\n [key: string]: V\n}\n\nexport type IMapEntry = [K, V]\nexport type IReadonlyMapEntry = readonly [K, V]\nexport type IMapEntries = IMapEntry[]\nexport type IReadonlyMapEntries = IReadonlyMapEntry[]\n\nexport type IMapDidChange = { observableKind: \"map\"; debugObjectName: string } & (\n | {\n object: ObservableMap\n name: K // actual the key or index, but this is based on the ancient .observe proposal for consistency\n type: \"update\"\n newValue: V\n oldValue: V\n }\n | {\n object: ObservableMap\n name: K\n type: \"add\"\n newValue: V\n }\n | {\n object: ObservableMap\n name: K\n type: \"delete\"\n oldValue: V\n }\n)\n\nexport interface IMapWillChange {\n object: ObservableMap\n type: \"update\" | \"add\" | \"delete\"\n name: K\n newValue?: V\n}\n\nconst ObservableMapMarker = {}\n\nexport const ADD = \"add\"\nexport const DELETE = \"delete\"\n\nexport type IObservableMapInitialValues =\n | IMapEntries\n | IReadonlyMapEntries\n | IKeyValueMap\n | Map\n\n// just extend Map? See also https://gist.github.com/nestharus/13b4d74f2ef4a2f4357dbd3fc23c1e54\n// But: https://github.com/mobxjs/mobx/issues/1556\nexport class ObservableMap\n implements Map, IInterceptable>, IListenable\n{\n [$mobx] = ObservableMapMarker\n data_!: Map>\n hasMap_!: Map> // hasMap, not hashMap >-).\n keysAtom_!: IAtom\n interceptors_\n changeListeners_\n dehancer: any\n\n constructor(\n initialData?: IObservableMapInitialValues,\n public enhancer_: IEnhancer = deepEnhancer,\n public name_ = __DEV__ ? \"ObservableMap@\" + getNextId() : \"ObservableMap\"\n ) {\n if (!isFunction(Map)) {\n die(18)\n }\n initObservable(() => {\n this.keysAtom_ = createAtom(__DEV__ ? `${this.name_}.keys()` : \"ObservableMap.keys()\")\n this.data_ = new Map()\n this.hasMap_ = new Map()\n if (initialData) {\n this.merge(initialData)\n }\n })\n }\n\n private has_(key: K): boolean {\n return this.data_.has(key)\n }\n\n has(key: K): boolean {\n if (!globalState.trackingDerivation) {\n return this.has_(key)\n }\n\n let entry = this.hasMap_.get(key)\n if (!entry) {\n const newEntry = (entry = new ObservableValue(\n this.has_(key),\n referenceEnhancer,\n __DEV__ ? `${this.name_}.${stringifyKey(key)}?` : \"ObservableMap.key?\",\n false\n ))\n this.hasMap_.set(key, newEntry)\n onBecomeUnobserved(newEntry, () => this.hasMap_.delete(key))\n }\n\n return entry.get()\n }\n\n set(key: K, value: V) {\n const hasKey = this.has_(key)\n if (hasInterceptors(this)) {\n const change = interceptChange>(this, {\n type: hasKey ? UPDATE : ADD,\n object: this,\n newValue: value,\n name: key\n })\n if (!change) {\n return this\n }\n value = change.newValue!\n }\n if (hasKey) {\n this.updateValue_(key, value)\n } else {\n this.addValue_(key, value)\n }\n return this\n }\n\n delete(key: K): boolean {\n checkIfStateModificationsAreAllowed(this.keysAtom_)\n if (hasInterceptors(this)) {\n const change = interceptChange>(this, {\n type: DELETE,\n object: this,\n name: key\n })\n if (!change) {\n return false\n }\n }\n if (this.has_(key)) {\n const notifySpy = isSpyEnabled()\n const notify = hasListeners(this)\n const change: IMapDidChange | null =\n notify || notifySpy\n ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: DELETE,\n object: this,\n oldValue: (this.data_.get(key)).value_,\n name: key\n }\n : null\n\n if (__DEV__ && notifySpy) {\n spyReportStart(change! as PureSpyEvent)\n } // TODO fix type\n transaction(() => {\n this.keysAtom_.reportChanged()\n this.hasMap_.get(key)?.setNewValue_(false)\n const observable = this.data_.get(key)!\n observable.setNewValue_(undefined as any)\n this.data_.delete(key)\n })\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n return true\n }\n return false\n }\n\n private updateValue_(key: K, newValue: V | undefined) {\n const observable = this.data_.get(key)!\n newValue = (observable as any).prepareNewValue_(newValue) as V\n if (newValue !== globalState.UNCHANGED) {\n const notifySpy = isSpyEnabled()\n const notify = hasListeners(this)\n const change: IMapDidChange | null =\n notify || notifySpy\n ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: UPDATE,\n object: this,\n oldValue: (observable as any).value_,\n name: key,\n newValue\n }\n : null\n if (__DEV__ && notifySpy) {\n spyReportStart(change! as PureSpyEvent)\n } // TODO fix type\n observable.setNewValue_(newValue as V)\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n }\n\n private addValue_(key: K, newValue: V) {\n checkIfStateModificationsAreAllowed(this.keysAtom_)\n transaction(() => {\n const observable = new ObservableValue(\n newValue,\n this.enhancer_,\n __DEV__ ? `${this.name_}.${stringifyKey(key)}` : \"ObservableMap.key\",\n false\n )\n this.data_.set(key, observable)\n newValue = (observable as any).value_ // value might have been changed\n this.hasMap_.get(key)?.setNewValue_(true)\n this.keysAtom_.reportChanged()\n })\n const notifySpy = isSpyEnabled()\n const notify = hasListeners(this)\n const change: IMapDidChange | null =\n notify || notifySpy\n ? {\n observableKind: \"map\",\n debugObjectName: this.name_,\n type: ADD,\n object: this,\n name: key,\n newValue\n }\n : null\n if (__DEV__ && notifySpy) {\n spyReportStart(change! as PureSpyEvent)\n } // TODO fix type\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n\n get(key: K): V | undefined {\n if (this.has(key)) {\n return this.dehanceValue_(this.data_.get(key)!.get())\n }\n return this.dehanceValue_(undefined)\n }\n\n private dehanceValue_(value: X): X {\n if (this.dehancer !== undefined) {\n return this.dehancer(value)\n }\n return value\n }\n\n keys(): MapIterator {\n this.keysAtom_.reportObserved()\n return this.data_.keys()\n }\n\n values(): MapIterator {\n const self = this\n const keys = this.keys()\n return makeIterableForMap({\n next() {\n const { done, value } = keys.next()\n return {\n done,\n value: done ? (undefined as any) : self.get(value)\n }\n }\n })\n }\n\n entries(): MapIterator> {\n const self = this\n const keys = this.keys()\n return makeIterableForMap({\n next() {\n const { done, value } = keys.next()\n return {\n done,\n value: done ? (undefined as any) : ([value, self.get(value)!] as [K, V])\n }\n }\n })\n }\n\n [Symbol.iterator]() {\n return this.entries()\n }\n\n forEach(callback: (value: V, key: K, object: Map) => void, thisArg?) {\n for (const [key, value] of this) {\n callback.call(thisArg, value, key, this)\n }\n }\n\n /** Merge another object into this object, returns this. */\n merge(other?: IObservableMapInitialValues): ObservableMap {\n if (isObservableMap(other)) {\n other = new Map(other)\n }\n transaction(() => {\n if (isPlainObject(other)) {\n getPlainObjectKeys(other).forEach((key: any) =>\n this.set(key as K, (other as IKeyValueMap)[key])\n )\n } else if (Array.isArray(other)) {\n other.forEach(([key, value]) => this.set(key, value))\n } else if (isES6Map(other)) {\n if (!isPlainES6Map(other)) {\n die(19, other)\n }\n other.forEach((value, key) => this.set(key, value))\n } else if (other !== null && other !== undefined) {\n die(20, other)\n }\n })\n return this\n }\n\n clear() {\n transaction(() => {\n untracked(() => {\n for (const key of this.keys()) {\n this.delete(key)\n }\n })\n })\n }\n\n replace(values: IObservableMapInitialValues): ObservableMap {\n // Implementation requirements:\n // - respect ordering of replacement map\n // - allow interceptors to run and potentially prevent individual operations\n // - don't recreate observables that already exist in original map (so we don't destroy existing subscriptions)\n // - don't _keysAtom.reportChanged if the keys of resulting map are indentical (order matters!)\n // - note that result map may differ from replacement map due to the interceptors\n transaction(() => {\n // Convert to map so we can do quick key lookups\n const replacementMap = convertToMap(values)\n const orderedData = new Map()\n // Used for optimization\n let keysReportChangedCalled = false\n // Delete keys that don't exist in replacement map\n // if the key deletion is prevented by interceptor\n // add entry at the beginning of the result map\n for (const key of this.data_.keys()) {\n // Concurrently iterating/deleting keys\n // iterator should handle this correctly\n if (!replacementMap.has(key)) {\n const deleted = this.delete(key)\n // Was the key removed?\n if (deleted) {\n // _keysAtom.reportChanged() was already called\n keysReportChangedCalled = true\n } else {\n // Delete prevented by interceptor\n const value = this.data_.get(key)\n orderedData.set(key, value)\n }\n }\n }\n // Merge entries\n for (const [key, value] of replacementMap.entries()) {\n // We will want to know whether a new key is added\n const keyExisted = this.data_.has(key)\n // Add or update value\n this.set(key, value)\n // The addition could have been prevent by interceptor\n if (this.data_.has(key)) {\n // The update could have been prevented by interceptor\n // and also we want to preserve existing values\n // so use value from _data map (instead of replacement map)\n const value = this.data_.get(key)\n orderedData.set(key, value)\n // Was a new key added?\n if (!keyExisted) {\n // _keysAtom.reportChanged() was already called\n keysReportChangedCalled = true\n }\n }\n }\n // Check for possible key order change\n if (!keysReportChangedCalled) {\n if (this.data_.size !== orderedData.size) {\n // If size differs, keys are definitely modified\n this.keysAtom_.reportChanged()\n } else {\n const iter1 = this.data_.keys()\n const iter2 = orderedData.keys()\n let next1 = iter1.next()\n let next2 = iter2.next()\n while (!next1.done) {\n if (next1.value !== next2.value) {\n this.keysAtom_.reportChanged()\n break\n }\n next1 = iter1.next()\n next2 = iter2.next()\n }\n }\n }\n // Use correctly ordered map\n this.data_ = orderedData\n })\n return this\n }\n\n get size(): number {\n this.keysAtom_.reportObserved()\n return this.data_.size\n }\n\n toString(): string {\n return \"[object ObservableMap]\"\n }\n\n toJSON(): [K, V][] {\n return Array.from(this)\n }\n\n get [Symbol.toStringTag]() {\n return \"Map\"\n }\n\n /**\n * Observes this object. Triggers for the events 'add', 'update' and 'delete'.\n * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe\n * for callback details\n */\n observe_(listener: (changes: IMapDidChange) => void, fireImmediately?: boolean): Lambda {\n if (__DEV__ && fireImmediately === true) {\n die(\"`observe` doesn't support fireImmediately=true in combination with maps.\")\n }\n return registerListener(this, listener)\n }\n\n intercept_(handler: IInterceptor>): Lambda {\n return registerInterceptor(this, handler)\n }\n}\n\n// eslint-disable-next-line\nexport var isObservableMap = createInstanceofPredicate(\"ObservableMap\", ObservableMap) as (\n thing: any\n) => thing is ObservableMap\n\nfunction makeIterableForMap(iterator: Iterator): MapIterator {\n iterator[Symbol.toStringTag] = \"MapIterator\"\n return makeIterable(iterator)\n}\n\nfunction convertToMap(dataStructure: any): Map {\n if (isES6Map(dataStructure) || isObservableMap(dataStructure)) {\n return dataStructure\n } else if (Array.isArray(dataStructure)) {\n return new Map(dataStructure)\n } else if (isPlainObject(dataStructure)) {\n const map = new Map()\n for (const key in dataStructure) {\n map.set(key, dataStructure[key])\n }\n return map\n } else {\n return die(21, dataStructure)\n }\n}\n","import {\n $mobx,\n createAtom,\n deepEnhancer,\n getNextId,\n IEnhancer,\n isSpyEnabled,\n hasListeners,\n IListenable,\n registerListener,\n Lambda,\n spyReportStart,\n notifyListeners,\n spyReportEnd,\n createInstanceofPredicate,\n makeIterable,\n hasInterceptors,\n interceptChange,\n IInterceptable,\n IInterceptor,\n registerInterceptor,\n checkIfStateModificationsAreAllowed,\n untracked,\n transaction,\n isES6Set,\n IAtom,\n DELETE,\n ADD,\n die,\n isFunction,\n initObservable\n} from \"../internal\"\n\nconst ObservableSetMarker = {}\n\nexport type IObservableSetInitialValues = Set | readonly T[]\n\nexport type ISetDidChange =\n | {\n object: ObservableSet\n observableKind: \"set\"\n debugObjectName: string\n type: \"add\"\n newValue: T\n }\n | {\n object: ObservableSet\n observableKind: \"set\"\n debugObjectName: string\n type: \"delete\"\n oldValue: T\n }\n\nexport type ISetWillChange =\n | {\n type: \"delete\"\n object: ObservableSet\n oldValue: T\n }\n | {\n type: \"add\"\n object: ObservableSet\n newValue: T\n }\n\nexport class ObservableSet implements Set, IInterceptable, IListenable {\n [$mobx] = ObservableSetMarker\n private data_: Set = new Set()\n atom_!: IAtom\n changeListeners_\n interceptors_\n dehancer: any\n enhancer_: (newV: any, oldV: any | undefined) => any\n\n constructor(\n initialData?: IObservableSetInitialValues,\n enhancer: IEnhancer = deepEnhancer,\n public name_ = __DEV__ ? \"ObservableSet@\" + getNextId() : \"ObservableSet\"\n ) {\n if (!isFunction(Set)) {\n die(22)\n }\n this.enhancer_ = (newV, oldV) => enhancer(newV, oldV, name_)\n initObservable(() => {\n this.atom_ = createAtom(this.name_)\n if (initialData) {\n this.replace(initialData)\n }\n })\n }\n\n private dehanceValue_(value: X): X {\n if (this.dehancer !== undefined) {\n return this.dehancer(value)\n }\n return value\n }\n\n clear() {\n transaction(() => {\n untracked(() => {\n for (const value of this.data_.values()) {\n this.delete(value)\n }\n })\n })\n }\n\n forEach(callbackFn: (value: T, value2: T, set: Set) => void, thisArg?: any) {\n for (const value of this) {\n callbackFn.call(thisArg, value, value, this)\n }\n }\n\n get size() {\n this.atom_.reportObserved()\n return this.data_.size\n }\n\n add(value: T) {\n checkIfStateModificationsAreAllowed(this.atom_)\n if (hasInterceptors(this)) {\n const change = interceptChange>(this, {\n type: ADD,\n object: this,\n newValue: value\n })\n if (!change) {\n return this\n }\n // ideally, value = change.value would be done here, so that values can be\n // changed by interceptor. Same applies for other Set and Map api's.\n }\n if (!this.has(value)) {\n transaction(() => {\n this.data_.add(this.enhancer_(value, undefined))\n this.atom_.reportChanged()\n })\n const notifySpy = __DEV__ && isSpyEnabled()\n const notify = hasListeners(this)\n const change =\n notify || notifySpy\n ? >{\n observableKind: \"set\",\n debugObjectName: this.name_,\n type: ADD,\n object: this,\n newValue: value\n }\n : null\n if (notifySpy && __DEV__) {\n spyReportStart(change!)\n }\n if (notify) {\n notifyListeners(this, change)\n }\n if (notifySpy && __DEV__) {\n spyReportEnd()\n }\n }\n\n return this\n }\n\n delete(value: T) {\n if (hasInterceptors(this)) {\n const change = interceptChange>(this, {\n type: DELETE,\n object: this,\n oldValue: value\n })\n if (!change) {\n return false\n }\n }\n if (this.has(value)) {\n const notifySpy = __DEV__ && isSpyEnabled()\n const notify = hasListeners(this)\n const change =\n notify || notifySpy\n ? >{\n observableKind: \"set\",\n debugObjectName: this.name_,\n type: DELETE,\n object: this,\n oldValue: value\n }\n : null\n\n if (notifySpy && __DEV__) {\n spyReportStart(change!)\n }\n transaction(() => {\n this.atom_.reportChanged()\n this.data_.delete(value)\n })\n if (notify) {\n notifyListeners(this, change)\n }\n if (notifySpy && __DEV__) {\n spyReportEnd()\n }\n return true\n }\n return false\n }\n\n has(value: T) {\n this.atom_.reportObserved()\n return this.data_.has(this.dehanceValue_(value))\n }\n\n entries() {\n let nextIndex = 0\n const keys = Array.from(this.keys())\n const values = Array.from(this.values())\n return makeIterableForSet<[T, T]>({\n next() {\n const index = nextIndex\n nextIndex += 1\n return index < values.length\n ? { value: [keys[index], values[index]], done: false }\n : { value: undefined, done: true }\n }\n })\n }\n\n keys(): SetIterator {\n return this.values()\n }\n\n values(): SetIterator {\n this.atom_.reportObserved()\n const self = this\n let nextIndex = 0\n const observableValues = Array.from(this.data_.values())\n return makeIterableForSet({\n next() {\n return nextIndex < observableValues.length\n ? { value: self.dehanceValue_(observableValues[nextIndex++]), done: false }\n : { value: undefined, done: true }\n }\n })\n }\n\n intersection(otherSet: ReadonlySetLike | Set): Set {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) {\n return otherSet.intersection(this)\n } else {\n const dehancedSet = new Set(this)\n return dehancedSet.intersection(otherSet)\n }\n }\n\n union(otherSet: ReadonlySetLike | Set): Set {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) {\n return otherSet.union(this)\n } else {\n const dehancedSet = new Set(this)\n return dehancedSet.union(otherSet)\n }\n }\n\n difference(otherSet: ReadonlySetLike): Set {\n return new Set(this).difference(otherSet)\n }\n\n symmetricDifference(otherSet: ReadonlySetLike | Set): Set {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) {\n return otherSet.symmetricDifference(this)\n } else {\n const dehancedSet = new Set(this)\n return dehancedSet.symmetricDifference(otherSet)\n }\n }\n\n isSubsetOf(otherSet: ReadonlySetLike): boolean {\n return new Set(this).isSubsetOf(otherSet)\n }\n\n isSupersetOf(otherSet: ReadonlySetLike): boolean {\n return new Set(this).isSupersetOf(otherSet)\n }\n\n isDisjointFrom(otherSet: ReadonlySetLike | Set): boolean {\n if (isES6Set(otherSet) && !isObservableSet(otherSet)) {\n return otherSet.isDisjointFrom(this)\n } else {\n const dehancedSet = new Set(this)\n return dehancedSet.isDisjointFrom(otherSet)\n }\n }\n\n replace(other: ObservableSet | IObservableSetInitialValues): ObservableSet {\n if (isObservableSet(other)) {\n other = new Set(other)\n }\n\n transaction(() => {\n if (Array.isArray(other)) {\n this.clear()\n other.forEach(value => this.add(value))\n } else if (isES6Set(other)) {\n this.clear()\n other.forEach(value => this.add(value))\n } else if (other !== null && other !== undefined) {\n die(\"Cannot initialize set from \" + other)\n }\n })\n\n return this\n }\n observe_(listener: (changes: ISetDidChange) => void, fireImmediately?: boolean): Lambda {\n // ... 'fireImmediately' could also be true?\n if (__DEV__ && fireImmediately === true) {\n die(\"`observe` doesn't support fireImmediately=true in combination with sets.\")\n }\n return registerListener(this, listener)\n }\n\n intercept_(handler: IInterceptor>): Lambda {\n return registerInterceptor(this, handler)\n }\n\n toJSON(): T[] {\n return Array.from(this)\n }\n\n toString(): string {\n return \"[object ObservableSet]\"\n }\n\n [Symbol.iterator]() {\n return this.values()\n }\n\n get [Symbol.toStringTag]() {\n return \"Set\"\n }\n}\n\n// eslint-disable-next-line\nexport var isObservableSet = createInstanceofPredicate(\"ObservableSet\", ObservableSet) as (\n thing: any\n) => thing is ObservableSet\n\nfunction makeIterableForSet(iterator: Iterator): SetIterator {\n iterator[Symbol.toStringTag] = \"SetIterator\"\n return makeIterable(iterator)\n}\n","import {\n CreateObservableOptions,\n getAnnotationFromOptions,\n propagateChanged,\n isAnnotation,\n $mobx,\n Atom,\n Annotation,\n ComputedValue,\n IAtom,\n IComputedValueOptions,\n IEnhancer,\n IInterceptable,\n IListenable,\n Lambda,\n ObservableValue,\n addHiddenProp,\n createInstanceofPredicate,\n endBatch,\n getNextId,\n hasInterceptors,\n hasListeners,\n interceptChange,\n isObject,\n isPlainObject,\n isSpyEnabled,\n notifyListeners,\n referenceEnhancer,\n registerInterceptor,\n registerListener,\n spyReportEnd,\n spyReportStart,\n startBatch,\n stringifyKey,\n globalState,\n ADD,\n UPDATE,\n die,\n hasProp,\n getDescriptor,\n storedAnnotationsSymbol,\n ownKeys,\n isOverride,\n defineProperty,\n autoAnnotation,\n getAdministration,\n getDebugName,\n objectPrototype,\n MakeResult,\n checkIfStateModificationsAreAllowed\n} from \"../internal\"\n\nconst descriptorCache = Object.create(null)\n\nexport type IObjectDidChange = {\n observableKind: \"object\"\n name: PropertyKey\n object: T\n debugObjectName: string\n} & (\n | {\n type: \"add\"\n newValue: any\n }\n | {\n type: \"update\"\n oldValue: any\n newValue: any\n }\n | {\n type: \"remove\"\n oldValue: any\n }\n)\n\nexport type IObjectWillChange =\n | {\n object: T\n type: \"update\" | \"add\"\n name: PropertyKey\n newValue: any\n }\n | {\n object: T\n type: \"remove\"\n name: PropertyKey\n }\n\nconst REMOVE = \"remove\"\n\nexport class ObservableObjectAdministration\n implements IInterceptable, IListenable\n{\n keysAtom_: IAtom\n changeListeners_\n interceptors_\n proxy_: any\n isPlainObject_: boolean\n appliedAnnotations_?: object\n private pendingKeys_: undefined | Map>\n\n constructor(\n public target_: any,\n public values_ = new Map | ComputedValue>(),\n public name_: string,\n // Used anytime annotation is not explicitely provided\n public defaultAnnotation_: Annotation = autoAnnotation\n ) {\n this.keysAtom_ = new Atom(__DEV__ ? `${this.name_}.keys` : \"ObservableObject.keys\")\n // Optimization: we use this frequently\n this.isPlainObject_ = isPlainObject(this.target_)\n if (__DEV__ && !isAnnotation(this.defaultAnnotation_)) {\n die(`defaultAnnotation must be valid annotation`)\n }\n if (__DEV__) {\n // Prepare structure for tracking which fields were already annotated\n this.appliedAnnotations_ = {}\n }\n }\n\n getObservablePropValue_(key: PropertyKey): any {\n return this.values_.get(key)!.get()\n }\n\n setObservablePropValue_(key: PropertyKey, newValue): boolean | null {\n const observable = this.values_.get(key)\n if (observable instanceof ComputedValue) {\n observable.set(newValue)\n return true\n }\n\n // intercept\n if (hasInterceptors(this)) {\n const change = interceptChange(this, {\n type: UPDATE,\n object: this.proxy_ || this.target_,\n name: key,\n newValue\n })\n if (!change) {\n return null\n }\n newValue = (change as any).newValue\n }\n newValue = (observable as any).prepareNewValue_(newValue)\n\n // notify spy & observers\n if (newValue !== globalState.UNCHANGED) {\n const notify = hasListeners(this)\n const notifySpy = __DEV__ && isSpyEnabled()\n const change: IObjectDidChange | null =\n notify || notifySpy\n ? {\n type: UPDATE,\n observableKind: \"object\",\n debugObjectName: this.name_,\n object: this.proxy_ || this.target_,\n oldValue: (observable as any).value_,\n name: key,\n newValue\n }\n : null\n\n if (__DEV__ && notifySpy) {\n spyReportStart(change!)\n }\n ;(observable as ObservableValue).setNewValue_(newValue)\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n return true\n }\n\n get_(key: PropertyKey): any {\n if (globalState.trackingDerivation && !hasProp(this.target_, key)) {\n // Key doesn't exist yet, subscribe for it in case it's added later\n this.has_(key)\n }\n return this.target_[key]\n }\n\n /**\n * @param {PropertyKey} key\n * @param {any} value\n * @param {Annotation|boolean} annotation true - use default annotation, false - copy as is\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */\n set_(key: PropertyKey, value: any, proxyTrap: boolean = false): boolean | null {\n // Don't use .has(key) - we care about own\n if (hasProp(this.target_, key)) {\n // Existing prop\n if (this.values_.has(key)) {\n // Observable (can be intercepted)\n return this.setObservablePropValue_(key, value)\n } else if (proxyTrap) {\n // Non-observable - proxy\n return Reflect.set(this.target_, key, value)\n } else {\n // Non-observable\n this.target_[key] = value\n return true\n }\n } else {\n // New prop\n return this.extend_(\n key,\n { value, enumerable: true, writable: true, configurable: true },\n this.defaultAnnotation_,\n proxyTrap\n )\n }\n }\n\n // Trap for \"in\"\n has_(key: PropertyKey): boolean {\n if (!globalState.trackingDerivation) {\n // Skip key subscription outside derivation\n return key in this.target_\n }\n this.pendingKeys_ ||= new Map()\n let entry = this.pendingKeys_.get(key)\n if (!entry) {\n entry = new ObservableValue(\n key in this.target_,\n referenceEnhancer,\n __DEV__ ? `${this.name_}.${stringifyKey(key)}?` : \"ObservableObject.key?\",\n false\n )\n this.pendingKeys_.set(key, entry)\n }\n return entry.get()\n }\n\n /**\n * @param {PropertyKey} key\n * @param {Annotation|boolean} annotation true - use default annotation, false - ignore prop\n */\n make_(key: PropertyKey, annotation: Annotation | boolean): void {\n if (annotation === true) {\n annotation = this.defaultAnnotation_\n }\n if (annotation === false) {\n return\n }\n assertAnnotable(this, annotation, key)\n if (!(key in this.target_)) {\n // Throw on missing key, except for decorators:\n // Decorator annotations are collected from whole prototype chain.\n // When called from super() some props may not exist yet.\n // However we don't have to worry about missing prop,\n // because the decorator must have been applied to something.\n if (this.target_[storedAnnotationsSymbol]?.[key]) {\n return // will be annotated by subclass constructor\n } else {\n die(1, annotation.annotationType_, `${this.name_}.${key.toString()}`)\n }\n }\n let source = this.target_\n while (source && source !== objectPrototype) {\n const descriptor = getDescriptor(source, key)\n if (descriptor) {\n const outcome = annotation.make_(this, key, descriptor, source)\n if (outcome === MakeResult.Cancel) {\n return\n }\n if (outcome === MakeResult.Break) {\n break\n }\n }\n source = Object.getPrototypeOf(source)\n }\n recordAnnotationApplied(this, annotation, key)\n }\n\n /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {Annotation|boolean} annotation true - use default annotation, false - copy as is\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */\n extend_(\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n annotation: Annotation | boolean,\n proxyTrap: boolean = false\n ): boolean | null {\n if (annotation === true) {\n annotation = this.defaultAnnotation_\n }\n if (annotation === false) {\n return this.defineProperty_(key, descriptor, proxyTrap)\n }\n assertAnnotable(this, annotation, key)\n const outcome = annotation.extend_(this, key, descriptor, proxyTrap)\n if (outcome) {\n recordAnnotationApplied(this, annotation, key)\n }\n return outcome\n }\n\n /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */\n defineProperty_(\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean = false\n ): boolean | null {\n checkIfStateModificationsAreAllowed(this.keysAtom_)\n try {\n startBatch()\n\n // Delete\n const deleteOutcome = this.delete_(key)\n if (!deleteOutcome) {\n // Failure or intercepted\n return deleteOutcome\n }\n\n // ADD interceptor\n if (hasInterceptors(this)) {\n const change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: descriptor.value\n })\n if (!change) {\n return null\n }\n const { newValue } = change as any\n if (descriptor.value !== newValue) {\n descriptor = {\n ...descriptor,\n value: newValue\n }\n }\n }\n\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) {\n return false\n }\n } else {\n defineProperty(this.target_, key, descriptor)\n }\n\n // Notify\n this.notifyPropertyAddition_(key, descriptor.value)\n } finally {\n endBatch()\n }\n return true\n }\n\n // If original descriptor becomes relevant, move this to annotation directly\n defineObservableProperty_(\n key: PropertyKey,\n value: any,\n enhancer: IEnhancer,\n proxyTrap: boolean = false\n ): boolean | null {\n checkIfStateModificationsAreAllowed(this.keysAtom_)\n try {\n startBatch()\n\n // Delete\n const deleteOutcome = this.delete_(key)\n if (!deleteOutcome) {\n // Failure or intercepted\n return deleteOutcome\n }\n\n // ADD interceptor\n if (hasInterceptors(this)) {\n const change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: value\n })\n if (!change) {\n return null\n }\n value = (change as any).newValue\n }\n\n const cachedDescriptor = getCachedObservablePropDescriptor(key)\n const descriptor = {\n configurable: globalState.safeDescriptors ? this.isPlainObject_ : true,\n enumerable: true,\n get: cachedDescriptor.get,\n set: cachedDescriptor.set\n }\n\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) {\n return false\n }\n } else {\n defineProperty(this.target_, key, descriptor)\n }\n\n const observable = new ObservableValue(\n value,\n enhancer,\n __DEV__ ? `${this.name_}.${key.toString()}` : \"ObservableObject.key\",\n false\n )\n\n this.values_.set(key, observable)\n\n // Notify (value possibly changed by ObservableValue)\n this.notifyPropertyAddition_(key, observable.value_)\n } finally {\n endBatch()\n }\n return true\n }\n\n // If original descriptor becomes relevant, move this to annotation directly\n defineComputedProperty_(\n key: PropertyKey,\n options: IComputedValueOptions,\n proxyTrap: boolean = false\n ): boolean | null {\n checkIfStateModificationsAreAllowed(this.keysAtom_)\n try {\n startBatch()\n\n // Delete\n const deleteOutcome = this.delete_(key)\n if (!deleteOutcome) {\n // Failure or intercepted\n return deleteOutcome\n }\n\n // ADD interceptor\n if (hasInterceptors(this)) {\n const change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: ADD,\n newValue: undefined\n })\n if (!change) {\n return null\n }\n }\n options.name ||= __DEV__ ? `${this.name_}.${key.toString()}` : \"ObservableObject.key\"\n options.context = this.proxy_ || this.target_\n const cachedDescriptor = getCachedObservablePropDescriptor(key)\n const descriptor = {\n configurable: globalState.safeDescriptors ? this.isPlainObject_ : true,\n enumerable: false,\n get: cachedDescriptor.get,\n set: cachedDescriptor.set\n }\n\n // Define\n if (proxyTrap) {\n if (!Reflect.defineProperty(this.target_, key, descriptor)) {\n return false\n }\n } else {\n defineProperty(this.target_, key, descriptor)\n }\n\n this.values_.set(key, new ComputedValue(options))\n\n // Notify\n this.notifyPropertyAddition_(key, undefined)\n } finally {\n endBatch()\n }\n return true\n }\n\n /**\n * @param {PropertyKey} key\n * @param {PropertyDescriptor} descriptor\n * @param {boolean} proxyTrap whether it's called from proxy trap\n * @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor\n */\n delete_(key: PropertyKey, proxyTrap: boolean = false): boolean | null {\n checkIfStateModificationsAreAllowed(this.keysAtom_)\n // No such prop\n if (!hasProp(this.target_, key)) {\n return true\n }\n\n // Intercept\n if (hasInterceptors(this)) {\n const change = interceptChange(this, {\n object: this.proxy_ || this.target_,\n name: key,\n type: REMOVE\n })\n // Cancelled\n if (!change) {\n return null\n }\n }\n\n // Delete\n try {\n startBatch()\n const notify = hasListeners(this)\n const notifySpy = __DEV__ && isSpyEnabled()\n const observable = this.values_.get(key)\n // Value needed for spies/listeners\n let value = undefined\n // Optimization: don't pull the value unless we will need it\n if (!observable && (notify || notifySpy)) {\n value = getDescriptor(this.target_, key)?.value\n }\n // delete prop (do first, may fail)\n if (proxyTrap) {\n if (!Reflect.deleteProperty(this.target_, key)) {\n return false\n }\n } else {\n delete this.target_[key]\n }\n // Allow re-annotating this field\n if (__DEV__) {\n delete this.appliedAnnotations_![key]\n }\n // Clear observable\n if (observable) {\n this.values_.delete(key)\n // for computed, value is undefined\n if (observable instanceof ObservableValue) {\n value = observable.value_\n }\n // Notify: autorun(() => obj[key]), see #1796\n propagateChanged(observable)\n }\n // Notify \"keys/entries/values\" observers\n this.keysAtom_.reportChanged()\n\n // Notify \"has\" observers\n // \"in\" as it may still exist in proto\n this.pendingKeys_?.get(key)?.set(key in this.target_)\n\n // Notify spies/listeners\n if (notify || notifySpy) {\n const change: IObjectDidChange = {\n type: REMOVE,\n observableKind: \"object\",\n object: this.proxy_ || this.target_,\n debugObjectName: this.name_,\n oldValue: value,\n name: key\n }\n if (__DEV__ && notifySpy) {\n spyReportStart(change!)\n }\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n } finally {\n endBatch()\n }\n return true\n }\n\n /**\n * Observes this object. Triggers for the events 'add', 'update' and 'delete'.\n * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe\n * for callback details\n */\n observe_(callback: (changes: IObjectDidChange) => void, fireImmediately?: boolean): Lambda {\n if (__DEV__ && fireImmediately === true) {\n die(\"`observe` doesn't support the fire immediately property for observable objects.\")\n }\n return registerListener(this, callback)\n }\n\n intercept_(handler): Lambda {\n return registerInterceptor(this, handler)\n }\n\n notifyPropertyAddition_(key: PropertyKey, value: any) {\n const notify = hasListeners(this)\n const notifySpy = __DEV__ && isSpyEnabled()\n if (notify || notifySpy) {\n const change: IObjectDidChange | null =\n notify || notifySpy\n ? ({\n type: ADD,\n observableKind: \"object\",\n debugObjectName: this.name_,\n object: this.proxy_ || this.target_,\n name: key,\n newValue: value\n } as const)\n : null\n\n if (__DEV__ && notifySpy) {\n spyReportStart(change!)\n }\n if (notify) {\n notifyListeners(this, change)\n }\n if (__DEV__ && notifySpy) {\n spyReportEnd()\n }\n }\n\n this.pendingKeys_?.get(key)?.set(true)\n\n // Notify \"keys/entries/values\" observers\n this.keysAtom_.reportChanged()\n }\n\n ownKeys_(): Array {\n this.keysAtom_.reportObserved()\n return ownKeys(this.target_)\n }\n\n keys_(): PropertyKey[] {\n // Returns enumerable && own, but unfortunately keysAtom will report on ANY key change.\n // There is no way to distinguish between Object.keys(object) and Reflect.ownKeys(object) - both are handled by ownKeys trap.\n // We can either over-report in Object.keys(object) or under-report in Reflect.ownKeys(object)\n // We choose to over-report in Object.keys(object), because:\n // - typically it's used with simple data objects\n // - when symbolic/non-enumerable keys are relevant Reflect.ownKeys works as expected\n this.keysAtom_.reportObserved()\n return Object.keys(this.target_)\n }\n}\n\nexport interface IIsObservableObject {\n [$mobx]: ObservableObjectAdministration\n}\n\nexport function asObservableObject(\n target: any,\n options?: CreateObservableOptions\n): IIsObservableObject {\n if (__DEV__ && options && isObservableObject(target)) {\n die(`Options can't be provided for already observable objects.`)\n }\n\n if (hasProp(target, $mobx)) {\n if (__DEV__ && !(getAdministration(target) instanceof ObservableObjectAdministration)) {\n die(\n `Cannot convert '${getDebugName(target)}' into observable object:` +\n `\\nThe target is already observable of different type.` +\n `\\nExtending builtins is not supported.`\n )\n }\n return target\n }\n\n if (__DEV__ && !Object.isExtensible(target)) {\n die(\"Cannot make the designated object observable; it is not extensible\")\n }\n\n const name =\n options?.name ??\n (__DEV__\n ? `${\n isPlainObject(target) ? \"ObservableObject\" : target.constructor.name\n }@${getNextId()}`\n : \"ObservableObject\")\n\n const adm = new ObservableObjectAdministration(\n target,\n new Map(),\n String(name),\n getAnnotationFromOptions(options)\n )\n\n addHiddenProp(target, $mobx, adm)\n\n return target\n}\n\nconst isObservableObjectAdministration = createInstanceofPredicate(\n \"ObservableObjectAdministration\",\n ObservableObjectAdministration\n)\n\nfunction getCachedObservablePropDescriptor(key) {\n return (\n descriptorCache[key] ||\n (descriptorCache[key] = {\n get() {\n return this[$mobx].getObservablePropValue_(key)\n },\n set(value) {\n return this[$mobx].setObservablePropValue_(key, value)\n }\n })\n )\n}\n\nexport function isObservableObject(thing: any): boolean {\n if (isObject(thing)) {\n return isObservableObjectAdministration((thing as any)[$mobx])\n }\n return false\n}\n\nexport function recordAnnotationApplied(\n adm: ObservableObjectAdministration,\n annotation: Annotation,\n key: PropertyKey\n) {\n if (__DEV__) {\n adm.appliedAnnotations_![key] = annotation\n }\n // Remove applied decorator annotation so we don't try to apply it again in subclass constructor\n delete adm.target_[storedAnnotationsSymbol]?.[key]\n}\n\nfunction assertAnnotable(\n adm: ObservableObjectAdministration,\n annotation: Annotation,\n key: PropertyKey\n) {\n // Valid annotation\n if (__DEV__ && !isAnnotation(annotation)) {\n die(`Cannot annotate '${adm.name_}.${key.toString()}': Invalid annotation.`)\n }\n\n /*\n // Configurable, not sealed, not frozen\n // Possibly not needed, just a little better error then the one thrown by engine.\n // Cases where this would be useful the most (subclass field initializer) are not interceptable by this.\n if (__DEV__) {\n const configurable = getDescriptor(adm.target_, key)?.configurable\n const frozen = Object.isFrozen(adm.target_)\n const sealed = Object.isSealed(adm.target_)\n if (!configurable || frozen || sealed) {\n const fieldName = `${adm.name_}.${key.toString()}`\n const requestedAnnotationType = annotation.annotationType_\n let error = `Cannot apply '${requestedAnnotationType}' to '${fieldName}':`\n if (frozen) {\n error += `\\nObject is frozen.`\n }\n if (sealed) {\n error += `\\nObject is sealed.`\n }\n if (!configurable) {\n error += `\\nproperty is not configurable.`\n // Mention only if caused by us to avoid confusion\n if (hasProp(adm.appliedAnnotations!, key)) {\n error += `\\nTo prevent accidental re-definition of a field by a subclass, `\n error += `all annotated fields of non-plain objects (classes) are not configurable.`\n }\n }\n die(error)\n }\n }\n */\n\n // Not annotated\n if (__DEV__ && !isOverride(annotation) && hasProp(adm.appliedAnnotations_!, key)) {\n const fieldName = `${adm.name_}.${key.toString()}`\n const currentAnnotationType = adm.appliedAnnotations_![key].annotationType_\n const requestedAnnotationType = annotation.annotationType_\n die(\n `Cannot apply '${requestedAnnotationType}' to '${fieldName}':` +\n `\\nThe field is already annotated with '${currentAnnotationType}'.` +\n `\\nRe-annotating fields is not allowed.` +\n `\\nUse 'override' annotation for methods overridden by subclass.`\n )\n }\n}\n","import {\n getNextId,\n addHiddenFinalProp,\n makeIterable,\n addHiddenProp,\n ObservableArrayAdministration,\n $mobx,\n arrayExtensions,\n IEnhancer,\n isObservableArray,\n IObservableArray,\n defineProperty,\n initObservable\n} from \"../internal\"\n\n// Bug in safari 9.* (or iOS 9 safari mobile). See #364\nconst ENTRY_0 = createArrayEntryDescriptor(0)\n\nconst safariPrototypeSetterInheritanceBug = (() => {\n let v = false\n const p = {}\n Object.defineProperty(p, \"0\", {\n set: () => {\n v = true\n }\n })\n Object.create(p)[\"0\"] = 1\n return v === false\n})()\n\n/**\n * This array buffer contains two lists of properties, so that all arrays\n * can recycle their property definitions, which significantly improves performance of creating\n * properties on the fly.\n */\nlet OBSERVABLE_ARRAY_BUFFER_SIZE = 0\n\n// Typescript workaround to make sure ObservableArray extends Array\nclass StubArray {}\nfunction inherit(ctor, proto) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(ctor.prototype, proto)\n } else if (ctor.prototype.__proto__ !== undefined) {\n ctor.prototype.__proto__ = proto\n } else {\n ctor.prototype = proto\n }\n}\ninherit(StubArray, Array.prototype)\n\n// Weex proto freeze protection was here,\n// but it is unclear why the hack is need as MobX never changed the prototype\n// anyway, so removed it in V6\n\nexport class LegacyObservableArray extends StubArray {\n constructor(\n initialValues: T[] | undefined,\n enhancer: IEnhancer,\n name = __DEV__ ? \"ObservableArray@\" + getNextId() : \"ObservableArray\",\n owned = false\n ) {\n super()\n initObservable(() => {\n const adm = new ObservableArrayAdministration(name, enhancer, owned, true)\n adm.proxy_ = this as any\n addHiddenFinalProp(this, $mobx, adm)\n\n if (initialValues && initialValues.length) {\n // @ts-ignore\n this.spliceWithArray(0, 0, initialValues)\n }\n\n if (safariPrototypeSetterInheritanceBug) {\n // Seems that Safari won't use numeric prototype setter until any * numeric property is\n // defined on the instance. After that it works fine, even if this property is deleted.\n Object.defineProperty(this, \"0\", ENTRY_0)\n }\n })\n }\n\n concat(...arrays: T[][]): T[] {\n ;(this[$mobx] as ObservableArrayAdministration).atom_.reportObserved()\n return Array.prototype.concat.apply(\n (this as any).slice(),\n //@ts-ignore\n arrays.map(a => (isObservableArray(a) ? a.slice() : a))\n )\n }\n\n get length(): number {\n return (this[$mobx] as ObservableArrayAdministration).getArrayLength_()\n }\n\n set length(newLength: number) {\n ;(this[$mobx] as ObservableArrayAdministration).setArrayLength_(newLength)\n }\n\n get [Symbol.toStringTag]() {\n return \"Array\"\n }\n\n [Symbol.iterator]() {\n const self = this\n let nextIndex = 0\n return makeIterable({\n next() {\n return nextIndex < self.length\n ? { value: self[nextIndex++], done: false }\n : { done: true, value: undefined }\n }\n })\n }\n}\n\nObject.entries(arrayExtensions).forEach(([prop, fn]) => {\n if (prop !== \"concat\") {\n addHiddenProp(LegacyObservableArray.prototype, prop, fn)\n }\n})\n\nfunction createArrayEntryDescriptor(index: number) {\n return {\n enumerable: false,\n configurable: true,\n get: function () {\n return this[$mobx].get_(index)\n },\n set: function (value) {\n this[$mobx].set_(index, value)\n }\n }\n}\n\nfunction createArrayBufferItem(index: number) {\n defineProperty(LegacyObservableArray.prototype, \"\" + index, createArrayEntryDescriptor(index))\n}\n\nexport function reserveArrayBuffer(max: number) {\n if (max > OBSERVABLE_ARRAY_BUFFER_SIZE) {\n for (let index = OBSERVABLE_ARRAY_BUFFER_SIZE; index < max + 100; index++) {\n createArrayBufferItem(index)\n }\n OBSERVABLE_ARRAY_BUFFER_SIZE = max\n }\n}\n\nreserveArrayBuffer(1000)\n\nexport function createLegacyArray(\n initialValues: T[] | undefined,\n enhancer: IEnhancer,\n name?: string\n): IObservableArray {\n return new LegacyObservableArray(initialValues, enhancer, name) as any\n}\n","import { isAction } from \"../api/action\"\nimport {\n $mobx,\n IDepTreeNode,\n isAtom,\n isComputedValue,\n isObservableArray,\n isObservableMap,\n isObservableObject,\n isReaction,\n isObservableSet,\n die,\n isFunction,\n allowStateChangesStart,\n untrackedStart,\n allowStateChangesEnd,\n untrackedEnd,\n startBatch,\n endBatch\n} from \"../internal\"\n\nexport function getAtom(thing: any, property?: PropertyKey): IDepTreeNode {\n if (typeof thing === \"object\" && thing !== null) {\n if (isObservableArray(thing)) {\n if (property !== undefined) {\n die(23)\n }\n return (thing as any)[$mobx].atom_\n }\n if (isObservableSet(thing)) {\n return thing.atom_\n }\n if (isObservableMap(thing)) {\n if (property === undefined) {\n return thing.keysAtom_\n }\n const observable = thing.data_.get(property) || thing.hasMap_.get(property)\n if (!observable) {\n die(25, property, getDebugName(thing))\n }\n return observable\n }\n if (property && !thing[$mobx]) {\n thing[property]\n } // See #1072\n if (isObservableObject(thing)) {\n if (!property) {\n return die(26)\n }\n const observable = (thing as any)[$mobx].values_.get(property)\n if (!observable) {\n die(27, property, getDebugName(thing))\n }\n return observable\n }\n if (isAtom(thing) || isComputedValue(thing) || isReaction(thing)) {\n return thing\n }\n } else if (isFunction(thing)) {\n if (isReaction(thing[$mobx])) {\n // disposer function\n return thing[$mobx]\n }\n }\n die(28)\n}\n\nexport function getAdministration(thing: any, property?: string) {\n if (!thing) {\n die(29)\n }\n if (property !== undefined) {\n return getAdministration(getAtom(thing, property))\n }\n if (isAtom(thing) || isComputedValue(thing) || isReaction(thing)) {\n return thing\n }\n if (isObservableMap(thing) || isObservableSet(thing)) {\n return thing\n }\n if (thing[$mobx]) {\n return thing[$mobx]\n }\n die(24, thing)\n}\n\nexport function getDebugName(thing: any, property?: string): string {\n let named\n if (property !== undefined) {\n named = getAtom(thing, property)\n } else if (isAction(thing)) {\n return thing.name\n } else if (isObservableObject(thing) || isObservableMap(thing) || isObservableSet(thing)) {\n named = getAdministration(thing)\n } else {\n // valid for arrays as well\n named = getAtom(thing)\n }\n return named.name_\n}\n\n/**\n * Helper function for initializing observable structures, it applies:\n * 1. allowStateChanges so we don't violate enforceActions.\n * 2. untracked so we don't accidentaly subscribe to anything observable accessed during init in case the observable is created inside derivation.\n * 3. batch to avoid state version updates\n */\nexport function initObservable(cb: () => T): T {\n const derivation = untrackedStart()\n const allowStateChanges = allowStateChangesStart(true)\n startBatch()\n try {\n return cb()\n } finally {\n endBatch()\n allowStateChangesEnd(allowStateChanges)\n untrackedEnd(derivation)\n }\n}\n","import {\n isES6Map,\n isObservableArray,\n isObservableMap,\n isES6Set,\n isObservableSet,\n hasProp,\n isFunction,\n objectPrototype\n} from \"../internal\"\n\ndeclare const Symbol\nconst toString = objectPrototype.toString\n\nexport function deepEqual(a: any, b: any, depth: number = -1): boolean {\n return eq(a, b, depth)\n}\n\n// Copied from https://github.com/jashkenas/underscore/blob/5c237a7c682fb68fd5378203f0bf22dce1624854/underscore.js#L1186-L1289\n// Internal recursive comparison function for `isEqual`.\nfunction eq(a: any, b: any, depth: number, aStack?: any[], bStack?: any[]) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) {\n return a !== 0 || 1 / a === 1 / b\n }\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) {\n return false\n }\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) {\n return b !== b\n }\n // Exhaust primitive checks\n const type = typeof a\n if (type !== \"function\" && type !== \"object\" && typeof b != \"object\") {\n return false\n }\n\n // Compare `[[Class]]` names.\n const className = toString.call(a)\n if (className !== toString.call(b)) {\n return false\n }\n switch (className) {\n // Strings, numbers, regular expressions, dates, and booleans are compared by value.\n case \"[object RegExp]\":\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n case \"[object String]\":\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return \"\" + a === \"\" + b\n case \"[object Number]\":\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) {\n return +b !== +b\n }\n // An `egal` comparison is performed for other numeric values.\n return +a === 0 ? 1 / +a === 1 / b : +a === +b\n case \"[object Date]\":\n case \"[object Boolean]\":\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b\n case \"[object Symbol]\":\n return (\n typeof Symbol !== \"undefined\" && Symbol.valueOf.call(a) === Symbol.valueOf.call(b)\n )\n case \"[object Map]\":\n case \"[object Set]\":\n // Maps and Sets are unwrapped to arrays of entry-pairs, adding an incidental level.\n // Hide this extra level by increasing the depth.\n if (depth >= 0) {\n depth++\n }\n break\n }\n // Unwrap any wrapped objects.\n a = unwrap(a)\n b = unwrap(b)\n\n const areArrays = className === \"[object Array]\"\n if (!areArrays) {\n if (typeof a != \"object\" || typeof b != \"object\") {\n return false\n }\n\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n const aCtor = a.constructor,\n bCtor = b.constructor\n if (\n aCtor !== bCtor &&\n !(\n isFunction(aCtor) &&\n aCtor instanceof aCtor &&\n isFunction(bCtor) &&\n bCtor instanceof bCtor\n ) &&\n \"constructor\" in a &&\n \"constructor\" in b\n ) {\n return false\n }\n }\n\n if (depth === 0) {\n return false\n } else if (depth < 0) {\n depth = -1\n }\n\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || []\n bStack = bStack || []\n let length = aStack.length\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) {\n return bStack[length] === b\n }\n }\n\n // Add the first object to the stack of traversed objects.\n aStack.push(a)\n bStack.push(b)\n\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length\n if (length !== b.length) {\n return false\n }\n // Deep compare the contents, ignoring non-numeric properties.\n while (length--) {\n if (!eq(a[length], b[length], depth - 1, aStack, bStack)) {\n return false\n }\n }\n } else {\n // Deep compare objects.\n const keys = Object.keys(a)\n let key\n length = keys.length\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (Object.keys(b).length !== length) {\n return false\n }\n while (length--) {\n // Deep compare each member\n key = keys[length]\n if (!(hasProp(b, key) && eq(a[key], b[key], depth - 1, aStack, bStack))) {\n return false\n }\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop()\n bStack.pop()\n return true\n}\n\nfunction unwrap(a: any) {\n if (isObservableArray(a)) {\n return a.slice()\n }\n if (isES6Map(a) || isObservableMap(a)) {\n return Array.from(a.entries())\n }\n if (isES6Set(a) || isObservableSet(a)) {\n return Array.from(a.entries())\n }\n return a\n}\n","import { getGlobal } from \"../internal\"\n\n// safely get iterator prototype if available\nconst maybeIteratorPrototype = getGlobal().Iterator?.prototype || {}\n\nexport function makeIterable(\n iterator: Iterator\n): IteratorObject {\n iterator[Symbol.iterator] = getSelf\n return Object.assign(Object.create(maybeIteratorPrototype), iterator)\n}\n\nfunction getSelf() {\n return this\n}\n","import { ObservableObjectAdministration, isFunction } from \"../internal\"\n\nexport const enum MakeResult {\n Cancel,\n Break,\n Continue\n}\n\nexport type Annotation = {\n annotationType_: string\n make_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n source: object\n ): MakeResult\n extend_(\n adm: ObservableObjectAdministration,\n key: PropertyKey,\n descriptor: PropertyDescriptor,\n proxyTrap: boolean\n ): boolean | null\n decorate_20223_(value: any, context: DecoratorContext)\n options_?: any\n}\n\nexport type AnnotationMapEntry =\n | Annotation\n | true /* follow the default decorator, usually deep */\n | false /* don't decorate this property */\n\n// AdditionalFields can be used to declare additional keys that can be used, for example to be able to\n// declare annotations for private/ protected members, see #2339\nexport type AnnotationsMap = {\n [P in Exclude]?: AnnotationMapEntry\n} & Record\n\nexport function isAnnotation(thing: any) {\n return (\n // Can be function\n thing instanceof Object &&\n typeof thing.annotationType_ === \"string\" &&\n isFunction(thing.make_) &&\n isFunction(thing.extend_)\n )\n}\n\nexport function isAnnotationMapEntry(thing: any) {\n return typeof thing === \"boolean\" || isAnnotation(thing)\n}\n","/**\n * (c) Michel Weststrate 2015 - 2020\n * MIT Licensed\n *\n * Welcome to the mobx sources! To get a global overview of how MobX internally works,\n * this is a good place to start:\n * https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74\n *\n * Source folders:\n * ===============\n *\n * - api/ Most of the public static methods exposed by the module can be found here.\n * - core/ Implementation of the MobX algorithm; atoms, derivations, reactions, dependency trees, optimizations. Cool stuff can be found here.\n * - types/ All the magic that is need to have observable objects, arrays and values is in this folder. Including the modifiers like `asFlat`.\n * - utils/ Utility stuff.\n *\n */\nimport { die } from \"./errors\"\nimport { getGlobal } from \"./utils/global\"\n;[\"Symbol\", \"Map\", \"Set\"].forEach(m => {\n let g = getGlobal()\n if (typeof g[m] === \"undefined\") {\n die(`MobX requires global '${m}' to be available or polyfilled`)\n }\n})\n\nimport { spy, getDebugName, $mobx } from \"./internal\"\n\nexport {\n IObservable,\n IDepTreeNode,\n Reaction,\n IReactionPublic,\n IReactionDisposer,\n untracked,\n IAtom,\n createAtom,\n spy,\n IComputedValue,\n IEqualsComparer,\n comparer,\n IEnhancer,\n IInterceptable,\n IInterceptor,\n IListenable,\n IObjectWillChange,\n IObjectDidChange,\n isObservableObject,\n IValueDidChange,\n IValueWillChange,\n IObservableValue,\n isObservableValue as isBoxedObservable,\n IObservableArray,\n IArrayWillChange,\n IArrayWillSplice,\n IArraySplice,\n IArrayUpdate,\n IArrayDidChange,\n isObservableArray,\n IKeyValueMap,\n ObservableMap,\n IMapEntries,\n IMapEntry,\n IMapWillChange,\n IMapDidChange,\n isObservableMap,\n IObservableMapInitialValues,\n ObservableSet,\n isObservableSet,\n ISetDidChange,\n ISetWillChange,\n IObservableSetInitialValues,\n transaction,\n observable,\n IObservableFactory,\n CreateObservableOptions,\n computed,\n IComputedFactory,\n isObservable,\n isObservableProp,\n isComputed,\n isComputedProp,\n extendObservable,\n observe,\n intercept,\n autorun,\n IAutorunOptions,\n reaction,\n IReactionOptions,\n when,\n IWhenOptions,\n action,\n isAction,\n runInAction,\n IActionFactory,\n keys,\n values,\n entries,\n set,\n remove,\n has,\n get,\n apiOwnKeys as ownKeys,\n apiDefineProperty as defineProperty,\n configure,\n onBecomeObserved,\n onBecomeUnobserved,\n flow,\n isFlow,\n flowResult,\n FlowCancellationError,\n isFlowCancellationError,\n toJS,\n trace,\n IObserverTree,\n IDependencyTree,\n getDependencyTree,\n getObserverTree,\n resetGlobalState as _resetGlobalState,\n getGlobalState as _getGlobalState,\n getDebugName,\n getAtom,\n getAdministration as _getAdministration,\n allowStateChanges as _allowStateChanges,\n runInAction as _allowStateChangesInsideComputed, // This has become the default behavior in Mobx 6\n Lambda,\n $mobx,\n isComputingDerivation as _isComputingDerivation,\n onReactionError,\n interceptReads as _interceptReads,\n IComputedValueOptions,\n IActionRunInfo,\n _startAction,\n _endAction,\n allowStateReadsStart as _allowStateReadsStart,\n allowStateReadsEnd as _allowStateReadsEnd,\n makeObservable,\n makeAutoObservable,\n autoAction as _autoAction,\n AnnotationsMap,\n AnnotationMapEntry,\n override\n} from \"./internal\"\n\n// Devtools support\ndeclare const __MOBX_DEVTOOLS_GLOBAL_HOOK__: { injectMobx: (any) => void }\nif (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === \"object\") {\n // See: https://github.com/andykog/mobx-devtools/\n __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({\n spy,\n extras: {\n getDebugName\n },\n $mobx\n })\n}\n","let load = require('./helpers/browser/esm-js-loader');\nmodule.exports = (load(\"lwDaG\")).then(() => parcelRequire('lqqxu'));","\"use strict\";\n\nfunction load(id) {\n // eslint-disable-next-line no-undef\n return __parcel__import__(require('../bundle-manifest').resolve(id));\n}\nmodule.exports = load;","require('./helpers/bundle-manifest').register(new __parcel__URL__(\"\").toString(),JSON.parse(\"[\\\"aEKk8\\\",\\\"index.362ffb12.js\\\",\\\"lwDaG\\\",\\\"async.fcf3ae1c.js\\\"]\"));","import { DOMRenderer } from 'dom-renderer';\r\nimport { configure } from 'mobx';\r\nimport { lazy } from 'web-cell';\r\nimport { documentReady } from 'web-utility';\r\nimport { createRouter } from '../../../source';\r\n\r\nimport { TestPage } from './example';\r\n\r\nconst AsyncPage = lazy(() => import('./async'));\r\n\r\nconfigure({ enforceActions: 'never' });\r\n\r\nconst { Route, Link } = createRouter();\r\n\r\ndocumentReady.then(() =>\r\n new DOMRenderer().render(\r\n <>\r\n \r\n
\r\n
Home Page
}\r\n />\r\n \r\n \r\n \r\n
\r\n \r\n )\r\n);\r\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"./VDOM\"), exports);\ntslib_1.__exportStar(require(\"./DOMRenderer\"), exports);\n","import {jsx as $42h8L$jsx, Fragment as $42h8L$Fragment} from \"dom-renderer/jsx-runtime\";\nimport {observable as $42h8L$observable, autorun as $42h8L$autorun, reaction as $42h8L$reaction} from \"mobx\";\nimport {importCSS as $42h8L$importCSS, delegate as $42h8L$delegate, isEmpty as $42h8L$isEmpty, toCamelCase as $42h8L$toCamelCase, parseJSON as $42h8L$parseJSON, isHTMLElementClass as $42h8L$isHTMLElementClass, toHyphenCase as $42h8L$toHyphenCase} from \"web-utility\";\nimport {DOMRenderer as $42h8L$DOMRenderer, VNode as $42h8L$VNode} from \"dom-renderer\";\n\n\nfunction $parcel$exportWildcard(dest, source) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function get() {\n return source[key];\n }\n });\n });\n\n return dest;\n}\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\nvar $d4436c849e74ae70$exports = {};\n\n$parcel$export($d4436c849e74ae70$exports, \"AnimateCSS\", function () { return $d4436c849e74ae70$export$2e9a7bb10257a509; });\n\n\n\nvar $552a56cc5ff3f479$exports = {};\n\n$parcel$export($552a56cc5ff3f479$exports, \"Defer\", function () { return $552a56cc5ff3f479$export$c7e91f8aec23ae14; });\n$parcel$export($552a56cc5ff3f479$exports, \"getMobxData\", function () { return $552a56cc5ff3f479$export$b06b4c21253e26e2; });\n$parcel$export($552a56cc5ff3f479$exports, \"animated\", function () { return $552a56cc5ff3f479$export$4077c0dfbe9c3861; });\n\nclass $552a56cc5ff3f479$export$c7e91f8aec23ae14 {\n constructor(){\n Object.defineProperty(this, \"resolve\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"reject\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"promise\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: new Promise((resolve, reject)=>{\n this.resolve = resolve;\n this.reject = reject;\n })\n });\n }\n}\nfunction $552a56cc5ff3f479$export$b06b4c21253e26e2(observable) {\n var _a;\n for (const key of Object.getOwnPropertySymbols(observable)){\n const store = (_a = observable[key]) === null || _a === void 0 ? void 0 : _a.values_;\n if (store instanceof Map) return Object.fromEntries(Array.from(store, ([key, { value_: value_ }])=>[\n key,\n value_\n ]));\n }\n}\nconst $552a56cc5ff3f479$export$4077c0dfbe9c3861 = (root, targetSelector)=>new Promise((resolve)=>{\n const ended = (0, $42h8L$delegate)(targetSelector, (event)=>{\n root.removeEventListener('animationend', ended);\n root.removeEventListener('animationcancel', ended);\n resolve(event);\n });\n root.addEventListener('animationend', ended);\n root.addEventListener('animationcancel', ended);\n });\n\n\nvar $317b1f21909c74b8$exports = {};\n\n$parcel$export($317b1f21909c74b8$exports, \"component\", function () { return $317b1f21909c74b8$export$d8556a2a8f973135; });\n$parcel$export($317b1f21909c74b8$exports, \"on\", function () { return $317b1f21909c74b8$export$af631764ddc44097; });\n\n\n\nconst $317b1f21909c74b8$var$eventMap = new WeakMap();\nfunction $317b1f21909c74b8$export$d8556a2a8f973135(meta) {\n return (Class, { addInitializer: addInitializer })=>{\n class RendererComponent extends Class {\n get root() {\n return this.shadowRoot || this.internals.shadowRoot || this;\n }\n constructor(){\n var _a;\n super();\n Object.defineProperty(this, \"internals\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: this.tagName.includes('-') ? this.attachInternals() : undefined\n });\n Object.defineProperty(this, \"renderer\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: new (0, $42h8L$DOMRenderer)()\n });\n Object.defineProperty(this, \"mounted\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: false\n });\n if (meta.mode && !((_a = this.internals) === null || _a === void 0 ? void 0 : _a.shadowRoot)) this.attachShadow(meta);\n }\n async connectedCallback() {\n var _a, _b;\n const { mode: mode } = meta;\n const renderChildren = !(mode != null);\n const { root: root } = this, events = $317b1f21909c74b8$var$eventMap.get(this) || [];\n for (const { type: type, selector: selector, handler: handler } of events){\n if (renderChildren && /^:host/.test(selector)) console.warn(`[WebCell] DOM Event delegation of \"${selector}\" won't work if you don't invoke \"this.attachShadow()\" manually.`);\n root.addEventListener(type, handler);\n }\n (_a = super['connectedCallback']) === null || _a === void 0 || _a.call(this);\n if (this.mounted) return;\n await this.update();\n this.mounted = true;\n (_b = this.mountedCallback) === null || _b === void 0 || _b.call(this);\n }\n updateDOM(content) {\n var _a, _b;\n const result = this.renderer.render(content, this.root, meta.renderMode);\n return result instanceof Promise ? result.then((_a = this.updatedCallback) === null || _a === void 0 ? void 0 : _a.bind(this)) : (_b = this.updatedCallback) === null || _b === void 0 ? void 0 : _b.call(this);\n }\n async update() {\n var _a;\n const vNode = (_a = this.render) === null || _a === void 0 ? void 0 : _a.call(this);\n const content = (0, $42h8L$isEmpty)(vNode) ? meta.mode ? (0, $42h8L$jsx)(\"slot\", {}) : null : vNode;\n if (!(content != null)) return;\n if (!meta.transitible || typeof document.startViewTransition !== 'function') return this.updateDOM(content);\n const { updateCallbackDone: updateCallbackDone, finished: finished } = document.startViewTransition(()=>this.updateDOM(content));\n try {\n await finished;\n } catch (_b) {\n return updateCallbackDone;\n }\n }\n disconnectedCallback() {\n var _a;\n const { root: root } = this, events = $317b1f21909c74b8$var$eventMap.get(this) || [];\n for (const { type: type, handler: handler } of events)root.removeEventListener(type, handler);\n (_a = super['disconnectedCallback']) === null || _a === void 0 || _a.call(this);\n }\n emit(event, detail, { cancelable: cancelable, bubbles: bubbles, composed: composed } = {}) {\n return this.dispatchEvent(new CustomEvent(event, {\n detail: detail,\n cancelable: cancelable,\n bubbles: bubbles,\n composed: composed\n }));\n }\n }\n addInitializer(function() {\n var _a;\n (_a = globalThis.customElements) === null || _a === void 0 || _a.define(meta.tagName, this, meta);\n });\n return RendererComponent;\n };\n}\nfunction $317b1f21909c74b8$export$af631764ddc44097(type, selector) {\n return (method, { addInitializer: addInitializer })=>addInitializer(function() {\n const events = $317b1f21909c74b8$var$eventMap.get(this) || [], handler = (0, $42h8L$delegate)(selector, method.bind(this));\n events.push({\n type: type,\n selector: selector,\n handler: handler\n });\n $317b1f21909c74b8$var$eventMap.set(this, events);\n });\n}\n\n\nvar $0c03e47eb1097734$exports = {};\n\n$parcel$export($0c03e47eb1097734$exports, \"observer\", function () { return $0c03e47eb1097734$export$b6ae1bc530f4c149; });\n$parcel$export($0c03e47eb1097734$exports, \"attribute\", function () { return $0c03e47eb1097734$export$af4b9a83f4b00434; });\n$parcel$export($0c03e47eb1097734$exports, \"reaction\", function () { return $0c03e47eb1097734$export$7203b476385689ae; });\n\n\n\n\nvar $0c03e47eb1097734$var$__classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nfunction $0c03e47eb1097734$var$wrapFunction(func) {\n const renderer = new (0, $42h8L$DOMRenderer)();\n return (props)=>{\n let tree = func(props), root;\n if (!(0, $42h8L$VNode).isFragment(tree)) {\n const disposer = (0, $42h8L$autorun)(()=>{\n tree = func(props);\n if (tree && root) renderer.patch((0, $42h8L$VNode).fromDOM(root), tree);\n });\n const { ref: ref } = tree;\n tree.ref = (node)=>{\n if (node) root = node;\n else disposer();\n ref === null || ref === void 0 || ref(node);\n };\n }\n return tree;\n };\n}\nconst $0c03e47eb1097734$var$reactionMap = new WeakMap();\nfunction $0c03e47eb1097734$var$wrapClass(Component) {\n var _ObserverComponent_instances, _ObserverComponent_boot;\n class ObserverComponent extends Component {\n get props() {\n return (0, $552a56cc5ff3f479$export$b06b4c21253e26e2)(this);\n }\n constructor(){\n super();\n _ObserverComponent_instances.add(this);\n Object.defineProperty(this, \"disposers\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: []\n });\n Object.defineProperty(this, \"update\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: ()=>{\n const { update: update } = Object.getPrototypeOf(this);\n return new Promise((resolve)=>this.disposers.push((0, $42h8L$autorun)(()=>update.call(this).then(resolve))));\n }\n });\n Promise.resolve().then(()=>$0c03e47eb1097734$var$__classPrivateFieldGet(this, _ObserverComponent_instances, \"m\", _ObserverComponent_boot).call(this));\n }\n disconnectedCallback() {\n var _a;\n for (const disposer of this.disposers)disposer();\n this.disposers.length = 0;\n (_a = super['disconnectedCallback']) === null || _a === void 0 || _a.call(this);\n }\n setAttribute(name, value) {\n const old = super.getAttribute(name), names = this.constructor['observedAttributes'];\n super.setAttribute(name, value);\n if (names.includes(name)) this.attributeChangedCallback(name, old, value);\n }\n attributeChangedCallback(name, old, value) {\n var _a;\n this[(0, $42h8L$toCamelCase)(name)] = (0, $42h8L$parseJSON)(value);\n (_a = super['attributeChangedCallback']) === null || _a === void 0 || _a.call(this, name, old, value);\n }\n syncPropAttr(name) {\n var _a;\n let value = this[(0, $42h8L$toCamelCase)(name)];\n if (!(value != null) || value === false) return this.removeAttribute(name);\n value = value === true ? name : value;\n if (typeof value === 'object') {\n value = (_a = value.toJSON) === null || _a === void 0 ? void 0 : _a.call(value);\n value = typeof value === 'object' ? JSON.stringify(value) : value;\n }\n super.setAttribute(name, value);\n }\n }\n _ObserverComponent_instances = new WeakSet(), _ObserverComponent_boot = function _ObserverComponent_boot() {\n const names = this.constructor['observedAttributes'] || [], reactions = $0c03e47eb1097734$var$reactionMap.get(this) || [];\n this.disposers.push(...names.map((name)=>(0, $42h8L$autorun)(()=>this.syncPropAttr(name))), ...reactions.map(({ expression: expression, effect: effect })=>(0, $42h8L$reaction)((reaction)=>expression(this, reaction), effect.bind(this))));\n };\n Object.defineProperty(ObserverComponent, \"observedAttributes\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: []\n });\n return ObserverComponent;\n}\nfunction $0c03e47eb1097734$export$b6ae1bc530f4c149(func, _) {\n return (0, $42h8L$isHTMLElementClass)(func) ? $0c03e47eb1097734$var$wrapClass(func) : $0c03e47eb1097734$var$wrapFunction(func);\n}\nfunction $0c03e47eb1097734$export$af4b9a83f4b00434(_, { name: name, addInitializer: addInitializer }) {\n addInitializer(function() {\n const names = this.constructor['observedAttributes'], attribute = (0, $42h8L$toHyphenCase)(name.toString());\n if (!names.includes(attribute)) names.push(attribute);\n });\n}\nfunction $0c03e47eb1097734$export$7203b476385689ae(expression) {\n return (effect, { addInitializer: addInitializer })=>addInitializer(function() {\n const reactions = $0c03e47eb1097734$var$reactionMap.get(this) || [];\n reactions.push({\n expression: expression,\n effect: effect\n });\n $0c03e47eb1097734$var$reactionMap.set(this, reactions);\n });\n}\n\n\nvar $819b340f625a29f4$exports = {};\n\n\nvar $d4436c849e74ae70$var$__runInitializers = undefined && undefined.__runInitializers || function(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n};\nvar $d4436c849e74ae70$var$__esDecorate = undefined && undefined.__esDecorate || function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\nvar $d4436c849e74ae70$var$__setFunctionName = undefined && undefined.__setFunctionName || function(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n};\nvar $d4436c849e74ae70$var$__classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar $d4436c849e74ae70$var$__classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n};\nlet $d4436c849e74ae70$export$2e9a7bb10257a509 = (()=>{\n var _AnimateCSS_type_accessor_storage, _AnimateCSS_playing_accessor_storage;\n let _classDecorators = [\n (0, $317b1f21909c74b8$export$d8556a2a8f973135)({\n tagName: 'animation-css'\n }),\n (0, $0c03e47eb1097734$export$b6ae1bc530f4c149)\n ];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _type_decorators;\n let _type_initializers = [];\n let _type_extraInitializers = [];\n let _playing_decorators;\n let _playing_initializers = [];\n let _playing_extraInitializers = [];\n let _typeChanged_decorators;\n var AnimateCSS = _classThis = class extends _classSuper {\n constructor(){\n super(...arguments);\n _AnimateCSS_type_accessor_storage.set(this, ($d4436c849e74ae70$var$__runInitializers(this, _instanceExtraInitializers), $d4436c849e74ae70$var$__runInitializers(this, _type_initializers, void 0)));\n _AnimateCSS_playing_accessor_storage.set(this, ($d4436c849e74ae70$var$__runInitializers(this, _type_extraInitializers), $d4436c849e74ae70$var$__runInitializers(this, _playing_initializers, false)));\n Object.defineProperty(this, \"component\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: $d4436c849e74ae70$var$__runInitializers(this, _playing_extraInitializers)\n });\n }\n get type() {\n return $d4436c849e74ae70$var$__classPrivateFieldGet(this, _AnimateCSS_type_accessor_storage, \"f\");\n }\n set type(value) {\n $d4436c849e74ae70$var$__classPrivateFieldSet(this, _AnimateCSS_type_accessor_storage, value, \"f\");\n }\n get playing() {\n return $d4436c849e74ae70$var$__classPrivateFieldGet(this, _AnimateCSS_playing_accessor_storage, \"f\");\n }\n set playing(value) {\n $d4436c849e74ae70$var$__classPrivateFieldSet(this, _AnimateCSS_playing_accessor_storage, value, \"f\");\n }\n async connectedCallback() {\n await (0, $42h8L$importCSS)('https://unpkg.com/animate.css@4/animate.min.css');\n this.typeChanged();\n }\n async typeChanged() {\n this.playing = true;\n await (0, $552a56cc5ff3f479$export$4077c0dfbe9c3861)(this, '.animate__animated');\n this.playing = false;\n }\n render() {\n const { type: type, playing: playing, component: Tag } = this;\n return playing ? (0, $42h8L$jsx)(Tag, {\n className: `animate__animated animate__${type}`\n }) : type.includes('Out') ? (0, $42h8L$jsx)((0, $42h8L$Fragment), {}) : (0, $42h8L$jsx)(Tag, {});\n }\n };\n _AnimateCSS_type_accessor_storage = new WeakMap();\n _AnimateCSS_playing_accessor_storage = new WeakMap();\n $d4436c849e74ae70$var$__setFunctionName(_classThis, \"AnimateCSS\");\n (()=>{\n var _a;\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;\n _type_decorators = [\n (0, $0c03e47eb1097734$export$af4b9a83f4b00434),\n (0, $42h8L$observable)\n ];\n _playing_decorators = [\n (0, $0c03e47eb1097734$export$af4b9a83f4b00434),\n (0, $42h8L$observable)\n ];\n _typeChanged_decorators = [\n (0, $0c03e47eb1097734$export$7203b476385689ae)(({ type: type })=>type)\n ];\n $d4436c849e74ae70$var$__esDecorate(_classThis, null, _type_decorators, {\n kind: \"accessor\",\n name: \"type\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"type\" in obj,\n get: (obj)=>obj.type,\n set: (obj, value)=>{\n obj.type = value;\n }\n },\n metadata: _metadata\n }, _type_initializers, _type_extraInitializers);\n $d4436c849e74ae70$var$__esDecorate(_classThis, null, _playing_decorators, {\n kind: \"accessor\",\n name: \"playing\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"playing\" in obj,\n get: (obj)=>obj.playing,\n set: (obj, value)=>{\n obj.playing = value;\n }\n },\n metadata: _metadata\n }, _playing_initializers, _playing_extraInitializers);\n $d4436c849e74ae70$var$__esDecorate(_classThis, null, _typeChanged_decorators, {\n kind: \"method\",\n name: \"typeChanged\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"typeChanged\" in obj,\n get: (obj)=>obj.typeChanged\n },\n metadata: _metadata\n }, null, _instanceExtraInitializers);\n $d4436c849e74ae70$var$__esDecorate(null, _classDescriptor = {\n value: _classThis\n }, _classDecorators, {\n kind: \"class\",\n name: _classThis.name,\n metadata: _metadata\n }, null, _classExtraInitializers);\n AnimateCSS = _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: _metadata\n });\n $d4436c849e74ae70$var$__runInitializers(_classThis, _classExtraInitializers);\n })();\n return AnimateCSS = _classThis;\n})();\n$parcel$exportWildcard($d4436c849e74ae70$exports, $819b340f625a29f4$exports);\n\n\nvar $8acf79bd061a8fc3$exports = {};\n\n$parcel$export($8acf79bd061a8fc3$exports, \"AsyncCell\", function () { return $8acf79bd061a8fc3$export$854a54a999c89982; });\n$parcel$export($8acf79bd061a8fc3$exports, \"lazy\", function () { return $8acf79bd061a8fc3$export$488013bae63b21da; });\n\n\n\n\nvar $8acf79bd061a8fc3$var$__esDecorate = undefined && undefined.__esDecorate || function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\nvar $8acf79bd061a8fc3$var$__runInitializers = undefined && undefined.__runInitializers || function(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n};\nvar $8acf79bd061a8fc3$var$__setFunctionName = undefined && undefined.__setFunctionName || function(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n};\nvar $8acf79bd061a8fc3$var$__classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar $8acf79bd061a8fc3$var$__classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n};\nvar $8acf79bd061a8fc3$var$__rest = undefined && undefined.__rest || function(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nlet $8acf79bd061a8fc3$export$854a54a999c89982 = (()=>{\n var _AsyncCell_component_accessor_storage, _AsyncCell_delegatedProps_accessor_storage;\n let _classDecorators = [\n (0, $317b1f21909c74b8$export$d8556a2a8f973135)({\n tagName: 'async-cell'\n }),\n (0, $0c03e47eb1097734$export$b6ae1bc530f4c149)\n ];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _component_decorators;\n let _component_initializers = [];\n let _component_extraInitializers = [];\n let _delegatedProps_decorators;\n let _delegatedProps_initializers = [];\n let _delegatedProps_extraInitializers = [];\n var AsyncCell = _classThis = class extends _classSuper {\n get component() {\n return $8acf79bd061a8fc3$var$__classPrivateFieldGet(this, _AsyncCell_component_accessor_storage, \"f\");\n }\n set component(value) {\n $8acf79bd061a8fc3$var$__classPrivateFieldSet(this, _AsyncCell_component_accessor_storage, value, \"f\");\n }\n get delegatedProps() {\n return $8acf79bd061a8fc3$var$__classPrivateFieldGet(this, _AsyncCell_delegatedProps_accessor_storage, \"f\");\n }\n set delegatedProps(value) {\n $8acf79bd061a8fc3$var$__classPrivateFieldSet(this, _AsyncCell_delegatedProps_accessor_storage, value, \"f\");\n }\n connectedCallback() {\n this.load();\n }\n async load() {\n this.component = undefined;\n const Tag = await this.loader();\n this.component = (_a)=>{\n var { children: children } = _a, props = $8acf79bd061a8fc3$var$__rest(_a, [\n \"children\"\n ]);\n return (0, $42h8L$jsx)(Tag, Object.assign({}, props, {\n children: children\n }));\n };\n this.emit('load', this.component);\n }\n render() {\n const { component: Tag, props: props, delegatedProps: delegatedProps } = this;\n const _a = Object.assign(Object.assign({}, props), delegatedProps), { children: children } = _a, data = $8acf79bd061a8fc3$var$__rest(_a, [\n \"children\"\n ]);\n return Tag && (0, $42h8L$jsx)(Tag, Object.assign({}, data, {\n children: children\n }));\n }\n constructor(){\n super(...arguments);\n Object.defineProperty(this, \"loader\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n _AsyncCell_component_accessor_storage.set(this, $8acf79bd061a8fc3$var$__runInitializers(this, _component_initializers, void 0));\n _AsyncCell_delegatedProps_accessor_storage.set(this, ($8acf79bd061a8fc3$var$__runInitializers(this, _component_extraInitializers), $8acf79bd061a8fc3$var$__runInitializers(this, _delegatedProps_initializers, void 0)));\n $8acf79bd061a8fc3$var$__runInitializers(this, _delegatedProps_extraInitializers);\n }\n };\n _AsyncCell_component_accessor_storage = new WeakMap();\n _AsyncCell_delegatedProps_accessor_storage = new WeakMap();\n $8acf79bd061a8fc3$var$__setFunctionName(_classThis, \"AsyncCell\");\n (()=>{\n var _a;\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;\n _component_decorators = [\n (0, $42h8L$observable)\n ];\n _delegatedProps_decorators = [\n (0, $42h8L$observable)\n ];\n $8acf79bd061a8fc3$var$__esDecorate(_classThis, null, _component_decorators, {\n kind: \"accessor\",\n name: \"component\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"component\" in obj,\n get: (obj)=>obj.component,\n set: (obj, value)=>{\n obj.component = value;\n }\n },\n metadata: _metadata\n }, _component_initializers, _component_extraInitializers);\n $8acf79bd061a8fc3$var$__esDecorate(_classThis, null, _delegatedProps_decorators, {\n kind: \"accessor\",\n name: \"delegatedProps\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"delegatedProps\" in obj,\n get: (obj)=>obj.delegatedProps,\n set: (obj, value)=>{\n obj.delegatedProps = value;\n }\n },\n metadata: _metadata\n }, _delegatedProps_initializers, _delegatedProps_extraInitializers);\n $8acf79bd061a8fc3$var$__esDecorate(null, _classDescriptor = {\n value: _classThis\n }, _classDecorators, {\n kind: \"class\",\n name: _classThis.name,\n metadata: _metadata\n }, null, _classExtraInitializers);\n AsyncCell = _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: _metadata\n });\n $8acf79bd061a8fc3$var$__runInitializers(_classThis, _classExtraInitializers);\n })();\n return AsyncCell = _classThis;\n})();\nfunction $8acf79bd061a8fc3$export$488013bae63b21da(loader) {\n return (props)=>(0, $42h8L$jsx)($8acf79bd061a8fc3$export$854a54a999c89982, {\n delegatedProps: props,\n loader: async ()=>(await loader()).default\n });\n}\n\n\n\n\n\nvar $29675797ddd6c4f7$exports = {};\n\n$parcel$export($29675797ddd6c4f7$exports, \"formField\", function () { return $29675797ddd6c4f7$export$2a668e8d088a0667; });\n\n\nvar $29675797ddd6c4f7$var$__runInitializers = undefined && undefined.__runInitializers || function(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n};\nvar $29675797ddd6c4f7$var$__esDecorate = undefined && undefined.__esDecorate || function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\nvar $29675797ddd6c4f7$var$__classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar $29675797ddd6c4f7$var$__classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n};\nfunction $29675797ddd6c4f7$export$2a668e8d088a0667(Class, _) {\n let FormFieldComponent = (()=>{\n var _a, _FormFieldComponent_name_accessor_storage, _FormFieldComponent_value_accessor_storage, _FormFieldComponent_required_accessor_storage, _FormFieldComponent_disabled_accessor_storage, _FormFieldComponent_autofocus_accessor_storage;\n let _classSuper = Class;\n let _instanceExtraInitializers = [];\n let _setValue_decorators;\n let _name_decorators;\n let _name_initializers = [];\n let _name_extraInitializers = [];\n let _value_decorators;\n let _value_initializers = [];\n let _value_extraInitializers = [];\n let _required_decorators;\n let _required_initializers = [];\n let _required_extraInitializers = [];\n let _disabled_decorators;\n let _disabled_initializers = [];\n let _disabled_extraInitializers = [];\n let _autofocus_decorators;\n let _autofocus_initializers = [];\n let _autofocus_extraInitializers = [];\n return _a = class FormFieldComponent extends _classSuper {\n setValue(value) {\n this.internals.setFormValue(value);\n }\n formDisabledCallback(disabled) {\n this.disabled = disabled;\n }\n get name() {\n return $29675797ddd6c4f7$var$__classPrivateFieldGet(this, _FormFieldComponent_name_accessor_storage, \"f\");\n }\n set name(value) {\n $29675797ddd6c4f7$var$__classPrivateFieldSet(this, _FormFieldComponent_name_accessor_storage, value, \"f\");\n }\n get value() {\n return $29675797ddd6c4f7$var$__classPrivateFieldGet(this, _FormFieldComponent_value_accessor_storage, \"f\");\n }\n set value(value) {\n $29675797ddd6c4f7$var$__classPrivateFieldSet(this, _FormFieldComponent_value_accessor_storage, value, \"f\");\n }\n get required() {\n return $29675797ddd6c4f7$var$__classPrivateFieldGet(this, _FormFieldComponent_required_accessor_storage, \"f\");\n }\n set required(value) {\n $29675797ddd6c4f7$var$__classPrivateFieldSet(this, _FormFieldComponent_required_accessor_storage, value, \"f\");\n }\n get disabled() {\n return $29675797ddd6c4f7$var$__classPrivateFieldGet(this, _FormFieldComponent_disabled_accessor_storage, \"f\");\n }\n set disabled(value) {\n $29675797ddd6c4f7$var$__classPrivateFieldSet(this, _FormFieldComponent_disabled_accessor_storage, value, \"f\");\n }\n get autofocus() {\n return $29675797ddd6c4f7$var$__classPrivateFieldGet(this, _FormFieldComponent_autofocus_accessor_storage, \"f\");\n }\n set autofocus(value) {\n $29675797ddd6c4f7$var$__classPrivateFieldSet(this, _FormFieldComponent_autofocus_accessor_storage, value, \"f\");\n }\n set defaultValue(raw) {\n var _b;\n this.setAttribute('value', raw);\n (_b = this.value) !== null && _b !== void 0 ? _b : this.value = raw;\n }\n get defaultValue() {\n return this.getAttribute('value');\n }\n get form() {\n return this.internals.form;\n }\n get validity() {\n return this.internals.validity;\n }\n get validationMessage() {\n return this.internals.validationMessage;\n }\n get willValidate() {\n return this.internals.willValidate;\n }\n checkValidity() {\n return this.internals.checkValidity();\n }\n reportValidity() {\n return this.internals.reportValidity();\n }\n constructor(){\n super(...arguments);\n _FormFieldComponent_name_accessor_storage.set(this, ($29675797ddd6c4f7$var$__runInitializers(this, _instanceExtraInitializers), $29675797ddd6c4f7$var$__runInitializers(this, _name_initializers, void 0)));\n _FormFieldComponent_value_accessor_storage.set(this, ($29675797ddd6c4f7$var$__runInitializers(this, _name_extraInitializers), $29675797ddd6c4f7$var$__runInitializers(this, _value_initializers, void 0)));\n _FormFieldComponent_required_accessor_storage.set(this, ($29675797ddd6c4f7$var$__runInitializers(this, _value_extraInitializers), $29675797ddd6c4f7$var$__runInitializers(this, _required_initializers, void 0)));\n _FormFieldComponent_disabled_accessor_storage.set(this, ($29675797ddd6c4f7$var$__runInitializers(this, _required_extraInitializers), $29675797ddd6c4f7$var$__runInitializers(this, _disabled_initializers, void 0)));\n _FormFieldComponent_autofocus_accessor_storage.set(this, ($29675797ddd6c4f7$var$__runInitializers(this, _disabled_extraInitializers), $29675797ddd6c4f7$var$__runInitializers(this, _autofocus_initializers, void 0)));\n $29675797ddd6c4f7$var$__runInitializers(this, _autofocus_extraInitializers);\n }\n }, _FormFieldComponent_name_accessor_storage = new WeakMap(), _FormFieldComponent_value_accessor_storage = new WeakMap(), _FormFieldComponent_required_accessor_storage = new WeakMap(), _FormFieldComponent_disabled_accessor_storage = new WeakMap(), _FormFieldComponent_autofocus_accessor_storage = new WeakMap(), (()=>{\n var _b;\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create((_b = _classSuper[Symbol.metadata]) !== null && _b !== void 0 ? _b : null) : void 0;\n _setValue_decorators = [\n (0, $0c03e47eb1097734$export$7203b476385689ae)(({ value: value })=>value)\n ];\n _name_decorators = [\n (0, $0c03e47eb1097734$export$af4b9a83f4b00434),\n (0, $42h8L$observable)\n ];\n _value_decorators = [\n (0, $42h8L$observable)\n ];\n _required_decorators = [\n (0, $0c03e47eb1097734$export$af4b9a83f4b00434),\n (0, $42h8L$observable)\n ];\n _disabled_decorators = [\n (0, $0c03e47eb1097734$export$af4b9a83f4b00434),\n (0, $42h8L$observable)\n ];\n _autofocus_decorators = [\n (0, $0c03e47eb1097734$export$af4b9a83f4b00434),\n (0, $42h8L$observable)\n ];\n $29675797ddd6c4f7$var$__esDecorate(_a, null, _setValue_decorators, {\n kind: \"method\",\n name: \"setValue\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"setValue\" in obj,\n get: (obj)=>obj.setValue\n },\n metadata: _metadata\n }, null, _instanceExtraInitializers);\n $29675797ddd6c4f7$var$__esDecorate(_a, null, _name_decorators, {\n kind: \"accessor\",\n name: \"name\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"name\" in obj,\n get: (obj)=>obj.name,\n set: (obj, value)=>{\n obj.name = value;\n }\n },\n metadata: _metadata\n }, _name_initializers, _name_extraInitializers);\n $29675797ddd6c4f7$var$__esDecorate(_a, null, _value_decorators, {\n kind: \"accessor\",\n name: \"value\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"value\" in obj,\n get: (obj)=>obj.value,\n set: (obj, value)=>{\n obj.value = value;\n }\n },\n metadata: _metadata\n }, _value_initializers, _value_extraInitializers);\n $29675797ddd6c4f7$var$__esDecorate(_a, null, _required_decorators, {\n kind: \"accessor\",\n name: \"required\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"required\" in obj,\n get: (obj)=>obj.required,\n set: (obj, value)=>{\n obj.required = value;\n }\n },\n metadata: _metadata\n }, _required_initializers, _required_extraInitializers);\n $29675797ddd6c4f7$var$__esDecorate(_a, null, _disabled_decorators, {\n kind: \"accessor\",\n name: \"disabled\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"disabled\" in obj,\n get: (obj)=>obj.disabled,\n set: (obj, value)=>{\n obj.disabled = value;\n }\n },\n metadata: _metadata\n }, _disabled_initializers, _disabled_extraInitializers);\n $29675797ddd6c4f7$var$__esDecorate(_a, null, _autofocus_decorators, {\n kind: \"accessor\",\n name: \"autofocus\",\n static: false,\n private: false,\n access: {\n has: (obj)=>\"autofocus\" in obj,\n get: (obj)=>obj.autofocus,\n set: (obj, value)=>{\n obj.autofocus = value;\n }\n },\n metadata: _metadata\n }, _autofocus_initializers, _autofocus_extraInitializers);\n if (_metadata) Object.defineProperty(_a, Symbol.metadata, {\n enumerable: true,\n configurable: true,\n writable: true,\n value: _metadata\n });\n })(), Object.defineProperty(_a, \"formAssociated\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: true\n }), _a;\n })();\n return FormFieldComponent;\n}\n\n\n\n\nexport {$d4436c849e74ae70$export$2e9a7bb10257a509 as AnimateCSS, $8acf79bd061a8fc3$export$854a54a999c89982 as AsyncCell, $8acf79bd061a8fc3$export$488013bae63b21da as lazy, $0c03e47eb1097734$export$b6ae1bc530f4c149 as observer, $0c03e47eb1097734$export$af4b9a83f4b00434 as attribute, $0c03e47eb1097734$export$7203b476385689ae as reaction, $552a56cc5ff3f479$export$c7e91f8aec23ae14 as Defer, $552a56cc5ff3f479$export$b06b4c21253e26e2 as getMobxData, $552a56cc5ff3f479$export$4077c0dfbe9c3861 as animated, $317b1f21909c74b8$export$d8556a2a8f973135 as component, $317b1f21909c74b8$export$af631764ddc44097 as on, $29675797ddd6c4f7$export$2a668e8d088a0667 as formField};\n//# sourceMappingURL=index.esm.js.map\n","export * from './Animation';\nexport * from './Async';\nexport * from './decorator';\nexport * from './utility';\nexport * from './WebCell';\nexport * from './WebField';\n","import { observable } from 'mobx';\nimport { importCSS } from 'web-utility';\n\nimport { animated } from '../utility';\nimport { WebCell, WebCellProps, component } from '../WebCell';\nimport { FC, attribute, observer, reaction } from '../decorator';\nimport { AnimationType } from './type';\n\nexport * from './type';\n\nexport interface AnimateCSSProps {\n type: AnimationType;\n component: FC;\n}\n\nexport interface AnimateCSS extends WebCell {}\n\n@component({ tagName: 'animation-css' })\n@observer\nexport class AnimateCSS\n extends HTMLElement\n implements WebCell\n{\n @attribute\n @observable\n accessor type: AnimationType;\n\n @attribute\n @observable\n accessor playing = false;\n\n component: FC;\n\n async connectedCallback() {\n await importCSS('https://unpkg.com/animate.css@4/animate.min.css');\n\n this.typeChanged();\n }\n\n @reaction(({ type }) => type)\n async typeChanged() {\n this.playing = true;\n\n await animated(this, '.animate__animated');\n\n this.playing = false;\n }\n\n render() {\n const { type, playing, component: Tag } = this;\n\n return playing ? (\n \n ) : type.includes('Out') ? (\n <>\n ) : (\n \n );\n }\n}\n","import { DataObject } from 'dom-renderer';\nimport { ObservableValue } from 'mobx/dist/internal';\nimport { delegate } from 'web-utility';\n\nexport class Defer {\n resolve: (value: T | PromiseLike) => void;\n reject: (reason?: any) => void;\n\n promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n}\n\nexport function getMobxData(observable: T) {\n for (const key of Object.getOwnPropertySymbols(observable)) {\n const store = observable[key as keyof T]?.values_ as Map<\n string,\n ObservableValue\n >;\n if (store instanceof Map)\n return Object.fromEntries(\n Array.from(store, ([key, { value_ }]) => [key, value_])\n ) as T;\n }\n}\n\nexport const animated = (\n root: T,\n targetSelector: string\n) =>\n new Promise(resolve => {\n const ended = delegate(targetSelector, (event: AnimationEvent) => {\n root.removeEventListener('animationend', ended);\n root.removeEventListener('animationcancel', ended);\n resolve(event);\n });\n\n root.addEventListener('animationend', ended);\n root.addEventListener('animationcancel', ended);\n });\n","import { DOMRenderer, JsxProps, RenderMode, VNode } from 'dom-renderer';\nimport {\n CustomElement,\n delegate,\n DelegateEventHandler,\n isEmpty\n} from 'web-utility';\n\nexport interface ComponentMeta\n extends ElementDefinitionOptions,\n Partial {\n tagName: string;\n transitible?: boolean;\n renderMode?: RenderMode;\n}\n\nexport type ClassComponent = CustomElementConstructor;\n\nexport type WebCellProps = JsxProps;\n\nexport interface WebCell

extends CustomElement {\n props: P & WebCellProps;\n internals: ReturnType;\n renderer: DOMRenderer;\n root: ParentNode;\n mounted: boolean;\n update: () => Promise;\n /**\n * Called at DOM tree updated\n */\n updatedCallback?: () => any;\n /**\n * Called at first time of DOM tree updated\n */\n mountedCallback?: () => any;\n emit: (event: string, detail?: any, option?: EventInit) => boolean;\n}\n\ninterface DelegatedEvent {\n type: keyof HTMLElementEventMap;\n selector: string;\n handler: EventListener;\n}\nconst eventMap = new WeakMap();\n\n/**\n * `class` decorator of Web components\n */\nexport function component(meta: ComponentMeta) {\n return (\n Class: T,\n { addInitializer }: ClassDecoratorContext\n ) => {\n class RendererComponent\n extends (Class as ClassComponent)\n implements WebCell\n {\n declare props: WebCellProps;\n\n internals = this.tagName.includes('-')\n ? this.attachInternals()\n : undefined;\n renderer = new DOMRenderer();\n\n get root(): ParentNode {\n return this.shadowRoot || this.internals.shadowRoot || this;\n }\n mounted = false;\n declare mountedCallback?: () => any;\n\n constructor() {\n super();\n\n if (meta.mode && !this.internals?.shadowRoot)\n this.attachShadow(meta as ShadowRootInit);\n }\n\n async connectedCallback() {\n const { mode } = meta;\n const renderChildren = !(mode != null);\n\n const { root } = this,\n events = eventMap.get(this) || [];\n\n for (const { type, selector, handler } of events) {\n if (renderChildren && /^:host/.test(selector))\n console.warn(\n `[WebCell] DOM Event delegation of \"${selector}\" won't work if you don't invoke \"this.attachShadow()\" manually.`\n );\n root.addEventListener(type, handler);\n }\n\n super['connectedCallback']?.();\n\n if (this.mounted) return;\n\n await this.update();\n\n this.mounted = true;\n this.mountedCallback?.();\n }\n\n declare render?: () => VNode;\n declare updatedCallback?: () => any;\n\n protected updateDOM(content: VNode) {\n const result = this.renderer.render(\n content,\n this.root,\n meta.renderMode as 'async'\n );\n return result instanceof Promise\n ? result.then(this.updatedCallback?.bind(this))\n : this.updatedCallback?.();\n }\n\n async update() {\n const vNode = this.render?.();\n\n const content = isEmpty(vNode) ? (\n meta.mode ? (\n \n ) : null\n ) : (\n vNode\n );\n if (!(content != null)) return;\n\n if (\n !meta.transitible ||\n typeof document.startViewTransition !== 'function'\n )\n return this.updateDOM(content);\n\n const { updateCallbackDone, finished } =\n document.startViewTransition(() => this.updateDOM(content));\n\n try {\n await finished;\n } catch {\n return updateCallbackDone;\n }\n }\n\n disconnectedCallback() {\n const { root } = this,\n events = eventMap.get(this) || [];\n\n for (const { type, handler } of events)\n root.removeEventListener(type, handler);\n\n super['disconnectedCallback']?.();\n }\n\n emit(\n event: string,\n detail?: any,\n { cancelable, bubbles, composed }: EventInit = {}\n ) {\n return this.dispatchEvent(\n new CustomEvent(event, {\n detail,\n cancelable,\n bubbles,\n composed\n })\n );\n }\n }\n\n addInitializer(function () {\n globalThis.customElements?.define(meta.tagName, this, meta);\n });\n return RendererComponent as unknown as T;\n };\n}\n\n/**\n * Method decorator of DOM Event delegation\n */\nexport function on(\n type: DelegatedEvent['type'],\n selector: string\n) {\n return (\n method: DelegateEventHandler,\n { addInitializer }: ClassMethodDecoratorContext\n ) =>\n addInitializer(function () {\n const events = eventMap.get(this) || [],\n handler = delegate(selector, method.bind(this));\n\n events.push({ type, selector, handler });\n\n eventMap.set(this, events);\n });\n}\n","import { DataObject, DOMRenderer, JsxChildren, VNode } from 'dom-renderer';\nimport {\n autorun,\n IReactionDisposer,\n IReactionPublic,\n reaction as watch\n} from 'mobx';\nimport {\n CustomElement,\n isHTMLElementClass,\n parseJSON,\n toCamelCase,\n toHyphenCase\n} from 'web-utility';\n\nimport { getMobxData } from './utility';\nimport { ClassComponent } from './WebCell';\n\nexport type PropsWithChildren

= P & {\n children?: JsxChildren;\n};\nexport type FunctionComponent

= (props: P) => VNode;\nexport type FC

= FunctionComponent

;\n\nfunction wrapFunction

(func: FC

) {\n const renderer = new DOMRenderer();\n\n return (props: P) => {\n let tree = func(props),\n root: Node;\n\n if (!VNode.isFragment(tree)) {\n const disposer = autorun(() => {\n tree = func(props);\n\n if (tree && root) renderer.patch(VNode.fromDOM(root), tree);\n });\n const { ref } = tree;\n\n tree.ref = node => {\n if (node) root = node;\n else disposer();\n\n ref?.(node);\n };\n }\n return tree;\n };\n}\n\ninterface ReactionItem {\n expression: ReactionExpression;\n effect: (...data: any[]) => any;\n}\nconst reactionMap = new WeakMap();\n\nfunction wrapClass(Component: T) {\n class ObserverComponent\n extends (Component as ClassComponent)\n implements CustomElement\n {\n static observedAttributes = [];\n\n protected disposers: IReactionDisposer[] = [];\n\n get props() {\n return getMobxData(this);\n }\n\n constructor() {\n super();\n\n Promise.resolve().then(() => this.#boot());\n }\n\n update = () => {\n const { update } = Object.getPrototypeOf(this);\n\n return new Promise(resolve =>\n this.disposers.push(\n autorun(() => update.call(this).then(resolve))\n )\n );\n };\n\n #boot() {\n const names: string[] =\n this.constructor['observedAttributes'] || [],\n reactions = reactionMap.get(this) || [];\n\n this.disposers.push(\n ...names.map(name => autorun(() => this.syncPropAttr(name))),\n ...reactions.map(({ expression, effect }) =>\n watch(\n reaction => expression(this, reaction),\n effect.bind(this)\n )\n )\n );\n }\n\n disconnectedCallback() {\n for (const disposer of this.disposers) disposer();\n\n this.disposers.length = 0;\n\n super['disconnectedCallback']?.();\n }\n\n setAttribute(name: string, value: string) {\n const old = super.getAttribute(name),\n names: string[] = this.constructor['observedAttributes'];\n\n super.setAttribute(name, value);\n\n if (names.includes(name))\n this.attributeChangedCallback(name, old, value);\n }\n\n attributeChangedCallback(name: string, old: string, value: string) {\n this[toCamelCase(name)] = parseJSON(value);\n\n super['attributeChangedCallback']?.(name, old, value);\n }\n\n syncPropAttr(name: string) {\n let value = this[toCamelCase(name)];\n\n if (!(value != null) || value === false)\n return this.removeAttribute(name);\n\n value = value === true ? name : value;\n\n if (typeof value === 'object') {\n value = value.toJSON?.();\n\n value =\n typeof value === 'object' ? JSON.stringify(value) : value;\n }\n super.setAttribute(name, value);\n }\n }\n return ObserverComponent as unknown as T;\n}\n\nexport type WebCellComponent = FunctionComponent | ClassComponent;\n\n/**\n * `class` decorator of Web components for MobX\n */\nexport function observer(\n func: T,\n _: ClassDecoratorContext\n): T;\nexport function observer(func: T): T;\nexport function observer(\n func: T,\n _?: ClassDecoratorContext\n) {\n return isHTMLElementClass(func) ? wrapClass(func) : wrapFunction(func);\n}\n\n/**\n * `accessor` decorator of MobX `@observable` for HTML attributes\n */\nexport function attribute(\n _: ClassAccessorDecoratorTarget,\n { name, addInitializer }: ClassAccessorDecoratorContext\n) {\n addInitializer(function () {\n const names: string[] = this.constructor['observedAttributes'],\n attribute = toHyphenCase(name.toString());\n\n if (!names.includes(attribute)) names.push(attribute);\n });\n}\n\nexport type ReactionExpression = (\n data?: I,\n reaction?: IReactionPublic\n) => O;\n\nexport type ReactionEffect = (\n newValue: V,\n oldValue: V,\n reaction: IReactionPublic\n) => any;\n\n/**\n * Method decorator of MobX `reaction()`\n */\nexport function reaction(\n expression: ReactionExpression\n) {\n return (\n effect: ReactionEffect,\n { addInitializer }: ClassMethodDecoratorContext\n ) =>\n addInitializer(function () {\n const reactions = reactionMap.get(this) || [];\n\n reactions.push({ expression, effect });\n\n reactionMap.set(this, reactions);\n });\n}\n","export type PositionY = 'Top' | 'Bottom';\nexport type DirectionX = 'Left' | 'Right';\nexport type DirectionY = 'Up' | 'Down';\nexport type Direction = DirectionX | DirectionY;\nexport type AnimationMode = 'In' | 'Out';\n\nexport type AttentionSeekers =\n | 'bounce'\n | 'flash'\n | 'pulse'\n | 'rubberBand'\n | `shake${'X' | 'Y'}`\n | 'headShake'\n | 'swing'\n | 'tada'\n | 'wobble'\n | 'jello'\n | 'heartBeat';\nexport type BackEntrances = `backIn${Direction}`;\nexport type BackExits = `backOut${Direction}`;\nexport type BouncingEntrances = `bounceIn${'' | Direction}`;\nexport type BouncingExits = `bounceOut${'' | Direction}`;\nexport type FadingEntrances =\n | `fadeIn${'' | `${Direction}${'' | 'Big'}`}`\n | `fadeIn${PositionY}${DirectionX}`;\nexport type FadingExits = `fadeOut${\n | ''\n | `${Direction}${'' | 'Big'}`\n | `${PositionY}${DirectionX}`}`;\nexport type Flippers = `flip${'' | `${AnimationMode}${'X' | 'Y'}`}`;\nexport type Lightspeed = `lightSpeed${AnimationMode}${DirectionX}`;\nexport type RotatingEntrances = `rotateIn${'' | `${DirectionY}${DirectionX}`}`;\nexport type RotatingExits = `rotateOut${'' | `${DirectionY}${DirectionX}`}`;\nexport type Specials = 'hinge' | 'jackInTheBox' | `roll${'In' | 'Out'}`;\nexport type ZoomingEntrances = `zoomIn${'' | Direction}`;\nexport type ZoomingExits = `zoomOut${'' | Direction}`;\nexport type SlidingEntrances = `slideIn${Direction}`;\nexport type SlidingExits = `slideOut${Direction}`;\n\nexport type AnimationType =\n | AttentionSeekers\n | BackEntrances\n | BackExits\n | BouncingEntrances\n | BouncingExits\n | FadingEntrances\n | FadingExits\n | Flippers\n | Lightspeed\n | RotatingEntrances\n | RotatingExits\n | Specials\n | ZoomingEntrances\n | ZoomingExits\n | SlidingEntrances\n | SlidingExits;\n","import { observable } from 'mobx';\n\nimport {\n FC,\n FunctionComponent,\n observer,\n PropsWithChildren,\n WebCellComponent\n} from './decorator';\nimport { ClassComponent, component, WebCell, WebCellProps } from './WebCell';\n\nexport type ComponentTag = string | WebCellComponent;\n\nexport interface AsyncCellProps {\n loader: () => Promise;\n delegatedProps?: WebCellProps;\n}\n\nexport interface AsyncCell extends WebCell {}\n\n@component({\n tagName: 'async-cell'\n})\n@observer\nexport class AsyncCell extends HTMLElement implements WebCell {\n loader: AsyncCellProps['loader'];\n\n @observable\n accessor component: FC;\n\n @observable\n accessor delegatedProps: AsyncCellProps['delegatedProps'];\n\n connectedCallback() {\n this.load();\n }\n\n protected async load() {\n this.component = undefined;\n\n const Tag = await this.loader();\n\n this.component = ({ children, ...props }) => (\n {children}\n );\n this.emit('load', this.component);\n }\n\n render() {\n const { component: Tag, props, delegatedProps } = this;\n const { children, ...data } = { ...props, ...delegatedProps };\n\n return Tag && {children};\n }\n}\n\ntype GetAsyncProps = T extends () => Promise<{\n default: FunctionComponent | ClassComponent;\n}>\n ? P\n : {};\n\nexport function lazy<\n T extends () => Promise<{ default: FunctionComponent | ClassComponent }>\n>(loader: T) {\n return (props: GetAsyncProps) => (\n (await loader()).default}\n />\n );\n}\n","import { observable } from 'mobx';\nimport { CustomFormElement, HTMLFieldProps } from 'web-utility';\n\nimport { attribute, reaction } from './decorator';\nimport { ClassComponent, WebCell } from './WebCell';\n\nexport interface WebField

\n extends CustomFormElement,\n WebCell

\r\n {children}\r\n \r\n )\r\n };\r\n}\r\n","import { FC } from 'web-cell';\r\nimport { PageProps } from '../../../source';\r\n\r\nexport interface TestPageProps extends PageProps {\r\n edit: boolean;\r\n}\r\n\r\nexport const TestPage: FC = ({ path, id, edit, ...props }) => (\r\n
    \r\n
  • Path: {path}
  • \r\n
  • Data: {JSON.stringify({ id, edit })}
  • \r\n
\r\n);\r\n"],"names":["_classDescriptor","_classThis","_type_decorators","_playing_decorators","_typeChanged_decorators","_classDecorators","_classExtraInitializers","_classSuper","_instanceExtraInitializers","_type_initializers","_type_extraInitializers","_playing_initializers","_playing_extraInitializers","_component_decorators","_delegatedProps_decorators","_component_initializers","_component_extraInitializers","_delegatedProps_initializers","_delegatedProps_extraInitializers","_path_decorators","_oldPath_decorators","_push_decorators","_path_initializers","_path_extraInitializers","_oldPath_initializers","_oldPath_extraInitializers","_history_decorators","_get_matched_decorators","_history_initializers","_history_extraInitializers","$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","_AnimateCSS_type_accessor_storage","_AnimateCSS_playing_accessor_storage","f","name","source","_AsyncCell_component_accessor_storage","_AsyncCell_delegatedProps_accessor_storage","RouterMode","_a","_History_path_accessor_storage","_History_oldPath_accessor_storage","_CellRoute_history_accessor_storage","_CellRoute_path_accessor_storage","$384c7d366e28ec64$var$_a","$384c7d366e28ec64$var$_b","$384c7d366e28ec64$export$fc55ead6785c2297","$parcel$global","globalThis","$parcel$modules","$parcel$inits","parcelRequire","id","exports","init","module","call","err","Error","code","register","parcelRegister","$5229dfa3f3078c99$export$6503ec6e8aabbaf","$5229dfa3f3078c99$export$f7ad0328861e2f03","$5229dfa3f3078c99$var$mapping","Map","baseUrl","manifest","i","length","path","resolved","URL","toString","value","Fragment","jsxDEV","jsxs","jsx","$06a3b4d229715e45$var$jsx","$ceFTv","$gPvyW","$2flNv","type","key","ref","is","style","children","props","__rest","isHTMLElementClass","tagNameOf","commonProps","flat","Infinity","map","node","VNode","text","undefined","filter","Boolean","__assign","tagName","isEmpty","$8e874a2fb001c377$export$a8ba968b8961cb8a","$8e874a2fb001c377$export$18ce0697a983be9b","$8e874a2fb001c377$export$3c9a16f847548506","$8e874a2fb001c377$export$1050f835b63b671e","$8e874a2fb001c377$export$67ebef60e6f28a6","$8e874a2fb001c377$export$f33643c0debef087","$8e874a2fb001c377$export$19a8beecd37a4c45","$8e874a2fb001c377$export$8d051b38c9118094","$8e874a2fb001c377$export$1216008129fb82ed","$8e874a2fb001c377$var$extendStatics","d","b","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","TypeError","String","__","constructor","create","assign","t","arguments","apply","indexOf","getOwnPropertySymbols","propertyIsEnumerable","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","done","adopt","then","body","y","_","label","sent","trys","ops","g","Iterator","verb","Symbol","iterator","op","pop","push","$8e874a2fb001c377$export$45d3717a4c69092e","o","m","k","k2","desc","getOwnPropertyDescriptor","__esModule","writable","r","ar","error","to","from","pack","l","slice","concat","SuppressedError","$c409e47346e83e74$var$$parcel$export","$c409e47346e83e74$export$dd1bc94b04021eeb","$c409e47346e83e74$export$3f34ca2fef821bbd","$c409e47346e83e74$export$86f54f62aa7a7514","$c409e47346e83e74$export$2ddabb89308e1a22","$c409e47346e83e74$export$14527669107aa301","$c409e47346e83e74$export$3f063810d7bf01bd","$c409e47346e83e74$export$27924e57e9afff7f","$c409e47346e83e74$export$71e6483fc2b024eb","$c409e47346e83e74$export$eb9b2aadbe449a20","$c409e47346e83e74$export$13397a83aa5915d6","$c409e47346e83e74$export$f5a4056b78c72efa","$c409e47346e83e74$export$2ee022bbbc550b25","$c409e47346e83e74$export$a549dd5cef7f8327","$c409e47346e83e74$export$8eece510bcb9c62c","$c409e47346e83e74$export$b8a1af58c024fefd","$c409e47346e83e74$export$be4650432daa84fd","$c409e47346e83e74$export$7cd14c57bbb84350","$c409e47346e83e74$export$3f99968195accfaf","$c409e47346e83e74$export$86d7c59254d6a2c9","$c409e47346e83e74$export$10b1921597150314","$c409e47346e83e74$export$3e2b244719956741","DiffStatus","$c409e47346e83e74$var$$9b05bcda60cc529c$exports","$c409e47346e83e74$export$61cc6ed0f143570b","$c409e47346e83e74$export$a09f818797e212c4","$c409e47346e83e74$export$170f4e08cad8229d","$c409e47346e83e74$export$2a489b3f92f4996a","$c409e47346e83e74$export$67a6ce548ae77071","$c409e47346e83e74$export$a48f0734ac7c2329","$c409e47346e83e74$export$89912e019eef22aa","$c409e47346e83e74$export$1c8ba402144543e5","$c409e47346e83e74$export$b5a4d6f439a5044d","$c409e47346e83e74$export$b119cc7e1840e59c","$c409e47346e83e74$export$7b85fd78dd236198","$c409e47346e83e74$export$697c3df919c0e61a","$c409e47346e83e74$export$e6b5ff3168b5942b","list","subKey","handler","item","$c409e47346e83e74$export$1d012a0dff3dab06","$c409e47346e83e74$export$69a3209f1a06c04d","$c409e47346e83e74$export$86c18c6347f4a8c4","$c409e47346e83e74$export$dce9414bed0662c","$c409e47346e83e74$export$271f7c16f175f804","$c409e47346e83e74$var$$6a9944941b4c1893$exports","$c409e47346e83e74$export$8a63f25cc62965f1","data","reduce","sum","$c409e47346e83e74$export$e1f36757ecda301d","$c409e47346e83e74$export$8e694e1eafd55acb","sample","average","summary","$c409e47346e83e74$export$57d7c52a66287430","Math","sqrt","$c409e47346e83e74$export$2b4693832ca3ce16","$c409e47346e83e74$export$5b784e078da1ce6","raw","toFixed","offset","cut","includes","padEnd","$c409e47346e83e74$export$17ec9c9f4f23588c","floatOffset","repeat","before","anchor","after","$c409e47346e83e74$export$595dbf49c602a1f","valueOf","toShortString","fractionDigits","units","base","reverse","find","abs","distanceOf","a","Reflect","construct","Number","isNaN","keys","Sub","Super","target","dataStore","setter","getPrototypeOf","Proxy","receiver","test","localeCompare","MAX_SAFE_INTEGER","numeric","replace","match","toLowerCase","large","toUpperCase","Date","now","parseInt","random","values","fromEntries","index","oldList","newList","group","entries","status","Int8Array","array","unitLength","grid","iteratee","Function","Set","executor","title","cacheData","console","trace","log","message","promise","withResolvers","doneSymbol","disposer","complete","race","sources","iterators","dones","args","$c409e47346e83e74$var$$f872d8bba1c0f79f$exports","$c409e47346e83e74$export$c489aa6f7fd82b1a","$c409e47346e83e74$export$cbd942915f33be50","$c409e47346e83e74$export$9b886f8493244014","$c409e47346e83e74$export$e99cbb807a5bb10d","$c409e47346e83e74$export$7a9a31a911eb9a20","$c409e47346e83e74$export$fca4f8121099df57","$c409e47346e83e74$export$6ce2f08d515512","$c409e47346e83e74$export$951c8378cdfec6e6","$c409e47346e83e74$export$1a4097b876a13bf7","$c409e47346e83e74$export$d9bcbd5e1ff81430","$c409e47346e83e74$export$506c8e8f8c8edda","$c409e47346e83e74$export$3ae94a2503e890a1","$c409e47346e83e74$export$62ad822b3a5fd9a0","end","start","unit","timeDistance","split","distance","$c409e47346e83e74$var$$f872d8bba1c0f79f$var$fitUnit","template","padStart","max","time","year","month","day","hour","minute","second","millisecond","getTimezoneOffset","toJSON","date","delta","getMonth","setFullYear","getFullYear","floor","setMonth","$c409e47346e83e74$var$$ba0e5dc395660a7c$exports","parseItem","JSON","parse","$c409e47346e83e74$export$7ea17d45ecdcf634","parsed","number","$c409e47346e83e74$export$bb8626e4916f587b","header","separator","trim","row","$c409e47346e83e74$var$$ba0e5dc395660a7c$var$readQuoteValue","quote","SyntaxError","object","$c409e47346e83e74$var$$083124ac4b1a50a0$exports","URI","document","baseURI","origin","location","search","toBuiltIn","URLSearchParams","getAll","$c409e47346e83e74$export$fd89523fba250fa4","$c409e47346e83e74$export$504fbde693c1771c","$c409e47346e83e74$var$$083124ac4b1a50a0$var$stringify","stringify","fetch","blob","$c409e47346e83e74$var$$083124ac4b1a50a0$var$DataURI","base64","exec","aBuffer","ArrayBuffer","atob","uBuffer","Uint8Array","charCodeAt","Blob","$c409e47346e83e74$var$$50872bf213056663$exports","$c409e47346e83e74$export$1b9ac4d3de3ffd2e","$c409e47346e83e74$export$d51f3b55e8d1aa73","$c409e47346e83e74$var$$50872bf213056663$var$CRC_32_Table","cell","j","char","self","subtle","crypto","msCrypto","observer","oncomplete","onabort","onerror","crypto1","algorithm","digest","TextEncoder","encode","byte","join","$c409e47346e83e74$var$$3e0a089cc13f69ad$exports","$c409e47346e83e74$export$a2cf0d4bb6e06de4","$c409e47346e83e74$export$d66b332881d9723f","$c409e47346e83e74$export$b0709844452f8b6b","$c409e47346e83e74$export$5118471ee5d5453b","$c409e47346e83e74$export$578e38b4a3e0b255","$c409e47346e83e74$export$5100419dfae0456d","depth","indent","padding","$c409e47346e83e74$export$28d9d24a8cd0ffc2","$c409e47346e83e74$export$eafdbaa868ea9975","$c409e47346e83e74$export$36a0c1ca2ae264fa","html","svg","math","$c409e47346e83e74$var$$3e0a089cc13f69ad$var$templateMap","spawn","createElement","innerHTML","content","firstElementChild","prefix","localName","HTMLElement","HTMLUnknownElement","Class","$c409e47346e83e74$var$$3e0a089cc13f69ad$var$nameMap","WeakMap","propertyName","ReadOnly_Properties","HTMLLinkElement","HTMLIFrameElement","HTMLObjectElement","HTMLInputElement","HTMLButtonElement","HTMLSelectElement","HTMLTextAreaElement","HTMLOutputElement","HTMLFieldSetElement","HTML","childNodes","remove","XMLSerializer","serializeToString","root","nodeType","parentElement","nodeValue","Node","TEXT_NODE","getAttribute","width","height","getBoundingClientRect","offsetWidth","pageHeight","pageWidth","scrollHeight","pages","offsetTop","top","offsetHeight","bottomOffset","bottom","bottomIndex","alternate","options","styleSheets","href","link","onload","sheet","_1","_2","_3","_4","rel","head","append","nodes","fragment","createDocumentFragment","nodeName","replaceWith","selection","getSelection","range","getRangeAt","deleteContents","insertNode","selector","align","justify","ID","window","scrollTo","left","behavior","querySelector","scrollIntoView","block","inline","box","querySelectorAll","IntersectionObserver","isIntersecting","links","ownerDocument","observe","textContent","level","last","visibilityState","change","state","addEventListener","form","field","elements","checked","defaultValue","selectedOptions","files","closest","parsedValue","$c409e47346e83e74$var$$bb23e0c794fefbef$exports","$c409e47346e83e74$export$e772c8ff12451969","seconds","setTimeout","$c409e47346e83e74$export$57207d71b8c929c8","stop","$c409e47346e83e74$var$$19ed8aeb7905a045$exports","event","composedPath","shift","currentTarget","matches","detail","$c409e47346e83e74$export$1d1d2ed6b55cf67f","$c409e47346e83e74$export$2155c0b5a4b77fb8","$c409e47346e83e74$export$9d97473344489dfc","$c409e47346e83e74$export$d635d04af3887bbe","removeEventListener","check","readyState","scope","element","clean","cancel","handlers","server","postMessage","UID","registration","waiting","onupdatefound","installing","navigator","serviceWorker","controller","$c409e47346e83e74$var$$7a08303ce13c49c5$exports","$c409e47346e83e74$export$1b88f6b6d432a52a","$c409e47346e83e74$export$b70f6380221b1350","$c409e47346e83e74$export$75d6cbe4503e149","$c409e47346e83e74$export$b2618d51188815c2","$c409e47346e83e74$export$490814474ddbb428","$c409e47346e83e74$export$3ea201dffb50dfef","$c409e47346e83e74$export$d1012c7198c6b460","$c409e47346e83e74$export$a35a418b7b17958e","pow","x","z","direction","XD","YD","ZD","XL","YL","ZL","threshold","getComputedStyle","fontSize","vector","transitionDuration","animationDuration","duration","parseFloat","catch","$c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeIn","className","display","requestAnimationFrame","classList","add","$c409e47346e83e74$var$$7a08303ce13c49c5$var$fadeOut","$c409e47346e83e74$var$$69bd9f0117925302$exports","$c409e47346e83e74$export$cd5450f3a47e3789","cases","timeEnd","$c409e47346e83e74$export$3486a10f30cf1ee4","userCase","secondsOut","timeOut","RangeError","assert","VNodeMeta","$iYM07","$1a2de400000fbc4f$var$VNodeMeta","$1a2de400000fbc4f$var$VNode","_super","_b","e_1","_c","_d","e_2","_e","_this","meta","_f","__values","_g","vNode","__spreadArray","__read","isFragment","e_1_1","return","_h","_j","child","parent","e_2_1","__extends","walkUp","current","__generator","namespaceOf","e_3","XMLNamespace","namespace","e_3_1","createDOM","document1","createTextNode","createElementNS","generateElementXML","shadowRoots","restProps","_i","children_1","children_1_1","e_4","_k","_l","elementTypeOf","implementation","createHTMLDocument","findShadowRoots","getHTML","serializableShadowRoots","propsMap","toHyphenCase","generateXML","mode","rest","key_1","fromDOM","Text","Element","namespaceURI","attributes","attrsMap","styles","htmlFor","$dd13108d31ab34bb$var$__generator","$dd13108d31ab34bb$var$__read","$dd13108d31ab34bb$var$__spreadArray","$dd13108d31ab34bb$var$__values","factory","define","amd","require1","exports1","walker","currentNode","shadowRoot","createTreeWalker","NodeFilter","SHOW_ELEMENT","acceptNode","FILTER_ACCEPT","FILTER_SKIP","nextNode","shadowDOMs","generateHTML","attachDeclarativeShadowRoots","setHTMLUnsafe","parseHTMLUnsafe","xmlSerializer","attachShadow","shadowRootHTML","nextSibling","SHOW_ALL","SVGElement","CDATASection","Comment","templates","templates_1","templates_1_1","domParser","DOMParser","initDocument","documentElement","parseFromString","ShadowRoot","Document","DOMRenderer","$i3JFt","$d8c6378e8b7c900e$var$DOMRenderer","eventPattern","ariaPattern","treeCache","signalCache","keyOf","vNodeOf","propsKeyOf","startsWith","toCamelCase","attrsNameOf","removeProperty","removeAttribute","setProperty","isXML","templateOf","setAttribute","name_1","handleCustomEvent","updateProps","oldProps","newProps","onDelete","onAdd","diffKeys","Old","Same","New","deleteNode","DocumentFragment","forEach","commitChild","targetNode","diffVChildren","oldVNode","newVNode","deletingGroup","newVChild","oldVChild","_m","_o","groupBy","patchNode","generateDOM","oldVRoot","newVRoot","inserting","parent_1","e_5","patch","e_6","count","e_6_1","patchAsync","__awaiter","oldController","e_7","abort","AbortController","scheduler","yield","signal","aborted","delete","throwIfAborted","render","renderToStaticMarkup","tree","renderToReadableStream","ReadableStream","MessageChannel","port2","port1","onmessage","h","u","T","C","isIdleCallback","I","cancelIdleCallback","clearTimeout","requestIdleCallback","M","A","N","O","takeNextTask","q","merge","D","Event","previousPriority","priority","H","R","defineProperties","onprioritychange","setPriority","DOMException","dispatchEvent","S","U","W","B","postTask","delay","callback","hostCallback","abortCallback","onTaskCompleted","onTaskAborted","reason","isAborted","isContinuation","F","G","J","K","L","V","X","has","TaskController","TaskPriorityChangeEvent","$33f07bbd4ddcb7b3$var$te","$33f07bbd4ddcb7b3$var$re","$33f07bbd4ddcb7b3$var$oe","$33f07bbd4ddcb7b3$var$e","$33f07bbd4ddcb7b3$var$t","$33f07bbd4ddcb7b3$var$o","$33f07bbd4ddcb7b3$export$5d3e1e5268af5f76","$33f07bbd4ddcb7b3$var$n","$33f07bbd4ddcb7b3$var$a","bind","$33f07bbd4ddcb7b3$var$i","$33f07bbd4ddcb7b3$var$l","$33f07bbd4ddcb7b3$var$u","$33f07bbd4ddcb7b3$var$c","$33f07bbd4ddcb7b3$var$f","$33f07bbd4ddcb7b3$var$b","$33f07bbd4ddcb7b3$var$m","$33f07bbd4ddcb7b3$var$p","$33f07bbd4ddcb7b3$var$y","queueMicrotask","$33f07bbd4ddcb7b3$var$S","$33f07bbd4ddcb7b3$var$g","$33f07bbd4ddcb7b3$var$v","_cursor","_size","_front","_elements","_next","_back","peek","$33f07bbd4ddcb7b3$var$w","$33f07bbd4ddcb7b3$var$R","$33f07bbd4ddcb7b3$var$T","$33f07bbd4ddcb7b3$var$C","$33f07bbd4ddcb7b3$var$P","$33f07bbd4ddcb7b3$var$q","_ownerReadableStream","_reader","_state","$33f07bbd4ddcb7b3$var$B","$33f07bbd4ddcb7b3$var$A","_storedError","$33f07bbd4ddcb7b3$var$j","$33f07bbd4ddcb7b3$var$E","$33f07bbd4ddcb7b3$var$Or","$33f07bbd4ddcb7b3$var$W","_readableStreamController","$33f07bbd4ddcb7b3$var$O","_closedPromise","_closedPromise_resolve","_closedPromise_reject","$33f07bbd4ddcb7b3$var$z","isFinite","$33f07bbd4ddcb7b3$var$D","trunc","ceil","$33f07bbd4ddcb7b3$var$L","$33f07bbd4ddcb7b3$var$F","$33f07bbd4ddcb7b3$var$I","$33f07bbd4ddcb7b3$var$$","$33f07bbd4ddcb7b3$var$M","$33f07bbd4ddcb7b3$var$Y","$33f07bbd4ddcb7b3$var$Q","$33f07bbd4ddcb7b3$var$N","$33f07bbd4ddcb7b3$var$Er","$33f07bbd4ddcb7b3$var$H","$33f07bbd4ddcb7b3$export$a890bf36e2af9168","$33f07bbd4ddcb7b3$var$V","_readRequests","$33f07bbd4ddcb7b3$var$U","_closeSteps","_chunkSteps","$33f07bbd4ddcb7b3$var$G","$33f07bbd4ddcb7b3$var$X","$33f07bbd4ddcb7b3$var$J","$33f07bbd4ddcb7b3$var$Wr","closed","$33f07bbd4ddcb7b3$var$ee","read","$33f07bbd4ddcb7b3$var$K","_errorSteps","releaseLock","$33f07bbd4ddcb7b3$var$Z","_disturbed","$33f07bbd4ddcb7b3$var$ne","$33f07bbd4ddcb7b3$var$ae","toStringTag","$33f07bbd4ddcb7b3$var$ie","transfer","structuredClone","$33f07bbd4ddcb7b3$var$le","detached","byteLength","$33f07bbd4ddcb7b3$var$se","$33f07bbd4ddcb7b3$var$ue","$33f07bbd4ddcb7b3$var$ce","$33f07bbd4ddcb7b3$var$s","$33f07bbd4ddcb7b3$var$de","asyncIterator","for","$33f07bbd4ddcb7b3$var$be","nextMethod","$33f07bbd4ddcb7b3$var$he","_ongoingPromise","_isFinished","_preventCancel","_nextSteps","_returnSteps","$33f07bbd4ddcb7b3$var$me","$33f07bbd4ddcb7b3$var$_e","_asyncIteratorImpl","$33f07bbd4ddcb7b3$var$pe","$33f07bbd4ddcb7b3$var$ye","$33f07bbd4ddcb7b3$var$Se","buffer","byteOffset","$33f07bbd4ddcb7b3$var$ge","_queue","_queueTotalSize","size","$33f07bbd4ddcb7b3$var$ve","$33f07bbd4ddcb7b3$var$we","$33f07bbd4ddcb7b3$var$Re","DataView","$33f07bbd4ddcb7b3$export$fbcf11583158d2c","view","$33f07bbd4ddcb7b3$var$Ce","$33f07bbd4ddcb7b3$var$Je","_view","respond","_associatedReadableByteStreamController","$33f07bbd4ddcb7b3$var$Ue","respondWithNewView","isView","$33f07bbd4ddcb7b3$var$Ge","$33f07bbd4ddcb7b3$export$2047cf34091e94ac","byobRequest","$33f07bbd4ddcb7b3$var$Te","$33f07bbd4ddcb7b3$var$Ke","$33f07bbd4ddcb7b3$var$He","desiredSize","$33f07bbd4ddcb7b3$var$Ve","close","_closeRequested","_controlledReadableByteStream","$33f07bbd4ddcb7b3$var$Ye","enqueue","$33f07bbd4ddcb7b3$var$xe","$33f07bbd4ddcb7b3$var$Qe","$33f07bbd4ddcb7b3$var$qe","_cancelAlgorithm","$33f07bbd4ddcb7b3$var$Me","$33f07bbd4ddcb7b3$var$Ne","_autoAllocateChunkSize","bufferByteLength","bytesFilled","minimumFill","elementSize","viewConstructor","readerType","_pendingPullIntos","$33f07bbd4ddcb7b3$var$Pe","_started","$33f07bbd4ddcb7b3$var$ot","$33f07bbd4ddcb7b3$var$rt","_pulling","_pullAgain","_pullAlgorithm","$33f07bbd4ddcb7b3$var$De","$33f07bbd4ddcb7b3$var$Ee","$33f07bbd4ddcb7b3$var$We","_readIntoRequests","$33f07bbd4ddcb7b3$var$Oe","$33f07bbd4ddcb7b3$var$Be","$33f07bbd4ddcb7b3$var$ke","$33f07bbd4ddcb7b3$var$$e","$33f07bbd4ddcb7b3$var$je","min","$33f07bbd4ddcb7b3$var$Ae","$33f07bbd4ddcb7b3$var$ze","$33f07bbd4ddcb7b3$var$Br","_byobRequest","$33f07bbd4ddcb7b3$var$Le","$33f07bbd4ddcb7b3$var$Ie","$33f07bbd4ddcb7b3$var$kr","_strategyHWM","$33f07bbd4ddcb7b3$var$Xe","$33f07bbd4ddcb7b3$var$tt","$33f07bbd4ddcb7b3$var$nt","$33f07bbd4ddcb7b3$export$20068a30393fcc28","$33f07bbd4ddcb7b3$var$lt","$33f07bbd4ddcb7b3$var$at","$33f07bbd4ddcb7b3$var$it","$33f07bbd4ddcb7b3$var$Fe","c","BYTES_PER_ELEMENT","$33f07bbd4ddcb7b3$var$st","highWaterMark","$33f07bbd4ddcb7b3$var$ut","$33f07bbd4ddcb7b3$var$ct","$33f07bbd4ddcb7b3$var$_t","$33f07bbd4ddcb7b3$var$gt","$33f07bbd4ddcb7b3$var$pt","$33f07bbd4ddcb7b3$export$826849241f7970f8","write","$33f07bbd4ddcb7b3$var$St","$33f07bbd4ddcb7b3$export$9e6890cb9a51c7c2","$33f07bbd4ddcb7b3$var$Ft","locked","$33f07bbd4ddcb7b3$var$Nt","$33f07bbd4ddcb7b3$var$vt","$33f07bbd4ddcb7b3$var$wt","$33f07bbd4ddcb7b3$var$qt","$33f07bbd4ddcb7b3$var$Rt","getWriter","$33f07bbd4ddcb7b3$export$9295348f005d6054","_writer","_writableStreamController","_writeRequests","_inFlightWriteRequest","_closeRequest","_inFlightCloseRequest","_pendingAbortRequest","_backpressure","_abortReason","_abortController","_promise","_resolve","_reject","_reason","_wasAlreadyErroring","$33f07bbd4ddcb7b3$var$Ct","$33f07bbd4ddcb7b3$var$or","$33f07bbd4ddcb7b3$var$Dt","$33f07bbd4ddcb7b3$var$Mt","$33f07bbd4ddcb7b3$var$Tt","$33f07bbd4ddcb7b3$var$Pt","$33f07bbd4ddcb7b3$var$jt","$33f07bbd4ddcb7b3$var$Et","$33f07bbd4ddcb7b3$var$Jt","$33f07bbd4ddcb7b3$var$Wt","$33f07bbd4ddcb7b3$var$Zt","_ownerWritableStream","$33f07bbd4ddcb7b3$var$Gt","$33f07bbd4ddcb7b3$var$er","$33f07bbd4ddcb7b3$var$tr","$33f07bbd4ddcb7b3$var$Kt","$33f07bbd4ddcb7b3$var$Ot","$33f07bbd4ddcb7b3$var$Vt","$33f07bbd4ddcb7b3$var$Ut","$33f07bbd4ddcb7b3$var$$t","ready","_readyPromise","$33f07bbd4ddcb7b3$var$Bt","$33f07bbd4ddcb7b3$var$At","$33f07bbd4ddcb7b3$var$zt","_readyPromiseState","$33f07bbd4ddcb7b3$var$rr","_closedPromiseState","_strategySizeAlgorithm","$33f07bbd4ddcb7b3$var$Yt","_controlledWritableStream","abortReason","$33f07bbd4ddcb7b3$var$Lt","$33f07bbd4ddcb7b3$var$Ht","$33f07bbd4ddcb7b3$var$Qt","_abortAlgorithm","$33f07bbd4ddcb7b3$var$It","_writeAlgorithm","_closeAlgorithm","_readyPromise_resolve","_readyPromise_reject","$33f07bbd4ddcb7b3$var$nr","$33f07bbd4ddcb7b3$var$ar","captureStackTrace","$33f07bbd4ddcb7b3$var$ir","all","E","w","$33f07bbd4ddcb7b3$export$b0bb6d0989d67700","$33f07bbd4ddcb7b3$var$lr","$33f07bbd4ddcb7b3$var$pr","$33f07bbd4ddcb7b3$var$hr","$33f07bbd4ddcb7b3$var$mr","$33f07bbd4ddcb7b3$var$dr","$33f07bbd4ddcb7b3$var$fr","$33f07bbd4ddcb7b3$var$br","$33f07bbd4ddcb7b3$var$cr","_controlledReadableStream","$33f07bbd4ddcb7b3$var$sr","$33f07bbd4ddcb7b3$var$ur","$33f07bbd4ddcb7b3$var$_r","$33f07bbd4ddcb7b3$var$Tr","preventAbort","preventCancel","preventClose","autoAllocateChunkSize","pull","$33f07bbd4ddcb7b3$var$Rr","$33f07bbd4ddcb7b3$var$qr","$33f07bbd4ddcb7b3$var$jr","getReader","$33f07bbd4ddcb7b3$var$Ze","pipeThrough","readable","pipeTo","tee","$33f07bbd4ddcb7b3$var$Pr","$33f07bbd4ddcb7b3$var$Cr","$33f07bbd4ddcb7b3$var$fe","$33f07bbd4ddcb7b3$var$Ar","$33f07bbd4ddcb7b3$var$zr","$33f07bbd4ddcb7b3$export$d386b5f37d154119","_byteLengthQueuingStrategyHighWaterMark","$33f07bbd4ddcb7b3$var$Lr","$33f07bbd4ddcb7b3$var$Dr","$33f07bbd4ddcb7b3$var$Fr","$33f07bbd4ddcb7b3$export$9ebfec18c2dfc625","_countQueuingStrategyHighWaterMark","$33f07bbd4ddcb7b3$var$$r","$33f07bbd4ddcb7b3$var$Ir","$33f07bbd4ddcb7b3$export$d102341634899398","flush","readableType","transform","writableType","_writable","_transformStreamController","_backpressureChangePromise","$33f07bbd4ddcb7b3$var$Zr","_finishPromise","_readable","_finishPromise_resolve","_finishPromise_reject","_flushAlgorithm","$33f07bbd4ddcb7b3$var$Jr","$33f07bbd4ddcb7b3$var$ro","$33f07bbd4ddcb7b3$var$to","$33f07bbd4ddcb7b3$var$Gr","$33f07bbd4ddcb7b3$var$Ur","_backpressureChangePromise_resolve","$33f07bbd4ddcb7b3$export$a55559184460222","$33f07bbd4ddcb7b3$var$Kr","_controlledTransformStream","_transformAlgorithm","$33f07bbd4ddcb7b3$var$Nr","$33f07bbd4ddcb7b3$var$oo","$33f07bbd4ddcb7b3$var$Hr","$33f07bbd4ddcb7b3$var$Vr","$33f07bbd4ddcb7b3$var$Xr","$33f07bbd4ddcb7b3$var$eo","terminate","die","_len","_key","observable","computed","autorun","action","reaction","configure","IDerivationState_","TraceMode","global1","proto","_getDescriptor$config","_getDescriptor","_getGlobal$Iterator","mockGlobal","getGlobal","getDescriptor","objectPrototype","EMPTY_ARRAY","freeze","EMPTY_OBJECT","hasProxy","plainObjectString","assertProxies","once","func","invoked","noop","isFunction","fn","isStringish","isObject","isPlainObject","protoConstructor","isGenerator","obj","displayName","addHiddenProp","propName","addHiddenFinalProp","createInstanceofPredicate","theClass","isES6Map","thing","isES6Set","hasGetOwnPropertySymbols","ownKeys","getOwnPropertyNames","toPrimitive","hasProp","prop","getOwnPropertyDescriptors","res","setFlag","flags","mask","newValue","_arrayLikeToArray","_defineProperties","_toPropertyKey","_toPrimitive","_createClass","_createForOfIteratorHelperLoose","isArray","_unsupportedIterableToArray","_extends","_inheritsLoose","_setPrototypeOf","storedAnnotationsSymbol","createDecoratorAnnotation","annotation","property","is20223Decorator","decorate_20223_","storeAnnotation","annotationType_","context","$mobx","Atom","name_","flags_","observers_","lastAccessedBy_","lowestObserverState_","NOT_TRACKING_","onBOL","onBUOL","_proto","onBO","listener","onBUO","reportObserved","reportChanged","startBatch","propagateChanged","endBatch","isBeingObservedMask_","isPendingUnobservationMask_","getFlag","diffValueMask_","isAtom","createAtom","onBecomeObservedHandler","onBecomeUnobservedHandler","atom","interceptHook","arg3","onBecomeUnobserved","comparer","structural","deepEqual","deepEnhancer","isObservable","isAction","isFlow","flow","autoAction","referenceEnhancer","createActionAnnotation","options_","make_","make_$1","extend_","extend_$1","decorate_20223_$1","adm","descriptor","_this$options_","bound","target_","actionDescriptor","createActionDescriptor","proxyTrap","defineProperty_","mthd","_this$options_2","kind","addInitializer","ann","_createAction","_ann$options_$name","_ann$options_","_ann$options_$autoAct","_ann$options_2","createAction","initMthd","_ann$options_3","isMobxAction","self1","safeDescriptors","globalState","_ref","_ref2","_annotation$options_","_annotation$options_$","_annotation$options_2","_annotation$options_$2","_annotation$options_3","_annotation$options_4","_adm$proxy_2","_adm$proxy_","proxy_","isPlainObject_","createFlowAnnotation","make_$2","extend_$2","decorate_20223_$2","flowDescriptor","createFlowDescriptor","_this$options_3","isMobXFlow","createComputedAnnotation","make_$3","extend_$3","decorate_20223_$3","defineComputedProperty_","asObservableObject","values_","ComputedValue","getObservablePropValue_","createObservableAnnotation","make_$4","extend_$4","decorate_20223_$4","_this$options_$enhanc","defineObservableProperty_","enhancer","initializedObjects","WeakSet","initializeObservable","_ann$options_$enhance","ObservableValue","setObservablePropValue_","autoAnnotation","createAutoAnnotation","make_$5","extend_$5","decorate_20223_$5","_this$options_4","flowAnnotation","autoBind","actionAnnotation","observableAnnotation","deep","_this$options_5","_this$options_6","defaultCreateObservableOptions","defaultDecorator","proxy","observableRefAnnotation","observableShallowAnnotation","isObservableObject","isObservableArray","isObservableMap","isObservableSet","observableStructAnnotation","oldValue","observableDecoratorAnnotation","getEnhancerFromOptions","createObservable","arg2","equals","initialValues","useProxies","LegacyObservableArray","owned","initObservable","ObservableArrayAdministration","arrayTraps","spliceWithArray_","ObservableMap","ObservableSet","decorators","_target$$mobx","_target$$mobx$proxy_","descriptors","objectProxyTraps","annotations","shallow","struct","COMPUTED","computedAnnotation","computedStructAnnotation","arg1","opts","currentActionId","nextActionId","isFunctionNameConfigurable","tmpNameDescriptor","actionName","executeAction","canRunAsDerivation","prevDerivation_","runAsAction","prevAllowStateChanges_","runInfo","trackingDerivation","allowStateChanges","untrackedStart","allowStateChangesStart","runAsAction_","prevAllowStateReads_","allowStateReadsStart","notifySpy_","startTime_","actionId_","parentActionId_","error_","suppressReactionErrors","allowStateChangesEnd","allowStateReadsEnd","untrackedEnd","prev","_Atom","notifySpy","hasUnreportedChange_","interceptors_","changeListeners_","value_","dehancer","dehanceValue","prepareNewValue_","UNCHANGED","setNewValue_","hasInterceptors","interceptChange","UPDATE","hasListeners","notifyListeners","intercept_","registerInterceptor","observe_","fireImmediately","observableKind","debugObjectName","registerListener","dependenciesState_","observing_","newObserving_","runId_","UP_TO_DATE_","unboundDepsCount_","CaughtException","triggeredBy_","derivation","setter_","isTracing_","NONE","scope_","equals_","requiresReaction_","keepAlive_","compareStructural","requiresReaction","keepAlive","onBecomeStale_","POSSIBLY_STALE_","isComputing","inBatch","shouldCompute","prevTrackingContext","trackingContext","trackAndCompute","STALE_","warnAboutUntrackedRead_","computeValue_","isCaughtException","cause","isRunningSetter","wasSuspended","changed","track","trackDerivedFunction","disableErrorBoundaries","suspend_","clearObserving","firstTime","prevValue","prevU","isComputingMask_","isRunningSetterMask_","isComputedValue","prevAllowStateReads","prevUntracked","obs","changeDependenciesStateTo0","runId","prevTracking","bindDependencies","prevObserving","observing","lowestNewObservingDerivationState","i0","dep","diffValue","_dep","removeObserver","_dep2","untracked","allowStateReads","MobXGlobals","version","mobxGuid","pendingUnobservations","pendingReactions","isRunningReactions","enforceActions","spyListeners","globalReactionErrorHandlers","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","verifyProxies","canMergeGlobalState","isolateCalled","__mobxInstanceCount","__mobxGlobals","queueForUnobservation","isPendingUnobservation","runReactions","isBeingObserved","Reaction","onInvalidate_","errorHandler_","requiresObservable_","schedule_","isScheduled","runReaction_","isDisposed","isTrackPending","reportExceptionInDerivation_","isRunning","prevReaction","dispose","getDisposer_","abortSignal","_this2","enterBreakPoint","isDisposedMask_","isScheduledMask_","isTrackPendingMask_","isRunningMask_","reactionScheduler","runReactionsHelper","allReactions","iterations","splice","remainingReactions","isReaction","ACTION","AUTOACTION","actionBoundAnnotation","autoActionAnnotation","autoActionBoundAnnotation","createActionFactory","_opts$name","_opts","_opts2","_opts3","createSchedulerFromOptions","reactionRunner","onError","requiresObservable","run","expression","effect","errorHandler","_opts$name2","_opts4","_opts5","effectAction","baseFn","runSync","nextValue","hook","getAtom","cb","listenersKey","hookListeners","ALWAYS","isolateGlobalState","baseScheduler","ea","generatorId","FlowCancellationError","flowBoundAnnotation","rejector","gen","pendingPromise","stepId","onFulfilled","ret","onRejected","cancelPromise","_res","yieldedPromise","transaction","getAdm","has_","get_","_getAdm$set_","set_","deleteProperty","_getAdm$delete_","delete_","_getAdm$definePropert","ownKeys_","preventExtensions","interceptable","interceptors","idx","listenable","listeners","SPLICE","getArrayLength_","arrayExtensions","setArrayLength_","owned_","legacyMode_","atom_","enhancer_","lastKnownLength_","newV","oldV","dehanceValue_","dehanceValues_","added","addedCount","removed","removedCount","newLength","currentLength","newItems","updateArrayLength_","oldLength","reserveArrayBuffer","deleteCount","lengthDelta","spliceItemsIntoValues_","notifyArraySplice_","_this$values_","oldItems","notifyArrayChildUpdate_","notify","warn","clear","spliceWithArray","_len2","items","_key2","unshift","_len3","_key3","sort","copy","addArrayExtension","funcName","funcFactory","simpleFunc","dehancedValues","mapLikeFunc","reduceLikeFunc","_this3","accumulator","currentValue","isObservableArrayAdministration","ObservableMapMarker","DELETE","initialData","data_","hasMap_","keysAtom_","entry","newEntry","hasKey","updateValue_","addValue_","_change","_this3$hasMap_$get","_this4","_this4$hasMap_$get","makeIterableForMap","_keys$next","_keys$next2","_step","_iterator","_step$value","other","_this5","getPlainObjectKeys","symbols","_this6","_step2","_iterator2","_this7","_step3","replacementMap","convertToMap","dataStructure","orderedData","keysReportChangedCalled","_iterator3","_step4","_iterator4","_step4$value","_value","keyExisted","_value2","iter1","iter2","next1","next2","makeIterable","ObservableSetMarker","callbackFn","_change2","nextIndex","makeIterableForSet","observableValues","intersection","otherSet","dehancedSet","union","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom","descriptorCache","REMOVE","ObservableObjectAdministration","defaultAnnotation_","appliedAnnotations_","pendingKeys_","_this$target_$storedA","outcome","recordAnnotationApplied","deleteOutcome","notifyPropertyAddition_","cachedDescriptor","getCachedObservablePropDescriptor","_this$pendingKeys_","_this$pendingKeys_2","keys_","_options$defaultDecor","_options$name","isObservableObjectAdministration","_adm$target_$storedAn","ENTRY_0","createArrayEntryDescriptor","safariPrototypeSetterInheritanceBug","OBSERVABLE_ARRAY_BUFFER_SIZE","StubArray","ctor","_StubArray","arrays","getDebugName","_observable","named","getAdministration","eq","aStack","bStack","unwrap","areArrays","aCtor","bCtor","maybeIteratorPrototype","getSelf","__MOBX_DEVTOOLS_GLOBAL_HOOK__","injectMobx","spy","extras","$8HlFz","url","$zlbOT","$4955fe2876130610$exports","__exportStar","$a2E6i","$f251dea0ed59a781$var$$parcel$export","$f251dea0ed59a781$var$$d4436c849e74ae70$exports","$f251dea0ed59a781$export$2e9a7bb10257a509","$f251dea0ed59a781$var$$552a56cc5ff3f479$exports","$f251dea0ed59a781$export$c7e91f8aec23ae14","$f251dea0ed59a781$export$b06b4c21253e26e2","$f251dea0ed59a781$export$4077c0dfbe9c3861","store","targetSelector","ended","delegate","$f251dea0ed59a781$var$$317b1f21909c74b8$exports","$f251dea0ed59a781$export$d8556a2a8f973135","$f251dea0ed59a781$export$af631764ddc44097","$f251dea0ed59a781$var$$317b1f21909c74b8$var$eventMap","customElements","internals","attachInternals","connectedCallback","renderChildren","mounted","update","mountedCallback","updateDOM","renderer","renderMode","updatedCallback","transitible","startViewTransition","updateCallbackDone","finished","disconnectedCallback","emit","cancelable","bubbles","composed","CustomEvent","method","events","$f251dea0ed59a781$var$$0c03e47eb1097734$exports","$f251dea0ed59a781$export$b6ae1bc530f4c149","$f251dea0ed59a781$export$af4b9a83f4b00434","$f251dea0ed59a781$export$7203b476385689ae","$f251dea0ed59a781$var$$0c03e47eb1097734$var$__classPrivateFieldGet","$f251dea0ed59a781$var$$0c03e47eb1097734$var$reactionMap","$f251dea0ed59a781$var$$0c03e47eb1097734$var$wrapClass","Component","_ObserverComponent_instances","_ObserverComponent_boot","ObserverComponent","disposers","old","names","attributeChangedCallback","parseJSON","syncPropAttr","reactions","$f251dea0ed59a781$var$$0c03e47eb1097734$var$wrapFunction","attribute","$f251dea0ed59a781$var$$d4436c849e74ae70$var$__runInitializers","initializers","useValue","$f251dea0ed59a781$var$$d4436c849e74ae70$var$__esDecorate","descriptorIn","contextIn","extraInitializers","accept","access","$f251dea0ed59a781$var$$d4436c849e74ae70$var$__classPrivateFieldGet","$f251dea0ed59a781$var$$d4436c849e74ae70$var$__classPrivateFieldSet","playing","importCSS","typeChanged","component","Tag","description","_metadata","metadata","static","private","$f251dea0ed59a781$var$$8acf79bd061a8fc3$exports","$f251dea0ed59a781$export$854a54a999c89982","$f251dea0ed59a781$export$488013bae63b21da","$f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__esDecorate","$f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__runInitializers","$f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__classPrivateFieldGet","$f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__classPrivateFieldSet","$f251dea0ed59a781$var$$8acf79bd061a8fc3$var$__rest","delegatedProps","load","loader","default","$f251dea0ed59a781$export$2a668e8d088a0667","$f251dea0ed59a781$var$$29675797ddd6c4f7$var$__runInitializers","$f251dea0ed59a781$var$$29675797ddd6c4f7$var$__esDecorate","$f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldGet","$f251dea0ed59a781$var$$29675797ddd6c4f7$var$__classPrivateFieldSet","_FormFieldComponent_name_accessor_storage","_FormFieldComponent_value_accessor_storage","_FormFieldComponent_required_accessor_storage","_FormFieldComponent_disabled_accessor_storage","_FormFieldComponent_autofocus_accessor_storage","_setValue_decorators","_name_decorators","_value_decorators","_required_decorators","_disabled_decorators","_autofocus_decorators","_name_initializers","_name_extraInitializers","_value_initializers","_value_extraInitializers","_required_initializers","_required_extraInitializers","_disabled_initializers","_disabled_extraInitializers","_autofocus_initializers","_autofocus_extraInitializers","setValue","setFormValue","formDisabledCallback","disabled","required","autofocus","validity","validationMessage","willValidate","checkValidity","reportValidity","$da37ce670175a8d0$var$R","suffix","modifier","hasCustomName","$da37ce670175a8d0$var$be","$da37ce670175a8d0$var$Pe","$da37ce670175a8d0$var$v","substr","$da37ce670175a8d0$var$D","delimiter","prefixes","$da37ce670175a8d0$var$S","encodePart","$","Y","$da37ce670175a8d0$var$X","ignoreCase","$da37ce670175a8d0$var$k","$da37ce670175a8d0$var$F","sensitive","strict","endsWith","RegExp","$da37ce670175a8d0$var$x","$da37ce670175a8d0$var$B","$da37ce670175a8d0$var$q","$da37ce670175a8d0$var$Q","substring","$da37ce670175a8d0$var$W","$da37ce670175a8d0$var$ee","$da37ce670175a8d0$var$N","$da37ce670175a8d0$var$_","$da37ce670175a8d0$var$y","$da37ce670175a8d0$var$le","username","$da37ce670175a8d0$var$fe","password","$da37ce670175a8d0$var$z","hostname","$da37ce670175a8d0$var$j","$da37ce670175a8d0$var$K","$da37ce670175a8d0$var$he","pathname","$da37ce670175a8d0$var$ue","$da37ce670175a8d0$var$de","$da37ce670175a8d0$var$pe","hash","$da37ce670175a8d0$var$H","port","protocol","$da37ce670175a8d0$var$G","$da37ce670175a8d0$var$ge","$da37ce670175a8d0$var$b","$da37ce670175a8d0$var$C","$da37ce670175a8d0$var$w","baseURL","$da37ce670175a8d0$var$ie","$da37ce670175a8d0$var$se","lastIndexOf","$da37ce670175a8d0$var$ae","$da37ce670175a8d0$var$re","$da37ce670175a8d0$var$te","$da37ce670175a8d0$export$a348b14d2b61192c","$da37ce670175a8d0$var$ke","some","inputs","input","groups","compareComponent","hasRegExpGroups","URLPattern","$384c7d366e28ec64$var$__runInitializers","$384c7d366e28ec64$var$__esDecorate","$384c7d366e28ec64$var$__classPrivateFieldGet","$384c7d366e28ec64$var$__classPrivateFieldSet","$384c7d366e28ec64$var$location","history","$384c7d366e28ec64$var$history","$384c7d366e28ec64$var$basePath","$384c7d366e28ec64$var$defaultBaseURL","$384c7d366e28ec64$var$originalTitle","$384c7d366e28ec64$export$84202caead5689ba","oldPath","titleOf","preventDefault","buildURLData","formToJSON","restore","handleLink","handleForm","dataOf","parseURLData","pattern","getTitle","getVisibleText","isXDomain","pushState","$dffc13ac2f1ac226$var$__runInitializers","$dffc13ac2f1ac226$var$__esDecorate","$dffc13ac2f1ac226$var$__classPrivateFieldGet","$dffc13ac2f1ac226$var$__classPrivateFieldSet","$dffc13ac2f1ac226$export$d6c529ca17cdd16f","matched","$865cbf18b84122c3$var$__rest","$5c1b14ef22af8749$var$__rest","$5c1b14ef22af8749$export$479dc530b3dbf38d","edit","$9ce2fd83c2c883c2$var$AsyncPage","Route","$9ce2fd83c2c883c2$var$Route","Link","$9ce2fd83c2c883c2$var$Link","basePath","scopeProps","Form","documentReady","SCHEDULER_PRIORITIES","PostMessageCallbackMananger","this","channel_","sendPort_","messages_","nextMessageHandle_","onMessageReceived_","queueCallback_","handle","cancelCallback_","getPostMessageCallbackManager","instance_","HostCallback","callback_","callbackType_","handle_","canceled_","isMessageChannelCallback_","runCallback_","nextSequence","IntrusiveTaskQueue","head_","tail_","task","tq_sequence_","tq_prev_","tq_next_","remove_","sourceQueue","currentTask","previousTask","taskToMove","insert_","parentTask","nextTask","typeArg","super","priority_","isPriorityChanging_","queues_","TaskQueue","pendingHostCallback_","signals_","postTaskOrContinuation_","resultPromise","onTaskDelayExpired_","pushTask_","scheduleHostCallbackIfNeeded_","schedulerEntryCallback_","onPriorityChange_","oldPriority","runNextTask_","nextTaskPriority_","niceErrors","annotationType","errors","process","env","NODE_ENV","global","warnAboutProxyRequirement","msg","getNextId","isPlainES6Map","mapProto","objectProto","nullProto","stringifyKey","decorator","isOverride","fieldName","assertNotDecorated","currentAnnotationType","requestedAnnotationType","collectStoredAnnotations","assert20223DecoratorType","types","onBecomeObserved","identityComparer","structuralComparer","shallowComparer","defaultComparer","identity","shallowEnhancer","refStructEnhancer","OVERRIDE","override","assertActionDescriptor","assertFlowDescriptor","assertComputedDescriptor","assertObservableDescriptor","AUTO","OBSERVABLE","OBSERVABLE_REF","OBSERVABLE_SHALLOW","OBSERVABLE_STRUCT","asCreateObservableOptions","getEnhancerFromAnnotation","getAnnotationFromOptions","observableFactories","createLegacyArray","createObservableArray","extendObservable","asDynamicObservableObject","COMPUTED_STRUCT","_startAction","_endAction","isSpyEnabled","flattenedArgs","spyReportStart","spyReportEnd","CREATE","spyReport","checkIfStateModificationsAreAllowed","isObservableValue","propagateMaybeChanged","propagateChangeConfirmed","isComputingDerivation","hasObservers","checkIfStateReadsAreAllowed","warnAboutDerivationWithoutDependencies","addObserver","persistentKeys","getGlobalState","resetGlobalState","defaultGlobals","getObservers","logTraceInfo","BREAK","lines","printDepTree","getDependencyTree","dependencies","startTime","onReactionError","MAX_REACTION_ITERATIONS","setReactionScheduler","END_EVENT","ACTION_BOUND","AUTOACTION_BOUND","DEFAULT_ACTION_NAME","runInAction","wrapErrorHandler","ON_BECOME_OBSERVED","ON_BECOME_UNOBSERVED","NEVER","OBSERVED","properties","nodeToDependencyTree","unique","getObserverTree","nodeToObserverTree","observers","isFlowCancellationError","ctx","flowResult","interceptReads","propOrHandler","intercept","interceptProperty","interceptInterceptable","_isComputed","isComputed","isComputedProp","_isObservable","isObservableProp","apiDefineProperty","apiOwnKeys","propOrCb","cbOrFire","observeObservableProperty","observeObservable","cache","toJSHelper","__alreadySeen","toJS","getAtomFromArgs","LOG","when","predicate","whenPromise","_when","timeoutHandle","timeout","cond","_opts$signal","_opts$signal2","_opts$signal3","makeObservable","_annotations","keysSymbol","makeAutoObservable","overrides","MAX_SPLICE_SIZE","ADD","_delete","deleted","isAnnotation","assertAnnotable","isExtensible","inherit","createArrayBufferItem"],"version":3,"file":"index.362ffb12.js.map"} \ No newline at end of file diff --git a/preview/index.fc7f0166.css b/preview/index.fc7f0166.css new file mode 100644 index 0000000..8927aa4 --- /dev/null +++ b/preview/index.fc7f0166.css @@ -0,0 +1,2 @@ +nav{justify-content:space-around;display:flex}.router{height:100vh} +/*# sourceMappingURL=index.fc7f0166.css.map */ diff --git a/preview/index.fc7f0166.css.map b/preview/index.fc7f0166.css.map new file mode 100644 index 0000000..4693ea9 --- /dev/null +++ b/preview/index.fc7f0166.css.map @@ -0,0 +1 @@ +{"mappings":"ACAA,8CAIA","sources":["index.fc7f0166.css","test/source/index.less"],"sourcesContent":["nav {\n justify-content: space-around;\n display: flex;\n}\n\n.router {\n height: 100vh;\n}\n/*# sourceMappingURL=index.fc7f0166.css.map */\n","nav {\r\n display: flex;\r\n justify-content: space-around;\r\n}\r\n.router {\r\n height: 100vh;\r\n}\r\n"],"names":[],"version":3,"file":"index.fc7f0166.css.map"} \ No newline at end of file diff --git a/preview/index.html b/preview/index.html new file mode 100644 index 0000000..a742078 --- /dev/null +++ b/preview/index.html @@ -0,0 +1 @@ +Cell Router \ No newline at end of file diff --git a/types/FormProps.html b/types/FormProps.html new file mode 100644 index 0000000..feb6116 --- /dev/null +++ b/types/FormProps.html @@ -0,0 +1 @@ +FormProps | Cell Router

Type Alias FormProps

FormProps: JsxProps<HTMLFormElement>
diff --git a/types/IncludeText.html b/types/IncludeText.html new file mode 100644 index 0000000..8b6b287 --- /dev/null +++ b/types/IncludeText.html @@ -0,0 +1 @@ +IncludeText | Cell Router

Type Alias IncludeText<Raw, Sub>

IncludeText<Raw, Sub>: {
    [K in Raw]: K extends `${string}${Sub}${string}`
        ? K
        : never
}[Raw]

Type Parameters

  • Raw extends string
  • Sub extends string
diff --git a/types/LinkProps.html b/types/LinkProps.html new file mode 100644 index 0000000..ed7d326 --- /dev/null +++ b/types/LinkProps.html @@ -0,0 +1 @@ +LinkProps | Cell Router

Type Alias LinkProps

LinkProps: PropsWithChildren<{
    to: string;
}>

{}\n\n/**\n * `class` decorator of Form associated Web components\n */\nexport function formField(\n Class: T,\n _: ClassDecoratorContext\n) {\n class FormFieldComponent\n extends (Class as ClassComponent)\n implements CustomFormElement\n {\n /**\n * Defined in {@link component}\n */\n declare internals: ElementInternals;\n static formAssociated = true;\n\n @reaction(({ value }) => value)\n setValue(value: string) {\n this.internals.setFormValue(value);\n }\n\n formDisabledCallback(disabled: boolean) {\n this.disabled = disabled;\n }\n\n @attribute\n @observable\n accessor name: string;\n\n @observable\n accessor value: string;\n\n @attribute\n @observable\n accessor required: boolean;\n\n @attribute\n @observable\n accessor disabled: boolean;\n\n @attribute\n @observable\n accessor autofocus: boolean;\n\n set defaultValue(raw: string) {\n this.setAttribute('value', raw);\n\n this.value ??= raw;\n }\n\n get defaultValue() {\n return this.getAttribute('value');\n }\n\n get form() {\n return this.internals.form;\n }\n get validity() {\n return this.internals.validity;\n }\n get validationMessage() {\n return this.internals.validationMessage;\n }\n get willValidate() {\n return this.internals.willValidate;\n }\n checkValidity() {\n return this.internals.checkValidity();\n }\n reportValidity() {\n return this.internals.reportValidity();\n }\n }\n return FormFieldComponent as unknown as T;\n}\n","export * from './History';\r\nexport * from './Router';\r\nexport * from './utility';\r\nexport * from './scope';\r\n","import 'urlpattern-polyfill';\r\nimport {\r\n getVisibleText,\r\n scrollTo,\r\n formToJSON,\r\n buildURLData,\r\n parseURLData,\r\n delegate,\r\n isXDomain\r\n} from 'web-utility';\r\nimport { observable, action } from 'mobx';\r\n\r\nconst { location, history } = window;\r\n\r\nconst basePath = document.querySelector('base')?.getAttribute('href');\r\n\r\nconst defaultBaseURL = (\r\n basePath\r\n ? new URL(basePath, location.origin) + ''\r\n : location.href.split(/\\?|#/)[0]\r\n).replace(/\\/$/, '');\r\n\r\nconst originalTitle = document.querySelector('title')?.textContent.trim();\r\n\r\nexport enum RouterMode {\r\n hash = '#',\r\n history = '/'\r\n}\r\n\r\nexport class History {\r\n @observable\r\n accessor path: string;\r\n\r\n @observable\r\n accessor oldPath: string;\r\n\r\n constructor(\r\n public baseURL = defaultBaseURL,\r\n public delimiter: RouterMode = RouterMode.hash\r\n ) {\r\n this.restore();\r\n\r\n window.addEventListener('hashchange', this.restore);\r\n window.addEventListener('popstate', this.restore);\r\n\r\n document.addEventListener(\r\n 'click',\r\n delegate('a[href], area[href]', this.handleLink.bind(this))\r\n );\r\n document.addEventListener(\r\n 'submit',\r\n delegate('form[action]', this.handleForm)\r\n );\r\n }\r\n\r\n protected restore = () => {\r\n const { state } = history;\r\n\r\n this.push();\r\n\r\n document.title =\r\n state?.title || this.titleOf() || originalTitle || location.href;\r\n };\r\n\r\n @action\r\n push(path = location.href) {\r\n path = path.replace(this.baseURL, '');\r\n\r\n if (this.delimiter === RouterMode.hash)\r\n path = path.match(/#.*/)?.[0] || RouterMode.hash;\r\n\r\n if (path === this.path) return path;\r\n\r\n this.oldPath = this.path;\r\n\r\n return (this.path = path);\r\n }\r\n\r\n static dataOf(path: string) {\r\n const [before, after] = path.split('#');\r\n\r\n return parseURLData(after || before);\r\n }\r\n\r\n match(pattern: string, path = this.path) {\r\n if (!path) return;\r\n\r\n const { pathname, hash } =\r\n new URLPattern(pattern, this.baseURL).exec(\r\n new URL(path.split('?')[0], this.baseURL)\r\n ) || {};\r\n\r\n return (hash || pathname)?.groups;\r\n }\r\n\r\n static getTitle(root: HTMLElement) {\r\n return root.title || getVisibleText(root);\r\n }\r\n\r\n titleOf(path = this.path) {\r\n path = path.replace(/^\\//, '');\r\n\r\n if (path)\r\n for (const node of document.querySelectorAll(\r\n `a[href=\"${path}\"], area[href=\"${path}\"]`\r\n )) {\r\n const title = History.getTitle(node);\r\n\r\n if (title) return title;\r\n }\r\n }\r\n\r\n handleLink(event: Event, link: HTMLAnchorElement) {\r\n const path = link.getAttribute('href');\r\n\r\n if ((link.target || '_self') !== '_self' || isXDomain(path)) return;\r\n\r\n event.preventDefault();\r\n\r\n if (path.startsWith('#'))\r\n try {\r\n if (document.querySelector(path) || path === '#top')\r\n return scrollTo(path, event.currentTarget as Element);\r\n } catch {}\r\n\r\n const title = History.getTitle(link);\r\n\r\n history.pushState({ title }, (document.title = title), path);\r\n\r\n this.push(path);\r\n }\r\n\r\n handleForm = (event: Event, form: HTMLFormElement) => {\r\n const { method, target } = form;\r\n\r\n if (method !== 'get' || (target || '_self') !== '_self') return;\r\n\r\n event.preventDefault();\r\n\r\n const path = form.getAttribute('action'),\r\n data = buildURLData(formToJSON(form));\r\n\r\n this.push(`${path}?${data}`);\r\n };\r\n}\r\n","import { URLPattern } from \"./dist/urlpattern.js\";\n\nexport { URLPattern };\n\nif (!globalThis.URLPattern) {\n globalThis.URLPattern = URLPattern;\n}\n","var R=class{type=3;name=\"\";prefix=\"\";value=\"\";suffix=\"\";modifier=3;constructor(t,r,n,o,c,l){this.type=t,this.name=r,this.prefix=n,this.value=o,this.suffix=c,this.modifier=l}hasCustomName(){return this.name!==\"\"&&typeof this.name!=\"number\"}},be=/[$_\\p{ID_Start}]/u,Pe=/[$_\\u200C\\u200D\\p{ID_Continue}]/u,M=\".*\";function Re(e,t){return(t?/^[\\x00-\\xFF]*$/:/^[\\x00-\\x7F]*$/).test(e)}function v(e,t=!1){let r=[],n=0;for(;n{if(la(\"OTHER_MODIFIER\")??a(\"ASTERISK\"),d=h=>{let u=a(h);if(u!==void 0)return u;let{type:p,index:A}=r[l];throw new TypeError(`Unexpected ${p} at ${A}, expected ${h}`)},T=()=>{let h=\"\",u;for(;u=a(\"CHAR\")??a(\"ESCAPED_CHAR\");)h+=u;return h},Se=h=>h,L=t.encodePart||Se,I=\"\",U=h=>{I+=h},$=()=>{I.length&&(o.push(new R(3,\"\",\"\",L(I),\"\",3)),I=\"\")},V=(h,u,p,A,Y)=>{let g=3;switch(Y){case\"?\":g=1;break;case\"*\":g=0;break;case\"+\":g=2;break}if(!u&&!p&&g===3){U(h);return}if($(),!u&&!p){if(!h)return;o.push(new R(3,\"\",\"\",L(h),\"\",g));return}let m;p?p===\"*\"?m=M:m=p:m=n;let O=2;m===n?(O=1,m=\"\"):m===M&&(O=0,m=\"\");let P;if(u?P=u:p&&(P=c++),i.has(P))throw new TypeError(`Duplicate name '${P}'.`);i.add(P),o.push(new R(O,P,L(h),m,L(A),g))};for(;l-1)}return l||(n+=`(?=${c}|${o})`),new RegExp(n,X(r))}var x={delimiter:\"\",prefixes:\"\",sensitive:!0,strict:!0},B={delimiter:\".\",prefixes:\"\",sensitive:!0,strict:!0},q={delimiter:\"/\",prefixes:\"/\",sensitive:!0,strict:!0};function J(e,t){return e.length?e[0]===\"/\"?!0:!t||e.length<2?!1:(e[0]==\"\\\\\"||e[0]==\"{\")&&e[1]==\"/\":!1}function Q(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function Ee(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function W(e){return!e||e.length<2?!1:e[0]===\"[\"||(e[0]===\"\\\\\"||e[0]===\"{\")&&e[1]===\"[\"}var ee=[\"ftp\",\"file\",\"http\",\"https\",\"ws\",\"wss\"];function N(e){if(!e)return!0;for(let t of ee)if(e.test(t))return!0;return!1}function te(e,t){if(e=Q(e,\"#\"),t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):\"\"}function re(e,t){if(e=Q(e,\"?\"),t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.search=e,r.search?r.search.substring(1,r.search.length):\"\"}function ne(e,t){return t||e===\"\"?e:W(e)?j(e):z(e)}function se(e,t){if(t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.password=e,r.password}function ie(e,t){if(t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.username=e,r.username}function ae(e,t,r){if(r||e===\"\")return e;if(t&&!ee.includes(t))return new URL(`${t}:${e}`).pathname;let n=e[0]==\"/\";return e=new URL(n?e:\"/-\"+e,\"https://example.com\").pathname,n||(e=e.substring(2,e.length)),e}function oe(e,t,r){return _(t)===e&&(e=\"\"),r||e===\"\"?e:K(e)}function ce(e,t){return e=Ee(e,\":\"),t||e===\"\"?e:y(e)}function _(e){switch(e){case\"ws\":case\"http\":return\"80\";case\"wws\":case\"https\":return\"443\";case\"ftp\":return\"21\";default:return\"\"}}function y(e){if(e===\"\")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function le(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.username=e,t.username}function fe(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.password=e,t.password}function z(e){if(e===\"\")return e;if(/[\\t\\n\\r #%/:<>?@[\\]^\\\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL(\"https://example.com\");return t.hostname=e,t.hostname}function j(e){if(e===\"\")return e;if(/[^0-9a-fA-F[\\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function K(e){if(e===\"\"||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function he(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.pathname=e[0]!==\"/\"?\"/-\"+e:e,e[0]!==\"/\"?t.pathname.substring(2,t.pathname.length):t.pathname}function ue(e){return e===\"\"?e:new URL(`data:${e}`).pathname}function de(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.search=e,t.search.substring(1,t.search.length)}function pe(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.hash=e,t.hash.substring(1,t.hash.length)}var H=class{#i;#n=[];#t={};#e=0;#s=1;#l=0;#o=0;#d=0;#p=0;#g=!1;constructor(t){this.#i=t}get result(){return this.#t}parse(){for(this.#n=v(this.#i,!0);this.#e0)if(this.#A())this.#d-=1;else continue;if(this.#T()){this.#d+=1;continue}switch(this.#o){case 0:this.#P()&&this.#u(1);break;case 1:if(this.#P()){this.#C();let t=7,r=1;this.#E()?(t=2,r=3):this.#g&&(t=2),this.#r(t,r)}break;case 2:this.#S()?this.#u(3):(this.#x()||this.#h()||this.#f())&&this.#u(5);break;case 3:this.#O()?this.#r(4,1):this.#S()&&this.#r(5,1);break;case 4:this.#S()&&this.#r(5,1);break;case 5:this.#y()?this.#p+=1:this.#w()&&(this.#p-=1),this.#k()&&!this.#p?this.#r(6,1):this.#x()?this.#r(7,0):this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 6:this.#x()?this.#r(7,0):this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 7:this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 8:this.#f()&&this.#r(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port=\"\")}#r(t,r){switch(this.#o){case 0:break;case 1:this.#t.protocol=this.#c();break;case 2:break;case 3:this.#t.username=this.#c();break;case 4:this.#t.password=this.#c();break;case 5:this.#t.hostname=this.#c();break;case 6:this.#t.port=this.#c();break;case 7:this.#t.pathname=this.#c();break;case 8:this.#t.search=this.#c();break;case 9:this.#t.hash=this.#c();break;case 10:break}this.#o!==0&&t!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(t)&&(this.#t.hostname??=\"\"),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(t)&&(this.#t.pathname??=this.#g?\"/\":\"\"),[1,2,3,4,5,6,7].includes(this.#o)&&t===9&&(this.#t.search??=\"\")),this.#R(t,r)}#R(t,r){this.#o=t,this.#l=this.#e+r,this.#e+=r,this.#s=0}#b(){this.#e=this.#l,this.#s=0}#u(t){this.#b(),this.#o=t}#m(t){return t<0&&(t=this.#n.length-t),t=0&&(e.pathname=b(n.pathname.substring(0,o+1),r)+e.pathname)}e.pathname=ae(e.pathname,e.protocol,r)}return typeof t.search==\"string\"&&(e.search=re(t.search,r)),typeof t.hash==\"string\"&&(e.hash=te(t.hash,r)),e}function C(e){return e.replace(/([+*?:{}()\\\\])/g,\"\\\\$1\")}function Oe(e){return e.replace(/([.+*?^${}()[\\]|/\\\\])/g,\"\\\\$1\")}function ke(e,t){t.delimiter??=\"/#?\",t.prefixes??=\"./\",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith=\"\";let r=\".*\",n=`[^${Oe(t.delimiter)}]+?`,o=/[$_\\u200C\\u200D\\p{ID_Continue}]/u,c=\"\";for(let l=0;l0?e[l-1]:null,d=l0?d.value[0]:\"\";a=o.test(T)}else a=!d.hasCustomName();if(!a&&!s.prefix.length&&f&&f.type===3){let T=f.value[f.value.length-1];a=t.prefixes.includes(T)}a&&(c+=\"{\"),c+=C(s.prefix),i&&(c+=`:${s.name}`),s.type===2?c+=`(${s.value})`:s.type===1?i||(c+=`(${n})`):s.type===0&&(!i&&(!f||f.type===3||f.modifier!==3||a||s.prefix!==\"\")?c+=\"*\":c+=`(${r})`),s.type===1&&i&&s.suffix.length&&o.test(s.suffix[0])&&(c+=\"\\\\\"),c+=C(s.suffix),a&&(c+=\"}\"),s.modifier!==3&&(c+=k(s.modifier))}return c}var me=class{#i;#n={};#t={};#e={};#s={};#l=!1;constructor(t={},r,n){try{let o;if(typeof r==\"string\"?o=r:n=r,typeof t==\"string\"){let i=new H(t);if(i.parse(),t=i.result,o===void 0&&typeof t.protocol!=\"string\")throw new TypeError(\"A base URL must be provided for a relative constructor string.\");t.baseURL=o}else{if(!t||typeof t!=\"object\")throw new TypeError(\"parameter 1 is not of type 'string' and cannot convert to dictionary.\");if(o)throw new TypeError(\"parameter 1 is not of type 'string'.\")}typeof n>\"u\"&&(n={ignoreCase:!1});let c={ignoreCase:n.ignoreCase===!0},l={pathname:E,protocol:E,username:E,password:E,hostname:E,port:E,search:E,hash:E};this.#i=w(l,t,!0),_(this.#i.protocol)===this.#i.port&&(this.#i.port=\"\");let s;for(s of G){if(!(s in this.#i))continue;let i={},a=this.#i[s];switch(this.#t[s]=[],s){case\"protocol\":Object.assign(i,x),i.encodePart=y;break;case\"username\":Object.assign(i,x),i.encodePart=le;break;case\"password\":Object.assign(i,x),i.encodePart=fe;break;case\"hostname\":Object.assign(i,B),W(a)?i.encodePart=j:i.encodePart=z;break;case\"port\":Object.assign(i,x),i.encodePart=K;break;case\"pathname\":N(this.#n.protocol)?(Object.assign(i,q,c),i.encodePart=he):(Object.assign(i,x,c),i.encodePart=ue);break;case\"search\":Object.assign(i,x,c),i.encodePart=de;break;case\"hash\":Object.assign(i,x,c),i.encodePart=pe;break}try{this.#s[s]=D(a,i),this.#n[s]=F(this.#s[s],this.#t[s],i),this.#e[s]=ke(this.#s[s],i),this.#l=this.#l||this.#s[s].some(f=>f.type===2)}catch{throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`)}}}catch(o){throw new TypeError(`Failed to construct 'URLPattern': ${o.message}`)}}test(t={},r){let n={pathname:\"\",protocol:\"\",username:\"\",password:\"\",hostname:\"\",port:\"\",search:\"\",hash:\"\"};if(typeof t!=\"string\"&&r)throw new TypeError(\"parameter 1 is not of type 'string'.\");if(typeof t>\"u\")return!1;try{typeof t==\"object\"?n=w(n,t,!1):n=w(n,ge(t,r),!1)}catch{return!1}let o;for(o of G)if(!this.#n[o].exec(n[o]))return!1;return!0}exec(t={},r){let n={pathname:\"\",protocol:\"\",username:\"\",password:\"\",hostname:\"\",port:\"\",search:\"\",hash:\"\"};if(typeof t!=\"string\"&&r)throw new TypeError(\"parameter 1 is not of type 'string'.\");if(typeof t>\"u\")return;try{typeof t==\"object\"?n=w(n,t,!1):n=w(n,ge(t,r),!1)}catch{return null}let o={};r?o.inputs=[t,r]:o.inputs=[t];let c;for(c of G){let l=this.#n[c].exec(n[c]);if(!l)return null;let s={};for(let[i,a]of this.#t[c].entries())if(typeof a==\"string\"||typeof a==\"number\"){let f=l[i+1];s[a]=f}o[c]={input:n[c]??\"\",groups:s}}return o}static compareComponent(t,r,n){let o=(i,a)=>{for(let f of[\"type\",\"modifier\",\"prefix\",\"value\",\"suffix\"]){if(i[f]{let f=0;for(;f | ClassComponent;\r\n}\r\n\r\nexport interface CellRoute extends WebCell {}\r\n\r\n@component({\r\n tagName: 'cell-route',\r\n transitible: true\r\n})\r\n@observer\r\nexport class CellRoute extends HTMLElement implements WebCell {\r\n declare props: CellRouteProps;\r\n\r\n @observable\r\n accessor history: History | undefined;\r\n\r\n @attribute\r\n @observable\r\n accessor path: string;\r\n\r\n component: CellRouteProps['component'];\r\n\r\n @computed\r\n get matched() {\r\n return this.history?.match(this.path);\r\n }\r\n\r\n connectedCallback() {\r\n this.history ||= new History();\r\n }\r\n\r\n render() {\r\n const { history, component: Tag, matched } = this;\r\n const { path } = history || {};\r\n\r\n return matched ? (\r\n \r\n ) : (\r\n <>\r\n );\r\n }\r\n}\r\n","import { JsxProps } from 'dom-renderer';\r\n\r\nimport { History } from './History';\r\n\r\nexport type IncludeText = {\r\n [K in Raw]: K extends `${string}${Sub}${string}` ? K : never;\r\n}[Raw];\r\n\r\nexport interface PageProps extends JsxProps {\r\n path: string;\r\n history: History;\r\n [key: string]: any;\r\n}\r\n","import { JsxProps } from 'dom-renderer';\r\nimport { PropsWithChildren } from 'web-cell';\r\n\r\nimport { History, RouterMode } from './History';\r\nimport { CellRoute, CellRouteProps } from './Router';\r\n\r\nexport interface RouterOptions {\r\n mode?: keyof typeof RouterMode;\r\n basePath?: string;\r\n}\r\n\r\nexport type LinkProps = PropsWithChildren<{ to: string }>;\r\n\r\nexport type FormProps = JsxProps;\r\n\r\nexport function createRouter({\r\n mode = 'hash',\r\n basePath = '',\r\n ...scopeProps\r\n}: RouterOptions = {}) {\r\n const prefix = RouterMode[mode],\r\n history = new History(\r\n (new URL(basePath, location.origin) + '').replace(/\\/$/, ''),\r\n RouterMode[mode]\r\n );\r\n return {\r\n Route: ({ path, ...props }: CellRouteProps) => (\r\n \r\n ),\r\n Link: ({ to, children, ...props }: LinkProps) => (\r\n \r\n {children}\r\n \r\n ),\r\n // @ts-ignore\r\n Form: ({ action, children, ...props }: FormProps) => (\r\n // @ts-ignore\r\n