UNPKG

might-ui

Version:

A no-code solution for performing end-to-end tests

2 lines 417 kB
/*! For license information please see bundle.js.LICENSE.txt */
(()=>{var e={8869:e=>{"use strict";e.exports=function(e){if(e)throw e}},6851:(e,t)=>{"use strict";t.parse=function(e){for(var t,n=[],r=String(e||""),o=r.indexOf(","),i=0,a=!1;!a;)-1===o&&(o=r.length,a=!0),!(t=r.slice(i,o).trim())&&a||n.push(t),i=o+1,o=r.indexOf(",",i);return n},t.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",o=n.padRight?" ":"";return""===e[e.length-1]&&(e=e.concat("")),e.join(o+","+r).trim()}},3287:()=>{!function(){"use strict";if(!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!window.ShadyCSS.nativeShadow,t=[],n=[],r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakMap,u={loaded:!1},s={body:null,CSSStyleSheet:null},c=CSSStyleSheet,f=/@import/,d="Illegal invocation",p=function(){function e(){var e=document.createElement("style");u.loaded?s.body.appendChild(e):(document.head.appendChild(e),e.disabled=!0,t.push(e)),o.set(this,{adopters:new Map,actions:[],basicStyleElement:e})}var n,r,i=e.prototype;return i.replace=function(e){var t=g(e);try{if(!o.has(this))throw new TypeError(d);return o.get(this).basicStyleElement.innerHTML=t,b(this),Promise.resolve(this)}catch(e){return Promise.reject(e)}},i.replaceSync=function(e){var t=g(e);if(!o.has(this))throw new TypeError(d);return o.get(this).basicStyleElement.innerHTML=t,b(this),this},n=e,(r=[{key:"cssRules",get:function(){if(!o.has(this))throw new TypeError(d);return o.get(this).basicStyleElement.sheet.cssRules}}])&&h(n.prototype,r),e}();["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach((function(e){p.prototype[e]=function(){if(!o.has(this))throw new TypeError(d);var t=arguments,n=o.get(this),r=n.adopters,i=n.actions,a=n.basicStyleElement,l=a.sheet[e].apply(a.sheet,t);return r.forEach((function(n){n.sheet&&n.sheet[e].apply(n.sheet,t)})),i.push([e,t]),l}})),Object.defineProperty(p,Symbol.hasInstance,{configurable:!0,value:x}),y(c.prototype),window.CSSStyleSheet=p,function(){var t={configurable:!0,get:function(){return r.get(this)||[]},set:function(e){var t=r.get(this)||[];!function(e,t){var n=t===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(x))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");var o=e.filter((function(t,n){return e.indexOf(t)===n}));r.set(t,o)}(e,this);var n=this===document?m()?this.head:this.body:this,i="isConnected"in n?n.isConnected:document.body.contains(n);window.requestAnimationFrame((function(){i&&(w(n),function(e,t){for(var n=v(e),r=0,i=t.length;r<i;r++)if(!(n.indexOf(t[r])>-1)){var l=o.get(t[r]).adopters,u=a.get(e),s=l.get(e);s||(s=l.get(document.head)),u.disconnect(),s.parentNode.removeChild(s),u.observe()}}(n,t))}))}};if(Object.defineProperty(Document.prototype,"adoptedStyleSheets",t),"undefined"!=typeof ShadowRoot){var n=Element.prototype.attachShadow;Element.prototype.attachShadow=function(){var t=e?this:n.apply(this,arguments);return S(t),t},Object.defineProperty(ShadowRoot.prototype,"adoptedStyleSheets",t)}}(),m()?document.addEventListener("DOMContentLoaded",E):E()}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(){return"loading"===document.readyState}function v(e){return r.get(e.parentNode===document.documentElement?document:e)}function g(e){void 0===e&&(e="");var t=e.match(f)||[],n=e;return t.length&&(console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.forEach((function(e){n=n.replace(e,"")}))),n}function y(e){e.replace=function(){return Promise.reject(new DOMException("Can't call replace on non-constructed CSSStyleSheets."))},e.replaceSync=function(){throw new DOMException("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")}}function b(e){var t=o.get(e),n=t.adopters,r=t.basicStyleElement;n.forEach((function(e){e.innerHTML=r.innerHTML}))}function x(e){return e&&e.constructor===p||e instanceof c||e instanceof s.CSSStyleSheet}function w(e){for(var t=document.createDocumentFragment(),r=v(e),u=a.get(e),s=0,c=r.length;s<c;s++){var f=o.get(r[s]),d=f.adopters,p=f.basicStyleElement,h=d.get(e);h?(u.disconnect(),t.appendChild(h),(!h.innerHTML||h.sheet&&!h.sheet.cssText)&&(h.innerHTML=p.innerHTML),u.observe()):((h=document.createElement("style")).innerHTML=p.innerHTML,i.set(h,e),l.set(h,0),d.set(e,h),t.appendChild(h)),e===document.head&&n.push(h)}e.insertBefore(t,e.firstChild);for(var m=0,g=r.length;m<g;m++){var y=o.get(r[m]),b=y.adopters,x=y.actions,w=b.get(e),k=l.get(w);if(x.length>0){for(var S=k,E=x.length;S<E;S++){var C=x[S],_=C[0],O=C[1];w.sheet[_].apply(w.sheet,O)}l.set(w,x.length-1)}}}function k(t){if(document)for(var n=0,r=t.length;n<r;n++){for(var o=t[n],a=o.addedNodes,l=o.removedNodes,u=0,s=l.length;u<s;u++){var c=i.get(l[u]);c&&w(c)}if(!e)for(var f=0,d=a.length;f<d;f++)for(var p=document.createNodeIterator(a[f],NodeFilter.SHOW_ELEMENT,(function(e){return e.shadowRoot&&e.shadowRoot.adoptedStyleSheets.length>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),h=void 0;h=p.nextNode();)w(h.shadowRoot)}}function S(e){var t=new MutationObserver(k),n={observe:function(){t.observe(e,{childList:!0,subtree:!0})},disconnect:function(){t.disconnect()}};a.set(e,n),n.observe()}function E(){var e=document.createElement("iframe");e.hidden=!0,document.body.appendChild(e),s.body=e.contentWindow.document.body,s.CSSStyleSheet=e.contentWindow.CSSStyleSheet,y(e.contentWindow.CSSStyleSheet.prototype),S(document.body),u.loaded=!0;for(var r=document.createDocumentFragment(),o=0,i=t.length;o<i;o++)t[o].disabled=!1,r.appendChild(t[o]);s.body.appendChild(r);for(var a=0,l=n.length;a<l;a++)r.appendChild(n[a]);document.body.insertBefore(r,document.body.firstChild),t.length=0,n.length=0}}()},4470:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,s,c,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=u(f,n),f!==(o=u(t,n))&&(h&&o&&(a(o)||(s=i(o)))?(s?(s=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(f,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(f,{name:n,newValue:o}));return f}},9020:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};t.__esModule=!0,t.updateStyle=t.setStyle=t.createStyle=t.createAnimation=void 0,n(3287);var o=new CSSStyleSheet;function i(e){return"string"==typeof e||"number"==typeof e}function a(){return Math.random().toString(36).substr(2,7)}function l(e){return e.substr(0,1)===e.substr(0,1).toUpperCase()&&(e="-"+e.substr(0,1).toLowerCase()+e.substr(1)),e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}function u(e,t){for(var n,r=((n={})[e]=t,n),o=Object.keys(r),a=[],u=0;u<o.length;u++){var s=o[u],c=r[s],f=[];for(var d in c){var p=c[d];if(i(p))d=l(d),f.push({property:d,value:p});else{if(d.startsWith("@")){if(!d.startsWith("@media"))continue;d=s+d}else d=(m=s.split("@")).length>1?m[0]+d+"@"+m[1]:s+d;r[d]=p,o.push(d)}}if(!(f.length<=0)){var h=f.map((function(e){return e.property+": "+e.value})).join("; ")+";";if(s.includes("@")){var m=s.split("@");a.push({selector:"@"+m[1],block:m[0]+" { "+h+" }",declarations:f})}else a.push({selector:s,block:h,declarations:f})}}return a}function s(e,t){u(e,t).forEach((function(e){return c(e.selector,e.block)}))}function c(e,t){o.addRule(e,t)}window.addEventListener("DOMContentLoaded",(function(){document.adoptedStyleSheets=[o]})),t.createAnimation=function(e){var t,n,r,o,i,u,s=null!==(t=e.duration)&&void 0!==t?t:"0s",f=null!==(n=e.timingFunction)&&void 0!==n?n:"ease",d=null!==(r=e.delay)&&void 0!==r?r:"0s",p=null!==(o=e.iterationCount)&&void 0!==o?o:"1",h=null!==(i=e.direction)&&void 0!==i?i:"normal",m=null!==(u=e.fillMode)&&void 0!==u?u:"none",v="flcss-animation-"+a(),g=[];for(var y in e.keyframes){var b=[],x=e.keyframes[y];for(var w in x){var k=x[w];w=l(w),b.push(w+": "+k)}g.push(y+" { "+b.join("; ")+"; }")}return c("@keyframes "+v,g.join(" ")),e.duration||e.timingFunction||e.delay||e.iterationCount||e.direction||e.fillMode?v+" "+s+" "+f+" "+d+" "+p+" "+h+" "+m:v},t.createStyle=function(e){for(var t={},n=Object.keys(e),o=0;o<n.length;o++){var i,l=n[o],u=e[l];if(!l.match("^[A-z]"))throw new Error("Error: "+l+" is not a valid classname");if(t[l]="flcss-"+l+"-"+a(),i="."+t[l],"string"==typeof u.extend){var c=u.extend;if(delete u.extend,!e[c])throw new Error("Error: can't extend "+l+" with "+c+" because "+c+" does not exists");u=r(r({},e[c]),u)}s(i,u)}return t},t.setStyle=s,t.updateStyle=function(e,t){var n=u("."+e,t);if(!(n.length<=0)){for(var r={},i=0;i<o.cssRules.length;i++){var a=o.cssRules[i];a instanceof CSSMediaRule?r[a.cssRules[0].selectorText+"@media "+a.media.mediaText]={index:i,media:a,item:a.cssRules[0]}:r[a.selectorText]={index:i,item:a}}for(var l=function(e,t,n){var i=e;if(i.startsWith("@media")&&(i=n.substr(0,n.indexOf("{")).trim()+i),r[i]){var a=r[i],l=a.item,u=a.media,s=a.index,f=l.styleMap;if(t.forEach((function(e){f?f.set(e.property,e.value):l.style[e.property]=e.value})),!f){!function(e){o.removeRule(e)}(s);var d=l.cssText;u||(d=(d=d.substr(d.indexOf("{")+1)).substr(0,d.lastIndexOf("}")).trim()),c(e,d)}}else c(e,n)},s=0,f=n;s<f.length;s++){var d=f[s];l(d.selector,d.declarations,d.block)}}}},8139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,s="";function c(e){return e?e.replace(u,s):s}e.exports=function(e,u){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];u=u||{};var f=1,d=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:f,column:d};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:f,column:d},this.source=u.source}m.prototype.content=e;var v=[];function g(t){var n=new Error(u.source+":"+f+":"+d+": "+t);if(n.reason=t,n.filename=u.source,n.line=f,n.column=d,n.source=e,!u.silent)throw n;v.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function x(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;s!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,s===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function k(){var e=h(),n=y(o);if(n){if(w(),!y(i))return g("property missing ':'");var r=y(a),u=e({type:"declaration",property:c(n[0].replace(t,s)),value:r?c(r[0].replace(t,s)):s});return y(l),u}}return b(),function(){var e,t=[];for(x(t);e=k();)!1!==e&&(t.push(e),x(t));return t}()}},3310:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},6630:(e,t,n)=>{"use strict";var r=n(2854);e.exports=function(e,t){return n=function(e){var t={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",(function(e){var n=i(e.identifier);o.call(t,n)||(t[n]=e)})),t}(e),function(e){var t=e&&i(e);return t&&o.call(n,t)?n[t]:null};var n};var o={}.hasOwnProperty;function i(e){return e.toUpperCase()}},2524:(e,t,n)=>{"use strict";e.exports=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){var t=e||{},n=function(e,t){for(var n=-1;++n<t.length;)p(e,t[n]);return e}({canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:v(M),autolinkProtocol:k,autolinkEmail:k,atxHeading:v(O),blockQuote:v((function(){return{type:"blockquote",children:[]}})),characterEscape:k,characterReference:k,codeFenced:v(_),codeFencedFenceInfo:g,codeFencedFenceMeta:g,codeIndented:v(_,g),codeText:v((function(){return{type:"inlineCode",value:""}}),g),codeTextData:k,data:k,codeFlowValue:k,definition:v((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:g,definitionLabelString:g,definitionTitleString:g,emphasis:v((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:v(P),hardBreakTrailing:v(P),htmlFlow:v(T,g),htmlFlowData:k,htmlText:v(T,g),htmlTextData:k,image:v((function(){return{type:"image",title:null,url:"",alt:null}})),label:g,link:v(M),listItem:v((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){h("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(e),10),c("expectingFirstListItemValue"))},listOrdered:v(D,(function(){c("expectingFirstListItemValue",!0)})),listUnordered:v(D),paragraph:v((function(){return{type:"paragraph",children:[]}})),reference:function(){c("referenceType","collapsed")},referenceString:g,resourceDestinationString:g,resourceTitleString:g,setextHeading:v(O),strong:v((function(){return{type:"strong",children:[]}})),thematicBreak:v((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:b(),atxHeadingSequence:function(e){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(e).length)},autolink:b(),autolinkEmail:function(e){S.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){S.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:b(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:C,characterReferenceMarkerNumeric:C,characterReferenceValue:function(e){var t,n,r=this.sliceSerialize(e),o=h("characterReferenceType");o?(t=l(r,"characterReferenceMarkerNumeric"===o?10:16),c("characterReferenceType")):t=f(r),(n=this.stack.pop()).value+=t,n.position.end=m(e.end)},codeFenced:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c("flowCodeInside")})),codeFencedFence:function(){h("flowCodeInside")||(this.buffer(),c("flowCodeInside",!0))},codeFencedFenceInfo:function(){var e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){var e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:S,codeIndented:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),codeText:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:S,data:S,definition:b(),definitionDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:b(),hardBreakEscape:b(E),hardBreakTrailing:b(E),htmlFlow:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:S,htmlText:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:S,image:b((function(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),c("referenceType")})),label:function(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,c("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t},labelText:function(e){this.stack[this.stack.length-2].identifier=a(this.sliceSerialize(e)).toLowerCase()},lineEnding:function(e){var t=this.stack[this.stack.length-1];if(h("atHardBreak"))return t.children[t.children.length-1].position.end=m(e.end),void c("atHardBreak");!h("setextHeadingSlurpLineEnding")&&n.canContainEols.indexOf(t.type)>-1&&(k.call(this,e),S.call(this,e))},link:b((function(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),c("referenceType")})),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase(),c("referenceType","full")},resourceDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){c("inReference")},setextHeading:b((function(){c("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){c("setextHeadingSlurpLineEnding",!0)},strong:b(),thematicBreak:b()}},t.mdastExtensions||[]),u={};return function(e){for(var t,r=[{type:"root",children:[]}],a=[],l=[],u=-1,f={stack:r,tokenStack:a,config:n,enter:y,exit:x,buffer:g,resume:w,setData:c,getData:h};++u<e.length;)"listOrdered"!==e[u][1].type&&"listUnordered"!==e[u][1].type||("enter"===e[u][0]?l.push(u):u=s(e,l.pop(u),u));for(u=-1;++u<e.length;)t=n[e[u][0]],i.call(t,e[u][1].type)&&t[e[u][1].type].call(o({sliceSerialize:e[u][2].sliceSerialize},f),e[u][1]);if(a.length)throw new Error("Cannot close document, a token (`"+a[a.length-1].type+"`, "+d({start:a[a.length-1].start,end:a[a.length-1].end})+") is still open");return r[0].position={start:m(e.length?e[0][1].start:{line:1,column:1,offset:0}),end:m(e.length?e[e.length-2][1].end:{line:1,column:1,offset:0})},r[0]};function s(e,t,n){for(var r,o,i,a,l,u,s,c=t-1,f=-1,d=!1;++c<=n;)if("listUnordered"===(l=e[c])[1].type||"listOrdered"===l[1].type||"blockQuote"===l[1].type?("enter"===l[0]?f++:f--,s=void 0):"lineEndingBlank"===l[1].type?"enter"===l[0]&&(!r||s||f||u||(u=c),s=void 0):"linePrefix"===l[1].type||"listItemValue"===l[1].type||"listItemMarker"===l[1].type||"listItemPrefix"===l[1].type||"listItemPrefixWhitespace"===l[1].type||(s=void 0),!f&&"enter"===l[0]&&"listItemPrefix"===l[1].type||-1===f&&"exit"===l[0]&&("listUnordered"===l[1].type||"listOrdered"===l[1].type)){if(r){for(o=c,i=void 0;o--;)if("lineEnding"===(a=e[o])[1].type||"lineEndingBlank"===a[1].type){if("exit"===a[0])continue;i&&(e[i][1].type="lineEndingBlank",d=!0),a[1].type="lineEnding",i=o}else if("linePrefix"!==a[1].type&&"blockQuotePrefix"!==a[1].type&&"blockQuotePrefixWhitespace"!==a[1].type&&"blockQuoteMarker"!==a[1].type&&"listItemIndent"!==a[1].type)break;u&&(!i||u<i)&&(r._spread=!0),r.end=m(i?e[i][1].start:l[1].end),e.splice(i||c,0,["exit",r,l[2]]),c++,n++}"listItemPrefix"===l[1].type&&(r={type:"listItem",_spread:!1,start:m(l[1].start)},e.splice(c,0,["enter",r,l[2]]),c++,n++,u=void 0,s=!0)}return e[t][1]._spread=d,n}function c(e,t){u[e]=t}function h(e){return u[e]}function m(e){return{line:e.line,column:e.column,offset:e.offset}}function v(e,t){return function(n){y.call(this,e(n),n),t&&t.call(this,n)}}function g(){this.stack.push({type:"fragment",children:[]})}function y(e,t){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push(t),e.position={start:m(t.start)},e}function b(e){return function(t){e&&e.call(this,t),x.call(this,t)}}function x(e){var t=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+d({start:e.start,end:e.end})+"): it’s not open");if(n.type!==e.type)throw new Error("Cannot close `"+e.type+"` ("+d({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+d({start:n.start,end:n.end})+") is open");return t.position.end=m(e.end),t}function w(){return r(this.stack.pop())}function k(e){var t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:m(e.start)},this.stack[this.stack.length-1].children.push(n)),this.stack.push(n)}function S(e){var t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=m(e.end)}function E(){c("atHardBreak",!0)}function C(e){c("characterReferenceType",e.type)}function _(){return{type:"code",lang:null,meta:null,value:""}}function O(){return{type:"heading",depth:void 0,children:[]}}function P(){return{type:"break"}}function T(){return{type:"html",value:""}}function M(){return{type:"link",title:null,url:"",children:[]}}function D(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(c(u(n).document().write(s()(e,t,!0))))};var r=n(4999),o=n(9198),i=n(6706),a=n(5478),l=n(596),u=n(2976),s=n(162),c=n(1242),f=n(9435),d=n(5432);function p(e,t){var n,r;for(n in t)r=i.call(e,n)?e[n]:e[n]={},"canContainEols"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},9671:(e,t,n)=>{"use strict";e.exports=n(2524)},5288:(e,t,n)=>{"use strict";e.exports=n(1601)},5426:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n,o,i=t.children||[],a=i.length,l=[],u=-1;++u<a;)(n=r(e,i[u],t))&&(u&&"break"===i[u-1].type&&(n.value&&(n.value=n.value.replace(/^\s+/,"")),(o=n.children&&n.children[0])&&o.value&&(o.value=o.value.replace(/^\s+/,""))),l=l.concat(n));return l};var r=n(719)},1696:(e,t,n)=>{"use strict";e.exports=function(e){for(var t,n,a,l,u=e.footnoteById,s=e.footnoteOrder,c=s.length,f=-1,d=[];++f<c;)(t=u[s[f].toUpperCase()])&&(l=(a=t.children.concat())[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},l&&"paragraph"===l.type||(l={type:"paragraph",children:[]},a.push(l)),l.children.push(n),d.push({type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position}));return 0===d.length?null:e(null,"div",{className:["footnotes"]},i([r(e),o(e,{type:"list",ordered:!0,children:d})],!0))};var r=n(7552),o=n(7888),i=n(6115)},3126:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"blockquote",r(o(e,t),!0))};var r=n(6115),o=n(5426)},3562:(e,t,n)=>{"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(914)},7891:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,o=t.value?t.value+"\n":"",i=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};return i&&(a.className=["language-"+i]),n=e(t,"code",a,[r("text",o)]),t.meta&&(n.data={meta:t.meta}),e(t.position,"pre",[n])};var r=n(914)},9381:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(5426)},790:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(5426)},8235:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=e.footnoteOrder,o=String(t.identifier);return-1===n.indexOf(o)&&n.push(o),e(t.position,"sup",{id:"fnref-"+o},[e(t,"a",{href:"#fn-"+o,className:["footnote-ref"]},[r("text",t.label||o)])])};var r=n(914)},5758:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n=e.footnoteById,o=e.footnoteOrder,i=1;i in n;)i++;return i=String(i),o.push(i),n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},r(e,{type:"footnoteReference",identifier:i,position:t.position})};var r=n(8235)},4890:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(5426)},2202:(e,t,n)=>{"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(914)},1454:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,i=e.definition(t.identifier);return i?(n={src:r(i.url||""),alt:t.alt},null!==i.title&&void 0!==i.title&&(n.title=i.title),e(t,"img",n)):o(e,t)};var r=n(729),o=n(713)},5037:(e,t,n)=>{"use strict";var r=n(729);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)}},4617:(e,t,n)=>{"use strict";function r(){return null}e.exports={blockquote:n(3126),break:n(3562),code:n(7891),delete:n(9381),emphasis:n(790),footnoteReference:n(8235),footnote:n(5758),heading:n(4890),html:n(2202),imageReference:n(1454),image:n(5037),inlineCode:n(8409),linkReference:n(9266),link:n(404),listItem:n(4463),list:n(7888),paragraph:n(8346),root:n(8100),strong:n(4970),table:n(2605),text:n(989),thematicBreak:n(7552),toml:r,yaml:r,definition:r,footnoteDefinition:r}},8409:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[r("text",n)])};var r=n(914)},9266:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);return a?(n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title),e(t,"a",n,i(e,t))):o(e,t)};var r=n(729),o=n(713),i=n(5426)},404:(e,t,n)=>{"use strict";var r=n(729),o=n(5426);e.exports=function(e,t){var n={href:r(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,o(e,t))}},4463:(e,t,n)=>{"use strict";e.exports=function(e,t,n){var a,l,u,s=o(e,t),c=s[0],f=n?function(e){for(var t=e.spread,n=e.children,r=n.length,o=-1;!t&&++o<r;)t=i(n[o]);return t}(n):i(t),d={},p=[];for("boolean"==typeof t.checked&&(c&&"p"===c.tagName||(c=e(null,"p",[]),s.unshift(c)),c.children.length>0&&c.children.unshift(r("text"," ")),c.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),d.className=["task-list-item"]),a=s.length,l=-1;++l<a;)u=s[l],(f||0!==l||"p"!==u.tagName)&&p.push(r("text","\n")),"p"!==u.tagName||f?p.push(u):p=p.concat(u.children);return a&&(f||"p"!==u.tagName)&&p.push(r("text","\n")),e(t,"li",d,p)};var r=n(914),o=n(5426);function i(e){var t=e.spread;return null==t?e.children.length>1:t}},7888:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,i,a={},l=t.ordered?"ol":"ul",u=-1;for("number"==typeof t.start&&1!==t.start&&(a.start=t.start),i=(n=o(e,t)).length;++u<i;)if(n[u].properties.className&&-1!==n[u].properties.className.indexOf("task-list-item")){a.className=["contains-task-list"];break}return e(t,l,a,r(n,!0))};var r=n(6115),o=n(5426)},8346:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(5426)},8100:(e,t,n)=>{"use strict";e.exports=function(e,t){return e.augment(t,r("root",o(i(e,t))))};var r=n(914),o=n(6115),i=n(5426)},4970:(e,t,n)=>{"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(5426)},2605:(e,t,n)=>{"use strict";e.exports=function(e,t){for(var n,a,l,u,s,c=t.children,f=c.length,d=t.align||[],p=d.length,h=[];f--;){for(a=c[f].children,u=0===f?"th":"td",n=p||a.length,l=[];n--;)s=a[n],l[n]=e(s,u,{align:d[n]},s?i(e,s):[]);h[f]=e(c[f],"tr",o(l,!0))}return e(t,"table",o([e(h[0].position,"thead",o([h[0]],!0))].concat(h[1]?e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",o(h.slice(1),!0)):[]),!0))};var r=n(7361),o=n(6115),i=n(5426)},989:(e,t,n)=>{"use strict";e.exports=function(e,t){return e.augment(t,r("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))};var r=n(914)},7552:e=>{"use strict";e.exports=function(e,t){return e(t,"hr")}},1601:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{};void 0===n.allowDangerousHTML||d||(d=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,u={};return p.dangerous=r,p.definition=l(e),p.footnoteById=u,p.footnoteOrder=[],p.augment=s,p.handlers=Object.assign({},c,n.handlers),p.unknownHandler=n.unknownHandler,p.passThrough=n.passThrough,o(e,"footnoteDefinition",(function(e){var t=String(e.identifier).toUpperCase();f.call(u,t)||(u[t]=e)})),p;function s(e,t){var n,r;return e&&e.data&&((n=e.data).hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=Object.assign({},t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),r=e&&e.position?e:{position:e},a(r)||(t.position={start:i.start(r),end:i.end(r)}),t}function p(e,t,n,r){return null==r&&"object"==typeof n&&"length"in n&&(r=n,n={}),s(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),p=u(n,e),h=s(n);return h&&(p.children=p.children.concat(r("text","\n"),h)),p};var r=n(914),o=n(2854),i=n(7361),a=n(1744),l=n(6630),u=n(719),s=n(1696),c=n(4617),f={}.hasOwnProperty,d=!1},719:(e,t,n)=>{"use strict";e.exports=function(e,t,n){var r,o=t&&t.type;if(!o)throw new Error("Expected node, got `"+t+"`");return("function"==typeof(r=i.call(e.handlers,o)?e.handlers[o]:e.passThrough&&e.passThrough.indexOf(o)>-1?l:e.unknownHandler)?r:a)(e,t,n)};var r=n(914),o=n(5426),i={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};return!(i.call(t,"hName")||i.call(t,"hProperties")||i.call(t,"hChildren"))&&"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",o(e,t))}function l(e,t){var n;return t.children?((n=Object.assign({},t)).children=o(e,t),n):t}},713:(e,t,n)=>{"use strict";e.exports=function(e,t){var n,i,a,l=t.referenceType,u="]";return"collapsed"===l?u+="[]":"full"===l&&(u+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type?r("text","!["+t.alt+u):((i=(n=o(e,t))[0])&&"text"===i.type?i.value="["+i.value:n.unshift(r("text","[")),(a=n[n.length-1])&&"text"===a.type?a.value+=u:n.push(r("text",u)),n)};var r=n(914),o=n(5426)},6115:(e,t,n)=>{"use strict";e.exports=function(e,t){var n=[],o=-1,i=e.length;for(t&&n.push(r("text","\n"));++o<i;)o&&n.push(r("text","\n")),n.push(e[o]);return t&&e.length>0&&n.push(r("text","\n")),n};var r=n(914)},4999:e=>{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++r<e.length;)n[r]=t(e[r]);return n.join("")}e.exports=t},729:e=>{"use strict";var t={};function n(e,r,o){var i,a,l,u,s,c="";for("string"!=typeof r&&(o=r,r=n.defaultChars),void 0===o&&(o=!0),s=function(e){var n,r,o=t[e];if(o)return o;for(o=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?o.push(r):o.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)o[e.charCodeAt(n)]=e[n];return o}(r),i=0,a=e.length;i<a;i++)if(l=e.charCodeAt(i),o&&37===l&&i+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3)))c+=e.slice(i,i+3),i+=2;else if(l<128)c+=s[l];else if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&i+1<a&&(u=e.charCodeAt(i+1))>=56320&&u<=57343){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},6734:(e,t,n)=>{"use strict";var r=n(2841)(/[A-Za-z]/);e.exports=r},6712:(e,t,n)=>{"use strict";var r=n(2841)(/[\dA-Za-z]/);e.exports=r},3571:(e,t,n)=>{"use strict";var r=n(2841)(/[#-'*+\--9=?A-Z^-~]/);e.exports=r},9696:e=>{"use strict";e.exports=function(e){return e<32||127===e}},3977:(e,t,n)=>{"use strict";var r=n(2841)(/\d/);e.exports=r},6238:(e,t,n)=>{"use strict";var r=n(2841)(/[\dA-Fa-f]/);e.exports=r},3074:(e,t,n)=>{"use strict";var r=n(2841)(/[!-/:-@[-`{-~]/);e.exports=r},8367:e=>{"use strict";e.exports=function(e){return e<0||32===e}},7238:e=>{"use strict";e.exports=function(e){return e<-2}},3654:e=>{"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},6996:(e,t,n)=>{"use strict";var r=n(2841)(n(6830));e.exports=r},395:(e,t,n)=>{"use strict";var r=n(2841)(/\s/);e.exports=r},9198:e=>{"use strict";var t=Object.assign;e.exports=t},3267:e=>{"use strict";var t=String.fromCharCode;e.exports=t},6706:e=>{"use strict";var t={}.hasOwnProperty;e.exports=t},7139:e=>{"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},6871:e=>{"use strict";e.exports=["pre","script","style","textarea"]},1362:e=>{"use strict";var t=[].splice;e.exports=t},6830:e=>{"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},6274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7082),o=n(7542),i=n(1349),a=n(5485),l=n(9653),u=n(6713),s=n(6597),c=n(431),f=n(26),d=n(3865),p=n(5694),h=n(5565),m=n(6872),v=n(8911),g=n(1294),y=n(6215),b=n(534),x=n(2607),w=n(7039),k=n(6931),S=n(5874),E={42:k,43:k,45:k,48:k,49:k,50:k,51:k,52:k,53:k,54:k,55:k,56:k,57:k,62:a},C={91:d},_={"-2":c,"-1":c,32:c},O={35:h,42:w,45:[S,w],60:m,61:S,95:w,96:s,126:s},P={38:u,92:l},T={"-5":x,"-4":x,"-3":x,33:y,38:u,42:o,60:[i,v],91:b,92:[p,l],93:g,95:o,96:f},M={null:[o,r.resolver]};t.contentInitial=C,t.disable={null:[]},t.document=E,t.flow=O,t.flowInitial=_,t.insideSpan=M,t.string=P,t.text=T},3745:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7238),o=n(2928);t.tokenize=function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null!==t)return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o(e,n,"linePrefix");e.consume(t)}),(function(t){return e.enter("paragraph"),i(t)}));return n;function i(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,a(n)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):r(t)?(e.consume(t),e.exit("chunkText"),i):(e.consume(t),a)}}},4201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7238),o=n(2928),i=n(6532),a={tokenize:function(e,t,n){return o(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},l={tokenize:function(e,t,n){return o(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=function(e){var t,n,o,u=this,s=[],c=0,f={tokenize:function(e,r){var o=0;return t={},c;function c(r){return o<s.length?(u.containerState=s[o][1],e.attempt(s[o][0].continuation,f,d)(r)):n.currentConstruct&&n.currentConstruct.concrete?(t.flowContinue=!0,m(r)):(u.interrupt=n.currentConstruct&&n.currentConstruct.interruptible,u.containerState={},e.attempt(a,h,m)(r))}function f(e){return o++,u.containerState._closeFlow?h(e):c(e)}function d(t){return n.currentConstruct&&n.currentConstruct.lazy?(u.containerState={},e.attempt(a,h,e.attempt(l,h,e.check(i,h,p)))(t)):h(t)}function p(e){return o=s.length,t.lazy=!0,t.flowContinue=!0,m(e)}function h(e){return t.flowEnd=!0,m(e)}function m(e){return t.continued=o,u.interrupt=u.containerState=void 0,r(e)}},partial:!0};return d;function d(t){return c<s.length?(u.containerState=s[c][1],e.attempt(s[c][0].continuation,p,h)(t)):h(t)}function p(e){return c++,d(e)}function h(r){return t&&t.flowContinue?v(r):(u.interrupt=n&&n.currentConstruct&&n.currentConstruct.interruptible,u.containerState={},e.attempt(a,m,v)(r))}function m(e){return s.push([u.currentConstruct,u.containerState]),u.containerState=void 0,h(e)}function v(t){return null===t?(x(0,!0),void e.consume(t)):(n=n||u.parser.flow(u.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:n}),g(t))}function g(t){return null===t?(b(e.exit("chunkFlow")),v(t)):r(t)?(e.consume(t),b(e.exit("chunkFlow")),e.check(f,y)):(e.consume(t),g)}function y(e){return x(t.continued,t&&t.flowEnd),c=0,d(e)}function b(e){o&&(o.next=e),o=e,n.lazy=t&&t.lazy,n.defineSkip(e.start),n.write(u.sliceStream(e))}function x(t,r){var i=s.length;for(n&&r&&(n.write([null]),o=n=void 0);i-- >t;)u.containerState=s[i][1],s[i][0].exit.call(u,e);s.length=t}}},2871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2928),o=n(6532),i=n(4590);t.tokenize=function(e){var t=this,n=e.attempt(o,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,a,r(e,e.attempt(this.parser.constructs.flow,a,e.attempt(i,a)),"linePrefix")));return n;function a(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},7082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9198),o=n(5923),i=u("text"),a=u("string"),l={resolveAll:s()};function u(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return u(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return u(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function u(e){var t=r[e],o=-1;if(null===e)return!0;if(t)for(;++o<t.length;)if(!t[o].previous||t[o].previous.call(n,n.previous))return!0}},resolveAll:s("text"===e?c:void 0)}}function s(e){return function(t,n){for(var r,o=-1;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function c(e,t){for(var n,i,a,l,u,s,c,f,d=-1;++d<=e.length;)if((d===e.length||"lineEnding"===e[d][1].type)&&"data"===e[d-1][1].type){for(i=e[d-1][1],l=(n=t.sliceStream(i)).length,u=-1,s=0,c=void 0;l--;)if("string"==typeof(a=n[l])){for(u=a.length;32===a.charCodeAt(u-1);)s++,u--;if(u)break;u=-1}else if(-2===a)c=!0,s++;else if(-1!==a){l++;break}s&&(f={type:d===e.length||c||s<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-s,offset:i.end.offset-s,_index:i.start._index+l,_bufferIndex:l?u:i.start._bufferIndex+u},end:o(i.end)},i.end=o(f.start),i.start.offset===i.end.offset?r(i,f):(e.splice(d,0,["enter",f,t],["exit",f,t]),d+=2)),d++}return e}t.resolver=l,t.string=a,t.text=i},2976:(e,t,n)=>{"use strict";var r=n(8180),o=n(3745),i=n(4201),a=n(2871),l=n(7082),u=n(2952),s=n(1388),c=n(6274);e.exports=function(e){var t={defined:[],constructs:u([c].concat(r((e||{}).extensions))),content:n(o),document:n(i),flow:n(a),string:n(l.string),text:n(l.text)};return t;function n(e){return function(n){return s(t,e,n)}}}},1242:(e,t,n)=>{"use strict";var r=n(4423);e.exports=function(e){for(;!r(e););return e}},162:e=>{"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,n=!0,r=1,o="";return function(i,a,l){var u,s,c,f,d,p=[];for(i=o+i.toString(a),c=0,o="",n&&(65279===i.charCodeAt(0)&&c++,n=void 0);c<i.length;){if(t.lastIndex=c,f=(u=t.exec(i))?u.index:i.length,d=i.charCodeAt(f),!u){o=i.slice(c);break}if(10===d&&c===f&&e)p.push(-3),e=void 0;else if(e&&(p.push(-5),e=void 0),c<f&&(p.push(i.slice(c,f)),r+=f-c),0===d)p.push(65533),r++;else if(9===d)for(s=4*Math.ceil(r/4),p.push(-2);r++<s;)p.push(-1);else 10===d?(p.push(-4),r=1):(e=!0,r=1);c=f+1}return l&&(e&&p.push(-5),o&&p.push(o),p.push(null)),p}}},7542:(e,t,n)=>{"use strict";var r=n(6808),o=n(8811),i=n(5923),a=n(8280),l=n(9444),u=n(5644),s={name:"attention",tokenize:function(e,t){var n,r=l(this.previous);return function(t){return e.enter("attentionSequence"),n=t,o(t)};function o(i){var a,u,s,c;return i===n?(e.consume(i),o):(a=e.exit("attentionSequence"),s=!(u=l(i))||2===u&&r,c=!r||2===r&&u,a._open=42===n?s:s&&(r||!c),a._close=42===n?c:c&&(u||!s),t(i))}},resolveAll:function(e,t){for(var n,l,s,c,f,d,p,h,m=-1;++m<e.length;)if("enter"===e[m][0]&&"attentionSequence"===e[m][1].type&&e[m][1]._close)for(n=m;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[m][1]).charCodeAt(0)){if((e[n][1]._close||e[m][1]._open)&&(e[m][1].end.offset-e[m][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[m][1].end.offset-e[m][1].start.offset)%3))continue;c={type:(d=e[n][1].end.offset-e[n][1].start.offset>1&&e[m][1].end.offset-e[m][1].start.offset>1?2:1)>1?"strongSequence":"emphasisSequence",start:u(i(e[n][1].end),-d),end:i(e[n][1].end)},f={type:d>1?"strongSequence":"emphasisSequence",start:i(e[m][1].start),end:u(i(e[m][1].start),d)},s={type:d>1?"strongText":"emphasisText",start:i(e[n][1].end),end:i(e[m][1].start)},l={type:d>1?"strong":"emphasis",start:i(c.start),end:i(f.end)},e[n][1].end=i(c.start),e[m][1].start=i(f.end),p=[],e[n][1].end.offset-e[n][1].start.offset&&(p=o(p,[["enter",e[n][1],t],["exit",e[n][1],t]])),p=o(p,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",s,t]]),p=o(p,a(t.parser.constructs.insideSpan.null,e.slice(n+1,m),t)),p=o(p,[["exit",s,t],["enter",f,t],["exit",f,t],["exit",l,t]]),e[m][1].end.offset-e[m][1].start.offset?(h=2,p=o(p,[["enter",e[m][1],t],["exit",e[m][1],t]])):h=0,r(e,n-1,m-n+3,p),m=n+p.length-h-2;break}for(m=-1;++m<e.length;)"attentionSequence"===e[m][1].type&&(e[m][1].type="data");return e}};e.exports=s},1349:(e,t,n)=>{"use strict";var r=n(6712),o=n(6734),i=n(3571),a=n(9696),l={name:"autolink",tokenize:function(e,t,n){var l=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u};function u(t){return o(t)?(e.consume(t),s):i(t)?d(t):n(t)}function s(e){return 43===e||45===e||46===e||r(e)?c(e):d(e)}function c(t){return 58===t?(e.consume(t),f):(43===t||45===t||46===t||r(t))&&l++<32?(e.consume(t),c):d(t)}function f(t){return 62===t?(e.exit("autolinkProtocol"),v(t)):32===t||60===t||a(t)?n(t):(e.consume(t),f)}function d(t){return 64===t?(e.consume(t),l=0,p):i(t)?(e.consume(t),d):n(t)}function p(e){return r(e)?h(e):n(e)}function h(t){return 46===t?(e.consume(t),l=0,p):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",v(t)):m(t)}function m(t){return(45===t||r(t))&&l++<63?(e.consume(t),45===t?m:h):n(t)}function v(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=l},5485:(e,t,n)=>{"use strict";var r=n(3654),o=n(2928),i={name:"blockQuote",tokenize:function(e,t,n){var o=this;return function(t){return 62===t?(o.containerState.open||(e.enter("blockQuote",{_container:!0}),o.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i):n(t)};function i(n){return r(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return o(e,e.attempt(i,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=i},9653:(e,t,n)=>{"use strict";var r=n(3074),o={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),o};function o(o){return r(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}};e.exports=o},6713:(e,t,n)=>{"use strict";var r=n(9435),o=n(6712),i=n(3977),a=n(6238);function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=l(r),s={name:"characterReference",tokenize:function(e,t,n){var r,l,s=this,c=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),f};function f(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),r=31,l=o,p(t))}function d(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,l=a,p):(e.enter("characterReferenceValue"),r=7,l=i,p(t))}function p(i){var a;return 59===i&&c?(a=e.exit("characterReferenceValue"),l!==o||u.default(s.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(i),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(i)):l(i)&&c++<r?(e.consume(i),p):n(i)}}};e.exports=s},6597:(e,t,n)=>{"use strict";var r=n(7238),o=n(2928),i=n(5096),a=n(8367),l={name:"codeFenced",tokenize:function(e,t,n){var l,u=this,s={tokenize:function(e,t,n){var i=0;return o(e,(function(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function a(t){return t===l?(e.consume(t),i++,a):i<f?n(t):(e.exit("codeFencedFenceSequence"),o(e,u,"whitespace")(t))}function u(o){return null===o||r(o)?(e.exit("codeFencedFence"),t(o)):n(o)}},partial:!0},c=i(this.events,"linePrefix"),f=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l=t,d(t)};function d(t){return t===l?(e.consume(t),f++,d):(e.exit("codeFencedFenceSequence"),f<3?n(t):o(e,p,"whitespace")(t))}function p(t){return null===t||r(t)?g(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||a(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),o(e,m,"whitespace")(t)):96===t&&t===l?n(t):(e.consume(t),h)}function m(t){return null===t||r(t)?g(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(t))}function v(t){return null===t||r(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(t)):96===t&&t===l?n(t):(e.consume(t),v)}function g(n){return e.exit("codeFencedFence"),u.interrupt?t(n):y(n)}function y(t){return null===t?x(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(s,x,c?o(e,y,"linePrefix",c+1):y)):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||r(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),b)}function x(n){return e.exit("codeFenced"),t(n)}},concrete:!0};e.exports=l},431:(e,t,n)=>{"use strict";var r=n(6808),o=n(7238),i=n(2928),a=n(5096),l={name:"codeIndented",tokenize:function(e,t,n){return e.attempt(u,r,n);function r(n){return null===n?t(n):o(n)?e.attempt(u,r,t)(n):(e.enter("codeFlowValue"),i(n))}function i(t){return null===t||o(t)?(e.exit("codeFlowValue"),r(t)):(e.consume(t),i)}},resolve:function(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return r(e,0,0,[["enter",n,t]]),r(e,e.length,0,[["exit",n,t]]),e}},u={tokenize:function(e,t,n){var r=this;return i(e,(function l(u){return o(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i(e,l,"linePrefix",5)):a(r.events,"linePrefix")<4?n(u):t(u)}),"linePrefix",5)},partial:!0};e.exports=l},26:(e,t,n)=>{"use strict";var r=n(7238),o={name:"codeText",tokenize:function(e,t,n){var o,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),l(t)};function l(t){return 96===t?(e.consume(t),a++,l):(e.exit("codeTextSequence"),u(t))}function u(t){return null===t?n(t):96===t?(i=e.enter("codeTextSequence"),o=0,c(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),u):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||r(t)?(e.exit("codeTextData"),u(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),o++,c):o===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",s(n))}},resolve:function(e){var t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[r][1].type=e[o][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};e.exports=o},4590:(e,t,n)=>{"use strict";var r=n(7238),o=n(2928),i=n(5096),a=n(4423),l={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(t)};function o(t){return null===t?i(t):r(t)?e.check(u,a,i)(t):(e.consume(t),o)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),o}},resolve:function(e){return a(e),e},interruptible:!0,lazy:!0},u={tokenize:function(e,t,n){var a=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o(e,l,"linePrefix")};function l(o){return null===o||r(o)?n(o):a.parser.constructs.disable.null.indexOf("codeIndented")>-1||i(a.events,"linePrefix")<4?e.interrupt(a.parser.constructs.flow,n,t)(o):t(o)}},partial:!0};e.exports=l},3865:(e,t,n)=>{"use strict";var r=n(5478),o=n(7238),i=n(2928),a=n(8367),l=n(8229),u=n(7154),s=n(1056),c=n(9283),f={name:"definition",tokenize:function(e,t,n){var a,c=this;return function(t){return e.enter("definition"),u.call(c,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function f(t){return a=r(c.sliceSerialize(c.events[c.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s(e,l(e,e.attempt(d,i(e,p,"whitespace"),i(e,p,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function p(r){return null===r||o(r)?(e.exit("definition"),c.parser.defined.indexOf(a)<0&&c.parser.defined.push(a),t(r)):n(r)}}},d={tokenize:function(e,t,n){return function(t){return a(t)?s(e,r)(t):n(t)};function r(t){return 34===t||39===t||40===t?c(e,i(e,l,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function l(e){return null===e||o(e)?t(e):n(e)}},partial:!0};e.exports=f},8229:(e,t,n)=>{"use strict";var r=n(7238),o=n(8367),i=n(9696);e.exports=function(e,t,n,a,l,u,s,c,f){var d=f||1/0,p=0;return function(t){return 60===t?(e.enter(a),e.enter(l),e.enter(u),e.consume(t),e.exit(u),h):i(t)?n(t):(e.enter(a),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),g(t))};function h(n){return 62===n?(e.enter(u),e.consume(n),e.exit(u),e.exit(l),e.exit(a),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),m(n))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(c),h(t)):null===t||60===t||r(t)?n(t):(e.consume(t),92===t?v:m)}function v(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function g(r){return 40===r?++p>d?n(r):(e.consume(r),g):41===r?p--?(e.consume(r),g):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(a),t(r)):null===r||o(r)?p?n(r):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(a),t(r)):i(r)?n(r):(e.consume(r),92===r?y:g)}function y(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}},7154:(e,t,n)=>{"use strict";var r=n(7238),o=n(3654);e.exports=function(e,t,n,i,a,l){var u,s=this,c=0;return function(t){return e.enter(i),e.enter(a),e.consume(t),e.exit(a),e.enter(l),f};function f(o){return null===o||91===o||93===o&&!u||94===o&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs||c>999?n(o):93===o?(e.exit(l),e.enter(a),e.consume(o),e.exit(a),e.exit(i),t):r(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(o))}function d(t){return null===t||91===t||93===t||r(t)||c++>999?(e.exit("chunkString"),f(t)):(e.consume(t),u=u||!o(t),92===t?p:d)}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,d):d(t)}}},2928:(e,t,n)=>{"use strict";var r=n(3654);e.exports=function(e,t,n,o){var i=o?o-1:1/0,a=0;return function(o){return r(o)?(e.enter(n),l(o)):t(o)};function l(o){return r(o)&&a++<i?(e.consume(o),l):(e.exit(n),t(o))}}},9283:(e,t,n)=>{"use strict";var r=n(7238),o=n(2928);e.exports=function(e,t,n,i,a,l){var u;return function(t){return e.enter(i),e.enter(a),e.consume(t),e.exit(a),u=40===t?41:t,s};function s(n){return n===u?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),t):(e.enter(l),c(n))}function c(t){return t===u?(e.exit(l),s(u)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===u||null===t||r(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?d:f)}function d(t){return t===u||92===t?(e.consume(t),f):f(t)}}},1056:(e,t,n)=>{"use strict";var r=n(7238),o=n(3654),i=n(2928);e.exports=function(e,t){var n;return function a(l){return r(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,a):o(l)?i(e,a,n?"linePrefix":"lineSuffix")(l):t(l)}}},5694:(e,t,n)=>{"use strict";var r=n(7238),o={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),o};function o(o){return r(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}};e.exports=o},5565:(e,t,n)=>{"use strict";var r=n(6808),o=n(7238),i=n(3654),a=n(2928),l=n(8367),u={name:"headingAtx",tokenize:function(e,t,n){var r=this,u=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),s(t)};function s(o){return 35===o&&u++<6?(e.consume(o),s):null===o||l(o)?(e.exit("atxHeadingSequence"),r.interrupt?t(o):c(o)):n(o)}function c(n){return 35===n?(e.enter("atxHeadingSequence"),f(n)):null===n||o(n)?(e.exit("atxHeading"),t(n)):i(n)?a(e,c,"whitespace")(n):(e.enter("atxHeadingText"),d(n))}function f(t){return 35===t?(e.consume(t),f):(e.exit("atxHeadingSequence"),c(t))}function d(t){return null===t||35===t||l(t)?(e.exit("atxHeadingText"),c(t)):(e.consume(t),d)}},resolve:function(e,t){var n,o,i=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},o={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},r(e,a,i-a+1,[["enter",n,t],["enter",o,t],["exit",o,t],["exit",n,t]])),e}};e.exports=u},6872:(e,t,n)=>{"use strict";var r=n(3267),o=n(6712),i=n(7238),a=n(3654),l=n(6532),u=n(8367),s=n(6734),c=n(7139),f=n(6871),d={name:"htmlFlow",tokenize:function(e,t,n){var l,d,h,m,v,g=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),y};function y(o){return 33===o?(e.consume(o),b):47===o?(e.consume(o),k):63===o?(e.consume(o),l=3,g.interrupt?t:U):s(o)?(e.consume(o),h=r(o),d=!0,S):n(o)}function b(r){return 45===r?(e.consume(r),l=2,x):91===r?(e.consume(r),l=5,h="CDATA[",m=0,w):s(r)?(e.consume(r),l=4,g.interrupt?t:U):n(r)}function x(r){return 45===r?(e.consume(r),g.interrupt?t:U):n(r)}function w(r){return r===h.charCodeAt(m++)?(e.consume(r),m===h.length?g.interrupt?t:N:w):n(r)}function k(t){return s(t)?(e.consume(t),h=r(t),S):n(t)}function S(i){return null===i||47===i||62===i||u(i)?47!==i&&d&&f.indexOf(h.toLowerCase())>-1?(l=1,g.interrupt?t(i):N(i)):c.indexOf(h.toLowerCase())>-1?(l=6,47===i?(e.consume(i),E):g.interrupt?t(i):N(i)):(l=7,g.interrupt?n(i):d?_(i):C(i)):45===i||o(i)?(e.consume(i),h+=r(i),S):n(i)}function E(r){return 62===r?(e.consume(r),g.interrupt?t:N):n(r)}function C(t){return a(t)?(e.consume(t),C):F(t)}function _(t){return 47===t?(e.consume(t),F):58===t||95===t||s(t)?(e.consume(t),O):a(t)?(e.consume(t),_):F(t)}function O(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),O):P(t)}function P(t){return 61===t?(e.consume(t),T):a(t)?(e.consume(t),P):_(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),v=t,M):a(t)?(e.consume(t),T):(v=void 0,D(t))}function M(t){return t===v?(e.consume(t),A):null===t||i(t)?n(t):(e.consume(t),M)}function D(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||u(t)?P(t):(e.consume(t),D)}function A(e){return 47===e||62===e||a(e)?_(e):n(e)}function F(t){return 62===t?(e.consume(t),I):n(t)}function I(t){return a(t)?(e.consume(t),I):null===t||i(t)?N(t):n(t)}function N(t){return 45===t&&2===l?(e.consume(t),R):60===t&&1===l?(e.consume(t),j):62===t&&4===l?(e.consume(t),H):63===t&&3===l?(e.consume(t),U):93===t&&5===l?(e.consume(t),B):!i(t)||6!==l&&7!==l?null===t||i(t)?L(t):(e.consume(t),N):e.check(p,H,L)(t)}function L(t){return e.exit("htmlFlowData"),z(t)}function z(t){return null===t?K(t):i(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z):(e.enter("htmlFlowData"),N(t))}function R(t){return 45===t?(e.consume(t),U):N(t)}function j(t){return 47===t?(e.consume(t),h="",V):N(t)}function V(t){return 62===t&&f.indexOf(h.toLowerCase())>-1?(e.consume(t),H):s(t)&&h.length<8?(e.consume(t),h+=r(t),V):N(t)}function B(t){return 93===t?(e.consume(t),U):N(t)}function U(t){return 62===t?(e.consume(t),H):N(t)}function H(t){return null===t||i(t)?(e.exit("htmlFlowData"),K(t)):(e.consume(t),H)}function K(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){for(var t=e.length;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},p={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(l,t,n)}},partial:!0};e.exports=d},8911:(e,t,n)=>{"use strict";var r=n(6712),o=n(7238),i=n(3654),a=n(2928),l=n(8367),u=n(6734),s={name:"htmlText",tokenize:function(e,t,n){var s,c,f,d,p=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),h};function h(t){return 33===t?(e.consume(t),m):47===t?(e.consume(t),P):63===t?(e.consume(t),_):u(t)?(e.consume(t),D):n(t)}function m(t){return 45===t?(e.consume(t),v):91===t?(e.consume(t),c="CDATA[",f=0,w):u(t)?(e.consume(t),C):n(t)}function v(t){return 45===t?(e.consume(t),g):n(t)}function g(t){return null===t||62===t?n(t):45===t?(e.consume(t),y):b(t)}function y(e){return null===e||62===e?n(e):b(e)}function b(t){return null===t?n(t):45===t?(e.consume(t),x):o(t)?(d=b,j(t)):(e.consume(t),b)}function x(t){return 45===t?(e.consume(t),B):b(t)}function w(t){return t===c.charCodeAt(f++)?(e.consume(t),f===c.length?k:w):n(t)}function k(t){return null===t?n(t):93===t?(e.consume(t),S):o(t)?(d=k,j(t)):(e.consume(t),k)}function S(t){return 93===t?(e.consume(t),E):k(t)}function E(t){return 62===t?B(t):93===t?(e.consume(t),E):k(t)}function C(t){return null===t||62===t?B(t):o(t)?(d=C,j(t)):(e.consume(t),C)}function _(t){return null===t?n(t):63===t?(e.consume(t),O):o(t)?(d=_,j(t)):(e.consume(t),_)}function O(e){return 62===e?B(e):_(e)}function P(t){return u(t)?(e.consume(t),T):n(t)}function T(t){return 45===t||r(t)?(e.consume(t),T):M(t)}function M(t){return o(t)?(d=M,j(t)):i(t)?(e.consume(t),M):B(t)}function D(t){return 45===t||r(t)?(e.consume(t),D):47===t||62===t||l(t)?A(t):n(t)}function A(t){return 47===t?(e.consume(t),B):58===t||95===t||u(t)?(e.consume(t),F):o(t)?(d=A,j(t)):i(t)?(e.consume(t),A):B(t)}function F(t){return 45===t||46===t||58===t||95===t||r(t)?(e.consume(t),F):I(t)}function I(t){return 61===t?(e.consume(t),N):o(t)?(d=I,j(t)):i(t)?(e.consume(t),I):A(t)}function N(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,L):o(t)?(d=N,j(t)):i(t)?(e.consume(t),N):(e.consume(t),s=void 0,R)}function L(t){return t===s?(e.consume(t),z):null===t?n(t):o(t)?(d=L,j(t)):(e.consume(t),L)}function z(e){return 62===e||47===e||l(e)?A(e):n(e)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||l(t)?A(t):(e.consume(t),R)}function j(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a(e,V,"linePrefix",p.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function V(t){return e.enter("htmlTextData"),d(t)}function B(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=s},1294:(e,t,n)=>{"use strict";var r=n(6808),o=n(8811),i=n(5478),a=n(5923),l=n(8280),u=n(8367),s=n(8229),c=n(7154),f=n(1056),d=n(9283),p={name:"labelEnd",tokenize:function(e,t,n){for(var r,o,a=this,l=a.events.length;l--;)if(("labelImage"===a.events[l][1].type||"labelLink"===a.events[l][1].type)&&!a.events[l][1]._balanced){r=a.events[l][1];break}return function(t){return r?r._inactive?s(t):(o=a.parser.defined.indexOf(i(a.sliceSerialize({start:r.end,end:a.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u):n(t)};function u(n){return 40===n?e.attempt(h,t,o?t:s)(n):91===n?e.attempt(m,t,o?e.attempt(v,t,s):s)(n):o?t(n):s(n)}function s(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){for(var n,i,u,s,c,f,d,p=e.length,h=0;p--;)if(s=e[p][1],c){if("link"===s.type||"labelLink"===s.type&&s._inactive)break;"enter"===e[p][0]&&"labelLink"===s.type&&(s._inactive=!0)}else if(f){if("enter"===e[p][0]&&("labelImage"===s.type||"labelLink"===s.type)&&!s._balanced&&(c=p,"labelLink"!==s.type)){h=2;break}}else"labelEnd"===s.type&&(f=p);return n={type:"labelLink"===e[c][1].type?"link":"image",start:a(e[c][1].start),end:a(e[e.length-1][1].end)},i={type:"label",start:a(e[c][1].start),end:a(e[f][1].end)},u={type:"labelText",start:a(e[c+h+2][1].end),end:a(e[f-2][1].start)},d=o(d=[["enter",n,t],["enter",i,t]],e.slice(c+1,c+h+3)),d=o(d,[["enter",u,t]]),d=o(d,l(t.parser.constructs.insideSpan.null,e.slice(c+h+4,f-3),t)),d=o(d,[["exit",u,t],e[f-2],e[f-1],["exit",i,t]]),d=o(d,e.slice(f+1)),d=o(d,[["exit",n,t]]),r(e,c,e.length,d),e},resolveAll:function(e){for(var t,n=-1;++n<e.length;)(t=e[n][1])._used||"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},h={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),f(e,r)};function r(t){return 41===t?a(t):s(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function o(t){return u(t)?f(e,i)(t):a(t)}function i(t){return 34===t||39===t||40===t?d(e,f(e,a),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):a(t)}function a(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},m={tokenize:function(e,t,n){var r=this;return function(t){return c.call(r,e,o,n,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.indexOf(i(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(e):t(e)}}},v={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};e.exports=p},6215:(e,t,n)=>{"use strict";var r={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(1294).resolveAll};e.exports=r},534:(e,t,n)=>{"use strict";var r={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(1294).resolveAll};e.exports=r},2607:(e,t,n)=>{"use strict";var r=n(2928),o={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r(e,t,"linePrefix")}}};e.exports=o},6931:(e,t,n)=>{"use strict";var r=n(3654),o=n(2928),i=n(6532),a=n(8892),l=n(5096),u=n(3977),s=n(7039),c={name:"list",tokenize:function(e,t,n){var o=this,c=l(o.events,"linePrefix"),d=0;return function(t){var r=o.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===r?!o.containerState.marker||t===o.containerState.marker:u(t)){if(o.containerState.type||(o.containerState.type=r,e.enter(r,{_container:!0})),"listUnordered"===r)return e.enter("listItemPrefix"),42===t||45===t?e.check(s,n,h)(t):h(t);if(!o.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(t)}return n(t)};function p(t){return u(t)&&++d<10?(e.consume(t),p):(!o.interrupt||d<2)&&(o.containerState.marker?t===o.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),h(t)):n(t)}function h(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||t,e.check(i,o.interrupt?n:m,e.attempt(f,g,v))}function m(e){return o.containerState.initialBlankLine=!0,c++,g(e)}function v(t){return r(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),g):n(t)}function g(n){return o.containerState.size=c+a(o.sliceStream(e.exit("listItemPrefix"))),t(n)}},continuation:{tokenize:function(e,t,n){var a=this;return a.containerState._closeFlow=void 0,e.check(i,(function(e){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,t(e)}),(function(n){return a.containerState.furtherBlankLines||!r(n)?(a.containerState.furtherBlankLines=a.containerState.initialBlankLine=void 0,l(n)):(a.containerState.furtherBlankLines=a.containerState.initialBlankLine=void 0,e.attempt(d,t,l)(n))}));function l(r){return a.containerState._closeFlow=!0,a.interrupt=void 0,o(e,e.attempt(c,t,n),"linePrefix",a.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(r)}}},exit:function(e){e.exit(this.containerState.type)}},f={tokenize:function(e,t,n){var i=this;return o(e,(function(e){return r(e)||!l(i.events,"listItemPrefixWhitespace")?n(e):t(e)}),"listItemPrefixWhitespace",i.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},d={tokenize:function(e,t,n){var r=this;return o(e,(function(e){return l(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=c},6532:(e,t,n)=>{"use strict";var r=n(7238),o=n(2928),i={tokenize:function(e,t,n){return o(e,(function(e){return null===e||r(e)?t(e):n(e)}),"linePrefix")},partial:!0};e.exports=i},5874:(e,t,n)=>{"use strict";var r=n(7238),o=n(2928),i=n(5923),a={name:"setextUnderline",tokenize:function(e,t,n){for(var i,a,l=this,u=l.events.length;u--;)if("lineEnding"!==l.events[u][1].type&&"linePrefix"!==l.events[u][1].type&&"content"!==l.events[u][1].type){a="paragraph"===l.events[u][1].type;break}return function(t){return l.lazy||!l.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,s(t))};function s(t){return t===i?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),o(e,c,"lineSuffix")(t))}function c(o){return null===o||r(o)?(e.exit("setextHeadingLine"),t(o)):n(o)}},resolveTo:function(e,t){for(var n,r,o,a,l=e.length;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),o||"definition"!==e[l][1].type||(o=l);return a={type:"setextHeading",start:i(e[r][1].start),end:i(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=i(e[o][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}};e.exports=a},7039:(e,t,n)=>{"use strict";var r=n(7238),o=n(3654),i=n(2928),a={name:"thematicBreak",tokenize:function(e,t,n){var a,l=0;return function(t){return e.enter("thematicBreak"),a=t,u(t)};function u(c){return c===a?(e.enter("thematicBreakSequence"),s(c)):o(c)?i(e,u,"whitespace")(c):l<3||null!==c&&!r(c)?n(c):(e.exit("thematicBreak"),t(c))}function s(t){return t===a?(e.consume(t),l++,s):(e.exit("thematicBreakSequence"),u(t))}}};e.exports=a},8811:(e,t,n)=>{"use strict";var r=n(6808);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},6808:(e,t,n)=>{"use strict";var r=n(1362);e.exports=function(e,t,n,o){var i,a=e.length,l=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,o.length<1e4)(i=Array.from(o)).unshift(t,n),r.apply(e,i);else for(n&&r.apply(e,[t,n]);l<o.length;)(i=o.slice(l,l+1e4)).unshift(t,0),r.apply(e,i),l+=1e4,t+=1e4}},9444:(e,t,n)=>{"use strict";var r=n(8367),o=n(6996),i=n(395);e.exports=function(e){return null===e||r(e)||i(e)?1:o(e)?2:void 0}},2952:(e,t,n)=>{"use strict";var r=n(6706),o=n(6808),i=n(8180);function a(e,t){var n,o,a,u;for(n in t)for(u in o=r.call(e,n)?e[n]:e[n]={},a=t[n])o[u]=l(i(a[u]),r.call(o,u)?o[u]:[])}function l(e,t){for(var n=-1,r=[];++n<e.length;)("after"===e[n].add?t:r).push(e[n]);return o(t,0,0,r),t}e.exports=function(e){for(var t={},n=-1;++n<e.length;)a(t,e[n]);return t}},1388:(e,t,n)=>{"use strict";var r=n(9198),o=n(6808),i=n(8811),a=n(8180),l=n(7238),u=n(5923),s=n(8280),c=n(3082),f=n(2774);e.exports=function(e,t,n){var d=n?u(n):{line:1,column:1,offset:0},p={},h=[],m=[],v=[],g={consume:function(e){l(e)?(d.line++,d.column=1,d.offset+=-3===e?2:1,_()):-1!==e&&(d.column++,d.offset++),d._bufferIndex<0?d._index++:(d._bufferIndex++,d._bufferIndex===m[d._index].length&&(d._bufferIndex=-1,d._index++)),y.previous=e},enter:function(e,t){var n=t||{};return n.type=e,n.start=w(),y.events.push(["enter",n,y]),v.push(n),n},exit:function(e){var t=v.pop();return t.end=w(),y.events.push(["exit",t,y]),t},attempt:E((function(e,t){C(e,t.from)})),check:E(S),interrupt:E(S,{interrupt:!0}),lazy:E(S,{lazy:!0})},y={previous:null,events:[],parser:e,sliceStream:x,sliceSerialize:function(e){return c(x(e))},now:w,defineSkip:function(e){p[e.line]=e.column,_()},write:function(e){return m=i(m,e),function(){for(var e,t;d._index<m.length;)if("string"==typeof(t=m[d._index]))for(e=d._index,d._bufferIndex<0&&(d._bufferIndex=0);d._index===e&&d._bufferIndex<t.length;)k(t.charCodeAt(d._bufferIndex));else k(t)}(),null!==m[m.length-1]?[]:(C(t,0),y.events=s(h,y.events,y),y.events)}},b=t.tokenize.call(y,g);return t.resolveAll&&h.push(t),d._index=0,d._bufferIndex=-1,y;function x(e){return f(m,e)}function w(){return u(d)}function k(e){b=b(e)}function S(e,t){t.restore()}function E(e,t){return function(n,o,i){var l,u,s,c;return n.tokenize||"length"in n?f(a(n)):function(e){return e in n||null in n?f(n.null?a(n[e]).concat(a(n.null)):n[e])(e):i(e)};function f(e){return l=e,p(e[u=0])}function p(e){return function(n){var o,i,a,l,u;return o=w(),i=y.previous,a=y.currentConstruct,l=y.events.length,u=Array.from(v),c={restore:function(){d=o,y.previous=i,y.currentConstruct=a,y.events.length=l,v=u,_()},from:l},s=e,e.partial||(y.currentConstruct=e),e.name&&y.parser.constructs.disable.null.indexOf(e.name)>-1?m():e.tokenize.call(t?r({},y,t):y,g,h,m)(n)}}function h(t){return e(s,c),o}function m(e){return c.restore(),++u<l.length?p(l[u]):i}}}function C(e,t){e.resolveAll&&h.indexOf(e)<0&&h.push(e),e.resolve&&o(y.events,t,y.events.length-t,e.resolve(y.events.slice(t),y)),e.resolveTo&&(y.events=e.resolveTo(y.events,y))}function _(){d.line in p&&d.column<2&&(d.column=p[d.line],d.offset+=p[d.line]-1)}}},8180:e=>{"use strict";e.exports=function(e){return null==e?[]:"length"in e?e:[e]}},5644:e=>{"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},5478:e=>{"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},5096:(e,t,n)=>{"use strict";var r=n(8892);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0}},2841:(e,t,n)=>{"use strict";var r=n(3267);e.exports=function(e){return function(t){return e.test(r(t))}}},8280:e=>{"use strict";e.exports=function(e,t,n){for(var r,o=[],i=-1;++i<e.length;)(r=e[i].resolveAll)&&o.indexOf(r)<0&&(t=r(t,n),o.push(r));return t}},596:(e,t,n)=>{"use strict";var r=n(3267);e.exports=function(e,t){var n=parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":r(n)}},3082:(e,t,n)=>{"use strict";var r=n(3267);e.exports=function(e){for(var t,n,o,i=-1,a=[];++i<e.length;){if("string"==typeof(t=e[i]))n=t;else if(-5===t)n="\r";else if(-4===t)n="\n";else if(-3===t)n="\r\n";else if(-2===t)n="\t";else if(-1===t){if(o)continue;n=" "}else n=r(t);o=-2===t,a.push(n)}return a.join("")}},5923:(e,t,n)=>{"use strict";var r=n(9198);e.exports=function(e){return r({},e)}},8892:e=>{"use strict";e.exports=function(e){for(var t=-1,n=0;++t<e.length;)n+="string"==typeof e[t]?e[t].length:1;return n}},2774:e=>{"use strict";e.exports=function(e,t){var n,r=t.start._index,o=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;return r===i?n=[e[r].slice(o,a)]:(n=e.slice(r,i),o>-1&&(n[0]=n[0].slice(o)),a>0&&n.push(e[i].slice(0,a))),n}},4423:(e,t,n)=>{"use strict";var r=n(9198),o=n(6808),i=n(5923);function a(e,t){for(var n,r,i,a,l,u,s=e[t][1],c=e[t][2],f=t-1,d=[],p=s._tokenizer||c.parser[s.contentType](s.start),h=p.events,m=[],v={};s;){for(;e[++f][1]!==s;);d.push(f),s._tokenizer||(n=c.sliceStream(s),s.next||n.push(null),r&&p.defineSkip(s.start),s.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(n),s.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),r=s,s=s.next}for(s=r,i=h.length;i--;)"enter"===h[i][0]?a=!0:a&&h[i][1].type===h[i-1][1].type&&h[i][1].start.line!==h[i][1].end.line&&(g(h.slice(i+1,l)),s._tokenizer=s.next=void 0,s=s.previous,l=i+1);for(p.events=s._tokenizer=s.next=void 0,g(h.slice(0,l)),i=-1,u=0;++i<m.length;)v[u+m[i][0]]=u+m[i][1],u+=m[i][1]-m[i][0]-1;return v;function g(t){var n=d.pop();m.unshift([n,n+t.length-1]),o(e,n,2,t)}}e.exports=function(e){for(var t,n,l,u,s,c,f,d={},p=-1;++p<e.length;){for(;p in d;)p=d[p];if(t=e[p],p&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[p-1][1].type&&((l=0)<(c=t[1]._tokenizer.events).length&&"lineEndingBlank"===c[l][1].type&&(l+=2),l<c.length&&"content"===c[l][1].type))for(;++l<c.length&&"content"!==c[l][1].type;)"chunkText"===c[l][1].type&&(c[l][1].isInFirstContentOfListItem=!0,l++);if("enter"===t[0])t[1].contentType&&(r(d,a(e,p)),p=d[p],f=!0);else if(t[1]._container||t[1]._movePreviousLineEndings){for(l=p,n=void 0;l--&&("lineEnding"===(u=e[l])[1].type||"lineEndingBlank"===u[1].type);)"enter"===u[0]&&(n&&(e[n][1].type="lineEndingBlank"),u[1].type="lineEnding",n=l);n&&(t[1].end=i(e[n][1].start),(s=e.slice(n,p)).unshift(t),o(e,n,p-n+1,s))}}return!f}},9050:(e,t)=>{"use strict";t.RI=t.Nw=void 0,t.Nw=["wait","viewport","goto","media","select","hover","click","drag","swipe","keyboard","type"],t.RI=function(e,t){const n=function(e,t){const n=e=>(null==t?void 0:t.pretty)?e:e.toLowerCase();if("wait"===e.action&&"number"==typeof e.value)return`${n("Wait")} ${e.value}s`;if("wait"===e.action)return`${n("Wait For")} ${e.value}`;if("viewport"===e.action)return e.value?`${n("Viewport")} ${e.value}`:`${n("Reset Viewport")}`;if("goto"===e.action&&"back"===e.value)return`${n("Go")} Back`;if("goto"===e.action&&"forward"===e.value)return`${n("Go")} Forward`;if("goto"===e.action){let r=e.value;return(null==t?void 0:t.pretty)&&((null==t?void 0:t.url)&&(r=r.replace(t.url,"")),r.endsWith("/")&&(r=r.substring(0,r.length-1))),`${n("Goto")} ${r}`}if("media"===e.action){const[r,o]=e.value.split(":"),i=(null==t?void 0:t.pretty)?o:`${r} ${o}`;return`${n("Media")} ${i}`}if("select"===e.action)return`${n("Select")} ${e.value}`;if("hover"===e.action)return`${n("Hover")}`;if("click"===e.action)return"right"===e.value?`${n("Right Click")}`:"middle"===e.value?`${n("Middle Click")}`:`${n("Click")}`;if("drag"===e.action){const[r,o]=e.value,i=(null==t?void 0:t.pretty)?`${r}, ${o}`:`${r} ${o}`;return`${n("Drag")} ${i}`}if("swipe"===e.action){let r,[o,i,a,l]=e.value;if(null==t?void 0:t.pretty){o=parseInt(o),a=parseInt(a),i=parseInt(i),l=parseInt(l);const e=o-a,t=i-l;e>0?r="Left":e<0&&(r="Right"),t>0?r=r?`Upper ${r}`:"Up":t<0&&(r=r?`Lower ${r}`:"Down"),r||(r="nowhere")}else r=`${o} ${i} ${a} ${l}`;return`${n("Swipe")} ${r}`}return"keyboard"===e.action?`${n("Keyboard")} ${e.value}`:"type"===e.action?`${n("Type")} ${e.value}`:void 0}(e,t);return(null==t?void 0:t.pretty)?n.replace(/\s+/g," ").trim():n}},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,l,u=o(e),s=1;s<arguments.length;s++){for(var c in a=Object(arguments[s]))n.call(a,c)&&(u[c]=a[c]);if(t){l=t(a);for(var f=0;f<l.length;f++)r.call(a,l[f])&&(u[l[f]]=a[l[f]])}}return u}},9435:e=>{"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&(n!==r&&n)}},2703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9560:(e,t,n)=>{"use strict";var r=n(6632),o=n(8805),i=n(7643),a="data";e.exports=function(e,t){var n=r(t),d=t,p=i;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===a&&l.test(t)&&("-"===t.charAt(4)?d=function(e){var t=e.slice(5).replace(u,f);return a+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);return u.test(t)?e:("-"!==(t=t.replace(s,c)).charAt(0)&&(t="-"+t),a+t)}(t),p=o),new p(d,t))};var l=/^data[-\w.:]+$/i,u=/-[a-z]/g,s=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function f(e){return e.charAt(1).toUpperCase()}},3934:e=>{"use strict";e.exports=JSON.parse('{"classId":"classID","dataType":"datatype","itemId":"itemID","strokeDashArray":"strokeDasharray","strokeDashOffset":"strokeDashoffset","strokeLineCap":"strokeLinecap","strokeLineJoin":"strokeLinejoin","strokeMiterLimit":"strokeMiterlimit","typeOf":"typeof","xLinkActuate":"xlinkActuate","xLinkArcRole":"xlinkArcrole","xLinkHref":"xlinkHref","xLinkRole":"xlinkRole","xLinkShow":"xlinkShow","xLinkTitle":"xlinkTitle","xLinkType":"xlinkType","xmlnsXLink":"xmlnsXlink"}')},7247:(e,t,n)=>{"use strict";var r=n(9940),o=n(8289),i=n(5812),a=n(4397),l=n(7716),u=n(1805);e.exports=r([i,o,a,l,u])},7716:(e,t,n)=>{"use strict";var r=n(7e3),o=n(7596),i=r.booleanish,a=r.number,l=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:l,ariaCurrent:null,ariaDescribedBy:l,ariaDetails:null,ariaDisabled:i,ariaDropEffect:l,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:l,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l,ariaLevel:a,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:l,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:l,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:i,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},1805:(e,t,n)=>{"use strict";var r=n(7e3),o=n(7596),i=n(855),a=r.boolean,l=r.overloadedBoolean,u=r.booleanish,s=r.number,c=r.spaceSeparated,f=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:f,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:c,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:c,cols:s,colSpan:null,content:null,contentEditable:u,controls:a,controlsList:c,coords:s|f,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:l,draggable:u,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:c,height:s,hidden:a,high:s,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:f,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:c,itemRef:c,itemScope:a,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:s,pattern:null,ping:c,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:c,required:a,reversed:a,rows:s,rowSpan:s,sandbox:c,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:f,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:u,width:s,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:s,security:null,unselectable:null}})},5789:(e,t,n)=>{"use strict";var r=n(7e3),o=n(7596),i=n(8740),a=r.boolean,l=r.number,u=r.spaceSeparated,s=r.commaSeparated,c=r.commaOrSpaceSeparated;e.exports=o({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:i,properties:{about:c,accentHeight:l,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:l,amplitude:l,arabicForm:null,ascent:l,attributeName:null,attributeType:null,azimuth:l,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:l,by:null,calcMode:null,capHeight:l,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:l,diffuseConstant:l,direction:null,display:null,dur:null,divisor:l,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:l,enableBackground:null,end:null,event:null,exponent:l,externalResourcesRequired:null,fill:null,fillOpacity:l,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:s,g2:s,glyphName:s,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:l,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:l,horizOriginX:l,horizOriginY:l,id:null,ideographic:l,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:l,k:l,k1:l,k2:l,k3:l,k4:l,kernelMatrix:c,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:l,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:l,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:l,overlineThickness:l,paintOrder:null,panose1:null,path:null,pathLength:l,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:l,pointsAtY:l,pointsAtZ:l,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:c,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:c,rev:c,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:c,requiredFeatures:c,requiredFonts:c,requiredFormats:c,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:l,specularExponent:l,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:l,strikethroughThickness:l,string:null,stroke:null,strokeDashArray:c,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:l,strokeOpacity:l,strokeWidth:null,style:null,surfaceScale:l,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:c,tabIndex:l,tableValues:null,target:null,targetX:l,targetY:l,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:c,to:null,transform:null,u1:null,u2:null,underlinePosition:l,underlineThickness:l,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:l,values:null,vAlphabetic:l,vMathematical:l,vectorEffect:null,vHanging:l,vIdeographic:l,version:null,vertAdvY:l,vertOriginX:l,vertOriginY:l,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:l,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},855:(e,t,n)=>{"use strict";var r=n(8740);e.exports=function(e,t){return r(e,t.toLowerCase())}},8740:e=>{"use strict";e.exports=function(e,t){return t in e?e[t]:t}},7596:(e,t,n)=>{"use strict";var r=n(6632),o=n(9607),i=n(8805);e.exports=function(e){var t,n,a=e.space,l=e.mustUseProperty||[],u=e.attributes||{},s=e.properties,c=e.transform,f={},d={};for(t in s)n=new i(t,c(u,t),s[t],a),-1!==l.indexOf(t)&&(n.mustUseProperty=!0),f[t]=n,d[r(t)]=t,d[r(n.attribute)]=t;return new o(f,d,a)}},8805:(e,t,n)=>{"use strict";var r=n(7643),o=n(7e3);e.exports=l,l.prototype=new r,l.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=i.length;function l(e,t,n,l){var s,c=-1;for(u(this,"space",l),r.call(this,e,t);++c<a;)u(this,s=i[c],(n&o[s])===o[s])}function u(e,t,n){n&&(e[t]=n)}},7643:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},9940:(e,t,n)=>{"use strict";var r=n(7529),o=n(9607);e.exports=function(e){for(var t,n,i=e.length,a=[],l=[],u=-1;++u<i;)t=e[u],a.push(t.property),l.push(t.normal),n=t.space;return new o(r.apply(null,a),r.apply(null,l),n)}},9607:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},7e3:(e,t)=>{"use strict";var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},8289:(e,t,n)=>{"use strict";var r=n(7596);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},5812:(e,t,n)=>{"use strict";var r=n(7596);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},4397:(e,t,n)=>{"use strict";var r=n(7596),o=n(855);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:o,properties:{xmlns:null,xmlnsXLink:null}})},6632:e=>{"use strict";e.exports=function(e){return e.toLowerCase()}},1218:(e,t,n)=>{"use strict";var r=n(9940),o=n(8289),i=n(5812),a=n(4397),l=n(7716),u=n(5789);e.exports=r([i,o,a,l,u])},4448:(e,t,n)=>{"use strict";var r=n(7294),o=n(7418),i=n(3840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,u={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,S=60106,E=60107,C=60108,_=60114,O=60109,P=60110,T=60112,M=60113,D=60120,A=60115,F=60116,I=60121,N=60128,L=60129,z=60130,R=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;k=j("react.element"),S=j("react.portal"),E=j("react.fragment"),C=j("react.strict_mode"),_=j("react.profiler"),O=j("react.provider"),P=j("react.context"),T=j("react.forward_ref"),M=j("react.suspense"),D=j("react.suspense_list"),A=j("react.memo"),F=j("react.lazy"),I=j("react.block"),j("react.scope"),N=j("react.opaque.id"),L=j("react.debug_trace_mode"),z=j("react.offscreen"),R=j("react.legacy_hidden")}var V,B="function"==typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function H(e){if(void 0===V)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var K=!1;function W(e,t){if(!e||K)return"";K=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{K=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 22:return W(e.type._render,!1);case 1:return W(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case S:return"Portal";case _:return"Profiler";case C:return"StrictMode";case M:return"Suspense";case D:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case A:return $(e.type);case I:return $(e._render);case F:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Q(n)}}function se(e,t){var n=Q(t.value),r=Q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,me,ve=(me=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var ke=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Ee(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Oe=null,Pe=null;function Te(e){if(e=Zr(e)){if("function"!=typeof _e)throw Error(a(280));var t=e.stateNode;t&&(t=to(t),_e(e.stateNode,e.type,t))}}function Me(e){Oe?Pe?Pe.push(e):Pe=[e]:Oe=e}function De(){if(Oe){var e=Oe,t=Pe;if(Pe=Oe=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ae(e,t){return e(t)}function Fe(e,t,n,r,o){return e(t,n,r,o)}function Ie(){}var Ne=Ae,Le=!1,ze=!1;function Re(){null===Oe&&null===Pe||(Ie(),De())}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=to(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ve=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(me){Ve=!1}function Ue(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var He=!1,Ke=null,We=!1,qe=null,$e={onError:function(e){He=!0,Ke=e}};function Qe(e,t,n,r,o,i,a,l,u){He=!1,Ke=null,Ue.apply($e,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ge(e){if(Ye(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ge(o),e;if(i===r)return Ge(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,ot=!1,it=[],at=null,lt=null,ut=null,st=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":st.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=pt(t,n,r,o,i),null!==t&&null!==(t=Zr(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function vt(e){var t=Jr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Zr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=Zr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&&gt(at)&&(at=null),null!==lt&&gt(lt)&&(lt=null),null!==ut&&gt(ut)&&(ut=null),st.forEach(yt),ct.forEach(yt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function wt(e){function t(t){return xt(t,e)}if(0<it.length){xt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&xt(at,e),null!==lt&&xt(lt,e),null!==ut&&xt(ut,e),st.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},Et={},Ct={};function _t(e){if(Et[e])return Et[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return Et[e]=n[t];return e}f&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Ot=_t("animationend"),Pt=_t("animationiteration"),Tt=_t("animationstart"),Mt=_t("transitionend"),Dt=new Map,At=new Map,Ft=["abort","abort",Ot,"animationEnd",Pt,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Mt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),At.set(r,t),Dt.set(r,o),s(o,[r])}}(0,i.unstable_now)();var Nt=8;function Lt(e){if(0!=(1&e))return Nt=15,1;if(0!=(2&e))return Nt=14,2;if(0!=(4&e))return Nt=13,4;var t=24&e;return 0!==t?(Nt=12,t):0!=(32&e)?(Nt=11,32):0!=(t=192&e)?(Nt=10,t):0!=(256&e)?(Nt=9,256):0!=(t=3584&e)?(Nt=8,t):0!=(4096&e)?(Nt=7,4096):0!=(t=4186112&e)?(Nt=6,t):0!=(t=62914560&e)?(Nt=5,t):67108864&e?(Nt=4,67108864):0!=(134217728&e)?(Nt=3,134217728):0!=(t=805306368&e)?(Nt=2,t):0!=(1073741824&e)?(Nt=1,1073741824):(Nt=8,e)}function zt(e,t){var n=e.pendingLanes;if(0===n)return Nt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=Nt=15;else if(0!=(i=134217727&n)){var u=i&~a;0!==u?(r=Lt(u),o=Nt):0!=(l&=i)&&(r=Lt(l),o=Nt)}else 0!=(i=n&~a)?(r=Lt(i),o=Nt):0!==l&&(r=Lt(l),o=Nt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Lt(t),o<=Nt)return t;Nt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ht(t)),r|=e[n],t&=~o;return r}function Rt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function jt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?jt(10,t):e;case 10:return 0===(e=Vt(192&~t))?jt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&0===(e=Vt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Vt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ut(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Kt(e)/Wt|0)|0},Kt=Math.log,Wt=Math.LN2,qt=i.unstable_UserBlockingPriority,$t=i.unstable_runWithPriority,Qt=!0;function Yt(e,t,n,r){Le||Ie();var o=Gt,i=Le;Le=!0;try{Fe(o,e,t,n,r)}finally{(Le=i)||Re()}}function Xt(e,t,n,r){$t(qt,Gt.bind(null,e,t,n,r))}function Gt(e,t,n,r){var o;if(Qt)if((o=0==(4&t))&&0<it.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),it.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&ht(e,r);else{if(o){if(-1<dt.indexOf(e))return e=pt(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return at=mt(at,e,t,n,r,o),!0;case"dragenter":return lt=mt(lt,e,t,n,r,o),!0;case"mouseover":return ut=mt(ut,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return st.set(i,mt(st.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ct.set(i,mt(ct.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;ht(e,r)}Dr(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=Ce(r);if(null!==(o=Jr(o))){var i=Ye(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Xe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Dr(e,t,r,o,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function ln(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:an,this.isPropagationStopped=an,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var un,sn,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=o({},fn,{view:0,detail:0}),hn=ln(pn),mn=o({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(un=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=un=0,cn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),vn=ln(mn),gn=ln(o({},mn,{dataTransfer:0})),yn=ln(o({},pn,{relatedTarget:0})),bn=ln(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=ln(o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(o({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function _n(){return Cn}var On=ln(o({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Pn=ln(o({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=ln(o({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Mn=ln(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=ln(o({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),An=[9,13,27,32],Fn=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Nn=f&&"TextEvent"in window&&!In,Ln=f&&(!Fn||In&&8<In&&11>=In),zn=String.fromCharCode(32),Rn=!1;function jn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Kn(e,t,n,r){Me(r),0<(t=Fr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,qn=null;function $n(e){Cr(e,0)}function Qn(e){if(G(eo(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(f){var Gn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Gn=Jn}else Gn=!1;Xn=Gn&&(!document.documentMode||9<document.documentMode)}function er(){Wn&&(Wn.detachEvent("onpropertychange",tr),qn=Wn=null)}function tr(e){if("value"===e.propertyName&&Qn(qn)){var t=[];if(Kn(t,qn,e,Ce(e)),e=$n,Le)e(t);else{Le=!0;try{Ae(e,t)}finally{Le=!1,Re()}}}}function nr(e,t,n){"focusin"===e?(er(),qn=n,(Wn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function or(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function ur(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hr=f&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,gr=null,yr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==J(r)||(r="selectionStart"in(r=mr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ur(gr,r)||(gr=r,0<(r=Fr(vr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Ft,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wr=0;wr<xr.length;wr++)At.set(xr[wr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,u,s){if(Qe.apply(this,arguments),He){if(!He)throw Error(a(198));var c=Ke;He=!1,Ke=null,We||(We=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function Cr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;Er(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;Er(o,l,s),i=u}}}if(We)throw e=qe,We=!1,qe=null,e}function _r(e,t){var n=no(t),r=e+"__bubble";n.has(r)||(Mr(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Or]||(e[Or]=!0,l.forEach((function(t){Sr.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Sr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=no(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),Mr(i,e,o,t),a.add(l))}function Mr(e,t,n,r){var o=At.get(t);switch(void 0===o?2:o){case 0:o=Yt;break;case 1:o=Xt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Ve||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Jr(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(ze)return e();ze=!0;try{Ne(e,t,n)}finally{ze=!1,Re()}}((function(){var r=i,o=Ce(n),a=[];e:{var l=Dt.get(e);if(void 0!==l){var u=dn,s=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=On;break;case"focusin":s="focus",u=yn;break;case"focusout":s="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Tn;break;case Ot:case Pt:case Tt:u=bn;break;case Mt:u=Mn;break;case"scroll":u=hn;break;case"wheel":u=Dn;break;case"copy":case"cut":case"paste":u=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Pn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=je(h,d))&&c.push(Ar(h,m,p))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Jr(s)&&!s[Xr])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?Jr(s):null)&&(s!==(f=Ye(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:eo(u),p=null==s?l:eo(s),(l=new c(m,h+"leave",u,n,o)).target=f,l.relatedTarget=p,m=null,Jr(o)===r&&((c=new c(d,h+"enter",s,n,o)).target=p,c.relatedTarget=f,m=c),f=m,u&&s)e:{for(d=s,h=0,p=c=u;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==u&&Nr(a,l,u,c,!1),null!==s&&null!==f&&Nr(a,f,s,c,!0)}if("select"===(u=(l=r?eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Yn;else if(Hn(l))if(Xn)v=ir;else{v=rr;var g=nr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=or);switch(v&&(v=v(e,r))?Kn(a,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&oe(l,"number",l.value)),g=r?eo(r):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(mr=g,vr=r,gr=null);break;case"focusout":gr=vr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,br(a,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":br(a,n,o)}var y;if(Fn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=nn()):(en="value"in(Zt=o)?Zt.value:Zt.textContent,Bn=!0)),0<(g=Fr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:g}),(y||null!==(y=Vn(n)))&&(b.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Rn=!0,zn);case"textInput":return(e=t.data)===zn&&Rn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Fn&&jn(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&0<(r=Fr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}Cr(a,t)}))}function Ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=je(e,n))&&r.unshift(Ar(e,i,o)),null!=(i=je(e,t))&&r.push(Ar(e,i,o))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Nr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=je(n,i))&&a.unshift(Ar(n,u,l)):o||null!=(u=je(n,i))&&a.push(Ar(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Lr(){}var zr=null,Rr=null;function jr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Br="function"==typeof setTimeout?setTimeout:void 0,Ur="function"==typeof clearTimeout?clearTimeout:void 0;function Hr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Kr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Wr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var qr=0,$r=Math.random().toString(36).slice(2),Qr="__reactFiber$"+$r,Yr="__reactProps$"+$r,Xr="__reactContainer$"+$r,Gr="__reactEvents$"+$r;function Jr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Wr(e);null!==e;){if(n=e[Qr])return n;e=Wr(e)}return t}n=(e=n).parentNode}return null}function Zr(e){return!(e=e[Qr]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function to(e){return e[Yr]||null}function no(e){var t=e[Gr];return void 0===t&&(t=e[Gr]=new Set),t}var ro=[],oo=-1;function io(e){return{current:e}}function ao(e){0>oo||(e.current=ro[oo],ro[oo]=null,oo--)}function lo(e,t){oo++,ro[oo]=e.current,e.current=t}var uo={},so=io(uo),co=io(!1),fo=uo;function po(e,t){var n=e.type.contextTypes;if(!n)return uo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ho(e){return null!=e.childContextTypes}function mo(){ao(co),ao(so)}function vo(e,t,n){if(so.current!==uo)throw Error(a(168));lo(so,t),lo(co,n)}function go(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,$(t)||"Unknown",i));return o({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||uo,fo=so.current,lo(so,e),lo(co,co.current),!0}function bo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=go(e,t,fo),r.__reactInternalMemoizedMergedChildContext=e,ao(co),ao(so),lo(so,e)):ao(co),lo(co,n)}var xo=null,wo=null,ko=i.unstable_runWithPriority,So=i.unstable_scheduleCallback,Eo=i.unstable_cancelCallback,Co=i.unstable_shouldYield,_o=i.unstable_requestPaint,Oo=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,To=i.unstable_ImmediatePriority,Mo=i.unstable_UserBlockingPriority,Do=i.unstable_NormalPriority,Ao=i.unstable_LowPriority,Fo=i.unstable_IdlePriority,Io={},No=void 0!==_o?_o:function(){},Lo=null,zo=null,Ro=!1,jo=Oo(),Vo=1e4>jo?Oo:function(){return Oo()-jo};function Bo(){switch(Po()){case To:return 99;case Mo:return 98;case Do:return 97;case Ao:return 96;case Fo:return 95;default:throw Error(a(332))}}function Uo(e){switch(e){case 99:return To;case 98:return Mo;case 97:return Do;case 96:return Ao;case 95:return Fo;default:throw Error(a(332))}}function Ho(e,t){return e=Uo(e),ko(e,t)}function Ko(e,t,n){return e=Uo(e),So(e,t,n)}function Wo(){if(null!==zo){var e=zo;zo=null,Eo(e)}qo()}function qo(){if(!Ro&&null!==Lo){Ro=!0;var e=0;try{var t=Lo;Ho(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Lo=null}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),So(To,Wo),t}finally{Ro=!1}}}var $o=w.ReactCurrentBatchConfig;function Qo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Yo=io(null),Xo=null,Go=null,Jo=null;function Zo(){Jo=Go=Xo=null}function ei(e){var t=Yo.current;ao(Yo),e.type._context._currentValue=t}function ti(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ni(e,t){Xo=e,Jo=Go=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Fa=!0),e.firstContext=null)}function ri(e,t){if(Jo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Jo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Go){if(null===Xo)throw Error(a(308));Go=t,Xo.dependencies={lanes:0,firstContext:t,responders:null}}else Go=Go.next=t;return e._currentValue}var oi=!1;function ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function li(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ui(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ci(e,t,n,r){var i=e.updateQueue;oi=!1;var a=i.firstBaseUpdate,l=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var s=u,c=s.next;s.next=null,null===l?a=c:l.next=c,l=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==a){for(d=i.baseState,l=0,f=c=s=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(u=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(u="function"==typeof(h=m.payload)?h.call(p,d,u):h))break e;d=o({},d,u);break e;case 2:oi=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,l|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(s=d),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Nl|=l,e.lanes=l,e.memoizedState=d}}function fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var di=(new r.Component).refs;function pi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var hi={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=au(),o=lu(e),i=li(r,o);i.payload=t,null!=n&&(i.callback=n),ui(e,i),uu(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=au(),o=lu(e),i=li(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),ui(e,i),uu(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=au(),r=lu(e),o=li(n,r);o.tag=2,null!=t&&(o.callback=t),ui(e,o),uu(e,r,n)}};function mi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(o,i))}function vi(e,t,n){var r=!1,o=uo,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(o=ho(t)?fo:so.current,i=(r=null!=(r=t.contextTypes))?po(e,o):uo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=hi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function gi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hi.enqueueReplaceState(t,t.state,null)}function yi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=di,ii(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ri(i):(i=ho(t)?fo:so.current,o.context=po(e,i)),ci(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(pi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&hi.enqueueReplaceState(o,o.state,null),ci(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var bi=Array.isArray;function xi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===di&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function wi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ki(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Vu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ku(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=xi(e,t,n),r.return=e,r):((r=Bu(n.type,n.key,n.props,null,e.mode,r)).ref=xi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Uu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ku(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Bu(t.type,t.key,t.props,null,e.mode,n)).ref=xi(e,null,t),n.return=e,n;case S:return(t=Wu(t,e.mode,n)).return=e,t}if(bi(t)||U(t))return(t=Uu(t,e.mode,n,null)).return=e,t;wi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?n.type===E?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null}if(bi(n)||U(n))return null!==o?null:f(e,t,n,r,null);wi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===E?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(bi(r)||U(r))return f(t,e=e.get(n)||null,r,o,null);wi(t,r)}return null}function m(o,a,l,u){for(var s=null,c=null,f=a,m=a=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(o,f,l[m],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,m),null===c?s=g:c.sibling=g,c=g,f=v}if(m===l.length)return n(o,f),s;if(null===f){for(;m<l.length;m++)null!==(f=d(o,l[m],u))&&(a=i(f,a,m),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);m<l.length;m++)null!==(v=h(f,o,m,l[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(o,e)})),s}function v(o,l,u,s){var c=U(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,m=l,v=l=0,g=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(o,m,y.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),l=i(b,l,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(o,m),c;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=d(o,y.value,s))&&(l=i(y,l,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(o,m);!y.done;v++,y=u.next())null!==(y=h(m,o,v,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=i(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(o,e)})),c}return function(e,r,i,u){var s="object"==typeof i&&null!==i&&i.type===E&&null===i.key;s&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case k:e:{for(c=i.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(i.type===E){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}break;default:if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=xi(e,s,i),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}i.type===E?((r=Uu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Bu(i.type,i.key,i.props,null,e.mode,u)).ref=xi(e,r,i),u.return=e,e=u)}return l(e);case S:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Wu(i,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Ku(i,e.mode,u)).return=e,e=r),l(e);if(bi(i))return m(e,r,i,u);if(U(i))return v(e,r,i,u);if(c&&wi(e,i),void 0===i&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,$(e.type)||"Component"))}return n(e,r)}}var Si=ki(!0),Ei=ki(!1),Ci={},_i=io(Ci),Oi=io(Ci),Pi=io(Ci);function Ti(e){if(e===Ci)throw Error(a(174));return e}function Mi(e,t){switch(lo(Pi,t),lo(Oi,e),lo(_i,Ci),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ao(_i),lo(_i,t)}function Di(){ao(_i),ao(Oi),ao(Pi)}function Ai(e){Ti(Pi.current);var t=Ti(_i.current),n=pe(t,e.type);t!==n&&(lo(Oi,e),lo(_i,n))}function Fi(e){Oi.current===e&&(ao(_i),ao(Oi))}var Ii=io(0);function Ni(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Li=null,zi=null,Ri=!1;function ji(e,t){var n=Ru(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Bi(e){if(Ri){var t=zi;if(t){var n=t;if(!Vi(e,t)){if(!(t=Kr(n.nextSibling))||!Vi(e,t))return e.flags=-1025&e.flags|2,Ri=!1,void(Li=e);ji(Li,n)}Li=e,zi=Kr(t.firstChild)}else e.flags=-1025&e.flags|2,Ri=!1,Li=e}}function Ui(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Li=e}function Hi(e){if(e!==Li)return!1;if(!Ri)return Ui(e),Ri=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=zi;t;)ji(e,t),t=Kr(t.nextSibling);if(Ui(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){zi=Kr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}zi=null}}else zi=Li?Kr(e.stateNode.nextSibling):null;return!0}function Ki(){zi=Li=null,Ri=!1}var Wi=[];function qi(){for(var e=0;e<Wi.length;e++)Wi[e]._workInProgressVersionPrimary=null;Wi.length=0}var $i=w.ReactCurrentDispatcher,Qi=w.ReactCurrentBatchConfig,Yi=0,Xi=null,Gi=null,Ji=null,Zi=!1,ea=!1;function ta(){throw Error(a(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){if(Yi=i,Xi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$i.current=null===e||null===e.memoizedState?Ta:Ma,e=n(r,o),ea){i=0;do{if(ea=!1,!(25>i))throw Error(a(301));i+=1,Ji=Gi=null,t.updateQueue=null,$i.current=Da,e=n(r,o)}while(ea)}if($i.current=Pa,t=null!==Gi&&null!==Gi.next,Yi=0,Ji=Gi=Xi=null,Zi=!1,t)throw Error(a(300));return e}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ji?Xi.memoizedState=Ji=e:Ji=Ji.next=e,Ji}function ia(){if(null===Gi){var e=Xi.alternate;e=null!==e?e.memoizedState:null}else e=Gi.next;var t=null===Ji?Xi.memoizedState:Ji.next;if(null!==t)Ji=t,Gi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Gi=e).memoizedState,baseState:Gi.baseState,baseQueue:Gi.baseQueue,queue:Gi.queue,next:null},null===Ji?Xi.memoizedState=Ji=e:Ji=Ji.next=e}return Ji}function aa(e,t){return"function"==typeof t?t(e):t}function la(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Gi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=l=i=null,s=o;do{var c=s.lane;if((Yi&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(l=u=f,i=r):u=u.next=f,Xi.lanes|=c,Nl|=c}s=s.next}while(null!==s&&s!==o);null===u?i=r:u.next=l,ar(r,t.memoizedState)||(Fa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ua(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);ar(i,t.memoizedState)||(Fa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function sa(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Yi&e)===e)&&(t._workInProgressVersionPrimary=r,Wi.push(t))),e)return n(t._source);throw Wi.push(t),Error(a(350))}function ca(e,t,n,r){var o=Ol;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),u=$i.current,s=u.useState((function(){return sa(o,t,n)})),c=s[1],f=s[0];s=Ji;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Xi;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!ar(l,e)){e=n(t._source),ar(f,e)||(c(e),e=lu(v),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var u=31-Ht(a),s=1<<u;r[u]|=e,a&=~s}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=lu(v);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(h,n)&&ar(m,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:f}).dispatch=c=Oa.bind(null,Xi,e),s.queue=e,s.baseQueue=null,f=sa(o,t,n),s.memoizedState=s.baseState=f),f}function fa(e,t,n){return ca(ia(),e,t,n)}function da(e){var t=oa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e}).dispatch=Oa.bind(null,Xi,e),[t.memoizedState,e]}function pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xi.updateQueue)?(t={lastEffect:null},Xi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ha(e){return e={current:e},oa().memoizedState=e}function ma(){return ia().memoizedState}function va(e,t,n,r){var o=oa();Xi.flags|=e,o.memoizedState=pa(1|t,n,void 0,void 0===r?null:r)}function ga(e,t,n,r){var o=ia();r=void 0===r?null:r;var i=void 0;if(null!==Gi){var a=Gi.memoizedState;if(i=a.destroy,null!==r&&na(r,a.deps))return void pa(t,n,i,r)}Xi.flags|=e,o.memoizedState=pa(1|t,n,i,r)}function ya(e,t){return va(516,4,e,t)}function ba(e,t){return ga(516,4,e,t)}function xa(e,t){return ga(4,2,e,t)}function wa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ka(e,t,n){return n=null!=n?n.concat([e]):null,ga(4,2,wa.bind(null,t,e),n)}function Sa(){}function Ea(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ca(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _a(e,t){var n=Bo();Ho(98>n?98:n,(function(){e(!0)})),Ho(97<n?97:n,(function(){var n=Qi.transition;Qi.transition=1;try{e(!1),t()}finally{Qi.transition=n}}))}function Oa(e,t,n){var r=au(),o=lu(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Xi||null!==a&&a===Xi)ea=Zi=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=a(l,n);if(i.eagerReducer=a,i.eagerState=u,ar(u,l))return}catch(e){}uu(e,o,r)}}var Pa={readContext:ri,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useMutableSource:ta,useOpaqueIdentifier:ta,unstable_isNewReconciler:!1},Ta={readContext:ri,useCallback:function(e,t){return oa().memoizedState=[e,void 0===t?null:t],e},useContext:ri,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return va(4,2,e,t)},useMemo:function(e,t){var n=oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oa.bind(null,Xi,e),[r.memoizedState,e]},useRef:ha,useState:da,useDebugValue:Sa,useDeferredValue:function(e){var t=da(e),n=t[0],r=t[1];return ya((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=da(!1),t=e[0];return ha(e=_a.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=oa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ca(r,e,t,n)},useOpaqueIdentifier:function(){if(Ri){var e=!1,t=function(e){return{$$typeof:N,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(a(355))})),n=da(t)[1];return 0==(2&Xi.mode)&&(Xi.flags|=516,pa(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return da(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},Ma={readContext:ri,useCallback:Ea,useContext:ri,useEffect:ba,useImperativeHandle:ka,useLayoutEffect:xa,useMemo:Ca,useReducer:la,useRef:ma,useState:function(){return la(aa)},useDebugValue:Sa,useDeferredValue:function(e){var t=la(aa),n=t[0],r=t[1];return ba((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=la(aa)[0];return[ma().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return la(aa)[0]},unstable_isNewReconciler:!1},Da={readContext:ri,useCallback:Ea,useContext:ri,useEffect:ba,useImperativeHandle:ka,useLayoutEffect:xa,useMemo:Ca,useReducer:ua,useRef:ma,useState:function(){return ua(aa)},useDebugValue:Sa,useDeferredValue:function(e){var t=ua(aa),n=t[0],r=t[1];return ba((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=ua(aa)[0];return[ma().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return ua(aa)[0]},unstable_isNewReconciler:!1},Aa=w.ReactCurrentOwner,Fa=!1;function Ia(e,t,n,r){t.child=null===e?Ei(t,null,n,r):Si(t,e.child,n,r)}function Na(e,t,n,r,o){n=n.render;var i=t.ref;return ni(t,o),r=ra(e,t,n,r,i,o),null===e||Fa?(t.flags|=1,Ia(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Za(e,t,o))}function La(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||ju(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Bu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,za(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)?Za(e,t,i):(t.flags|=1,(e=Vu(a,r)).ref=t.ref,e.return=t,t.child=e)}function za(e,t,n,r,o,i){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(Fa=!1,0==(i&o))return t.lanes=e.lanes,Za(e,t,i);0!=(16384&e.flags)&&(Fa=!0)}return Va(e,t,n,r,i)}function Ra(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},vu(0,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},vu(0,e),null;t.memoizedState={baseLanes:0},vu(0,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,vu(0,r);return Ia(e,t,o,n),t.child}function ja(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Va(e,t,n,r,o){var i=ho(n)?fo:so.current;return i=po(t,i),ni(t,o),n=ra(e,t,n,r,i,o),null===e||Fa?(t.flags|=1,Ia(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Za(e,t,o))}function Ba(e,t,n,r,o){if(ho(n)){var i=!0;yo(t)}else i=!1;if(ni(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),vi(t,n,r),yi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;s="object"==typeof s&&null!==s?ri(s):po(t,s=ho(n)?fo:so.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&gi(t,a,r,s),oi=!1;var d=t.memoizedState;a.state=d,ci(t,r,a,o),u=t.memoizedState,l!==r||d!==u||co.current||oi?("function"==typeof c&&(pi(t,n,c,r),u=t.memoizedState),(l=oi||mi(t,n,l,r,d,u,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ai(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Qo(t.type,l),a.props=s,f=t.pendingProps,d=a.context,u="object"==typeof(u=n.contextType)&&null!==u?ri(u):po(t,u=ho(n)?fo:so.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&gi(t,a,r,u),oi=!1,d=t.memoizedState,a.state=d,ci(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||co.current||oi?("function"==typeof p&&(pi(t,n,p,r),h=t.memoizedState),(s=oi||mi(t,n,s,r,d,h,u))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ua(e,t,n,r,i,o)}function Ua(e,t,n,r,o,i){ja(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&bo(t,n,!1),Za(e,t,i);r=t.stateNode,Aa.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,l,i)):Ia(e,t,l,i),t.memoizedState=r.state,o&&bo(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?vo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vo(0,t.context,!1),Mi(e,t.containerInfo)}var Ka,Wa,qa,$a={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,o=t.pendingProps,i=Ii.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),lo(Ii,1&i),null===e?(void 0!==o.fallback&&Bi(t),e=o.children,i=o.fallback,a?(e=Ya(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ya(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,t.lanes=33554432,e):((n=Hu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=function(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vu(a,l),null!==e?r=Vu(e,r):(r=Uu(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=$a,o):(n=function(e,t,n,r){var o=e.child;return e=o.sibling,n=Vu(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,o.children,n),t.memoizedState=null,n))}function Ya(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Hu(t,o,0,null),n=Uu(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Xa(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ti(e.return,t)}function Ga(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function Ja(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ia(e,t,r.children,n),0!=(2&(r=Ii.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xa(e,n);else if(19===e.tag)Xa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(lo(Ii,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ni(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ga(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ni(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ga(t,!0,n,null,i,t.lastEffect);break;case"together":Ga(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Za(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Vu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function el(e,t){if(!Ri)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ho(t.type)&&mo(),null;case 3:return Di(),ao(co),ao(so),qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Hi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Fi(t);var i=Ti(Pi.current);if(n=t.type,null!==e&&null!=t.stateNode)Wa(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ti(_i.current),Hi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Yr]=l,n){case"dialog":_r("cancel",r),_r("close",r);break;case"iframe":case"object":case"embed":_r("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)_r(kr[e],r);break;case"source":_r("error",r);break;case"img":case"image":case"link":_r("error",r),_r("load",r);break;case"details":_r("toggle",r);break;case"input":ee(r,l),_r("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},_r("invalid",r);break;case"textarea":ue(r,l),_r("invalid",r)}for(var s in Se(n,l),e=null,l)l.hasOwnProperty(s)&&(i=l[s],"children"===s?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(s)&&null!=i&&"onScroll"===s&&_r("scroll",r));switch(n){case"input":X(r),re(r,l,!0);break;case"textarea":X(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Lr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Qr]=t,e[Yr]=r,Ka(e,t),t.stateNode=e,s=Ee(n,r),n){case"dialog":_r("cancel",e),_r("close",e),i=r;break;case"iframe":case"object":case"embed":_r("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)_r(kr[i],e);i=r;break;case"source":_r("error",e),i=r;break;case"img":case"image":case"link":_r("error",e),_r("load",e),i=r;break;case"details":_r("toggle",e),i=r;break;case"input":ee(e,r),i=Z(e,r),_r("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),_r("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),_r("invalid",e);break;default:i=r}Se(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?we(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(u.hasOwnProperty(l)?null!=f&&"onScroll"===l&&_r("scroll",e):null!=f&&x(e,l,f,s))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Lr)}jr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ti(Pi.current),Ti(_i.current),Hi(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return ao(Ii),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Hi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ii.current)?0===Al&&(Al=3):(0!==Al&&3!==Al||(Al=4),null===Ol||0==(134217727&Nl)&&0==(134217727&Ll)||du(Ol,Tl))),(r||n)&&(t.flags|=4),null);case 4:return Di(),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return ei(t),null;case 17:return ho(t.type)&&mo(),null;case 19:if(ao(Ii),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(s=r.rendering))if(l)el(r,!1);else{if(0!==Al||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Ni(e))){for(t.flags|=64,el(r,!1),null!==(l=s.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return lo(Ii,1&Ii.current|2),t.child}e=e.sibling}null!==r.tail&&Vo()>Vl&&(t.flags|=64,l=!0,el(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ni(s))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),el(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Ri)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vo()-r.renderingStartTime>Vl&&1073741824!==n&&(t.flags|=64,l=!0,el(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vo(),n.sibling=null,t=Ii.current,lo(Ii,l?1&t|2:1&t),n):null;case 23:case 24:return gu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function nl(e){switch(e.tag){case 1:ho(e.type)&&mo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Di(),ao(co),ao(so),qi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Fi(e),null;case 13:return ao(Ii),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ao(Ii),null;case 4:return Di(),null;case 10:return ei(e),null;case 23:case 24:return gu(),null;default:return null}}function rl(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ka=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ti(_i.current);var a,l=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Lr)}for(f in Se(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var s=i[f];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&_r("scroll",e),l||s===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===N?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var il="function"==typeof WeakMap?WeakMap:Map;function al(e,t,n){(n=li(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kl||(Kl=!0,Wl=r),ol(0,t)},n}function ll(e,t,n){(n=li(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ol(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this),ol(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ul="function"==typeof WeakSet?WeakSet:Set;function sl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Iu(e,t)}else t.current=null}function cl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function fl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Du(n,e),Mu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&jr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function dl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=xe("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function pl(e,t){if(wo&&"function"==typeof wo.onCommitFiberUnmount)try{wo.onCommitFiberUnmount(xo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Du(t,n);else{r=t;try{o()}catch(e){Iu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(sl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Iu(t,e)}break;case 5:sl(t);break;case 4:bl(e,t)}}function hl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ml(e){return 5===e.tag||3===e.tag||4===e.tag}function vl(e){e:{for(var t=e.return;null!==t;){if(ml(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ml(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?gl(e,n,t):yl(e,n,t)}function gl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Lr));else if(4!==r&&null!==(e=e.child))for(gl(e,t,n),e=e.sibling;null!==e;)gl(e,t,n),e=e.sibling}function yl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(yl(e,t,n),e=e.sibling;null!==e;)yl(e,t,n),e=e.sibling}function bl(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,s=u;;)if(pl(l,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===u)break e;for(;null===s.sibling;){if(null===s.return||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(l=n,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(pl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function xl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Yr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,o),t=Ee(e,r),o=0;o<i.length;o+=2){var l=i[o],u=i[o+1];"style"===l?we(n,u):"dangerouslySetInnerHTML"===l?ve(n,u):"children"===l?ge(n,u):x(n,l,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(jl=Vo(),dl(t.child,!0)),void wl(t);case 19:return void wl(t);case 17:return;case 23:case 24:return void dl(t,null!==t.memoizedState)}throw Error(a(163))}function wl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ul),t.forEach((function(t){var r=Lu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function kl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Sl=Math.ceil,El=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,_l=0,Ol=null,Pl=null,Tl=0,Ml=0,Dl=io(0),Al=0,Fl=null,Il=0,Nl=0,Ll=0,zl=0,Rl=null,jl=0,Vl=1/0;function Bl(){Vl=Vo()+500}var Ul,Hl=null,Kl=!1,Wl=null,ql=null,$l=!1,Ql=null,Yl=90,Xl=[],Gl=[],Jl=null,Zl=0,eu=null,tu=-1,nu=0,ru=0,ou=null,iu=!1;function au(){return 0!=(48&_l)?Vo():-1!==tu?tu:tu=Vo()}function lu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Bo()?1:2;if(0===nu&&(nu=Il),0!==$o.transition){0!==ru&&(ru=null!==Rl?Rl.pendingLanes:0),e=nu;var t=4186112&~ru;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Bo(),e=jt(0!=(4&_l)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),nu)}function uu(e,t,n){if(50<Zl)throw Zl=0,eu=null,Error(a(185));if(null===(e=su(e,t)))return null;Ut(e,t,n),e===Ol&&(Ll|=t,4===Al&&du(e,Tl));var r=Bo();1===t?0!=(8&_l)&&0==(48&_l)?pu(e):(cu(e,n),0===_l&&(Bl(),Wo())):(0==(4&_l)||98!==r&&99!==r||(null===Jl?Jl=new Set([e]):Jl.add(e)),cu(e,n)),Rl=e}function su(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function cu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var u=31-Ht(l),s=1<<u,c=i[u];if(-1===c){if(0==(s&r)||0!=(s&o)){c=t,Lt(s);var f=Nt;i[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);l&=~s}if(r=zt(e,e===Ol?Tl:0),t=Nt,0===r)null!==n&&(n!==Io&&Eo(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Io&&Eo(n)}15===t?(n=pu.bind(null,e),null===Lo?(Lo=[n],zo=So(To,qo)):Lo.push(n),n=Io):n=14===t?Ko(99,pu.bind(null,e)):Ko(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),fu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function fu(e){if(tu=-1,ru=nu=0,0!=(48&_l))throw Error(a(327));var t=e.callbackNode;if(Tu()&&e.callbackNode!==t)return null;var n=zt(e,e===Ol?Tl:0);if(0===n)return null;var r=n,o=_l;_l|=16;var i=xu();for(Ol===e&&Tl===r||(Bl(),yu(e,r));;)try{Su();break}catch(t){bu(e,t)}if(Zo(),El.current=i,_l=o,null!==Pl?r=0:(Ol=null,Tl=0,r=Al),0!=(Il&Ll))yu(e,0);else if(0!==r){if(2===r&&(_l|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(n=Rt(e))&&(r=wu(e,n))),1===r)throw t=Fl,yu(e,0),du(e,n),cu(e,Vo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:_u(e);break;case 3:if(du(e,n),(62914560&n)===n&&10<(r=jl+500-Vo())){if(0!==zt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){au(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Br(_u.bind(null,e),r);break}_u(e);break;case 4:if(du(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Ht(n);i=1<<l,(l=r[l])>o&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=Vo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Sl(n/1960))-n)){e.timeoutHandle=Br(_u.bind(null,e),n);break}_u(e);break;case 5:_u(e);break;default:throw Error(a(329))}}return cu(e,Vo()),e.callbackNode===t?fu.bind(null,e):null}function du(e,t){for(t&=~zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function pu(e){if(0!=(48&_l))throw Error(a(327));if(Tu(),e===Ol&&0!=(e.expiredLanes&Tl)){var t=Tl,n=wu(e,t);0!=(Il&Ll)&&(n=wu(e,t=zt(e,t)))}else n=wu(e,t=zt(e,0));if(0!==e.tag&&2===n&&(_l|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(t=Rt(e))&&(n=wu(e,t))),1===n)throw n=Fl,yu(e,0),du(e,t),cu(e,Vo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e),cu(e,Vo()),null}function hu(e,t){var n=_l;_l|=1;try{return e(t)}finally{0===(_l=n)&&(Bl(),Wo())}}function mu(e,t){var n=_l;_l&=-2,_l|=8;try{return e(t)}finally{0===(_l=n)&&(Bl(),Wo())}}function vu(e,t){lo(Dl,Ml),Ml|=t,Il|=t}function gu(){Ml=Dl.current,ao(Dl)}function yu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Ur(n)),null!==Pl)for(n=Pl.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&mo();break;case 3:Di(),ao(co),ao(so),qi();break;case 5:Fi(r);break;case 4:Di();break;case 13:case 19:ao(Ii);break;case 10:ei(r);break;case 23:case 24:gu()}n=n.return}Ol=e,Pl=Vu(e.current,null),Tl=Ml=Il=t,Al=0,Fl=null,zl=Ll=Nl=0}function bu(e,t){for(;;){var n=Pl;try{if(Zo(),$i.current=Pa,Zi){for(var r=Xi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Zi=!1}if(Yi=0,Ji=Gi=Xi=null,ea=!1,Cl.current=null,null===n||null===n.return){Al=1,Fl=t,Pl=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=Tl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&Ii.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var g=new Set;g.add(s),d.updateQueue=g}else v.add(s);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var y=li(-1,1);y.tag=2,ui(l,y)}l.lanes|=1;break e}u=void 0,l=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new il,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(l)){u.add(l);var x=Nu.bind(null,i,s,l);s.then(x,x)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error(($(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Al&&(Al=2),u=rl(u,l),d=a;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t,si(d,al(0,i,t));break e;case 1:i=u;var w=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===ql||!ql.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,si(d,ll(d,i,t));break e}}d=d.return}while(null!==d)}Cu(n)}catch(e){t=e,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function xu(){var e=El.current;return El.current=Pa,null===e?Pa:e}function wu(e,t){var n=_l;_l|=16;var r=xu();for(Ol===e&&Tl===t||yu(e,t);;)try{ku();break}catch(t){bu(e,t)}if(Zo(),_l=n,El.current=r,null!==Pl)throw Error(a(261));return Ol=null,Tl=0,Al}function ku(){for(;null!==Pl;)Eu(Pl)}function Su(){for(;null!==Pl&&!Co();)Eu(Pl)}function Eu(e){var t=Ul(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?Cu(e):Pl=t,Cl.current=null}function Cu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=tl(n,t,Ml)))return void(Pl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ml)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=nl(t)))return n.flags&=2047,void(Pl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Al&&(Al=5)}function _u(e){var t=Bo();return Ho(99,Ou.bind(null,e,t)),null}function Ou(e,t){do{Tu()}while(null!==Ql);if(0!=(48&_l))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,u=e.expirationTimes;0<i;){var s=31-Ht(i),c=1<<s;o[s]=0,l[s]=-1,u[s]=-1,i&=~c}if(null!==Jl&&0==(24&r)&&Jl.has(e)&&Jl.delete(e),e===Ol&&(Pl=Ol=null,Tl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=_l,_l|=32,Cl.current=null,zr=Qt,pr(l=dr())){if("selectionStart"in l)u={start:l.selectionStart,end:l.selectionEnd};else e:if(u=(u=l.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,i=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{u.nodeType,s.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=l,g=null;t:for(;;){for(var y;v!==u||0!==i&&3!==v.nodeType||(d=f+i),v!==s||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===l)break t;if(g===u&&++h===i&&(d=f),g===s&&++m===c&&(p=f),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Rr={focusedElem:l,selectionRange:u},Qt=!1,ou=null,iu=!1,Hl=r;do{try{Pu()}catch(e){if(null===Hl)throw Error(a(330));Iu(Hl,e),Hl=Hl.nextEffect}}while(null!==Hl);ou=null,Hl=r;do{try{for(l=e;null!==Hl;){var b=Hl.flags;if(16&b&&ge(Hl.stateNode,""),128&b){var x=Hl.alternate;if(null!==x){var w=x.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:vl(Hl),Hl.flags&=-3;break;case 6:vl(Hl),Hl.flags&=-3,xl(Hl.alternate,Hl);break;case 1024:Hl.flags&=-1025;break;case 1028:Hl.flags&=-1025,xl(Hl.alternate,Hl);break;case 4:xl(Hl.alternate,Hl);break;case 8:bl(l,u=Hl);var k=u.alternate;hl(u),null!==k&&hl(k)}Hl=Hl.nextEffect}}catch(e){if(null===Hl)throw Error(a(330));Iu(Hl,e),Hl=Hl.nextEffect}}while(null!==Hl);if(w=Rr,x=dr(),b=w.focusedElem,l=w.selectionRange,x!==b&&b&&b.ownerDocument&&fr(b.ownerDocument.documentElement,b)){null!==l&&pr(b)&&(x=l.start,void 0===(w=l.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),u=b.textContent.length,k=Math.min(l.start,u),l=void 0===l.end?k:Math.min(l.end,u),!w.extend&&k>l&&(u=l,l=k,k=u),u=cr(b,k),i=cr(b,l),u&&i&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((x=x.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),k>l?(w.addRange(x),w.extend(i.node,i.offset)):(x.setEnd(i.node,i.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Qt=!!zr,Rr=zr=null,e.current=n,Hl=r;do{try{for(b=e;null!==Hl;){var S=Hl.flags;if(36&S&&fl(b,Hl.alternate,Hl),128&S){x=void 0;var E=Hl.ref;if(null!==E){var C=Hl.stateNode;switch(Hl.tag){case 5:x=C;break;default:x=C}"function"==typeof E?E(x):E.current=x}}Hl=Hl.nextEffect}}catch(e){if(null===Hl)throw Error(a(330));Iu(Hl,e),Hl=Hl.nextEffect}}while(null!==Hl);Hl=null,No(),_l=o}else e.current=n;if($l)$l=!1,Ql=e,Yl=t;else for(Hl=r;null!==Hl;)t=Hl.nextEffect,Hl.nextEffect=null,8&Hl.flags&&((S=Hl).sibling=null,S.stateNode=null),Hl=t;if(0===(r=e.pendingLanes)&&(ql=null),1===r?e===eu?Zl++:(Zl=0,eu=e):Zl=0,n=n.stateNode,wo&&"function"==typeof wo.onCommitFiberRoot)try{wo.onCommitFiberRoot(xo,n,void 0,64==(64&n.current.flags))}catch(e){}if(cu(e,Vo()),Kl)throw Kl=!1,e=Wl,Wl=null,e;return 0!=(8&_l)||Wo(),null}function Pu(){for(;null!==Hl;){var e=Hl.alternate;iu||null===ou||(0!=(8&Hl.flags)?Ze(Hl,ou)&&(iu=!0):13===Hl.tag&&kl(e,Hl)&&Ze(Hl,ou)&&(iu=!0));var t=Hl.flags;0!=(256&t)&&cl(e,Hl),0==(512&t)||$l||($l=!0,Ko(97,(function(){return Tu(),null}))),Hl=Hl.nextEffect}}function Tu(){if(90!==Yl){var e=97<Yl?97:Yl;return Yl=90,Ho(e,Au)}return!1}function Mu(e,t){Xl.push(t,e),$l||($l=!0,Ko(97,(function(){return Tu(),null})))}function Du(e,t){Gl.push(t,e),$l||($l=!0,Ko(97,(function(){return Tu(),null})))}function Au(){if(null===Ql)return!1;var e=Ql;if(Ql=null,0!=(48&_l))throw Error(a(331));var t=_l;_l|=32;var n=Gl;Gl=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],l=o.destroy;if(o.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===i)throw Error(a(330));Iu(i,e)}}for(n=Xl,Xl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var u=o.create;o.destroy=u()}catch(e){if(null===i)throw Error(a(330));Iu(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return _l=t,Wo(),!0}function Fu(e,t,n){ui(e,t=al(0,t=rl(n,t),1)),t=au(),null!==(e=su(e,1))&&(Ut(e,1,t),cu(e,t))}function Iu(e,t){if(3===e.tag)Fu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){var o=ll(n,e=rl(t,e),1);if(ui(n,o),o=au(),null!==(n=su(n,1)))Ut(n,1,o),cu(n,o);else if("function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Nu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=au(),e.pingedLanes|=e.suspendedLanes&n,Ol===e&&(Tl&n)===n&&(4===Al||3===Al&&(62914560&Tl)===Tl&&500>Vo()-jl?yu(e,0):zl|=n),cu(e,t)}function Lu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Bo()?1:2:(0===nu&&(nu=Il),0===(t=Vt(62914560&~nu))&&(t=4194304))),n=au(),null!==(e=su(e,t))&&(Ut(e,t,n),cu(e,n))}function zu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ru(e,t,n,r){return new zu(e,t,n,r)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vu(e,t){var n=e.alternate;return null===n?((n=Ru(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bu(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)ju(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case E:return Uu(n.children,o,i,t);case L:l=8,o|=16;break;case C:l=8,o|=1;break;case _:return(e=Ru(12,n,t,8|o)).elementType=_,e.type=_,e.lanes=i,e;case M:return(e=Ru(13,n,t,o)).type=M,e.elementType=M,e.lanes=i,e;case D:return(e=Ru(19,n,t,o)).elementType=D,e.lanes=i,e;case z:return Hu(n,o,i,t);case R:return(e=Ru(24,n,t,o)).elementType=R,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case P:l=9;break e;case T:l=11;break e;case A:l=14;break e;case F:l=16,r=null;break e;case I:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ru(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Uu(e,t,n,r){return(e=Ru(7,e,r,t)).lanes=n,e}function Hu(e,t,n,r){return(e=Ru(23,e,r,t)).elementType=z,e.lanes=n,e}function Ku(e,t,n){return(e=Ru(6,e,null,t)).lanes=n,e}function Wu(e,t,n){return(t=Ru(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function $u(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qu(e,t,n,r){var o=t.current,i=au(),l=lu(o);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(ho(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var s=n.type;if(ho(s)){n=go(n,s,u);break e}}n=u}else n=uo;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ui(o,t),uu(o,l,i),l}function Yu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Xu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Xu(e,t),(e=e.alternate)&&Xu(e,t)}function Ju(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new qu(e,t,null!=n&&!0===n.hydrate),t=Ru(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ii(t),e[Xr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function es(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Yu(a);l.call(e)}}Qu(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ju(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Yu(a);u.call(e)}}mu((function(){Qu(t,a,e,o)}))}return Yu(a)}function ts(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(a(200));return $u(e,t,null,n)}Ul=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||co.current)Fa=!0;else{if(0==(n&r)){switch(Fa=!1,t.tag){case 3:Ha(t),Ki();break;case 5:Ai(t);break;case 1:ho(t.type)&&yo(t);break;case 4:Mi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;lo(Yo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(lo(Ii,1&Ii.current),null!==(t=Za(e,t,n))?t.sibling:null);lo(Ii,1&Ii.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Ja(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),lo(Ii,Ii.current),r)break;return null;case 23:case 24:return t.lanes=0,Ra(e,t,n)}return Za(e,t,n)}Fa=0!=(16384&e.flags)}else Fa=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=po(t,so.current),ni(t,n),o=ra(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ho(r)){var i=!0;yo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ii(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&pi(t,r,l,e),o.updater=hi,t.stateNode=o,o._reactInternals=t,yi(t,r,e,n),t=Ua(null,t,r,!0,i,n)}else t.tag=0,Ia(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return ju(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===A)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=Va(null,t,o,e,n);break e;case 1:t=Ba(null,t,o,e,n);break e;case 11:t=Na(null,t,o,e,n);break e;case 14:t=La(null,t,o,Qo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Va(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(Ha(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ai(e,t),ci(t,r,null,n),(r=t.memoizedState.element)===o)Ki(),t=Za(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(zi=Kr(t.stateNode.containerInfo.firstChild),Li=t,i=Ri=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Wi.push(i);for(n=Ei(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ia(e,t,r,n),Ki();t=t.child}return t;case 5:return Ai(t),null===e&&Bi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Vr(r,o)?l=null:null!==i&&Vr(r,i)&&(t.flags|=16),ja(e,t),Ia(e,t,l,n),t.child;case 6:return null===e&&Bi(t),null;case 13:return Qa(e,t,n);case 4:return Mi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Si(t,null,r,n):Ia(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Na(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return Ia(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ia(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var u=t.type._context;if(lo(Yo,u._currentValue),u._currentValue=i,null!==l)if(u=l.value,0==(i=ar(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!co.current){t=Za(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){l=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===u.tag&&((c=li(-1,n&-n)).tag=2,ui(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ti(u.return,n),s.lanes|=n;break}c=c.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}Ia(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ni(t,n),r=r(o=ri(o,i.unstable_observedBits)),t.flags|=1,Ia(e,t,r,n),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),La(e,t,o,i=Qo(o.type,i),r,n);case 15:return za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ho(r)?(e=!0,yo(t)):e=!1,ni(t,n),vi(t,r,o),yi(t,r,o,n),Ua(null,t,r,!0,e,n);case 19:return Ja(e,t,n);case 23:case 24:return Ra(e,t,n)}throw Error(a(156,t.tag))},Ju.prototype.render=function(e){Qu(e,this._internalRoot,null,null)},Ju.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qu(null,e,null,(function(){t[Xr]=null}))},et=function(e){13===e.tag&&(uu(e,4,au()),Gu(e,4))},tt=function(e){13===e.tag&&(uu(e,67108864,au()),Gu(e,67108864))},nt=function(e){if(13===e.tag){var t=au(),n=lu(e);uu(e,n,t),Gu(e,n)}},rt=function(e,t){return t()},_e=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=to(r);if(!o)throw Error(a(90));G(r),ne(r,o)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ae=hu,Fe=function(e,t,n,r,o){var i=_l;_l|=4;try{return Ho(98,e.bind(null,t,n,r,o))}finally{0===(_l=i)&&(Bl(),Wo())}},Ie=function(){0==(49&_l)&&(function(){if(null!==Jl){var e=Jl;Jl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,cu(e,Vo())}))}Wo()}(),Tu())},Ne=function(e,t){var n=_l;_l|=2;try{return e(t)}finally{0===(_l=n)&&(Bl(),Wo())}};var ns={Events:[Zr,eo,to,Me,De,Tu,{current:!1}]},rs={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},os={bundleType:rs.bundleType,version:rs.version,rendererPackageName:rs.rendererPackageName,rendererConfig:rs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:rs.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var is=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!is.isDisabled&&is.supportsFiber)try{xo=is.inject(os),wo=is}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ns,t.createPortal=ts,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=_l;if(0!=(48&n))return e(t);_l|=1;try{if(e)return Ho(99,e.bind(null,t))}finally{_l=n,Wo()}},t.hydrate=function(e,t,n){if(!Zu(t))throw Error(a(200));return es(null,e,t,!0,n)},t.render=function(e,t,n){if(!Zu(t))throw Error(a(200));return es(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(a(40));return!!e._reactRootContainer&&(mu((function(){es(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=hu,t.unstable_createPortal=function(e,t){return ts(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return es(e,t,n,!1,r)},t.version="17.0.2"},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},1471:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,l=60109,u=60110,s=60112,c=60113,f=60120,d=60115,p=60116,h=60121,m=60122,v=60117,g=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),l=b("react.provider"),u=b("react.context"),s=b("react.forward_ref"),c=b("react.suspense"),f=b("react.suspense_list"),d=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case f:return e;default:switch(e=e&&e.$$typeof){case u:case s:case p:case d:case l:return e;default:return t}}case r:return t}}}var w=l,k=n,S=s,E=o,C=p,_=d,O=r,P=a,T=i,M=c;t.ContextConsumer=u,t.ContextProvider=w,t.Element=k,t.ForwardRef=S,t.Fragment=E,t.Lazy=C,t.Memo=_,t.Portal=O,t.Profiler=P,t.StrictMode=T,t.Suspense=M,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===s},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===p},t.isMemo=function(e){return x(e)===d},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===c},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===g||e===i||e===c||e===f||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===l||e.$$typeof===u||e.$$typeof===s||e.$$typeof===v||e.$$typeof===h||e[0]===m)},t.typeOf=x},2143:(e,t,n)=>{"use strict";e.exports=n(1471)},2076:(e,t,n)=>{"use strict";const r=n(7294),o=n(2143),i=n(1218),a=n(9560),l=n(3934),u=n(6582),s=n(6851),c=n(7848);t.D=p;const f={}.hasOwnProperty,d=new Set(["table","thead","tbody","tfoot","tr"]);function p(e,t){const n=[];let r,o=-1;for(;++o<t.children.length;)r=t.children[o],"element"===r.type?n.push(h(e,r,o,t)):"text"===r.type?"element"===t.type&&d.has(t.tagName)&&"\n"===r.value||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function h(e,t,n,a){const l=e.options,u=e.schema,s=t.tagName,c={};let d,h=u;for(d in"html"===u.space&&"svg"===s&&(h=i,e.schema=h),t.properties)f.call(t.properties,d)&&v(c,d,t.properties[d],e);"ol"!==s&&"ul"!==s||e.listDepth++;const g=p(e,t);"ol"!==s&&"ul"!==s||e.listDepth--,e.schema=u;const y=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},b=l.components&&f.call(l.components,s)?l.components[s]:s,x="string"==typeof b||b===r.Fragment;if(!o.isValidElementType(b))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(c.key=[s,y.start.line,y.start.column,n].join("-"),"a"===s&&l.linkTarget&&(c.target="function"==typeof l.linkTarget?l.linkTarget(c.href,t.children,c.title):l.linkTarget),"a"===s&&l.transformLinkUri&&(c.href=l.transformLinkUri(c.href,t.children,c.title)),x||"code"!==s||"pre"===a.tagName||(c.inline=!0),x||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(c.level=parseInt(s.charAt(1),10)),"img"===s&&l.transformImageUri&&(c.src=l.transformImageUri(c.src,c.alt,c.title)),!x&&"li"===s){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);c.checked=e?Boolean(e.properties.checked):null,c.index=m(a,t),c.ordered="ol"===a.tagName}var w;return x||"ol"!==s&&"ul"!==s||(c.ordered="ol"===s,c.depth=e.listDepth),"td"!==s&&"th"!==s||(c.align&&(c.style||(c.style={}),c.style.textAlign=c.align,delete c.align),x||(c.isHeader="th"===s)),x||"tr"!==s||(c.isHeader=Boolean("thead"===a.tagName)),l.sourcePos&&(c["data-sourcepos"]=[(w=y).start.line,":",w.start.column,"-",w.end.line,":",w.end.column].map((e=>String(e))).join("")),!x&&l.rawSourcePos&&(c.sourcePosition=t.position),!x&&l.includeElementIndex&&(c.index=m(a,t),c.siblingCount=m(a)),x||(c.node=t),g.length>0?r.createElement(b,c,g):r.createElement(b,c)}function m(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function v(e,t,n,r){const o=a(r.schema,t);let i=n;null!=i&&i==i&&(i&&"object"==typeof i&&"length"in i&&(i=(o.commaSeparated?s:u).stringify(i)),"style"===o.property&&"string"==typeof i&&(i=function(e){const t={};try{c(e,(function(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,g)]=n}))}catch(e){}return t}(i)),o.space?e[f.call(l,o.property)?l[o.property]:o.property]=i:e[o.attribute]=i)}function g(e,t){return t.toUpperCase()}},8456:(e,t,n)=>{"use strict";const r=n(7294),o=n(939),i=n(8835),a=n(2861),l=n(8818),u=n(5697),s=n(7247),c=n(6625),f=n(100),d=n(2076).D;e.exports=m;const p={}.hasOwnProperty,h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function m(e){for(const t in h)if(p.call(h,t)&&p.call(e,t)){const e=h[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete h[t]}const t=i().use(a).use(e.remarkPlugins||e.plugins||[]).use(l,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(c,e);let n;"string"==typeof e.children?n=o(e.children):(void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=o());const u=t.runSync(t.parse(n),n);if("root"!==u.type)throw new TypeError("Expected a `root` node");let f=r.createElement(r.Fragment,{},d({options:e,schema:s,listDepth:0},u));return e.className&&(f=r.createElement("div",{className:e.className},f)),f}m.defaultProps={transformLinkUri:f},m.propTypes={children:u.string,className:u.string,allowElement:u.func,allowedElements:u.arrayOf(u.string),disallowedElements:u.arrayOf(u.string),unwrapDisallowed:u.bool,remarkPlugins:u.arrayOf(u.oneOfType([u.object,u.func,u.arrayOf(u.oneOfType([u.object,u.func]))])),rehypePlugins:u.arrayOf(u.oneOfType([u.object,u.func,u.arrayOf(u.oneOfType([u.object,u.func]))])),sourcePos:u.bool,rawSourcePos:u.bool,skipHtml:u.bool,includeElementIndex:u.bool,transformLinkUri:u.oneOfType([u.func,u.bool]),linkTarget:u.oneOfType([u.func,u.string]),transformImageUri:u.func,components:u.object},m.uriTransformer=f},6625:(e,t,n)=>{const r=n(2854),o=[].splice;e.exports=function(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");return e.allowedElements||e.disallowedElements||e.allowElement?function(e){r(e,"element",t)}:void 0;function t(t,n,r){let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&(i=!e.allowElement(t,n,r)),i){let i=[n,1];return e.unwrapDisallowed&&t.children&&(i=i.concat(t.children)),o.apply(r.children,i),n}}}},100:e=>{const t=["http","https","mailto","tel"];e.exports=function(e){const n=(e||"").trim(),r=n.charAt(0);if("#"===r||"/"===r)return n;const o=n.indexOf(":");if(-1===o)return n;let i=-1;for(;++i<t.length;){const e=t[i];if(o===e.length&&n.slice(0,e.length).toLowerCase()===e)return n}return i=n.indexOf("?"),-1!==i&&o>i?n:(i=n.indexOf("#"),-1!==i&&o>i?n:"javascript:void(0)")}},2408:(e,t,n)=>{"use strict";var r=n(7418),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,u=60112;t.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:x.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var C=/\/+/g;function _(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case i:u=!0}}if(u)return a=a(u=e),e=""===r?"."+_(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),O(a,t,n,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+_(l=e[s],s);u+=O(l,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(l=e.next()).done;)u+=O(l=l.value,t,n,c=r+_(l,s++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var M={current:null};function D(){var e=M.current;if(null===e)throw Error(p(321));return e}var A={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),a=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,n){return D().useReducer(e,t,n)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.2"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},2861:(e,t,n)=>{"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(9671)},8818:(e,t,n)=>{"use strict";var r=n(5288);e.exports=function(e,t){return e&&!e.process&&(t=e,e=null),e?function(e,t){return function(n,o,i){e.run(r(n,t),o,(function(e){i(e)}))}}(e,t):function(e){return function(t){return r(t,e)}}(t)}},53:(e,t)=>{"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,g=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+y;try{v(!0,e)?w.postMessage(null):(m=!1,v=null)}catch(e){throw w.postMessage(null),e}}else m=!1},n=function(e){v=e,m||(m=!0,w.postMessage(null))},r=function(e,n){g=d((function(){e(t.unstable_now())}),n)},o=function(){p(g),g=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&0>C(a,n))void 0!==u&&0>C(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>C(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var _=[],O=[],P=1,T=null,M=3,D=!1,A=!1,F=!1;function I(e){for(var t=S(O);null!==t;){if(null===t.callback)E(O);else{if(!(t.startTime<=e))break;E(O),t.sortIndex=t.expirationTime,k(_,t)}t=S(O)}}function N(e){if(F=!1,I(e),!A)if(null!==S(_))A=!0,n(L);else{var t=S(O);null!==t&&r(N,t.startTime-e)}}function L(e,n){A=!1,F&&(F=!1,o()),D=!0;var i=M;try{for(I(n),T=S(_);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=T.callback;if("function"==typeof a){T.callback=null,M=T.priorityLevel;var l=a(T.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?T.callback=l:T===S(_)&&E(_),I(n)}else E(_);T=S(_)}if(null!==T)var u=!0;else{var s=S(O);null!==s&&r(N,s.startTime-n),u=!1}return u}finally{T=null,M=i,D=!1}}var z=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||D||(A=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return S(_)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?l+a:l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:P++,callback:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>l?(e.sortIndex=a,k(O,e),null===S(_)&&e===S(O)&&(F?o():F=!0,r(N,a-l))):(e.sortIndex=u,k(_,e),A||D||(A=!0,n(L))),e},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},6582:(e,t)=>{"use strict";t.parse=function(e){var t=String(e||"").trim();return""===t?[]:t.split(n)},t.stringify=function(e){return e.join(" ").trim()};var n=/[ \t\n\r\f]+/g},7848:(e,t,n)=>{var r=n(8139);e.exports=function(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,a,l=r(e),u="function"==typeof t,s=0,c=l.length;s<c;s++)i=(n=l[s]).property,a=n.value,u?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}},8281:(e,t,n)=>{"use strict";var r=n(3368);e.exports=i,i.wrap=r;var o=[].slice;function i(){var e=[],t={run:function(){var t=-1,n=o.call(arguments,0,-1),i=arguments[arguments.length-1];if("function"!=typeof i)throw new Error("Expected function as last argument, not "+i);function a(l){var u=e[++t],s=o.call(arguments,0),c=s.slice(1),f=n.length,d=-1;if(l)i(l);else{for(;++d<f;)null!==c[d]&&void 0!==c[d]||(c[d]=n[d]);n=c,u?r(u,a).apply(null,n):i.apply(null,[null].concat(n))}}a.apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},3368:e=>{"use strict";var t=[].slice;e.exports=function(e,n){var r;return function(){var n,a=t.call(arguments,0),l=e.length>a.length;l&&a.push(o);try{n=e.apply(null,a)}catch(e){if(l&&r)throw e;return o(e)}l||(n&&"function"==typeof n.then?n.then(i,o):n instanceof Error?o(n):i(n))};function o(){r||(r=!0,n.apply(null,arguments))}function i(e){o(null,e)}}},8835:(e,t,n)=>{"use strict";var r=n(8869),o=n(3469),i=n(4470),a=n(3310),l=n(8281),u=n(939);e.exports=function e(){var t=[],n=l(),o={},y=!1,b=-1;return x.data=function(e,t){return"string"==typeof e?2===arguments.length?(m("data",y),o[e]=t,x):c.call(o,e)&&o[e]||null:e?(m("data",y),o=e,x):o},x.freeze=w,x.attachers=t,x.use=function(e){var n;if(m("use",y),null==e);else if("function"==typeof e)c.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?u(e):r(e)}return n&&(o.settings=i(o.settings||{},n)),x;function r(e){u(e.plugins),e.settings&&(n=i(n||{},e.settings))}function l(e){if("function"==typeof e)c(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c.apply(null,e):r(e)}}function u(e){var t,n;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++n<t;)l(e[n])}}function c(e,n){var r=k(e);r?(a(r[1])&&a(n)&&(n=i(r[1],n)),r[1]=n):t.push(s.call(arguments))}},x.parse=function(e){var t,n=u(e);return w(),p("parse",t=x.Parser),d(t,"parse")?new t(String(n),n).parse():t(String(n),n)},x.stringify=function(e,t){var n,r=u(t);return w(),h("stringify",n=x.Compiler),v(e),d(n,"compile")?new n(e,r).compile():n(e,r)},x.run=S,x.runSync=function(e,t){var n,o=!1;return S(e,t,(function(e,t){o=!0,r(e),n=t})),g("runSync","run",o),n},x.process=E,x.processSync=function(e){var t,n=!1;return w(),p("processSync",x.Parser),h("processSync",x.Compiler),E(t=u(e),(function(e){n=!0,r(e)})),g("processSync","process",n),t},x;function x(){for(var n=e(),r=t.length,a=-1;++a<r;)n.use.apply(null,t[a]);return n.data(i(!0,{},o)),n}function w(){var e,r,o,i;if(y)return x;for(;++b<t.length;)r=(e=t[b])[0],!1!==(o=e[1])&&(!0===o&&(e[1]=void 0),"function"==typeof(i=r.apply(x,e.slice(1)))&&n.use(i));return y=!0,b=1/0,x}function k(e){for(var n,r=t.length,o=-1;++o<r;)if((n=t[o])[0]===e)return n}function S(e,t,r){if(v(e),w(),r||"function"!=typeof t||(r=t,t=null),!r)return new Promise(o);function o(o,i){n.run(e,u(t),(function(t,n,a){n=n||e,t?i(t):o?o(n):r(null,n,a)}))}o(null,r)}function E(e,t){if(w(),p("process",x.Parser),h("process",x.Compiler),!t)return new Promise(n);function n(n,r){var o=u(e);f.run(x,{file:o},(function(e){e?r(e):n?n(o):t(null,o)}))}n(null,t)}}().freeze();var s=[].slice,c={}.hasOwnProperty,f=l().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,o){e?n(e):(t.tree=r,t.file=o,n())}))})).use((function(e,t){var n=e.stringify(t.tree,t.file),r=t.file;null==n||("string"==typeof n||o(n)?r.contents=n:r.result=n)}));function d(e,t){return"function"==typeof e&&e.prototype&&(function(e){var t;for(t in e)return!0;return!1}(e.prototype)||t in e.prototype)}function p(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function v(e){if(!e||"string"!=typeof e.type)throw new Error("Expected node, got `"+e+"`")}function g(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},3469:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},914:e=>{"use strict";e.exports=function(e,t,n){var r;return null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={}),r=Object.assign({type:String(e)},t),Array.isArray(n)?r.children=n:null!=n&&(r.value=String(n)),r}},1744:e=>{"use strict";e.exports=function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)}},8145:e=>{"use strict";function t(){return!0}e.exports=function e(n){if(null==n)return t;if("string"==typeof n)return function(e){return function(t){return Boolean(t&&t.type===e)}}(n);if("object"==typeof n)return"length"in n?function(t){for(var n=[],r=-1;++r<t.length;)n[r]=e(t[r]);return function(){for(var e=-1;++e<n.length;)if(n[e].apply(this,arguments))return!0;return!1}}(n):function(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(n);if("function"==typeof n)return n;throw new Error("Expected function, string, or object as test")}},7361:e=>{"use strict";var t=o("start"),n=o("end");function r(e){return{start:t(e),end:n(e)}}function o(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=r,r.start=t,r.end=n},5432:e=>{"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"==typeof e||(e={}),o(e.line)+":"+o(e.column)}function r(e){return e&&"object"==typeof e||(e={}),n(e.start)+"-"+n(e.end)}function o(e){return e&&"number"==typeof e?e:1}e.exports=function(e){return e&&"object"==typeof e?t.call(e,"position")||t.call(e,"type")?r(e.position):t.call(e,"start")||t.call(e,"end")?r(e):t.call(e,"line")||t.call(e,"column")?n(e):"":""}},2854:(e,t,n)=>{"use strict";e.exports=l;var r=n(9858),o=r.CONTINUE,i=r.SKIP,a=r.EXIT;function l(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)}),o)}l.CONTINUE=o,l.SKIP=i,l.EXIT=a},9824:e=>{e.exports=function(e){return e}},9858:(e,t,n)=>{"use strict";e.exports=l;var r=n(8145),o=n(9824),i="skip",a=!1;function l(e,t,n,l){var u,s;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),s=r(t),u=l?-1:1,function e(r,c,f){var d,p="object"==typeof r&&null!==r?r:{};return"string"==typeof p.type&&(d="string"==typeof p.tagName?p.tagName:"string"==typeof p.name?p.name:void 0,h.displayName="node ("+o(p.type+(d?"<"+d+">":""))+")"),h;function h(){var o,d,p=f.concat(r),h=[];if((!t||s(r,c,f[f.length-1]||null))&&(h=function(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[true,e]:[e]}(n(r,f)))[0]===a)return h;if(r.children&&h[0]!==i)for(d=(l?r.children.length:-1)+u;d>-1&&d<r.children.length;){if((o=e(r.children[d],d,p)())[0]===a)return o;d="number"==typeof o[1]?o[1]:d+u}return h}}(e,null,[])()}l.CONTINUE=!0,l.SKIP=i,l.EXIT=a},734:(e,t,n)=>{"use strict";var r=n(5432);function o(){}e.exports=a,o.prototype=Error.prototype,a.prototype=new o;var i=a.prototype;function a(e,t,n){var o,i,a;"string"==typeof t&&(n=t,t=null),o=function(e){var t,n=[null,null];return"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1))),n}(n),i=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=o[0],this.ruleId=o[1]}i.file="",i.name="",i.reason="",i.message="",i.stack="",i.fatal=null,i.column=null,i.line=null},939:(e,t,n)=>{"use strict";e.exports=n(5905)},5442:(e,t,n)=>{"use strict";var r=n(8064),o=n(4228),i=n(529);e.exports=u;var a={}.hasOwnProperty,l=["history","path","basename","stem","extname","dirname"];function u(e){var t,n;if(e){if("string"==typeof e||i(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof u))return new u(e);for(this.data={},this.messages=[],this.history=[],this.cwd=o.cwd(),n=-1;++n<l.length;)t=l[n],a.call(e,t)&&(this[t]=e[t]);for(t in e)l.indexOf(t)<0&&(this[t]=e[t])}function s(e,t){if(e&&e.indexOf(r.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function c(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function f(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}u.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(u.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){c(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(u.prototype,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){f(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(u.prototype,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){c(e,"basename"),s(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(u.prototype,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){if(s(e,"extname"),f(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(u.prototype,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){c(e,"stem"),s(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},5905:(e,t,n)=>{"use strict";var r=n(734),o=n(5442);e.exports=o,o.prototype.message=function(e,t,n){var o=new r(e,t,n);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o},o.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},o.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},8064:(e,t)=>{"use strict";function n(e){var t,n;return r(e),t=47===e.charCodeAt(0),(n=function(e,t){for(var n,r,o="",i=0,a=-1,l=0,u=-1;++u<=e.length;){if(u<e.length)n=e.charCodeAt(u);else{if(47===n)break;n=47}if(47===n){if(a===u-1||1===l);else if(a!==u-1&&2===l){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),a=u,l=0;continue}}else if(o.length){o="",i=0,a=u,l=0;continue}t&&(o=o.length?o+"/..":"..",i=2)}else o.length?o+="/"+e.slice(a+1,u):o=e.slice(a+1,u),i=u-a-1;a=u,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t)).length||t||(n="."),n.length&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var n,o,i,a,l=0,u=-1;if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');if(r(e),n=e.length,void 0===t||!t.length||t.length>e.length){for(;n--;)if(47===e.charCodeAt(n)){if(i){l=n+1;break}}else u<0&&(i=!0,u=n+1);return u<0?"":e.slice(l,u)}if(t===e)return"";for(o=-1,a=t.length-1;n--;)if(47===e.charCodeAt(n)){if(i){l=n+1;break}}else o<0&&(i=!0,o=n+1),a>-1&&(e.charCodeAt(n)===t.charCodeAt(a--)?a<0&&(u=n):(a=-1,u=o));return l===u?u=o:u<0&&(u=e.length),e.slice(l,u)},t.dirname=function(e){var t,n,o;if(r(e),!e.length)return".";for(t=-1,o=e.length;--o;)if(47===e.charCodeAt(o)){if(n){t=o;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,n,o,i=-1,a=0,l=-1,u=0;for(r(e),o=e.length;o--;)if(47!==(n=e.charCodeAt(o)))l<0&&(t=!0,l=o+1),46===n?i<0?i=o:1!==u&&(u=1):i>-1&&(u=-1);else if(t){a=o+1;break}return i<0||l<0||0===u||1===u&&i===l-1&&i===a+1?"":e.slice(i,l)},t.join=function(){for(var e,t=-1;++t<arguments.length;)r(arguments[t]),arguments[t]&&(e=void 0===e?arguments[t]:e+"/"+arguments[t]);return void 0===e?".":n(e)},t.sep="/"},4228:(e,t)=>{"use strict";t.cwd=function(){return"/"}},529:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},7529:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(7294),t=n(3935),r=n(9020),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function i(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}var a=Object.keys,l=Array.isArray,u="undefined"!=typeof self?self:"undefined"!=typeof window?window:global;function s(e,t){return"object"!=typeof t||a(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||u.Promise||(u.Promise=Promise);var c=Object.getPrototypeOf,f={}.hasOwnProperty;function d(e,t){return f.call(e,t)}function p(e,t){"function"==typeof t&&(t=t(c(e))),a(t).forEach((function(n){m(e,n,t[n])}))}var h=Object.defineProperty;function m(e,t,n,r){h(e,t,s(n&&d(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function v(e){return{from:function(t){return e.prototype=Object.create(t.prototype),m(e.prototype,"constructor",e),{extend:p.bind(null,e.prototype)}}}}var g=Object.getOwnPropertyDescriptor;function y(e,t){var n;return g(e,t)||(n=c(e))&&y(n,t)}var b=[].slice;function x(e,t,n){return b.call(e,t,n)}function w(e,t){return t(e)}function k(e){if(!e)throw new Error("Assertion Failed")}function S(e){u.setImmediate?setImmediate(e):setTimeout(e,0)}function E(e,t){return e.reduce((function(e,n,r){var o=t(n,r);return o&&(e[o[0]]=o[1]),e}),{})}function C(e,t){if(d(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,o=t.length;r<o;++r){var i=C(e,t[r]);n.push(i)}return n}var a=t.indexOf(".");if(-1!==a){var l=e[t.substr(0,a)];return void 0===l?void 0:C(l,t.substr(a+1))}}function _(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){k("string"!=typeof n&&"length"in n);for(var r=0,o=t.length;r<o;++r)_(e,t[r],n[r])}else{var i=t.indexOf(".");if(-1!==i){var a=t.substr(0,i),u=t.substr(i+1);if(""===u)void 0===n?l(e)&&!isNaN(parseInt(a))?e.splice(a,1):delete e[a]:e[a]=n;else{var s=e[a];s||(s=e[a]={}),_(s,u,n)}}else void 0===n?l(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function O(e,t){"string"==typeof t?_(e,t,void 0):"length"in t&&[].map.call(t,(function(t){_(e,t,void 0)}))}function P(e){var t={};for(var n in e)d(e,n)&&(t[n]=e[n]);return t}var T=[].concat;function M(e){return T.apply([],e)}var D="Boolean,String,Date,RegExp,Blob,File,FileList,ArrayBuffer,DataView,Uint8ClampedArray,ImageData,Map,Set".split(",").concat(M([8,16,32,64].map((function(e){return["Int","Uint","Float"].map((function(t){return t+e+"Array"}))})))).filter((function(e){return u[e]})),A=D.map((function(e){return u[e]})),F=E(D,(function(e){return[e,!0]}));function I(e){if(!e||"object"!=typeof e)return e;var t;if(l(e)){t=[];for(var n=0,r=e.length;n<r;++n)t.push(I(e[n]))}else if(A.indexOf(e.constructor)>=0)t=e;else for(var o in t=e.constructor?Object.create(e.constructor.prototype):{},e)d(e,o)&&(t[o]=I(e[o]));return t}var N={}.toString;function L(e){return N.call(e).slice(8,-1)}var z=function(e,t){return"Array"===t?""+e.map((function(e){return z(e,L(e))})):"ArrayBuffer"===t?""+new Uint8Array(e):"Date"===t?e.getTime():ArrayBuffer.isView(e)?""+new Uint8Array(e.buffer):e};function R(e,t,n,r){return n=n||{},r=r||"",a(e).forEach((function(o){if(d(t,o)){var i=e[o],a=t[o];if("object"==typeof i&&"object"==typeof a&&i&&a){var l=L(i),u=L(a);l===u?F[l]?z(i,l)!==z(a,u)&&(n[r+o]=t[o]):R(i,a,n,r+o+"."):n[r+o]=t[o]}else i!==a&&(n[r+o]=t[o])}else n[r+o]=void 0})),a(t).forEach((function(o){d(e,o)||(n[r+o]=t[o])})),n}var j="undefined"!=typeof Symbol&&Symbol.iterator,V=j?function(e){var t;return null!=e&&(t=e[j])&&t.apply(e)}:function(){return null},B={};function U(e){var t,n,r,o;if(1===arguments.length){if(l(e))return e.slice();if(this===B&&"string"==typeof e)return[e];if(o=V(e)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var H="undefined"!=typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},K="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function W(e,t){K=e,q=t}var q=function(){return!0},$=!new Error("").stack;function Q(){if($)try{throw new Error}catch(e){return e}return new Error}function Y(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(q).map((function(e){return"\n"+e})).join("")):""}var X=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],G=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(X),J={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed"};function Z(e,t){this._e=Q(),this.name=e,this.message=t}function ee(e,t){return e+". Errors: "+Object.keys(t).map((function(e){return t[e].toString()})).filter((function(e,t,n){return n.indexOf(e)===t})).join("\n")}function te(e,t,n,r){this._e=Q(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=ee(e,t)}function ne(e,t){this._e=Q(),this.name="BulkError",this.failures=t,this.message=ee(e,t)}v(Z).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Y(this._e,2))}},toString:function(){return this.name+": "+this.message}}),v(te).from(Z),v(ne).from(Z);var re=G.reduce((function(e,t){return e[t]=t+"Error",e}),{}),oe=Z,ie=G.reduce((function(e,t){var n=t+"Error";function r(e,r){this._e=Q(),this.name=n,e?"string"==typeof e?(this.message=e+(r?"\n "+r:""),this.inner=r||null):"object"==typeof e&&(this.message=e.name+" "+e.message,this.inner=e):(this.message=J[t]||n,this.inner=null)}return v(r).from(oe),e[t]=r,e}),{});ie.Syntax=SyntaxError,ie.Type=TypeError,ie.Range=RangeError;var ae=X.reduce((function(e,t){return e[t+"Error"]=ie[t],e}),{}),le=G.reduce((function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=ie[t]),e}),{});function ue(){}function se(e){return e}function ce(e,t){return null==e||e===se?t:function(n){return t(e(n))}}function fe(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function de(e,t){return e===ue?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?fe(r,this.onsuccess):r),o&&(this.onerror=this.onerror?fe(o,this.onerror):o),void 0!==i?i:n}}function pe(e,t){return e===ue?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?fe(n,this.onsuccess):n),r&&(this.onerror=this.onerror?fe(r,this.onerror):r)}}function he(e,t){return e===ue?t:function(n){var r=e.apply(this,arguments);s(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?fe(o,this.onsuccess):o),i&&(this.onerror=this.onerror?fe(i,this.onerror):i),void 0===r?void 0===a?void 0:a:s(r,a)}}function me(e,t){return e===ue?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function ve(e,t){return e===ue?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}le.ModifyError=te,le.DexieError=Z,le.BulkError=ne;var ge={},ye="undefined"==typeof Promise?[]:function(){var e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,e.__proto__,e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,t.__proto__,e]}(),be=ye[0],xe=ye[1],we=ye[2],ke=xe&&xe.then,Se=be&&be.constructor,Ee=!!we,Ce=!1,_e=we?function(){we.then(Ye)}:u.setImmediate?setImmediate.bind(null,Ye):u.MutationObserver?function(){var e=document.createElement("div");new MutationObserver((function(){Ye(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(Ye,0)},Oe=function(e,t){Le.push([e,t]),Te&&(_e(),Te=!1)},Pe=!0,Te=!0,Me=[],De=[],Ae=null,Fe=se,Ie={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:xt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(e){try{xt(e[0],e[1])}catch(e){}}))}},Ne=Ie,Le=[],ze=0,Re=[];function je(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ue,this._lib=!1;var t=this._PSD=Ne;if(K&&(this._stackHolder=Q(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==ge)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&He(this,this._value))}this._state=null,this._value=null,++t.ref,Ue(this,e)}var Ve={get:function(){var e=Ne,t=it;function n(n,r){var o=this,i=!e.global&&(e!==Ne||t!==it),a=i&&!st(),l=new je((function(t,l){We(o,new Be(gt(n,e,i,a),gt(r,e,i,a),t,l,e))}));return K&&Qe(l,this),l}return n.prototype=ge,n},set:function(e){m(this,"then",e&&e.prototype===ge?Ve:{get:function(){return e},set:Ve.set})}};function Be(e,t,n,r,o){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=o}function Ue(e,t){try{t((function(t){if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Xe();t&&"function"==typeof t.then?Ue(e,(function(e,n){t instanceof je?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,Ke(e)),n&&Ge()}}),He.bind(null,e))}catch(t){He(e,t)}}function He(e,t){if(De.push(t),null===e._state){var n=e._lib&&Xe();t=Fe(t),e._state=!1,e._value=t,K&&null!==t&&"object"==typeof t&&!t._promise&&function(n,r,o){try{(function(){var n=y(t,"stack");t._promise=e,m(t,"stack",{get:function(){return Ce?n&&(n.get?n.get.apply(t):n.value):e.stack}})}).apply(null,void 0)}catch(e){}}(),function(e){Me.some((function(t){return t._value===e._value}))||Me.push(e)}(e),Ke(e),n&&Ge()}}function Ke(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)We(e,t[n]);var o=e._PSD;--o.ref||o.finalize(),0===ze&&(++ze,Oe((function(){0==--ze&&Je()}),[]))}function We(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++ze,Oe(qe,[n,e,t])}else e._listeners.push(t)}function qe(e,t,n){try{Ae=t;var r,o=t._value;t._state?r=e(o):(De.length&&(De=[]),r=e(o),-1===De.indexOf(o)&&function(e){for(var t=Me.length;t;)if(Me[--t]._value===e._value)return void Me.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{Ae=null,0==--ze&&Je(),--n.psd.ref||n.psd.finalize()}}function $e(e,t,n){if(t.length===n)return t;var r="";if(!1===e._state){var o,i,a=e._value;null!=a?(o=a.name||"Error",i=a.message||a,r=Y(a,0)):(o=a,i=""),t.push(o+(i?": "+i:"")+r)}return K&&((r=Y(e._stackHolder,2))&&-1===t.indexOf(r)&&t.push(r),e._prev&&$e(e._prev,t,n)),t}function Qe(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function Ye(){Xe()&&Ge()}function Xe(){var e=Pe;return Pe=!1,Te=!1,e}function Ge(){var e,t,n;do{for(;Le.length>0;)for(e=Le,Le=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(Le.length>0);Pe=!0,Te=!0}function Je(){var e=Me;Me=[],e.forEach((function(e){e._PSD.onunhandled.call(null,e._value,e)}));for(var t=Re.slice(0),n=t.length;n;)t[--n]()}function Ze(e){return new je(ge,!1,e)}function et(e,t){var n=Ne;return function(){var r=Xe(),o=Ne;try{return pt(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{pt(o,!1),r&&Ge()}}}p(je.prototype,{then:Ve,_then:function(e,t){We(this,new Be(null,null,e,t,Ne))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(function(e){return e instanceof t?n(e):Ze(e)})):this.then(null,(function(e){return e&&e.name===t?n(e):Ze(e)}))},finally:function(e){return this.then((function(t){return e(),t}),(function(t){return e(),Ze(t)}))},stack:{get:function(){if(this._stack)return this._stack;try{Ce=!0;var e=$e(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{Ce=!1}}},timeout:function(e,t){var n=this;return e<1/0?new je((function(r,o){var i=setTimeout((function(){return o(new ie.Timeout(t))}),e);n.then(r,o).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&m(je.prototype,Symbol.toStringTag,"Dexie.Promise"),Ie.env=ht(),p(je,{all:function(){var e=U.apply(null,arguments).map(ct);return new je((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((function(o,i){return je.resolve(o).then((function(n){e[i]=n,--r||t(e)}),n)}))}))},resolve:function(e){if(e instanceof je)return e;if(e&&"function"==typeof e.then)return new je((function(t,n){e.then(t,n)}));var t=new je(ge,!0,e);return Qe(t,Ae),t},reject:Ze,race:function(){var e=U.apply(null,arguments).map(ct);return new je((function(t,n){e.map((function(e){return je.resolve(e).then(t,n)}))}))},PSD:{get:function(){return Ne},set:function(e){return Ne=e}},totalEchoes:{get:function(){return it}},newPSD:lt,usePSD:mt,scheduler:{get:function(){return Oe},set:function(e){Oe=e}},rejectionMapper:{get:function(){return Fe},set:function(e){Fe=e}},follow:function(e,t){return new je((function(n,r){return lt((function(t,n){var r=Ne;r.unhandleds=[],r.onunhandled=n,r.finalize=fe((function(){var e=this;Re.push((function r(){0===e.unhandleds.length?t():n(e.unhandleds[0]),Re.splice(Re.indexOf(r),1)})),++ze,Oe((function(){0==--ze&&Je()}),[])}),r.finalize),e()}),t,n,r)}))}}),Se&&(Se.allSettled&&m(je,"allSettled",(function(){var e=U.apply(null,arguments).map(ct);return new je((function(t){0===e.length&&t([]);var n=e.length,r=new Array(n);e.forEach((function(e,o){return je.resolve(e).then((function(e){return r[o]={status:"fulfilled",value:e}}),(function(e){return r[o]={status:"rejected",reason:e}})).then((function(){return--n||t(r)}))}))}))})),Se.any&&"undefined"!=typeof AggregateError&&m(je,"any",(function(){var e=U.apply(null,arguments).map(ct);return new je((function(t,n){0===e.length&&n(new AggregateError([]));var r=e.length,o=new Array(r);e.forEach((function(e,i){return je.resolve(e).then((function(e){return t(e)}),(function(e){o[i]=e,--r||n(new AggregateError(o))}))}))}))})));var tt={awaits:0,echoes:0,id:0},nt=0,rt=[],ot=0,it=0,at=0;function lt(e,t,n,r){var o=Ne,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++at;var a=Ie.env;i.env=Ee?{Promise:je,PromiseProp:{value:je,configurable:!0,writable:!0},all:je.all,race:je.race,allSettled:je.allSettled,any:je.any,resolve:je.resolve,reject:je.reject,nthen:yt(a.nthen,i),gthen:yt(a.gthen,i)}:{},t&&s(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var l=mt(i,e,n,r);return 0===i.ref&&i.finalize(),l}function ut(){return tt.id||(tt.id=++nt),++tt.awaits,tt.echoes+=100,tt.id}function st(){return!!tt.awaits&&(0==--tt.awaits&&(tt.id=0),tt.echoes=100*tt.awaits,!0)}function ct(e){return tt.echoes&&e&&e.constructor===Se?(ut(),e.then((function(e){return st(),e}),(function(e){return st(),wt(e)}))):e}function ft(e){++it,tt.echoes&&0!=--tt.echoes||(tt.echoes=tt.id=0),rt.push(Ne),pt(e,!0)}function dt(){var e=rt[rt.length-1];rt.pop(),pt(e,!1)}function pt(e,t){var n=Ne;if((t?!tt.echoes||ot++&&e===Ne:!ot||--ot&&e===Ne)||vt(t?ft.bind(null,e):dt),e!==Ne&&(Ne=e,n===Ie&&(Ie.env=ht()),Ee)){var r=Ie.env.Promise,o=e.env;xe.then=o.nthen,r.prototype.then=o.gthen,(n.global||e.global)&&(Object.defineProperty(u,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject,o.allSettled&&(r.allSettled=o.allSettled),o.any&&(r.any=o.any))}}function ht(){var e=u.Promise;return Ee?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(u,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:xe.then,gthen:e.prototype.then}:{}}function mt(e,t,n,r,o){var i=Ne;try{return pt(e,!0),t(n,r,o)}finally{pt(i,!1)}}function vt(e){ke.call(be,e)}function gt(e,t,n,r){return"function"!=typeof e?e:function(){var o=Ne;n&&ut(),pt(t,!0);try{return e.apply(this,arguments)}finally{pt(o,!1),r&&vt(st)}}}function yt(e,t){return function(n,r){return e.call(this,gt(n,t),gt(r,t))}}-1===(""+ke).indexOf("[native code]")&&(ut=st=ue);var bt="unhandledrejection";function xt(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,o={promise:t,reason:e};if(u.document&&document.createEvent?((r=document.createEvent("Event")).initEvent(bt,!0,!0),s(r,o)):u.CustomEvent&&s(r=new CustomEvent(bt,{detail:o}),o),r&&u.dispatchEvent&&(dispatchEvent(r),!u.PromiseRejectionEvent&&u.onunhandledrejection))try{u.onunhandledrejection(r)}catch(e){}K&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch(e){}}var wt=je.reject;function kt(e,t,n,r){if(e._state.openComplete||Ne.letThrough){var o=e._createTransaction(t,n,e._dbSchema);try{o.create()}catch(e){return wt(e)}return o._promise(t,(function(e,t){return lt((function(){return Ne.trans=o,r(e,t,o)}))})).then((function(e){return o._completion.then((function(){return e}))}))}if(!e._state.isBeingOpened){if(!e._options.autoOpen)return wt(new ie.DatabaseClosed);e.open().catch(ue)}return e._state.dbReadyPromise.then((function(){return kt(e,t,n,r)}))}var St="3.0.3",Et=String.fromCharCode(65535),Ct=-1/0,_t="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Ot="String expected.",Pt=[],Tt="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Mt=Tt,Dt=Tt,At=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},Ft="__dbnames",It="readonly",Nt="readwrite";function Lt(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var zt={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Rt(e){return function(t){return void 0===C(t,e)&&O(t=I(t),e),t}}var jt=function(){function e(){}return e.prototype._trans=function(e,t,n){var r=this._tx||Ne.trans,o=this.name;function i(e,n,r){if(!r.schema[o])throw new ie.NotFound("Table "+o+" not part of transaction");return t(r.idbtrans,r)}var a=Xe();try{return r&&r.db===this.db?r===Ne.trans?r._promise(e,i,n):lt((function(){return r._promise(e,i,n)}),{trans:r,transless:Ne.transless||Ne}):kt(this.db,e,[this.name],i)}finally{a&&Ge()}},e.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(function(t){return n.core.get({trans:t,key:e}).then((function(e){return n.hook.reading.fire(e)}))})).then(t)},e.prototype.where=function(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(l(e))return new this.db.WhereClause(this,"["+e.join("+")+"]");var t=a(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter((function(e){return e.compound&&t.every((function(t){return e.keyPath.indexOf(t)>=0}))&&e.keyPath.every((function(e){return t.indexOf(e)>=0}))}))[0];if(n&&this.db._maxKey!==Et)return this.where(n.name).equals(n.keyPath.map((function(t){return e[t]})));!n&&K&&console.warn("The query "+JSON.stringify(e)+" on "+this.name+" would benefit of a compound index ["+t.join("+")+"]");var r=this.schema.idxByName,o=this.db._deps.indexedDB;function i(e,t){try{return 0===o.cmp(e,t)}catch(e){return!1}}var u=t.reduce((function(t,n){var o=t[0],a=t[1],u=r[n],s=e[n];return[o||u,o||!u?Lt(a,u&&u.multi?function(e){var t=C(e,n);return l(t)&&t.some((function(e){return i(s,e)}))}:function(e){return i(s,C(e,n))}):a]}),[null,null]),s=u[0],c=u[1];return s?this.where(s.name).equals(e[s.keyPath]).filter(c):n?this.filter(c):this.where(t).equals("")},e.prototype.filter=function(e){return this.toCollection().and(e)},e.prototype.count=function(e){return this.toCollection().count(e)},e.prototype.offset=function(e){return this.toCollection().offset(e)},e.prototype.limit=function(e){return this.toCollection().limit(e)},e.prototype.each=function(e){return this.toCollection().each(e)},e.prototype.toArray=function(e){return this.toCollection().toArray(e)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,l(e)?"["+e.join("+")+"]":e))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(e){this.schema.mappedClass=e;var t=function(t){if(!t)return t;var n=Object.create(e.prototype);for(var r in t)if(d(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e},e.prototype.defineClass=function(){return this.mapToClass((function(e){s(this,e)}))},e.prototype.add=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=e;return i&&o&&(a=Rt(i)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[a]})})).then((function(e){return e.numFailures?je.reject(e.failures[0]):e.lastResult})).then((function(t){if(i)try{_(e,i,t)}catch(e){}return t}))},e.prototype.update=function(e,t){if("object"!=typeof t||l(t))throw new ie.InvalidArgument("Modifications must be an object.");if("object"!=typeof e||l(e))return this.where(":id").equals(e).modify(t);a(t).forEach((function(n){_(e,n,t[n])}));var n=C(e,this.schema.primKey.keyPath);return void 0===n?wt(new ie.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(n).modify(t)},e.prototype.put=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=e;return i&&o&&(a=Rt(i)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"put",values:[a],keys:null!=t?[t]:null})})).then((function(e){return e.numFailures?je.reject(e.failures[0]):e.lastResult})).then((function(t){if(i)try{_(e,i,t)}catch(e){}return t}))},e.prototype.delete=function(e){var t=this;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})})).then((function(e){return e.numFailures?je.reject(e.failures[0]):void 0}))},e.prototype.clear=function(){var e=this;return this._trans("readwrite",(function(t){return e.core.mutate({trans:t,type:"deleteRange",range:zt})})).then((function(e){return e.numFailures?je.reject(e.failures[0]):void 0}))},e.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",(function(n){return t.core.getMany({keys:e,trans:n}).then((function(e){return e.map((function(e){return t.hook.reading.fire(e)}))}))}))},e.prototype.bulkAdd=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,i=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=r.schema.primKey,a=n.auto,l=n.keyPath;if(l&&o)throw new ie.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new ie.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,s=l&&a?e.map(Rt(l)):e;return r.core.mutate({trans:t,type:"add",keys:o,values:s,wantResults:i}).then((function(e){var t=e.numFailures,n=e.results,o=e.lastResult,a=e.failures;if(0===t)return i?n:o;throw new ne(r.name+".bulkAdd(): "+t+" of "+u+" operations failed",Object.keys(a).map((function(e){return a[e]})))}))}))},e.prototype.bulkPut=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,i=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=r.schema.primKey,a=n.auto,l=n.keyPath;if(l&&o)throw new ie.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new ie.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,s=l&&a?e.map(Rt(l)):e;return r.core.mutate({trans:t,type:"put",keys:o,values:s,wantResults:i}).then((function(e){var t=e.numFailures,n=e.results,o=e.lastResult,a=e.failures;if(0===t)return i?n:o;throw new ne(r.name+".bulkPut(): "+t+" of "+u+" operations failed",Object.keys(a).map((function(e){return a[e]})))}))}))},e.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:e})})).then((function(e){var r=e.numFailures,o=e.lastResult,i=e.failures;if(0===r)return o;throw new ne(t.name+".bulkDelete(): "+r+" of "+n+" operations failed",i)}))},e}();function Vt(e){var t={},n=function(n,r){if(r){for(var o=arguments.length,i=new Array(o-1);--o;)i[o-1]=arguments[o];return t[n].subscribe.apply(null,i),e}if("string"==typeof n)return t[n]};n.addEventType=i;for(var r=1,o=arguments.length;r<o;++r)i(arguments[r]);return n;function i(e,r,o){if("object"==typeof e)return u(e);r||(r=me),o||(o=ue);var i={subscribers:[],fire:o,subscribe:function(e){-1===i.subscribers.indexOf(e)&&(i.subscribers.push(e),i.fire=r(i.fire,e))},unsubscribe:function(e){i.subscribers=i.subscribers.filter((function(t){return t!==e})),i.fire=i.subscribers.reduce(r,o)}};return t[e]=n[e]=i,i}function u(e){a(e).forEach((function(t){var n=e[t];if(l(n))i(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new ie.InvalidArgument("Invalid event config");var r=i(t,se,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach((function(e){S((function(){e.apply(null,t)}))}))}))}}))}}function Bt(e,t){return v(t).from({prototype:e}),t}function Ut(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Ht(e,t){e.filter=Lt(e.filter,t)}function Kt(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return Lt(r(),t())}:t,e.justLimit=n&&!r}function Wt(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new ie.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function qt(e,t,n){var r=Wt(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function $t(e,t,n,r){var o=e.replayFilter?Lt(e.filter,e.replayFilter()):e.filter;if(e.or){var i={},a=function(e,n,r){if(!o||o(n,r,(function(e){return n.stop(e)}),(function(e){return n.fail(e)}))){var a=n.primaryKey,l=""+a;"[object ArrayBuffer]"===l&&(l=""+new Uint8Array(a)),d(i,l)||(i[l]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(a,n),Qt(qt(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return Qt(qt(e,r,n),Lt(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function Qt(e,t,n,r){var o=et(r?function(e,t,o){return n(r(e),t,o)}:n);return e.then((function(e){if(e)return e.start((function(){var n=function(){return e.continue()};t&&!t(e,(function(e){return n=e}),(function(t){e.stop(t),n=ue}),(function(t){e.fail(t),n=ue}))||o(e.value,e,(function(e){return n=e})),n()}))}))}var Yt=function(){function e(){}return e.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,wt.bind(null,n.error)):n.table._trans("readonly",e).then(t)},e.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,wt.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},e.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=Lt(t.algorithm,e)},e.prototype._iterate=function(e,t){return $t(this._ctx,e,t,this._ctx.table.core)},e.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&s(n,e),t._ctx=n,t},e.prototype.raw=function(){return this._ctx.valueMapper=null,this},e.prototype.each=function(e){var t=this._ctx;return this._read((function(n){return $t(t,e,n,t.table.core)}))},e.prototype.count=function(e){var t=this;return this._read((function(e){var n=t._ctx,r=n.table.core;if(Ut(n,!0))return r.count({trans:e,query:{index:Wt(n,r.schema),range:n.range}}).then((function(e){return Math.min(e,n.limit)}));var o=0;return $t(n,(function(){return++o,!1}),e,r).then((function(){return o}))})).then(e)},e.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],o=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function l(e,t){var n=i(e,o),r=i(t,o);return n<r?-a:n>r?a:0}return this.toArray((function(e){return e.sort(l)})).then(t)},e.prototype.toArray=function(e){var t=this;return this._read((function(e){var n=t._ctx;if("next"===n.dir&&Ut(n,!0)&&n.limit>0){var r=n.valueMapper,o=Wt(n,n.table.core.schema);return n.table.core.query({trans:e,limit:n.limit,values:!0,query:{index:o,range:n.range}}).then((function(e){var t=e.result;return r?t.map(r):t}))}var i=[];return $t(n,(function(e){return i.push(e)}),e,n.table.core).then((function(){return i}))}),e)},e.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,Ut(t)?Kt(t,(function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n((function(){e.advance(t),t=0})),!1))}})):Kt(t,(function(){var t=e;return function(){return--t<0}}))),this},e.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),Kt(this._ctx,(function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this},e.prototype.until=function(e,t){return Ht(this._ctx,(function(n,r,o){return!e(n.value)||(r(o),t)})),this},e.prototype.first=function(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)},e.prototype.last=function(e){return this.reverse().first(e)},e.prototype.filter=function(e){var t,n;return Ht(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=Lt(t.isMatch,n),this},e.prototype.and=function(e){return this.filter(e)},e.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},e.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))},e.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},e.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))},e.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)},e.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&Ut(t,!0)&&t.limit>0)return this._read((function(e){var n=Wt(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((function(e){return e.result})).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)},e.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},e.prototype.firstKey=function(e){return this.limit(1).keys((function(e){return e[0]})).then(e)},e.prototype.lastKey=function(e){return this.reverse().firstKey(e)},e.prototype.distinct=function(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Ht(this._ctx,(function(e){var t=e.primaryKey.toString(),r=d(n,t);return n[t]=!0,!r})),this},e.prototype.modify=function(e){var t=this,n=this._ctx;return this._write((function(r){var o;if("function"==typeof e)o=e;else{var i=a(e),l=i.length;o=function(t){for(var n=!1,r=0;r<l;++r){var o=i[r],a=e[o];C(t,o)!==a&&(_(t,o,a),n=!0)}return n}}var u=n.table.core,s=u.schema.primaryKey,c=s.outbound,f=s.extractKey,d="testmode"in jn?1:2e3,p=t.db.core.cmp,h=[],m=0,v=[],g=function(e,t){var n=t.failures,r=t.numFailures;m+=e-r;for(var o=0,i=a(n);o<i.length;o++){var l=i[o];h.push(n[l])}};return t.clone().primaryKeys().then((function(e){var t=function(n){var i=Math.min(d,e.length-n);return u.getMany({trans:r,keys:e.slice(n,n+i)}).then((function(a){for(var l=[],s=[],h=c?[]:null,m=[],v=0;v<i;++v){var y=a[v],b={value:I(y),primKey:e[n+v]};!1!==o.call(b,b.value,b)&&(null==b.value?m.push(e[n+v]):c||0===p(f(y),f(b.value))?(s.push(b.value),c&&h.push(e[n+v])):(m.push(e[n+v]),l.push(b.value)))}return Promise.resolve(l.length>0&&u.mutate({trans:r,type:"add",values:l}).then((function(e){for(var t in e.failures)m.splice(parseInt(t),1);g(l.length,e)}))).then((function(e){return s.length>0&&u.mutate({trans:r,type:"put",keys:h,values:s}).then((function(e){return g(s.length,e)}))})).then((function(){return m.length>0&&u.mutate({trans:r,type:"delete",keys:m}).then((function(e){return g(m.length,e)}))})).then((function(){return e.length>n+i&&t(n+d)}))}))};return t(0).then((function(){if(h.length>0)throw new te("Error modifying one or more objects",h,m,v);return e.length}))}))}))},e.prototype.delete=function(){var e=this._ctx,t=e.range;return Ut(e)&&(e.isPrimKey&&!Dt||3===t.type)?this._write((function(n){var r=e.table.core.schema.primaryKey,o=t;return e.table.core.count({trans:n,query:{index:r,range:o}}).then((function(t){return e.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((function(e){var n=e.failures,r=(e.lastResult,e.results,e.numFailures);if(r)throw new te("Could not delete some values",Object.keys(n).map((function(e){return n[e]})),t-r);return t-r}))}))})):this.modify((function(e,t){return t.value=null}))},e}();function Xt(e,t){return e<t?-1:e===t?0:1}function Gt(e,t){return e>t?-1:e===t?0:1}function Jt(e,t,n){var r=e instanceof on?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Zt(e){return new e.Collection(e,(function(){return rn("")})).limit(0)}function en(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),l=-1,u=0;u<a;++u){var s=t[u];if(s!==r[u])return o(e[u],n[u])<0?e.substr(0,u)+n[u]+n.substr(u+1):o(e[u],r[u])<0?e.substr(0,u)+r[u]+n.substr(u+1):l>=0?e.substr(0,l)+t[l]+n.substr(l+1):null;o(e[u],s)<0&&(l=u)}return a<r.length&&"next"===i?e+n.substr(e.length):a<e.length&&"prev"===i?e.substr(0,n.length):l<0?null:e.substr(0,l)+r[l]+n.substr(l+1)}function tn(e,t,n,r){var o,i,a,l,u,s,c,f=n.length;if(!n.every((function(e){return"string"==typeof e})))return Jt(e,Ot);function d(e){o=function(e){return"next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()}}(e),i=function(e){return"next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()}}(e),a="next"===e?Xt:Gt;var t=n.map((function(e){return{lower:i(e),upper:o(e)}})).sort((function(e,t){return a(e.lower,t.lower)}));l=t.map((function(e){return e.upper})),u=t.map((function(e){return e.lower})),s=e,c="next"===e?"":r}d("next");var p=new e.Collection(e,(function(){return nn(l[0],u[f-1]+r)}));p._ondirectionchange=function(e){d(e)};var h=0;return p._addAlgorithm((function(e,n,r){var o=e.key;if("string"!=typeof o)return!1;var d=i(o);if(t(d,u,h))return!0;for(var p=null,m=h;m<f;++m){var v=en(o,d,l[m],u[m],a,s);null===v&&null===p?h=m+1:(null===p||a(p,v)>0)&&(p=v)}return n(null!==p?function(){e.continue(p+c)}:r),!1})),p}function nn(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function rn(e){return{type:1,lower:e,upper:e}}var on=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!0,configurable:!0}),e.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Zt(this):new this.Collection(this,(function(){return nn(e,t,!n,!r)}))}catch(e){return Jt(this,_t)}},e.prototype.equals=function(e){return null==e?Jt(this,_t):new this.Collection(this,(function(){return rn(e)}))},e.prototype.above=function(e){return null==e?Jt(this,_t):new this.Collection(this,(function(){return nn(e,void 0,!0)}))},e.prototype.aboveOrEqual=function(e){return null==e?Jt(this,_t):new this.Collection(this,(function(){return nn(e,void 0,!1)}))},e.prototype.below=function(e){return null==e?Jt(this,_t):new this.Collection(this,(function(){return nn(void 0,e,!1,!0)}))},e.prototype.belowOrEqual=function(e){return null==e?Jt(this,_t):new this.Collection(this,(function(){return nn(void 0,e)}))},e.prototype.startsWith=function(e){return"string"!=typeof e?Jt(this,Ot):this.between(e,e+Et,!0,!0)},e.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):tn(this,(function(e,t){return 0===e.indexOf(t[0])}),[e],Et)},e.prototype.equalsIgnoreCase=function(e){return tn(this,(function(e,t){return e===t[0]}),[e],"")},e.prototype.anyOfIgnoreCase=function(){var e=U.apply(B,arguments);return 0===e.length?Zt(this):tn(this,(function(e,t){return-1!==t.indexOf(e)}),e,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var e=U.apply(B,arguments);return 0===e.length?Zt(this):tn(this,(function(e,t){return t.some((function(t){return 0===e.indexOf(t)}))}),e,Et)},e.prototype.anyOf=function(){var e=this,t=U.apply(B,arguments),n=this._cmp;try{t.sort(n)}catch(e){return Jt(this,_t)}if(0===t.length)return Zt(this);var r=new this.Collection(this,(function(){return nn(t[0],t[t.length-1])}));r._ondirectionchange=function(r){n="next"===r?e._ascending:e._descending,t.sort(n)};var o=0;return r._addAlgorithm((function(e,r,i){for(var a=e.key;n(a,t[o])>0;)if(++o===t.length)return r(i),!1;return 0===n(a,t[o])||(r((function(){e.continue(t[o])})),!1)})),r},e.prototype.notEqual=function(e){return this.inAnyRange([[Ct,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var e=U.apply(B,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return Jt(this,_t)}var t=e.reduce((function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[Ct,t]]}),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(e,t){var n=this,r=this._cmp,o=this._ascending,i=this._descending,a=this._min,l=this._max;if(0===e.length)return Zt(this);if(!e.every((function(e){return void 0!==e[0]&&void 0!==e[1]&&o(e[0],e[1])<=0})))return Jt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ie.InvalidArgument);var u,s=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers,f=o;function d(e,t){return f(e[0],t[0])}try{(u=e.reduce((function(e,t){for(var n=0,o=e.length;n<o;++n){var i=e[n];if(r(t[0],i[1])<0&&r(t[1],i[0])>0){i[0]=a(i[0],t[0]),i[1]=l(i[1],t[1]);break}}return n===o&&e.push(t),e}),[])).sort(d)}catch(e){return Jt(this,_t)}var p=0,h=c?function(e){return o(e,u[p][1])>0}:function(e){return o(e,u[p][1])>=0},m=s?function(e){return i(e,u[p][0])>0}:function(e){return i(e,u[p][0])>=0},v=h,g=new this.Collection(this,(function(){return nn(u[0][0],u[u.length-1][1],!s,!c)}));return g._ondirectionchange=function(e){"next"===e?(v=h,f=o):(v=m,f=i),u.sort(d)},g._addAlgorithm((function(e,t,r){for(var i=e.key;v(i);)if(++p===u.length)return t(r),!1;return!!function(e){return!h(e)&&!m(e)}(i)||(0===n._cmp(i,u[p][1])||0===n._cmp(i,u[p][0])||t((function(){f===o?e.continue(u[p][0]):e.continue(u[p][1])})),!1)})),g},e.prototype.startsWithAnyOf=function(){var e=U.apply(B,arguments);return e.every((function(e){return"string"==typeof e}))?0===e.length?Zt(this):this.inAnyRange(e.map((function(e){return[e,e+Et]}))):Jt(this,"startsWithAnyOf() only works with strings")},e}();function an(e){return 1===e.length?e[0]:e}function ln(e){try{return e.only([[]]),[[]]}catch(e){return Et}}function un(e){return et((function(t){return sn(t),e(t.target.error),!1}))}function sn(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var cn=function(){function e(){}return e.prototype._lock=function(){return k(!Ne.global),++this._reculock,1!==this._reculock||Ne.global||(Ne.lockOwnerFor=this),this},e.prototype._unlock=function(){if(k(!Ne.global),0==--this._reculock)for(Ne.global||(Ne.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{mt(e[1],e[0])}catch(e){}}return this},e.prototype._locked=function(){return this._reculock&&Ne.lockOwnerFor!==this},e.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(k(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new ie.DatabaseClosed(r);case"MissingAPIError":throw new ie.MissingAPI(r.message,r);default:throw new ie.OpenFailed(r)}if(!this.active)throw new ie.TransactionInactive;return k(null===this._completion._state),(e=this.idbtrans=e||n.transaction(an(this.storeNames),this.mode)).onerror=et((function(n){sn(n),t._reject(e.error)})),e.onabort=et((function(n){sn(n),t.active&&t._reject(new ie.Abort(e.error)),t.active=!1,t.on("abort").fire(n)})),e.oncomplete=et((function(){t.active=!1,t._resolve()})),this},e.prototype._promise=function(e,t,n){var r=this;if("readwrite"===e&&"readwrite"!==this.mode)return wt(new ie.ReadOnly("Transaction is readonly"));if(!this.active)return wt(new ie.TransactionInactive);if(this._locked())return new je((function(o,i){r._blockedFuncs.push([function(){r._promise(e,t,n).then(o,i)},Ne])}));if(n)return lt((function(){var e=new je((function(e,n){r._lock();var o=t(e,n,r);o&&o.then&&o.then(e,n)}));return e.finally((function(){return r._unlock()})),e._lib=!0,e}));var o=new je((function(e,n){var o=t(e,n,r);o&&o.then&&o.then(e,n)}));return o._lib=!0,o},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(e){var t=this._root(),n=je.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((function(){return n}));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var o=t._waitingFor;return new je((function(e,r){n.then((function(n){return t._waitingQueue.push(et(e.bind(null,n)))}),(function(e){return t._waitingQueue.push(et(r.bind(null,e)))})).finally((function(){t._waitingFor===o&&(t._waitingFor=null)}))}))},e.prototype.abort=function(){this.active&&this._reject(new ie.Abort),this.active=!1},e.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(d(t,e))return t[e];var n=this.schema[e];if(!n)throw new ie.NotFound("Table "+e+" not part of transaction");var r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r},e}();function fn(e,t,n,r,o,i,a){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+dn(t)}}function dn(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function pn(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:E(n,(function(e){return[e.name,e]}))}}function hn(e){return null==e?function(){}:"string"==typeof e?function(e){return 1===e.split(".").length?function(t){return t[e]}:function(t){return C(t,e)}}(e):function(t){return C(t,e)}}function mn(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}function vn(e){return[].slice.call(e)}var gn=0;function yn(e){return null==e?":id":"string"==typeof e?e:"["+e.join("+")+"]"}function bn(e,t,n,r){var o=t.cmp.bind(t);function a(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");var t=e.lower,r=e.upper,o=e.lowerOpen,i=e.upperOpen;return void 0===t?void 0===r?null:n.upperBound(r,!!i):void 0===r?n.lowerBound(t,!!o):n.bound(t,r,!!o,!!i)}var u=function(e,t){var n=vn(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((function(e){return t.objectStore(e)})).map((function(e){var t=e.keyPath,n=e.autoIncrement,r=l(t),o=null==t,i={},a={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:hn(t)},indexes:vn(e.indexNames).map((function(t){return e.index(t)})).map((function(e){var t=e.name,n=e.unique,r=e.multiEntry,o=e.keyPath,a={name:t,compound:l(o),keyPath:o,unique:n,multiEntry:r,extractKey:hn(o)};return i[yn(o)]=a,a})),getIndexByKeyPath:function(e){return i[yn(e)]}};return i[":id"]=a.primaryKey,null!=t&&(i[yn(t)]=a.primaryKey),a}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,r),s=u.schema,c=u.hasGetAll,f=s.tables.map((function(e){return function(e){var t=e.name;return{name:t,schema:e,mutate:function(n){var r=n.trans,o=n.type,l=n.keys,u=n.values,s=n.range,c=n.wantResults;return new Promise((function(n,f){n=et(n);var d=r.objectStore(t),p=null==d.keyPath,h="put"===o||"add"===o;if(!h&&"delete"!==o&&"deleteRange"!==o)throw new Error("Invalid operation type: "+o);var m=(l||u||{length:1}).length;if(l&&u&&l.length!==u.length)throw new Error("Given keys array must have same length as given values array.");if(0===m)return n({numFailures:0,failures:{},results:[],lastResult:void 0});var v,g=c&&i(l||mn(e.primaryKey,{type:o,keys:l,values:u})),y=[],b=0,x=function(e){++b,sn(e),g&&(g[e.target._reqno]=void 0),y[e.target._reqno]=e.target.error},w=function(e){var t=e.target;g[t._reqno]=t.result};if("deleteRange"===o){if(4===s.type)return n({numFailures:b,failures:y,results:g,lastResult:void 0});v=3===s.type?d.clear():d.delete(a(s))}else{var k=h?p?[u,l]:[u,null]:[l,null],S=k[0],E=k[1];if(h)for(var C=0;C<m;++C)(v=E&&void 0!==E[C]?d[o](S[C],E[C]):d[o](S[C]))._reqno=C,g&&void 0===g[C]&&(v.onsuccess=w),v.onerror=x;else for(C=0;C<m;++C)(v=d[o](S[C]))._reqno=C,v.onerror=x}var _=function(e){var t=e.target.result;g&&(g[m-1]=t),n({numFailures:b,failures:y,results:g,lastResult:t})};v.onerror=function(e){x(e),_(e)},v.onsuccess=_}))},getMany:function(e){var n=e.trans,r=e.keys;return new Promise((function(e,o){e=et(e);for(var i,a=n.objectStore(t),l=r.length,u=new Array(l),s=0,c=0,f=function(t){var n=t.target;u[n._pos]=n.result,++c===s&&e(u)},d=un(o),p=0;p<l;++p)null!=r[p]&&((i=a.get(r[p]))._pos=p,i.onsuccess=f,i.onerror=d,++s);0===s&&e(u)}))},get:function(e){var n=e.trans,r=e.key;return new Promise((function(e,o){e=et(e);var i=n.objectStore(t).get(r);i.onsuccess=function(t){return e(t.target.result)},i.onerror=un(o)}))},query:function(e){return function(n){return new Promise((function(r,o){r=et(r);var i=n.trans,l=n.values,u=n.limit,s=n.query,c=u===1/0?void 0:u,f=s.index,d=s.range,p=i.objectStore(t),h=f.isPrimaryKey?p:p.index(f.name),m=a(d);if(0===u)return r({result:[]});if(e){var v=l?h.getAll(m,c):h.getAllKeys(m,c);v.onsuccess=function(e){return r({result:e.target.result})},v.onerror=un(o)}else{var g=0,y=l||!("openKeyCursor"in h)?h.openCursor(m):h.openKeyCursor(m),b=[];y.onsuccess=function(e){var t=y.result;return t?(b.push(l?t.value:t.primaryKey),++g===u?r({result:b}):void t.continue()):r({result:b})},y.onerror=un(o)}}))}}(c),openCursor:function(e){var n=e.trans,r=e.values,o=e.query,i=e.reverse,l=e.unique;return new Promise((function(e,u){e=et(e);var s=o.index,c=o.range,f=n.objectStore(t),d=s.isPrimaryKey?f:f.index(s.name),p=i?l?"prevunique":"prev":l?"nextunique":"next",h=r||!("openKeyCursor"in d)?d.openCursor(a(c),p):d.openKeyCursor(a(c),p);h.onerror=un(u),h.onsuccess=et((function(t){var r=h.result;if(r){r.___id=++gn,r.done=!1;var o=r.continue.bind(r),i=r.continuePrimaryKey;i&&(i=i.bind(r));var a=r.advance.bind(r),l=function(){throw new Error("Cursor not stopped")};r.trans=n,r.stop=r.continue=r.continuePrimaryKey=r.advance=function(){throw new Error("Cursor not started")},r.fail=et(u),r.next=function(){var e=this,t=1;return this.start((function(){return t--?e.continue():e.stop()})).then((function(){return e}))},r.start=function(e){var t=new Promise((function(e,t){e=et(e),h.onerror=un(t),r.fail=t,r.stop=function(t){r.stop=r.continue=r.continuePrimaryKey=r.advance=l,e(t)}})),n=function(){if(h.result)try{e()}catch(e){r.fail(e)}else r.done=!0,r.start=function(){throw new Error("Cursor behind last entry")},r.stop()};return h.onsuccess=et((function(e){h.onsuccess=n,n()})),r.continue=o,r.continuePrimaryKey=i,r.advance=a,n(),t},e(r)}else e(null)}),u)}))},count:function(e){var n=e.query,r=e.trans,o=n.index,i=n.range;return new Promise((function(e,n){var l=r.objectStore(t),u=o.isPrimaryKey?l:l.index(o.name),s=a(i),c=s?u.count(s):u.count();c.onsuccess=et((function(t){return e(t.target.result)})),c.onerror=un(n)}))}}}(e)})),d={};return f.forEach((function(e){return d[e.name]=e})),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(e){if(!d[e])throw new Error("Table '"+e+"' not found");return d[e]},cmp:o,MIN_KEY:-1/0,MAX_KEY:ln(n),schema:s}}function xn(e,t){var n=t.db,r=function(e,t,n,r){var i=n.IDBKeyRange;return{dbcore:function(e,t){return t.reduce((function(e,t){var n=t.create;return o(o({},e),n(e))}),e)}(bn(t,n.indexedDB,i,r),e.dbcore)}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((function(t){var n=t.name;e.core.schema.tables.some((function(e){return e.name===n}))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function wn(e,t,n,r){n.forEach((function(n){var o=r[n];t.forEach((function(t){var r=y(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?m(t,n,{get:function(){return this.table(n)},set:function(e){h(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,o))}))}))}function kn(e,t){t.forEach((function(t){for(var n in t)t[n]instanceof e.Table&&delete t[n]}))}function Sn(e,t){return e._cfg.version-t._cfg.version}function En(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var o=e[n],i=t[n];if(o){var a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!Tt)a.recreate=!0,r.change.push(a);else{var l=o.idxByName,u=i.idxByName,s=void 0;for(s in l)u[s]||a.del.push(s);for(s in u){var c=l[s],f=u[s];c?c.src!==f.src&&a.change.push(f):a.add.push(f)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([n,i])}return r}function Cn(e,t,n,r){var o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(e){return _n(o,e)})),o}function _n(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function On(e,t,n){var r={};return x(t.objectStoreNames,0).forEach((function(e){for(var t=n.objectStore(e),o=t.keyPath,i=fn(dn(o),o||"",!1,!1,!!t.autoIncrement,o&&"string"!=typeof o,!0),a=[],l=0;l<t.indexNames.length;++l){var u=t.index(t.indexNames[l]);o=u.keyPath;var s=fn(u.name,o,!!u.unique,!!u.multiEntry,!1,o&&"string"!=typeof o,!1);a.push(s)}r[e]=pn(e,i,a)})),r}function Pn(e,t,n){for(var r=n.db.objectStoreNames,o=0;o<r.length;++o){var i=r[o],a=n.objectStore(i);e._hasGetAll="getAll"in a;for(var l=0;l<a.indexNames.length;++l){var s=a.indexNames[l],c=a.index(s).keyPath,f="string"==typeof c?c:"["+x(c).join("+")+"]";if(t[i]){var d=t[i].idxByName[f];d&&(d.name=s,delete t[i].idxByName[f],t[i].idxByName[s]=d)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&u.WorkerGlobalScope&&u instanceof u.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}var Tn,Mn=function(){function e(){}return e.prototype._parseStoresSpec=function(e,t){a(e).forEach((function(n){if(null!==e[n]){var r=e[n].split(",").map((function(e,t){var n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return fn(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),l(r),0===t)})),o=r.shift();if(o.multi)throw new ie.Schema("Primary key cannot be multi-valued");r.forEach((function(e){if(e.auto)throw new ie.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new ie.Schema("Index must have a name and cannot be an empty string")})),t[n]=pn(n,o,r)}}))},e.prototype.stores=function(e){var t=this.db;this._cfg.storesSource=this._cfg.storesSource?s(this._cfg.storesSource,e):e;var n=t._versions,r={},o={};return n.forEach((function(e){s(r,e._cfg.storesSource),o=e._cfg.dbschema={},e._parseStoresSpec(r,o)})),t._dbSchema=o,kn(t,[t._allTables,t,t.Transaction.prototype]),wn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],a(o),o),t._storeNames=a(o),this},e.prototype.upgrade=function(e){return this._cfg.contentUpgrade=e,this},e}();function Dn(e){return lt((function(){return Ne.letThrough=!0,e()}))}function An(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((function(){return t.dbOpenError?wt(t.dbOpenError):e}));K&&(t.openCanceller._stackHolder=Q()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.dbReadyResolve,o=null;return je.race([t.openCanceller,new je((function(r,i){if(!n)throw new ie.MissingAPI("indexedDB API not found. If using IE10+, make sure to run your code on a server URL (not locally). If using old Safari versions, make sure to include indexedDB polyfill.");var l=e.name,u=t.autoSchema?n.open(l):n.open(l,Math.round(10*e.verno));if(!u)throw new ie.MissingAPI("IndexedDB API not available");u.onerror=un(i),u.onblocked=et(e._fireOnBlocked),u.onupgradeneeded=et((function(r){if(o=u.transaction,t.autoSchema&&!e._options.allowEmptyDB){u.onerror=sn,o.abort(),u.result.close();var s=n.deleteDatabase(l);s.onsuccess=s.onerror=et((function(){i(new ie.NoSuchDatabase("Database "+l+" doesnt exist"))}))}else{o.onerror=un(i);var c=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;e.idbdb=u.result,function(e,t,n,r){var o=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,o);i.create(n),i._completion.catch(r);var l=i._reject.bind(i),u=Ne.transless||Ne;lt((function(){Ne.trans=i,Ne.transless=u,0===t?(a(o).forEach((function(e){Cn(n,e,o[e].primKey,o[e].indexes)})),xn(e,n),je.follow((function(){return e.on.populate.fire(i)})).catch(l)):function(e,t,n,r){var o=[],i=e._versions,l=e._dbSchema=On(0,e.idbdb,r),u=!1;return i.filter((function(e){return e._cfg.version>=t})).forEach((function(i){o.push((function(){var o=l,s=i._cfg.dbschema;Pn(e,o,r),Pn(e,s,r),l=e._dbSchema=s;var c=En(o,s);c.add.forEach((function(e){Cn(r,e[0],e[1].primKey,e[1].indexes)})),c.change.forEach((function(e){if(e.recreate)throw new ie.Upgrade("Not yet support for changing primary key");var t=r.objectStore(e.name);e.add.forEach((function(e){return _n(t,e)})),e.change.forEach((function(e){t.deleteIndex(e.name),_n(t,e)})),e.del.forEach((function(e){return t.deleteIndex(e)}))}));var f=i._cfg.contentUpgrade;if(f&&i._cfg.version>t){xn(e,r),n._memoizedTables={},u=!0;var d=P(s);c.del.forEach((function(e){d[e]=o[e]})),kn(e,[e.Transaction.prototype]),wn(e,[e.Transaction.prototype],a(d),d),n.schema=d;var p,h=H(f);h&&ut();var m=je.follow((function(){if((p=f(n))&&h){var e=st.bind(null,null);p.then(e,e)}}));return p&&"function"==typeof p.then?je.resolve(p):m.then((function(){return p}))}})),o.push((function(t){u&&Mt||function(e,t){for(var n=0;n<t.db.objectStoreNames.length;++n){var r=t.db.objectStoreNames[n];null==e[r]&&t.db.deleteObjectStore(r)}}(i._cfg.dbschema,t),kn(e,[e.Transaction.prototype]),wn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return o.length?je.resolve(o.shift()(n.idbtrans)).then(e):je.resolve()}().then((function(){var e,t;t=r,a(e=l).forEach((function(n){t.db.objectStoreNames.contains(n)||Cn(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,i,n).catch(l)}))}(e,c/10,o,i)}}),i),u.onsuccess=et((function(){o=null;var n=e.idbdb=u.result,i=x(n.objectStoreNames);if(i.length>0)try{var s=n.transaction(an(i),"readonly");t.autoSchema?function(e,t,n){e.verno=t.version/10;var r=e._dbSchema=On(0,t,n);e._storeNames=x(t.objectStoreNames,0),wn(e,[e._allTables],a(r),r)}(e,n,s):(Pn(e,e._dbSchema,s),function(e,t){var n=En(On(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((function(e){return e.add.length||e.change.length})))}(e,s)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),xn(e,s)}catch(e){}Pt.push(e),n.onversionchange=et((function(n){t.vcFired=!0,e.on("versionchange").fire(n)})),Tn.add(l),r()}),i)}))]).then((function(){return t.onReadyBeingFired=[],je.resolve(Dn(e.on.ready.fire)).then((function e(){if(t.onReadyBeingFired.length>0){var n=t.onReadyBeingFired.reduce(ve,ue);return t.onReadyBeingFired=[],je.resolve(Dn(n)).then(e)}}))})).finally((function(){t.onReadyBeingFired=null})).then((function(){return t.isBeingOpened=!1,e})).catch((function(n){try{o&&o.abort()}catch(e){}return t.isBeingOpened=!1,e.close(),t.dbOpenError=n,wt(t.dbOpenError)})).finally((function(){t.openComplete=!0,r()}))}function Fn(e){var t=function(t){return e.next(t)},n=o(t),r=o((function(t){return e.throw(t)}));function o(e){return function(t){var o=e(t),i=o.value;return o.done?i:i&&"function"==typeof i.then?i.then(n,r):l(i)?Promise.all(i).then(n,r):n(i)}}return o(t)()}function In(e,t,n){var r=arguments.length;if(r<2)throw new ie.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];n=o.pop();var i=M(o);return[e,i,n]}function Nn(e,t,n,r,o){return je.resolve().then((function(){var i=Ne.transless||Ne,a=e._createTransaction(t,n,e._dbSchema,r),l={trans:a,transless:i};r?a.idbtrans=r.idbtrans:a.create();var u,s=H(o);s&&ut();var c=je.follow((function(){if(u=o.call(a,a))if(s){var e=st.bind(null,null);u.then(e,e)}else"function"==typeof u.next&&"function"==typeof u.throw&&(u=Fn(u))}),l);return(u&&"function"==typeof u.then?je.resolve(u).then((function(e){return a.active?e:wt(new ie.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):c.then((function(){return u}))).then((function(e){return r&&a._resolve(),a._completion.then((function(){return e}))})).catch((function(e){return a._reject(e),wt(e)}))}))}function Ln(e,t,n){for(var r=l(e)?e.slice():[e],o=0;o<n;++o)r.push(t);return r}var zn={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return o(o({},e),{table:function(t){var n=e.table(t),r=n.schema,i={},a=[];function l(e,t,n){var r=yn(e),u=i[r]=i[r]||[],s=null==e?0:"string"==typeof e?1:e.length,c=t>0,f=o(o({},n),{isVirtual:c,isPrimaryKey:!c&&n.isPrimaryKey,keyTail:t,keyLength:s,extractKey:hn(e),unique:!c&&n.unique});return u.push(f),f.isPrimaryKey||a.push(f),s>1&&l(2===s?e[0]:e.slice(0,s-1),t+1,n),u.sort((function(e,t){return e.keyTail-t.keyTail})),f}var u=l(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[u];for(var s=0,c=r.indexes;s<c.length;s++){var f=c[s];l(f.keyPath,0,f)}function d(t){var n,r,i=t.query.index;return i.isVirtual?o(o({},t),{query:{index:i,range:(n=t.query.range,r=i.keyTail,{type:1===n.type?2:n.type,lower:Ln(n.lower,n.lowerOpen?e.MAX_KEY:e.MIN_KEY,r),lowerOpen:!0,upper:Ln(n.upper,n.upperOpen?e.MIN_KEY:e.MAX_KEY,r),upperOpen:!0})}}):t}return o(o({},n),{schema:o(o({},r),{primaryKey:u,indexes:a,getIndexByKeyPath:function(e){var t=i[yn(e)];return t&&t[0]}}),count:function(e){return n.count(d(e))},query:function(e){return n.query(d(e))},openCursor:function(t){var r=t.query.index,o=r.keyTail,i=r.isVirtual,a=r.keyLength;return i?n.openCursor(d(t)).then((function(n){return n&&function(n){return Object.create(n,{continue:{value:function(r){null!=r?n.continue(Ln(r,t.reverse?e.MAX_KEY:e.MIN_KEY,o)):t.unique?n.continue(Ln(n.key,t.reverse?e.MIN_KEY:e.MAX_KEY,o)):n.continue()}},continuePrimaryKey:{value:function(t,r){n.continuePrimaryKey(Ln(t,e.MAX_KEY,o),r)}},key:{get:function(){var e=n.key;return 1===a?e[0]:e.slice(0,a)}},value:{get:function(){return n.value}}})}(n)})):n.openCursor(t)}})}})}},Rn={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return o(o({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey;return o(o({},n),{mutate:function(e){var a=Ne.trans,l=a.table(t).hook,u=l.deleting,s=l.creating,c=l.updating;switch(e.type){case"add":if(s.fire===ue)break;return a._promise("readwrite",(function(){return f(e)}),!0);case"put":if(s.fire===ue&&c.fire===ue)break;return a._promise("readwrite",(function(){return f(e)}),!0);case"delete":if(u.fire===ue)break;return a._promise("readwrite",(function(){return f(e)}),!0);case"deleteRange":if(u.fire===ue)break;return a._promise("readwrite",(function(){return function(e){return p(e.trans,e.range,1e4)}(e)}),!0)}return n.mutate(e);function f(e){var t=Ne.trans,a=e.keys||mn(r,e);if(!a)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?o(o({},e),{keys:a,wantResults:!0}):o({},e)).type&&(e.values=i(e.values)),e.keys&&(e.keys=i(e.keys)),function(e,t,n){return"add"===t.type?Promise.resolve(new Array(t.values.length)):e.getMany({trans:t.trans,keys:n})}(n,e,a).then((function(o){var i=a.map((function(n,i){var a=o[i],l={onerror:null,onsuccess:null};if("delete"===e.type)u.fire.call(l,n,a,t);else if("add"===e.type||void 0===a){var f=s.fire.call(l,n,e.values[i],t);null==n&&null!=f&&(n=f,e.keys[i]=n,r.outbound||_(e.values[i],r.keyPath,n))}else{var p=R(a,e.values[i]),h=c.fire.call(l,p,n,a,t);if(h){var m=e.values[i];Object.keys(h).forEach((function(e){d(m,e)?m[e]=h[e]:_(m,e,h[e])}))}}return l}));return n.mutate(e).then((function(t){for(var n=t.failures,r=t.results,l=t.numFailures,u=t.lastResult,s=0;s<a.length;++s){var c=r?r[s]:a[s],f=i[s];null==c?f.onerror&&f.onerror(n[s]):f.onsuccess&&f.onsuccess("put"===e.type&&o[s]?e.values[s]:c)}return{failures:n,results:r,numFailures:l,lastResult:u}})).catch((function(e){return i.forEach((function(t){return t.onerror&&t.onerror(e)})),Promise.reject(e)}))}))}function p(e,t,i){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:i}).then((function(n){var r=n.result;return f({type:"delete",keys:r,trans:e}).then((function(n){return n.numFailures>0?Promise.reject(n.failures[0]):r.length<i?{failures:[],numFailures:0,lastResult:void 0}:p(e,o(o({},t),{lower:r[r.length-1],lowerOpen:!0}),i)}))}))}}})}})}},jn=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=n=o({addons:e.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var a=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null;var l,u={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ue,dbReadyPromise:null,cancelOpen:ue,openCanceller:null,autoSchema:!0};u.dbReadyPromise=new je((function(e){u.dbReadyResolve=e})),u.openCanceller=new je((function(e,t){u.cancelOpen=t})),this._state=u,this.name=t,this.on=Vt(this,"populate","blocked","versionchange",{ready:[ve,ue]}),this.on.ready.subscribe=w(this.on.ready.subscribe,(function(t){return function(n,o){e.vip((function(){var e=r._state;if(e.openComplete)e.dbOpenError||je.resolve().then(n),o&&t(n);else if(e.onReadyBeingFired)e.onReadyBeingFired.push(n),o&&t(n);else{t(n);var i=r;o||t((function e(){i.on.ready.unsubscribe(n),i.on.ready.unsubscribe(e)}))}}))}})),this.Collection=(l=this,Bt(Yt.prototype,(function(e,t){this.db=l;var n=zt,r=null;if(t)try{n=t()}catch(e){r=e}var o=e._ctx,i=o.table,a=i.hook.reading.fire;this._ctx={table:i,index:o.index,isPrimKey:!o.index||i.schema.primKey.keyPath&&o.index===i.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:o.or,valueMapper:a!==se?a:null}}))),this.Table=function(e){return Bt(jt.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Vt(null,{creating:[de,ue],reading:[ce,se],updating:[he,ue],deleting:[pe,ue]})}))}(this),this.Transaction=function(e){return Bt(cn.prototype,(function(t,n,r,o){var i=this;this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.idbtrans=null,this.on=Vt(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new je((function(e,t){i._resolve=e,i._reject=t})),this._completion.then((function(){i.active=!1,i.on.complete.fire()}),(function(e){var t=i.active;return i.active=!1,i.on.error.fire(e),i.parent?i.parent._reject(e):t&&i.idbtrans&&i.idbtrans.abort(),wt(e)}))}))}(this),this.Version=function(e){return Bt(Mn.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Bt(on.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};var o=e._deps.indexedDB;if(!o)throw new ie.MissingAPI("indexedDB API missing");this._cmp=this._ascending=o.cmp.bind(o),this._descending=function(e,t){return o.cmp(t,e)},this._max=function(e,t){return o.cmp(e,t)>0?e:t},this._min=function(e,t){return o.cmp(e,t)<0?e:t},this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(function(e){e.newVersion>0?console.warn("Another connection wants to upgrade database '"+r.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+r.name+"'. Closing db now to resume the delete request."),r.close()})),this.on("blocked",(function(e){!e.newVersion||e.newVersion<e.oldVersion?console.warn("Dexie.delete('"+r.name+"') was blocked"):console.warn("Upgrade '"+r.name+"' blocked by other connection holding version "+e.oldVersion/10)})),this._maxKey=ln(n.IDBKeyRange),this._createTransaction=function(e,t,n,o){return new r.Transaction(e,t,n,o)},this._fireOnBlocked=function(e){r.on("blocked").fire(e),Pt.filter((function(e){return e.name===r.name&&e!==r&&!e._state.vcFired})).map((function(t){return t.on("versionchange").fire(e)}))},this.use(zn),this.use(Rn),a.forEach((function(e){return e(r)}))}return e.prototype.version=function(e){if(isNaN(e)||e<.1)throw new ie.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new ie.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);var t=this._versions,n=t.filter((function(t){return t._cfg.version===e}))[0];return n||(n=new this.Version(e),t.push(n),t.sort(Sn),n.stores({}),this._state.autoSchema=!1,n)},e.prototype._whenReady=function(e){var t=this;return this._state.openComplete||Ne.letThrough?e():new je((function(e,n){if(!t._state.isBeingOpened){if(!t._options.autoOpen)return void n(new ie.DatabaseClosed);t.open().catch(ue)}t._state.dbReadyPromise.then(e,n)})).then(e)},e.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,o=e.name;o&&this.unuse({stack:t,name:o});var i=this._middlewares[t]||(this._middlewares[t]=[]);return i.push({stack:t,create:n,level:null==r?10:r,name:o}),i.sort((function(e,t){return e.level-t.level})),this},e.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter((function(e){return r?e.create!==r:!!n&&e.name!==n}))),this},e.prototype.open=function(){return An(this)},e.prototype.close=function(){var e=Pt.indexOf(this),t=this._state;if(e>=0&&Pt.splice(e,1),this.idbdb){try{this.idbdb.close()}catch(e){}this.idbdb=null}this._options.autoOpen=!1,t.dbOpenError=new ie.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError),t.dbReadyPromise=new je((function(e){t.dbReadyResolve=e})),t.openCanceller=new je((function(e,n){t.cancelOpen=n}))},e.prototype.delete=function(){var e=this,t=arguments.length>0,n=this._state;return new je((function(r,o){var i=function(){e.close();var t=e._deps.indexedDB.deleteDatabase(e.name);t.onsuccess=et((function(){Tn.remove(e.name),r()})),t.onerror=un(o),t.onblocked=e._fireOnBlocked};if(t)throw new ie.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(i):i()}))},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return null!==this.idbdb},e.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},e.prototype.hasFailed=function(){return null!==this._state.dbOpenError},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var e=this;return a(this._allTables).map((function(t){return e._allTables[t]}))},enumerable:!0,configurable:!0}),e.prototype.transaction=function(){var e=In.apply(this,arguments);return this._transaction.apply(this,e)},e.prototype._transaction=function(e,t,n){var r=this,o=Ne.trans;o&&o.db===this&&-1===e.indexOf("!")||(o=null);var i,a,l=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(a=t.map((function(e){var t=e instanceof r.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||e===It)i=It;else{if("rw"!=e&&e!=Nt)throw new ie.InvalidArgument("Invalid transaction mode: "+e);i=Nt}if(o){if(o.mode===It&&i===Nt){if(!l)throw new ie.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&a.forEach((function(e){if(o&&-1===o.storeNames.indexOf(e)){if(!l)throw new ie.SubTransaction("Table "+e+" not included in parent transaction.");o=null}})),l&&o&&!o.active&&(o=null)}}catch(e){return o?o._promise(null,(function(t,n){n(e)})):wt(e)}var u=Nn.bind(null,this,i,a,o,n);return o?o._promise(i,u,"lock"):Ne.trans?mt(Ne.transless,(function(){return r._whenReady(u)})):this._whenReady(u)},e.prototype.table=function(e){if(!d(this._allTables,e))throw new ie.InvalidTable("Table "+e+" does not exist");return this._allTables[e]},e}(),Vn=jn;p(Vn,o(o({},le),{delete:function(e){return new Vn(e).delete()},exists:function(e){return new Vn(e,{addons:[]}).open().then((function(e){return e.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(e){return Tn?Tn.getDatabaseNames().then(e):je.resolve([])},defineClass:function(){return function(e){s(this,e)}},ignoreTransaction:function(e){return Ne.trans?mt(Ne.transless,e):e()},vip:Dn,async:function(e){return function(){try{var t=Fn(e.apply(this,arguments));return t&&"function"==typeof t.then?t:je.resolve(t)}catch(e){return wt(e)}}},spawn:function(e,t,n){try{var r=Fn(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:je.resolve(r)}catch(e){return wt(e)}},currentTransaction:{get:function(){return Ne.trans||null}},waitFor:function(e,t){var n=je.resolve("function"==typeof e?Vn.ignoreTransaction(e):e).timeout(t||6e4);return Ne.trans?Ne.trans.waitFor(n):n},Promise:je,debug:{get:function(){return K},set:function(e){W(e,"dexie"===e?function(){return!0}:At)}},derive:v,extend:s,props:p,override:w,Events:Vt,getByKeyPath:C,setByKeyPath:_,delByKeyPath:O,shallowClone:P,deepClone:I,getObjectDiff:R,asap:S,minKey:Ct,addons:[],connections:Pt,errnames:re,dependencies:function(){try{return{indexedDB:u.indexedDB||u.mozIndexedDB||u.webkitIndexedDB||u.msIndexedDB,IDBKeyRange:u.IDBKeyRange||u.webkitIDBKeyRange}}catch(e){return{indexedDB:null,IDBKeyRange:null}}}(),semVer:St,version:St.split(".").map((function(e){return parseInt(e)})).reduce((function(e,t,n){return e+t/Math.pow(10,2*n)})),default:Vn,Dexie:Vn})),Vn.maxKey=ln(Vn.dependencies.IDBKeyRange),function(e){try{Tn=function(e){var t,n=e&&"function"==typeof e.databases;if(!n){var r=new jn(Ft,{addons:[]});r.version(1).stores({dbnames:"name"}),t=r.table("dbnames")}return{getDatabaseNames:function(){return n?je.resolve(e.databases()).then((function(e){return e.map((function(e){return e.name})).filter((function(e){return e!==Ft}))})):t.toCollection().primaryKeys()},add:function(e){return!n&&e!==Ft&&t.put({name:e}).catch(ue)},remove:function(e){return!n&&e!==Ft&&t.delete(e).catch(ue)}}}(e)}catch(e){}}(jn.dependencies.indexedDB),je.rejectionMapper=function(e,t){if(!e||e instanceof Z||e instanceof TypeError||e instanceof SyntaxError||!e.name||!ae[e.name])return e;var n=new ae[e.name](t||e.message,e);return"stack"in e&&m(n,"stack",{get:function(){return this.inner.stack}}),n},W(K,At);const Bn=jn;var Un=n(9050);function Hn(e,t){var n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return"rgba(".concat(n,", ").concat(r,", ").concat(o,", ").concat(t,")")}function Kn(){return{whiteBackground:"#ffffff",whiteText:"#ffffff",blackBackground:"#000000",blackText:"#000000",blackShadow:Hn("#000000",.25),accent:"#888888",transparent:"transparent",blue:"#1a7ee8",red:"#de3e3e",redder:"#6e0808"}}var Wn=n(5697),qn=n.n(Wn);function $n(){return($n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Qn=e.createElement("circle",{r:17.895,cy:232.562,cx:62.937});const Yn=function(t){return e.createElement("svg",$n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 135.467 135.467",height:512,width:512},t),e.createElement("g",{transform:"translate(4.796 -151.347)"},e.createElement("path",{d:"M31.383 184.898v12.588H67.62v-12.588z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}),e.createElement("path",{d:"M8.96 162.51v113.142h107.955l-.038-6.178-.526-82.477L93.84 162.51zm12.28 12.28h67.21l15.654 17.026.453 71.555H21.239z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}),Qn))};function Xn(){return(Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Gn=function(t){return e.createElement("svg",Xn({xmlns:"http://www.w3.org/2000/svg",width:512,height:512,viewBox:"0 0 135.467 135.467"},t),e.createElement("g",{color:"#000",fontWeight:400,fontFamily:"sans-serif"},e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M39.607 61.805l-7.474 10.916 36.61 25.067 34.591-24.942-7.738-10.73L68.545 81.62z",overflow:"visible"}),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M61.12 18.508v71.196h13.228V18.508zm-38.886 96.791v13.23h90.46V115.3h-90.46z",overflow:"visible"})))};function Jn(){return(Jn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Zn=function(t){return e.createElement("svg",Jn({xmlns:"http://www.w3.org/2000/svg",width:512,height:512,viewBox:"0 0 135.467 135.467"},t),e.createElement("g",{color:"#000",fontWeight:400,fontFamily:"sans-serif"},e.createElement("path",{d:"M59.95 21.043l-12.192-8.348-27.994 40.886 27.855 38.633 11.984-8.643-21.782-30.21z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},overflow:"visible"}),e.createElement("path",{d:"M94.614 45.84H32.528v13.23h62.086zm21.089 64.756v-52.58h-13.229v52.58zm-21.089-1.053H79.499v13.228h15.115z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},overflow:"visible"}),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M115.703 58.016L94.613 45.84 88 57.296l21.088 12.176zm-21.089 64.755l21.089-12.175-6.615-11.457L88 111.315z",overflow:"visible"})))};function er(){return(er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const tr=function(t){return e.createElement("svg",er({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 135.467 135.467",height:512,width:512},t),e.createElement("g",{color:"#000",fontWeight:400,fontFamily:"sans-serif"},e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M75.517 21.043l12.191-8.348 27.995 40.886-27.855 38.633-11.984-8.643 21.782-30.21z",overflow:"visible"}),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M40.853 45.84h62.086v13.23H40.853zm-21.089 64.756v-52.58h13.229v52.58z",overflow:"visible"}),e.createElement("path",{d:"M19.764 58.016L40.853 45.84l6.614 11.456-21.089 12.176zm21.089 64.755l-21.089-12.175 6.614-11.457 21.09 12.176z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},overflow:"visible"}),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M55.968 109.543H40.853v13.228h15.115z",overflow:"visible"})))};function nr(e){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function or(e,t){return(or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ir(e,t){return!t||"object"!==nr(t)&&"function"!=typeof t?ar(e):t}function ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lr(e){return(lr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ur=e.createRef(),sr=Kn(),cr=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&or(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lr(o);if(i){var n=lr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ir(this,e)});function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=a.call(this)).state={visible:!1},e.onKeyDown=e.onKeyDown.bind(ar(e)),e.onPress=e.onPress.bind(ar(e)),e.onSearch=e.onSearch.bind(ar(e)),e}return n=l,(r=[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keypress",this.onPress)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keypress",this.onPress)}},{key:"onKeyDown",value:function(e){var t;null!==(t=ur.current)&&void 0!==t&&t.value&&"Backspace"===e.key&&this.onPress()}},{key:"onPress",value:function(){var e=document.body.querySelector("#dialogue").children.length>0,t=document.body.querySelector("#contextMenu").children.length>0;document.activeElement!==document.body||e||t||this.setState({visible:!0},(function(){return ur.current.focus()}))}},{key:"onSearch",value:function(){var e=this.props.mindmap,t=ur.current.value.toLowerCase();this.state.previous,this.setState({previous:t,visible:!!t});var n=e.state.familizedData,r=function(e){return null==e?void 0:e.toLowerCase().includes(t)};!function e(n,o){var i=!1;for(var a in n){var l=n[a];t?(l.invisible=!0,(r(a)||r(l.title))&&(i=!0,l.invisible=!1),!1===o&&(l.invisible=!1),e(l.children,l.invisible)&&(i=!0,l.invisible=!1)):(l.invisible=void 0,e(l.children))}return i}(n),e.setState({familizedData:n})}},{key:"render",value:function(){var t=this.props,n=t.mindmap,r=t.dirty,o=t.stack,i=this.state.visible;return e.createElement("div",{className:fr.container},e.createElement("div",{dirty:r.toString(),className:fr.button,title:"Save File (Ctrl+S)",onClick:n.saveFile},e.createElement(Yn,{className:fr.icon}),e.createElement("div",{className:fr.title},"Save")),e.createElement("div",{className:fr.button,title:"Load File (Ctrl+O)",onClick:n.loadFile},e.createElement(Gn,{className:fr.icon}),e.createElement("div",{className:fr.title},"Load")),e.createElement("div",{className:fr.button,title:"Undo (Ctrl+Z)",disabled:!o.undo,onClick:n.undo},e.createElement(Zn,{className:fr.icon}),e.createElement("div",{className:fr.title},"Undo")),e.createElement("div",{className:fr.button,title:"Redo (Ctrl+Y)",disabled:!o.redo,onClick:n.redo},e.createElement(tr,{className:fr.icon}),e.createElement("div",{className:fr.title},"Redo")),e.createElement("div",{visible:i.toString(),className:fr.search},e.createElement("input",{ref:ur,spellCheck:!1,autoComplete:"off",onInput:this.onSearch})))}}])&&rr(n.prototype,r),l}(e.Component);cr.propTypes={dirty:qn().bool.isRequired,stack:qn().object.isRequired,mindmap:qn().object.isRequired};var fr=(0,r.createStyle)({container:{zIndex:1,display:"flex",position:"absolute",flexWrap:"wrap",justifyContent:"center",backgroundColor:Hn(sr.whiteBackground,.85),backdropFilter:"blur(3px)",top:0,width:"calc(100vw - 20px)",fontFamily:"Noto Sans",fontWeight:700,padding:"0 10px",borderBottom:"1px solid",borderColor:sr.blackShadow},search:{display:"none",width:"100%",margin:"8px 0",'[visible="true"]':{display:"block"},"> input":{color:Hn(sr.blackText,.65),fontSize:"13px",fontFamily:"Noto Sans",fontWeight:700,textAlign:"center",width:"100%",height:"100%",border:0,outline:0,padding:0}},button:{opacity:.85,display:"flex",alignItems:"center",height:"40px",cursor:"pointer",color:sr.blackText,fontSize:"12px",padding:"0 10px",margin:"0 5px","[disabled]":{pointerEvents:"none",color:sr.accent," svg":{fill:sr.accent}},'[dirty="true"]':{fontStyle:"italic",":after":{content:'"!??"',margin:"0 0 0 -5px"}},":hover":{color:sr.whiteText,backgroundColor:sr.accent," svg":{fill:sr.whiteText}}," svg":{fill:sr.blackText}},title:{":not(:empty)":{margin:"0 5px"}},icon:{width:"20px",height:"20px"}});const dr=cr;function pr(e){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mr(e,t){return(mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vr(e,t){return!t||"object"!==pr(t)&&"function"!=typeof t?gr(e):t}function gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yr(e){return(yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var br=Kn(),xr=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=yr(o);if(i){var n=yr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return vr(this,e)});function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=a.call(this)).state={x:15,y:15},e.onScroll=e.onScroll.bind(gr(e)),e}return n=l,(r=[{key:"componentDidMount",value:function(){this.mindMapElem=document.body.querySelector("#main"),window.addEventListener("resize",this.onScroll),this.mindMapElem.addEventListener("scroll",this.onScroll)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onScroll),this.mindMapElem.removeEventListener("scroll",this.onScroll)}},{key:"onScroll",value:function(){var e=5200-window.innerWidth,t=3140-window.innerHeight,n=window.innerWidth/20,r=window.innerHeight/20,o=this.mindMapElem.scrollLeft/e,i=this.mindMapElem.scrollTop/t;this.setState({x:(260-n-2)*o+15,y:(157-r-2)*i+15})}},{key:"render",value:function(){return e.createElement("div",{style:{left:this.state.x,top:this.state.y},className:wr.container})}}])&&hr(n.prototype,r),l}(e.Component),wr=(0,r.createStyle)({container:{zIndex:1,position:"absolute",backgroundColor:br.transparent,width:"calc(100vw / 20)",height:"calc(100vh / 20)",border:"1px solid",borderColor:br.accent}});const kr=xr;function Sr(e){return(Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cr(e,t){return(Cr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _r(e,t){return!t||"object"!==Sr(t)&&"function"!=typeof t?Or(e):t}function Or(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pr(e){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Tr=Kn(),Mr=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Cr(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Pr(o);if(i){var n=Pr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(this,e)});function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=a.call(this)).state={x:0,y:0},e.down=!1,e.timestamp=0,e.onMouseUp=e.onMouseUp.bind(Or(e)),e.onMouseLeave=e.onMouseLeave.bind(Or(e)),e.onMouseDown=e.onMouseDown.bind(Or(e)),e.onMouseMove=e.onMouseMove.bind(Or(e)),e}return n=l,(r=[{key:"handleMovement",value:function(e,t){var n=this.props.mindmap,r=window.innerWidth/20,o=window.innerHeight/20,i=e.clientX-15,a=157-(window.innerHeight-e.clientY-15);i+=r/2,a+=o/2,i=Math.min(Math.max(i,0),260),a=Math.min(Math.max(a,0),157),i*=20,a*=20,i-=window.innerWidth,a-=window.innerHeight,n.scrollTo(i,a,t)}},{key:"onMouseDown",value:function(){this.down=!0}},{key:"onMouseUp",value:function(e){this.down&&this.handleMovement(e,!0),this.down=!1}},{key:"onMouseLeave",value:function(e){this.down&&this.onMouseUp(e)}},{key:"onMouseMove",value:function(e){this.down&&Date.now()-this.timestamp>25&&(this.handleMovement(e,!1),this.timestamp=Date.now())}},{key:"render",value:function(){var t;return e.createElement("div",{className:Dr.wrapper,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseMove:this.onMouseMove,onContextMenu:null===(t=this.props)||void 0===t?void 0:t.onContextMenu},e.createElement("div",{className:Dr.container},e.createElement(kr,{x:this.state.x,y:this.state.y}),this.props.children))}}])&&Er(n.prototype,r),l}(e.Component);Mr.propTypes={mindmap:qn().object.isRequired,onContextMenu:qn().func,children:qn().oneOfType([qn().node,qn().arrayOf(qn().node)])};var Dr=(0,r.createStyle)({wrapper:{zIndex:1,position:"absolute",bottom:0,width:"260px",height:"157px",padding:"15px"},container:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:Tr.whiteBackground,fontFamily:"Noto Sans",fontWeight:700,width:"100%",height:"100%",boxShadow:"".concat(Tr.blackShadow," 0 0 15px 5px")}});const Ar=Mr;var Fr=Kn(),Ir=function(e){e.preventDefault&&e.preventDefault(),e.leave&&e.leave(),e.callback&&e.callback(),t.unmountComponentAtNode(document.querySelector("#contextMenu"))},Nr=function(t){var n=t.x,r=t.y,o=t.actions;(0,e.useEffect)((function(){document.body.addEventListener("mouseleave",Ir)}),[]);var i=window.innerWidth,a=window.innerHeight,l={margin:10,width:185,height:30};return o.forEach((function(e){var t=0;if(e.actions){t=10,t+=10;var n=0;e.actions.forEach((function(e){e.hidden||(n+=1)})),t+=22*n,t+=20*n}else e.hidden||(t=22,t+=20);l.height=l.height+t})),n+l.width+l.margin>=i?n=i-(l.width+l.margin):n-l.margin<=0&&(n=l.margin),r+l.height+l.margin>=a?r=a-(l.height+l.margin):r-l.margin<=0&&(r=l.margin),e.createElement("div",{className:Lr.wrapper,onClick:Ir,onContextMenu:Ir},e.createElement("div",{style:{left:n,top:r},className:Lr.container},o.map((function(t,n){if(t.actions)return e.createElement("div",{key:n},e.createElement("div",{className:Lr.subTitle},t.title),e.createElement("div",{className:Lr.submenu},t.actions.map((function(t,n){if(t.hidden)return e.createElement("div",{key:n});var r=t.icon?e.createElement(t.icon,{className:Lr.icon}):e.createElement("div",null);return e.createElement("div",{key:n,className:Lr.action,onMouseEnter:t.enter,onMouseLeave:t.leave,onContextMenu:t.leave,onClick:function(){return Ir(t)}},e.createElement("div",{className:Lr.title},t.title),r)}))));if(t.hidden)return e.createElement("div",{key:n});var r=t.icon?e.createElement(t.icon,{className:Lr.icon}):e.createElement("div",null);return e.createElement("div",{key:n,className:Lr.action,onMouseEnter:t.enter,onMouseLeave:t.leave,onContextMenu:t.leave,onClick:function(){return Ir(t)}},e.createElement("div",{className:Lr.title},t.title),r)}))))};Nr.propTypes={x:qn().number.isRequired,y:qn().number.isRequired,actions:qn().arrayOf(qn().object).isRequired};var Lr=(0,r.createStyle)({wrapper:{zIndex:2,position:"absolute",overflow:"hidden",top:0,left:0,width:"100vw",height:"100vh"},container:{position:"relative",backgroundColor:Fr.whiteBackground,fontFamily:"Noto Sans",fontWeight:700,width:"185px",boxShadow:"".concat(Fr.blackShadow," 0px 0px 9px 3px"),padding:"15px 0"},subTitle:{textTransform:"uppercase",color:Fr.accent,backgroundColor:Fr.whiteBackground,height:"10px",fontSize:"8px",padding:"5px 10px"},submenu:{display:"flex",flexWrap:"wrap","> div":{flexBasis:"100%"}},action:{display:"flex",alignItems:"center",cursor:"pointer",color:Fr.blackText,backgroundColor:Fr.whiteBackground,height:"22px",fontSize:"12px",padding:"10px",":hover":{color:Fr.whiteText,backgroundColor:Fr.accent," svg":{fill:Fr.whiteText}}," svg":{fill:Fr.blackText}},title:{flexGrow:1},icon:{width:"20px",height:"20px",margin:"0 5px"}});const zr=Nr;function Rr(){return(Rr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const jr=function(t){return e.createElement("svg",Rr({xmlns:"http://www.w3.org/2000/svg",width:512,height:512,viewBox:"0 0 135.467 135.467"},t),e.createElement("g",{color:"#000",fontWeight:400,fontFamily:"sans-serif"},e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M88.74 14.99L50.947 63.945l-2.3 29.23 5.372-2.208 19.179-7.884 40.149-49.242zm1.306 9.994l13.117 10.049-34.355 42.135-12.133 4.987 1.222-15.528z",overflow:"visible"}),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M82.515 30.988l-4.391 5.628 16.142 12.598 4.392-5.63zM59.84 60.617l-4.449 5.584 18.602 14.817 4.448-5.584zm-42.235 49.811v12.821H70.88v-12.821z",overflow:"visible"})))};function Vr(){return(Vr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Br=e.createElement("circle",{cx:93.785,cy:95.329,r:5.735}),Ur=e.createElement("circle",{r:6.782,cy:79.683,cx:80.694}),Hr=e.createElement("circle",{cx:68.439,cy:97.08,r:4.591});const Kr=function(t){return e.createElement("svg",Vr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 135.467 135.467",height:512,width:512},t),e.createElement("g",{transform:"translate(-13.787)"},e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M99.986 19.199l-36.609.244.697 5.197s3.129 24.945 2.016 35.72c-.143 1.384-1.367 4.481-3.395 7.78-2.027 3.298-4.746 6.913-7.453 10.213-5.414 6.6-10.719 11.904-10.719 11.904l-.402.402-.293.489s-3.282 4.95-3.426 11.187c-.072 3.12.913 6.983 3.938 9.721 3.025 2.738 7.425 4.053 13.223 4.133 20.642.284 54.221-.289 54.265-.29 0 0 5.464.278 8.871-4.413 1.704-2.346 2.367-5.757 1.668-9.409-.698-3.65-2.545-7.76-5.949-12.937-6.547-9.959-11.182-14.96-14.2-18.506-3.016-3.546-4.296-5.204-5.759-10.537-1.262-4.6-.938-13.837.006-21.465s2.29-13.79 2.29-13.79zm-11.308 9.314c-.444 2.519-.946 5.471-1.381 8.982-1.001 8.088-1.796 17.583.252 25.047 1.77 6.453 4.377 10.252 7.633 14.078 3.255 3.826 7.278 8.11 13.515 17.596 2.989 4.546 4.24 7.749 4.594 9.596.353 1.847.022 2.12-.068 2.244-.18.248-1.5.605-1.5.605h-.026s-33.663.57-54.008.29c-4.452-.062-6.406-1.073-7.148-1.745-.742-.671-.934-1.301-.902-2.658.058-2.531 1.733-5.866 1.972-6.336.785-.79 5.48-5.544 10.774-11.998 2.875-3.505 5.81-7.38 8.181-11.236 2.371-3.857 4.291-7.58 4.713-11.668 1.147-11.099-.647-26.298-1.465-32.697z",color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}),Br,Ur,Hr))};function Wr(){return(Wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var qr=e.createElement("circle",{cx:93.785,cy:95.329,r:5.735}),$r=e.createElement("circle",{r:6.782,cy:79.683,cx:80.694}),Qr=e.createElement("circle",{cx:68.439,cy:97.08,r:4.591});const Yr=function(t){return e.createElement("svg",Wr({xmlns:"http://www.w3.org/2000/svg",width:512,height:512,viewBox:"0 0 135.467 135.467"},t),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M12.944 52.155l7.918 7.919 29.79-29.79-7.919-7.918z",color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}),e.createElement("path",{d:"M42.94 59.953l7.83-8.005-30.114-29.461-7.831 8.004zm57.046-40.754l-36.609.244.697 5.197s3.129 24.945 2.016 35.72c-.143 1.384-1.367 4.481-3.395 7.78-2.027 3.298-4.746 6.913-7.453 10.213-5.414 6.6-10.719 11.904-10.719 11.904l-.402.402-.293.489s-3.282 4.95-3.426 11.187c-.072 3.12.913 6.983 3.938 9.721 3.025 2.738 7.425 4.053 13.223 4.133 20.642.284 54.221-.289 54.265-.29 0 0 5.464.278 8.871-4.413 1.704-2.346 2.367-5.757 1.668-9.409-.698-3.65-2.545-7.76-5.949-12.937-6.547-9.959-11.182-14.96-14.2-18.506-3.016-3.546-4.296-5.204-5.759-10.537-1.262-4.6-.938-13.837.006-21.465s2.29-13.79 2.29-13.79zm-11.308 9.314c-.444 2.519-.946 5.471-1.381 8.982-1.001 8.088-1.796 17.583.252 25.047 1.77 6.453 4.377 10.252 7.633 14.078 3.255 3.826 7.278 8.11 13.515 17.596 2.989 4.546 4.24 7.749 4.594 9.596.353 1.847.022 2.12-.068 2.244-.18.248-1.5.605-1.5.605h-.026s-33.663.57-54.008.29c-4.452-.062-6.406-1.073-7.148-1.745-.742-.671-.934-1.301-.902-2.658.058-2.531 1.733-5.866 1.972-6.336.785-.79 5.48-5.544 10.774-11.998 2.875-3.505 5.81-7.38 8.181-11.236 2.371-3.857 4.291-7.58 4.713-11.668 1.147-11.099-.647-26.298-1.465-32.697z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}),qr,$r,Qr)};function Xr(){return(Xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Gr=function(t){return e.createElement("svg",Xr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 135.467 135.467",height:512,width:512},t),e.createElement("g",{color:"#000",fontWeight:400,fontFamily:"sans-serif"},e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M81.827 93.563v12.15h45.71v-12.15z",overflow:"visible"}),e.createElement("path",{d:"M98.857 122.558l12.15-.134-.501-45.706-12.15.133zM4.492 44.812v10.473h47.66V44.812z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},overflow:"visible"}),e.createElement("path",{d:"M50.332 22.288v32.868h11.191V22.288zm.074 46.286v11.579H81.56V68.574z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},overflow:"visible"}),e.createElement("path",{d:"M50.332 44.945v32.868h11.191V44.945zm.156-25.555v10.354h61.191V19.39z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},overflow:"visible"})))};function Jr(){return(Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Zr=function(t){return e.createElement("svg",Jr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 135.467 135.467",height:512,width:512},t),e.createElement("g",{color:"#000",fontWeight:400,fontFamily:"sans-serif"},e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M45.289 61.767V73.7h44.889V61.767z",overflow:"visible"}),e.createElement("path",{d:"M62.014 90.242l11.931-.13-.492-44.887-11.931.13zM4.748 62.496V72.97h34.688V62.496zm90.978.014v10.471h34.688V62.51z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},overflow:"visible"})))};function eo(){return(eo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const to=function(t){return e.createElement("svg",eo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 135.467 135.467",height:512,width:512},t),e.createElement("path",{d:"M37.58 84.848v10.473h64.063V84.848zM21.856 48.995l7.919 7.919 29.79-29.79-7.92-7.918z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M51.852 56.793l7.83-8.005L29.57 19.327l-7.832 8.004z",color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}))};function no(){return(no=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const ro=function(t){return e.createElement("svg",no({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 135.467 135.467",height:512,width:512},t),e.createElement("path",{d:"M21.856 48.995l7.919 7.919 29.79-29.79-7.92-7.918z",style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M51.852 56.793l7.83-8.005L29.57 19.327l-7.832 8.004zm-28.52 28.055v9.792h41.093v-9.792z",color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M62.723 63.789v30.73h10.464V63.79zm.07 41.646v10.826h50.7v-10.826z",color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M62.723 84.972v30.731h10.464v-30.73zm.147-21.318v9.683h50.86v-9.683z",color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}))};function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){ao(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lo=Kn(),uo=0,so=function(e,t,n,r){if("test"!==r||"number"==typeof n){e.stopPropagation();var o=Date.now();o-uo<=250&&("test"===r?t.editTest(n):t.editStep(n.occurrences)),uo=o}},co=function(n){var r,o,i=n.mindmap,a=n.mode,l=n.content,u=n.highlight,s=n.item;if("mini"===a)return e.createElement("div",{className:fo.miniItemWrapper,highlight:u},e.createElement("div",{className:fo.miniContainer},e.createElement("div",{className:fo.miniContent},l)));var c=null!==(r=s.invisible)&&void 0!==r&&r,f=s.titleTestIndex,d=s.title;return(""===s.title||!s.title&&"number"==typeof s.titleTestIndex)&&(o="true",d="Untitled Test"),e.createElement("div",{className:fo.itemWrapper},e.createElement("div",{title:d,untitled:o,highlight:u,invisible:c.toString(),className:fo.title,onClick:function(e){return so(e,i,f,"test")},onContextMenu:function(n){return function(n,r,o,i){var a;if(void 0!==o.title){n.stopPropagation(),n.preventDefault();var l=o.occurrences;t.render(e.createElement(zr,{x:n.nativeEvent.pageX,y:n.nativeEvent.pageY,actions:[{title:"Test",actions:[{title:"Edit",icon:jr,callback:function(){return r.editTest(i)}},{title:"Remove",icon:Yr,hidden:!Object.keys(null!==(a=o.children)&&void 0!==a?a:{}).length||void 0===o.title,enter:function(){o.hover="remove-test",r.forceUpdate()},leave:function(){o.hover=void 0,r.forceUpdate()},callback:function(){return r.unmarkTest(l)}}]}]}),document.querySelector("#contextMenu"))}}(n,i,s,f)}},d),e.createElement("div",{title:l,highlight:u,invisible:c.toString(),className:fo.container,onClick:function(e){return so(e,i,s,"item")},onContextMenu:function(n){return function(n,r,o){var i,a,l;n.stopPropagation(),n.preventDefault();var u=o.occurrences;t.render(e.createElement(zr,{x:n.nativeEvent.pageX,y:n.nativeEvent.pageY,actions:[{title:"Step",actions:[{title:"Edit",icon:jr,callback:function(){return r.editStep(u)}}]},{title:"Mark As Test",icon:Kr,hidden:!Object.keys(null!==(i=o.children)&&void 0!==i?i:{}).length||void 0!==o.title,enter:function(){o.hover="new-test",r.forceUpdate()},leave:function(){o.hover=void 0,r.forceUpdate()},callback:function(){return r.markTest(u)}},{title:"Add",actions:[{title:"New",icon:Gr,enter:function(){o.hover="parent-new-step",o.children=io(io({},o.children),{},{"!":{hover:"new-step"}}),r.forceUpdate()},leave:function(){delete o.children["!"],r.forceUpdate()},callback:function(){return r.addStepAfter(u,Object.keys(o.children).length,"new")}},{title:"Insert",icon:Zr,hidden:!Object.keys(null!==(a=o.children)&&void 0!==a?a:{}).length,enter:function(){var e={hover:"insert-step",children:o.children};o.children={"!":e},r.forceUpdate()},leave:function(){o.children=o.children["!"].children,r.forceUpdate()},callback:function(){return r.addStepAfter(u,void 0,"insert")}}]},{title:"Remove",actions:[{title:"Step",icon:to,enter:function(){o.hover="remove-step",r.forceUpdate()},leave:function(){o.hover=void 0,r.forceUpdate()},callback:function(){return r.deleteStep(u,"this")}},{title:"Branch",icon:ro,hidden:!Object.keys(null!==(l=o.children)&&void 0!==l?l:{}).length,enter:function(){o.hover="remove-branch",r.forceUpdate()},leave:function(){o.hover=void 0,r.forceUpdate()},callback:function(){return r.deleteStep(u,"branch")}}]}]}),document.querySelector("#contextMenu"))}(n,i,s)}},e.createElement("div",{className:fo.content},l)))};co.propTypes={mindmap:qn().object.isRequired,mode:qn().string.isRequired,highlight:qn().string,item:qn().object.isRequired,content:qn().string.isRequired};var fo=(0,r.createStyle)({itemWrapper:{display:"flex",position:"relative",alignItems:"center",color:lo.blackText,backgroundColor:lo.whiteBackground,minHeight:"26px",maxHeight:"50px",width:"110px",height:"fit-content",margin:"auto",borderTop:"10px solid ".concat(lo.whiteBackground),borderBottom:"10px solid ".concat(lo.whiteBackground)},miniItemWrapper:{extend:"itemWrapper",backgroundColor:lo.accent,minHeight:"calc(26px / 20)",maxHeight:"calc(50px / 20)",width:"calc(110px / 20)",borderTop:"calc(10px / 20) solid ".concat(lo.whiteBackground),borderBottom:"calc(10px / 20) solid ".concat(lo.whiteBackground),'[highlight="remove"]':{backgroundColor:lo.red},'[highlight="add"]':{backgroundColor:lo.blue}},container:{width:"100%",height:"100%",borderRadius:"3px",border:"".concat(lo.accent," 1px solid"),'[invisible="true"]':{opacity:.15},'[highlight="remove"]':{color:lo.whiteText,backgroundColor:lo.red,border:"".concat(lo.red," 1px solid")},'[highlight="add"]':{color:lo.blue,backgroundColor:lo.blue,border:"".concat(lo.blue," 1px solid")}},miniContainer:{extend:"container",borderRadius:0,border:0},content:{maxHeight:"45px",overflow:"hidden",fontSize:"10px",margin:"5px 10px"},miniContent:{extend:"content",color:lo.transparent,maxHeight:"unset",fontSize:"1px",margin:"1px"},title:{position:"absolute",color:lo.accent,top:"-10px",left:"calc(50% - 73px)",width:"140px",fontSize:"10px",overflow:"hidden",textAlign:"center",textOverflow:"ellipsis",borderRadius:"5px",whiteSpace:"nowrap",padding:"0 3px",margin:"-4px 0",'[untitled="true"]':{fontStyle:"italic"},'[invisible="true"]':{opacity:.15},'[highlight="remove"]':{color:lo.transparent},'[highlight="new-test"]':{color:lo.whiteText,backgroundColor:lo.blue,":before":{content:'"+"'}},'[highlight="remove-test"]':{color:lo.whiteText,backgroundColor:lo.red}}});const po=co;var ho=Kn(),mo=function(t){var n,r=t.mode,o=t.invisible,i=t.highlight,a=t.group,l={container:"full"===r?vo.container:vo.miniContainer,title:"full"===r?vo.title:vo.miniTitle};return e.createElement("div",{className:l.container,invisible:null!==(n=null==o?void 0:o.toString())&&void 0!==n?n:"false",highlight:i,group:a.toString()})};mo.propTypes={mode:qn().string.isRequired,invisible:qn().bool,highlight:qn().string,group:qn().bool};var vo=(0,r.createStyle)({container:{display:"flex",alignItems:"flex-end",color:ho.accent,backgroundColor:ho.accent,width:"80px",height:"1px",padding:"0 20px",margin:"auto",'[group="true"]':{width:"5px",padding:"0 5px"},'[invisible="true"]':{opacity:.15},'[highlight="remove"]':{color:ho.red,backgroundColor:ho.red},'[highlight="add"]':{color:ho.blue,backgroundColor:ho.blue}},miniContainer:{extend:"container",width:"calc(80px / 20)",height:"1px",padding:"0 calc(20px / 20)",'[group="true"]':{width:"1px",padding:"0"}}});const go=mo;var yo=Kn(),bo=function(t){var n,r=t.reverse,o=t.half,i=t.invisible,a=t.highlight,l=xo.container;return o&&r?l=xo.reverse:o&&(l=xo.half),e.createElement("div",{className:l,invisible:null!==(n=null==i?void 0:i.toString())&&void 0!==n?n:"false",highlight:a})};bo.propTypes={reverse:qn().bool.isRequired,half:qn().bool.isRequired,invisible:qn().bool,highlight:qn().string};var xo=(0,r.createStyle)({container:{position:"relative",backgroundColor:yo.accent,width:"1px",'[invisible="true"]':{opacity:.15},'[highlight="remove"]':{backgroundColor:yo.red},'[highlight="add"]':{backgroundColor:yo.blue}},half:{extend:"container",height:"50%"},reverse:{extend:"container",top:"50%",height:"50%"}});const wo=bo;var ko=n(8456),So=n.n(ko);function Eo(){return(Eo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Co=function(t){return e.createElement("svg",Eo({xmlns:"http://www.w3.org/2000/svg",width:512,height:512,viewBox:"0 0 135.467 135.467"},t),e.createElement("path",{style:{lineHeight:"normal",fontVariantLigatures:"normal",fontVariantPosition:"normal",fontVariantCaps:"normal",fontVariantNumeric:"normal",fontVariantAlternates:"normal",fontVariantEastAsian:"normal",fontFeatureSettings:"normal",fontVariationSettings:"normal",textIndent:0,textAlign:"start",textDecorationLine:"none",textDecorationStyle:"solid",textDecorationColor:"#000",textTransform:"none",textOrientation:"mixed",whiteSpace:"normal",shapePadding:0,shapeMargin:0,inlineSize:0,isolation:"auto",mixBlendMode:"normal",solidColor:"#000",solidOpacity:1},d:"M29.18 43.072L18.934 58.035l50.182 34.36 47.417-34.189-10.607-14.708-37.08 26.735z",color:"#000",fontWeight:400,fontFamily:"sans-serif",overflow:"visible"}))};function _o(e){return(_o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Po(e,t){return(Po=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function To(e,t){return!t||"object"!==_o(t)&&"function"!=typeof t?Mo(e):t}function Mo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Do(e){return(Do=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ao=Kn(),Fo=e.createRef(),Io=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Po(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Do(o);if(i){var n=Do(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return To(this,e)});function l(e){var t,n=e.options,r=e.defaultIndex;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this)).state={shown:!1,index:null!=r?r:0,suggestions:[],other:[],value:n[null!=r?r:0]},t.toggle=t.toggle.bind(Mo(t)),t.onKeyDown=t.onKeyDown.bind(Mo(t)),t.onSearch=t.onSearch.bind(Mo(t)),t}return n=l,(r=[{key:"componentDidMount",value:function(){var e=this;window.addEventListener("keydown",this.onKeyDown);var t=this.getItems([]),n=t.suggestions,r=t.other;this.setState({suggestions:n,other:r},(function(){e.props.autoFocus&&e.toggle(!0)}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.onKeyDown)}},{key:"toggle",value:function(e){var t=this,n=this.state,r=n.shown,o=n.value,i=this.getItems([]),a=i.suggestions,l=i.other;this.setState({shown:"boolean"==typeof e?e:!r,index:a.concat(l).indexOf(o),suggestions:a,other:l},(function(){var e,n;Fo.current&&(Fo.current.value="",document.body.querySelector(".".concat(No.option,'[highlighted="true"]')).scrollIntoView({block:"nearest"}),t.state.shown?null===(e=Fo.current)||void 0===e||e.focus():(Fo.current.value=t.state.value,null===(n=Fo.current)||void 0===n||n.blur()))}))}},{key:"getItems",value:function(e){var t=this.props.options,n=this.props.suggestions;if(e){var r=t.filter((function(t){return t.includes(e)}));return{suggestions:n.filter((function(e){return r.includes(e)})),other:r.filter((function(e){return!n.includes(e)})).sort()}}return{suggestions:n,other:t.filter((function(e){return!n.includes(e)})).sort()}}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.shown,r=t.index,o=t.other,i=t.suggestions;if(n)if(e.stopImmediatePropagation(),"Enter"===e.key){var a=i.concat(o);r<a.length&&this.onChange(a[r])}else"Escape"===e.key?this.toggle():"ArrowUp"===e.key?this.press(r-1):"ArrowDown"===e.key&&this.press(r+1)}},{key:"press",value:function(e){var t=this.state,n=t.other,r=t.suggestions.length+n.length;r<=0||(e>=r?e=0:e<=-1&&(e=r-1),this.setState({index:e},(function(){document.body.querySelector(".".concat(No.option,'[highlighted="true"]')).scrollIntoView({block:"nearest"})})))}},{key:"hover",value:function(e){this.setState({index:e})}},{key:"onSearch",value:function(){var e,t=null===(e=Fo.current)||void 0===e?void 0:e.value,n=this.getItems(t),r=n.suggestions,o=n.other;this.setState({index:0,suggestions:r,other:o})}},{key:"onChange",value:function(e){var t=this,n=this.props.onChange;this.setState({value:e},(function(){return t.toggle(!1)})),null==n||n.call(void 0,e)}},{key:"render",value:function(){var t=this,n=this.state,r=n.shown,o=n.value,i=n.other,a=n.suggestions,l=n.index;return e.createElement("div",{shown:r.toString(),className:No.container,onClick:this.toggle},e.createElement("div",{className:No.search},e.createElement("input",{ref:Fo,defaultValue:o,spellCheck:!1,autoComplete:"off",onInput:this.onSearch})),e.createElement(Co,{className:No.extend}),e.createElement("div",{shown:r.toString(),className:No.block,onClick:this.toggle}),e.createElement("div",{shown:r.toString(),className:No.menu},a.length&&i.length?e.createElement("div",{className:No.title},"Suggestions"):e.createElement("div",null),a.length||i.length?e.createElement("div",null):e.createElement("div",{className:No.title},"No Results"),e.createElement("div",{className:No.options},a.map((function(n,r){var o=l===r;return e.createElement("div",{key:r,highlighted:o.toString(),className:No.option,onMouseOver:function(){return t.hover(r)},onClick:function(){return t.onChange(n)}},n)}))),a.length&&i.length?e.createElement("div",{className:No.title},"Other"):e.createElement("div",null),e.createElement("div",{className:No.options},i.map((function(n,r){var o=r+a.length,i=l===o;return e.createElement("div",{key:r,highlighted:i.toString(),className:No.option,onMouseOver:function(){return t.hover(o)},onClick:function(){return t.onChange(n)}},n)})))))}}])&&Oo(n.prototype,r),l}(e.Component);Io.propTypes={autoFocus:qn().bool,defaultIndex:qn().number,options:qn().arrayOf(qn().string).isRequired,suggestions:qn().arrayOf(qn().string).isRequired,onChange:qn().func};var No=(0,r.createStyle)({container:{display:"flex",cursor:"pointer",position:"relative",color:Ao.blackText,backgroundColor:Ao.whiteBackground,width:"100%",height:"40px",border:0,borderBottom:"".concat(Ao.blackText," 1px solid"),transition:"border-bottom 0.1s"," svg":{fill:Ao.blackText},'[shown="true"]':{borderBottom:"".concat(Ao.blue," 3px solid")}},search:{flexGrow:1,margin:"auto 10px","> input":{color:Ao.blackText,fontSize:"14px",fontFamily:"Noto Sans",fontWeight:700,textTransform:"capitalize",width:"100%",height:"100%",border:0,outline:0,padding:0}},extend:{width:"20px",height:"20px",margin:"auto 10px"},block:{display:"none",position:"fixed",justifyContent:"center",alignItems:"center",backgroundColor:Ao.transparent,top:0,left:0,width:"100vw",height:"100vh",'[shown="true"]':{display:"block"}},menu:{display:"none",position:"absolute",overflow:"auto",backgroundColor:Ao.whiteBackground,top:"50px",left:"-5px",minHeight:"25px",maxHeight:"calc((50px * 4) + 50px)",width:"calc(100% + 10px)",height:"auto",border:"".concat(Ao.accent," 1px solid"),'[shown="true"]':{display:"block"},"::-webkit-scrollbar":{width:"5px",background:Ao.whiteBackground},"::-webkit-scrollbar-thumb":{background:Ao.accent}},title:{display:"flex",alignItems:"center",color:Ao.accent,height:"25px",fontSize:"9px",textTransform:"uppercase",padding:"0 15px"},options:{display:"grid",gridAutoRows:"50px"},option:{display:"flex",alignItems:"center",color:Ao.blackText,backgroundColor:Ao.whiteBackground,textTransform:"capitalize",padding:"0 15px",'[highlighted="true"]':{color:Ao.whiteText,backgroundColor:Ao.accent}}});const Lo=Io;var zo=Kn(),Ro=function(t){var n=t.inputRef,r=t.defaultValue,o=t.valid,i=t.autoFocus,a=t.onChange;return void 0===o&&(o=!0),e.createElement("div",{className:jo.container},e.createElement("input",{ref:n,valid:o.toString(),spellCheck:!1,autoComplete:"off",autoFocus:i,className:jo.input,defaultValue:r,type:"text",onInput:function(e){a&&a.call(void 0,e.target.value)}}))};Ro.propTypes={inputRef:qn().any,valid:qn().bool,defaultValue:qn().any,autoFocus:qn().bool,onChange:qn().func};var jo=(0,r.createStyle)({container:{display:"flex",backgroundColor:zo.whiteBackground,width:"100%",height:"40px"},input:{flexGrow:1,fontSize:"14px",fontFamily:"Noto Sans",fontWeight:700,padding:"10px",border:0,borderBottom:"".concat(zo.blackText," 1px solid"),transition:"border-bottom 0.1s",":focus":{outline:0},'[valid="false"]':{borderBottom:"".concat(zo.red," 3px solid")},'[valid="true"]:focus':{borderBottom:"".concat(zo.blue," 3px solid")}}});const Vo=Ro;var Bo=Kn(),Uo=function(t){var n=t.value,r=t.trueText,o=t.falseText,i=t.onToggle;return n=n||!1,r=r||"yes",o=o||"no",e.createElement("div",{className:Ho.wrapper},e.createElement("div",{className:Ho.container,onClick:function(){return null==i?void 0:i.call(void 0,!n)}},n?e.createElement("div",{className:Ho.state},r):e.createElement("div",{className:Ho.state},o)))};Uo.propTypes={value:qn().bool,trueText:qn().string,falseText:qn().string,onToggle:qn().func};var Ho=(0,r.createStyle)({wrapper:{display:"flex",color:Bo.blackText,backgroundColor:Bo.whiteBackground,height:"40px"},container:{flexGrow:1,display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"center",width:"40px",border:0,borderBottom:"".concat(Bo.blackText," 1px solid"),margin:"10px 0 0 10px"},state:{color:Bo.blackText.replace,fontSize:"14px",fontWeight:700,textTransform:"uppercase",padding:"0 10px"}});const Ko=Uo;function Wo(e){return(Wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qo(e,t){return(Qo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yo(e,t){return!t||"object"!==Wo(t)&&"function"!=typeof t?Xo(e):t}function Xo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Go(e){return(Go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jo=Kn(),Zo=function(){return t.unmountComponentAtNode(document.querySelector("#dialogue"))},ei=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qo(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Go(o);if(i){var n=Go(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Yo(this,e)});function l(t){var n,r,o,i,u,s=t.step,c=t.referrer;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(u=a.call(this)).state={masterKey:0,action:null!==(n=null!==(r=null==s?void 0:s.action)&&void 0!==r?r:u.getSuggestions(c)[0])&&void 0!==n?n:Un.Nw[0],value:null!==(o=null==s?void 0:s.value)&&void 0!==o?o:"",pure:null!==(i=null==s?void 0:s.value)&&void 0!==i?i:"",autoCompletePossibilities:[],autoCompleteSteps:[],toggles:{}},u.inputRef=(0,e.createRef)(),u.onKeyDown=u.onKeyDown.bind(Xo(u)),u.done=u.done.bind(Xo(u)),u}return n=l,(r=[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.onKeyDown);var e=this.props.step;if(e){var t=this.getAutoComplete(e),n=t.autoCompletePossibilities,r=t.autoCompleteSteps;this.setState({autoCompletePossibilities:n,autoCompleteSteps:r})}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.onKeyDown)}},{key:"onKeyDown",value:function(e){"Escape"===e.key&&Zo(),"ArrowRight"===e.key&&this.doAutoComplete(0),"Enter"===e.key&&this.isValid()&&this.done()}},{key:"getSuggestions",value:function(e){return e?"wait"===e.action&&"number"==typeof e.value?["select"]:"wait"===e.action||"select"===e.action?["click","type","drag"]:["wait","select"]:["wait","select","goto"]}},{key:"getAutoComplete",value:function(e){var t=e.action,n=e.value;if("click"===t){var r=["left","middle","right"].filter((function(e){return e.startsWith(n)&&e!==n}));return{autoCompletePossibilities:r,autoCompleteSteps:r}}if("goto"===t){var o=["back","forward"].filter((function(e){return e.startsWith(n)&&e!==n}));return{autoCompletePossibilities:o,autoCompleteSteps:o}}if("media"===t){var i=["prefers-color-scheme: dark","prefers-color-scheme: light"].filter((function(e){return e.startsWith(n)&&e!==n}));return{autoCompletePossibilities:i,autoCompleteSteps:i.map((function(e){return e.split(" ")}))}}return{autoCompletePossibilities:[],autoCompleteSteps:[]}}},{key:"doAutoComplete",value:function(e,t){var n=this.inputRef.current;if(n&&this.state.autoCompleteSteps&&this.state.autoCompleteSteps[e]){var r,o,i,a=this.state.autoCompleteSteps[e],l=n.value;if(t)r=null!==(o=null===(i=a.join)||void 0===i?void 0:i.call(a," "))&&void 0!==o?o:a;else for(var u=0;u<a.length;u++){var s,c,f,d=a[u];if(!l.startsWith(d)){r=null!==(s=null==a||null===(c=(f=a.slice(0,u+1)).join)||void 0===c?void 0:c.call(f," "))&&void 0!==s?s:a;break}}var p=new Event("input",{bubbles:!0,cancelable:!0});n.value=r,n.dispatchEvent(p)}}},{key:"done",value:function(){var e,t,n=this.state.toggles,r=this.state.value,o=this.state.action;if("viewport"===o){var i=r;i=n.touch?i.includes("t")?i:i+"t":i.replace(/t/g,""),r=i=n.full?i.includes("f")?i:i+"f":i.replace(/f/g,"")}"drag"!==o&&"swipe"!==o||(r=r.split(",").map((function(e){return e.trim()}))),null!==(e=r)&&void 0!==e&&e.trim&&(r=r.trim()),null===(t=this.props.done)||void 0===t||t.call(void 0,o,r),Zo()}},{key:"isValid",value:function(){return!document.querySelector(".".concat(ti.button,'[invalid="true"]'))}},{key:"parseNumber",value:function(e){var t=parseInt(e);return!isNaN(t)&&t.toString().length===e.length&&t>-1?t:e}},{key:"filterNumber",value:function(e){var t=parseInt(e);return isNaN(t)?void 0:e.trim().replace(t.toString(),"")}},{key:"testNumber",value:function(e){var t=parseInt(e);return!isNaN(t)&&t.toString().length===e.length&&t>-1}},{key:"testSelector",value:function(e){try{document.body.querySelector(e)}catch(e){return!1}return!0}},{key:"render",value:function(){var t,n=this,r=this.props,o=r.type,i=r.title,a=this.state.action,l=this.state.value,u="new-step"===o?this.getSuggestions(this.props.referrer):[];return e.createElement("div",{className:ti.wrapper},o.endsWith("step")?function(){var t,r,i="new-step"===o,s=n.state.toggles;"viewport"===a&&(void 0===s.touch&&l.includes("t")&&(s.touch=!0),void 0===s.full&&l.includes("f")&&(s.full=!0),l=l.replace(/t/g,"").replace(/f/g,""));var c={};if("wait"===a){var f="number"==typeof l;c={label:f?"Duration":"Selector",valid:!!f||n.testSelector(l),hint:"Wait for an element to appear, or for a duration of time.\n\nDuration takes time in seconds, while elements take a CSS selector."}}else if("viewport"===a){var d,p=null!==(d=n.state.pure)&&void 0!==d?d:l,h=p.split("x"),m=!1;if(0===p.length)m=!0;else if(2===h.length){var v=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(h,2),g=v[0],y=v[1];(n.testNumber(g)&&n.testNumber(y)||n.testNumber(g)&&!y||n.testNumber(y)&&!g)&&(m=!0)}c={valid:m,label:"Dimensions",toggles:[{label:"Touch",value:!1},{label:"Full",value:!1}],hint:"Change the viewport of the page.\n\nDimensions take width(x)height.\n\n**Touch** controls the availability of touch events inside the viewport (**reloads the page each time it changes**).\n\n**Full** controls whether or not to take a full-page screenshot at the end of the test.\n\n#### Examples\n\n- **1280x720** - Width 1280, Height 720\n- **800x** - Width 800\n- **x600** - Height 600"}}else if("goto"===a)c={valid:l.length>0,label:"URL",hint:"Navigate to a different URL. \n\nThis should NOT be used to navigate, users mostly navigate trough web apps with buttons and gestures, and those should be tested instead.\n\nThis should be used to give your app some parameters to enable mocks or skip some steps if you already tested the navigation buttons.\n\n#### Examples\n\n- **/about** - Goto a different page on the default URL.\n\n- **https://google.com** - Goto a different site entirely.\n\n- **back** - Go back in history.\n\n- **forward** - Go forward in history.\n"};else if("media"===a){var b,x,w,k=(null!==(b=n.state.pure)&&void 0!==b?b:k).split(":");c={valid:2===k.length&&(null===(x=k[0])||void 0===x?void 0:x.trim().length)>0&&(null===(w=k[1])||void 0===w?void 0:w.trim().length)>0,label:"Feature",hint:'Emulate a media feature.\n\nFeature takes a CSS media feature name(:)value.\n\n> "prefers-reduced-motion" is no longer supported.\n\n#### Examples\n\n- prefers-color-scheme: dark\n- prefers-color-scheme: light'}}else if("select"===a)c={label:"Selector",valid:n.testSelector(l),hint:"Select an element using a CSS selector."};else if("hover"===a)c={valid:!0,hint:"Hover over an element.\n\nAn element needs to be previously selected with the **Select** action."};else if("click"===a){var S,E=null!==(S=n.state.pure)&&void 0!==S?S:E;c={valid:"left"===E||"middle"===E||"right"===E,label:"Type",hint:"Click on an element.\n\nAn element needs to be previously selected with the **Select** action, (clicks on all of the elements that match the selector).\n\n#### Examples\n\n- left\n\n- right"}}else if("drag"===a){var C,_=Array.isArray(l)?l:(null!==(C=n.state.pure)&&void 0!==C?C:l).split(","),O=!0;if(2===_.length)for(var P=0;P<_.length;P++){var T=n.filterNumber(_[P]);""!==T&&"f"!==T&&"v"!==T&&(O=!1)}else O=!1;c={valid:O,label:"Coordinates",hint:"Drag an element to a specified location.\n\nAn element needs to be previously selected with the **Select** action.\n\n#### Examples\n\n- **20, 10** - drags the element 20px to the right and 10px down (from the top-left side of the page).\n\n- **10f, 0** - drags the element 10px to the right (from its current location).\n\n- **50v, 50v** - drags the element to the center of the viewport.\n\n#### Units\n\n- **f** (relative to the element current location).\n\n- **v** (relative to the viewport's size)."}}else if("swipe"===a){var M,D=Array.isArray(l)?l:(null!==(M=n.state.pure)&&void 0!==M?M:l).split(","),A=!0;if(4===D.length)for(var F=0;F<D.length;F++){var I=n.filterNumber(D[F]);""!==I&&"v"!==I&&(A=!1)}else A=!1;c={valid:A,label:"Coordinates",hint:"Perform a swipe gesture.\n\nIt also drags along with it any element that happens to be at the coordinates where the swipe started.\n\n#### Examples\n\n- **0, 0, 0, 150** - swipe 150px down.\n\n- **0, 0, 0, -150** - swipe 150px up.\n\n- **0, 0, 200, 200** - swipe 200px to the lower right.\n\n- **0, 0, 50v, 0** - swipe from the left side of the viewport to its center.\n\n#### Units\n\n- **v** (relative to the viewport's size)."}}else if("keyboard"===a){var N,L=!0,z=(null!==(N=n.state.pure)&&void 0!==N?N:l).replace("++","+NumpadAdd").split("+");z.length<=0&&(L=!1),z.forEach((function(e){e||(L=!1)})),c={label:"Combination",valid:L,hint:'Execute a series of keypresses.\n\nCombination take keys separated with "+", for a full list of keycodes check [KeyboardEvent.key Values](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values).\n\n#### Examples\n\n- Backspace  \n- Shift+Alt+e  \n- Control+ArrowLeft'}}else"type"===a&&(c={label:"Value",valid:!0,hint:"Type anything inside an input element.\n\nAn element needs to be previously selected with the **Select** action, (types into all of the elements that match the selector)."});return c.valid||(c.label="Invalid ".concat(c.label)),Array.isArray(l)&&(l=l.join(", ")),e.createElement("div",{className:ti.container},e.createElement("div",{className:ti.title},"Step"),e.createElement("div",{className:ti.options},e.createElement("div",{className:ti.actionLabel},"Action"),e.createElement("div",{className:ti.option},e.createElement(Lo,{autoFocus:i,defaultIndex:Un.Nw.indexOf(a),options:Un.Nw,suggestions:u,onChange:function(e){var t=n.state.action,r=n.state.value,o="";(t===e||"select"===t&&"wait"===e&&n.isValid()||"wait"===t&&"string"==typeof r&&"select"===e)&&(o=r);var i=n.getAutoComplete({action:e,value:o}),a=i.autoCompletePossibilities,l=i.autoCompleteSteps;n.setState({action:e,value:o,pure:o,masterKey:n.state.masterKey+1,autoCompletePossibilities:a,autoCompleteSteps:l,toggles:{}},(function(){var e=n.inputRef.current;null==e||e.focus(),o&&(null==e||e.setSelectionRange(0,o.length))}))}})),c.label?e.createElement("div",{key:n.state.masterKey},e.createElement("div",{className:ti.labels},e.createElement("div",{className:ti.valueLabel,valid:c.valid.toString()},c.label),(null!==(t=c.toggles)&&void 0!==t?t:[]).map((function(t,n){return e.createElement("div",{key:n,className:ti.additionalLabel},t.label)}))),e.createElement("div",{className:ti.option},e.createElement(Vo,{inputRef:n.inputRef,valid:c.valid,defaultValue:l,autoFocus:!i,onChange:function(e){var t,r=n.getAutoComplete({action:a,value:e}),o=r.autoCompletePossibilities,i=r.autoCompleteSteps;t="wait"===a?e=n.parseNumber(e):e,n.setState({value:e,pure:t,autoCompletePossibilities:o,autoCompleteSteps:i})}}),(null!==(r=c.toggles)&&void 0!==r?r:[]).map((function(t,r){var o,i=t.label.toLowerCase();return e.createElement(Ko,{key:r,value:null!==(o=s[i])&&void 0!==o?o:t.value,trueText:t.true,falseText:t.false,onToggle:function(e){return function(e,t){var r=n.state.toggles;r[t]=e,n.setState({toggles:r})}(e,i)}})})))):e.createElement("div",null),e.createElement("div",{className:ti.autoCompleteContainer},n.state.autoCompletePossibilities.map((function(t,r){var o,i,a=null===(o=null!==(i=n.state.pure)&&void 0!==i?i:l)||void 0===o?void 0:o.toString();return e.createElement("div",{key:r,className:ti.autoComplete,onClick:function(){return n.doAutoComplete(r,!0)}},e.createElement("div",{className:ti.autoCompleteProgress},a),e.createElement("div",{className:ti.autoCompleteLeft},t.substring(null==a?void 0:a.length)))}))),e.createElement(So(),{className:ti.hint,children:c.hint})),e.createElement("div",{className:ti.buttons},e.createElement("div",{invalid:(!c.valid).toString(),className:ti.button,onClick:n.done},"Apply"),e.createElement("div",{className:ti.button,onClick:Zo},"Cancel")))}():(t=i||"",e.createElement("div",{className:ti.container},e.createElement("div",{className:ti.title},"Test"),e.createElement("div",{className:ti.options},e.createElement("div",{className:ti.actionLabel},"Title"),e.createElement("div",{className:ti.option},e.createElement(Vo,{defaultValue:t,autoFocus:!0,onChange:function(e){return n.setState({value:e})}}))),e.createElement("div",{className:ti.buttons},e.createElement("div",{className:ti.button,onClick:n.done},"Apply"),e.createElement("div",{className:ti.button,onClick:Zo},"Cancel")))))}}])&&$o(n.prototype,r),l}(e.Component);ei.propTypes={type:qn().string.isRequired,title:qn().string,step:qn().object,referrer:qn().object,done:qn().func};var ti=(0,r.createStyle)({wrapper:{zIndex:3,display:"flex",position:"absolute",justifyContent:"center",alignItems:"center",backgroundColor:Hn(Jo.blackBackground,.85),top:0,left:0,width:"100vw",height:"100vh"},container:{display:"grid",gridTemplateColumns:"100%",gridTemplateRows:"auto 1fr auto",gridTemplateAreas:'"." "." "."',fontSize:"14px",fontFamily:"Noto Sans",fontWeight:700,backgroundColor:Jo.whiteBackground,width:"100%",height:"100%",maxWidth:"350px",maxHeight:"500px",overflow:"hidden",borderRadius:"5px"},title:{color:Jo.blackText,fontSize:"11px",margin:"25px 15px"},options:{flexGrow:1,display:"flex",flexDirection:"column",minHeight:"360px"},labels:{display:"flex",color:Jo.accent,fontSize:"11px",margin:"0 15px -15px 15px"},actionLabel:{color:Jo.accent,fontSize:"11px",margin:"0 15px -15px 15px"},valueLabel:{flexGrow:1,'[valid="false"]':{color:Jo.red}},additionalLabel:{textAlign:"center",width:"40px",margin:"0px 0 0 10px"},hint:{flexGrow:1,color:Hn(Jo.blackText,.65),fontWeight:300,fontSize:"13px",overflow:"auto",margin:"0 15px"," *":{userSelect:"text"},"::-webkit-scrollbar":{width:"5px",background:Jo.whiteBackground},"::-webkit-scrollbar-thumb":{background:Jo.accent}," a":{color:Jo.blue,textDecoration:"none"}," a:hover":{color:Jo.blue,textDecoration:"underline"}," a:visited":{color:Jo.blue}},option:{display:"flex",margin:"15px"},autoCompleteContainer:{display:"flex",flexWrap:"wrap",margin:"0 15px"},autoComplete:{cursor:"pointer",display:"flex",width:"auto",fontSize:"11px",textTransform:"uppercase",margin:"0 15px 5px 0"},autoCompleteProgress:{whiteSpace:"pre-wrap",color:Jo.blackText},autoCompleteLeft:{whiteSpace:"pre-wrap",color:Jo.accent},buttons:{display:"flex"},button:{flexGrow:1,cursor:"pointer",color:Jo.blackText,backgroundColor:Jo.whiteBackground,textAlign:"center",padding:"15px 0px",transition:"transform 0.1s cubic-bezier(0.47, 0, 0.75, 0.72)",":hover":{color:Jo.whiteText,backgroundColor:Jo.accent},":active":{transform:"scale(0.95)"},'[invalid="true"]':{color:Jo.red,pointerEvents:"none"}}});const ni=ei;function ri(e){return(ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach((function(t){li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function si(e,t){return(si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ci(e,t){return!t||"object"!==ri(t)&&"function"!=typeof t?fi(e):t}function fi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function di(e){return(di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pi=Kn(),hi=e.createRef(),mi=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&si(e,t)}(u,n);var r,o,i,a,l=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=di(i);if(a){var n=di(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ci(this,e)});function u(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(e=l.call(this)).timestamp=0,e.state={dirty:!1,stackIndex:void 0,data:[],familizedData:{}},e.changeStack=[{data:[],familizedData:{}}],e.db=new Bn("database"),e.db.version(1).stores({files:"id,fileHandle"}),e.onBeforeUnload=e.onBeforeUnload.bind(fi(e)),e.onKeyDown=e.onKeyDown.bind(fi(e)),e.onMouseUp=e.onMouseUp.bind(fi(e)),e.onMouseLeave=e.onMouseLeave.bind(fi(e)),e.onMouseDown=e.onMouseDown.bind(fi(e)),e.onMouseMove=e.onMouseMove.bind(fi(e)),e.saveFile=e.saveFile.bind(fi(e)),e.loadFile=e.loadFile.bind(fi(e)),e.undo=e.undo.bind(fi(e)),e.redo=e.redo.bind(fi(e)),e.onContextMenu=e.onContextMenu.bind(fi(e)),e.addStepAfter=e.addStepAfter.bind(fi(e)),e.addNewStep=e.addNewStep.bind(fi(e)),e.deleteStep=e.deleteStep.bind(fi(e)),e.editStep=e.editStep.bind(fi(e)),e}return r=u,(o=[{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){return e.scrollToCenter()}),250),window.addEventListener("beforeunload",this.onBeforeUnload),document.body.addEventListener("keydown",this.onKeyDown),this.loadHandle()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.onBeforeUnload),document.body.removeEventListener("keydown",this.onKeyDown)}},{key:"onBeforeUnload",value:function(e){var t="Changes you made may not be saved.";if(this.state.dirty)return e.returnValue=t,t}},{key:"onKeyDown",value:function(e){e.ctrlKey&&"s"===e.key.toLowerCase()&&(e.preventDefault(),this.saveFile()),e.ctrlKey&&"o"===e.key.toLowerCase()&&(e.preventDefault(),this.loadFile()),e.ctrlKey&&"z"===e.key.toLowerCase()&&(e.preventDefault(),this.undo()),e.ctrlKey&&"y"===e.key.toLowerCase()&&(e.preventDefault(),this.redo())}},{key:"onMouseDown",value:function(){this.down=!0}},{key:"onMouseUp",value:function(){this.down=!1,this.lastX=this.lastY=void 0}},{key:"onMouseLeave",value:function(){this.down&&this.onMouseUp()}},{key:"onMouseMove",value:function(e){this.down&&Date.now()-this.timestamp>25&&(this.handleMovement(e),this.timestamp=Date.now())}},{key:"handleMovement",value:function(e){var t=e.clientX,n=e.clientY;if(void 0!==this.lastX&&void 0!==this.lastY){var r=this.lastX-t,o=this.lastY-n;this.scrollToDelta(r,o)}this.lastX=t,this.lastY=n}},{key:"scrollTo",value:function(e,t,n){hi.current.parentElement.scrollTo({behavior:n?"smooth":"auto",left:e,top:t})}},{key:"scrollToCenter",value:function(){var e=5200-window.innerWidth,t=3140-window.innerHeight;this.scrollTo(e/2,t/2)}},{key:"scrollToDelta",value:function(e,t){var n=hi.current;n.parentElement.scrollTo({left:n.parentElement.scrollLeft+e,top:n.parentElement.scrollTop+t})}},{key:"storeHandle",value:function(e){return this.db.table("files").put({id:0,fileHandle:e}),this.fileHandle=e,e}},{key:"loadHandle",value:function(){var e=this;"function"==typeof window.showOpenFilePicker&&this.db.table("files").get(0).then((function(t){var n=t.fileHandle;n.requestPermission().then((function(t){"granted"===t?(e.fileHandle=n,e.loadFile(void 0,n)):e.db.table("files").delete(0)})).catch((function(t){var n;null!==(n=t.message)&&void 0!==n&&n.startsWith("User activation")&&document.body.addEventListener("click",(function(t){t.stopImmediatePropagation(),e.loadHandle()}),{once:!0}),console.error(t)}))})).catch((function(){}))}},{key:"saveFile",value:function(){var e,t,n=this,r=JSON.stringify({data:this.state.data},void 0,2);("function"==typeof window.showOpenFilePicker?n.fileHandle?Promise.resolve(n.fileHandle.createWritable()).then((function(e){return e.write(r),e.close()})):window.showSaveFilePicker({types:[{description:"Might Map File (.json)",accept:{"application/json":[".json"]}}]}).then((function(e){return n.storeHandle(e).createWritable()})).then((function(e){return e.write(r),e.close()})):(e=document.createElement("a"),t=new Blob([r],{type:"text/plain"}),e.download="might.map.json",e.href=URL.createObjectURL(t),e.addEventListener("click",(function(){setTimeout((function(){return URL.revokeObjectURL(e.href)}),1e3)})),e.click(),Promise.resolve())).then((function(){return n.setState({dirty:!1})})).catch((function(e){return console.error(e)}))}},{key:"loadFile",value:function(e,t){var n=this;("function"==typeof window.showOpenFilePicker?function(e){return e?Promise.resolve(e.getFile()).then((function(e){return e.text()})):window.showOpenFilePicker({types:[{description:"Might Map File (.json)",accept:{"application/json":[".json"]}}]}).then((function(e){return n.storeHandle(e[0]).getFile()})).then((function(e){return e.text()}))}(t):new Promise((function(e){var t=document.createElement("input");t.type="file",t.multiple=!1,t.accept="application/json",t.addEventListener("change",(function(){var n=t.files[0],r=new FileReader;r.addEventListener("load",(function(t){return e(t.target.result)})),r.readAsText(n)})),t.click()}))).then((function(e){var t=JSON.parse(e);n.loadMap(t.data,!0)})).catch((function(e){return console.error(e)}))}},{key:"undo",value:function(){var e=this.state.stackIndex;void 0===e&&(e=this.changeStack.length-1),e-1<=-1||(e-=1,this.setState({stackIndex:e,dirty:!0,data:this.changeStack[e].data,familizedData:this.rememberProperties(this.changeStack[e].familizedData,this.state.familizedData)}))}},{key:"redo",value:function(){var e=this.state.stackIndex;void 0===e&&(e=this.changeStack.length-1),e+1>=this.changeStack.length||(e+=1,this.setState({stackIndex:e,dirty:!0,data:this.changeStack[e].data,familizedData:this.rememberProperties(this.changeStack[e].familizedData,this.state.familizedData)}))}},{key:"loadMap",value:function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=JSON.stringify(o.steps);n.includes(i)?(e.splice(r,1),r-=1):n.push(i)}var a={};e.forEach((function(e,t){var n,r={click:!0,hover:!0,drag:!0,type:!0};e.steps.forEach((function(o,i){var l,u,s,c,f,d=(0,Un.RI)(o,{pretty:!0});i===e.steps.length-1&&(u=e.title,s=t),0===i?(l=!0,c=a):(n.children||(n.children={}),c=n.children),"select"===o.action||"wait"===o.action&&"string"==typeof o.value?f="parent":r[o.action]&&(f="child"),void 0===c[d]?c[d]={root:l,title:u,titleTestIndex:s,groupState:f,action:o.action,value:o.value,occurrences:[{testIndex:t,stepIndex:i}]}:(void 0===c[d].title&&void 0!==u&&(c[d].title=u,c[d].titleTestIndex=s),c[d].occurrences.push({testIndex:t,stepIndex:i})),n=c[d]}))})),t&&this.changeStack.splice(0),this.recordChange(e,a),this.setState({data:e,familizedData:t?a:this.rememberProperties(a,this.state.familizedData),stackIndex:void 0,dirty:!t})}},{key:"rememberProperties",value:function(e,t){return function e(t,n){for(var r in t){var o=t[r],i=null==n?void 0:n[r];o.invisible=null==i?void 0:i.invisible,e(o.children,null==i?void 0:i.children)}}(e,t),e}},{key:"recordChange",value:function(e,t){var n=this.state.stackIndex;void 0!==n&&this.changeStack.splice(n+1),this.changeStack.push({data:JSON.parse(JSON.stringify(e)),familizedData:JSON.parse(JSON.stringify(t))})}},{key:"onContextMenu",value:function(n){n.preventDefault(),t.render(e.createElement(zr,{x:n.nativeEvent.pageX,y:n.nativeEvent.pageY,actions:[{title:"Add",actions:[{title:"Step",callback:this.addNewStep}]}]}),document.querySelector("#contextMenu"))}},{key:"markTest",value:function(n){var r=this,o=this.state.data;t.render(e.createElement(ni,{type:"edit-test",title:"",done:function(e,t){var i=ai({},o[n[0].testIndex]);i.title=t||"",i.steps=i.steps.slice(0,n[0].stepIndex+1),o.push(i),r.loadMap(o)}}),document.querySelector("#dialogue"))}},{key:"unmarkTest",value:function(e){var t=this.state.data;e.forEach((function(e){var n=e.testIndex,r=e.stepIndex;t[n].steps.length===r+1&&delete t[n]}));for(var n=0;n<t.length;n++)void 0===t[n]&&(t.splice(n,1),n-=1);this.loadMap(t)}},{key:"addStepAfter",value:function(n,r,o){var i=this,a=this.state.data,l=a[n[0].testIndex].steps[n[0].stepIndex];t.render(e.createElement(ni,{type:"new-step",referrer:l,done:function(e,t){var l={action:e,value:t};if(void 0!==t&&(l.value=t),"new"===o){var u=a[n[0].testIndex],s=ai({},u);s.title="",s.steps=s.steps.slice(0,n[0].stepIndex+1),s.steps.push(l),0!==r||u.title?a.push(s):a[n[0].testIndex]=s}else n.forEach((function(e){var t=a[e.testIndex],n=t.steps.slice(0,e.stepIndex+1),r=t.steps.slice(e.stepIndex+1);n.push(l),t.steps=n.concat(r)}));i.loadMap(a)}}),document.querySelector("#dialogue"))}},{key:"addNewStep",value:function(){var n=this,r=this.state.data;t.render(e.createElement(ni,{type:"new-step",done:function(e,t){var o={title:"",steps:[{action:e,value:t}]};r.push(o),n.loadMap(r)}}),document.querySelector("#dialogue"))}},{key:"editStep",value:function(n){var r=this,o=this.state.data,i=n[0],a=o[i.testIndex].steps[i.stepIndex];t.render(e.createElement(ni,{type:"edit-step",step:a,done:function(e,t){n.forEach((function(n){var r=o[n.testIndex].steps[n.stepIndex];void 0!==e&&(r.action=e),void 0!==t&&(r.value=t)})),r.loadMap(o)}}),document.querySelector("#dialogue"))}},{key:"editTest",value:function(n){var r=this,o=this.state.data;t.render(e.createElement(ni,{type:"edit-test",title:o[n].title,done:function(e,t){"string"==typeof t&&(o[n].title=t),r.loadMap(o)}}),document.querySelector("#dialogue"))}},{key:"deleteStep",value:function(e,t){var n=this,r=this.state.data;e.forEach((function(e){var o=r[e.testIndex],i=o.title,a=o.steps;if("branch"===t?a.splice(e.stepIndex):a.splice(e.stepIndex,1),a.length<=0)r.splice(e.testIndex);else if(e.stepIndex===a.length&&!i){var l,u=n.state.familizedData,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(a);try{for(s.s();!(l=s.n()).done;){var c=l.value;u=u[(0,Un.RI)(c,{pretty:!0})].children}}catch(e){s.e(e)}finally{s.f()}Object.keys(u).length>1&&r.splice(e.testIndex)}})),this.loadMap(r)}},{key:"render",value:function(){var t=this,n=function n(r,o,i){if(!r)return e.createElement("div",null);var a=Object.keys(r);return e.createElement("div",{className:vi.column},a.map((function(l,u){var s,c=r[l],f=function(e){var t,n,r,o;return"remove-branch"===e?(n="remove",r="remove",t="remove-branch-carried"):"remove-branch-carried"===e?(n="remove",o="remove",t="remove-branch-carried"):"new-step"===e||"insert-step"===e?(n="add",o="add"):"parent-new-step"===e?r="add":n="remove-step"===e?"remove":e,{carried:t,highlight:n,preLinesHighlight:o,postLinesHighlight:r}}(i||c.hover),d=f.carried,p=f.highlight,h=f.postLinesHighlight,m=f.preLinesHighlight,v=!1,g=!1;"parent"===c.groupState?g=!0:"child"===c.groupState&&(v=!0,g=!0);var y=Object.keys(null!==(s=c.children)&&void 0!==s?s:{}).length;return e.createElement("div",{key:u,className:vi.row},c.root?void 0:function(t,n,r,o,i,a){return t<=0?e.createElement("div",null):e.createElement("div",{className:vi.lines},t>1?e.createElement(wo,{reverse:0===n,half:0===n||n===t-1,invisible:r.invisible,highlight:i}):e.createElement("div",null),e.createElement(go,{mode:o,invisible:r.invisible,highlight:i,group:a}))}(a.length,u,c,o,m,v),e.createElement("div",{className:vi.column},e.createElement(po,{mindmap:t,mode:o,content:l,highlight:p,item:c})),function(t,n,r,o,i){return t<=1?e.createElement("div",null):e.createElement(go,{mode:n,invisible:r,highlight:o,group:i})}(y,o,c.invisible,h,g),n(c.children,o,d))})))},r=void 0!==this.state.stackIndex?this.state.stackIndex:this.changeStack.length-1,o=r-1>-1,i=r+1<this.changeStack.length,a=n(this.state.familizedData,"full",!1),l=Object.keys(this.state.familizedData).length<=0,u=n(this.state.familizedData,"mini",!1);return e.createElement("div",{ref:hi,className:vi.wrapper},e.createElement(dr,{mindmap:this,dirty:this.state.dirty,stack:{undo:o,redo:i}}),e.createElement(Ar,{mindmap:this,onContextMenu:this.onContextMenu},u),e.createElement("div",{empty:l.toString(),className:vi.container,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseMove:this.onMouseMove,onContextMenu:this.onContextMenu},a))}}])&&ui(r.prototype,o),u}(e.Component),vi=(0,r.createStyle)({wrapper:{backgroundColor:pi.whiteBackground,width:"calc(260px * 20)",height:"calc(157px * 20)"},container:{display:"flex",justifyContent:"center",alignItems:"center",fontFamily:"Noto Sans",fontWeight:700,width:"100%",height:"100%",'[empty="true"]':{":after":{content:'"No results"',color:pi.accent,fontFamily:"Noto Sans",fontWeight:700,fontSize:"12px"}}},row:{display:"flex",flexDirection:"row"},column:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center"},lines:{display:"flex"}});const gi=mi;function yi(e){return(yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xi(e,t){return(xi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wi(e,t){return!t||"object"!==yi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ki(e){return(ki=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Si=Kn(),Ei=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xi(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ki(o);if(i){var n=ki(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return wi(this,e)});function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this)}return n=l,(r=[{key:"render",value:function(){return e.createElement("div",{id:"main",className:Ci.container},e.createElement(gi,null))}}])&&bi(n.prototype,r),l}(e.Component),Ci=(0,r.createStyle)({container:{overflow:"scroll",backgroundColor:Si.whiteBackground,width:"100vw",height:"100vh","::-webkit-scrollbar":{display:"none"}}});const _i=Ei;var Oi=document.querySelector("#app");t.render(e.createElement(_i,null),Oi)})()})();