seqviz-plus
Version:
An extension for Seqviz
2 lines • 400 kB
JavaScript
/*! For license information please see seqviz-plus.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("seqviz-plus",[],t):"object"==typeof exports?exports["seqviz-plus"]=t():e["seqviz-plus"]=t()}(this,(()=>(()=>{var e={8935:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(8081),a=n.n(r),o=n(3645),i=n.n(o)()(a());i.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:300,400,500&display=swap);"]),i.push([e.id,"/* Shared/common settings */\n.la-vz-seqviz {\n height: 100%;\n width: 100%;\n}\n\n.la-vz-seqviz svg {\n overflow: visible !important;\n}\n\n.la-vz-seqviz svg text {\n fill: rgb(42, 42, 42);\n font-family: Roboto Mono, Monaco, monospace;\n user-select: none;\n\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.la-vz-seqviz svg text:selection {\n background: none;\n}\n\n.la-vz-viewer-container {\n height: 100%;\n position: relative;\n width: 100%;\n}\n\n.la-vz-viewer-event-router {\n display: flex;\n flex-direction: row;\n height: 100%;\n outline: none;\n position: absolute;\n width: 100%;\n}\n\n.la-vz-search {\n fill: rgba(255, 251, 7, 0.5);\n}\n\n.la-vz-highlight {\n fill: rgba(255, 251, 7, 0.25);\n}\n\n.la-vz-selection {\n fill: rgb(222, 246, 255);\n}\n\n.la-vz-selection-edge {\n fill: black;\n stroke: black;\n shape-rendering: geometricPrecision;\n}\n\n.la-vz-cut-site {\n fill: transparent;\n shape-rendering: auto;\n stroke-width: 1;\n stroke: rgb(115, 119, 125);\n}\n\n.la-vz-cut-site-highlight {\n cursor: pointer;\n fill: rgb(255, 251, 7);\n fill-opacity: 0;\n shape-rendering: auto;\n stroke-width: 1;\n stroke: rgb(115, 119, 125);\n}\n\n.la-vz-cut-site-text {\n cursor: pointer;\n font-size: 12px;\n}\n\n.la-vz-index-line {\n fill: transparent;\n shape-rendering: geometricPrecision;\n stroke-width: 1;\n stroke: rgb(115, 119, 125);\n}\n\n.la-vz-index-tick {\n fill: transparent;\n shape-rendering: geometricPrecision;\n stroke-width: 1;\n stroke: rgb(115, 119, 125);\n}\n\n.la-vz-index-tick-label {\n fill: rgb(115, 119, 125);\n font-weight: 300;\n text-rendering: optimizeLegibility;\n}\n\n.la-vz-annotation {\n fill-opacity: 0.7;\n shape-rendering: geometricPrecision;\n stroke-width: 0.5;\n}\n\n.la-vz-annotation-label {\n color: rgb(42, 42, 42);\n font-weight: 400;\n shape-rendering: geometricPrecision;\n stroke-linejoin: round;\n text-rendering: optimizeLegibility;\n}\n\n.la-vz-translation-amino-acid-label {\n color: rgb(42, 42, 42);\n font-size: 12px;\n font-weight: 400;\n}\n\n/* Circular Viewer */\n.la-vz-viewer-circular {\n cursor: text;\n font-size: 12px;\n font-weight: 300;\n margin: auto;\n}\n\n.la-vz-circular-label {\n cursor: pointer;\n}\n\n.la-vz-circular-label:hover {\n text-decoration: underline;\n}\n\n.la-vz-label-line {\n fill: none;\n stroke-width: 1;\n stroke: rgb(158, 170, 184);\n}\n\n/* Linear Viewer */\n.la-vz-linear-scroller {\n cursor: text;\n font-weight: 300;\n height: 100%;\n outline: none !important;\n overflow-x: hidden;\n overflow-y: scroll;\n padding: 10px;\n position: relative;\n}\n\n.la-vz-seqblock-container {\n width: 100%;\n}\n\n.la-vz-seqblock {\n width: 100%;\n padding: 0;\n /* this is for when very zoomed out and the bp index disappears beneath the next block */\n overflow: visible;\n}\n\n.la-vz-scroll::-webkit-scrollbar {\n width: 7px;\n}\n\n.la-vz-scroll::-webkit-scrollbar-thumb {\n background-clip: padding-box;\n background-color: rgb(166, 166, 166);\n border-radius: 7px;\n}\n\n.la-vz-scroll::-webkit-scrollbar-track {\n border-radius: 20px;\n}\n\n.la-vz-scroll::-webkit-scrollbar-track-piece {\n background-clip: padding-box;\n background-color: rgb(236, 236, 236);\n border-radius: 7px;\n}\n\n/** Floating Menu */\n .la-fm-container {\n position: fixed;\n border: 1px solid lightgrey;\n display: flex;\n flex-direction: column;\n padding: 10px 0;\n z-index: 999;\n background: rgb(255, 254, 254); \n -webkit-box-shadow: 5px 5px 15px 5px #e4e3e3; \n box-shadow: 5px 5px 15px 5px #e4e3e3;\n}\n.la-fm-container > button{\n padding: 0px 20px;\n border: none;\n color: rgb(61, 61, 61);\n padding: 5px 20px 5px 20px;\n background: rgb(255, 254, 254);\n text-align: left;\n cursor: pointer;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n}\n .la-fm-container > button:hover{\n border: none;\n background: rgb(235, 233, 233); \n}\n\n.warning-banner {\n margin: 20px auto;\n padding: 10px 20px;\n width: fit-content;\n background-color: rgba(255, 229, 82, 0.363);\n border: 1px solid rgb(230, 215, 83);\n border-radius: 5px;\n font-family: monospace;\n} \n\n\n.alignment-table-row {border: 1px solid RGB(235 235 235)}\n.alignment-table-row:nth-child(2n + 1) {background: rgb(248, 248, 248);}\n.alignment-table-col {border: 1px solid #ddd; padding: 8px; text-align: center;}\n\n\n\n\n.bg-align {\n font-family: 'Ahem, sans-serif'\n}",""]);const l=i},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(i[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&i[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},6932:(e,t,n)=>{"use strict";const r=n(8501),a=n(8844),o=n(1192);e.exports={XMLParser:a,XMLValidator:r,XMLBuilder:o}},7849:(e,t)=>{"use strict";const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",a=new RegExp("^"+r+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){const r=Object.keys(t),a=r.length;for(let o=0;o<a;o++)e[r[o]]="strict"===n?[t[r[o]]]:t[r[o]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){return!(null==a.exec(e))},t.getAllMatches=function(e,t){const n=[];let r=t.exec(e);for(;r;){const a=[];a.startIndex=t.lastIndex-r[0].length;const o=r.length;for(let e=0;e<o;e++)a.push(r[e]);n.push(a),r=t.exec(e)}return n},t.nameRegexp=r},8501:(e,t,n)=>{"use strict";const r=n(7849),a={allowBooleanAttributes:!1,unpairedTags:[]};function o(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function i(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const r=e.substr(n,t-n);if(t>5&&"xml"===r)return h("InvalidXml","XML declaration allowed only at the start of the document.",g(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function l(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},a,t);const n=[];let s=!1,u=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let a=0;a<e.length;a++)if("<"===e[a]&&"?"===e[a+1]){if(a+=2,a=i(e,a),a.err)return a}else{if("<"!==e[a]){if(o(e[a]))continue;return h("InvalidChar","char '"+e[a]+"' is not expected.",g(e,a))}{let m=a;if(a++,"!"===e[a]){a=l(e,a);continue}{let v=!1;"/"===e[a]&&(v=!0,a++);let y="";for(;a<e.length&&">"!==e[a]&&" "!==e[a]&&"\t"!==e[a]&&"\n"!==e[a]&&"\r"!==e[a];a++)y+=e[a];if(y=y.trim(),"/"===y[y.length-1]&&(y=y.substring(0,y.length-1),a--),f=y,!r.isName(f)){let t;return t=0===y.trim().length?"Invalid space after '<'.":"Tag '"+y+"' is an invalid name.",h("InvalidTag",t,g(e,a))}const b=c(e,a);if(!1===b)return h("InvalidAttr","Attributes for '"+y+"' have open quote.",g(e,a));let w=b.value;if(a=b.index,"/"===w[w.length-1]){const n=a-w.length;w=w.substring(0,w.length-1);const r=d(w,t);if(!0!==r)return h(r.err.code,r.err.msg,g(e,n+r.err.line));s=!0}else if(v){if(!b.tagClosed)return h("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",g(e,a));if(w.trim().length>0)return h("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",g(e,m));{const t=n.pop();if(y!==t.tagName){let n=g(e,t.tagStartPos);return h("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+y+"'.",g(e,m))}0==n.length&&(u=!0)}}else{const r=d(w,t);if(!0!==r)return h(r.err.code,r.err.msg,g(e,a-w.length+r.err.line));if(!0===u)return h("InvalidXml","Multiple possible root nodes found.",g(e,a));-1!==t.unpairedTags.indexOf(y)||n.push({tagName:y,tagStartPos:m}),s=!0}for(a++;a<e.length;a++)if("<"===e[a]){if("!"===e[a+1]){a++,a=l(e,a);continue}if("?"!==e[a+1])break;if(a=i(e,++a),a.err)return a}else if("&"===e[a]){const t=p(e,a);if(-1==t)return h("InvalidChar","char '&' is not expected.",g(e,a));a=t}else if(!0===u&&!o(e[a]))return h("InvalidXml","Extra text at the end",g(e,a));"<"===e[a]&&a--}}}var f;return s?1==n.length?h("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",g(e,n[0].tagStartPos)):!(n.length>0)||h("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};const s='"',u="'";function c(e,t){let n="",r="",a=!1;for(;t<e.length;t++){if(e[t]===s||e[t]===u)""===r?r=e[t]:r!==e[t]||(r="");else if(">"===e[t]&&""===r){a=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:a}}const f=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function d(e,t){const n=r.getAllMatches(e,f),a={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return h("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",v(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return h("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",v(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",v(n[e]));const r=n[e][2];if(!m(r))return h("InvalidAttr","Attribute '"+r+"' is an invalid name.",v(n[e]));if(a.hasOwnProperty(r))return h("InvalidAttr","Attribute '"+r+"' is repeated.",v(n[e]));a[r]=1}return!0}function p(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function h(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function m(e){return r.isName(e)}function g(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function v(e){return e.startIndex+e[1].length}},1192:(e,t,n)=>{"use strict";const r=n(2592),a={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[]};function o(e){this.options=Object.assign({},a,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=h),this.processTextOrObjNode=l,this.options.format?(this.indentate=p,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.suppressEmptyNode?(this.buildTextNode=d,this.buildObjNode=u):(this.buildTextNode=c,this.buildObjNode=s),this.buildTextValNode=c,this.buildObjectNode=s,this.replaceEntitiesValue=f,this.buildAttrPairStr=i}function i(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'}function l(e,t,n){const r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjNode(r.val,t,r.attrStr,n)}function s(e,t,n,r){let a="</"+t+this.tagEndChar,o="";return"?"===t[0]&&(o="?",a=""),n&&-1===e.indexOf("<")?this.indentate(r)+"<"+t+n+o+">"+e+a:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===o.length?this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(r)+"<"+t+n+o+this.tagEndChar+e+this.indentate(r)+a}function u(e,t,n,r){return""!==e?this.buildObjectNode(e,t,n,r):"?"===t[0]?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function c(e,t,n,r){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;{let a=this.options.tagValueProcessor(t,e);return a=this.replaceEntitiesValue(a),""===a&&-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode?this.indentate(r)+"<"+t+this.tagEndChar:this.indentate(r)+"<"+t+"/"+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+a+"</"+t+this.tagEndChar}}function f(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e}function d(e,t,n,r){return""===e&&-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode?this.indentate(r)+"<"+t+this.tagEndChar:this.indentate(r)+"<"+t+"/"+this.tagEndChar:""!==e?this.buildTextValNode(e,t,n,r):"?"===t[0]?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function p(e){return this.options.indentBy.repeat(e)}function h(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}o.prototype.build=function(e){return this.options.preserveOrder?r(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},o.prototype.j2x=function(e,t){let n="",r="";for(let a in e)if(void 0===e[a]);else if(null===e[a])"?"===a[0]?r+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)r+=this.buildTextNode(e[a],a,"",t);else if("object"!=typeof e[a]){const o=this.isAttribute(a);if(o)n+=this.buildAttrPairStr(o,""+e[a]);else if(a===this.options.textNodeName){let t=this.options.tagValueProcessor(a,""+e[a]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextNode(e[a],a,"",t)}else if(Array.isArray(e[a])){const n=e[a].length;for(let o=0;o<n;o++){const n=e[a][o];void 0===n||(null===n?"?"===a[0]?r+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+a+"/"+this.tagEndChar:r+="object"==typeof n?this.processTextOrObjNode(n,a,t):this.buildTextNode(n,a,"",t))}}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){const t=Object.keys(e[a]),r=t.length;for(let o=0;o<r;o++)n+=this.buildAttrPairStr(t[o],""+e[a][t[o]])}else r+=this.processTextOrObjNode(e[a],a,t);return{attrStr:n,val:r}},e.exports=o},2592:e=>{function t(e,i,l,s){let u="",c=!1;for(let f=0;f<e.length;f++){const d=e[f],p=n(d);let h="";if(h=0===l.length?p:`${l}.${p}`,p===i.textNodeName){let e=d[p];a(h,i)||(e=i.tagValueProcessor(p,e),e=o(e,i)),c&&(u+=s),u+=e,c=!1;continue}if(p===i.cdataPropName){c&&(u+=s),u+=`<![CDATA[${d[p][0][i.textNodeName]}]]>`,c=!1;continue}if(p===i.commentPropName){u+=s+`\x3c!--${d[p][0][i.textNodeName]}--\x3e`,c=!0;continue}if("?"===p[0]){const e=r(d[":@"],i),t="?xml"===p?"":s;let n=d[p][0][i.textNodeName];n=0!==n.length?" "+n:"",u+=t+`<${p}${n}${e}?>`,c=!0;continue}let m=s;""!==m&&(m+=i.indentBy);const g=s+`<${p}${r(d[":@"],i)}`,v=t(d[p],i,h,m);-1!==i.unpairedTags.indexOf(p)?i.suppressUnpairedNode?u+=g+">":u+=g+"/>":v&&0!==v.length||!i.suppressEmptyNode?v&&v.endsWith(">")?u+=g+`>${v}${s}</${p}>`:(u+=g+">",v&&""!==s&&(v.includes("/>")||v.includes("</"))?u+=s+i.indentBy+v+s:u+=v,u+=`</${p}>`):u+=g+"/>",c=!0}return u}function n(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function r(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){let a=t.attributeValueProcessor(r,e[r]);a=o(a,t),!0===a&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${a}"`}return n}function a(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let r in t.stopNodes)if(t.stopNodes[r]===e||t.stopNodes[r]==="*."+n)return!0;return!1}function o(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const r=t.entities[n];e=e.replace(r.regex,r.val)}return e}e.exports=function(e,n){let r="";return n.format&&n.indentBy.length>0&&(r="\n"),t(e,n,"",r)}},4780:e=>{const t=RegExp("^\\s([a-zA-z0-0]+)[ \t](['\"])([^&]+)\\2");function n(e,n){const r=t.exec(e);r&&(n[r[1]]={regx:RegExp(`&${r[1]};`,"g"),val:r[3]})}e.exports=function(e,t){const r={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let a=1,o=!1,i=!1,l=!1,s="";for(;t<e.length;t++)if("<"===e[t]){if(o&&"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7])t+=7,i=!0;else if(o&&"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8])t+=8;else if(o&&"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8])t+=8;else if(o&&"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9])t+=9;else{if("!"!==e[t+1]||"-"!==e[t+2]||"-"!==e[t+3])throw new Error("Invalid DOCTYPE");l=!0}a++,s=""}else if(">"===e[t]){if(l){if("-"!==e[t-1]||"-"!==e[t-2])throw new Error("Invalid XML comment in DOCTYPE");l=!1}else i&&(n(s,r),i=!1);if(a--,0===a)break}else"["===e[t]?o=!0:s+=e[t];if(0!==a)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:t}}},6745:(e,t)=>{const n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1};t.buildOptions=function(e){return Object.assign({},n,e)},t.defaultOptions=n},1078:(e,t,n)=>{"use strict";const r=n(7849),a=n(6311),o=n(4780),i=n(4153);function l(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function s(e,t,n,r,a,o,i){if(void 0!==e&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){i||(e=this.replaceEntitiesValue(e));const r=this.options.tagValueProcessor(t,e,n,a,o);return null==r?e:typeof r!=typeof e||r!==e?r:this.options.trimValues||e.trim()===e?b(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function u(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);const c=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function f(e,t){if(!this.options.ignoreAttributes&&"string"==typeof e){const n=r.getAllMatches(e,c),a=n.length,o={};for(let e=0;e<a;e++){const r=this.resolveNameSpace(n[e][1]);let a=n[e][4],i=this.options.attributeNamePrefix+r;if(r.length)if(this.options.transformAttributeName&&(i=this.options.transformAttributeName(i)),void 0!==a){this.options.trimValues&&(a=a.trim()),a=this.replaceEntitiesValue(a);const e=this.options.attributeValueProcessor(r,a,t);o[i]=null==e?a:typeof e!=typeof a||e!==a?e:b(a,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[i]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=o,e}return o}}const d=function(e){e=e.replace(/\r\n?/g,"\n");const t=new a("!xml");let n=t,r="",i="";for(let l=0;l<e.length;l++)if("<"===e[l])if("/"===e[l+1]){const t=g(e,">",l,"Closing Tag is not closed.");let a=e.substring(l+2,t).trim();if(this.options.removeNSPrefix){const e=a.indexOf(":");-1!==e&&(a=a.substr(e+1))}this.options.transformTagName&&(a=this.options.transformTagName(a)),n&&(r=this.saveTextToParentTag(r,n,i)),i=i.substr(0,i.lastIndexOf(".")),n=this.tagsNodeStack.pop(),r="",l=t}else if("?"===e[l+1]){let t=v(e,l,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,i),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new a(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,i)),n.addChild(e)}l=t.closeIndex+1}else if("!--"===e.substr(l+1,3)){const t=g(e,"--\x3e",l+4,"Comment is not closed.");if(this.options.commentPropName){const a=e.substring(l+4,t-2);r=this.saveTextToParentTag(r,n,i),n.add(this.options.commentPropName,[{[this.options.textNodeName]:a}])}l=t}else if("!D"===e.substr(l+1,2)){const t=o(e,l);this.docTypeEntities=t.entities,l=t.i}else if("!["===e.substr(l+1,2)){const t=g(e,"]]>",l,"CDATA is not closed.")-2,a=e.substring(l+9,t);if(r=this.saveTextToParentTag(r,n,i),this.options.cdataPropName)n.add(this.options.cdataPropName,[{[this.options.textNodeName]:a}]);else{let e=this.parseTextData(a,n.tagname,i,!0,!1,!0);null==e&&(e=""),n.add(this.options.textNodeName,e)}l=t+2}else{let o=v(e,l,this.options.removeNSPrefix),s=o.tagName,u=o.tagExp,c=o.attrExpPresent,f=o.closeIndex;this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,i,!1)),s!==t.tagname&&(i+=i?"."+s:s);const d=n;if(d&&-1!==this.options.unpairedTags.indexOf(d.tagname)&&(n=this.tagsNodeStack.pop()),this.isItStopNode(this.options.stopNodes,i,s)){let t="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)l=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(s))l=o.closeIndex;else{const n=this.readStopNodeData(e,s,f+1);if(!n)throw new Error(`Unexpected end of ${s}`);l=n.i,t=n.tagContent}const r=new a(s);s!==u&&c&&(r[":@"]=this.buildAttributesMap(u,i)),t&&(t=this.parseTextData(t,s,i,!0,c,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),r.add(this.options.textNodeName,t),n.addChild(r)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){"/"===s[s.length-1]?(s=s.substr(0,s.length-1),u=s):u=u.substr(0,u.length-1),this.options.transformTagName&&(s=this.options.transformTagName(s));const e=new a(s);s!==u&&c&&(e[":@"]=this.buildAttributesMap(u,i)),i=i.substr(0,i.lastIndexOf(".")),n.addChild(e)}else{const e=new a(s);this.tagsNodeStack.push(n),s!==u&&c&&(e[":@"]=this.buildAttributesMap(u,i)),n.addChild(e),n=e}r="",l=f}}else r+=e[l];return t.child},p=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function h(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function m(e,t,n){const r="*."+n;for(const n in e){const a=e[n];if(r===a||t===a)return!0}return!1}function g(e,t,n,r){const a=e.indexOf(t,n);if(-1===a)throw new Error(r);return a+t.length-1}function v(e,t,n,r=">"){const a=function(e,t,n=">"){let r,a="";for(let o=t;o<e.length;o++){let t=e[o];if(r)t===r&&(r="");else if('"'===t||"'"===t)r=t;else if(t===n[0]){if(!n[1])return{data:a,index:o};if(e[o+1]===n[1])return{data:a,index:o}}else"\t"===t&&(t=" ");a+=t}}(e,t+1,r);if(!a)return;let o=a.data;const i=a.index,l=o.search(/\s/);let s=o,u=!0;if(-1!==l&&(s=o.substr(0,l).replace(/\s\s*$/,""),o=o.substr(l+1)),n){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1),u=s!==a.data.substr(e+1))}return{tagName:s,tagExp:o,closeIndex:i,attrExpPresent:u}}function y(e,t,n){const r=n;let a=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const o=g(e,">",n,`${t} is not closed`);if(e.substring(n+2,o).trim()===t&&(a--,0===a))return{tagContent:e.substring(r,n),i:o};n=o}else if("?"===e[n+1])n=g(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=g(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=g(e,"]]>",n,"StopNode is not closed.")-2;else{const r=v(e,n,">");r&&((r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&a++,n=r.closeIndex)}}function b(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&i(e,n)}return r.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=l,this.parseXml=d,this.parseTextData=s,this.resolveNameSpace=u,this.buildAttributesMap=f,this.isItStopNode=m,this.replaceEntitiesValue=p,this.readStopNodeData=y,this.saveTextToParentTag=h}}},8844:(e,t,n)=>{const{buildOptions:r}=n(6745),a=n(1078),{prettify:o}=n(6997),i=n(8501);e.exports=class{constructor(e){this.externalEntities={},this.options=r(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const n=i.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new a(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:o(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},6997:(e,t)=>{"use strict";function n(e,t,i){let l;const s={};for(let u=0;u<e.length;u++){const c=e[u],f=r(c);let d="";if(d=void 0===i?f:i+"."+f,f===t.textNodeName)void 0===l?l=c[f]:l+=""+c[f];else{if(void 0===f)continue;if(c[f]){let e=n(c[f],t,d);const r=o(e,t);c[":@"]?a(e,c[":@"],d,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==s[f]&&s.hasOwnProperty(f)?(Array.isArray(s[f])||(s[f]=[s[f]]),s[f].push(e)):t.isArray(f,d,r)?s[f]=[e]:s[f]=e}}}return"string"==typeof l?l.length>0&&(s[t.textNodeName]=l):void 0!==l&&(s[t.textNodeName]=l),s}function r(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function a(e,t,n,r){if(t){const a=Object.keys(t),o=a.length;for(let i=0;i<o;i++){const o=a[i];r.isArray(o,n+"."+o,!0,!0)?e[o]=[t[o]]:e[o]=t[o]}}}function o(e,t){const n=Object.keys(e).length;return!!(0===n||1===n&&e[t.textNodeName])}t.prettify=function(e,t){return n(e,t)}},6311:e=>{"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){this.child.push({[e]:t})}addChild(e){e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},3300:(e,t)=>{"use strict";var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n)return n;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},7774:(e,t,n)=>{"use strict";var r=n(7294);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."}var o=Object.prototype.hasOwnProperty,i=/^[: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]*$/,l={},s={};function u(e){return!!o.call(s,e)||!o.call(l,e)&&(i.test(e)?s[e]=!0:(l[e]=!0,!1))}function c(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){f[e]=new c(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];f[t]=new c(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){f[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){f[e]=new c(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){f[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){f[e]=new c(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){f[e]=new c(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){f[e]=new c(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){f[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)}));var d=/[\-:]([a-z])/g;function p(e){return e[1].toUpperCase()}"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(d,p);f[t]=new c(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(d,p);f[t]=new c(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(d,p);f[t]=new c(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){f[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)})),f.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){f[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)}));var h={animationIterationCount:!0,aspectRatio:!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},m=["Webkit","ms","Moz","O"];Object.keys(h).forEach((function(e){m.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),h[t]=h[e]}))}));var g=/["'&<>]/;function v(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=g.exec(e);if(t){var n,r="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==n&&(r+=e.substring(a,n)),a=n+1,r+=t}e=a!==n?r+e.substring(a,n):r}return e}var y=/([A-Z])/g,b=/^ms-/,w=Array.isArray;function C(e,t){return{insertionMode:e,selectedValue:t}}var x=new Map;function S(e,t,n){if("object"!=typeof n)throw Error(a(62));for(var r in t=!0,n)if(o.call(n,r)){var i=n[r];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===r.indexOf("--")){var l=v(r);i=v((""+i).trim())}else{l=r;var s=x.get(l);void 0!==s||(s=v(l.replace(y,"-$1").toLowerCase().replace(b,"-ms-")),x.set(l,s)),l=s,i="number"==typeof i?0===i||o.call(h,r)?""+i:i+"px":v((""+i).trim())}t?(t=!1,e.push(' style="',l,":",i)):e.push(";",l,":",i)}}t||e.push('"')}function k(e,t,n,r){switch(n){case"style":return void S(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=f.hasOwnProperty(n)?f[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',v(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',v(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',v(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',v(r),'"')}}else if(u(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',v(r),'"')}}function N(e,t,n){if(null!=t){if(null!=n)throw Error(a(60));if("object"!=typeof t||!("__html"in t))throw Error(a(61));null!=(t=t.__html)&&e.push(""+t)}}function E(e,t,n,r){e.push(_(n));var a,i=n=null;for(a in t)if(o.call(t,a)){var l=t[a];if(null!=l)switch(a){case"children":n=l;break;case"dangerouslySetInnerHTML":i=l;break;default:k(e,r,a,l)}}return e.push(">"),N(e,i,n),"string"==typeof n?(e.push(v(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,A=new Map;function _(e){var t=A.get(e);if(void 0===t){if(!T.test(e))throw Error(a(65,e));t="<"+e,A.set(e,t)}return t}function I(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(a(395));return e.push(n),e.push('"></template>')}var O=/[<\u2028\u2029]/g;function R(e){return JSON.stringify(e).replace(O,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function P(e,t,n,r){return n.generateStaticMarkup?(e.push(v(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(v(t)),e=!0),e)}var M=Object.assign,q=Symbol.for("react.element"),G=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),B=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),$=Symbol.for("react.scope"),X=Symbol.for("react.debug_trace_mode"),Y=Symbol.for("react.legacy_hidden"),Q=Symbol.for("react.default_value"),K=Symbol.iterator;function Z(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 z:return"Fragment";case G:return"Portal";case L:return"Profiler";case F:return"StrictMode";case H:return"Suspense";case W:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case B:return(e.displayName||"Context")+".Consumer";case D:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U:return null!==(t=e.displayName||null)?t:Z(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return Z(e(t))}catch(e){}}return null}var J={};function ee(e,t){if(!(e=e.contextTypes))return J;var n,r={};for(n in e)r[n]=t[n];return r}var te=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(a(401))}else{if(null===n)throw Error(a(401));ne(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function ae(e){var t=e.parent;null!==t&&ae(t),e.context._currentValue2=e.value}function oe(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(a(402));e.depth===t.depth?ne(e,t):oe(e,t)}function ie(e,t){var n=t.parent;if(null===n)throw Error(a(402));e.depth===n.depth?ne(e,n):ie(e,n),t.context._currentValue2=t.value}function le(e){var t=te;t!==e&&(null===t?ae(e):null===e?re(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?oe(t,e):ie(t,e),te=e)}var se={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ue(e,t,n,r){var a=void 0!==e.state?e.state:null;e.updater=se,e.props=n,e.state=a;var o={queue:[],replace:!1};e._reactInternals=o;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue2:r,"function"==typeof(i=t.getDerivedStateFromProps)&&(a=null==(i=i(n,a))?a:M({},a,i),e.state=a),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&se.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,i=o.replace,o.queue=null,o.replace=!1,i&&1===t.length)e.state=t[0];else{for(o=i?t[0]:e.state,a=!0,i=i?1:0;i<t.length;i++){var l=t[i];null!=(l="function"==typeof l?l.call(e,o,n,r):l)&&(a?(a=!1,o=M({},o,l)):M(o,l))}e.state=o}else o.queue=null}var ce={id:1,overflow:""};function fe(e,t,n){var r=e.id;e=e.overflow;var a=32-de(r)-1;r&=~(1<<a),n+=1;var o=32-de(t)+a;if(30<o){var i=a-a%5;return o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,{id:1<<32-de(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var de=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(pe(e)/he|0)|0},pe=Math.log,he=Math.LN2,me="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ge=null,ve=null,ye=null,be=null,we=!1,Ce=!1,xe=0,Se=null,ke=0;function Ne(){if(null===ge)throw Error(a(321));return ge}function Ee(){if(0<ke)throw Error(a(312));return{memoizedState:null,queue:null,next:null}}function Te(){return null===be?null===ye?(we=!1,ye=be=Ee()):(we=!0,be=ye):null===be.next?(we=!1,be=be.next=Ee()):(we=!0,be=be.next),be}function Ae(){ve=ge=null,Ce=!1,ye=null,ke=0,be=Se=null}function _e(e,t){return"function"==typeof t?t(e):t}function Ie(e,t,n){if(ge=Ne(),be=Te(),we){var r=be.queue;if(t=r.dispatch,null!==Se&&void 0!==(n=Se.get(r))){Se.delete(r),r=be.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return be.memoizedState=r,[r,t]}return[be.memoizedState,t]}return e=e===_e?"function"==typeof t?t():t:void 0!==n?n(t):t,be.memoizedState=e,e=(e=be.queue={last:null,dispatch:null}).dispatch=Re.bind(null,ge,e),[be.memoizedState,e]}function Oe(e,t){if(ge=Ne(),t=void 0===t?null:t,null!==(be=Te())){var n=be.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var a=0;a<r.length&&a<t.length;a++)if(!me(t[a],r[a])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),be.memoizedState=[e,t],e}function Re(e,t,n){if(25<=ke)throw Error(a(301));if(e===ge)if(Ce=!0,e={action:n,next:null},null===Se&&(Se=new Map),void 0===(n=Se.get(t)))Se.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Pe(){throw Error(a(394))}function Me(){}var qe={readContext:function(e){return e._currentValue2},useContext:function(e){return Ne(),e._currentValue2},useMemo:Oe,useReducer:Ie,useRef:function(e){ge=Ne();var t=(be=Te()).memoizedState;return null===t?(e={current:e},be.memoizedState=e):t},useState:function(e){return Ie(_e,e)},useInsertionEffect:Me,useLayoutEffect:function(){},useCallback:function(e,t){return Oe((function(){return e}),t)},useImperativeHandle:Me,useEffect:Me,useDebugValue:Me,useDeferredValue:function(e){return Ne(),e},useTransition:function(){return Ne(),[!1,Pe]},useId:function(){var e=ve.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-de(e)-1)).toString(32)+t;var n=Ge;if(null===n)throw Error(a(404));return t=xe++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ne(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(a(407));return n()}},Ge=null,ze=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Fe(e){return console.error(e),null}function Le(){}function De(e,t,n,r,a,o,i,l){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:r,abortSet:a,legacyContext:o,context:i,treeContext:l};return a.add(s),s}function Be(e,t,n,r,a,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:a,textEmbedded:o}}function je(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function He(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function We(e,t,n,r,a){for(ge={},ve=t,xe=0,e=n(r,a);Ce;)Ce=!1,xe=0,ke+=1,be=null,e=n(r,a);return Ae(),e}function Ue(e,t,n,r){var o=n.render(),i=r.childContextTypes;if(null!=i){var l=t.legacyContext;if("function"!=typeof n.getChildContext)r=l;else{for(var s in n=n.getChildContext())if(!(s in i))throw Error(a(108,Z(r)||"Unknown",s));r=M({},l,n)}t.legacyContext=r,Xe(e,t,o),t.legacyContext=l}else Xe(e,t,o)}function Ve(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function $e(e,t,n,i,l){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){l=ee(n,t.legacyContext);var s=n.contextType;ue(s=new n(i,"object"==typeof s&&null!==s?s._currentValue2:l),n,i,l),Ue(e,t,s,n)}else{l=We(e,t,n,i,s=ee(n,t.legacyContext));var c=0!==xe;if("object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof)ue(l,n,i,s),Ue(e,t,l,n);else if(c){i=t.treeContext,t.treeContext=fe(i,1,0);try{Xe(e,t,l)}finally{t.treeContext=i}}else Xe(e,t,l)}else{if("string"!=typeof n){switch(n){case Y:case X:case F:case L:case z:case W:return void Xe(e,t,i.children);case $:throw Error(a(343));case H:e:{n=t.blockedBoundary,l=t.blockedSegment,s=i.fallback,i=i.children;var f={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:c=new Set,errorDigest:null},d=Be(0,l.chunks.length,f,l.formatContext,!1,!1);l.children.push(d),l.lastPushedText=!1;var p=Be(0,0,null,l.formatContext,!1,!1);p.parentFlushed=!0,t.blockedBoundary=f,t.blockedSegment=p;try{if(Qe(e,t,i),e.responseState.generateStaticMarkup||p.lastPushedText&&p.textEmbedded&&p.chunks.push("\x3c!-- --\x3e"),p.status=1,Je(f,p),0===f.pendingTasks)break e}catch(t){p.status=4,f.forceClientRender=!0,f.errorDigest=je(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=l}t=De(e,s,n,d,c,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case j:if(i=We(e,t,n.render,i,l),0!==xe){n=t.treeContext,t.treeContext=fe(n,1,0);try{Xe(e,t,i)}finally{t.treeContext=n}}else Xe(e,t,i);return;case U:return void $e(e,t,n=n.type,i=Ve(n,i),l);case D:if(l=i.children,n=n._context,i=i.value,s=n._currentValue2,n._currentValue2=i,te=i={parent:c=te,depth:null===c?0:c.depth+1,context:n,parentValue:s,value:i},t.context=i,Xe(e,t,l),null===(e=te))throw Error(a(403));return i=e.parentValue,e.context._currentValue2=i===Q?e.context._defaultValue:i,e=te=e.parent,void(t.context=e);case B:return void Xe(e,t,i=(i=i.children)(n._currentValue2));case V:return void $e(e,t,n=(l=n._init)(n._payload),i=Ve(n,i),void 0)}throw Error(a(130,null==n?n:typeof n,""))}switch(s=function(e,t,n,i,l){switch(t){case"select":e.push(_("select"));var s=null,c=null;for(h in n)if(o.call(n,h)){var f=n[h];if(null!=f)switch(h){case"children":s=f;break;case"dangerouslySetInnerHTML":c=f;break;case"defaultValue":case"value":break;default:k(e,i,h,f)}}return e.push(">"),N(e,c,s),s;case"option":c=l.selectedValue,e.push(_("option"));var d=f=null,p=null,h=null;for(s in n)if(o.call(n,s)){var m=n[s];if(null!=m)switch(s){case"children":f=m;break;case"selected":p=m;break;case"dangerouslySetInnerHTML":h=m;break;case"value":d=m;default:k(e,i,s,m)}}if(null!=c)if(n=null!==d?""+d:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(f),w(c)){for(i=0;i<c.length;i++)if(""+c[i]===n){e.push(' selected=""');break}}else""+c===n&&e.push(' selected=""');else p&&e.push(' selected=""');return e.push(">"),N(e,h,f),f;case"textarea":for(f in e.push(_("textarea")),h=c=s=null,n)if(o.call(n,f)&&null!=(d=n[f]))switch(f){case"children":h=d;break;case"value":s=d;break;case"defaultValue":c=d;break;case"dangerouslySetInnerHTML":throw Error(a(91));default:k(e,i,f,d)}if(null===s&&null!==c&&(s=c),e.push(">"),null!=h){if(null!=s)throw Error(a(92));if(w(h)&&1<h.length)throw Error(a(93));s=""+h}return"string"==typeof s&&"\n"===s[0]&&e.push("\n"),null!==s&&e.push(v(""+s)),null;case"input":for(c in e.push(_("input")),d=h=f=s=null,n)if(o.call(n,c)&&null!=(p=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(a(399,"input"));case"defaultChecked":d=p;break;case"defaultValue":f=p;break;case"checked":h=p;break;case"value":s=p;break;default:k(e,i,c,p)}return null!==h?k(e,i,"checked",h):null!==d&&k(e,i,"checked",d),null!==s?k(e,i,"value",s):null!==f&&k(e,i,"value",f),e.push("/>"),null;case"menuitem":for(var g in e.push(_("menuitem")),n)if(o.call(n,g)&&null!=(s=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(a(400));default:k(e,i,g,s)}return e.push(">"),null;case"title":for(m in e.push(_("title")),s=null,n)if(o.call(n,m)&&null!=(c=n[m]))switch(m){case"children":s=c;break;cas