@cimulate/copilot-widget 0.11.1 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(ke,Pe){typeof exports=="object"&&typeof module!="undefined"?Pe(exports):typeof define=="function"&&define.amd?define(["exports"],Pe):(ke=typeof globalThis!="undefined"?globalThis:ke||self,Pe(ke["cimulate-copilot-widget"]={}))})(this,function(ke){"use strict";var h4=Object.defineProperty,p4=Object.defineProperties;var m4=Object.getOwnPropertyDescriptors;var Xl=Object.getOwnPropertySymbols;var Bb=Object.prototype.hasOwnProperty,Ub=Object.prototype.propertyIsEnumerable;var js=(ke,Pe)=>(Pe=Symbol[ke])?Pe:Symbol.for("Symbol."+ke),g4=ke=>{throw TypeError(ke)},Jl=Math.pow,sp=(ke,Pe,Ve)=>Pe in ke?h4(ke,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):ke[Pe]=Ve,Q=(ke,Pe)=>{for(var Ve in Pe||(Pe={}))Bb.call(Pe,Ve)&&sp(ke,Ve,Pe[Ve]);if(Xl)for(var Ve of Xl(Pe))Ub.call(Pe,Ve)&&sp(ke,Ve,Pe[Ve]);return ke},$e=(ke,Pe)=>p4(ke,m4(Pe));var Fi=(ke,Pe)=>{var Ve={};for(var nt in ke)Bb.call(ke,nt)&&Pe.indexOf(nt)<0&&(Ve[nt]=ke[nt]);if(ke!=null&&Xl)for(var nt of Xl(ke))Pe.indexOf(nt)<0&&Ub.call(ke,nt)&&(Ve[nt]=ke[nt]);return Ve};var Je=(ke,Pe,Ve)=>sp(ke,typeof Pe!="symbol"?Pe+"":Pe,Ve);var tn=(ke,Pe,Ve)=>new Promise((nt,gt)=>{var lt=yt=>{try{Ot(Ve.next(yt))}catch(nn){gt(nn)}},we=yt=>{try{Ot(Ve.throw(yt))}catch(nn){gt(nn)}},Ot=yt=>yt.done?nt(yt.value):Promise.resolve(yt.value).then(lt,we);Ot((Ve=Ve.apply(ke,Pe)).next())}),pr=function(ke,Pe){this[0]=ke,this[1]=Pe},Zl=(ke,Pe,Ve)=>{var nt=(we,Ot,yt,nn)=>{try{var Bi=Ve[we](Ot),$s=(Ot=Bi.value)instanceof pr,ec=Bi.done;Promise.resolve($s?Ot[0]:Ot).then(Bn=>$s?nt(we==="return"?we:"next",Ot[1]?{done:Bn.done,value:Bn.value}:Bn,yt,nn):yt({value:Bn,done:ec})).catch(Bn=>nt("throw",Bn,yt,nn))}catch(Bn){nn(Bn)}},gt=we=>lt[we]=Ot=>new Promise((yt,nn)=>nt(we,Ot,yt,nn)),lt={};return Ve=Ve.apply(ke,Pe),lt[js("asyncIterator")]=()=>lt,gt("next"),gt("throw"),gt("return"),lt},op=ke=>{var Pe=ke[js("asyncIterator")],Ve=!1,nt,gt={};return Pe==null?(Pe=ke[js("iterator")](),nt=lt=>gt[lt]=we=>Pe[lt](we)):(Pe=Pe.call(ke),nt=lt=>gt[lt]=we=>{if(Ve){if(Ve=!1,lt==="throw")throw we;return we}return Ve=!0,{done:!1,value:new pr(new Promise(Ot=>{var yt=Pe[lt](we);yt instanceof Object||g4("Object expected"),Ot(yt)}),1)}}),gt[js("iterator")]=()=>gt,nt("next"),"throw"in Pe?nt("throw"):gt.throw=lt=>{throw lt},"return"in Pe&&nt("return"),gt},Hb=(ke,Pe,Ve)=>(Pe=ke[js("asyncIterator")])?Pe.call(ke):(ke=ke[js("iterator")](),Pe={},Ve=(nt,gt)=>(gt=ke[nt])&&(Pe[nt]=lt=>new Promise((we,Ot,yt)=>(lt=gt.call(ke,lt),yt=lt.done,Promise.resolve(lt.value).then(nn=>we({value:nn,done:yt}),Ot)))),Ve("next"),Ve("return"),Pe);var Pe=document.createElement("style");Pe.textContent=`.cim-widget-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;background-color:transparent;border:1px solid transparent;border-radius:4px;padding:6px;cursor:pointer;color:#333;font-size:18px;&:hover{background-color:#f0f0f0}&:disabled,&[disabled]{opacity:.6;background-color:#f9f9f9;cursor:not-allowed}}.cim-widget-search-bar{display:flex;align-items:center;justify-content:space-between;padding:1px;border:1px solid var(--cim-widget-border-color);border-radius:4px;font-family:var(--cim-widget-font-family)}.cim-widget-search-input{width:100%;height:100%;margin-left:8px;background-color:transparent;border:none;outline:none}.cim-widget-product-tile{display:inline-flex;flex-direction:column;background-color:var(--cim-widget-background-color, #ffffff);border-radius:4px;box-shadow:0 1px 3px #0000001a}.cim-widget-product-tile.embedded,.cim-widget-product-tile.standalone{min-width:15dvw;max-width:30dvw}.cim-widget-product-tile-image{object-fit:contain;width:100%;height:auto;max-height:25dvh;border-top-left-radius:4px;border-top-right-radius:4px}.cim-widget-product-tile-details{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:.5rem}.cim-widget-product-tile-brand{color:var(--cim-widget-primary-color)}.cim-widget-product-tile-pdp,.cim-widget-product-tile-name,.cim-widget-product-tile-price,.cim-widget-product-tile-pid{display:inline-block;line-height:1.25rem;font-size:.875rem}.cim-widget-product-tile-name{font-weight:700}.cim-widget-product-tile-pdp{color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 85%,black);text-decoration:none;word-wrap:break-word;&:hover{text-decoration:underline}}.cim-widget-product-tile-pdp-arrow{display:inline-block;transform:rotate(-45deg)}.cim-widget-product-tile-footer{display:flex;justify-content:space-between;align-items:center;padding-top:.5rem;gap:.5rem}.cim-widget-product-tile-price{font-weight:700}@media (max-width: 576px){.cim-widget-product-tile.embedded,.cim-widget-product-tile.standalone{min-width:30dvw;max-width:45dvw}.cim-widget-product-tile-pdp,.cim-widget-product-tile-name{display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}.cim-widget-display-products{flex-direction:column;overflow-x:hidden}.cim-widget-product-list{flex:1;display:inline-flex;gap:.5rem;padding:.5rem .5rem .5rem 0;overflow-x:auto}.cim-widget-error-message-text{display:inline-flex;align-items:center;gap:.5rem;color:#e53e3e;&.embedded svg{min-width:1.25rem;height:1.25rem}}.cim-widget-button{padding:.5rem;background-color:var(--cim-widget-primary-color, #3182ce);border-radius:4px;border-color:var(--cim-widget-primary-color, #3182ce);border-style:solid;color:#fff;font-family:var(--cim-widget-font-family, inherit);cursor:pointer;&:disabled,&[disabled]{cursor:not-allowed}}.cim-widget-close-button{display:flex;align-items:center;justify-content:center;padding:.5rem;border-radius:4px;border:1px solid transparent;background-color:transparent;cursor:pointer;&:hover{background-color:#f0f0f0}}.cim-widget-suggestion-container.embedded{display:inline-flex;flex-wrap:wrap;gap:.5rem}.cim-widget-suggestion-button.embedded{height:auto;padding:.2rem .5rem;border:1px solid var(--cim-widget-primary-color);border-radius:4px;background-color:transparent;font-size:.875rem;font-weight:600;font-family:inherit;color:var(--cim-widget-primary-color);white-space:normal;word-break:break-word;text-align:left;cursor:pointer}.cim-widget-suggestion-button.embedded:hover{background-color:#fff;color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-suggestion-container.standalone{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.5rem;padding:.5rem 0}@media (max-width: 768px){.cim-widget-suggestion-container.standalone{grid-template-columns:repeat(1,1fr)}}.cim-widget-suggestion-button.standalone{display:inline-flex;align-items:center;padding:.5rem 1rem;border:1px solid var(--cim-widget-primary-color);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent);font-weight:700;color:var(--cim-widget-primary-color);text-align:left;white-space:normal;word-break:break-word}.cim-widget-suggestion-button.standalone:hover{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 15%,transparent);color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-suggestion-button:disabled{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a;cursor:not-allowed}.cim-widget-suggestion-button:disabled:hover{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a}.cim-widget-blinking-cursor{display:inline-flex;margin-left:2px;line-height:0;animation:cursor-blink 1.5s steps(2) infinite}@keyframes cursor-blink{0%{opacity:0}}.cim-widget-ul{list-style-type:disc;padding-left:1.5rem}.cim-widget-ol{list-style-type:decimal;padding-left:1.5rem}.cim-widget-table{width:100%;margin-top:1rem;margin-bottom:1rem;border-radius:.5rem;border:1px solid #8a8a8a;border-collapse:collapse}.cim-widget-thead{background-color:#f0f0f0;border-bottom-width:2px;border-color:#8a8a8a}.cim-widget-tr{border-bottom-width:1px;border-color:#8a8a8a}.cim-widget-th{padding:.5rem 1rem;text-align:left;font-weight:700;border-bottom-width:1px;border-color:#8a8a8a}.cim-widget-td{padding:.5rem 1rem;border-bottom-width:1px;border-color:#8a8a8a}.cim-widget-message-container pre{margin:0}.cim-widget-progress-message.embedded,.cim-widget-progress-message.standalone{display:flex;align-items:center}.cim-widget-progress-text.embedded{font-size:.85rem;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 80%,white);line-height:1rem;line-clamp:3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cim-widget-progress-text.standalone{font-size:inherit;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 85%,white)}.cim-widget-thought-container{padding-left:.5rem;margin:.5rem;border-left:2px solid var(--cim-widget-primary-color)}p.cim-widget-progress-thought{margin-bottom:1rem;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 70%,white);line-height:1;font-size:.875rem}.cim-widget-thought-context-button{display:inline-flex;align-items:center;justify-content:space-between;padding:.25rem;min-width:84px;background-color:transparent;border-color:transparent;color:var(--cim-widget-primary-color);font-weight:700;cursor:pointer;&:hover{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent);color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}}.cim-widget-message-icon.progress-icon.embedded{color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 50%,white)}.cim-widget-refined-search{display:flex;flex-direction:column}.cim-widget-refined-search-query{display:inline-flex;align-items:center;color:var(--cim-widget-secondary-color)}.cim-widget-message-icon.refined-search-icon{font-size:1.5rem;&.embedded,&.standalone{color:var(--cim-widget-primary-color)}}.cim-widget-user-message{display:flex;align-items:center}.cim-widget-user-message.embedded{display:inline-flex;align-self:flex-end;border-radius:8px;padding:.5rem 1rem;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 10%,transparent);max-width:80%;min-width:30%}.cim-widget-user-message.standalone{margin:.5rem 0}.cim-widget-user-message-text{font-weight:700;margin-bottom:.5rem}.cim-widget-message-icon.user-message-icon{margin-right:.5rem}.cim-widget-message-icon.user-message-icon.embedded{color:var(--cim-widget-primary-color)}.cim-widget-user-search{display:flex}.cim-widget-user-search.embedded{display:inline-flex;align-self:flex-end;border-radius:8px;padding:.5rem 1rem;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 10%,transparent);max-width:80%;min-width:30%;gap:4px}.cim-widget-user-search.standalone{flex-direction:column;padding-top:.5rem;padding-bottom:.5rem}.cim-widget-user-search-query{display:inline-flex}.cim-widget-message-icon.user-search-icon.embedded,.cim-widget-message-icon.user-search-icon.standalone{font-size:1.5rem;color:var(--cim-widget-primary-color)}.cim-widget-user-search-facet-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.25rem}.cim-widget-user-search-facets{display:flex;flex-direction:column;padding:.25rem}.cim-widget-facet-pill{display:inline-flex;align-items:center;margin-left:4px;padding:.25rem .5rem;color:var(--cim-widget-primary-color);border-radius:9999px;font-size:.75rem;font-weight:700;&.embedded{background-color:#ffffff90}&.standalone{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent)}}.cim-widget-user-search-facet-category{font-size:.875rem;font-weight:700;word-wrap:break-word}.cim-widget-user-search-facet-values{font-size:.675rem}.message{border-radius:.5rem}.widget-message{display:flex;align-self:flex-start}.user-message{display:flex;align-self:flex-end;padding:1rem}.cim-widget-reconnect-message{font-size:.85rem;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 80%,white)}.cim-widget-message-group,.cim-widget-message{display:flex;flex-direction:column}.cim-widget-message-group{gap:.5rem;padding:1rem;margin-bottom:1rem;border-radius:8px;&.standalone{padding:0 1rem}.cim-widget-message-group-child{max-width:100%;margin-bottom:.25rem}}.cim-widget-message-group.embedded{max-width:80%;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent)}.cim-widget-message{margin-bottom:1rem}.cim-widget-message.standalone{border-radius:0;background-color:transparent;padding:0 1rem}.cim-widget-message.embedded{margin-bottom:1rem}.cim-widget-embedded-chat{width:100%;height:100%;margin:0 auto;border-radius:8px;border:1px solid var(--cim-widget-border-color)}.cim-widget-embedded-chat>.cim-widget-message-container{padding-left:1rem;padding-right:1rem}.cim-widget-dialog{position:fixed;width:35dvw;height:55dvh;padding:1rem;border-radius:.5rem;border:1px solid var(--cim-widget-border-color);font-size:.875rem;&.bottom-left{bottom:.5rem;left:.5rem}&.bottom-right{bottom:.5rem;right:.5rem}}.cim-widget-dialog-content{display:flex;flex-direction:column;height:100%}.cim-widget-dialog-header{display:inline-flex;align-items:center;width:100%;margin-bottom:.5rem;gap:8px}.cim-widget-dialog-controls{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center}.cim-widget-dialog-logo{object-fit:contain;max-width:50%;max-height:3rem}.cim-widget-dialog-title{margin-top:0;margin-bottom:0}@media (576px <= width <= 768px){.cim-widget-dialog{width:50%;border-radius:0}}@media (max-width: 576px){.cim-widget-dialog{height:100%;width:100%;border-radius:0;&.bottom-left{bottom:0;left:0}&.bottom-right{bottom:0;right:0}}}.cim-widget-modal-container{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;height:100dvh;width:100dvw}.cim-widget-modal-backdrop{position:absolute;top:0;left:0;height:100%;width:100%;background:#00000080}.cim-widget-modal{position:fixed;width:70dvw;height:80dvh;padding:1rem;border-radius:.5rem;border:1px solid var(--cim-widget-border-color);overflow-y:hidden;&.fullscreen{height:100%;width:100%;border-radius:0}}.cim-widget-modal-content{display:flex;flex-direction:column;height:100%}.cim-widget-modal-header{display:inline-flex;align-items:center;width:100%;margin-bottom:1rem;gap:8px}.cim-widget-modal-controls{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center}.cim-widget-modal-logo{object-fit:contain;max-width:50%;max-height:3rem}.cim-widget-modal-title{margin-top:0;margin-bottom:0}@media (max-width: 576px){.cim-widget-modal{height:100%;width:100%;border-radius:0}}.cim-widget-container{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--cim-widget-background-color);font-family:var(--cim-widget-font-family, inherit);color:var(--cim-widget-font-color, inherit)}.cim-widget-message-container p{margin:.25rem 0;padding:0;+p{margin-top:.5rem}}.cim-widget-message-container span{line-height:1}.cim-widget-header{font-weight:700;color:inherit}.cim-widget-header.h1{margin-top:2rem;margin-bottom:2rem;font-size:2rem}.cim-widget-header.h2{margin-top:1.5rem;margin-bottom:1.5rem;font-size:1.5rem}.cim-widget-header.h3{margin-top:1rem;margin-bottom:1rem;font-size:1.2rem}.cim-widget-link{color:var(--cim-widget-primary-color);text-decoration:underline;cursor:pointer}.cim-widget-link:hover{color:var(--cim-widget-secondary-color);text-decoration:none}.cim-widget-text{line-height:1.5;color:inherit;margin-bottom:.25rem}.cim-widget-text.italic{font-style:italic}.cim-widget-text.bold{font-weight:700}.cim-widget-message-container{flex:1;overflow-y:auto;padding:1rem 0}.cim-widget-message-icon{display:inline-flex;align-items:center;margin-right:.25rem}.cim-widget-message-icon.embedded{font-size:1rem;color:var(--cim-widget-secondary-color)}.cim-widget-message-icon.standalone{font-size:1.5rem;color:var(--cim-widget-primary-color)}
1
+ (function(ke,Pe){typeof exports=="object"&&typeof module!="undefined"?Pe(exports):typeof define=="function"&&define.amd?define(["exports"],Pe):(ke=typeof globalThis!="undefined"?globalThis:ke||self,Pe(ke["cimulate-copilot-widget"]={}))})(this,function(ke){"use strict";var h4=Object.defineProperty,p4=Object.defineProperties;var m4=Object.getOwnPropertyDescriptors;var Xl=Object.getOwnPropertySymbols;var Bb=Object.prototype.hasOwnProperty,Ub=Object.prototype.propertyIsEnumerable;var $s=(ke,Pe)=>(Pe=Symbol[ke])?Pe:Symbol.for("Symbol."+ke),g4=ke=>{throw TypeError(ke)},Jl=Math.pow,sp=(ke,Pe,Ve)=>Pe in ke?h4(ke,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):ke[Pe]=Ve,Q=(ke,Pe)=>{for(var Ve in Pe||(Pe={}))Bb.call(Pe,Ve)&&sp(ke,Ve,Pe[Ve]);if(Xl)for(var Ve of Xl(Pe))Ub.call(Pe,Ve)&&sp(ke,Ve,Pe[Ve]);return ke},$e=(ke,Pe)=>p4(ke,m4(Pe));var Fi=(ke,Pe)=>{var Ve={};for(var nt in ke)Bb.call(ke,nt)&&Pe.indexOf(nt)<0&&(Ve[nt]=ke[nt]);if(ke!=null&&Xl)for(var nt of Xl(ke))Pe.indexOf(nt)<0&&Ub.call(ke,nt)&&(Ve[nt]=ke[nt]);return Ve};var Je=(ke,Pe,Ve)=>sp(ke,typeof Pe!="symbol"?Pe+"":Pe,Ve);var tn=(ke,Pe,Ve)=>new Promise((nt,gt)=>{var lt=yt=>{try{It(Ve.next(yt))}catch(nn){gt(nn)}},we=yt=>{try{It(Ve.throw(yt))}catch(nn){gt(nn)}},It=yt=>yt.done?nt(yt.value):Promise.resolve(yt.value).then(lt,we);It((Ve=Ve.apply(ke,Pe)).next())}),pr=function(ke,Pe){this[0]=ke,this[1]=Pe},Zl=(ke,Pe,Ve)=>{var nt=(we,It,yt,nn)=>{try{var Bi=Ve[we](It),Vs=(It=Bi.value)instanceof pr,ec=Bi.done;Promise.resolve(Vs?It[0]:It).then(Bn=>Vs?nt(we==="return"?we:"next",It[1]?{done:Bn.done,value:Bn.value}:Bn,yt,nn):yt({value:Bn,done:ec})).catch(Bn=>nt("throw",Bn,yt,nn))}catch(Bn){nn(Bn)}},gt=we=>lt[we]=It=>new Promise((yt,nn)=>nt(we,It,yt,nn)),lt={};return Ve=Ve.apply(ke,Pe),lt[$s("asyncIterator")]=()=>lt,gt("next"),gt("throw"),gt("return"),lt},op=ke=>{var Pe=ke[$s("asyncIterator")],Ve=!1,nt,gt={};return Pe==null?(Pe=ke[$s("iterator")](),nt=lt=>gt[lt]=we=>Pe[lt](we)):(Pe=Pe.call(ke),nt=lt=>gt[lt]=we=>{if(Ve){if(Ve=!1,lt==="throw")throw we;return we}return Ve=!0,{done:!1,value:new pr(new Promise(It=>{var yt=Pe[lt](we);yt instanceof Object||g4("Object expected"),It(yt)}),1)}}),gt[$s("iterator")]=()=>gt,nt("next"),"throw"in Pe?nt("throw"):gt.throw=lt=>{throw lt},"return"in Pe&&nt("return"),gt},Hb=(ke,Pe,Ve)=>(Pe=ke[$s("asyncIterator")])?Pe.call(ke):(ke=ke[$s("iterator")](),Pe={},Ve=(nt,gt)=>(gt=ke[nt])&&(Pe[nt]=lt=>new Promise((we,It,yt)=>(lt=gt.call(ke,lt),yt=lt.done,Promise.resolve(lt.value).then(nn=>we({value:nn,done:yt}),It)))),Ve("next"),Ve("return"),Pe);var Pe=document.createElement("style");Pe.textContent=`.cim-widget-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;background-color:transparent;border:1px solid transparent;border-radius:4px;padding:6px;cursor:pointer;color:#333;font-size:18px;&:hover{background-color:#f0f0f0}&:disabled,&[disabled]{opacity:.6;background-color:#f9f9f9;cursor:not-allowed}}.cim-widget-search-bar{display:flex;align-items:center;justify-content:space-between;padding:1px;border:1px solid var(--cim-widget-border-color);border-radius:4px;font-family:var(--cim-widget-font-family)}.cim-widget-search-input{width:100%;height:100%;margin-left:8px;background-color:transparent;border:none;outline:none}.cim-widget-product-tile{display:inline-flex;flex-direction:column;background-color:var(--cim-widget-background-color, #ffffff);border-radius:4px;box-shadow:0 1px 3px #0000001a}.cim-widget-product-tile.embedded,.cim-widget-product-tile.standalone{min-width:15dvw;max-width:30dvw}.cim-widget-product-tile-image{object-fit:contain;width:100%;height:auto;max-height:25dvh;border-top-left-radius:4px;border-top-right-radius:4px}.cim-widget-product-tile-details{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:.5rem}.cim-widget-product-tile-brand{color:var(--cim-widget-primary-color)}.cim-widget-product-tile-pdp,.cim-widget-product-tile-name,.cim-widget-product-tile-price,.cim-widget-product-tile-pid{display:inline-block;line-height:1.25rem;font-size:.875rem}.cim-widget-product-tile-name{font-weight:700}.cim-widget-product-tile-pdp{color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 85%,black);text-decoration:none;word-wrap:break-word;&:hover{text-decoration:underline}}.cim-widget-product-tile-pdp-arrow{display:inline-block;transform:rotate(-45deg)}.cim-widget-product-tile-footer{display:flex;justify-content:space-between;align-items:center;padding-top:.5rem;gap:.5rem}.cim-widget-product-tile-price{font-weight:700}@media (max-width: 576px){.cim-widget-product-tile.embedded,.cim-widget-product-tile.standalone{min-width:30dvw;max-width:45dvw}.cim-widget-product-tile-pdp,.cim-widget-product-tile-name{display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}.cim-widget-display-products{flex-direction:column;overflow-x:hidden}.cim-widget-product-list{flex:1;display:inline-flex;gap:.5rem;padding:.5rem .5rem .5rem 0;overflow-x:auto}.cim-widget-error-message-text{display:inline-flex;align-items:center;gap:.5rem;color:#e53e3e;&.embedded svg{min-width:1.25rem;height:1.25rem}}.cim-widget-button{padding:.5rem;background-color:var(--cim-widget-primary-color, #3182ce);border-radius:4px;border-color:var(--cim-widget-primary-color, #3182ce);border-style:solid;color:#fff;font-family:var(--cim-widget-font-family, inherit);cursor:pointer;&:disabled,&[disabled]{cursor:not-allowed}}.cim-widget-close-button{display:flex;align-items:center;justify-content:center;padding:.5rem;border-radius:4px;border:1px solid transparent;background-color:transparent;cursor:pointer;&:hover{background-color:#f0f0f0}}.cim-widget-suggestion-container.embedded{display:inline-flex;flex-wrap:wrap;gap:.5rem}.cim-widget-suggestion-button.embedded{height:auto;padding:.2rem .5rem;border:1px solid var(--cim-widget-primary-color);border-radius:4px;background-color:transparent;font-size:.875rem;font-weight:600;font-family:inherit;color:var(--cim-widget-primary-color);white-space:normal;word-break:break-word;text-align:left;cursor:pointer}.cim-widget-suggestion-button.embedded:hover{background-color:#fff;color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-suggestion-container.standalone{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.5rem;padding:.5rem 0}@media (max-width: 768px){.cim-widget-suggestion-container.standalone{grid-template-columns:repeat(1,1fr)}}.cim-widget-suggestion-button.standalone{display:inline-flex;align-items:center;padding:.5rem 1rem;border:1px solid var(--cim-widget-primary-color);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent);font-weight:700;color:var(--cim-widget-primary-color);text-align:left;white-space:normal;word-break:break-word}.cim-widget-suggestion-button.standalone:hover{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 15%,transparent);color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-suggestion-button:disabled{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a;cursor:not-allowed}.cim-widget-suggestion-button:disabled:hover{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a}.cim-widget-blinking-cursor{display:inline-flex;margin-left:2px;line-height:0;animation:cursor-blink 1.5s steps(2) infinite}@keyframes cursor-blink{0%{opacity:0}}.cim-widget-ul{list-style-type:disc;padding-left:1.5rem}.cim-widget-ol{list-style-type:decimal;padding-left:1.5rem}.cim-widget-table{width:100%;margin-top:1rem;margin-bottom:1rem;border-radius:.5rem;border:1px solid #8a8a8a;border-collapse:collapse}.cim-widget-thead{background-color:#f0f0f0;border-bottom-width:2px;border-color:#8a8a8a}.cim-widget-tr{border-bottom-width:1px;border-color:#8a8a8a}.cim-widget-th{padding:.5rem 1rem;text-align:left;font-weight:700;border-bottom-width:1px;border-color:#8a8a8a}.cim-widget-td{padding:.5rem 1rem;border-bottom-width:1px;border-color:#8a8a8a}.cim-widget-message-container pre{margin:0}.cim-widget-progress-message.embedded,.cim-widget-progress-message.standalone{display:flex;align-items:center}.cim-widget-progress-text.embedded{font-size:.85rem;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 80%,white);line-height:1rem;line-clamp:3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cim-widget-progress-text.standalone{font-size:inherit;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 85%,white)}.cim-widget-thought-container{padding-left:.5rem;margin:.5rem;border-left:2px solid var(--cim-widget-primary-color)}p.cim-widget-progress-thought{margin-bottom:1rem;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 70%,white);line-height:1;font-size:.875rem}.cim-widget-thought-context-button{display:inline-flex;align-items:center;justify-content:space-between;padding:.25rem;min-width:84px;background-color:transparent;border-color:transparent;color:var(--cim-widget-primary-color);font-weight:700;cursor:pointer;&:hover{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent);color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}}.cim-widget-message-icon.progress-icon.embedded{color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 50%,white)}.cim-widget-refined-search{display:flex;flex-direction:column}.cim-widget-refined-search-query{display:inline-flex;align-items:center;color:var(--cim-widget-secondary-color)}.cim-widget-message-icon.refined-search-icon{font-size:1.5rem;&.embedded,&.standalone{color:var(--cim-widget-primary-color)}}.cim-widget-user-message{display:flex;align-items:center}.cim-widget-user-message.embedded{display:inline-flex;align-self:flex-end;border-radius:8px;padding:.5rem 1rem;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 10%,transparent);max-width:80%;min-width:30%}.cim-widget-user-message.standalone{margin:.5rem 0}.cim-widget-user-message-text{font-weight:700;margin-bottom:.5rem}.cim-widget-message-icon.user-message-icon{margin-right:.5rem}.cim-widget-message-icon.user-message-icon.embedded{color:var(--cim-widget-primary-color)}.cim-widget-user-search{display:flex}.cim-widget-user-search.embedded{display:inline-flex;align-self:flex-end;border-radius:8px;padding:.5rem 1rem;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 10%,transparent);max-width:80%;min-width:30%;gap:4px}.cim-widget-user-search.standalone{flex-direction:column;padding-top:.5rem;padding-bottom:.5rem}.cim-widget-user-search-query{display:inline-flex}.cim-widget-message-icon.user-search-icon.embedded,.cim-widget-message-icon.user-search-icon.standalone{font-size:1.5rem;color:var(--cim-widget-primary-color)}.cim-widget-user-search-facet-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.25rem}.cim-widget-user-search-facets{display:flex;flex-direction:column;padding:.25rem}.cim-widget-facet-pill{display:inline-flex;align-items:center;margin-left:4px;padding:.25rem .5rem;color:var(--cim-widget-primary-color);border-radius:9999px;font-size:.75rem;font-weight:700;&.embedded{background-color:#ffffff90}&.standalone{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent)}}.cim-widget-user-search-facet-category{font-size:.875rem;font-weight:700;word-wrap:break-word}.cim-widget-user-search-facet-values{font-size:.675rem}.message{border-radius:.5rem}.widget-message{display:flex;align-self:flex-start}.user-message{display:flex;align-self:flex-end;padding:1rem}.cim-widget-reconnect-message{font-size:.75rem;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 75%,white)}.cim-widget-connection-status-icon{display:inline-block;width:.5rem;height:.5rem;border-radius:50%;margin-right:.25rem;margin-bottom:.2rem;vertical-align:middle;&.connected{background-color:#00d600}&.disconnected{background-color:#c9c7c7}}.cim-widget-message-group,.cim-widget-message{display:flex;flex-direction:column}.cim-widget-message-group{gap:.5rem;padding:1rem;margin-bottom:1rem;border-radius:8px;&.standalone{padding:0 1rem}.cim-widget-message-group-child{max-width:100%;margin-bottom:.25rem}}.cim-widget-message-group.embedded{max-width:80%;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent)}.cim-widget-message{margin-bottom:1rem}.cim-widget-message.standalone{border-radius:0;background-color:transparent;padding:0 1rem}.cim-widget-message.embedded{margin-bottom:1rem}.cim-widget-embedded-chat{width:100%;height:100%;margin:0 auto;border-radius:8px;border:1px solid var(--cim-widget-border-color)}.cim-widget-embedded-chat>.cim-widget-message-container{padding-left:1rem;padding-right:1rem}.cim-widget-dialog{position:fixed;width:35dvw;height:55dvh;padding:1rem;border-radius:.5rem;border:1px solid var(--cim-widget-border-color);font-size:.875rem;&.bottom-left{bottom:.5rem;left:.5rem}&.bottom-right{bottom:.5rem;right:.5rem}}.cim-widget-dialog-content{display:flex;flex-direction:column;height:100%}.cim-widget-dialog-header{display:inline-flex;align-items:center;width:100%;margin-bottom:.5rem;gap:8px}.cim-widget-dialog-controls{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center}.cim-widget-dialog-logo{object-fit:contain;max-width:50%;max-height:3rem}.cim-widget-dialog-title{margin-top:0;margin-bottom:0}@media (576px <= width <= 768px){.cim-widget-dialog{width:50%;border-radius:0}}@media (max-width: 576px){.cim-widget-dialog{height:100%;width:100%;border-radius:0;&.bottom-left{bottom:0;left:0}&.bottom-right{bottom:0;right:0}}}.cim-widget-modal-container{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;height:100dvh;width:100dvw}.cim-widget-modal-backdrop{position:absolute;top:0;left:0;height:100%;width:100%;background:#00000080}.cim-widget-modal{position:fixed;width:70dvw;height:80dvh;padding:1rem;border-radius:.5rem;border:1px solid var(--cim-widget-border-color);overflow-y:hidden;&.fullscreen{height:100%;width:100%;border-radius:0}}.cim-widget-modal-content{display:flex;flex-direction:column;height:100%}.cim-widget-modal-header{display:inline-flex;align-items:center;width:100%;margin-bottom:1rem;gap:8px}.cim-widget-modal-controls{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center}.cim-widget-modal-logo{object-fit:contain;max-width:50%;max-height:3rem}.cim-widget-modal-title{margin-top:0;margin-bottom:0}@media (max-width: 576px){.cim-widget-modal{height:100%;width:100%;border-radius:0}}.cim-widget-container{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--cim-widget-background-color);font-family:var(--cim-widget-font-family, inherit);color:var(--cim-widget-font-color, inherit)}.cim-widget-message-container p{margin:.25rem 0;padding:0;+p{margin-top:.5rem}}.cim-widget-message-container span{line-height:1}.cim-widget-header{font-weight:700;color:inherit}.cim-widget-header.h1{margin-top:2rem;margin-bottom:2rem;font-size:2rem}.cim-widget-header.h2{margin-top:1.5rem;margin-bottom:1.5rem;font-size:1.5rem}.cim-widget-header.h3{margin-top:1rem;margin-bottom:1rem;font-size:1.2rem}.cim-widget-link{color:var(--cim-widget-primary-color);text-decoration:underline;cursor:pointer}.cim-widget-link:hover{color:var(--cim-widget-secondary-color);text-decoration:none}.cim-widget-text{line-height:1.5;color:inherit;margin-bottom:.25rem}.cim-widget-text.italic{font-style:italic}.cim-widget-text.bold{font-weight:700}.cim-widget-message-container{flex:1;overflow-y:auto;padding:1rem 0}.cim-widget-message-icon{display:inline-flex;align-items:center;margin-right:.25rem}.cim-widget-message-icon.embedded{font-size:1rem;color:var(--cim-widget-secondary-color)}.cim-widget-message-icon.standalone{font-size:1.5rem;color:var(--cim-widget-primary-color)}
2
2
  /*$vite$:1*/`,document.head.appendChild(Pe);function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nt={exports:{}},gt={},lt={exports:{}},we={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var Ot;function yt(){if(Ot)return we;Ot=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function b(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function O(I,q,w){this.props=I,this.context=q,this.refs=C,this.updater=w||T}O.prototype.isReactComponent={},O.prototype.setState=function(I,q){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,q,"setState")},O.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function L(){}L.prototype=O.prototype;function V(I,q,w){this.props=I,this.context=q,this.refs=C,this.updater=w||T}var j=V.prototype=new L;j.constructor=V,S(j,O.prototype),j.isPureReactComponent=!0;var ee=Array.isArray,he=Object.prototype.hasOwnProperty,F={current:null},me={key:!0,ref:!0,__self:!0,__source:!0};function Ae(I,q,w){var Ee,ve={},Ce=null,We=null;if(q!=null)for(Ee in q.ref!==void 0&&(We=q.ref),q.key!==void 0&&(Ce=""+q.key),q)he.call(q,Ee)&&!me.hasOwnProperty(Ee)&&(ve[Ee]=q[Ee]);var ze=arguments.length-2;if(ze===1)ve.children=w;else if(1<ze){for(var Ze=Array(ze),wt=0;wt<ze;wt++)Ze[wt]=arguments[wt+2];ve.children=Ze}if(I&&I.defaultProps)for(Ee in ze=I.defaultProps,ze)ve[Ee]===void 0&&(ve[Ee]=ze[Ee]);return{$$typeof:e,type:I,key:Ce,ref:We,props:ve,_owner:F.current}}function Ne(I,q){return{$$typeof:e,type:I.type,key:q,ref:I.ref,props:I.props,_owner:I._owner}}function H(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function ge(I){var q={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(w){return q[w]})}var pe=/\/+/g;function ce(I,q){return typeof I=="object"&&I!==null&&I.key!=null?ge(""+I.key):q.toString(36)}function fe(I,q,w,Ee,ve){var Ce=typeof I;(Ce==="undefined"||Ce==="boolean")&&(I=null);var We=!1;if(I===null)We=!0;else switch(Ce){case"string":case"number":We=!0;break;case"object":switch(I.$$typeof){case e:case t:We=!0}}if(We)return We=I,ve=ve(We),I=Ee===""?"."+ce(We,0):Ee,ee(ve)?(w="",I!=null&&(w=I.replace(pe,"$&/")+"/"),fe(ve,q,w,"",function(wt){return wt})):ve!=null&&(H(ve)&&(ve=Ne(ve,w+(!ve.key||We&&We.key===ve.key?"":(""+ve.key).replace(pe,"$&/")+"/")+I)),q.push(ve)),1;if(We=0,Ee=Ee===""?".":Ee+":",ee(I))for(var ze=0;ze<I.length;ze++){Ce=I[ze];var Ze=Ee+ce(Ce,ze);We+=fe(Ce,q,w,Ze,ve)}else if(Ze=b(I),typeof Ze=="function")for(I=Ze.call(I),ze=0;!(Ce=I.next()).done;)Ce=Ce.value,Ze=Ee+ce(Ce,ze++),We+=fe(Ce,q,w,Ze,ve);else if(Ce==="object")throw q=String(I),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return We}function be(I,q,w){if(I==null)return I;var Ee=[],ve=0;return fe(I,Ee,"","",function(Ce){return q.call(w,Ce,ve++)}),Ee}function Le(I){if(I._status===-1){var q=I._result;q=q(),q.then(function(w){(I._status===0||I._status===-1)&&(I._status=1,I._result=w)},function(w){(I._status===0||I._status===-1)&&(I._status=2,I._result=w)}),I._status===-1&&(I._status=0,I._result=q)}if(I._status===1)return I._result.default;throw I._result}var ue={current:null},M={transition:null},G={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:M,ReactCurrentOwner:F};function x(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:be,forEach:function(I,q,w){be(I,function(){q.apply(this,arguments)},w)},count:function(I){var q=0;return be(I,function(){q++}),q},toArray:function(I){return be(I,function(q){return q})||[]},only:function(I){if(!H(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},we.Component=O,we.Fragment=n,we.Profiler=o,we.PureComponent=V,we.StrictMode=r,we.Suspense=d,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,we.act=x,we.cloneElement=function(I,q,w){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var Ee=S({},I.props),ve=I.key,Ce=I.ref,We=I._owner;if(q!=null){if(q.ref!==void 0&&(Ce=q.ref,We=F.current),q.key!==void 0&&(ve=""+q.key),I.type&&I.type.defaultProps)var ze=I.type.defaultProps;for(Ze in q)he.call(q,Ze)&&!me.hasOwnProperty(Ze)&&(Ee[Ze]=q[Ze]===void 0&&ze!==void 0?ze[Ze]:q[Ze])}var Ze=arguments.length-2;if(Ze===1)Ee.children=w;else if(1<Ze){ze=Array(Ze);for(var wt=0;wt<Ze;wt++)ze[wt]=arguments[wt+2];Ee.children=ze}return{$$typeof:e,type:I.type,key:ve,ref:Ce,props:Ee,_owner:We}},we.createContext=function(I){return I={$$typeof:l,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:u,_context:I},I.Consumer=I},we.createElement=Ae,we.createFactory=function(I){var q=Ae.bind(null,I);return q.type=I,q},we.createRef=function(){return{current:null}},we.forwardRef=function(I){return{$$typeof:f,render:I}},we.isValidElement=H,we.lazy=function(I){return{$$typeof:g,_payload:{_status:-1,_result:I},_init:Le}},we.memo=function(I,q){return{$$typeof:h,type:I,compare:q===void 0?null:q}},we.startTransition=function(I){var q=M.transition;M.transition={};try{I()}finally{M.transition=q}},we.unstable_act=x,we.useCallback=function(I,q){return ue.current.useCallback(I,q)},we.useContext=function(I){return ue.current.useContext(I)},we.useDebugValue=function(){},we.useDeferredValue=function(I){return ue.current.useDeferredValue(I)},we.useEffect=function(I,q){return ue.current.useEffect(I,q)},we.useId=function(){return ue.current.useId()},we.useImperativeHandle=function(I,q,w){return ue.current.useImperativeHandle(I,q,w)},we.useInsertionEffect=function(I,q){return ue.current.useInsertionEffect(I,q)},we.useLayoutEffect=function(I,q){return ue.current.useLayoutEffect(I,q)},we.useMemo=function(I,q){return ue.current.useMemo(I,q)},we.useReducer=function(I,q,w){return ue.current.useReducer(I,q,w)},we.useRef=function(I){return ue.current.useRef(I)},we.useState=function(I){return ue.current.useState(I)},we.useSyncExternalStore=function(I,q,w){return ue.current.useSyncExternalStore(I,q,w)},we.useTransition=function(){return ue.current.useTransition()},we.version="18.3.1",we}var nn;function Bi(){return nn||(nn=1,lt.exports=yt()),lt.exports}/**
10
+ */var It;function yt(){if(It)return we;It=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function b(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function O(I,q,w){this.props=I,this.context=q,this.refs=C,this.updater=w||T}O.prototype.isReactComponent={},O.prototype.setState=function(I,q){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,q,"setState")},O.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function L(){}L.prototype=O.prototype;function $(I,q,w){this.props=I,this.context=q,this.refs=C,this.updater=w||T}var j=$.prototype=new L;j.constructor=$,S(j,O.prototype),j.isPureReactComponent=!0;var te=Array.isArray,he=Object.prototype.hasOwnProperty,F={current:null},me={key:!0,ref:!0,__self:!0,__source:!0};function Ae(I,q,w){var Ee,ve={},Ce=null,We=null;if(q!=null)for(Ee in q.ref!==void 0&&(We=q.ref),q.key!==void 0&&(Ce=""+q.key),q)he.call(q,Ee)&&!me.hasOwnProperty(Ee)&&(ve[Ee]=q[Ee]);var ze=arguments.length-2;if(ze===1)ve.children=w;else if(1<ze){for(var Ze=Array(ze),wt=0;wt<ze;wt++)Ze[wt]=arguments[wt+2];ve.children=Ze}if(I&&I.defaultProps)for(Ee in ze=I.defaultProps,ze)ve[Ee]===void 0&&(ve[Ee]=ze[Ee]);return{$$typeof:e,type:I,key:Ce,ref:We,props:ve,_owner:F.current}}function Ne(I,q){return{$$typeof:e,type:I.type,key:q,ref:I.ref,props:I.props,_owner:I._owner}}function H(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function ge(I){var q={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(w){return q[w]})}var pe=/\/+/g;function ce(I,q){return typeof I=="object"&&I!==null&&I.key!=null?ge(""+I.key):q.toString(36)}function fe(I,q,w,Ee,ve){var Ce=typeof I;(Ce==="undefined"||Ce==="boolean")&&(I=null);var We=!1;if(I===null)We=!0;else switch(Ce){case"string":case"number":We=!0;break;case"object":switch(I.$$typeof){case e:case t:We=!0}}if(We)return We=I,ve=ve(We),I=Ee===""?"."+ce(We,0):Ee,te(ve)?(w="",I!=null&&(w=I.replace(pe,"$&/")+"/"),fe(ve,q,w,"",function(wt){return wt})):ve!=null&&(H(ve)&&(ve=Ne(ve,w+(!ve.key||We&&We.key===ve.key?"":(""+ve.key).replace(pe,"$&/")+"/")+I)),q.push(ve)),1;if(We=0,Ee=Ee===""?".":Ee+":",te(I))for(var ze=0;ze<I.length;ze++){Ce=I[ze];var Ze=Ee+ce(Ce,ze);We+=fe(Ce,q,w,Ze,ve)}else if(Ze=b(I),typeof Ze=="function")for(I=Ze.call(I),ze=0;!(Ce=I.next()).done;)Ce=Ce.value,Ze=Ee+ce(Ce,ze++),We+=fe(Ce,q,w,Ze,ve);else if(Ce==="object")throw q=String(I),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return We}function be(I,q,w){if(I==null)return I;var Ee=[],ve=0;return fe(I,Ee,"","",function(Ce){return q.call(w,Ce,ve++)}),Ee}function Le(I){if(I._status===-1){var q=I._result;q=q(),q.then(function(w){(I._status===0||I._status===-1)&&(I._status=1,I._result=w)},function(w){(I._status===0||I._status===-1)&&(I._status=2,I._result=w)}),I._status===-1&&(I._status=0,I._result=q)}if(I._status===1)return I._result.default;throw I._result}var ae={current:null},M={transition:null},G={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:M,ReactCurrentOwner:F};function x(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:be,forEach:function(I,q,w){be(I,function(){q.apply(this,arguments)},w)},count:function(I){var q=0;return be(I,function(){q++}),q},toArray:function(I){return be(I,function(q){return q})||[]},only:function(I){if(!H(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},we.Component=O,we.Fragment=n,we.Profiler=o,we.PureComponent=$,we.StrictMode=r,we.Suspense=d,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,we.act=x,we.cloneElement=function(I,q,w){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var Ee=S({},I.props),ve=I.key,Ce=I.ref,We=I._owner;if(q!=null){if(q.ref!==void 0&&(Ce=q.ref,We=F.current),q.key!==void 0&&(ve=""+q.key),I.type&&I.type.defaultProps)var ze=I.type.defaultProps;for(Ze in q)he.call(q,Ze)&&!me.hasOwnProperty(Ze)&&(Ee[Ze]=q[Ze]===void 0&&ze!==void 0?ze[Ze]:q[Ze])}var Ze=arguments.length-2;if(Ze===1)Ee.children=w;else if(1<Ze){ze=Array(Ze);for(var wt=0;wt<Ze;wt++)ze[wt]=arguments[wt+2];Ee.children=ze}return{$$typeof:e,type:I.type,key:ve,ref:Ce,props:Ee,_owner:We}},we.createContext=function(I){return I={$$typeof:l,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:u,_context:I},I.Consumer=I},we.createElement=Ae,we.createFactory=function(I){var q=Ae.bind(null,I);return q.type=I,q},we.createRef=function(){return{current:null}},we.forwardRef=function(I){return{$$typeof:f,render:I}},we.isValidElement=H,we.lazy=function(I){return{$$typeof:g,_payload:{_status:-1,_result:I},_init:Le}},we.memo=function(I,q){return{$$typeof:h,type:I,compare:q===void 0?null:q}},we.startTransition=function(I){var q=M.transition;M.transition={};try{I()}finally{M.transition=q}},we.unstable_act=x,we.useCallback=function(I,q){return ae.current.useCallback(I,q)},we.useContext=function(I){return ae.current.useContext(I)},we.useDebugValue=function(){},we.useDeferredValue=function(I){return ae.current.useDeferredValue(I)},we.useEffect=function(I,q){return ae.current.useEffect(I,q)},we.useId=function(){return ae.current.useId()},we.useImperativeHandle=function(I,q,w){return ae.current.useImperativeHandle(I,q,w)},we.useInsertionEffect=function(I,q){return ae.current.useInsertionEffect(I,q)},we.useLayoutEffect=function(I,q){return ae.current.useLayoutEffect(I,q)},we.useMemo=function(I,q){return ae.current.useMemo(I,q)},we.useReducer=function(I,q,w){return ae.current.useReducer(I,q,w)},we.useRef=function(I){return ae.current.useRef(I)},we.useState=function(I){return ae.current.useState(I)},we.useSyncExternalStore=function(I,q,w){return ae.current.useSyncExternalStore(I,q,w)},we.useTransition=function(){return ae.current.useTransition()},we.version="18.3.1",we}var nn;function Bi(){return nn||(nn=1,lt.exports=yt()),lt.exports}/**
11
11
  * @license React
12
12
  * react-jsx-runtime.production.min.js
13
13
  *
@@ -15,41 +15,41 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var $s;function ec(){if($s)return gt;$s=1;var e=Bi(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(f,d,h){var g,y={},b=null,T=null;h!==void 0&&(b=""+h),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(T=d.ref);for(g in d)r.call(d,g)&&!u.hasOwnProperty(g)&&(y[g]=d[g]);if(f&&f.defaultProps)for(g in d=f.defaultProps,d)y[g]===void 0&&(y[g]=d[g]);return{$$typeof:t,type:f,key:b,ref:T,props:y,_owner:o.current}}return gt.Fragment=n,gt.jsx=l,gt.jsxs=l,gt}var Bn;function jb(){return Bn||(Bn=1,nt.exports=ec()),nt.exports}var P=jb();const Jn=Object.create(null);Jn.open="0",Jn.close="1",Jn.ping="2",Jn.pong="3",Jn.message="4",Jn.upgrade="5",Jn.noop="6";const Cu=Object.create(null);Object.keys(Jn).forEach(e=>{Cu[Jn[e]]=e});const tc={type:"error",data:"parser error"},up=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ap=typeof ArrayBuffer=="function",lp=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,nc=({type:e,data:t},n,r)=>up&&t instanceof Blob?n?r(t):cp(t,r):ap&&(t instanceof ArrayBuffer||lp(t))?n?r(t):cp(new Blob([t]),r):r(Jn[e]+(t||"")),cp=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function fp(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let rc;function $b(e,t){if(up&&e.data instanceof Blob)return e.data.arrayBuffer().then(fp).then(t);if(ap&&(e.data instanceof ArrayBuffer||lp(e.data)))return t(fp(e.data));nc(e,!1,n=>{rc||(rc=new TextEncoder),t(rc.encode(n))})}const dp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let e=0;e<dp.length;e++)Vs[dp.charCodeAt(e)]=e;const Vb=e=>{let t=e.length*.75,n=e.length,r,o=0,u,l,f,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),g=new Uint8Array(h);for(r=0;r<n;r+=4)u=Vs[e.charCodeAt(r)],l=Vs[e.charCodeAt(r+1)],f=Vs[e.charCodeAt(r+2)],d=Vs[e.charCodeAt(r+3)],g[o++]=u<<2|l>>4,g[o++]=(l&15)<<4|f>>2,g[o++]=(f&3)<<6|d&63;return h},Yb=typeof ArrayBuffer=="function",ic=(e,t)=>{if(typeof e!="string")return{type:"message",data:hp(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:qb(e.substring(1),t)}:Cu[n]?e.length>1?{type:Cu[n],data:e.substring(1)}:{type:Cu[n]}:tc},qb=(e,t)=>{if(Yb){const n=Vb(e);return hp(n,t)}else return{base64:!0,data:e}},hp=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},pp="",Wb=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((u,l)=>{nc(u,!1,f=>{r[l]=f,++o===n&&t(r.join(pp))})})},Gb=(e,t)=>{const n=e.split(pp),r=[];for(let o=0;o<n.length;o++){const u=ic(n[o],t);if(r.push(u),u.type==="error")break}return r};function Kb(){return new TransformStream({transform(e,t){$b(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const u=new DataView(o.buffer);u.setUint8(0,126),u.setUint16(1,r)}else{o=new Uint8Array(9);const u=new DataView(o.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let sc;function ku(e){return e.reduce((t,n)=>t+n.length,0)}function wu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Qb(e,t){sc||(sc=new TextDecoder);const n=[];let r=0,o=-1,u=!1;return new TransformStream({transform(l,f){for(n.push(l);;){if(r===0){if(ku(n)<1)break;const d=wu(n,1);u=(d[0]&128)===128,o=d[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(ku(n)<2)break;const d=wu(n,2);o=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),r=3}else if(r===2){if(ku(n)<8)break;const d=wu(n,8),h=new DataView(d.buffer,d.byteOffset,d.length),g=h.getUint32(0);if(g>Math.pow(2,21)-1){f.enqueue(tc);break}o=g*Math.pow(2,32)+h.getUint32(4),r=3}else{if(ku(n)<o)break;const d=wu(n,o);f.enqueue(ic(u?d:sc.decode(d),t)),r=0}if(o===0||o>e){f.enqueue(tc);break}}}})}const mp=4;function xt(e){if(e)return Xb(e)}function Xb(e){for(var t in xt.prototype)e[t]=xt.prototype[t];return e}xt.prototype.on=xt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},xt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},xt.prototype.off=xt.prototype.removeListener=xt.prototype.removeAllListeners=xt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this},xt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},xt.prototype.emitReserved=xt.prototype.emit,xt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},xt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Nu=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),kn=typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")(),Jb="arraybuffer";function E4(){}function gp(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Zb=kn.setTimeout,e_=kn.clearTimeout;function vu(e,t){t.useNativeTimers?(e.setTimeoutFn=Zb.bind(kn),e.clearTimeoutFn=e_.bind(kn)):(e.setTimeoutFn=kn.setTimeout.bind(kn),e.clearTimeoutFn=kn.clearTimeout.bind(kn))}const t_=1.33;function n_(e){return typeof e=="string"?r_(e):Math.ceil((e.byteLength||e.size)*t_)}function r_(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Ep(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function i_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function s_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let u=n[r].split("=");t[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return t}class o_ extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class oc extends xt{constructor(t){super(),this.writable=!1,vu(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new o_(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=ic(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=i_(t);return n.length?"?"+n:""}}class u_ extends oc{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Gb(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Wb(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Ep()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let yp=!1;try{yp=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){}const a_=yp;function l_(){}class c_ extends u_{constructor(t){if(super(t),typeof location!="undefined"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,u)=>{this.onError("xhr post error",o,u)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Zn extends xt{constructor(t,n,r){super(),this.createRequest=t,vu(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=gp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch(o){}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(o){}try{r.setRequestHeader("Accept","*/*")}catch(o){}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document!="undefined"&&(this._index=Zn.requestsCount++,Zn.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr=="undefined"||this._xhr===null)){if(this._xhr.onreadystatechange=l_,t)try{this._xhr.abort()}catch(n){}typeof document!="undefined"&&delete Zn.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(Zn.requestsCount=0,Zn.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Tp);else if(typeof addEventListener=="function"){const e="onpagehide"in kn?"pagehide":"unload";addEventListener(e,Tp,!1)}}function Tp(){for(let e in Zn.requests)Zn.requests.hasOwnProperty(e)&&Zn.requests[e].abort()}const f_=function(){const e=bp({xdomain:!1});return e&&e.responseType!==null}();class d_ extends c_{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=f_&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Zn(bp,this.uri(),t)}}function bp(e){const t=e.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!t||a_))return new XMLHttpRequest}catch(n){}if(!t)try{return new kn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(n){}}const _p=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class h_ extends oc{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=_p?{}:gp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;nc(r,this.supportsBinary,u=>{try{this.doWrite(r,u)}catch(l){}o&&Nu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Ep()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const uc=kn.WebSocket||kn.MozWebSocket;class p_ extends h_{createSocket(t,n,r){return _p?new uc(t,n,r):n?new uc(t,n):new uc(t)}doWrite(t,n){this.ws.send(n)}}class m_ extends oc{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=Qb(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Kb();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const u=()=>{r.read().then(({done:f,value:d})=>{f||(this.onPacket(d),u())}).catch(f=>{})};u();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&Nu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const g_={websocket:p_,webtransport:m_,polling:d_},E_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,y_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ac(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=E_.exec(e||""),u={},l=14;for(;l--;)u[y_[l]]=o[l]||"";return n!=-1&&r!=-1&&(u.source=t,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=T_(u,u.path),u.queryKey=b_(u,u.query),u}function T_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function b_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,u){o&&(n[o]=u)}),n}const lc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Iu=[];lc&&addEventListener("offline",()=>{Iu.forEach(e=>e())},!1);class Or extends xt{constructor(t,n){if(super(),this.binaryType=Jb,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=ac(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ac(n.host).host);vu(this,n),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=s_(this.opts.query)),lc&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Iu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=mp,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Or.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Or.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=n_(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Nu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const u={type:t,data:n,options:r};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Or.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),lc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Iu.indexOf(this._offlineEventListener);r!==-1&&Iu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Or.protocol=mp;class __ extends Or{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Or.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!r)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Or.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(g(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const b=new Error("probe error");b.transport=n.name,this.emitReserved("upgradeError",b)}}))};function u(){r||(r=!0,g(),n.close(),n=null)}const l=y=>{const b=new Error("probe error: "+y);b.transport=n.name,u(),this.emitReserved("upgradeError",b)};function f(){l("transport closed")}function d(){l("socket closed")}function h(y){n&&y.name!==n.name&&u()}const g=()=>{n.removeListener("open",o),n.removeListener("error",l),n.removeListener("close",f),this.off("close",d),this.off("upgrading",h)};n.once("open",o),n.once("error",l),n.once("close",f),this.once("close",d),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let S_=class extends __{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>g_[o]).filter(o=>!!o)),super(t,r)}};function x_(e,t="",n){let r=e;n=n||typeof location!="undefined"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n!="undefined"?e=n.protocol+"//"+e:e="https://"+e),r=ac(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const u=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+u+":"+r.port+t,r.href=r.protocol+"://"+u+(n&&n.port===r.port?"":":"+r.port),r}const A_=typeof ArrayBuffer=="function",C_=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Sp=Object.prototype.toString,k_=typeof Blob=="function"||typeof Blob!="undefined"&&Sp.call(Blob)==="[object BlobConstructor]",w_=typeof File=="function"||typeof File!="undefined"&&Sp.call(File)==="[object FileConstructor]";function cc(e){return A_&&(e instanceof ArrayBuffer||C_(e))||k_&&e instanceof Blob||w_&&e instanceof File}function Ou(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Ou(e[n]))return!0;return!1}if(cc(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ou(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Ou(e[n]))return!0;return!1}function N_(e){const t=[],n=e.data,r=e;return r.data=fc(n,t),r.attachments=t.length,{packet:r,buffers:t}}function fc(e,t){if(!e)return e;if(cc(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=fc(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=fc(e[r],t));return n}return e}function v_(e,t){return e.data=dc(e.data,t),delete e.attachments,e}function dc(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=dc(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=dc(e[n],t));return e}const I_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],O_=5;var qe;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(qe||(qe={}));class R_{constructor(t){this.replacer=t}encode(t){return(t.type===qe.EVENT||t.type===qe.ACK)&&Ou(t)?this.encodeAsBinary({type:t.type===qe.EVENT?qe.BINARY_EVENT:qe.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===qe.BINARY_EVENT||t.type===qe.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=N_(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}function xp(e){return Object.prototype.toString.call(e)==="[object Object]"}class hc extends xt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===qe.BINARY_EVENT;r||n.type===qe.BINARY_ACK?(n.type=r?qe.EVENT:qe.ACK,this.reconstructor=new P_(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(cc(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(qe[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===qe.BINARY_EVENT||r.type===qe.BINARY_ACK){const u=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(u,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(l)}if(t.charAt(n+1)==="/"){const u=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(u,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const u=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}r.id=Number(t.substring(u,n+1))}if(t.charAt(++n)){const u=this.tryParse(t.substr(n));if(hc.isPayloadValid(r.type,u))r.data=u;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(n){return!1}}static isPayloadValid(t,n){switch(t){case qe.CONNECT:return xp(n);case qe.DISCONNECT:return n===void 0;case qe.CONNECT_ERROR:return typeof n=="string"||xp(n);case qe.EVENT:case qe.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&I_.indexOf(n[0])===-1);case qe.ACK:case qe.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class P_{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=v_(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const L_=Object.freeze(Object.defineProperty({__proto__:null,Decoder:hc,Encoder:R_,get PacketType(){return qe},protocol:O_},Symbol.toStringTag,{value:"Module"}));function Un(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const D_=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ap extends xt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Un(t,"open",this.onopen.bind(this)),Un(t,"packet",this.onpacket.bind(this)),Un(t,"error",this.onerror.bind(this)),Un(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,u;if(D_.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const l={type:qe.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const g=this.ids++,y=n.pop();this._registerAckCallback(g,y),l.id=g}const f=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,d=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!f||(d?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===t&&this.sendBuffer.splice(f,1);n.call(this,new Error("operation has timed out"))},o),l=(...f)=>{this.io.clearTimeoutFn(u),n.apply(this,f)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,o)=>{const u=(l,f)=>l?o(l):r(f);u.withError=!0,n.push(u),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...u)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...u)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:qe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case qe.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case qe.EVENT:case qe.BINARY_EVENT:this.onevent(t);break;case qe.ACK:case qe.BINARY_ACK:this.onack(t);break;case qe.DISCONNECT:this.ondisconnect();break;case qe.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:qe.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:qe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Ui(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ui.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0},Ui.prototype.reset=function(){this.attempts=0},Ui.prototype.setMin=function(e){this.ms=e},Ui.prototype.setMax=function(e){this.max=e},Ui.prototype.setJitter=function(e){this.jitter=e};class pc extends xt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,vu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ui({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||L_;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new S_(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Un(n,"open",function(){r.onopen(),t&&t()}),u=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),t?t(f):this.maybeReconnectOnOpen()},l=Un(n,"error",u);if(this._timeout!==!1){const f=this._timeout,d=this.setTimeoutFn(()=>{o(),u(new Error("timeout")),n.close()},f);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(o),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Un(t,"ping",this.onping.bind(this)),Un(t,"data",this.ondata.bind(this)),Un(t,"error",this.onerror.bind(this)),Un(t,"close",this.onclose.bind(this)),Un(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Nu(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Ap(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ys={};function Ru(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=x_(e,t.path||"/socket.io"),r=n.source,o=n.id,u=n.path,l=Ys[o]&&u in Ys[o].nsps,f=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let d;return f?d=new pc(r,t):(Ys[o]||(Ys[o]=new pc(r,t)),d=Ys[o]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}Object.assign(Ru,{Manager:pc,Socket:Ap,io:Ru,connect:Ru});var M_=function(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||function(r){return r.$$typeof===F_}(t)}(e)},F_=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function qs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Hi((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function B_(e,t,n){return e.concat(t).map(function(r){return qs(r,n)})}function Cp(e){return Object.keys(e).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(e))}function kp(e,t){try{return t in e}catch(n){return!1}}function U_(e,t,n){var r={};return n.isMergeableObject(e)&&Cp(e).forEach(function(o){r[o]=qs(e[o],n)}),Cp(t).forEach(function(o){(function(u,l){return kp(u,l)&&!(Object.hasOwnProperty.call(u,l)&&Object.propertyIsEnumerable.call(u,l))})(e,o)||(kp(e,o)&&n.isMergeableObject(t[o])?r[o]=function(u,l){if(!l.customMerge)return Hi;var f=l.customMerge(u);return typeof f=="function"?f:Hi}(o,n)(e[o],t[o],n):r[o]=qs(t[o],n))}),r}function Hi(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||B_,n.isMergeableObject=n.isMergeableObject||M_,n.cloneUnlessOtherwiseSpecified=qs;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):U_(e,t,n):qs(t,n)}Hi.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,r){return Hi(n,r,t)},{})};var H_=Hi;let z_=class{constructor(t){Object.assign(this,t)}};function Xt(e){if(e)return function(t){for(var n in Xt.prototype)t[n]=Xt.prototype[n];return t}(e)}Xt.prototype.on=Xt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Xt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Xt.prototype.off=Xt.prototype.removeListener=Xt.prototype.removeAllListeners=Xt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this},Xt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},Xt.prototype.emitReserved=Xt.prototype.emit,Xt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Xt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const j_=typeof ArrayBuffer=="function",wp=Object.prototype.toString,$_=typeof Blob=="function"||typeof Blob!="undefined"&&wp.call(Blob)==="[object BlobConstructor]",V_=typeof File=="function"||typeof File!="undefined"&&wp.call(File)==="[object FileConstructor]";function mc(e){return j_&&(e instanceof ArrayBuffer||(t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer)(e))||$_&&e instanceof Blob||V_&&e instanceof File}function Pu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Pu(e[n]))return!0;return!1}if(mc(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Pu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Pu(e[n]))return!0;return!1}function Y_(e){const t=[],n=e.data,r=e;return r.data=gc(n,t),r.attachments=t.length,{packet:r,buffers:t}}function gc(e,t){if(!e)return e;if(mc(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=gc(e[r],t);return n}if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=gc(e[r],t));return n}return e}function q_(e,t){return e.data=Ec(e.data,t),delete e.attachments,e}function Ec(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Ec(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Ec(e[n],t));return e}const W_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var dt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(dt||(dt={}));class G_{constructor(t){this.replacer=t}encode(t){return t.type!==dt.EVENT&&t.type!==dt.ACK||!Pu(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===dt.EVENT?dt.BINARY_EVENT:dt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let n=""+t.type;return t.type!==dt.BINARY_EVENT&&t.type!==dt.BINARY_ACK||(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Y_(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}function Np(e){return Object.prototype.toString.call(e)==="[object Object]"}class yc extends Xt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===dt.BINARY_EVENT;r||n.type===dt.BINARY_ACK?(n.type=r?dt.EVENT:dt.ACK,this.reconstructor=new K_(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else{if(!mc(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n))}}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(dt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===dt.BINARY_EVENT||r.type===dt.BINARY_ACK){const u=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(u,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(l)}if(t.charAt(n+1)==="/"){const u=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(u,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const u=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}r.id=Number(t.substring(u,n+1))}if(t.charAt(++n)){const u=this.tryParse(t.substr(n));if(!yc.isPayloadValid(r.type,u))throw new Error("invalid payload");r.data=u}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(n){return!1}}static isPayloadValid(t,n){switch(t){case dt.CONNECT:return Np(n);case dt.DISCONNECT:return n===void 0;case dt.CONNECT_ERROR:return typeof n=="string"||Np(n);case dt.EVENT:case dt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&W_.indexOf(n[0])===-1);case dt.ACK:case dt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class K_{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=q_(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const vp=["searchParams.facetFilters","hits","products"],Ip=(e,t,n)=>function r(o,u=[]){const l=Object.entries(o).map(([f,d])=>{const h=[...u,t(f)];return[e(f),d instanceof Object&&!(n!=null&&n.includes(h.join(".")))?r(d,h):d]});return Array.isArray(o)?l.map(f=>f[1]):Object.fromEntries(l)},Op=e=>e.replace(/_([a-z])/g,(t,n)=>n.toUpperCase()),Q_=Ip(e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),e=>e,vp),X_=Ip(Op,Op,vp),J_={Encoder:class extends G_{encode(e){var t,n;return super.encode($e(Q({},e),{data:((t=e.data)==null?void 0:t.length)==2?[e.data[0],Q_(e.data[1])]:((n=e.data)==null?void 0:n.length)==1?[e.data[0]]:typeof e.data=="object"&&e.data!=null?e.data:void 0}))}},Decoder:class extends yc{constructor(){super((e,t)=>e==""&&Array.isArray(t)?t.map(n=>n instanceof Object?X_(n):n):t)}}},Z_={path:"/api/v1/socket.io",autoConnect:!1,transports:["polling","websocket"],upgrade:!0,timeout:1e4};class e2{constructor({apiKey:t,apiToken:n,baseUrl:r,namespace:o="/copilot",socketOptions:u={}}){if(this.sessionIdKey="x-cimulate-copilot-session-id",this.reconnectAttempts=0,this.maxReconnectAttempts=5,this.maxReconnectDelay=3e4,this.handleConnectAck=h=>{console.log("[Copilot SDK] Connect Ack:",h),this.socket.auth={[this.sessionIdKey]:h.sessionId}},this.handleDisconnect=h=>{console.warn(`[Copilot SDK] Disconnected: ${h}`),h!=="io client disconnect"&&(console.log(`[Copilot SDK] Disconnected due to ${h}. Attempting reconnect...`),this.retryConnect())},this.handleConnectError=h=>{console.error(`[Copilot SDK] Connect error: ${h.message}`);const g=h.message.match(/['"]error['"]:\s*['"](\w+)['"]/),y=g==null?void 0:g[1];y&&["InvalidApiKey","InvalidToken","BadRequest"].includes(y)?this.disconnect():this.socket.connected||this.socket.active||(console.log("[Copilot SDK] Retrying connect attempt..."),this.retryConnect())},this.offInternalHandlers=()=>{this.socket.off("connect_ack",this.handleConnectAck),this.socket.off("disconnect",this.handleDisconnect),this.off("connect_error",this.handleConnectError)},t&&n||!t&&!n)throw new Error("Provide exactly one authentication method: either 'apiKey' or 'apiToken', but not both.");const l=`${r}${o}`,f={};t?f["x-cimulate-api-key"]=t:n&&(f.Authorization=`Bearer ${n}`);const d=[Z_,u,{parser:J_,withCredentials:!0,transportOptions:{polling:{extraHeaders:f}}}];this.socket=Ru(l,H_.all(d))}connect(){this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,this.reconnectAttempts=0),this.offInternalHandlers(),this.on("connect_ack",this.handleConnectAck),this.socket.on("disconnect",this.handleDisconnect),this.on("connect_error",this.handleConnectError),this.socket.auth&&this.sessionIdKey in this.socket.auth&&(this.socket.auth={}),this.socket.connect()}retryConnect(){if(!(this.socket.connected||this.socket.active||this.reconnectAttempts>=this.maxReconnectAttempts))if(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0),this.reconnectAttempts<this.maxReconnectAttempts){const t=Math.min(1e3*Jl(2,this.reconnectAttempts),this.maxReconnectDelay);console.info(`[Copilot SDK] Retry #${this.reconnectAttempts+1} in ${t}ms...`),this.reconnectTimeout=setTimeout(()=>{this.socket.connected||this.socket.active||(this.reconnectAttempts++,this.reconnect())},t)}else console.error("[Copilot SDK] Max reconnect attempts reached.")}reconnect(){this.socket.connected||this.socket.active||this.reconnectAttempts>=this.maxReconnectAttempts||(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,this.reconnectAttempts=0),this.socket.connect())}search(t,n){return tn(this,null,function*(){return this.asyncResponse("copilot_search",t,n)})}facetedNavigation(t,n){return tn(this,null,function*(){return this.asyncResponse("faceted_navigation",t,n)})}cancelRequest(t,n){return this.asyncResponse("cancel",t,n)}requestSessionInformation(t){return tn(this,null,function*(){return new Promise(n=>{this.socket.emit("session_info",r=>{t&&t(r),n(r)})})})}on(t,n){return this.socket.on(t,n),n}once(t,n){this.socket.once(t,n)}off(t,n){this.socket.off(t,n)}disconnect(){this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0),this.offInternalHandlers(),this.socket.disconnect()}onDisconnect(t){this.socket.on("disconnect",t)}asyncResponse(t,n,r){return tn(this,null,function*(){if(r)return void this.socket.emit(t,n,r);let o="";const u=function(l){return Zl(this,null,function*(){const f=[];let d=!1,h=null;const g=yield new pr(l({emit:y=>{f.push(y),h&&(h(),h=null)},cancel:()=>{d=!0}}));try{for(;!d;)f.length>0?yield f.shift():yield new pr(new Promise(y=>{h=y}));for(;f.length>0;)yield f.shift()}finally{yield new pr(g==null?void 0:g())}})}(({emit:l,cancel:f})=>{const d=(h,g)=>{["done","error"].includes(g.name)&&f(),g.eventSourceId==o&&l(g)};return this.socket.onAny(d),()=>tn(this,null,function*(){this.socket.offAny(d)})});return{result:yield new Promise((l,f)=>this.socket.emit(t,n,d=>{d.name==="error"?f(new z_(d)):(o=d==null?void 0:d.id,l(d))})),events:u}})}}var X=Bi();const ui=Ve(X);function Rp(e,t){return function(){return e.apply(t,arguments)}}const{toString:t2}=Object.prototype,{getPrototypeOf:Tc}=Object,{iterator:Lu,toStringTag:Pp}=Symbol,Du=(e=>t=>{const n=t2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Hn=e=>(e=e.toLowerCase(),t=>Du(t)===e),Mu=e=>t=>typeof t===e,{isArray:zi}=Array,ji=Mu("undefined");function Ws(e){return e!==null&&!ji(e)&&e.constructor!==null&&!ji(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lp=Hn("ArrayBuffer");function n2(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Lp(e.buffer),t}const r2=Mu("string"),rn=Mu("function"),Dp=Mu("number"),Gs=e=>e!==null&&typeof e=="object",i2=e=>e===!0||e===!1,Fu=e=>{if(Du(e)!=="object")return!1;const t=Tc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pp in e)&&!(Lu in e)},s2=e=>{if(!Gs(e)||Ws(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},o2=Hn("Date"),u2=Hn("File"),a2=Hn("Blob"),l2=Hn("FileList"),c2=e=>Gs(e)&&rn(e.pipe),f2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rn(e.append)&&((t=Du(e))==="formdata"||t==="object"&&rn(e.toString)&&e.toString()==="[object FormData]"))},d2=Hn("URLSearchParams"),[h2,p2,m2,g2]=["ReadableStream","Request","Response","Headers"].map(Hn),E2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ks(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,o;if(typeof e!="object"&&(e=[e]),zi(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Ws(e))return;const u=n?Object.getOwnPropertyNames(e):Object.keys(e),l=u.length;let f;for(r=0;r<l;r++)f=u[r],t.call(null,e[f],f,e)}}function Mp(e,t){if(Ws(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ai=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Fp=e=>!ji(e)&&e!==ai;function bc(){const{caseless:e,skipUndefined:t}=Fp(this)&&this||{},n={},r=(o,u)=>{const l=e&&Mp(n,u)||u;Fu(n[l])&&Fu(o)?n[l]=bc(n[l],o):Fu(o)?n[l]=bc({},o):zi(o)?n[l]=o.slice():(!t||!ji(o))&&(n[l]=o)};for(let o=0,u=arguments.length;o<u;o++)arguments[o]&&Ks(arguments[o],r);return n}const y2=(e,t,n,{allOwnKeys:r}={})=>(Ks(t,(o,u)=>{n&&rn(o)?e[u]=Rp(o,n):e[u]=o},{allOwnKeys:r}),e),T2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),b2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},_2=(e,t,n,r)=>{let o,u,l;const f={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),u=o.length;u-- >0;)l=o[u],(!r||r(l,e,t))&&!f[l]&&(t[l]=e[l],f[l]=!0);e=n!==!1&&Tc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},S2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},x2=e=>{if(!e)return null;if(zi(e))return e;let t=e.length;if(!Dp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},A2=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Tc(Uint8Array)),C2=(e,t)=>{const r=(e&&e[Lu]).call(e);let o;for(;(o=r.next())&&!o.done;){const u=o.value;t.call(e,u[0],u[1])}},k2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},w2=Hn("HTMLFormElement"),N2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Bp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),v2=Hn("RegExp"),Up=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ks(n,(o,u)=>{let l;(l=t(o,u,e))!==!1&&(r[u]=l||o)}),Object.defineProperties(e,r)},I2=e=>{Up(e,(t,n)=>{if(rn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(rn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},O2=(e,t)=>{const n={},r=o=>{o.forEach(u=>{n[u]=!0})};return zi(e)?r(e):r(String(e).split(t)),n},R2=()=>{},P2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function L2(e){return!!(e&&rn(e.append)&&e[Pp]==="FormData"&&e[Lu])}const D2=e=>{const t=new Array(10),n=(r,o)=>{if(Gs(r)){if(t.indexOf(r)>=0)return;if(Ws(r))return r;if(!("toJSON"in r)){t[o]=r;const u=zi(r)?[]:{};return Ks(r,(l,f)=>{const d=n(l,o+1);!ji(d)&&(u[f]=d)}),t[o]=void 0,u}}return r};return n(e,0)},M2=Hn("AsyncFunction"),F2=e=>e&&(Gs(e)||rn(e))&&rn(e.then)&&rn(e.catch),Hp=((e,t)=>e?setImmediate:t?((n,r)=>(ai.addEventListener("message",({source:o,data:u})=>{o===ai&&u===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ai.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",rn(ai.postMessage)),B2=typeof queueMicrotask!="undefined"?queueMicrotask.bind(ai):typeof process!="undefined"&&process.nextTick||Hp,Y={isArray:zi,isArrayBuffer:Lp,isBuffer:Ws,isFormData:f2,isArrayBufferView:n2,isString:r2,isNumber:Dp,isBoolean:i2,isObject:Gs,isPlainObject:Fu,isEmptyObject:s2,isReadableStream:h2,isRequest:p2,isResponse:m2,isHeaders:g2,isUndefined:ji,isDate:o2,isFile:u2,isBlob:a2,isRegExp:v2,isFunction:rn,isStream:c2,isURLSearchParams:d2,isTypedArray:A2,isFileList:l2,forEach:Ks,merge:bc,extend:y2,trim:E2,stripBOM:T2,inherits:b2,toFlatObject:_2,kindOf:Du,kindOfTest:Hn,endsWith:S2,toArray:x2,forEachEntry:C2,matchAll:k2,isHTMLForm:w2,hasOwnProperty:Bp,hasOwnProp:Bp,reduceDescriptors:Up,freezeMethods:I2,toObjectSet:O2,toCamelCase:N2,noop:R2,toFiniteNumber:P2,findKey:Mp,global:ai,isContextDefined:Fp,isSpecCompliantForm:L2,toJSONObject:D2,isAsyncFn:M2,isThenable:F2,setImmediate:Hp,asap:B2,isIterable:e=>e!=null&&rn(e[Lu])};function Fe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Y.inherits(Fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const zp=Fe.prototype,jp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{jp[e]={value:e}}),Object.defineProperties(Fe,jp),Object.defineProperty(zp,"isAxiosError",{value:!0}),Fe.from=(e,t,n,r,o,u)=>{const l=Object.create(zp);Y.toFlatObject(e,l,function(g){return g!==Error.prototype},h=>h!=="isAxiosError");const f=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Fe.call(l,f,d,n,r,o),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",u&&Object.assign(l,u),l};const U2=null;function _c(e){return Y.isPlainObject(e)||Y.isArray(e)}function $p(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function Vp(e,t,n){return e?e.concat(t).map(function(o,u){return o=$p(o),!n&&u?"["+o+"]":o}).join(n?".":""):t}function H2(e){return Y.isArray(e)&&!e.some(_c)}const z2=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function Bu(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,O){return!Y.isUndefined(O[C])});const r=n.metaTokens,o=n.visitor||g,u=n.dots,l=n.indexes,d=(n.Blob||typeof Blob!="undefined"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(Y.isDate(S))return S.toISOString();if(Y.isBoolean(S))return S.toString();if(!d&&Y.isBlob(S))throw new Fe("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(S)||Y.isTypedArray(S)?d&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,C,O){let L=S;if(S&&!O&&typeof S=="object"){if(Y.endsWith(C,"{}"))C=r?C:C.slice(0,-2),S=JSON.stringify(S);else if(Y.isArray(S)&&H2(S)||(Y.isFileList(S)||Y.endsWith(C,"[]"))&&(L=Y.toArray(S)))return C=$p(C),L.forEach(function(j,ee){!(Y.isUndefined(j)||j===null)&&t.append(l===!0?Vp([C],ee,u):l===null?C:C+"[]",h(j))}),!1}return _c(S)?!0:(t.append(Vp(O,C,u),h(S)),!1)}const y=[],b=Object.assign(z2,{defaultVisitor:g,convertValue:h,isVisitable:_c});function T(S,C){if(!Y.isUndefined(S)){if(y.indexOf(S)!==-1)throw Error("Circular reference detected in "+C.join("."));y.push(S),Y.forEach(S,function(L,V){(!(Y.isUndefined(L)||L===null)&&o.call(t,L,Y.isString(V)?V.trim():V,C,b))===!0&&T(L,C?C.concat(V):[V])}),y.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return T(e),t}function Yp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Sc(e,t){this._pairs=[],e&&Bu(e,this,t)}const qp=Sc.prototype;qp.append=function(t,n){this._pairs.push([t,n])},qp.toString=function(t){const n=t?function(r){return t.call(this,r,Yp)}:Yp;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function j2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wp(e,t,n){if(!t)return e;const r=n&&n.encode||j2;Y.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let u;if(o?u=o(t,n):u=Y.isURLSearchParams(t)?t.toString():new Sc(t,n).toString(r),u){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class Gp{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Kp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$2={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:Sc,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},xc=typeof window!="undefined"&&typeof document!="undefined",Ac=typeof navigator=="object"&&navigator||void 0,V2=xc&&(!Ac||["ReactNative","NativeScript","NS"].indexOf(Ac.product)<0),Y2=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",q2=xc&&window.location.href||"http://localhost",$t=Q(Q({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xc,hasStandardBrowserEnv:V2,hasStandardBrowserWebWorkerEnv:Y2,navigator:Ac,origin:q2},Symbol.toStringTag,{value:"Module"}))),$2);function W2(e,t){return Bu(e,new $t.classes.URLSearchParams,Q({visitor:function(n,r,o,u){return $t.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function G2(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function K2(e){const t={},n=Object.keys(e);let r;const o=n.length;let u;for(r=0;r<o;r++)u=n[r],t[u]=e[u];return t}function Qp(e){function t(n,r,o,u){let l=n[u++];if(l==="__proto__")return!0;const f=Number.isFinite(+l),d=u>=n.length;return l=!l&&Y.isArray(o)?o.length:l,d?(Y.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!f):((!o[l]||!Y.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],u)&&Y.isArray(o[l])&&(o[l]=K2(o[l])),!f)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,o)=>{t(G2(r),o,n,0)}),n}return null}function Q2(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Qs={transitional:Kp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,u=Y.isObject(t);if(u&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return o?JSON.stringify(Qp(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(u){if(r.indexOf("application/x-www-form-urlencoded")>-1)return W2(t,this.formSerializer).toString();if((f=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Bu(f?{"files[]":t}:t,d&&new d,this.formSerializer)}}return u||o?(n.setContentType("application/json",!1),Q2(t)):t}],transformResponse:[function(t){const n=this.transitional||Qs.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(f){if(l)throw f.name==="SyntaxError"?Fe.from(f,Fe.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$t.classes.FormData,Blob:$t.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{Qs.headers[e]={}});const X2=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),J2=e=>{const t={};let n,r,o;return e&&e.split(`
19
- `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&X2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Xp=Symbol("internals");function Xs(e){return e&&String(e).trim().toLowerCase()}function Uu(e){return e===!1||e==null?e:Y.isArray(e)?e.map(Uu):String(e)}function Z2(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cc(e,t,n,r,o){if(Y.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function tS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nS(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,u,l){return this[r].call(this,t,o,u,l)},configurable:!0})})}let sn=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function u(f,d,h){const g=Xs(d);if(!g)throw new Error("header name must be a non-empty string");const y=Y.findKey(o,g);(!y||o[y]===void 0||h===!0||h===void 0&&o[y]!==!1)&&(o[y||d]=Uu(f))}const l=(f,d)=>Y.forEach(f,(h,g)=>u(h,g,d));if(Y.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(Y.isString(t)&&(t=t.trim())&&!eS(t))l(J2(t),n);else if(Y.isObject(t)&&Y.isIterable(t)){let f={},d,h;for(const g of t){if(!Y.isArray(g))throw TypeError("Object iterator must return a key-value pair");f[h=g[0]]=(d=f[h])?Y.isArray(d)?[...d,g[1]]:[d,g[1]]:g[1]}l(f,n)}else t!=null&&u(n,t,r);return this}get(t,n){if(t=Xs(t),t){const r=Y.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Z2(o);if(Y.isFunction(n))return n.call(this,o,r);if(Y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Xs(t),t){const r=Y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Cc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function u(l){if(l=Xs(l),l){const f=Y.findKey(r,l);f&&(!n||Cc(r,r[f],f,n))&&(delete r[f],o=!0)}}return Y.isArray(t)?t.forEach(u):u(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const u=n[r];(!t||Cc(this,this[u],u,t,!0))&&(delete this[u],o=!0)}return o}normalize(t){const n=this,r={};return Y.forEach(this,(o,u)=>{const l=Y.findKey(r,u);if(l){n[l]=Uu(o),delete n[u];return}const f=t?tS(u):String(u).trim();f!==u&&delete n[u],n[f]=Uu(o),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
20
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Xp]=this[Xp]={accessors:{}}).accessors,o=this.prototype;function u(l){const f=Xs(l);r[f]||(nS(o,l),r[f]=!0)}return Y.isArray(t)?t.forEach(u):u(t),this}};sn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(sn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Y.freezeMethods(sn);function kc(e,t){const n=this||Qs,r=t||n,o=sn.from(r.headers);let u=r.data;return Y.forEach(e,function(f){u=f.call(n,u,o.normalize(),t?t.status:void 0)}),o.normalize(),u}function Jp(e){return!!(e&&e.__CANCEL__)}function $i(e,t,n){Fe.call(this,e==null?"canceled":e,Fe.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits($i,Fe,{__CANCEL__:!0});function Zp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Fe("Request failed with status code "+n.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function iS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,u=0,l;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),g=r[u];l||(l=h),n[o]=d,r[o]=h;let y=u,b=0;for(;y!==o;)b+=n[y++],y=y%e;if(o=(o+1)%e,o===u&&(u=(u+1)%e),h-l<t)return;const T=g&&h-g;return T?Math.round(b*1e3/T):void 0}}function sS(e,t){let n=0,r=1e3/t,o,u;const l=(h,g=Date.now())=>{n=g,o=null,u&&(clearTimeout(u),u=null),e(...h)};return[(...h)=>{const g=Date.now(),y=g-n;y>=r?l(h,g):(o=h,u||(u=setTimeout(()=>{u=null,l(o)},r-y)))},()=>o&&l(o)]}const Hu=(e,t,n=3)=>{let r=0;const o=iS(50,250);return sS(u=>{const l=u.loaded,f=u.lengthComputable?u.total:void 0,d=l-r,h=o(d),g=l<=f;r=l;const y={loaded:l,total:f,progress:f?l/f:void 0,bytes:d,rate:h||void 0,estimated:h&&f&&g?(f-l)/h:void 0,event:u,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(y)},n)},em=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tm=e=>(...t)=>Y.asap(()=>e(...t)),oS=$t.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$t.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($t.origin),$t.navigator&&/(msie|trident)/i.test($t.navigator.userAgent)):()=>!0,uS=$t.hasStandardBrowserEnv?{write(e,t,n,r,o,u){const l=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&l.push("path="+r),Y.isString(o)&&l.push("domain="+o),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function nm(e,t,n){let r=!aS(t);return e&&(r||n==!1)?lS(e,t):t}const rm=e=>e instanceof sn?Q({},e):e;function li(e,t){t=t||{};const n={};function r(h,g,y,b){return Y.isPlainObject(h)&&Y.isPlainObject(g)?Y.merge.call({caseless:b},h,g):Y.isPlainObject(g)?Y.merge({},g):Y.isArray(g)?g.slice():g}function o(h,g,y,b){if(Y.isUndefined(g)){if(!Y.isUndefined(h))return r(void 0,h,y,b)}else return r(h,g,y,b)}function u(h,g){if(!Y.isUndefined(g))return r(void 0,g)}function l(h,g){if(Y.isUndefined(g)){if(!Y.isUndefined(h))return r(void 0,h)}else return r(void 0,g)}function f(h,g,y){if(y in t)return r(h,g);if(y in e)return r(void 0,h)}const d={url:u,method:u,data:u,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:f,headers:(h,g,y)=>o(rm(h),rm(g),y,!0)};return Y.forEach(Object.keys(Q(Q({},e),t)),function(g){const y=d[g]||o,b=y(e[g],t[g],g);Y.isUndefined(b)&&y!==f||(n[g]=b)}),n}const im=e=>{const t=li({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:u,headers:l,auth:f}=t;if(t.headers=l=sn.from(l),t.url=Wp(nm(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&l.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),Y.isFormData(n)){if($t.hasStandardBrowserEnv||$t.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(Y.isFunction(n.getHeaders)){const d=n.getHeaders(),h=["content-type","content-length"];Object.entries(d).forEach(([g,y])=>{h.includes(g.toLowerCase())&&l.set(g,y)})}}if($t.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(t)),r||r!==!1&&oS(t.url))){const d=o&&u&&uS.read(u);d&&l.set(o,d)}return t},cS=typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(n,r){const o=im(e);let u=o.data;const l=sn.from(o.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=o,g,y,b,T,S;function C(){T&&T(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let O=new XMLHttpRequest;O.open(o.method.toUpperCase(),o.url,!0),O.timeout=o.timeout;function L(){if(!O)return;const j=sn.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),he={data:!f||f==="text"||f==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:j,config:e,request:O};Zp(function(me){n(me),C()},function(me){r(me),C()},he),O=null}"onloadend"in O?O.onloadend=L:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(L)},O.onabort=function(){O&&(r(new Fe("Request aborted",Fe.ECONNABORTED,e,O)),O=null)},O.onerror=function(ee){const he=ee&&ee.message?ee.message:"Network Error",F=new Fe(he,Fe.ERR_NETWORK,e,O);F.event=ee||null,r(F),O=null},O.ontimeout=function(){let ee=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const he=o.transitional||Kp;o.timeoutErrorMessage&&(ee=o.timeoutErrorMessage),r(new Fe(ee,he.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,O)),O=null},u===void 0&&l.setContentType(null),"setRequestHeader"in O&&Y.forEach(l.toJSON(),function(ee,he){O.setRequestHeader(he,ee)}),Y.isUndefined(o.withCredentials)||(O.withCredentials=!!o.withCredentials),f&&f!=="json"&&(O.responseType=o.responseType),h&&([b,S]=Hu(h,!0),O.addEventListener("progress",b)),d&&O.upload&&([y,T]=Hu(d),O.upload.addEventListener("progress",y),O.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(g=j=>{O&&(r(!j||j.type?new $i(null,e,O):j),O.abort(),O=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const V=rS(o.url);if(V&&$t.protocols.indexOf(V)===-1){r(new Fe("Unsupported protocol "+V+":",Fe.ERR_BAD_REQUEST,e));return}O.send(u||null)})},fS=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const u=function(h){if(!o){o=!0,f();const g=h instanceof Error?h:this.reason;r.abort(g instanceof Fe?g:new $i(g instanceof Error?g.message:g))}};let l=t&&setTimeout(()=>{l=null,u(new Fe(`timeout ${t} of ms exceeded`,Fe.ETIMEDOUT))},t);const f=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(u):h.removeEventListener("abort",u)}),e=null)};e.forEach(h=>h.addEventListener("abort",u));const{signal:d}=r;return d.unsubscribe=()=>Y.asap(f),d}},dS=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},hS=function(e,t){return Zl(this,null,function*(){try{for(var n=Hb(pS(e)),r,o,u;r=!(o=yield new pr(n.next())).done;r=!1){const l=o.value;yield*op(dS(l,t))}}catch(o){u=[o]}finally{try{r&&(o=n.return)&&(yield new pr(o.call(n)))}finally{if(u)throw u[0]}}})},pS=function(e){return Zl(this,null,function*(){if(e[Symbol.asyncIterator]){yield*op(e);return}const t=e.getReader();try{for(;;){const{done:n,value:r}=yield new pr(t.read());if(n)break;yield r}}finally{yield new pr(t.cancel())}})},sm=(e,t,n,r)=>{const o=hS(e,t);let u=0,l,f=h=>{l||(l=!0,r&&r(h))};return new ReadableStream({pull(h){return tn(this,null,function*(){try{const{done:g,value:y}=yield o.next();if(g){f(),h.close();return}let b=y.byteLength;if(n){let T=u+=b;n(T)}h.enqueue(new Uint8Array(y))}catch(g){throw f(g),g}})},cancel(h){return f(h),o.return()}},{highWaterMark:2})},om=64*1024,{isFunction:zu}=Y,mS=(({Request:e,Response:t})=>({Request:e,Response:t}))(Y.global),{ReadableStream:um,TextEncoder:am}=Y.global,lm=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},gS=e=>{e=Y.merge.call({skipUndefined:!0},mS,e);const{fetch:t,Request:n,Response:r}=e,o=t?zu(t):typeof fetch=="function",u=zu(n),l=zu(r);if(!o)return!1;const f=o&&zu(um),d=o&&(typeof am=="function"?(S=>C=>S.encode(C))(new am):S=>tn(null,null,function*(){return new Uint8Array(yield new n(S).arrayBuffer())})),h=u&&f&&lm(()=>{let S=!1;const C=new n($t.origin,{body:new um,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!C}),g=l&&f&&lm(()=>Y.isReadableStream(new r("").body)),y={stream:g&&(S=>S.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!y[S]&&(y[S]=(C,O)=>{let L=C&&C[S];if(L)return L.call(C);throw new Fe(`Response type '${S}' is not supported`,Fe.ERR_NOT_SUPPORT,O)})});const b=S=>tn(null,null,function*(){if(S==null)return 0;if(Y.isBlob(S))return S.size;if(Y.isSpecCompliantForm(S))return(yield new n($t.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(S)||Y.isArrayBuffer(S))return S.byteLength;if(Y.isURLSearchParams(S)&&(S=S+""),Y.isString(S))return(yield d(S)).byteLength}),T=(S,C)=>tn(null,null,function*(){const O=Y.toFiniteNumber(S.getContentLength());return O==null?b(C):O});return S=>tn(null,null,function*(){let{url:C,method:O,data:L,signal:V,cancelToken:j,timeout:ee,onDownloadProgress:he,onUploadProgress:F,responseType:me,headers:Ae,withCredentials:Ne="same-origin",fetchOptions:H}=im(S),ge=t||fetch;me=me?(me+"").toLowerCase():"text";let pe=fS([V,j&&j.toAbortSignal()],ee),ce=null;const fe=pe&&pe.unsubscribe&&(()=>{pe.unsubscribe()});let be;try{if(F&&h&&O!=="get"&&O!=="head"&&(be=yield T(Ae,L))!==0){let I=new n(C,{method:"POST",body:L,duplex:"half"}),q;if(Y.isFormData(L)&&(q=I.headers.get("content-type"))&&Ae.setContentType(q),I.body){const[w,Ee]=em(be,Hu(tm(F)));L=sm(I.body,om,w,Ee)}}Y.isString(Ne)||(Ne=Ne?"include":"omit");const Le=u&&"credentials"in n.prototype,ue=$e(Q({},H),{signal:pe,method:O.toUpperCase(),headers:Ae.normalize().toJSON(),body:L,duplex:"half",credentials:Le?Ne:void 0});ce=u&&new n(C,ue);let M=yield u?ge(ce,H):ge(C,ue);const G=g&&(me==="stream"||me==="response");if(g&&(he||G&&fe)){const I={};["status","statusText","headers"].forEach(ve=>{I[ve]=M[ve]});const q=Y.toFiniteNumber(M.headers.get("content-length")),[w,Ee]=he&&em(q,Hu(tm(he),!0))||[];M=new r(sm(M.body,om,w,()=>{Ee&&Ee(),fe&&fe()}),I)}me=me||"text";let x=yield y[Y.findKey(y,me)||"text"](M,S);return!G&&fe&&fe(),yield new Promise((I,q)=>{Zp(I,q,{data:x,headers:sn.from(M.headers),status:M.status,statusText:M.statusText,config:S,request:ce})})}catch(Le){throw fe&&fe(),Le&&Le.name==="TypeError"&&/Load failed|fetch/i.test(Le.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,S,ce),{cause:Le.cause||Le}):Fe.from(Le,Le&&Le.code,S,ce)}})},ES=new Map,cm=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,u=[r,o,n];let l=u.length,f=l,d,h,g=ES;for(;f--;)d=u[f],h=g.get(d),h===void 0&&g.set(d,h=f?new Map:gS(t)),g=h;return h};cm();const wc={http:U2,xhr:cS,fetch:{get:cm}};Y.forEach(wc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const fm=e=>`- ${e}`,yS=e=>Y.isFunction(e)||e===null||e===!1,dm={getAdapter:(e,t)=>{e=Y.isArray(e)?e:[e];const{length:n}=e;let r,o;const u={};for(let l=0;l<n;l++){r=e[l];let f;if(o=r,!yS(r)&&(o=wc[(f=String(r)).toLowerCase()],o===void 0))throw new Fe(`Unknown adapter '${f}'`);if(o&&(Y.isFunction(o)||(o=o.get(t))))break;u[f||"#"+l]=o}if(!o){const l=Object.entries(u).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let f=n?l.length>1?`since :
18
+ */var Vs;function ec(){if(Vs)return gt;Vs=1;var e=Bi(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(f,d,h){var g,y={},b=null,T=null;h!==void 0&&(b=""+h),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(T=d.ref);for(g in d)r.call(d,g)&&!u.hasOwnProperty(g)&&(y[g]=d[g]);if(f&&f.defaultProps)for(g in d=f.defaultProps,d)y[g]===void 0&&(y[g]=d[g]);return{$$typeof:t,type:f,key:b,ref:T,props:y,_owner:o.current}}return gt.Fragment=n,gt.jsx=l,gt.jsxs=l,gt}var Bn;function jb(){return Bn||(Bn=1,nt.exports=ec()),nt.exports}var P=jb();const Jn=Object.create(null);Jn.open="0",Jn.close="1",Jn.ping="2",Jn.pong="3",Jn.message="4",Jn.upgrade="5",Jn.noop="6";const Cu=Object.create(null);Object.keys(Jn).forEach(e=>{Cu[Jn[e]]=e});const tc={type:"error",data:"parser error"},up=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ap=typeof ArrayBuffer=="function",lp=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,nc=({type:e,data:t},n,r)=>up&&t instanceof Blob?n?r(t):cp(t,r):ap&&(t instanceof ArrayBuffer||lp(t))?n?r(t):cp(new Blob([t]),r):r(Jn[e]+(t||"")),cp=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function fp(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let rc;function $b(e,t){if(up&&e.data instanceof Blob)return e.data.arrayBuffer().then(fp).then(t);if(ap&&(e.data instanceof ArrayBuffer||lp(e.data)))return t(fp(e.data));nc(e,!1,n=>{rc||(rc=new TextEncoder),t(rc.encode(n))})}const dp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ys=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let e=0;e<dp.length;e++)Ys[dp.charCodeAt(e)]=e;const Vb=e=>{let t=e.length*.75,n=e.length,r,o=0,u,l,f,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),g=new Uint8Array(h);for(r=0;r<n;r+=4)u=Ys[e.charCodeAt(r)],l=Ys[e.charCodeAt(r+1)],f=Ys[e.charCodeAt(r+2)],d=Ys[e.charCodeAt(r+3)],g[o++]=u<<2|l>>4,g[o++]=(l&15)<<4|f>>2,g[o++]=(f&3)<<6|d&63;return h},Yb=typeof ArrayBuffer=="function",ic=(e,t)=>{if(typeof e!="string")return{type:"message",data:hp(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:qb(e.substring(1),t)}:Cu[n]?e.length>1?{type:Cu[n],data:e.substring(1)}:{type:Cu[n]}:tc},qb=(e,t)=>{if(Yb){const n=Vb(e);return hp(n,t)}else return{base64:!0,data:e}},hp=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},pp="",Wb=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((u,l)=>{nc(u,!1,f=>{r[l]=f,++o===n&&t(r.join(pp))})})},Gb=(e,t)=>{const n=e.split(pp),r=[];for(let o=0;o<n.length;o++){const u=ic(n[o],t);if(r.push(u),u.type==="error")break}return r};function Kb(){return new TransformStream({transform(e,t){$b(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const u=new DataView(o.buffer);u.setUint8(0,126),u.setUint16(1,r)}else{o=new Uint8Array(9);const u=new DataView(o.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let sc;function ku(e){return e.reduce((t,n)=>t+n.length,0)}function wu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Qb(e,t){sc||(sc=new TextDecoder);const n=[];let r=0,o=-1,u=!1;return new TransformStream({transform(l,f){for(n.push(l);;){if(r===0){if(ku(n)<1)break;const d=wu(n,1);u=(d[0]&128)===128,o=d[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(ku(n)<2)break;const d=wu(n,2);o=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),r=3}else if(r===2){if(ku(n)<8)break;const d=wu(n,8),h=new DataView(d.buffer,d.byteOffset,d.length),g=h.getUint32(0);if(g>Math.pow(2,21)-1){f.enqueue(tc);break}o=g*Math.pow(2,32)+h.getUint32(4),r=3}else{if(ku(n)<o)break;const d=wu(n,o);f.enqueue(ic(u?d:sc.decode(d),t)),r=0}if(o===0||o>e){f.enqueue(tc);break}}}})}const mp=4;function xt(e){if(e)return Xb(e)}function Xb(e){for(var t in xt.prototype)e[t]=xt.prototype[t];return e}xt.prototype.on=xt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},xt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},xt.prototype.off=xt.prototype.removeListener=xt.prototype.removeAllListeners=xt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this},xt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},xt.prototype.emitReserved=xt.prototype.emit,xt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},xt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Nu=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),kn=typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")(),Jb="arraybuffer";function E4(){}function gp(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Zb=kn.setTimeout,e_=kn.clearTimeout;function vu(e,t){t.useNativeTimers?(e.setTimeoutFn=Zb.bind(kn),e.clearTimeoutFn=e_.bind(kn)):(e.setTimeoutFn=kn.setTimeout.bind(kn),e.clearTimeoutFn=kn.clearTimeout.bind(kn))}const t_=1.33;function n_(e){return typeof e=="string"?r_(e):Math.ceil((e.byteLength||e.size)*t_)}function r_(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Ep(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function i_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function s_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let u=n[r].split("=");t[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return t}class o_ extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class oc extends xt{constructor(t){super(),this.writable=!1,vu(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new o_(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=ic(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=i_(t);return n.length?"?"+n:""}}class u_ extends oc{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Gb(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Wb(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Ep()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let yp=!1;try{yp=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){}const a_=yp;function l_(){}class c_ extends u_{constructor(t){if(super(t),typeof location!="undefined"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,u)=>{this.onError("xhr post error",o,u)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Zn extends xt{constructor(t,n,r){super(),this.createRequest=t,vu(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=gp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch(o){}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(o){}try{r.setRequestHeader("Accept","*/*")}catch(o){}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document!="undefined"&&(this._index=Zn.requestsCount++,Zn.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr=="undefined"||this._xhr===null)){if(this._xhr.onreadystatechange=l_,t)try{this._xhr.abort()}catch(n){}typeof document!="undefined"&&delete Zn.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(Zn.requestsCount=0,Zn.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Tp);else if(typeof addEventListener=="function"){const e="onpagehide"in kn?"pagehide":"unload";addEventListener(e,Tp,!1)}}function Tp(){for(let e in Zn.requests)Zn.requests.hasOwnProperty(e)&&Zn.requests[e].abort()}const f_=function(){const e=bp({xdomain:!1});return e&&e.responseType!==null}();class d_ extends c_{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=f_&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Zn(bp,this.uri(),t)}}function bp(e){const t=e.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!t||a_))return new XMLHttpRequest}catch(n){}if(!t)try{return new kn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(n){}}const _p=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class h_ extends oc{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=_p?{}:gp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;nc(r,this.supportsBinary,u=>{try{this.doWrite(r,u)}catch(l){}o&&Nu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Ep()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const uc=kn.WebSocket||kn.MozWebSocket;class p_ extends h_{createSocket(t,n,r){return _p?new uc(t,n,r):n?new uc(t,n):new uc(t)}doWrite(t,n){this.ws.send(n)}}class m_ extends oc{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=Qb(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Kb();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const u=()=>{r.read().then(({done:f,value:d})=>{f||(this.onPacket(d),u())}).catch(f=>{})};u();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&Nu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const g_={websocket:p_,webtransport:m_,polling:d_},E_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,y_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ac(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=E_.exec(e||""),u={},l=14;for(;l--;)u[y_[l]]=o[l]||"";return n!=-1&&r!=-1&&(u.source=t,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=T_(u,u.path),u.queryKey=b_(u,u.query),u}function T_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function b_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,u){o&&(n[o]=u)}),n}const lc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ou=[];lc&&addEventListener("offline",()=>{Ou.forEach(e=>e())},!1);class Ir extends xt{constructor(t,n){if(super(),this.binaryType=Jb,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=ac(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ac(n.host).host);vu(this,n),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=s_(this.opts.query)),lc&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ou.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=mp,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Ir.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Ir.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=n_(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Nu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const u={type:t,data:n,options:r};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Ir.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),lc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Ou.indexOf(this._offlineEventListener);r!==-1&&Ou.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Ir.protocol=mp;class __ extends Ir{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Ir.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!r)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ir.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(g(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const b=new Error("probe error");b.transport=n.name,this.emitReserved("upgradeError",b)}}))};function u(){r||(r=!0,g(),n.close(),n=null)}const l=y=>{const b=new Error("probe error: "+y);b.transport=n.name,u(),this.emitReserved("upgradeError",b)};function f(){l("transport closed")}function d(){l("socket closed")}function h(y){n&&y.name!==n.name&&u()}const g=()=>{n.removeListener("open",o),n.removeListener("error",l),n.removeListener("close",f),this.off("close",d),this.off("upgrading",h)};n.once("open",o),n.once("error",l),n.once("close",f),this.once("close",d),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let S_=class extends __{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>g_[o]).filter(o=>!!o)),super(t,r)}};function x_(e,t="",n){let r=e;n=n||typeof location!="undefined"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n!="undefined"?e=n.protocol+"//"+e:e="https://"+e),r=ac(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const u=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+u+":"+r.port+t,r.href=r.protocol+"://"+u+(n&&n.port===r.port?"":":"+r.port),r}const A_=typeof ArrayBuffer=="function",C_=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Sp=Object.prototype.toString,k_=typeof Blob=="function"||typeof Blob!="undefined"&&Sp.call(Blob)==="[object BlobConstructor]",w_=typeof File=="function"||typeof File!="undefined"&&Sp.call(File)==="[object FileConstructor]";function cc(e){return A_&&(e instanceof ArrayBuffer||C_(e))||k_&&e instanceof Blob||w_&&e instanceof File}function Iu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Iu(e[n]))return!0;return!1}if(cc(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Iu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Iu(e[n]))return!0;return!1}function N_(e){const t=[],n=e.data,r=e;return r.data=fc(n,t),r.attachments=t.length,{packet:r,buffers:t}}function fc(e,t){if(!e)return e;if(cc(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=fc(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=fc(e[r],t));return n}return e}function v_(e,t){return e.data=dc(e.data,t),delete e.attachments,e}function dc(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=dc(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=dc(e[n],t));return e}const O_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],I_=5;var qe;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(qe||(qe={}));class R_{constructor(t){this.replacer=t}encode(t){return(t.type===qe.EVENT||t.type===qe.ACK)&&Iu(t)?this.encodeAsBinary({type:t.type===qe.EVENT?qe.BINARY_EVENT:qe.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===qe.BINARY_EVENT||t.type===qe.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=N_(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}function xp(e){return Object.prototype.toString.call(e)==="[object Object]"}class hc extends xt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===qe.BINARY_EVENT;r||n.type===qe.BINARY_ACK?(n.type=r?qe.EVENT:qe.ACK,this.reconstructor=new P_(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(cc(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(qe[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===qe.BINARY_EVENT||r.type===qe.BINARY_ACK){const u=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(u,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(l)}if(t.charAt(n+1)==="/"){const u=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(u,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const u=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}r.id=Number(t.substring(u,n+1))}if(t.charAt(++n)){const u=this.tryParse(t.substr(n));if(hc.isPayloadValid(r.type,u))r.data=u;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(n){return!1}}static isPayloadValid(t,n){switch(t){case qe.CONNECT:return xp(n);case qe.DISCONNECT:return n===void 0;case qe.CONNECT_ERROR:return typeof n=="string"||xp(n);case qe.EVENT:case qe.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&O_.indexOf(n[0])===-1);case qe.ACK:case qe.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class P_{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=v_(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const L_=Object.freeze(Object.defineProperty({__proto__:null,Decoder:hc,Encoder:R_,get PacketType(){return qe},protocol:I_},Symbol.toStringTag,{value:"Module"}));function Un(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const D_=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ap extends xt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Un(t,"open",this.onopen.bind(this)),Un(t,"packet",this.onpacket.bind(this)),Un(t,"error",this.onerror.bind(this)),Un(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,u;if(D_.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const l={type:qe.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const g=this.ids++,y=n.pop();this._registerAckCallback(g,y),l.id=g}const f=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,d=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!f||(d?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===t&&this.sendBuffer.splice(f,1);n.call(this,new Error("operation has timed out"))},o),l=(...f)=>{this.io.clearTimeoutFn(u),n.apply(this,f)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,o)=>{const u=(l,f)=>l?o(l):r(f);u.withError=!0,n.push(u),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...u)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...u)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:qe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case qe.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case qe.EVENT:case qe.BINARY_EVENT:this.onevent(t);break;case qe.ACK:case qe.BINARY_ACK:this.onack(t);break;case qe.DISCONNECT:this.ondisconnect();break;case qe.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:qe.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:qe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Ui(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ui.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0},Ui.prototype.reset=function(){this.attempts=0},Ui.prototype.setMin=function(e){this.ms=e},Ui.prototype.setMax=function(e){this.max=e},Ui.prototype.setJitter=function(e){this.jitter=e};class pc extends xt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,vu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ui({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||L_;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new S_(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Un(n,"open",function(){r.onopen(),t&&t()}),u=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),t?t(f):this.maybeReconnectOnOpen()},l=Un(n,"error",u);if(this._timeout!==!1){const f=this._timeout,d=this.setTimeoutFn(()=>{o(),u(new Error("timeout")),n.close()},f);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(o),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Un(t,"ping",this.onping.bind(this)),Un(t,"data",this.ondata.bind(this)),Un(t,"error",this.onerror.bind(this)),Un(t,"close",this.onclose.bind(this)),Un(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Nu(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Ap(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const qs={};function Ru(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=x_(e,t.path||"/socket.io"),r=n.source,o=n.id,u=n.path,l=qs[o]&&u in qs[o].nsps,f=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let d;return f?d=new pc(r,t):(qs[o]||(qs[o]=new pc(r,t)),d=qs[o]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}Object.assign(Ru,{Manager:pc,Socket:Ap,io:Ru,connect:Ru});var M_=function(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||function(r){return r.$$typeof===F_}(t)}(e)},F_=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Ws(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Hi((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function B_(e,t,n){return e.concat(t).map(function(r){return Ws(r,n)})}function Cp(e){return Object.keys(e).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(e))}function kp(e,t){try{return t in e}catch(n){return!1}}function U_(e,t,n){var r={};return n.isMergeableObject(e)&&Cp(e).forEach(function(o){r[o]=Ws(e[o],n)}),Cp(t).forEach(function(o){(function(u,l){return kp(u,l)&&!(Object.hasOwnProperty.call(u,l)&&Object.propertyIsEnumerable.call(u,l))})(e,o)||(kp(e,o)&&n.isMergeableObject(t[o])?r[o]=function(u,l){if(!l.customMerge)return Hi;var f=l.customMerge(u);return typeof f=="function"?f:Hi}(o,n)(e[o],t[o],n):r[o]=Ws(t[o],n))}),r}function Hi(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||B_,n.isMergeableObject=n.isMergeableObject||M_,n.cloneUnlessOtherwiseSpecified=Ws;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):U_(e,t,n):Ws(t,n)}Hi.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,r){return Hi(n,r,t)},{})};var H_=Hi;let z_=class{constructor(t){Object.assign(this,t)}};function Xt(e){if(e)return function(t){for(var n in Xt.prototype)t[n]=Xt.prototype[n];return t}(e)}Xt.prototype.on=Xt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Xt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Xt.prototype.off=Xt.prototype.removeListener=Xt.prototype.removeAllListeners=Xt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this},Xt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},Xt.prototype.emitReserved=Xt.prototype.emit,Xt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Xt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const j_=typeof ArrayBuffer=="function",wp=Object.prototype.toString,$_=typeof Blob=="function"||typeof Blob!="undefined"&&wp.call(Blob)==="[object BlobConstructor]",V_=typeof File=="function"||typeof File!="undefined"&&wp.call(File)==="[object FileConstructor]";function mc(e){return j_&&(e instanceof ArrayBuffer||(t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer)(e))||$_&&e instanceof Blob||V_&&e instanceof File}function Pu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Pu(e[n]))return!0;return!1}if(mc(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Pu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Pu(e[n]))return!0;return!1}function Y_(e){const t=[],n=e.data,r=e;return r.data=gc(n,t),r.attachments=t.length,{packet:r,buffers:t}}function gc(e,t){if(!e)return e;if(mc(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=gc(e[r],t);return n}if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=gc(e[r],t));return n}return e}function q_(e,t){return e.data=Ec(e.data,t),delete e.attachments,e}function Ec(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Ec(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Ec(e[n],t));return e}const W_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var dt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(dt||(dt={}));class G_{constructor(t){this.replacer=t}encode(t){return t.type!==dt.EVENT&&t.type!==dt.ACK||!Pu(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===dt.EVENT?dt.BINARY_EVENT:dt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let n=""+t.type;return t.type!==dt.BINARY_EVENT&&t.type!==dt.BINARY_ACK||(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Y_(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}function Np(e){return Object.prototype.toString.call(e)==="[object Object]"}class yc extends Xt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===dt.BINARY_EVENT;r||n.type===dt.BINARY_ACK?(n.type=r?dt.EVENT:dt.ACK,this.reconstructor=new K_(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else{if(!mc(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n))}}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(dt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===dt.BINARY_EVENT||r.type===dt.BINARY_ACK){const u=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(u,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(l)}if(t.charAt(n+1)==="/"){const u=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(u,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const u=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}r.id=Number(t.substring(u,n+1))}if(t.charAt(++n)){const u=this.tryParse(t.substr(n));if(!yc.isPayloadValid(r.type,u))throw new Error("invalid payload");r.data=u}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(n){return!1}}static isPayloadValid(t,n){switch(t){case dt.CONNECT:return Np(n);case dt.DISCONNECT:return n===void 0;case dt.CONNECT_ERROR:return typeof n=="string"||Np(n);case dt.EVENT:case dt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&W_.indexOf(n[0])===-1);case dt.ACK:case dt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class K_{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=q_(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const vp=["searchParams.facetFilters","hits","products"],Op=(e,t,n)=>function r(o,u=[]){const l=Object.entries(o).map(([f,d])=>{const h=[...u,t(f)];return[e(f),d instanceof Object&&!(n!=null&&n.includes(h.join(".")))?r(d,h):d]});return Array.isArray(o)?l.map(f=>f[1]):Object.fromEntries(l)},Ip=e=>e.replace(/_([a-z])/g,(t,n)=>n.toUpperCase()),Q_=Op(e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),e=>e,vp),X_=Op(Ip,Ip,vp),J_={Encoder:class extends G_{encode(e){var t,n;return super.encode($e(Q({},e),{data:((t=e.data)==null?void 0:t.length)==2?[e.data[0],Q_(e.data[1])]:((n=e.data)==null?void 0:n.length)==1?[e.data[0]]:typeof e.data=="object"&&e.data!=null?e.data:void 0}))}},Decoder:class extends yc{constructor(){super((e,t)=>e==""&&Array.isArray(t)?t.map(n=>n instanceof Object?X_(n):n):t)}}},Z_={path:"/api/v1/socket.io",autoConnect:!1,transports:["polling","websocket"],upgrade:!0,timeout:1e4};class e2{constructor({apiKey:t,apiToken:n,baseUrl:r,namespace:o="/copilot",socketOptions:u={}}){if(this.sessionIdKey="x-cimulate-copilot-session-id",this.reconnectAttempts=0,this.maxReconnectAttempts=5,this.maxReconnectDelay=3e4,this.handleConnectAck=h=>{console.log("[Copilot SDK] Connect Ack:",h),this.socket.auth={[this.sessionIdKey]:h.sessionId}},this.handleDisconnect=h=>{console.warn(`[Copilot SDK] Disconnected: ${h}`),h!=="io client disconnect"&&(console.log(`[Copilot SDK] Disconnected due to ${h}. Attempting reconnect...`),this.retryConnect())},this.handleConnectError=h=>{console.error(`[Copilot SDK] Connect error: ${h.message}`);const g=h.message.match(/['"]error['"]:\s*['"](\w+)['"]/),y=g==null?void 0:g[1];y&&["InvalidApiKey","InvalidToken","BadRequest"].includes(y)?this.disconnect():this.socket.connected||this.socket.active||(console.log("[Copilot SDK] Retrying connect attempt..."),this.retryConnect())},this.offInternalHandlers=()=>{this.socket.off("connect_ack",this.handleConnectAck),this.socket.off("disconnect",this.handleDisconnect),this.off("connect_error",this.handleConnectError)},t&&n||!t&&!n)throw new Error("Provide exactly one authentication method: either 'apiKey' or 'apiToken', but not both.");const l=`${r}${o}`,f={};t?f["x-cimulate-api-key"]=t:n&&(f.Authorization=`Bearer ${n}`);const d=[Z_,u,{parser:J_,withCredentials:!0,transportOptions:{polling:{extraHeaders:f}}}];this.socket=Ru(l,H_.all(d))}connect(){this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,this.reconnectAttempts=0),this.offInternalHandlers(),this.on("connect_ack",this.handleConnectAck),this.socket.on("disconnect",this.handleDisconnect),this.on("connect_error",this.handleConnectError),this.socket.auth&&this.sessionIdKey in this.socket.auth&&(this.socket.auth={}),this.socket.connect()}retryConnect(){if(!(this.socket.connected||this.socket.active||this.reconnectAttempts>=this.maxReconnectAttempts))if(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0),this.reconnectAttempts<this.maxReconnectAttempts){const t=Math.min(1e3*Jl(2,this.reconnectAttempts),this.maxReconnectDelay);console.info(`[Copilot SDK] Retry #${this.reconnectAttempts+1} in ${t}ms...`),this.reconnectTimeout=setTimeout(()=>{this.socket.connected||this.socket.active||(this.reconnectAttempts++,this.reconnect())},t)}else console.error("[Copilot SDK] Max reconnect attempts reached.")}reconnect(){this.socket.connected||this.socket.active||this.reconnectAttempts>=this.maxReconnectAttempts||(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,this.reconnectAttempts=0),this.socket.connect())}search(t,n){return tn(this,null,function*(){return this.asyncResponse("copilot_search",t,n)})}facetedNavigation(t,n){return tn(this,null,function*(){return this.asyncResponse("faceted_navigation",t,n)})}cancelRequest(t,n){return this.asyncResponse("cancel",t,n)}requestSessionInformation(t){return tn(this,null,function*(){return new Promise(n=>{this.socket.emit("session_info",r=>{t&&t(r),n(r)})})})}on(t,n){return this.socket.on(t,n),n}once(t,n){this.socket.once(t,n)}off(t,n){this.socket.off(t,n)}disconnect(){this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0),this.offInternalHandlers(),this.socket.disconnect()}onDisconnect(t){this.socket.on("disconnect",t)}asyncResponse(t,n,r){return tn(this,null,function*(){if(r)return void this.socket.emit(t,n,r);let o="";const u=function(l){return Zl(this,null,function*(){const f=[];let d=!1,h=null;const g=yield new pr(l({emit:y=>{f.push(y),h&&(h(),h=null)},cancel:()=>{d=!0}}));try{for(;!d;)f.length>0?yield f.shift():yield new pr(new Promise(y=>{h=y}));for(;f.length>0;)yield f.shift()}finally{yield new pr(g==null?void 0:g())}})}(({emit:l,cancel:f})=>{const d=(h,g)=>{["done","error"].includes(g.name)&&f(),g.eventSourceId==o&&l(g)};return this.socket.onAny(d),()=>tn(this,null,function*(){this.socket.offAny(d)})});return{result:yield new Promise((l,f)=>this.socket.emit(t,n,d=>{d.name==="error"?f(new z_(d)):(o=d==null?void 0:d.id,l(d))})),events:u}})}}var X=Bi();const ui=Ve(X);function Rp(e,t){return function(){return e.apply(t,arguments)}}const{toString:t2}=Object.prototype,{getPrototypeOf:Tc}=Object,{iterator:Lu,toStringTag:Pp}=Symbol,Du=(e=>t=>{const n=t2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Hn=e=>(e=e.toLowerCase(),t=>Du(t)===e),Mu=e=>t=>typeof t===e,{isArray:zi}=Array,ji=Mu("undefined");function Gs(e){return e!==null&&!ji(e)&&e.constructor!==null&&!ji(e.constructor)&&rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lp=Hn("ArrayBuffer");function n2(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Lp(e.buffer),t}const r2=Mu("string"),rn=Mu("function"),Dp=Mu("number"),Ks=e=>e!==null&&typeof e=="object",i2=e=>e===!0||e===!1,Fu=e=>{if(Du(e)!=="object")return!1;const t=Tc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pp in e)&&!(Lu in e)},s2=e=>{if(!Ks(e)||Gs(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},o2=Hn("Date"),u2=Hn("File"),a2=Hn("Blob"),l2=Hn("FileList"),c2=e=>Ks(e)&&rn(e.pipe),f2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rn(e.append)&&((t=Du(e))==="formdata"||t==="object"&&rn(e.toString)&&e.toString()==="[object FormData]"))},d2=Hn("URLSearchParams"),[h2,p2,m2,g2]=["ReadableStream","Request","Response","Headers"].map(Hn),E2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,o;if(typeof e!="object"&&(e=[e]),zi(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Gs(e))return;const u=n?Object.getOwnPropertyNames(e):Object.keys(e),l=u.length;let f;for(r=0;r<l;r++)f=u[r],t.call(null,e[f],f,e)}}function Mp(e,t){if(Gs(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ai=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Fp=e=>!ji(e)&&e!==ai;function bc(){const{caseless:e,skipUndefined:t}=Fp(this)&&this||{},n={},r=(o,u)=>{const l=e&&Mp(n,u)||u;Fu(n[l])&&Fu(o)?n[l]=bc(n[l],o):Fu(o)?n[l]=bc({},o):zi(o)?n[l]=o.slice():(!t||!ji(o))&&(n[l]=o)};for(let o=0,u=arguments.length;o<u;o++)arguments[o]&&Qs(arguments[o],r);return n}const y2=(e,t,n,{allOwnKeys:r}={})=>(Qs(t,(o,u)=>{n&&rn(o)?e[u]=Rp(o,n):e[u]=o},{allOwnKeys:r}),e),T2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),b2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},_2=(e,t,n,r)=>{let o,u,l;const f={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),u=o.length;u-- >0;)l=o[u],(!r||r(l,e,t))&&!f[l]&&(t[l]=e[l],f[l]=!0);e=n!==!1&&Tc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},S2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},x2=e=>{if(!e)return null;if(zi(e))return e;let t=e.length;if(!Dp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},A2=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Tc(Uint8Array)),C2=(e,t)=>{const r=(e&&e[Lu]).call(e);let o;for(;(o=r.next())&&!o.done;){const u=o.value;t.call(e,u[0],u[1])}},k2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},w2=Hn("HTMLFormElement"),N2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Bp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),v2=Hn("RegExp"),Up=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qs(n,(o,u)=>{let l;(l=t(o,u,e))!==!1&&(r[u]=l||o)}),Object.defineProperties(e,r)},O2=e=>{Up(e,(t,n)=>{if(rn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(rn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},I2=(e,t)=>{const n={},r=o=>{o.forEach(u=>{n[u]=!0})};return zi(e)?r(e):r(String(e).split(t)),n},R2=()=>{},P2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function L2(e){return!!(e&&rn(e.append)&&e[Pp]==="FormData"&&e[Lu])}const D2=e=>{const t=new Array(10),n=(r,o)=>{if(Ks(r)){if(t.indexOf(r)>=0)return;if(Gs(r))return r;if(!("toJSON"in r)){t[o]=r;const u=zi(r)?[]:{};return Qs(r,(l,f)=>{const d=n(l,o+1);!ji(d)&&(u[f]=d)}),t[o]=void 0,u}}return r};return n(e,0)},M2=Hn("AsyncFunction"),F2=e=>e&&(Ks(e)||rn(e))&&rn(e.then)&&rn(e.catch),Hp=((e,t)=>e?setImmediate:t?((n,r)=>(ai.addEventListener("message",({source:o,data:u})=>{o===ai&&u===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ai.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",rn(ai.postMessage)),B2=typeof queueMicrotask!="undefined"?queueMicrotask.bind(ai):typeof process!="undefined"&&process.nextTick||Hp,Y={isArray:zi,isArrayBuffer:Lp,isBuffer:Gs,isFormData:f2,isArrayBufferView:n2,isString:r2,isNumber:Dp,isBoolean:i2,isObject:Ks,isPlainObject:Fu,isEmptyObject:s2,isReadableStream:h2,isRequest:p2,isResponse:m2,isHeaders:g2,isUndefined:ji,isDate:o2,isFile:u2,isBlob:a2,isRegExp:v2,isFunction:rn,isStream:c2,isURLSearchParams:d2,isTypedArray:A2,isFileList:l2,forEach:Qs,merge:bc,extend:y2,trim:E2,stripBOM:T2,inherits:b2,toFlatObject:_2,kindOf:Du,kindOfTest:Hn,endsWith:S2,toArray:x2,forEachEntry:C2,matchAll:k2,isHTMLForm:w2,hasOwnProperty:Bp,hasOwnProp:Bp,reduceDescriptors:Up,freezeMethods:O2,toObjectSet:I2,toCamelCase:N2,noop:R2,toFiniteNumber:P2,findKey:Mp,global:ai,isContextDefined:Fp,isSpecCompliantForm:L2,toJSONObject:D2,isAsyncFn:M2,isThenable:F2,setImmediate:Hp,asap:B2,isIterable:e=>e!=null&&rn(e[Lu])};function Fe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Y.inherits(Fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const zp=Fe.prototype,jp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{jp[e]={value:e}}),Object.defineProperties(Fe,jp),Object.defineProperty(zp,"isAxiosError",{value:!0}),Fe.from=(e,t,n,r,o,u)=>{const l=Object.create(zp);Y.toFlatObject(e,l,function(g){return g!==Error.prototype},h=>h!=="isAxiosError");const f=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Fe.call(l,f,d,n,r,o),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",u&&Object.assign(l,u),l};const U2=null;function _c(e){return Y.isPlainObject(e)||Y.isArray(e)}function $p(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function Vp(e,t,n){return e?e.concat(t).map(function(o,u){return o=$p(o),!n&&u?"["+o+"]":o}).join(n?".":""):t}function H2(e){return Y.isArray(e)&&!e.some(_c)}const z2=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function Bu(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,O){return!Y.isUndefined(O[C])});const r=n.metaTokens,o=n.visitor||g,u=n.dots,l=n.indexes,d=(n.Blob||typeof Blob!="undefined"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(Y.isDate(S))return S.toISOString();if(Y.isBoolean(S))return S.toString();if(!d&&Y.isBlob(S))throw new Fe("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(S)||Y.isTypedArray(S)?d&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,C,O){let L=S;if(S&&!O&&typeof S=="object"){if(Y.endsWith(C,"{}"))C=r?C:C.slice(0,-2),S=JSON.stringify(S);else if(Y.isArray(S)&&H2(S)||(Y.isFileList(S)||Y.endsWith(C,"[]"))&&(L=Y.toArray(S)))return C=$p(C),L.forEach(function(j,te){!(Y.isUndefined(j)||j===null)&&t.append(l===!0?Vp([C],te,u):l===null?C:C+"[]",h(j))}),!1}return _c(S)?!0:(t.append(Vp(O,C,u),h(S)),!1)}const y=[],b=Object.assign(z2,{defaultVisitor:g,convertValue:h,isVisitable:_c});function T(S,C){if(!Y.isUndefined(S)){if(y.indexOf(S)!==-1)throw Error("Circular reference detected in "+C.join("."));y.push(S),Y.forEach(S,function(L,$){(!(Y.isUndefined(L)||L===null)&&o.call(t,L,Y.isString($)?$.trim():$,C,b))===!0&&T(L,C?C.concat($):[$])}),y.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return T(e),t}function Yp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Sc(e,t){this._pairs=[],e&&Bu(e,this,t)}const qp=Sc.prototype;qp.append=function(t,n){this._pairs.push([t,n])},qp.toString=function(t){const n=t?function(r){return t.call(this,r,Yp)}:Yp;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function j2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wp(e,t,n){if(!t)return e;const r=n&&n.encode||j2;Y.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let u;if(o?u=o(t,n):u=Y.isURLSearchParams(t)?t.toString():new Sc(t,n).toString(r),u){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class Gp{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Kp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$2={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:Sc,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},xc=typeof window!="undefined"&&typeof document!="undefined",Ac=typeof navigator=="object"&&navigator||void 0,V2=xc&&(!Ac||["ReactNative","NativeScript","NS"].indexOf(Ac.product)<0),Y2=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",q2=xc&&window.location.href||"http://localhost",$t=Q(Q({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xc,hasStandardBrowserEnv:V2,hasStandardBrowserWebWorkerEnv:Y2,navigator:Ac,origin:q2},Symbol.toStringTag,{value:"Module"}))),$2);function W2(e,t){return Bu(e,new $t.classes.URLSearchParams,Q({visitor:function(n,r,o,u){return $t.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function G2(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function K2(e){const t={},n=Object.keys(e);let r;const o=n.length;let u;for(r=0;r<o;r++)u=n[r],t[u]=e[u];return t}function Qp(e){function t(n,r,o,u){let l=n[u++];if(l==="__proto__")return!0;const f=Number.isFinite(+l),d=u>=n.length;return l=!l&&Y.isArray(o)?o.length:l,d?(Y.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!f):((!o[l]||!Y.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],u)&&Y.isArray(o[l])&&(o[l]=K2(o[l])),!f)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,o)=>{t(G2(r),o,n,0)}),n}return null}function Q2(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Xs={transitional:Kp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,u=Y.isObject(t);if(u&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return o?JSON.stringify(Qp(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(u){if(r.indexOf("application/x-www-form-urlencoded")>-1)return W2(t,this.formSerializer).toString();if((f=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Bu(f?{"files[]":t}:t,d&&new d,this.formSerializer)}}return u||o?(n.setContentType("application/json",!1),Q2(t)):t}],transformResponse:[function(t){const n=this.transitional||Xs.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(f){if(l)throw f.name==="SyntaxError"?Fe.from(f,Fe.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$t.classes.FormData,Blob:$t.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{Xs.headers[e]={}});const X2=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),J2=e=>{const t={};let n,r,o;return e&&e.split(`
19
+ `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&X2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Xp=Symbol("internals");function Js(e){return e&&String(e).trim().toLowerCase()}function Uu(e){return e===!1||e==null?e:Y.isArray(e)?e.map(Uu):String(e)}function Z2(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cc(e,t,n,r,o){if(Y.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function tS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nS(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,u,l){return this[r].call(this,t,o,u,l)},configurable:!0})})}let sn=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function u(f,d,h){const g=Js(d);if(!g)throw new Error("header name must be a non-empty string");const y=Y.findKey(o,g);(!y||o[y]===void 0||h===!0||h===void 0&&o[y]!==!1)&&(o[y||d]=Uu(f))}const l=(f,d)=>Y.forEach(f,(h,g)=>u(h,g,d));if(Y.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(Y.isString(t)&&(t=t.trim())&&!eS(t))l(J2(t),n);else if(Y.isObject(t)&&Y.isIterable(t)){let f={},d,h;for(const g of t){if(!Y.isArray(g))throw TypeError("Object iterator must return a key-value pair");f[h=g[0]]=(d=f[h])?Y.isArray(d)?[...d,g[1]]:[d,g[1]]:g[1]}l(f,n)}else t!=null&&u(n,t,r);return this}get(t,n){if(t=Js(t),t){const r=Y.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Z2(o);if(Y.isFunction(n))return n.call(this,o,r);if(Y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Js(t),t){const r=Y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Cc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function u(l){if(l=Js(l),l){const f=Y.findKey(r,l);f&&(!n||Cc(r,r[f],f,n))&&(delete r[f],o=!0)}}return Y.isArray(t)?t.forEach(u):u(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const u=n[r];(!t||Cc(this,this[u],u,t,!0))&&(delete this[u],o=!0)}return o}normalize(t){const n=this,r={};return Y.forEach(this,(o,u)=>{const l=Y.findKey(r,u);if(l){n[l]=Uu(o),delete n[u];return}const f=t?tS(u):String(u).trim();f!==u&&delete n[u],n[f]=Uu(o),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
20
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Xp]=this[Xp]={accessors:{}}).accessors,o=this.prototype;function u(l){const f=Js(l);r[f]||(nS(o,l),r[f]=!0)}return Y.isArray(t)?t.forEach(u):u(t),this}};sn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(sn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Y.freezeMethods(sn);function kc(e,t){const n=this||Xs,r=t||n,o=sn.from(r.headers);let u=r.data;return Y.forEach(e,function(f){u=f.call(n,u,o.normalize(),t?t.status:void 0)}),o.normalize(),u}function Jp(e){return!!(e&&e.__CANCEL__)}function $i(e,t,n){Fe.call(this,e==null?"canceled":e,Fe.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits($i,Fe,{__CANCEL__:!0});function Zp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Fe("Request failed with status code "+n.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function iS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,u=0,l;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),g=r[u];l||(l=h),n[o]=d,r[o]=h;let y=u,b=0;for(;y!==o;)b+=n[y++],y=y%e;if(o=(o+1)%e,o===u&&(u=(u+1)%e),h-l<t)return;const T=g&&h-g;return T?Math.round(b*1e3/T):void 0}}function sS(e,t){let n=0,r=1e3/t,o,u;const l=(h,g=Date.now())=>{n=g,o=null,u&&(clearTimeout(u),u=null),e(...h)};return[(...h)=>{const g=Date.now(),y=g-n;y>=r?l(h,g):(o=h,u||(u=setTimeout(()=>{u=null,l(o)},r-y)))},()=>o&&l(o)]}const Hu=(e,t,n=3)=>{let r=0;const o=iS(50,250);return sS(u=>{const l=u.loaded,f=u.lengthComputable?u.total:void 0,d=l-r,h=o(d),g=l<=f;r=l;const y={loaded:l,total:f,progress:f?l/f:void 0,bytes:d,rate:h||void 0,estimated:h&&f&&g?(f-l)/h:void 0,event:u,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(y)},n)},em=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tm=e=>(...t)=>Y.asap(()=>e(...t)),oS=$t.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$t.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($t.origin),$t.navigator&&/(msie|trident)/i.test($t.navigator.userAgent)):()=>!0,uS=$t.hasStandardBrowserEnv?{write(e,t,n,r,o,u){const l=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&l.push("path="+r),Y.isString(o)&&l.push("domain="+o),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function nm(e,t,n){let r=!aS(t);return e&&(r||n==!1)?lS(e,t):t}const rm=e=>e instanceof sn?Q({},e):e;function li(e,t){t=t||{};const n={};function r(h,g,y,b){return Y.isPlainObject(h)&&Y.isPlainObject(g)?Y.merge.call({caseless:b},h,g):Y.isPlainObject(g)?Y.merge({},g):Y.isArray(g)?g.slice():g}function o(h,g,y,b){if(Y.isUndefined(g)){if(!Y.isUndefined(h))return r(void 0,h,y,b)}else return r(h,g,y,b)}function u(h,g){if(!Y.isUndefined(g))return r(void 0,g)}function l(h,g){if(Y.isUndefined(g)){if(!Y.isUndefined(h))return r(void 0,h)}else return r(void 0,g)}function f(h,g,y){if(y in t)return r(h,g);if(y in e)return r(void 0,h)}const d={url:u,method:u,data:u,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:f,headers:(h,g,y)=>o(rm(h),rm(g),y,!0)};return Y.forEach(Object.keys(Q(Q({},e),t)),function(g){const y=d[g]||o,b=y(e[g],t[g],g);Y.isUndefined(b)&&y!==f||(n[g]=b)}),n}const im=e=>{const t=li({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:u,headers:l,auth:f}=t;if(t.headers=l=sn.from(l),t.url=Wp(nm(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&l.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),Y.isFormData(n)){if($t.hasStandardBrowserEnv||$t.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(Y.isFunction(n.getHeaders)){const d=n.getHeaders(),h=["content-type","content-length"];Object.entries(d).forEach(([g,y])=>{h.includes(g.toLowerCase())&&l.set(g,y)})}}if($t.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(t)),r||r!==!1&&oS(t.url))){const d=o&&u&&uS.read(u);d&&l.set(o,d)}return t},cS=typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(n,r){const o=im(e);let u=o.data;const l=sn.from(o.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=o,g,y,b,T,S;function C(){T&&T(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let O=new XMLHttpRequest;O.open(o.method.toUpperCase(),o.url,!0),O.timeout=o.timeout;function L(){if(!O)return;const j=sn.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),he={data:!f||f==="text"||f==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:j,config:e,request:O};Zp(function(me){n(me),C()},function(me){r(me),C()},he),O=null}"onloadend"in O?O.onloadend=L:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(L)},O.onabort=function(){O&&(r(new Fe("Request aborted",Fe.ECONNABORTED,e,O)),O=null)},O.onerror=function(te){const he=te&&te.message?te.message:"Network Error",F=new Fe(he,Fe.ERR_NETWORK,e,O);F.event=te||null,r(F),O=null},O.ontimeout=function(){let te=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const he=o.transitional||Kp;o.timeoutErrorMessage&&(te=o.timeoutErrorMessage),r(new Fe(te,he.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,O)),O=null},u===void 0&&l.setContentType(null),"setRequestHeader"in O&&Y.forEach(l.toJSON(),function(te,he){O.setRequestHeader(he,te)}),Y.isUndefined(o.withCredentials)||(O.withCredentials=!!o.withCredentials),f&&f!=="json"&&(O.responseType=o.responseType),h&&([b,S]=Hu(h,!0),O.addEventListener("progress",b)),d&&O.upload&&([y,T]=Hu(d),O.upload.addEventListener("progress",y),O.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(g=j=>{O&&(r(!j||j.type?new $i(null,e,O):j),O.abort(),O=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const $=rS(o.url);if($&&$t.protocols.indexOf($)===-1){r(new Fe("Unsupported protocol "+$+":",Fe.ERR_BAD_REQUEST,e));return}O.send(u||null)})},fS=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const u=function(h){if(!o){o=!0,f();const g=h instanceof Error?h:this.reason;r.abort(g instanceof Fe?g:new $i(g instanceof Error?g.message:g))}};let l=t&&setTimeout(()=>{l=null,u(new Fe(`timeout ${t} of ms exceeded`,Fe.ETIMEDOUT))},t);const f=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(u):h.removeEventListener("abort",u)}),e=null)};e.forEach(h=>h.addEventListener("abort",u));const{signal:d}=r;return d.unsubscribe=()=>Y.asap(f),d}},dS=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},hS=function(e,t){return Zl(this,null,function*(){try{for(var n=Hb(pS(e)),r,o,u;r=!(o=yield new pr(n.next())).done;r=!1){const l=o.value;yield*op(dS(l,t))}}catch(o){u=[o]}finally{try{r&&(o=n.return)&&(yield new pr(o.call(n)))}finally{if(u)throw u[0]}}})},pS=function(e){return Zl(this,null,function*(){if(e[Symbol.asyncIterator]){yield*op(e);return}const t=e.getReader();try{for(;;){const{done:n,value:r}=yield new pr(t.read());if(n)break;yield r}}finally{yield new pr(t.cancel())}})},sm=(e,t,n,r)=>{const o=hS(e,t);let u=0,l,f=h=>{l||(l=!0,r&&r(h))};return new ReadableStream({pull(h){return tn(this,null,function*(){try{const{done:g,value:y}=yield o.next();if(g){f(),h.close();return}let b=y.byteLength;if(n){let T=u+=b;n(T)}h.enqueue(new Uint8Array(y))}catch(g){throw f(g),g}})},cancel(h){return f(h),o.return()}},{highWaterMark:2})},om=64*1024,{isFunction:zu}=Y,mS=(({Request:e,Response:t})=>({Request:e,Response:t}))(Y.global),{ReadableStream:um,TextEncoder:am}=Y.global,lm=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},gS=e=>{e=Y.merge.call({skipUndefined:!0},mS,e);const{fetch:t,Request:n,Response:r}=e,o=t?zu(t):typeof fetch=="function",u=zu(n),l=zu(r);if(!o)return!1;const f=o&&zu(um),d=o&&(typeof am=="function"?(S=>C=>S.encode(C))(new am):S=>tn(null,null,function*(){return new Uint8Array(yield new n(S).arrayBuffer())})),h=u&&f&&lm(()=>{let S=!1;const C=new n($t.origin,{body:new um,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!C}),g=l&&f&&lm(()=>Y.isReadableStream(new r("").body)),y={stream:g&&(S=>S.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!y[S]&&(y[S]=(C,O)=>{let L=C&&C[S];if(L)return L.call(C);throw new Fe(`Response type '${S}' is not supported`,Fe.ERR_NOT_SUPPORT,O)})});const b=S=>tn(null,null,function*(){if(S==null)return 0;if(Y.isBlob(S))return S.size;if(Y.isSpecCompliantForm(S))return(yield new n($t.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(S)||Y.isArrayBuffer(S))return S.byteLength;if(Y.isURLSearchParams(S)&&(S=S+""),Y.isString(S))return(yield d(S)).byteLength}),T=(S,C)=>tn(null,null,function*(){const O=Y.toFiniteNumber(S.getContentLength());return O==null?b(C):O});return S=>tn(null,null,function*(){let{url:C,method:O,data:L,signal:$,cancelToken:j,timeout:te,onDownloadProgress:he,onUploadProgress:F,responseType:me,headers:Ae,withCredentials:Ne="same-origin",fetchOptions:H}=im(S),ge=t||fetch;me=me?(me+"").toLowerCase():"text";let pe=fS([$,j&&j.toAbortSignal()],te),ce=null;const fe=pe&&pe.unsubscribe&&(()=>{pe.unsubscribe()});let be;try{if(F&&h&&O!=="get"&&O!=="head"&&(be=yield T(Ae,L))!==0){let I=new n(C,{method:"POST",body:L,duplex:"half"}),q;if(Y.isFormData(L)&&(q=I.headers.get("content-type"))&&Ae.setContentType(q),I.body){const[w,Ee]=em(be,Hu(tm(F)));L=sm(I.body,om,w,Ee)}}Y.isString(Ne)||(Ne=Ne?"include":"omit");const Le=u&&"credentials"in n.prototype,ae=$e(Q({},H),{signal:pe,method:O.toUpperCase(),headers:Ae.normalize().toJSON(),body:L,duplex:"half",credentials:Le?Ne:void 0});ce=u&&new n(C,ae);let M=yield u?ge(ce,H):ge(C,ae);const G=g&&(me==="stream"||me==="response");if(g&&(he||G&&fe)){const I={};["status","statusText","headers"].forEach(ve=>{I[ve]=M[ve]});const q=Y.toFiniteNumber(M.headers.get("content-length")),[w,Ee]=he&&em(q,Hu(tm(he),!0))||[];M=new r(sm(M.body,om,w,()=>{Ee&&Ee(),fe&&fe()}),I)}me=me||"text";let x=yield y[Y.findKey(y,me)||"text"](M,S);return!G&&fe&&fe(),yield new Promise((I,q)=>{Zp(I,q,{data:x,headers:sn.from(M.headers),status:M.status,statusText:M.statusText,config:S,request:ce})})}catch(Le){throw fe&&fe(),Le&&Le.name==="TypeError"&&/Load failed|fetch/i.test(Le.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,S,ce),{cause:Le.cause||Le}):Fe.from(Le,Le&&Le.code,S,ce)}})},ES=new Map,cm=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,u=[r,o,n];let l=u.length,f=l,d,h,g=ES;for(;f--;)d=u[f],h=g.get(d),h===void 0&&g.set(d,h=f?new Map:gS(t)),g=h;return h};cm();const wc={http:U2,xhr:cS,fetch:{get:cm}};Y.forEach(wc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const fm=e=>`- ${e}`,yS=e=>Y.isFunction(e)||e===null||e===!1,dm={getAdapter:(e,t)=>{e=Y.isArray(e)?e:[e];const{length:n}=e;let r,o;const u={};for(let l=0;l<n;l++){r=e[l];let f;if(o=r,!yS(r)&&(o=wc[(f=String(r)).toLowerCase()],o===void 0))throw new Fe(`Unknown adapter '${f}'`);if(o&&(Y.isFunction(o)||(o=o.get(t))))break;u[f||"#"+l]=o}if(!o){const l=Object.entries(u).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let f=n?l.length>1?`since :
21
21
  `+l.map(fm).join(`
22
- `):" "+fm(l[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return o},adapters:wc};function Nc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $i(null,e)}function hm(e){return Nc(e),e.headers=sn.from(e.headers),e.data=kc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dm.getAdapter(e.adapter||Qs.adapter,e)(e).then(function(r){return Nc(e),r.data=kc.call(e,e.transformResponse,r),r.headers=sn.from(r.headers),r},function(r){return Jp(r)||(Nc(e),r&&r.response&&(r.response.data=kc.call(e,e.transformResponse,r.response),r.response.headers=sn.from(r.response.headers))),Promise.reject(r)})}const pm="1.12.2",ju={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ju[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const mm={};ju.transitional=function(t,n,r){function o(u,l){return"[Axios v"+pm+"] Transitional option '"+u+"'"+l+(r?". "+r:"")}return(u,l,f)=>{if(t===!1)throw new Fe(o(l," has been removed"+(n?" in "+n:"")),Fe.ERR_DEPRECATED);return n&&!mm[l]&&(mm[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,l,f):!0}},ju.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function TS(e,t,n){if(typeof e!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const u=r[o],l=t[u];if(l){const f=e[u],d=f===void 0||l(f,u,e);if(d!==!0)throw new Fe("option "+u+" must be "+d,Fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Fe("Unknown option "+u,Fe.ERR_BAD_OPTION)}}const $u={assertOptions:TS,validators:ju},er=$u.validators;let ci=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Gp,response:new Gp}}request(t,n){return tn(this,null,function*(){try{return yield this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const u=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?u&&!String(r.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(r.stack+=`
23
- `+u):r.stack=u}catch(l){}}throw r}})}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=li(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:u}=n;r!==void 0&&$u.assertOptions(r,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean)},!1),o!=null&&(Y.isFunction(o)?n.paramsSerializer={serialize:o}:$u.assertOptions(o,{encode:er.function,serialize:er.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),$u.assertOptions(n,{baseUrl:er.spelling("baseURL"),withXsrfToken:er.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=u&&Y.merge(u.common,u[n.method]);u&&Y.forEach(["delete","get","head","post","put","patch","common"],S=>{delete u[S]}),n.headers=sn.concat(l,u);const f=[];let d=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(d=d&&C.synchronous,f.unshift(C.fulfilled,C.rejected))});const h=[];this.interceptors.response.forEach(function(C){h.push(C.fulfilled,C.rejected)});let g,y=0,b;if(!d){const S=[hm.bind(this),void 0];for(S.unshift(...f),S.push(...h),b=S.length,g=Promise.resolve(n);y<b;)g=g.then(S[y++],S[y++]);return g}b=f.length;let T=n;for(;y<b;){const S=f[y++],C=f[y++];try{T=S(T)}catch(O){C.call(this,O);break}}try{g=hm.call(this,T)}catch(S){return Promise.reject(S)}for(y=0,b=h.length;y<b;)g=g.then(h[y++],h[y++]);return g}getUri(t){t=li(this.defaults,t);const n=nm(t.baseURL,t.url,t.allowAbsoluteUrls);return Wp(n,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){ci.prototype[t]=function(n,r){return this.request(li(r||{},{method:t,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(t){function n(r){return function(u,l,f){return this.request(li(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:u,data:l}))}}ci.prototype[t]=n(),ci.prototype[t+"Form"]=n(!0)});let bS=class zb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(u){n=u});const r=this;this.promise.then(o=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](o);r._listeners=null}),this.promise.then=o=>{let u;const l=new Promise(f=>{r.subscribe(f),u=f}).then(o);return l.cancel=function(){r.unsubscribe(u)},l},t(function(u,l,f){r.reason||(r.reason=new $i(u,l,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new zb(function(o){t=o}),cancel:t}}};function _S(e){return function(n){return e.apply(null,n)}}function SS(e){return Y.isObject(e)&&e.isAxiosError===!0}const vc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vc).forEach(([e,t])=>{vc[t]=e});function gm(e){const t=new ci(e),n=Rp(ci.prototype.request,t);return Y.extend(n,ci.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return gm(li(e,o))},n}const Tt=gm(Qs);Tt.Axios=ci,Tt.CanceledError=$i,Tt.CancelToken=bS,Tt.isCancel=Jp,Tt.VERSION=pm,Tt.toFormData=Bu,Tt.AxiosError=Fe,Tt.Cancel=Tt.CanceledError,Tt.all=function(t){return Promise.all(t)},Tt.spread=_S,Tt.isAxiosError=SS,Tt.mergeConfig=li,Tt.AxiosHeaders=sn,Tt.formToJSON=e=>Qp(Y.isHTMLForm(e)?new FormData(e):e),Tt.getAdapter=dm.getAdapter,Tt.HttpStatusCode=vc,Tt.default=Tt;const{Axios:A4,AxiosError:C4,CanceledError:k4,isCancel:w4,CancelToken:N4,VERSION:v4,all:I4,Cancel:O4,isAxiosError:R4,spread:P4,toFormData:L4,AxiosHeaders:D4,HttpStatusCode:M4,formToJSON:F4,getAdapter:B4,mergeConfig:U4}=Tt;class Em{constructor(t,n,r=!1){Je(this,"CIMULATE_API_HEADER","x-cimulate-api-key");Je(this,"CIMULATE_SEARCH_API_PATH","api/v1");Je(this,"baseApiUrl");Je(this,"headers",{});Je(this,"fetchConfig",()=>tn(this,null,function*(){try{const t=yield Tt.get(`${this.apiUrl}/configs/copilot`,{headers:this.headers}),{customer_config:n}=t.data,r=atob(n);return JSON.parse(r)}catch(t){throw console.error("Error fetching customer config:",t),t}}));if(t&&n||!t&&!n)throw new Error("Provide exactly one authentication method: either 'apiKey' or 'apiToken', but not both.");t?this.headers[this.CIMULATE_API_HEADER]=t:n&&(this.headers.Authorization=`Bearer ${n}`),this.baseApiUrl=r?"https://staging.search.cimulate.ai":"https://prod.search.cimulate.ai"}get apiUrl(){return`${this.baseApiUrl}/${this.CIMULATE_SEARCH_API_PATH}`}}const xS=X.createContext(void 0),AS=({apiKey:e,apiToken:t,isDevelopment:n=!1,children:r})=>{const o=X.useMemo(()=>new Em(e,t,n),[e,t,n]);return P.jsx(xS.Provider,{value:o,children:r})};var ym=Symbol.for("immer-nothing"),Tm=Symbol.for("immer-draftable"),et=Symbol.for("immer-state");function wn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Vi=Object.getPrototypeOf;function Yi(e){return!!e&&!!e[et]}function mr(e){var t;return e?bm(e)||Array.isArray(e)||!!e[Tm]||!!((t=e.constructor)!=null&&t[Tm])||Yu(e)||qu(e):!1}var CS=Object.prototype.constructor.toString();function bm(e){if(!e||typeof e!="object")return!1;const t=Vi(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===CS}function Js(e,t){Vu(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Vu(e){const t=e[et];return t?t.type_:Array.isArray(e)?1:Yu(e)?2:qu(e)?3:0}function Ic(e,t){return Vu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _m(e,t,n){const r=Vu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function kS(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Yu(e){return e instanceof Map}function qu(e){return e instanceof Set}function Rt(e){return e.copy_||e.base_}function Oc(e,t){if(Yu(e))return new Map(e);if(qu(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=bm(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[et];let o=Reflect.ownKeys(r);for(let u=0;u<o.length;u++){const l=o[u],f=r[l];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(r[l]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[l]})}return Object.create(Vi(e),r)}else{const r=Vi(e);if(r!==null&&n)return Q({},e);const o=Object.create(r);return Object.assign(o,e)}}function Rc(e,t=!1){return Wu(e)||Yi(e)||!mr(e)||(Vu(e)>1&&(e.set=e.add=e.clear=e.delete=wS),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Rc(r,!0))),e}function wS(){wn(2)}function Wu(e){return Object.isFrozen(e)}var Pc={};function fi(e){const t=Pc[e];return t||wn(0,e),t}function NS(e,t){Pc[e]||(Pc[e]=t)}var Zs;function Gu(){return Zs}function vS(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Sm(e,t){t&&(fi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Lc(e){Dc(e),e.drafts_.forEach(IS),e.drafts_=null}function Dc(e){e===Zs&&(Zs=e.parent_)}function xm(e){return Zs=vS(Zs,e)}function IS(e){const t=e[et];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Am(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[et].modified_&&(Lc(t),wn(4)),mr(e)&&(e=Ku(t,e),t.parent_||Qu(t,e)),t.patches_&&fi("Patches").generateReplacementPatches_(n[et].base_,e,t.patches_,t.inversePatches_)):e=Ku(t,n,[]),Lc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ym?e:void 0}function Ku(e,t,n){if(Wu(t))return t;const r=t[et];if(!r)return Js(t,(o,u)=>Cm(e,r,t,o,u,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Qu(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let u=o,l=!1;r.type_===3&&(u=new Set(o),o.clear(),l=!0),Js(u,(f,d)=>Cm(e,r,o,f,d,n,l)),Qu(e,o,!1),n&&e.patches_&&fi("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Cm(e,t,n,r,o,u,l){if(Yi(o)){const f=u&&t&&t.type_!==3&&!Ic(t.assigned_,r)?u.concat(r):void 0,d=Ku(e,o,f);if(_m(n,r,d),Yi(d))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(mr(o)&&!Wu(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ku(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Qu(e,o)}}function Qu(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Rc(t,n)}function OS(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Gu(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,u=Mc;n&&(o=[r],u=eo);const{revoke:l,proxy:f}=Proxy.revocable(o,u);return r.draft_=f,r.revoke_=l,f}var Mc={get(e,t){if(t===et)return e;const n=Rt(e);if(!Ic(n,t))return RS(e,n,t);const r=n[t];return e.finalized_||!mr(r)?r:r===Fc(e.base_,t)?(Bc(e),e.copy_[t]=to(r,e)):r},has(e,t){return t in Rt(e)},ownKeys(e){return Reflect.ownKeys(Rt(e))},set(e,t,n){const r=km(Rt(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Fc(Rt(e),t),u=o==null?void 0:o[et];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(kS(n,o)&&(n!==void 0||Ic(e.base_,t)))return!0;Bc(e),gr(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Fc(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Bc(e),gr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Rt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){wn(11)},getPrototypeOf(e){return Vi(e.base_)},setPrototypeOf(){wn(12)}},eo={};Js(Mc,(e,t)=>{eo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),eo.deleteProperty=function(e,t){return eo.set.call(this,e,t,void 0)},eo.set=function(e,t,n){return Mc.set.call(this,e[0],t,n,e[0])};function Fc(e,t){const n=e[et];return(n?Rt(n):e)[t]}function RS(e,t,n){var o;const r=km(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function km(e,t){if(!(t in e))return;let n=Vi(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Vi(n)}}function gr(e){e.modified_||(e.modified_=!0,e.parent_&&gr(e.parent_))}function Bc(e){e.copy_||(e.copy_=Oc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var PS=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const u=n;n=t;const l=this;return function(d=u,...h){return l.produce(d,g=>n.call(this,g,...h))}}typeof n!="function"&&wn(6),r!==void 0&&typeof r!="function"&&wn(7);let o;if(mr(t)){const u=xm(this),l=to(t,void 0);let f=!0;try{o=n(l),f=!1}finally{f?Lc(u):Dc(u)}return Sm(u,r),Am(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===ym&&(o=void 0),this.autoFreeze_&&Rc(o,!0),r){const u=[],l=[];fi("Patches").generateReplacementPatches_(t,o,u,l),r(u,l)}return o}else wn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...f)=>this.produceWithPatches(l,d=>t(d,...f));let r,o;return[this.produce(t,n,(l,f)=>{r=l,o=f}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){mr(e)||wn(8),Yi(e)&&(e=LS(e));const t=xm(this),n=to(e,void 0);return n[et].isManual_=!0,Dc(t),n}finishDraft(e,t){const n=e&&e[et];(!n||!n.isManual_)&&wn(9);const{scope_:r}=n;return Sm(r,t),Am(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=fi("Patches").applyPatches_;return Yi(e)?r(e,t):this.produce(e,o=>r(o,t))}};function to(e,t){const n=Yu(e)?fi("MapSet").proxyMap_(e,t):qu(e)?fi("MapSet").proxySet_(e,t):OS(e,t);return(t?t.scope_:Gu()).drafts_.push(n),n}function LS(e){return Yi(e)||wn(10,e),wm(e)}function wm(e){if(!mr(e)||Wu(e))return e;const t=e[et];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Oc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Oc(e,!0);return Js(n,(r,o)=>{_m(n,r,wm(o))}),t&&(t.finalized_=!1),n}function DS(){class e extends Map{constructor(d,h){super(),this[et]={type_:2,parent_:h,scope_:h?h.scope_:Gu(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:d,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Rt(this[et]).size}has(d){return Rt(this[et]).has(d)}set(d,h){const g=this[et];return l(g),(!Rt(g).has(d)||Rt(g).get(d)!==h)&&(n(g),gr(g),g.assigned_.set(d,!0),g.copy_.set(d,h),g.assigned_.set(d,!0)),this}delete(d){if(!this.has(d))return!1;const h=this[et];return l(h),n(h),gr(h),h.base_.has(d)?h.assigned_.set(d,!1):h.assigned_.delete(d),h.copy_.delete(d),!0}clear(){const d=this[et];l(d),Rt(d).size&&(n(d),gr(d),d.assigned_=new Map,Js(d.base_,h=>{d.assigned_.set(h,!1)}),d.copy_.clear())}forEach(d,h){const g=this[et];Rt(g).forEach((y,b,T)=>{d.call(h,this.get(b),b,this)})}get(d){const h=this[et];l(h);const g=Rt(h).get(d);if(h.finalized_||!mr(g)||g!==h.base_.get(d))return g;const y=to(g,h);return n(h),h.copy_.set(d,y),y}keys(){return Rt(this[et]).keys()}values(){const d=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const h=d.next();return h.done?h:{done:!1,value:this.get(h.value)}}}}entries(){const d=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const h=d.next();if(h.done)return h;const g=this.get(h.value);return{done:!1,value:[h.value,g]}}}}[Symbol.iterator](){return this.entries()}}function t(f,d){return new e(f,d)}function n(f){f.copy_||(f.assigned_=new Map,f.copy_=new Map(f.base_))}class r extends Set{constructor(d,h){super(),this[et]={type_:3,parent_:h,scope_:h?h.scope_:Gu(),modified_:!1,finalized_:!1,copy_:void 0,base_:d,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Rt(this[et]).size}has(d){const h=this[et];return l(h),h.copy_?!!(h.copy_.has(d)||h.drafts_.has(d)&&h.copy_.has(h.drafts_.get(d))):h.base_.has(d)}add(d){const h=this[et];return l(h),this.has(d)||(u(h),gr(h),h.copy_.add(d)),this}delete(d){if(!this.has(d))return!1;const h=this[et];return l(h),u(h),gr(h),h.copy_.delete(d)||(h.drafts_.has(d)?h.copy_.delete(h.drafts_.get(d)):!1)}clear(){const d=this[et];l(d),Rt(d).size&&(u(d),gr(d),d.copy_.clear())}values(){const d=this[et];return l(d),u(d),d.copy_.values()}entries(){const d=this[et];return l(d),u(d),d.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(d,h){const g=this.values();let y=g.next();for(;!y.done;)d.call(h,y.value,y.value,this),y=g.next()}}function o(f,d){return new r(f,d)}function u(f){f.copy_||(f.copy_=new Set,f.base_.forEach(d=>{if(mr(d)){const h=to(d,f);f.drafts_.set(d,h),f.copy_.add(h)}else f.copy_.add(d)}))}function l(f){f.revoked_&&wn(3,JSON.stringify(Rt(f)))}NS("MapSet",{proxyMap_:t,proxySet_:o})}var En=new PS,MS=En.produce;En.produceWithPatches.bind(En),En.setAutoFreeze.bind(En),En.setUseStrictShallowCopy.bind(En),En.applyPatches.bind(En),En.createDraft.bind(En),En.finishDraft.bind(En);function FS(e,t,n){var r=X.useMemo(function(){return MS(e)},[e]);return X.useReducer(r,t,n)}const on={RESET_STATE:"RESET_STATE",RESET_COPILOT:"RESET_COPILOT",ADD_MESSAGE:"ADD_MESSAGE",SET_COPILOT:"SET_COPILOT",ADD_LOADING_MESSAGE:"ADD_LOADING_MESSAGE",REMOVE_LOADING_MESSAGE:"REMOVE_LOADING_MESSAGE",ADD_PROCESSED_EVENT_ID:"ADD_PROCESSED_EVENT_ID"},Nm={copilot:null,messages:[],groupedMessages:[],loadingMessages:new Set,processedEventIds:new Set},vm="cimulate",Uc=`${vm}:search-update`,Hc=`${vm}:ui-state-update`,tr={SEARCH_CONTEXT_UPDATED:"search-context-updated",QUERY_CHANGED:"query-changed",PAGE_CHANGED:"page-changed",PAGE_SIZE_CHANGED:"page-size-changed",FACET_FILTERS_CHANGED:"facet-filters-changed",RANGE_FILTERS_CHANGED:"range-filters-changed",CATALOG_SEGMENT_CHANGED:"catalog-segment-changed",PRICEBOOKS_CHANGED:"pricebooks-changed"},BS={"search-context":tr.SEARCH_CONTEXT_UPDATED,query:tr.QUERY_CHANGED,page:tr.PAGE_CHANGED,pageSize:tr.PAGE_SIZE_CHANGED,includeFacets:tr.FACET_FILTERS_CHANGED,facetFilters:tr.FACET_FILTERS_CHANGED,rangeFilters:tr.RANGE_FILTERS_CHANGED,catalogSegment:tr.CATALOG_SEGMENT_CHANGED,pricebooks:tr.PRICEBOOKS_CHANGED},te="cim-widget",qi=`--${te}`,di={primaryColor:"#3182ce",secondaryColor:"#2c5282",fontColor:"#1a202c",fontFamily:"inherit",backgroundColor:"#ffffff",borderColor:"#dddddd"},US=(e=di)=>({[`${qi}-primary-color`]:e.primaryColor||di.primaryColor,[`${qi}-secondary-color`]:e.secondaryColor||di.secondaryColor,[`${qi}-font-color`]:e.fontColor||di.fontColor,[`${qi}-font-family`]:e.fontFamily||di.fontFamily,[`${qi}-background-color`]:e.backgroundColor||di.backgroundColor,[`${qi}-border-color`]:e.borderColor||di.borderColor}),Im=X.createContext(null),Om=X.createContext(null);class HS{constructor(t,n,r=!1){Je(this,"apiService");Je(this,"config",null);Je(this,"getConfig",()=>tn(this,null,function*(){if(this.config)return this.config;try{const t=yield this.apiService.fetchConfig();return this.config=t,this.config}catch(t){throw console.error("Failed to fetch customer config:",t),t}}));Je(this,"getPid",t=>this.getProductFieldValue(t,"pidCol"));Je(this,"getName",t=>this.getProductFieldValue(t,"nameCol"));Je(this,"getDescription",t=>this.getProductFieldValue(t,"description"));Je(this,"getBrand",t=>this.getProductFieldValue(t,"productBrandCol"));Je(this,"getPrice",t=>this.getProductFieldValue(t,"priceCol"));Je(this,"getRelativePdp",t=>this.getProductFieldValue(t,"relativePdpCol"));Je(this,"getPdp",t=>this.getProductFieldValue(t,"pdpCol"));Je(this,"getImage",t=>this.getProductFieldValue(t,"imageCol"));Je(this,"getProductField",t=>this.config?this.config[t]:"");Je(this,"getProductFieldValue",(t,n)=>{const r=this.getProductField(n);return r&&t[r]||""});this.apiService=new Em(t,n,r)}getPriceDisplay(t){const n=this.getPrice(t);return n?typeof n=="string"?n.includes("$")?n:`$${n}`:typeof n=="number"?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(n):n:""}}const Wi=(e,t,n,...r)=>{if(!e)return;const o=["background: linear-gradient(90deg,rgba(253, 99, 99, 1) 0%, rgba(245, 139, 35, 1) 65%)","font-weight: bold","color: transparent","background-clip: text","text-fill-color: transparent"].join(";");console[t]("%c[cimulate-widget]",o,n,...r)};class zS{constructor(t=!1){Je(this,"isDevelopment");Je(this,"_log",(t,n,...r)=>{Wi(this.isDevelopment,t,n,...r)});this.isDevelopment=t}log(t,...n){this._log("log",t,...n)}warn(t,...n){this._log("warn",t,...n)}error(t,...n){this._log("error",t,...n)}info(t,...n){this._log("info",t,...n)}debug(t,...n){this._log("debug",t,...n)}}const Rm=X.createContext(null),jS=({logoUrl:e,headerText:t="Your Search Assistant",globalClassName:n="",apiKey:r,apiToken:o,theme:u,isDevelopment:l,children:f})=>{const d=X.useMemo(()=>new HS(r,o,l),[r,o,l]),h=X.useMemo(()=>new zS(l),[l]);X.useEffect(()=>{d.config||d.getConfig()},[d]);const g=X.useMemo(()=>US(u),[u]),y=X.useMemo(()=>({configModule:d,logoUrl:e,headerText:t,globalClassName:n,themeVariables:g,logger:h}),[d,e,t,n,h,g]);return P.jsx(Rm.Provider,{value:y,children:f})},Rr=()=>{const e=X.useContext(Rm);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},$S=({onCopilotEvent:e,children:t,dispatch:n})=>{const{logger:r}=Rr(),o=X.useCallback(b=>{n({type:on.SET_COPILOT,payload:b})},[n]),u=X.useCallback(()=>{n({type:on.RESET_COPILOT,payload:{}})},[n]),l=X.useCallback(()=>{n({type:on.RESET_STATE,payload:{}})},[n]),f=X.useCallback(b=>{r==null||r.log(`${b.name} event received`,b),n({type:on.ADD_MESSAGE,payload:b}),e==null||e(b)},[e,r,n]),d=X.useCallback(b=>{n({type:on.ADD_LOADING_MESSAGE,payload:b})},[n]),h=X.useCallback(b=>{n({type:on.REMOVE_LOADING_MESSAGE,payload:b})},[n]),g=X.useCallback(b=>{n({type:on.ADD_PROCESSED_EVENT_ID,payload:b})},[n]),y=X.useMemo(()=>({setCopilot:o,resetCopilot:u,resetCopilotState:l,addCopilotEvent:f,addLoadingMessage:d,removeLoadingMessage:h,addProcessedEventId:g}),[o,u,l,f,d,h,g]);return P.jsx(Om.Provider,{value:y,children:t})};DS();const VS=(e,t)=>{const{type:n,payload:r}=t;if(n===on.ADD_MESSAGE){const o=r;if(e.messages.push(o),o.eventSourceId){const u=e.groupedMessages.findIndex(l=>l.eventSourceId===o.eventSourceId);if(u!==-1){let l=e.groupedMessages[u].messages;l||(l=[]);const f=l.findIndex(d=>d.id===o.id);if(f!==-1){l[f]=o;return}l.push(o);return}else{e.groupedMessages.push({type:"group",eventSourceId:o.eventSourceId,messages:[o],createdAt:new Date(o.createdAt)});return}}e.groupedMessages.push({type:"individual",message:o,createdAt:new Date(o.createdAt)});return}switch(n){case on.RESET_STATE:return Nm;case on.RESET_COPILOT:e.copilot=null;break;case on.SET_COPILOT:e.copilot=r;break;case on.ADD_LOADING_MESSAGE:e.loadingMessages.add(r);break;case on.REMOVE_LOADING_MESSAGE:e.loadingMessages.delete(r);break;case on.ADD_PROCESSED_EVENT_ID:e.processedEventIds.add(r);break}},YS=({onCopilotEvent:e,children:t})=>{const[n,r]=FS(VS,Nm);return P.jsx(Im.Provider,{value:n,children:P.jsx($S,{onCopilotEvent:e,dispatch:r,children:t})})},qS=e=>{window.addEventListener(Uc,e)},WS=e=>{window.removeEventListener(Uc,e)},Pm=(e,t,n)=>{const r=new CustomEvent(Uc,{detail:{event:e,property:t,value:n}});window.dispatchEvent(r)},GS=e=>{if(!e||!e.query)throw new Error("Search context must include a query");At.proxy=e,Pm(tr.SEARCH_CONTEXT_UPDATED,"search-context",e)},KS=e=>{At.proxy.query=e},QS=e=>{At.proxy.facetFilters=e},XS=(e,t)=>{var o;const n=Q({},At.proxy.facetFilters||{});if(!!((o=n[e])!=null&&o.includes(t))){const u=n[e].filter(l=>l!==t);u.length>0?n[e]=u:delete n[e]}else n[e]=n[e]?[...n[e],t]:[t];At.proxy.facetFilters=n},JS=e=>{At.proxy.rangeFilters=[...e]},ZS=({field:e,value:t})=>{const[n,r]=Array.isArray(t)?t:[];if(typeof n=="undefined"||typeof r=="undefined")throw new Error("Range values must be an array with two numbers for min and max");const o=[...At.proxy.rangeFilters||[]],u=o.findIndex(l=>l.field===e);if(u!==-1){o[u]={field:e,min:n,max:r},At.proxy.rangeFilters=o;return}o.push({field:e,min:n,max:r}),At.proxy.rangeFilters=o},ex=e=>{At.proxy.catalogSegment=e};class tx{constructor(){Je(this,"initialState",{mode:"embedded",status:{type:"dialog",isOpen:!1},dialog:{position:"bottom-left"},modal:{isFullscreen:!1}});Je(this,"modeProxy");Je(this,"statusProxy");Je(this,"dialogProxy");Je(this,"modalProxy",{isFullscreen:!1});Je(this,"_fullGet",(t,n)=>Reflect.get(t,n));Je(this,"_fullSet",(t,n,r)=>{if(!(n in t))throw new Error(`Property ${n} does not exist on UIState`);return ix(n,r),Reflect.set(t,n,r)});this.modeProxy=new Proxy({mode:this.initialState.mode},{get:this._fullGet,set:this._fullSet}),this.statusProxy=new Proxy({type:this.initialState.status.type,isOpen:this.initialState.status.isOpen},{get:this._fullGet,set:this._fullSet}),this.dialogProxy=new Proxy({position:this.initialState.dialog.position},{get:this._fullGet,set:this._fullSet}),this.modalProxy=new Proxy({isFullscreen:this.initialState.modal.isFullscreen},{get:this._fullGet,set:this._fullSet})}get mode(){return this.modeProxy.mode}get isOpen(){return!!this.statusProxy.isOpen}get type(){return this.statusProxy.type}get position(){return this.dialogProxy.position}}const Bt=new tx,nx=e=>{window.addEventListener(Hc,e)},rx=e=>{window.removeEventListener(Hc,e)},ix=(e,t)=>{const n=new CustomEvent(Hc,{detail:{property:e,value:t}});window.dispatchEvent(n)},no=e=>{if(typeof e!="boolean"){Bt.statusProxy.isOpen=!Bt.statusProxy.isOpen;return}Bt.statusProxy.isOpen=e},Lm=e=>{Bt.modalProxy.isFullscreen=e},zc=e=>{if(!["chat","dialog","modal"].includes(e))throw new Error(`Invalid type: ${e}. Must be 'chat', 'dialog', or 'modal'.`);Bt.statusProxy.type=e,e==="dialog"||e==="chat"?Bt.modeProxy.mode="embedded":Bt.modeProxy.mode="standalone"},Dm=e=>{const t=["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right","center"];if(!t.includes(e))throw new Error(`Invalid position: ${e}. Must be one of ${t.join(", ")}.`);Bt.dialogProxy.position=e};class sx{constructor(){Je(this,"initialParams",{query:"",page:null,pageSize:null,includeFacets:!0,facetFilters:{},rangeFilters:[],catalogSegment:null,pricebooks:null});Je(this,"proxy");Je(this,"_fullGet",(t,n)=>Reflect.get(t,n));Je(this,"_fullSet",(t,n,r)=>{if(!(n in t))throw new Error(`Property ${n} does not exist on SearchState`);const o=BS[n];return Pm(o,n,r),Reflect.set(t,n,r)});this.proxy=new Proxy(this.initialParams,{get:this._fullGet,set:this._fullSet})}get query(){return this.proxy.query||""}get facetFilters(){return this.proxy.facetFilters||{}}get rangeFilters(){return this.proxy.rangeFilters||[]}get catalogSegment(){return this.proxy.catalogSegment||null}get pricebooks(){return this.proxy.pricebooks||null}}const At=new sx,Mm=X.createContext({searchQuery:At.query,facetFilters:At.facetFilters,rangeFilters:At.rangeFilters,catalogSegment:At.catalogSegment,pricebooks:At.pricebooks}),ox=({children:e})=>{const[t,n]=X.useState(At.query),[r,o]=X.useState(At.facetFilters),[u,l]=X.useState(At.rangeFilters),[f,d]=X.useState(At.catalogSegment),[h,g]=X.useState(At.pricebooks);X.useEffect(()=>{const b=({detail:T})=>{if((T==null?void 0:T.property)==="query"&&n(T.value),(T==null?void 0:T.property)==="facetFilters"&&o(T.value),(T==null?void 0:T.property)==="rangeFilters"&&l(T.value),(T==null?void 0:T.property)==="catalogSegment"&&d(T.value),(T==null?void 0:T.property)==="pricebooks"&&g(T.value),(T==null?void 0:T.property)==="search-context"){const S=T.value;n(S.query),o(S.facetFilters||{}),l(S.rangeFilters||[]),d(S.catalogSegment||null),g(S.pricebooks||null)}};return qS(b),()=>{WS(b)}},[]);const y=X.useMemo(()=>({searchQuery:t,facetFilters:r,rangeFilters:u,catalogSegment:f,pricebooks:h}),[t,r,u,f,h]);return P.jsx(Mm.Provider,{value:y,children:e})},ux=()=>{const e=X.useContext(Mm);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e},ax=()=>{const e=X.useContext(Om);if(!e)throw new Error("useCopilotDispatch must be used within a CopilotProvider");return e},Fm=()=>{const e=X.useContext(Im);if(!e)throw new Error("useCopilotState must be used within a CopilotProvider");return e},Bm=X.createContext({copilot:null,messages:[],groupedMessages:[],isLoading:!1,isResponseLoading:()=>!1,handleSearch:()=>{},handleSuggestion:()=>{},handleUserInput:()=>{},handleCancel:()=>{}}),lx=({apiKey:e,apiToken:t,baseUrl:n,isDevelopment:r,onConnect:o,onRefinedSearch:u,children:l})=>{const{logger:f}=Rr(),{searchQuery:d,facetFilters:h,rangeFilters:g,catalogSegment:y,pricebooks:b}=ux(),{setCopilot:T,resetCopilot:S,addCopilotEvent:C,addLoadingMessage:O,removeLoadingMessage:L,addProcessedEventId:V}=ax(),{copilot:j,messages:ee,groupedMessages:he,loadingMessages:F}=Fm(),me=X.useMemo(()=>F.size>0,[F]),Ae=X.useCallback(M=>F.has(M),[F]),Ne=X.useCallback(M=>{C(M),O(M.id)},[C,O]),H=X.useCallback(M=>{const G=$e(Q({},M),{id:M.inquiryLinkId||M.id});C(G)},[C]),ge=X.useCallback(M=>{C(M),u==null||u(M)},[C,u]),pe=X.useCallback(M=>{M.on("connect_ack",G=>{o==null||o(G)}),M.on("follow_up",C),M.on("inquiry",H),M.on("partial_inquiry",H),M.on("display_products",C),M.on("progress",C),M.on("refined_search",ge),M.on("done",G=>{L(G.eventSourceId)}),M.on("error",G=>{C(G),L(G.eventSourceId)}),M.onDisconnect(G=>{const x=["io server disconnect","transport error","server shutting down"];f==null||f.log("Connection disconnected with reason: ",G);const I=new Date().toISOString();if(!x.includes(G)){C({name:"reconnect",message:`Connection was lost due to reason: ${G}. Attempting to reconnect.`,createdAt:I,id:`reconnect-${I}`,sessionId:`session-reconnect-${I}`});return}f==null||f.log("De-registering event listeners"),C({name:"error",message:"Connection was lost. Please try again.",createdAt:I,id:`error-${I}`,sessionId:"session"}),M.off()})},[f,L,H,ge,C,o]);X.useEffect(()=>{let M;n?M=n:M=r?"https://staging.copilot.search.cimulate.ai":"https://prod.copilot.search.cimulate.ai";const G={baseUrl:M};e?G.apiKey=e:t&&(G.apiToken=t);const x=new e2(G);return x.connect(),pe(x),T(x),()=>{x.disconnect(),x.off(),S()}},[e,t,n,r,T,S,pe]);const ce=X.useCallback(({search:M,facetFilters:G,rangeFilters:x,catalogSegment:I,pricebooks:q,userPrompt:w,isUserAction:Ee})=>{if(!j){f==null||f.error("Copilot is not initialized");return}const ve={searchParams:{query:M}};w&&(ve.userPrompt=w),G&&(ve.searchParams.facetFilters=G),x&&(ve.searchParams.rangeFilters=x),I&&(ve.searchParams.catalogSegment=I),q&&(ve.searchParams.pricebooks=q),j.search(ve,Ce=>{Ee&&(Ce.isUserAction=Ee),Ne(Ce)})},[f,Ne,j]),fe=X.useCallback(M=>{if(!j)return;const G={eventId:M,reason:"User cancelled the request"};j.cancelRequest(G,x=>{C(x),L(M)})},[C,L,j]),be=X.useCallback(M=>{!M||!d||ce({search:d,facetFilters:h,rangeFilters:g,catalogSegment:y,pricebooks:b,userPrompt:M})},[d,h,g,y,b,ce]),Le=X.useCallback((M,G)=>{const x=M.params.userPrompt||"";if(!x||!d)return;ce({search:d,userPrompt:x,facetFilters:h,rangeFilters:g,catalogSegment:y,pricebooks:b}),V(G)},[d,h,g,y,b,ce,V]);X.useEffect(()=>{d&&j&&ce({search:d,facetFilters:h,isUserAction:!0})},[d,h,j,ce]);const ue=X.useMemo(()=>({copilot:j,messages:ee,groupedMessages:he,isLoading:me,isResponseLoading:Ae,handleSearch:ce,handleUserInput:be,handleSuggestion:Le,handleCancel:fe}),[j,ee,he,me,Ae,ce,be,Le,fe]);return P.jsx(Bm.Provider,{value:ue,children:l})},cx=({apiKey:e,apiToken:t,baseUrl:n,isDevelopment:r,onConnect:o,onCopilotEvent:u,onRefinedSearch:l,children:f})=>P.jsx(YS,{onCopilotEvent:u,children:P.jsx(lx,{apiKey:e,apiToken:t,baseUrl:n,isDevelopment:r,onConnect:o,onRefinedSearch:l,children:f})}),Um=X.createContext({mode:Bt.modeProxy.mode,status:Bt.statusProxy,dialogPosition:Bt.dialogProxy.position,isModalFullscreen:Bt.modalProxy.isFullscreen}),fx=({children:e})=>{const[t,n]=X.useState(Bt.modeProxy.mode),[r,o]=X.useState({type:Bt.statusProxy.type,isOpen:Bt.statusProxy.isOpen}),[u,l]=X.useState(Bt.dialogProxy.position),[f,d]=X.useState(Bt.modalProxy.isFullscreen);X.useEffect(()=>{const g=y=>{const{property:b,value:T}=y.detail||{};if(!(!b||T===void 0)){if(b==="mode"){n(T);return}if(b==="isOpen"){o(S=>$e(Q({},S),{isOpen:T}));return}if(b==="type"){o(S=>$e(Q({},S),{type:T}));return}if(b==="position"){l(T);return}if(b==="isFullscreen"){d(T);return}}};return nx(g),()=>{rx(g)}},[]);const h=X.useMemo(()=>({mode:t,status:r,dialogPosition:u,isModalFullscreen:f}),[t,r,u,f]);return P.jsx(Um.Provider,{value:h,children:e})},Hm=({apiKey:e,apiToken:t,baseUrl:n,logoUrl:r,headerText:o,theme:u,globalClassName:l,isDevelopment:f=!1,onConnect:d,onCopilotEvent:h,onRefinedSearch:g,children:y})=>P.jsx(jS,{apiKey:e,logoUrl:r,headerText:o,theme:u,globalClassName:l,isDevelopment:f,children:P.jsx(AS,{apiKey:e,apiToken:t,isDevelopment:f,children:P.jsx(ox,{children:P.jsx(fx,{children:P.jsx(cx,{apiKey:e,apiToken:t,baseUrl:n,isDevelopment:f,onConnect:d,onCopilotEvent:h,onRefinedSearch:g,children:y})})})})}),Xu=()=>{const e=X.useContext(Um);if(!e)throw new Error("useUIState must be used within a UIStateProvider");return e};function zm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=zm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function le(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=zm(e))&&(r&&(r+=" "),r+=t);return r}var jm={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},$m=ui.createContext&&ui.createContext(jm),dx=["attr","size","title"];function hx(e,t){if(e==null)return{};var n=px(e,t),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function px(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ju(){return Ju=Object.assign?Object.assign.bind():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},Ju.apply(this,arguments)}function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(n),!0).forEach(function(r){mx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mx(e,t,n){return t=gx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gx(e){var t=Ex(e,"string");return typeof t=="symbol"?t:t+""}function Ex(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ym(e){return e&&e.map((t,n)=>ui.createElement(t.tag,Zu({key:n},t.attr),Ym(t.child)))}function zn(e){return t=>ui.createElement(yx,Ju({attr:Zu({},e.attr)},t),Ym(e.child))}function yx(e){var t=n=>{var{attr:r,size:o,title:u}=e,l=hx(e,dx),f=o||n.size||"1em",d;return n.className&&(d=n.className),e.className&&(d=(d?d+" ":"")+e.className),ui.createElement("svg",Ju({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:d,style:Zu(Zu({color:e.color||n.color},n.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&ui.createElement("title",null,u),e.children)};return $m!==void 0?ui.createElement($m.Consumer,null,n=>t(n)):t(jm)}function qm(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},child:[]}]})(e)}function ea(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function Tx(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]}]})(e)}function Wm(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"},child:[]}]})(e)}function bx(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"},child:[]}]})(e)}function _x(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(e)}function Sx(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 3H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 14H4V5h16v12z"},child:[]},{tag:"path",attr:{d:"M6.5 7.5H9V6H5v4h1.5zM19 12h-1.5v2.5H15V16h4z"},child:[]}]})(e)}const ro=({className:e,icon:t,type:n="button",ariaLabel:r,disabled:o=!1,onClick:u})=>P.jsx("button",{className:le(e,`${te}-icon-button`),type:n,"aria-label":r,onClick:u,disabled:o,children:t}),jc=({className:e,isLoading:t,onSubmit:n})=>{const r=X.useRef(null),o=u=>{var f;u.preventDefault();const l=(((f=r.current)==null?void 0:f.value)||"").trim();l&&(n(l),r.current.value="")};return P.jsxs("form",{className:le(e,`${te}-search-bar`),name:`${te}-search-form`,onSubmit:o,children:[P.jsx("input",{className:le(e,`${te}-search-input`),type:"text",ref:r,name:`${te}-user-input`}),P.jsx(ro,{type:"submit",disabled:t,ariaLabel:"Search Copilot",icon:P.jsx(ea,{})})]})},io=()=>{const e=X.useContext(Bm);if(!e)throw new Error("useCopilot must be used within a CopilotProvider");return e},xx=({isWidgetStandalone:e,product:t})=>{const{configModule:n,globalClassName:r}=Rr();if(!n)return null;const o=n.getName(t),u=n.getBrand(t),l=n.getPriceDisplay(t),f=n.getRelativePdp(t),d=n.getPdp(t),h=n.getImage(t),g=f&&typeof f=="string"?new URL(f,window.location.origin).href:d;return P.jsxs("div",{className:le(r,`${te}-product-tile`,{embedded:!e,standalone:e}),children:[P.jsx("img",{className:le(r,`${te}-product-tile-image`,{embedded:!e,standalone:e}),src:`${h}`,alt:`${o}`,loading:"lazy"}),P.jsxs("div",{className:le(r,`${te}-product-tile-details`,{embedded:!e,standalone:e}),children:[P.jsxs("div",{className:le(r,`${te}-product-tile-content`),children:[u&&P.jsx("p",{className:`${te}-product-tile-brand`,children:u}),g?P.jsxs("a",{"aria-label":`Go to product page for ${o}`,className:le(r,`${te}-product-tile-pdp`),href:`${g}`,target:"_blank",rel:"noopener noreferrer",children:[o," ",P.jsx("span",{className:le(r,`${te}-product-tile-pdp-arrow`),children:"→"})]}):P.jsx("p",{className:le(r,`${te}-product-tile-name`),title:o,children:o})]}),P.jsx("div",{className:le(r,`${te}-product-tile-footer`),children:P.jsx("p",{className:le(r,`${te}-product-tile-price`),children:l})})]})]})},Ax=({isWidgetStandalone:e,message:t})=>{const{configModule:n,globalClassName:r}=Rr(),o=t;return n?P.jsxs("div",{className:le(r,`${te}-display-products widget-message`),children:[P.jsx("p",{children:o.message}),o.products&&o.products.length>0&&P.jsx("div",{className:le(r,`${te}-product-list`,{embedded:!e,standalone:e}),children:o.products.map(u=>{const l=n.getPid(u);return P.jsx(xx,{isWidgetStandalone:e,product:u},`${l}`)})})]}):null},Cx=({globalClassName:e,message:t,isWidgetStandalone:n})=>P.jsx("div",{className:le(e,`${te}-error-message`,{standalone:n,embedded:!n}),children:P.jsxs("p",{className:le(e,`${te}-error-message-text`,{standalone:n,embedded:!n}),children:[P.jsx(Tx,{})," ",t.message||"An error occurred while processing your request."]})});function kx(e){return zn({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.75 6.75a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5Z"},child:[]}]})(e)}const Gm=({className:e,children:t,type:n,disabled:r=!1,onClick:o})=>P.jsx("button",{className:le(`${te}-button`,e,{disabled:r}),type:n||"button",disabled:r,onClick:o,children:t}),Km=({className:e,onClick:t,disabled:n=!1})=>P.jsx("button",{"aria-label":"Close",className:le(e,`${te}-close-button`),disabled:n,onClick:t,children:P.jsx("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20",width:"16",height:"16",fill:"currentColor",children:P.jsx("path",{d:"M18.3 5.7a1 1 0 0 0-1.4-1.4L12 9.6 7.1 4.7a1 1 0 1 0-1.4 1.4l4.9 4.9-4.9 4.9a1 1 0 1 0 1.4 1.4l4.9-4.9 4.9 4.9a1 1 0 0 0 1.4-1.4l-4.9-4.9 4.9-4.9z"})})}),wx=({globalClassName:e,messageId:t,isProcessedEvent:n,suggestions:r,handleSuggestionClick:o})=>P.jsx("div",{className:le(e,`${te}-suggestion-container standalone`),children:r.map(u=>P.jsxs(Gm,{disabled:n,className:le(e,`${te}-suggestion-button standalone`),onClick:()=>o(u,t),children:[P.jsx(kx,{size:"1.5rem",style:{minHeight:"1.5rem",minWidth:"1.5rem"}})," ",u.displayText]},u.displayText))}),Nx=({globalClassName:e,message:t,isWidgetStandalone:n,handleSuggestionClick:r})=>{const{processedEventIds:o}=Fm(),u=o.has(t.id);return P.jsxs("div",{className:le(e,`${te}-follow-up`),children:[P.jsx("p",{className:le(e,`${te}-text`),children:t.message}),n&&P.jsx(wx,{globalClassName:e,isProcessedEvent:u,messageId:t.id,suggestions:t.suggestions,handleSuggestionClick:r}),!n&&P.jsx("div",{className:le(e,`${te}-suggestion-container embedded`),children:t.suggestions.map(l=>P.jsx("button",{disabled:u,className:le(e,`${te}-suggestion-button embedded`),onClick:()=>r(l,t.id),children:l.displayText},l.displayText))})]})};function H4(){}function z4(){}function Qm(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,u=!1;for(;!u;){r===-1&&(r=n.length,u=!0);const l=n.slice(o,r).trim();(l||!u)&&t.push(l),o=r+1,r=n.indexOf(",",o)}return t}function Xm(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const vx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ix=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ox={};function Jm(e,t){return(Ox.jsx?Ix:vx).test(e)}const Rx=/[ \t\n\f\r]/g;function Px(e){return typeof e=="object"?e.type==="text"?Zm(e.value):!1:Zm(e)}function Zm(e){return e.replace(Rx,"")===""}let so=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};so.prototype.normal={},so.prototype.property={},so.prototype.space=void 0;function e0(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new so(n,r,t)}function oo(e){return e.toLowerCase()}let un=class{constructor(t,n){this.attribute=n,this.property=t}};un.prototype.attribute="",un.prototype.booleanish=!1,un.prototype.boolean=!1,un.prototype.commaOrSpaceSeparated=!1,un.prototype.commaSeparated=!1,un.prototype.defined=!1,un.prototype.mustUseProperty=!1,un.prototype.number=!1,un.prototype.overloadedBoolean=!1,un.prototype.property="",un.prototype.spaceSeparated=!1,un.prototype.space=void 0;let Lx=0;const Ue=hi(),Ct=hi(),$c=hi(),se=hi(),it=hi(),Gi=hi(),yn=hi();function hi(){return Jl(2,++Lx)}const Vc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ue,booleanish:Ct,commaOrSpaceSeparated:yn,commaSeparated:Gi,number:se,overloadedBoolean:$c,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),Yc=Object.keys(Vc);let qc=class extends un{constructor(t,n,r,o){let u=-1;if(super(t,n),t0(this,"space",o),typeof r=="number")for(;++u<Yc.length;){const l=Yc[u];t0(this,Yc[u],(r&Vc[l])===Vc[l])}}};qc.prototype.defined=!0;function t0(e,t,n){n&&(e[t]=n)}function Ki(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const u=new qc(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[oo(r)]=r,n[oo(u.attribute)]=r}return new so(t,n,e.space)}const n0=Ki({properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:it,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:se,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:it,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:Ct,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function r0(e,t){return t in e?e[t]:t}function i0(e,t){return r0(e,t.toLowerCase())}const Dx=Ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gi,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:Ue,allowPaymentRequest:Ue,allowUserMedia:Ue,alt:null,as:null,async:Ue,autoCapitalize:null,autoComplete:it,autoFocus:Ue,autoPlay:Ue,blocking:it,capture:null,charSet:null,checked:Ue,cite:null,className:it,cols:se,colSpan:null,content:null,contentEditable:Ct,controls:Ue,controlsList:it,coords:se|Gi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ue,defer:Ue,dir:null,dirName:null,disabled:Ue,download:$c,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ue,formTarget:null,headers:it,height:se,hidden:$c,high:se,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:Ue,inputMode:null,integrity:null,is:null,isMap:Ue,itemId:null,itemProp:it,itemRef:it,itemScope:Ue,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ue,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Ue,muted:Ue,name:null,nonce:null,noModule:Ue,noValidate:Ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored: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,onScrollEnd: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:Ue,optimum:se,pattern:null,ping:it,placeholder:null,playsInline:Ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ue,referrerPolicy:null,rel:it,required:Ue,reversed:Ue,rows:se,rowSpan:se,sandbox:it,scope:null,scoped:Ue,seamless:Ue,selected:Ue,shadowRootClonable:Ue,shadowRootDelegatesFocus:Ue,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:Ue,useMap:null,value:Ct,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ue,declare:Ue,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Ue,noHref:Ue,noShade:Ue,noWrap:Ue,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ue,disableRemotePlayback:Ue,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:i0}),Mx=Ki({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",transformOrigin:"transform-origin",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"},properties:{about:yn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:it,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:Ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:Gi,g2:Gi,glyphName:Gi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:it,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yn,rev:yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yn,requiredFeatures:yn,requiredFonts:yn,requiredFormats:yn,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:r0}),s0=Ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),o0=Ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:i0}),u0=Ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Fx={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"},Bx=/[A-Z]/g,a0=/-[a-z]/g,Ux=/^data[-\w.:]+$/i;function Wc(e,t){const n=oo(t);let r=t,o=un;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ux.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(a0,zx);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!a0.test(u)){let l=u.replace(Bx,Hx);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=qc}return new o(r,t)}function Hx(e){return"-"+e.toLowerCase()}function zx(e){return e.charAt(1).toUpperCase()}const ta=e0([n0,Dx,s0,o0,u0],"html"),Qi=e0([n0,Mx,s0,o0,u0],"svg");function l0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function c0(e){return e.join(" ").trim()}var Xi={},Gc,f0;function jx(){if(f0)return Gc;f0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
24
- `,h="/",g="*",y="",b="comment",T="declaration";Gc=function(C,O){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];O=O||{};var L=1,V=1;function j(ce){var fe=ce.match(t);fe&&(L+=fe.length);var be=ce.lastIndexOf(d);V=~be?ce.length-be:V+ce.length}function ee(){var ce={line:L,column:V};return function(fe){return fe.position=new he(ce),Ae(),fe}}function he(ce){this.start=ce,this.end={line:L,column:V},this.source=O.source}he.prototype.content=C;function F(ce){var fe=new Error(O.source+":"+L+":"+V+": "+ce);if(fe.reason=ce,fe.filename=O.source,fe.line=L,fe.column=V,fe.source=C,!O.silent)throw fe}function me(ce){var fe=ce.exec(C);if(fe){var be=fe[0];return j(be),C=C.slice(be.length),fe}}function Ae(){me(n)}function Ne(ce){var fe;for(ce=ce||[];fe=H();)fe!==!1&&ce.push(fe);return ce}function H(){var ce=ee();if(!(h!=C.charAt(0)||g!=C.charAt(1))){for(var fe=2;y!=C.charAt(fe)&&(g!=C.charAt(fe)||h!=C.charAt(fe+1));)++fe;if(fe+=2,y===C.charAt(fe-1))return F("End of comment missing");var be=C.slice(2,fe-2);return V+=2,j(be),C=C.slice(fe),V+=2,ce({type:b,comment:be})}}function ge(){var ce=ee(),fe=me(r);if(fe){if(H(),!me(o))return F("property missing ':'");var be=me(u),Le=ce({type:T,property:S(fe[0].replace(e,y)),value:be?S(be[0].replace(e,y)):y});return me(l),Le}}function pe(){var ce=[];Ne(ce);for(var fe;fe=ge();)fe!==!1&&(ce.push(fe),Ne(ce));return ce}return Ae(),pe()};function S(C){return C?C.replace(f,y):y}return Gc}var d0;function $x(){if(d0)return Xi;d0=1;var e=Xi&&Xi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=n;var t=e(jx());function n(r,o){var u=null;if(!r||typeof r!="string")return u;var l=(0,t.default)(r),f=typeof o=="function";return l.forEach(function(d){if(d.type==="declaration"){var h=d.property,g=d.value;f?o(h,g,d):g&&(u=u||{},u[h]=g)}}),u}return Xi}var uo={},h0;function Vx(){if(h0)return uo;h0=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(h){return!h||n.test(h)||e.test(h)},l=function(h,g){return g.toUpperCase()},f=function(h,g){return"".concat(g,"-")},d=function(h,g){return g===void 0&&(g={}),u(h)?h:(h=h.toLowerCase(),g.reactCompat?h=h.replace(o,f):h=h.replace(r,f),h.replace(t,l))};return uo.camelCase=d,uo}var ao,p0;function Yx(){if(p0)return ao;p0=1;var e=ao&&ao.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e($x()),n=Vx();function r(o,u){var l={};return!o||typeof o!="string"||(0,t.default)(o,function(f,d){f&&d&&(l[(0,n.camelCase)(f,u)]=d)}),l}return r.default=r,ao=r,ao}var qx=Yx();const Wx=Ve(qx),na=m0("end"),nr=m0("start");function m0(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Gx(e){const t=nr(e),n=na(e);if(t&&n)return{start:t,end:n}}function lo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?g0(e.position):"start"in e||"end"in e?g0(e):"line"in e||"column"in e?Kc(e):""}function Kc(e){return E0(e&&e.line)+":"+E0(e&&e.column)}function g0(e){return Kc(e&&e.start)+"-"+Kc(e&&e.end)}function E0(e){return e&&typeof e=="number"?e:1}class Vt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",u={},l=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u=Q({},n)),typeof t=="string"?o=t:!u.cause&&t&&(l=!0,o=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?u.ruleId=r:(u.source=r.slice(0,d),u.ruleId=r.slice(d+1))}if(!u.place&&u.ancestors&&u.ancestors){const d=u.ancestors[u.ancestors.length-1];d&&(u.place=d.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=f?f.line:void 0,this.name=lo(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual,this.expected,this.note,this.url}}Vt.prototype.file="",Vt.prototype.name="",Vt.prototype.reason="",Vt.prototype.message="",Vt.prototype.stack="",Vt.prototype.column=void 0,Vt.prototype.line=void 0,Vt.prototype.ancestors=void 0,Vt.prototype.cause=void 0,Vt.prototype.fatal=void 0,Vt.prototype.place=void 0,Vt.prototype.ruleId=void 0,Vt.prototype.source=void 0;const Qc={}.hasOwnProperty,Kx=new Map,Qx=/[A-Z]/g,Xx=new Set(["table","tbody","thead","tfoot","tr"]),Jx=new Set(["td","th"]),y0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Zx(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=uA(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=oA(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qi:ta,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=T0(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function T0(e,t,n){if(t.type==="element")return eA(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return tA(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return rA(e,t,n);if(t.type==="mdxjsEsm")return nA(e,t);if(t.type==="root")return iA(e,t,n);if(t.type==="text")return sA(e,t)}function eA(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Qi,e.schema=o),e.ancestors.push(t);const u=_0(e,t.tagName,!1),l=aA(e,t);let f=Jc(e,t);return Xx.has(t.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!Px(d):!0})),b0(e,l,u,t),Xc(l,f),e.ancestors.pop(),e.schema=r,e.create(t,u,l,n)}function tA(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}co(e,t.position)}function nA(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);co(e,t.position)}function rA(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Qi,e.schema=o),e.ancestors.push(t);const u=t.name===null?e.Fragment:_0(e,t.name,!0),l=lA(e,t),f=Jc(e,t);return b0(e,l,u,t),Xc(l,f),e.ancestors.pop(),e.schema=r,e.create(t,u,l,n)}function iA(e,t,n){const r={};return Xc(r,Jc(e,t)),e.create(t,e.Fragment,r,n)}function sA(e,t){return t.value}function b0(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xc(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function oA(e,t,n){return r;function r(o,u,l,f){const h=Array.isArray(l.children)?n:t;return f?h(u,l,f):h(u,l)}}function uA(e,t){return n;function n(r,o,u,l){const f=Array.isArray(u.children),d=nr(r);return t(o,u,l,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function aA(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&Qc.call(t.properties,o)){const u=cA(e,o,t.properties[o]);if(u){const[l,f]=u;e.tableCellAlignToStyle&&l==="align"&&typeof f=="string"&&Jx.has(t.tagName)?r=f:n[l]=f}}if(r){const u=n.style||(n.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function lA(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const u=r.data.estree.body[0];u.type;const l=u.expression;l.type;const f=l.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else co(e,t.position);else{const o=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const f=r.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else co(e,t.position);else u=r.value===null?!0:r.value;n[o]=u}return n}function Jc(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Kx;for(;++r<t.children.length;){const u=t.children[r];let l;if(e.passKeys){const d=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(d){const h=o.get(d)||0;l=d+"-"+h,o.set(d,h+1)}}const f=T0(e,u,l);f!==void 0&&n.push(f)}return n}function cA(e,t,n){const r=Wc(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Xm(n):c0(n)),r.property==="style"){let o=typeof n=="object"?n:fA(e,String(n));return e.stylePropertyNameCase==="css"&&(o=dA(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Fx[r.property]||r.property:r.attribute,n]}}function fA(e,t){try{return Wx(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new Vt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=y0+"#cannot-parse-style-attribute",o}}function _0(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let u=-1,l;for(;++u<o.length;){const f=Jm(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};l=l?{type:"MemberExpression",object:l,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}r=l}else r=Jm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return Qc.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);co(e)}function co(e,t){const n=new Vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=y0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function dA(e){const t={};let n;for(n in e)Qc.call(e,n)&&(t[hA(n)]=e[n]);return t}function hA(e){let t=e.replace(Qx,pA);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pA(e){return"-"+e.toLowerCase()}const Zc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},mA={};function ef(e,t){const n=mA,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return S0(e,r,o)}function S0(e,t,n){if(gA(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return x0(e.children,t,n)}return Array.isArray(e)?x0(e,t,n):""}function x0(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=S0(e[o],t,n);return r.join("")}function gA(e){return!!(e&&typeof e=="object")}const A0=document.createElement("i");function tf(e){const t="&"+e+";";A0.innerHTML=t;const n=A0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Tn(e,t,n,r){const o=e.length;let u=0,l;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);u<r.length;)l=r.slice(u,u+1e4),l.unshift(t,0),e.splice(...l),u+=1e4,t+=1e4}function Nn(e,t){return e.length>0?(Tn(e,e.length,0,t),e):t}const C0={}.hasOwnProperty;function k0(e){const t={};let n=-1;for(;++n<e.length;)EA(t,e[n]);return t}function EA(e,t){let n;for(n in t){const o=(C0.call(e,n)?e[n]:void 0)||(e[n]={}),u=t[n];let l;if(u)for(l in u){C0.call(o,l)||(o[l]=[]);const f=u[l];yA(o[l],Array.isArray(f)?f:f?[f]:[])}}}function yA(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Tn(e,0,0,r)}function w0(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function jn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jt=Pr(/[A-Za-z]/),Yt=Pr(/[\dA-Za-z]/),TA=Pr(/[#-'*+\--9=?A-Z^-~]/);function ra(e){return e!==null&&(e<32||e===127)}const nf=Pr(/\d/),bA=Pr(/[\dA-Fa-f]/),_A=Pr(/[!-/:-@[-`{-~]/);function Ie(e){return e!==null&&e<-2}function rt(e){return e!==null&&(e<0||e===32)}function Ye(e){return e===-2||e===-1||e===32}const ia=Pr(new RegExp("\\p{P}|\\p{S}","u")),pi=Pr(/\s/);function Pr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ji(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const u=e.charCodeAt(n);let l="";if(u===37&&Yt(e.charCodeAt(n+1))&&Yt(e.charCodeAt(n+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(l=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(n+1);u<56320&&f>56319&&f<57344?(l=String.fromCharCode(u,f),o=1):l="�"}else l=String.fromCharCode(u);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Ge(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let u=0;return l;function l(d){return Ye(d)?(e.enter(n),f(d)):t(d)}function f(d){return Ye(d)&&u++<o?(e.consume(d),f):(e.exit(n),t(d))}}const SA={tokenize:xA};function xA(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ge(e,t,"linePrefix")}function o(f){return e.enter("paragraph"),u(f)}function u(f){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(f)}function l(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Ie(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),l)}}const AA={tokenize:CA},N0={tokenize:kA};function CA(e){const t=this,n=[];let r=0,o,u,l;return f;function f(j){if(r<n.length){const ee=n[r];return t.containerState=ee[1],e.attempt(ee[0].continuation,d,h)(j)}return h(j)}function d(j){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&V();const ee=t.events.length;let he=ee,F;for(;he--;)if(t.events[he][0]==="exit"&&t.events[he][1].type==="chunkFlow"){F=t.events[he][1].end;break}L(r);let me=ee;for(;me<t.events.length;)t.events[me][1].end=Q({},F),me++;return Tn(t.events,he+1,0,t.events.slice(ee)),t.events.length=me,h(j)}return f(j)}function h(j){if(r===n.length){if(!o)return b(j);if(o.currentConstruct&&o.currentConstruct.concrete)return S(j);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(N0,g,y)(j)}function g(j){return o&&V(),L(r),b(j)}function y(j){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,S(j)}function b(j){return t.containerState={},e.attempt(N0,T,S)(j)}function T(j){return r++,n.push([t.currentConstruct,t.containerState]),b(j)}function S(j){if(j===null){o&&V(),L(0),e.consume(j);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),C(j)}function C(j){if(j===null){O(e.exit("chunkFlow"),!0),L(0),e.consume(j);return}return Ie(j)?(e.consume(j),O(e.exit("chunkFlow")),r=0,t.interrupt=void 0,f):(e.consume(j),C)}function O(j,ee){const he=t.sliceStream(j);if(ee&&he.push(null),j.previous=u,u&&(u.next=j),u=j,o.defineSkip(j.start),o.write(he),t.parser.lazy[j.start.line]){let F=o.events.length;for(;F--;)if(o.events[F][1].start.offset<l&&(!o.events[F][1].end||o.events[F][1].end.offset>l))return;const me=t.events.length;let Ae=me,Ne,H;for(;Ae--;)if(t.events[Ae][0]==="exit"&&t.events[Ae][1].type==="chunkFlow"){if(Ne){H=t.events[Ae][1].end;break}Ne=!0}for(L(r),F=me;F<t.events.length;)t.events[F][1].end=Q({},H),F++;Tn(t.events,Ae+1,0,t.events.slice(me)),t.events.length=F}}function L(j){let ee=n.length;for(;ee-- >j;){const he=n[ee];t.containerState=he[1],he[0].exit.call(t,e)}n.length=j}function V(){o.write([null]),u=void 0,o=void 0,t.containerState._closeFlow=void 0}}function kA(e,t,n){return Ge(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Zi(e){if(e===null||rt(e)||pi(e))return 1;if(ia(e))return 2}function sa(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!r.includes(u)&&(t=u(t,n),r.push(u))}return t}const rf={name:"attention",resolveAll:wA,tokenize:NA};function wA(e,t){let n=-1,r,o,u,l,f,d,h,g;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const y=Q({},e[r][1].end),b=Q({},e[n][1].start);v0(y,-d),v0(b,d),l={type:d>1?"strongSequence":"emphasisSequence",start:y,end:Q({},e[r][1].end)},f={type:d>1?"strongSequence":"emphasisSequence",start:Q({},e[n][1].start),end:b},u={type:d>1?"strongText":"emphasisText",start:Q({},e[r][1].end),end:Q({},e[n][1].start)},o={type:d>1?"strong":"emphasis",start:Q({},l.start),end:Q({},f.end)},e[r][1].end=Q({},l.start),e[n][1].start=Q({},f.end),h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=Nn(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=Nn(h,[["enter",o,t],["enter",l,t],["exit",l,t],["enter",u,t]]),h=Nn(h,sa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=Nn(h,[["exit",u,t],["enter",f,t],["exit",f,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(g=2,h=Nn(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):g=0,Tn(e,r-1,n-r+3,h),n=r+h.length-g-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function NA(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Zi(r);let u;return l;function l(d){return u=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===u)return e.consume(d),f;const h=e.exit("attentionSequence"),g=Zi(d),y=!g||g===2&&o||n.includes(d),b=!o||o===2&&g||n.includes(r);return h._open=!!(u===42?y:y&&(o||!b)),h._close=!!(u===42?b:b&&(g||!y)),t(d)}}function v0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const vA={name:"autolink",tokenize:IA};function IA(e,t,n){let r=0;return o;function o(T){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(T){return Jt(T)?(e.consume(T),l):T===64?n(T):h(T)}function l(T){return T===43||T===45||T===46||Yt(T)?(r=1,f(T)):h(T)}function f(T){return T===58?(e.consume(T),r=0,d):(T===43||T===45||T===46||Yt(T))&&r++<32?(e.consume(T),f):(r=0,h(T))}function d(T){return T===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.exit("autolink"),t):T===null||T===32||T===60||ra(T)?n(T):(e.consume(T),d)}function h(T){return T===64?(e.consume(T),g):TA(T)?(e.consume(T),h):n(T)}function g(T){return Yt(T)?y(T):n(T)}function y(T){return T===46?(e.consume(T),r=0,g):T===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.exit("autolink"),t):b(T)}function b(T){if((T===45||Yt(T))&&r++<63){const S=T===45?b:y;return e.consume(T),S}return n(T)}}const fo={partial:!0,tokenize:OA};function OA(e,t,n){return r;function r(u){return Ye(u)?Ge(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||Ie(u)?t(u):n(u)}}const I0={continuation:{tokenize:PA},exit:LA,name:"blockQuote",tokenize:RA};function RA(e,t,n){const r=this;return o;function o(l){if(l===62){const f=r.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),u}return n(l)}function u(l){return Ye(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function PA(e,t,n){const r=this;return o;function o(l){return Ye(l)?Ge(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):u(l)}function u(l){return e.attempt(I0,t,n)(l)}}function LA(e){e.exit("blockQuote")}const O0={name:"characterEscape",tokenize:DA};function DA(e,t,n){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),o}function o(u){return _A(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(u)}}const R0={name:"characterReference",tokenize:MA};function MA(e,t,n){const r=this;let o=0,u,l;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),d}function d(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),u=31,l=Yt,g(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,l=bA,g):(e.enter("characterReferenceValue"),u=7,l=nf,g(y))}function g(y){if(y===59&&o){const b=e.exit("characterReferenceValue");return l===Yt&&!tf(r.sliceSerialize(b))?n(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(y)&&o++<u?(e.consume(y),g):n(y)}}const P0={partial:!0,tokenize:BA},L0={concrete:!0,name:"codeFenced",tokenize:FA};function FA(e,t,n){const r=this,o={partial:!0,tokenize:he};let u=0,l=0,f;return d;function d(F){return h(F)}function h(F){const me=r.events[r.events.length-1];return u=me&&me[1].type==="linePrefix"?me[2].sliceSerialize(me[1],!0).length:0,f=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(F)}function g(F){return F===f?(l++,e.consume(F),g):l<3?n(F):(e.exit("codeFencedFenceSequence"),Ye(F)?Ge(e,y,"whitespace")(F):y(F))}function y(F){return F===null||Ie(F)?(e.exit("codeFencedFence"),r.interrupt?t(F):e.check(P0,C,ee)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(F))}function b(F){return F===null||Ie(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(F)):Ye(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ge(e,T,"whitespace")(F)):F===96&&F===f?n(F):(e.consume(F),b)}function T(F){return F===null||Ie(F)?y(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(F))}function S(F){return F===null||Ie(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(F)):F===96&&F===f?n(F):(e.consume(F),S)}function C(F){return e.attempt(o,ee,O)(F)}function O(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),L}function L(F){return u>0&&Ye(F)?Ge(e,V,"linePrefix",u+1)(F):V(F)}function V(F){return F===null||Ie(F)?e.check(P0,C,ee)(F):(e.enter("codeFlowValue"),j(F))}function j(F){return F===null||Ie(F)?(e.exit("codeFlowValue"),V(F)):(e.consume(F),j)}function ee(F){return e.exit("codeFenced"),t(F)}function he(F,me,Ae){let Ne=0;return H;function H(be){return F.enter("lineEnding"),F.consume(be),F.exit("lineEnding"),ge}function ge(be){return F.enter("codeFencedFence"),Ye(be)?Ge(F,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(be):pe(be)}function pe(be){return be===f?(F.enter("codeFencedFenceSequence"),ce(be)):Ae(be)}function ce(be){return be===f?(Ne++,F.consume(be),ce):Ne>=l?(F.exit("codeFencedFenceSequence"),Ye(be)?Ge(F,fe,"whitespace")(be):fe(be)):Ae(be)}function fe(be){return be===null||Ie(be)?(F.exit("codeFencedFence"),me(be)):Ae(be)}}}function BA(e,t,n){const r=this;return o;function o(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u)}function u(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const sf={name:"codeIndented",tokenize:HA},UA={partial:!0,tokenize:zA};function HA(e,t,n){const r=this;return o;function o(h){return e.enter("codeIndented"),Ge(e,u,"linePrefix",5)(h)}function u(h){const g=r.events[r.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?l(h):n(h)}function l(h){return h===null?d(h):Ie(h)?e.attempt(UA,l,d)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||Ie(h)?(e.exit("codeFlowValue"),l(h)):(e.consume(h),f)}function d(h){return e.exit("codeIndented"),t(h)}}function zA(e,t,n){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?n(l):Ie(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):Ge(e,u,"linePrefix",5)(l)}function u(l){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(l):Ie(l)?o(l):n(l)}}const jA={name:"codeText",previous:VA,resolve:$A,tokenize:YA};function $A(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function VA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function YA(e,t,n){let r=0,o,u;return l;function l(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),r++,f):(e.exit("codeTextSequence"),d(y))}function d(y){return y===null?n(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),d):y===96?(u=e.enter("codeTextSequence"),o=0,g(y)):Ie(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||Ie(y)?(e.exit("codeTextData"),d(y)):(e.consume(y),h)}function g(y){return y===96?(e.consume(y),o++,g):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(u.type="codeTextData",h(y))}}class qA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n==null?Number.POSITIVE_INFINITY:n;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&ho(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ho(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ho(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ho(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ho(this.left,n.reverse())}}}function ho(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function D0(e){const t={};let n=-1,r,o,u,l,f,d,h;const g=new qA(e);for(;++n<g.length;){for(;n in t;)n=t[n];if(r=g.get(n),n&&r[1].type==="chunkFlow"&&g.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,u=0,u<d.length&&d[u][1].type==="lineEndingBlank"&&(u+=2),u<d.length&&d[u][1].type==="content"))for(;++u<d.length&&d[u][1].type!=="content";)d[u][1].type==="chunkText"&&(d[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,WA(g,n)),n=t[n],h=!0);else if(r[1]._container){for(u=n,o=void 0;u--;)if(l=g.get(u),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(o&&(g.get(o)[1].type="lineEndingBlank"),l[1].type="lineEnding",o=u);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;o&&(r[1].end=Q({},g.get(o)[1].start),f=g.slice(o,n),f.unshift(r),g.splice(o,n-o+1,f))}}return Tn(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function WA(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const u=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const f=l.events,d=[],h={};let g,y,b=-1,T=n,S=0,C=0;const O=[C];for(;T;){for(;e.get(++o)[1]!==T;);u.push(o),T._tokenizer||(g=r.sliceStream(T),T.next||g.push(null),y&&l.defineSkip(T.start),T._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(g),T._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),y=T,T=T.next}for(T=n;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(C=b+1,O.push(C),T._tokenizer=void 0,T.previous=void 0,T=T.next);for(l.events=[],T?(T._tokenizer=void 0,T.previous=void 0):O.pop(),b=O.length;b--;){const L=f.slice(O[b],O[b+1]),V=u.pop();d.push([V,V+L.length-1]),e.splice(V,2,L)}for(d.reverse(),b=-1;++b<d.length;)h[S+d[b][0]]=S+d[b][1],S+=d[b][1]-d[b][0]-1;return h}const GA={resolve:QA,tokenize:XA},KA={partial:!0,tokenize:JA};function QA(e){return D0(e),e}function XA(e,t){let n;return r;function r(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?u(f):Ie(f)?e.check(KA,l,u)(f):(e.consume(f),o)}function u(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function l(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function JA(e,t,n){const r=this;return o;function o(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ge(e,u,"linePrefix")}function u(l){if(l===null||Ie(l))return n(l);const f=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function M0(e,t,n,r,o,u,l,f,d){const h=d||Number.POSITIVE_INFINITY;let g=0;return y;function y(L){return L===60?(e.enter(r),e.enter(o),e.enter(u),e.consume(L),e.exit(u),b):L===null||L===32||L===41||ra(L)?n(L):(e.enter(r),e.enter(l),e.enter(f),e.enter("chunkString",{contentType:"string"}),C(L))}function b(L){return L===62?(e.enter(u),e.consume(L),e.exit(u),e.exit(o),e.exit(r),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),T(L))}function T(L){return L===62?(e.exit("chunkString"),e.exit(f),b(L)):L===null||L===60||Ie(L)?n(L):(e.consume(L),L===92?S:T)}function S(L){return L===60||L===62||L===92?(e.consume(L),T):T(L)}function C(L){return!g&&(L===null||L===41||rt(L))?(e.exit("chunkString"),e.exit(f),e.exit(l),e.exit(r),t(L)):g<h&&L===40?(e.consume(L),g++,C):L===41?(e.consume(L),g--,C):L===null||L===32||L===40||ra(L)?n(L):(e.consume(L),L===92?O:C)}function O(L){return L===40||L===41||L===92?(e.consume(L),C):C(L)}}function F0(e,t,n,r,o,u){const l=this;let f=0,d;return h;function h(T){return e.enter(r),e.enter(o),e.consume(T),e.exit(o),e.enter(u),g}function g(T){return f>999||T===null||T===91||T===93&&!d||T===94&&!f&&"_hiddenFootnoteSupport"in l.parser.constructs?n(T):T===93?(e.exit(u),e.enter(o),e.consume(T),e.exit(o),e.exit(r),t):Ie(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(T))}function y(T){return T===null||T===91||T===93||Ie(T)||f++>999?(e.exit("chunkString"),g(T)):(e.consume(T),d||(d=!Ye(T)),T===92?b:y)}function b(T){return T===91||T===92||T===93?(e.consume(T),f++,y):y(T)}}function B0(e,t,n,r,o,u){let l;return f;function f(b){return b===34||b===39||b===40?(e.enter(r),e.enter(o),e.consume(b),e.exit(o),l=b===40?41:b,d):n(b)}function d(b){return b===l?(e.enter(o),e.consume(b),e.exit(o),e.exit(r),t):(e.enter(u),h(b))}function h(b){return b===l?(e.exit(u),d(l)):b===null?n(b):Ie(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Ge(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===l||b===null||Ie(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?y:g)}function y(b){return b===l||b===92?(e.consume(b),g):g(b)}}function po(e,t){let n;return r;function r(o){return Ie(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Ye(o)?Ge(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const ZA={name:"definition",tokenize:tC},eC={partial:!0,tokenize:nC};function tC(e,t,n){const r=this;let o;return u;function u(T){return e.enter("definition"),l(T)}function l(T){return F0.call(r,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(T)}function f(T){return o=jn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),d):n(T)}function d(T){return rt(T)?po(e,h)(T):h(T)}function h(T){return M0(e,g,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(T)}function g(T){return e.attempt(eC,y,y)(T)}function y(T){return Ye(T)?Ge(e,b,"whitespace")(T):b(T)}function b(T){return T===null||Ie(T)?(e.exit("definition"),r.parser.defined.push(o),t(T)):n(T)}}function nC(e,t,n){return r;function r(f){return rt(f)?po(e,o)(f):n(f)}function o(f){return B0(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Ye(f)?Ge(e,l,"whitespace")(f):l(f)}function l(f){return f===null||Ie(f)?t(f):n(f)}}const rC={name:"hardBreakEscape",tokenize:iC};function iC(e,t,n){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),o}function o(u){return Ie(u)?(e.exit("hardBreakEscape"),t(u)):n(u)}}const sC={name:"headingAtx",resolve:oC,tokenize:uC};function oC(e,t){let n=e.length-2,r=3,o,u;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},u={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Tn(e,r,n-r+1,[["enter",o,t],["enter",u,t],["exit",u,t],["exit",o,t]])),e}function uC(e,t,n){let r=0;return o;function o(g){return e.enter("atxHeading"),u(g)}function u(g){return e.enter("atxHeadingSequence"),l(g)}function l(g){return g===35&&r++<6?(e.consume(g),l):g===null||rt(g)?(e.exit("atxHeadingSequence"),f(g)):n(g)}function f(g){return g===35?(e.enter("atxHeadingSequence"),d(g)):g===null||Ie(g)?(e.exit("atxHeading"),t(g)):Ye(g)?Ge(e,f,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function d(g){return g===35?(e.consume(g),d):(e.exit("atxHeadingSequence"),f(g))}function h(g){return g===null||g===35||rt(g)?(e.exit("atxHeadingText"),f(g)):(e.consume(g),h)}}const aC=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],U0=["pre","script","style","textarea"],lC={concrete:!0,name:"htmlFlow",resolveTo:dC,tokenize:hC},cC={partial:!0,tokenize:mC},fC={partial:!0,tokenize:pC};function dC(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(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}function hC(e,t,n){const r=this;let o,u,l,f,d;return h;function h(w){return g(w)}function g(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),y}function y(w){return w===33?(e.consume(w),b):w===47?(e.consume(w),u=!0,C):w===63?(e.consume(w),o=3,r.interrupt?t:x):Jt(w)?(e.consume(w),l=String.fromCharCode(w),O):n(w)}function b(w){return w===45?(e.consume(w),o=2,T):w===91?(e.consume(w),o=5,f=0,S):Jt(w)?(e.consume(w),o=4,r.interrupt?t:x):n(w)}function T(w){return w===45?(e.consume(w),r.interrupt?t:x):n(w)}function S(w){const Ee="CDATA[";return w===Ee.charCodeAt(f++)?(e.consume(w),f===Ee.length?r.interrupt?t:pe:S):n(w)}function C(w){return Jt(w)?(e.consume(w),l=String.fromCharCode(w),O):n(w)}function O(w){if(w===null||w===47||w===62||rt(w)){const Ee=w===47,ve=l.toLowerCase();return!Ee&&!u&&U0.includes(ve)?(o=1,r.interrupt?t(w):pe(w)):aC.includes(l.toLowerCase())?(o=6,Ee?(e.consume(w),L):r.interrupt?t(w):pe(w)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):u?V(w):j(w))}return w===45||Yt(w)?(e.consume(w),l+=String.fromCharCode(w),O):n(w)}function L(w){return w===62?(e.consume(w),r.interrupt?t:pe):n(w)}function V(w){return Ye(w)?(e.consume(w),V):H(w)}function j(w){return w===47?(e.consume(w),H):w===58||w===95||Jt(w)?(e.consume(w),ee):Ye(w)?(e.consume(w),j):H(w)}function ee(w){return w===45||w===46||w===58||w===95||Yt(w)?(e.consume(w),ee):he(w)}function he(w){return w===61?(e.consume(w),F):Ye(w)?(e.consume(w),he):j(w)}function F(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),d=w,me):Ye(w)?(e.consume(w),F):Ae(w)}function me(w){return w===d?(e.consume(w),d=null,Ne):w===null||Ie(w)?n(w):(e.consume(w),me)}function Ae(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||rt(w)?he(w):(e.consume(w),Ae)}function Ne(w){return w===47||w===62||Ye(w)?j(w):n(w)}function H(w){return w===62?(e.consume(w),ge):n(w)}function ge(w){return w===null||Ie(w)?pe(w):Ye(w)?(e.consume(w),ge):n(w)}function pe(w){return w===45&&o===2?(e.consume(w),Le):w===60&&o===1?(e.consume(w),ue):w===62&&o===4?(e.consume(w),I):w===63&&o===3?(e.consume(w),x):w===93&&o===5?(e.consume(w),G):Ie(w)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(cC,q,ce)(w)):w===null||Ie(w)?(e.exit("htmlFlowData"),ce(w)):(e.consume(w),pe)}function ce(w){return e.check(fC,fe,q)(w)}function fe(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),be}function be(w){return w===null||Ie(w)?ce(w):(e.enter("htmlFlowData"),pe(w))}function Le(w){return w===45?(e.consume(w),x):pe(w)}function ue(w){return w===47?(e.consume(w),l="",M):pe(w)}function M(w){if(w===62){const Ee=l.toLowerCase();return U0.includes(Ee)?(e.consume(w),I):pe(w)}return Jt(w)&&l.length<8?(e.consume(w),l+=String.fromCharCode(w),M):pe(w)}function G(w){return w===93?(e.consume(w),x):pe(w)}function x(w){return w===62?(e.consume(w),I):w===45&&o===2?(e.consume(w),x):pe(w)}function I(w){return w===null||Ie(w)?(e.exit("htmlFlowData"),q(w)):(e.consume(w),I)}function q(w){return e.exit("htmlFlow"),t(w)}}function pC(e,t,n){const r=this;return o;function o(l){return Ie(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u):n(l)}function u(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function mC(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(fo,t,n)}}const gC={name:"htmlText",tokenize:EC};function EC(e,t,n){const r=this;let o,u,l;return f;function f(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),d}function d(x){return x===33?(e.consume(x),h):x===47?(e.consume(x),he):x===63?(e.consume(x),j):Jt(x)?(e.consume(x),Ae):n(x)}function h(x){return x===45?(e.consume(x),g):x===91?(e.consume(x),u=0,S):Jt(x)?(e.consume(x),V):n(x)}function g(x){return x===45?(e.consume(x),T):n(x)}function y(x){return x===null?n(x):x===45?(e.consume(x),b):Ie(x)?(l=y,ue(x)):(e.consume(x),y)}function b(x){return x===45?(e.consume(x),T):y(x)}function T(x){return x===62?Le(x):x===45?b(x):y(x)}function S(x){const I="CDATA[";return x===I.charCodeAt(u++)?(e.consume(x),u===I.length?C:S):n(x)}function C(x){return x===null?n(x):x===93?(e.consume(x),O):Ie(x)?(l=C,ue(x)):(e.consume(x),C)}function O(x){return x===93?(e.consume(x),L):C(x)}function L(x){return x===62?Le(x):x===93?(e.consume(x),L):C(x)}function V(x){return x===null||x===62?Le(x):Ie(x)?(l=V,ue(x)):(e.consume(x),V)}function j(x){return x===null?n(x):x===63?(e.consume(x),ee):Ie(x)?(l=j,ue(x)):(e.consume(x),j)}function ee(x){return x===62?Le(x):j(x)}function he(x){return Jt(x)?(e.consume(x),F):n(x)}function F(x){return x===45||Yt(x)?(e.consume(x),F):me(x)}function me(x){return Ie(x)?(l=me,ue(x)):Ye(x)?(e.consume(x),me):Le(x)}function Ae(x){return x===45||Yt(x)?(e.consume(x),Ae):x===47||x===62||rt(x)?Ne(x):n(x)}function Ne(x){return x===47?(e.consume(x),Le):x===58||x===95||Jt(x)?(e.consume(x),H):Ie(x)?(l=Ne,ue(x)):Ye(x)?(e.consume(x),Ne):Le(x)}function H(x){return x===45||x===46||x===58||x===95||Yt(x)?(e.consume(x),H):ge(x)}function ge(x){return x===61?(e.consume(x),pe):Ie(x)?(l=ge,ue(x)):Ye(x)?(e.consume(x),ge):Ne(x)}function pe(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),o=x,ce):Ie(x)?(l=pe,ue(x)):Ye(x)?(e.consume(x),pe):(e.consume(x),fe)}function ce(x){return x===o?(e.consume(x),o=void 0,be):x===null?n(x):Ie(x)?(l=ce,ue(x)):(e.consume(x),ce)}function fe(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||rt(x)?Ne(x):(e.consume(x),fe)}function be(x){return x===47||x===62||rt(x)?Ne(x):n(x)}function Le(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):n(x)}function ue(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),M}function M(x){return Ye(x)?Ge(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):G(x)}function G(x){return e.enter("htmlTextData"),l(x)}}const of={name:"labelEnd",resolveAll:_C,resolveTo:SC,tokenize:xC},yC={tokenize:AC},TC={tokenize:CC},bC={tokenize:kC};function _C(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&Tn(e,0,e.length,n),e}function SC(e,t){let n=e.length,r=0,o,u,l,f;for(;n--;)if(o=e[n][1],u){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(u=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(l=n);const d={type:e[u][1].type==="labelLink"?"link":"image",start:Q({},e[u][1].start),end:Q({},e[e.length-1][1].end)},h={type:"label",start:Q({},e[u][1].start),end:Q({},e[l][1].end)},g={type:"labelText",start:Q({},e[u+r+2][1].end),end:Q({},e[l-2][1].start)};return f=[["enter",d,t],["enter",h,t]],f=Nn(f,e.slice(u+1,u+r+3)),f=Nn(f,[["enter",g,t]]),f=Nn(f,sa(t.parser.constructs.insideSpan.null,e.slice(u+r+4,l-3),t)),f=Nn(f,[["exit",g,t],e[l-2],e[l-1],["exit",h,t]]),f=Nn(f,e.slice(l+1)),f=Nn(f,[["exit",d,t]]),Tn(e,u,e.length,f),e}function xC(e,t,n){const r=this;let o=r.events.length,u,l;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){u=r.events[o][1];break}return f;function f(b){return u?u._inactive?y(b):(l=r.parser.defined.includes(jn(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):n(b)}function d(b){return b===40?e.attempt(yC,g,l?g:y)(b):b===91?e.attempt(TC,g,l?h:y)(b):l?g(b):y(b)}function h(b){return e.attempt(bC,g,y)(b)}function g(b){return t(b)}function y(b){return u._balanced=!0,n(b)}}function AC(e,t,n){return r;function r(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),o}function o(y){return rt(y)?po(e,u)(y):u(y)}function u(y){return y===41?g(y):M0(e,l,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function l(y){return rt(y)?po(e,d)(y):g(y)}function f(y){return n(y)}function d(y){return y===34||y===39||y===40?B0(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function h(y){return rt(y)?po(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):n(y)}}function CC(e,t,n){const r=this;return o;function o(f){return F0.call(r,e,u,l,"reference","referenceMarker","referenceString")(f)}function u(f){return r.parser.defined.includes(jn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function l(f){return n(f)}}function kC(e,t,n){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),o}function o(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):n(u)}}const wC={name:"labelStartImage",resolveAll:of.resolveAll,tokenize:NC};function NC(e,t,n){const r=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),l):n(f)}function l(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(f):t(f)}}const vC={name:"labelStartLink",resolveAll:of.resolveAll,tokenize:IC};function IC(e,t,n){const r=this;return o;function o(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),u}function u(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const uf={name:"lineEnding",tokenize:OC};function OC(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ge(e,t,"linePrefix")}}const oa={name:"thematicBreak",tokenize:RC};function RC(e,t,n){let r=0,o;return u;function u(h){return e.enter("thematicBreak"),l(h)}function l(h){return o=h,f(h)}function f(h){return h===o?(e.enter("thematicBreakSequence"),d(h)):r>=3&&(h===null||Ie(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===o?(e.consume(h),r++,d):(e.exit("thematicBreakSequence"),Ye(h)?Ge(e,f,"whitespace")(h):f(h))}}const an={continuation:{tokenize:MC},exit:BC,name:"list",tokenize:DC},PC={partial:!0,tokenize:UC},LC={partial:!0,tokenize:FC};function DC(e,t,n){const r=this,o=r.events[r.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,l=0;return f;function f(T){const S=r.containerState.type||(T===42||T===43||T===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!r.containerState.marker||T===r.containerState.marker:nf(T)){if(r.containerState.type||(r.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),T===42||T===45?e.check(oa,n,h)(T):h(T);if(!r.interrupt||T===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(T)}return n(T)}function d(T){return nf(T)&&++l<10?(e.consume(T),d):(!r.interrupt||l<2)&&(r.containerState.marker?T===r.containerState.marker:T===41||T===46)?(e.exit("listItemValue"),h(T)):n(T)}function h(T){return e.enter("listItemMarker"),e.consume(T),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||T,e.check(fo,r.interrupt?n:g,e.attempt(PC,b,y))}function g(T){return r.containerState.initialBlankLine=!0,u++,b(T)}function y(T){return Ye(T)?(e.enter("listItemPrefixWhitespace"),e.consume(T),e.exit("listItemPrefixWhitespace"),b):n(T)}function b(T){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(T)}}function MC(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(fo,o,u);function o(f){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ge(e,t,"listItemIndent",r.containerState.size+1)(f)}function u(f){return r.containerState.furtherBlankLines||!Ye(f)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(f)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(LC,t,l)(f))}function l(f){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ge(e,e.attempt(an,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function FC(e,t,n){const r=this;return Ge(e,o,"listItemIndent",r.containerState.size+1);function o(u){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(u):n(u)}}function BC(e){e.exit(this.containerState.type)}function UC(e,t,n){const r=this;return Ge(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const l=r.events[r.events.length-1];return!Ye(u)&&l&&l[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}const H0={name:"setextUnderline",resolveTo:HC,tokenize:zC};function HC(e,t){let n=e.length,r,o,u;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!u&&e[n][1].type==="definition"&&(u=n);const l={type:"setextHeading",start:Q({},e[r][1].start),end:Q({},e[e.length-1][1].end)};return e[o][1].type="setextHeadingText",u?(e.splice(o,0,["enter",l,t]),e.splice(u+1,0,["exit",e[r][1],t]),e[r][1].end=Q({},e[u][1].end)):e[r][1]=l,e.push(["exit",l,t]),e}function zC(e,t,n){const r=this;let o;return u;function u(h){let g=r.events.length,y;for(;g--;)if(r.events[g][1].type!=="lineEnding"&&r.events[g][1].type!=="linePrefix"&&r.events[g][1].type!=="content"){y=r.events[g][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(e.enter("setextHeadingLine"),o=h,l(h)):n(h)}function l(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===o?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),Ye(h)?Ge(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Ie(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const jC={tokenize:$C};function $C(e){const t=this,n=e.attempt(fo,r,e.attempt(this.parser.constructs.flowInitial,o,Ge(e,e.attempt(this.parser.constructs.flow,o,e.attempt(GA,o)),"linePrefix")));return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const VC={resolveAll:j0()},YC=z0("string"),qC=z0("text");function z0(e){return{resolveAll:j0(e==="text"?WC:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],u=n.attempt(o,l,f);return l;function l(g){return h(g)?u(g):f(g)}function f(g){if(g===null){n.consume(g);return}return n.enter("data"),n.consume(g),d}function d(g){return h(g)?(n.exit("data"),u(g)):(n.consume(g),d)}function h(g){if(g===null)return!0;const y=o[g];let b=-1;if(y)for(;++b<y.length;){const T=y[b];if(!T.previous||T.previous.call(r,r.previous))return!0}return!1}}}function j0(e){return t;function t(n,r){let o=-1,u;for(;++o<=n.length;)u===void 0?n[o]&&n[o][1].type==="data"&&(u=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==u+2&&(n[u][1].end=n[o-1][1].end,n.splice(u+2,o-u-2),o=u+2),u=void 0);return e?e(n,r):n}}function WC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let u=o.length,l=-1,f=0,d;for(;u--;){const h=o[u];if(typeof h=="string"){for(l=h.length;h.charCodeAt(l-1)===32;)f++,l--;if(l)break;l=-1}else if(h===-2)d=!0,f++;else if(h!==-1){u++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const h={type:n===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?l:r.start._bufferIndex+l,_index:r.start._index+u,line:r.end.line,column:r.end.column-f,offset:r.end.offset-f},end:Q({},r.end)};r.end=Q({},h.start),r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const GC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:ZA},disable:{null:[]},document:{42:an,43:an,45:an,48:an,49:an,50:an,51:an,52:an,53:an,54:an,55:an,56:an,57:an,62:I0},flow:{35:sC,42:oa,45:[H0,oa],60:lC,61:H0,95:oa,96:L0,126:L0},flowInitial:{[-2]:sf,[-1]:sf,32:sf},insideSpan:{null:[rf,VC]},string:{38:R0,92:O0},text:{[-5]:uf,[-4]:uf,[-3]:uf,33:wC,38:R0,42:rf,60:[vA,gC],91:vC,92:[rC,O0],93:of,95:rf,96:jA}},Symbol.toStringTag,{value:"Module"}));function KC(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},u=[];let l=[],f=[];const d={attempt:me(he),check:me(F),consume:V,enter:j,exit:ee,interrupt:me(F,{interrupt:!0})},h={code:null,containerState:{},defineSkip:C,events:[],now:S,parser:e,previous:null,sliceSerialize:b,sliceStream:T,write:y};let g=t.tokenize.call(h,d);return t.resolveAll&&u.push(t),h;function y(ge){return l=Nn(l,ge),O(),l[l.length-1]!==null?[]:(Ae(t,0),h.events=sa(u,h.events,h),h.events)}function b(ge,pe){return XC(T(ge),pe)}function T(ge){return QC(l,ge)}function S(){const{_bufferIndex:ge,_index:pe,line:ce,column:fe,offset:be}=r;return{_bufferIndex:ge,_index:pe,line:ce,column:fe,offset:be}}function C(ge){o[ge.line]=ge.column,H()}function O(){let ge;for(;r._index<l.length;){const pe=l[r._index];if(typeof pe=="string")for(ge=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===ge&&r._bufferIndex<pe.length;)L(pe.charCodeAt(r._bufferIndex));else L(pe)}}function L(ge){g=g(ge)}function V(ge){Ie(ge)?(r.line++,r.column=1,r.offset+=ge===-3?2:1,H()):ge!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=ge}function j(ge,pe){const ce=pe||{};return ce.type=ge,ce.start=S(),h.events.push(["enter",ce,h]),f.push(ce),ce}function ee(ge){const pe=f.pop();return pe.end=S(),h.events.push(["exit",pe,h]),pe}function he(ge,pe){Ae(ge,pe.from)}function F(ge,pe){pe.restore()}function me(ge,pe){return ce;function ce(fe,be,Le){let ue,M,G,x;return Array.isArray(fe)?q(fe):"tokenize"in fe?q([fe]):I(fe);function I(Ce){return We;function We(ze){const Ze=ze!==null&&Ce[ze],wt=ze!==null&&Ce.null,_r=[...Array.isArray(Ze)?Ze:Ze?[Ze]:[],...Array.isArray(wt)?wt:wt?[wt]:[]];return q(_r)(ze)}}function q(Ce){return ue=Ce,M=0,Ce.length===0?Le:w(Ce[M])}function w(Ce){return We;function We(ze){return x=Ne(),G=Ce,Ce.partial||(h.currentConstruct=Ce),Ce.name&&h.parser.constructs.disable.null.includes(Ce.name)?ve():Ce.tokenize.call(pe?Object.assign(Object.create(h),pe):h,d,Ee,ve)(ze)}}function Ee(Ce){return ge(G,x),be}function ve(Ce){return x.restore(),++M<ue.length?w(ue[M]):Le}}}function Ae(ge,pe){ge.resolveAll&&!u.includes(ge)&&u.push(ge),ge.resolve&&Tn(h.events,pe,h.events.length-pe,ge.resolve(h.events.slice(pe),h)),ge.resolveTo&&(h.events=ge.resolveTo(h.events,h))}function Ne(){const ge=S(),pe=h.previous,ce=h.currentConstruct,fe=h.events.length,be=Array.from(f);return{from:fe,restore:Le};function Le(){r=ge,h.previous=pe,h.currentConstruct=ce,h.events.length=fe,f=be,H()}}function H(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function QC(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,u=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,u)];else{if(l=e.slice(n,o),r>-1){const f=l[0];typeof f=="string"?l[0]=f.slice(r):l.shift()}u>0&&l.push(e[o].slice(0,u))}return l}function XC(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const u=e[n];let l;if(typeof u=="string")l=u;else switch(u){case-5:{l="\r";break}case-4:{l=`
22
+ `):" "+fm(l[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return o},adapters:wc};function Nc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $i(null,e)}function hm(e){return Nc(e),e.headers=sn.from(e.headers),e.data=kc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dm.getAdapter(e.adapter||Xs.adapter,e)(e).then(function(r){return Nc(e),r.data=kc.call(e,e.transformResponse,r),r.headers=sn.from(r.headers),r},function(r){return Jp(r)||(Nc(e),r&&r.response&&(r.response.data=kc.call(e,e.transformResponse,r.response),r.response.headers=sn.from(r.response.headers))),Promise.reject(r)})}const pm="1.12.2",ju={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ju[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const mm={};ju.transitional=function(t,n,r){function o(u,l){return"[Axios v"+pm+"] Transitional option '"+u+"'"+l+(r?". "+r:"")}return(u,l,f)=>{if(t===!1)throw new Fe(o(l," has been removed"+(n?" in "+n:"")),Fe.ERR_DEPRECATED);return n&&!mm[l]&&(mm[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,l,f):!0}},ju.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function TS(e,t,n){if(typeof e!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const u=r[o],l=t[u];if(l){const f=e[u],d=f===void 0||l(f,u,e);if(d!==!0)throw new Fe("option "+u+" must be "+d,Fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Fe("Unknown option "+u,Fe.ERR_BAD_OPTION)}}const $u={assertOptions:TS,validators:ju},er=$u.validators;let ci=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Gp,response:new Gp}}request(t,n){return tn(this,null,function*(){try{return yield this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const u=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?u&&!String(r.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(r.stack+=`
23
+ `+u):r.stack=u}catch(l){}}throw r}})}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=li(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:u}=n;r!==void 0&&$u.assertOptions(r,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean)},!1),o!=null&&(Y.isFunction(o)?n.paramsSerializer={serialize:o}:$u.assertOptions(o,{encode:er.function,serialize:er.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),$u.assertOptions(n,{baseUrl:er.spelling("baseURL"),withXsrfToken:er.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=u&&Y.merge(u.common,u[n.method]);u&&Y.forEach(["delete","get","head","post","put","patch","common"],S=>{delete u[S]}),n.headers=sn.concat(l,u);const f=[];let d=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(d=d&&C.synchronous,f.unshift(C.fulfilled,C.rejected))});const h=[];this.interceptors.response.forEach(function(C){h.push(C.fulfilled,C.rejected)});let g,y=0,b;if(!d){const S=[hm.bind(this),void 0];for(S.unshift(...f),S.push(...h),b=S.length,g=Promise.resolve(n);y<b;)g=g.then(S[y++],S[y++]);return g}b=f.length;let T=n;for(;y<b;){const S=f[y++],C=f[y++];try{T=S(T)}catch(O){C.call(this,O);break}}try{g=hm.call(this,T)}catch(S){return Promise.reject(S)}for(y=0,b=h.length;y<b;)g=g.then(h[y++],h[y++]);return g}getUri(t){t=li(this.defaults,t);const n=nm(t.baseURL,t.url,t.allowAbsoluteUrls);return Wp(n,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){ci.prototype[t]=function(n,r){return this.request(li(r||{},{method:t,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(t){function n(r){return function(u,l,f){return this.request(li(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:u,data:l}))}}ci.prototype[t]=n(),ci.prototype[t+"Form"]=n(!0)});let bS=class zb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(u){n=u});const r=this;this.promise.then(o=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](o);r._listeners=null}),this.promise.then=o=>{let u;const l=new Promise(f=>{r.subscribe(f),u=f}).then(o);return l.cancel=function(){r.unsubscribe(u)},l},t(function(u,l,f){r.reason||(r.reason=new $i(u,l,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new zb(function(o){t=o}),cancel:t}}};function _S(e){return function(n){return e.apply(null,n)}}function SS(e){return Y.isObject(e)&&e.isAxiosError===!0}const vc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vc).forEach(([e,t])=>{vc[t]=e});function gm(e){const t=new ci(e),n=Rp(ci.prototype.request,t);return Y.extend(n,ci.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return gm(li(e,o))},n}const Tt=gm(Xs);Tt.Axios=ci,Tt.CanceledError=$i,Tt.CancelToken=bS,Tt.isCancel=Jp,Tt.VERSION=pm,Tt.toFormData=Bu,Tt.AxiosError=Fe,Tt.Cancel=Tt.CanceledError,Tt.all=function(t){return Promise.all(t)},Tt.spread=_S,Tt.isAxiosError=SS,Tt.mergeConfig=li,Tt.AxiosHeaders=sn,Tt.formToJSON=e=>Qp(Y.isHTMLForm(e)?new FormData(e):e),Tt.getAdapter=dm.getAdapter,Tt.HttpStatusCode=vc,Tt.default=Tt;const{Axios:A4,AxiosError:C4,CanceledError:k4,isCancel:w4,CancelToken:N4,VERSION:v4,all:O4,Cancel:I4,isAxiosError:R4,spread:P4,toFormData:L4,AxiosHeaders:D4,HttpStatusCode:M4,formToJSON:F4,getAdapter:B4,mergeConfig:U4}=Tt;class Em{constructor(t,n,r=!1){Je(this,"CIMULATE_API_HEADER","x-cimulate-api-key");Je(this,"CIMULATE_SEARCH_API_PATH","api/v1");Je(this,"baseApiUrl");Je(this,"headers",{});Je(this,"fetchConfig",()=>tn(this,null,function*(){try{const t=yield Tt.get(`${this.apiUrl}/configs/copilot`,{headers:this.headers}),{customer_config:n}=t.data,r=atob(n);return JSON.parse(r)}catch(t){throw console.error("Error fetching customer config:",t),t}}));if(t&&n||!t&&!n)throw new Error("Provide exactly one authentication method: either 'apiKey' or 'apiToken', but not both.");t?this.headers[this.CIMULATE_API_HEADER]=t:n&&(this.headers.Authorization=`Bearer ${n}`),this.baseApiUrl=r?"https://staging.search.cimulate.ai":"https://prod.search.cimulate.ai"}get apiUrl(){return`${this.baseApiUrl}/${this.CIMULATE_SEARCH_API_PATH}`}}const xS=X.createContext(void 0),AS=({apiKey:e,apiToken:t,isDevelopment:n=!1,children:r})=>{const o=X.useMemo(()=>new Em(e,t,n),[e,t,n]);return P.jsx(xS.Provider,{value:o,children:r})};var ym=Symbol.for("immer-nothing"),Tm=Symbol.for("immer-draftable"),et=Symbol.for("immer-state");function wn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Vi=Object.getPrototypeOf;function Yi(e){return!!e&&!!e[et]}function mr(e){var t;return e?bm(e)||Array.isArray(e)||!!e[Tm]||!!((t=e.constructor)!=null&&t[Tm])||Yu(e)||qu(e):!1}var CS=Object.prototype.constructor.toString();function bm(e){if(!e||typeof e!="object")return!1;const t=Vi(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===CS}function Zs(e,t){Vu(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Vu(e){const t=e[et];return t?t.type_:Array.isArray(e)?1:Yu(e)?2:qu(e)?3:0}function Oc(e,t){return Vu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _m(e,t,n){const r=Vu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function kS(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Yu(e){return e instanceof Map}function qu(e){return e instanceof Set}function Rt(e){return e.copy_||e.base_}function Ic(e,t){if(Yu(e))return new Map(e);if(qu(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=bm(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[et];let o=Reflect.ownKeys(r);for(let u=0;u<o.length;u++){const l=o[u],f=r[l];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(r[l]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[l]})}return Object.create(Vi(e),r)}else{const r=Vi(e);if(r!==null&&n)return Q({},e);const o=Object.create(r);return Object.assign(o,e)}}function Rc(e,t=!1){return Wu(e)||Yi(e)||!mr(e)||(Vu(e)>1&&(e.set=e.add=e.clear=e.delete=wS),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Rc(r,!0))),e}function wS(){wn(2)}function Wu(e){return Object.isFrozen(e)}var Pc={};function fi(e){const t=Pc[e];return t||wn(0,e),t}function NS(e,t){Pc[e]||(Pc[e]=t)}var eo;function Gu(){return eo}function vS(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Sm(e,t){t&&(fi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Lc(e){Dc(e),e.drafts_.forEach(OS),e.drafts_=null}function Dc(e){e===eo&&(eo=e.parent_)}function xm(e){return eo=vS(eo,e)}function OS(e){const t=e[et];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Am(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[et].modified_&&(Lc(t),wn(4)),mr(e)&&(e=Ku(t,e),t.parent_||Qu(t,e)),t.patches_&&fi("Patches").generateReplacementPatches_(n[et].base_,e,t.patches_,t.inversePatches_)):e=Ku(t,n,[]),Lc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ym?e:void 0}function Ku(e,t,n){if(Wu(t))return t;const r=t[et];if(!r)return Zs(t,(o,u)=>Cm(e,r,t,o,u,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Qu(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let u=o,l=!1;r.type_===3&&(u=new Set(o),o.clear(),l=!0),Zs(u,(f,d)=>Cm(e,r,o,f,d,n,l)),Qu(e,o,!1),n&&e.patches_&&fi("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Cm(e,t,n,r,o,u,l){if(Yi(o)){const f=u&&t&&t.type_!==3&&!Oc(t.assigned_,r)?u.concat(r):void 0,d=Ku(e,o,f);if(_m(n,r,d),Yi(d))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(mr(o)&&!Wu(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ku(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Qu(e,o)}}function Qu(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Rc(t,n)}function IS(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Gu(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,u=Mc;n&&(o=[r],u=to);const{revoke:l,proxy:f}=Proxy.revocable(o,u);return r.draft_=f,r.revoke_=l,f}var Mc={get(e,t){if(t===et)return e;const n=Rt(e);if(!Oc(n,t))return RS(e,n,t);const r=n[t];return e.finalized_||!mr(r)?r:r===Fc(e.base_,t)?(Bc(e),e.copy_[t]=no(r,e)):r},has(e,t){return t in Rt(e)},ownKeys(e){return Reflect.ownKeys(Rt(e))},set(e,t,n){const r=km(Rt(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Fc(Rt(e),t),u=o==null?void 0:o[et];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(kS(n,o)&&(n!==void 0||Oc(e.base_,t)))return!0;Bc(e),gr(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Fc(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Bc(e),gr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Rt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){wn(11)},getPrototypeOf(e){return Vi(e.base_)},setPrototypeOf(){wn(12)}},to={};Zs(Mc,(e,t)=>{to[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),to.deleteProperty=function(e,t){return to.set.call(this,e,t,void 0)},to.set=function(e,t,n){return Mc.set.call(this,e[0],t,n,e[0])};function Fc(e,t){const n=e[et];return(n?Rt(n):e)[t]}function RS(e,t,n){var o;const r=km(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function km(e,t){if(!(t in e))return;let n=Vi(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Vi(n)}}function gr(e){e.modified_||(e.modified_=!0,e.parent_&&gr(e.parent_))}function Bc(e){e.copy_||(e.copy_=Ic(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var PS=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const u=n;n=t;const l=this;return function(d=u,...h){return l.produce(d,g=>n.call(this,g,...h))}}typeof n!="function"&&wn(6),r!==void 0&&typeof r!="function"&&wn(7);let o;if(mr(t)){const u=xm(this),l=no(t,void 0);let f=!0;try{o=n(l),f=!1}finally{f?Lc(u):Dc(u)}return Sm(u,r),Am(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===ym&&(o=void 0),this.autoFreeze_&&Rc(o,!0),r){const u=[],l=[];fi("Patches").generateReplacementPatches_(t,o,u,l),r(u,l)}return o}else wn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...f)=>this.produceWithPatches(l,d=>t(d,...f));let r,o;return[this.produce(t,n,(l,f)=>{r=l,o=f}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){mr(e)||wn(8),Yi(e)&&(e=LS(e));const t=xm(this),n=no(e,void 0);return n[et].isManual_=!0,Dc(t),n}finishDraft(e,t){const n=e&&e[et];(!n||!n.isManual_)&&wn(9);const{scope_:r}=n;return Sm(r,t),Am(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=fi("Patches").applyPatches_;return Yi(e)?r(e,t):this.produce(e,o=>r(o,t))}};function no(e,t){const n=Yu(e)?fi("MapSet").proxyMap_(e,t):qu(e)?fi("MapSet").proxySet_(e,t):IS(e,t);return(t?t.scope_:Gu()).drafts_.push(n),n}function LS(e){return Yi(e)||wn(10,e),wm(e)}function wm(e){if(!mr(e)||Wu(e))return e;const t=e[et];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ic(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ic(e,!0);return Zs(n,(r,o)=>{_m(n,r,wm(o))}),t&&(t.finalized_=!1),n}function DS(){class e extends Map{constructor(d,h){super(),this[et]={type_:2,parent_:h,scope_:h?h.scope_:Gu(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:d,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Rt(this[et]).size}has(d){return Rt(this[et]).has(d)}set(d,h){const g=this[et];return l(g),(!Rt(g).has(d)||Rt(g).get(d)!==h)&&(n(g),gr(g),g.assigned_.set(d,!0),g.copy_.set(d,h),g.assigned_.set(d,!0)),this}delete(d){if(!this.has(d))return!1;const h=this[et];return l(h),n(h),gr(h),h.base_.has(d)?h.assigned_.set(d,!1):h.assigned_.delete(d),h.copy_.delete(d),!0}clear(){const d=this[et];l(d),Rt(d).size&&(n(d),gr(d),d.assigned_=new Map,Zs(d.base_,h=>{d.assigned_.set(h,!1)}),d.copy_.clear())}forEach(d,h){const g=this[et];Rt(g).forEach((y,b,T)=>{d.call(h,this.get(b),b,this)})}get(d){const h=this[et];l(h);const g=Rt(h).get(d);if(h.finalized_||!mr(g)||g!==h.base_.get(d))return g;const y=no(g,h);return n(h),h.copy_.set(d,y),y}keys(){return Rt(this[et]).keys()}values(){const d=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const h=d.next();return h.done?h:{done:!1,value:this.get(h.value)}}}}entries(){const d=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const h=d.next();if(h.done)return h;const g=this.get(h.value);return{done:!1,value:[h.value,g]}}}}[Symbol.iterator](){return this.entries()}}function t(f,d){return new e(f,d)}function n(f){f.copy_||(f.assigned_=new Map,f.copy_=new Map(f.base_))}class r extends Set{constructor(d,h){super(),this[et]={type_:3,parent_:h,scope_:h?h.scope_:Gu(),modified_:!1,finalized_:!1,copy_:void 0,base_:d,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Rt(this[et]).size}has(d){const h=this[et];return l(h),h.copy_?!!(h.copy_.has(d)||h.drafts_.has(d)&&h.copy_.has(h.drafts_.get(d))):h.base_.has(d)}add(d){const h=this[et];return l(h),this.has(d)||(u(h),gr(h),h.copy_.add(d)),this}delete(d){if(!this.has(d))return!1;const h=this[et];return l(h),u(h),gr(h),h.copy_.delete(d)||(h.drafts_.has(d)?h.copy_.delete(h.drafts_.get(d)):!1)}clear(){const d=this[et];l(d),Rt(d).size&&(u(d),gr(d),d.copy_.clear())}values(){const d=this[et];return l(d),u(d),d.copy_.values()}entries(){const d=this[et];return l(d),u(d),d.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(d,h){const g=this.values();let y=g.next();for(;!y.done;)d.call(h,y.value,y.value,this),y=g.next()}}function o(f,d){return new r(f,d)}function u(f){f.copy_||(f.copy_=new Set,f.base_.forEach(d=>{if(mr(d)){const h=no(d,f);f.drafts_.set(d,h),f.copy_.add(h)}else f.copy_.add(d)}))}function l(f){f.revoked_&&wn(3,JSON.stringify(Rt(f)))}NS("MapSet",{proxyMap_:t,proxySet_:o})}var En=new PS,MS=En.produce;En.produceWithPatches.bind(En),En.setAutoFreeze.bind(En),En.setUseStrictShallowCopy.bind(En),En.applyPatches.bind(En),En.createDraft.bind(En),En.finishDraft.bind(En);function FS(e,t,n){var r=X.useMemo(function(){return MS(e)},[e]);return X.useReducer(r,t,n)}const on={RESET_STATE:"RESET_STATE",RESET_COPILOT:"RESET_COPILOT",ADD_MESSAGE:"ADD_MESSAGE",SET_COPILOT:"SET_COPILOT",SET_CONNECTED:"SET_CONNECTED",ADD_LOADING_MESSAGE:"ADD_LOADING_MESSAGE",REMOVE_LOADING_MESSAGE:"REMOVE_LOADING_MESSAGE"},Nm={copilot:null,connected:!1,messages:[],groupedMessages:[],loadingMessages:new Set},vm="cimulate",Uc=`${vm}:search-update`,Hc=`${vm}:ui-state-update`,tr={SEARCH_CONTEXT_UPDATED:"search-context-updated",QUERY_CHANGED:"query-changed",PAGE_CHANGED:"page-changed",PAGE_SIZE_CHANGED:"page-size-changed",FACET_FILTERS_CHANGED:"facet-filters-changed",RANGE_FILTERS_CHANGED:"range-filters-changed",CATALOG_SEGMENT_CHANGED:"catalog-segment-changed",PRICEBOOKS_CHANGED:"pricebooks-changed"},BS={"search-context":tr.SEARCH_CONTEXT_UPDATED,query:tr.QUERY_CHANGED,page:tr.PAGE_CHANGED,pageSize:tr.PAGE_SIZE_CHANGED,includeFacets:tr.FACET_FILTERS_CHANGED,facetFilters:tr.FACET_FILTERS_CHANGED,rangeFilters:tr.RANGE_FILTERS_CHANGED,catalogSegment:tr.CATALOG_SEGMENT_CHANGED,pricebooks:tr.PRICEBOOKS_CHANGED},Z="cim-widget",qi=`--${Z}`,di={primaryColor:"#3182ce",secondaryColor:"#2c5282",fontColor:"#1a202c",fontFamily:"inherit",backgroundColor:"#ffffff",borderColor:"#dddddd"},US=(e=di)=>({[`${qi}-primary-color`]:e.primaryColor||di.primaryColor,[`${qi}-secondary-color`]:e.secondaryColor||di.secondaryColor,[`${qi}-font-color`]:e.fontColor||di.fontColor,[`${qi}-font-family`]:e.fontFamily||di.fontFamily,[`${qi}-background-color`]:e.backgroundColor||di.backgroundColor,[`${qi}-border-color`]:e.borderColor||di.borderColor}),Om=X.createContext(null),Im=X.createContext(null);class HS{constructor(t,n,r=!1){Je(this,"apiService");Je(this,"config",null);Je(this,"getConfig",()=>tn(this,null,function*(){if(this.config)return this.config;try{const t=yield this.apiService.fetchConfig();return this.config=t,this.config}catch(t){throw console.error("Failed to fetch customer config:",t),t}}));Je(this,"getPid",t=>this.getProductFieldValue(t,"pidCol"));Je(this,"getName",t=>this.getProductFieldValue(t,"nameCol"));Je(this,"getDescription",t=>this.getProductFieldValue(t,"description"));Je(this,"getBrand",t=>this.getProductFieldValue(t,"productBrandCol"));Je(this,"getPrice",t=>this.getProductFieldValue(t,"priceCol"));Je(this,"getRelativePdp",t=>this.getProductFieldValue(t,"relativePdpCol"));Je(this,"getPdp",t=>this.getProductFieldValue(t,"pdpCol"));Je(this,"getImage",t=>this.getProductFieldValue(t,"imageCol"));Je(this,"getProductField",t=>this.config?this.config[t]:"");Je(this,"getProductFieldValue",(t,n)=>{const r=this.getProductField(n);return r&&t[r]||""});this.apiService=new Em(t,n,r)}getPriceDisplay(t){const n=this.getPrice(t);return n?typeof n=="string"?n.includes("$")?n:`$${n}`:typeof n=="number"?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(n):n:""}}const Wi=(e,t,n,...r)=>{if(!e)return;const o=["background: linear-gradient(90deg,rgba(253, 99, 99, 1) 0%, rgba(245, 139, 35, 1) 65%)","font-weight: bold","color: transparent","background-clip: text","text-fill-color: transparent"].join(";");console[t]("%c[cimulate-widget]",o,n,...r)};class zS{constructor(t=!1){Je(this,"isDevelopment");Je(this,"_log",(t,n,...r)=>{Wi(this.isDevelopment,t,n,...r)});this.isDevelopment=t}log(t,...n){this._log("log",t,...n)}warn(t,...n){this._log("warn",t,...n)}error(t,...n){this._log("error",t,...n)}info(t,...n){this._log("info",t,...n)}debug(t,...n){this._log("debug",t,...n)}}const Rm=X.createContext(null),jS=({logoUrl:e,headerText:t="Your Search Assistant",globalClassName:n="",apiKey:r,apiToken:o,theme:u,isDevelopment:l,children:f})=>{const d=X.useMemo(()=>new HS(r,o,l),[r,o,l]),h=X.useMemo(()=>new zS(l),[l]);X.useEffect(()=>{d.config||d.getConfig()},[d]);const g=X.useMemo(()=>US(u),[u]),y=X.useMemo(()=>({configModule:d,logoUrl:e,headerText:t,globalClassName:n,themeVariables:g,logger:h}),[d,e,t,n,h,g]);return P.jsx(Rm.Provider,{value:y,children:f})},Rr=()=>{const e=X.useContext(Rm);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},$S=({onCopilotEvent:e,children:t,dispatch:n})=>{const{logger:r}=Rr(),o=X.useCallback(b=>{n({type:on.SET_COPILOT,payload:b})},[n]),u=X.useCallback(b=>{n({type:on.SET_CONNECTED,payload:b})},[n]),l=X.useCallback(()=>{n({type:on.RESET_COPILOT,payload:{}})},[n]),f=X.useCallback(()=>{n({type:on.RESET_STATE,payload:{}})},[n]),d=X.useCallback(b=>{r==null||r.log(`${b.name} event received`,b),n({type:on.ADD_MESSAGE,payload:b}),e==null||e(b)},[e,r,n]),h=X.useCallback(b=>{n({type:on.ADD_LOADING_MESSAGE,payload:b})},[n]),g=X.useCallback(b=>{n({type:on.REMOVE_LOADING_MESSAGE,payload:b})},[n]),y=X.useMemo(()=>({setCopilot:o,setConnected:u,resetCopilot:l,resetCopilotState:f,addCopilotEvent:d,addLoadingMessage:h,removeLoadingMessage:g}),[o,u,l,f,d,h,g]);return P.jsx(Im.Provider,{value:y,children:t})};DS();const VS=(e,t)=>{const{type:n,payload:r}=t;if(n===on.ADD_MESSAGE){const o=r;if(e.messages.push(o),o.eventSourceId){const u=e.groupedMessages.findIndex(l=>l.eventSourceId===o.eventSourceId);if(u!==-1){let l=e.groupedMessages[u].messages;l||(l=[]);const f=l.findIndex(d=>d.id===o.id);if(f!==-1){l[f]=o;return}l.push(o);return}else{e.groupedMessages.push({type:"group",eventSourceId:o.eventSourceId,messages:[o],createdAt:new Date(o.createdAt)});return}}e.groupedMessages.push({type:"individual",message:o,createdAt:new Date(o.createdAt)});return}switch(n){case on.RESET_STATE:return Nm;case on.RESET_COPILOT:e.copilot=null;break;case on.SET_COPILOT:e.copilot=r;break;case on.SET_CONNECTED:e.connected=r;break;case on.ADD_LOADING_MESSAGE:e.loadingMessages.add(r);break;case on.REMOVE_LOADING_MESSAGE:e.loadingMessages.delete(r);break}},YS=({onCopilotEvent:e,children:t})=>{const[n,r]=FS(VS,Nm);return P.jsx(Om.Provider,{value:n,children:P.jsx($S,{onCopilotEvent:e,dispatch:r,children:t})})},qS=e=>{window.addEventListener(Uc,e)},WS=e=>{window.removeEventListener(Uc,e)},Pm=(e,t,n)=>{const r=new CustomEvent(Uc,{detail:{event:e,property:t,value:n}});window.dispatchEvent(r)},GS=e=>{if(!e||!e.query)throw new Error("Search context must include a query");At.proxy=e,Pm(tr.SEARCH_CONTEXT_UPDATED,"search-context",e)},KS=e=>{At.proxy.query=e},QS=e=>{At.proxy.facetFilters=e},XS=(e,t)=>{var o;const n=Q({},At.proxy.facetFilters||{});if(!!((o=n[e])!=null&&o.includes(t))){const u=n[e].filter(l=>l!==t);u.length>0?n[e]=u:delete n[e]}else n[e]=n[e]?[...n[e],t]:[t];At.proxy.facetFilters=n},JS=e=>{At.proxy.rangeFilters=[...e]},ZS=({field:e,value:t})=>{const[n,r]=Array.isArray(t)?t:[];if(typeof n=="undefined"||typeof r=="undefined")throw new Error("Range values must be an array with two numbers for min and max");const o=[...At.proxy.rangeFilters||[]],u=o.findIndex(l=>l.field===e);if(u!==-1){o[u]={field:e,min:n,max:r},At.proxy.rangeFilters=o;return}o.push({field:e,min:n,max:r}),At.proxy.rangeFilters=o},ex=e=>{At.proxy.catalogSegment=e};class tx{constructor(){Je(this,"initialState",{mode:"embedded",status:{type:"dialog",isOpen:!1},dialog:{position:"bottom-left"},modal:{isFullscreen:!1}});Je(this,"modeProxy");Je(this,"statusProxy");Je(this,"dialogProxy");Je(this,"modalProxy",{isFullscreen:!1});Je(this,"_fullGet",(t,n)=>Reflect.get(t,n));Je(this,"_fullSet",(t,n,r)=>{if(!(n in t))throw new Error(`Property ${n} does not exist on UIState`);return ix(n,r),Reflect.set(t,n,r)});this.modeProxy=new Proxy({mode:this.initialState.mode},{get:this._fullGet,set:this._fullSet}),this.statusProxy=new Proxy({type:this.initialState.status.type,isOpen:this.initialState.status.isOpen},{get:this._fullGet,set:this._fullSet}),this.dialogProxy=new Proxy({position:this.initialState.dialog.position},{get:this._fullGet,set:this._fullSet}),this.modalProxy=new Proxy({isFullscreen:this.initialState.modal.isFullscreen},{get:this._fullGet,set:this._fullSet})}get mode(){return this.modeProxy.mode}get isOpen(){return!!this.statusProxy.isOpen}get type(){return this.statusProxy.type}get position(){return this.dialogProxy.position}}const Bt=new tx,nx=e=>{window.addEventListener(Hc,e)},rx=e=>{window.removeEventListener(Hc,e)},ix=(e,t)=>{const n=new CustomEvent(Hc,{detail:{property:e,value:t}});window.dispatchEvent(n)},ro=e=>{if(typeof e!="boolean"){Bt.statusProxy.isOpen=!Bt.statusProxy.isOpen;return}Bt.statusProxy.isOpen=e},Lm=e=>{Bt.modalProxy.isFullscreen=e},zc=e=>{if(!["chat","dialog","modal"].includes(e))throw new Error(`Invalid type: ${e}. Must be 'chat', 'dialog', or 'modal'.`);Bt.statusProxy.type=e,e==="dialog"||e==="chat"?Bt.modeProxy.mode="embedded":Bt.modeProxy.mode="standalone"},Dm=e=>{const t=["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right","center"];if(!t.includes(e))throw new Error(`Invalid position: ${e}. Must be one of ${t.join(", ")}.`);Bt.dialogProxy.position=e};class sx{constructor(){Je(this,"initialParams",{query:"",page:null,pageSize:null,includeFacets:!0,facetFilters:{},rangeFilters:[],catalogSegment:null,pricebooks:null});Je(this,"proxy");Je(this,"_fullGet",(t,n)=>Reflect.get(t,n));Je(this,"_fullSet",(t,n,r)=>{if(!(n in t))throw new Error(`Property ${n} does not exist on SearchState`);const o=BS[n];return Pm(o,n,r),Reflect.set(t,n,r)});this.proxy=new Proxy(this.initialParams,{get:this._fullGet,set:this._fullSet})}get query(){return this.proxy.query||""}get facetFilters(){return this.proxy.facetFilters||{}}get rangeFilters(){return this.proxy.rangeFilters||[]}get catalogSegment(){return this.proxy.catalogSegment||null}get pricebooks(){return this.proxy.pricebooks||null}}const At=new sx,Mm=X.createContext({searchQuery:At.query,facetFilters:At.facetFilters,rangeFilters:At.rangeFilters,catalogSegment:At.catalogSegment,pricebooks:At.pricebooks}),ox=({children:e})=>{const[t,n]=X.useState(At.query),[r,o]=X.useState(At.facetFilters),[u,l]=X.useState(At.rangeFilters),[f,d]=X.useState(At.catalogSegment),[h,g]=X.useState(At.pricebooks);X.useEffect(()=>{const b=({detail:T})=>{if((T==null?void 0:T.property)==="query"&&n(T.value),(T==null?void 0:T.property)==="facetFilters"&&o(T.value),(T==null?void 0:T.property)==="rangeFilters"&&l(T.value),(T==null?void 0:T.property)==="catalogSegment"&&d(T.value),(T==null?void 0:T.property)==="pricebooks"&&g(T.value),(T==null?void 0:T.property)==="search-context"){const S=T.value;n(S.query),o(S.facetFilters||{}),l(S.rangeFilters||[]),d(S.catalogSegment||null),g(S.pricebooks||null)}};return qS(b),()=>{WS(b)}},[]);const y=X.useMemo(()=>({searchQuery:t,facetFilters:r,rangeFilters:u,catalogSegment:f,pricebooks:h}),[t,r,u,f,h]);return P.jsx(Mm.Provider,{value:y,children:e})},ux=()=>{const e=X.useContext(Mm);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e},ax=()=>{const e=X.useContext(Im);if(!e)throw new Error("useCopilotDispatch must be used within a CopilotProvider");return e},Fm=()=>{const e=X.useContext(Om);if(!e)throw new Error("useCopilotState must be used within a CopilotProvider");return e},Bm=X.createContext({copilot:null,messages:[],groupedMessages:[],isLoading:!1,isResponseLoading:()=>!1,handleSearch:()=>{},handleSuggestion:()=>{},handleUserInput:()=>{},handleCancel:()=>{}}),lx=({apiKey:e,apiToken:t,baseUrl:n,isDevelopment:r,onConnect:o,onRefinedSearch:u,children:l})=>{const{logger:f}=Rr(),{searchQuery:d,facetFilters:h,rangeFilters:g,catalogSegment:y,pricebooks:b}=ux(),{setCopilot:T,setConnected:S,resetCopilot:C,addCopilotEvent:O,addLoadingMessage:L,removeLoadingMessage:$}=ax(),{copilot:j,messages:te,groupedMessages:he,loadingMessages:F}=Fm(),me=X.useMemo(()=>F.size>0,[F]),Ae=X.useCallback(M=>F.has(M),[F]),Ne=X.useCallback(M=>{O(M),L(M.id)},[O,L]),H=X.useCallback(M=>{const G=$e(Q({},M),{id:M.inquiryLinkId||M.id});O(G)},[O]),ge=X.useCallback(M=>{O(M),u==null||u(M)},[O,u]),pe=X.useCallback(M=>{M.on("connect_ack",G=>{o==null||o(G),S(!0)}),M.on("follow_up",O),M.on("inquiry",H),M.on("partial_inquiry",H),M.on("display_products",O),M.on("progress",O),M.on("refined_search",ge),M.on("done",G=>{$(G.eventSourceId)}),M.on("error",G=>{O(G),$(G.eventSourceId)}),M.onDisconnect(G=>{const x=["io server disconnect","transport error","server shutting down"];f==null||f.log("Connection disconnected with reason: ",G);const I=new Date().toISOString();if(!x.includes(G)){S(!1),O({name:"reconnect",message:`Connection was lost due to reason: ${G}. Attempting to reconnect.`,createdAt:I,id:`reconnect-${I}`,sessionId:`session-reconnect-${I}`});return}f==null||f.log("De-registering event listeners"),O({name:"error",message:"Connection was lost. Please try again.",createdAt:I,id:`error-${I}`,sessionId:"session"}),M.off()})},[f,$,H,ge,O,o]);X.useEffect(()=>{let M;n?M=n:M=r?"https://staging.copilot.search.cimulate.ai":"https://prod.copilot.search.cimulate.ai";const G={baseUrl:M};e?G.apiKey=e:t&&(G.apiToken=t);const x=new e2(G);return x.connect(),pe(x),T(x),()=>{x.disconnect(),x.off(),C()}},[e,t,n,r,T,C,pe]);const ce=X.useCallback(({search:M,facetFilters:G,rangeFilters:x,catalogSegment:I,pricebooks:q,userPrompt:w,isUserAction:Ee})=>{if(!j){f==null||f.error("Copilot is not initialized");return}const ve={searchParams:{query:M}};w&&(ve.userPrompt=w),G&&(ve.searchParams.facetFilters=G),x&&(ve.searchParams.rangeFilters=x),I&&(ve.searchParams.catalogSegment=I),q&&(ve.searchParams.pricebooks=q),j.search(ve,Ce=>{Ee&&(Ce.isUserAction=Ee),Ne(Ce)})},[f,Ne,j]),fe=X.useCallback(M=>{if(!j)return;const G={eventId:M,reason:"User cancelled the request"};j.cancelRequest(G,x=>{O(x),$(M)})},[O,$,j]),be=X.useCallback(M=>{!M||!d||ce({search:d,facetFilters:h,rangeFilters:g,catalogSegment:y,pricebooks:b,userPrompt:M})},[d,h,g,y,b,ce]),Le=X.useCallback(M=>{const G=M.params.userPrompt||"";if(!G||!d)return;ce({search:d,userPrompt:G,facetFilters:h,rangeFilters:g,catalogSegment:y,pricebooks:b})},[d,h,g,y,b,ce]);X.useEffect(()=>{d&&j&&ce({search:d,facetFilters:h,isUserAction:!0})},[d,h,j,ce]);const ae=X.useMemo(()=>({copilot:j,messages:te,groupedMessages:he,isLoading:me,isResponseLoading:Ae,handleSearch:ce,handleUserInput:be,handleSuggestion:Le,handleCancel:fe}),[j,te,he,me,Ae,ce,be,Le,fe]);return P.jsx(Bm.Provider,{value:ae,children:l})},cx=({apiKey:e,apiToken:t,baseUrl:n,isDevelopment:r,onConnect:o,onCopilotEvent:u,onRefinedSearch:l,children:f})=>P.jsx(YS,{onCopilotEvent:u,children:P.jsx(lx,{apiKey:e,apiToken:t,baseUrl:n,isDevelopment:r,onConnect:o,onRefinedSearch:l,children:f})}),Um=X.createContext({mode:Bt.modeProxy.mode,status:Bt.statusProxy,dialogPosition:Bt.dialogProxy.position,isModalFullscreen:Bt.modalProxy.isFullscreen}),fx=({children:e})=>{const[t,n]=X.useState(Bt.modeProxy.mode),[r,o]=X.useState({type:Bt.statusProxy.type,isOpen:Bt.statusProxy.isOpen}),[u,l]=X.useState(Bt.dialogProxy.position),[f,d]=X.useState(Bt.modalProxy.isFullscreen);X.useEffect(()=>{const g=y=>{const{property:b,value:T}=y.detail||{};if(!(!b||T===void 0)){if(b==="mode"){n(T);return}if(b==="isOpen"){o(S=>$e(Q({},S),{isOpen:T}));return}if(b==="type"){o(S=>$e(Q({},S),{type:T}));return}if(b==="position"){l(T);return}if(b==="isFullscreen"){d(T);return}}};return nx(g),()=>{rx(g)}},[]);const h=X.useMemo(()=>({mode:t,status:r,dialogPosition:u,isModalFullscreen:f}),[t,r,u,f]);return P.jsx(Um.Provider,{value:h,children:e})},Hm=({apiKey:e,apiToken:t,baseUrl:n,logoUrl:r,headerText:o,theme:u,globalClassName:l,isDevelopment:f=!1,onConnect:d,onCopilotEvent:h,onRefinedSearch:g,children:y})=>P.jsx(jS,{apiKey:e,logoUrl:r,headerText:o,theme:u,globalClassName:l,isDevelopment:f,children:P.jsx(AS,{apiKey:e,apiToken:t,isDevelopment:f,children:P.jsx(ox,{children:P.jsx(fx,{children:P.jsx(cx,{apiKey:e,apiToken:t,baseUrl:n,isDevelopment:f,onConnect:d,onCopilotEvent:h,onRefinedSearch:g,children:y})})})})}),Xu=()=>{const e=X.useContext(Um);if(!e)throw new Error("useUIState must be used within a UIStateProvider");return e};function zm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=zm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=zm(e))&&(r&&(r+=" "),r+=t);return r}var jm={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},$m=ui.createContext&&ui.createContext(jm),dx=["attr","size","title"];function hx(e,t){if(e==null)return{};var n=px(e,t),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function px(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ju(){return Ju=Object.assign?Object.assign.bind():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},Ju.apply(this,arguments)}function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(n),!0).forEach(function(r){mx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mx(e,t,n){return t=gx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gx(e){var t=Ex(e,"string");return typeof t=="symbol"?t:t+""}function Ex(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ym(e){return e&&e.map((t,n)=>ui.createElement(t.tag,Zu({key:n},t.attr),Ym(t.child)))}function zn(e){return t=>ui.createElement(yx,Ju({attr:Zu({},e.attr)},t),Ym(e.child))}function yx(e){var t=n=>{var{attr:r,size:o,title:u}=e,l=hx(e,dx),f=o||n.size||"1em",d;return n.className&&(d=n.className),e.className&&(d=(d?d+" ":"")+e.className),ui.createElement("svg",Ju({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:d,style:Zu(Zu({color:e.color||n.color},n.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&ui.createElement("title",null,u),e.children)};return $m!==void 0?ui.createElement($m.Consumer,null,n=>t(n)):t(jm)}function qm(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},child:[]}]})(e)}function ea(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function Tx(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]}]})(e)}function Wm(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"},child:[]}]})(e)}function bx(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"},child:[]}]})(e)}function _x(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(e)}function Sx(e){return zn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 3H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 14H4V5h16v12z"},child:[]},{tag:"path",attr:{d:"M6.5 7.5H9V6H5v4h1.5zM19 12h-1.5v2.5H15V16h4z"},child:[]}]})(e)}const io=({className:e,icon:t,type:n="button",ariaLabel:r,disabled:o=!1,onClick:u})=>P.jsx("button",{className:ue(e,`${Z}-icon-button`),type:n,"aria-label":r,onClick:u,disabled:o,children:t}),jc=({className:e,isLoading:t,onSubmit:n})=>{const r=X.useRef(null),o=u=>{var f;u.preventDefault();const l=(((f=r.current)==null?void 0:f.value)||"").trim();l&&(n(l),r.current.value="")};return P.jsxs("form",{className:ue(e,`${Z}-search-bar`),name:`${Z}-search-form`,onSubmit:o,children:[P.jsx("input",{className:ue(e,`${Z}-search-input`),type:"text",ref:r,name:`${Z}-user-input`}),P.jsx(io,{type:"submit",disabled:t,ariaLabel:"Search Copilot",icon:P.jsx(ea,{})})]})},Gi=()=>{const e=X.useContext(Bm);if(!e)throw new Error("useCopilot must be used within a CopilotProvider");return e},xx=({isWidgetStandalone:e,product:t})=>{const{configModule:n,globalClassName:r}=Rr();if(!n)return null;const o=n.getName(t),u=n.getBrand(t),l=n.getPriceDisplay(t),f=n.getRelativePdp(t),d=n.getPdp(t),h=n.getImage(t),g=f&&typeof f=="string"?new URL(f,window.location.origin).href:d;return P.jsxs("div",{className:ue(r,`${Z}-product-tile`,{embedded:!e,standalone:e}),children:[P.jsx("img",{className:ue(r,`${Z}-product-tile-image`,{embedded:!e,standalone:e}),src:`${h}`,alt:`${o}`,loading:"lazy"}),P.jsxs("div",{className:ue(r,`${Z}-product-tile-details`,{embedded:!e,standalone:e}),children:[P.jsxs("div",{className:ue(r,`${Z}-product-tile-content`),children:[u&&P.jsx("p",{className:`${Z}-product-tile-brand`,children:u}),g?P.jsxs("a",{"aria-label":`Go to product page for ${o}`,className:ue(r,`${Z}-product-tile-pdp`),href:`${g}`,target:"_blank",rel:"noopener noreferrer",children:[o," ",P.jsx("span",{className:ue(r,`${Z}-product-tile-pdp-arrow`),children:"→"})]}):P.jsx("p",{className:ue(r,`${Z}-product-tile-name`),title:o,children:o})]}),P.jsx("div",{className:ue(r,`${Z}-product-tile-footer`),children:P.jsx("p",{className:ue(r,`${Z}-product-tile-price`),children:l})})]})]})},Ax=({isWidgetStandalone:e,message:t})=>{const{configModule:n,globalClassName:r}=Rr(),o=t;return n?P.jsxs("div",{className:ue(r,`${Z}-display-products widget-message`),children:[P.jsx("p",{children:o.message}),o.products&&o.products.length>0&&P.jsx("div",{className:ue(r,`${Z}-product-list`,{embedded:!e,standalone:e}),children:o.products.map(u=>{const l=n.getPid(u);return P.jsx(xx,{isWidgetStandalone:e,product:u},`${l}`)})})]}):null},Cx=({globalClassName:e,message:t,isWidgetStandalone:n})=>P.jsx("div",{className:ue(e,`${Z}-error-message`,{standalone:n,embedded:!n}),children:P.jsxs("p",{className:ue(e,`${Z}-error-message-text`,{standalone:n,embedded:!n}),children:[P.jsx(Tx,{})," ",t.message||"An error occurred while processing your request."]})});function kx(e){return zn({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.75 6.75a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5Z"},child:[]}]})(e)}const Gm=({className:e,children:t,type:n,disabled:r=!1,onClick:o})=>P.jsx("button",{className:ue(`${Z}-button`,e,{disabled:r}),type:n||"button",disabled:r,onClick:o,children:t}),Km=({className:e,onClick:t,disabled:n=!1})=>P.jsx("button",{"aria-label":"Close",className:ue(e,`${Z}-close-button`),disabled:n,onClick:t,children:P.jsx("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20",width:"16",height:"16",fill:"currentColor",children:P.jsx("path",{d:"M18.3 5.7a1 1 0 0 0-1.4-1.4L12 9.6 7.1 4.7a1 1 0 1 0-1.4 1.4l4.9 4.9-4.9 4.9a1 1 0 1 0 1.4 1.4l4.9-4.9 4.9 4.9a1 1 0 0 0 1.4-1.4l-4.9-4.9 4.9-4.9z"})})}),wx=({globalClassName:e,messageId:t,isLoading:n,suggestions:r,handleSuggestionClick:o})=>P.jsx("div",{className:ue(e,`${Z}-suggestion-container standalone`),children:r.map(u=>P.jsxs(Gm,{disabled:n,className:ue(e,`${Z}-suggestion-button standalone`),onClick:()=>o(u,t),children:[P.jsx(kx,{size:"1.5rem",style:{minHeight:"1.5rem",minWidth:"1.5rem"}})," ",u.displayText]},u.displayText))}),Nx=({globalClassName:e,message:t,isWidgetStandalone:n,handleSuggestionClick:r})=>{const{isLoading:o}=Gi();return P.jsxs("div",{className:ue(e,`${Z}-follow-up`),children:[P.jsx("p",{className:ue(e,`${Z}-text`),children:t.message}),n&&P.jsx(wx,{globalClassName:e,isLoading:o,messageId:t.id,suggestions:t.suggestions,handleSuggestionClick:r}),!n&&P.jsx("div",{className:ue(e,`${Z}-suggestion-container embedded`),children:t.suggestions.map(u=>P.jsx("button",{disabled:o,className:ue(e,`${Z}-suggestion-button embedded`),onClick:()=>r(u,t.id),children:u.displayText},u.displayText))})]})};function H4(){}function z4(){}function Qm(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,u=!1;for(;!u;){r===-1&&(r=n.length,u=!0);const l=n.slice(o,r).trim();(l||!u)&&t.push(l),o=r+1,r=n.indexOf(",",o)}return t}function Xm(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const vx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ox=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ix={};function Jm(e,t){return(Ix.jsx?Ox:vx).test(e)}const Rx=/[ \t\n\f\r]/g;function Px(e){return typeof e=="object"?e.type==="text"?Zm(e.value):!1:Zm(e)}function Zm(e){return e.replace(Rx,"")===""}let so=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};so.prototype.normal={},so.prototype.property={},so.prototype.space=void 0;function e0(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new so(n,r,t)}function oo(e){return e.toLowerCase()}let un=class{constructor(t,n){this.attribute=n,this.property=t}};un.prototype.attribute="",un.prototype.booleanish=!1,un.prototype.boolean=!1,un.prototype.commaOrSpaceSeparated=!1,un.prototype.commaSeparated=!1,un.prototype.defined=!1,un.prototype.mustUseProperty=!1,un.prototype.number=!1,un.prototype.overloadedBoolean=!1,un.prototype.property="",un.prototype.spaceSeparated=!1,un.prototype.space=void 0;let Lx=0;const Ue=hi(),Ct=hi(),$c=hi(),se=hi(),it=hi(),Ki=hi(),yn=hi();function hi(){return Jl(2,++Lx)}const Vc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ue,booleanish:Ct,commaOrSpaceSeparated:yn,commaSeparated:Ki,number:se,overloadedBoolean:$c,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),Yc=Object.keys(Vc);let qc=class extends un{constructor(t,n,r,o){let u=-1;if(super(t,n),t0(this,"space",o),typeof r=="number")for(;++u<Yc.length;){const l=Yc[u];t0(this,Yc[u],(r&Vc[l])===Vc[l])}}};qc.prototype.defined=!0;function t0(e,t,n){n&&(e[t]=n)}function Qi(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const u=new qc(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[oo(r)]=r,n[oo(u.attribute)]=r}return new so(t,n,e.space)}const n0=Qi({properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:it,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:se,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:it,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:Ct,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function r0(e,t){return t in e?e[t]:t}function i0(e,t){return r0(e,t.toLowerCase())}const Dx=Qi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ki,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:Ue,allowPaymentRequest:Ue,allowUserMedia:Ue,alt:null,as:null,async:Ue,autoCapitalize:null,autoComplete:it,autoFocus:Ue,autoPlay:Ue,blocking:it,capture:null,charSet:null,checked:Ue,cite:null,className:it,cols:se,colSpan:null,content:null,contentEditable:Ct,controls:Ue,controlsList:it,coords:se|Ki,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ue,defer:Ue,dir:null,dirName:null,disabled:Ue,download:$c,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ue,formTarget:null,headers:it,height:se,hidden:$c,high:se,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:Ue,inputMode:null,integrity:null,is:null,isMap:Ue,itemId:null,itemProp:it,itemRef:it,itemScope:Ue,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ue,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Ue,muted:Ue,name:null,nonce:null,noModule:Ue,noValidate:Ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored: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,onScrollEnd: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:Ue,optimum:se,pattern:null,ping:it,placeholder:null,playsInline:Ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ue,referrerPolicy:null,rel:it,required:Ue,reversed:Ue,rows:se,rowSpan:se,sandbox:it,scope:null,scoped:Ue,seamless:Ue,selected:Ue,shadowRootClonable:Ue,shadowRootDelegatesFocus:Ue,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:Ue,useMap:null,value:Ct,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ue,declare:Ue,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Ue,noHref:Ue,noShade:Ue,noWrap:Ue,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ue,disableRemotePlayback:Ue,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:i0}),Mx=Qi({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",transformOrigin:"transform-origin",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"},properties:{about:yn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:it,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:Ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:Ki,g2:Ki,glyphName:Ki,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:it,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yn,rev:yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yn,requiredFeatures:yn,requiredFonts:yn,requiredFormats:yn,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:r0}),s0=Qi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),o0=Qi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:i0}),u0=Qi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Fx={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"},Bx=/[A-Z]/g,a0=/-[a-z]/g,Ux=/^data[-\w.:]+$/i;function Wc(e,t){const n=oo(t);let r=t,o=un;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ux.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(a0,zx);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!a0.test(u)){let l=u.replace(Bx,Hx);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=qc}return new o(r,t)}function Hx(e){return"-"+e.toLowerCase()}function zx(e){return e.charAt(1).toUpperCase()}const ta=e0([n0,Dx,s0,o0,u0],"html"),Xi=e0([n0,Mx,s0,o0,u0],"svg");function l0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function c0(e){return e.join(" ").trim()}var Ji={},Gc,f0;function jx(){if(f0)return Gc;f0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
24
+ `,h="/",g="*",y="",b="comment",T="declaration";Gc=function(C,O){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];O=O||{};var L=1,$=1;function j(ce){var fe=ce.match(t);fe&&(L+=fe.length);var be=ce.lastIndexOf(d);$=~be?ce.length-be:$+ce.length}function te(){var ce={line:L,column:$};return function(fe){return fe.position=new he(ce),Ae(),fe}}function he(ce){this.start=ce,this.end={line:L,column:$},this.source=O.source}he.prototype.content=C;function F(ce){var fe=new Error(O.source+":"+L+":"+$+": "+ce);if(fe.reason=ce,fe.filename=O.source,fe.line=L,fe.column=$,fe.source=C,!O.silent)throw fe}function me(ce){var fe=ce.exec(C);if(fe){var be=fe[0];return j(be),C=C.slice(be.length),fe}}function Ae(){me(n)}function Ne(ce){var fe;for(ce=ce||[];fe=H();)fe!==!1&&ce.push(fe);return ce}function H(){var ce=te();if(!(h!=C.charAt(0)||g!=C.charAt(1))){for(var fe=2;y!=C.charAt(fe)&&(g!=C.charAt(fe)||h!=C.charAt(fe+1));)++fe;if(fe+=2,y===C.charAt(fe-1))return F("End of comment missing");var be=C.slice(2,fe-2);return $+=2,j(be),C=C.slice(fe),$+=2,ce({type:b,comment:be})}}function ge(){var ce=te(),fe=me(r);if(fe){if(H(),!me(o))return F("property missing ':'");var be=me(u),Le=ce({type:T,property:S(fe[0].replace(e,y)),value:be?S(be[0].replace(e,y)):y});return me(l),Le}}function pe(){var ce=[];Ne(ce);for(var fe;fe=ge();)fe!==!1&&(ce.push(fe),Ne(ce));return ce}return Ae(),pe()};function S(C){return C?C.replace(f,y):y}return Gc}var d0;function $x(){if(d0)return Ji;d0=1;var e=Ji&&Ji.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=n;var t=e(jx());function n(r,o){var u=null;if(!r||typeof r!="string")return u;var l=(0,t.default)(r),f=typeof o=="function";return l.forEach(function(d){if(d.type==="declaration"){var h=d.property,g=d.value;f?o(h,g,d):g&&(u=u||{},u[h]=g)}}),u}return Ji}var uo={},h0;function Vx(){if(h0)return uo;h0=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(h){return!h||n.test(h)||e.test(h)},l=function(h,g){return g.toUpperCase()},f=function(h,g){return"".concat(g,"-")},d=function(h,g){return g===void 0&&(g={}),u(h)?h:(h=h.toLowerCase(),g.reactCompat?h=h.replace(o,f):h=h.replace(r,f),h.replace(t,l))};return uo.camelCase=d,uo}var ao,p0;function Yx(){if(p0)return ao;p0=1;var e=ao&&ao.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e($x()),n=Vx();function r(o,u){var l={};return!o||typeof o!="string"||(0,t.default)(o,function(f,d){f&&d&&(l[(0,n.camelCase)(f,u)]=d)}),l}return r.default=r,ao=r,ao}var qx=Yx();const Wx=Ve(qx),na=m0("end"),nr=m0("start");function m0(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Gx(e){const t=nr(e),n=na(e);if(t&&n)return{start:t,end:n}}function lo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?g0(e.position):"start"in e||"end"in e?g0(e):"line"in e||"column"in e?Kc(e):""}function Kc(e){return E0(e&&e.line)+":"+E0(e&&e.column)}function g0(e){return Kc(e&&e.start)+"-"+Kc(e&&e.end)}function E0(e){return e&&typeof e=="number"?e:1}class Vt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",u={},l=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u=Q({},n)),typeof t=="string"?o=t:!u.cause&&t&&(l=!0,o=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?u.ruleId=r:(u.source=r.slice(0,d),u.ruleId=r.slice(d+1))}if(!u.place&&u.ancestors&&u.ancestors){const d=u.ancestors[u.ancestors.length-1];d&&(u.place=d.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=f?f.line:void 0,this.name=lo(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual,this.expected,this.note,this.url}}Vt.prototype.file="",Vt.prototype.name="",Vt.prototype.reason="",Vt.prototype.message="",Vt.prototype.stack="",Vt.prototype.column=void 0,Vt.prototype.line=void 0,Vt.prototype.ancestors=void 0,Vt.prototype.cause=void 0,Vt.prototype.fatal=void 0,Vt.prototype.place=void 0,Vt.prototype.ruleId=void 0,Vt.prototype.source=void 0;const Qc={}.hasOwnProperty,Kx=new Map,Qx=/[A-Z]/g,Xx=new Set(["table","tbody","thead","tfoot","tr"]),Jx=new Set(["td","th"]),y0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Zx(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=uA(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=oA(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Xi:ta,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=T0(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function T0(e,t,n){if(t.type==="element")return eA(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return tA(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return rA(e,t,n);if(t.type==="mdxjsEsm")return nA(e,t);if(t.type==="root")return iA(e,t,n);if(t.type==="text")return sA(e,t)}function eA(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Xi,e.schema=o),e.ancestors.push(t);const u=_0(e,t.tagName,!1),l=aA(e,t);let f=Jc(e,t);return Xx.has(t.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!Px(d):!0})),b0(e,l,u,t),Xc(l,f),e.ancestors.pop(),e.schema=r,e.create(t,u,l,n)}function tA(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}co(e,t.position)}function nA(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);co(e,t.position)}function rA(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Xi,e.schema=o),e.ancestors.push(t);const u=t.name===null?e.Fragment:_0(e,t.name,!0),l=lA(e,t),f=Jc(e,t);return b0(e,l,u,t),Xc(l,f),e.ancestors.pop(),e.schema=r,e.create(t,u,l,n)}function iA(e,t,n){const r={};return Xc(r,Jc(e,t)),e.create(t,e.Fragment,r,n)}function sA(e,t){return t.value}function b0(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xc(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function oA(e,t,n){return r;function r(o,u,l,f){const h=Array.isArray(l.children)?n:t;return f?h(u,l,f):h(u,l)}}function uA(e,t){return n;function n(r,o,u,l){const f=Array.isArray(u.children),d=nr(r);return t(o,u,l,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function aA(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&Qc.call(t.properties,o)){const u=cA(e,o,t.properties[o]);if(u){const[l,f]=u;e.tableCellAlignToStyle&&l==="align"&&typeof f=="string"&&Jx.has(t.tagName)?r=f:n[l]=f}}if(r){const u=n.style||(n.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function lA(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const u=r.data.estree.body[0];u.type;const l=u.expression;l.type;const f=l.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else co(e,t.position);else{const o=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const f=r.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else co(e,t.position);else u=r.value===null?!0:r.value;n[o]=u}return n}function Jc(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Kx;for(;++r<t.children.length;){const u=t.children[r];let l;if(e.passKeys){const d=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(d){const h=o.get(d)||0;l=d+"-"+h,o.set(d,h+1)}}const f=T0(e,u,l);f!==void 0&&n.push(f)}return n}function cA(e,t,n){const r=Wc(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Xm(n):c0(n)),r.property==="style"){let o=typeof n=="object"?n:fA(e,String(n));return e.stylePropertyNameCase==="css"&&(o=dA(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Fx[r.property]||r.property:r.attribute,n]}}function fA(e,t){try{return Wx(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new Vt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=y0+"#cannot-parse-style-attribute",o}}function _0(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let u=-1,l;for(;++u<o.length;){const f=Jm(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};l=l?{type:"MemberExpression",object:l,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}r=l}else r=Jm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return Qc.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);co(e)}function co(e,t){const n=new Vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=y0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function dA(e){const t={};let n;for(n in e)Qc.call(e,n)&&(t[hA(n)]=e[n]);return t}function hA(e){let t=e.replace(Qx,pA);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pA(e){return"-"+e.toLowerCase()}const Zc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},mA={};function ef(e,t){const n=mA,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return S0(e,r,o)}function S0(e,t,n){if(gA(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return x0(e.children,t,n)}return Array.isArray(e)?x0(e,t,n):""}function x0(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=S0(e[o],t,n);return r.join("")}function gA(e){return!!(e&&typeof e=="object")}const A0=document.createElement("i");function tf(e){const t="&"+e+";";A0.innerHTML=t;const n=A0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Tn(e,t,n,r){const o=e.length;let u=0,l;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);u<r.length;)l=r.slice(u,u+1e4),l.unshift(t,0),e.splice(...l),u+=1e4,t+=1e4}function Nn(e,t){return e.length>0?(Tn(e,e.length,0,t),e):t}const C0={}.hasOwnProperty;function k0(e){const t={};let n=-1;for(;++n<e.length;)EA(t,e[n]);return t}function EA(e,t){let n;for(n in t){const o=(C0.call(e,n)?e[n]:void 0)||(e[n]={}),u=t[n];let l;if(u)for(l in u){C0.call(o,l)||(o[l]=[]);const f=u[l];yA(o[l],Array.isArray(f)?f:f?[f]:[])}}}function yA(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Tn(e,0,0,r)}function w0(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function jn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jt=Pr(/[A-Za-z]/),Yt=Pr(/[\dA-Za-z]/),TA=Pr(/[#-'*+\--9=?A-Z^-~]/);function ra(e){return e!==null&&(e<32||e===127)}const nf=Pr(/\d/),bA=Pr(/[\dA-Fa-f]/),_A=Pr(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function rt(e){return e!==null&&(e<0||e===32)}function Ye(e){return e===-2||e===-1||e===32}const ia=Pr(new RegExp("\\p{P}|\\p{S}","u")),pi=Pr(/\s/);function Pr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Zi(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const u=e.charCodeAt(n);let l="";if(u===37&&Yt(e.charCodeAt(n+1))&&Yt(e.charCodeAt(n+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(l=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(n+1);u<56320&&f>56319&&f<57344?(l=String.fromCharCode(u,f),o=1):l="�"}else l=String.fromCharCode(u);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Ge(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let u=0;return l;function l(d){return Ye(d)?(e.enter(n),f(d)):t(d)}function f(d){return Ye(d)&&u++<o?(e.consume(d),f):(e.exit(n),t(d))}}const SA={tokenize:xA};function xA(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ge(e,t,"linePrefix")}function o(f){return e.enter("paragraph"),u(f)}function u(f){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(f)}function l(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Oe(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),l)}}const AA={tokenize:CA},N0={tokenize:kA};function CA(e){const t=this,n=[];let r=0,o,u,l;return f;function f(j){if(r<n.length){const te=n[r];return t.containerState=te[1],e.attempt(te[0].continuation,d,h)(j)}return h(j)}function d(j){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&$();const te=t.events.length;let he=te,F;for(;he--;)if(t.events[he][0]==="exit"&&t.events[he][1].type==="chunkFlow"){F=t.events[he][1].end;break}L(r);let me=te;for(;me<t.events.length;)t.events[me][1].end=Q({},F),me++;return Tn(t.events,he+1,0,t.events.slice(te)),t.events.length=me,h(j)}return f(j)}function h(j){if(r===n.length){if(!o)return b(j);if(o.currentConstruct&&o.currentConstruct.concrete)return S(j);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(N0,g,y)(j)}function g(j){return o&&$(),L(r),b(j)}function y(j){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,S(j)}function b(j){return t.containerState={},e.attempt(N0,T,S)(j)}function T(j){return r++,n.push([t.currentConstruct,t.containerState]),b(j)}function S(j){if(j===null){o&&$(),L(0),e.consume(j);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),C(j)}function C(j){if(j===null){O(e.exit("chunkFlow"),!0),L(0),e.consume(j);return}return Oe(j)?(e.consume(j),O(e.exit("chunkFlow")),r=0,t.interrupt=void 0,f):(e.consume(j),C)}function O(j,te){const he=t.sliceStream(j);if(te&&he.push(null),j.previous=u,u&&(u.next=j),u=j,o.defineSkip(j.start),o.write(he),t.parser.lazy[j.start.line]){let F=o.events.length;for(;F--;)if(o.events[F][1].start.offset<l&&(!o.events[F][1].end||o.events[F][1].end.offset>l))return;const me=t.events.length;let Ae=me,Ne,H;for(;Ae--;)if(t.events[Ae][0]==="exit"&&t.events[Ae][1].type==="chunkFlow"){if(Ne){H=t.events[Ae][1].end;break}Ne=!0}for(L(r),F=me;F<t.events.length;)t.events[F][1].end=Q({},H),F++;Tn(t.events,Ae+1,0,t.events.slice(me)),t.events.length=F}}function L(j){let te=n.length;for(;te-- >j;){const he=n[te];t.containerState=he[1],he[0].exit.call(t,e)}n.length=j}function $(){o.write([null]),u=void 0,o=void 0,t.containerState._closeFlow=void 0}}function kA(e,t,n){return Ge(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function es(e){if(e===null||rt(e)||pi(e))return 1;if(ia(e))return 2}function sa(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!r.includes(u)&&(t=u(t,n),r.push(u))}return t}const rf={name:"attention",resolveAll:wA,tokenize:NA};function wA(e,t){let n=-1,r,o,u,l,f,d,h,g;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const y=Q({},e[r][1].end),b=Q({},e[n][1].start);v0(y,-d),v0(b,d),l={type:d>1?"strongSequence":"emphasisSequence",start:y,end:Q({},e[r][1].end)},f={type:d>1?"strongSequence":"emphasisSequence",start:Q({},e[n][1].start),end:b},u={type:d>1?"strongText":"emphasisText",start:Q({},e[r][1].end),end:Q({},e[n][1].start)},o={type:d>1?"strong":"emphasis",start:Q({},l.start),end:Q({},f.end)},e[r][1].end=Q({},l.start),e[n][1].start=Q({},f.end),h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=Nn(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=Nn(h,[["enter",o,t],["enter",l,t],["exit",l,t],["enter",u,t]]),h=Nn(h,sa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=Nn(h,[["exit",u,t],["enter",f,t],["exit",f,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(g=2,h=Nn(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):g=0,Tn(e,r-1,n-r+3,h),n=r+h.length-g-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function NA(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=es(r);let u;return l;function l(d){return u=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===u)return e.consume(d),f;const h=e.exit("attentionSequence"),g=es(d),y=!g||g===2&&o||n.includes(d),b=!o||o===2&&g||n.includes(r);return h._open=!!(u===42?y:y&&(o||!b)),h._close=!!(u===42?b:b&&(g||!y)),t(d)}}function v0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const vA={name:"autolink",tokenize:OA};function OA(e,t,n){let r=0;return o;function o(T){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(T){return Jt(T)?(e.consume(T),l):T===64?n(T):h(T)}function l(T){return T===43||T===45||T===46||Yt(T)?(r=1,f(T)):h(T)}function f(T){return T===58?(e.consume(T),r=0,d):(T===43||T===45||T===46||Yt(T))&&r++<32?(e.consume(T),f):(r=0,h(T))}function d(T){return T===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.exit("autolink"),t):T===null||T===32||T===60||ra(T)?n(T):(e.consume(T),d)}function h(T){return T===64?(e.consume(T),g):TA(T)?(e.consume(T),h):n(T)}function g(T){return Yt(T)?y(T):n(T)}function y(T){return T===46?(e.consume(T),r=0,g):T===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.exit("autolink"),t):b(T)}function b(T){if((T===45||Yt(T))&&r++<63){const S=T===45?b:y;return e.consume(T),S}return n(T)}}const fo={partial:!0,tokenize:IA};function IA(e,t,n){return r;function r(u){return Ye(u)?Ge(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||Oe(u)?t(u):n(u)}}const O0={continuation:{tokenize:PA},exit:LA,name:"blockQuote",tokenize:RA};function RA(e,t,n){const r=this;return o;function o(l){if(l===62){const f=r.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),u}return n(l)}function u(l){return Ye(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function PA(e,t,n){const r=this;return o;function o(l){return Ye(l)?Ge(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):u(l)}function u(l){return e.attempt(O0,t,n)(l)}}function LA(e){e.exit("blockQuote")}const I0={name:"characterEscape",tokenize:DA};function DA(e,t,n){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),o}function o(u){return _A(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(u)}}const R0={name:"characterReference",tokenize:MA};function MA(e,t,n){const r=this;let o=0,u,l;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),d}function d(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),u=31,l=Yt,g(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,l=bA,g):(e.enter("characterReferenceValue"),u=7,l=nf,g(y))}function g(y){if(y===59&&o){const b=e.exit("characterReferenceValue");return l===Yt&&!tf(r.sliceSerialize(b))?n(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(y)&&o++<u?(e.consume(y),g):n(y)}}const P0={partial:!0,tokenize:BA},L0={concrete:!0,name:"codeFenced",tokenize:FA};function FA(e,t,n){const r=this,o={partial:!0,tokenize:he};let u=0,l=0,f;return d;function d(F){return h(F)}function h(F){const me=r.events[r.events.length-1];return u=me&&me[1].type==="linePrefix"?me[2].sliceSerialize(me[1],!0).length:0,f=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(F)}function g(F){return F===f?(l++,e.consume(F),g):l<3?n(F):(e.exit("codeFencedFenceSequence"),Ye(F)?Ge(e,y,"whitespace")(F):y(F))}function y(F){return F===null||Oe(F)?(e.exit("codeFencedFence"),r.interrupt?t(F):e.check(P0,C,te)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(F))}function b(F){return F===null||Oe(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(F)):Ye(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ge(e,T,"whitespace")(F)):F===96&&F===f?n(F):(e.consume(F),b)}function T(F){return F===null||Oe(F)?y(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(F))}function S(F){return F===null||Oe(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(F)):F===96&&F===f?n(F):(e.consume(F),S)}function C(F){return e.attempt(o,te,O)(F)}function O(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),L}function L(F){return u>0&&Ye(F)?Ge(e,$,"linePrefix",u+1)(F):$(F)}function $(F){return F===null||Oe(F)?e.check(P0,C,te)(F):(e.enter("codeFlowValue"),j(F))}function j(F){return F===null||Oe(F)?(e.exit("codeFlowValue"),$(F)):(e.consume(F),j)}function te(F){return e.exit("codeFenced"),t(F)}function he(F,me,Ae){let Ne=0;return H;function H(be){return F.enter("lineEnding"),F.consume(be),F.exit("lineEnding"),ge}function ge(be){return F.enter("codeFencedFence"),Ye(be)?Ge(F,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(be):pe(be)}function pe(be){return be===f?(F.enter("codeFencedFenceSequence"),ce(be)):Ae(be)}function ce(be){return be===f?(Ne++,F.consume(be),ce):Ne>=l?(F.exit("codeFencedFenceSequence"),Ye(be)?Ge(F,fe,"whitespace")(be):fe(be)):Ae(be)}function fe(be){return be===null||Oe(be)?(F.exit("codeFencedFence"),me(be)):Ae(be)}}}function BA(e,t,n){const r=this;return o;function o(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u)}function u(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const sf={name:"codeIndented",tokenize:HA},UA={partial:!0,tokenize:zA};function HA(e,t,n){const r=this;return o;function o(h){return e.enter("codeIndented"),Ge(e,u,"linePrefix",5)(h)}function u(h){const g=r.events[r.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?l(h):n(h)}function l(h){return h===null?d(h):Oe(h)?e.attempt(UA,l,d)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||Oe(h)?(e.exit("codeFlowValue"),l(h)):(e.consume(h),f)}function d(h){return e.exit("codeIndented"),t(h)}}function zA(e,t,n){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?n(l):Oe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):Ge(e,u,"linePrefix",5)(l)}function u(l){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(l):Oe(l)?o(l):n(l)}}const jA={name:"codeText",previous:VA,resolve:$A,tokenize:YA};function $A(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function VA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function YA(e,t,n){let r=0,o,u;return l;function l(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),r++,f):(e.exit("codeTextSequence"),d(y))}function d(y){return y===null?n(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),d):y===96?(u=e.enter("codeTextSequence"),o=0,g(y)):Oe(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||Oe(y)?(e.exit("codeTextData"),d(y)):(e.consume(y),h)}function g(y){return y===96?(e.consume(y),o++,g):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(u.type="codeTextData",h(y))}}class qA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n==null?Number.POSITIVE_INFINITY:n;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&ho(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ho(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ho(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ho(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ho(this.left,n.reverse())}}}function ho(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function D0(e){const t={};let n=-1,r,o,u,l,f,d,h;const g=new qA(e);for(;++n<g.length;){for(;n in t;)n=t[n];if(r=g.get(n),n&&r[1].type==="chunkFlow"&&g.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,u=0,u<d.length&&d[u][1].type==="lineEndingBlank"&&(u+=2),u<d.length&&d[u][1].type==="content"))for(;++u<d.length&&d[u][1].type!=="content";)d[u][1].type==="chunkText"&&(d[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,WA(g,n)),n=t[n],h=!0);else if(r[1]._container){for(u=n,o=void 0;u--;)if(l=g.get(u),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(o&&(g.get(o)[1].type="lineEndingBlank"),l[1].type="lineEnding",o=u);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;o&&(r[1].end=Q({},g.get(o)[1].start),f=g.slice(o,n),f.unshift(r),g.splice(o,n-o+1,f))}}return Tn(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function WA(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const u=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const f=l.events,d=[],h={};let g,y,b=-1,T=n,S=0,C=0;const O=[C];for(;T;){for(;e.get(++o)[1]!==T;);u.push(o),T._tokenizer||(g=r.sliceStream(T),T.next||g.push(null),y&&l.defineSkip(T.start),T._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(g),T._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),y=T,T=T.next}for(T=n;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(C=b+1,O.push(C),T._tokenizer=void 0,T.previous=void 0,T=T.next);for(l.events=[],T?(T._tokenizer=void 0,T.previous=void 0):O.pop(),b=O.length;b--;){const L=f.slice(O[b],O[b+1]),$=u.pop();d.push([$,$+L.length-1]),e.splice($,2,L)}for(d.reverse(),b=-1;++b<d.length;)h[S+d[b][0]]=S+d[b][1],S+=d[b][1]-d[b][0]-1;return h}const GA={resolve:QA,tokenize:XA},KA={partial:!0,tokenize:JA};function QA(e){return D0(e),e}function XA(e,t){let n;return r;function r(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?u(f):Oe(f)?e.check(KA,l,u)(f):(e.consume(f),o)}function u(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function l(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function JA(e,t,n){const r=this;return o;function o(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ge(e,u,"linePrefix")}function u(l){if(l===null||Oe(l))return n(l);const f=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function M0(e,t,n,r,o,u,l,f,d){const h=d||Number.POSITIVE_INFINITY;let g=0;return y;function y(L){return L===60?(e.enter(r),e.enter(o),e.enter(u),e.consume(L),e.exit(u),b):L===null||L===32||L===41||ra(L)?n(L):(e.enter(r),e.enter(l),e.enter(f),e.enter("chunkString",{contentType:"string"}),C(L))}function b(L){return L===62?(e.enter(u),e.consume(L),e.exit(u),e.exit(o),e.exit(r),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),T(L))}function T(L){return L===62?(e.exit("chunkString"),e.exit(f),b(L)):L===null||L===60||Oe(L)?n(L):(e.consume(L),L===92?S:T)}function S(L){return L===60||L===62||L===92?(e.consume(L),T):T(L)}function C(L){return!g&&(L===null||L===41||rt(L))?(e.exit("chunkString"),e.exit(f),e.exit(l),e.exit(r),t(L)):g<h&&L===40?(e.consume(L),g++,C):L===41?(e.consume(L),g--,C):L===null||L===32||L===40||ra(L)?n(L):(e.consume(L),L===92?O:C)}function O(L){return L===40||L===41||L===92?(e.consume(L),C):C(L)}}function F0(e,t,n,r,o,u){const l=this;let f=0,d;return h;function h(T){return e.enter(r),e.enter(o),e.consume(T),e.exit(o),e.enter(u),g}function g(T){return f>999||T===null||T===91||T===93&&!d||T===94&&!f&&"_hiddenFootnoteSupport"in l.parser.constructs?n(T):T===93?(e.exit(u),e.enter(o),e.consume(T),e.exit(o),e.exit(r),t):Oe(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(T))}function y(T){return T===null||T===91||T===93||Oe(T)||f++>999?(e.exit("chunkString"),g(T)):(e.consume(T),d||(d=!Ye(T)),T===92?b:y)}function b(T){return T===91||T===92||T===93?(e.consume(T),f++,y):y(T)}}function B0(e,t,n,r,o,u){let l;return f;function f(b){return b===34||b===39||b===40?(e.enter(r),e.enter(o),e.consume(b),e.exit(o),l=b===40?41:b,d):n(b)}function d(b){return b===l?(e.enter(o),e.consume(b),e.exit(o),e.exit(r),t):(e.enter(u),h(b))}function h(b){return b===l?(e.exit(u),d(l)):b===null?n(b):Oe(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Ge(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===l||b===null||Oe(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?y:g)}function y(b){return b===l||b===92?(e.consume(b),g):g(b)}}function po(e,t){let n;return r;function r(o){return Oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Ye(o)?Ge(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const ZA={name:"definition",tokenize:tC},eC={partial:!0,tokenize:nC};function tC(e,t,n){const r=this;let o;return u;function u(T){return e.enter("definition"),l(T)}function l(T){return F0.call(r,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(T)}function f(T){return o=jn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),d):n(T)}function d(T){return rt(T)?po(e,h)(T):h(T)}function h(T){return M0(e,g,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(T)}function g(T){return e.attempt(eC,y,y)(T)}function y(T){return Ye(T)?Ge(e,b,"whitespace")(T):b(T)}function b(T){return T===null||Oe(T)?(e.exit("definition"),r.parser.defined.push(o),t(T)):n(T)}}function nC(e,t,n){return r;function r(f){return rt(f)?po(e,o)(f):n(f)}function o(f){return B0(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Ye(f)?Ge(e,l,"whitespace")(f):l(f)}function l(f){return f===null||Oe(f)?t(f):n(f)}}const rC={name:"hardBreakEscape",tokenize:iC};function iC(e,t,n){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),o}function o(u){return Oe(u)?(e.exit("hardBreakEscape"),t(u)):n(u)}}const sC={name:"headingAtx",resolve:oC,tokenize:uC};function oC(e,t){let n=e.length-2,r=3,o,u;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},u={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Tn(e,r,n-r+1,[["enter",o,t],["enter",u,t],["exit",u,t],["exit",o,t]])),e}function uC(e,t,n){let r=0;return o;function o(g){return e.enter("atxHeading"),u(g)}function u(g){return e.enter("atxHeadingSequence"),l(g)}function l(g){return g===35&&r++<6?(e.consume(g),l):g===null||rt(g)?(e.exit("atxHeadingSequence"),f(g)):n(g)}function f(g){return g===35?(e.enter("atxHeadingSequence"),d(g)):g===null||Oe(g)?(e.exit("atxHeading"),t(g)):Ye(g)?Ge(e,f,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function d(g){return g===35?(e.consume(g),d):(e.exit("atxHeadingSequence"),f(g))}function h(g){return g===null||g===35||rt(g)?(e.exit("atxHeadingText"),f(g)):(e.consume(g),h)}}const aC=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],U0=["pre","script","style","textarea"],lC={concrete:!0,name:"htmlFlow",resolveTo:dC,tokenize:hC},cC={partial:!0,tokenize:mC},fC={partial:!0,tokenize:pC};function dC(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(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}function hC(e,t,n){const r=this;let o,u,l,f,d;return h;function h(w){return g(w)}function g(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),y}function y(w){return w===33?(e.consume(w),b):w===47?(e.consume(w),u=!0,C):w===63?(e.consume(w),o=3,r.interrupt?t:x):Jt(w)?(e.consume(w),l=String.fromCharCode(w),O):n(w)}function b(w){return w===45?(e.consume(w),o=2,T):w===91?(e.consume(w),o=5,f=0,S):Jt(w)?(e.consume(w),o=4,r.interrupt?t:x):n(w)}function T(w){return w===45?(e.consume(w),r.interrupt?t:x):n(w)}function S(w){const Ee="CDATA[";return w===Ee.charCodeAt(f++)?(e.consume(w),f===Ee.length?r.interrupt?t:pe:S):n(w)}function C(w){return Jt(w)?(e.consume(w),l=String.fromCharCode(w),O):n(w)}function O(w){if(w===null||w===47||w===62||rt(w)){const Ee=w===47,ve=l.toLowerCase();return!Ee&&!u&&U0.includes(ve)?(o=1,r.interrupt?t(w):pe(w)):aC.includes(l.toLowerCase())?(o=6,Ee?(e.consume(w),L):r.interrupt?t(w):pe(w)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):u?$(w):j(w))}return w===45||Yt(w)?(e.consume(w),l+=String.fromCharCode(w),O):n(w)}function L(w){return w===62?(e.consume(w),r.interrupt?t:pe):n(w)}function $(w){return Ye(w)?(e.consume(w),$):H(w)}function j(w){return w===47?(e.consume(w),H):w===58||w===95||Jt(w)?(e.consume(w),te):Ye(w)?(e.consume(w),j):H(w)}function te(w){return w===45||w===46||w===58||w===95||Yt(w)?(e.consume(w),te):he(w)}function he(w){return w===61?(e.consume(w),F):Ye(w)?(e.consume(w),he):j(w)}function F(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),d=w,me):Ye(w)?(e.consume(w),F):Ae(w)}function me(w){return w===d?(e.consume(w),d=null,Ne):w===null||Oe(w)?n(w):(e.consume(w),me)}function Ae(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||rt(w)?he(w):(e.consume(w),Ae)}function Ne(w){return w===47||w===62||Ye(w)?j(w):n(w)}function H(w){return w===62?(e.consume(w),ge):n(w)}function ge(w){return w===null||Oe(w)?pe(w):Ye(w)?(e.consume(w),ge):n(w)}function pe(w){return w===45&&o===2?(e.consume(w),Le):w===60&&o===1?(e.consume(w),ae):w===62&&o===4?(e.consume(w),I):w===63&&o===3?(e.consume(w),x):w===93&&o===5?(e.consume(w),G):Oe(w)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(cC,q,ce)(w)):w===null||Oe(w)?(e.exit("htmlFlowData"),ce(w)):(e.consume(w),pe)}function ce(w){return e.check(fC,fe,q)(w)}function fe(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),be}function be(w){return w===null||Oe(w)?ce(w):(e.enter("htmlFlowData"),pe(w))}function Le(w){return w===45?(e.consume(w),x):pe(w)}function ae(w){return w===47?(e.consume(w),l="",M):pe(w)}function M(w){if(w===62){const Ee=l.toLowerCase();return U0.includes(Ee)?(e.consume(w),I):pe(w)}return Jt(w)&&l.length<8?(e.consume(w),l+=String.fromCharCode(w),M):pe(w)}function G(w){return w===93?(e.consume(w),x):pe(w)}function x(w){return w===62?(e.consume(w),I):w===45&&o===2?(e.consume(w),x):pe(w)}function I(w){return w===null||Oe(w)?(e.exit("htmlFlowData"),q(w)):(e.consume(w),I)}function q(w){return e.exit("htmlFlow"),t(w)}}function pC(e,t,n){const r=this;return o;function o(l){return Oe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u):n(l)}function u(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function mC(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(fo,t,n)}}const gC={name:"htmlText",tokenize:EC};function EC(e,t,n){const r=this;let o,u,l;return f;function f(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),d}function d(x){return x===33?(e.consume(x),h):x===47?(e.consume(x),he):x===63?(e.consume(x),j):Jt(x)?(e.consume(x),Ae):n(x)}function h(x){return x===45?(e.consume(x),g):x===91?(e.consume(x),u=0,S):Jt(x)?(e.consume(x),$):n(x)}function g(x){return x===45?(e.consume(x),T):n(x)}function y(x){return x===null?n(x):x===45?(e.consume(x),b):Oe(x)?(l=y,ae(x)):(e.consume(x),y)}function b(x){return x===45?(e.consume(x),T):y(x)}function T(x){return x===62?Le(x):x===45?b(x):y(x)}function S(x){const I="CDATA[";return x===I.charCodeAt(u++)?(e.consume(x),u===I.length?C:S):n(x)}function C(x){return x===null?n(x):x===93?(e.consume(x),O):Oe(x)?(l=C,ae(x)):(e.consume(x),C)}function O(x){return x===93?(e.consume(x),L):C(x)}function L(x){return x===62?Le(x):x===93?(e.consume(x),L):C(x)}function $(x){return x===null||x===62?Le(x):Oe(x)?(l=$,ae(x)):(e.consume(x),$)}function j(x){return x===null?n(x):x===63?(e.consume(x),te):Oe(x)?(l=j,ae(x)):(e.consume(x),j)}function te(x){return x===62?Le(x):j(x)}function he(x){return Jt(x)?(e.consume(x),F):n(x)}function F(x){return x===45||Yt(x)?(e.consume(x),F):me(x)}function me(x){return Oe(x)?(l=me,ae(x)):Ye(x)?(e.consume(x),me):Le(x)}function Ae(x){return x===45||Yt(x)?(e.consume(x),Ae):x===47||x===62||rt(x)?Ne(x):n(x)}function Ne(x){return x===47?(e.consume(x),Le):x===58||x===95||Jt(x)?(e.consume(x),H):Oe(x)?(l=Ne,ae(x)):Ye(x)?(e.consume(x),Ne):Le(x)}function H(x){return x===45||x===46||x===58||x===95||Yt(x)?(e.consume(x),H):ge(x)}function ge(x){return x===61?(e.consume(x),pe):Oe(x)?(l=ge,ae(x)):Ye(x)?(e.consume(x),ge):Ne(x)}function pe(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),o=x,ce):Oe(x)?(l=pe,ae(x)):Ye(x)?(e.consume(x),pe):(e.consume(x),fe)}function ce(x){return x===o?(e.consume(x),o=void 0,be):x===null?n(x):Oe(x)?(l=ce,ae(x)):(e.consume(x),ce)}function fe(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||rt(x)?Ne(x):(e.consume(x),fe)}function be(x){return x===47||x===62||rt(x)?Ne(x):n(x)}function Le(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):n(x)}function ae(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),M}function M(x){return Ye(x)?Ge(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):G(x)}function G(x){return e.enter("htmlTextData"),l(x)}}const of={name:"labelEnd",resolveAll:_C,resolveTo:SC,tokenize:xC},yC={tokenize:AC},TC={tokenize:CC},bC={tokenize:kC};function _C(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&Tn(e,0,e.length,n),e}function SC(e,t){let n=e.length,r=0,o,u,l,f;for(;n--;)if(o=e[n][1],u){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(u=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(l=n);const d={type:e[u][1].type==="labelLink"?"link":"image",start:Q({},e[u][1].start),end:Q({},e[e.length-1][1].end)},h={type:"label",start:Q({},e[u][1].start),end:Q({},e[l][1].end)},g={type:"labelText",start:Q({},e[u+r+2][1].end),end:Q({},e[l-2][1].start)};return f=[["enter",d,t],["enter",h,t]],f=Nn(f,e.slice(u+1,u+r+3)),f=Nn(f,[["enter",g,t]]),f=Nn(f,sa(t.parser.constructs.insideSpan.null,e.slice(u+r+4,l-3),t)),f=Nn(f,[["exit",g,t],e[l-2],e[l-1],["exit",h,t]]),f=Nn(f,e.slice(l+1)),f=Nn(f,[["exit",d,t]]),Tn(e,u,e.length,f),e}function xC(e,t,n){const r=this;let o=r.events.length,u,l;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){u=r.events[o][1];break}return f;function f(b){return u?u._inactive?y(b):(l=r.parser.defined.includes(jn(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):n(b)}function d(b){return b===40?e.attempt(yC,g,l?g:y)(b):b===91?e.attempt(TC,g,l?h:y)(b):l?g(b):y(b)}function h(b){return e.attempt(bC,g,y)(b)}function g(b){return t(b)}function y(b){return u._balanced=!0,n(b)}}function AC(e,t,n){return r;function r(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),o}function o(y){return rt(y)?po(e,u)(y):u(y)}function u(y){return y===41?g(y):M0(e,l,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function l(y){return rt(y)?po(e,d)(y):g(y)}function f(y){return n(y)}function d(y){return y===34||y===39||y===40?B0(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function h(y){return rt(y)?po(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):n(y)}}function CC(e,t,n){const r=this;return o;function o(f){return F0.call(r,e,u,l,"reference","referenceMarker","referenceString")(f)}function u(f){return r.parser.defined.includes(jn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function l(f){return n(f)}}function kC(e,t,n){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),o}function o(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):n(u)}}const wC={name:"labelStartImage",resolveAll:of.resolveAll,tokenize:NC};function NC(e,t,n){const r=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),l):n(f)}function l(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(f):t(f)}}const vC={name:"labelStartLink",resolveAll:of.resolveAll,tokenize:OC};function OC(e,t,n){const r=this;return o;function o(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),u}function u(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const uf={name:"lineEnding",tokenize:IC};function IC(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ge(e,t,"linePrefix")}}const oa={name:"thematicBreak",tokenize:RC};function RC(e,t,n){let r=0,o;return u;function u(h){return e.enter("thematicBreak"),l(h)}function l(h){return o=h,f(h)}function f(h){return h===o?(e.enter("thematicBreakSequence"),d(h)):r>=3&&(h===null||Oe(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===o?(e.consume(h),r++,d):(e.exit("thematicBreakSequence"),Ye(h)?Ge(e,f,"whitespace")(h):f(h))}}const an={continuation:{tokenize:MC},exit:BC,name:"list",tokenize:DC},PC={partial:!0,tokenize:UC},LC={partial:!0,tokenize:FC};function DC(e,t,n){const r=this,o=r.events[r.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,l=0;return f;function f(T){const S=r.containerState.type||(T===42||T===43||T===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!r.containerState.marker||T===r.containerState.marker:nf(T)){if(r.containerState.type||(r.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),T===42||T===45?e.check(oa,n,h)(T):h(T);if(!r.interrupt||T===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(T)}return n(T)}function d(T){return nf(T)&&++l<10?(e.consume(T),d):(!r.interrupt||l<2)&&(r.containerState.marker?T===r.containerState.marker:T===41||T===46)?(e.exit("listItemValue"),h(T)):n(T)}function h(T){return e.enter("listItemMarker"),e.consume(T),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||T,e.check(fo,r.interrupt?n:g,e.attempt(PC,b,y))}function g(T){return r.containerState.initialBlankLine=!0,u++,b(T)}function y(T){return Ye(T)?(e.enter("listItemPrefixWhitespace"),e.consume(T),e.exit("listItemPrefixWhitespace"),b):n(T)}function b(T){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(T)}}function MC(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(fo,o,u);function o(f){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ge(e,t,"listItemIndent",r.containerState.size+1)(f)}function u(f){return r.containerState.furtherBlankLines||!Ye(f)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(f)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(LC,t,l)(f))}function l(f){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ge(e,e.attempt(an,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function FC(e,t,n){const r=this;return Ge(e,o,"listItemIndent",r.containerState.size+1);function o(u){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(u):n(u)}}function BC(e){e.exit(this.containerState.type)}function UC(e,t,n){const r=this;return Ge(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const l=r.events[r.events.length-1];return!Ye(u)&&l&&l[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}const H0={name:"setextUnderline",resolveTo:HC,tokenize:zC};function HC(e,t){let n=e.length,r,o,u;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!u&&e[n][1].type==="definition"&&(u=n);const l={type:"setextHeading",start:Q({},e[r][1].start),end:Q({},e[e.length-1][1].end)};return e[o][1].type="setextHeadingText",u?(e.splice(o,0,["enter",l,t]),e.splice(u+1,0,["exit",e[r][1],t]),e[r][1].end=Q({},e[u][1].end)):e[r][1]=l,e.push(["exit",l,t]),e}function zC(e,t,n){const r=this;let o;return u;function u(h){let g=r.events.length,y;for(;g--;)if(r.events[g][1].type!=="lineEnding"&&r.events[g][1].type!=="linePrefix"&&r.events[g][1].type!=="content"){y=r.events[g][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(e.enter("setextHeadingLine"),o=h,l(h)):n(h)}function l(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===o?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),Ye(h)?Ge(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Oe(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const jC={tokenize:$C};function $C(e){const t=this,n=e.attempt(fo,r,e.attempt(this.parser.constructs.flowInitial,o,Ge(e,e.attempt(this.parser.constructs.flow,o,e.attempt(GA,o)),"linePrefix")));return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const VC={resolveAll:j0()},YC=z0("string"),qC=z0("text");function z0(e){return{resolveAll:j0(e==="text"?WC:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],u=n.attempt(o,l,f);return l;function l(g){return h(g)?u(g):f(g)}function f(g){if(g===null){n.consume(g);return}return n.enter("data"),n.consume(g),d}function d(g){return h(g)?(n.exit("data"),u(g)):(n.consume(g),d)}function h(g){if(g===null)return!0;const y=o[g];let b=-1;if(y)for(;++b<y.length;){const T=y[b];if(!T.previous||T.previous.call(r,r.previous))return!0}return!1}}}function j0(e){return t;function t(n,r){let o=-1,u;for(;++o<=n.length;)u===void 0?n[o]&&n[o][1].type==="data"&&(u=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==u+2&&(n[u][1].end=n[o-1][1].end,n.splice(u+2,o-u-2),o=u+2),u=void 0);return e?e(n,r):n}}function WC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let u=o.length,l=-1,f=0,d;for(;u--;){const h=o[u];if(typeof h=="string"){for(l=h.length;h.charCodeAt(l-1)===32;)f++,l--;if(l)break;l=-1}else if(h===-2)d=!0,f++;else if(h!==-1){u++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const h={type:n===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?l:r.start._bufferIndex+l,_index:r.start._index+u,line:r.end.line,column:r.end.column-f,offset:r.end.offset-f},end:Q({},r.end)};r.end=Q({},h.start),r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const GC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:ZA},disable:{null:[]},document:{42:an,43:an,45:an,48:an,49:an,50:an,51:an,52:an,53:an,54:an,55:an,56:an,57:an,62:O0},flow:{35:sC,42:oa,45:[H0,oa],60:lC,61:H0,95:oa,96:L0,126:L0},flowInitial:{[-2]:sf,[-1]:sf,32:sf},insideSpan:{null:[rf,VC]},string:{38:R0,92:I0},text:{[-5]:uf,[-4]:uf,[-3]:uf,33:wC,38:R0,42:rf,60:[vA,gC],91:vC,92:[rC,I0],93:of,95:rf,96:jA}},Symbol.toStringTag,{value:"Module"}));function KC(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},u=[];let l=[],f=[];const d={attempt:me(he),check:me(F),consume:$,enter:j,exit:te,interrupt:me(F,{interrupt:!0})},h={code:null,containerState:{},defineSkip:C,events:[],now:S,parser:e,previous:null,sliceSerialize:b,sliceStream:T,write:y};let g=t.tokenize.call(h,d);return t.resolveAll&&u.push(t),h;function y(ge){return l=Nn(l,ge),O(),l[l.length-1]!==null?[]:(Ae(t,0),h.events=sa(u,h.events,h),h.events)}function b(ge,pe){return XC(T(ge),pe)}function T(ge){return QC(l,ge)}function S(){const{_bufferIndex:ge,_index:pe,line:ce,column:fe,offset:be}=r;return{_bufferIndex:ge,_index:pe,line:ce,column:fe,offset:be}}function C(ge){o[ge.line]=ge.column,H()}function O(){let ge;for(;r._index<l.length;){const pe=l[r._index];if(typeof pe=="string")for(ge=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===ge&&r._bufferIndex<pe.length;)L(pe.charCodeAt(r._bufferIndex));else L(pe)}}function L(ge){g=g(ge)}function $(ge){Oe(ge)?(r.line++,r.column=1,r.offset+=ge===-3?2:1,H()):ge!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=ge}function j(ge,pe){const ce=pe||{};return ce.type=ge,ce.start=S(),h.events.push(["enter",ce,h]),f.push(ce),ce}function te(ge){const pe=f.pop();return pe.end=S(),h.events.push(["exit",pe,h]),pe}function he(ge,pe){Ae(ge,pe.from)}function F(ge,pe){pe.restore()}function me(ge,pe){return ce;function ce(fe,be,Le){let ae,M,G,x;return Array.isArray(fe)?q(fe):"tokenize"in fe?q([fe]):I(fe);function I(Ce){return We;function We(ze){const Ze=ze!==null&&Ce[ze],wt=ze!==null&&Ce.null,_r=[...Array.isArray(Ze)?Ze:Ze?[Ze]:[],...Array.isArray(wt)?wt:wt?[wt]:[]];return q(_r)(ze)}}function q(Ce){return ae=Ce,M=0,Ce.length===0?Le:w(Ce[M])}function w(Ce){return We;function We(ze){return x=Ne(),G=Ce,Ce.partial||(h.currentConstruct=Ce),Ce.name&&h.parser.constructs.disable.null.includes(Ce.name)?ve():Ce.tokenize.call(pe?Object.assign(Object.create(h),pe):h,d,Ee,ve)(ze)}}function Ee(Ce){return ge(G,x),be}function ve(Ce){return x.restore(),++M<ae.length?w(ae[M]):Le}}}function Ae(ge,pe){ge.resolveAll&&!u.includes(ge)&&u.push(ge),ge.resolve&&Tn(h.events,pe,h.events.length-pe,ge.resolve(h.events.slice(pe),h)),ge.resolveTo&&(h.events=ge.resolveTo(h.events,h))}function Ne(){const ge=S(),pe=h.previous,ce=h.currentConstruct,fe=h.events.length,be=Array.from(f);return{from:fe,restore:Le};function Le(){r=ge,h.previous=pe,h.currentConstruct=ce,h.events.length=fe,f=be,H()}}function H(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function QC(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,u=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,u)];else{if(l=e.slice(n,o),r>-1){const f=l[0];typeof f=="string"?l[0]=f.slice(r):l.shift()}u>0&&l.push(e[o].slice(0,u))}return l}function XC(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const u=e[n];let l;if(typeof u=="string")l=u;else switch(u){case-5:{l="\r";break}case-4:{l=`
25
25
  `;break}case-3:{l=`\r
26
- `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&o)continue;l=" ";break}default:l=String.fromCharCode(u)}o=u===-2,r.push(l)}return r.join("")}function JC(e){const r={constructs:k0([GC,...(e||{}).extensions||[]]),content:o(SA),defined:[],document:o(AA),flow:o(jC),lazy:{},string:o(YC),text:o(qC)};return r;function o(u){return l;function l(f){return KC(r,u,f)}}}function ZC(e){for(;!D0(e););return e}const $0=/[\0\t\n\r]/g;function ek(){let e=1,t="",n=!0,r;return o;function o(u,l,f){const d=[];let h,g,y,b,T;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(l||void 0).decode(u)),y=0,t="",n&&(u.charCodeAt(0)===65279&&y++,n=void 0);y<u.length;){if($0.lastIndex=y,h=$0.exec(u),b=h&&h.index!==void 0?h.index:u.length,T=u.charCodeAt(b),!h){t=u.slice(y);break}if(T===10&&y===b&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),y<b&&(d.push(u.slice(y,b)),e+=b-y),T){case 0:{d.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,d.push(-2);e++<g;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}y=b+1}return f&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const tk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nk(e){return e.replace(tk,rk)}function rk(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),u=o===120||o===88;return w0(n.slice(u?2:1),u?16:10)}return tf(n)||e}const V0={}.hasOwnProperty;function ik(e,t,n){return typeof t!="string"&&(n=t,t=void 0),sk(n)(ZC(JC(n).document().write(ek()(e,t,!0))))}function sk(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Es),autolinkProtocol:Ne,autolinkEmail:Ne,atxHeading:u(Ho),blockQuote:u(wt),characterEscape:Ne,characterReference:Ne,codeFenced:u(_r),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(_r,l),codeText:u(Ua,l),codeTextData:Ne,data:Ne,codeFlowValue:Ne,definition:u(ms),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(Uo),hardBreakEscape:u(zo),hardBreakTrailing:u(zo),htmlFlow:u(gs,l),htmlFlowData:Ne,htmlText:u(gs,l),htmlTextData:Ne,image:u(Ha),label:l,link:u(Es),listItem:u(Hr),listItemValue:b,listOrdered:u(Ur,y),listUnordered:u(Ur),paragraph:u(jo),reference:w,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(Ho),strong:u(za),thematicBreak:u($a)},exit:{atxHeading:d(),atxHeadingSequence:he,autolink:d(),autolinkEmail:Ze,autolinkProtocol:ze,blockQuote:d(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:Ce,characterReference:We,codeFenced:d(O),codeFencedFence:C,codeFencedFenceInfo:T,codeFencedFenceMeta:S,codeFlowValue:H,codeIndented:d(L),codeText:d(be),codeTextData:H,data:H,definition:d(),definitionDestinationString:ee,definitionLabelString:V,definitionTitleString:j,emphasis:d(),hardBreakEscape:d(pe),hardBreakTrailing:d(pe),htmlFlow:d(ce),htmlFlowData:H,htmlText:d(fe),htmlTextData:H,image:d(ue),label:G,labelText:M,lineEnding:ge,link:d(Le),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Ee,resourceDestinationString:x,resourceTitleString:I,resource:q,setextHeading:d(Ae),setextHeadingLineSequence:me,setextHeadingText:F,strong:d(),thematicBreak:d()}};Y0(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(K){let de={type:"root",children:[]};const De={stack:[de],tokenStack:[],config:t,enter:f,exit:h,buffer:l,resume:g,data:n},je=[];let Ke=-1;for(;++Ke<K.length;)if(K[Ke][1].type==="listOrdered"||K[Ke][1].type==="listUnordered")if(K[Ke][0]==="enter")je.push(Ke);else{const Ut=je.pop();Ke=o(K,Ut,Ke)}for(Ke=-1;++Ke<K.length;){const Ut=t[K[Ke][0]];V0.call(Ut,K[Ke][1].type)&&Ut[K[Ke][1].type].call(Object.assign({sliceSerialize:K[Ke][2].sliceSerialize},De),K[Ke][1])}if(De.tokenStack.length>0){const Ut=De.tokenStack[De.tokenStack.length-1];(Ut[1]||q0).call(De,void 0,Ut[0])}for(de.position={start:Lr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Lr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ke=-1;++Ke<t.transforms.length;)de=t.transforms[Ke](de)||de;return de}function o(K,de,De){let je=de-1,Ke=-1,Ut=!1,Sr,On,zr,xi;for(;++je<=De;){const Ht=K[je];switch(Ht[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ht[0]==="enter"?Ke++:Ke--,xi=void 0;break}case"lineEndingBlank":{Ht[0]==="enter"&&(Sr&&!xi&&!Ke&&!zr&&(zr=je),xi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xi=void 0}if(!Ke&&Ht[0]==="enter"&&Ht[1].type==="listItemPrefix"||Ke===-1&&Ht[0]==="exit"&&(Ht[1].type==="listUnordered"||Ht[1].type==="listOrdered")){if(Sr){let ar=je;for(On=void 0;ar--;){const _n=K[ar];if(_n[1].type==="lineEnding"||_n[1].type==="lineEndingBlank"){if(_n[0]==="exit")continue;On&&(K[On][1].type="lineEndingBlank",Ut=!0),_n[1].type="lineEnding",On=ar}else if(!(_n[1].type==="linePrefix"||_n[1].type==="blockQuotePrefix"||_n[1].type==="blockQuotePrefixWhitespace"||_n[1].type==="blockQuoteMarker"||_n[1].type==="listItemIndent"))break}zr&&(!On||zr<On)&&(Sr._spread=!0),Sr.end=Object.assign({},On?K[On][1].start:Ht[1].end),K.splice(On||je,0,["exit",Sr,Ht[2]]),je++,De++}if(Ht[1].type==="listItemPrefix"){const ar={type:"listItem",_spread:!1,start:Object.assign({},Ht[1].start),end:void 0};Sr=ar,K.splice(je,0,["enter",ar,Ht[2]]),je++,De++,zr=void 0,xi=!0}}}return K[de][1]._spread=Ut,De}function u(K,de){return De;function De(je){f.call(this,K(je),je),de&&de.call(this,je)}}function l(){this.stack.push({type:"fragment",children:[]})}function f(K,de,De){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([de,De||void 0]),K.position={start:Lr(de.start),end:void 0}}function d(K){return de;function de(De){K&&K.call(this,De),h.call(this,De)}}function h(K,de){const De=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==K.type&&(de?de.call(this,K,je[0]):(je[1]||q0).call(this,K,je[0]));else throw new Error("Cannot close `"+K.type+"` ("+lo({start:K.start,end:K.end})+"): it’s not open");De.position.end=Lr(K.end)}function g(){return ef(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(K){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function T(){const K=this.resume(),de=this.stack[this.stack.length-1];de.lang=K}function S(){const K=this.resume(),de=this.stack[this.stack.length-1];de.meta=K}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function O(){const K=this.resume(),de=this.stack[this.stack.length-1];de.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function L(){const K=this.resume(),de=this.stack[this.stack.length-1];de.value=K.replace(/(\r?\n|\r)$/g,"")}function V(K){const de=this.resume(),De=this.stack[this.stack.length-1];De.label=de,De.identifier=jn(this.sliceSerialize(K)).toLowerCase()}function j(){const K=this.resume(),de=this.stack[this.stack.length-1];de.title=K}function ee(){const K=this.resume(),de=this.stack[this.stack.length-1];de.url=K}function he(K){const de=this.stack[this.stack.length-1];if(!de.depth){const De=this.sliceSerialize(K).length;de.depth=De}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function me(K){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function Ae(){this.data.setextHeadingSlurpLineEnding=void 0}function Ne(K){const De=this.stack[this.stack.length-1].children;let je=De[De.length-1];(!je||je.type!=="text")&&(je=ja(),je.position={start:Lr(K.start),end:void 0},De.push(je)),this.stack.push(je)}function H(K){const de=this.stack.pop();de.value+=this.sliceSerialize(K),de.position.end=Lr(K.end)}function ge(K){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const De=de.children[de.children.length-1];De.position.end=Lr(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(Ne.call(this,K),H.call(this,K))}function pe(){this.data.atHardBreak=!0}function ce(){const K=this.resume(),de=this.stack[this.stack.length-1];de.value=K}function fe(){const K=this.resume(),de=this.stack[this.stack.length-1];de.value=K}function be(){const K=this.resume(),de=this.stack[this.stack.length-1];de.value=K}function Le(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=de,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ue(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=de,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function M(K){const de=this.sliceSerialize(K),De=this.stack[this.stack.length-2];De.label=nk(de),De.identifier=jn(de).toLowerCase()}function G(){const K=this.stack[this.stack.length-1],de=this.resume(),De=this.stack[this.stack.length-1];if(this.data.inReference=!0,De.type==="link"){const je=K.children;De.children=je}else De.alt=de}function x(){const K=this.resume(),de=this.stack[this.stack.length-1];de.url=K}function I(){const K=this.resume(),de=this.stack[this.stack.length-1];de.title=K}function q(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function Ee(K){const de=this.resume(),De=this.stack[this.stack.length-1];De.label=de,De.identifier=jn(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function ve(K){this.data.characterReferenceType=K.type}function Ce(K){const de=this.sliceSerialize(K),De=this.data.characterReferenceType;let je;De?(je=w0(de,De==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=tf(de);const Ke=this.stack[this.stack.length-1];Ke.value+=je}function We(K){const de=this.stack.pop();de.position.end=Lr(K.end)}function ze(K){H.call(this,K);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(K)}function Ze(K){H.call(this,K);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(K)}function wt(){return{type:"blockquote",children:[]}}function _r(){return{type:"code",lang:null,meta:null,value:""}}function Ua(){return{type:"inlineCode",value:""}}function ms(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Uo(){return{type:"emphasis",children:[]}}function Ho(){return{type:"heading",depth:0,children:[]}}function zo(){return{type:"break"}}function gs(){return{type:"html",value:""}}function Ha(){return{type:"image",title:null,url:"",alt:null}}function Es(){return{type:"link",title:null,url:"",children:[]}}function Ur(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Hr(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function jo(){return{type:"paragraph",children:[]}}function za(){return{type:"strong",children:[]}}function ja(){return{type:"text",value:""}}function $a(){return{type:"thematicBreak"}}}function Lr(e){return{line:e.line,column:e.column,offset:e.offset}}function Y0(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Y0(e,r):ok(e,r)}}function ok(e,t){let n;for(n in t)if(V0.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function q0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+lo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+lo({start:t.start,end:t.end})+") is still open")}function uk(e){const t=this;t.parser=n;function n(r){return ik(r,$e(Q(Q({},t.data("settings")),e),{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}function ak(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function lk(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
26
+ `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&o)continue;l=" ";break}default:l=String.fromCharCode(u)}o=u===-2,r.push(l)}return r.join("")}function JC(e){const r={constructs:k0([GC,...(e||{}).extensions||[]]),content:o(SA),defined:[],document:o(AA),flow:o(jC),lazy:{},string:o(YC),text:o(qC)};return r;function o(u){return l;function l(f){return KC(r,u,f)}}}function ZC(e){for(;!D0(e););return e}const $0=/[\0\t\n\r]/g;function ek(){let e=1,t="",n=!0,r;return o;function o(u,l,f){const d=[];let h,g,y,b,T;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(l||void 0).decode(u)),y=0,t="",n&&(u.charCodeAt(0)===65279&&y++,n=void 0);y<u.length;){if($0.lastIndex=y,h=$0.exec(u),b=h&&h.index!==void 0?h.index:u.length,T=u.charCodeAt(b),!h){t=u.slice(y);break}if(T===10&&y===b&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),y<b&&(d.push(u.slice(y,b)),e+=b-y),T){case 0:{d.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,d.push(-2);e++<g;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}y=b+1}return f&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const tk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nk(e){return e.replace(tk,rk)}function rk(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),u=o===120||o===88;return w0(n.slice(u?2:1),u?16:10)}return tf(n)||e}const V0={}.hasOwnProperty;function ik(e,t,n){return typeof t!="string"&&(n=t,t=void 0),sk(n)(ZC(JC(n).document().write(ek()(e,t,!0))))}function sk(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(ys),autolinkProtocol:Ne,autolinkEmail:Ne,atxHeading:u(Ho),blockQuote:u(wt),characterEscape:Ne,characterReference:Ne,codeFenced:u(_r),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(_r,l),codeText:u(Ua,l),codeTextData:Ne,data:Ne,codeFlowValue:Ne,definition:u(gs),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(Uo),hardBreakEscape:u(zo),hardBreakTrailing:u(zo),htmlFlow:u(Es,l),htmlFlowData:Ne,htmlText:u(Es,l),htmlTextData:Ne,image:u(Ha),label:l,link:u(ys),listItem:u(Hr),listItemValue:b,listOrdered:u(Ur,y),listUnordered:u(Ur),paragraph:u(jo),reference:w,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(Ho),strong:u(za),thematicBreak:u($a)},exit:{atxHeading:d(),atxHeadingSequence:he,autolink:d(),autolinkEmail:Ze,autolinkProtocol:ze,blockQuote:d(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:Ce,characterReference:We,codeFenced:d(O),codeFencedFence:C,codeFencedFenceInfo:T,codeFencedFenceMeta:S,codeFlowValue:H,codeIndented:d(L),codeText:d(be),codeTextData:H,data:H,definition:d(),definitionDestinationString:te,definitionLabelString:$,definitionTitleString:j,emphasis:d(),hardBreakEscape:d(pe),hardBreakTrailing:d(pe),htmlFlow:d(ce),htmlFlowData:H,htmlText:d(fe),htmlTextData:H,image:d(ae),label:G,labelText:M,lineEnding:ge,link:d(Le),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Ee,resourceDestinationString:x,resourceTitleString:I,resource:q,setextHeading:d(Ae),setextHeadingLineSequence:me,setextHeadingText:F,strong:d(),thematicBreak:d()}};Y0(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(K){let de={type:"root",children:[]};const De={stack:[de],tokenStack:[],config:t,enter:f,exit:h,buffer:l,resume:g,data:n},je=[];let Ke=-1;for(;++Ke<K.length;)if(K[Ke][1].type==="listOrdered"||K[Ke][1].type==="listUnordered")if(K[Ke][0]==="enter")je.push(Ke);else{const Ut=je.pop();Ke=o(K,Ut,Ke)}for(Ke=-1;++Ke<K.length;){const Ut=t[K[Ke][0]];V0.call(Ut,K[Ke][1].type)&&Ut[K[Ke][1].type].call(Object.assign({sliceSerialize:K[Ke][2].sliceSerialize},De),K[Ke][1])}if(De.tokenStack.length>0){const Ut=De.tokenStack[De.tokenStack.length-1];(Ut[1]||q0).call(De,void 0,Ut[0])}for(de.position={start:Lr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Lr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ke=-1;++Ke<t.transforms.length;)de=t.transforms[Ke](de)||de;return de}function o(K,de,De){let je=de-1,Ke=-1,Ut=!1,Sr,In,zr,xi;for(;++je<=De;){const Ht=K[je];switch(Ht[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ht[0]==="enter"?Ke++:Ke--,xi=void 0;break}case"lineEndingBlank":{Ht[0]==="enter"&&(Sr&&!xi&&!Ke&&!zr&&(zr=je),xi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xi=void 0}if(!Ke&&Ht[0]==="enter"&&Ht[1].type==="listItemPrefix"||Ke===-1&&Ht[0]==="exit"&&(Ht[1].type==="listUnordered"||Ht[1].type==="listOrdered")){if(Sr){let ar=je;for(In=void 0;ar--;){const _n=K[ar];if(_n[1].type==="lineEnding"||_n[1].type==="lineEndingBlank"){if(_n[0]==="exit")continue;In&&(K[In][1].type="lineEndingBlank",Ut=!0),_n[1].type="lineEnding",In=ar}else if(!(_n[1].type==="linePrefix"||_n[1].type==="blockQuotePrefix"||_n[1].type==="blockQuotePrefixWhitespace"||_n[1].type==="blockQuoteMarker"||_n[1].type==="listItemIndent"))break}zr&&(!In||zr<In)&&(Sr._spread=!0),Sr.end=Object.assign({},In?K[In][1].start:Ht[1].end),K.splice(In||je,0,["exit",Sr,Ht[2]]),je++,De++}if(Ht[1].type==="listItemPrefix"){const ar={type:"listItem",_spread:!1,start:Object.assign({},Ht[1].start),end:void 0};Sr=ar,K.splice(je,0,["enter",ar,Ht[2]]),je++,De++,zr=void 0,xi=!0}}}return K[de][1]._spread=Ut,De}function u(K,de){return De;function De(je){f.call(this,K(je),je),de&&de.call(this,je)}}function l(){this.stack.push({type:"fragment",children:[]})}function f(K,de,De){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([de,De||void 0]),K.position={start:Lr(de.start),end:void 0}}function d(K){return de;function de(De){K&&K.call(this,De),h.call(this,De)}}function h(K,de){const De=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==K.type&&(de?de.call(this,K,je[0]):(je[1]||q0).call(this,K,je[0]));else throw new Error("Cannot close `"+K.type+"` ("+lo({start:K.start,end:K.end})+"): it’s not open");De.position.end=Lr(K.end)}function g(){return ef(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(K){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function T(){const K=this.resume(),de=this.stack[this.stack.length-1];de.lang=K}function S(){const K=this.resume(),de=this.stack[this.stack.length-1];de.meta=K}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function O(){const K=this.resume(),de=this.stack[this.stack.length-1];de.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function L(){const K=this.resume(),de=this.stack[this.stack.length-1];de.value=K.replace(/(\r?\n|\r)$/g,"")}function $(K){const de=this.resume(),De=this.stack[this.stack.length-1];De.label=de,De.identifier=jn(this.sliceSerialize(K)).toLowerCase()}function j(){const K=this.resume(),de=this.stack[this.stack.length-1];de.title=K}function te(){const K=this.resume(),de=this.stack[this.stack.length-1];de.url=K}function he(K){const de=this.stack[this.stack.length-1];if(!de.depth){const De=this.sliceSerialize(K).length;de.depth=De}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function me(K){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function Ae(){this.data.setextHeadingSlurpLineEnding=void 0}function Ne(K){const De=this.stack[this.stack.length-1].children;let je=De[De.length-1];(!je||je.type!=="text")&&(je=ja(),je.position={start:Lr(K.start),end:void 0},De.push(je)),this.stack.push(je)}function H(K){const de=this.stack.pop();de.value+=this.sliceSerialize(K),de.position.end=Lr(K.end)}function ge(K){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const De=de.children[de.children.length-1];De.position.end=Lr(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(Ne.call(this,K),H.call(this,K))}function pe(){this.data.atHardBreak=!0}function ce(){const K=this.resume(),de=this.stack[this.stack.length-1];de.value=K}function fe(){const K=this.resume(),de=this.stack[this.stack.length-1];de.value=K}function be(){const K=this.resume(),de=this.stack[this.stack.length-1];de.value=K}function Le(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=de,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ae(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=de,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function M(K){const de=this.sliceSerialize(K),De=this.stack[this.stack.length-2];De.label=nk(de),De.identifier=jn(de).toLowerCase()}function G(){const K=this.stack[this.stack.length-1],de=this.resume(),De=this.stack[this.stack.length-1];if(this.data.inReference=!0,De.type==="link"){const je=K.children;De.children=je}else De.alt=de}function x(){const K=this.resume(),de=this.stack[this.stack.length-1];de.url=K}function I(){const K=this.resume(),de=this.stack[this.stack.length-1];de.title=K}function q(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function Ee(K){const de=this.resume(),De=this.stack[this.stack.length-1];De.label=de,De.identifier=jn(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function ve(K){this.data.characterReferenceType=K.type}function Ce(K){const de=this.sliceSerialize(K),De=this.data.characterReferenceType;let je;De?(je=w0(de,De==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=tf(de);const Ke=this.stack[this.stack.length-1];Ke.value+=je}function We(K){const de=this.stack.pop();de.position.end=Lr(K.end)}function ze(K){H.call(this,K);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(K)}function Ze(K){H.call(this,K);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(K)}function wt(){return{type:"blockquote",children:[]}}function _r(){return{type:"code",lang:null,meta:null,value:""}}function Ua(){return{type:"inlineCode",value:""}}function gs(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Uo(){return{type:"emphasis",children:[]}}function Ho(){return{type:"heading",depth:0,children:[]}}function zo(){return{type:"break"}}function Es(){return{type:"html",value:""}}function Ha(){return{type:"image",title:null,url:"",alt:null}}function ys(){return{type:"link",title:null,url:"",children:[]}}function Ur(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Hr(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function jo(){return{type:"paragraph",children:[]}}function za(){return{type:"strong",children:[]}}function ja(){return{type:"text",value:""}}function $a(){return{type:"thematicBreak"}}}function Lr(e){return{line:e.line,column:e.column,offset:e.offset}}function Y0(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Y0(e,r):ok(e,r)}}function ok(e,t){let n;for(n in t)if(V0.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function q0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+lo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+lo({start:t.start,end:t.end})+") is still open")}function uk(e){const t=this;t.parser=n;function n(r){return ik(r,$e(Q(Q({},t.data("settings")),e),{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}function ak(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function lk(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
27
27
  `}]}function ck(e,t){const n=t.value?t.value+`
28
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function fk(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hk(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Ji(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let l,f=e.footnoteCounts.get(r);f===void 0?(f=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=u+1,f+=1,e.footnoteCounts.set(r,f);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function pk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mk(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function W0(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&l.type==="text"?l.value+=r:o.push({type:"text",value:r}),o}function gk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return W0(e,t);const o={src:Ji(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,u),e.applyData(t,u)}function Ek(e,t){const n={src:Ji(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function yk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Tk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return W0(e,t);const o={href:Ji(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function bk(e,t){const n={href:Ji(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _k(e,t,n){const r=e.all(t),o=n?Sk(n):G0(t),u={},l=[];if(typeof t.checked=="boolean"){const g=r[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<r.length;){const g=r[f];(o||f!==0||g.type!=="element"||g.tagName!=="p")&&l.push({type:"text",value:`
28
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function fk(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hk(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Zi(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let l,f=e.footnoteCounts.get(r);f===void 0?(f=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=u+1,f+=1,e.footnoteCounts.set(r,f);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function pk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mk(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function W0(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&l.type==="text"?l.value+=r:o.push({type:"text",value:r}),o}function gk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return W0(e,t);const o={src:Zi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,u),e.applyData(t,u)}function Ek(e,t){const n={src:Zi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function yk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Tk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return W0(e,t);const o={href:Zi(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function bk(e,t){const n={href:Zi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _k(e,t,n){const r=e.all(t),o=n?Sk(n):G0(t),u={},l=[];if(typeof t.checked=="boolean"){const g=r[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<r.length;){const g=r[f];(o||f!==0||g.type!=="element"||g.tagName!=="p")&&l.push({type:"text",value:`
29
29
  `}),g.type==="element"&&g.tagName==="p"&&!o?l.push(...g.children):l.push(g)}const d=r[r.length-1];d&&(o||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
30
- `});const h={type:"element",tagName:"li",properties:u,children:l};return e.patch(t,h),e.applyData(t,h)}function Sk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=G0(n[r])}return t}function G0(e){const t=e.spread;return t==null?e.children.length>1:t}function xk(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const l=r[o];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,u),e.applyData(t,u)}function Ak(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ck(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function kk(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wk(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),o.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=nr(t.children[1]),d=na(t.children[t.children.length-1]);f&&d&&(l.position={start:f,end:d}),o.push(l)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,u),e.applyData(t,u)}function Nk(e,t,n){const r=n?n.children:void 0,u=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,f=l?l.length:t.children.length;let d=-1;const h=[];for(;++d<f;){const y=t.children[d],b={},T=l?l[d]:void 0;T&&(b.align=T);let S={type:"element",tagName:u,properties:b,children:[]};y&&(S.children=e.all(y),e.patch(y,S),S=e.applyData(y,S)),h.push(S)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,g),e.applyData(t,g)}function vk(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const K0=9,Q0=32;function Ik(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const u=[];for(;r;)u.push(X0(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return u.push(X0(t.slice(o),o>0,!1)),u.join("")}function X0(e,t,n){let r=0,o=e.length;if(t){let u=e.codePointAt(r);for(;u===K0||u===Q0;)r++,u=e.codePointAt(r)}if(n){let u=e.codePointAt(o-1);for(;u===K0||u===Q0;)o--,u=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function Ok(e,t){const n={type:"text",value:Ik(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Rk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Pk={blockquote:ak,break:lk,code:ck,delete:fk,emphasis:dk,footnoteReference:hk,heading:pk,html:mk,imageReference:gk,image:Ek,inlineCode:yk,linkReference:Tk,link:bk,listItem:_k,list:xk,paragraph:Ak,root:Ck,strong:kk,table:wk,tableCell:vk,tableRow:Nk,text:Ok,thematicBreak:Rk,toml:ua,yaml:ua,definition:ua,footnoteDefinition:ua};function ua(){}const J0=-1,aa=0,mo=1,la=2,af=3,lf=4,cf=5,ff=6,Z0=7,eg=8,tg=typeof self=="object"?self:globalThis,Lk=(e,t)=>{const n=(o,u)=>(e.set(u,o),o),r=o=>{if(e.has(o))return e.get(o);const[u,l]=t[o];switch(u){case aa:case J0:return n(l,o);case mo:{const f=n([],o);for(const d of l)f.push(r(d));return f}case la:{const f=n({},o);for(const[d,h]of l)f[r(d)]=r(h);return f}case af:return n(new Date(l),o);case lf:{const{source:f,flags:d}=l;return n(new RegExp(f,d),o)}case cf:{const f=n(new Map,o);for(const[d,h]of l)f.set(r(d),r(h));return f}case ff:{const f=n(new Set,o);for(const d of l)f.add(r(d));return f}case Z0:{const{name:f,message:d}=l;return n(new tg[f](d),o)}case eg:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:f}=new Uint8Array(l);return n(new DataView(f),l)}}return n(new tg[u](l),o)};return r},ng=e=>Lk(new Map,e)(0),es="",{toString:Dk}={},{keys:Mk}=Object,go=e=>{const t=typeof e;if(t!=="object"||!e)return[aa,t];const n=Dk.call(e).slice(8,-1);switch(n){case"Array":return[mo,es];case"Object":return[la,es];case"Date":return[af,es];case"RegExp":return[lf,es];case"Map":return[cf,es];case"Set":return[ff,es];case"DataView":return[mo,n]}return n.includes("Array")?[mo,n]:n.includes("Error")?[Z0,n]:[la,n]},ca=([e,t])=>e===aa&&(t==="function"||t==="symbol"),Fk=(e,t,n,r)=>{const o=(l,f)=>{const d=r.push(l)-1;return n.set(f,d),d},u=l=>{if(n.has(l))return n.get(l);let[f,d]=go(l);switch(f){case aa:{let g=l;switch(d){case"bigint":f=eg,g=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);g=null;break;case"undefined":return o([J0],l)}return o([f,g],l)}case mo:{if(d){let b=l;return d==="DataView"?b=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(l)),o([d,[...b]],l)}const g=[],y=o([f,g],l);for(const b of l)g.push(u(b));return y}case la:{if(d)switch(d){case"BigInt":return o([d,l.toString()],l);case"Boolean":case"Number":case"String":return o([d,l.valueOf()],l)}if(t&&"toJSON"in l)return u(l.toJSON());const g=[],y=o([f,g],l);for(const b of Mk(l))(e||!ca(go(l[b])))&&g.push([u(b),u(l[b])]);return y}case af:return o([f,l.toISOString()],l);case lf:{const{source:g,flags:y}=l;return o([f,{source:g,flags:y}],l)}case cf:{const g=[],y=o([f,g],l);for(const[b,T]of l)(e||!(ca(go(b))||ca(go(T))))&&g.push([u(b),u(T)]);return y}case ff:{const g=[],y=o([f,g],l);for(const b of l)(e||!ca(go(b)))&&g.push(u(b));return y}}const{message:h}=l;return o([f,{name:d,message:h}],l)};return u},rg=(e,{json:t,lossy:n}={})=>{const r=[];return Fk(!(t||n),!!t,new Map,r)(e),r},ts=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ng(rg(e,t)):structuredClone(e):(e,t)=>ng(rg(e,t));function Bk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Uk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Hk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Bk,r=e.options.footnoteBackLabel||Uk,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const g=e.all(h),y=String(h.identifier).toUpperCase(),b=Ji(y.toLowerCase());let T=0;const S=[],C=e.footnoteCounts.get(y);for(;C!==void 0&&++T<=C;){S.length>0&&S.push({type:"text",value:" "});let V=typeof n=="string"?n:n(d,T);typeof V=="string"&&(V={type:"text",value:V}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(T>1?"-"+T:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,T),className:["data-footnote-backref"]},children:Array.isArray(V)?V:[V]})}const O=g[g.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const V=O.children[O.children.length-1];V&&V.type==="text"?V.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...S)}else g.push(...S);const L={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(g,!0)};e.patch(h,L),f.push(L)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:$e(Q({},ts(l)),{id:"footnote-label"}),children:[{type:"text",value:o}]},{type:"text",value:`
30
+ `});const h={type:"element",tagName:"li",properties:u,children:l};return e.patch(t,h),e.applyData(t,h)}function Sk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=G0(n[r])}return t}function G0(e){const t=e.spread;return t==null?e.children.length>1:t}function xk(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const l=r[o];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,u),e.applyData(t,u)}function Ak(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ck(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function kk(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wk(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),o.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=nr(t.children[1]),d=na(t.children[t.children.length-1]);f&&d&&(l.position={start:f,end:d}),o.push(l)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,u),e.applyData(t,u)}function Nk(e,t,n){const r=n?n.children:void 0,u=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,f=l?l.length:t.children.length;let d=-1;const h=[];for(;++d<f;){const y=t.children[d],b={},T=l?l[d]:void 0;T&&(b.align=T);let S={type:"element",tagName:u,properties:b,children:[]};y&&(S.children=e.all(y),e.patch(y,S),S=e.applyData(y,S)),h.push(S)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,g),e.applyData(t,g)}function vk(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const K0=9,Q0=32;function Ok(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const u=[];for(;r;)u.push(X0(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return u.push(X0(t.slice(o),o>0,!1)),u.join("")}function X0(e,t,n){let r=0,o=e.length;if(t){let u=e.codePointAt(r);for(;u===K0||u===Q0;)r++,u=e.codePointAt(r)}if(n){let u=e.codePointAt(o-1);for(;u===K0||u===Q0;)o--,u=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function Ik(e,t){const n={type:"text",value:Ok(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Rk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Pk={blockquote:ak,break:lk,code:ck,delete:fk,emphasis:dk,footnoteReference:hk,heading:pk,html:mk,imageReference:gk,image:Ek,inlineCode:yk,linkReference:Tk,link:bk,listItem:_k,list:xk,paragraph:Ak,root:Ck,strong:kk,table:wk,tableCell:vk,tableRow:Nk,text:Ik,thematicBreak:Rk,toml:ua,yaml:ua,definition:ua,footnoteDefinition:ua};function ua(){}const J0=-1,aa=0,mo=1,la=2,af=3,lf=4,cf=5,ff=6,Z0=7,eg=8,tg=typeof self=="object"?self:globalThis,Lk=(e,t)=>{const n=(o,u)=>(e.set(u,o),o),r=o=>{if(e.has(o))return e.get(o);const[u,l]=t[o];switch(u){case aa:case J0:return n(l,o);case mo:{const f=n([],o);for(const d of l)f.push(r(d));return f}case la:{const f=n({},o);for(const[d,h]of l)f[r(d)]=r(h);return f}case af:return n(new Date(l),o);case lf:{const{source:f,flags:d}=l;return n(new RegExp(f,d),o)}case cf:{const f=n(new Map,o);for(const[d,h]of l)f.set(r(d),r(h));return f}case ff:{const f=n(new Set,o);for(const d of l)f.add(r(d));return f}case Z0:{const{name:f,message:d}=l;return n(new tg[f](d),o)}case eg:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:f}=new Uint8Array(l);return n(new DataView(f),l)}}return n(new tg[u](l),o)};return r},ng=e=>Lk(new Map,e)(0),ts="",{toString:Dk}={},{keys:Mk}=Object,go=e=>{const t=typeof e;if(t!=="object"||!e)return[aa,t];const n=Dk.call(e).slice(8,-1);switch(n){case"Array":return[mo,ts];case"Object":return[la,ts];case"Date":return[af,ts];case"RegExp":return[lf,ts];case"Map":return[cf,ts];case"Set":return[ff,ts];case"DataView":return[mo,n]}return n.includes("Array")?[mo,n]:n.includes("Error")?[Z0,n]:[la,n]},ca=([e,t])=>e===aa&&(t==="function"||t==="symbol"),Fk=(e,t,n,r)=>{const o=(l,f)=>{const d=r.push(l)-1;return n.set(f,d),d},u=l=>{if(n.has(l))return n.get(l);let[f,d]=go(l);switch(f){case aa:{let g=l;switch(d){case"bigint":f=eg,g=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);g=null;break;case"undefined":return o([J0],l)}return o([f,g],l)}case mo:{if(d){let b=l;return d==="DataView"?b=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(l)),o([d,[...b]],l)}const g=[],y=o([f,g],l);for(const b of l)g.push(u(b));return y}case la:{if(d)switch(d){case"BigInt":return o([d,l.toString()],l);case"Boolean":case"Number":case"String":return o([d,l.valueOf()],l)}if(t&&"toJSON"in l)return u(l.toJSON());const g=[],y=o([f,g],l);for(const b of Mk(l))(e||!ca(go(l[b])))&&g.push([u(b),u(l[b])]);return y}case af:return o([f,l.toISOString()],l);case lf:{const{source:g,flags:y}=l;return o([f,{source:g,flags:y}],l)}case cf:{const g=[],y=o([f,g],l);for(const[b,T]of l)(e||!(ca(go(b))||ca(go(T))))&&g.push([u(b),u(T)]);return y}case ff:{const g=[],y=o([f,g],l);for(const b of l)(e||!ca(go(b)))&&g.push(u(b));return y}}const{message:h}=l;return o([f,{name:d,message:h}],l)};return u},rg=(e,{json:t,lossy:n}={})=>{const r=[];return Fk(!(t||n),!!t,new Map,r)(e),r},ns=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ng(rg(e,t)):structuredClone(e):(e,t)=>ng(rg(e,t));function Bk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Uk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Hk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Bk,r=e.options.footnoteBackLabel||Uk,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const g=e.all(h),y=String(h.identifier).toUpperCase(),b=Zi(y.toLowerCase());let T=0;const S=[],C=e.footnoteCounts.get(y);for(;C!==void 0&&++T<=C;){S.length>0&&S.push({type:"text",value:" "});let $=typeof n=="string"?n:n(d,T);typeof $=="string"&&($={type:"text",value:$}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(T>1?"-"+T:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,T),className:["data-footnote-backref"]},children:Array.isArray($)?$:[$]})}const O=g[g.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const $=O.children[O.children.length-1];$&&$.type==="text"?$.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...S)}else g.push(...S);const L={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(g,!0)};e.patch(h,L),f.push(L)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:$e(Q({},ns(l)),{id:"footnote-label"}),children:[{type:"text",value:o}]},{type:"text",value:`
31
31
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
32
- `}]}}const fa=function(e){if(e==null)return Vk;if(typeof e=="function")return da(e);if(typeof e=="object")return Array.isArray(e)?zk(e):jk(e);if(typeof e=="string")return $k(e);throw new Error("Expected function, string, or object as test")};function zk(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=fa(e[n]);return da(r);function r(...o){let u=-1;for(;++u<t.length;)if(t[u].apply(this,o))return!0;return!1}}function jk(e){const t=e;return da(n);function n(r){const o=r;let u;for(u in e)if(o[u]!==t[u])return!1;return!0}}function $k(e){return da(t);function t(n){return n&&n.type===e}}function da(e){return t;function t(n,r,o){return!!(Yk(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function Vk(){return!0}function Yk(e){return e!==null&&typeof e=="object"&&"type"in e}function X4(e){return e}const ig=[],qk=!0,df=!1,Wk="skip";function sg(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const u=fa(o),l=r?-1:1;f(e,void 0,[])();function f(d,h,g){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const T=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(T?"<"+T+">":""))+")"})}return b;function b(){let T=ig,S,C,O;if((!t||u(d,h,g[g.length-1]||void 0))&&(T=Gk(n(d,g)),T[0]===df))return T;if("children"in d&&d.children){const L=d;if(L.children&&T[0]!==Wk)for(C=(r?L.children.length:-1)+l,O=g.concat(L);C>-1&&C<L.children.length;){const V=L.children[C];if(S=f(V,C,O)(),S[0]===df)return S;C=typeof S[1]=="number"?S[1]:C+l}}return T}}}function Gk(e){return Array.isArray(e)?e:typeof e=="number"?[qk,e]:e==null?ig:[e]}function ha(e,t,n,r){let o,u,l;typeof t=="function"&&typeof n!="function"?(u=void 0,l=t,o=n):(u=t,l=n,o=r),sg(e,u,f,o);function f(d,h){const g=h[h.length-1],y=g?g.children.indexOf(d):void 0;return l(d,y,g)}}const hf={}.hasOwnProperty,Kk={};function Qk(e,t){const n=t||Kk,r=new Map,o=new Map,u=new Map,l=Q(Q({},Pk),n.handlers),f={all:h,applyData:Jk,definitionById:r,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:l,one:d,options:n,patch:Xk,wrap:ew};return ha(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?r:o,b=String(g.identifier).toUpperCase();y.has(b)||y.set(b,g)}}),f;function d(g,y){const b=g.type,T=f.handlers[b];if(hf.call(f.handlers,b)&&T)return T(f,g,y);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in g){const C=g,{children:O}=C,L=Fi(C,["children"]),V=ts(L);return V.children=f.all(g),V}return ts(g)}return(f.options.unknownHandler||Zk)(f,g,y)}function h(g){const y=[];if("children"in g){const b=g.children;let T=-1;for(;++T<b.length;){const S=f.one(b[T],g);if(S){if(T&&b[T-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=og(S.value)),!Array.isArray(S)&&S.type==="element")){const C=S.children[0];C&&C.type==="text"&&(C.value=og(C.value))}Array.isArray(S)?y.push(...S):y.push(S)}}}return y}}function Xk(e,t){e.position&&(t.position=Gx(e))}function Jk(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,u=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&u&&Object.assign(n.properties,ts(u)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function Zk(e,t){const n=t.data||{},r="value"in t&&!(hf.call(n,"hProperties")||hf.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ew(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
32
+ `}]}}const fa=function(e){if(e==null)return Vk;if(typeof e=="function")return da(e);if(typeof e=="object")return Array.isArray(e)?zk(e):jk(e);if(typeof e=="string")return $k(e);throw new Error("Expected function, string, or object as test")};function zk(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=fa(e[n]);return da(r);function r(...o){let u=-1;for(;++u<t.length;)if(t[u].apply(this,o))return!0;return!1}}function jk(e){const t=e;return da(n);function n(r){const o=r;let u;for(u in e)if(o[u]!==t[u])return!1;return!0}}function $k(e){return da(t);function t(n){return n&&n.type===e}}function da(e){return t;function t(n,r,o){return!!(Yk(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function Vk(){return!0}function Yk(e){return e!==null&&typeof e=="object"&&"type"in e}function X4(e){return e}const ig=[],qk=!0,df=!1,Wk="skip";function sg(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const u=fa(o),l=r?-1:1;f(e,void 0,[])();function f(d,h,g){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const T=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(T?"<"+T+">":""))+")"})}return b;function b(){let T=ig,S,C,O;if((!t||u(d,h,g[g.length-1]||void 0))&&(T=Gk(n(d,g)),T[0]===df))return T;if("children"in d&&d.children){const L=d;if(L.children&&T[0]!==Wk)for(C=(r?L.children.length:-1)+l,O=g.concat(L);C>-1&&C<L.children.length;){const $=L.children[C];if(S=f($,C,O)(),S[0]===df)return S;C=typeof S[1]=="number"?S[1]:C+l}}return T}}}function Gk(e){return Array.isArray(e)?e:typeof e=="number"?[qk,e]:e==null?ig:[e]}function ha(e,t,n,r){let o,u,l;typeof t=="function"&&typeof n!="function"?(u=void 0,l=t,o=n):(u=t,l=n,o=r),sg(e,u,f,o);function f(d,h){const g=h[h.length-1],y=g?g.children.indexOf(d):void 0;return l(d,y,g)}}const hf={}.hasOwnProperty,Kk={};function Qk(e,t){const n=t||Kk,r=new Map,o=new Map,u=new Map,l=Q(Q({},Pk),n.handlers),f={all:h,applyData:Jk,definitionById:r,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:l,one:d,options:n,patch:Xk,wrap:ew};return ha(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?r:o,b=String(g.identifier).toUpperCase();y.has(b)||y.set(b,g)}}),f;function d(g,y){const b=g.type,T=f.handlers[b];if(hf.call(f.handlers,b)&&T)return T(f,g,y);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in g){const C=g,{children:O}=C,L=Fi(C,["children"]),$=ns(L);return $.children=f.all(g),$}return ns(g)}return(f.options.unknownHandler||Zk)(f,g,y)}function h(g){const y=[];if("children"in g){const b=g.children;let T=-1;for(;++T<b.length;){const S=f.one(b[T],g);if(S){if(T&&b[T-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=og(S.value)),!Array.isArray(S)&&S.type==="element")){const C=S.children[0];C&&C.type==="text"&&(C.value=og(C.value))}Array.isArray(S)?y.push(...S):y.push(S)}}}return y}}function Xk(e,t){e.position&&(t.position=Gx(e))}function Jk(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,u=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&u&&Object.assign(n.properties,ns(u)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function Zk(e,t){const n=t.data||{},r="value"in t&&!(hf.call(n,"hProperties")||hf.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ew(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
33
33
  `});++r<e.length;)r&&n.push({type:"text",value:`
34
34
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
35
35
  `}),n}function og(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ug(e,t){const n=Qk(e,t),r=n.one(e,void 0),o=Hk(n),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
36
- `},o),u}function tw(e,t){return e&&"run"in e?function(n,r){return tn(this,null,function*(){const o=ug(n,Q({file:r},t));yield e.run(o,r)})}:function(n,r){return ug(n,Q({file:r},e||t))}}function ag(e){if(e)throw e}var pf,lg;function nw(){if(lg)return pf;lg=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},u=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!y)return!1;var b;for(b in h);return typeof b=="undefined"||e.call(h,b)},l=function(h,g){n&&g.name==="__proto__"?n(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},f=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(r)return r(h,g).value}else return;return h[g]};return pf=function d(){var h,g,y,b,T,S,C=arguments[0],O=1,L=arguments.length,V=!1;for(typeof C=="boolean"&&(V=C,C=arguments[1]||{},O=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});O<L;++O)if(h=arguments[O],h!=null)for(g in h)y=f(C,g),b=f(h,g),C!==b&&(V&&b&&(u(b)||(T=o(b)))?(T?(T=!1,S=y&&o(y)?y:[]):S=y&&u(y)?y:{},l(C,{name:g,newValue:d(V,S,b)})):typeof b!="undefined"&&l(C,{name:g,newValue:b}));return C},pf}var rw=nw();const mf=Ve(rw);function gf(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function iw(){const e=[],t={run:n,use:r};return t;function n(...o){let u=-1;const l=o.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);f(null,...o);function f(d,...h){const g=e[++u];let y=-1;if(d){l(d);return}for(;++y<o.length;)(h[y]===null||h[y]===void 0)&&(h[y]=o[y]);o=h,g?sw(g,f)(...h):l(null,...h)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function sw(e,t){let n;return r;function r(...l){const f=e.length>l.length;let d;f&&l.push(o);try{d=e.apply(this,l)}catch(h){const g=h;if(f&&n)throw g;return o(g)}f||(d&&d.then&&typeof d.then=="function"?d.then(u,o):d instanceof Error?o(d):u(d))}function o(l,...f){n||(n=!0,t(l,...f))}function u(l){o(null,l)}}const rr={basename:ow,dirname:uw,extname:aw,join:lw,sep:"/"};function ow(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Eo(e);let n=0,r=-1,o=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(u){n=o+1;break}}else r<0&&(u=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,f=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(u){n=o+1;break}}else l<0&&(u=!0,l=o+1),f>-1&&(e.codePointAt(o)===t.codePointAt(f--)?f<0&&(r=o):(f=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function uw(e){if(Eo(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function aw(e){Eo(e);let t=e.length,n=-1,r=0,o=-1,u=0,l;for(;t--;){const f=e.codePointAt(t);if(f===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),f===46?o<0?o=t:u!==1&&(u=1):o>-1&&(u=-1)}return o<0||n<0||u===0||u===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function lw(...e){let t=-1,n;for(;++t<e.length;)Eo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":cw(n)}function cw(e){Eo(e);const t=e.codePointAt(0)===47;let n=fw(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function fw(e,t){let n="",r=0,o=-1,u=0,l=-1,f,d;for(;++l<=e.length;){if(l<e.length)f=e.codePointAt(l);else{if(f===47)break;f=47}if(f===47){if(!(o===l-1||u===1))if(o!==l-1&&u===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),o=l,u=0;continue}}else if(n.length>0){n="",r=0,o=l,u=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,l):n=e.slice(o+1,l),r=l-o-1;o=l,u=0}else f===46&&u>-1?u++:u=-1}return n}function Eo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dw={cwd:hw};function hw(){return"/"}function Ef(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pw(e){if(typeof e=="string")e=new URL(e);else if(!Ef(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mw(e)}function mw(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const yf=["history","path","basename","stem","extname","dirname"];class cg{constructor(t){let n;t?Ef(t)?n={path:t}:typeof t=="string"||gw(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":dw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<yf.length;){const u=yf[r];u in n&&n[u]!==void 0&&n[u]!==null&&(this[u]=u==="history"?[...n[u]]:n[u])}let o;for(o in n)yf.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?rr.basename(this.path):void 0}set basename(t){bf(t,"basename"),Tf(t,"basename"),this.path=rr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rr.dirname(this.path):void 0}set dirname(t){fg(this.basename,"dirname"),this.path=rr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rr.extname(this.path):void 0}set extname(t){if(Tf(t,"extname"),fg(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ef(t)&&(t=pw(t)),bf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rr.basename(this.path,this.extname):void 0}set stem(t){bf(t,"stem"),Tf(t,"stem"),this.path=rr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new Vt(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Tf(e,t){if(e&&e.includes(rr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rr.sep+"`")}function bf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function gw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ew=function(e){const r=this.constructor.prototype,o=r[e],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,r),u},yw={}.hasOwnProperty;class _f extends Ew{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=iw()}copy(){const t=new _f;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(mf(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Af("data",this.frozen),this.namespace[t]=n,this):yw.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Af("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=pa(t),r=this.parser||this.Parser;return Sf("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Sf("process",this.parser||this.Parser),xf("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(u,l){const f=pa(t),d=r.parse(f);r.run(d,f,function(g,y,b){if(g||!y||!b)return h(g);const T=y,S=r.stringify(T,b);_w(S)?b.value=S:b.result=S,h(g,b)});function h(g,y){g||!y?l(g):u?u(y):n(void 0,y)}}}processSync(t){let n=!1,r;return this.freeze(),Sf("processSync",this.parser||this.Parser),xf("processSync",this.compiler||this.Compiler),this.process(t,o),hg("processSync","process",n),r;function o(u,l){n=!0,ag(u),r=l}}run(t,n,r){dg(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?u(void 0,r):new Promise(u);function u(l,f){const d=pa(n);o.run(t,d,h);function h(g,y,b){const T=y||t;g?f(g):l?l(T):r(void 0,T,b)}}}runSync(t,n){let r=!1,o;return this.run(t,n,u),hg("runSync","run",r),o;function u(l,f){ag(l),o=f,r=!0}}stringify(t,n){this.freeze();const r=pa(n),o=this.compiler||this.Compiler;return xf("stringify",o),dg(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Af("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...y]=h;d(g,y)}else l(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function l(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(h.plugins),h.settings&&(o.settings=mf(!0,o.settings,h.settings))}function f(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const y=h[g];u(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,g){let y=-1,b=-1;for(;++y<r.length;)if(r[y][0]===h){b=y;break}if(b===-1)r.push([h,...g]);else if(g.length>0){let[T,...S]=g;const C=r[b][1];gf(C)&&gf(T)&&(T=mf(!0,C,T)),r[b]=[h,T,...S]}}}}const Tw=new _f().freeze();function Sf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Af(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dg(e){if(!gf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hg(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pa(e){return bw(e)?e:new cg(e)}function bw(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _w(e){return typeof e=="string"||Sw(e)}function Sw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const xw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",pg=[],mg={allowDangerousHtml:!0},Aw=/^(https?|ircs?|mailto|xmpp)$/i,Cw=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function kw(e){const t=ww(e),n=Nw(e);return vw(t.runSync(t.parse(n),n),e)}function ww(e){const t=e.rehypePlugins||pg,n=e.remarkPlugins||pg,r=e.remarkRehypeOptions?Q(Q({},e.remarkRehypeOptions),mg):mg;return Tw().use(uk).use(n).use(tw,r).use(t)}function Nw(e){const t=e.children||"",n=new cg;return typeof t=="string"&&(n.value=t),n}function vw(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,u=t.disallowedElements,l=t.skipHtml,f=t.unwrapDisallowed,d=t.urlTransform||Iw;for(const g of Cw)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+xw+g.id,void 0);return ha(e,h),Zx(e,{Fragment:P.Fragment,components:o,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function h(g,y,b){if(g.type==="raw"&&b&&typeof y=="number")return l?b.children.splice(y,1):b.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let T;for(T in Zc)if(Object.hasOwn(Zc,T)&&Object.hasOwn(g.properties,T)){const S=g.properties[T],C=Zc[T];(C===null||C.includes(g.tagName))&&(g.properties[T]=d(String(S||""),T,g))}}if(g.type==="element"){let T=n?!n.includes(g.tagName):u?u.includes(g.tagName):!1;if(!T&&r&&typeof y=="number"&&(T=!r(g,y,b)),T&&b&&typeof y=="number")return f&&g.children?b.children.splice(y,1,...g.children):b.children.splice(y,1),y}}}function Iw(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||Aw.test(e.slice(0,t))?e:""}const gg=/[#.]/g;function Ow(e,t){const n=e||"",r={};let o=0,u,l;for(;o<n.length;){gg.lastIndex=o;const f=gg.exec(n),d=n.slice(o,f?f.index:n.length);d&&(u?u==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,o+=d.length),f&&(u=f[0],o++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function Eg(e,t,n){const r=n?Dw(n):void 0;function o(u,l,...f){let d;if(u==null){d={type:"root",children:[]};const h=l;f.unshift(h)}else{d=Ow(u,t);const h=d.tagName.toLowerCase(),g=r?r.get(h):void 0;if(d.tagName=g||h,Rw(l))f.unshift(l);else for(const[y,b]of Object.entries(l))Pw(e,d.properties,y,b)}for(const h of f)Cf(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return o}function Rw(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const o=t[r];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const u=o;for(const l of u)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Pw(e,t,n,r){const o=Wc(e,n);let u;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;u=r}else typeof r=="boolean"?u=r:typeof r=="string"?o.spaceSeparated?u=l0(r):o.commaSeparated?u=Qm(r):o.commaOrSpaceSeparated?u=l0(Qm(r).join(" ")):u=yg(o,o.property,r):Array.isArray(r)?u=[...r]:u=o.property==="style"?Lw(r):String(r);if(Array.isArray(u)){const l=[];for(const f of u)l.push(yg(o,o.property,f));u=l}o.property==="className"&&Array.isArray(t.className)&&(u=t.className.concat(u)),t[o.property]=u}}function Cf(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Cf(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Cf(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function yg(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||oo(n)===oo(t)))return!0}return n}function Lw(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Dw(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Mw=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Fw=Eg(ta,"div"),Bw=Eg(Qi,"g",Mw);function Uw(e){const t=String(e),n=[];return{toOffset:o,toPoint:r};function r(u){if(typeof u=="number"&&u>-1&&u<=t.length){let l=0;for(;;){let f=n[l];if(f===void 0){const d=Tg(t,n[l-1]);f=d===-1?t.length+1:d+1,n[l]=f}if(f>u)return{line:l+1,column:u-(l>0?n[l-1]:0)+1,offset:u};l++}}}function o(u){if(u&&typeof u.line=="number"&&typeof u.column=="number"&&!Number.isNaN(u.line)&&!Number.isNaN(u.column)){for(;n.length<u.line;){const f=n[n.length-1],d=Tg(t,f),h=d===-1?t.length+1:d+1;if(f===h)break;n.push(h)}const l=(u.line>1?n[u.line-2]:0)+u.column-1;if(l<n[u.line-1])return l}}}function Tg(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
37
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const mi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},bg={}.hasOwnProperty,Hw=Object.prototype;function zw(e,t){const n=t||{};return kf({file:n.file||void 0,location:!1,schema:n.space==="svg"?Qi:ta,verbose:n.verbose||!1},e)}function kf(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},ma(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:_g(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const u=String(e.file),l=Uw(u),f=l.toPoint(0),d=l.toPoint(u.length);n.position={start:f,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},ma(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},ma(e,r,n),n}default:return n=jw(e,t),n}}function _g(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=kf(e,t[n]);r.push(o)}return r}function jw(e,t){const n=e.schema;e.schema=t.namespaceURI===mi.svg?Qi:ta;let r=-1;const o={};for(;++r<t.attrs.length;){const f=t.attrs[r],d=(f.prefix?f.prefix+":":"")+f.name;bg.call(Hw,d)||(o[d]=f.value)}const l=(e.schema.space==="svg"?Bw:Fw)(t.tagName,o,_g(e,t.childNodes));if(ma(e,t,l),l.tagName==="template"){const f=t,d=f.sourceCodeLocation,h=d&&d.startTag&&ns(d.startTag),g=d&&d.endTag&&ns(d.endTag),y=kf(e,f.content);h&&g&&e.file&&(y.position={start:h.end,end:g.start}),l.content=y}return e.schema=n,l}function ma(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=$w(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function $w(e,t,n){const r=ns(n);if(t.type==="element"){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const u={};let l;if(n.attrs)for(l in n.attrs)bg.call(n.attrs,l)&&(u[Wc(e.schema,l).property]=ns(n.attrs[l]));n.startTag;const f=ns(n.startTag),d=n.endTag?ns(n.endTag):void 0,h={opening:f};d&&(h.closing=d),h.properties=u,t.data={position:h}}}return r}function ns(e){const t=Sg({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Sg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Sg(e){return e.line&&e.column?e:void 0}class yo{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}yo.prototype.property={},yo.prototype.normal={},yo.prototype.space=null;function xg(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new yo(n,r,t)}function wf(e){return e.toLowerCase()}class vn{constructor(t,n){this.property=t,this.attribute=n}}vn.prototype.space=null,vn.prototype.boolean=!1,vn.prototype.booleanish=!1,vn.prototype.overloadedBoolean=!1,vn.prototype.number=!1,vn.prototype.commaSeparated=!1,vn.prototype.spaceSeparated=!1,vn.prototype.commaOrSpaceSeparated=!1,vn.prototype.mustUseProperty=!1,vn.prototype.defined=!1;let Vw=0;const Be=gi(),kt=gi(),Ag=gi(),oe=gi(),st=gi(),rs=gi(),bn=gi();function gi(){return Jl(2,++Vw)}const Nf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Be,booleanish:kt,commaOrSpaceSeparated:bn,commaSeparated:rs,number:oe,overloadedBoolean:Ag,spaceSeparated:st},Symbol.toStringTag,{value:"Module"})),vf=Object.keys(Nf);class If extends vn{constructor(t,n,r,o){let u=-1;if(super(t,n),Cg(this,"space",o),typeof r=="number")for(;++u<vf.length;){const l=vf[u];Cg(this,vf[u],(r&Nf[l])===Nf[l])}}}If.prototype.defined=!0;function Cg(e,t,n){n&&(e[t]=n)}const Yw={}.hasOwnProperty;function is(e){const t={},n={};let r;for(r in e.properties)if(Yw.call(e.properties,r)){const o=e.properties[r],u=new If(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[wf(r)]=r,n[wf(u.attribute)]=r}return new yo(t,n,e.space)}const kg=is({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),wg=is({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ng(e,t){return t in e?e[t]:t}function vg(e,t){return Ng(e,t.toLowerCase())}const Ig=is({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:vg,properties:{xmlns:null,xmlnsXLink:null}}),Og=is({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:st,ariaCurrent:null,ariaDescribedBy:st,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:st,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:st,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:st,ariaLevel:oe,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:st,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:st,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:kt,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null}}),qw=is({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:vg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rs,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:Be,allowPaymentRequest:Be,allowUserMedia:Be,alt:null,as:null,async:Be,autoCapitalize:null,autoComplete:st,autoFocus:Be,autoPlay:Be,blocking:st,capture:null,charSet:null,checked:Be,cite:null,className:st,cols:oe,colSpan:null,content:null,contentEditable:kt,controls:Be,controlsList:st,coords:oe|rs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Be,defer:Be,dir:null,dirName:null,disabled:Be,download:Ag,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Be,formTarget:null,headers:st,height:oe,hidden:Be,high:oe,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:null,inert:Be,inputMode:null,integrity:null,is:null,isMap:Be,itemId:null,itemProp:st,itemRef:st,itemScope:Be,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Be,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Be,muted:Be,name:null,nonce:null,noModule:Be,noValidate:Be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored: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,onScrollEnd: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:Be,optimum:oe,pattern:null,ping:st,placeholder:null,playsInline:Be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Be,referrerPolicy:null,rel:st,required:Be,reversed:Be,rows:oe,rowSpan:oe,sandbox:st,scope:null,scoped:Be,seamless:Be,selected:Be,shadowRootClonable:Be,shadowRootDelegatesFocus:Be,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Be,useMap:null,value:kt,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Be,declare:Be,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Be,noHref:Be,noShade:Be,noWrap:Be,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Be,disableRemotePlayback:Be,prefix:null,property:null,results:oe,security:null,unselectable:null}}),Ww=is({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",transformOrigin:"transform-origin",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:Ng,properties:{about:bn,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:st,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Be,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:rs,g2:rs,glyphName:rs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:st,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bn,rev:bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bn,requiredFeatures:bn,requiredFonts:bn,requiredFormats:bn,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bn,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Gw=/^data[-\w.:]+$/i,Rg=/-[a-z]/g,Kw=/[A-Z]/g;function Qw(e,t){const n=wf(t);let r=t,o=vn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Gw.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(Rg,Jw);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!Rg.test(u)){let l=u.replace(Kw,Xw);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=If}return new o(r,t)}function Xw(e){return"-"+e.toLowerCase()}function Jw(e){return e.charAt(1).toUpperCase()}const Zw=xg([wg,kg,Ig,Og,qw],"html"),Pg=xg([wg,kg,Ig,Og,Ww],"svg"),Lg={}.hasOwnProperty;function Dg(e,t){const n=t||{};function r(o,...u){let l=r.invalid;const f=r.handlers;if(o&&Lg.call(o,e)){const d=String(o[e]);l=Lg.call(f,d)?f[d]:r.unknown}if(l)return l.call(this,o,...u)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const eN={},tN={}.hasOwnProperty,Mg=Dg("type",{handlers:{root:rN,element:aN,text:oN,comment:uN,doctype:sN}});function nN(e,t){const r=(t||eN).space;return Mg(e,r==="svg"?Pg:Zw)}function rN(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Of(e.children,n,t),ss(e,n),n}function iN(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Of(e.children,n,t),ss(e,n),n}function sN(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ss(e,t),t}function oN(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ss(e,t),t}function uN(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ss(e,t),t}function aN(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Pg);const o=[];let u;if(e.properties){for(u in e.properties)if(u!=="children"&&tN.call(e.properties,u)){const d=lN(r,u,e.properties[u]);d&&o.push(d)}}const l=r.space,f={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:mi[l],childNodes:[],parentNode:null};return f.childNodes=Of(e.children,f,r),ss(e,f),e.tagName==="template"&&e.content&&(f.content=iN(e.content,r)),f}function lN(e,t,n){const r=Qw(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Xm(n):c0(n));const o={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const u=o.name.indexOf(":");u<0?o.prefix="":(o.name=o.name.slice(u+1),o.prefix=r.attribute.slice(0,u)),o.namespace=mi[r.space]}return o}function Of(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const u=Mg(e[r],n);u.parentNode=t,o.push(u)}return o}function ss(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const cN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],fN=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ct="�";var A;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(A||(A={}));const ln={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Fg(e){return e>=55296&&e<=57343}function dN(e){return e>=56320&&e<=57343}function hN(e,t){return(e-55296)*1024+9216+t}function Bg(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ug(e){return e>=64976&&e<=65007||fN.has(e)}var W;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(W||(W={}));const pN=65536;class mN{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=pN,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:o,offset:u}=this,l=o+n,f=u+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,startOffset:f,endOffset:f}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(dN(n))return this.pos++,this._addGap(),hN(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(W.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Fg(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Bg(t)?this._err(W.controlCharacterInInputStream):Ug(t)&&this._err(W.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var He;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(He||(He={}));function Hg(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const gN=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),EN=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function yN(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=EN.get(e))!==null&&t!==void 0?t:e}var Pt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Pt||(Pt={}));const TN=32;var Dr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Dr||(Dr={}));function Rf(e){return e>=Pt.ZERO&&e<=Pt.NINE}function bN(e){return e>=Pt.UPPER_A&&e<=Pt.UPPER_F||e>=Pt.LOWER_A&&e<=Pt.LOWER_F}function _N(e){return e>=Pt.UPPER_A&&e<=Pt.UPPER_Z||e>=Pt.LOWER_A&&e<=Pt.LOWER_Z||Rf(e)}function SN(e){return e===Pt.EQUALS||_N(e)}var Lt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Lt||(Lt={}));var Er;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Er||(Er={}));class xN{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Lt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Er.Strict}startEntity(t){this.decodeMode=t,this.state=Lt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Lt.EntityStart:return t.charCodeAt(n)===Pt.NUM?(this.state=Lt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Lt.NamedEntity,this.stateNamedEntity(t,n));case Lt.NumericStart:return this.stateNumericStart(t,n);case Lt.NumericDecimal:return this.stateNumericDecimal(t,n);case Lt.NumericHex:return this.stateNumericHex(t,n);case Lt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|TN)===Pt.LOWER_X?(this.state=Lt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Lt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const u=r-n;this.result=this.result*Math.pow(o,u)+Number.parseInt(t.substr(n,u),o),this.consumed+=u}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Rf(o)||bN(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Rf(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Pt.SEMI)this.consumed+=1;else if(this.decodeMode===Er.Strict)return 0;return this.emitCodePoint(yN(this.result),this.consumed),this.errors&&(t!==Pt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],u=(o&Dr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=AN(r,o,this.treeIndex+Math.max(1,u),l),this.treeIndex<0)return this.result===0||this.decodeMode===Er.Attribute&&(u===0||SN(l))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],u=(o&Dr.VALUE_LENGTH)>>14,u!==0){if(l===Pt.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Er.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&Dr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Dr.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Lt.NamedEntity:return this.result!==0&&(this.decodeMode!==Er.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Lt.NumericDecimal:return this.emitNumericEntity(0,2);case Lt.NumericHex:return this.emitNumericEntity(0,3);case Lt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Lt.EntityStart:return 0}}}function AN(e,t,n,r){const o=(t&Dr.BRANCH_LENGTH)>>7,u=t&Dr.JUMP_TABLE;if(o===0)return u!==0&&r===u?n:-1;if(u){const d=r-u;return d<0||d>=o?-1:e[n+d]-1}let l=n,f=l+o-1;for(;l<=f;){const d=l+f>>>1,h=e[d];if(h<r)l=d+1;else if(h>r)f=d-1;else return e[d+o]}return-1}var Z;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Z||(Z={}));var Ei;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ei||(Ei={}));var In;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(In||(In={}));var U;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(U||(U={}));var p;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(p||(p={}));const CN=new Map([[U.A,p.A],[U.ADDRESS,p.ADDRESS],[U.ANNOTATION_XML,p.ANNOTATION_XML],[U.APPLET,p.APPLET],[U.AREA,p.AREA],[U.ARTICLE,p.ARTICLE],[U.ASIDE,p.ASIDE],[U.B,p.B],[U.BASE,p.BASE],[U.BASEFONT,p.BASEFONT],[U.BGSOUND,p.BGSOUND],[U.BIG,p.BIG],[U.BLOCKQUOTE,p.BLOCKQUOTE],[U.BODY,p.BODY],[U.BR,p.BR],[U.BUTTON,p.BUTTON],[U.CAPTION,p.CAPTION],[U.CENTER,p.CENTER],[U.CODE,p.CODE],[U.COL,p.COL],[U.COLGROUP,p.COLGROUP],[U.DD,p.DD],[U.DESC,p.DESC],[U.DETAILS,p.DETAILS],[U.DIALOG,p.DIALOG],[U.DIR,p.DIR],[U.DIV,p.DIV],[U.DL,p.DL],[U.DT,p.DT],[U.EM,p.EM],[U.EMBED,p.EMBED],[U.FIELDSET,p.FIELDSET],[U.FIGCAPTION,p.FIGCAPTION],[U.FIGURE,p.FIGURE],[U.FONT,p.FONT],[U.FOOTER,p.FOOTER],[U.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[U.FORM,p.FORM],[U.FRAME,p.FRAME],[U.FRAMESET,p.FRAMESET],[U.H1,p.H1],[U.H2,p.H2],[U.H3,p.H3],[U.H4,p.H4],[U.H5,p.H5],[U.H6,p.H6],[U.HEAD,p.HEAD],[U.HEADER,p.HEADER],[U.HGROUP,p.HGROUP],[U.HR,p.HR],[U.HTML,p.HTML],[U.I,p.I],[U.IMG,p.IMG],[U.IMAGE,p.IMAGE],[U.INPUT,p.INPUT],[U.IFRAME,p.IFRAME],[U.KEYGEN,p.KEYGEN],[U.LABEL,p.LABEL],[U.LI,p.LI],[U.LINK,p.LINK],[U.LISTING,p.LISTING],[U.MAIN,p.MAIN],[U.MALIGNMARK,p.MALIGNMARK],[U.MARQUEE,p.MARQUEE],[U.MATH,p.MATH],[U.MENU,p.MENU],[U.META,p.META],[U.MGLYPH,p.MGLYPH],[U.MI,p.MI],[U.MO,p.MO],[U.MN,p.MN],[U.MS,p.MS],[U.MTEXT,p.MTEXT],[U.NAV,p.NAV],[U.NOBR,p.NOBR],[U.NOFRAMES,p.NOFRAMES],[U.NOEMBED,p.NOEMBED],[U.NOSCRIPT,p.NOSCRIPT],[U.OBJECT,p.OBJECT],[U.OL,p.OL],[U.OPTGROUP,p.OPTGROUP],[U.OPTION,p.OPTION],[U.P,p.P],[U.PARAM,p.PARAM],[U.PLAINTEXT,p.PLAINTEXT],[U.PRE,p.PRE],[U.RB,p.RB],[U.RP,p.RP],[U.RT,p.RT],[U.RTC,p.RTC],[U.RUBY,p.RUBY],[U.S,p.S],[U.SCRIPT,p.SCRIPT],[U.SEARCH,p.SEARCH],[U.SECTION,p.SECTION],[U.SELECT,p.SELECT],[U.SOURCE,p.SOURCE],[U.SMALL,p.SMALL],[U.SPAN,p.SPAN],[U.STRIKE,p.STRIKE],[U.STRONG,p.STRONG],[U.STYLE,p.STYLE],[U.SUB,p.SUB],[U.SUMMARY,p.SUMMARY],[U.SUP,p.SUP],[U.TABLE,p.TABLE],[U.TBODY,p.TBODY],[U.TEMPLATE,p.TEMPLATE],[U.TEXTAREA,p.TEXTAREA],[U.TFOOT,p.TFOOT],[U.TD,p.TD],[U.TH,p.TH],[U.THEAD,p.THEAD],[U.TITLE,p.TITLE],[U.TR,p.TR],[U.TRACK,p.TRACK],[U.TT,p.TT],[U.U,p.U],[U.UL,p.UL],[U.SVG,p.SVG],[U.VAR,p.VAR],[U.WBR,p.WBR],[U.XMP,p.XMP]]);function os(e){var t;return(t=CN.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const re=p,kN={[Z.HTML]:new Set([re.ADDRESS,re.APPLET,re.AREA,re.ARTICLE,re.ASIDE,re.BASE,re.BASEFONT,re.BGSOUND,re.BLOCKQUOTE,re.BODY,re.BR,re.BUTTON,re.CAPTION,re.CENTER,re.COL,re.COLGROUP,re.DD,re.DETAILS,re.DIR,re.DIV,re.DL,re.DT,re.EMBED,re.FIELDSET,re.FIGCAPTION,re.FIGURE,re.FOOTER,re.FORM,re.FRAME,re.FRAMESET,re.H1,re.H2,re.H3,re.H4,re.H5,re.H6,re.HEAD,re.HEADER,re.HGROUP,re.HR,re.HTML,re.IFRAME,re.IMG,re.INPUT,re.LI,re.LINK,re.LISTING,re.MAIN,re.MARQUEE,re.MENU,re.META,re.NAV,re.NOEMBED,re.NOFRAMES,re.NOSCRIPT,re.OBJECT,re.OL,re.P,re.PARAM,re.PLAINTEXT,re.PRE,re.SCRIPT,re.SECTION,re.SELECT,re.SOURCE,re.STYLE,re.SUMMARY,re.TABLE,re.TBODY,re.TD,re.TEMPLATE,re.TEXTAREA,re.TFOOT,re.TH,re.THEAD,re.TITLE,re.TR,re.TRACK,re.UL,re.WBR,re.XMP]),[Z.MATHML]:new Set([re.MI,re.MO,re.MN,re.MS,re.MTEXT,re.ANNOTATION_XML]),[Z.SVG]:new Set([re.TITLE,re.FOREIGN_OBJECT,re.DESC]),[Z.XLINK]:new Set,[Z.XML]:new Set,[Z.XMLNS]:new Set},Pf=new Set([re.H1,re.H2,re.H3,re.H4,re.H5,re.H6]);U.STYLE,U.SCRIPT,U.XMP,U.IFRAME,U.NOEMBED,U.NOFRAMES,U.PLAINTEXT;var k;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(k||(k={}));const bt={DATA:k.DATA,RCDATA:k.RCDATA,RAWTEXT:k.RAWTEXT,SCRIPT_DATA:k.SCRIPT_DATA,PLAINTEXT:k.PLAINTEXT,CDATA_SECTION:k.CDATA_SECTION};function wN(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function To(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function NN(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Mr(e){return NN(e)||To(e)}function zg(e){return Mr(e)||wN(e)}function ga(e){return e+32}function jg(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function $g(e){return jg(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function vN(e){return e===A.NULL?W.nullCharacterReference:e>1114111?W.characterReferenceOutsideUnicodeRange:Fg(e)?W.surrogateCharacterReference:Ug(e)?W.noncharacterCharacterReference:Bg(e)||e===A.CARRIAGE_RETURN?W.controlCharacterReference:null}class IN{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=k.DATA,this.returnState=k.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new mN(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new xN(gN,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(W.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(W.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=vN(r);o&&this._err(o,1)}}:void 0)}_err(t,n=0){var r,o;(o=(r=this.handler).onParseError)===null||o===void 0||o.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:He.START_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:He.END_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:He.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:He.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Hg(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const o=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(W.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=os(t.tagName),t.type===He.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(W.endTagWithAttributes),t.selfClosing&&this._err(W.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case He.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case He.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case He.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:He.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=jg(t)?He.WHITESPACE_CHARACTER:t===A.NULL?He.NULL_CHARACTER:He.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(He.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=k.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Er.Attribute:Er.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===k.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case k.DATA:{this._stateData(t);break}case k.RCDATA:{this._stateRcdata(t);break}case k.RAWTEXT:{this._stateRawtext(t);break}case k.SCRIPT_DATA:{this._stateScriptData(t);break}case k.PLAINTEXT:{this._statePlaintext(t);break}case k.TAG_OPEN:{this._stateTagOpen(t);break}case k.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case k.TAG_NAME:{this._stateTagName(t);break}case k.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case k.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case k.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case k.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case k.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case k.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case k.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case k.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case k.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case k.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case k.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case k.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case k.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case k.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case k.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case k.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case k.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case k.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case k.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case k.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case k.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case k.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case k.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case k.BOGUS_COMMENT:{this._stateBogusComment(t);break}case k.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case k.COMMENT_START:{this._stateCommentStart(t);break}case k.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case k.COMMENT:{this._stateComment(t);break}case k.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case k.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case k.COMMENT_END:{this._stateCommentEnd(t);break}case k.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case k.DOCTYPE:{this._stateDoctype(t);break}case k.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case k.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case k.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case k.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case k.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case k.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case k.CDATA_SECTION:{this._stateCdataSection(t);break}case k.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case k.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case k.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case k.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=k.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=k.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=k.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Mr(t))this._createStartTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=k.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=k.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(W.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err(W.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(W.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=k.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Mr(t))this._createEndTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(W.missingEndTagName),this.state=k.DATA;break}case A.EOF:{this._err(W.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(W.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.tagName+=ct;break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(To(t)?ga(t):t)}}_stateRcdataLessThanSign(t){t===A.SOLIDUS?this.state=k.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Mr(t)?(this.state=k.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=k.BEFORE_ATTRIBUTE_NAME,!1;case A.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=k.SELF_CLOSING_START_TAG,!1;case A.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=k.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===A.SOLIDUS?this.state=k.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Mr(t)?(this.state=k.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case A.SOLIDUS:{this.state=k.SCRIPT_DATA_END_TAG_OPEN;break}case A.EXCLAMATION_MARK:{this.state=k.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=k.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Mr(t)?(this.state=k.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===A.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===A.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Mr(t)?(this._emitChars("<"),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Mr(t)?(this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(ln.SCRIPT,!1)&&$g(this.preprocessor.peek(ln.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<ln.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ln.SCRIPT,!1)&&$g(this.preprocessor.peek(ln.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<ln.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._err(W.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=k.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err(W.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.name+=ct;break}default:this.currentAttr.name+=String.fromCodePoint(To(t)?ga(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=k.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=k.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(W.missingAttributeValue),this.state=k.DATA,this.emitCurrentTagToken();break}default:this.state=k.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case A.QUOTATION_MARK:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=ct;break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=ct;break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=ct;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err(W.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=k.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._err(W.missingWhitespaceBetweenAttributes),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case A.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=k.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._err(W.unexpectedSolidusInTag),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case A.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.data+=ct;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(ln.DASH_DASH,!0)?(this._createCommentToken(ln.DASH_DASH.length+1),this.state=k.COMMENT_START):this._consumeSequenceIfMatch(ln.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(ln.DOCTYPE.length+1),this.state=k.DOCTYPE):this._consumeSequenceIfMatch(ln.CDATA_START,!0)?this.inForeignNode?this.state=k.CDATA_SECTION:(this._err(W.cdataInHtmlContent),this._createCommentToken(ln.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=k.BOGUS_COMMENT):this._ensureHibernation()||(this._err(W.incorrectlyOpenedComment),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case A.HYPHEN_MINUS:{this.state=k.COMMENT_START_DASH;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptClosingOfEmptyComment),this.state=k.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptClosingOfEmptyComment),this.state=k.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=k.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{n.data+="<",this.state=k.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.data+=ct;break}case A.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case A.EXCLAMATION_MARK:{n.data+="!",this.state=k.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=k.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=k.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err(W.nestedComment),this.state=k.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case A.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case A.EXCLAMATION_MARK:{this.state=k.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{n.data+="-";break}case A.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{n.data+="--!",this.state=k.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err(W.incorrectlyClosedComment),this.state=k.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=k.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.EOF:{this._err(W.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingWhitespaceBeforeDoctypeName),this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(To(t))this._createDoctypeToken(String.fromCharCode(ga(t))),this.state=k.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err(W.unexpectedNullCharacter),this._createDoctypeToken(ct),this.state=k.DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this._err(W.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=k.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.name+=ct;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(To(t)?ga(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(ln.PUBLIC,!1)?this.state=k.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ln.SYSTEM,!1)?this.state=k.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(W.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(W.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(W.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(W.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(W.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.publicId+=ct;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.publicId+=ct;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.QUOTATION_MARK:{this._err(W.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(W.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(W.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(W.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(W.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(W.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.systemId+=ct;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.systemId+=ct;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.NULL:{this._err(W.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=k.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err(W.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=k.CDATA_SECTION_END:(this._emitChars("]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=k.DATA;break}case A.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&zg(this.preprocessor.peek(1))?k.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){zg(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err(W.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Vg=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),Yg=new Set([...Vg,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),Ea=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),ON=new Set([...Ea,p.OL,p.UL]),RN=new Set([...Ea,p.BUTTON]),qg=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),Wg=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),PN=new Set([p.TR,p.TEMPLATE,p.HTML]),LN=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),DN=new Set([p.TABLE,p.TEMPLATE,p.HTML]),MN=new Set([p.TD,p.TH]);class FN{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Z.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const o=this._indexOf(t)+1;this.items.splice(o,0,n),this.tagIDs.splice(o,0,r),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Z.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Pf,Z.HTML)}popUntilTableCellPopped(){this.popUntilPopped(MN,Z.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(DN,Z.HTML)}clearBackToTableBodyContext(){this.clearBackTo(LN,Z.HTML)}clearBackToTableRowContext(){this.clearBackTo(PN,Z.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===p.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===p.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const o=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Z.HTML:{if(o===t)return!0;if(n.has(o))return!1;break}case Z.SVG:{if(Wg.has(o))return!1;break}case Z.MATHML:{if(qg.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ea)}hasInListItemScope(t){return this.hasInDynamicScope(t,ON)}hasInButtonScope(t){return this.hasInDynamicScope(t,RN)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Z.HTML:{if(Pf.has(n))return!0;if(Ea.has(n))return!1;break}case Z.SVG:{if(Wg.has(n))return!1;break}case Z.MATHML:{if(qg.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Z.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case p.OPTION:case p.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Vg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Yg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Yg.has(this.currentTagId);)this.pop()}}const Lf=3;var ir;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ir||(ir={}));const Gg={type:ir.Marker};class BN{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],o=n.length,u=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let f=0;f<this.entries.length;f++){const d=this.entries[f];if(d.type===ir.Marker)break;const{element:h}=d;if(this.treeAdapter.getTagName(h)===u&&this.treeAdapter.getNamespaceURI(h)===l){const g=this.treeAdapter.getAttrList(h);g.length===o&&r.push({idx:f,attrs:g})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Lf)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Lf)return;const o=new Map(n.map(l=>[l.name,l.value]));let u=0;for(let l=0;l<r.length;l++){const f=r[l];f.attrs.every(d=>o.get(d.name)===d.value)&&(u+=1,u>=Lf&&this.entries.splice(f.idx,1))}}insertMarker(){this.entries.unshift(Gg)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ir.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ir.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Gg);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ir.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ir.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ir.Element&&n.element===t)}}const Fr={createDocument(){return{nodeName:"#document",mode:In.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const o=e.childNodes.find(u=>u.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{const u={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Fr.appendChild(e,u)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Fr.isTextNode(n)){n.value+=t;return}}Fr.appendChild(e,Fr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Fr.isTextNode(r)?r.value+=t:Fr.insertBefore(e,Fr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation=Q(Q({},e.sourceCodeLocation),t)}},Kg="html",UN="about:legacy-compat",HN="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Qg=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],zN=[...Qg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],jN=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Xg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],$N=[...Xg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Jg(e,t){return t.some(n=>e.startsWith(n))}function VN(e){return e.name===Kg&&e.publicId===null&&(e.systemId===null||e.systemId===UN)}function YN(e){if(e.name!==Kg)return In.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===HN)return In.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),jN.has(n))return In.QUIRKS;let r=t===null?zN:Qg;if(Jg(n,r))return In.QUIRKS;if(r=t===null?Xg:$N,Jg(n,r))return In.LIMITED_QUIRKS}return In.NO_QUIRKS}const Zg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},qN="definitionurl",WN="definitionURL",GN=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),KN=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Z.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Z.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Z.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Z.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Z.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Z.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Z.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Z.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Z.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Z.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Z.XMLNS}]]),QN=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),XN=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function JN(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:r})=>r===Ei.COLOR||r===Ei.SIZE||r===Ei.FACE)||XN.has(t)}function e1(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===qN){e.attrs[t].name=WN;break}}function t1(e){for(let t=0;t<e.attrs.length;t++){const n=GN.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Df(e){for(let t=0;t<e.attrs.length;t++){const n=KN.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function ZN(e){const t=QN.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=os(e.tagName))}function e3(e,t){return t===Z.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function t3(e,t,n){if(t===Z.MATHML&&e===p.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ei.ENCODING){const o=n[r].value.toLowerCase();return o===Zg.TEXT_HTML||o===Zg.APPLICATION_XML}}return t===Z.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function n3(e,t,n,r){return(!r||r===Z.HTML)&&t3(e,t,n)||(!r||r===Z.MATHML)&&e3(e,t)}const r3="hidden",i3=8,s3=3;var v;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(v||(v={}));const o3={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},n1=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),r1={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Fr,onParseError:null};class i1{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=v.INITIAL,this.originalInsertionMode=v.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=Q(Q({},r1),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n!=null?n:this.treeAdapter.createDocument(),this.tokenizer=new IN(this.options,this),this.activeFormattingElements=new BN(this.treeAdapter),this.fragmentContextID=r?os(this.treeAdapter.getTagName(r)):p.UNKNOWN,this._setContextModes(r!=null?r:this.document,this.fragmentContextID),this.openElements=new FN(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r=Q(Q({},r1),n);t!=null||(t=r.treeAdapter.createElement(U.TEMPLATE,Z.HTML,[]));const o=r.treeAdapter.createElement("documentmock",Z.HTML,[]),u=new this(r,o,t);return u.fragmentContextID===p.TEMPLATE&&u.tmplInsertionModeStack.unshift(v.IN_TEMPLATE),u._initTokenizerForFragmentParsing(),u._insertFakeRootElement(),u._resetInsertionMode(),u._findFormInFragmentContext(),u}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var o;if(!this.onParseError)return;const u=(o=t.location)!==null&&o!==void 0?o:o3,l={code:n,startLine:u.startLine,startCol:u.startCol,startOffset:u.startOffset,endLine:r?u.startLine:u.endLine,endCol:r?u.startCol:u.endCol,endOffset:r?u.startOffset:u.endOffset};this.onParseError(l)}onItemPush(t,n,r){var o,u;(u=(o=this.treeAdapter).onItemPush)===null||u===void 0||u.call(o,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(r=this.treeAdapter).onItemPop)===null||o===void 0||o.call(r,t,this.openElements.current),n){let u,l;this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,l=this.fragmentContextID):{current:u,currentTagId:l}=this.openElements,this._setContextModes(u,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Z.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Z.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=v.TEXT}switchToPlaintextParsing(){this.insertionMode=v.TEXT,this.originalInsertionMode=v.IN_BODY,this.tokenizer.state=bt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===U.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Z.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=bt.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=bt.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=bt.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=bt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,o),t.location){const l=this.treeAdapter.getChildNodes(this.document).find(f=>this.treeAdapter.isDocumentTypeNode(f));l&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&$e(Q({},n),{startTag:n});this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r!=null?r:this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Z.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Z.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(U.HTML,Z.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(n),u=r?o.lastIndexOf(r):o.length,l=o[u-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:d,endCol:h,endOffset:g}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:d,endCol:h,endOffset:g})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,o=this.treeAdapter.getTagName(t),u=n.type===He.END_TAG&&o===n.tagName?{endTag:Q({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,u)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===p.SVG&&this.treeAdapter.getTagName(n)===U.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Z.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Z.HTML)}_processToken(t){switch(t.type){case He.CHARACTER:{this.onCharacter(t);break}case He.NULL_CHARACTER:{this.onNullCharacter(t);break}case He.COMMENT:{this.onComment(t);break}case He.DOCTYPE:{this.onDoctype(t);break}case He.START_TAG:{this._processStartTag(t);break}case He.END_TAG:{this.onEndTag(t);break}case He.EOF:{this.onEof(t);break}case He.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),u=this.treeAdapter.getAttrList(n);return n3(t,o,u,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===ir.Marker||this.openElements.contains(o.element)),r=n===-1?t-1:n-1;for(let o=r;o>=0;o--){const u=this.activeFormattingElements.entries[o];this._insertElement(u.token,this.treeAdapter.getNamespaceURI(u.element)),u.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=v.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=v.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=v.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=v.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=v.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=v.IN_TABLE;return}case p.BODY:{this.insertionMode=v.IN_BODY;return}case p.FRAMESET:{this.insertionMode=v.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?v.AFTER_HEAD:v.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=v.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=v.IN_HEAD;return}break}}this.insertionMode=v.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===p.TEMPLATE)break;if(r===p.TABLE){this.insertionMode=v.IN_SELECT_IN_TABLE;return}}this.insertionMode=v.IN_SELECT}_isElementCausesFosterParenting(t){return n1.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Z.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case p.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return kN[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Mv(this,t);return}switch(this.insertionMode){case v.INITIAL:{bo(this,t);break}case v.BEFORE_HTML:{_o(this,t);break}case v.BEFORE_HEAD:{So(this,t);break}case v.IN_HEAD:{xo(this,t);break}case v.IN_HEAD_NO_SCRIPT:{Ao(this,t);break}case v.AFTER_HEAD:{Co(this,t);break}case v.IN_BODY:case v.IN_CAPTION:case v.IN_CELL:case v.IN_TEMPLATE:{o1(this,t);break}case v.TEXT:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{Uf(this,t);break}case v.IN_TABLE_TEXT:{p1(this,t);break}case v.IN_COLUMN_GROUP:{ba(this,t);break}case v.AFTER_BODY:{xa(this,t);break}case v.AFTER_AFTER_BODY:{Aa(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Dv(this,t);return}switch(this.insertionMode){case v.INITIAL:{bo(this,t);break}case v.BEFORE_HTML:{_o(this,t);break}case v.BEFORE_HEAD:{So(this,t);break}case v.IN_HEAD:{xo(this,t);break}case v.IN_HEAD_NO_SCRIPT:{Ao(this,t);break}case v.AFTER_HEAD:{Co(this,t);break}case v.TEXT:{this._insertCharacters(t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{Uf(this,t);break}case v.IN_COLUMN_GROUP:{ba(this,t);break}case v.AFTER_BODY:{xa(this,t);break}case v.AFTER_AFTER_BODY:{Aa(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ff(this,t);return}switch(this.insertionMode){case v.INITIAL:case v.BEFORE_HTML:case v.BEFORE_HEAD:case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:case v.IN_BODY:case v.IN_TABLE:case v.IN_CAPTION:case v.IN_COLUMN_GROUP:case v.IN_TABLE_BODY:case v.IN_ROW:case v.IN_CELL:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:case v.IN_TEMPLATE:case v.IN_FRAMESET:case v.AFTER_FRAMESET:{Ff(this,t);break}case v.IN_TABLE_TEXT:{No(this,t);break}case v.AFTER_BODY:{h3(this,t);break}case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{p3(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case v.INITIAL:{m3(this,t);break}case v.BEFORE_HEAD:case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:{this._err(t,W.misplacedDoctype);break}case v.IN_TABLE_TEXT:{No(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,W.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Fv(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case v.INITIAL:{bo(this,t);break}case v.BEFORE_HTML:{g3(this,t);break}case v.BEFORE_HEAD:{y3(this,t);break}case v.IN_HEAD:{$n(this,t);break}case v.IN_HEAD_NO_SCRIPT:{_3(this,t);break}case v.AFTER_HEAD:{x3(this,t);break}case v.IN_BODY:{qt(this,t);break}case v.IN_TABLE:{us(this,t);break}case v.IN_TABLE_TEXT:{No(this,t);break}case v.IN_CAPTION:{Tv(this,t);break}case v.IN_COLUMN_GROUP:{Hf(this,t);break}case v.IN_TABLE_BODY:{_a(this,t);break}case v.IN_ROW:{Sa(this,t);break}case v.IN_CELL:{Sv(this,t);break}case v.IN_SELECT:{E1(this,t);break}case v.IN_SELECT_IN_TABLE:{Av(this,t);break}case v.IN_TEMPLATE:{kv(this,t);break}case v.AFTER_BODY:{Nv(this,t);break}case v.IN_FRAMESET:{vv(this,t);break}case v.AFTER_FRAMESET:{Ov(this,t);break}case v.AFTER_AFTER_BODY:{Pv(this,t);break}case v.AFTER_AFTER_FRAMESET:{Lv(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Bv(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case v.INITIAL:{bo(this,t);break}case v.BEFORE_HTML:{E3(this,t);break}case v.BEFORE_HEAD:{T3(this,t);break}case v.IN_HEAD:{b3(this,t);break}case v.IN_HEAD_NO_SCRIPT:{S3(this,t);break}case v.AFTER_HEAD:{A3(this,t);break}case v.IN_BODY:{Ta(this,t);break}case v.TEXT:{lv(this,t);break}case v.IN_TABLE:{ko(this,t);break}case v.IN_TABLE_TEXT:{No(this,t);break}case v.IN_CAPTION:{bv(this,t);break}case v.IN_COLUMN_GROUP:{_v(this,t);break}case v.IN_TABLE_BODY:{zf(this,t);break}case v.IN_ROW:{g1(this,t);break}case v.IN_CELL:{xv(this,t);break}case v.IN_SELECT:{y1(this,t);break}case v.IN_SELECT_IN_TABLE:{Cv(this,t);break}case v.IN_TEMPLATE:{wv(this,t);break}case v.AFTER_BODY:{b1(this,t);break}case v.IN_FRAMESET:{Iv(this,t);break}case v.AFTER_FRAMESET:{Rv(this,t);break}case v.AFTER_AFTER_BODY:{Aa(this,t);break}}}onEof(t){switch(this.insertionMode){case v.INITIAL:{bo(this,t);break}case v.BEFORE_HTML:{_o(this,t);break}case v.BEFORE_HEAD:{So(this,t);break}case v.IN_HEAD:{xo(this,t);break}case v.IN_HEAD_NO_SCRIPT:{Ao(this,t);break}case v.AFTER_HEAD:{Co(this,t);break}case v.IN_BODY:case v.IN_TABLE:case v.IN_CAPTION:case v.IN_COLUMN_GROUP:case v.IN_TABLE_BODY:case v.IN_ROW:case v.IN_CELL:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:{d1(this,t);break}case v.TEXT:{cv(this,t);break}case v.IN_TABLE_TEXT:{No(this,t);break}case v.IN_TEMPLATE:{T1(this,t);break}case v.AFTER_BODY:case v.IN_FRAMESET:case v.AFTER_FRAMESET:case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{Bf(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:case v.TEXT:case v.IN_COLUMN_GROUP:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:case v.IN_FRAMESET:case v.AFTER_FRAMESET:{this._insertCharacters(t);break}case v.IN_BODY:case v.IN_CAPTION:case v.IN_CELL:case v.IN_TEMPLATE:case v.AFTER_BODY:case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{s1(this,t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{Uf(this,t);break}case v.IN_TABLE_TEXT:{h1(this,t);break}}}}function u3(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):f1(e,t),n}function a3(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function l3(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let u=0,l=o;l!==n;u++,l=o){o=e.openElements.getCommonAncestor(l);const f=e.activeFormattingElements.getElementEntry(l),d=f&&u>=s3;!f||d?(d&&e.activeFormattingElements.removeEntry(f),e.openElements.remove(l)):(l=c3(e,f),r===t&&(e.activeFormattingElements.bookmark=f),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function c3(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function f3(e,t,n){const r=e.treeAdapter.getTagName(t),o=os(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const u=e.treeAdapter.getNamespaceURI(t);o===p.TEMPLATE&&u===Z.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function d3(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,u=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,u),e.treeAdapter.appendChild(t,u),e.activeFormattingElements.insertElementAfterBookmark(u,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,u,o.tagID)}function Mf(e,t){for(let n=0;n<i3;n++){const r=u3(e,t);if(!r)break;const o=a3(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const u=l3(e,o,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(u),l&&f3(e,l,u),d3(e,o,r)}}function Ff(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function h3(e,t){e._appendCommentNode(t,e.openElements.items[0])}function p3(e,t){e._appendCommentNode(t,e.document)}function Bf(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const u=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(u);l&&!l.endTag&&e._setEndLocation(u,t)}}}}function m3(e,t){e._setDocumentType(t);const n=t.forceQuirks?In.QUIRKS:YN(t);VN(t)||e._err(t,W.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=v.BEFORE_HTML}function bo(e,t){e._err(t,W.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,In.QUIRKS),e.insertionMode=v.BEFORE_HTML,e._processToken(t)}function g3(e,t){t.tagID===p.HTML?(e._insertElement(t,Z.HTML),e.insertionMode=v.BEFORE_HEAD):_o(e,t)}function E3(e,t){const n=t.tagID;(n===p.HTML||n===p.HEAD||n===p.BODY||n===p.BR)&&_o(e,t)}function _o(e,t){e._insertFakeRootElement(),e.insertionMode=v.BEFORE_HEAD,e._processToken(t)}function y3(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.HEAD:{e._insertElement(t,Z.HTML),e.headElement=e.openElements.current,e.insertionMode=v.IN_HEAD;break}default:So(e,t)}}function T3(e,t){const n=t.tagID;n===p.HEAD||n===p.BODY||n===p.HTML||n===p.BR?So(e,t):e._err(t,W.endTagWithoutMatchingOpenElement)}function So(e,t){e._insertFakeElement(U.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=v.IN_HEAD,e._processToken(t)}function $n(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,bt.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,bt.RAWTEXT):(e._insertElement(t,Z.HTML),e.insertionMode=v.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,bt.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,bt.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=v.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(v.IN_TEMPLATE);break}case p.HEAD:{e._err(t,W.misplacedStartTagForHeadElement);break}default:xo(e,t)}}function b3(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=v.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{xo(e,t);break}case p.TEMPLATE:{yi(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function yi(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,W.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,W.endTagWithoutMatchingOpenElement)}function xo(e,t){e.openElements.pop(),e.insertionMode=v.AFTER_HEAD,e._processToken(t)}function _3(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{$n(e,t);break}case p.NOSCRIPT:{e._err(t,W.nestedNoscriptInHead);break}default:Ao(e,t)}}function S3(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=v.IN_HEAD;break}case p.BR:{Ao(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function Ao(e,t){const n=t.type===He.EOF?W.openElementsLeftAfterEof:W.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=v.IN_HEAD,e._processToken(t)}function x3(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.BODY:{e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=v.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,Z.HTML),e.insertionMode=v.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,W.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),$n(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,W.misplacedStartTagForHeadElement);break}default:Co(e,t)}}function A3(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{Co(e,t);break}case p.TEMPLATE:{yi(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function Co(e,t){e._insertFakeElement(U.BODY,p.BODY),e.insertionMode=v.IN_BODY,ya(e,t)}function ya(e,t){switch(t.type){case He.CHARACTER:{o1(e,t);break}case He.WHITESPACE_CHARACTER:{s1(e,t);break}case He.COMMENT:{Ff(e,t);break}case He.START_TAG:{qt(e,t);break}case He.END_TAG:{Ta(e,t);break}case He.EOF:{d1(e,t);break}}}function s1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function o1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function C3(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function k3(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function w3(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Z.HTML),e.insertionMode=v.IN_FRAMESET)}function N3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function v3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Pf.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Z.HTML)}function I3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function O3(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,Z.HTML),n||(e.formElement=e.openElements.current))}function R3(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.tagIDs[r];if(n===p.LI&&o===p.LI||(n===p.DD||n===p.DT)&&(o===p.DD||o===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==p.ADDRESS&&o!==p.DIV&&o!==p.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function P3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.tokenizer.state=bt.PLAINTEXT}function L3(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1}function D3(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(U.A);n&&(Mf(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function M3(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function F3(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(Mf(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function B3(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function U3(e,t){e.treeAdapter.getDocumentMode(e.document)!==In.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=v.IN_TABLE}function u1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function a1(e){const t=Hg(e,Ei.TYPE);return t!=null&&t.toLowerCase()===r3}function H3(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),a1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function z3(e,t){e._appendElement(t,Z.HTML),t.ackSelfClosing=!0}function j3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $3(e,t){t.tagName=U.IMG,t.tagID=p.IMG,u1(e,t)}function V3(e,t){e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.tokenizer.state=bt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=v.TEXT}function Y3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function q3(e,t){e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function l1(e,t){e._switchToTextParsing(t,bt.RAWTEXT)}function W3(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===v.IN_TABLE||e.insertionMode===v.IN_CAPTION||e.insertionMode===v.IN_TABLE_BODY||e.insertionMode===v.IN_ROW||e.insertionMode===v.IN_CELL?v.IN_SELECT_IN_TABLE:v.IN_SELECT}function G3(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function K3(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Z.HTML)}function Q3(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,Z.HTML)}function X3(e,t){e._reconstructActiveFormattingElements(),e1(t),Df(t),t.selfClosing?e._appendElement(t,Z.MATHML):e._insertElement(t,Z.MATHML),t.ackSelfClosing=!0}function J3(e,t){e._reconstructActiveFormattingElements(),t1(t),Df(t),t.selfClosing?e._appendElement(t,Z.SVG):e._insertElement(t,Z.SVG),t.ackSelfClosing=!0}function c1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function qt(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{M3(e,t);break}case p.A:{D3(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{v3(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{N3(e,t);break}case p.LI:case p.DD:case p.DT:{R3(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{u1(e,t);break}case p.HR:{j3(e,t);break}case p.RB:case p.RTC:{K3(e,t);break}case p.RT:case p.RP:{Q3(e,t);break}case p.PRE:case p.LISTING:{I3(e,t);break}case p.XMP:{Y3(e,t);break}case p.SVG:{J3(e,t);break}case p.HTML:{C3(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{$n(e,t);break}case p.BODY:{k3(e,t);break}case p.FORM:{O3(e,t);break}case p.NOBR:{F3(e,t);break}case p.MATH:{X3(e,t);break}case p.TABLE:{U3(e,t);break}case p.INPUT:{H3(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{z3(e,t);break}case p.IMAGE:{$3(e,t);break}case p.BUTTON:{L3(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{B3(e,t);break}case p.IFRAME:{q3(e,t);break}case p.SELECT:{W3(e,t);break}case p.OPTION:case p.OPTGROUP:{G3(e,t);break}case p.NOEMBED:case p.NOFRAMES:{l1(e,t);break}case p.FRAMESET:{w3(e,t);break}case p.TEXTAREA:{V3(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?l1(e,t):c1(e,t);break}case p.PLAINTEXT:{P3(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:c1(e,t)}}function Z3(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=v.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function ev(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=v.AFTER_BODY,b1(e,t))}function tv(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function nv(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):n&&e.openElements.remove(n))}function rv(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(U.P,p.P),e._closePElement()}function iv(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function sv(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function ov(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function uv(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function av(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(U.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function f1(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const u=e.openElements.items[o],l=e.openElements.tagIDs[o];if(r===l&&(r!==p.UNKNOWN||e.treeAdapter.getTagName(u)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(u,l))break}}function Ta(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{Mf(e,t);break}case p.P:{rv(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{tv(e,t);break}case p.LI:{iv(e);break}case p.DD:case p.DT:{sv(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{ov(e);break}case p.BR:{av(e);break}case p.BODY:{Z3(e,t);break}case p.HTML:{ev(e,t);break}case p.FORM:{nv(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{uv(e,t);break}case p.TEMPLATE:{yi(e,t);break}default:f1(e,t)}}function d1(e,t){e.tmplInsertionModeStack.length>0?T1(e,t):Bf(e,t)}function lv(e,t){var n;t.tagID===p.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function cv(e,t){e._err(t,W.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Uf(e,t){if(e.openElements.currentTagId!==void 0&&n1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=v.IN_TABLE_TEXT,t.type){case He.CHARACTER:{p1(e,t);break}case He.WHITESPACE_CHARACTER:{h1(e,t);break}}else wo(e,t)}function fv(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Z.HTML),e.insertionMode=v.IN_CAPTION}function dv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=v.IN_COLUMN_GROUP}function hv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.COLGROUP,p.COLGROUP),e.insertionMode=v.IN_COLUMN_GROUP,Hf(e,t)}function pv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=v.IN_TABLE_BODY}function mv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.TBODY,p.TBODY),e.insertionMode=v.IN_TABLE_BODY,_a(e,t)}function gv(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Ev(e,t){a1(t)?e._appendElement(t,Z.HTML):wo(e,t),t.ackSelfClosing=!0}function yv(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Z.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function us(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{mv(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{$n(e,t);break}case p.COL:{hv(e,t);break}case p.FORM:{yv(e,t);break}case p.TABLE:{gv(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{pv(e,t);break}case p.INPUT:{Ev(e,t);break}case p.CAPTION:{fv(e,t);break}case p.COLGROUP:{dv(e,t);break}default:wo(e,t)}}function ko(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{yi(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:wo(e,t)}}function wo(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ya(e,t),e.fosterParentingEnabled=n}function h1(e,t){e.pendingCharacterTokens.push(t)}function p1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function No(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)wo(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const m1=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function Tv(e,t){const n=t.tagID;m1.has(n)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_TABLE,us(e,t)):qt(e,t)}function bv(e,t){const n=t.tagID;switch(n){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_TABLE,n===p.TABLE&&ko(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Ta(e,t)}}function Hf(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.COL:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{$n(e,t);break}default:ba(e,t)}}function _v(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=v.IN_TABLE);break}case p.TEMPLATE:{yi(e,t);break}case p.COL:break;default:ba(e,t)}}function ba(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=v.IN_TABLE,e._processToken(t))}function _a(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Z.HTML),e.insertionMode=v.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(U.TR,p.TR),e.insertionMode=v.IN_ROW,Sa(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE,us(e,t));break}default:us(e,t)}}function zf(e,t){const n=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE,ko(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:ko(e,t)}}function Sa(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Z.HTML),e.insertionMode=v.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,_a(e,t));break}default:us(e,t)}}function g1(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,zf(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,zf(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:ko(e,t)}}function Sv(e,t){const n=t.tagID;m1.has(n)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),Sa(e,t)):qt(e,t)}function xv(e,t){const n=t.tagID;switch(n){case p.TD:case p.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),g1(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:Ta(e,t)}}function E1(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,Z.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Z.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{$n(e,t);break}}}function y1(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{yi(e,t);break}}}function Av(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):E1(e,t)}function Cv(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):y1(e,t)}function kv(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{$n(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=v.IN_TABLE,e.insertionMode=v.IN_TABLE,us(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=v.IN_COLUMN_GROUP,e.insertionMode=v.IN_COLUMN_GROUP,Hf(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=v.IN_TABLE_BODY,e.insertionMode=v.IN_TABLE_BODY,_a(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=v.IN_ROW,e.insertionMode=v.IN_ROW,Sa(e,t);break}default:e.tmplInsertionModeStack[0]=v.IN_BODY,e.insertionMode=v.IN_BODY,qt(e,t)}}function wv(e,t){t.tagID===p.TEMPLATE&&yi(e,t)}function T1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Bf(e,t)}function Nv(e,t){t.tagID===p.HTML?qt(e,t):xa(e,t)}function b1(e,t){var n;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=v.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else xa(e,t)}function xa(e,t){e.insertionMode=v.IN_BODY,ya(e,t)}function vv(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.FRAMESET:{e._insertElement(t,Z.HTML);break}case p.FRAME:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{$n(e,t);break}}}function Iv(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=v.AFTER_FRAMESET))}function Ov(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.NOFRAMES:{$n(e,t);break}}}function Rv(e,t){t.tagID===p.HTML&&(e.insertionMode=v.AFTER_AFTER_FRAMESET)}function Pv(e,t){t.tagID===p.HTML?qt(e,t):Aa(e,t)}function Aa(e,t){e.insertionMode=v.IN_BODY,ya(e,t)}function Lv(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.NOFRAMES:{$n(e,t);break}}}function Dv(e,t){t.chars=ct,e._insertCharacters(t)}function Mv(e,t){e._insertCharacters(t),e.framesetOk=!1}function _1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Z.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Fv(e,t){if(JN(t))_1(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Z.MATHML?e1(t):r===Z.SVG&&(ZN(t),t1(t)),Df(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Bv(e,t){if(t.tagID===p.P||t.tagID===p.BR){_1(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Z.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}U.AREA,U.BASE,U.BASEFONT,U.BGSOUND,U.BR,U.COL,U.EMBED,U.FRAME,U.HR,U.IMG,U.INPUT,U.KEYGEN,U.LINK,U.META,U.PARAM,U.SOURCE,U.TRACK,U.WBR;const Uv=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Hv=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),S1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function x1(e,t){const n=Qv(e),r=Dg("type",{handlers:{root:zv,element:jv,text:$v,comment:C1,doctype:Vv,raw:qv},unknown:Wv}),o={parser:n?new i1(S1):i1.getFragmentParser(void 0,S1),handle(f){r(f,o)},stitches:!1,options:t||{}};r(e,o),as(o,nr());const u=n?o.parser.document:o.parser.getFragment(),l=zw(u,{file:o.options.file});return o.stitches&&ha(l,"comment",function(f,d,h){const g=f;if(g.value.stitch&&h&&d!==void 0){const y=h.children;return y[d]=g.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function A1(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function zv(e,t){A1(e.children,t)}function jv(e,t){Gv(e,t),A1(e.children,t),Kv(e,t)}function $v(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:He.CHARACTER,chars:e.value,location:vo(e)};as(t,nr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Vv(e,t){const n={type:He.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:vo(e)};as(t,nr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Yv(e,t){t.stitches=!0;const n=Xv(e);if("children"in e&&"children"in n){const r=x1({type:"root",children:e.children},t.options);n.children=r.children}C1({type:"comment",value:{stitch:n}},t)}function C1(e,t){const n=e.value,r={type:He.COMMENT,data:n,location:vo(e)};as(t,nr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function qv(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,k1(t,nr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Uv,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Wv(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Yv(n,t);else{let r="";throw Hv.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function as(e,t){k1(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=bt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function k1(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Gv(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===bt.PLAINTEXT)return;as(t,nr(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:mi.html;o===mi.html&&n==="svg"&&(o=mi.svg);const u=nN($e(Q({},e),{children:[]}),{space:o===mi.svg?"svg":"html"}),l={type:He.START_TAG,tagName:n,tagID:os(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in u?u.attrs:[],location:vo(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Kv(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&cN.includes(n)||t.parser.tokenizer.state===bt.PLAINTEXT)return;as(t,na(e));const r={type:He.END_TAG,tagName:n,tagID:os(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:vo(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===bt.RCDATA||t.parser.tokenizer.state===bt.RAWTEXT||t.parser.tokenizer.state===bt.SCRIPT_DATA)&&(t.parser.tokenizer.state=bt.DATA)}function Qv(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function vo(e){const t=nr(e)||{line:void 0,column:void 0,offset:void 0},n=na(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Xv(e){return"children"in e?ts($e(Q({},e),{children:[]})):ts(e)}function Jv(e){return function(t,n){return x1(t,$e(Q({},e),{file:n}))}}function w1(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function Zv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function eI(e,t,n){const o=fa((n||{}).ignore||[]),u=tI(t);let l=-1;for(;++l<u.length;)sg(e,"text",f);function f(h,g){let y=-1,b;for(;++y<g.length;){const T=g[y],S=b?b.children:void 0;if(o(T,S?S.indexOf(T):void 0,b))return;b=T}if(b)return d(h,g)}function d(h,g){const y=g[g.length-1],b=u[l][0],T=u[l][1];let S=0;const O=y.children.indexOf(h);let L=!1,V=[];b.lastIndex=0;let j=b.exec(h.value);for(;j;){const ee=j.index,he={index:j.index,input:j.input,stack:[...g,h]};let F=T(...j,he);if(typeof F=="string"&&(F=F.length>0?{type:"text",value:F}:void 0),F===!1?b.lastIndex=ee+1:(S!==ee&&V.push({type:"text",value:h.value.slice(S,ee)}),Array.isArray(F)?V.push(...F):F&&V.push(F),S=ee+j[0].length,L=!0),!b.global)break;j=b.exec(h.value)}return L?(S<h.value.length&&V.push({type:"text",value:h.value.slice(S)}),y.children.splice(O,1,...V)):V=[h],O+V.length}}function tI(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([nI(o[0]),rI(o[1])])}return t}function nI(e){return typeof e=="string"?new RegExp(Zv(e),"g"):e}function rI(e){return typeof e=="function"?e:function(){return e}}const jf="phrasing",$f=["autolink","link","image","label"];function iI(){return{transforms:[fI],enter:{literalAutolink:oI,literalAutolinkEmail:Vf,literalAutolinkHttp:Vf,literalAutolinkWww:Vf},exit:{literalAutolink:cI,literalAutolinkEmail:lI,literalAutolinkHttp:uI,literalAutolinkWww:aI}}}function sI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:jf,notInConstruct:$f},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:jf,notInConstruct:$f},{character:":",before:"[ps]",after:"\\/",inConstruct:jf,notInConstruct:$f}]}}function oI(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vf(e){this.config.enter.autolinkProtocol.call(this,e)}function uI(e){this.config.exit.autolinkProtocol.call(this,e)}function aI(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function lI(e){this.config.exit.autolinkEmail.call(this,e)}function cI(e){this.exit(e)}function fI(e){eI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dI],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),hI]],{ignore:["link","linkReference"]})}function dI(e,t,n,r,o){let u="";if(!N1(o)||(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!pI(n)))return!1;const l=mI(n+r);if(!l[0])return!1;const f={type:"link",title:null,url:u+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[f,{type:"text",value:l[1]}]:f}function hI(e,t,n,r){return!N1(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function pI(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function mI(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=w1(e,"(");let u=w1(e,")");for(;r!==-1&&o>u;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),u++;return[e,n]}function N1(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||pi(n)||ia(n))&&(!t||n!==47)}v1.peek=AI;function gI(){this.buffer()}function EI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function yI(){this.buffer()}function TI(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bI(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _I(e){this.exit(e)}function SI(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xI(e){this.exit(e)}function AI(){return"["}function v1(e,t,n,r){const o=n.createTracker(r);let u=o.move("[^");const l=n.enter("footnoteReference"),f=n.enter("reference");return u+=o.move(n.safe(n.associationId(e),{after:"]",before:u})),f(),l(),u+=o.move("]"),u}function CI(){return{enter:{gfmFootnoteCallString:gI,gfmFootnoteCall:EI,gfmFootnoteDefinitionLabelString:yI,gfmFootnoteDefinition:TI},exit:{gfmFootnoteCallString:bI,gfmFootnoteCall:_I,gfmFootnoteDefinitionLabelString:SI,gfmFootnoteDefinition:xI}}}function kI(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:v1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,u,l){const f=u.createTracker(l);let d=f.move("[^");const h=u.enter("footnoteDefinition"),g=u.enter("label");return d+=f.move(u.safe(u.associationId(r),{before:d,after:"]"})),g(),d+=f.move("]:"),r.children&&r.children.length>0&&(f.shift(4),d+=f.move((t?`
38
- `:" ")+u.indentLines(u.containerFlow(r,f.current()),t?I1:wI))),h(),d}}function wI(e,t,n){return t===0?e:I1(e,t,n)}function I1(e,t,n){return(n?"":" ")+e}const NI=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];O1.peek=PI;function vI(){return{canContainEols:["delete"],enter:{strikethrough:OI},exit:{strikethrough:RI}}}function II(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:NI}],handlers:{delete:O1}}}function OI(e){this.enter({type:"delete",children:[]},e)}function RI(e){this.exit(e)}function O1(e,t,n,r){const o=n.createTracker(r),u=n.enter("strikethrough");let l=o.move("~~");return l+=n.containerPhrasing(e,$e(Q({},o.current()),{before:l,after:"~"})),l+=o.move("~~"),u(),l}function PI(){return"~"}function LI(e){return e.length}function DI(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||LI,u=[],l=[],f=[],d=[];let h=0,g=-1;for(;++g<e.length;){const C=[],O=[];let L=-1;for(e[g].length>h&&(h=e[g].length);++L<e[g].length;){const V=MI(e[g][L]);if(n.alignDelimiters!==!1){const j=o(V);O[L]=j,(d[L]===void 0||j>d[L])&&(d[L]=j)}C.push(V)}l[g]=C,f[g]=O}let y=-1;if(typeof r=="object"&&"length"in r)for(;++y<h;)u[y]=R1(r[y]);else{const C=R1(r);for(;++y<h;)u[y]=C}y=-1;const b=[],T=[];for(;++y<h;){const C=u[y];let O="",L="";C===99?(O=":",L=":"):C===108?O=":":C===114&&(L=":");let V=n.alignDelimiters===!1?1:Math.max(1,d[y]-O.length-L.length);const j=O+"-".repeat(V)+L;n.alignDelimiters!==!1&&(V=O.length+V+L.length,V>d[y]&&(d[y]=V),T[y]=V),b[y]=j}l.splice(1,0,b),f.splice(1,0,T),g=-1;const S=[];for(;++g<l.length;){const C=l[g],O=f[g];y=-1;const L=[];for(;++y<h;){const V=C[y]||"";let j="",ee="";if(n.alignDelimiters!==!1){const he=d[y]-(O[y]||0),F=u[y];F===114?j=" ".repeat(he):F===99?he%2?(j=" ".repeat(he/2+.5),ee=" ".repeat(he/2-.5)):(j=" ".repeat(he/2),ee=j):ee=" ".repeat(he)}n.delimiterStart!==!1&&!y&&L.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&V==="")&&(n.delimiterStart!==!1||y)&&L.push(" "),n.alignDelimiters!==!1&&L.push(j),L.push(V),n.alignDelimiters!==!1&&L.push(ee),n.padding!==!1&&L.push(" "),(n.delimiterEnd!==!1||y!==h-1)&&L.push("|")}S.push(n.delimiterEnd===!1?L.join("").replace(/ +$/,""):L.join(""))}return S.join(`
39
- `)}function MI(e){return e==null?"":String(e)}function R1(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function FI(e,t,n,r){const o=n.enter("blockquote"),u=n.createTracker(r);u.move("> "),u.shift(2);const l=n.indentLines(n.containerFlow(e,u.current()),BI);return o(),l}function BI(e,t,n){return">"+(n?"":" ")+e}function UI(e,t){return P1(e,t.inConstruct,!0)&&!P1(e,t.notInConstruct,!1)}function P1(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function L1(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
40
- `&&UI(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
41
- `}function HI(e,t){const n=String(e);let r=n.indexOf(t),o=r,u=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++u>l&&(l=u):u=1,o=r+t.length,r=n.indexOf(t,o);return l}function zI(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function jI(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function $I(e,t,n,r){const o=jI(n),u=e.value||"",l=o==="`"?"GraveAccent":"Tilde";if(zI(e,n)){const y=n.enter("codeIndented"),b=n.indentLines(u,VI);return y(),b}const f=n.createTracker(r),d=o.repeat(Math.max(HI(u,o)+1,3)),h=n.enter("codeFenced");let g=f.move(d);if(e.lang){const y=n.enter(`codeFencedLang${l}`);g+=f.move(n.safe(e.lang,Q({before:g,after:" ",encode:["`"]},f.current()))),y()}if(e.lang&&e.meta){const y=n.enter(`codeFencedMeta${l}`);g+=f.move(" "),g+=f.move(n.safe(e.meta,Q({before:g,after:`
36
+ `},o),u}function tw(e,t){return e&&"run"in e?function(n,r){return tn(this,null,function*(){const o=ug(n,Q({file:r},t));yield e.run(o,r)})}:function(n,r){return ug(n,Q({file:r},e||t))}}function ag(e){if(e)throw e}var pf,lg;function nw(){if(lg)return pf;lg=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},u=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!y)return!1;var b;for(b in h);return typeof b=="undefined"||e.call(h,b)},l=function(h,g){n&&g.name==="__proto__"?n(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},f=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(r)return r(h,g).value}else return;return h[g]};return pf=function d(){var h,g,y,b,T,S,C=arguments[0],O=1,L=arguments.length,$=!1;for(typeof C=="boolean"&&($=C,C=arguments[1]||{},O=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});O<L;++O)if(h=arguments[O],h!=null)for(g in h)y=f(C,g),b=f(h,g),C!==b&&($&&b&&(u(b)||(T=o(b)))?(T?(T=!1,S=y&&o(y)?y:[]):S=y&&u(y)?y:{},l(C,{name:g,newValue:d($,S,b)})):typeof b!="undefined"&&l(C,{name:g,newValue:b}));return C},pf}var rw=nw();const mf=Ve(rw);function gf(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function iw(){const e=[],t={run:n,use:r};return t;function n(...o){let u=-1;const l=o.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);f(null,...o);function f(d,...h){const g=e[++u];let y=-1;if(d){l(d);return}for(;++y<o.length;)(h[y]===null||h[y]===void 0)&&(h[y]=o[y]);o=h,g?sw(g,f)(...h):l(null,...h)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function sw(e,t){let n;return r;function r(...l){const f=e.length>l.length;let d;f&&l.push(o);try{d=e.apply(this,l)}catch(h){const g=h;if(f&&n)throw g;return o(g)}f||(d&&d.then&&typeof d.then=="function"?d.then(u,o):d instanceof Error?o(d):u(d))}function o(l,...f){n||(n=!0,t(l,...f))}function u(l){o(null,l)}}const rr={basename:ow,dirname:uw,extname:aw,join:lw,sep:"/"};function ow(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Eo(e);let n=0,r=-1,o=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(u){n=o+1;break}}else r<0&&(u=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,f=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(u){n=o+1;break}}else l<0&&(u=!0,l=o+1),f>-1&&(e.codePointAt(o)===t.codePointAt(f--)?f<0&&(r=o):(f=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function uw(e){if(Eo(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function aw(e){Eo(e);let t=e.length,n=-1,r=0,o=-1,u=0,l;for(;t--;){const f=e.codePointAt(t);if(f===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),f===46?o<0?o=t:u!==1&&(u=1):o>-1&&(u=-1)}return o<0||n<0||u===0||u===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function lw(...e){let t=-1,n;for(;++t<e.length;)Eo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":cw(n)}function cw(e){Eo(e);const t=e.codePointAt(0)===47;let n=fw(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function fw(e,t){let n="",r=0,o=-1,u=0,l=-1,f,d;for(;++l<=e.length;){if(l<e.length)f=e.codePointAt(l);else{if(f===47)break;f=47}if(f===47){if(!(o===l-1||u===1))if(o!==l-1&&u===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),o=l,u=0;continue}}else if(n.length>0){n="",r=0,o=l,u=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,l):n=e.slice(o+1,l),r=l-o-1;o=l,u=0}else f===46&&u>-1?u++:u=-1}return n}function Eo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dw={cwd:hw};function hw(){return"/"}function Ef(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pw(e){if(typeof e=="string")e=new URL(e);else if(!Ef(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mw(e)}function mw(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const yf=["history","path","basename","stem","extname","dirname"];class cg{constructor(t){let n;t?Ef(t)?n={path:t}:typeof t=="string"||gw(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":dw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<yf.length;){const u=yf[r];u in n&&n[u]!==void 0&&n[u]!==null&&(this[u]=u==="history"?[...n[u]]:n[u])}let o;for(o in n)yf.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?rr.basename(this.path):void 0}set basename(t){bf(t,"basename"),Tf(t,"basename"),this.path=rr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rr.dirname(this.path):void 0}set dirname(t){fg(this.basename,"dirname"),this.path=rr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rr.extname(this.path):void 0}set extname(t){if(Tf(t,"extname"),fg(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ef(t)&&(t=pw(t)),bf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rr.basename(this.path,this.extname):void 0}set stem(t){bf(t,"stem"),Tf(t,"stem"),this.path=rr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new Vt(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Tf(e,t){if(e&&e.includes(rr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rr.sep+"`")}function bf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function gw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ew=function(e){const r=this.constructor.prototype,o=r[e],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,r),u},yw={}.hasOwnProperty;class _f extends Ew{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=iw()}copy(){const t=new _f;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(mf(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Af("data",this.frozen),this.namespace[t]=n,this):yw.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Af("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=pa(t),r=this.parser||this.Parser;return Sf("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Sf("process",this.parser||this.Parser),xf("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(u,l){const f=pa(t),d=r.parse(f);r.run(d,f,function(g,y,b){if(g||!y||!b)return h(g);const T=y,S=r.stringify(T,b);_w(S)?b.value=S:b.result=S,h(g,b)});function h(g,y){g||!y?l(g):u?u(y):n(void 0,y)}}}processSync(t){let n=!1,r;return this.freeze(),Sf("processSync",this.parser||this.Parser),xf("processSync",this.compiler||this.Compiler),this.process(t,o),hg("processSync","process",n),r;function o(u,l){n=!0,ag(u),r=l}}run(t,n,r){dg(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?u(void 0,r):new Promise(u);function u(l,f){const d=pa(n);o.run(t,d,h);function h(g,y,b){const T=y||t;g?f(g):l?l(T):r(void 0,T,b)}}}runSync(t,n){let r=!1,o;return this.run(t,n,u),hg("runSync","run",r),o;function u(l,f){ag(l),o=f,r=!0}}stringify(t,n){this.freeze();const r=pa(n),o=this.compiler||this.Compiler;return xf("stringify",o),dg(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Af("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...y]=h;d(g,y)}else l(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function l(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(h.plugins),h.settings&&(o.settings=mf(!0,o.settings,h.settings))}function f(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const y=h[g];u(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,g){let y=-1,b=-1;for(;++y<r.length;)if(r[y][0]===h){b=y;break}if(b===-1)r.push([h,...g]);else if(g.length>0){let[T,...S]=g;const C=r[b][1];gf(C)&&gf(T)&&(T=mf(!0,C,T)),r[b]=[h,T,...S]}}}}const Tw=new _f().freeze();function Sf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Af(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dg(e){if(!gf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hg(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pa(e){return bw(e)?e:new cg(e)}function bw(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _w(e){return typeof e=="string"||Sw(e)}function Sw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const xw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",pg=[],mg={allowDangerousHtml:!0},Aw=/^(https?|ircs?|mailto|xmpp)$/i,Cw=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function kw(e){const t=ww(e),n=Nw(e);return vw(t.runSync(t.parse(n),n),e)}function ww(e){const t=e.rehypePlugins||pg,n=e.remarkPlugins||pg,r=e.remarkRehypeOptions?Q(Q({},e.remarkRehypeOptions),mg):mg;return Tw().use(uk).use(n).use(tw,r).use(t)}function Nw(e){const t=e.children||"",n=new cg;return typeof t=="string"&&(n.value=t),n}function vw(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,u=t.disallowedElements,l=t.skipHtml,f=t.unwrapDisallowed,d=t.urlTransform||Ow;for(const g of Cw)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+xw+g.id,void 0);return ha(e,h),Zx(e,{Fragment:P.Fragment,components:o,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function h(g,y,b){if(g.type==="raw"&&b&&typeof y=="number")return l?b.children.splice(y,1):b.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let T;for(T in Zc)if(Object.hasOwn(Zc,T)&&Object.hasOwn(g.properties,T)){const S=g.properties[T],C=Zc[T];(C===null||C.includes(g.tagName))&&(g.properties[T]=d(String(S||""),T,g))}}if(g.type==="element"){let T=n?!n.includes(g.tagName):u?u.includes(g.tagName):!1;if(!T&&r&&typeof y=="number"&&(T=!r(g,y,b)),T&&b&&typeof y=="number")return f&&g.children?b.children.splice(y,1,...g.children):b.children.splice(y,1),y}}}function Ow(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||Aw.test(e.slice(0,t))?e:""}const gg=/[#.]/g;function Iw(e,t){const n=e||"",r={};let o=0,u,l;for(;o<n.length;){gg.lastIndex=o;const f=gg.exec(n),d=n.slice(o,f?f.index:n.length);d&&(u?u==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,o+=d.length),f&&(u=f[0],o++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function Eg(e,t,n){const r=n?Dw(n):void 0;function o(u,l,...f){let d;if(u==null){d={type:"root",children:[]};const h=l;f.unshift(h)}else{d=Iw(u,t);const h=d.tagName.toLowerCase(),g=r?r.get(h):void 0;if(d.tagName=g||h,Rw(l))f.unshift(l);else for(const[y,b]of Object.entries(l))Pw(e,d.properties,y,b)}for(const h of f)Cf(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return o}function Rw(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const o=t[r];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const u=o;for(const l of u)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Pw(e,t,n,r){const o=Wc(e,n);let u;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;u=r}else typeof r=="boolean"?u=r:typeof r=="string"?o.spaceSeparated?u=l0(r):o.commaSeparated?u=Qm(r):o.commaOrSpaceSeparated?u=l0(Qm(r).join(" ")):u=yg(o,o.property,r):Array.isArray(r)?u=[...r]:u=o.property==="style"?Lw(r):String(r);if(Array.isArray(u)){const l=[];for(const f of u)l.push(yg(o,o.property,f));u=l}o.property==="className"&&Array.isArray(t.className)&&(u=t.className.concat(u)),t[o.property]=u}}function Cf(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Cf(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Cf(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function yg(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||oo(n)===oo(t)))return!0}return n}function Lw(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Dw(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Mw=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Fw=Eg(ta,"div"),Bw=Eg(Xi,"g",Mw);function Uw(e){const t=String(e),n=[];return{toOffset:o,toPoint:r};function r(u){if(typeof u=="number"&&u>-1&&u<=t.length){let l=0;for(;;){let f=n[l];if(f===void 0){const d=Tg(t,n[l-1]);f=d===-1?t.length+1:d+1,n[l]=f}if(f>u)return{line:l+1,column:u-(l>0?n[l-1]:0)+1,offset:u};l++}}}function o(u){if(u&&typeof u.line=="number"&&typeof u.column=="number"&&!Number.isNaN(u.line)&&!Number.isNaN(u.column)){for(;n.length<u.line;){const f=n[n.length-1],d=Tg(t,f),h=d===-1?t.length+1:d+1;if(f===h)break;n.push(h)}const l=(u.line>1?n[u.line-2]:0)+u.column-1;if(l<n[u.line-1])return l}}}function Tg(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
37
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const mi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},bg={}.hasOwnProperty,Hw=Object.prototype;function zw(e,t){const n=t||{};return kf({file:n.file||void 0,location:!1,schema:n.space==="svg"?Xi:ta,verbose:n.verbose||!1},e)}function kf(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},ma(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:_g(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const u=String(e.file),l=Uw(u),f=l.toPoint(0),d=l.toPoint(u.length);n.position={start:f,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},ma(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},ma(e,r,n),n}default:return n=jw(e,t),n}}function _g(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=kf(e,t[n]);r.push(o)}return r}function jw(e,t){const n=e.schema;e.schema=t.namespaceURI===mi.svg?Xi:ta;let r=-1;const o={};for(;++r<t.attrs.length;){const f=t.attrs[r],d=(f.prefix?f.prefix+":":"")+f.name;bg.call(Hw,d)||(o[d]=f.value)}const l=(e.schema.space==="svg"?Bw:Fw)(t.tagName,o,_g(e,t.childNodes));if(ma(e,t,l),l.tagName==="template"){const f=t,d=f.sourceCodeLocation,h=d&&d.startTag&&rs(d.startTag),g=d&&d.endTag&&rs(d.endTag),y=kf(e,f.content);h&&g&&e.file&&(y.position={start:h.end,end:g.start}),l.content=y}return e.schema=n,l}function ma(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=$w(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function $w(e,t,n){const r=rs(n);if(t.type==="element"){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const u={};let l;if(n.attrs)for(l in n.attrs)bg.call(n.attrs,l)&&(u[Wc(e.schema,l).property]=rs(n.attrs[l]));n.startTag;const f=rs(n.startTag),d=n.endTag?rs(n.endTag):void 0,h={opening:f};d&&(h.closing=d),h.properties=u,t.data={position:h}}}return r}function rs(e){const t=Sg({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Sg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Sg(e){return e.line&&e.column?e:void 0}class yo{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}yo.prototype.property={},yo.prototype.normal={},yo.prototype.space=null;function xg(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new yo(n,r,t)}function wf(e){return e.toLowerCase()}class vn{constructor(t,n){this.property=t,this.attribute=n}}vn.prototype.space=null,vn.prototype.boolean=!1,vn.prototype.booleanish=!1,vn.prototype.overloadedBoolean=!1,vn.prototype.number=!1,vn.prototype.commaSeparated=!1,vn.prototype.spaceSeparated=!1,vn.prototype.commaOrSpaceSeparated=!1,vn.prototype.mustUseProperty=!1,vn.prototype.defined=!1;let Vw=0;const Be=gi(),kt=gi(),Ag=gi(),oe=gi(),st=gi(),is=gi(),bn=gi();function gi(){return Jl(2,++Vw)}const Nf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Be,booleanish:kt,commaOrSpaceSeparated:bn,commaSeparated:is,number:oe,overloadedBoolean:Ag,spaceSeparated:st},Symbol.toStringTag,{value:"Module"})),vf=Object.keys(Nf);class Of extends vn{constructor(t,n,r,o){let u=-1;if(super(t,n),Cg(this,"space",o),typeof r=="number")for(;++u<vf.length;){const l=vf[u];Cg(this,vf[u],(r&Nf[l])===Nf[l])}}}Of.prototype.defined=!0;function Cg(e,t,n){n&&(e[t]=n)}const Yw={}.hasOwnProperty;function ss(e){const t={},n={};let r;for(r in e.properties)if(Yw.call(e.properties,r)){const o=e.properties[r],u=new Of(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[wf(r)]=r,n[wf(u.attribute)]=r}return new yo(t,n,e.space)}const kg=ss({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),wg=ss({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ng(e,t){return t in e?e[t]:t}function vg(e,t){return Ng(e,t.toLowerCase())}const Og=ss({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:vg,properties:{xmlns:null,xmlnsXLink:null}}),Ig=ss({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:st,ariaCurrent:null,ariaDescribedBy:st,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:st,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:st,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:st,ariaLevel:oe,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:st,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:st,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:kt,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null}}),qw=ss({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:vg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:is,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:Be,allowPaymentRequest:Be,allowUserMedia:Be,alt:null,as:null,async:Be,autoCapitalize:null,autoComplete:st,autoFocus:Be,autoPlay:Be,blocking:st,capture:null,charSet:null,checked:Be,cite:null,className:st,cols:oe,colSpan:null,content:null,contentEditable:kt,controls:Be,controlsList:st,coords:oe|is,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Be,defer:Be,dir:null,dirName:null,disabled:Be,download:Ag,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Be,formTarget:null,headers:st,height:oe,hidden:Be,high:oe,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:null,inert:Be,inputMode:null,integrity:null,is:null,isMap:Be,itemId:null,itemProp:st,itemRef:st,itemScope:Be,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Be,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Be,muted:Be,name:null,nonce:null,noModule:Be,noValidate:Be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored: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,onScrollEnd: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:Be,optimum:oe,pattern:null,ping:st,placeholder:null,playsInline:Be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Be,referrerPolicy:null,rel:st,required:Be,reversed:Be,rows:oe,rowSpan:oe,sandbox:st,scope:null,scoped:Be,seamless:Be,selected:Be,shadowRootClonable:Be,shadowRootDelegatesFocus:Be,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Be,useMap:null,value:kt,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Be,declare:Be,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Be,noHref:Be,noShade:Be,noWrap:Be,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Be,disableRemotePlayback:Be,prefix:null,property:null,results:oe,security:null,unselectable:null}}),Ww=ss({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",transformOrigin:"transform-origin",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:Ng,properties:{about:bn,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:st,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Be,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:is,g2:is,glyphName:is,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:st,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bn,rev:bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bn,requiredFeatures:bn,requiredFonts:bn,requiredFormats:bn,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bn,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Gw=/^data[-\w.:]+$/i,Rg=/-[a-z]/g,Kw=/[A-Z]/g;function Qw(e,t){const n=wf(t);let r=t,o=vn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Gw.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(Rg,Jw);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!Rg.test(u)){let l=u.replace(Kw,Xw);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=Of}return new o(r,t)}function Xw(e){return"-"+e.toLowerCase()}function Jw(e){return e.charAt(1).toUpperCase()}const Zw=xg([wg,kg,Og,Ig,qw],"html"),Pg=xg([wg,kg,Og,Ig,Ww],"svg"),Lg={}.hasOwnProperty;function Dg(e,t){const n=t||{};function r(o,...u){let l=r.invalid;const f=r.handlers;if(o&&Lg.call(o,e)){const d=String(o[e]);l=Lg.call(f,d)?f[d]:r.unknown}if(l)return l.call(this,o,...u)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const eN={},tN={}.hasOwnProperty,Mg=Dg("type",{handlers:{root:rN,element:aN,text:oN,comment:uN,doctype:sN}});function nN(e,t){const r=(t||eN).space;return Mg(e,r==="svg"?Pg:Zw)}function rN(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=If(e.children,n,t),os(e,n),n}function iN(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=If(e.children,n,t),os(e,n),n}function sN(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return os(e,t),t}function oN(e){const t={nodeName:"#text",value:e.value,parentNode:null};return os(e,t),t}function uN(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return os(e,t),t}function aN(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Pg);const o=[];let u;if(e.properties){for(u in e.properties)if(u!=="children"&&tN.call(e.properties,u)){const d=lN(r,u,e.properties[u]);d&&o.push(d)}}const l=r.space,f={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:mi[l],childNodes:[],parentNode:null};return f.childNodes=If(e.children,f,r),os(e,f),e.tagName==="template"&&e.content&&(f.content=iN(e.content,r)),f}function lN(e,t,n){const r=Qw(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Xm(n):c0(n));const o={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const u=o.name.indexOf(":");u<0?o.prefix="":(o.name=o.name.slice(u+1),o.prefix=r.attribute.slice(0,u)),o.namespace=mi[r.space]}return o}function If(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const u=Mg(e[r],n);u.parentNode=t,o.push(u)}return o}function os(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const cN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],fN=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ct="�";var A;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(A||(A={}));const ln={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Fg(e){return e>=55296&&e<=57343}function dN(e){return e>=56320&&e<=57343}function hN(e,t){return(e-55296)*1024+9216+t}function Bg(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ug(e){return e>=64976&&e<=65007||fN.has(e)}var W;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(W||(W={}));const pN=65536;class mN{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=pN,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:o,offset:u}=this,l=o+n,f=u+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,startOffset:f,endOffset:f}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(dN(n))return this.pos++,this._addGap(),hN(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(W.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Fg(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Bg(t)?this._err(W.controlCharacterInInputStream):Ug(t)&&this._err(W.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var He;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(He||(He={}));function Hg(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const gN=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),EN=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function yN(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=EN.get(e))!==null&&t!==void 0?t:e}var Pt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Pt||(Pt={}));const TN=32;var Dr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Dr||(Dr={}));function Rf(e){return e>=Pt.ZERO&&e<=Pt.NINE}function bN(e){return e>=Pt.UPPER_A&&e<=Pt.UPPER_F||e>=Pt.LOWER_A&&e<=Pt.LOWER_F}function _N(e){return e>=Pt.UPPER_A&&e<=Pt.UPPER_Z||e>=Pt.LOWER_A&&e<=Pt.LOWER_Z||Rf(e)}function SN(e){return e===Pt.EQUALS||_N(e)}var Lt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Lt||(Lt={}));var Er;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Er||(Er={}));class xN{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Lt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Er.Strict}startEntity(t){this.decodeMode=t,this.state=Lt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Lt.EntityStart:return t.charCodeAt(n)===Pt.NUM?(this.state=Lt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Lt.NamedEntity,this.stateNamedEntity(t,n));case Lt.NumericStart:return this.stateNumericStart(t,n);case Lt.NumericDecimal:return this.stateNumericDecimal(t,n);case Lt.NumericHex:return this.stateNumericHex(t,n);case Lt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|TN)===Pt.LOWER_X?(this.state=Lt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Lt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const u=r-n;this.result=this.result*Math.pow(o,u)+Number.parseInt(t.substr(n,u),o),this.consumed+=u}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Rf(o)||bN(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Rf(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Pt.SEMI)this.consumed+=1;else if(this.decodeMode===Er.Strict)return 0;return this.emitCodePoint(yN(this.result),this.consumed),this.errors&&(t!==Pt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],u=(o&Dr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=AN(r,o,this.treeIndex+Math.max(1,u),l),this.treeIndex<0)return this.result===0||this.decodeMode===Er.Attribute&&(u===0||SN(l))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],u=(o&Dr.VALUE_LENGTH)>>14,u!==0){if(l===Pt.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Er.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&Dr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Dr.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Lt.NamedEntity:return this.result!==0&&(this.decodeMode!==Er.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Lt.NumericDecimal:return this.emitNumericEntity(0,2);case Lt.NumericHex:return this.emitNumericEntity(0,3);case Lt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Lt.EntityStart:return 0}}}function AN(e,t,n,r){const o=(t&Dr.BRANCH_LENGTH)>>7,u=t&Dr.JUMP_TABLE;if(o===0)return u!==0&&r===u?n:-1;if(u){const d=r-u;return d<0||d>=o?-1:e[n+d]-1}let l=n,f=l+o-1;for(;l<=f;){const d=l+f>>>1,h=e[d];if(h<r)l=d+1;else if(h>r)f=d-1;else return e[d+o]}return-1}var ee;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ee||(ee={}));var Ei;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ei||(Ei={}));var On;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(On||(On={}));var U;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(U||(U={}));var p;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(p||(p={}));const CN=new Map([[U.A,p.A],[U.ADDRESS,p.ADDRESS],[U.ANNOTATION_XML,p.ANNOTATION_XML],[U.APPLET,p.APPLET],[U.AREA,p.AREA],[U.ARTICLE,p.ARTICLE],[U.ASIDE,p.ASIDE],[U.B,p.B],[U.BASE,p.BASE],[U.BASEFONT,p.BASEFONT],[U.BGSOUND,p.BGSOUND],[U.BIG,p.BIG],[U.BLOCKQUOTE,p.BLOCKQUOTE],[U.BODY,p.BODY],[U.BR,p.BR],[U.BUTTON,p.BUTTON],[U.CAPTION,p.CAPTION],[U.CENTER,p.CENTER],[U.CODE,p.CODE],[U.COL,p.COL],[U.COLGROUP,p.COLGROUP],[U.DD,p.DD],[U.DESC,p.DESC],[U.DETAILS,p.DETAILS],[U.DIALOG,p.DIALOG],[U.DIR,p.DIR],[U.DIV,p.DIV],[U.DL,p.DL],[U.DT,p.DT],[U.EM,p.EM],[U.EMBED,p.EMBED],[U.FIELDSET,p.FIELDSET],[U.FIGCAPTION,p.FIGCAPTION],[U.FIGURE,p.FIGURE],[U.FONT,p.FONT],[U.FOOTER,p.FOOTER],[U.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[U.FORM,p.FORM],[U.FRAME,p.FRAME],[U.FRAMESET,p.FRAMESET],[U.H1,p.H1],[U.H2,p.H2],[U.H3,p.H3],[U.H4,p.H4],[U.H5,p.H5],[U.H6,p.H6],[U.HEAD,p.HEAD],[U.HEADER,p.HEADER],[U.HGROUP,p.HGROUP],[U.HR,p.HR],[U.HTML,p.HTML],[U.I,p.I],[U.IMG,p.IMG],[U.IMAGE,p.IMAGE],[U.INPUT,p.INPUT],[U.IFRAME,p.IFRAME],[U.KEYGEN,p.KEYGEN],[U.LABEL,p.LABEL],[U.LI,p.LI],[U.LINK,p.LINK],[U.LISTING,p.LISTING],[U.MAIN,p.MAIN],[U.MALIGNMARK,p.MALIGNMARK],[U.MARQUEE,p.MARQUEE],[U.MATH,p.MATH],[U.MENU,p.MENU],[U.META,p.META],[U.MGLYPH,p.MGLYPH],[U.MI,p.MI],[U.MO,p.MO],[U.MN,p.MN],[U.MS,p.MS],[U.MTEXT,p.MTEXT],[U.NAV,p.NAV],[U.NOBR,p.NOBR],[U.NOFRAMES,p.NOFRAMES],[U.NOEMBED,p.NOEMBED],[U.NOSCRIPT,p.NOSCRIPT],[U.OBJECT,p.OBJECT],[U.OL,p.OL],[U.OPTGROUP,p.OPTGROUP],[U.OPTION,p.OPTION],[U.P,p.P],[U.PARAM,p.PARAM],[U.PLAINTEXT,p.PLAINTEXT],[U.PRE,p.PRE],[U.RB,p.RB],[U.RP,p.RP],[U.RT,p.RT],[U.RTC,p.RTC],[U.RUBY,p.RUBY],[U.S,p.S],[U.SCRIPT,p.SCRIPT],[U.SEARCH,p.SEARCH],[U.SECTION,p.SECTION],[U.SELECT,p.SELECT],[U.SOURCE,p.SOURCE],[U.SMALL,p.SMALL],[U.SPAN,p.SPAN],[U.STRIKE,p.STRIKE],[U.STRONG,p.STRONG],[U.STYLE,p.STYLE],[U.SUB,p.SUB],[U.SUMMARY,p.SUMMARY],[U.SUP,p.SUP],[U.TABLE,p.TABLE],[U.TBODY,p.TBODY],[U.TEMPLATE,p.TEMPLATE],[U.TEXTAREA,p.TEXTAREA],[U.TFOOT,p.TFOOT],[U.TD,p.TD],[U.TH,p.TH],[U.THEAD,p.THEAD],[U.TITLE,p.TITLE],[U.TR,p.TR],[U.TRACK,p.TRACK],[U.TT,p.TT],[U.U,p.U],[U.UL,p.UL],[U.SVG,p.SVG],[U.VAR,p.VAR],[U.WBR,p.WBR],[U.XMP,p.XMP]]);function us(e){var t;return(t=CN.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const re=p,kN={[ee.HTML]:new Set([re.ADDRESS,re.APPLET,re.AREA,re.ARTICLE,re.ASIDE,re.BASE,re.BASEFONT,re.BGSOUND,re.BLOCKQUOTE,re.BODY,re.BR,re.BUTTON,re.CAPTION,re.CENTER,re.COL,re.COLGROUP,re.DD,re.DETAILS,re.DIR,re.DIV,re.DL,re.DT,re.EMBED,re.FIELDSET,re.FIGCAPTION,re.FIGURE,re.FOOTER,re.FORM,re.FRAME,re.FRAMESET,re.H1,re.H2,re.H3,re.H4,re.H5,re.H6,re.HEAD,re.HEADER,re.HGROUP,re.HR,re.HTML,re.IFRAME,re.IMG,re.INPUT,re.LI,re.LINK,re.LISTING,re.MAIN,re.MARQUEE,re.MENU,re.META,re.NAV,re.NOEMBED,re.NOFRAMES,re.NOSCRIPT,re.OBJECT,re.OL,re.P,re.PARAM,re.PLAINTEXT,re.PRE,re.SCRIPT,re.SECTION,re.SELECT,re.SOURCE,re.STYLE,re.SUMMARY,re.TABLE,re.TBODY,re.TD,re.TEMPLATE,re.TEXTAREA,re.TFOOT,re.TH,re.THEAD,re.TITLE,re.TR,re.TRACK,re.UL,re.WBR,re.XMP]),[ee.MATHML]:new Set([re.MI,re.MO,re.MN,re.MS,re.MTEXT,re.ANNOTATION_XML]),[ee.SVG]:new Set([re.TITLE,re.FOREIGN_OBJECT,re.DESC]),[ee.XLINK]:new Set,[ee.XML]:new Set,[ee.XMLNS]:new Set},Pf=new Set([re.H1,re.H2,re.H3,re.H4,re.H5,re.H6]);U.STYLE,U.SCRIPT,U.XMP,U.IFRAME,U.NOEMBED,U.NOFRAMES,U.PLAINTEXT;var k;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(k||(k={}));const bt={DATA:k.DATA,RCDATA:k.RCDATA,RAWTEXT:k.RAWTEXT,SCRIPT_DATA:k.SCRIPT_DATA,PLAINTEXT:k.PLAINTEXT,CDATA_SECTION:k.CDATA_SECTION};function wN(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function To(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function NN(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Mr(e){return NN(e)||To(e)}function zg(e){return Mr(e)||wN(e)}function ga(e){return e+32}function jg(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function $g(e){return jg(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function vN(e){return e===A.NULL?W.nullCharacterReference:e>1114111?W.characterReferenceOutsideUnicodeRange:Fg(e)?W.surrogateCharacterReference:Ug(e)?W.noncharacterCharacterReference:Bg(e)||e===A.CARRIAGE_RETURN?W.controlCharacterReference:null}class ON{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=k.DATA,this.returnState=k.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new mN(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new xN(gN,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(W.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(W.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=vN(r);o&&this._err(o,1)}}:void 0)}_err(t,n=0){var r,o;(o=(r=this.handler).onParseError)===null||o===void 0||o.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:He.START_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:He.END_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:He.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:He.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Hg(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const o=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(W.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=us(t.tagName),t.type===He.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(W.endTagWithAttributes),t.selfClosing&&this._err(W.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case He.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case He.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case He.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:He.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=jg(t)?He.WHITESPACE_CHARACTER:t===A.NULL?He.NULL_CHARACTER:He.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(He.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=k.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Er.Attribute:Er.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===k.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case k.DATA:{this._stateData(t);break}case k.RCDATA:{this._stateRcdata(t);break}case k.RAWTEXT:{this._stateRawtext(t);break}case k.SCRIPT_DATA:{this._stateScriptData(t);break}case k.PLAINTEXT:{this._statePlaintext(t);break}case k.TAG_OPEN:{this._stateTagOpen(t);break}case k.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case k.TAG_NAME:{this._stateTagName(t);break}case k.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case k.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case k.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case k.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case k.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case k.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case k.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case k.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case k.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case k.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case k.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case k.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case k.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case k.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case k.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case k.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case k.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case k.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case k.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case k.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case k.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case k.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case k.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case k.BOGUS_COMMENT:{this._stateBogusComment(t);break}case k.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case k.COMMENT_START:{this._stateCommentStart(t);break}case k.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case k.COMMENT:{this._stateComment(t);break}case k.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case k.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case k.COMMENT_END:{this._stateCommentEnd(t);break}case k.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case k.DOCTYPE:{this._stateDoctype(t);break}case k.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case k.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case k.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case k.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case k.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case k.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case k.CDATA_SECTION:{this._stateCdataSection(t);break}case k.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case k.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case k.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case k.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=k.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=k.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=k.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Mr(t))this._createStartTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=k.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=k.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(W.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err(W.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(W.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=k.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Mr(t))this._createEndTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(W.missingEndTagName),this.state=k.DATA;break}case A.EOF:{this._err(W.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(W.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.tagName+=ct;break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(To(t)?ga(t):t)}}_stateRcdataLessThanSign(t){t===A.SOLIDUS?this.state=k.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Mr(t)?(this.state=k.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=k.BEFORE_ATTRIBUTE_NAME,!1;case A.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=k.SELF_CLOSING_START_TAG,!1;case A.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=k.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===A.SOLIDUS?this.state=k.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Mr(t)?(this.state=k.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case A.SOLIDUS:{this.state=k.SCRIPT_DATA_END_TAG_OPEN;break}case A.EXCLAMATION_MARK:{this.state=k.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=k.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Mr(t)?(this.state=k.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===A.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===A.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Mr(t)?(this._emitChars("<"),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Mr(t)?(this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(ln.SCRIPT,!1)&&$g(this.preprocessor.peek(ln.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<ln.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(W.unexpectedNullCharacter),this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ct);break}case A.EOF:{this._err(W.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ln.SCRIPT,!1)&&$g(this.preprocessor.peek(ln.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<ln.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._err(W.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=k.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err(W.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.name+=ct;break}default:this.currentAttr.name+=String.fromCodePoint(To(t)?ga(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=k.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=k.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(W.missingAttributeValue),this.state=k.DATA,this.emitCurrentTagToken();break}default:this.state=k.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case A.QUOTATION_MARK:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=ct;break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=ct;break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(W.unexpectedNullCharacter),this.currentAttr.value+=ct;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err(W.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=k.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._err(W.missingWhitespaceBetweenAttributes),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case A.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=k.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(W.eofInTag),this._emitEOFToken();break}default:this._err(W.unexpectedSolidusInTag),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case A.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.data+=ct;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(ln.DASH_DASH,!0)?(this._createCommentToken(ln.DASH_DASH.length+1),this.state=k.COMMENT_START):this._consumeSequenceIfMatch(ln.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(ln.DOCTYPE.length+1),this.state=k.DOCTYPE):this._consumeSequenceIfMatch(ln.CDATA_START,!0)?this.inForeignNode?this.state=k.CDATA_SECTION:(this._err(W.cdataInHtmlContent),this._createCommentToken(ln.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=k.BOGUS_COMMENT):this._ensureHibernation()||(this._err(W.incorrectlyOpenedComment),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case A.HYPHEN_MINUS:{this.state=k.COMMENT_START_DASH;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptClosingOfEmptyComment),this.state=k.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptClosingOfEmptyComment),this.state=k.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=k.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{n.data+="<",this.state=k.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.data+=ct;break}case A.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case A.EXCLAMATION_MARK:{n.data+="!",this.state=k.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=k.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=k.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err(W.nestedComment),this.state=k.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case A.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case A.EXCLAMATION_MARK:{this.state=k.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{n.data+="-";break}case A.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{n.data+="--!",this.state=k.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err(W.incorrectlyClosedComment),this.state=k.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err(W.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=k.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.EOF:{this._err(W.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingWhitespaceBeforeDoctypeName),this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(To(t))this._createDoctypeToken(String.fromCharCode(ga(t))),this.state=k.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err(W.unexpectedNullCharacter),this._createDoctypeToken(ct),this.state=k.DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this._err(W.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=k.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.name+=ct;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(To(t)?ga(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(ln.PUBLIC,!1)?this.state=k.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ln.SYSTEM,!1)?this.state=k.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(W.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(W.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(W.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(W.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(W.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.publicId+=ct;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.publicId+=ct;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.QUOTATION_MARK:{this._err(W.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(W.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(W.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(W.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(W.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(W.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.systemId+=ct;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(W.unexpectedNullCharacter),n.systemId+=ct;break}case A.GREATER_THAN_SIGN:{this._err(W.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.EOF:{this._err(W.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(W.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case A.NULL:{this._err(W.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=k.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err(W.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=k.CDATA_SECTION_END:(this._emitChars("]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=k.DATA;break}case A.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&zg(this.preprocessor.peek(1))?k.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){zg(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err(W.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Vg=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),Yg=new Set([...Vg,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),Ea=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),IN=new Set([...Ea,p.OL,p.UL]),RN=new Set([...Ea,p.BUTTON]),qg=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),Wg=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),PN=new Set([p.TR,p.TEMPLATE,p.HTML]),LN=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),DN=new Set([p.TABLE,p.TEMPLATE,p.HTML]),MN=new Set([p.TD,p.TH]);class FN{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ee.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const o=this._indexOf(t)+1;this.items.splice(o,0,n),this.tagIDs.splice(o,0,r),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ee.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Pf,ee.HTML)}popUntilTableCellPopped(){this.popUntilPopped(MN,ee.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(DN,ee.HTML)}clearBackToTableBodyContext(){this.clearBackTo(LN,ee.HTML)}clearBackToTableRowContext(){this.clearBackTo(PN,ee.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===p.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===p.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const o=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case ee.HTML:{if(o===t)return!0;if(n.has(o))return!1;break}case ee.SVG:{if(Wg.has(o))return!1;break}case ee.MATHML:{if(qg.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ea)}hasInListItemScope(t){return this.hasInDynamicScope(t,IN)}hasInButtonScope(t){return this.hasInDynamicScope(t,RN)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ee.HTML:{if(Pf.has(n))return!0;if(Ea.has(n))return!1;break}case ee.SVG:{if(Wg.has(n))return!1;break}case ee.MATHML:{if(qg.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ee.HTML)switch(this.tagIDs[n]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ee.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ee.HTML)switch(this.tagIDs[n]){case t:return!0;case p.OPTION:case p.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Vg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Yg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Yg.has(this.currentTagId);)this.pop()}}const Lf=3;var ir;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ir||(ir={}));const Gg={type:ir.Marker};class BN{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],o=n.length,u=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let f=0;f<this.entries.length;f++){const d=this.entries[f];if(d.type===ir.Marker)break;const{element:h}=d;if(this.treeAdapter.getTagName(h)===u&&this.treeAdapter.getNamespaceURI(h)===l){const g=this.treeAdapter.getAttrList(h);g.length===o&&r.push({idx:f,attrs:g})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Lf)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Lf)return;const o=new Map(n.map(l=>[l.name,l.value]));let u=0;for(let l=0;l<r.length;l++){const f=r[l];f.attrs.every(d=>o.get(d.name)===d.value)&&(u+=1,u>=Lf&&this.entries.splice(f.idx,1))}}insertMarker(){this.entries.unshift(Gg)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ir.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ir.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Gg);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ir.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ir.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ir.Element&&n.element===t)}}const Fr={createDocument(){return{nodeName:"#document",mode:On.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const o=e.childNodes.find(u=>u.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{const u={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Fr.appendChild(e,u)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Fr.isTextNode(n)){n.value+=t;return}}Fr.appendChild(e,Fr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Fr.isTextNode(r)?r.value+=t:Fr.insertBefore(e,Fr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation=Q(Q({},e.sourceCodeLocation),t)}},Kg="html",UN="about:legacy-compat",HN="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Qg=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],zN=[...Qg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],jN=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Xg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],$N=[...Xg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Jg(e,t){return t.some(n=>e.startsWith(n))}function VN(e){return e.name===Kg&&e.publicId===null&&(e.systemId===null||e.systemId===UN)}function YN(e){if(e.name!==Kg)return On.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===HN)return On.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),jN.has(n))return On.QUIRKS;let r=t===null?zN:Qg;if(Jg(n,r))return On.QUIRKS;if(r=t===null?Xg:$N,Jg(n,r))return On.LIMITED_QUIRKS}return On.NO_QUIRKS}const Zg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},qN="definitionurl",WN="definitionURL",GN=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),KN=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ee.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ee.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ee.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ee.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ee.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ee.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ee.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ee.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ee.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ee.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ee.XMLNS}]]),QN=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),XN=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function JN(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:r})=>r===Ei.COLOR||r===Ei.SIZE||r===Ei.FACE)||XN.has(t)}function e1(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===qN){e.attrs[t].name=WN;break}}function t1(e){for(let t=0;t<e.attrs.length;t++){const n=GN.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Df(e){for(let t=0;t<e.attrs.length;t++){const n=KN.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function ZN(e){const t=QN.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=us(e.tagName))}function e3(e,t){return t===ee.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function t3(e,t,n){if(t===ee.MATHML&&e===p.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ei.ENCODING){const o=n[r].value.toLowerCase();return o===Zg.TEXT_HTML||o===Zg.APPLICATION_XML}}return t===ee.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function n3(e,t,n,r){return(!r||r===ee.HTML)&&t3(e,t,n)||(!r||r===ee.MATHML)&&e3(e,t)}const r3="hidden",i3=8,s3=3;var v;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(v||(v={}));const o3={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},n1=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),r1={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Fr,onParseError:null};class i1{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=v.INITIAL,this.originalInsertionMode=v.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=Q(Q({},r1),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n!=null?n:this.treeAdapter.createDocument(),this.tokenizer=new ON(this.options,this),this.activeFormattingElements=new BN(this.treeAdapter),this.fragmentContextID=r?us(this.treeAdapter.getTagName(r)):p.UNKNOWN,this._setContextModes(r!=null?r:this.document,this.fragmentContextID),this.openElements=new FN(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r=Q(Q({},r1),n);t!=null||(t=r.treeAdapter.createElement(U.TEMPLATE,ee.HTML,[]));const o=r.treeAdapter.createElement("documentmock",ee.HTML,[]),u=new this(r,o,t);return u.fragmentContextID===p.TEMPLATE&&u.tmplInsertionModeStack.unshift(v.IN_TEMPLATE),u._initTokenizerForFragmentParsing(),u._insertFakeRootElement(),u._resetInsertionMode(),u._findFormInFragmentContext(),u}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var o;if(!this.onParseError)return;const u=(o=t.location)!==null&&o!==void 0?o:o3,l={code:n,startLine:u.startLine,startCol:u.startCol,startOffset:u.startOffset,endLine:r?u.startLine:u.endLine,endCol:r?u.startCol:u.endCol,endOffset:r?u.startOffset:u.endOffset};this.onParseError(l)}onItemPush(t,n,r){var o,u;(u=(o=this.treeAdapter).onItemPush)===null||u===void 0||u.call(o,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(r=this.treeAdapter).onItemPop)===null||o===void 0||o.call(r,t,this.openElements.current),n){let u,l;this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,l=this.fragmentContextID):{current:u,currentTagId:l}=this.openElements,this._setContextModes(u,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ee.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ee.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=v.TEXT}switchToPlaintextParsing(){this.insertionMode=v.TEXT,this.originalInsertionMode=v.IN_BODY,this.tokenizer.state=bt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===U.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ee.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=bt.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=bt.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=bt.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=bt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,o),t.location){const l=this.treeAdapter.getChildNodes(this.document).find(f=>this.treeAdapter.isDocumentTypeNode(f));l&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&$e(Q({},n),{startTag:n});this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r!=null?r:this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ee.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ee.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(U.HTML,ee.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(n),u=r?o.lastIndexOf(r):o.length,l=o[u-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:d,endCol:h,endOffset:g}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:d,endCol:h,endOffset:g})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,o=this.treeAdapter.getTagName(t),u=n.type===He.END_TAG&&o===n.tagName?{endTag:Q({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,u)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===p.SVG&&this.treeAdapter.getTagName(n)===U.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ee.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,ee.HTML)}_processToken(t){switch(t.type){case He.CHARACTER:{this.onCharacter(t);break}case He.NULL_CHARACTER:{this.onNullCharacter(t);break}case He.COMMENT:{this.onComment(t);break}case He.DOCTYPE:{this.onDoctype(t);break}case He.START_TAG:{this._processStartTag(t);break}case He.END_TAG:{this.onEndTag(t);break}case He.EOF:{this.onEof(t);break}case He.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),u=this.treeAdapter.getAttrList(n);return n3(t,o,u,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===ir.Marker||this.openElements.contains(o.element)),r=n===-1?t-1:n-1;for(let o=r;o>=0;o--){const u=this.activeFormattingElements.entries[o];this._insertElement(u.token,this.treeAdapter.getNamespaceURI(u.element)),u.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=v.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=v.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=v.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=v.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=v.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=v.IN_TABLE;return}case p.BODY:{this.insertionMode=v.IN_BODY;return}case p.FRAMESET:{this.insertionMode=v.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?v.AFTER_HEAD:v.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=v.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=v.IN_HEAD;return}break}}this.insertionMode=v.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===p.TEMPLATE)break;if(r===p.TABLE){this.insertionMode=v.IN_SELECT_IN_TABLE;return}}this.insertionMode=v.IN_SELECT}_isElementCausesFosterParenting(t){return n1.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ee.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case p.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return kN[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Mv(this,t);return}switch(this.insertionMode){case v.INITIAL:{bo(this,t);break}case v.BEFORE_HTML:{_o(this,t);break}case v.BEFORE_HEAD:{So(this,t);break}case v.IN_HEAD:{xo(this,t);break}case v.IN_HEAD_NO_SCRIPT:{Ao(this,t);break}case v.AFTER_HEAD:{Co(this,t);break}case v.IN_BODY:case v.IN_CAPTION:case v.IN_CELL:case v.IN_TEMPLATE:{o1(this,t);break}case v.TEXT:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{Uf(this,t);break}case v.IN_TABLE_TEXT:{p1(this,t);break}case v.IN_COLUMN_GROUP:{ba(this,t);break}case v.AFTER_BODY:{xa(this,t);break}case v.AFTER_AFTER_BODY:{Aa(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Dv(this,t);return}switch(this.insertionMode){case v.INITIAL:{bo(this,t);break}case v.BEFORE_HTML:{_o(this,t);break}case v.BEFORE_HEAD:{So(this,t);break}case v.IN_HEAD:{xo(this,t);break}case v.IN_HEAD_NO_SCRIPT:{Ao(this,t);break}case v.AFTER_HEAD:{Co(this,t);break}case v.TEXT:{this._insertCharacters(t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{Uf(this,t);break}case v.IN_COLUMN_GROUP:{ba(this,t);break}case v.AFTER_BODY:{xa(this,t);break}case v.AFTER_AFTER_BODY:{Aa(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ff(this,t);return}switch(this.insertionMode){case v.INITIAL:case v.BEFORE_HTML:case v.BEFORE_HEAD:case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:case v.IN_BODY:case v.IN_TABLE:case v.IN_CAPTION:case v.IN_COLUMN_GROUP:case v.IN_TABLE_BODY:case v.IN_ROW:case v.IN_CELL:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:case v.IN_TEMPLATE:case v.IN_FRAMESET:case v.AFTER_FRAMESET:{Ff(this,t);break}case v.IN_TABLE_TEXT:{No(this,t);break}case v.AFTER_BODY:{h3(this,t);break}case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{p3(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case v.INITIAL:{m3(this,t);break}case v.BEFORE_HEAD:case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:{this._err(t,W.misplacedDoctype);break}case v.IN_TABLE_TEXT:{No(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,W.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Fv(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case v.INITIAL:{bo(this,t);break}case v.BEFORE_HTML:{g3(this,t);break}case v.BEFORE_HEAD:{y3(this,t);break}case v.IN_HEAD:{$n(this,t);break}case v.IN_HEAD_NO_SCRIPT:{_3(this,t);break}case v.AFTER_HEAD:{x3(this,t);break}case v.IN_BODY:{qt(this,t);break}case v.IN_TABLE:{as(this,t);break}case v.IN_TABLE_TEXT:{No(this,t);break}case v.IN_CAPTION:{Tv(this,t);break}case v.IN_COLUMN_GROUP:{Hf(this,t);break}case v.IN_TABLE_BODY:{_a(this,t);break}case v.IN_ROW:{Sa(this,t);break}case v.IN_CELL:{Sv(this,t);break}case v.IN_SELECT:{E1(this,t);break}case v.IN_SELECT_IN_TABLE:{Av(this,t);break}case v.IN_TEMPLATE:{kv(this,t);break}case v.AFTER_BODY:{Nv(this,t);break}case v.IN_FRAMESET:{vv(this,t);break}case v.AFTER_FRAMESET:{Iv(this,t);break}case v.AFTER_AFTER_BODY:{Pv(this,t);break}case v.AFTER_AFTER_FRAMESET:{Lv(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Bv(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case v.INITIAL:{bo(this,t);break}case v.BEFORE_HTML:{E3(this,t);break}case v.BEFORE_HEAD:{T3(this,t);break}case v.IN_HEAD:{b3(this,t);break}case v.IN_HEAD_NO_SCRIPT:{S3(this,t);break}case v.AFTER_HEAD:{A3(this,t);break}case v.IN_BODY:{Ta(this,t);break}case v.TEXT:{lv(this,t);break}case v.IN_TABLE:{ko(this,t);break}case v.IN_TABLE_TEXT:{No(this,t);break}case v.IN_CAPTION:{bv(this,t);break}case v.IN_COLUMN_GROUP:{_v(this,t);break}case v.IN_TABLE_BODY:{zf(this,t);break}case v.IN_ROW:{g1(this,t);break}case v.IN_CELL:{xv(this,t);break}case v.IN_SELECT:{y1(this,t);break}case v.IN_SELECT_IN_TABLE:{Cv(this,t);break}case v.IN_TEMPLATE:{wv(this,t);break}case v.AFTER_BODY:{b1(this,t);break}case v.IN_FRAMESET:{Ov(this,t);break}case v.AFTER_FRAMESET:{Rv(this,t);break}case v.AFTER_AFTER_BODY:{Aa(this,t);break}}}onEof(t){switch(this.insertionMode){case v.INITIAL:{bo(this,t);break}case v.BEFORE_HTML:{_o(this,t);break}case v.BEFORE_HEAD:{So(this,t);break}case v.IN_HEAD:{xo(this,t);break}case v.IN_HEAD_NO_SCRIPT:{Ao(this,t);break}case v.AFTER_HEAD:{Co(this,t);break}case v.IN_BODY:case v.IN_TABLE:case v.IN_CAPTION:case v.IN_COLUMN_GROUP:case v.IN_TABLE_BODY:case v.IN_ROW:case v.IN_CELL:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:{d1(this,t);break}case v.TEXT:{cv(this,t);break}case v.IN_TABLE_TEXT:{No(this,t);break}case v.IN_TEMPLATE:{T1(this,t);break}case v.AFTER_BODY:case v.IN_FRAMESET:case v.AFTER_FRAMESET:case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{Bf(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case v.IN_HEAD:case v.IN_HEAD_NO_SCRIPT:case v.AFTER_HEAD:case v.TEXT:case v.IN_COLUMN_GROUP:case v.IN_SELECT:case v.IN_SELECT_IN_TABLE:case v.IN_FRAMESET:case v.AFTER_FRAMESET:{this._insertCharacters(t);break}case v.IN_BODY:case v.IN_CAPTION:case v.IN_CELL:case v.IN_TEMPLATE:case v.AFTER_BODY:case v.AFTER_AFTER_BODY:case v.AFTER_AFTER_FRAMESET:{s1(this,t);break}case v.IN_TABLE:case v.IN_TABLE_BODY:case v.IN_ROW:{Uf(this,t);break}case v.IN_TABLE_TEXT:{h1(this,t);break}}}}function u3(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):f1(e,t),n}function a3(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function l3(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let u=0,l=o;l!==n;u++,l=o){o=e.openElements.getCommonAncestor(l);const f=e.activeFormattingElements.getElementEntry(l),d=f&&u>=s3;!f||d?(d&&e.activeFormattingElements.removeEntry(f),e.openElements.remove(l)):(l=c3(e,f),r===t&&(e.activeFormattingElements.bookmark=f),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function c3(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function f3(e,t,n){const r=e.treeAdapter.getTagName(t),o=us(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const u=e.treeAdapter.getNamespaceURI(t);o===p.TEMPLATE&&u===ee.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function d3(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,u=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,u),e.treeAdapter.appendChild(t,u),e.activeFormattingElements.insertElementAfterBookmark(u,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,u,o.tagID)}function Mf(e,t){for(let n=0;n<i3;n++){const r=u3(e,t);if(!r)break;const o=a3(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const u=l3(e,o,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(u),l&&f3(e,l,u),d3(e,o,r)}}function Ff(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function h3(e,t){e._appendCommentNode(t,e.openElements.items[0])}function p3(e,t){e._appendCommentNode(t,e.document)}function Bf(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const u=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(u);l&&!l.endTag&&e._setEndLocation(u,t)}}}}function m3(e,t){e._setDocumentType(t);const n=t.forceQuirks?On.QUIRKS:YN(t);VN(t)||e._err(t,W.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=v.BEFORE_HTML}function bo(e,t){e._err(t,W.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,On.QUIRKS),e.insertionMode=v.BEFORE_HTML,e._processToken(t)}function g3(e,t){t.tagID===p.HTML?(e._insertElement(t,ee.HTML),e.insertionMode=v.BEFORE_HEAD):_o(e,t)}function E3(e,t){const n=t.tagID;(n===p.HTML||n===p.HEAD||n===p.BODY||n===p.BR)&&_o(e,t)}function _o(e,t){e._insertFakeRootElement(),e.insertionMode=v.BEFORE_HEAD,e._processToken(t)}function y3(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.HEAD:{e._insertElement(t,ee.HTML),e.headElement=e.openElements.current,e.insertionMode=v.IN_HEAD;break}default:So(e,t)}}function T3(e,t){const n=t.tagID;n===p.HEAD||n===p.BODY||n===p.HTML||n===p.BR?So(e,t):e._err(t,W.endTagWithoutMatchingOpenElement)}function So(e,t){e._insertFakeElement(U.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=v.IN_HEAD,e._processToken(t)}function $n(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,ee.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,bt.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,bt.RAWTEXT):(e._insertElement(t,ee.HTML),e.insertionMode=v.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,bt.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,bt.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=v.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(v.IN_TEMPLATE);break}case p.HEAD:{e._err(t,W.misplacedStartTagForHeadElement);break}default:xo(e,t)}}function b3(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=v.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{xo(e,t);break}case p.TEMPLATE:{yi(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function yi(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,W.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,W.endTagWithoutMatchingOpenElement)}function xo(e,t){e.openElements.pop(),e.insertionMode=v.AFTER_HEAD,e._processToken(t)}function _3(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{$n(e,t);break}case p.NOSCRIPT:{e._err(t,W.nestedNoscriptInHead);break}default:Ao(e,t)}}function S3(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=v.IN_HEAD;break}case p.BR:{Ao(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function Ao(e,t){const n=t.type===He.EOF?W.openElementsLeftAfterEof:W.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=v.IN_HEAD,e._processToken(t)}function x3(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.BODY:{e._insertElement(t,ee.HTML),e.framesetOk=!1,e.insertionMode=v.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,ee.HTML),e.insertionMode=v.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,W.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),$n(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,W.misplacedStartTagForHeadElement);break}default:Co(e,t)}}function A3(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{Co(e,t);break}case p.TEMPLATE:{yi(e,t);break}default:e._err(t,W.endTagWithoutMatchingOpenElement)}}function Co(e,t){e._insertFakeElement(U.BODY,p.BODY),e.insertionMode=v.IN_BODY,ya(e,t)}function ya(e,t){switch(t.type){case He.CHARACTER:{o1(e,t);break}case He.WHITESPACE_CHARACTER:{s1(e,t);break}case He.COMMENT:{Ff(e,t);break}case He.START_TAG:{qt(e,t);break}case He.END_TAG:{Ta(e,t);break}case He.EOF:{d1(e,t);break}}}function s1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function o1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function C3(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function k3(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function w3(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ee.HTML),e.insertionMode=v.IN_FRAMESET)}function N3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ee.HTML)}function v3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Pf.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ee.HTML)}function O3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ee.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function I3(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ee.HTML),n||(e.formElement=e.openElements.current))}function R3(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.tagIDs[r];if(n===p.LI&&o===p.LI||(n===p.DD||n===p.DT)&&(o===p.DD||o===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==p.ADDRESS&&o!==p.DIV&&o!==p.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ee.HTML)}function P3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ee.HTML),e.tokenizer.state=bt.PLAINTEXT}function L3(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML),e.framesetOk=!1}function D3(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(U.A);n&&(Mf(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function M3(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function F3(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(Mf(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ee.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function B3(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function U3(e,t){e.treeAdapter.getDocumentMode(e.document)!==On.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ee.HTML),e.framesetOk=!1,e.insertionMode=v.IN_TABLE}function u1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ee.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function a1(e){const t=Hg(e,Ei.TYPE);return t!=null&&t.toLowerCase()===r3}function H3(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ee.HTML),a1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function z3(e,t){e._appendElement(t,ee.HTML),t.ackSelfClosing=!0}function j3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,ee.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $3(e,t){t.tagName=U.IMG,t.tagID=p.IMG,u1(e,t)}function V3(e,t){e._insertElement(t,ee.HTML),e.skipNextNewLine=!0,e.tokenizer.state=bt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=v.TEXT}function Y3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function q3(e,t){e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function l1(e,t){e._switchToTextParsing(t,bt.RAWTEXT)}function W3(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===v.IN_TABLE||e.insertionMode===v.IN_CAPTION||e.insertionMode===v.IN_TABLE_BODY||e.insertionMode===v.IN_ROW||e.insertionMode===v.IN_CELL?v.IN_SELECT_IN_TABLE:v.IN_SELECT}function G3(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML)}function K3(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ee.HTML)}function Q3(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,ee.HTML)}function X3(e,t){e._reconstructActiveFormattingElements(),e1(t),Df(t),t.selfClosing?e._appendElement(t,ee.MATHML):e._insertElement(t,ee.MATHML),t.ackSelfClosing=!0}function J3(e,t){e._reconstructActiveFormattingElements(),t1(t),Df(t),t.selfClosing?e._appendElement(t,ee.SVG):e._insertElement(t,ee.SVG),t.ackSelfClosing=!0}function c1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML)}function qt(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{M3(e,t);break}case p.A:{D3(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{v3(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{N3(e,t);break}case p.LI:case p.DD:case p.DT:{R3(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{u1(e,t);break}case p.HR:{j3(e,t);break}case p.RB:case p.RTC:{K3(e,t);break}case p.RT:case p.RP:{Q3(e,t);break}case p.PRE:case p.LISTING:{O3(e,t);break}case p.XMP:{Y3(e,t);break}case p.SVG:{J3(e,t);break}case p.HTML:{C3(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{$n(e,t);break}case p.BODY:{k3(e,t);break}case p.FORM:{I3(e,t);break}case p.NOBR:{F3(e,t);break}case p.MATH:{X3(e,t);break}case p.TABLE:{U3(e,t);break}case p.INPUT:{H3(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{z3(e,t);break}case p.IMAGE:{$3(e,t);break}case p.BUTTON:{L3(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{B3(e,t);break}case p.IFRAME:{q3(e,t);break}case p.SELECT:{W3(e,t);break}case p.OPTION:case p.OPTGROUP:{G3(e,t);break}case p.NOEMBED:case p.NOFRAMES:{l1(e,t);break}case p.FRAMESET:{w3(e,t);break}case p.TEXTAREA:{V3(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?l1(e,t):c1(e,t);break}case p.PLAINTEXT:{P3(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:c1(e,t)}}function Z3(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=v.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function ev(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=v.AFTER_BODY,b1(e,t))}function tv(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function nv(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):n&&e.openElements.remove(n))}function rv(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(U.P,p.P),e._closePElement()}function iv(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function sv(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function ov(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function uv(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function av(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(U.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function f1(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const u=e.openElements.items[o],l=e.openElements.tagIDs[o];if(r===l&&(r!==p.UNKNOWN||e.treeAdapter.getTagName(u)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(u,l))break}}function Ta(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{Mf(e,t);break}case p.P:{rv(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{tv(e,t);break}case p.LI:{iv(e);break}case p.DD:case p.DT:{sv(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{ov(e);break}case p.BR:{av(e);break}case p.BODY:{Z3(e,t);break}case p.HTML:{ev(e,t);break}case p.FORM:{nv(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{uv(e,t);break}case p.TEMPLATE:{yi(e,t);break}default:f1(e,t)}}function d1(e,t){e.tmplInsertionModeStack.length>0?T1(e,t):Bf(e,t)}function lv(e,t){var n;t.tagID===p.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function cv(e,t){e._err(t,W.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Uf(e,t){if(e.openElements.currentTagId!==void 0&&n1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=v.IN_TABLE_TEXT,t.type){case He.CHARACTER:{p1(e,t);break}case He.WHITESPACE_CHARACTER:{h1(e,t);break}}else wo(e,t)}function fv(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ee.HTML),e.insertionMode=v.IN_CAPTION}function dv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ee.HTML),e.insertionMode=v.IN_COLUMN_GROUP}function hv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.COLGROUP,p.COLGROUP),e.insertionMode=v.IN_COLUMN_GROUP,Hf(e,t)}function pv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ee.HTML),e.insertionMode=v.IN_TABLE_BODY}function mv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.TBODY,p.TBODY),e.insertionMode=v.IN_TABLE_BODY,_a(e,t)}function gv(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Ev(e,t){a1(t)?e._appendElement(t,ee.HTML):wo(e,t),t.ackSelfClosing=!0}function yv(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ee.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function as(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{mv(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{$n(e,t);break}case p.COL:{hv(e,t);break}case p.FORM:{yv(e,t);break}case p.TABLE:{gv(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{pv(e,t);break}case p.INPUT:{Ev(e,t);break}case p.CAPTION:{fv(e,t);break}case p.COLGROUP:{dv(e,t);break}default:wo(e,t)}}function ko(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{yi(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:wo(e,t)}}function wo(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ya(e,t),e.fosterParentingEnabled=n}function h1(e,t){e.pendingCharacterTokens.push(t)}function p1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function No(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)wo(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const m1=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function Tv(e,t){const n=t.tagID;m1.has(n)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_TABLE,as(e,t)):qt(e,t)}function bv(e,t){const n=t.tagID;switch(n){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_TABLE,n===p.TABLE&&ko(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Ta(e,t)}}function Hf(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.COL:{e._appendElement(t,ee.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{$n(e,t);break}default:ba(e,t)}}function _v(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=v.IN_TABLE);break}case p.TEMPLATE:{yi(e,t);break}case p.COL:break;default:ba(e,t)}}function ba(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=v.IN_TABLE,e._processToken(t))}function _a(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ee.HTML),e.insertionMode=v.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(U.TR,p.TR),e.insertionMode=v.IN_ROW,Sa(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE,as(e,t));break}default:as(e,t)}}function zf(e,t){const n=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE,ko(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:ko(e,t)}}function Sa(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ee.HTML),e.insertionMode=v.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,_a(e,t));break}default:as(e,t)}}function g1(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,zf(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=v.IN_TABLE_BODY,zf(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:ko(e,t)}}function Sv(e,t){const n=t.tagID;m1.has(n)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),Sa(e,t)):qt(e,t)}function xv(e,t){const n=t.tagID;switch(n){case p.TD:case p.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),g1(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:Ta(e,t)}}function E1(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,ee.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ee.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ee.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{$n(e,t);break}}}function y1(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{yi(e,t);break}}}function Av(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):E1(e,t)}function Cv(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):y1(e,t)}function kv(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{$n(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=v.IN_TABLE,e.insertionMode=v.IN_TABLE,as(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=v.IN_COLUMN_GROUP,e.insertionMode=v.IN_COLUMN_GROUP,Hf(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=v.IN_TABLE_BODY,e.insertionMode=v.IN_TABLE_BODY,_a(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=v.IN_ROW,e.insertionMode=v.IN_ROW,Sa(e,t);break}default:e.tmplInsertionModeStack[0]=v.IN_BODY,e.insertionMode=v.IN_BODY,qt(e,t)}}function wv(e,t){t.tagID===p.TEMPLATE&&yi(e,t)}function T1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Bf(e,t)}function Nv(e,t){t.tagID===p.HTML?qt(e,t):xa(e,t)}function b1(e,t){var n;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=v.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else xa(e,t)}function xa(e,t){e.insertionMode=v.IN_BODY,ya(e,t)}function vv(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.FRAMESET:{e._insertElement(t,ee.HTML);break}case p.FRAME:{e._appendElement(t,ee.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{$n(e,t);break}}}function Ov(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=v.AFTER_FRAMESET))}function Iv(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.NOFRAMES:{$n(e,t);break}}}function Rv(e,t){t.tagID===p.HTML&&(e.insertionMode=v.AFTER_AFTER_FRAMESET)}function Pv(e,t){t.tagID===p.HTML?qt(e,t):Aa(e,t)}function Aa(e,t){e.insertionMode=v.IN_BODY,ya(e,t)}function Lv(e,t){switch(t.tagID){case p.HTML:{qt(e,t);break}case p.NOFRAMES:{$n(e,t);break}}}function Dv(e,t){t.chars=ct,e._insertCharacters(t)}function Mv(e,t){e._insertCharacters(t),e.framesetOk=!1}function _1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ee.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Fv(e,t){if(JN(t))_1(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ee.MATHML?e1(t):r===ee.SVG&&(ZN(t),t1(t)),Df(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Bv(e,t){if(t.tagID===p.P||t.tagID===p.BR){_1(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ee.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}U.AREA,U.BASE,U.BASEFONT,U.BGSOUND,U.BR,U.COL,U.EMBED,U.FRAME,U.HR,U.IMG,U.INPUT,U.KEYGEN,U.LINK,U.META,U.PARAM,U.SOURCE,U.TRACK,U.WBR;const Uv=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Hv=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),S1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function x1(e,t){const n=Qv(e),r=Dg("type",{handlers:{root:zv,element:jv,text:$v,comment:C1,doctype:Vv,raw:qv},unknown:Wv}),o={parser:n?new i1(S1):i1.getFragmentParser(void 0,S1),handle(f){r(f,o)},stitches:!1,options:t||{}};r(e,o),ls(o,nr());const u=n?o.parser.document:o.parser.getFragment(),l=zw(u,{file:o.options.file});return o.stitches&&ha(l,"comment",function(f,d,h){const g=f;if(g.value.stitch&&h&&d!==void 0){const y=h.children;return y[d]=g.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function A1(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function zv(e,t){A1(e.children,t)}function jv(e,t){Gv(e,t),A1(e.children,t),Kv(e,t)}function $v(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:He.CHARACTER,chars:e.value,location:vo(e)};ls(t,nr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Vv(e,t){const n={type:He.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:vo(e)};ls(t,nr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Yv(e,t){t.stitches=!0;const n=Xv(e);if("children"in e&&"children"in n){const r=x1({type:"root",children:e.children},t.options);n.children=r.children}C1({type:"comment",value:{stitch:n}},t)}function C1(e,t){const n=e.value,r={type:He.COMMENT,data:n,location:vo(e)};ls(t,nr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function qv(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,k1(t,nr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Uv,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Wv(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Yv(n,t);else{let r="";throw Hv.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function ls(e,t){k1(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=bt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function k1(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Gv(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===bt.PLAINTEXT)return;ls(t,nr(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:mi.html;o===mi.html&&n==="svg"&&(o=mi.svg);const u=nN($e(Q({},e),{children:[]}),{space:o===mi.svg?"svg":"html"}),l={type:He.START_TAG,tagName:n,tagID:us(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in u?u.attrs:[],location:vo(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Kv(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&cN.includes(n)||t.parser.tokenizer.state===bt.PLAINTEXT)return;ls(t,na(e));const r={type:He.END_TAG,tagName:n,tagID:us(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:vo(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===bt.RCDATA||t.parser.tokenizer.state===bt.RAWTEXT||t.parser.tokenizer.state===bt.SCRIPT_DATA)&&(t.parser.tokenizer.state=bt.DATA)}function Qv(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function vo(e){const t=nr(e)||{line:void 0,column:void 0,offset:void 0},n=na(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Xv(e){return"children"in e?ns($e(Q({},e),{children:[]})):ns(e)}function Jv(e){return function(t,n){return x1(t,$e(Q({},e),{file:n}))}}function w1(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function Zv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function eO(e,t,n){const o=fa((n||{}).ignore||[]),u=tO(t);let l=-1;for(;++l<u.length;)sg(e,"text",f);function f(h,g){let y=-1,b;for(;++y<g.length;){const T=g[y],S=b?b.children:void 0;if(o(T,S?S.indexOf(T):void 0,b))return;b=T}if(b)return d(h,g)}function d(h,g){const y=g[g.length-1],b=u[l][0],T=u[l][1];let S=0;const O=y.children.indexOf(h);let L=!1,$=[];b.lastIndex=0;let j=b.exec(h.value);for(;j;){const te=j.index,he={index:j.index,input:j.input,stack:[...g,h]};let F=T(...j,he);if(typeof F=="string"&&(F=F.length>0?{type:"text",value:F}:void 0),F===!1?b.lastIndex=te+1:(S!==te&&$.push({type:"text",value:h.value.slice(S,te)}),Array.isArray(F)?$.push(...F):F&&$.push(F),S=te+j[0].length,L=!0),!b.global)break;j=b.exec(h.value)}return L?(S<h.value.length&&$.push({type:"text",value:h.value.slice(S)}),y.children.splice(O,1,...$)):$=[h],O+$.length}}function tO(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([nO(o[0]),rO(o[1])])}return t}function nO(e){return typeof e=="string"?new RegExp(Zv(e),"g"):e}function rO(e){return typeof e=="function"?e:function(){return e}}const jf="phrasing",$f=["autolink","link","image","label"];function iO(){return{transforms:[fO],enter:{literalAutolink:oO,literalAutolinkEmail:Vf,literalAutolinkHttp:Vf,literalAutolinkWww:Vf},exit:{literalAutolink:cO,literalAutolinkEmail:lO,literalAutolinkHttp:uO,literalAutolinkWww:aO}}}function sO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:jf,notInConstruct:$f},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:jf,notInConstruct:$f},{character:":",before:"[ps]",after:"\\/",inConstruct:jf,notInConstruct:$f}]}}function oO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vf(e){this.config.enter.autolinkProtocol.call(this,e)}function uO(e){this.config.exit.autolinkProtocol.call(this,e)}function aO(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function lO(e){this.config.exit.autolinkEmail.call(this,e)}function cO(e){this.exit(e)}function fO(e){eO(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dO],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),hO]],{ignore:["link","linkReference"]})}function dO(e,t,n,r,o){let u="";if(!N1(o)||(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!pO(n)))return!1;const l=mO(n+r);if(!l[0])return!1;const f={type:"link",title:null,url:u+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[f,{type:"text",value:l[1]}]:f}function hO(e,t,n,r){return!N1(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function pO(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function mO(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=w1(e,"(");let u=w1(e,")");for(;r!==-1&&o>u;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),u++;return[e,n]}function N1(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||pi(n)||ia(n))&&(!t||n!==47)}v1.peek=AO;function gO(){this.buffer()}function EO(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function yO(){this.buffer()}function TO(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bO(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _O(e){this.exit(e)}function SO(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xO(e){this.exit(e)}function AO(){return"["}function v1(e,t,n,r){const o=n.createTracker(r);let u=o.move("[^");const l=n.enter("footnoteReference"),f=n.enter("reference");return u+=o.move(n.safe(n.associationId(e),{after:"]",before:u})),f(),l(),u+=o.move("]"),u}function CO(){return{enter:{gfmFootnoteCallString:gO,gfmFootnoteCall:EO,gfmFootnoteDefinitionLabelString:yO,gfmFootnoteDefinition:TO},exit:{gfmFootnoteCallString:bO,gfmFootnoteCall:_O,gfmFootnoteDefinitionLabelString:SO,gfmFootnoteDefinition:xO}}}function kO(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:v1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,u,l){const f=u.createTracker(l);let d=f.move("[^");const h=u.enter("footnoteDefinition"),g=u.enter("label");return d+=f.move(u.safe(u.associationId(r),{before:d,after:"]"})),g(),d+=f.move("]:"),r.children&&r.children.length>0&&(f.shift(4),d+=f.move((t?`
38
+ `:" ")+u.indentLines(u.containerFlow(r,f.current()),t?O1:wO))),h(),d}}function wO(e,t,n){return t===0?e:O1(e,t,n)}function O1(e,t,n){return(n?"":" ")+e}const NO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];I1.peek=PO;function vO(){return{canContainEols:["delete"],enter:{strikethrough:IO},exit:{strikethrough:RO}}}function OO(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:NO}],handlers:{delete:I1}}}function IO(e){this.enter({type:"delete",children:[]},e)}function RO(e){this.exit(e)}function I1(e,t,n,r){const o=n.createTracker(r),u=n.enter("strikethrough");let l=o.move("~~");return l+=n.containerPhrasing(e,$e(Q({},o.current()),{before:l,after:"~"})),l+=o.move("~~"),u(),l}function PO(){return"~"}function LO(e){return e.length}function DO(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||LO,u=[],l=[],f=[],d=[];let h=0,g=-1;for(;++g<e.length;){const C=[],O=[];let L=-1;for(e[g].length>h&&(h=e[g].length);++L<e[g].length;){const $=MO(e[g][L]);if(n.alignDelimiters!==!1){const j=o($);O[L]=j,(d[L]===void 0||j>d[L])&&(d[L]=j)}C.push($)}l[g]=C,f[g]=O}let y=-1;if(typeof r=="object"&&"length"in r)for(;++y<h;)u[y]=R1(r[y]);else{const C=R1(r);for(;++y<h;)u[y]=C}y=-1;const b=[],T=[];for(;++y<h;){const C=u[y];let O="",L="";C===99?(O=":",L=":"):C===108?O=":":C===114&&(L=":");let $=n.alignDelimiters===!1?1:Math.max(1,d[y]-O.length-L.length);const j=O+"-".repeat($)+L;n.alignDelimiters!==!1&&($=O.length+$+L.length,$>d[y]&&(d[y]=$),T[y]=$),b[y]=j}l.splice(1,0,b),f.splice(1,0,T),g=-1;const S=[];for(;++g<l.length;){const C=l[g],O=f[g];y=-1;const L=[];for(;++y<h;){const $=C[y]||"";let j="",te="";if(n.alignDelimiters!==!1){const he=d[y]-(O[y]||0),F=u[y];F===114?j=" ".repeat(he):F===99?he%2?(j=" ".repeat(he/2+.5),te=" ".repeat(he/2-.5)):(j=" ".repeat(he/2),te=j):te=" ".repeat(he)}n.delimiterStart!==!1&&!y&&L.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&$==="")&&(n.delimiterStart!==!1||y)&&L.push(" "),n.alignDelimiters!==!1&&L.push(j),L.push($),n.alignDelimiters!==!1&&L.push(te),n.padding!==!1&&L.push(" "),(n.delimiterEnd!==!1||y!==h-1)&&L.push("|")}S.push(n.delimiterEnd===!1?L.join("").replace(/ +$/,""):L.join(""))}return S.join(`
39
+ `)}function MO(e){return e==null?"":String(e)}function R1(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function FO(e,t,n,r){const o=n.enter("blockquote"),u=n.createTracker(r);u.move("> "),u.shift(2);const l=n.indentLines(n.containerFlow(e,u.current()),BO);return o(),l}function BO(e,t,n){return">"+(n?"":" ")+e}function UO(e,t){return P1(e,t.inConstruct,!0)&&!P1(e,t.notInConstruct,!1)}function P1(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function L1(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
40
+ `&&UO(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
41
+ `}function HO(e,t){const n=String(e);let r=n.indexOf(t),o=r,u=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++u>l&&(l=u):u=1,o=r+t.length,r=n.indexOf(t,o);return l}function zO(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function jO(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function $O(e,t,n,r){const o=jO(n),u=e.value||"",l=o==="`"?"GraveAccent":"Tilde";if(zO(e,n)){const y=n.enter("codeIndented"),b=n.indentLines(u,VO);return y(),b}const f=n.createTracker(r),d=o.repeat(Math.max(HO(u,o)+1,3)),h=n.enter("codeFenced");let g=f.move(d);if(e.lang){const y=n.enter(`codeFencedLang${l}`);g+=f.move(n.safe(e.lang,Q({before:g,after:" ",encode:["`"]},f.current()))),y()}if(e.lang&&e.meta){const y=n.enter(`codeFencedMeta${l}`);g+=f.move(" "),g+=f.move(n.safe(e.meta,Q({before:g,after:`
42
42
  `,encode:["`"]},f.current()))),y()}return g+=f.move(`
43
43
  `),u&&(g+=f.move(u+`
44
- `)),g+=f.move(d),h(),g}function VI(e,t,n){return(n?"":" ")+e}function Yf(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function YI(e,t,n,r){const o=Yf(n),u=o==='"'?"Quote":"Apostrophe",l=n.enter("definition");let f=n.enter("label");const d=n.createTracker(r);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),Q({before:h,after:"]"},d.current()))),h+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,Q({before:h,after:">"},d.current()))),h+=d.move(">")):(f=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,Q({before:h,after:e.title?" ":`
45
- `},d.current())))),f(),e.title&&(f=n.enter(`title${u}`),h+=d.move(" "+o),h+=d.move(n.safe(e.title,Q({before:h,after:o},d.current()))),h+=d.move(o),f()),l(),h}function qI(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Io(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ca(e,t,n){const r=Zi(e),o=Zi(t);return r===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}D1.peek=WI;function D1(e,t,n,r){const o=qI(n),u=n.enter("emphasis"),l=n.createTracker(r),f=l.move(o);let d=l.move(n.containerPhrasing(e,Q({after:o,before:f},l.current())));const h=d.charCodeAt(0),g=Ca(r.before.charCodeAt(r.before.length-1),h,o);g.inside&&(d=Io(h)+d.slice(1));const y=d.charCodeAt(d.length-1),b=Ca(r.after.charCodeAt(0),y,o);b.inside&&(d=d.slice(0,-1)+Io(y));const T=l.move(o);return u(),n.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},f+d+T}function WI(e,t,n){return n.options.emphasis||"*"}function GI(e,t){let n=!1;return ha(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,df}),!!((!e.depth||e.depth<3)&&ef(e)&&(t.options.setext||n))}function KI(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),u=n.createTracker(r);if(GI(e,n)){const g=n.enter("headingSetext"),y=n.enter("phrasing"),b=n.containerPhrasing(e,$e(Q({},u.current()),{before:`
44
+ `)),g+=f.move(d),h(),g}function VO(e,t,n){return(n?"":" ")+e}function Yf(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function YO(e,t,n,r){const o=Yf(n),u=o==='"'?"Quote":"Apostrophe",l=n.enter("definition");let f=n.enter("label");const d=n.createTracker(r);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),Q({before:h,after:"]"},d.current()))),h+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,Q({before:h,after:">"},d.current()))),h+=d.move(">")):(f=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,Q({before:h,after:e.title?" ":`
45
+ `},d.current())))),f(),e.title&&(f=n.enter(`title${u}`),h+=d.move(" "+o),h+=d.move(n.safe(e.title,Q({before:h,after:o},d.current()))),h+=d.move(o),f()),l(),h}function qO(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Oo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ca(e,t,n){const r=es(e),o=es(t);return r===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}D1.peek=WO;function D1(e,t,n,r){const o=qO(n),u=n.enter("emphasis"),l=n.createTracker(r),f=l.move(o);let d=l.move(n.containerPhrasing(e,Q({after:o,before:f},l.current())));const h=d.charCodeAt(0),g=Ca(r.before.charCodeAt(r.before.length-1),h,o);g.inside&&(d=Oo(h)+d.slice(1));const y=d.charCodeAt(d.length-1),b=Ca(r.after.charCodeAt(0),y,o);b.inside&&(d=d.slice(0,-1)+Oo(y));const T=l.move(o);return u(),n.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},f+d+T}function WO(e,t,n){return n.options.emphasis||"*"}function GO(e,t){let n=!1;return ha(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,df}),!!((!e.depth||e.depth<3)&&ef(e)&&(t.options.setext||n))}function KO(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),u=n.createTracker(r);if(GO(e,n)){const g=n.enter("headingSetext"),y=n.enter("phrasing"),b=n.containerPhrasing(e,$e(Q({},u.current()),{before:`
46
46
  `,after:`
47
47
  `}));return y(),g(),b+`
48
48
  `+(o===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
49
49
  `))+1))}const l="#".repeat(o),f=n.enter("headingAtx"),d=n.enter("phrasing");u.move(l+" ");let h=n.containerPhrasing(e,Q({before:"# ",after:`
50
- `},u.current()));return/^[\t ]/.test(h)&&(h=Io(h.charCodeAt(0))+h.slice(1)),h=h?l+" "+h:l,n.options.closeAtx&&(h+=" "+l),d(),f(),h}M1.peek=QI;function M1(e){return e.value||""}function QI(){return"<"}F1.peek=XI;function F1(e,t,n,r){const o=Yf(n),u=o==='"'?"Quote":"Apostrophe",l=n.enter("image");let f=n.enter("label");const d=n.createTracker(r);let h=d.move("![");return h+=d.move(n.safe(e.alt,Q({before:h,after:"]"},d.current()))),h+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,Q({before:h,after:">"},d.current()))),h+=d.move(">")):(f=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,Q({before:h,after:e.title?" ":")"},d.current())))),f(),e.title&&(f=n.enter(`title${u}`),h+=d.move(" "+o),h+=d.move(n.safe(e.title,Q({before:h,after:o},d.current()))),h+=d.move(o),f()),h+=d.move(")"),l(),h}function XI(){return"!"}B1.peek=JI;function B1(e,t,n,r){const o=e.referenceType,u=n.enter("imageReference");let l=n.enter("label");const f=n.createTracker(r);let d=f.move("![");const h=n.safe(e.alt,Q({before:d,after:"]"},f.current()));d+=f.move(h+"]["),l();const g=n.stack;n.stack=[],l=n.enter("reference");const y=n.safe(n.associationId(e),Q({before:d,after:"]"},f.current()));return l(),n.stack=g,u(),o==="full"||!h||h!==y?d+=f.move(y+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function JI(){return"!"}U1.peek=ZI;function U1(e,t,n){let r=e.value||"",o="`",u=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u<n.unsafe.length;){const l=n.unsafe[u],f=n.compilePattern(l);let d;if(l.atBreak)for(;d=f.exec(r);){let h=d.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(d.index+1)}}return o+r+o}function ZI(){return"`"}function H1(e,t){const n=ef(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}z1.peek=eO;function z1(e,t,n,r){const o=Yf(n),u=o==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let f,d;if(H1(e,n)){const g=n.stack;n.stack=[],f=n.enter("autolink");let y=l.move("<");return y+=l.move(n.containerPhrasing(e,Q({before:y,after:">"},l.current()))),y+=l.move(">"),f(),n.stack=g,y}f=n.enter("link"),d=n.enter("label");let h=l.move("[");return h+=l.move(n.containerPhrasing(e,Q({before:h,after:"]("},l.current()))),h+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=l.move("<"),h+=l.move(n.safe(e.url,Q({before:h,after:">"},l.current()))),h+=l.move(">")):(d=n.enter("destinationRaw"),h+=l.move(n.safe(e.url,Q({before:h,after:e.title?" ":")"},l.current())))),d(),e.title&&(d=n.enter(`title${u}`),h+=l.move(" "+o),h+=l.move(n.safe(e.title,Q({before:h,after:o},l.current()))),h+=l.move(o),d()),h+=l.move(")"),f(),h}function eO(e,t,n){return H1(e,n)?"<":"["}j1.peek=tO;function j1(e,t,n,r){const o=e.referenceType,u=n.enter("linkReference");let l=n.enter("label");const f=n.createTracker(r);let d=f.move("[");const h=n.containerPhrasing(e,Q({before:d,after:"]"},f.current()));d+=f.move(h+"]["),l();const g=n.stack;n.stack=[],l=n.enter("reference");const y=n.safe(n.associationId(e),Q({before:d,after:"]"},f.current()));return l(),n.stack=g,u(),o==="full"||!h||h!==y?d+=f.move(y+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function tO(){return"["}function qf(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function nO(e){const t=qf(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function rO(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function $1(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function iO(e,t,n,r){const o=n.enter("list"),u=n.bulletCurrent;let l=e.ordered?rO(n):qf(n);const f=e.ordered?l==="."?")":".":nO(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&g&&(!g.children||!g.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),$1(n)===l&&g){let y=-1;for(;++y<e.children.length;){const b=e.children[y];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=f),n.bulletCurrent=l;const h=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=u,o(),h}function sO(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function oO(e,t,n,r){const o=sO(n);let u=n.bulletCurrent||qf(n);t&&t.type==="list"&&t.ordered&&(u=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+u);let l=u.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const f=n.createTracker(r);f.move(u+" ".repeat(l-u.length)),f.shift(l);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,f.current()),g);return d(),h;function g(y,b,T){return b?(T?"":" ".repeat(l))+y:(T?u:u+" ".repeat(l-u.length))+y}}function uO(e,t,n,r){const o=n.enter("paragraph"),u=n.enter("phrasing"),l=n.containerPhrasing(e,r);return u(),o(),l}const aO=fa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lO(e,t,n,r){return(e.children.some(function(l){return aO(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function cO(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}V1.peek=fO;function V1(e,t,n,r){const o=cO(n),u=n.enter("strong"),l=n.createTracker(r),f=l.move(o+o);let d=l.move(n.containerPhrasing(e,Q({after:o,before:f},l.current())));const h=d.charCodeAt(0),g=Ca(r.before.charCodeAt(r.before.length-1),h,o);g.inside&&(d=Io(h)+d.slice(1));const y=d.charCodeAt(d.length-1),b=Ca(r.after.charCodeAt(0),y,o);b.inside&&(d=d.slice(0,-1)+Io(y));const T=l.move(o+o);return u(),n.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},f+d+T}function fO(e,t,n){return n.options.strong||"*"}function dO(e,t,n,r){return n.safe(e.value,r)}function hO(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function pO(e,t,n){const r=($1(n)+(n.options.ruleSpaces?" ":"")).repeat(hO(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Y1={blockquote:FI,break:L1,code:$I,definition:YI,emphasis:D1,hardBreak:L1,heading:KI,html:M1,image:F1,imageReference:B1,inlineCode:U1,link:z1,linkReference:j1,list:iO,listItem:oO,paragraph:uO,root:lO,strong:V1,text:dO,thematicBreak:pO};function mO(){return{enter:{table:gO,tableData:q1,tableHeader:q1,tableRow:yO},exit:{codeText:TO,table:EO,tableData:Wf,tableHeader:Wf,tableRow:Wf}}}function gO(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function EO(e){this.exit(e),this.data.inTable=void 0}function yO(e){this.enter({type:"tableRow",children:[]},e)}function Wf(e){this.exit(e)}function q1(e){this.enter({type:"tableCell",children:[]},e)}function TO(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bO));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bO(e,t){return t==="|"?t:e}function _O(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,u=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
51
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:l,tableCell:d,tableRow:f}};function l(T,S,C,O){return h(g(T,C,O),T.align)}function f(T,S,C,O){const L=y(T,C,O),V=h([L]);return V.slice(0,V.indexOf(`
52
- `))}function d(T,S,C,O){const L=C.enter("tableCell"),V=C.enter("phrasing"),j=C.containerPhrasing(T,$e(Q({},O),{before:u,after:u}));return V(),L(),j}function h(T,S){return DI(T,{align:S,alignDelimiters:r,padding:n,stringLength:o})}function g(T,S,C){const O=T.children;let L=-1;const V=[],j=S.enter("table");for(;++L<O.length;)V[L]=y(O[L],S,C);return j(),V}function y(T,S,C){const O=T.children;let L=-1;const V=[],j=S.enter("tableRow");for(;++L<O.length;)V[L]=d(O[L],T,S,C);return j(),V}function b(T,S,C){let O=Y1.inlineCode(T,S,C);return C.stack.includes("tableCell")&&(O=O.replace(/\|/g,"\\$&")),O}}function SO(){return{exit:{taskListCheckValueChecked:W1,taskListCheckValueUnchecked:W1,paragraph:AO}}}function xO(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:CO}}}function W1(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function AO(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let u=-1,l;for(;++u<o.length;){const f=o[u];if(f.type==="paragraph"){l=f;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function CO(e,t,n,r){const o=e.children[0],u=typeof e.checked=="boolean"&&o&&o.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",f=n.createTracker(r);u&&f.move(l);let d=Y1.listItem(e,t,n,Q(Q({},r),f.current()));return u&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(g){return g+l}}function kO(){return[iI(),CI(),vI(),mO(),SO()]}function wO(e){return{extensions:[sI(),kI(e),II(),_O(e),xO()]}}const NO={tokenize:LO,partial:!0},G1={tokenize:DO,partial:!0},K1={tokenize:MO,partial:!0},Q1={tokenize:FO,partial:!0},vO={tokenize:BO,partial:!0},X1={name:"wwwAutolink",tokenize:RO,previous:Z1},J1={name:"protocolAutolink",tokenize:PO,previous:eE},yr={name:"emailAutolink",tokenize:OO,previous:tE},sr={};function IO(){return{text:sr}}let Ti=48;for(;Ti<123;)sr[Ti]=yr,Ti++,Ti===58?Ti=65:Ti===91&&(Ti=97);sr[43]=yr,sr[45]=yr,sr[46]=yr,sr[95]=yr,sr[72]=[yr,J1],sr[104]=[yr,J1],sr[87]=[yr,X1],sr[119]=[yr,X1];function OO(e,t,n){const r=this;let o,u;return l;function l(y){return!Gf(y)||!tE.call(r,r.previous)||Kf(r.events)?n(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return Gf(y)?(e.consume(y),f):y===64?(e.consume(y),d):n(y)}function d(y){return y===46?e.check(vO,g,h)(y):y===45||y===95||Yt(y)?(u=!0,e.consume(y),d):g(y)}function h(y){return e.consume(y),o=!0,d}function g(y){return u&&o&&Jt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(y)):n(y)}}function RO(e,t,n){const r=this;return o;function o(l){return l!==87&&l!==119||!Z1.call(r,r.previous)||Kf(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(NO,e.attempt(G1,e.attempt(K1,u),n),n)(l))}function u(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function PO(e,t,n){const r=this;let o="",u=!1;return l;function l(y){return(y===72||y===104)&&eE.call(r,r.previous)&&!Kf(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(y),e.consume(y),f):n(y)}function f(y){if(Jt(y)&&o.length<5)return o+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const b=o.toLowerCase();if(b==="http"||b==="https")return e.consume(y),d}return n(y)}function d(y){return y===47?(e.consume(y),u?h:(u=!0,d)):n(y)}function h(y){return y===null||ra(y)||rt(y)||pi(y)||ia(y)?n(y):e.attempt(G1,e.attempt(K1,g),n)(y)}function g(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(y)}}function LO(e,t,n){let r=0;return o;function o(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),o):l===46&&r===3?(e.consume(l),u):n(l)}function u(l){return l===null?n(l):t(l)}}function DO(e,t,n){let r,o,u;return l;function l(h){return h===46||h===95?e.check(Q1,d,f)(h):h===null||rt(h)||pi(h)||h!==45&&ia(h)?d(h):(u=!0,e.consume(h),l)}function f(h){return h===95?r=!0:(o=r,r=void 0),e.consume(h),l}function d(h){return o||r||!u?n(h):t(h)}}function MO(e,t){let n=0,r=0;return o;function o(l){return l===40?(n++,e.consume(l),o):l===41&&r<n?u(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Q1,t,u)(l):l===null||rt(l)||pi(l)?t(l):(e.consume(l),o)}function u(l){return l===41&&r++,e.consume(l),o}}function FO(e,t,n){return r;function r(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),r):f===38?(e.consume(f),u):f===93?(e.consume(f),o):f===60||f===null||rt(f)||pi(f)?t(f):n(f)}function o(f){return f===null||f===40||f===91||rt(f)||pi(f)?t(f):r(f)}function u(f){return Jt(f)?l(f):n(f)}function l(f){return f===59?(e.consume(f),r):Jt(f)?(e.consume(f),l):n(f)}}function BO(e,t,n){return r;function r(u){return e.consume(u),o}function o(u){return Yt(u)?n(u):t(u)}}function Z1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||rt(e)}function eE(e){return!Jt(e)}function tE(e){return!(e===47||Gf(e))}function Gf(e){return e===43||e===45||e===46||e===95||Yt(e)}function Kf(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const UO={tokenize:WO,partial:!0};function HO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VO,continuation:{tokenize:YO},exit:qO}},text:{91:{name:"gfmFootnoteCall",tokenize:$O},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:zO,resolveTo:jO}}}}function zO(e,t,n){const r=this;let o=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;o--;){const d=r.events[o][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!l||!l._balanced)return n(d);const h=jn(r.sliceSerialize({start:l.end,end:r.now()}));return h.codePointAt(0)!==94||!u.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function jO(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",u,t],["enter",l,t],["exit",l,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...f),e}function $O(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,l;return f;function f(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),d}function d(y){return y!==94?n(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(y){if(u>999||y===93&&!l||y===null||y===91||rt(y))return n(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return o.includes(jn(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(y)}return rt(y)||(l=!0),u++,e.consume(y),y===92?g:h}function g(y){return y===91||y===92||y===93?(e.consume(y),u++,h):h(y)}}function VO(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,l=0,f;return d;function d(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):n(S)}function g(S){if(l>999||S===93&&!f||S===null||S===91||rt(S))return n(S);if(S===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return u=jn(r.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return rt(S)||(f=!0),l++,e.consume(S),S===92?y:g}function y(S){return S===91||S===92||S===93?(e.consume(S),l++,g):g(S)}function b(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),o.includes(u)||o.push(u),Ge(e,T,"gfmFootnoteDefinitionWhitespace")):n(S)}function T(S){return t(S)}}function YO(e,t,n){return e.check(fo,t,e.attempt(UO,t,n))}function qO(e){e.exit("gfmFootnoteDefinition")}function WO(e,t,n){const r=this;return Ge(e,o,"gfmFootnoteDefinitionIndent",5);function o(u){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(u):n(u)}}function GO(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(l,f){let d=-1;for(;++d<l.length;)if(l[d][0]==="enter"&&l[d][1].type==="strikethroughSequenceTemporary"&&l[d][1]._close){let h=d;for(;h--;)if(l[h][0]==="exit"&&l[h][1].type==="strikethroughSequenceTemporary"&&l[h][1]._open&&l[d][1].end.offset-l[d][1].start.offset===l[h][1].end.offset-l[h][1].start.offset){l[d][1].type="strikethroughSequence",l[h][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},l[h][1].start),end:Object.assign({},l[d][1].end)},y={type:"strikethroughText",start:Object.assign({},l[h][1].end),end:Object.assign({},l[d][1].start)},b=[["enter",g,f],["enter",l[h][1],f],["exit",l[h][1],f],["enter",y,f]],T=f.parser.constructs.insideSpan.null;T&&Tn(b,b.length,0,sa(T,l.slice(h+1,d),f)),Tn(b,b.length,0,[["exit",y,f],["enter",l[d][1],f],["exit",l[d][1],f],["exit",g,f]]),Tn(l,h-1,d-h+3,b),d=h+b.length-2;break}}for(d=-1;++d<l.length;)l[d][1].type==="strikethroughSequenceTemporary"&&(l[d][1].type="data");return l}function u(l,f,d){const h=this.previous,g=this.events;let y=0;return b;function b(S){return h===126&&g[g.length-1][1].type!=="characterEscape"?d(S):(l.enter("strikethroughSequenceTemporary"),T(S))}function T(S){const C=Zi(h);if(S===126)return y>1?d(S):(l.consume(S),y++,T);if(y<2&&!n)return d(S);const O=l.exit("strikethroughSequenceTemporary"),L=Zi(S);return O._open=!L||L===2&&!!C,O._close=!C||C===2&&!!L,f(S)}}}class KO{constructor(){this.map=[]}add(t,n,r){QO(this,t,n,r)}consume(t){if(this.map.sort(function(u,l){return u[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const u of o)t.push(u);o=r.pop()}this.map.length=0}}function QO(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function XO(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const u=r.length-1;r[u]=r[u]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function JO(){return{flow:{null:{name:"table",tokenize:ZO,resolveAll:eR}}}}function ZO(e,t,n){const r=this;let o=0,u=0,l;return f;function f(H){let ge=r.events.length-1;for(;ge>-1;){const fe=r.events[ge][1].type;if(fe==="lineEnding"||fe==="linePrefix")ge--;else break}const pe=ge>-1?r.events[ge][1].type:null,ce=pe==="tableHead"||pe==="tableRow"?F:d;return ce===F&&r.parser.lazy[r.now().line]?n(H):ce(H)}function d(H){return e.enter("tableHead"),e.enter("tableRow"),h(H)}function h(H){return H===124||(l=!0,u+=1),g(H)}function g(H){return H===null?n(H):Ie(H)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),T):n(H):Ye(H)?Ge(e,g,"whitespace")(H):(u+=1,l&&(l=!1,o+=1),H===124?(e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),l=!0,g):(e.enter("data"),y(H)))}function y(H){return H===null||H===124||rt(H)?(e.exit("data"),g(H)):(e.consume(H),H===92?b:y)}function b(H){return H===92||H===124?(e.consume(H),y):y(H)}function T(H){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(H):(e.enter("tableDelimiterRow"),l=!1,Ye(H)?Ge(e,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):S(H))}function S(H){return H===45||H===58?O(H):H===124?(l=!0,e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),C):he(H)}function C(H){return Ye(H)?Ge(e,O,"whitespace")(H):O(H)}function O(H){return H===58?(u+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(H),e.exit("tableDelimiterMarker"),L):H===45?(u+=1,L(H)):H===null||Ie(H)?ee(H):he(H)}function L(H){return H===45?(e.enter("tableDelimiterFiller"),V(H)):he(H)}function V(H){return H===45?(e.consume(H),V):H===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(H),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(H))}function j(H){return Ye(H)?Ge(e,ee,"whitespace")(H):ee(H)}function ee(H){return H===124?S(H):H===null||Ie(H)?!l||o!==u?he(H):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(H)):he(H)}function he(H){return n(H)}function F(H){return e.enter("tableRow"),me(H)}function me(H){return H===124?(e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),me):H===null||Ie(H)?(e.exit("tableRow"),t(H)):Ye(H)?Ge(e,me,"whitespace")(H):(e.enter("data"),Ae(H))}function Ae(H){return H===null||H===124||rt(H)?(e.exit("data"),me(H)):(e.consume(H),H===92?Ne:Ae)}function Ne(H){return H===92||H===124?(e.consume(H),Ae):Ae(H)}}function eR(e,t){let n=-1,r=!0,o=0,u=[0,0,0,0],l=[0,0,0,0],f=!1,d=0,h,g,y;const b=new KO;for(;++n<e.length;){const T=e[n],S=T[1];T[0]==="enter"?S.type==="tableHead"?(f=!1,d!==0&&(nE(b,t,d,h,g),g=void 0,d=0),h={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},b.add(n,0,[["enter",h,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(r=!0,y=void 0,u=[0,0,0,0],l=[0,n+1,0,0],f&&(f=!1,g={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},b.add(n,0,[["enter",g,t]])),o=S.type==="tableDelimiterRow"?2:g?3:1):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(u[1]!==0&&(l[0]=l[1],y=ka(b,t,u,o,void 0,y),u=[0,0,0,0]),l[2]=n)):S.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(l[0]=l[1],y=ka(b,t,u,o,void 0,y)),u=l,l=[u[1],n,0,0])):S.type==="tableHead"?(f=!0,d=n):S.type==="tableRow"||S.type==="tableDelimiterRow"?(d=n,u[1]!==0?(l[0]=l[1],y=ka(b,t,u,o,n,y)):l[1]!==0&&(y=ka(b,t,l,o,n,y)),o=0):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&nE(b,t,d,h,g),b.consume(t.events),n=-1;++n<t.events.length;){const T=t.events[n];T[0]==="enter"&&T[1].type==="table"&&(T[1]._align=XO(t.events,n))}return e}function ka(e,t,n,r,o,u){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(u.end=Object.assign({},ls(t.events,n[0])),e.add(n[0],0,[["exit",u,t]]));const d=ls(t.events,n[1]);if(u={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",u,t]]),n[2]!==0){const h=ls(t.events,n[2]),g=ls(t.events,n[3]),y={type:f,start:Object.assign({},h),end:Object.assign({},g)};if(e.add(n[2],0,[["enter",y,t]]),r!==2){const b=t.events[n[2]],T=t.events[n[3]];if(b[1].end=Object.assign({},T[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const S=n[2]+1,C=n[3]-n[2]-1;e.add(S,C,[])}}e.add(n[3]+1,0,[["exit",y,t]])}return o!==void 0&&(u.end=Object.assign({},ls(t.events,o)),e.add(o,0,[["exit",u,t]]),u=void 0),u}function nE(e,t,n,r,o){const u=[],l=ls(t.events,n);o&&(o.end=Object.assign({},l),u.push(["exit",o,t])),r.end=Object.assign({},l),u.push(["exit",r,t]),e.add(n+1,0,u)}function ls(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const tR={name:"tasklistCheck",tokenize:rR};function nR(){return{text:{91:tR}}}function rR(e,t,n){const r=this;return o;function o(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),u)}function u(d){return rt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(d)}function f(d){return Ie(d)?t(d):Ye(d)?e.check({tokenize:iR},t,n)(d):n(d)}}function iR(e,t,n){return Ge(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function sR(e){return k0([IO(),HO(),GO(e),JO(),nR()])}const oR={};function uR(e){const t=this,n=e||oR,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(sR(n)),u.push(kO()),l.push(wO(n))}const wa=()=>P.jsx("span",{className:`${te}-blinking-cursor`,children:P.jsx("svg",{height:"1rem",width:"1rem",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("circle",{r:"0.45rem",cx:"0.5rem",cy:"0.55rem",fill:"black"})})}),rE=({globalClassName:e,message:t})=>{const{isLoading:n,isResponseLoading:r}=io(),o=n&&r(t.eventSourceId)&&t.name==="partial_inquiry";return P.jsx(kw,{remarkPlugins:[uR],rehypePlugins:[Jv],components:{h1:({children:u})=>P.jsx("h1",{className:le(e,`${te}-header h1`),children:u}),h2:({children:u})=>P.jsx("h2",{className:le(e,`${te}-header h2`),children:u}),h3:({children:u})=>P.jsx("h3",{className:le(e,`${te}-header h3`),children:u}),ul:({children:u})=>P.jsx("ul",{className:le(e,`${te}-ul`),children:u}),ol:({children:u})=>P.jsx("ol",{className:le(e,`${te}-ol`),children:u}),li:({children:u})=>P.jsx("li",{className:le(e,`${te}-li`),children:u}),a:({href:u,children:l})=>P.jsx("a",$e(Q({className:le(e,`${te}-link`)},u?{href:u,target:"_blank"}:{}),{rel:"noopener noreferrer",children:l})),table:({children:u})=>P.jsx("table",{className:le(e,`${te}-table`),children:u}),thead:({children:u})=>P.jsx("thead",{className:le(e,`${te}-thead`),children:u}),tbody:({children:u})=>P.jsx("tbody",{className:le(e,`${te}-tbody`),children:u}),tr:({children:u})=>P.jsx("tr",{className:le(e,`${te}-tr`),children:u}),th:({children:u})=>P.jsx("th",{className:le(e,`${te}-th`),children:u}),td:({children:u})=>P.jsx("td",{className:le(e,`${te}-td`),children:u}),span:({className:u,children:l})=>u===`${te}-blinking-cursor`?P.jsx(wa,{}):P.jsx("span",{children:l})},children:t.message+(o?`<span className='${te}-blinking-cursor'></span>`:"")})},aR=({globalClassName:e,message:t})=>{const[n,r]=X.useState(!1),o=t.tool_name||t.toolName,u=!!t.thought,l=!!o,f=()=>{r(d=>!d)};return P.jsxs("div",{children:[P.jsxs("div",{className:le(e,`${te}-progress-message`,"standalone"),children:[P.jsx("span",{className:le(e,`${te}-message-icon`,"progress-icon","standalone"),children:P.jsx(qm,{})}),P.jsx("p",{className:le(e,`${te}-progress-text`,"standalone"),children:t.message})]}),(u||l)&&P.jsxs(P.Fragment,{children:[P.jsx(Gm,{className:le(e,`${te}-thought-context-button`),onClick:f,children:n?P.jsxs(P.Fragment,{children:["Hide ",P.jsx(bx,{})]}):P.jsxs(P.Fragment,{children:["Context ",P.jsx(_x,{})]})}),n&&P.jsx("div",{className:le(e,`${te}-thought-container`),children:u&&P.jsx("p",{className:le(e,`${te}-progress-thought`),children:t.thought})})]})]})},lR=({globalClassName:e,message:t,isWidgetStandalone:n})=>n?P.jsx(aR,{globalClassName:e,message:t}):P.jsxs("div",{className:le(e,`${te}-progress-message`,"embedded"),title:t.message,children:[P.jsx("span",{className:le(e,`${te}-message-icon`,"progress-icon","embedded"),children:P.jsx(qm,{})}),P.jsx("i",{className:le(e,`${te}-progress-text`,"embedded"),children:t.message})]}),cR=({globalClassName:e,message:t,isWidgetStandalone:n})=>{var r;return P.jsxs("div",{className:le(e,`${te}-refined-search`,{embedded:!n,standalone:n}),children:[P.jsxs("div",{className:le(e,`${te}-refined-search-query`,{embedded:!n,standalone:n}),children:[P.jsx("span",{className:le(e,`${te}-message-icon`,`${te}-refined-search-icon`,{embedded:!n,standalone:n}),children:P.jsx(ea,{})}),P.jsx("p",{className:le(e,`${te}-text`,"bold"),children:(r=t.searchParams)==null?void 0:r.query})]}),P.jsx(rE,{message:t})]})},fR=({globalClassName:e,message:t,isWidgetStandalone:n})=>{var r,o;return n?P.jsxs("div",{className:le(e,`${te}-user-message standalone`),children:[P.jsx("span",{className:le(e,`${te}-message-icon user-message-icon standalone`),children:P.jsx(Wm,{})}),P.jsx("p",{className:le(e,`${te}-user-message-text`),children:(r=t.request)==null?void 0:r.userPrompt})]}):P.jsxs("div",{className:le(e,`${te}-user-message embedded`),children:[P.jsx("span",{className:le(e,`${te}-message-icon user-message-icon embedded`),children:P.jsx(Wm,{})}),P.jsx("p",{children:(o=t.request)==null?void 0:o.userPrompt})]})},iE=({isWidgetStandalone:e,globalClassName:t,filterCount:n})=>P.jsx("span",{className:le(t,`${te}-facet-pill`,{standalone:e,embedded:!e}),children:`${n} filters`}),dR=({globalClassName:e,message:t,facetFiltersList:n,filterCount:r})=>{var o;return P.jsxs("div",{className:le(e,`${te}-user-search standalone`),children:[P.jsxs("div",{className:le(e,`${te}-user-search-query`),children:[P.jsx("span",{className:le(e,`${te}-message-icon user-search-icon standalone`),children:P.jsx(ea,{})}),P.jsx("p",{className:le(e,`${te}-text bold`),children:`Your search: ${(o=t.request)==null?void 0:o.searchParams.query}`}),n.length>0&&P.jsx(iE,{isWidgetStandalone:!0,globalClassName:e,filterCount:r})]}),n.length>0&&P.jsx("div",{className:le(e,`${te}-user-search-facet-filters`),children:n.map(u=>{var l,f,d;return P.jsxs("div",{className:le(e,`${te}-user-search-facets`),children:[P.jsx("p",{className:le(e,`${te}-user-search-facet-category`),children:u}),P.jsx("p",{className:le(e,`${te}-user-search-facet-values`),children:(d=(f=(l=t.request)==null?void 0:l.searchParams)==null?void 0:f.facetFilters)==null?void 0:d[u].join(", ")})]},u)})})]})},hR=({globalClassName:e,message:t,isWidgetStandalone:n})=>{var l,f;if(!t.isUserAction)return null;const{facetFilters:r={}}=((l=t.request)==null?void 0:l.searchParams)||{facetFilters:{}},o=Object.keys(r),u=Object.values(r).reduce((d,h)=>d+h.length,0);return n?P.jsx(dR,{globalClassName:e,message:t,facetFiltersList:o,filterCount:u}):P.jsxs("div",{className:le(e,`${te}-user-search embedded`),children:[P.jsx("span",{className:le(e,`${te}-message-icon user-search-icon embedded`),children:P.jsx(ea,{})}),P.jsx("p",{children:(f=t.request)==null?void 0:f.searchParams.query}),o.length>0&&P.jsx(iE,{isWidgetStandalone:!1,filterCount:u})]})},sE=({message:e,globalClassName:t,isWidgetStandalone:n,handleSuggestionClick:r})=>{var u;if(!e)return null;let o=e.name;if(o==="copilot_search"&&(e.isInitialSearch||e.isUserAction)&&(o="faceted_navigation"),o==="copilot_search"&&!((u=e.request)!=null&&u.userPrompt))return null;switch(o){case"copilot_search":return P.jsx(fR,{globalClassName:t,isWidgetStandalone:n,message:e});case"faceted_navigation":return P.jsx(hR,{globalClassName:t,message:e,isWidgetStandalone:n});case"refined_search":return P.jsx(cR,{globalClassName:t,message:e,isWidgetStandalone:n});case"follow_up":return P.jsx(Nx,{globalClassName:t,isWidgetStandalone:n,message:e,handleSuggestionClick:r});case"inquiry":case"partial_inquiry":return P.jsx(rE,{globalClassName:t,message:e});case"error":return P.jsx(Cx,{message:e,isWidgetStandalone:n});case"display_products":return P.jsx(Ax,{message:e,isWidgetStandalone:n});case"progress":return P.jsx(lR,{globalClassName:t,isWidgetStandalone:n,message:e});case"reconnect":return P.jsx("p",{className:le(t,`${te}-reconnect-message`),children:"Connection lost. Reconnecting to server..."});default:return null}},Qf=({isWidgetStandalone:e,messages:t,handleSuggestionClick:n})=>{const{globalClassName:r}=Rr();return t.map(o=>o.messages&&o.type==="group"?P.jsx("div",{className:le(r,`${te}-message-group`,e?"standalone":"embedded"),children:o.messages.length>0&&o.messages.map(u=>P.jsx("div",{className:`${te}-message-group-child`,children:P.jsx(sE,{id:u.id,globalClassName:r,isWidgetStandalone:e,message:u,handleSuggestionClick:n})},u.id))},`group-${o.eventSourceId}`):o.type==="individual"&&o.message?P.jsx("div",{className:le(r,`${te}-message`,e?"standalone":"embedded",{error:o.message.name.includes("error")}),children:P.jsx(sE,{id:o.message.id,globalClassName:r,isWidgetStandalone:e,message:o.message,handleSuggestionClick:n})},o.message.id):null)},oE=()=>{const{globalClassName:e,themeVariables:t}=Rr(),{status:n}=Xu(),{copilot:r,messages:o,groupedMessages:u,isLoading:l,handleUserInput:f,handleSuggestion:d}=io(),{isOpen:h}=n||{},g=X.useRef(null);return X.useEffect(()=>{g.current&&g.current.scrollIntoView({behavior:"smooth",block:"end"})},[o]),r?!h||u.length===0?null:P.jsxs("div",{className:le(e,`${te}-container`,`${te}-embedded-chat`),style:t,children:[P.jsxs("div",{className:le(e,`${te}-message-container`,"embedded"),children:[P.jsx(Qf,{isWidgetStandalone:!1,messages:u,handleSuggestionClick:d}),l&&P.jsx("div",{style:{display:"flex",justifyContent:"flex-start",paddingBottom:"1rem"},children:P.jsx(wa,{})}),P.jsx("div",{ref:g})]}),P.jsx(jc,{className:`embedded-chat ${e}`,isLoading:l,onSubmit:f})]}):P.jsx("div",{children:"Loading Copilot..."})};function pR(e){return zn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1.146 8.354a.5.5 0 0 1 0-.708l2-2a.5.5 0 1 1 .708.708L2.707 7.5h10.586l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L13.293 8.5H2.707l1.147 1.146a.5.5 0 0 1-.708.708z"},child:[]}]})(e)}function mR(e){return zn({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M196.24,68.24,78.48,186H168a6,6,0,0,1,0,12H64a6,6,0,0,1-6-6V88a6,6,0,0,1,12,0v89.52L187.76,59.76a6,6,0,0,1,8.48,8.48Z"},child:[]}]})(e)}function gR(e){return zn({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"},child:[]}]})(e)}function ER(e){return e==null?[]:Array.isArray(e)?e:[e]}var yR=e=>e!=null&&typeof e=="object",Na=e=>typeof e=="string",cs=e=>typeof e=="function",TR=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),bR=e=>Object.prototype.toString.call(e),uE=Function.prototype.toString,_R=uE.call(Object),SR=e=>{if(!yR(e)||bR(e)!="[object Object]"||CR(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=TR(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&uE.call(n)==_R},xR=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,AR=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,CR=e=>xR(e)||AR(e),kR=e=>e(),Xf=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})};function aE(e){if(!SR(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=aE(o))}return n}function Jf(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function wR(e,t){if(e==null)throw new Error(t())}var lE=()=>{},va=e=>typeof e=="object"&&e!==null,NR=1,vR=9,IR=11,cn=e=>va(e)&&e.nodeType===NR&&typeof e.nodeName=="string",Zf=e=>va(e)&&e.nodeType===vR,OR=e=>va(e)&&e===e.window,cE=e=>cn(e)?e.localName||"":"#document";function RR(e){return["html","body","#document"].includes(cE(e))}var PR=e=>va(e)&&e.nodeType!==void 0,fs=e=>PR(e)&&e.nodeType===IR&&"host"in e,LR=e=>cn(e)&&e.localName==="input",DR=e=>cn(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,MR=/(textarea|select)/;function FR(e){if(e==null||!cn(e))return!1;try{return LR(e)&&e.selectionStart!=null||MR.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch(t){return!1}}function Ia(e,t){var r;if(!e||!t||!cn(e)||!cn(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&fs(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function or(e){var t;return Zf(e)?e:OR(e)?e.document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function BR(e){return or(e).documentElement}function Oo(e){var t,n,r;return fs(e)?Oo(e.host):Zf(e)?(t=e.defaultView)!=null?t:window:cn(e)&&(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window}function fE(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function UR(e){if(cE(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fs(e)&&e.host||BR(e);return fs(t)?t.host:t}var ed=new WeakMap;function dE(e){return ed.has(e)||ed.set(e,Oo(e).getComputedStyle(e)),ed.get(e)}var hE=()=>typeof document!="undefined";function HR(){var t;const e=navigator.userAgentData;return(t=e==null?void 0:e.platform)!=null?t:navigator.platform}var td=e=>hE()&&e.test(HR()),pE=()=>hE()&&!!navigator.maxTouchPoints,zR=()=>td(/^iPhone/i),jR=()=>td(/^iPad/i)||mE()&&navigator.maxTouchPoints>1,$R=()=>zR()||jR(),mE=()=>td(/^Mac/i);function VR(e){var t,n,r,o;return(o=(t=e.composedPath)==null?void 0:t.call(e))!=null?o:(r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n)}function Tr(e){var n;const t=VR(e);return(n=t==null?void 0:t[0])!=null?n:e.target}var YR=e=>e.button===2||mE()&&e.ctrlKey&&e.button===0,ur=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,n,r),()=>{o==null||o.removeEventListener(t,n,r)}},gE=e=>cn(e)&&e.tagName==="IFRAME",qR=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),WR=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,nd="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",EE=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(nd));(t==!0||t=="if-empty"&&n.length===0)&&cn(e)&&Br(e)&&n.unshift(e);const o=n.filter(Br);return o.forEach((u,l)=>{if(gE(u)&&u.contentDocument){const f=u.contentDocument.body;o.splice(l,1,...EE(f))}}),o};function Br(e){return!e||e.closest("[inert]")?!1:e.matches(nd)&&DR(e)}function yE(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(nd)).filter(bi);return r.forEach((o,u)=>{if(gE(o)&&o.contentDocument){const l=o.contentDocument.body,f=yE(l);r.splice(u,1,...f)}}),r.length,r}function bi(e){return e!=null&&e.tabIndex>0?!0:Br(e)&&!WR(e)}function Ro(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||FR(e))&&!qR(e)?0:e.tabIndex}function GR(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function br(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t==null||t()}}function rd(e){const t=UR(e);return RR(t)?or(t).body:cn(t)&&XR(t)?t:rd(t)}var KR=/auto|scroll|overlay|hidden|clip/,QR=new Set(["inline","contents"]);function XR(e){const t=Oo(e),{overflow:n,overflowX:r,overflowY:o,display:u}=t.getComputedStyle(e);return KR.test(n+o+r)&&!QR.has(u)}function Oa(e,t){if(!e)return lE;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function JR(e,t,n){if(!e)return lE;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function ZR(e,t,n){const{signal:r}=t;return[new Promise((l,f)=>{const d=setTimeout(()=>{f(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(d),f(new Error("Promise aborted"))}),e.then(h=>{r.aborted||(clearTimeout(d),l(h))}).catch(h=>{r.aborted||(clearTimeout(d),f(h))})}),()=>t.abort()]}function e6(e,t){const{timeout:n,rootNode:r}=t,o=Oo(r),u=or(r),l=new o.AbortController;return ZR(new Promise(f=>{const d=e();if(d){f(d);return}const h=new o.MutationObserver(()=>{const g=e();g&&g.isConnected&&(h.disconnect(),f(g))});h.observe(u.body,{childList:!0,subtree:!0})}),l,n)}var t6=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),n6=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,TE=e=>{const t={};let n;for(;n=n6.exec(e);)t[n[1]]=n[2];return t},r6=(e,t)=>{if(Na(e)){if(Na(t))return`${e};${t}`;e=TE(e)}else Na(t)&&(t=TE(t));return Object.assign({},e!=null?e:{},t!=null?t:{})};function _i(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=Xf(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=t6(t[r],n[r]);continue}if(r==="style"){t[r]=r6(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function J4(e){return e}var ds=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(ds||{}),id="__init__";function i6(e){const t=()=>{var f,d;return(d=(f=e.getRootNode)==null?void 0:f.call(e))!=null?d:document},n=()=>or(t()),r=()=>{var f;return(f=n().defaultView)!=null?f:window},o=()=>fE(t()),u=f=>f===o(),l=f=>t().getElementById(f);return $e(Q({},e),{getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:u,getById:l})}var sd={exports:{}},fn={},od={exports:{}},ud={};/**
50
+ `},u.current()));return/^[\t ]/.test(h)&&(h=Oo(h.charCodeAt(0))+h.slice(1)),h=h?l+" "+h:l,n.options.closeAtx&&(h+=" "+l),d(),f(),h}M1.peek=QO;function M1(e){return e.value||""}function QO(){return"<"}F1.peek=XO;function F1(e,t,n,r){const o=Yf(n),u=o==='"'?"Quote":"Apostrophe",l=n.enter("image");let f=n.enter("label");const d=n.createTracker(r);let h=d.move("![");return h+=d.move(n.safe(e.alt,Q({before:h,after:"]"},d.current()))),h+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,Q({before:h,after:">"},d.current()))),h+=d.move(">")):(f=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,Q({before:h,after:e.title?" ":")"},d.current())))),f(),e.title&&(f=n.enter(`title${u}`),h+=d.move(" "+o),h+=d.move(n.safe(e.title,Q({before:h,after:o},d.current()))),h+=d.move(o),f()),h+=d.move(")"),l(),h}function XO(){return"!"}B1.peek=JO;function B1(e,t,n,r){const o=e.referenceType,u=n.enter("imageReference");let l=n.enter("label");const f=n.createTracker(r);let d=f.move("![");const h=n.safe(e.alt,Q({before:d,after:"]"},f.current()));d+=f.move(h+"]["),l();const g=n.stack;n.stack=[],l=n.enter("reference");const y=n.safe(n.associationId(e),Q({before:d,after:"]"},f.current()));return l(),n.stack=g,u(),o==="full"||!h||h!==y?d+=f.move(y+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function JO(){return"!"}U1.peek=ZO;function U1(e,t,n){let r=e.value||"",o="`",u=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u<n.unsafe.length;){const l=n.unsafe[u],f=n.compilePattern(l);let d;if(l.atBreak)for(;d=f.exec(r);){let h=d.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(d.index+1)}}return o+r+o}function ZO(){return"`"}function H1(e,t){const n=ef(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}z1.peek=eI;function z1(e,t,n,r){const o=Yf(n),u=o==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let f,d;if(H1(e,n)){const g=n.stack;n.stack=[],f=n.enter("autolink");let y=l.move("<");return y+=l.move(n.containerPhrasing(e,Q({before:y,after:">"},l.current()))),y+=l.move(">"),f(),n.stack=g,y}f=n.enter("link"),d=n.enter("label");let h=l.move("[");return h+=l.move(n.containerPhrasing(e,Q({before:h,after:"]("},l.current()))),h+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=l.move("<"),h+=l.move(n.safe(e.url,Q({before:h,after:">"},l.current()))),h+=l.move(">")):(d=n.enter("destinationRaw"),h+=l.move(n.safe(e.url,Q({before:h,after:e.title?" ":")"},l.current())))),d(),e.title&&(d=n.enter(`title${u}`),h+=l.move(" "+o),h+=l.move(n.safe(e.title,Q({before:h,after:o},l.current()))),h+=l.move(o),d()),h+=l.move(")"),f(),h}function eI(e,t,n){return H1(e,n)?"<":"["}j1.peek=tI;function j1(e,t,n,r){const o=e.referenceType,u=n.enter("linkReference");let l=n.enter("label");const f=n.createTracker(r);let d=f.move("[");const h=n.containerPhrasing(e,Q({before:d,after:"]"},f.current()));d+=f.move(h+"]["),l();const g=n.stack;n.stack=[],l=n.enter("reference");const y=n.safe(n.associationId(e),Q({before:d,after:"]"},f.current()));return l(),n.stack=g,u(),o==="full"||!h||h!==y?d+=f.move(y+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function tI(){return"["}function qf(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function nI(e){const t=qf(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function rI(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function $1(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function iI(e,t,n,r){const o=n.enter("list"),u=n.bulletCurrent;let l=e.ordered?rI(n):qf(n);const f=e.ordered?l==="."?")":".":nI(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&g&&(!g.children||!g.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),$1(n)===l&&g){let y=-1;for(;++y<e.children.length;){const b=e.children[y];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=f),n.bulletCurrent=l;const h=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=u,o(),h}function sI(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function oI(e,t,n,r){const o=sI(n);let u=n.bulletCurrent||qf(n);t&&t.type==="list"&&t.ordered&&(u=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+u);let l=u.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const f=n.createTracker(r);f.move(u+" ".repeat(l-u.length)),f.shift(l);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,f.current()),g);return d(),h;function g(y,b,T){return b?(T?"":" ".repeat(l))+y:(T?u:u+" ".repeat(l-u.length))+y}}function uI(e,t,n,r){const o=n.enter("paragraph"),u=n.enter("phrasing"),l=n.containerPhrasing(e,r);return u(),o(),l}const aI=fa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lI(e,t,n,r){return(e.children.some(function(l){return aI(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function cI(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}V1.peek=fI;function V1(e,t,n,r){const o=cI(n),u=n.enter("strong"),l=n.createTracker(r),f=l.move(o+o);let d=l.move(n.containerPhrasing(e,Q({after:o,before:f},l.current())));const h=d.charCodeAt(0),g=Ca(r.before.charCodeAt(r.before.length-1),h,o);g.inside&&(d=Oo(h)+d.slice(1));const y=d.charCodeAt(d.length-1),b=Ca(r.after.charCodeAt(0),y,o);b.inside&&(d=d.slice(0,-1)+Oo(y));const T=l.move(o+o);return u(),n.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},f+d+T}function fI(e,t,n){return n.options.strong||"*"}function dI(e,t,n,r){return n.safe(e.value,r)}function hI(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function pI(e,t,n){const r=($1(n)+(n.options.ruleSpaces?" ":"")).repeat(hI(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Y1={blockquote:FO,break:L1,code:$O,definition:YO,emphasis:D1,hardBreak:L1,heading:KO,html:M1,image:F1,imageReference:B1,inlineCode:U1,link:z1,linkReference:j1,list:iI,listItem:oI,paragraph:uI,root:lI,strong:V1,text:dI,thematicBreak:pI};function mI(){return{enter:{table:gI,tableData:q1,tableHeader:q1,tableRow:yI},exit:{codeText:TI,table:EI,tableData:Wf,tableHeader:Wf,tableRow:Wf}}}function gI(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function EI(e){this.exit(e),this.data.inTable=void 0}function yI(e){this.enter({type:"tableRow",children:[]},e)}function Wf(e){this.exit(e)}function q1(e){this.enter({type:"tableCell",children:[]},e)}function TI(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bI));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bI(e,t){return t==="|"?t:e}function _I(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,u=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
51
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:l,tableCell:d,tableRow:f}};function l(T,S,C,O){return h(g(T,C,O),T.align)}function f(T,S,C,O){const L=y(T,C,O),$=h([L]);return $.slice(0,$.indexOf(`
52
+ `))}function d(T,S,C,O){const L=C.enter("tableCell"),$=C.enter("phrasing"),j=C.containerPhrasing(T,$e(Q({},O),{before:u,after:u}));return $(),L(),j}function h(T,S){return DO(T,{align:S,alignDelimiters:r,padding:n,stringLength:o})}function g(T,S,C){const O=T.children;let L=-1;const $=[],j=S.enter("table");for(;++L<O.length;)$[L]=y(O[L],S,C);return j(),$}function y(T,S,C){const O=T.children;let L=-1;const $=[],j=S.enter("tableRow");for(;++L<O.length;)$[L]=d(O[L],T,S,C);return j(),$}function b(T,S,C){let O=Y1.inlineCode(T,S,C);return C.stack.includes("tableCell")&&(O=O.replace(/\|/g,"\\$&")),O}}function SI(){return{exit:{taskListCheckValueChecked:W1,taskListCheckValueUnchecked:W1,paragraph:AI}}}function xI(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:CI}}}function W1(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function AI(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let u=-1,l;for(;++u<o.length;){const f=o[u];if(f.type==="paragraph"){l=f;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function CI(e,t,n,r){const o=e.children[0],u=typeof e.checked=="boolean"&&o&&o.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",f=n.createTracker(r);u&&f.move(l);let d=Y1.listItem(e,t,n,Q(Q({},r),f.current()));return u&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(g){return g+l}}function kI(){return[iO(),CO(),vO(),mI(),SI()]}function wI(e){return{extensions:[sO(),kO(e),OO(),_I(e),xI()]}}const NI={tokenize:LI,partial:!0},G1={tokenize:DI,partial:!0},K1={tokenize:MI,partial:!0},Q1={tokenize:FI,partial:!0},vI={tokenize:BI,partial:!0},X1={name:"wwwAutolink",tokenize:RI,previous:Z1},J1={name:"protocolAutolink",tokenize:PI,previous:eE},yr={name:"emailAutolink",tokenize:II,previous:tE},sr={};function OI(){return{text:sr}}let Ti=48;for(;Ti<123;)sr[Ti]=yr,Ti++,Ti===58?Ti=65:Ti===91&&(Ti=97);sr[43]=yr,sr[45]=yr,sr[46]=yr,sr[95]=yr,sr[72]=[yr,J1],sr[104]=[yr,J1],sr[87]=[yr,X1],sr[119]=[yr,X1];function II(e,t,n){const r=this;let o,u;return l;function l(y){return!Gf(y)||!tE.call(r,r.previous)||Kf(r.events)?n(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return Gf(y)?(e.consume(y),f):y===64?(e.consume(y),d):n(y)}function d(y){return y===46?e.check(vI,g,h)(y):y===45||y===95||Yt(y)?(u=!0,e.consume(y),d):g(y)}function h(y){return e.consume(y),o=!0,d}function g(y){return u&&o&&Jt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(y)):n(y)}}function RI(e,t,n){const r=this;return o;function o(l){return l!==87&&l!==119||!Z1.call(r,r.previous)||Kf(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(NI,e.attempt(G1,e.attempt(K1,u),n),n)(l))}function u(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function PI(e,t,n){const r=this;let o="",u=!1;return l;function l(y){return(y===72||y===104)&&eE.call(r,r.previous)&&!Kf(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(y),e.consume(y),f):n(y)}function f(y){if(Jt(y)&&o.length<5)return o+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const b=o.toLowerCase();if(b==="http"||b==="https")return e.consume(y),d}return n(y)}function d(y){return y===47?(e.consume(y),u?h:(u=!0,d)):n(y)}function h(y){return y===null||ra(y)||rt(y)||pi(y)||ia(y)?n(y):e.attempt(G1,e.attempt(K1,g),n)(y)}function g(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(y)}}function LI(e,t,n){let r=0;return o;function o(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),o):l===46&&r===3?(e.consume(l),u):n(l)}function u(l){return l===null?n(l):t(l)}}function DI(e,t,n){let r,o,u;return l;function l(h){return h===46||h===95?e.check(Q1,d,f)(h):h===null||rt(h)||pi(h)||h!==45&&ia(h)?d(h):(u=!0,e.consume(h),l)}function f(h){return h===95?r=!0:(o=r,r=void 0),e.consume(h),l}function d(h){return o||r||!u?n(h):t(h)}}function MI(e,t){let n=0,r=0;return o;function o(l){return l===40?(n++,e.consume(l),o):l===41&&r<n?u(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Q1,t,u)(l):l===null||rt(l)||pi(l)?t(l):(e.consume(l),o)}function u(l){return l===41&&r++,e.consume(l),o}}function FI(e,t,n){return r;function r(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),r):f===38?(e.consume(f),u):f===93?(e.consume(f),o):f===60||f===null||rt(f)||pi(f)?t(f):n(f)}function o(f){return f===null||f===40||f===91||rt(f)||pi(f)?t(f):r(f)}function u(f){return Jt(f)?l(f):n(f)}function l(f){return f===59?(e.consume(f),r):Jt(f)?(e.consume(f),l):n(f)}}function BI(e,t,n){return r;function r(u){return e.consume(u),o}function o(u){return Yt(u)?n(u):t(u)}}function Z1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||rt(e)}function eE(e){return!Jt(e)}function tE(e){return!(e===47||Gf(e))}function Gf(e){return e===43||e===45||e===46||e===95||Yt(e)}function Kf(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const UI={tokenize:WI,partial:!0};function HI(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VI,continuation:{tokenize:YI},exit:qI}},text:{91:{name:"gfmFootnoteCall",tokenize:$I},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:zI,resolveTo:jI}}}}function zI(e,t,n){const r=this;let o=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;o--;){const d=r.events[o][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!l||!l._balanced)return n(d);const h=jn(r.sliceSerialize({start:l.end,end:r.now()}));return h.codePointAt(0)!==94||!u.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function jI(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",u,t],["enter",l,t],["exit",l,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...f),e}function $I(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,l;return f;function f(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),d}function d(y){return y!==94?n(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(y){if(u>999||y===93&&!l||y===null||y===91||rt(y))return n(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return o.includes(jn(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(y)}return rt(y)||(l=!0),u++,e.consume(y),y===92?g:h}function g(y){return y===91||y===92||y===93?(e.consume(y),u++,h):h(y)}}function VI(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,l=0,f;return d;function d(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):n(S)}function g(S){if(l>999||S===93&&!f||S===null||S===91||rt(S))return n(S);if(S===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return u=jn(r.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return rt(S)||(f=!0),l++,e.consume(S),S===92?y:g}function y(S){return S===91||S===92||S===93?(e.consume(S),l++,g):g(S)}function b(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),o.includes(u)||o.push(u),Ge(e,T,"gfmFootnoteDefinitionWhitespace")):n(S)}function T(S){return t(S)}}function YI(e,t,n){return e.check(fo,t,e.attempt(UI,t,n))}function qI(e){e.exit("gfmFootnoteDefinition")}function WI(e,t,n){const r=this;return Ge(e,o,"gfmFootnoteDefinitionIndent",5);function o(u){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(u):n(u)}}function GI(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(l,f){let d=-1;for(;++d<l.length;)if(l[d][0]==="enter"&&l[d][1].type==="strikethroughSequenceTemporary"&&l[d][1]._close){let h=d;for(;h--;)if(l[h][0]==="exit"&&l[h][1].type==="strikethroughSequenceTemporary"&&l[h][1]._open&&l[d][1].end.offset-l[d][1].start.offset===l[h][1].end.offset-l[h][1].start.offset){l[d][1].type="strikethroughSequence",l[h][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},l[h][1].start),end:Object.assign({},l[d][1].end)},y={type:"strikethroughText",start:Object.assign({},l[h][1].end),end:Object.assign({},l[d][1].start)},b=[["enter",g,f],["enter",l[h][1],f],["exit",l[h][1],f],["enter",y,f]],T=f.parser.constructs.insideSpan.null;T&&Tn(b,b.length,0,sa(T,l.slice(h+1,d),f)),Tn(b,b.length,0,[["exit",y,f],["enter",l[d][1],f],["exit",l[d][1],f],["exit",g,f]]),Tn(l,h-1,d-h+3,b),d=h+b.length-2;break}}for(d=-1;++d<l.length;)l[d][1].type==="strikethroughSequenceTemporary"&&(l[d][1].type="data");return l}function u(l,f,d){const h=this.previous,g=this.events;let y=0;return b;function b(S){return h===126&&g[g.length-1][1].type!=="characterEscape"?d(S):(l.enter("strikethroughSequenceTemporary"),T(S))}function T(S){const C=es(h);if(S===126)return y>1?d(S):(l.consume(S),y++,T);if(y<2&&!n)return d(S);const O=l.exit("strikethroughSequenceTemporary"),L=es(S);return O._open=!L||L===2&&!!C,O._close=!C||C===2&&!!L,f(S)}}}class KI{constructor(){this.map=[]}add(t,n,r){QI(this,t,n,r)}consume(t){if(this.map.sort(function(u,l){return u[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const u of o)t.push(u);o=r.pop()}this.map.length=0}}function QI(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function XI(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const u=r.length-1;r[u]=r[u]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function JI(){return{flow:{null:{name:"table",tokenize:ZI,resolveAll:eR}}}}function ZI(e,t,n){const r=this;let o=0,u=0,l;return f;function f(H){let ge=r.events.length-1;for(;ge>-1;){const fe=r.events[ge][1].type;if(fe==="lineEnding"||fe==="linePrefix")ge--;else break}const pe=ge>-1?r.events[ge][1].type:null,ce=pe==="tableHead"||pe==="tableRow"?F:d;return ce===F&&r.parser.lazy[r.now().line]?n(H):ce(H)}function d(H){return e.enter("tableHead"),e.enter("tableRow"),h(H)}function h(H){return H===124||(l=!0,u+=1),g(H)}function g(H){return H===null?n(H):Oe(H)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),T):n(H):Ye(H)?Ge(e,g,"whitespace")(H):(u+=1,l&&(l=!1,o+=1),H===124?(e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),l=!0,g):(e.enter("data"),y(H)))}function y(H){return H===null||H===124||rt(H)?(e.exit("data"),g(H)):(e.consume(H),H===92?b:y)}function b(H){return H===92||H===124?(e.consume(H),y):y(H)}function T(H){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(H):(e.enter("tableDelimiterRow"),l=!1,Ye(H)?Ge(e,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):S(H))}function S(H){return H===45||H===58?O(H):H===124?(l=!0,e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),C):he(H)}function C(H){return Ye(H)?Ge(e,O,"whitespace")(H):O(H)}function O(H){return H===58?(u+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(H),e.exit("tableDelimiterMarker"),L):H===45?(u+=1,L(H)):H===null||Oe(H)?te(H):he(H)}function L(H){return H===45?(e.enter("tableDelimiterFiller"),$(H)):he(H)}function $(H){return H===45?(e.consume(H),$):H===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(H),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(H))}function j(H){return Ye(H)?Ge(e,te,"whitespace")(H):te(H)}function te(H){return H===124?S(H):H===null||Oe(H)?!l||o!==u?he(H):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(H)):he(H)}function he(H){return n(H)}function F(H){return e.enter("tableRow"),me(H)}function me(H){return H===124?(e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),me):H===null||Oe(H)?(e.exit("tableRow"),t(H)):Ye(H)?Ge(e,me,"whitespace")(H):(e.enter("data"),Ae(H))}function Ae(H){return H===null||H===124||rt(H)?(e.exit("data"),me(H)):(e.consume(H),H===92?Ne:Ae)}function Ne(H){return H===92||H===124?(e.consume(H),Ae):Ae(H)}}function eR(e,t){let n=-1,r=!0,o=0,u=[0,0,0,0],l=[0,0,0,0],f=!1,d=0,h,g,y;const b=new KI;for(;++n<e.length;){const T=e[n],S=T[1];T[0]==="enter"?S.type==="tableHead"?(f=!1,d!==0&&(nE(b,t,d,h,g),g=void 0,d=0),h={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},b.add(n,0,[["enter",h,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(r=!0,y=void 0,u=[0,0,0,0],l=[0,n+1,0,0],f&&(f=!1,g={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},b.add(n,0,[["enter",g,t]])),o=S.type==="tableDelimiterRow"?2:g?3:1):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(u[1]!==0&&(l[0]=l[1],y=ka(b,t,u,o,void 0,y),u=[0,0,0,0]),l[2]=n)):S.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(l[0]=l[1],y=ka(b,t,u,o,void 0,y)),u=l,l=[u[1],n,0,0])):S.type==="tableHead"?(f=!0,d=n):S.type==="tableRow"||S.type==="tableDelimiterRow"?(d=n,u[1]!==0?(l[0]=l[1],y=ka(b,t,u,o,n,y)):l[1]!==0&&(y=ka(b,t,l,o,n,y)),o=0):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&nE(b,t,d,h,g),b.consume(t.events),n=-1;++n<t.events.length;){const T=t.events[n];T[0]==="enter"&&T[1].type==="table"&&(T[1]._align=XI(t.events,n))}return e}function ka(e,t,n,r,o,u){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(u.end=Object.assign({},cs(t.events,n[0])),e.add(n[0],0,[["exit",u,t]]));const d=cs(t.events,n[1]);if(u={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",u,t]]),n[2]!==0){const h=cs(t.events,n[2]),g=cs(t.events,n[3]),y={type:f,start:Object.assign({},h),end:Object.assign({},g)};if(e.add(n[2],0,[["enter",y,t]]),r!==2){const b=t.events[n[2]],T=t.events[n[3]];if(b[1].end=Object.assign({},T[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const S=n[2]+1,C=n[3]-n[2]-1;e.add(S,C,[])}}e.add(n[3]+1,0,[["exit",y,t]])}return o!==void 0&&(u.end=Object.assign({},cs(t.events,o)),e.add(o,0,[["exit",u,t]]),u=void 0),u}function nE(e,t,n,r,o){const u=[],l=cs(t.events,n);o&&(o.end=Object.assign({},l),u.push(["exit",o,t])),r.end=Object.assign({},l),u.push(["exit",r,t]),e.add(n+1,0,u)}function cs(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const tR={name:"tasklistCheck",tokenize:rR};function nR(){return{text:{91:tR}}}function rR(e,t,n){const r=this;return o;function o(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),u)}function u(d){return rt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(d)}function f(d){return Oe(d)?t(d):Ye(d)?e.check({tokenize:iR},t,n)(d):n(d)}}function iR(e,t,n){return Ge(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function sR(e){return k0([OI(),HI(),GI(e),JI(),nR()])}const oR={};function uR(e){const t=this,n=e||oR,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(sR(n)),u.push(kI()),l.push(wI(n))}const wa=()=>P.jsx("span",{className:`${Z}-blinking-cursor`,children:P.jsx("svg",{height:"1rem",width:"1rem",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("circle",{r:"0.45rem",cx:"0.5rem",cy:"0.55rem",fill:"black"})})}),rE=({globalClassName:e,message:t})=>{const{isLoading:n,isResponseLoading:r}=Gi(),o=n&&r(t.eventSourceId)&&t.name==="partial_inquiry";return P.jsx(kw,{remarkPlugins:[uR],rehypePlugins:[Jv],components:{h1:({children:u})=>P.jsx("h1",{className:ue(e,`${Z}-header h1`),children:u}),h2:({children:u})=>P.jsx("h2",{className:ue(e,`${Z}-header h2`),children:u}),h3:({children:u})=>P.jsx("h3",{className:ue(e,`${Z}-header h3`),children:u}),ul:({children:u})=>P.jsx("ul",{className:ue(e,`${Z}-ul`),children:u}),ol:({children:u})=>P.jsx("ol",{className:ue(e,`${Z}-ol`),children:u}),li:({children:u})=>P.jsx("li",{className:ue(e,`${Z}-li`),children:u}),a:({href:u,children:l})=>P.jsx("a",$e(Q({className:ue(e,`${Z}-link`)},u?{href:u,target:"_blank"}:{}),{rel:"noopener noreferrer",children:l})),table:({children:u})=>P.jsx("table",{className:ue(e,`${Z}-table`),children:u}),thead:({children:u})=>P.jsx("thead",{className:ue(e,`${Z}-thead`),children:u}),tbody:({children:u})=>P.jsx("tbody",{className:ue(e,`${Z}-tbody`),children:u}),tr:({children:u})=>P.jsx("tr",{className:ue(e,`${Z}-tr`),children:u}),th:({children:u})=>P.jsx("th",{className:ue(e,`${Z}-th`),children:u}),td:({children:u})=>P.jsx("td",{className:ue(e,`${Z}-td`),children:u}),span:({className:u,children:l})=>u===`${Z}-blinking-cursor`?P.jsx(wa,{}):P.jsx("span",{children:l})},children:t.message+(o?`<span className='${Z}-blinking-cursor'></span>`:"")})},aR=({globalClassName:e,message:t})=>{const[n,r]=X.useState(!1),o=t.tool_name||t.toolName,u=!!t.thought,l=!!o,f=()=>{r(d=>!d)};return P.jsxs("div",{children:[P.jsxs("div",{className:ue(e,`${Z}-progress-message`,"standalone"),children:[P.jsx("span",{className:ue(e,`${Z}-message-icon`,"progress-icon","standalone"),children:P.jsx(qm,{})}),P.jsx("p",{className:ue(e,`${Z}-progress-text`,"standalone"),children:t.message})]}),(u||l)&&P.jsxs(P.Fragment,{children:[P.jsx(Gm,{className:ue(e,`${Z}-thought-context-button`),onClick:f,children:n?P.jsxs(P.Fragment,{children:["Hide ",P.jsx(bx,{})]}):P.jsxs(P.Fragment,{children:["Context ",P.jsx(_x,{})]})}),n&&P.jsx("div",{className:ue(e,`${Z}-thought-container`),children:u&&P.jsx("p",{className:ue(e,`${Z}-progress-thought`),children:t.thought})})]})]})},lR=({globalClassName:e,message:t,isWidgetStandalone:n})=>n?P.jsx(aR,{globalClassName:e,message:t}):P.jsxs("div",{className:ue(e,`${Z}-progress-message`,"embedded"),title:t.message,children:[P.jsx("span",{className:ue(e,`${Z}-message-icon`,"progress-icon","embedded"),children:P.jsx(qm,{})}),P.jsx("i",{className:ue(e,`${Z}-progress-text`,"embedded"),children:t.message})]}),cR=({globalClassName:e,message:t,isWidgetStandalone:n})=>{var r;return P.jsxs("div",{className:ue(e,`${Z}-refined-search`,{embedded:!n,standalone:n}),children:[P.jsxs("div",{className:ue(e,`${Z}-refined-search-query`,{embedded:!n,standalone:n}),children:[P.jsx("span",{className:ue(e,`${Z}-message-icon`,`${Z}-refined-search-icon`,{embedded:!n,standalone:n}),children:P.jsx(ea,{})}),P.jsx("p",{className:ue(e,`${Z}-text`,"bold"),children:(r=t.searchParams)==null?void 0:r.query})]}),P.jsx(rE,{message:t})]})},fR=({globalClassName:e,message:t,isWidgetStandalone:n})=>{var r,o;return n?P.jsxs("div",{className:ue(e,`${Z}-user-message standalone`),children:[P.jsx("span",{className:ue(e,`${Z}-message-icon user-message-icon standalone`),children:P.jsx(Wm,{})}),P.jsx("p",{className:ue(e,`${Z}-user-message-text`),children:(r=t.request)==null?void 0:r.userPrompt})]}):P.jsxs("div",{className:ue(e,`${Z}-user-message embedded`),children:[P.jsx("span",{className:ue(e,`${Z}-message-icon user-message-icon embedded`),children:P.jsx(Wm,{})}),P.jsx("p",{children:(o=t.request)==null?void 0:o.userPrompt})]})},iE=({isWidgetStandalone:e,globalClassName:t,filterCount:n})=>P.jsx("span",{className:ue(t,`${Z}-facet-pill`,{standalone:e,embedded:!e}),children:`${n} filters`}),dR=({globalClassName:e,message:t,facetFiltersList:n,filterCount:r})=>{var o;return P.jsxs("div",{className:ue(e,`${Z}-user-search standalone`),children:[P.jsxs("div",{className:ue(e,`${Z}-user-search-query`),children:[P.jsx("span",{className:ue(e,`${Z}-message-icon user-search-icon standalone`),children:P.jsx(ea,{})}),P.jsx("p",{className:ue(e,`${Z}-text bold`),children:`Your search: ${(o=t.request)==null?void 0:o.searchParams.query}`}),n.length>0&&P.jsx(iE,{isWidgetStandalone:!0,globalClassName:e,filterCount:r})]}),n.length>0&&P.jsx("div",{className:ue(e,`${Z}-user-search-facet-filters`),children:n.map(u=>{var l,f,d;return P.jsxs("div",{className:ue(e,`${Z}-user-search-facets`),children:[P.jsx("p",{className:ue(e,`${Z}-user-search-facet-category`),children:u}),P.jsx("p",{className:ue(e,`${Z}-user-search-facet-values`),children:(d=(f=(l=t.request)==null?void 0:l.searchParams)==null?void 0:f.facetFilters)==null?void 0:d[u].join(", ")})]},u)})})]})},hR=({globalClassName:e,message:t,isWidgetStandalone:n})=>{var l,f;if(!t.isUserAction)return null;const{facetFilters:r={}}=((l=t.request)==null?void 0:l.searchParams)||{facetFilters:{}},o=Object.keys(r),u=Object.values(r).reduce((d,h)=>d+h.length,0);return n?P.jsx(dR,{globalClassName:e,message:t,facetFiltersList:o,filterCount:u}):P.jsxs("div",{className:ue(e,`${Z}-user-search embedded`),children:[P.jsx("span",{className:ue(e,`${Z}-message-icon user-search-icon embedded`),children:P.jsx(ea,{})}),P.jsx("p",{children:(f=t.request)==null?void 0:f.searchParams.query}),o.length>0&&P.jsx(iE,{isWidgetStandalone:!1,filterCount:u})]})},sE=({message:e,globalClassName:t,isWidgetStandalone:n,handleSuggestionClick:r})=>{var f;const{connected:o}=Fm();if(!e)return null;let u=e.name;if(u==="copilot_search"&&(e.isInitialSearch||e.isUserAction)&&(u="faceted_navigation"),u==="copilot_search"&&!((f=e.request)!=null&&f.userPrompt))return null;const l=o?"connected":"disconnected";switch(u){case"copilot_search":return P.jsx(fR,{globalClassName:t,isWidgetStandalone:n,message:e});case"faceted_navigation":return P.jsx(hR,{globalClassName:t,message:e,isWidgetStandalone:n});case"refined_search":return P.jsx(cR,{globalClassName:t,message:e,isWidgetStandalone:n});case"follow_up":return P.jsx(Nx,{globalClassName:t,isWidgetStandalone:n,message:e,handleSuggestionClick:r});case"inquiry":case"partial_inquiry":return P.jsx(rE,{globalClassName:t,message:e});case"error":return P.jsx(Cx,{message:e,isWidgetStandalone:n});case"display_products":return P.jsx(Ax,{message:e,isWidgetStandalone:n});case"progress":return P.jsx(lR,{globalClassName:t,isWidgetStandalone:n,message:e});case"reconnect":return P.jsxs("p",{className:ue(t,`${Z}-reconnect-message`),children:[P.jsx("span",{className:ue(`${Z}-connection-status-icon`,l)}),"Connection lost. Reconnecting to server."]});default:return null}},Qf=({isWidgetStandalone:e,messages:t,handleSuggestionClick:n})=>{const{globalClassName:r}=Rr();return t.map(o=>o.messages&&o.type==="group"?P.jsx("div",{className:ue(r,`${Z}-message-group`,e?"standalone":"embedded"),children:o.messages.length>0&&o.messages.map(u=>P.jsx("div",{className:`${Z}-message-group-child`,children:P.jsx(sE,{id:u.id,globalClassName:r,isWidgetStandalone:e,message:u,handleSuggestionClick:n})},u.id))},`group-${o.eventSourceId}`):o.type==="individual"&&o.message?P.jsx("div",{className:ue(r,`${Z}-message`,e?"standalone":"embedded",{error:o.message.name.includes("error")}),children:P.jsx(sE,{id:o.message.id,globalClassName:r,isWidgetStandalone:e,message:o.message,handleSuggestionClick:n})},o.message.id):null)},oE=()=>{const{globalClassName:e,themeVariables:t}=Rr(),{status:n}=Xu(),{copilot:r,messages:o,groupedMessages:u,isLoading:l,handleUserInput:f,handleSuggestion:d}=Gi(),{isOpen:h}=n||{},g=X.useRef(null);return X.useEffect(()=>{g.current&&g.current.scrollIntoView({behavior:"smooth",block:"end"})},[o]),r?!h||u.length===0?null:P.jsxs("div",{className:ue(e,`${Z}-container`,`${Z}-embedded-chat`),style:t,children:[P.jsxs("div",{className:ue(e,`${Z}-message-container`,"embedded"),children:[P.jsx(Qf,{isWidgetStandalone:!1,messages:u,handleSuggestionClick:d}),l&&P.jsx("div",{style:{display:"flex",justifyContent:"flex-start",paddingBottom:"1rem"},children:P.jsx(wa,{})}),P.jsx("div",{ref:g})]}),P.jsx(jc,{className:`embedded-chat ${e}`,isLoading:l,onSubmit:f})]}):P.jsx("div",{children:"Loading Copilot..."})};function pR(e){return zn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1.146 8.354a.5.5 0 0 1 0-.708l2-2a.5.5 0 1 1 .708.708L2.707 7.5h10.586l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L13.293 8.5H2.707l1.147 1.146a.5.5 0 0 1-.708.708z"},child:[]}]})(e)}function mR(e){return zn({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M196.24,68.24,78.48,186H168a6,6,0,0,1,0,12H64a6,6,0,0,1-6-6V88a6,6,0,0,1,12,0v89.52L187.76,59.76a6,6,0,0,1,8.48,8.48Z"},child:[]}]})(e)}function gR(e){return zn({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"},child:[]}]})(e)}function ER(e){return e==null?[]:Array.isArray(e)?e:[e]}var yR=e=>e!=null&&typeof e=="object",Na=e=>typeof e=="string",fs=e=>typeof e=="function",TR=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),bR=e=>Object.prototype.toString.call(e),uE=Function.prototype.toString,_R=uE.call(Object),SR=e=>{if(!yR(e)||bR(e)!="[object Object]"||CR(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=TR(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&uE.call(n)==_R},xR=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,AR=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,CR=e=>xR(e)||AR(e),kR=e=>e(),Xf=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})};function aE(e){if(!SR(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=aE(o))}return n}function Jf(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function wR(e,t){if(e==null)throw new Error(t())}var lE=()=>{},va=e=>typeof e=="object"&&e!==null,NR=1,vR=9,OR=11,cn=e=>va(e)&&e.nodeType===NR&&typeof e.nodeName=="string",Zf=e=>va(e)&&e.nodeType===vR,IR=e=>va(e)&&e===e.window,cE=e=>cn(e)?e.localName||"":"#document";function RR(e){return["html","body","#document"].includes(cE(e))}var PR=e=>va(e)&&e.nodeType!==void 0,ds=e=>PR(e)&&e.nodeType===OR&&"host"in e,LR=e=>cn(e)&&e.localName==="input",DR=e=>cn(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,MR=/(textarea|select)/;function FR(e){if(e==null||!cn(e))return!1;try{return LR(e)&&e.selectionStart!=null||MR.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch(t){return!1}}function Oa(e,t){var r;if(!e||!t||!cn(e)||!cn(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&ds(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function or(e){var t;return Zf(e)?e:IR(e)?e.document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function BR(e){return or(e).documentElement}function Io(e){var t,n,r;return ds(e)?Io(e.host):Zf(e)?(t=e.defaultView)!=null?t:window:cn(e)&&(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window}function fE(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function UR(e){if(cE(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ds(e)&&e.host||BR(e);return ds(t)?t.host:t}var ed=new WeakMap;function dE(e){return ed.has(e)||ed.set(e,Io(e).getComputedStyle(e)),ed.get(e)}var hE=()=>typeof document!="undefined";function HR(){var t;const e=navigator.userAgentData;return(t=e==null?void 0:e.platform)!=null?t:navigator.platform}var td=e=>hE()&&e.test(HR()),pE=()=>hE()&&!!navigator.maxTouchPoints,zR=()=>td(/^iPhone/i),jR=()=>td(/^iPad/i)||mE()&&navigator.maxTouchPoints>1,$R=()=>zR()||jR(),mE=()=>td(/^Mac/i);function VR(e){var t,n,r,o;return(o=(t=e.composedPath)==null?void 0:t.call(e))!=null?o:(r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n)}function Tr(e){var n;const t=VR(e);return(n=t==null?void 0:t[0])!=null?n:e.target}var YR=e=>e.button===2||mE()&&e.ctrlKey&&e.button===0,ur=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,n,r),()=>{o==null||o.removeEventListener(t,n,r)}},gE=e=>cn(e)&&e.tagName==="IFRAME",qR=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),WR=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,nd="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",EE=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(nd));(t==!0||t=="if-empty"&&n.length===0)&&cn(e)&&Br(e)&&n.unshift(e);const o=n.filter(Br);return o.forEach((u,l)=>{if(gE(u)&&u.contentDocument){const f=u.contentDocument.body;o.splice(l,1,...EE(f))}}),o};function Br(e){return!e||e.closest("[inert]")?!1:e.matches(nd)&&DR(e)}function yE(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(nd)).filter(bi);return r.forEach((o,u)=>{if(gE(o)&&o.contentDocument){const l=o.contentDocument.body,f=yE(l);r.splice(u,1,...f)}}),r.length,r}function bi(e){return e!=null&&e.tabIndex>0?!0:Br(e)&&!WR(e)}function Ro(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||FR(e))&&!qR(e)?0:e.tabIndex}function GR(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function br(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t==null||t()}}function rd(e){const t=UR(e);return RR(t)?or(t).body:cn(t)&&XR(t)?t:rd(t)}var KR=/auto|scroll|overlay|hidden|clip/,QR=new Set(["inline","contents"]);function XR(e){const t=Io(e),{overflow:n,overflowX:r,overflowY:o,display:u}=t.getComputedStyle(e);return KR.test(n+o+r)&&!QR.has(u)}function Ia(e,t){if(!e)return lE;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function JR(e,t,n){if(!e)return lE;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function ZR(e,t,n){const{signal:r}=t;return[new Promise((l,f)=>{const d=setTimeout(()=>{f(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(d),f(new Error("Promise aborted"))}),e.then(h=>{r.aborted||(clearTimeout(d),l(h))}).catch(h=>{r.aborted||(clearTimeout(d),f(h))})}),()=>t.abort()]}function e6(e,t){const{timeout:n,rootNode:r}=t,o=Io(r),u=or(r),l=new o.AbortController;return ZR(new Promise(f=>{const d=e();if(d){f(d);return}const h=new o.MutationObserver(()=>{const g=e();g&&g.isConnected&&(h.disconnect(),f(g))});h.observe(u.body,{childList:!0,subtree:!0})}),l,n)}var t6=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),n6=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,TE=e=>{const t={};let n;for(;n=n6.exec(e);)t[n[1]]=n[2];return t},r6=(e,t)=>{if(Na(e)){if(Na(t))return`${e};${t}`;e=TE(e)}else Na(t)&&(t=TE(t));return Object.assign({},e!=null?e:{},t!=null?t:{})};function _i(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=Xf(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=t6(t[r],n[r]);continue}if(r==="style"){t[r]=r6(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function J4(e){return e}var hs=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(hs||{}),id="__init__";function i6(e){const t=()=>{var f,d;return(d=(f=e.getRootNode)==null?void 0:f.call(e))!=null?d:document},n=()=>or(t()),r=()=>{var f;return(f=n().defaultView)!=null?f:window},o=()=>fE(t()),u=f=>f===o(),l=f=>t().getElementById(f);return $e(Q({},e),{getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:u,getById:l})}var sd={exports:{}},fn={},od={exports:{}},ud={};/**
53
53
  * @license React
54
54
  * scheduler.production.min.js
55
55
  *
@@ -57,7 +57,7 @@
57
57
  *
58
58
  * This source code is licensed under the MIT license found in the
59
59
  * LICENSE file in the root directory of this source tree.
60
- */var bE;function s6(){return bE||(bE=1,function(e){function t(M,G){var x=M.length;M.push(G);e:for(;0<x;){var I=x-1>>>1,q=M[I];if(0<o(q,G))M[I]=G,M[x]=q,x=I;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var G=M[0],x=M.pop();if(x!==G){M[0]=x;e:for(var I=0,q=M.length,w=q>>>1;I<w;){var Ee=2*(I+1)-1,ve=M[Ee],Ce=Ee+1,We=M[Ce];if(0>o(ve,x))Ce<q&&0>o(We,ve)?(M[I]=We,M[Ce]=x,I=Ce):(M[I]=ve,M[Ee]=x,I=Ee);else if(Ce<q&&0>o(We,x))M[I]=We,M[Ce]=x,I=Ce;else break e}}return G}function o(M,G){var x=M.sortIndex-G.sortIndex;return x!==0?x:M.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var d=[],h=[],g=1,y=null,b=3,T=!1,S=!1,C=!1,O=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(M){for(var G=n(h);G!==null;){if(G.callback===null)r(h);else if(G.startTime<=M)r(h),G.sortIndex=G.expirationTime,t(d,G);else break;G=n(h)}}function ee(M){if(C=!1,j(M),!S)if(n(d)!==null)S=!0,Le(he);else{var G=n(h);G!==null&&ue(ee,G.startTime-M)}}function he(M,G){S=!1,C&&(C=!1,L(Ae),Ae=-1),T=!0;var x=b;try{for(j(G),y=n(d);y!==null&&(!(y.expirationTime>G)||M&&!ge());){var I=y.callback;if(typeof I=="function"){y.callback=null,b=y.priorityLevel;var q=I(y.expirationTime<=G);G=e.unstable_now(),typeof q=="function"?y.callback=q:y===n(d)&&r(d),j(G)}else r(d);y=n(d)}if(y!==null)var w=!0;else{var Ee=n(h);Ee!==null&&ue(ee,Ee.startTime-G),w=!1}return w}finally{y=null,b=x,T=!1}}var F=!1,me=null,Ae=-1,Ne=5,H=-1;function ge(){return!(e.unstable_now()-H<Ne)}function pe(){if(me!==null){var M=e.unstable_now();H=M;var G=!0;try{G=me(!0,M)}finally{G?ce():(F=!1,me=null)}}else F=!1}var ce;if(typeof V=="function")ce=function(){V(pe)};else if(typeof MessageChannel!="undefined"){var fe=new MessageChannel,be=fe.port2;fe.port1.onmessage=pe,ce=function(){be.postMessage(null)}}else ce=function(){O(pe,0)};function Le(M){me=M,F||(F=!0,ce())}function ue(M,G){Ae=O(function(){M(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){S||T||(S=!0,Le(he))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ne=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(M){switch(b){case 1:case 2:case 3:var G=3;break;default:G=b}var x=b;b=G;try{return M()}finally{b=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var x=b;b=M;try{return G()}finally{b=x}},e.unstable_scheduleCallback=function(M,G,x){var I=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?I+x:I):x=I,M){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=x+q,M={id:g++,callback:G,priorityLevel:M,startTime:x,expirationTime:q,sortIndex:-1},x>I?(M.sortIndex=x,t(h,M),n(d)===null&&M===n(h)&&(C?(L(Ae),Ae=-1):C=!0,ue(ee,x-I))):(M.sortIndex=q,t(d,M),S||T||(S=!0,Le(he))),M},e.unstable_shouldYield=ge,e.unstable_wrapCallback=function(M){var G=b;return function(){var x=b;b=G;try{return M.apply(this,arguments)}finally{b=x}}}}(ud)),ud}var _E;function o6(){return _E||(_E=1,od.exports=s6()),od.exports}/**
60
+ */var bE;function s6(){return bE||(bE=1,function(e){function t(M,G){var x=M.length;M.push(G);e:for(;0<x;){var I=x-1>>>1,q=M[I];if(0<o(q,G))M[I]=G,M[x]=q,x=I;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var G=M[0],x=M.pop();if(x!==G){M[0]=x;e:for(var I=0,q=M.length,w=q>>>1;I<w;){var Ee=2*(I+1)-1,ve=M[Ee],Ce=Ee+1,We=M[Ce];if(0>o(ve,x))Ce<q&&0>o(We,ve)?(M[I]=We,M[Ce]=x,I=Ce):(M[I]=ve,M[Ee]=x,I=Ee);else if(Ce<q&&0>o(We,x))M[I]=We,M[Ce]=x,I=Ce;else break e}}return G}function o(M,G){var x=M.sortIndex-G.sortIndex;return x!==0?x:M.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var d=[],h=[],g=1,y=null,b=3,T=!1,S=!1,C=!1,O=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(M){for(var G=n(h);G!==null;){if(G.callback===null)r(h);else if(G.startTime<=M)r(h),G.sortIndex=G.expirationTime,t(d,G);else break;G=n(h)}}function te(M){if(C=!1,j(M),!S)if(n(d)!==null)S=!0,Le(he);else{var G=n(h);G!==null&&ae(te,G.startTime-M)}}function he(M,G){S=!1,C&&(C=!1,L(Ae),Ae=-1),T=!0;var x=b;try{for(j(G),y=n(d);y!==null&&(!(y.expirationTime>G)||M&&!ge());){var I=y.callback;if(typeof I=="function"){y.callback=null,b=y.priorityLevel;var q=I(y.expirationTime<=G);G=e.unstable_now(),typeof q=="function"?y.callback=q:y===n(d)&&r(d),j(G)}else r(d);y=n(d)}if(y!==null)var w=!0;else{var Ee=n(h);Ee!==null&&ae(te,Ee.startTime-G),w=!1}return w}finally{y=null,b=x,T=!1}}var F=!1,me=null,Ae=-1,Ne=5,H=-1;function ge(){return!(e.unstable_now()-H<Ne)}function pe(){if(me!==null){var M=e.unstable_now();H=M;var G=!0;try{G=me(!0,M)}finally{G?ce():(F=!1,me=null)}}else F=!1}var ce;if(typeof $=="function")ce=function(){$(pe)};else if(typeof MessageChannel!="undefined"){var fe=new MessageChannel,be=fe.port2;fe.port1.onmessage=pe,ce=function(){be.postMessage(null)}}else ce=function(){O(pe,0)};function Le(M){me=M,F||(F=!0,ce())}function ae(M,G){Ae=O(function(){M(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){S||T||(S=!0,Le(he))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ne=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(M){switch(b){case 1:case 2:case 3:var G=3;break;default:G=b}var x=b;b=G;try{return M()}finally{b=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var x=b;b=M;try{return G()}finally{b=x}},e.unstable_scheduleCallback=function(M,G,x){var I=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?I+x:I):x=I,M){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=x+q,M={id:g++,callback:G,priorityLevel:M,startTime:x,expirationTime:q,sortIndex:-1},x>I?(M.sortIndex=x,t(h,M),n(d)===null&&M===n(h)&&(C?(L(Ae),Ae=-1):C=!0,ae(te,x-I))):(M.sortIndex=q,t(d,M),S||T||(S=!0,Le(he))),M},e.unstable_shouldYield=ge,e.unstable_wrapCallback=function(M){var G=b;return function(){var x=b;b=G;try{return M.apply(this,arguments)}finally{b=x}}}}(ud)),ud}var _E;function o6(){return _E||(_E=1,od.exports=s6()),od.exports}/**
61
61
  * @license React
62
62
  * react-dom.production.min.js
63
63
  *
@@ -65,11 +65,11 @@
65
65
  *
66
66
  * This source code is licensed under the MIT license found in the
67
67
  * LICENSE file in the root directory of this source tree.
68
- */var SE;function u6(){if(SE)return fn;SE=1;var e=Bi(),t=o6();function n(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,a=1;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function u(i,s){l(i,s),l(i+"Capture",s)}function l(i,s){for(o[i]=s,i=0;i<s.length;i++)r.add(s[i])}var f=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),d=Object.prototype.hasOwnProperty,h=/^[: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]*$/,g={},y={};function b(i){return d.call(y,i)?!0:d.call(g,i)?!1:h.test(i)?y[i]=!0:(g[i]=!0,!1)}function T(i,s,a,c){if(a!==null&&a.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function S(i,s,a,c){if(s===null||typeof s=="undefined"||T(i,s,a,c))return!0;if(c)return!1;if(a!==null)switch(a.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function C(i,s,a,c,m,E,_){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=c,this.attributeNamespace=m,this.mustUseProperty=a,this.propertyName=i,this.type=s,this.sanitizeURL=E,this.removeEmptyString=_}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){O[i]=new C(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];O[s]=new C(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){O[i]=new C(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){O[i]=new C(i,2,!1,i,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(i){O[i]=new C(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){O[i]=new C(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){O[i]=new C(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){O[i]=new C(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){O[i]=new C(i,5,!1,i.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function V(i){return i[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(i){var s=i.replace(L,V);O[s]=new C(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(L,V);O[s]=new C(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(L,V);O[s]=new C(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){O[i]=new C(i,1,!1,i.toLowerCase(),null,!1,!1)}),O.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){O[i]=new C(i,1,!1,i.toLowerCase(),null,!0,!0)});function j(i,s,a,c){var m=O.hasOwnProperty(s)?O[s]:null;(m!==null?m.type!==0:c||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(S(s,a,m,c)&&(a=null),c||m===null?b(s)&&(a===null?i.removeAttribute(s):i.setAttribute(s,""+a)):m.mustUseProperty?i[m.propertyName]=a===null?m.type===3?!1:"":a:(s=m.attributeName,c=m.attributeNamespace,a===null?i.removeAttribute(s):(m=m.type,a=m===3||m===4&&a===!0?"":""+a,c?i.setAttributeNS(c,s,a):i.setAttribute(s,a))))}var ee=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,he=Symbol.for("react.element"),F=Symbol.for("react.portal"),me=Symbol.for("react.fragment"),Ae=Symbol.for("react.strict_mode"),Ne=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),ge=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),M=Symbol.iterator;function G(i){return i===null||typeof i!="object"?null:(i=M&&i[M]||i["@@iterator"],typeof i=="function"?i:null)}var x=Object.assign,I;function q(i){if(I===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);I=s&&s[1]||""}return`
69
- `+I+i}var w=!1;function Ee(i,s){if(!i||w)return"";w=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch($){var c=$}Reflect.construct(i,[],s)}else{try{s.call()}catch($){c=$}i.call(s.prototype)}else{try{throw Error()}catch($){c=$}i()}}catch($){if($&&c&&typeof $.stack=="string"){for(var m=$.stack.split(`
68
+ */var SE;function u6(){if(SE)return fn;SE=1;var e=Bi(),t=o6();function n(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,a=1;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function u(i,s){l(i,s),l(i+"Capture",s)}function l(i,s){for(o[i]=s,i=0;i<s.length;i++)r.add(s[i])}var f=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),d=Object.prototype.hasOwnProperty,h=/^[: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]*$/,g={},y={};function b(i){return d.call(y,i)?!0:d.call(g,i)?!1:h.test(i)?y[i]=!0:(g[i]=!0,!1)}function T(i,s,a,c){if(a!==null&&a.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function S(i,s,a,c){if(s===null||typeof s=="undefined"||T(i,s,a,c))return!0;if(c)return!1;if(a!==null)switch(a.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function C(i,s,a,c,m,E,_){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=c,this.attributeNamespace=m,this.mustUseProperty=a,this.propertyName=i,this.type=s,this.sanitizeURL=E,this.removeEmptyString=_}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){O[i]=new C(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];O[s]=new C(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){O[i]=new C(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){O[i]=new C(i,2,!1,i,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(i){O[i]=new C(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){O[i]=new C(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){O[i]=new C(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){O[i]=new C(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){O[i]=new C(i,5,!1,i.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function $(i){return i[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(i){var s=i.replace(L,$);O[s]=new C(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(L,$);O[s]=new C(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(L,$);O[s]=new C(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){O[i]=new C(i,1,!1,i.toLowerCase(),null,!1,!1)}),O.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){O[i]=new C(i,1,!1,i.toLowerCase(),null,!0,!0)});function j(i,s,a,c){var m=O.hasOwnProperty(s)?O[s]:null;(m!==null?m.type!==0:c||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(S(s,a,m,c)&&(a=null),c||m===null?b(s)&&(a===null?i.removeAttribute(s):i.setAttribute(s,""+a)):m.mustUseProperty?i[m.propertyName]=a===null?m.type===3?!1:"":a:(s=m.attributeName,c=m.attributeNamespace,a===null?i.removeAttribute(s):(m=m.type,a=m===3||m===4&&a===!0?"":""+a,c?i.setAttributeNS(c,s,a):i.setAttribute(s,a))))}var te=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,he=Symbol.for("react.element"),F=Symbol.for("react.portal"),me=Symbol.for("react.fragment"),Ae=Symbol.for("react.strict_mode"),Ne=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),ge=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),M=Symbol.iterator;function G(i){return i===null||typeof i!="object"?null:(i=M&&i[M]||i["@@iterator"],typeof i=="function"?i:null)}var x=Object.assign,I;function q(i){if(I===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);I=s&&s[1]||""}return`
69
+ `+I+i}var w=!1;function Ee(i,s){if(!i||w)return"";w=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(V){var c=V}Reflect.construct(i,[],s)}else{try{s.call()}catch(V){c=V}i.call(s.prototype)}else{try{throw Error()}catch(V){c=V}i()}}catch(V){if(V&&c&&typeof V.stack=="string"){for(var m=V.stack.split(`
70
70
  `),E=c.stack.split(`
71
71
  `),_=m.length-1,N=E.length-1;1<=_&&0<=N&&m[_]!==E[N];)N--;for(;1<=_&&0<=N;_--,N--)if(m[_]!==E[N]){if(_!==1||N!==1)do if(_--,N--,0>N||m[_]!==E[N]){var R=`
72
- `+m[_].replace(" at new "," at ");return i.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",i.displayName)),R}while(1<=_&&0<=N);break}}}finally{w=!1,Error.prepareStackTrace=a}return(i=i?i.displayName||i.name:"")?q(i):""}function ve(i){switch(i.tag){case 5:return q(i.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return i=Ee(i.type,!1),i;case 11:return i=Ee(i.type.render,!1),i;case 1:return i=Ee(i.type,!0),i;default:return""}}function Ce(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case me:return"Fragment";case F:return"Portal";case Ne:return"Profiler";case Ae:return"StrictMode";case ce:return"Suspense";case fe:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case ge:return(i.displayName||"Context")+".Consumer";case H:return(i._context.displayName||"Context")+".Provider";case pe:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case be:return s=i.displayName||null,s!==null?s:Ce(i.type)||"Memo";case Le:s=i._payload,i=i._init;try{return Ce(i(s))}catch(a){}}return null}function We(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(s);case 8:return s===Ae?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ze(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ze(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function wt(i){var s=Ze(i)?"checked":"value",a=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),c=""+i[s];if(!i.hasOwnProperty(s)&&typeof a!="undefined"&&typeof a.get=="function"&&typeof a.set=="function"){var m=a.get,E=a.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return m.call(this)},set:function(_){c=""+_,E.call(this,_)}}),Object.defineProperty(i,s,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function _r(i){i._valueTracker||(i._valueTracker=wt(i))}function Ua(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var a=s.getValue(),c="";return i&&(c=Ze(i)?i.checked?"true":"false":i.value),i=c,i!==a?(s.setValue(i),!0):!1}function ms(i){if(i=i||(typeof document!="undefined"?document:void 0),typeof i=="undefined")return null;try{return i.activeElement||i.body}catch(s){return i.body}}function Uo(i,s){var a=s.checked;return x({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a!=null?a:i._wrapperState.initialChecked})}function Ho(i,s){var a=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;a=ze(s.value!=null?s.value:a),i._wrapperState={initialChecked:c,initialValue:a,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function zo(i,s){s=s.checked,s!=null&&j(i,"checked",s,!1)}function gs(i,s){zo(i,s);var a=ze(s.value),c=s.type;if(a!=null)c==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+a):i.value!==""+a&&(i.value=""+a);else if(c==="submit"||c==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?Es(i,s.type,a):s.hasOwnProperty("defaultValue")&&Es(i,s.type,ze(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function Ha(i,s,a){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var c=s.type;if(!(c!=="submit"&&c!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,a||s===i.value||(i.value=s),i.defaultValue=s}a=i.name,a!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,a!==""&&(i.name=a)}function Es(i,s,a){(s!=="number"||ms(i.ownerDocument)!==i)&&(a==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+a&&(i.defaultValue=""+a))}var Ur=Array.isArray;function Hr(i,s,a,c){if(i=i.options,s){s={};for(var m=0;m<a.length;m++)s["$"+a[m]]=!0;for(a=0;a<i.length;a++)m=s.hasOwnProperty("$"+i[a].value),i[a].selected!==m&&(i[a].selected=m),m&&c&&(i[a].defaultSelected=!0)}else{for(a=""+ze(a),s=null,m=0;m<i.length;m++){if(i[m].value===a){i[m].selected=!0,c&&(i[m].defaultSelected=!0);return}s!==null||i[m].disabled||(s=i[m])}s!==null&&(s.selected=!0)}}function jo(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return x({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function za(i,s){var a=s.value;if(a==null){if(a=s.children,s=s.defaultValue,a!=null){if(s!=null)throw Error(n(92));if(Ur(a)){if(1<a.length)throw Error(n(93));a=a[0]}s=a}s==null&&(s=""),a=s}i._wrapperState={initialValue:ze(a)}}function ja(i,s){var a=ze(s.value),c=ze(s.defaultValue);a!=null&&(a=""+a,a!==i.value&&(i.value=a),s.defaultValue==null&&i.defaultValue!==a&&(i.defaultValue=a)),c!=null&&(i.defaultValue=""+c)}function $a(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function K(i){switch(i){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 de(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?K(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var De,je=function(i){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(s,a,c,m){MSApp.execUnsafeLocalFunction(function(){return i(s,a,c,m)})}:i}(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(De=De||document.createElement("div"),De.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=De.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function Ke(i,s){if(s){var a=i.firstChild;if(a&&a===i.lastChild&&a.nodeType===3){a.nodeValue=s;return}}i.textContent=s}var Ut={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},Sr=["Webkit","ms","Moz","O"];Object.keys(Ut).forEach(function(i){Sr.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),Ut[s]=Ut[i]})});function On(i,s,a){return s==null||typeof s=="boolean"||s===""?"":a||typeof s!="number"||s===0||Ut.hasOwnProperty(i)&&Ut[i]?(""+s).trim():s+"px"}function zr(i,s){i=i.style;for(var a in s)if(s.hasOwnProperty(a)){var c=a.indexOf("--")===0,m=On(a,s[a],c);a==="float"&&(a="cssFloat"),c?i.setProperty(a,m):i[a]=m}}var xi=x({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 Ht(i,s){if(s){if(xi[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function ar(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){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}}var _n=null;function bd(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var _d=null,ys=null,Ts=null;function ty(i){if(i=cu(i)){if(typeof _d!="function")throw Error(n(280));var s=i.stateNode;s&&(s=dl(s),_d(i.stateNode,i.type,s))}}function ny(i){ys?Ts?Ts.push(i):Ts=[i]:ys=i}function ry(){if(ys){var i=ys,s=Ts;if(Ts=ys=null,ty(i),s)for(i=0;i<s.length;i++)ty(s[i])}}function iy(i,s){return i(s)}function sy(){}var Sd=!1;function oy(i,s,a){if(Sd)return i(s,a);Sd=!0;try{return iy(i,s,a)}finally{Sd=!1,(ys!==null||Ts!==null)&&(sy(),ry())}}function $o(i,s){var a=i.stateNode;if(a===null)return null;var c=dl(a);if(c===null)return null;a=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(i=i.type,c=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!c;break e;default:i=!1}if(i)return null;if(a&&typeof a!="function")throw Error(n(231,s,typeof a));return a}var xd=!1;if(f)try{var Vo={};Object.defineProperty(Vo,"passive",{get:function(){xd=!0}}),window.addEventListener("test",Vo,Vo),window.removeEventListener("test",Vo,Vo)}catch(i){xd=!1}function TP(i,s,a,c,m,E,_,N,R){var $=Array.prototype.slice.call(arguments,3);try{s.apply(a,$)}catch(ne){this.onError(ne)}}var Yo=!1,Va=null,Ya=!1,Ad=null,bP={onError:function(i){Yo=!0,Va=i}};function _P(i,s,a,c,m,E,_,N,R){Yo=!1,Va=null,TP.apply(bP,arguments)}function SP(i,s,a,c,m,E,_,N,R){if(_P.apply(this,arguments),Yo){if(Yo){var $=Va;Yo=!1,Va=null}else throw Error(n(198));Ya||(Ya=!0,Ad=$)}}function Ai(i){var s=i,a=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(a=s.return),i=s.return;while(i)}return s.tag===3?a:null}function uy(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function ay(i){if(Ai(i)!==i)throw Error(n(188))}function xP(i){var s=i.alternate;if(!s){if(s=Ai(i),s===null)throw Error(n(188));return s!==i?null:i}for(var a=i,c=s;;){var m=a.return;if(m===null)break;var E=m.alternate;if(E===null){if(c=m.return,c!==null){a=c;continue}break}if(m.child===E.child){for(E=m.child;E;){if(E===a)return ay(m),i;if(E===c)return ay(m),s;E=E.sibling}throw Error(n(188))}if(a.return!==c.return)a=m,c=E;else{for(var _=!1,N=m.child;N;){if(N===a){_=!0,a=m,c=E;break}if(N===c){_=!0,c=m,a=E;break}N=N.sibling}if(!_){for(N=E.child;N;){if(N===a){_=!0,a=E,c=m;break}if(N===c){_=!0,c=E,a=m;break}N=N.sibling}if(!_)throw Error(n(189))}}if(a.alternate!==c)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?i:s}function ly(i){return i=xP(i),i!==null?cy(i):null}function cy(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=cy(i);if(s!==null)return s;i=i.sibling}return null}var fy=t.unstable_scheduleCallback,dy=t.unstable_cancelCallback,AP=t.unstable_shouldYield,CP=t.unstable_requestPaint,_t=t.unstable_now,kP=t.unstable_getCurrentPriorityLevel,Cd=t.unstable_ImmediatePriority,hy=t.unstable_UserBlockingPriority,qa=t.unstable_NormalPriority,wP=t.unstable_LowPriority,py=t.unstable_IdlePriority,Wa=null,lr=null;function NP(i){if(lr&&typeof lr.onCommitFiberRoot=="function")try{lr.onCommitFiberRoot(Wa,i,void 0,(i.current.flags&128)===128)}catch(s){}}var Yn=Math.clz32?Math.clz32:OP,vP=Math.log,IP=Math.LN2;function OP(i){return i>>>=0,i===0?32:31-(vP(i)/IP|0)|0}var Ga=64,Ka=4194304;function qo(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Qa(i,s){var a=i.pendingLanes;if(a===0)return 0;var c=0,m=i.suspendedLanes,E=i.pingedLanes,_=a&268435455;if(_!==0){var N=_&~m;N!==0?c=qo(N):(E&=_,E!==0&&(c=qo(E)))}else _=a&~m,_!==0?c=qo(_):E!==0&&(c=qo(E));if(c===0)return 0;if(s!==0&&s!==c&&(s&m)===0&&(m=c&-c,E=s&-s,m>=E||m===16&&(E&4194240)!==0))return s;if((c&4)!==0&&(c|=a&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=c;0<s;)a=31-Yn(s),m=1<<a,c|=i[a],s&=~m;return c}function RP(i,s){switch(i){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function PP(i,s){for(var a=i.suspendedLanes,c=i.pingedLanes,m=i.expirationTimes,E=i.pendingLanes;0<E;){var _=31-Yn(E),N=1<<_,R=m[_];R===-1?((N&a)===0||(N&c)!==0)&&(m[_]=RP(N,s)):R<=s&&(i.expiredLanes|=N),E&=~N}}function kd(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function my(){var i=Ga;return Ga<<=1,(Ga&4194240)===0&&(Ga=64),i}function wd(i){for(var s=[],a=0;31>a;a++)s.push(i);return s}function Wo(i,s,a){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-Yn(s),i[s]=a}function LP(i,s){var a=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var c=i.eventTimes;for(i=i.expirationTimes;0<a;){var m=31-Yn(a),E=1<<m;s[m]=0,c[m]=-1,i[m]=-1,a&=~E}}function Nd(i,s){var a=i.entangledLanes|=s;for(i=i.entanglements;a;){var c=31-Yn(a),m=1<<c;m&s|i[c]&s&&(i[c]|=s),a&=~m}}var tt=0;function gy(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Ey,vd,yy,Ty,by,Id=!1,Xa=[],jr=null,$r=null,Vr=null,Go=new Map,Ko=new Map,Yr=[],DP="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 _y(i,s){switch(i){case"focusin":case"focusout":jr=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Go.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ko.delete(s.pointerId)}}function Qo(i,s,a,c,m,E){return i===null||i.nativeEvent!==E?(i={blockedOn:s,domEventName:a,eventSystemFlags:c,nativeEvent:E,targetContainers:[m]},s!==null&&(s=cu(s),s!==null&&vd(s)),i):(i.eventSystemFlags|=c,s=i.targetContainers,m!==null&&s.indexOf(m)===-1&&s.push(m),i)}function MP(i,s,a,c,m){switch(s){case"focusin":return jr=Qo(jr,i,s,a,c,m),!0;case"dragenter":return $r=Qo($r,i,s,a,c,m),!0;case"mouseover":return Vr=Qo(Vr,i,s,a,c,m),!0;case"pointerover":var E=m.pointerId;return Go.set(E,Qo(Go.get(E)||null,i,s,a,c,m)),!0;case"gotpointercapture":return E=m.pointerId,Ko.set(E,Qo(Ko.get(E)||null,i,s,a,c,m)),!0}return!1}function Sy(i){var s=Ci(i.target);if(s!==null){var a=Ai(s);if(a!==null){if(s=a.tag,s===13){if(s=uy(a),s!==null){i.blockedOn=s,by(i.priority,function(){yy(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){i.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Ja(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var a=Rd(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(a===null){a=i.nativeEvent;var c=new a.constructor(a.type,a);_n=c,a.target.dispatchEvent(c),_n=null}else return s=cu(a),s!==null&&vd(s),i.blockedOn=a,!1;s.shift()}return!0}function xy(i,s,a){Ja(i)&&a.delete(s)}function FP(){Id=!1,jr!==null&&Ja(jr)&&(jr=null),$r!==null&&Ja($r)&&($r=null),Vr!==null&&Ja(Vr)&&(Vr=null),Go.forEach(xy),Ko.forEach(xy)}function Xo(i,s){i.blockedOn===s&&(i.blockedOn=null,Id||(Id=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,FP)))}function Jo(i){function s(m){return Xo(m,i)}if(0<Xa.length){Xo(Xa[0],i);for(var a=1;a<Xa.length;a++){var c=Xa[a];c.blockedOn===i&&(c.blockedOn=null)}}for(jr!==null&&Xo(jr,i),$r!==null&&Xo($r,i),Vr!==null&&Xo(Vr,i),Go.forEach(s),Ko.forEach(s),a=0;a<Yr.length;a++)c=Yr[a],c.blockedOn===i&&(c.blockedOn=null);for(;0<Yr.length&&(a=Yr[0],a.blockedOn===null);)Sy(a),a.blockedOn===null&&Yr.shift()}var bs=ee.ReactCurrentBatchConfig,Za=!0;function BP(i,s,a,c){var m=tt,E=bs.transition;bs.transition=null;try{tt=1,Od(i,s,a,c)}finally{tt=m,bs.transition=E}}function UP(i,s,a,c){var m=tt,E=bs.transition;bs.transition=null;try{tt=4,Od(i,s,a,c)}finally{tt=m,bs.transition=E}}function Od(i,s,a,c){if(Za){var m=Rd(i,s,a,c);if(m===null)Kd(i,s,c,el,a),_y(i,c);else if(MP(m,i,s,a,c))c.stopPropagation();else if(_y(i,c),s&4&&-1<DP.indexOf(i)){for(;m!==null;){var E=cu(m);if(E!==null&&Ey(E),E=Rd(i,s,a,c),E===null&&Kd(i,s,c,el,a),E===m)break;m=E}m!==null&&c.stopPropagation()}else Kd(i,s,c,null,a)}}var el=null;function Rd(i,s,a,c){if(el=null,i=bd(c),i=Ci(i),i!==null)if(s=Ai(i),s===null)i=null;else if(a=s.tag,a===13){if(i=uy(s),i!==null)return i;i=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return el=i,null}function Ay(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(kP()){case Cd:return 1;case hy:return 4;case qa:case wP:return 16;case py:return 536870912;default:return 16}default:return 16}}var qr=null,Pd=null,tl=null;function Cy(){if(tl)return tl;var i,s=Pd,a=s.length,c,m="value"in qr?qr.value:qr.textContent,E=m.length;for(i=0;i<a&&s[i]===m[i];i++);var _=a-i;for(c=1;c<=_&&s[a-c]===m[E-c];c++);return tl=m.slice(i,1<c?1-c:void 0)}function nl(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function rl(){return!0}function ky(){return!1}function Sn(i){function s(a,c,m,E,_){this._reactName=a,this._targetInst=m,this.type=c,this.nativeEvent=E,this.target=_,this.currentTarget=null;for(var N in i)i.hasOwnProperty(N)&&(a=i[N],this[N]=a?a(E):E[N]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?rl:ky,this.isPropagationStopped=ky,this}return x(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=rl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=rl)},persist:function(){},isPersistent:rl}),s}var _s={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ld=Sn(_s),Zo=x({},_s,{view:0,detail:0}),HP=Sn(Zo),Dd,Md,eu,il=x({},Zo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bd,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==eu&&(eu&&i.type==="mousemove"?(Dd=i.screenX-eu.screenX,Md=i.screenY-eu.screenY):Md=Dd=0,eu=i),Dd)},movementY:function(i){return"movementY"in i?i.movementY:Md}}),wy=Sn(il),zP=x({},il,{dataTransfer:0}),jP=Sn(zP),$P=x({},Zo,{relatedTarget:0}),Fd=Sn($P),VP=x({},_s,{animationName:0,elapsedTime:0,pseudoElement:0}),YP=Sn(VP),qP=x({},_s,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),WP=Sn(qP),GP=x({},_s,{data:0}),Ny=Sn(GP),KP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QP={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"},XP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JP(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=XP[i])?!!s[i]:!1}function Bd(){return JP}var ZP=x({},Zo,{key:function(i){if(i.key){var s=KP[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=nl(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?QP[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bd,charCode:function(i){return i.type==="keypress"?nl(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?nl(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),eL=Sn(ZP),tL=x({},il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vy=Sn(tL),nL=x({},Zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bd}),rL=Sn(nL),iL=x({},_s,{propertyName:0,elapsedTime:0,pseudoElement:0}),sL=Sn(iL),oL=x({},il,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),uL=Sn(oL),aL=[9,13,27,32],Ud=f&&"CompositionEvent"in window,tu=null;f&&"documentMode"in document&&(tu=document.documentMode);var lL=f&&"TextEvent"in window&&!tu,Iy=f&&(!Ud||tu&&8<tu&&11>=tu),Oy=" ",Ry=!1;function Py(i,s){switch(i){case"keyup":return aL.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ly(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ss=!1;function cL(i,s){switch(i){case"compositionend":return Ly(s);case"keypress":return s.which!==32?null:(Ry=!0,Oy);case"textInput":return i=s.data,i===Oy&&Ry?null:i;default:return null}}function fL(i,s){if(Ss)return i==="compositionend"||!Ud&&Py(i,s)?(i=Cy(),tl=Pd=qr=null,Ss=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Iy&&s.locale!=="ko"?null:s.data;default:return null}}var dL={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 Dy(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!dL[i.type]:s==="textarea"}function My(i,s,a,c){ny(c),s=ll(s,"onChange"),0<s.length&&(a=new Ld("onChange","change",null,a,c),i.push({event:a,listeners:s}))}var nu=null,ru=null;function hL(i){eT(i,0)}function sl(i){var s=ws(i);if(Ua(s))return i}function pL(i,s){if(i==="change")return s}var Fy=!1;if(f){var Hd;if(f){var zd="oninput"in document;if(!zd){var By=document.createElement("div");By.setAttribute("oninput","return;"),zd=typeof By.oninput=="function"}Hd=zd}else Hd=!1;Fy=Hd&&(!document.documentMode||9<document.documentMode)}function Uy(){nu&&(nu.detachEvent("onpropertychange",Hy),ru=nu=null)}function Hy(i){if(i.propertyName==="value"&&sl(ru)){var s=[];My(s,ru,i,bd(i)),oy(hL,s)}}function mL(i,s,a){i==="focusin"?(Uy(),nu=s,ru=a,nu.attachEvent("onpropertychange",Hy)):i==="focusout"&&Uy()}function gL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return sl(ru)}function EL(i,s){if(i==="click")return sl(s)}function yL(i,s){if(i==="input"||i==="change")return sl(s)}function TL(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var qn=typeof Object.is=="function"?Object.is:TL;function iu(i,s){if(qn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var a=Object.keys(i),c=Object.keys(s);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var m=a[c];if(!d.call(s,m)||!qn(i[m],s[m]))return!1}return!0}function zy(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function jy(i,s){var a=zy(i);i=0;for(var c;a;){if(a.nodeType===3){if(c=i+a.textContent.length,i<=s&&c>=s)return{node:a,offset:s-i};i=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=zy(a)}}function $y(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?$y(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Vy(){for(var i=window,s=ms();s instanceof i.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch(c){a=!1}if(a)i=s.contentWindow;else break;s=ms(i.document)}return s}function jd(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function bL(i){var s=Vy(),a=i.focusedElem,c=i.selectionRange;if(s!==a&&a&&a.ownerDocument&&$y(a.ownerDocument.documentElement,a)){if(c!==null&&jd(a)){if(s=c.start,i=c.end,i===void 0&&(i=s),"selectionStart"in a)a.selectionStart=s,a.selectionEnd=Math.min(i,a.value.length);else if(i=(s=a.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var m=a.textContent.length,E=Math.min(c.start,m);c=c.end===void 0?E:Math.min(c.end,m),!i.extend&&E>c&&(m=c,c=E,E=m),m=jy(a,E);var _=jy(a,c);m&&_&&(i.rangeCount!==1||i.anchorNode!==m.node||i.anchorOffset!==m.offset||i.focusNode!==_.node||i.focusOffset!==_.offset)&&(s=s.createRange(),s.setStart(m.node,m.offset),i.removeAllRanges(),E>c?(i.addRange(s),i.extend(_.node,_.offset)):(s.setEnd(_.node,_.offset),i.addRange(s)))}}for(s=[],i=a;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<s.length;a++)i=s[a],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var _L=f&&"documentMode"in document&&11>=document.documentMode,xs=null,$d=null,su=null,Vd=!1;function Yy(i,s,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Vd||xs==null||xs!==ms(c)||(c=xs,"selectionStart"in c&&jd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),su&&iu(su,c)||(su=c,c=ll($d,"onSelect"),0<c.length&&(s=new Ld("onSelect","select",null,s,a),i.push({event:s,listeners:c}),s.target=xs)))}function ol(i,s){var a={};return a[i.toLowerCase()]=s.toLowerCase(),a["Webkit"+i]="webkit"+s,a["Moz"+i]="moz"+s,a}var As={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionend:ol("Transition","TransitionEnd")},Yd={},qy={};f&&(qy=document.createElement("div").style,"AnimationEvent"in window||(delete As.animationend.animation,delete As.animationiteration.animation,delete As.animationstart.animation),"TransitionEvent"in window||delete As.transitionend.transition);function ul(i){if(Yd[i])return Yd[i];if(!As[i])return i;var s=As[i],a;for(a in s)if(s.hasOwnProperty(a)&&a in qy)return Yd[i]=s[a];return i}var Wy=ul("animationend"),Gy=ul("animationiteration"),Ky=ul("animationstart"),Qy=ul("transitionend"),Xy=new Map,Jy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Wr(i,s){Xy.set(i,s),u(s,[i])}for(var qd=0;qd<Jy.length;qd++){var Wd=Jy[qd],SL=Wd.toLowerCase(),xL=Wd[0].toUpperCase()+Wd.slice(1);Wr(SL,"on"+xL)}Wr(Wy,"onAnimationEnd"),Wr(Gy,"onAnimationIteration"),Wr(Ky,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(Qy,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ou="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),AL=new Set("cancel close invalid load scroll toggle".split(" ").concat(ou));function Zy(i,s,a){var c=i.type||"unknown-event";i.currentTarget=a,SP(c,s,void 0,i),i.currentTarget=null}function eT(i,s){s=(s&4)!==0;for(var a=0;a<i.length;a++){var c=i[a],m=c.event;c=c.listeners;e:{var E=void 0;if(s)for(var _=c.length-1;0<=_;_--){var N=c[_],R=N.instance,$=N.currentTarget;if(N=N.listener,R!==E&&m.isPropagationStopped())break e;Zy(m,N,$),E=R}else for(_=0;_<c.length;_++){if(N=c[_],R=N.instance,$=N.currentTarget,N=N.listener,R!==E&&m.isPropagationStopped())break e;Zy(m,N,$),E=R}}}if(Ya)throw i=Ad,Ya=!1,Ad=null,i}function ut(i,s){var a=s[th];a===void 0&&(a=s[th]=new Set);var c=i+"__bubble";a.has(c)||(tT(s,i,2,!1),a.add(c))}function Gd(i,s,a){var c=0;s&&(c|=4),tT(a,i,c,s)}var al="_reactListening"+Math.random().toString(36).slice(2);function uu(i){if(!i[al]){i[al]=!0,r.forEach(function(a){a!=="selectionchange"&&(AL.has(a)||Gd(a,!1,i),Gd(a,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[al]||(s[al]=!0,Gd("selectionchange",!1,s))}}function tT(i,s,a,c){switch(Ay(s)){case 1:var m=BP;break;case 4:m=UP;break;default:m=Od}a=m.bind(null,s,a,i),m=void 0,!xd||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(m=!0),c?m!==void 0?i.addEventListener(s,a,{capture:!0,passive:m}):i.addEventListener(s,a,!0):m!==void 0?i.addEventListener(s,a,{passive:m}):i.addEventListener(s,a,!1)}function Kd(i,s,a,c,m){var E=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var N=c.stateNode.containerInfo;if(N===m||N.nodeType===8&&N.parentNode===m)break;if(_===4)for(_=c.return;_!==null;){var R=_.tag;if((R===3||R===4)&&(R=_.stateNode.containerInfo,R===m||R.nodeType===8&&R.parentNode===m))return;_=_.return}for(;N!==null;){if(_=Ci(N),_===null)return;if(R=_.tag,R===5||R===6){c=E=_;continue e}N=N.parentNode}}c=c.return}oy(function(){var $=E,ne=bd(a),ie=[];e:{var J=Xy.get(i);if(J!==void 0){var ye=Ld,_e=i;switch(i){case"keypress":if(nl(a)===0)break e;case"keydown":case"keyup":ye=eL;break;case"focusin":_e="focus",ye=Fd;break;case"focusout":_e="blur",ye=Fd;break;case"beforeblur":case"afterblur":ye=Fd;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ye=wy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=jP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=rL;break;case Wy:case Gy:case Ky:ye=YP;break;case Qy:ye=sL;break;case"scroll":ye=HP;break;case"wheel":ye=uL;break;case"copy":case"cut":case"paste":ye=WP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=vy}var Se=(s&4)!==0,St=!Se&&i==="scroll",B=Se?J!==null?J+"Capture":null:J;Se=[];for(var D=$,z;D!==null;){z=D;var ae=z.stateNode;if(z.tag===5&&ae!==null&&(z=ae,B!==null&&(ae=$o(D,B),ae!=null&&Se.push(au(D,ae,z)))),St)break;D=D.return}0<Se.length&&(J=new ye(J,_e,null,a,ne),ie.push({event:J,listeners:Se}))}}if((s&7)===0){e:{if(J=i==="mouseover"||i==="pointerover",ye=i==="mouseout"||i==="pointerout",J&&a!==_n&&(_e=a.relatedTarget||a.fromElement)&&(Ci(_e)||_e[xr]))break e;if((ye||J)&&(J=ne.window===ne?ne:(J=ne.ownerDocument)?J.defaultView||J.parentWindow:window,ye?(_e=a.relatedTarget||a.toElement,ye=$,_e=_e?Ci(_e):null,_e!==null&&(St=Ai(_e),_e!==St||_e.tag!==5&&_e.tag!==6)&&(_e=null)):(ye=null,_e=$),ye!==_e)){if(Se=wy,ae="onMouseLeave",B="onMouseEnter",D="mouse",(i==="pointerout"||i==="pointerover")&&(Se=vy,ae="onPointerLeave",B="onPointerEnter",D="pointer"),St=ye==null?J:ws(ye),z=_e==null?J:ws(_e),J=new Se(ae,D+"leave",ye,a,ne),J.target=St,J.relatedTarget=z,ae=null,Ci(ne)===$&&(Se=new Se(B,D+"enter",_e,a,ne),Se.target=z,Se.relatedTarget=St,ae=Se),St=ae,ye&&_e)t:{for(Se=ye,B=_e,D=0,z=Se;z;z=Cs(z))D++;for(z=0,ae=B;ae;ae=Cs(ae))z++;for(;0<D-z;)Se=Cs(Se),D--;for(;0<z-D;)B=Cs(B),z--;for(;D--;){if(Se===B||B!==null&&Se===B.alternate)break t;Se=Cs(Se),B=Cs(B)}Se=null}else Se=null;ye!==null&&nT(ie,J,ye,Se,!1),_e!==null&&St!==null&&nT(ie,St,_e,Se,!0)}}e:{if(J=$?ws($):window,ye=J.nodeName&&J.nodeName.toLowerCase(),ye==="select"||ye==="input"&&J.type==="file")var xe=pL;else if(Dy(J))if(Fy)xe=yL;else{xe=gL;var Oe=mL}else(ye=J.nodeName)&&ye.toLowerCase()==="input"&&(J.type==="checkbox"||J.type==="radio")&&(xe=EL);if(xe&&(xe=xe(i,$))){My(ie,xe,a,ne);break e}Oe&&Oe(i,J,$),i==="focusout"&&(Oe=J._wrapperState)&&Oe.controlled&&J.type==="number"&&Es(J,"number",J.value)}switch(Oe=$?ws($):window,i){case"focusin":(Dy(Oe)||Oe.contentEditable==="true")&&(xs=Oe,$d=$,su=null);break;case"focusout":su=$d=xs=null;break;case"mousedown":Vd=!0;break;case"contextmenu":case"mouseup":case"dragend":Vd=!1,Yy(ie,a,ne);break;case"selectionchange":if(_L)break;case"keydown":case"keyup":Yy(ie,a,ne)}var Re;if(Ud)e:{switch(i){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Ss?Py(i,a)&&(Me="onCompositionEnd"):i==="keydown"&&a.keyCode===229&&(Me="onCompositionStart");Me&&(Iy&&a.locale!=="ko"&&(Ss||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Ss&&(Re=Cy()):(qr=ne,Pd="value"in qr?qr.value:qr.textContent,Ss=!0)),Oe=ll($,Me),0<Oe.length&&(Me=new Ny(Me,i,null,a,ne),ie.push({event:Me,listeners:Oe}),Re?Me.data=Re:(Re=Ly(a),Re!==null&&(Me.data=Re)))),(Re=lL?cL(i,a):fL(i,a))&&($=ll($,"onBeforeInput"),0<$.length&&(ne=new Ny("onBeforeInput","beforeinput",null,a,ne),ie.push({event:ne,listeners:$}),ne.data=Re))}eT(ie,s)})}function au(i,s,a){return{instance:i,listener:s,currentTarget:a}}function ll(i,s){for(var a=s+"Capture",c=[];i!==null;){var m=i,E=m.stateNode;m.tag===5&&E!==null&&(m=E,E=$o(i,a),E!=null&&c.unshift(au(i,E,m)),E=$o(i,s),E!=null&&c.push(au(i,E,m))),i=i.return}return c}function Cs(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function nT(i,s,a,c,m){for(var E=s._reactName,_=[];a!==null&&a!==c;){var N=a,R=N.alternate,$=N.stateNode;if(R!==null&&R===c)break;N.tag===5&&$!==null&&(N=$,m?(R=$o(a,E),R!=null&&_.unshift(au(a,R,N))):m||(R=$o(a,E),R!=null&&_.push(au(a,R,N)))),a=a.return}_.length!==0&&i.push({event:s,listeners:_})}var CL=/\r\n?/g,kL=/\u0000|\uFFFD/g;function rT(i){return(typeof i=="string"?i:""+i).replace(CL,`
73
- `).replace(kL,"")}function cl(i,s,a){if(s=rT(s),rT(i)!==s&&a)throw Error(n(425))}function fl(){}var Qd=null,Xd=null;function Jd(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Zd=typeof setTimeout=="function"?setTimeout:void 0,wL=typeof clearTimeout=="function"?clearTimeout:void 0,iT=typeof Promise=="function"?Promise:void 0,NL=typeof queueMicrotask=="function"?queueMicrotask:typeof iT!="undefined"?function(i){return iT.resolve(null).then(i).catch(vL)}:Zd;function vL(i){setTimeout(function(){throw i})}function eh(i,s){var a=s,c=0;do{var m=a.nextSibling;if(i.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(c===0){i.removeChild(m),Jo(s);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=m}while(a);Jo(s)}function Gr(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function sT(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="$"||a==="$!"||a==="$?"){if(s===0)return i;s--}else a==="/$"&&s++}i=i.previousSibling}return null}var ks=Math.random().toString(36).slice(2),cr="__reactFiber$"+ks,lu="__reactProps$"+ks,xr="__reactContainer$"+ks,th="__reactEvents$"+ks,IL="__reactListeners$"+ks,OL="__reactHandles$"+ks;function Ci(i){var s=i[cr];if(s)return s;for(var a=i.parentNode;a;){if(s=a[xr]||a[cr]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(i=sT(i);i!==null;){if(a=i[cr])return a;i=sT(i)}return s}i=a,a=i.parentNode}return null}function cu(i){return i=i[cr]||i[xr],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function ws(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function dl(i){return i[lu]||null}var nh=[],Ns=-1;function Kr(i){return{current:i}}function at(i){0>Ns||(i.current=nh[Ns],nh[Ns]=null,Ns--)}function ot(i,s){Ns++,nh[Ns]=i.current,i.current=s}var Qr={},Wt=Kr(Qr),dn=Kr(!1),ki=Qr;function vs(i,s){var a=i.type.contextTypes;if(!a)return Qr;var c=i.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===s)return c.__reactInternalMemoizedMaskedChildContext;var m={},E;for(E in a)m[E]=s[E];return c&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=m),m}function hn(i){return i=i.childContextTypes,i!=null}function hl(){at(dn),at(Wt)}function oT(i,s,a){if(Wt.current!==Qr)throw Error(n(168));ot(Wt,s),ot(dn,a)}function uT(i,s,a){var c=i.stateNode;if(s=s.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var m in c)if(!(m in s))throw Error(n(108,We(i)||"Unknown",m));return x({},a,c)}function pl(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Qr,ki=Wt.current,ot(Wt,i),ot(dn,dn.current),!0}function aT(i,s,a){var c=i.stateNode;if(!c)throw Error(n(169));a?(i=uT(i,s,ki),c.__reactInternalMemoizedMergedChildContext=i,at(dn),at(Wt),ot(Wt,i)):at(dn),ot(dn,a)}var Ar=null,ml=!1,rh=!1;function lT(i){Ar===null?Ar=[i]:Ar.push(i)}function RL(i){ml=!0,lT(i)}function Xr(){if(!rh&&Ar!==null){rh=!0;var i=0,s=tt;try{var a=Ar;for(tt=1;i<a.length;i++){var c=a[i];do c=c(!0);while(c!==null)}Ar=null,ml=!1}catch(m){throw Ar!==null&&(Ar=Ar.slice(i+1)),fy(Cd,Xr),m}finally{tt=s,rh=!1}}return null}var Is=[],Os=0,gl=null,El=0,Rn=[],Pn=0,wi=null,Cr=1,kr="";function Ni(i,s){Is[Os++]=El,Is[Os++]=gl,gl=i,El=s}function cT(i,s,a){Rn[Pn++]=Cr,Rn[Pn++]=kr,Rn[Pn++]=wi,wi=i;var c=Cr;i=kr;var m=32-Yn(c)-1;c&=~(1<<m),a+=1;var E=32-Yn(s)+m;if(30<E){var _=m-m%5;E=(c&(1<<_)-1).toString(32),c>>=_,m-=_,Cr=1<<32-Yn(s)+m|a<<m|c,kr=E+i}else Cr=1<<E|a<<m|c,kr=i}function ih(i){i.return!==null&&(Ni(i,1),cT(i,1,0))}function sh(i){for(;i===gl;)gl=Is[--Os],Is[Os]=null,El=Is[--Os],Is[Os]=null;for(;i===wi;)wi=Rn[--Pn],Rn[Pn]=null,kr=Rn[--Pn],Rn[Pn]=null,Cr=Rn[--Pn],Rn[Pn]=null}var xn=null,An=null,ft=!1,Wn=null;function fT(i,s){var a=Fn(5,null,null,0);a.elementType="DELETED",a.stateNode=s,a.return=i,s=i.deletions,s===null?(i.deletions=[a],i.flags|=16):s.push(a)}function dT(i,s){switch(i.tag){case 5:var a=i.type;return s=s.nodeType!==1||a.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,xn=i,An=Gr(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,xn=i,An=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(a=wi!==null?{id:Cr,overflow:kr}:null,i.memoizedState={dehydrated:s,treeContext:a,retryLane:1073741824},a=Fn(18,null,null,0),a.stateNode=s,a.return=i,i.child=a,xn=i,An=null,!0):!1;default:return!1}}function oh(i){return(i.mode&1)!==0&&(i.flags&128)===0}function uh(i){if(ft){var s=An;if(s){var a=s;if(!dT(i,s)){if(oh(i))throw Error(n(418));s=Gr(a.nextSibling);var c=xn;s&&dT(i,s)?fT(c,a):(i.flags=i.flags&-4097|2,ft=!1,xn=i)}}else{if(oh(i))throw Error(n(418));i.flags=i.flags&-4097|2,ft=!1,xn=i}}}function hT(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;xn=i}function yl(i){if(i!==xn)return!1;if(!ft)return hT(i),ft=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!Jd(i.type,i.memoizedProps)),s&&(s=An)){if(oh(i))throw pT(),Error(n(418));for(;s;)fT(i,s),s=Gr(s.nextSibling)}if(hT(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="/$"){if(s===0){An=Gr(i.nextSibling);break e}s--}else a!=="$"&&a!=="$!"&&a!=="$?"||s++}i=i.nextSibling}An=null}}else An=xn?Gr(i.stateNode.nextSibling):null;return!0}function pT(){for(var i=An;i;)i=Gr(i.nextSibling)}function Rs(){An=xn=null,ft=!1}function ah(i){Wn===null?Wn=[i]:Wn.push(i)}var PL=ee.ReactCurrentBatchConfig;function fu(i,s,a){if(i=a.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var c=a.stateNode}if(!c)throw Error(n(147,i));var m=c,E=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===E?s.ref:(s=function(_){var N=m.refs;_===null?delete N[E]:N[E]=_},s._stringRef=E,s)}if(typeof i!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,i))}return i}function Tl(i,s){throw i=Object.prototype.toString.call(s),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function mT(i){var s=i._init;return s(i._payload)}function gT(i){function s(B,D){if(i){var z=B.deletions;z===null?(B.deletions=[D],B.flags|=16):z.push(D)}}function a(B,D){if(!i)return null;for(;D!==null;)s(B,D),D=D.sibling;return null}function c(B,D){for(B=new Map;D!==null;)D.key!==null?B.set(D.key,D):B.set(D.index,D),D=D.sibling;return B}function m(B,D){return B=si(B,D),B.index=0,B.sibling=null,B}function E(B,D,z){return B.index=z,i?(z=B.alternate,z!==null?(z=z.index,z<D?(B.flags|=2,D):z):(B.flags|=2,D)):(B.flags|=1048576,D)}function _(B){return i&&B.alternate===null&&(B.flags|=2),B}function N(B,D,z,ae){return D===null||D.tag!==6?(D=Zh(z,B.mode,ae),D.return=B,D):(D=m(D,z),D.return=B,D)}function R(B,D,z,ae){var xe=z.type;return xe===me?ne(B,D,z.props.children,ae,z.key):D!==null&&(D.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Le&&mT(xe)===D.type)?(ae=m(D,z.props),ae.ref=fu(B,D,z),ae.return=B,ae):(ae=$l(z.type,z.key,z.props,null,B.mode,ae),ae.ref=fu(B,D,z),ae.return=B,ae)}function $(B,D,z,ae){return D===null||D.tag!==4||D.stateNode.containerInfo!==z.containerInfo||D.stateNode.implementation!==z.implementation?(D=ep(z,B.mode,ae),D.return=B,D):(D=m(D,z.children||[]),D.return=B,D)}function ne(B,D,z,ae,xe){return D===null||D.tag!==7?(D=Mi(z,B.mode,ae,xe),D.return=B,D):(D=m(D,z),D.return=B,D)}function ie(B,D,z){if(typeof D=="string"&&D!==""||typeof D=="number")return D=Zh(""+D,B.mode,z),D.return=B,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case he:return z=$l(D.type,D.key,D.props,null,B.mode,z),z.ref=fu(B,null,D),z.return=B,z;case F:return D=ep(D,B.mode,z),D.return=B,D;case Le:var ae=D._init;return ie(B,ae(D._payload),z)}if(Ur(D)||G(D))return D=Mi(D,B.mode,z,null),D.return=B,D;Tl(B,D)}return null}function J(B,D,z,ae){var xe=D!==null?D.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return xe!==null?null:N(B,D,""+z,ae);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case he:return z.key===xe?R(B,D,z,ae):null;case F:return z.key===xe?$(B,D,z,ae):null;case Le:return xe=z._init,J(B,D,xe(z._payload),ae)}if(Ur(z)||G(z))return xe!==null?null:ne(B,D,z,ae,null);Tl(B,z)}return null}function ye(B,D,z,ae,xe){if(typeof ae=="string"&&ae!==""||typeof ae=="number")return B=B.get(z)||null,N(D,B,""+ae,xe);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case he:return B=B.get(ae.key===null?z:ae.key)||null,R(D,B,ae,xe);case F:return B=B.get(ae.key===null?z:ae.key)||null,$(D,B,ae,xe);case Le:var Oe=ae._init;return ye(B,D,z,Oe(ae._payload),xe)}if(Ur(ae)||G(ae))return B=B.get(z)||null,ne(D,B,ae,xe,null);Tl(D,ae)}return null}function _e(B,D,z,ae){for(var xe=null,Oe=null,Re=D,Me=D=0,Ft=null;Re!==null&&Me<z.length;Me++){Re.index>Me?(Ft=Re,Re=null):Ft=Re.sibling;var Xe=J(B,Re,z[Me],ae);if(Xe===null){Re===null&&(Re=Ft);break}i&&Re&&Xe.alternate===null&&s(B,Re),D=E(Xe,D,Me),Oe===null?xe=Xe:Oe.sibling=Xe,Oe=Xe,Re=Ft}if(Me===z.length)return a(B,Re),ft&&Ni(B,Me),xe;if(Re===null){for(;Me<z.length;Me++)Re=ie(B,z[Me],ae),Re!==null&&(D=E(Re,D,Me),Oe===null?xe=Re:Oe.sibling=Re,Oe=Re);return ft&&Ni(B,Me),xe}for(Re=c(B,Re);Me<z.length;Me++)Ft=ye(Re,B,Me,z[Me],ae),Ft!==null&&(i&&Ft.alternate!==null&&Re.delete(Ft.key===null?Me:Ft.key),D=E(Ft,D,Me),Oe===null?xe=Ft:Oe.sibling=Ft,Oe=Ft);return i&&Re.forEach(function(oi){return s(B,oi)}),ft&&Ni(B,Me),xe}function Se(B,D,z,ae){var xe=G(z);if(typeof xe!="function")throw Error(n(150));if(z=xe.call(z),z==null)throw Error(n(151));for(var Oe=xe=null,Re=D,Me=D=0,Ft=null,Xe=z.next();Re!==null&&!Xe.done;Me++,Xe=z.next()){Re.index>Me?(Ft=Re,Re=null):Ft=Re.sibling;var oi=J(B,Re,Xe.value,ae);if(oi===null){Re===null&&(Re=Ft);break}i&&Re&&oi.alternate===null&&s(B,Re),D=E(oi,D,Me),Oe===null?xe=oi:Oe.sibling=oi,Oe=oi,Re=Ft}if(Xe.done)return a(B,Re),ft&&Ni(B,Me),xe;if(Re===null){for(;!Xe.done;Me++,Xe=z.next())Xe=ie(B,Xe.value,ae),Xe!==null&&(D=E(Xe,D,Me),Oe===null?xe=Xe:Oe.sibling=Xe,Oe=Xe);return ft&&Ni(B,Me),xe}for(Re=c(B,Re);!Xe.done;Me++,Xe=z.next())Xe=ye(Re,B,Me,Xe.value,ae),Xe!==null&&(i&&Xe.alternate!==null&&Re.delete(Xe.key===null?Me:Xe.key),D=E(Xe,D,Me),Oe===null?xe=Xe:Oe.sibling=Xe,Oe=Xe);return i&&Re.forEach(function(d4){return s(B,d4)}),ft&&Ni(B,Me),xe}function St(B,D,z,ae){if(typeof z=="object"&&z!==null&&z.type===me&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case he:e:{for(var xe=z.key,Oe=D;Oe!==null;){if(Oe.key===xe){if(xe=z.type,xe===me){if(Oe.tag===7){a(B,Oe.sibling),D=m(Oe,z.props.children),D.return=B,B=D;break e}}else if(Oe.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Le&&mT(xe)===Oe.type){a(B,Oe.sibling),D=m(Oe,z.props),D.ref=fu(B,Oe,z),D.return=B,B=D;break e}a(B,Oe);break}else s(B,Oe);Oe=Oe.sibling}z.type===me?(D=Mi(z.props.children,B.mode,ae,z.key),D.return=B,B=D):(ae=$l(z.type,z.key,z.props,null,B.mode,ae),ae.ref=fu(B,D,z),ae.return=B,B=ae)}return _(B);case F:e:{for(Oe=z.key;D!==null;){if(D.key===Oe)if(D.tag===4&&D.stateNode.containerInfo===z.containerInfo&&D.stateNode.implementation===z.implementation){a(B,D.sibling),D=m(D,z.children||[]),D.return=B,B=D;break e}else{a(B,D);break}else s(B,D);D=D.sibling}D=ep(z,B.mode,ae),D.return=B,B=D}return _(B);case Le:return Oe=z._init,St(B,D,Oe(z._payload),ae)}if(Ur(z))return _e(B,D,z,ae);if(G(z))return Se(B,D,z,ae);Tl(B,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,D!==null&&D.tag===6?(a(B,D.sibling),D=m(D,z),D.return=B,B=D):(a(B,D),D=Zh(z,B.mode,ae),D.return=B,B=D),_(B)):a(B,D)}return St}var Ps=gT(!0),ET=gT(!1),bl=Kr(null),_l=null,Ls=null,lh=null;function ch(){lh=Ls=_l=null}function fh(i){var s=bl.current;at(bl),i._currentValue=s}function dh(i,s,a){for(;i!==null;){var c=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),i===a)break;i=i.return}}function Ds(i,s){_l=i,lh=Ls=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(pn=!0),i.firstContext=null)}function Ln(i){var s=i._currentValue;if(lh!==i)if(i={context:i,memoizedValue:s,next:null},Ls===null){if(_l===null)throw Error(n(308));Ls=i,_l.dependencies={lanes:0,firstContext:i}}else Ls=Ls.next=i;return s}var vi=null;function hh(i){vi===null?vi=[i]:vi.push(i)}function yT(i,s,a,c){var m=s.interleaved;return m===null?(a.next=a,hh(s)):(a.next=m.next,m.next=a),s.interleaved=a,wr(i,c)}function wr(i,s){i.lanes|=s;var a=i.alternate;for(a!==null&&(a.lanes|=s),a=i,i=i.return;i!==null;)i.childLanes|=s,a=i.alternate,a!==null&&(a.childLanes|=s),a=i,i=i.return;return a.tag===3?a.stateNode:null}var Jr=!1;function ph(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function TT(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Nr(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function Zr(i,s,a){var c=i.updateQueue;if(c===null)return null;if(c=c.shared,(Qe&2)!==0){var m=c.pending;return m===null?s.next=s:(s.next=m.next,m.next=s),c.pending=s,wr(i,a)}return m=c.interleaved,m===null?(s.next=s,hh(c)):(s.next=m.next,m.next=s),c.interleaved=s,wr(i,a)}function Sl(i,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194240)!==0)){var c=s.lanes;c&=i.pendingLanes,a|=c,s.lanes=a,Nd(i,a)}}function bT(i,s){var a=i.updateQueue,c=i.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var m=null,E=null;if(a=a.firstBaseUpdate,a!==null){do{var _={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};E===null?m=E=_:E=E.next=_,a=a.next}while(a!==null);E===null?m=E=s:E=E.next=s}else m=E=s;a={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:E,shared:c.shared,effects:c.effects},i.updateQueue=a;return}i=a.lastBaseUpdate,i===null?a.firstBaseUpdate=s:i.next=s,a.lastBaseUpdate=s}function xl(i,s,a,c){var m=i.updateQueue;Jr=!1;var E=m.firstBaseUpdate,_=m.lastBaseUpdate,N=m.shared.pending;if(N!==null){m.shared.pending=null;var R=N,$=R.next;R.next=null,_===null?E=$:_.next=$,_=R;var ne=i.alternate;ne!==null&&(ne=ne.updateQueue,N=ne.lastBaseUpdate,N!==_&&(N===null?ne.firstBaseUpdate=$:N.next=$,ne.lastBaseUpdate=R))}if(E!==null){var ie=m.baseState;_=0,ne=$=R=null,N=E;do{var J=N.lane,ye=N.eventTime;if((c&J)===J){ne!==null&&(ne=ne.next={eventTime:ye,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var _e=i,Se=N;switch(J=s,ye=a,Se.tag){case 1:if(_e=Se.payload,typeof _e=="function"){ie=_e.call(ye,ie,J);break e}ie=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Se.payload,J=typeof _e=="function"?_e.call(ye,ie,J):_e,J==null)break e;ie=x({},ie,J);break e;case 2:Jr=!0}}N.callback!==null&&N.lane!==0&&(i.flags|=64,J=m.effects,J===null?m.effects=[N]:J.push(N))}else ye={eventTime:ye,lane:J,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ne===null?($=ne=ye,R=ie):ne=ne.next=ye,_|=J;if(N=N.next,N===null){if(N=m.shared.pending,N===null)break;J=N,N=J.next,J.next=null,m.lastBaseUpdate=J,m.shared.pending=null}}while(!0);if(ne===null&&(R=ie),m.baseState=R,m.firstBaseUpdate=$,m.lastBaseUpdate=ne,s=m.shared.interleaved,s!==null){m=s;do _|=m.lane,m=m.next;while(m!==s)}else E===null&&(m.shared.lanes=0);Ri|=_,i.lanes=_,i.memoizedState=ie}}function _T(i,s,a){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var c=i[s],m=c.callback;if(m!==null){if(c.callback=null,c=a,typeof m!="function")throw Error(n(191,m));m.call(c)}}}var du={},fr=Kr(du),hu=Kr(du),pu=Kr(du);function Ii(i){if(i===du)throw Error(n(174));return i}function mh(i,s){switch(ot(pu,s),ot(hu,i),ot(fr,du),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:de(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=de(s,i)}at(fr),ot(fr,s)}function Ms(){at(fr),at(hu),at(pu)}function ST(i){Ii(pu.current);var s=Ii(fr.current),a=de(s,i.type);s!==a&&(ot(hu,i),ot(fr,a))}function gh(i){hu.current===i&&(at(fr),at(hu))}var pt=Kr(0);function Al(i){for(var s=i;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Eh=[];function yh(){for(var i=0;i<Eh.length;i++)Eh[i]._workInProgressVersionPrimary=null;Eh.length=0}var Cl=ee.ReactCurrentDispatcher,Th=ee.ReactCurrentBatchConfig,Oi=0,mt=null,vt=null,Dt=null,kl=!1,mu=!1,gu=0,LL=0;function Gt(){throw Error(n(321))}function bh(i,s){if(s===null)return!1;for(var a=0;a<s.length&&a<i.length;a++)if(!qn(i[a],s[a]))return!1;return!0}function _h(i,s,a,c,m,E){if(Oi=E,mt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Cl.current=i===null||i.memoizedState===null?BL:UL,i=a(c,m),mu){E=0;do{if(mu=!1,gu=0,25<=E)throw Error(n(301));E+=1,Dt=vt=null,s.updateQueue=null,Cl.current=HL,i=a(c,m)}while(mu)}if(Cl.current=vl,s=vt!==null&&vt.next!==null,Oi=0,Dt=vt=mt=null,kl=!1,s)throw Error(n(300));return i}function Sh(){var i=gu!==0;return gu=0,i}function dr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?mt.memoizedState=Dt=i:Dt=Dt.next=i,Dt}function Dn(){if(vt===null){var i=mt.alternate;i=i!==null?i.memoizedState:null}else i=vt.next;var s=Dt===null?mt.memoizedState:Dt.next;if(s!==null)Dt=s,vt=i;else{if(i===null)throw Error(n(310));vt=i,i={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},Dt===null?mt.memoizedState=Dt=i:Dt=Dt.next=i}return Dt}function Eu(i,s){return typeof s=="function"?s(i):s}function xh(i){var s=Dn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=i;var c=vt,m=c.baseQueue,E=a.pending;if(E!==null){if(m!==null){var _=m.next;m.next=E.next,E.next=_}c.baseQueue=m=E,a.pending=null}if(m!==null){E=m.next,c=c.baseState;var N=_=null,R=null,$=E;do{var ne=$.lane;if((Oi&ne)===ne)R!==null&&(R=R.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),c=$.hasEagerState?$.eagerState:i(c,$.action);else{var ie={lane:ne,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};R===null?(N=R=ie,_=c):R=R.next=ie,mt.lanes|=ne,Ri|=ne}$=$.next}while($!==null&&$!==E);R===null?_=c:R.next=N,qn(c,s.memoizedState)||(pn=!0),s.memoizedState=c,s.baseState=_,s.baseQueue=R,a.lastRenderedState=c}if(i=a.interleaved,i!==null){m=i;do E=m.lane,mt.lanes|=E,Ri|=E,m=m.next;while(m!==i)}else m===null&&(a.lanes=0);return[s.memoizedState,a.dispatch]}function Ah(i){var s=Dn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=i;var c=a.dispatch,m=a.pending,E=s.memoizedState;if(m!==null){a.pending=null;var _=m=m.next;do E=i(E,_.action),_=_.next;while(_!==m);qn(E,s.memoizedState)||(pn=!0),s.memoizedState=E,s.baseQueue===null&&(s.baseState=E),a.lastRenderedState=E}return[E,c]}function xT(){}function AT(i,s){var a=mt,c=Dn(),m=s(),E=!qn(c.memoizedState,m);if(E&&(c.memoizedState=m,pn=!0),c=c.queue,Ch(wT.bind(null,a,c,i),[i]),c.getSnapshot!==s||E||Dt!==null&&Dt.memoizedState.tag&1){if(a.flags|=2048,yu(9,kT.bind(null,a,c,m,s),void 0,null),Mt===null)throw Error(n(349));(Oi&30)!==0||CT(a,s,m)}return m}function CT(i,s,a){i.flags|=16384,i={getSnapshot:s,value:a},s=mt.updateQueue,s===null?(s={lastEffect:null,stores:null},mt.updateQueue=s,s.stores=[i]):(a=s.stores,a===null?s.stores=[i]:a.push(i))}function kT(i,s,a,c){s.value=a,s.getSnapshot=c,NT(s)&&vT(i)}function wT(i,s,a){return a(function(){NT(s)&&vT(i)})}function NT(i){var s=i.getSnapshot;i=i.value;try{var a=s();return!qn(i,a)}catch(c){return!0}}function vT(i){var s=wr(i,1);s!==null&&Xn(s,i,1,-1)}function IT(i){var s=dr();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Eu,lastRenderedState:i},s.queue=i,i=i.dispatch=FL.bind(null,mt,i),[s.memoizedState,i]}function yu(i,s,a,c){return i={tag:i,create:s,destroy:a,deps:c,next:null},s=mt.updateQueue,s===null?(s={lastEffect:null,stores:null},mt.updateQueue=s,s.lastEffect=i.next=i):(a=s.lastEffect,a===null?s.lastEffect=i.next=i:(c=a.next,a.next=i,i.next=c,s.lastEffect=i)),i}function OT(){return Dn().memoizedState}function wl(i,s,a,c){var m=dr();mt.flags|=i,m.memoizedState=yu(1|s,a,void 0,c===void 0?null:c)}function Nl(i,s,a,c){var m=Dn();c=c===void 0?null:c;var E=void 0;if(vt!==null){var _=vt.memoizedState;if(E=_.destroy,c!==null&&bh(c,_.deps)){m.memoizedState=yu(s,a,E,c);return}}mt.flags|=i,m.memoizedState=yu(1|s,a,E,c)}function RT(i,s){return wl(8390656,8,i,s)}function Ch(i,s){return Nl(2048,8,i,s)}function PT(i,s){return Nl(4,2,i,s)}function LT(i,s){return Nl(4,4,i,s)}function DT(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function MT(i,s,a){return a=a!=null?a.concat([i]):null,Nl(4,4,DT.bind(null,s,i),a)}function kh(){}function FT(i,s){var a=Dn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&bh(s,c[1])?c[0]:(a.memoizedState=[i,s],i)}function BT(i,s){var a=Dn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&bh(s,c[1])?c[0]:(i=i(),a.memoizedState=[i,s],i)}function UT(i,s,a){return(Oi&21)===0?(i.baseState&&(i.baseState=!1,pn=!0),i.memoizedState=a):(qn(a,s)||(a=my(),mt.lanes|=a,Ri|=a,i.baseState=!0),s)}function DL(i,s){var a=tt;tt=a!==0&&4>a?a:4,i(!0);var c=Th.transition;Th.transition={};try{i(!1),s()}finally{tt=a,Th.transition=c}}function HT(){return Dn().memoizedState}function ML(i,s,a){var c=ri(i);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},zT(i))jT(s,a);else if(a=yT(i,s,a,c),a!==null){var m=en();Xn(a,i,c,m),$T(a,s,c)}}function FL(i,s,a){var c=ri(i),m={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(zT(i))jT(s,m);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=s.lastRenderedReducer,E!==null))try{var _=s.lastRenderedState,N=E(_,a);if(m.hasEagerState=!0,m.eagerState=N,qn(N,_)){var R=s.interleaved;R===null?(m.next=m,hh(s)):(m.next=R.next,R.next=m),s.interleaved=m;return}}catch($){}finally{}a=yT(i,s,m,c),a!==null&&(m=en(),Xn(a,i,c,m),$T(a,s,c))}}function zT(i){var s=i.alternate;return i===mt||s!==null&&s===mt}function jT(i,s){mu=kl=!0;var a=i.pending;a===null?s.next=s:(s.next=a.next,a.next=s),i.pending=s}function $T(i,s,a){if((a&4194240)!==0){var c=s.lanes;c&=i.pendingLanes,a|=c,s.lanes=a,Nd(i,a)}}var vl={readContext:Ln,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useInsertionEffect:Gt,useLayoutEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useMutableSource:Gt,useSyncExternalStore:Gt,useId:Gt,unstable_isNewReconciler:!1},BL={readContext:Ln,useCallback:function(i,s){return dr().memoizedState=[i,s===void 0?null:s],i},useContext:Ln,useEffect:RT,useImperativeHandle:function(i,s,a){return a=a!=null?a.concat([i]):null,wl(4194308,4,DT.bind(null,s,i),a)},useLayoutEffect:function(i,s){return wl(4194308,4,i,s)},useInsertionEffect:function(i,s){return wl(4,2,i,s)},useMemo:function(i,s){var a=dr();return s=s===void 0?null:s,i=i(),a.memoizedState=[i,s],i},useReducer:function(i,s,a){var c=dr();return s=a!==void 0?a(s):s,c.memoizedState=c.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},c.queue=i,i=i.dispatch=ML.bind(null,mt,i),[c.memoizedState,i]},useRef:function(i){var s=dr();return i={current:i},s.memoizedState=i},useState:IT,useDebugValue:kh,useDeferredValue:function(i){return dr().memoizedState=i},useTransition:function(){var i=IT(!1),s=i[0];return i=DL.bind(null,i[1]),dr().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,a){var c=mt,m=dr();if(ft){if(a===void 0)throw Error(n(407));a=a()}else{if(a=s(),Mt===null)throw Error(n(349));(Oi&30)!==0||CT(c,s,a)}m.memoizedState=a;var E={value:a,getSnapshot:s};return m.queue=E,RT(wT.bind(null,c,E,i),[i]),c.flags|=2048,yu(9,kT.bind(null,c,E,a,s),void 0,null),a},useId:function(){var i=dr(),s=Mt.identifierPrefix;if(ft){var a=kr,c=Cr;a=(c&~(1<<32-Yn(c)-1)).toString(32)+a,s=":"+s+"R"+a,a=gu++,0<a&&(s+="H"+a.toString(32)),s+=":"}else a=LL++,s=":"+s+"r"+a.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},UL={readContext:Ln,useCallback:FT,useContext:Ln,useEffect:Ch,useImperativeHandle:MT,useInsertionEffect:PT,useLayoutEffect:LT,useMemo:BT,useReducer:xh,useRef:OT,useState:function(){return xh(Eu)},useDebugValue:kh,useDeferredValue:function(i){var s=Dn();return UT(s,vt.memoizedState,i)},useTransition:function(){var i=xh(Eu)[0],s=Dn().memoizedState;return[i,s]},useMutableSource:xT,useSyncExternalStore:AT,useId:HT,unstable_isNewReconciler:!1},HL={readContext:Ln,useCallback:FT,useContext:Ln,useEffect:Ch,useImperativeHandle:MT,useInsertionEffect:PT,useLayoutEffect:LT,useMemo:BT,useReducer:Ah,useRef:OT,useState:function(){return Ah(Eu)},useDebugValue:kh,useDeferredValue:function(i){var s=Dn();return vt===null?s.memoizedState=i:UT(s,vt.memoizedState,i)},useTransition:function(){var i=Ah(Eu)[0],s=Dn().memoizedState;return[i,s]},useMutableSource:xT,useSyncExternalStore:AT,useId:HT,unstable_isNewReconciler:!1};function Gn(i,s){if(i&&i.defaultProps){s=x({},s),i=i.defaultProps;for(var a in i)s[a]===void 0&&(s[a]=i[a]);return s}return s}function wh(i,s,a,c){s=i.memoizedState,a=a(c,s),a=a==null?s:x({},s,a),i.memoizedState=a,i.lanes===0&&(i.updateQueue.baseState=a)}var Il={isMounted:function(i){return(i=i._reactInternals)?Ai(i)===i:!1},enqueueSetState:function(i,s,a){i=i._reactInternals;var c=en(),m=ri(i),E=Nr(c,m);E.payload=s,a!=null&&(E.callback=a),s=Zr(i,E,m),s!==null&&(Xn(s,i,m,c),Sl(s,i,m))},enqueueReplaceState:function(i,s,a){i=i._reactInternals;var c=en(),m=ri(i),E=Nr(c,m);E.tag=1,E.payload=s,a!=null&&(E.callback=a),s=Zr(i,E,m),s!==null&&(Xn(s,i,m,c),Sl(s,i,m))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var a=en(),c=ri(i),m=Nr(a,c);m.tag=2,s!=null&&(m.callback=s),s=Zr(i,m,c),s!==null&&(Xn(s,i,c,a),Sl(s,i,c))}};function VT(i,s,a,c,m,E,_){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(c,E,_):s.prototype&&s.prototype.isPureReactComponent?!iu(a,c)||!iu(m,E):!0}function YT(i,s,a){var c=!1,m=Qr,E=s.contextType;return typeof E=="object"&&E!==null?E=Ln(E):(m=hn(s)?ki:Wt.current,c=s.contextTypes,E=(c=c!=null)?vs(i,m):Qr),s=new s(a,E),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Il,i.stateNode=s,s._reactInternals=i,c&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=m,i.__reactInternalMemoizedMaskedChildContext=E),s}function qT(i,s,a,c){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,c),s.state!==i&&Il.enqueueReplaceState(s,s.state,null)}function Nh(i,s,a,c){var m=i.stateNode;m.props=a,m.state=i.memoizedState,m.refs={},ph(i);var E=s.contextType;typeof E=="object"&&E!==null?m.context=Ln(E):(E=hn(s)?ki:Wt.current,m.context=vs(i,E)),m.state=i.memoizedState,E=s.getDerivedStateFromProps,typeof E=="function"&&(wh(i,s,E,a),m.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(s=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),s!==m.state&&Il.enqueueReplaceState(m,m.state,null),xl(i,a,m,c),m.state=i.memoizedState),typeof m.componentDidMount=="function"&&(i.flags|=4194308)}function Fs(i,s){try{var a="",c=s;do a+=ve(c),c=c.return;while(c);var m=a}catch(E){m=`
72
+ `+m[_].replace(" at new "," at ");return i.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",i.displayName)),R}while(1<=_&&0<=N);break}}}finally{w=!1,Error.prepareStackTrace=a}return(i=i?i.displayName||i.name:"")?q(i):""}function ve(i){switch(i.tag){case 5:return q(i.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return i=Ee(i.type,!1),i;case 11:return i=Ee(i.type.render,!1),i;case 1:return i=Ee(i.type,!0),i;default:return""}}function Ce(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case me:return"Fragment";case F:return"Portal";case Ne:return"Profiler";case Ae:return"StrictMode";case ce:return"Suspense";case fe:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case ge:return(i.displayName||"Context")+".Consumer";case H:return(i._context.displayName||"Context")+".Provider";case pe:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case be:return s=i.displayName||null,s!==null?s:Ce(i.type)||"Memo";case Le:s=i._payload,i=i._init;try{return Ce(i(s))}catch(a){}}return null}function We(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(s);case 8:return s===Ae?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ze(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ze(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function wt(i){var s=Ze(i)?"checked":"value",a=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),c=""+i[s];if(!i.hasOwnProperty(s)&&typeof a!="undefined"&&typeof a.get=="function"&&typeof a.set=="function"){var m=a.get,E=a.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return m.call(this)},set:function(_){c=""+_,E.call(this,_)}}),Object.defineProperty(i,s,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function _r(i){i._valueTracker||(i._valueTracker=wt(i))}function Ua(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var a=s.getValue(),c="";return i&&(c=Ze(i)?i.checked?"true":"false":i.value),i=c,i!==a?(s.setValue(i),!0):!1}function gs(i){if(i=i||(typeof document!="undefined"?document:void 0),typeof i=="undefined")return null;try{return i.activeElement||i.body}catch(s){return i.body}}function Uo(i,s){var a=s.checked;return x({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a!=null?a:i._wrapperState.initialChecked})}function Ho(i,s){var a=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;a=ze(s.value!=null?s.value:a),i._wrapperState={initialChecked:c,initialValue:a,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function zo(i,s){s=s.checked,s!=null&&j(i,"checked",s,!1)}function Es(i,s){zo(i,s);var a=ze(s.value),c=s.type;if(a!=null)c==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+a):i.value!==""+a&&(i.value=""+a);else if(c==="submit"||c==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?ys(i,s.type,a):s.hasOwnProperty("defaultValue")&&ys(i,s.type,ze(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function Ha(i,s,a){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var c=s.type;if(!(c!=="submit"&&c!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,a||s===i.value||(i.value=s),i.defaultValue=s}a=i.name,a!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,a!==""&&(i.name=a)}function ys(i,s,a){(s!=="number"||gs(i.ownerDocument)!==i)&&(a==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+a&&(i.defaultValue=""+a))}var Ur=Array.isArray;function Hr(i,s,a,c){if(i=i.options,s){s={};for(var m=0;m<a.length;m++)s["$"+a[m]]=!0;for(a=0;a<i.length;a++)m=s.hasOwnProperty("$"+i[a].value),i[a].selected!==m&&(i[a].selected=m),m&&c&&(i[a].defaultSelected=!0)}else{for(a=""+ze(a),s=null,m=0;m<i.length;m++){if(i[m].value===a){i[m].selected=!0,c&&(i[m].defaultSelected=!0);return}s!==null||i[m].disabled||(s=i[m])}s!==null&&(s.selected=!0)}}function jo(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return x({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function za(i,s){var a=s.value;if(a==null){if(a=s.children,s=s.defaultValue,a!=null){if(s!=null)throw Error(n(92));if(Ur(a)){if(1<a.length)throw Error(n(93));a=a[0]}s=a}s==null&&(s=""),a=s}i._wrapperState={initialValue:ze(a)}}function ja(i,s){var a=ze(s.value),c=ze(s.defaultValue);a!=null&&(a=""+a,a!==i.value&&(i.value=a),s.defaultValue==null&&i.defaultValue!==a&&(i.defaultValue=a)),c!=null&&(i.defaultValue=""+c)}function $a(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function K(i){switch(i){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 de(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?K(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var De,je=function(i){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(s,a,c,m){MSApp.execUnsafeLocalFunction(function(){return i(s,a,c,m)})}:i}(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(De=De||document.createElement("div"),De.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=De.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function Ke(i,s){if(s){var a=i.firstChild;if(a&&a===i.lastChild&&a.nodeType===3){a.nodeValue=s;return}}i.textContent=s}var Ut={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},Sr=["Webkit","ms","Moz","O"];Object.keys(Ut).forEach(function(i){Sr.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),Ut[s]=Ut[i]})});function In(i,s,a){return s==null||typeof s=="boolean"||s===""?"":a||typeof s!="number"||s===0||Ut.hasOwnProperty(i)&&Ut[i]?(""+s).trim():s+"px"}function zr(i,s){i=i.style;for(var a in s)if(s.hasOwnProperty(a)){var c=a.indexOf("--")===0,m=In(a,s[a],c);a==="float"&&(a="cssFloat"),c?i.setProperty(a,m):i[a]=m}}var xi=x({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 Ht(i,s){if(s){if(xi[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function ar(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){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}}var _n=null;function bd(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var _d=null,Ts=null,bs=null;function ty(i){if(i=cu(i)){if(typeof _d!="function")throw Error(n(280));var s=i.stateNode;s&&(s=dl(s),_d(i.stateNode,i.type,s))}}function ny(i){Ts?bs?bs.push(i):bs=[i]:Ts=i}function ry(){if(Ts){var i=Ts,s=bs;if(bs=Ts=null,ty(i),s)for(i=0;i<s.length;i++)ty(s[i])}}function iy(i,s){return i(s)}function sy(){}var Sd=!1;function oy(i,s,a){if(Sd)return i(s,a);Sd=!0;try{return iy(i,s,a)}finally{Sd=!1,(Ts!==null||bs!==null)&&(sy(),ry())}}function $o(i,s){var a=i.stateNode;if(a===null)return null;var c=dl(a);if(c===null)return null;a=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(i=i.type,c=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!c;break e;default:i=!1}if(i)return null;if(a&&typeof a!="function")throw Error(n(231,s,typeof a));return a}var xd=!1;if(f)try{var Vo={};Object.defineProperty(Vo,"passive",{get:function(){xd=!0}}),window.addEventListener("test",Vo,Vo),window.removeEventListener("test",Vo,Vo)}catch(i){xd=!1}function TP(i,s,a,c,m,E,_,N,R){var V=Array.prototype.slice.call(arguments,3);try{s.apply(a,V)}catch(ne){this.onError(ne)}}var Yo=!1,Va=null,Ya=!1,Ad=null,bP={onError:function(i){Yo=!0,Va=i}};function _P(i,s,a,c,m,E,_,N,R){Yo=!1,Va=null,TP.apply(bP,arguments)}function SP(i,s,a,c,m,E,_,N,R){if(_P.apply(this,arguments),Yo){if(Yo){var V=Va;Yo=!1,Va=null}else throw Error(n(198));Ya||(Ya=!0,Ad=V)}}function Ai(i){var s=i,a=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(a=s.return),i=s.return;while(i)}return s.tag===3?a:null}function uy(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function ay(i){if(Ai(i)!==i)throw Error(n(188))}function xP(i){var s=i.alternate;if(!s){if(s=Ai(i),s===null)throw Error(n(188));return s!==i?null:i}for(var a=i,c=s;;){var m=a.return;if(m===null)break;var E=m.alternate;if(E===null){if(c=m.return,c!==null){a=c;continue}break}if(m.child===E.child){for(E=m.child;E;){if(E===a)return ay(m),i;if(E===c)return ay(m),s;E=E.sibling}throw Error(n(188))}if(a.return!==c.return)a=m,c=E;else{for(var _=!1,N=m.child;N;){if(N===a){_=!0,a=m,c=E;break}if(N===c){_=!0,c=m,a=E;break}N=N.sibling}if(!_){for(N=E.child;N;){if(N===a){_=!0,a=E,c=m;break}if(N===c){_=!0,c=E,a=m;break}N=N.sibling}if(!_)throw Error(n(189))}}if(a.alternate!==c)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?i:s}function ly(i){return i=xP(i),i!==null?cy(i):null}function cy(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=cy(i);if(s!==null)return s;i=i.sibling}return null}var fy=t.unstable_scheduleCallback,dy=t.unstable_cancelCallback,AP=t.unstable_shouldYield,CP=t.unstable_requestPaint,_t=t.unstable_now,kP=t.unstable_getCurrentPriorityLevel,Cd=t.unstable_ImmediatePriority,hy=t.unstable_UserBlockingPriority,qa=t.unstable_NormalPriority,wP=t.unstable_LowPriority,py=t.unstable_IdlePriority,Wa=null,lr=null;function NP(i){if(lr&&typeof lr.onCommitFiberRoot=="function")try{lr.onCommitFiberRoot(Wa,i,void 0,(i.current.flags&128)===128)}catch(s){}}var Yn=Math.clz32?Math.clz32:IP,vP=Math.log,OP=Math.LN2;function IP(i){return i>>>=0,i===0?32:31-(vP(i)/OP|0)|0}var Ga=64,Ka=4194304;function qo(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Qa(i,s){var a=i.pendingLanes;if(a===0)return 0;var c=0,m=i.suspendedLanes,E=i.pingedLanes,_=a&268435455;if(_!==0){var N=_&~m;N!==0?c=qo(N):(E&=_,E!==0&&(c=qo(E)))}else _=a&~m,_!==0?c=qo(_):E!==0&&(c=qo(E));if(c===0)return 0;if(s!==0&&s!==c&&(s&m)===0&&(m=c&-c,E=s&-s,m>=E||m===16&&(E&4194240)!==0))return s;if((c&4)!==0&&(c|=a&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=c;0<s;)a=31-Yn(s),m=1<<a,c|=i[a],s&=~m;return c}function RP(i,s){switch(i){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function PP(i,s){for(var a=i.suspendedLanes,c=i.pingedLanes,m=i.expirationTimes,E=i.pendingLanes;0<E;){var _=31-Yn(E),N=1<<_,R=m[_];R===-1?((N&a)===0||(N&c)!==0)&&(m[_]=RP(N,s)):R<=s&&(i.expiredLanes|=N),E&=~N}}function kd(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function my(){var i=Ga;return Ga<<=1,(Ga&4194240)===0&&(Ga=64),i}function wd(i){for(var s=[],a=0;31>a;a++)s.push(i);return s}function Wo(i,s,a){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-Yn(s),i[s]=a}function LP(i,s){var a=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var c=i.eventTimes;for(i=i.expirationTimes;0<a;){var m=31-Yn(a),E=1<<m;s[m]=0,c[m]=-1,i[m]=-1,a&=~E}}function Nd(i,s){var a=i.entangledLanes|=s;for(i=i.entanglements;a;){var c=31-Yn(a),m=1<<c;m&s|i[c]&s&&(i[c]|=s),a&=~m}}var tt=0;function gy(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Ey,vd,yy,Ty,by,Od=!1,Xa=[],jr=null,$r=null,Vr=null,Go=new Map,Ko=new Map,Yr=[],DP="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 _y(i,s){switch(i){case"focusin":case"focusout":jr=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Go.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ko.delete(s.pointerId)}}function Qo(i,s,a,c,m,E){return i===null||i.nativeEvent!==E?(i={blockedOn:s,domEventName:a,eventSystemFlags:c,nativeEvent:E,targetContainers:[m]},s!==null&&(s=cu(s),s!==null&&vd(s)),i):(i.eventSystemFlags|=c,s=i.targetContainers,m!==null&&s.indexOf(m)===-1&&s.push(m),i)}function MP(i,s,a,c,m){switch(s){case"focusin":return jr=Qo(jr,i,s,a,c,m),!0;case"dragenter":return $r=Qo($r,i,s,a,c,m),!0;case"mouseover":return Vr=Qo(Vr,i,s,a,c,m),!0;case"pointerover":var E=m.pointerId;return Go.set(E,Qo(Go.get(E)||null,i,s,a,c,m)),!0;case"gotpointercapture":return E=m.pointerId,Ko.set(E,Qo(Ko.get(E)||null,i,s,a,c,m)),!0}return!1}function Sy(i){var s=Ci(i.target);if(s!==null){var a=Ai(s);if(a!==null){if(s=a.tag,s===13){if(s=uy(a),s!==null){i.blockedOn=s,by(i.priority,function(){yy(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){i.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Ja(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var a=Rd(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(a===null){a=i.nativeEvent;var c=new a.constructor(a.type,a);_n=c,a.target.dispatchEvent(c),_n=null}else return s=cu(a),s!==null&&vd(s),i.blockedOn=a,!1;s.shift()}return!0}function xy(i,s,a){Ja(i)&&a.delete(s)}function FP(){Od=!1,jr!==null&&Ja(jr)&&(jr=null),$r!==null&&Ja($r)&&($r=null),Vr!==null&&Ja(Vr)&&(Vr=null),Go.forEach(xy),Ko.forEach(xy)}function Xo(i,s){i.blockedOn===s&&(i.blockedOn=null,Od||(Od=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,FP)))}function Jo(i){function s(m){return Xo(m,i)}if(0<Xa.length){Xo(Xa[0],i);for(var a=1;a<Xa.length;a++){var c=Xa[a];c.blockedOn===i&&(c.blockedOn=null)}}for(jr!==null&&Xo(jr,i),$r!==null&&Xo($r,i),Vr!==null&&Xo(Vr,i),Go.forEach(s),Ko.forEach(s),a=0;a<Yr.length;a++)c=Yr[a],c.blockedOn===i&&(c.blockedOn=null);for(;0<Yr.length&&(a=Yr[0],a.blockedOn===null);)Sy(a),a.blockedOn===null&&Yr.shift()}var _s=te.ReactCurrentBatchConfig,Za=!0;function BP(i,s,a,c){var m=tt,E=_s.transition;_s.transition=null;try{tt=1,Id(i,s,a,c)}finally{tt=m,_s.transition=E}}function UP(i,s,a,c){var m=tt,E=_s.transition;_s.transition=null;try{tt=4,Id(i,s,a,c)}finally{tt=m,_s.transition=E}}function Id(i,s,a,c){if(Za){var m=Rd(i,s,a,c);if(m===null)Kd(i,s,c,el,a),_y(i,c);else if(MP(m,i,s,a,c))c.stopPropagation();else if(_y(i,c),s&4&&-1<DP.indexOf(i)){for(;m!==null;){var E=cu(m);if(E!==null&&Ey(E),E=Rd(i,s,a,c),E===null&&Kd(i,s,c,el,a),E===m)break;m=E}m!==null&&c.stopPropagation()}else Kd(i,s,c,null,a)}}var el=null;function Rd(i,s,a,c){if(el=null,i=bd(c),i=Ci(i),i!==null)if(s=Ai(i),s===null)i=null;else if(a=s.tag,a===13){if(i=uy(s),i!==null)return i;i=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return el=i,null}function Ay(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(kP()){case Cd:return 1;case hy:return 4;case qa:case wP:return 16;case py:return 536870912;default:return 16}default:return 16}}var qr=null,Pd=null,tl=null;function Cy(){if(tl)return tl;var i,s=Pd,a=s.length,c,m="value"in qr?qr.value:qr.textContent,E=m.length;for(i=0;i<a&&s[i]===m[i];i++);var _=a-i;for(c=1;c<=_&&s[a-c]===m[E-c];c++);return tl=m.slice(i,1<c?1-c:void 0)}function nl(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function rl(){return!0}function ky(){return!1}function Sn(i){function s(a,c,m,E,_){this._reactName=a,this._targetInst=m,this.type=c,this.nativeEvent=E,this.target=_,this.currentTarget=null;for(var N in i)i.hasOwnProperty(N)&&(a=i[N],this[N]=a?a(E):E[N]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?rl:ky,this.isPropagationStopped=ky,this}return x(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=rl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=rl)},persist:function(){},isPersistent:rl}),s}var Ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ld=Sn(Ss),Zo=x({},Ss,{view:0,detail:0}),HP=Sn(Zo),Dd,Md,eu,il=x({},Zo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bd,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==eu&&(eu&&i.type==="mousemove"?(Dd=i.screenX-eu.screenX,Md=i.screenY-eu.screenY):Md=Dd=0,eu=i),Dd)},movementY:function(i){return"movementY"in i?i.movementY:Md}}),wy=Sn(il),zP=x({},il,{dataTransfer:0}),jP=Sn(zP),$P=x({},Zo,{relatedTarget:0}),Fd=Sn($P),VP=x({},Ss,{animationName:0,elapsedTime:0,pseudoElement:0}),YP=Sn(VP),qP=x({},Ss,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),WP=Sn(qP),GP=x({},Ss,{data:0}),Ny=Sn(GP),KP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QP={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"},XP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JP(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=XP[i])?!!s[i]:!1}function Bd(){return JP}var ZP=x({},Zo,{key:function(i){if(i.key){var s=KP[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=nl(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?QP[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bd,charCode:function(i){return i.type==="keypress"?nl(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?nl(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),eL=Sn(ZP),tL=x({},il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vy=Sn(tL),nL=x({},Zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bd}),rL=Sn(nL),iL=x({},Ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),sL=Sn(iL),oL=x({},il,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),uL=Sn(oL),aL=[9,13,27,32],Ud=f&&"CompositionEvent"in window,tu=null;f&&"documentMode"in document&&(tu=document.documentMode);var lL=f&&"TextEvent"in window&&!tu,Oy=f&&(!Ud||tu&&8<tu&&11>=tu),Iy=" ",Ry=!1;function Py(i,s){switch(i){case"keyup":return aL.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ly(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var xs=!1;function cL(i,s){switch(i){case"compositionend":return Ly(s);case"keypress":return s.which!==32?null:(Ry=!0,Iy);case"textInput":return i=s.data,i===Iy&&Ry?null:i;default:return null}}function fL(i,s){if(xs)return i==="compositionend"||!Ud&&Py(i,s)?(i=Cy(),tl=Pd=qr=null,xs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Oy&&s.locale!=="ko"?null:s.data;default:return null}}var dL={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 Dy(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!dL[i.type]:s==="textarea"}function My(i,s,a,c){ny(c),s=ll(s,"onChange"),0<s.length&&(a=new Ld("onChange","change",null,a,c),i.push({event:a,listeners:s}))}var nu=null,ru=null;function hL(i){eT(i,0)}function sl(i){var s=Ns(i);if(Ua(s))return i}function pL(i,s){if(i==="change")return s}var Fy=!1;if(f){var Hd;if(f){var zd="oninput"in document;if(!zd){var By=document.createElement("div");By.setAttribute("oninput","return;"),zd=typeof By.oninput=="function"}Hd=zd}else Hd=!1;Fy=Hd&&(!document.documentMode||9<document.documentMode)}function Uy(){nu&&(nu.detachEvent("onpropertychange",Hy),ru=nu=null)}function Hy(i){if(i.propertyName==="value"&&sl(ru)){var s=[];My(s,ru,i,bd(i)),oy(hL,s)}}function mL(i,s,a){i==="focusin"?(Uy(),nu=s,ru=a,nu.attachEvent("onpropertychange",Hy)):i==="focusout"&&Uy()}function gL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return sl(ru)}function EL(i,s){if(i==="click")return sl(s)}function yL(i,s){if(i==="input"||i==="change")return sl(s)}function TL(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var qn=typeof Object.is=="function"?Object.is:TL;function iu(i,s){if(qn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var a=Object.keys(i),c=Object.keys(s);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var m=a[c];if(!d.call(s,m)||!qn(i[m],s[m]))return!1}return!0}function zy(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function jy(i,s){var a=zy(i);i=0;for(var c;a;){if(a.nodeType===3){if(c=i+a.textContent.length,i<=s&&c>=s)return{node:a,offset:s-i};i=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=zy(a)}}function $y(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?$y(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Vy(){for(var i=window,s=gs();s instanceof i.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch(c){a=!1}if(a)i=s.contentWindow;else break;s=gs(i.document)}return s}function jd(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function bL(i){var s=Vy(),a=i.focusedElem,c=i.selectionRange;if(s!==a&&a&&a.ownerDocument&&$y(a.ownerDocument.documentElement,a)){if(c!==null&&jd(a)){if(s=c.start,i=c.end,i===void 0&&(i=s),"selectionStart"in a)a.selectionStart=s,a.selectionEnd=Math.min(i,a.value.length);else if(i=(s=a.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var m=a.textContent.length,E=Math.min(c.start,m);c=c.end===void 0?E:Math.min(c.end,m),!i.extend&&E>c&&(m=c,c=E,E=m),m=jy(a,E);var _=jy(a,c);m&&_&&(i.rangeCount!==1||i.anchorNode!==m.node||i.anchorOffset!==m.offset||i.focusNode!==_.node||i.focusOffset!==_.offset)&&(s=s.createRange(),s.setStart(m.node,m.offset),i.removeAllRanges(),E>c?(i.addRange(s),i.extend(_.node,_.offset)):(s.setEnd(_.node,_.offset),i.addRange(s)))}}for(s=[],i=a;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<s.length;a++)i=s[a],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var _L=f&&"documentMode"in document&&11>=document.documentMode,As=null,$d=null,su=null,Vd=!1;function Yy(i,s,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Vd||As==null||As!==gs(c)||(c=As,"selectionStart"in c&&jd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),su&&iu(su,c)||(su=c,c=ll($d,"onSelect"),0<c.length&&(s=new Ld("onSelect","select",null,s,a),i.push({event:s,listeners:c}),s.target=As)))}function ol(i,s){var a={};return a[i.toLowerCase()]=s.toLowerCase(),a["Webkit"+i]="webkit"+s,a["Moz"+i]="moz"+s,a}var Cs={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionend:ol("Transition","TransitionEnd")},Yd={},qy={};f&&(qy=document.createElement("div").style,"AnimationEvent"in window||(delete Cs.animationend.animation,delete Cs.animationiteration.animation,delete Cs.animationstart.animation),"TransitionEvent"in window||delete Cs.transitionend.transition);function ul(i){if(Yd[i])return Yd[i];if(!Cs[i])return i;var s=Cs[i],a;for(a in s)if(s.hasOwnProperty(a)&&a in qy)return Yd[i]=s[a];return i}var Wy=ul("animationend"),Gy=ul("animationiteration"),Ky=ul("animationstart"),Qy=ul("transitionend"),Xy=new Map,Jy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Wr(i,s){Xy.set(i,s),u(s,[i])}for(var qd=0;qd<Jy.length;qd++){var Wd=Jy[qd],SL=Wd.toLowerCase(),xL=Wd[0].toUpperCase()+Wd.slice(1);Wr(SL,"on"+xL)}Wr(Wy,"onAnimationEnd"),Wr(Gy,"onAnimationIteration"),Wr(Ky,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(Qy,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ou="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),AL=new Set("cancel close invalid load scroll toggle".split(" ").concat(ou));function Zy(i,s,a){var c=i.type||"unknown-event";i.currentTarget=a,SP(c,s,void 0,i),i.currentTarget=null}function eT(i,s){s=(s&4)!==0;for(var a=0;a<i.length;a++){var c=i[a],m=c.event;c=c.listeners;e:{var E=void 0;if(s)for(var _=c.length-1;0<=_;_--){var N=c[_],R=N.instance,V=N.currentTarget;if(N=N.listener,R!==E&&m.isPropagationStopped())break e;Zy(m,N,V),E=R}else for(_=0;_<c.length;_++){if(N=c[_],R=N.instance,V=N.currentTarget,N=N.listener,R!==E&&m.isPropagationStopped())break e;Zy(m,N,V),E=R}}}if(Ya)throw i=Ad,Ya=!1,Ad=null,i}function ut(i,s){var a=s[th];a===void 0&&(a=s[th]=new Set);var c=i+"__bubble";a.has(c)||(tT(s,i,2,!1),a.add(c))}function Gd(i,s,a){var c=0;s&&(c|=4),tT(a,i,c,s)}var al="_reactListening"+Math.random().toString(36).slice(2);function uu(i){if(!i[al]){i[al]=!0,r.forEach(function(a){a!=="selectionchange"&&(AL.has(a)||Gd(a,!1,i),Gd(a,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[al]||(s[al]=!0,Gd("selectionchange",!1,s))}}function tT(i,s,a,c){switch(Ay(s)){case 1:var m=BP;break;case 4:m=UP;break;default:m=Id}a=m.bind(null,s,a,i),m=void 0,!xd||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(m=!0),c?m!==void 0?i.addEventListener(s,a,{capture:!0,passive:m}):i.addEventListener(s,a,!0):m!==void 0?i.addEventListener(s,a,{passive:m}):i.addEventListener(s,a,!1)}function Kd(i,s,a,c,m){var E=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var N=c.stateNode.containerInfo;if(N===m||N.nodeType===8&&N.parentNode===m)break;if(_===4)for(_=c.return;_!==null;){var R=_.tag;if((R===3||R===4)&&(R=_.stateNode.containerInfo,R===m||R.nodeType===8&&R.parentNode===m))return;_=_.return}for(;N!==null;){if(_=Ci(N),_===null)return;if(R=_.tag,R===5||R===6){c=E=_;continue e}N=N.parentNode}}c=c.return}oy(function(){var V=E,ne=bd(a),ie=[];e:{var J=Xy.get(i);if(J!==void 0){var ye=Ld,_e=i;switch(i){case"keypress":if(nl(a)===0)break e;case"keydown":case"keyup":ye=eL;break;case"focusin":_e="focus",ye=Fd;break;case"focusout":_e="blur",ye=Fd;break;case"beforeblur":case"afterblur":ye=Fd;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ye=wy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=jP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=rL;break;case Wy:case Gy:case Ky:ye=YP;break;case Qy:ye=sL;break;case"scroll":ye=HP;break;case"wheel":ye=uL;break;case"copy":case"cut":case"paste":ye=WP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=vy}var Se=(s&4)!==0,St=!Se&&i==="scroll",B=Se?J!==null?J+"Capture":null:J;Se=[];for(var D=V,z;D!==null;){z=D;var le=z.stateNode;if(z.tag===5&&le!==null&&(z=le,B!==null&&(le=$o(D,B),le!=null&&Se.push(au(D,le,z)))),St)break;D=D.return}0<Se.length&&(J=new ye(J,_e,null,a,ne),ie.push({event:J,listeners:Se}))}}if((s&7)===0){e:{if(J=i==="mouseover"||i==="pointerover",ye=i==="mouseout"||i==="pointerout",J&&a!==_n&&(_e=a.relatedTarget||a.fromElement)&&(Ci(_e)||_e[xr]))break e;if((ye||J)&&(J=ne.window===ne?ne:(J=ne.ownerDocument)?J.defaultView||J.parentWindow:window,ye?(_e=a.relatedTarget||a.toElement,ye=V,_e=_e?Ci(_e):null,_e!==null&&(St=Ai(_e),_e!==St||_e.tag!==5&&_e.tag!==6)&&(_e=null)):(ye=null,_e=V),ye!==_e)){if(Se=wy,le="onMouseLeave",B="onMouseEnter",D="mouse",(i==="pointerout"||i==="pointerover")&&(Se=vy,le="onPointerLeave",B="onPointerEnter",D="pointer"),St=ye==null?J:Ns(ye),z=_e==null?J:Ns(_e),J=new Se(le,D+"leave",ye,a,ne),J.target=St,J.relatedTarget=z,le=null,Ci(ne)===V&&(Se=new Se(B,D+"enter",_e,a,ne),Se.target=z,Se.relatedTarget=St,le=Se),St=le,ye&&_e)t:{for(Se=ye,B=_e,D=0,z=Se;z;z=ks(z))D++;for(z=0,le=B;le;le=ks(le))z++;for(;0<D-z;)Se=ks(Se),D--;for(;0<z-D;)B=ks(B),z--;for(;D--;){if(Se===B||B!==null&&Se===B.alternate)break t;Se=ks(Se),B=ks(B)}Se=null}else Se=null;ye!==null&&nT(ie,J,ye,Se,!1),_e!==null&&St!==null&&nT(ie,St,_e,Se,!0)}}e:{if(J=V?Ns(V):window,ye=J.nodeName&&J.nodeName.toLowerCase(),ye==="select"||ye==="input"&&J.type==="file")var xe=pL;else if(Dy(J))if(Fy)xe=yL;else{xe=gL;var Ie=mL}else(ye=J.nodeName)&&ye.toLowerCase()==="input"&&(J.type==="checkbox"||J.type==="radio")&&(xe=EL);if(xe&&(xe=xe(i,V))){My(ie,xe,a,ne);break e}Ie&&Ie(i,J,V),i==="focusout"&&(Ie=J._wrapperState)&&Ie.controlled&&J.type==="number"&&ys(J,"number",J.value)}switch(Ie=V?Ns(V):window,i){case"focusin":(Dy(Ie)||Ie.contentEditable==="true")&&(As=Ie,$d=V,su=null);break;case"focusout":su=$d=As=null;break;case"mousedown":Vd=!0;break;case"contextmenu":case"mouseup":case"dragend":Vd=!1,Yy(ie,a,ne);break;case"selectionchange":if(_L)break;case"keydown":case"keyup":Yy(ie,a,ne)}var Re;if(Ud)e:{switch(i){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else xs?Py(i,a)&&(Me="onCompositionEnd"):i==="keydown"&&a.keyCode===229&&(Me="onCompositionStart");Me&&(Oy&&a.locale!=="ko"&&(xs||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&xs&&(Re=Cy()):(qr=ne,Pd="value"in qr?qr.value:qr.textContent,xs=!0)),Ie=ll(V,Me),0<Ie.length&&(Me=new Ny(Me,i,null,a,ne),ie.push({event:Me,listeners:Ie}),Re?Me.data=Re:(Re=Ly(a),Re!==null&&(Me.data=Re)))),(Re=lL?cL(i,a):fL(i,a))&&(V=ll(V,"onBeforeInput"),0<V.length&&(ne=new Ny("onBeforeInput","beforeinput",null,a,ne),ie.push({event:ne,listeners:V}),ne.data=Re))}eT(ie,s)})}function au(i,s,a){return{instance:i,listener:s,currentTarget:a}}function ll(i,s){for(var a=s+"Capture",c=[];i!==null;){var m=i,E=m.stateNode;m.tag===5&&E!==null&&(m=E,E=$o(i,a),E!=null&&c.unshift(au(i,E,m)),E=$o(i,s),E!=null&&c.push(au(i,E,m))),i=i.return}return c}function ks(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function nT(i,s,a,c,m){for(var E=s._reactName,_=[];a!==null&&a!==c;){var N=a,R=N.alternate,V=N.stateNode;if(R!==null&&R===c)break;N.tag===5&&V!==null&&(N=V,m?(R=$o(a,E),R!=null&&_.unshift(au(a,R,N))):m||(R=$o(a,E),R!=null&&_.push(au(a,R,N)))),a=a.return}_.length!==0&&i.push({event:s,listeners:_})}var CL=/\r\n?/g,kL=/\u0000|\uFFFD/g;function rT(i){return(typeof i=="string"?i:""+i).replace(CL,`
73
+ `).replace(kL,"")}function cl(i,s,a){if(s=rT(s),rT(i)!==s&&a)throw Error(n(425))}function fl(){}var Qd=null,Xd=null;function Jd(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Zd=typeof setTimeout=="function"?setTimeout:void 0,wL=typeof clearTimeout=="function"?clearTimeout:void 0,iT=typeof Promise=="function"?Promise:void 0,NL=typeof queueMicrotask=="function"?queueMicrotask:typeof iT!="undefined"?function(i){return iT.resolve(null).then(i).catch(vL)}:Zd;function vL(i){setTimeout(function(){throw i})}function eh(i,s){var a=s,c=0;do{var m=a.nextSibling;if(i.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(c===0){i.removeChild(m),Jo(s);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=m}while(a);Jo(s)}function Gr(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function sT(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="$"||a==="$!"||a==="$?"){if(s===0)return i;s--}else a==="/$"&&s++}i=i.previousSibling}return null}var ws=Math.random().toString(36).slice(2),cr="__reactFiber$"+ws,lu="__reactProps$"+ws,xr="__reactContainer$"+ws,th="__reactEvents$"+ws,OL="__reactListeners$"+ws,IL="__reactHandles$"+ws;function Ci(i){var s=i[cr];if(s)return s;for(var a=i.parentNode;a;){if(s=a[xr]||a[cr]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(i=sT(i);i!==null;){if(a=i[cr])return a;i=sT(i)}return s}i=a,a=i.parentNode}return null}function cu(i){return i=i[cr]||i[xr],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Ns(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function dl(i){return i[lu]||null}var nh=[],vs=-1;function Kr(i){return{current:i}}function at(i){0>vs||(i.current=nh[vs],nh[vs]=null,vs--)}function ot(i,s){vs++,nh[vs]=i.current,i.current=s}var Qr={},Wt=Kr(Qr),dn=Kr(!1),ki=Qr;function Os(i,s){var a=i.type.contextTypes;if(!a)return Qr;var c=i.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===s)return c.__reactInternalMemoizedMaskedChildContext;var m={},E;for(E in a)m[E]=s[E];return c&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=m),m}function hn(i){return i=i.childContextTypes,i!=null}function hl(){at(dn),at(Wt)}function oT(i,s,a){if(Wt.current!==Qr)throw Error(n(168));ot(Wt,s),ot(dn,a)}function uT(i,s,a){var c=i.stateNode;if(s=s.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var m in c)if(!(m in s))throw Error(n(108,We(i)||"Unknown",m));return x({},a,c)}function pl(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Qr,ki=Wt.current,ot(Wt,i),ot(dn,dn.current),!0}function aT(i,s,a){var c=i.stateNode;if(!c)throw Error(n(169));a?(i=uT(i,s,ki),c.__reactInternalMemoizedMergedChildContext=i,at(dn),at(Wt),ot(Wt,i)):at(dn),ot(dn,a)}var Ar=null,ml=!1,rh=!1;function lT(i){Ar===null?Ar=[i]:Ar.push(i)}function RL(i){ml=!0,lT(i)}function Xr(){if(!rh&&Ar!==null){rh=!0;var i=0,s=tt;try{var a=Ar;for(tt=1;i<a.length;i++){var c=a[i];do c=c(!0);while(c!==null)}Ar=null,ml=!1}catch(m){throw Ar!==null&&(Ar=Ar.slice(i+1)),fy(Cd,Xr),m}finally{tt=s,rh=!1}}return null}var Is=[],Rs=0,gl=null,El=0,Rn=[],Pn=0,wi=null,Cr=1,kr="";function Ni(i,s){Is[Rs++]=El,Is[Rs++]=gl,gl=i,El=s}function cT(i,s,a){Rn[Pn++]=Cr,Rn[Pn++]=kr,Rn[Pn++]=wi,wi=i;var c=Cr;i=kr;var m=32-Yn(c)-1;c&=~(1<<m),a+=1;var E=32-Yn(s)+m;if(30<E){var _=m-m%5;E=(c&(1<<_)-1).toString(32),c>>=_,m-=_,Cr=1<<32-Yn(s)+m|a<<m|c,kr=E+i}else Cr=1<<E|a<<m|c,kr=i}function ih(i){i.return!==null&&(Ni(i,1),cT(i,1,0))}function sh(i){for(;i===gl;)gl=Is[--Rs],Is[Rs]=null,El=Is[--Rs],Is[Rs]=null;for(;i===wi;)wi=Rn[--Pn],Rn[Pn]=null,kr=Rn[--Pn],Rn[Pn]=null,Cr=Rn[--Pn],Rn[Pn]=null}var xn=null,An=null,ft=!1,Wn=null;function fT(i,s){var a=Fn(5,null,null,0);a.elementType="DELETED",a.stateNode=s,a.return=i,s=i.deletions,s===null?(i.deletions=[a],i.flags|=16):s.push(a)}function dT(i,s){switch(i.tag){case 5:var a=i.type;return s=s.nodeType!==1||a.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,xn=i,An=Gr(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,xn=i,An=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(a=wi!==null?{id:Cr,overflow:kr}:null,i.memoizedState={dehydrated:s,treeContext:a,retryLane:1073741824},a=Fn(18,null,null,0),a.stateNode=s,a.return=i,i.child=a,xn=i,An=null,!0):!1;default:return!1}}function oh(i){return(i.mode&1)!==0&&(i.flags&128)===0}function uh(i){if(ft){var s=An;if(s){var a=s;if(!dT(i,s)){if(oh(i))throw Error(n(418));s=Gr(a.nextSibling);var c=xn;s&&dT(i,s)?fT(c,a):(i.flags=i.flags&-4097|2,ft=!1,xn=i)}}else{if(oh(i))throw Error(n(418));i.flags=i.flags&-4097|2,ft=!1,xn=i}}}function hT(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;xn=i}function yl(i){if(i!==xn)return!1;if(!ft)return hT(i),ft=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!Jd(i.type,i.memoizedProps)),s&&(s=An)){if(oh(i))throw pT(),Error(n(418));for(;s;)fT(i,s),s=Gr(s.nextSibling)}if(hT(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="/$"){if(s===0){An=Gr(i.nextSibling);break e}s--}else a!=="$"&&a!=="$!"&&a!=="$?"||s++}i=i.nextSibling}An=null}}else An=xn?Gr(i.stateNode.nextSibling):null;return!0}function pT(){for(var i=An;i;)i=Gr(i.nextSibling)}function Ps(){An=xn=null,ft=!1}function ah(i){Wn===null?Wn=[i]:Wn.push(i)}var PL=te.ReactCurrentBatchConfig;function fu(i,s,a){if(i=a.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var c=a.stateNode}if(!c)throw Error(n(147,i));var m=c,E=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===E?s.ref:(s=function(_){var N=m.refs;_===null?delete N[E]:N[E]=_},s._stringRef=E,s)}if(typeof i!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,i))}return i}function Tl(i,s){throw i=Object.prototype.toString.call(s),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function mT(i){var s=i._init;return s(i._payload)}function gT(i){function s(B,D){if(i){var z=B.deletions;z===null?(B.deletions=[D],B.flags|=16):z.push(D)}}function a(B,D){if(!i)return null;for(;D!==null;)s(B,D),D=D.sibling;return null}function c(B,D){for(B=new Map;D!==null;)D.key!==null?B.set(D.key,D):B.set(D.index,D),D=D.sibling;return B}function m(B,D){return B=si(B,D),B.index=0,B.sibling=null,B}function E(B,D,z){return B.index=z,i?(z=B.alternate,z!==null?(z=z.index,z<D?(B.flags|=2,D):z):(B.flags|=2,D)):(B.flags|=1048576,D)}function _(B){return i&&B.alternate===null&&(B.flags|=2),B}function N(B,D,z,le){return D===null||D.tag!==6?(D=Zh(z,B.mode,le),D.return=B,D):(D=m(D,z),D.return=B,D)}function R(B,D,z,le){var xe=z.type;return xe===me?ne(B,D,z.props.children,le,z.key):D!==null&&(D.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Le&&mT(xe)===D.type)?(le=m(D,z.props),le.ref=fu(B,D,z),le.return=B,le):(le=$l(z.type,z.key,z.props,null,B.mode,le),le.ref=fu(B,D,z),le.return=B,le)}function V(B,D,z,le){return D===null||D.tag!==4||D.stateNode.containerInfo!==z.containerInfo||D.stateNode.implementation!==z.implementation?(D=ep(z,B.mode,le),D.return=B,D):(D=m(D,z.children||[]),D.return=B,D)}function ne(B,D,z,le,xe){return D===null||D.tag!==7?(D=Mi(z,B.mode,le,xe),D.return=B,D):(D=m(D,z),D.return=B,D)}function ie(B,D,z){if(typeof D=="string"&&D!==""||typeof D=="number")return D=Zh(""+D,B.mode,z),D.return=B,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case he:return z=$l(D.type,D.key,D.props,null,B.mode,z),z.ref=fu(B,null,D),z.return=B,z;case F:return D=ep(D,B.mode,z),D.return=B,D;case Le:var le=D._init;return ie(B,le(D._payload),z)}if(Ur(D)||G(D))return D=Mi(D,B.mode,z,null),D.return=B,D;Tl(B,D)}return null}function J(B,D,z,le){var xe=D!==null?D.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return xe!==null?null:N(B,D,""+z,le);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case he:return z.key===xe?R(B,D,z,le):null;case F:return z.key===xe?V(B,D,z,le):null;case Le:return xe=z._init,J(B,D,xe(z._payload),le)}if(Ur(z)||G(z))return xe!==null?null:ne(B,D,z,le,null);Tl(B,z)}return null}function ye(B,D,z,le,xe){if(typeof le=="string"&&le!==""||typeof le=="number")return B=B.get(z)||null,N(D,B,""+le,xe);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case he:return B=B.get(le.key===null?z:le.key)||null,R(D,B,le,xe);case F:return B=B.get(le.key===null?z:le.key)||null,V(D,B,le,xe);case Le:var Ie=le._init;return ye(B,D,z,Ie(le._payload),xe)}if(Ur(le)||G(le))return B=B.get(z)||null,ne(D,B,le,xe,null);Tl(D,le)}return null}function _e(B,D,z,le){for(var xe=null,Ie=null,Re=D,Me=D=0,Ft=null;Re!==null&&Me<z.length;Me++){Re.index>Me?(Ft=Re,Re=null):Ft=Re.sibling;var Xe=J(B,Re,z[Me],le);if(Xe===null){Re===null&&(Re=Ft);break}i&&Re&&Xe.alternate===null&&s(B,Re),D=E(Xe,D,Me),Ie===null?xe=Xe:Ie.sibling=Xe,Ie=Xe,Re=Ft}if(Me===z.length)return a(B,Re),ft&&Ni(B,Me),xe;if(Re===null){for(;Me<z.length;Me++)Re=ie(B,z[Me],le),Re!==null&&(D=E(Re,D,Me),Ie===null?xe=Re:Ie.sibling=Re,Ie=Re);return ft&&Ni(B,Me),xe}for(Re=c(B,Re);Me<z.length;Me++)Ft=ye(Re,B,Me,z[Me],le),Ft!==null&&(i&&Ft.alternate!==null&&Re.delete(Ft.key===null?Me:Ft.key),D=E(Ft,D,Me),Ie===null?xe=Ft:Ie.sibling=Ft,Ie=Ft);return i&&Re.forEach(function(oi){return s(B,oi)}),ft&&Ni(B,Me),xe}function Se(B,D,z,le){var xe=G(z);if(typeof xe!="function")throw Error(n(150));if(z=xe.call(z),z==null)throw Error(n(151));for(var Ie=xe=null,Re=D,Me=D=0,Ft=null,Xe=z.next();Re!==null&&!Xe.done;Me++,Xe=z.next()){Re.index>Me?(Ft=Re,Re=null):Ft=Re.sibling;var oi=J(B,Re,Xe.value,le);if(oi===null){Re===null&&(Re=Ft);break}i&&Re&&oi.alternate===null&&s(B,Re),D=E(oi,D,Me),Ie===null?xe=oi:Ie.sibling=oi,Ie=oi,Re=Ft}if(Xe.done)return a(B,Re),ft&&Ni(B,Me),xe;if(Re===null){for(;!Xe.done;Me++,Xe=z.next())Xe=ie(B,Xe.value,le),Xe!==null&&(D=E(Xe,D,Me),Ie===null?xe=Xe:Ie.sibling=Xe,Ie=Xe);return ft&&Ni(B,Me),xe}for(Re=c(B,Re);!Xe.done;Me++,Xe=z.next())Xe=ye(Re,B,Me,Xe.value,le),Xe!==null&&(i&&Xe.alternate!==null&&Re.delete(Xe.key===null?Me:Xe.key),D=E(Xe,D,Me),Ie===null?xe=Xe:Ie.sibling=Xe,Ie=Xe);return i&&Re.forEach(function(d4){return s(B,d4)}),ft&&Ni(B,Me),xe}function St(B,D,z,le){if(typeof z=="object"&&z!==null&&z.type===me&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case he:e:{for(var xe=z.key,Ie=D;Ie!==null;){if(Ie.key===xe){if(xe=z.type,xe===me){if(Ie.tag===7){a(B,Ie.sibling),D=m(Ie,z.props.children),D.return=B,B=D;break e}}else if(Ie.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Le&&mT(xe)===Ie.type){a(B,Ie.sibling),D=m(Ie,z.props),D.ref=fu(B,Ie,z),D.return=B,B=D;break e}a(B,Ie);break}else s(B,Ie);Ie=Ie.sibling}z.type===me?(D=Mi(z.props.children,B.mode,le,z.key),D.return=B,B=D):(le=$l(z.type,z.key,z.props,null,B.mode,le),le.ref=fu(B,D,z),le.return=B,B=le)}return _(B);case F:e:{for(Ie=z.key;D!==null;){if(D.key===Ie)if(D.tag===4&&D.stateNode.containerInfo===z.containerInfo&&D.stateNode.implementation===z.implementation){a(B,D.sibling),D=m(D,z.children||[]),D.return=B,B=D;break e}else{a(B,D);break}else s(B,D);D=D.sibling}D=ep(z,B.mode,le),D.return=B,B=D}return _(B);case Le:return Ie=z._init,St(B,D,Ie(z._payload),le)}if(Ur(z))return _e(B,D,z,le);if(G(z))return Se(B,D,z,le);Tl(B,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,D!==null&&D.tag===6?(a(B,D.sibling),D=m(D,z),D.return=B,B=D):(a(B,D),D=Zh(z,B.mode,le),D.return=B,B=D),_(B)):a(B,D)}return St}var Ls=gT(!0),ET=gT(!1),bl=Kr(null),_l=null,Ds=null,lh=null;function ch(){lh=Ds=_l=null}function fh(i){var s=bl.current;at(bl),i._currentValue=s}function dh(i,s,a){for(;i!==null;){var c=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),i===a)break;i=i.return}}function Ms(i,s){_l=i,lh=Ds=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(pn=!0),i.firstContext=null)}function Ln(i){var s=i._currentValue;if(lh!==i)if(i={context:i,memoizedValue:s,next:null},Ds===null){if(_l===null)throw Error(n(308));Ds=i,_l.dependencies={lanes:0,firstContext:i}}else Ds=Ds.next=i;return s}var vi=null;function hh(i){vi===null?vi=[i]:vi.push(i)}function yT(i,s,a,c){var m=s.interleaved;return m===null?(a.next=a,hh(s)):(a.next=m.next,m.next=a),s.interleaved=a,wr(i,c)}function wr(i,s){i.lanes|=s;var a=i.alternate;for(a!==null&&(a.lanes|=s),a=i,i=i.return;i!==null;)i.childLanes|=s,a=i.alternate,a!==null&&(a.childLanes|=s),a=i,i=i.return;return a.tag===3?a.stateNode:null}var Jr=!1;function ph(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function TT(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Nr(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function Zr(i,s,a){var c=i.updateQueue;if(c===null)return null;if(c=c.shared,(Qe&2)!==0){var m=c.pending;return m===null?s.next=s:(s.next=m.next,m.next=s),c.pending=s,wr(i,a)}return m=c.interleaved,m===null?(s.next=s,hh(c)):(s.next=m.next,m.next=s),c.interleaved=s,wr(i,a)}function Sl(i,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194240)!==0)){var c=s.lanes;c&=i.pendingLanes,a|=c,s.lanes=a,Nd(i,a)}}function bT(i,s){var a=i.updateQueue,c=i.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var m=null,E=null;if(a=a.firstBaseUpdate,a!==null){do{var _={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};E===null?m=E=_:E=E.next=_,a=a.next}while(a!==null);E===null?m=E=s:E=E.next=s}else m=E=s;a={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:E,shared:c.shared,effects:c.effects},i.updateQueue=a;return}i=a.lastBaseUpdate,i===null?a.firstBaseUpdate=s:i.next=s,a.lastBaseUpdate=s}function xl(i,s,a,c){var m=i.updateQueue;Jr=!1;var E=m.firstBaseUpdate,_=m.lastBaseUpdate,N=m.shared.pending;if(N!==null){m.shared.pending=null;var R=N,V=R.next;R.next=null,_===null?E=V:_.next=V,_=R;var ne=i.alternate;ne!==null&&(ne=ne.updateQueue,N=ne.lastBaseUpdate,N!==_&&(N===null?ne.firstBaseUpdate=V:N.next=V,ne.lastBaseUpdate=R))}if(E!==null){var ie=m.baseState;_=0,ne=V=R=null,N=E;do{var J=N.lane,ye=N.eventTime;if((c&J)===J){ne!==null&&(ne=ne.next={eventTime:ye,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var _e=i,Se=N;switch(J=s,ye=a,Se.tag){case 1:if(_e=Se.payload,typeof _e=="function"){ie=_e.call(ye,ie,J);break e}ie=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Se.payload,J=typeof _e=="function"?_e.call(ye,ie,J):_e,J==null)break e;ie=x({},ie,J);break e;case 2:Jr=!0}}N.callback!==null&&N.lane!==0&&(i.flags|=64,J=m.effects,J===null?m.effects=[N]:J.push(N))}else ye={eventTime:ye,lane:J,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ne===null?(V=ne=ye,R=ie):ne=ne.next=ye,_|=J;if(N=N.next,N===null){if(N=m.shared.pending,N===null)break;J=N,N=J.next,J.next=null,m.lastBaseUpdate=J,m.shared.pending=null}}while(!0);if(ne===null&&(R=ie),m.baseState=R,m.firstBaseUpdate=V,m.lastBaseUpdate=ne,s=m.shared.interleaved,s!==null){m=s;do _|=m.lane,m=m.next;while(m!==s)}else E===null&&(m.shared.lanes=0);Ri|=_,i.lanes=_,i.memoizedState=ie}}function _T(i,s,a){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var c=i[s],m=c.callback;if(m!==null){if(c.callback=null,c=a,typeof m!="function")throw Error(n(191,m));m.call(c)}}}var du={},fr=Kr(du),hu=Kr(du),pu=Kr(du);function Oi(i){if(i===du)throw Error(n(174));return i}function mh(i,s){switch(ot(pu,s),ot(hu,i),ot(fr,du),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:de(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=de(s,i)}at(fr),ot(fr,s)}function Fs(){at(fr),at(hu),at(pu)}function ST(i){Oi(pu.current);var s=Oi(fr.current),a=de(s,i.type);s!==a&&(ot(hu,i),ot(fr,a))}function gh(i){hu.current===i&&(at(fr),at(hu))}var pt=Kr(0);function Al(i){for(var s=i;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Eh=[];function yh(){for(var i=0;i<Eh.length;i++)Eh[i]._workInProgressVersionPrimary=null;Eh.length=0}var Cl=te.ReactCurrentDispatcher,Th=te.ReactCurrentBatchConfig,Ii=0,mt=null,vt=null,Dt=null,kl=!1,mu=!1,gu=0,LL=0;function Gt(){throw Error(n(321))}function bh(i,s){if(s===null)return!1;for(var a=0;a<s.length&&a<i.length;a++)if(!qn(i[a],s[a]))return!1;return!0}function _h(i,s,a,c,m,E){if(Ii=E,mt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Cl.current=i===null||i.memoizedState===null?BL:UL,i=a(c,m),mu){E=0;do{if(mu=!1,gu=0,25<=E)throw Error(n(301));E+=1,Dt=vt=null,s.updateQueue=null,Cl.current=HL,i=a(c,m)}while(mu)}if(Cl.current=vl,s=vt!==null&&vt.next!==null,Ii=0,Dt=vt=mt=null,kl=!1,s)throw Error(n(300));return i}function Sh(){var i=gu!==0;return gu=0,i}function dr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?mt.memoizedState=Dt=i:Dt=Dt.next=i,Dt}function Dn(){if(vt===null){var i=mt.alternate;i=i!==null?i.memoizedState:null}else i=vt.next;var s=Dt===null?mt.memoizedState:Dt.next;if(s!==null)Dt=s,vt=i;else{if(i===null)throw Error(n(310));vt=i,i={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},Dt===null?mt.memoizedState=Dt=i:Dt=Dt.next=i}return Dt}function Eu(i,s){return typeof s=="function"?s(i):s}function xh(i){var s=Dn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=i;var c=vt,m=c.baseQueue,E=a.pending;if(E!==null){if(m!==null){var _=m.next;m.next=E.next,E.next=_}c.baseQueue=m=E,a.pending=null}if(m!==null){E=m.next,c=c.baseState;var N=_=null,R=null,V=E;do{var ne=V.lane;if((Ii&ne)===ne)R!==null&&(R=R.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),c=V.hasEagerState?V.eagerState:i(c,V.action);else{var ie={lane:ne,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};R===null?(N=R=ie,_=c):R=R.next=ie,mt.lanes|=ne,Ri|=ne}V=V.next}while(V!==null&&V!==E);R===null?_=c:R.next=N,qn(c,s.memoizedState)||(pn=!0),s.memoizedState=c,s.baseState=_,s.baseQueue=R,a.lastRenderedState=c}if(i=a.interleaved,i!==null){m=i;do E=m.lane,mt.lanes|=E,Ri|=E,m=m.next;while(m!==i)}else m===null&&(a.lanes=0);return[s.memoizedState,a.dispatch]}function Ah(i){var s=Dn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=i;var c=a.dispatch,m=a.pending,E=s.memoizedState;if(m!==null){a.pending=null;var _=m=m.next;do E=i(E,_.action),_=_.next;while(_!==m);qn(E,s.memoizedState)||(pn=!0),s.memoizedState=E,s.baseQueue===null&&(s.baseState=E),a.lastRenderedState=E}return[E,c]}function xT(){}function AT(i,s){var a=mt,c=Dn(),m=s(),E=!qn(c.memoizedState,m);if(E&&(c.memoizedState=m,pn=!0),c=c.queue,Ch(wT.bind(null,a,c,i),[i]),c.getSnapshot!==s||E||Dt!==null&&Dt.memoizedState.tag&1){if(a.flags|=2048,yu(9,kT.bind(null,a,c,m,s),void 0,null),Mt===null)throw Error(n(349));(Ii&30)!==0||CT(a,s,m)}return m}function CT(i,s,a){i.flags|=16384,i={getSnapshot:s,value:a},s=mt.updateQueue,s===null?(s={lastEffect:null,stores:null},mt.updateQueue=s,s.stores=[i]):(a=s.stores,a===null?s.stores=[i]:a.push(i))}function kT(i,s,a,c){s.value=a,s.getSnapshot=c,NT(s)&&vT(i)}function wT(i,s,a){return a(function(){NT(s)&&vT(i)})}function NT(i){var s=i.getSnapshot;i=i.value;try{var a=s();return!qn(i,a)}catch(c){return!0}}function vT(i){var s=wr(i,1);s!==null&&Xn(s,i,1,-1)}function OT(i){var s=dr();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Eu,lastRenderedState:i},s.queue=i,i=i.dispatch=FL.bind(null,mt,i),[s.memoizedState,i]}function yu(i,s,a,c){return i={tag:i,create:s,destroy:a,deps:c,next:null},s=mt.updateQueue,s===null?(s={lastEffect:null,stores:null},mt.updateQueue=s,s.lastEffect=i.next=i):(a=s.lastEffect,a===null?s.lastEffect=i.next=i:(c=a.next,a.next=i,i.next=c,s.lastEffect=i)),i}function IT(){return Dn().memoizedState}function wl(i,s,a,c){var m=dr();mt.flags|=i,m.memoizedState=yu(1|s,a,void 0,c===void 0?null:c)}function Nl(i,s,a,c){var m=Dn();c=c===void 0?null:c;var E=void 0;if(vt!==null){var _=vt.memoizedState;if(E=_.destroy,c!==null&&bh(c,_.deps)){m.memoizedState=yu(s,a,E,c);return}}mt.flags|=i,m.memoizedState=yu(1|s,a,E,c)}function RT(i,s){return wl(8390656,8,i,s)}function Ch(i,s){return Nl(2048,8,i,s)}function PT(i,s){return Nl(4,2,i,s)}function LT(i,s){return Nl(4,4,i,s)}function DT(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function MT(i,s,a){return a=a!=null?a.concat([i]):null,Nl(4,4,DT.bind(null,s,i),a)}function kh(){}function FT(i,s){var a=Dn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&bh(s,c[1])?c[0]:(a.memoizedState=[i,s],i)}function BT(i,s){var a=Dn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&bh(s,c[1])?c[0]:(i=i(),a.memoizedState=[i,s],i)}function UT(i,s,a){return(Ii&21)===0?(i.baseState&&(i.baseState=!1,pn=!0),i.memoizedState=a):(qn(a,s)||(a=my(),mt.lanes|=a,Ri|=a,i.baseState=!0),s)}function DL(i,s){var a=tt;tt=a!==0&&4>a?a:4,i(!0);var c=Th.transition;Th.transition={};try{i(!1),s()}finally{tt=a,Th.transition=c}}function HT(){return Dn().memoizedState}function ML(i,s,a){var c=ri(i);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},zT(i))jT(s,a);else if(a=yT(i,s,a,c),a!==null){var m=en();Xn(a,i,c,m),$T(a,s,c)}}function FL(i,s,a){var c=ri(i),m={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(zT(i))jT(s,m);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=s.lastRenderedReducer,E!==null))try{var _=s.lastRenderedState,N=E(_,a);if(m.hasEagerState=!0,m.eagerState=N,qn(N,_)){var R=s.interleaved;R===null?(m.next=m,hh(s)):(m.next=R.next,R.next=m),s.interleaved=m;return}}catch(V){}finally{}a=yT(i,s,m,c),a!==null&&(m=en(),Xn(a,i,c,m),$T(a,s,c))}}function zT(i){var s=i.alternate;return i===mt||s!==null&&s===mt}function jT(i,s){mu=kl=!0;var a=i.pending;a===null?s.next=s:(s.next=a.next,a.next=s),i.pending=s}function $T(i,s,a){if((a&4194240)!==0){var c=s.lanes;c&=i.pendingLanes,a|=c,s.lanes=a,Nd(i,a)}}var vl={readContext:Ln,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useInsertionEffect:Gt,useLayoutEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useMutableSource:Gt,useSyncExternalStore:Gt,useId:Gt,unstable_isNewReconciler:!1},BL={readContext:Ln,useCallback:function(i,s){return dr().memoizedState=[i,s===void 0?null:s],i},useContext:Ln,useEffect:RT,useImperativeHandle:function(i,s,a){return a=a!=null?a.concat([i]):null,wl(4194308,4,DT.bind(null,s,i),a)},useLayoutEffect:function(i,s){return wl(4194308,4,i,s)},useInsertionEffect:function(i,s){return wl(4,2,i,s)},useMemo:function(i,s){var a=dr();return s=s===void 0?null:s,i=i(),a.memoizedState=[i,s],i},useReducer:function(i,s,a){var c=dr();return s=a!==void 0?a(s):s,c.memoizedState=c.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},c.queue=i,i=i.dispatch=ML.bind(null,mt,i),[c.memoizedState,i]},useRef:function(i){var s=dr();return i={current:i},s.memoizedState=i},useState:OT,useDebugValue:kh,useDeferredValue:function(i){return dr().memoizedState=i},useTransition:function(){var i=OT(!1),s=i[0];return i=DL.bind(null,i[1]),dr().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,a){var c=mt,m=dr();if(ft){if(a===void 0)throw Error(n(407));a=a()}else{if(a=s(),Mt===null)throw Error(n(349));(Ii&30)!==0||CT(c,s,a)}m.memoizedState=a;var E={value:a,getSnapshot:s};return m.queue=E,RT(wT.bind(null,c,E,i),[i]),c.flags|=2048,yu(9,kT.bind(null,c,E,a,s),void 0,null),a},useId:function(){var i=dr(),s=Mt.identifierPrefix;if(ft){var a=kr,c=Cr;a=(c&~(1<<32-Yn(c)-1)).toString(32)+a,s=":"+s+"R"+a,a=gu++,0<a&&(s+="H"+a.toString(32)),s+=":"}else a=LL++,s=":"+s+"r"+a.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},UL={readContext:Ln,useCallback:FT,useContext:Ln,useEffect:Ch,useImperativeHandle:MT,useInsertionEffect:PT,useLayoutEffect:LT,useMemo:BT,useReducer:xh,useRef:IT,useState:function(){return xh(Eu)},useDebugValue:kh,useDeferredValue:function(i){var s=Dn();return UT(s,vt.memoizedState,i)},useTransition:function(){var i=xh(Eu)[0],s=Dn().memoizedState;return[i,s]},useMutableSource:xT,useSyncExternalStore:AT,useId:HT,unstable_isNewReconciler:!1},HL={readContext:Ln,useCallback:FT,useContext:Ln,useEffect:Ch,useImperativeHandle:MT,useInsertionEffect:PT,useLayoutEffect:LT,useMemo:BT,useReducer:Ah,useRef:IT,useState:function(){return Ah(Eu)},useDebugValue:kh,useDeferredValue:function(i){var s=Dn();return vt===null?s.memoizedState=i:UT(s,vt.memoizedState,i)},useTransition:function(){var i=Ah(Eu)[0],s=Dn().memoizedState;return[i,s]},useMutableSource:xT,useSyncExternalStore:AT,useId:HT,unstable_isNewReconciler:!1};function Gn(i,s){if(i&&i.defaultProps){s=x({},s),i=i.defaultProps;for(var a in i)s[a]===void 0&&(s[a]=i[a]);return s}return s}function wh(i,s,a,c){s=i.memoizedState,a=a(c,s),a=a==null?s:x({},s,a),i.memoizedState=a,i.lanes===0&&(i.updateQueue.baseState=a)}var Ol={isMounted:function(i){return(i=i._reactInternals)?Ai(i)===i:!1},enqueueSetState:function(i,s,a){i=i._reactInternals;var c=en(),m=ri(i),E=Nr(c,m);E.payload=s,a!=null&&(E.callback=a),s=Zr(i,E,m),s!==null&&(Xn(s,i,m,c),Sl(s,i,m))},enqueueReplaceState:function(i,s,a){i=i._reactInternals;var c=en(),m=ri(i),E=Nr(c,m);E.tag=1,E.payload=s,a!=null&&(E.callback=a),s=Zr(i,E,m),s!==null&&(Xn(s,i,m,c),Sl(s,i,m))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var a=en(),c=ri(i),m=Nr(a,c);m.tag=2,s!=null&&(m.callback=s),s=Zr(i,m,c),s!==null&&(Xn(s,i,c,a),Sl(s,i,c))}};function VT(i,s,a,c,m,E,_){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(c,E,_):s.prototype&&s.prototype.isPureReactComponent?!iu(a,c)||!iu(m,E):!0}function YT(i,s,a){var c=!1,m=Qr,E=s.contextType;return typeof E=="object"&&E!==null?E=Ln(E):(m=hn(s)?ki:Wt.current,c=s.contextTypes,E=(c=c!=null)?Os(i,m):Qr),s=new s(a,E),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ol,i.stateNode=s,s._reactInternals=i,c&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=m,i.__reactInternalMemoizedMaskedChildContext=E),s}function qT(i,s,a,c){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,c),s.state!==i&&Ol.enqueueReplaceState(s,s.state,null)}function Nh(i,s,a,c){var m=i.stateNode;m.props=a,m.state=i.memoizedState,m.refs={},ph(i);var E=s.contextType;typeof E=="object"&&E!==null?m.context=Ln(E):(E=hn(s)?ki:Wt.current,m.context=Os(i,E)),m.state=i.memoizedState,E=s.getDerivedStateFromProps,typeof E=="function"&&(wh(i,s,E,a),m.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(s=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),s!==m.state&&Ol.enqueueReplaceState(m,m.state,null),xl(i,a,m,c),m.state=i.memoizedState),typeof m.componentDidMount=="function"&&(i.flags|=4194308)}function Bs(i,s){try{var a="",c=s;do a+=ve(c),c=c.return;while(c);var m=a}catch(E){m=`
74
74
  Error generating stack: `+E.message+`
75
- `+E.stack}return{value:i,source:s,stack:m,digest:null}}function vh(i,s,a){return{value:i,source:null,stack:a!=null?a:null,digest:s!=null?s:null}}function Ih(i,s){try{console.error(s.value)}catch(a){setTimeout(function(){throw a})}}var zL=typeof WeakMap=="function"?WeakMap:Map;function WT(i,s,a){a=Nr(-1,a),a.tag=3,a.payload={element:null};var c=s.value;return a.callback=function(){Fl||(Fl=!0,Yh=c),Ih(i,s)},a}function GT(i,s,a){a=Nr(-1,a),a.tag=3;var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var m=s.value;a.payload=function(){return c(m)},a.callback=function(){Ih(i,s)}}var E=i.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){Ih(i,s),typeof c!="function"&&(ti===null?ti=new Set([this]):ti.add(this));var _=s.stack;this.componentDidCatch(s.value,{componentStack:_!==null?_:""})}),a}function KT(i,s,a){var c=i.pingCache;if(c===null){c=i.pingCache=new zL;var m=new Set;c.set(s,m)}else m=c.get(s),m===void 0&&(m=new Set,c.set(s,m));m.has(a)||(m.add(a),i=t4.bind(null,i,s,a),s.then(i,i))}function QT(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function XT(i,s,a,c,m){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(s=Nr(-1,1),s.tag=2,Zr(a,s,1))),a.lanes|=1),i):(i.flags|=65536,i.lanes=m,i)}var jL=ee.ReactCurrentOwner,pn=!1;function Zt(i,s,a,c){s.child=i===null?ET(s,null,a,c):Ps(s,i.child,a,c)}function JT(i,s,a,c,m){a=a.render;var E=s.ref;return Ds(s,m),c=_h(i,s,a,c,E,m),a=Sh(),i!==null&&!pn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~m,vr(i,s,m)):(ft&&a&&ih(s),s.flags|=1,Zt(i,s,c,m),s.child)}function ZT(i,s,a,c,m){if(i===null){var E=a.type;return typeof E=="function"&&!Jh(E)&&E.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(s.tag=15,s.type=E,eb(i,s,E,c,m)):(i=$l(a.type,null,c,s,s.mode,m),i.ref=s.ref,i.return=s,s.child=i)}if(E=i.child,(i.lanes&m)===0){var _=E.memoizedProps;if(a=a.compare,a=a!==null?a:iu,a(_,c)&&i.ref===s.ref)return vr(i,s,m)}return s.flags|=1,i=si(E,c),i.ref=s.ref,i.return=s,s.child=i}function eb(i,s,a,c,m){if(i!==null){var E=i.memoizedProps;if(iu(E,c)&&i.ref===s.ref)if(pn=!1,s.pendingProps=c=E,(i.lanes&m)!==0)(i.flags&131072)!==0&&(pn=!0);else return s.lanes=i.lanes,vr(i,s,m)}return Oh(i,s,a,c,m)}function tb(i,s,a){var c=s.pendingProps,m=c.children,E=i!==null?i.memoizedState:null;if(c.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(Us,Cn),Cn|=a;else{if((a&1073741824)===0)return i=E!==null?E.baseLanes|a:a,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,ot(Us,Cn),Cn|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=E!==null?E.baseLanes:a,ot(Us,Cn),Cn|=c}else E!==null?(c=E.baseLanes|a,s.memoizedState=null):c=a,ot(Us,Cn),Cn|=c;return Zt(i,s,m,a),s.child}function nb(i,s){var a=s.ref;(i===null&&a!==null||i!==null&&i.ref!==a)&&(s.flags|=512,s.flags|=2097152)}function Oh(i,s,a,c,m){var E=hn(a)?ki:Wt.current;return E=vs(s,E),Ds(s,m),a=_h(i,s,a,c,E,m),c=Sh(),i!==null&&!pn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~m,vr(i,s,m)):(ft&&c&&ih(s),s.flags|=1,Zt(i,s,a,m),s.child)}function rb(i,s,a,c,m){if(hn(a)){var E=!0;pl(s)}else E=!1;if(Ds(s,m),s.stateNode===null)Rl(i,s),YT(s,a,c),Nh(s,a,c,m),c=!0;else if(i===null){var _=s.stateNode,N=s.memoizedProps;_.props=N;var R=_.context,$=a.contextType;typeof $=="object"&&$!==null?$=Ln($):($=hn(a)?ki:Wt.current,$=vs(s,$));var ne=a.getDerivedStateFromProps,ie=typeof ne=="function"||typeof _.getSnapshotBeforeUpdate=="function";ie||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(N!==c||R!==$)&&qT(s,_,c,$),Jr=!1;var J=s.memoizedState;_.state=J,xl(s,c,_,m),R=s.memoizedState,N!==c||J!==R||dn.current||Jr?(typeof ne=="function"&&(wh(s,a,ne,c),R=s.memoizedState),(N=Jr||VT(s,a,N,c,J,R,$))?(ie||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(s.flags|=4194308)):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=R),_.props=c,_.state=R,_.context=$,c=N):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{_=s.stateNode,TT(i,s),N=s.memoizedProps,$=s.type===s.elementType?N:Gn(s.type,N),_.props=$,ie=s.pendingProps,J=_.context,R=a.contextType,typeof R=="object"&&R!==null?R=Ln(R):(R=hn(a)?ki:Wt.current,R=vs(s,R));var ye=a.getDerivedStateFromProps;(ne=typeof ye=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(N!==ie||J!==R)&&qT(s,_,c,R),Jr=!1,J=s.memoizedState,_.state=J,xl(s,c,_,m);var _e=s.memoizedState;N!==ie||J!==_e||dn.current||Jr?(typeof ye=="function"&&(wh(s,a,ye,c),_e=s.memoizedState),($=Jr||VT(s,a,$,c,J,_e,R)||!1)?(ne||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(c,_e,R),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(c,_e,R)),typeof _.componentDidUpdate=="function"&&(s.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof _.componentDidUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=_e),_.props=c,_.state=_e,_.context=R,c=$):(typeof _.componentDidUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=1024),c=!1)}return Rh(i,s,a,c,E,m)}function Rh(i,s,a,c,m,E){nb(i,s);var _=(s.flags&128)!==0;if(!c&&!_)return m&&aT(s,a,!1),vr(i,s,E);c=s.stateNode,jL.current=s;var N=_&&typeof a.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,i!==null&&_?(s.child=Ps(s,i.child,null,E),s.child=Ps(s,null,N,E)):Zt(i,s,N,E),s.memoizedState=c.state,m&&aT(s,a,!0),s.child}function ib(i){var s=i.stateNode;s.pendingContext?oT(i,s.pendingContext,s.pendingContext!==s.context):s.context&&oT(i,s.context,!1),mh(i,s.containerInfo)}function sb(i,s,a,c,m){return Rs(),ah(m),s.flags|=256,Zt(i,s,a,c),s.child}var Ph={dehydrated:null,treeContext:null,retryLane:0};function Lh(i){return{baseLanes:i,cachePool:null,transitions:null}}function ob(i,s,a){var c=s.pendingProps,m=pt.current,E=!1,_=(s.flags&128)!==0,N;if((N=_)||(N=i!==null&&i.memoizedState===null?!1:(m&2)!==0),N?(E=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(m|=1),ot(pt,m&1),i===null)return uh(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(_=c.children,i=c.fallback,E?(c=s.mode,E=s.child,_={mode:"hidden",children:_},(c&1)===0&&E!==null?(E.childLanes=0,E.pendingProps=_):E=Vl(_,c,0,null),i=Mi(i,c,a,null),E.return=s,i.return=s,E.sibling=i,s.child=E,s.child.memoizedState=Lh(a),s.memoizedState=Ph,i):Dh(s,_));if(m=i.memoizedState,m!==null&&(N=m.dehydrated,N!==null))return $L(i,s,_,c,N,m,a);if(E){E=c.fallback,_=s.mode,m=i.child,N=m.sibling;var R={mode:"hidden",children:c.children};return(_&1)===0&&s.child!==m?(c=s.child,c.childLanes=0,c.pendingProps=R,s.deletions=null):(c=si(m,R),c.subtreeFlags=m.subtreeFlags&14680064),N!==null?E=si(N,E):(E=Mi(E,_,a,null),E.flags|=2),E.return=s,c.return=s,c.sibling=E,s.child=c,c=E,E=s.child,_=i.child.memoizedState,_=_===null?Lh(a):{baseLanes:_.baseLanes|a,cachePool:null,transitions:_.transitions},E.memoizedState=_,E.childLanes=i.childLanes&~a,s.memoizedState=Ph,c}return E=i.child,i=E.sibling,c=si(E,{mode:"visible",children:c.children}),(s.mode&1)===0&&(c.lanes=a),c.return=s,c.sibling=null,i!==null&&(a=s.deletions,a===null?(s.deletions=[i],s.flags|=16):a.push(i)),s.child=c,s.memoizedState=null,c}function Dh(i,s){return s=Vl({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function Ol(i,s,a,c){return c!==null&&ah(c),Ps(s,i.child,null,a),i=Dh(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function $L(i,s,a,c,m,E,_){if(a)return s.flags&256?(s.flags&=-257,c=vh(Error(n(422))),Ol(i,s,_,c)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(E=c.fallback,m=s.mode,c=Vl({mode:"visible",children:c.children},m,0,null),E=Mi(E,m,_,null),E.flags|=2,c.return=s,E.return=s,c.sibling=E,s.child=c,(s.mode&1)!==0&&Ps(s,i.child,null,_),s.child.memoizedState=Lh(_),s.memoizedState=Ph,E);if((s.mode&1)===0)return Ol(i,s,_,null);if(m.data==="$!"){if(c=m.nextSibling&&m.nextSibling.dataset,c)var N=c.dgst;return c=N,E=Error(n(419)),c=vh(E,c,void 0),Ol(i,s,_,c)}if(N=(_&i.childLanes)!==0,pn||N){if(c=Mt,c!==null){switch(_&-_){case 4:m=2;break;case 16:m=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=(m&(c.suspendedLanes|_))!==0?0:m,m!==0&&m!==E.retryLane&&(E.retryLane=m,wr(i,m),Xn(c,i,m,-1))}return Xh(),c=vh(Error(n(421))),Ol(i,s,_,c)}return m.data==="$?"?(s.flags|=128,s.child=i.child,s=n4.bind(null,i),m._reactRetry=s,null):(i=E.treeContext,An=Gr(m.nextSibling),xn=s,ft=!0,Wn=null,i!==null&&(Rn[Pn++]=Cr,Rn[Pn++]=kr,Rn[Pn++]=wi,Cr=i.id,kr=i.overflow,wi=s),s=Dh(s,c.children),s.flags|=4096,s)}function ub(i,s,a){i.lanes|=s;var c=i.alternate;c!==null&&(c.lanes|=s),dh(i.return,s,a)}function Mh(i,s,a,c,m){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:m}:(E.isBackwards=s,E.rendering=null,E.renderingStartTime=0,E.last=c,E.tail=a,E.tailMode=m)}function ab(i,s,a){var c=s.pendingProps,m=c.revealOrder,E=c.tail;if(Zt(i,s,c.children,a),c=pt.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&ub(i,a,s);else if(i.tag===19)ub(i,a,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}c&=1}if(ot(pt,c),(s.mode&1)===0)s.memoizedState=null;else switch(m){case"forwards":for(a=s.child,m=null;a!==null;)i=a.alternate,i!==null&&Al(i)===null&&(m=a),a=a.sibling;a=m,a===null?(m=s.child,s.child=null):(m=a.sibling,a.sibling=null),Mh(s,!1,m,a,E);break;case"backwards":for(a=null,m=s.child,s.child=null;m!==null;){if(i=m.alternate,i!==null&&Al(i)===null){s.child=m;break}i=m.sibling,m.sibling=a,a=m,m=i}Mh(s,!0,a,null,E);break;case"together":Mh(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Rl(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function vr(i,s,a){if(i!==null&&(s.dependencies=i.dependencies),Ri|=s.lanes,(a&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,a=si(i,i.pendingProps),s.child=a,a.return=s;i.sibling!==null;)i=i.sibling,a=a.sibling=si(i,i.pendingProps),a.return=s;a.sibling=null}return s.child}function VL(i,s,a){switch(s.tag){case 3:ib(s),Rs();break;case 5:ST(s);break;case 1:hn(s.type)&&pl(s);break;case 4:mh(s,s.stateNode.containerInfo);break;case 10:var c=s.type._context,m=s.memoizedProps.value;ot(bl,c._currentValue),c._currentValue=m;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(ot(pt,pt.current&1),s.flags|=128,null):(a&s.child.childLanes)!==0?ob(i,s,a):(ot(pt,pt.current&1),i=vr(i,s,a),i!==null?i.sibling:null);ot(pt,pt.current&1);break;case 19:if(c=(a&s.childLanes)!==0,(i.flags&128)!==0){if(c)return ab(i,s,a);s.flags|=128}if(m=s.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ot(pt,pt.current),c)break;return null;case 22:case 23:return s.lanes=0,tb(i,s,a)}return vr(i,s,a)}var lb,Fh,cb,fb;lb=function(i,s){for(var a=s.child;a!==null;){if(a.tag===5||a.tag===6)i.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Fh=function(){},cb=function(i,s,a,c){var m=i.memoizedProps;if(m!==c){i=s.stateNode,Ii(fr.current);var E=null;switch(a){case"input":m=Uo(i,m),c=Uo(i,c),E=[];break;case"select":m=x({},m,{value:void 0}),c=x({},c,{value:void 0}),E=[];break;case"textarea":m=jo(i,m),c=jo(i,c),E=[];break;default:typeof m.onClick!="function"&&typeof c.onClick=="function"&&(i.onclick=fl)}Ht(a,c);var _;a=null;for($ in m)if(!c.hasOwnProperty($)&&m.hasOwnProperty($)&&m[$]!=null)if($==="style"){var N=m[$];for(_ in N)N.hasOwnProperty(_)&&(a||(a={}),a[_]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(o.hasOwnProperty($)?E||(E=[]):(E=E||[]).push($,null));for($ in c){var R=c[$];if(N=m!=null?m[$]:void 0,c.hasOwnProperty($)&&R!==N&&(R!=null||N!=null))if($==="style")if(N){for(_ in N)!N.hasOwnProperty(_)||R&&R.hasOwnProperty(_)||(a||(a={}),a[_]="");for(_ in R)R.hasOwnProperty(_)&&N[_]!==R[_]&&(a||(a={}),a[_]=R[_])}else a||(E||(E=[]),E.push($,a)),a=R;else $==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,N=N?N.__html:void 0,R!=null&&N!==R&&(E=E||[]).push($,R)):$==="children"?typeof R!="string"&&typeof R!="number"||(E=E||[]).push($,""+R):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(o.hasOwnProperty($)?(R!=null&&$==="onScroll"&&ut("scroll",i),E||N===R||(E=[])):(E=E||[]).push($,R))}a&&(E=E||[]).push("style",a);var $=E;(s.updateQueue=$)&&(s.flags|=4)}},fb=function(i,s,a,c){a!==c&&(s.flags|=4)};function Tu(i,s){if(!ft)switch(i.tailMode){case"hidden":s=i.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?i.tail=null:a.sibling=null;break;case"collapsed":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:c.sibling=null}}function Kt(i){var s=i.alternate!==null&&i.alternate.child===i.child,a=0,c=0;if(s)for(var m=i.child;m!==null;)a|=m.lanes|m.childLanes,c|=m.subtreeFlags&14680064,c|=m.flags&14680064,m.return=i,m=m.sibling;else for(m=i.child;m!==null;)a|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=i,m=m.sibling;return i.subtreeFlags|=c,i.childLanes=a,s}function YL(i,s,a){var c=s.pendingProps;switch(sh(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(s),null;case 1:return hn(s.type)&&hl(),Kt(s),null;case 3:return c=s.stateNode,Ms(),at(dn),at(Wt),yh(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(yl(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Wn!==null&&(Gh(Wn),Wn=null))),Fh(i,s),Kt(s),null;case 5:gh(s);var m=Ii(pu.current);if(a=s.type,i!==null&&s.stateNode!=null)cb(i,s,a,c,m),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!c){if(s.stateNode===null)throw Error(n(166));return Kt(s),null}if(i=Ii(fr.current),yl(s)){c=s.stateNode,a=s.type;var E=s.memoizedProps;switch(c[cr]=s,c[lu]=E,i=(s.mode&1)!==0,a){case"dialog":ut("cancel",c),ut("close",c);break;case"iframe":case"object":case"embed":ut("load",c);break;case"video":case"audio":for(m=0;m<ou.length;m++)ut(ou[m],c);break;case"source":ut("error",c);break;case"img":case"image":case"link":ut("error",c),ut("load",c);break;case"details":ut("toggle",c);break;case"input":Ho(c,E),ut("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!E.multiple},ut("invalid",c);break;case"textarea":za(c,E),ut("invalid",c)}Ht(a,E),m=null;for(var _ in E)if(E.hasOwnProperty(_)){var N=E[_];_==="children"?typeof N=="string"?c.textContent!==N&&(E.suppressHydrationWarning!==!0&&cl(c.textContent,N,i),m=["children",N]):typeof N=="number"&&c.textContent!==""+N&&(E.suppressHydrationWarning!==!0&&cl(c.textContent,N,i),m=["children",""+N]):o.hasOwnProperty(_)&&N!=null&&_==="onScroll"&&ut("scroll",c)}switch(a){case"input":_r(c),Ha(c,E,!0);break;case"textarea":_r(c),$a(c);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(c.onclick=fl)}c=m,s.updateQueue=c,c!==null&&(s.flags|=4)}else{_=m.nodeType===9?m:m.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=K(a)),i==="http://www.w3.org/1999/xhtml"?a==="script"?(i=_.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof c.is=="string"?i=_.createElement(a,{is:c.is}):(i=_.createElement(a),a==="select"&&(_=i,c.multiple?_.multiple=!0:c.size&&(_.size=c.size))):i=_.createElementNS(i,a),i[cr]=s,i[lu]=c,lb(i,s,!1,!1),s.stateNode=i;e:{switch(_=ar(a,c),a){case"dialog":ut("cancel",i),ut("close",i),m=c;break;case"iframe":case"object":case"embed":ut("load",i),m=c;break;case"video":case"audio":for(m=0;m<ou.length;m++)ut(ou[m],i);m=c;break;case"source":ut("error",i),m=c;break;case"img":case"image":case"link":ut("error",i),ut("load",i),m=c;break;case"details":ut("toggle",i),m=c;break;case"input":Ho(i,c),m=Uo(i,c),ut("invalid",i);break;case"option":m=c;break;case"select":i._wrapperState={wasMultiple:!!c.multiple},m=x({},c,{value:void 0}),ut("invalid",i);break;case"textarea":za(i,c),m=jo(i,c),ut("invalid",i);break;default:m=c}Ht(a,m),N=m;for(E in N)if(N.hasOwnProperty(E)){var R=N[E];E==="style"?zr(i,R):E==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&je(i,R)):E==="children"?typeof R=="string"?(a!=="textarea"||R!=="")&&Ke(i,R):typeof R=="number"&&Ke(i,""+R):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(o.hasOwnProperty(E)?R!=null&&E==="onScroll"&&ut("scroll",i):R!=null&&j(i,E,R,_))}switch(a){case"input":_r(i),Ha(i,c,!1);break;case"textarea":_r(i),$a(i);break;case"option":c.value!=null&&i.setAttribute("value",""+ze(c.value));break;case"select":i.multiple=!!c.multiple,E=c.value,E!=null?Hr(i,!!c.multiple,E,!1):c.defaultValue!=null&&Hr(i,!!c.multiple,c.defaultValue,!0);break;default:typeof m.onClick=="function"&&(i.onclick=fl)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Kt(s),null;case 6:if(i&&s.stateNode!=null)fb(i,s,i.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(a=Ii(pu.current),Ii(fr.current),yl(s)){if(c=s.stateNode,a=s.memoizedProps,c[cr]=s,(E=c.nodeValue!==a)&&(i=xn,i!==null))switch(i.tag){case 3:cl(c.nodeValue,a,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&cl(c.nodeValue,a,(i.mode&1)!==0)}E&&(s.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[cr]=s,s.stateNode=c}return Kt(s),null;case 13:if(at(pt),c=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(ft&&An!==null&&(s.mode&1)!==0&&(s.flags&128)===0)pT(),Rs(),s.flags|=98560,E=!1;else if(E=yl(s),c!==null&&c.dehydrated!==null){if(i===null){if(!E)throw Error(n(318));if(E=s.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(n(317));E[cr]=s}else Rs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Kt(s),E=!1}else Wn!==null&&(Gh(Wn),Wn=null),E=!0;if(!E)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=a,s):(c=c!==null,c!==(i!==null&&i.memoizedState!==null)&&c&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(pt.current&1)!==0?It===0&&(It=3):Xh())),s.updateQueue!==null&&(s.flags|=4),Kt(s),null);case 4:return Ms(),Fh(i,s),i===null&&uu(s.stateNode.containerInfo),Kt(s),null;case 10:return fh(s.type._context),Kt(s),null;case 17:return hn(s.type)&&hl(),Kt(s),null;case 19:if(at(pt),E=s.memoizedState,E===null)return Kt(s),null;if(c=(s.flags&128)!==0,_=E.rendering,_===null)if(c)Tu(E,!1);else{if(It!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(_=Al(i),_!==null){for(s.flags|=128,Tu(E,!1),c=_.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),s.subtreeFlags=0,c=a,a=s.child;a!==null;)E=a,i=c,E.flags&=14680066,_=E.alternate,_===null?(E.childLanes=0,E.lanes=i,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=_.childLanes,E.lanes=_.lanes,E.child=_.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=_.memoizedProps,E.memoizedState=_.memoizedState,E.updateQueue=_.updateQueue,E.type=_.type,i=_.dependencies,E.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a=a.sibling;return ot(pt,pt.current&1|2),s.child}i=i.sibling}E.tail!==null&&_t()>Hs&&(s.flags|=128,c=!0,Tu(E,!1),s.lanes=4194304)}else{if(!c)if(i=Al(_),i!==null){if(s.flags|=128,c=!0,a=i.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),Tu(E,!0),E.tail===null&&E.tailMode==="hidden"&&!_.alternate&&!ft)return Kt(s),null}else 2*_t()-E.renderingStartTime>Hs&&a!==1073741824&&(s.flags|=128,c=!0,Tu(E,!1),s.lanes=4194304);E.isBackwards?(_.sibling=s.child,s.child=_):(a=E.last,a!==null?a.sibling=_:s.child=_,E.last=_)}return E.tail!==null?(s=E.tail,E.rendering=s,E.tail=s.sibling,E.renderingStartTime=_t(),s.sibling=null,a=pt.current,ot(pt,c?a&1|2:a&1),s):(Kt(s),null);case 22:case 23:return Qh(),c=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(Cn&1073741824)!==0&&(Kt(s),s.subtreeFlags&6&&(s.flags|=8192)):Kt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function qL(i,s){switch(sh(s),s.tag){case 1:return hn(s.type)&&hl(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Ms(),at(dn),at(Wt),yh(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return gh(s),null;case 13:if(at(pt),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Rs()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return at(pt),null;case 4:return Ms(),null;case 10:return fh(s.type._context),null;case 22:case 23:return Qh(),null;case 24:return null;default:return null}}var Pl=!1,Qt=!1,WL=typeof WeakSet=="function"?WeakSet:Set,Te=null;function Bs(i,s){var a=i.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){Et(i,s,c)}else a.current=null}function Bh(i,s,a){try{a()}catch(c){Et(i,s,c)}}var db=!1;function GL(i,s){if(Qd=Za,i=Vy(),jd(i)){if("selectionStart"in i)var a={start:i.selectionStart,end:i.selectionEnd};else e:{a=(a=i.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var m=c.anchorOffset,E=c.focusNode;c=c.focusOffset;try{a.nodeType,E.nodeType}catch(ae){a=null;break e}var _=0,N=-1,R=-1,$=0,ne=0,ie=i,J=null;t:for(;;){for(var ye;ie!==a||m!==0&&ie.nodeType!==3||(N=_+m),ie!==E||c!==0&&ie.nodeType!==3||(R=_+c),ie.nodeType===3&&(_+=ie.nodeValue.length),(ye=ie.firstChild)!==null;)J=ie,ie=ye;for(;;){if(ie===i)break t;if(J===a&&++$===m&&(N=_),J===E&&++ne===c&&(R=_),(ye=ie.nextSibling)!==null)break;ie=J,J=ie.parentNode}ie=ye}a=N===-1||R===-1?null:{start:N,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xd={focusedElem:i,selectionRange:a},Za=!1,Te=s;Te!==null;)if(s=Te,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Te=i;else for(;Te!==null;){s=Te;try{var _e=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(_e!==null){var Se=_e.memoizedProps,St=_e.memoizedState,B=s.stateNode,D=B.getSnapshotBeforeUpdate(s.elementType===s.type?Se:Gn(s.type,Se),St);B.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var z=s.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ae){Et(s,s.return,ae)}if(i=s.sibling,i!==null){i.return=s.return,Te=i;break}Te=s.return}return _e=db,db=!1,_e}function bu(i,s,a){var c=s.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var m=c=c.next;do{if((m.tag&i)===i){var E=m.destroy;m.destroy=void 0,E!==void 0&&Bh(s,a,E)}m=m.next}while(m!==c)}}function Ll(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&i)===i){var c=a.create;a.destroy=c()}a=a.next}while(a!==s)}}function Uh(i){var s=i.ref;if(s!==null){var a=i.stateNode;switch(i.tag){case 5:i=a;break;default:i=a}typeof s=="function"?s(i):s.current=i}}function hb(i){var s=i.alternate;s!==null&&(i.alternate=null,hb(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[cr],delete s[lu],delete s[th],delete s[IL],delete s[OL])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function pb(i){return i.tag===5||i.tag===3||i.tag===4}function mb(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||pb(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Hh(i,s,a){var c=i.tag;if(c===5||c===6)i=i.stateNode,s?a.nodeType===8?a.parentNode.insertBefore(i,s):a.insertBefore(i,s):(a.nodeType===8?(s=a.parentNode,s.insertBefore(i,a)):(s=a,s.appendChild(i)),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=fl));else if(c!==4&&(i=i.child,i!==null))for(Hh(i,s,a),i=i.sibling;i!==null;)Hh(i,s,a),i=i.sibling}function zh(i,s,a){var c=i.tag;if(c===5||c===6)i=i.stateNode,s?a.insertBefore(i,s):a.appendChild(i);else if(c!==4&&(i=i.child,i!==null))for(zh(i,s,a),i=i.sibling;i!==null;)zh(i,s,a),i=i.sibling}var zt=null,Kn=!1;function ei(i,s,a){for(a=a.child;a!==null;)gb(i,s,a),a=a.sibling}function gb(i,s,a){if(lr&&typeof lr.onCommitFiberUnmount=="function")try{lr.onCommitFiberUnmount(Wa,a)}catch(N){}switch(a.tag){case 5:Qt||Bs(a,s);case 6:var c=zt,m=Kn;zt=null,ei(i,s,a),zt=c,Kn=m,zt!==null&&(Kn?(i=zt,a=a.stateNode,i.nodeType===8?i.parentNode.removeChild(a):i.removeChild(a)):zt.removeChild(a.stateNode));break;case 18:zt!==null&&(Kn?(i=zt,a=a.stateNode,i.nodeType===8?eh(i.parentNode,a):i.nodeType===1&&eh(i,a),Jo(i)):eh(zt,a.stateNode));break;case 4:c=zt,m=Kn,zt=a.stateNode.containerInfo,Kn=!0,ei(i,s,a),zt=c,Kn=m;break;case 0:case 11:case 14:case 15:if(!Qt&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){m=c=c.next;do{var E=m,_=E.destroy;E=E.tag,_!==void 0&&((E&2)!==0||(E&4)!==0)&&Bh(a,s,_),m=m.next}while(m!==c)}ei(i,s,a);break;case 1:if(!Qt&&(Bs(a,s),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(N){Et(a,s,N)}ei(i,s,a);break;case 21:ei(i,s,a);break;case 22:a.mode&1?(Qt=(c=Qt)||a.memoizedState!==null,ei(i,s,a),Qt=c):ei(i,s,a);break;default:ei(i,s,a)}}function Eb(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var a=i.stateNode;a===null&&(a=i.stateNode=new WL),s.forEach(function(c){var m=r4.bind(null,i,c);a.has(c)||(a.add(c),c.then(m,m))})}}function Qn(i,s){var a=s.deletions;if(a!==null)for(var c=0;c<a.length;c++){var m=a[c];try{var E=i,_=s,N=_;e:for(;N!==null;){switch(N.tag){case 5:zt=N.stateNode,Kn=!1;break e;case 3:zt=N.stateNode.containerInfo,Kn=!0;break e;case 4:zt=N.stateNode.containerInfo,Kn=!0;break e}N=N.return}if(zt===null)throw Error(n(160));gb(E,_,m),zt=null,Kn=!1;var R=m.alternate;R!==null&&(R.return=null),m.return=null}catch($){Et(m,s,$)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)yb(s,i),s=s.sibling}function yb(i,s){var a=i.alternate,c=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Qn(s,i),hr(i),c&4){try{bu(3,i,i.return),Ll(3,i)}catch(Se){Et(i,i.return,Se)}try{bu(5,i,i.return)}catch(Se){Et(i,i.return,Se)}}break;case 1:Qn(s,i),hr(i),c&512&&a!==null&&Bs(a,a.return);break;case 5:if(Qn(s,i),hr(i),c&512&&a!==null&&Bs(a,a.return),i.flags&32){var m=i.stateNode;try{Ke(m,"")}catch(Se){Et(i,i.return,Se)}}if(c&4&&(m=i.stateNode,m!=null)){var E=i.memoizedProps,_=a!==null?a.memoizedProps:E,N=i.type,R=i.updateQueue;if(i.updateQueue=null,R!==null)try{N==="input"&&E.type==="radio"&&E.name!=null&&zo(m,E),ar(N,_);var $=ar(N,E);for(_=0;_<R.length;_+=2){var ne=R[_],ie=R[_+1];ne==="style"?zr(m,ie):ne==="dangerouslySetInnerHTML"?je(m,ie):ne==="children"?Ke(m,ie):j(m,ne,ie,$)}switch(N){case"input":gs(m,E);break;case"textarea":ja(m,E);break;case"select":var J=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!E.multiple;var ye=E.value;ye!=null?Hr(m,!!E.multiple,ye,!1):J!==!!E.multiple&&(E.defaultValue!=null?Hr(m,!!E.multiple,E.defaultValue,!0):Hr(m,!!E.multiple,E.multiple?[]:"",!1))}m[lu]=E}catch(Se){Et(i,i.return,Se)}}break;case 6:if(Qn(s,i),hr(i),c&4){if(i.stateNode===null)throw Error(n(162));m=i.stateNode,E=i.memoizedProps;try{m.nodeValue=E}catch(Se){Et(i,i.return,Se)}}break;case 3:if(Qn(s,i),hr(i),c&4&&a!==null&&a.memoizedState.isDehydrated)try{Jo(s.containerInfo)}catch(Se){Et(i,i.return,Se)}break;case 4:Qn(s,i),hr(i);break;case 13:Qn(s,i),hr(i),m=i.child,m.flags&8192&&(E=m.memoizedState!==null,m.stateNode.isHidden=E,!E||m.alternate!==null&&m.alternate.memoizedState!==null||(Vh=_t())),c&4&&Eb(i);break;case 22:if(ne=a!==null&&a.memoizedState!==null,i.mode&1?(Qt=($=Qt)||ne,Qn(s,i),Qt=$):Qn(s,i),hr(i),c&8192){if($=i.memoizedState!==null,(i.stateNode.isHidden=$)&&!ne&&(i.mode&1)!==0)for(Te=i,ne=i.child;ne!==null;){for(ie=Te=ne;Te!==null;){switch(J=Te,ye=J.child,J.tag){case 0:case 11:case 14:case 15:bu(4,J,J.return);break;case 1:Bs(J,J.return);var _e=J.stateNode;if(typeof _e.componentWillUnmount=="function"){c=J,a=J.return;try{s=c,_e.props=s.memoizedProps,_e.state=s.memoizedState,_e.componentWillUnmount()}catch(Se){Et(c,a,Se)}}break;case 5:Bs(J,J.return);break;case 22:if(J.memoizedState!==null){_b(ie);continue}}ye!==null?(ye.return=J,Te=ye):_b(ie)}ne=ne.sibling}e:for(ne=null,ie=i;;){if(ie.tag===5){if(ne===null){ne=ie;try{m=ie.stateNode,$?(E=m.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(N=ie.stateNode,R=ie.memoizedProps.style,_=R!=null&&R.hasOwnProperty("display")?R.display:null,N.style.display=On("display",_))}catch(Se){Et(i,i.return,Se)}}}else if(ie.tag===6){if(ne===null)try{ie.stateNode.nodeValue=$?"":ie.memoizedProps}catch(Se){Et(i,i.return,Se)}}else if((ie.tag!==22&&ie.tag!==23||ie.memoizedState===null||ie===i)&&ie.child!==null){ie.child.return=ie,ie=ie.child;continue}if(ie===i)break e;for(;ie.sibling===null;){if(ie.return===null||ie.return===i)break e;ne===ie&&(ne=null),ie=ie.return}ne===ie&&(ne=null),ie.sibling.return=ie.return,ie=ie.sibling}}break;case 19:Qn(s,i),hr(i),c&4&&Eb(i);break;case 21:break;default:Qn(s,i),hr(i)}}function hr(i){var s=i.flags;if(s&2){try{e:{for(var a=i.return;a!==null;){if(pb(a)){var c=a;break e}a=a.return}throw Error(n(160))}switch(c.tag){case 5:var m=c.stateNode;c.flags&32&&(Ke(m,""),c.flags&=-33);var E=mb(i);zh(i,E,m);break;case 3:case 4:var _=c.stateNode.containerInfo,N=mb(i);Hh(i,N,_);break;default:throw Error(n(161))}}catch(R){Et(i,i.return,R)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function KL(i,s,a){Te=i,Tb(i)}function Tb(i,s,a){for(var c=(i.mode&1)!==0;Te!==null;){var m=Te,E=m.child;if(m.tag===22&&c){var _=m.memoizedState!==null||Pl;if(!_){var N=m.alternate,R=N!==null&&N.memoizedState!==null||Qt;N=Pl;var $=Qt;if(Pl=_,(Qt=R)&&!$)for(Te=m;Te!==null;)_=Te,R=_.child,_.tag===22&&_.memoizedState!==null?Sb(m):R!==null?(R.return=_,Te=R):Sb(m);for(;E!==null;)Te=E,Tb(E),E=E.sibling;Te=m,Pl=N,Qt=$}bb(i)}else(m.subtreeFlags&8772)!==0&&E!==null?(E.return=m,Te=E):bb(i)}}function bb(i){for(;Te!==null;){var s=Te;if((s.flags&8772)!==0){var a=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Qt||Ll(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!Qt)if(a===null)c.componentDidMount();else{var m=s.elementType===s.type?a.memoizedProps:Gn(s.type,a.memoizedProps);c.componentDidUpdate(m,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var E=s.updateQueue;E!==null&&_T(s,E,c);break;case 3:var _=s.updateQueue;if(_!==null){if(a=null,s.child!==null)switch(s.child.tag){case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}_T(s,_,a)}break;case 5:var N=s.stateNode;if(a===null&&s.flags&4){a=N;var R=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&a.focus();break;case"img":R.src&&(a.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var $=s.alternate;if($!==null){var ne=$.memoizedState;if(ne!==null){var ie=ne.dehydrated;ie!==null&&Jo(ie)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Qt||s.flags&512&&Uh(s)}catch(J){Et(s,s.return,J)}}if(s===i){Te=null;break}if(a=s.sibling,a!==null){a.return=s.return,Te=a;break}Te=s.return}}function _b(i){for(;Te!==null;){var s=Te;if(s===i){Te=null;break}var a=s.sibling;if(a!==null){a.return=s.return,Te=a;break}Te=s.return}}function Sb(i){for(;Te!==null;){var s=Te;try{switch(s.tag){case 0:case 11:case 15:var a=s.return;try{Ll(4,s)}catch(R){Et(s,a,R)}break;case 1:var c=s.stateNode;if(typeof c.componentDidMount=="function"){var m=s.return;try{c.componentDidMount()}catch(R){Et(s,m,R)}}var E=s.return;try{Uh(s)}catch(R){Et(s,E,R)}break;case 5:var _=s.return;try{Uh(s)}catch(R){Et(s,_,R)}}}catch(R){Et(s,s.return,R)}if(s===i){Te=null;break}var N=s.sibling;if(N!==null){N.return=s.return,Te=N;break}Te=s.return}}var QL=Math.ceil,Dl=ee.ReactCurrentDispatcher,jh=ee.ReactCurrentOwner,Mn=ee.ReactCurrentBatchConfig,Qe=0,Mt=null,Nt=null,jt=0,Cn=0,Us=Kr(0),It=0,_u=null,Ri=0,Ml=0,$h=0,Su=null,mn=null,Vh=0,Hs=1/0,Ir=null,Fl=!1,Yh=null,ti=null,Bl=!1,ni=null,Ul=0,xu=0,qh=null,Hl=-1,zl=0;function en(){return(Qe&6)!==0?_t():Hl!==-1?Hl:Hl=_t()}function ri(i){return(i.mode&1)===0?1:(Qe&2)!==0&&jt!==0?jt&-jt:PL.transition!==null?(zl===0&&(zl=my()),zl):(i=tt,i!==0||(i=window.event,i=i===void 0?16:Ay(i.type)),i)}function Xn(i,s,a,c){if(50<xu)throw xu=0,qh=null,Error(n(185));Wo(i,a,c),((Qe&2)===0||i!==Mt)&&(i===Mt&&((Qe&2)===0&&(Ml|=a),It===4&&ii(i,jt)),gn(i,c),a===1&&Qe===0&&(s.mode&1)===0&&(Hs=_t()+500,ml&&Xr()))}function gn(i,s){var a=i.callbackNode;PP(i,s);var c=Qa(i,i===Mt?jt:0);if(c===0)a!==null&&dy(a),i.callbackNode=null,i.callbackPriority=0;else if(s=c&-c,i.callbackPriority!==s){if(a!=null&&dy(a),s===1)i.tag===0?RL(Ab.bind(null,i)):lT(Ab.bind(null,i)),NL(function(){(Qe&6)===0&&Xr()}),a=null;else{switch(gy(c)){case 1:a=Cd;break;case 4:a=hy;break;case 16:a=qa;break;case 536870912:a=py;break;default:a=qa}a=Rb(a,xb.bind(null,i))}i.callbackPriority=s,i.callbackNode=a}}function xb(i,s){if(Hl=-1,zl=0,(Qe&6)!==0)throw Error(n(327));var a=i.callbackNode;if(zs()&&i.callbackNode!==a)return null;var c=Qa(i,i===Mt?jt:0);if(c===0)return null;if((c&30)!==0||(c&i.expiredLanes)!==0||s)s=jl(i,c);else{s=c;var m=Qe;Qe|=2;var E=kb();(Mt!==i||jt!==s)&&(Ir=null,Hs=_t()+500,Li(i,s));do try{ZL();break}catch(N){Cb(i,N)}while(!0);ch(),Dl.current=E,Qe=m,Nt!==null?s=0:(Mt=null,jt=0,s=It)}if(s!==0){if(s===2&&(m=kd(i),m!==0&&(c=m,s=Wh(i,m))),s===1)throw a=_u,Li(i,0),ii(i,c),gn(i,_t()),a;if(s===6)ii(i,c);else{if(m=i.current.alternate,(c&30)===0&&!XL(m)&&(s=jl(i,c),s===2&&(E=kd(i),E!==0&&(c=E,s=Wh(i,E))),s===1))throw a=_u,Li(i,0),ii(i,c),gn(i,_t()),a;switch(i.finishedWork=m,i.finishedLanes=c,s){case 0:case 1:throw Error(n(345));case 2:Di(i,mn,Ir);break;case 3:if(ii(i,c),(c&130023424)===c&&(s=Vh+500-_t(),10<s)){if(Qa(i,0)!==0)break;if(m=i.suspendedLanes,(m&c)!==c){en(),i.pingedLanes|=i.suspendedLanes&m;break}i.timeoutHandle=Zd(Di.bind(null,i,mn,Ir),s);break}Di(i,mn,Ir);break;case 4:if(ii(i,c),(c&4194240)===c)break;for(s=i.eventTimes,m=-1;0<c;){var _=31-Yn(c);E=1<<_,_=s[_],_>m&&(m=_),c&=~E}if(c=m,c=_t()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*QL(c/1960))-c,10<c){i.timeoutHandle=Zd(Di.bind(null,i,mn,Ir),c);break}Di(i,mn,Ir);break;case 5:Di(i,mn,Ir);break;default:throw Error(n(329))}}}return gn(i,_t()),i.callbackNode===a?xb.bind(null,i):null}function Wh(i,s){var a=Su;return i.current.memoizedState.isDehydrated&&(Li(i,s).flags|=256),i=jl(i,s),i!==2&&(s=mn,mn=a,s!==null&&Gh(s)),i}function Gh(i){mn===null?mn=i:mn.push.apply(mn,i)}function XL(i){for(var s=i;;){if(s.flags&16384){var a=s.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var m=a[c],E=m.getSnapshot;m=m.value;try{if(!qn(E(),m))return!1}catch(_){return!1}}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ii(i,s){for(s&=~$h,s&=~Ml,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var a=31-Yn(s),c=1<<a;i[a]=-1,s&=~c}}function Ab(i){if((Qe&6)!==0)throw Error(n(327));zs();var s=Qa(i,0);if((s&1)===0)return gn(i,_t()),null;var a=jl(i,s);if(i.tag!==0&&a===2){var c=kd(i);c!==0&&(s=c,a=Wh(i,c))}if(a===1)throw a=_u,Li(i,0),ii(i,s),gn(i,_t()),a;if(a===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,Di(i,mn,Ir),gn(i,_t()),null}function Kh(i,s){var a=Qe;Qe|=1;try{return i(s)}finally{Qe=a,Qe===0&&(Hs=_t()+500,ml&&Xr())}}function Pi(i){ni!==null&&ni.tag===0&&(Qe&6)===0&&zs();var s=Qe;Qe|=1;var a=Mn.transition,c=tt;try{if(Mn.transition=null,tt=1,i)return i()}finally{tt=c,Mn.transition=a,Qe=s,(Qe&6)===0&&Xr()}}function Qh(){Cn=Us.current,at(Us)}function Li(i,s){i.finishedWork=null,i.finishedLanes=0;var a=i.timeoutHandle;if(a!==-1&&(i.timeoutHandle=-1,wL(a)),Nt!==null)for(a=Nt.return;a!==null;){var c=a;switch(sh(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&hl();break;case 3:Ms(),at(dn),at(Wt),yh();break;case 5:gh(c);break;case 4:Ms();break;case 13:at(pt);break;case 19:at(pt);break;case 10:fh(c.type._context);break;case 22:case 23:Qh()}a=a.return}if(Mt=i,Nt=i=si(i.current,null),jt=Cn=s,It=0,_u=null,$h=Ml=Ri=0,mn=Su=null,vi!==null){for(s=0;s<vi.length;s++)if(a=vi[s],c=a.interleaved,c!==null){a.interleaved=null;var m=c.next,E=a.pending;if(E!==null){var _=E.next;E.next=m,c.next=_}a.pending=c}vi=null}return i}function Cb(i,s){do{var a=Nt;try{if(ch(),Cl.current=vl,kl){for(var c=mt.memoizedState;c!==null;){var m=c.queue;m!==null&&(m.pending=null),c=c.next}kl=!1}if(Oi=0,Dt=vt=mt=null,mu=!1,gu=0,jh.current=null,a===null||a.return===null){It=1,_u=s,Nt=null;break}e:{var E=i,_=a.return,N=a,R=s;if(s=jt,N.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var $=R,ne=N,ie=ne.tag;if((ne.mode&1)===0&&(ie===0||ie===11||ie===15)){var J=ne.alternate;J?(ne.updateQueue=J.updateQueue,ne.memoizedState=J.memoizedState,ne.lanes=J.lanes):(ne.updateQueue=null,ne.memoizedState=null)}var ye=QT(_);if(ye!==null){ye.flags&=-257,XT(ye,_,N,E,s),ye.mode&1&&KT(E,$,s),s=ye,R=$;var _e=s.updateQueue;if(_e===null){var Se=new Set;Se.add(R),s.updateQueue=Se}else _e.add(R);break e}else{if((s&1)===0){KT(E,$,s),Xh();break e}R=Error(n(426))}}else if(ft&&N.mode&1){var St=QT(_);if(St!==null){(St.flags&65536)===0&&(St.flags|=256),XT(St,_,N,E,s),ah(Fs(R,N));break e}}E=R=Fs(R,N),It!==4&&(It=2),Su===null?Su=[E]:Su.push(E),E=_;do{switch(E.tag){case 3:E.flags|=65536,s&=-s,E.lanes|=s;var B=WT(E,R,s);bT(E,B);break e;case 1:N=R;var D=E.type,z=E.stateNode;if((E.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(ti===null||!ti.has(z)))){E.flags|=65536,s&=-s,E.lanes|=s;var ae=GT(E,N,s);bT(E,ae);break e}}E=E.return}while(E!==null)}Nb(a)}catch(xe){s=xe,Nt===a&&a!==null&&(Nt=a=a.return);continue}break}while(!0)}function kb(){var i=Dl.current;return Dl.current=vl,i===null?vl:i}function Xh(){(It===0||It===3||It===2)&&(It=4),Mt===null||(Ri&268435455)===0&&(Ml&268435455)===0||ii(Mt,jt)}function jl(i,s){var a=Qe;Qe|=2;var c=kb();(Mt!==i||jt!==s)&&(Ir=null,Li(i,s));do try{JL();break}catch(m){Cb(i,m)}while(!0);if(ch(),Qe=a,Dl.current=c,Nt!==null)throw Error(n(261));return Mt=null,jt=0,It}function JL(){for(;Nt!==null;)wb(Nt)}function ZL(){for(;Nt!==null&&!AP();)wb(Nt)}function wb(i){var s=Ob(i.alternate,i,Cn);i.memoizedProps=i.pendingProps,s===null?Nb(i):Nt=s,jh.current=null}function Nb(i){var s=i;do{var a=s.alternate;if(i=s.return,(s.flags&32768)===0){if(a=YL(a,s,Cn),a!==null){Nt=a;return}}else{if(a=qL(a,s),a!==null){a.flags&=32767,Nt=a;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{It=6,Nt=null;return}}if(s=s.sibling,s!==null){Nt=s;return}Nt=s=i}while(s!==null);It===0&&(It=5)}function Di(i,s,a){var c=tt,m=Mn.transition;try{Mn.transition=null,tt=1,e4(i,s,a,c)}finally{Mn.transition=m,tt=c}return null}function e4(i,s,a,c){do zs();while(ni!==null);if((Qe&6)!==0)throw Error(n(327));a=i.finishedWork;var m=i.finishedLanes;if(a===null)return null;if(i.finishedWork=null,i.finishedLanes=0,a===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var E=a.lanes|a.childLanes;if(LP(i,E),i===Mt&&(Nt=Mt=null,jt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Bl||(Bl=!0,Rb(qa,function(){return zs(),null})),E=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||E){E=Mn.transition,Mn.transition=null;var _=tt;tt=1;var N=Qe;Qe|=4,jh.current=null,GL(i,a),yb(a,i),bL(Xd),Za=!!Qd,Xd=Qd=null,i.current=a,KL(a),CP(),Qe=N,tt=_,Mn.transition=E}else i.current=a;if(Bl&&(Bl=!1,ni=i,Ul=m),E=i.pendingLanes,E===0&&(ti=null),NP(a.stateNode),gn(i,_t()),s!==null)for(c=i.onRecoverableError,a=0;a<s.length;a++)m=s[a],c(m.value,{componentStack:m.stack,digest:m.digest});if(Fl)throw Fl=!1,i=Yh,Yh=null,i;return(Ul&1)!==0&&i.tag!==0&&zs(),E=i.pendingLanes,(E&1)!==0?i===qh?xu++:(xu=0,qh=i):xu=0,Xr(),null}function zs(){if(ni!==null){var i=gy(Ul),s=Mn.transition,a=tt;try{if(Mn.transition=null,tt=16>i?16:i,ni===null)var c=!1;else{if(i=ni,ni=null,Ul=0,(Qe&6)!==0)throw Error(n(331));var m=Qe;for(Qe|=4,Te=i.current;Te!==null;){var E=Te,_=E.child;if((Te.flags&16)!==0){var N=E.deletions;if(N!==null){for(var R=0;R<N.length;R++){var $=N[R];for(Te=$;Te!==null;){var ne=Te;switch(ne.tag){case 0:case 11:case 15:bu(8,ne,E)}var ie=ne.child;if(ie!==null)ie.return=ne,Te=ie;else for(;Te!==null;){ne=Te;var J=ne.sibling,ye=ne.return;if(hb(ne),ne===$){Te=null;break}if(J!==null){J.return=ye,Te=J;break}Te=ye}}}var _e=E.alternate;if(_e!==null){var Se=_e.child;if(Se!==null){_e.child=null;do{var St=Se.sibling;Se.sibling=null,Se=St}while(Se!==null)}}Te=E}}if((E.subtreeFlags&2064)!==0&&_!==null)_.return=E,Te=_;else e:for(;Te!==null;){if(E=Te,(E.flags&2048)!==0)switch(E.tag){case 0:case 11:case 15:bu(9,E,E.return)}var B=E.sibling;if(B!==null){B.return=E.return,Te=B;break e}Te=E.return}}var D=i.current;for(Te=D;Te!==null;){_=Te;var z=_.child;if((_.subtreeFlags&2064)!==0&&z!==null)z.return=_,Te=z;else e:for(_=D;Te!==null;){if(N=Te,(N.flags&2048)!==0)try{switch(N.tag){case 0:case 11:case 15:Ll(9,N)}}catch(xe){Et(N,N.return,xe)}if(N===_){Te=null;break e}var ae=N.sibling;if(ae!==null){ae.return=N.return,Te=ae;break e}Te=N.return}}if(Qe=m,Xr(),lr&&typeof lr.onPostCommitFiberRoot=="function")try{lr.onPostCommitFiberRoot(Wa,i)}catch(xe){}c=!0}return c}finally{tt=a,Mn.transition=s}}return!1}function vb(i,s,a){s=Fs(a,s),s=WT(i,s,1),i=Zr(i,s,1),s=en(),i!==null&&(Wo(i,1,s),gn(i,s))}function Et(i,s,a){if(i.tag===3)vb(i,i,a);else for(;s!==null;){if(s.tag===3){vb(s,i,a);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ti===null||!ti.has(c))){i=Fs(a,i),i=GT(s,i,1),s=Zr(s,i,1),i=en(),s!==null&&(Wo(s,1,i),gn(s,i));break}}s=s.return}}function t4(i,s,a){var c=i.pingCache;c!==null&&c.delete(s),s=en(),i.pingedLanes|=i.suspendedLanes&a,Mt===i&&(jt&a)===a&&(It===4||It===3&&(jt&130023424)===jt&&500>_t()-Vh?Li(i,0):$h|=a),gn(i,s)}function Ib(i,s){s===0&&((i.mode&1)===0?s=1:(s=Ka,Ka<<=1,(Ka&130023424)===0&&(Ka=4194304)));var a=en();i=wr(i,s),i!==null&&(Wo(i,s,a),gn(i,a))}function n4(i){var s=i.memoizedState,a=0;s!==null&&(a=s.retryLane),Ib(i,a)}function r4(i,s){var a=0;switch(i.tag){case 13:var c=i.stateNode,m=i.memoizedState;m!==null&&(a=m.retryLane);break;case 19:c=i.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(s),Ib(i,a)}var Ob;Ob=function(i,s,a){if(i!==null)if(i.memoizedProps!==s.pendingProps||dn.current)pn=!0;else{if((i.lanes&a)===0&&(s.flags&128)===0)return pn=!1,VL(i,s,a);pn=(i.flags&131072)!==0}else pn=!1,ft&&(s.flags&1048576)!==0&&cT(s,El,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;Rl(i,s),i=s.pendingProps;var m=vs(s,Wt.current);Ds(s,a),m=_h(null,s,c,i,m,a);var E=Sh();return s.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,hn(c)?(E=!0,pl(s)):E=!1,s.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,ph(s),m.updater=Il,s.stateNode=m,m._reactInternals=s,Nh(s,c,i,a),s=Rh(null,s,c,!0,E,a)):(s.tag=0,ft&&E&&ih(s),Zt(null,s,m,a),s=s.child),s;case 16:c=s.elementType;e:{switch(Rl(i,s),i=s.pendingProps,m=c._init,c=m(c._payload),s.type=c,m=s.tag=s4(c),i=Gn(c,i),m){case 0:s=Oh(null,s,c,i,a);break e;case 1:s=rb(null,s,c,i,a);break e;case 11:s=JT(null,s,c,i,a);break e;case 14:s=ZT(null,s,c,Gn(c.type,i),a);break e}throw Error(n(306,c,""))}return s;case 0:return c=s.type,m=s.pendingProps,m=s.elementType===c?m:Gn(c,m),Oh(i,s,c,m,a);case 1:return c=s.type,m=s.pendingProps,m=s.elementType===c?m:Gn(c,m),rb(i,s,c,m,a);case 3:e:{if(ib(s),i===null)throw Error(n(387));c=s.pendingProps,E=s.memoizedState,m=E.element,TT(i,s),xl(s,c,null,a);var _=s.memoizedState;if(c=_.element,E.isDehydrated)if(E={element:c,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},s.updateQueue.baseState=E,s.memoizedState=E,s.flags&256){m=Fs(Error(n(423)),s),s=sb(i,s,c,a,m);break e}else if(c!==m){m=Fs(Error(n(424)),s),s=sb(i,s,c,a,m);break e}else for(An=Gr(s.stateNode.containerInfo.firstChild),xn=s,ft=!0,Wn=null,a=ET(s,null,c,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Rs(),c===m){s=vr(i,s,a);break e}Zt(i,s,c,a)}s=s.child}return s;case 5:return ST(s),i===null&&uh(s),c=s.type,m=s.pendingProps,E=i!==null?i.memoizedProps:null,_=m.children,Jd(c,m)?_=null:E!==null&&Jd(c,E)&&(s.flags|=32),nb(i,s),Zt(i,s,_,a),s.child;case 6:return i===null&&uh(s),null;case 13:return ob(i,s,a);case 4:return mh(s,s.stateNode.containerInfo),c=s.pendingProps,i===null?s.child=Ps(s,null,c,a):Zt(i,s,c,a),s.child;case 11:return c=s.type,m=s.pendingProps,m=s.elementType===c?m:Gn(c,m),JT(i,s,c,m,a);case 7:return Zt(i,s,s.pendingProps,a),s.child;case 8:return Zt(i,s,s.pendingProps.children,a),s.child;case 12:return Zt(i,s,s.pendingProps.children,a),s.child;case 10:e:{if(c=s.type._context,m=s.pendingProps,E=s.memoizedProps,_=m.value,ot(bl,c._currentValue),c._currentValue=_,E!==null)if(qn(E.value,_)){if(E.children===m.children&&!dn.current){s=vr(i,s,a);break e}}else for(E=s.child,E!==null&&(E.return=s);E!==null;){var N=E.dependencies;if(N!==null){_=E.child;for(var R=N.firstContext;R!==null;){if(R.context===c){if(E.tag===1){R=Nr(-1,a&-a),R.tag=2;var $=E.updateQueue;if($!==null){$=$.shared;var ne=$.pending;ne===null?R.next=R:(R.next=ne.next,ne.next=R),$.pending=R}}E.lanes|=a,R=E.alternate,R!==null&&(R.lanes|=a),dh(E.return,a,s),N.lanes|=a;break}R=R.next}}else if(E.tag===10)_=E.type===s.type?null:E.child;else if(E.tag===18){if(_=E.return,_===null)throw Error(n(341));_.lanes|=a,N=_.alternate,N!==null&&(N.lanes|=a),dh(_,a,s),_=E.sibling}else _=E.child;if(_!==null)_.return=E;else for(_=E;_!==null;){if(_===s){_=null;break}if(E=_.sibling,E!==null){E.return=_.return,_=E;break}_=_.return}E=_}Zt(i,s,m.children,a),s=s.child}return s;case 9:return m=s.type,c=s.pendingProps.children,Ds(s,a),m=Ln(m),c=c(m),s.flags|=1,Zt(i,s,c,a),s.child;case 14:return c=s.type,m=Gn(c,s.pendingProps),m=Gn(c.type,m),ZT(i,s,c,m,a);case 15:return eb(i,s,s.type,s.pendingProps,a);case 17:return c=s.type,m=s.pendingProps,m=s.elementType===c?m:Gn(c,m),Rl(i,s),s.tag=1,hn(c)?(i=!0,pl(s)):i=!1,Ds(s,a),YT(s,c,m),Nh(s,c,m,a),Rh(null,s,c,!0,i,a);case 19:return ab(i,s,a);case 22:return tb(i,s,a)}throw Error(n(156,s.tag))};function Rb(i,s){return fy(i,s)}function i4(i,s,a,c){this.tag=i,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fn(i,s,a,c){return new i4(i,s,a,c)}function Jh(i){return i=i.prototype,!(!i||!i.isReactComponent)}function s4(i){if(typeof i=="function")return Jh(i)?1:0;if(i!=null){if(i=i.$$typeof,i===pe)return 11;if(i===be)return 14}return 2}function si(i,s){var a=i.alternate;return a===null?(a=Fn(i.tag,s,i.key,i.mode),a.elementType=i.elementType,a.type=i.type,a.stateNode=i.stateNode,a.alternate=i,i.alternate=a):(a.pendingProps=s,a.type=i.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=i.flags&14680064,a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,s=i.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=i.sibling,a.index=i.index,a.ref=i.ref,a}function $l(i,s,a,c,m,E){var _=2;if(c=i,typeof i=="function")Jh(i)&&(_=1);else if(typeof i=="string")_=5;else e:switch(i){case me:return Mi(a.children,m,E,s);case Ae:_=8,m|=8;break;case Ne:return i=Fn(12,a,s,m|2),i.elementType=Ne,i.lanes=E,i;case ce:return i=Fn(13,a,s,m),i.elementType=ce,i.lanes=E,i;case fe:return i=Fn(19,a,s,m),i.elementType=fe,i.lanes=E,i;case ue:return Vl(a,m,E,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case H:_=10;break e;case ge:_=9;break e;case pe:_=11;break e;case be:_=14;break e;case Le:_=16,c=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return s=Fn(_,a,s,m),s.elementType=i,s.type=c,s.lanes=E,s}function Mi(i,s,a,c){return i=Fn(7,i,c,s),i.lanes=a,i}function Vl(i,s,a,c){return i=Fn(22,i,c,s),i.elementType=ue,i.lanes=a,i.stateNode={isHidden:!1},i}function Zh(i,s,a){return i=Fn(6,i,null,s),i.lanes=a,i}function ep(i,s,a){return s=Fn(4,i.children!==null?i.children:[],i.key,s),s.lanes=a,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function o4(i,s,a,c,m){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wd(0),this.expirationTimes=wd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wd(0),this.identifierPrefix=c,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function tp(i,s,a,c,m,E,_,N,R){return i=new o4(i,s,a,N,R),s===1?(s=1,E===!0&&(s|=8)):s=0,E=Fn(3,null,null,s),i.current=E,E.stateNode=i,E.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},ph(E),i}function u4(i,s,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:c==null?null:""+c,children:i,containerInfo:s,implementation:a}}function Pb(i){if(!i)return Qr;i=i._reactInternals;e:{if(Ai(i)!==i||i.tag!==1)throw Error(n(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(hn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(i.tag===1){var a=i.type;if(hn(a))return uT(i,a,s)}return s}function Lb(i,s,a,c,m,E,_,N,R){return i=tp(a,c,!0,i,m,E,_,N,R),i.context=Pb(null),a=i.current,c=en(),m=ri(a),E=Nr(c,m),E.callback=s!=null?s:null,Zr(a,E,m),i.current.lanes=m,Wo(i,m,c),gn(i,c),i}function Yl(i,s,a,c){var m=s.current,E=en(),_=ri(m);return a=Pb(a),s.context===null?s.context=a:s.pendingContext=a,s=Nr(E,_),s.payload={element:i},c=c===void 0?null:c,c!==null&&(s.callback=c),i=Zr(m,s,_),i!==null&&(Xn(i,m,_,E),Sl(i,m,_)),_}function ql(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function Db(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var a=i.retryLane;i.retryLane=a!==0&&a<s?a:s}}function np(i,s){Db(i,s),(i=i.alternate)&&Db(i,s)}function a4(){return null}var Mb=typeof reportError=="function"?reportError:function(i){console.error(i)};function rp(i){this._internalRoot=i}Wl.prototype.render=rp.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));Yl(i,s,null,null)},Wl.prototype.unmount=rp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Pi(function(){Yl(null,i,null,null)}),s[xr]=null}};function Wl(i){this._internalRoot=i}Wl.prototype.unstable_scheduleHydration=function(i){if(i){var s=Ty();i={blockedOn:null,target:i,priority:s};for(var a=0;a<Yr.length&&s!==0&&s<Yr[a].priority;a++);Yr.splice(a,0,i),a===0&&Sy(i)}};function ip(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Gl(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Fb(){}function l4(i,s,a,c,m){if(m){if(typeof c=="function"){var E=c;c=function(){var $=ql(_);E.call($)}}var _=Lb(s,c,i,0,null,!1,!1,"",Fb);return i._reactRootContainer=_,i[xr]=_.current,uu(i.nodeType===8?i.parentNode:i),Pi(),_}for(;m=i.lastChild;)i.removeChild(m);if(typeof c=="function"){var N=c;c=function(){var $=ql(R);N.call($)}}var R=tp(i,0,!1,null,null,!1,!1,"",Fb);return i._reactRootContainer=R,i[xr]=R.current,uu(i.nodeType===8?i.parentNode:i),Pi(function(){Yl(s,R,a,c)}),R}function Kl(i,s,a,c,m){var E=a._reactRootContainer;if(E){var _=E;if(typeof m=="function"){var N=m;m=function(){var R=ql(_);N.call(R)}}Yl(s,_,i,m)}else _=l4(a,s,i,m,c);return ql(_)}Ey=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var a=qo(s.pendingLanes);a!==0&&(Nd(s,a|1),gn(s,_t()),(Qe&6)===0&&(Hs=_t()+500,Xr()))}break;case 13:Pi(function(){var c=wr(i,1);if(c!==null){var m=en();Xn(c,i,1,m)}}),np(i,1)}},vd=function(i){if(i.tag===13){var s=wr(i,134217728);if(s!==null){var a=en();Xn(s,i,134217728,a)}np(i,134217728)}},yy=function(i){if(i.tag===13){var s=ri(i),a=wr(i,s);if(a!==null){var c=en();Xn(a,i,s,c)}np(i,s)}},Ty=function(){return tt},by=function(i,s){var a=tt;try{return tt=i,s()}finally{tt=a}},_d=function(i,s,a){switch(s){case"input":if(gs(i,a),s=a.name,a.type==="radio"&&s!=null){for(a=i;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<a.length;s++){var c=a[s];if(c!==i&&c.form===i.form){var m=dl(c);if(!m)throw Error(n(90));Ua(c),gs(c,m)}}}break;case"textarea":ja(i,a);break;case"select":s=a.value,s!=null&&Hr(i,!!a.multiple,s,!1)}},iy=Kh,sy=Pi;var c4={usingClientEntryPoint:!1,Events:[cu,ws,dl,ny,ry,Kh]},Au={findFiberByHostInstance:Ci,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},f4={bundleType:Au.bundleType,version:Au.version,rendererPackageName:Au.rendererPackageName,rendererConfig:Au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ee.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=ly(i),i===null?null:i.stateNode},findFiberByHostInstance:Au.findFiberByHostInstance||a4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Ql=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ql.isDisabled&&Ql.supportsFiber)try{Wa=Ql.inject(f4),lr=Ql}catch(i){}}return fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=c4,fn.createPortal=function(i,s){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ip(s))throw Error(n(200));return u4(i,s,null,a)},fn.createRoot=function(i,s){if(!ip(i))throw Error(n(299));var a=!1,c="",m=Mb;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(m=s.onRecoverableError)),s=tp(i,1,!1,null,null,a,!1,c,m),i[xr]=s.current,uu(i.nodeType===8?i.parentNode:i),new rp(s)},fn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=ly(s),i=i===null?null:i.stateNode,i},fn.flushSync=function(i){return Pi(i)},fn.hydrate=function(i,s,a){if(!Gl(s))throw Error(n(200));return Kl(null,i,s,!0,a)},fn.hydrateRoot=function(i,s,a){if(!ip(i))throw Error(n(405));var c=a!=null&&a.hydratedSources||null,m=!1,E="",_=Mb;if(a!=null&&(a.unstable_strictMode===!0&&(m=!0),a.identifierPrefix!==void 0&&(E=a.identifierPrefix),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),s=Lb(s,null,i,1,a!=null?a:null,m,!1,E,_),i[xr]=s.current,uu(i),c)for(i=0;i<c.length;i++)a=c[i],m=a._getVersion,m=m(a._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[a,m]:s.mutableSourceEagerHydrationData.push(a,m);return new Wl(s)},fn.render=function(i,s,a){if(!Gl(s))throw Error(n(200));return Kl(null,i,s,!1,a)},fn.unmountComponentAtNode=function(i){if(!Gl(i))throw Error(n(40));return i._reactRootContainer?(Pi(function(){Kl(null,null,i,!1,function(){i._reactRootContainer=null,i[xr]=null})}),!0):!1},fn.unstable_batchedUpdates=Kh,fn.unstable_renderSubtreeIntoContainer=function(i,s,a,c){if(!Gl(a))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return Kl(i,s,a,!1,c)},fn.version="18.3.1-next-f1338f8080-20240426",fn}var xE;function AE(){if(xE)return sd.exports;xE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sd.exports=u6(),sd.exports}var Ra=AE();function a6(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var CE=()=>e=>Array.from(new Set(e)),kE=typeof globalThis.document!="undefined"?X.useLayoutEffect:X.useEffect;function Pa(e){var y,b;const t=(y=e().value)!=null?y:e().defaultValue,n=(b=e().isEqual)!=null?b:Object.is,[r]=X.useState(t),[o,u]=X.useState(r),l=e().value!==void 0,f=X.useRef(o);f.current=l?e().value:o;const d=X.useRef(f.current);kE(()=>{d.current=f.current},[o,e().value]);const h=T=>{var O,L;const S=d.current,C=cs(T)?T(S):T;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:C,prev:S}),l||u(C),n(C,S)||(L=(O=e()).onChange)==null||L.call(O,C,S)};function g(){return l?e().value:o}return{initial:r,ref:f,get:g,set(T){(e().sync?Ra.flushSync:kR)(()=>h(T))},invoke(T,S){var C,O;(O=(C=e()).onChange)==null||O.call(C,T,S)},hash(T){var S,C,O;return(O=(C=(S=e()).hash)==null?void 0:C.call(S,T))!=null?O:String(T)}}}Pa.cleanup=e=>{X.useEffect(()=>e,[])},Pa.ref=e=>{const t=X.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function l6(e){const t=X.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var c6=(e,t)=>{const n=X.useRef(!1),r=X.useRef(!1);X.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e!=null?e:[]).map(o=>typeof o=="function"?o():o)]),X.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function wE(e,t={}){var ge,pe,ce,fe,be,Le;const n=X.useMemo(()=>{const{id:ue,ids:M,getRootNode:G}=t;return i6({id:ue,ids:M,getRootNode:G})},[t]),r=(...ue)=>{e.debug&&console.log(...ue)},o=(pe=(ge=e.props)==null?void 0:ge.call(e,{props:aE(t),scope:n}))!=null?pe:t,u=f6(o),l=(ce=e.context)==null?void 0:ce.call(e,{prop:u,bindable:Pa,scope:n,flush:vE,getContext(){return d},getComputed(){return he},getRefs(){return C},getEvent(){return T()}}),f=NE(l),d={get(ue){var M;return(M=f.current)==null?void 0:M[ue].ref.current},set(ue,M){var G;(G=f.current)==null||G[ue].set(M)},initial(ue){var M;return(M=f.current)==null?void 0:M[ue].initial},hash(ue){var G,x;const M=(G=f.current)==null?void 0:G[ue].get();return(x=f.current)==null?void 0:x[ue].hash(M)}},h=X.useRef(new Map),g=X.useRef(null),y=X.useRef(null),b=X.useRef({type:""}),T=()=>$e(Q({},b.current),{current(){return b.current},previous(){return y.current}}),S=()=>$e(Q({},F),{matches(...ue){return ue.includes(F.ref.current)},hasTag(ue){var M,G;return!!((G=(M=e.states[F.ref.current])==null?void 0:M.tags)!=null&&G.includes(ue))}}),C=l6((be=(fe=e.refs)==null?void 0:fe.call(e,{prop:u,context:d}))!=null?be:{}),O=()=>({state:S(),context:d,event:T(),prop:u,send:H,action:L,guard:V,track:c6,refs:C,computed:he,flush:vE,scope:n,choose:ee}),L=ue=>{const M=cs(ue)?ue(O()):ue;if(!M)return;const G=M.map(x=>{var q,w;const I=(w=(q=e.implementations)==null?void 0:q.actions)==null?void 0:w[x];return I||Jf(`[zag-js] No implementation found for action "${JSON.stringify(x)}"`),I});for(const x of G)x==null||x(O())},V=ue=>{var M,G;return cs(ue)?ue(O()):(G=(M=e.implementations)==null?void 0:M.guards)==null?void 0:G[ue](O())},j=ue=>{const M=cs(ue)?ue(O()):ue;if(!M)return;const G=M.map(I=>{var w,Ee;const q=(Ee=(w=e.implementations)==null?void 0:w.effects)==null?void 0:Ee[I];return q||Jf(`[zag-js] No implementation found for effect "${JSON.stringify(I)}"`),q}),x=[];for(const I of G){const q=I==null?void 0:I(O());q&&x.push(q)}return()=>x.forEach(I=>I==null?void 0:I())},ee=ue=>ER(ue).find(M=>{let G=!M.guard;return Na(M.guard)?G=!!V(M.guard):cs(M.guard)&&(G=M.guard(O())),G}),he=ue=>{wR(e.computed,()=>"[zag-js] No computed object found on machine");const M=e.computed[ue];return M({context:d,event:T(),prop:u,refs:C,scope:n,computed:he})},F=Pa(()=>({defaultValue:e.initialState({prop:u}),onChange(ue,M){var x,I,q,w;if(M){const Ee=h.current.get(M);Ee==null||Ee(),h.current.delete(M)}M&&L((x=e.states[M])==null?void 0:x.exit),L((I=g.current)==null?void 0:I.actions);const G=j((q=e.states[ue])==null?void 0:q.effects);if(G&&h.current.set(ue,G),M===id){L(e.entry);const Ee=j(e.effects);Ee&&h.current.set(id,Ee)}L((w=e.states[ue])==null?void 0:w.entry)}})),me=X.useRef(void 0),Ae=X.useRef(ds.NotStarted);kE(()=>{queueMicrotask(()=>{var I;const G=Ae.current===ds.Started;Ae.current=ds.Started,r(G?"rehydrating...":"initializing...");const x=(I=me.current)!=null?I:F.initial;F.invoke(x,G?F.get():id)});const ue=h.current,M=F.ref.current;return()=>{r("unmounting..."),me.current=M,Ae.current=ds.Stopped,ue.forEach(G=>G==null?void 0:G()),h.current=new Map,g.current=null,queueMicrotask(()=>{L(e.exit)})}},[]);const Ne=()=>"ref"in F?F.ref.current:F.get(),H=ue=>{queueMicrotask(()=>{var w,Ee,ve,Ce,We;if(Ae.current!==ds.Started)return;y.current=b.current,b.current=ue,r("send",ue);let M=Ne();const G=(ve=(w=e.states[M].on)==null?void 0:w[ue.type])!=null?ve:(Ee=e.on)==null?void 0:Ee[ue.type],x=ee(G);if(!x)return;g.current=x;const I=(Ce=x.target)!=null?Ce:M;r("transition",x);const q=I!==M;q?Ra.flushSync(()=>F.set(I)):x.reenter&&!q?F.invoke(M,M):L((We=x.actions)!=null?We:[])})};return(Le=e.watch)==null||Le.call(e,O()),{state:S(),send:H,context:d,prop:u,scope:n,refs:C,computed:he,event:T(),getStatus:()=>Ae.current}}function NE(e){const t=X.useRef(e);return t.current=e,t}function f6(e){const t=NE(e);return function(r){return t.current[r]}}function vE(e){queueMicrotask(()=>{Ra.flushSync(()=>e())})}var d6=a6(e=>e);function ad(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function h6(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Po(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:u,defaultValue:l}=e,f=X.createContext(l);f.displayName=t;function d(){var g;const h=X.useContext(f);if(!h&&n){const y=new Error(u!=null?u:h6(r,o));throw y.name="ContextError",(g=Error.captureStackTrace)==null||g.call(Error,y,d),y}return h}return[f.Provider,d,f]}const IE=()=>(e,t)=>t.reduce((n,r)=>{const[o,u]=n,l=r;return u[l]!==void 0&&(o[l]=u[l]),delete u[l],[o,u]},[{},Q({},e)]),[p6,m6]=Po({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),g6=e=>IE()(e,["lazyMount","unmountOnExit"]);function E6(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const ld=e=>{const t=X.memo(X.forwardRef((n,r)=>{const h=n,{asChild:o,children:u}=h,l=Fi(h,["asChild","children"]);if(!o)return X.createElement(e,$e(Q({},l),{ref:r}),u);if(!X.isValidElement(u))return null;const f=X.Children.only(u),d=E6(f);return X.cloneElement(f,$e(Q({},_i(l,f.props)),{ref:r?ad(r,d):d}))}));return t.displayName=e.displayName||e.name,t},Lo=(()=>{const e=new Map;return new Proxy(ld,{apply(t,n,r){return ld(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,ld(r)),e.get(r)}})})();function y6(e,t){const{state:n,send:r,context:o}=e,u=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:u,setNode(l){l&&r({type:"NODE.SET",node:l})},unmount(){r({type:"UNMOUNT"})}}}var T6={props({props:e}){return $e(Q({},e),{present:!!e.present})},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,action:t,prop:n}){e([()=>n("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",dE(t.node))},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const u=t.get("node");if(!o&&(u==null?void 0:u.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});br(()=>{var f,d;const l=La(t.get("styles"));e.set("unmountAnimationName",l),l==="none"||l===e.get("prevAnimationName")||((f=t.get("styles"))==null?void 0:f.display)==="none"||((d=t.get("styles"))==null?void 0:d.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{br(()=>{e.set("prevAnimationName",La(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{const r=t.get("node");if(!r)return;const o=f=>{var h,g,y;((y=(g=(h=f.composedPath)==null?void 0:h.call(f))==null?void 0:g[0])!=null?y:f.target)===r&&e.set("prevAnimationName",La(t.get("styles")))},u=f=>{const d=La(t.get("styles"));Tr(f)===r&&d===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};r.addEventListener("animationstart",o),r.addEventListener("animationcancel",u),r.addEventListener("animationend",u);const l=Oa(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",u),r.removeEventListener("animationend",u),GR(()=>l())}}}}};function La(e){return(e==null?void 0:e.animationName)||"none"}CE()(["onExitComplete","present","immediate"]);function b6(e,t={}){const{sync:n=!1}=t,r=_6(e);return X.useCallback((...o)=>{var u;return n?queueMicrotask(()=>{var l;return(l=r.current)==null?void 0:l.call(r,...o)}):(u=r.current)==null?void 0:u.call(r,...o)},[n,r])}function _6(e){const t=X.useRef(e);return t.current=e,t}const OE=(e={})=>{const b=e,{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1}=b,u=Fi(b,["lazyMount","unmountOnExit","present","skipAnimationOnMount"]),l=X.useRef(!1),f=$e(Q({},u),{present:r,onExitComplete:b6(e.onExitComplete)}),d=wE(T6,f),h=y6(d);h.present&&(l.current=!0);const g=!h.present&&!l.current&&t||n&&!h.present&&l.current,y=()=>({"data-state":h.skip&&o?void 0:r?"open":"closed",hidden:!h.present});return{ref:h.setNode,getPresenceProps:y,present:h.present,unmounted:g}},[S6,Do]=Po({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),RE=X.forwardRef((e,t)=>{const n=Do(),r=m6(),o=OE($e(Q({},r),{present:n.open})),u=_i(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:P.jsx(Lo.div,$e(Q({},u),{ref:ad(o.ref,t)}))});RE.displayName="DialogBackdrop";const[x6,PE]=Po({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),cd=X.forwardRef((e,t)=>{const n=Do(),r=PE(),o=_i(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:P.jsx(Lo.div,$e(Q({},o),{ref:ad(r.ref,t)}))});cd.displayName="DialogContent";const fd=X.forwardRef((e,t)=>{const n=Do(),r=_i(n.getDescriptionProps(),e);return P.jsx(Lo.div,$e(Q({},r),{ref:t}))});fd.displayName="DialogDescription";const dd=X.forwardRef((e,t)=>{const n=Do(),r=_i(n.getPositionerProps(),e);return PE().unmounted?null:P.jsx(Lo.div,$e(Q({},r),{ref:t}))});dd.displayName="DialogPositioner";const A6=e=>IE()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);var Mo=(e,t=[])=>({parts:(...n)=>{if(C6(t))return Mo(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>Mo(e,[...t,...n]),omit:(...n)=>Mo(e,t.filter(r=>!n.includes(r))),rename:n=>Mo(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${hs(e)}"][data-part="${hs(r)}"]`,`& [data-scope="${hs(e)}"][data-part="${hs(r)}"]`].join(", "),attrs:{"data-scope":hs(e),"data-part":hs(r)}}}),{})}),hs=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),C6=e=>e.length===0,ps=new WeakMap,Da=new WeakMap,Ma={},hd=0,LE=e=>e&&(e.host||LE(e.parentNode)),k6=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=LE(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),w6=new Set(["script","output","status","next-route-announcer"]),N6=e=>w6.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),v6=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o}=t,u=k6(n,Array.isArray(e)?e:[e]);Ma[r]||(Ma[r]=new WeakMap);const l=Ma[r],f=[],d=new Set,h=new Set(u),g=b=>{!b||d.has(b)||(d.add(b),g(b.parentNode))};u.forEach(g);const y=b=>{!b||h.has(b)||Array.prototype.forEach.call(b.children,T=>{if(d.has(T))y(T);else try{if(N6(T))return;const C=T.getAttribute(o)==="true",O=(ps.get(T)||0)+1,L=(l.get(T)||0)+1;ps.set(T,O),l.set(T,L),f.push(T),O===1&&C&&Da.set(T,!0),L===1&&T.setAttribute(r,""),C||T.setAttribute(o,"true")}catch(S){console.error("[zag-js > ariaHidden] cannot operate on ",T,S)}})};return y(n),d.clear(),hd++,()=>{f.forEach(b=>{const T=ps.get(b)-1,S=l.get(b)-1;ps.set(b,T),l.set(b,S),T||(Da.has(b)||b.removeAttribute(o),Da.delete(b)),S||b.removeAttribute(r)}),hd--,hd||(ps=new WeakMap,ps=new WeakMap,Da=new WeakMap,Ma={})}},I6=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,O6=(e,t=I6(e),n="data-aria-hidden")=>{if(t)return v6(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},R6=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function P6(e,t={}){const{defer:n=!0}=t,r=n?R6:u=>u(),o=[];return o.push(r(()=>{const l=(typeof e=="function"?e():e).filter(Boolean);l.length!==0&&o.push(O6(l))})),()=>{o.forEach(u=>u==null?void 0:u())}}function L6(e){const t={each(n){var r;for(let o=0;o<((r=e.frames)==null?void 0:r.length);o+=1){const u=e.frames[o];u&&n(u)}},addEventListener(n,r,o){return t.each(u=>{try{u.document.addEventListener(n,r,o)}catch(l){}}),()=>{try{t.removeEventListener(n,r,o)}catch(u){}}},removeEventListener(n,r,o){t.each(u=>{try{u.document.removeEventListener(n,r,o)}catch(l){}})}};return t}function D6(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t==null||t.addEventListener(n,r,o)}catch(u){}return()=>{try{t==null||t.removeEventListener(n,r,o)}catch(u){}}},removeEventListener:(n,r,o)=>{try{t==null||t.removeEventListener(n,r,o)}catch(u){}}}}var DE="pointerdown.outside",ME="focus.outside";function M6(e){for(const t of e)if(cn(t)&&Br(t))return!0;return!1}var FE=e=>"clientY"in e;function F6(e,t){if(!FE(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function B6(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function BE(e,t){if(!t||!FE(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,u=o&&e.clientY>t.offsetTop+t.clientHeight,l={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},f={x:e.clientX,y:e.clientY};return B6(l,f)?r||u:!1}function U6(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:u,defer:l}=t;if(!e)return;const f=or(e),d=Oo(e),h=L6(d),g=D6(d);function y(V,j){if(!cn(j)||!j.isConnected||Ia(e,j)||F6(e,V))return!1;const ee=f.querySelector(`[aria-controls="${e.id}"]`);if(ee){const F=rd(ee);if(BE(V,F))return!1}const he=rd(e);return BE(V,he)?!1:!(n!=null&&n(j))}const b=new Set,T=fs(e==null?void 0:e.getRootNode());function S(V){function j(ee){var Ae,Ne;const he=l&&!pE()?br:H=>H(),F=ee!=null?ee:V,me=(Ne=(Ae=F==null?void 0:F.composedPath)==null?void 0:Ae.call(F))!=null?Ne:[F==null?void 0:F.target];he(()=>{const H=T?me[0]:Tr(V);if(!(!e||!y(V,H))){if(o||u){const ge=Xf(o,u);e.addEventListener(DE,ge,{once:!0})}UE(e,DE,{bubbles:!1,cancelable:!0,detail:{originalEvent:F,contextmenu:YR(F),focusable:M6(me),target:H}})}})}V.pointerType==="touch"?(b.forEach(ee=>ee()),b.add(ur(f,"click",j,{once:!0})),b.add(g.addEventListener("click",j,{once:!0})),b.add(h.addEventListener("click",j,{once:!0}))):j()}const C=new Set,O=setTimeout(()=>{C.add(ur(f,"pointerdown",S,!0)),C.add(g.addEventListener("pointerdown",S,!0)),C.add(h.addEventListener("pointerdown",S,!0))},0);function L(V){(l?br:ee=>ee())(()=>{const ee=Tr(V);if(!(!e||!y(V,ee))){if(r||u){const he=Xf(r,u);e.addEventListener(ME,he,{once:!0})}UE(e,ME,{bubbles:!1,cancelable:!0,detail:{originalEvent:V,contextmenu:!1,focusable:Br(ee),target:ee}})}})}return pE()||(C.add(ur(f,"focusin",L,!0)),C.add(g.addEventListener("focusin",L,!0)),C.add(h.addEventListener("focusin",L,!0))),()=>{clearTimeout(O),b.forEach(V=>V()),C.forEach(V=>V())}}function H6(e,t){const{defer:n}=t,r=n?br:u=>u(),o=[];return o.push(r(()=>{const u=typeof e=="function"?e():e;o.push(U6(u,t))})),()=>{o.forEach(u=>u==null?void 0:u())}}function UE(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function z6(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return ur(or(e),"keydown",n,{capture:!0})}var Vn={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return t<n},isTopMost(e){const t=this.layers[this.count()-1];return(t==null?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>Ia(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Ia(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>r.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){var t;(t=this.layers[this.indexOf(e)])==null||t.dismiss()},clear(){this.remove(this.layers[0].node)}},HE;function zE(){Vn.layers.forEach(({node:e})=>{e.style.pointerEvents=Vn.isBelowPointerBlockingLayer(e)?"none":"auto"})}function j6(e){e.style.pointerEvents=""}function $6(e,t){const n=or(e),r=[];return Vn.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(HE=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(o=>{const[u,l]=e6(()=>{const f=o();return cn(f)?f:null},{timeout:1e3});u.then(f=>r.push(Oa(f,{pointerEvents:"auto"}))),r.push(l)}),()=>{Vn.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=HE,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function V6(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){Jf("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,pointerBlocking:o,exclude:u,debug:l}=t,f={dismiss:r,node:e,pointerBlocking:o};Vn.add(f),zE();function d(T){var C,O;const S=Tr(T.detail.originalEvent);Vn.isBelowPointerBlockingLayer(e)||Vn.isInBranch(S)||((C=t.onPointerDownOutside)==null||C.call(t,T),(O=t.onInteractOutside)==null||O.call(t,T),!T.defaultPrevented&&(l&&console.log("onPointerDownOutside:",T.detail.originalEvent),r==null||r()))}function h(T){var C,O;const S=Tr(T.detail.originalEvent);Vn.isInBranch(S)||((C=t.onFocusOutside)==null||C.call(t,T),(O=t.onInteractOutside)==null||O.call(t,T),!T.defaultPrevented&&(l&&console.log("onFocusOutside:",T.detail.originalEvent),r==null||r()))}function g(T){var S;Vn.isTopMost(e)&&((S=t.onEscapeKeyDown)==null||S.call(t,T),!T.defaultPrevented&&r&&(T.preventDefault(),r()))}function y(T){var L;if(!e)return!1;const S=typeof u=="function"?u():u,C=Array.isArray(S)?S:[S],O=(L=t.persistentElements)==null?void 0:L.map(V=>V()).filter(cn);return O&&C.push(...O),C.some(V=>Ia(V,T))||Vn.isInNestedLayer(e,T)}const b=[o?$6(e,t.persistentElements):void 0,z6(e,g),H6(e,{exclude:y,onFocusOutside:h,onPointerDownOutside:d,defer:t.defer})];return()=>{Vn.remove(e),zE(),j6(e),b.forEach(T=>T==null?void 0:T())}}function Y6(e,t){const{defer:n}=t,r=n?br:u=>u(),o=[];return o.push(r(()=>{const u=cs(e)?e():e;o.push(V6(u,t))})),()=>{o.forEach(u=>u==null?void 0:u())}}var q6=Object.defineProperty,W6=(e,t,n)=>t in e?q6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ht=(e,t,n)=>W6(e,typeof t!="symbol"?t+"":t,n),jE={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},G6=[],K6=class{constructor(e,t){ht(this,"trapStack"),ht(this,"config"),ht(this,"doc"),ht(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),ht(this,"listenerCleanups",[]),ht(this,"handleFocus",r=>{const o=Tr(r),u=this.findContainerIndex(o,r)>=0;if(u||Zf(o))u&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let l,f=!0;if(this.state.mostRecentlyFocusedNode)if(Ro(this.state.mostRecentlyFocusedNode)>0){const d=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:h}=this.state.containerGroups[d];if(h.length>0){const g=h.findIndex(y=>y===this.state.mostRecentlyFocusedNode);g>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?g+1<h.length&&(l=h[g+1],f=!1):g-1>=0&&(l=h[g-1],f=!1))}}else this.state.containerGroups.some(d=>d.tabbableNodes.some(h=>Ro(h)>0))||(f=!1);else f=!1;f&&(l=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),l?this.tryFocus(l):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),ht(this,"handlePointerDown",r=>{const o=Tr(r);if(!(this.findContainerIndex(o,r)>=0)){if(Bo(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Bo(this.config.allowOutsideClick,r)||r.preventDefault()}}),ht(this,"handleClick",r=>{const o=Tr(r);this.findContainerIndex(o,r)>=0||Bo(this.config.clickOutsideDeactivates,r)||Bo(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),ht(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),u=this.findNextNavNode({event:r,isBackward:o});if(!u)return;Fo(r)&&r.preventDefault(),this.tryFocus(u)}}),ht(this,"handleEscapeKey",r=>{Q6(r)&&Bo(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),ht(this,"_mutationObserver"),ht(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(l=>Array.from(l.removedNodes).some(d=>d===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),ht(this,"updateObservedNodes",()=>{var r;(r=this._mutationObserver)==null||r.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(o=>{var u;(u=this._mutationObserver)==null||u.observe(o,{subtree:!0,childList:!0})})}),ht(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Br(r))if(this.findContainerIndex(this.doc.activeElement)>=0)r=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];r=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),ht(this,"tryFocus",r=>{if(r!==!1&&r!==fE(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,X6(r)&&r.select()}}),ht(this,"deactivate",r=>{if(!this.state.active)return this;const o=Q({onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus},r);clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),jE.deactivateTrap(this.trapStack,this);const u=this.getOption(o,"onDeactivate"),l=this.getOption(o,"onPostDeactivate"),f=this.getOption(o,"checkCanReturnFocus"),d=this.getOption(o,"returnFocus","returnFocusOnDeactivate");u==null||u();const h=()=>{$E(()=>{if(d){const g=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(g)}l==null||l()})};if(d&&f){const g=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return f(g).then(h,h),this}return h(),this}),ht(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),u=this.getOption(r,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),u==null||u(),this}),ht(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),u=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),u==null||u(),this}),ht(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),ht(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),ht(this,"getOption",(r,o,u)=>r&&r[o]!==void 0?r[o]:this.config[u||o]),ht(this,"getNodeForOption",(r,{hasFallback:o=!1,params:u=[]}={})=>{let l=this.config[r];if(typeof l=="function"&&(l=l(...u)),l===!0&&(l=void 0),!l){if(l===void 0||l===!1)return l;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let f=l;if(typeof l=="string"){try{f=this.doc.querySelector(l)}catch(d){throw new Error(`\`${r}\` appears to be an invalid selector; error="${d.message}"`)}if(!f&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return f}),ht(this,"findNextNavNode",r=>{const{event:o,isBackward:u=!1}=r,l=r.target||Tr(o);this.updateTabbableNodes();let f=null;if(this.state.tabbableGroups.length>0){const d=this.findContainerIndex(l,o),h=d>=0?this.state.containerGroups[d]:void 0;if(d<0)u?f=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:f=this.state.tabbableGroups[0].firstTabbableNode;else if(u){let g=this.state.tabbableGroups.findIndex(({firstTabbableNode:y})=>l===y);if(g<0&&((h==null?void 0:h.container)===l||Br(l)&&!bi(l)&&!(h!=null&&h.nextTabbableNode(l,!1)))&&(g=d),g>=0){const y=g===0?this.state.tabbableGroups.length-1:g-1,b=this.state.tabbableGroups[y];f=Ro(l)>=0?b.lastTabbableNode:b.lastDomTabbableNode}else Fo(o)||(f=h==null?void 0:h.nextTabbableNode(l,!1))}else{let g=this.state.tabbableGroups.findIndex(({lastTabbableNode:y})=>l===y);if(g<0&&((h==null?void 0:h.container)===l||Br(l)&&!bi(l)&&!(h!=null&&h.nextTabbableNode(l)))&&(g=d),g>=0){const y=g===this.state.tabbableGroups.length-1?0:g+1,b=this.state.tabbableGroups[y];f=Ro(l)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else Fo(o)||(f=h==null?void 0:h.nextTabbableNode(l))}}else f=this.getNodeForOption("fallbackFocus");return f}),this.trapStack=t.trapStack||G6;const n=Q({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(r){return Fo(r)&&!r.shiftKey},isKeyBackward(r){return Fo(r)&&r.shiftKey}},t);this.doc=n.document||or(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||(n==null?void 0:n.includes(r))||o.find(u=>u===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=yE(e),n=EE(e),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,u=n.find(h=>bi(h)),l=n.slice().reverse().find(h=>bi(h)),f=!!t.find(h=>Ro(h)>0);function d(h,g=!0){const y=t.indexOf(h);return y<0?g?n.slice(n.indexOf(h)+1).find(b=>bi(b)):n.slice(0,n.indexOf(h)).reverse().find(b=>bi(b)):t[y+(g?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:f,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:u,lastDomTabbableNode:l,nextTabbableNode:d}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return jE.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?$E(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ur(this.doc,"focusin",this.handleFocus,!0),ur(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ur(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ur(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ur(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ur(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t==null||t();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n==null||n()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},Fo=e=>e.key==="Tab",Bo=(e,...t)=>typeof e=="function"?e(...t):e,Q6=e=>!e.isComposing&&e.key==="Escape",$E=e=>setTimeout(e,0),X6=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function J6(e,t={}){let n;const r=br(()=>{const o=typeof e=="function"?e():e;if(o){n=new K6(o,$e(Q({escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o},t),{document:or(o)}));try{n.activate()}catch(u){}}});return function(){n==null||n.deactivate(),r()}}var pd="data-scroll-lock";function Z6(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function eP(e){var b;const t=e!=null?e:document,n=(b=t.defaultView)!=null?b:window,{documentElement:r,body:o}=t;if(o.hasAttribute(pd))return;const l=n.innerWidth-r.clientWidth;o.setAttribute(pd,"");const f=()=>JR(r,"--scrollbar-width",`${l}px`),d=Z6(r),h=()=>Oa(o,{overflow:"hidden",[d]:`${l}px`}),g=()=>{var j,ee;const{scrollX:T,scrollY:S,visualViewport:C}=n,O=(j=C==null?void 0:C.offsetLeft)!=null?j:0,L=(ee=C==null?void 0:C.offsetTop)!=null?ee:0,V=Oa(o,{position:"fixed",overflow:"hidden",top:`${-(S-Math.floor(L))}px`,left:`${-(T-Math.floor(O))}px`,right:"0",[d]:`${l}px`});return()=>{V==null||V(),n.scrollTo({left:T,top:S,behavior:"instant"})}},y=[f(),$R()?g():h()];return()=>{y.forEach(T=>T==null?void 0:T()),o.removeAttribute(pd)}}var tP=Mo("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Si=tP.build(),VE=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.positioner)!=null?n:`dialog:${e.id}:positioner`},YE=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.backdrop)!=null?n:`dialog:${e.id}:backdrop`},md=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.content)!=null?n:`dialog:${e.id}:content`},qE=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.trigger)!=null?n:`dialog:${e.id}:trigger`},gd=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.title)!=null?n:`dialog:${e.id}:title`},Ed=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.description)!=null?n:`dialog:${e.id}:description`},WE=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.closeTrigger)!=null?n:`dialog:${e.id}:close`},Fa=e=>e.getById(md(e)),nP=e=>e.getById(VE(e)),rP=e=>e.getById(YE(e)),iP=e=>e.getById(qE(e)),sP=e=>e.getById(gd(e)),oP=e=>e.getById(Ed(e)),uP=e=>e.getById(WE(e));function aP(e,t){const{state:n,send:r,context:o,prop:u,scope:l}=e,f=u("aria-label"),d=n.matches("open");return{open:d,setOpen(h){n.matches("open")!==h&&r({type:h?"OPEN":"CLOSE"})},getTriggerProps(){return t.button($e(Q({},Si.trigger.attrs),{dir:u("dir"),id:qE(l),"aria-haspopup":"dialog",type:"button","aria-expanded":d,"data-state":d?"open":"closed","aria-controls":md(l),onClick(h){h.defaultPrevented||r({type:"TOGGLE"})}}))},getBackdropProps(){return t.element($e(Q({},Si.backdrop.attrs),{dir:u("dir"),hidden:!d,id:YE(l),"data-state":d?"open":"closed"}))},getPositionerProps(){return t.element($e(Q({},Si.positioner.attrs),{dir:u("dir"),id:VE(l),style:{pointerEvents:d?void 0:"none"}}))},getContentProps(){const h=o.get("rendered");return t.element($e(Q({},Si.content.attrs),{dir:u("dir"),role:u("role"),hidden:!d,id:md(l),tabIndex:-1,"data-state":d?"open":"closed","aria-modal":!0,"aria-label":f||void 0,"aria-labelledby":f||!h.title?void 0:gd(l),"aria-describedby":h.description?Ed(l):void 0}))},getTitleProps(){return t.element($e(Q({},Si.title.attrs),{dir:u("dir"),id:gd(l)}))},getDescriptionProps(){return t.element($e(Q({},Si.description.attrs),{dir:u("dir"),id:Ed(l)}))},getCloseTriggerProps(){return t.button($e(Q({},Si.closeTrigger.attrs),{dir:u("dir"),id:WE(l),type:"button",onClick(h){h.defaultPrevented||(h.stopPropagation(),r({type:"CLOSE"}))}}))}}}var lP={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>uP(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return Q({role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r},e)},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Y6(()=>Fa(e),{defer:!0,pointerBlocking:n("modal"),exclude:[iP(e)],onInteractOutside(o){var u;(u=n("onInteractOutside"))==null||u(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onEscapeKeyDown(o){var u;(u=n("onEscapeKeyDown"))==null||u(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return eP(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?J6(()=>Fa(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>{var o,u;return(u=(o=t("finalFocusEl"))==null?void 0:o())!=null?u:r}}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?P6(()=>[Fa(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){br(()=>{e.set("rendered",{title:!!sP(t),description:!!oP(t)})})},syncZIndex({scope:e}){br(()=>{const t=Fa(e);if(!t)return;const n=dE(t);[nP(e),rP(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",n.zIndex),o==null||o.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};CE()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const[eD,GE]=Po({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[tD,cP]=Po({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),fP=e=>{const t=X.useId(),{getRootNode:n}=GE(),{dir:r}=cP(),o=Q({id:t,getRootNode:n,dir:r},e),u=wE(lP,o);return aP(u,d6)},KE=e=>{const[t,f]=A6(e),d=f,{children:n}=d,r=Fi(d,["children"]),[o]=g6(t),u=fP(r),l=OE(_i({present:u.open},t));return P.jsx(S6,{value:u,children:P.jsx(p6,{value:o,children:P.jsx(x6,{value:l,children:n})})})},yd=X.forwardRef((e,t)=>{const n=Do(),r=_i(n.getTitleProps(),e);return P.jsx(Lo.h2,$e(Q({},r),{ref:t}))});yd.displayName="DialogTitle";const QE=e=>{var d;const{children:t,disabled:n}=e,[r,o]=X.useState((d=e.container)==null?void 0:d.current),u=X.useSyncExternalStore(hP,()=>!1,()=>!0),{getRootNode:l}=GE();if(X.useEffect(()=>{o(()=>{var h;return(h=e.container)==null?void 0:h.current})},[e.container]),u||n)return P.jsx(P.Fragment,{children:t});const f=r!=null?r:dP(l);return P.jsx(P.Fragment,{children:X.Children.map(t,h=>Ra.createPortal(h,f))})},dP=e=>{const t=e==null?void 0:e(),n=t.getRootNode();return fs(n)?n:or(t).body},hP=()=>()=>{},XE=()=>{const{logoUrl:e,headerText:t,globalClassName:n,themeVariables:r}=Rr(),{mode:o,status:u,dialogPosition:l}=Xu(),{copilot:f,messages:d,groupedMessages:h,isLoading:g,handleUserInput:y,handleSuggestion:b}=io(),T=X.useRef(null),{isOpen:S}=u||{},C=o==="standalone";X.useEffect(()=>{T.current&&T.current.scrollIntoView({behavior:"smooth",block:"end"})},[d]);const O=({open:ee})=>{no(ee)},L=()=>{Dm(l==="bottom-left"?"bottom-right":"bottom-left")},V=()=>{zc("modal")},j=()=>{no(!1)};return!S||h.length===0?null:f?P.jsx(KE,{lazyMount:!0,modal:!1,closeOnEscape:!1,closeOnInteractOutside:!1,open:S,onOpenChange:O,children:P.jsx(QE,{children:P.jsx(dd,{className:le(n,`${te}-container`,`${te}-dialog`,l),style:r,children:P.jsxs(cd,{className:le(n,`${te}-dialog-content`,{standalone:C,embedded:!C}),children:[P.jsxs("div",{className:le(n,`${te}-dialog-header`,{standalone:C,embedded:!C}),children:[e&&P.jsx("img",{alt:"",role:"img",className:le(n,`${te}-dialog-logo`,{standalone:C,embedded:!C}),src:e}),P.jsx(yd,{className:le(n,`${te}-dialog-title`,{standalone:C,embedded:!C}),children:t}),P.jsxs("div",{className:le(n,`${te}-dialog-controls`),children:[P.jsx(ro,{ariaLabel:"Toggle left or right position",icon:P.jsx(pR,{}),onClick:L}),P.jsx(ro,{ariaLabel:"Toggle Modal",icon:P.jsx(gR,{}),onClick:V}),P.jsx(Km,{className:`dialog ${n}`,onClick:j})]})]}),P.jsxs(fd,{className:le(n,`${te}-message-container`,{standalone:C,embedded:!C}),children:[P.jsx(Qf,{isWidgetStandalone:C,messages:h,handleSuggestionClick:b}),g&&P.jsx("div",{style:{display:"flex",justifyContent:"flex-start",paddingBottom:"1rem"},children:P.jsx(wa,{})}),P.jsx("div",{ref:T})]}),P.jsx(jc,{className:`dialog ${n}`,isLoading:g,onSubmit:y})]})})})}):P.jsx("div",{children:"Loading Copilot..."})},JE=()=>{const{logoUrl:e,headerText:t,globalClassName:n,themeVariables:r}=Rr(),{mode:o,status:u,isModalFullscreen:l}=Xu(),{copilot:f,messages:d,groupedMessages:h,isLoading:g,handleUserInput:y,handleSuggestion:b}=io(),T=X.useRef(null),{isOpen:S}=u||{},C=o==="standalone";X.useEffect(()=>{T.current&&T.current.scrollIntoView({behavior:"smooth",block:"end"})},[d]);const O=({open:ee})=>{no(ee)},L=()=>{Lm(!l)},V=()=>{zc("dialog")},j=()=>{no(!1)};return!S||h.length===0?null:f?P.jsx(KE,{lazyMount:!0,open:S,onOpenChange:O,children:P.jsx(QE,{children:P.jsxs("div",{className:le(`${te}-modal-container`),style:r,children:[P.jsx(RE,{className:`${te}-modal-backdrop`}),P.jsx(dd,{className:le(n,`${te}-container`,`${te}-modal`,{fullscreen:l,standalone:C,embedded:!C}),children:P.jsxs(cd,{className:le(n,`${te}-modal-content`,{standalone:C,embedded:!C}),children:[P.jsxs("div",{className:le(n,`${te}-modal-header`,{standalone:C,embedded:!C}),children:[e&&P.jsx("img",{alt:"",role:"img",className:le(n,`${te}-modal-logo`,{standalone:C,embedded:!C}),src:e}),P.jsx(yd,{className:le(n,`${te}-modal-title`,{standalone:C,embedded:!C}),children:t}),P.jsxs("div",{className:le(n,`${te}-modal-controls`),children:[P.jsx(ro,{ariaLabel:"Toggle Fullscreen",className:le(n,`${te}-modal-fullscreen-button`),icon:P.jsx(Sx,{}),onClick:L}),P.jsx(ro,{ariaLabel:"Toggle Dialog",className:le(n,`${te}-modal-toggle-dialog-button`),icon:P.jsx(mR,{}),onClick:V}),P.jsx(Km,{className:`modal ${n}`,onClick:j})]})]}),P.jsxs(fd,{className:le(n,`${te}-message-container`,{standalone:C,embedded:!C}),children:[P.jsx(Qf,{isWidgetStandalone:C,messages:h,handleSuggestionClick:b}),g&&P.jsx("div",{style:{display:"flex",justifyContent:"flex-start",paddingLeft:"1rem",paddingBottom:"1rem"},children:P.jsx(wa,{})}),P.jsx("div",{ref:T})]}),P.jsx(jc,{className:`modal ${n}`,isLoading:g,onSubmit:y})]})})]})})}):P.jsx("div",{children:"Loading Copilot..."})},pP=()=>{const e=Xu(),{status:{type:t}}=e||{status:{}};return t==="dialog"?P.jsx(XE,{}):t==="modal"?P.jsx(JE,{}):P.jsx(oE,{})},Td=e=>P.jsx(Hm,$e(Q({},e),{children:P.jsx(pP,{})}));var Ba={},ZE;function mP(){if(ZE)return Ba;ZE=1;var e=AE();return Ba.createRoot=e.createRoot,Ba.hydrateRoot=e.hydrateRoot,Ba}var ey=mP();const gP=r=>{var o=r,{elementId:e,timeout:t=5e3}=o,n=Fi(o,["elementId","timeout"]);let u;const l=(d,h)=>{var g;for(const y of d)if(y.type==="childList"&&y.addedNodes.length)for(const b of y.addedNodes)b.nodeType===Node.ELEMENT_NODE&&b.id===e&&(Wi(!0,"log","Target element found, rendering Copilot Widget"),h.disconnect(),clearTimeout(u),(g=ey.createRoot(b))==null||g.render(P.jsx(Td,Q({},n))))},f=new MutationObserver(l);return f.observe(document.body,{childList:!0,subtree:!0}),u=setTimeout(()=>{f.disconnect(),Wi(!0,"error",`Element with id: ${e} not found within ${t} milliseconds, stopping observation`)},t),f},EP=r=>{var o=r,{timeout:e,elementId:t}=o,n=Fi(o,["timeout","elementId"]);if(!n.apiKey&&!n.apiToken){Wi(!0,"error","Copilot Widget requires either apiKey or apiToken");return}const u=document.getElementById(t);if(!u){Wi(!0,"warn","Container element not found for id:",t),Wi(!0,"warn","Beginning observation for element"),gP(Q({elementId:t,timeout:e},n));return}ey.createRoot(u).render(P.jsx(Td,Q({},n)))},yP={search:{setSearchContext:GS,updateSearchQuery:KS,updateFacetFilter:XS,updateFacetFilters:QS,updateRangeFilter:ZS,updateRangeFilters:JS,updateCatalogSegment:ex},components:{toggleWidgetOpen:no,toggleModalFullscreen:Lm,setWidgetType:zc,setWidgetDialogPosition:Dm}};ke.CopilotDialog=XE,ke.CopilotEmbed=oE,ke.CopilotModal=JE,ke.CopilotWidget=Td,ke.WidgetProvider=Hm,ke.eventHandlers=yP,ke.injectCopilotWidget=EP,ke.useCopilot=io,Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"})});
75
+ `+E.stack}return{value:i,source:s,stack:m,digest:null}}function vh(i,s,a){return{value:i,source:null,stack:a!=null?a:null,digest:s!=null?s:null}}function Oh(i,s){try{console.error(s.value)}catch(a){setTimeout(function(){throw a})}}var zL=typeof WeakMap=="function"?WeakMap:Map;function WT(i,s,a){a=Nr(-1,a),a.tag=3,a.payload={element:null};var c=s.value;return a.callback=function(){Fl||(Fl=!0,Yh=c),Oh(i,s)},a}function GT(i,s,a){a=Nr(-1,a),a.tag=3;var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var m=s.value;a.payload=function(){return c(m)},a.callback=function(){Oh(i,s)}}var E=i.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){Oh(i,s),typeof c!="function"&&(ti===null?ti=new Set([this]):ti.add(this));var _=s.stack;this.componentDidCatch(s.value,{componentStack:_!==null?_:""})}),a}function KT(i,s,a){var c=i.pingCache;if(c===null){c=i.pingCache=new zL;var m=new Set;c.set(s,m)}else m=c.get(s),m===void 0&&(m=new Set,c.set(s,m));m.has(a)||(m.add(a),i=t4.bind(null,i,s,a),s.then(i,i))}function QT(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function XT(i,s,a,c,m){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(s=Nr(-1,1),s.tag=2,Zr(a,s,1))),a.lanes|=1),i):(i.flags|=65536,i.lanes=m,i)}var jL=te.ReactCurrentOwner,pn=!1;function Zt(i,s,a,c){s.child=i===null?ET(s,null,a,c):Ls(s,i.child,a,c)}function JT(i,s,a,c,m){a=a.render;var E=s.ref;return Ms(s,m),c=_h(i,s,a,c,E,m),a=Sh(),i!==null&&!pn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~m,vr(i,s,m)):(ft&&a&&ih(s),s.flags|=1,Zt(i,s,c,m),s.child)}function ZT(i,s,a,c,m){if(i===null){var E=a.type;return typeof E=="function"&&!Jh(E)&&E.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(s.tag=15,s.type=E,eb(i,s,E,c,m)):(i=$l(a.type,null,c,s,s.mode,m),i.ref=s.ref,i.return=s,s.child=i)}if(E=i.child,(i.lanes&m)===0){var _=E.memoizedProps;if(a=a.compare,a=a!==null?a:iu,a(_,c)&&i.ref===s.ref)return vr(i,s,m)}return s.flags|=1,i=si(E,c),i.ref=s.ref,i.return=s,s.child=i}function eb(i,s,a,c,m){if(i!==null){var E=i.memoizedProps;if(iu(E,c)&&i.ref===s.ref)if(pn=!1,s.pendingProps=c=E,(i.lanes&m)!==0)(i.flags&131072)!==0&&(pn=!0);else return s.lanes=i.lanes,vr(i,s,m)}return Ih(i,s,a,c,m)}function tb(i,s,a){var c=s.pendingProps,m=c.children,E=i!==null?i.memoizedState:null;if(c.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(Hs,Cn),Cn|=a;else{if((a&1073741824)===0)return i=E!==null?E.baseLanes|a:a,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,ot(Hs,Cn),Cn|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=E!==null?E.baseLanes:a,ot(Hs,Cn),Cn|=c}else E!==null?(c=E.baseLanes|a,s.memoizedState=null):c=a,ot(Hs,Cn),Cn|=c;return Zt(i,s,m,a),s.child}function nb(i,s){var a=s.ref;(i===null&&a!==null||i!==null&&i.ref!==a)&&(s.flags|=512,s.flags|=2097152)}function Ih(i,s,a,c,m){var E=hn(a)?ki:Wt.current;return E=Os(s,E),Ms(s,m),a=_h(i,s,a,c,E,m),c=Sh(),i!==null&&!pn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~m,vr(i,s,m)):(ft&&c&&ih(s),s.flags|=1,Zt(i,s,a,m),s.child)}function rb(i,s,a,c,m){if(hn(a)){var E=!0;pl(s)}else E=!1;if(Ms(s,m),s.stateNode===null)Rl(i,s),YT(s,a,c),Nh(s,a,c,m),c=!0;else if(i===null){var _=s.stateNode,N=s.memoizedProps;_.props=N;var R=_.context,V=a.contextType;typeof V=="object"&&V!==null?V=Ln(V):(V=hn(a)?ki:Wt.current,V=Os(s,V));var ne=a.getDerivedStateFromProps,ie=typeof ne=="function"||typeof _.getSnapshotBeforeUpdate=="function";ie||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(N!==c||R!==V)&&qT(s,_,c,V),Jr=!1;var J=s.memoizedState;_.state=J,xl(s,c,_,m),R=s.memoizedState,N!==c||J!==R||dn.current||Jr?(typeof ne=="function"&&(wh(s,a,ne,c),R=s.memoizedState),(N=Jr||VT(s,a,N,c,J,R,V))?(ie||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(s.flags|=4194308)):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=R),_.props=c,_.state=R,_.context=V,c=N):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{_=s.stateNode,TT(i,s),N=s.memoizedProps,V=s.type===s.elementType?N:Gn(s.type,N),_.props=V,ie=s.pendingProps,J=_.context,R=a.contextType,typeof R=="object"&&R!==null?R=Ln(R):(R=hn(a)?ki:Wt.current,R=Os(s,R));var ye=a.getDerivedStateFromProps;(ne=typeof ye=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(N!==ie||J!==R)&&qT(s,_,c,R),Jr=!1,J=s.memoizedState,_.state=J,xl(s,c,_,m);var _e=s.memoizedState;N!==ie||J!==_e||dn.current||Jr?(typeof ye=="function"&&(wh(s,a,ye,c),_e=s.memoizedState),(V=Jr||VT(s,a,V,c,J,_e,R)||!1)?(ne||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(c,_e,R),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(c,_e,R)),typeof _.componentDidUpdate=="function"&&(s.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof _.componentDidUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=_e),_.props=c,_.state=_e,_.context=R,c=V):(typeof _.componentDidUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=1024),c=!1)}return Rh(i,s,a,c,E,m)}function Rh(i,s,a,c,m,E){nb(i,s);var _=(s.flags&128)!==0;if(!c&&!_)return m&&aT(s,a,!1),vr(i,s,E);c=s.stateNode,jL.current=s;var N=_&&typeof a.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,i!==null&&_?(s.child=Ls(s,i.child,null,E),s.child=Ls(s,null,N,E)):Zt(i,s,N,E),s.memoizedState=c.state,m&&aT(s,a,!0),s.child}function ib(i){var s=i.stateNode;s.pendingContext?oT(i,s.pendingContext,s.pendingContext!==s.context):s.context&&oT(i,s.context,!1),mh(i,s.containerInfo)}function sb(i,s,a,c,m){return Ps(),ah(m),s.flags|=256,Zt(i,s,a,c),s.child}var Ph={dehydrated:null,treeContext:null,retryLane:0};function Lh(i){return{baseLanes:i,cachePool:null,transitions:null}}function ob(i,s,a){var c=s.pendingProps,m=pt.current,E=!1,_=(s.flags&128)!==0,N;if((N=_)||(N=i!==null&&i.memoizedState===null?!1:(m&2)!==0),N?(E=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(m|=1),ot(pt,m&1),i===null)return uh(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(_=c.children,i=c.fallback,E?(c=s.mode,E=s.child,_={mode:"hidden",children:_},(c&1)===0&&E!==null?(E.childLanes=0,E.pendingProps=_):E=Vl(_,c,0,null),i=Mi(i,c,a,null),E.return=s,i.return=s,E.sibling=i,s.child=E,s.child.memoizedState=Lh(a),s.memoizedState=Ph,i):Dh(s,_));if(m=i.memoizedState,m!==null&&(N=m.dehydrated,N!==null))return $L(i,s,_,c,N,m,a);if(E){E=c.fallback,_=s.mode,m=i.child,N=m.sibling;var R={mode:"hidden",children:c.children};return(_&1)===0&&s.child!==m?(c=s.child,c.childLanes=0,c.pendingProps=R,s.deletions=null):(c=si(m,R),c.subtreeFlags=m.subtreeFlags&14680064),N!==null?E=si(N,E):(E=Mi(E,_,a,null),E.flags|=2),E.return=s,c.return=s,c.sibling=E,s.child=c,c=E,E=s.child,_=i.child.memoizedState,_=_===null?Lh(a):{baseLanes:_.baseLanes|a,cachePool:null,transitions:_.transitions},E.memoizedState=_,E.childLanes=i.childLanes&~a,s.memoizedState=Ph,c}return E=i.child,i=E.sibling,c=si(E,{mode:"visible",children:c.children}),(s.mode&1)===0&&(c.lanes=a),c.return=s,c.sibling=null,i!==null&&(a=s.deletions,a===null?(s.deletions=[i],s.flags|=16):a.push(i)),s.child=c,s.memoizedState=null,c}function Dh(i,s){return s=Vl({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function Il(i,s,a,c){return c!==null&&ah(c),Ls(s,i.child,null,a),i=Dh(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function $L(i,s,a,c,m,E,_){if(a)return s.flags&256?(s.flags&=-257,c=vh(Error(n(422))),Il(i,s,_,c)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(E=c.fallback,m=s.mode,c=Vl({mode:"visible",children:c.children},m,0,null),E=Mi(E,m,_,null),E.flags|=2,c.return=s,E.return=s,c.sibling=E,s.child=c,(s.mode&1)!==0&&Ls(s,i.child,null,_),s.child.memoizedState=Lh(_),s.memoizedState=Ph,E);if((s.mode&1)===0)return Il(i,s,_,null);if(m.data==="$!"){if(c=m.nextSibling&&m.nextSibling.dataset,c)var N=c.dgst;return c=N,E=Error(n(419)),c=vh(E,c,void 0),Il(i,s,_,c)}if(N=(_&i.childLanes)!==0,pn||N){if(c=Mt,c!==null){switch(_&-_){case 4:m=2;break;case 16:m=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=(m&(c.suspendedLanes|_))!==0?0:m,m!==0&&m!==E.retryLane&&(E.retryLane=m,wr(i,m),Xn(c,i,m,-1))}return Xh(),c=vh(Error(n(421))),Il(i,s,_,c)}return m.data==="$?"?(s.flags|=128,s.child=i.child,s=n4.bind(null,i),m._reactRetry=s,null):(i=E.treeContext,An=Gr(m.nextSibling),xn=s,ft=!0,Wn=null,i!==null&&(Rn[Pn++]=Cr,Rn[Pn++]=kr,Rn[Pn++]=wi,Cr=i.id,kr=i.overflow,wi=s),s=Dh(s,c.children),s.flags|=4096,s)}function ub(i,s,a){i.lanes|=s;var c=i.alternate;c!==null&&(c.lanes|=s),dh(i.return,s,a)}function Mh(i,s,a,c,m){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:m}:(E.isBackwards=s,E.rendering=null,E.renderingStartTime=0,E.last=c,E.tail=a,E.tailMode=m)}function ab(i,s,a){var c=s.pendingProps,m=c.revealOrder,E=c.tail;if(Zt(i,s,c.children,a),c=pt.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&ub(i,a,s);else if(i.tag===19)ub(i,a,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}c&=1}if(ot(pt,c),(s.mode&1)===0)s.memoizedState=null;else switch(m){case"forwards":for(a=s.child,m=null;a!==null;)i=a.alternate,i!==null&&Al(i)===null&&(m=a),a=a.sibling;a=m,a===null?(m=s.child,s.child=null):(m=a.sibling,a.sibling=null),Mh(s,!1,m,a,E);break;case"backwards":for(a=null,m=s.child,s.child=null;m!==null;){if(i=m.alternate,i!==null&&Al(i)===null){s.child=m;break}i=m.sibling,m.sibling=a,a=m,m=i}Mh(s,!0,a,null,E);break;case"together":Mh(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Rl(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function vr(i,s,a){if(i!==null&&(s.dependencies=i.dependencies),Ri|=s.lanes,(a&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,a=si(i,i.pendingProps),s.child=a,a.return=s;i.sibling!==null;)i=i.sibling,a=a.sibling=si(i,i.pendingProps),a.return=s;a.sibling=null}return s.child}function VL(i,s,a){switch(s.tag){case 3:ib(s),Ps();break;case 5:ST(s);break;case 1:hn(s.type)&&pl(s);break;case 4:mh(s,s.stateNode.containerInfo);break;case 10:var c=s.type._context,m=s.memoizedProps.value;ot(bl,c._currentValue),c._currentValue=m;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(ot(pt,pt.current&1),s.flags|=128,null):(a&s.child.childLanes)!==0?ob(i,s,a):(ot(pt,pt.current&1),i=vr(i,s,a),i!==null?i.sibling:null);ot(pt,pt.current&1);break;case 19:if(c=(a&s.childLanes)!==0,(i.flags&128)!==0){if(c)return ab(i,s,a);s.flags|=128}if(m=s.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ot(pt,pt.current),c)break;return null;case 22:case 23:return s.lanes=0,tb(i,s,a)}return vr(i,s,a)}var lb,Fh,cb,fb;lb=function(i,s){for(var a=s.child;a!==null;){if(a.tag===5||a.tag===6)i.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Fh=function(){},cb=function(i,s,a,c){var m=i.memoizedProps;if(m!==c){i=s.stateNode,Oi(fr.current);var E=null;switch(a){case"input":m=Uo(i,m),c=Uo(i,c),E=[];break;case"select":m=x({},m,{value:void 0}),c=x({},c,{value:void 0}),E=[];break;case"textarea":m=jo(i,m),c=jo(i,c),E=[];break;default:typeof m.onClick!="function"&&typeof c.onClick=="function"&&(i.onclick=fl)}Ht(a,c);var _;a=null;for(V in m)if(!c.hasOwnProperty(V)&&m.hasOwnProperty(V)&&m[V]!=null)if(V==="style"){var N=m[V];for(_ in N)N.hasOwnProperty(_)&&(a||(a={}),a[_]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(o.hasOwnProperty(V)?E||(E=[]):(E=E||[]).push(V,null));for(V in c){var R=c[V];if(N=m!=null?m[V]:void 0,c.hasOwnProperty(V)&&R!==N&&(R!=null||N!=null))if(V==="style")if(N){for(_ in N)!N.hasOwnProperty(_)||R&&R.hasOwnProperty(_)||(a||(a={}),a[_]="");for(_ in R)R.hasOwnProperty(_)&&N[_]!==R[_]&&(a||(a={}),a[_]=R[_])}else a||(E||(E=[]),E.push(V,a)),a=R;else V==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,N=N?N.__html:void 0,R!=null&&N!==R&&(E=E||[]).push(V,R)):V==="children"?typeof R!="string"&&typeof R!="number"||(E=E||[]).push(V,""+R):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(o.hasOwnProperty(V)?(R!=null&&V==="onScroll"&&ut("scroll",i),E||N===R||(E=[])):(E=E||[]).push(V,R))}a&&(E=E||[]).push("style",a);var V=E;(s.updateQueue=V)&&(s.flags|=4)}},fb=function(i,s,a,c){a!==c&&(s.flags|=4)};function Tu(i,s){if(!ft)switch(i.tailMode){case"hidden":s=i.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?i.tail=null:a.sibling=null;break;case"collapsed":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:c.sibling=null}}function Kt(i){var s=i.alternate!==null&&i.alternate.child===i.child,a=0,c=0;if(s)for(var m=i.child;m!==null;)a|=m.lanes|m.childLanes,c|=m.subtreeFlags&14680064,c|=m.flags&14680064,m.return=i,m=m.sibling;else for(m=i.child;m!==null;)a|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=i,m=m.sibling;return i.subtreeFlags|=c,i.childLanes=a,s}function YL(i,s,a){var c=s.pendingProps;switch(sh(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(s),null;case 1:return hn(s.type)&&hl(),Kt(s),null;case 3:return c=s.stateNode,Fs(),at(dn),at(Wt),yh(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(yl(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Wn!==null&&(Gh(Wn),Wn=null))),Fh(i,s),Kt(s),null;case 5:gh(s);var m=Oi(pu.current);if(a=s.type,i!==null&&s.stateNode!=null)cb(i,s,a,c,m),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!c){if(s.stateNode===null)throw Error(n(166));return Kt(s),null}if(i=Oi(fr.current),yl(s)){c=s.stateNode,a=s.type;var E=s.memoizedProps;switch(c[cr]=s,c[lu]=E,i=(s.mode&1)!==0,a){case"dialog":ut("cancel",c),ut("close",c);break;case"iframe":case"object":case"embed":ut("load",c);break;case"video":case"audio":for(m=0;m<ou.length;m++)ut(ou[m],c);break;case"source":ut("error",c);break;case"img":case"image":case"link":ut("error",c),ut("load",c);break;case"details":ut("toggle",c);break;case"input":Ho(c,E),ut("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!E.multiple},ut("invalid",c);break;case"textarea":za(c,E),ut("invalid",c)}Ht(a,E),m=null;for(var _ in E)if(E.hasOwnProperty(_)){var N=E[_];_==="children"?typeof N=="string"?c.textContent!==N&&(E.suppressHydrationWarning!==!0&&cl(c.textContent,N,i),m=["children",N]):typeof N=="number"&&c.textContent!==""+N&&(E.suppressHydrationWarning!==!0&&cl(c.textContent,N,i),m=["children",""+N]):o.hasOwnProperty(_)&&N!=null&&_==="onScroll"&&ut("scroll",c)}switch(a){case"input":_r(c),Ha(c,E,!0);break;case"textarea":_r(c),$a(c);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(c.onclick=fl)}c=m,s.updateQueue=c,c!==null&&(s.flags|=4)}else{_=m.nodeType===9?m:m.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=K(a)),i==="http://www.w3.org/1999/xhtml"?a==="script"?(i=_.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof c.is=="string"?i=_.createElement(a,{is:c.is}):(i=_.createElement(a),a==="select"&&(_=i,c.multiple?_.multiple=!0:c.size&&(_.size=c.size))):i=_.createElementNS(i,a),i[cr]=s,i[lu]=c,lb(i,s,!1,!1),s.stateNode=i;e:{switch(_=ar(a,c),a){case"dialog":ut("cancel",i),ut("close",i),m=c;break;case"iframe":case"object":case"embed":ut("load",i),m=c;break;case"video":case"audio":for(m=0;m<ou.length;m++)ut(ou[m],i);m=c;break;case"source":ut("error",i),m=c;break;case"img":case"image":case"link":ut("error",i),ut("load",i),m=c;break;case"details":ut("toggle",i),m=c;break;case"input":Ho(i,c),m=Uo(i,c),ut("invalid",i);break;case"option":m=c;break;case"select":i._wrapperState={wasMultiple:!!c.multiple},m=x({},c,{value:void 0}),ut("invalid",i);break;case"textarea":za(i,c),m=jo(i,c),ut("invalid",i);break;default:m=c}Ht(a,m),N=m;for(E in N)if(N.hasOwnProperty(E)){var R=N[E];E==="style"?zr(i,R):E==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&je(i,R)):E==="children"?typeof R=="string"?(a!=="textarea"||R!=="")&&Ke(i,R):typeof R=="number"&&Ke(i,""+R):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(o.hasOwnProperty(E)?R!=null&&E==="onScroll"&&ut("scroll",i):R!=null&&j(i,E,R,_))}switch(a){case"input":_r(i),Ha(i,c,!1);break;case"textarea":_r(i),$a(i);break;case"option":c.value!=null&&i.setAttribute("value",""+ze(c.value));break;case"select":i.multiple=!!c.multiple,E=c.value,E!=null?Hr(i,!!c.multiple,E,!1):c.defaultValue!=null&&Hr(i,!!c.multiple,c.defaultValue,!0);break;default:typeof m.onClick=="function"&&(i.onclick=fl)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Kt(s),null;case 6:if(i&&s.stateNode!=null)fb(i,s,i.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(a=Oi(pu.current),Oi(fr.current),yl(s)){if(c=s.stateNode,a=s.memoizedProps,c[cr]=s,(E=c.nodeValue!==a)&&(i=xn,i!==null))switch(i.tag){case 3:cl(c.nodeValue,a,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&cl(c.nodeValue,a,(i.mode&1)!==0)}E&&(s.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[cr]=s,s.stateNode=c}return Kt(s),null;case 13:if(at(pt),c=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(ft&&An!==null&&(s.mode&1)!==0&&(s.flags&128)===0)pT(),Ps(),s.flags|=98560,E=!1;else if(E=yl(s),c!==null&&c.dehydrated!==null){if(i===null){if(!E)throw Error(n(318));if(E=s.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(n(317));E[cr]=s}else Ps(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Kt(s),E=!1}else Wn!==null&&(Gh(Wn),Wn=null),E=!0;if(!E)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=a,s):(c=c!==null,c!==(i!==null&&i.memoizedState!==null)&&c&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(pt.current&1)!==0?Ot===0&&(Ot=3):Xh())),s.updateQueue!==null&&(s.flags|=4),Kt(s),null);case 4:return Fs(),Fh(i,s),i===null&&uu(s.stateNode.containerInfo),Kt(s),null;case 10:return fh(s.type._context),Kt(s),null;case 17:return hn(s.type)&&hl(),Kt(s),null;case 19:if(at(pt),E=s.memoizedState,E===null)return Kt(s),null;if(c=(s.flags&128)!==0,_=E.rendering,_===null)if(c)Tu(E,!1);else{if(Ot!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(_=Al(i),_!==null){for(s.flags|=128,Tu(E,!1),c=_.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),s.subtreeFlags=0,c=a,a=s.child;a!==null;)E=a,i=c,E.flags&=14680066,_=E.alternate,_===null?(E.childLanes=0,E.lanes=i,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=_.childLanes,E.lanes=_.lanes,E.child=_.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=_.memoizedProps,E.memoizedState=_.memoizedState,E.updateQueue=_.updateQueue,E.type=_.type,i=_.dependencies,E.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a=a.sibling;return ot(pt,pt.current&1|2),s.child}i=i.sibling}E.tail!==null&&_t()>zs&&(s.flags|=128,c=!0,Tu(E,!1),s.lanes=4194304)}else{if(!c)if(i=Al(_),i!==null){if(s.flags|=128,c=!0,a=i.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),Tu(E,!0),E.tail===null&&E.tailMode==="hidden"&&!_.alternate&&!ft)return Kt(s),null}else 2*_t()-E.renderingStartTime>zs&&a!==1073741824&&(s.flags|=128,c=!0,Tu(E,!1),s.lanes=4194304);E.isBackwards?(_.sibling=s.child,s.child=_):(a=E.last,a!==null?a.sibling=_:s.child=_,E.last=_)}return E.tail!==null?(s=E.tail,E.rendering=s,E.tail=s.sibling,E.renderingStartTime=_t(),s.sibling=null,a=pt.current,ot(pt,c?a&1|2:a&1),s):(Kt(s),null);case 22:case 23:return Qh(),c=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(Cn&1073741824)!==0&&(Kt(s),s.subtreeFlags&6&&(s.flags|=8192)):Kt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function qL(i,s){switch(sh(s),s.tag){case 1:return hn(s.type)&&hl(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Fs(),at(dn),at(Wt),yh(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return gh(s),null;case 13:if(at(pt),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Ps()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return at(pt),null;case 4:return Fs(),null;case 10:return fh(s.type._context),null;case 22:case 23:return Qh(),null;case 24:return null;default:return null}}var Pl=!1,Qt=!1,WL=typeof WeakSet=="function"?WeakSet:Set,Te=null;function Us(i,s){var a=i.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){Et(i,s,c)}else a.current=null}function Bh(i,s,a){try{a()}catch(c){Et(i,s,c)}}var db=!1;function GL(i,s){if(Qd=Za,i=Vy(),jd(i)){if("selectionStart"in i)var a={start:i.selectionStart,end:i.selectionEnd};else e:{a=(a=i.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var m=c.anchorOffset,E=c.focusNode;c=c.focusOffset;try{a.nodeType,E.nodeType}catch(le){a=null;break e}var _=0,N=-1,R=-1,V=0,ne=0,ie=i,J=null;t:for(;;){for(var ye;ie!==a||m!==0&&ie.nodeType!==3||(N=_+m),ie!==E||c!==0&&ie.nodeType!==3||(R=_+c),ie.nodeType===3&&(_+=ie.nodeValue.length),(ye=ie.firstChild)!==null;)J=ie,ie=ye;for(;;){if(ie===i)break t;if(J===a&&++V===m&&(N=_),J===E&&++ne===c&&(R=_),(ye=ie.nextSibling)!==null)break;ie=J,J=ie.parentNode}ie=ye}a=N===-1||R===-1?null:{start:N,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xd={focusedElem:i,selectionRange:a},Za=!1,Te=s;Te!==null;)if(s=Te,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Te=i;else for(;Te!==null;){s=Te;try{var _e=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(_e!==null){var Se=_e.memoizedProps,St=_e.memoizedState,B=s.stateNode,D=B.getSnapshotBeforeUpdate(s.elementType===s.type?Se:Gn(s.type,Se),St);B.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var z=s.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(le){Et(s,s.return,le)}if(i=s.sibling,i!==null){i.return=s.return,Te=i;break}Te=s.return}return _e=db,db=!1,_e}function bu(i,s,a){var c=s.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var m=c=c.next;do{if((m.tag&i)===i){var E=m.destroy;m.destroy=void 0,E!==void 0&&Bh(s,a,E)}m=m.next}while(m!==c)}}function Ll(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&i)===i){var c=a.create;a.destroy=c()}a=a.next}while(a!==s)}}function Uh(i){var s=i.ref;if(s!==null){var a=i.stateNode;switch(i.tag){case 5:i=a;break;default:i=a}typeof s=="function"?s(i):s.current=i}}function hb(i){var s=i.alternate;s!==null&&(i.alternate=null,hb(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[cr],delete s[lu],delete s[th],delete s[OL],delete s[IL])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function pb(i){return i.tag===5||i.tag===3||i.tag===4}function mb(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||pb(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Hh(i,s,a){var c=i.tag;if(c===5||c===6)i=i.stateNode,s?a.nodeType===8?a.parentNode.insertBefore(i,s):a.insertBefore(i,s):(a.nodeType===8?(s=a.parentNode,s.insertBefore(i,a)):(s=a,s.appendChild(i)),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=fl));else if(c!==4&&(i=i.child,i!==null))for(Hh(i,s,a),i=i.sibling;i!==null;)Hh(i,s,a),i=i.sibling}function zh(i,s,a){var c=i.tag;if(c===5||c===6)i=i.stateNode,s?a.insertBefore(i,s):a.appendChild(i);else if(c!==4&&(i=i.child,i!==null))for(zh(i,s,a),i=i.sibling;i!==null;)zh(i,s,a),i=i.sibling}var zt=null,Kn=!1;function ei(i,s,a){for(a=a.child;a!==null;)gb(i,s,a),a=a.sibling}function gb(i,s,a){if(lr&&typeof lr.onCommitFiberUnmount=="function")try{lr.onCommitFiberUnmount(Wa,a)}catch(N){}switch(a.tag){case 5:Qt||Us(a,s);case 6:var c=zt,m=Kn;zt=null,ei(i,s,a),zt=c,Kn=m,zt!==null&&(Kn?(i=zt,a=a.stateNode,i.nodeType===8?i.parentNode.removeChild(a):i.removeChild(a)):zt.removeChild(a.stateNode));break;case 18:zt!==null&&(Kn?(i=zt,a=a.stateNode,i.nodeType===8?eh(i.parentNode,a):i.nodeType===1&&eh(i,a),Jo(i)):eh(zt,a.stateNode));break;case 4:c=zt,m=Kn,zt=a.stateNode.containerInfo,Kn=!0,ei(i,s,a),zt=c,Kn=m;break;case 0:case 11:case 14:case 15:if(!Qt&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){m=c=c.next;do{var E=m,_=E.destroy;E=E.tag,_!==void 0&&((E&2)!==0||(E&4)!==0)&&Bh(a,s,_),m=m.next}while(m!==c)}ei(i,s,a);break;case 1:if(!Qt&&(Us(a,s),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(N){Et(a,s,N)}ei(i,s,a);break;case 21:ei(i,s,a);break;case 22:a.mode&1?(Qt=(c=Qt)||a.memoizedState!==null,ei(i,s,a),Qt=c):ei(i,s,a);break;default:ei(i,s,a)}}function Eb(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var a=i.stateNode;a===null&&(a=i.stateNode=new WL),s.forEach(function(c){var m=r4.bind(null,i,c);a.has(c)||(a.add(c),c.then(m,m))})}}function Qn(i,s){var a=s.deletions;if(a!==null)for(var c=0;c<a.length;c++){var m=a[c];try{var E=i,_=s,N=_;e:for(;N!==null;){switch(N.tag){case 5:zt=N.stateNode,Kn=!1;break e;case 3:zt=N.stateNode.containerInfo,Kn=!0;break e;case 4:zt=N.stateNode.containerInfo,Kn=!0;break e}N=N.return}if(zt===null)throw Error(n(160));gb(E,_,m),zt=null,Kn=!1;var R=m.alternate;R!==null&&(R.return=null),m.return=null}catch(V){Et(m,s,V)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)yb(s,i),s=s.sibling}function yb(i,s){var a=i.alternate,c=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Qn(s,i),hr(i),c&4){try{bu(3,i,i.return),Ll(3,i)}catch(Se){Et(i,i.return,Se)}try{bu(5,i,i.return)}catch(Se){Et(i,i.return,Se)}}break;case 1:Qn(s,i),hr(i),c&512&&a!==null&&Us(a,a.return);break;case 5:if(Qn(s,i),hr(i),c&512&&a!==null&&Us(a,a.return),i.flags&32){var m=i.stateNode;try{Ke(m,"")}catch(Se){Et(i,i.return,Se)}}if(c&4&&(m=i.stateNode,m!=null)){var E=i.memoizedProps,_=a!==null?a.memoizedProps:E,N=i.type,R=i.updateQueue;if(i.updateQueue=null,R!==null)try{N==="input"&&E.type==="radio"&&E.name!=null&&zo(m,E),ar(N,_);var V=ar(N,E);for(_=0;_<R.length;_+=2){var ne=R[_],ie=R[_+1];ne==="style"?zr(m,ie):ne==="dangerouslySetInnerHTML"?je(m,ie):ne==="children"?Ke(m,ie):j(m,ne,ie,V)}switch(N){case"input":Es(m,E);break;case"textarea":ja(m,E);break;case"select":var J=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!E.multiple;var ye=E.value;ye!=null?Hr(m,!!E.multiple,ye,!1):J!==!!E.multiple&&(E.defaultValue!=null?Hr(m,!!E.multiple,E.defaultValue,!0):Hr(m,!!E.multiple,E.multiple?[]:"",!1))}m[lu]=E}catch(Se){Et(i,i.return,Se)}}break;case 6:if(Qn(s,i),hr(i),c&4){if(i.stateNode===null)throw Error(n(162));m=i.stateNode,E=i.memoizedProps;try{m.nodeValue=E}catch(Se){Et(i,i.return,Se)}}break;case 3:if(Qn(s,i),hr(i),c&4&&a!==null&&a.memoizedState.isDehydrated)try{Jo(s.containerInfo)}catch(Se){Et(i,i.return,Se)}break;case 4:Qn(s,i),hr(i);break;case 13:Qn(s,i),hr(i),m=i.child,m.flags&8192&&(E=m.memoizedState!==null,m.stateNode.isHidden=E,!E||m.alternate!==null&&m.alternate.memoizedState!==null||(Vh=_t())),c&4&&Eb(i);break;case 22:if(ne=a!==null&&a.memoizedState!==null,i.mode&1?(Qt=(V=Qt)||ne,Qn(s,i),Qt=V):Qn(s,i),hr(i),c&8192){if(V=i.memoizedState!==null,(i.stateNode.isHidden=V)&&!ne&&(i.mode&1)!==0)for(Te=i,ne=i.child;ne!==null;){for(ie=Te=ne;Te!==null;){switch(J=Te,ye=J.child,J.tag){case 0:case 11:case 14:case 15:bu(4,J,J.return);break;case 1:Us(J,J.return);var _e=J.stateNode;if(typeof _e.componentWillUnmount=="function"){c=J,a=J.return;try{s=c,_e.props=s.memoizedProps,_e.state=s.memoizedState,_e.componentWillUnmount()}catch(Se){Et(c,a,Se)}}break;case 5:Us(J,J.return);break;case 22:if(J.memoizedState!==null){_b(ie);continue}}ye!==null?(ye.return=J,Te=ye):_b(ie)}ne=ne.sibling}e:for(ne=null,ie=i;;){if(ie.tag===5){if(ne===null){ne=ie;try{m=ie.stateNode,V?(E=m.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(N=ie.stateNode,R=ie.memoizedProps.style,_=R!=null&&R.hasOwnProperty("display")?R.display:null,N.style.display=In("display",_))}catch(Se){Et(i,i.return,Se)}}}else if(ie.tag===6){if(ne===null)try{ie.stateNode.nodeValue=V?"":ie.memoizedProps}catch(Se){Et(i,i.return,Se)}}else if((ie.tag!==22&&ie.tag!==23||ie.memoizedState===null||ie===i)&&ie.child!==null){ie.child.return=ie,ie=ie.child;continue}if(ie===i)break e;for(;ie.sibling===null;){if(ie.return===null||ie.return===i)break e;ne===ie&&(ne=null),ie=ie.return}ne===ie&&(ne=null),ie.sibling.return=ie.return,ie=ie.sibling}}break;case 19:Qn(s,i),hr(i),c&4&&Eb(i);break;case 21:break;default:Qn(s,i),hr(i)}}function hr(i){var s=i.flags;if(s&2){try{e:{for(var a=i.return;a!==null;){if(pb(a)){var c=a;break e}a=a.return}throw Error(n(160))}switch(c.tag){case 5:var m=c.stateNode;c.flags&32&&(Ke(m,""),c.flags&=-33);var E=mb(i);zh(i,E,m);break;case 3:case 4:var _=c.stateNode.containerInfo,N=mb(i);Hh(i,N,_);break;default:throw Error(n(161))}}catch(R){Et(i,i.return,R)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function KL(i,s,a){Te=i,Tb(i)}function Tb(i,s,a){for(var c=(i.mode&1)!==0;Te!==null;){var m=Te,E=m.child;if(m.tag===22&&c){var _=m.memoizedState!==null||Pl;if(!_){var N=m.alternate,R=N!==null&&N.memoizedState!==null||Qt;N=Pl;var V=Qt;if(Pl=_,(Qt=R)&&!V)for(Te=m;Te!==null;)_=Te,R=_.child,_.tag===22&&_.memoizedState!==null?Sb(m):R!==null?(R.return=_,Te=R):Sb(m);for(;E!==null;)Te=E,Tb(E),E=E.sibling;Te=m,Pl=N,Qt=V}bb(i)}else(m.subtreeFlags&8772)!==0&&E!==null?(E.return=m,Te=E):bb(i)}}function bb(i){for(;Te!==null;){var s=Te;if((s.flags&8772)!==0){var a=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Qt||Ll(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!Qt)if(a===null)c.componentDidMount();else{var m=s.elementType===s.type?a.memoizedProps:Gn(s.type,a.memoizedProps);c.componentDidUpdate(m,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var E=s.updateQueue;E!==null&&_T(s,E,c);break;case 3:var _=s.updateQueue;if(_!==null){if(a=null,s.child!==null)switch(s.child.tag){case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}_T(s,_,a)}break;case 5:var N=s.stateNode;if(a===null&&s.flags&4){a=N;var R=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&a.focus();break;case"img":R.src&&(a.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var V=s.alternate;if(V!==null){var ne=V.memoizedState;if(ne!==null){var ie=ne.dehydrated;ie!==null&&Jo(ie)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Qt||s.flags&512&&Uh(s)}catch(J){Et(s,s.return,J)}}if(s===i){Te=null;break}if(a=s.sibling,a!==null){a.return=s.return,Te=a;break}Te=s.return}}function _b(i){for(;Te!==null;){var s=Te;if(s===i){Te=null;break}var a=s.sibling;if(a!==null){a.return=s.return,Te=a;break}Te=s.return}}function Sb(i){for(;Te!==null;){var s=Te;try{switch(s.tag){case 0:case 11:case 15:var a=s.return;try{Ll(4,s)}catch(R){Et(s,a,R)}break;case 1:var c=s.stateNode;if(typeof c.componentDidMount=="function"){var m=s.return;try{c.componentDidMount()}catch(R){Et(s,m,R)}}var E=s.return;try{Uh(s)}catch(R){Et(s,E,R)}break;case 5:var _=s.return;try{Uh(s)}catch(R){Et(s,_,R)}}}catch(R){Et(s,s.return,R)}if(s===i){Te=null;break}var N=s.sibling;if(N!==null){N.return=s.return,Te=N;break}Te=s.return}}var QL=Math.ceil,Dl=te.ReactCurrentDispatcher,jh=te.ReactCurrentOwner,Mn=te.ReactCurrentBatchConfig,Qe=0,Mt=null,Nt=null,jt=0,Cn=0,Hs=Kr(0),Ot=0,_u=null,Ri=0,Ml=0,$h=0,Su=null,mn=null,Vh=0,zs=1/0,Or=null,Fl=!1,Yh=null,ti=null,Bl=!1,ni=null,Ul=0,xu=0,qh=null,Hl=-1,zl=0;function en(){return(Qe&6)!==0?_t():Hl!==-1?Hl:Hl=_t()}function ri(i){return(i.mode&1)===0?1:(Qe&2)!==0&&jt!==0?jt&-jt:PL.transition!==null?(zl===0&&(zl=my()),zl):(i=tt,i!==0||(i=window.event,i=i===void 0?16:Ay(i.type)),i)}function Xn(i,s,a,c){if(50<xu)throw xu=0,qh=null,Error(n(185));Wo(i,a,c),((Qe&2)===0||i!==Mt)&&(i===Mt&&((Qe&2)===0&&(Ml|=a),Ot===4&&ii(i,jt)),gn(i,c),a===1&&Qe===0&&(s.mode&1)===0&&(zs=_t()+500,ml&&Xr()))}function gn(i,s){var a=i.callbackNode;PP(i,s);var c=Qa(i,i===Mt?jt:0);if(c===0)a!==null&&dy(a),i.callbackNode=null,i.callbackPriority=0;else if(s=c&-c,i.callbackPriority!==s){if(a!=null&&dy(a),s===1)i.tag===0?RL(Ab.bind(null,i)):lT(Ab.bind(null,i)),NL(function(){(Qe&6)===0&&Xr()}),a=null;else{switch(gy(c)){case 1:a=Cd;break;case 4:a=hy;break;case 16:a=qa;break;case 536870912:a=py;break;default:a=qa}a=Rb(a,xb.bind(null,i))}i.callbackPriority=s,i.callbackNode=a}}function xb(i,s){if(Hl=-1,zl=0,(Qe&6)!==0)throw Error(n(327));var a=i.callbackNode;if(js()&&i.callbackNode!==a)return null;var c=Qa(i,i===Mt?jt:0);if(c===0)return null;if((c&30)!==0||(c&i.expiredLanes)!==0||s)s=jl(i,c);else{s=c;var m=Qe;Qe|=2;var E=kb();(Mt!==i||jt!==s)&&(Or=null,zs=_t()+500,Li(i,s));do try{ZL();break}catch(N){Cb(i,N)}while(!0);ch(),Dl.current=E,Qe=m,Nt!==null?s=0:(Mt=null,jt=0,s=Ot)}if(s!==0){if(s===2&&(m=kd(i),m!==0&&(c=m,s=Wh(i,m))),s===1)throw a=_u,Li(i,0),ii(i,c),gn(i,_t()),a;if(s===6)ii(i,c);else{if(m=i.current.alternate,(c&30)===0&&!XL(m)&&(s=jl(i,c),s===2&&(E=kd(i),E!==0&&(c=E,s=Wh(i,E))),s===1))throw a=_u,Li(i,0),ii(i,c),gn(i,_t()),a;switch(i.finishedWork=m,i.finishedLanes=c,s){case 0:case 1:throw Error(n(345));case 2:Di(i,mn,Or);break;case 3:if(ii(i,c),(c&130023424)===c&&(s=Vh+500-_t(),10<s)){if(Qa(i,0)!==0)break;if(m=i.suspendedLanes,(m&c)!==c){en(),i.pingedLanes|=i.suspendedLanes&m;break}i.timeoutHandle=Zd(Di.bind(null,i,mn,Or),s);break}Di(i,mn,Or);break;case 4:if(ii(i,c),(c&4194240)===c)break;for(s=i.eventTimes,m=-1;0<c;){var _=31-Yn(c);E=1<<_,_=s[_],_>m&&(m=_),c&=~E}if(c=m,c=_t()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*QL(c/1960))-c,10<c){i.timeoutHandle=Zd(Di.bind(null,i,mn,Or),c);break}Di(i,mn,Or);break;case 5:Di(i,mn,Or);break;default:throw Error(n(329))}}}return gn(i,_t()),i.callbackNode===a?xb.bind(null,i):null}function Wh(i,s){var a=Su;return i.current.memoizedState.isDehydrated&&(Li(i,s).flags|=256),i=jl(i,s),i!==2&&(s=mn,mn=a,s!==null&&Gh(s)),i}function Gh(i){mn===null?mn=i:mn.push.apply(mn,i)}function XL(i){for(var s=i;;){if(s.flags&16384){var a=s.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var m=a[c],E=m.getSnapshot;m=m.value;try{if(!qn(E(),m))return!1}catch(_){return!1}}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ii(i,s){for(s&=~$h,s&=~Ml,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var a=31-Yn(s),c=1<<a;i[a]=-1,s&=~c}}function Ab(i){if((Qe&6)!==0)throw Error(n(327));js();var s=Qa(i,0);if((s&1)===0)return gn(i,_t()),null;var a=jl(i,s);if(i.tag!==0&&a===2){var c=kd(i);c!==0&&(s=c,a=Wh(i,c))}if(a===1)throw a=_u,Li(i,0),ii(i,s),gn(i,_t()),a;if(a===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,Di(i,mn,Or),gn(i,_t()),null}function Kh(i,s){var a=Qe;Qe|=1;try{return i(s)}finally{Qe=a,Qe===0&&(zs=_t()+500,ml&&Xr())}}function Pi(i){ni!==null&&ni.tag===0&&(Qe&6)===0&&js();var s=Qe;Qe|=1;var a=Mn.transition,c=tt;try{if(Mn.transition=null,tt=1,i)return i()}finally{tt=c,Mn.transition=a,Qe=s,(Qe&6)===0&&Xr()}}function Qh(){Cn=Hs.current,at(Hs)}function Li(i,s){i.finishedWork=null,i.finishedLanes=0;var a=i.timeoutHandle;if(a!==-1&&(i.timeoutHandle=-1,wL(a)),Nt!==null)for(a=Nt.return;a!==null;){var c=a;switch(sh(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&hl();break;case 3:Fs(),at(dn),at(Wt),yh();break;case 5:gh(c);break;case 4:Fs();break;case 13:at(pt);break;case 19:at(pt);break;case 10:fh(c.type._context);break;case 22:case 23:Qh()}a=a.return}if(Mt=i,Nt=i=si(i.current,null),jt=Cn=s,Ot=0,_u=null,$h=Ml=Ri=0,mn=Su=null,vi!==null){for(s=0;s<vi.length;s++)if(a=vi[s],c=a.interleaved,c!==null){a.interleaved=null;var m=c.next,E=a.pending;if(E!==null){var _=E.next;E.next=m,c.next=_}a.pending=c}vi=null}return i}function Cb(i,s){do{var a=Nt;try{if(ch(),Cl.current=vl,kl){for(var c=mt.memoizedState;c!==null;){var m=c.queue;m!==null&&(m.pending=null),c=c.next}kl=!1}if(Ii=0,Dt=vt=mt=null,mu=!1,gu=0,jh.current=null,a===null||a.return===null){Ot=1,_u=s,Nt=null;break}e:{var E=i,_=a.return,N=a,R=s;if(s=jt,N.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var V=R,ne=N,ie=ne.tag;if((ne.mode&1)===0&&(ie===0||ie===11||ie===15)){var J=ne.alternate;J?(ne.updateQueue=J.updateQueue,ne.memoizedState=J.memoizedState,ne.lanes=J.lanes):(ne.updateQueue=null,ne.memoizedState=null)}var ye=QT(_);if(ye!==null){ye.flags&=-257,XT(ye,_,N,E,s),ye.mode&1&&KT(E,V,s),s=ye,R=V;var _e=s.updateQueue;if(_e===null){var Se=new Set;Se.add(R),s.updateQueue=Se}else _e.add(R);break e}else{if((s&1)===0){KT(E,V,s),Xh();break e}R=Error(n(426))}}else if(ft&&N.mode&1){var St=QT(_);if(St!==null){(St.flags&65536)===0&&(St.flags|=256),XT(St,_,N,E,s),ah(Bs(R,N));break e}}E=R=Bs(R,N),Ot!==4&&(Ot=2),Su===null?Su=[E]:Su.push(E),E=_;do{switch(E.tag){case 3:E.flags|=65536,s&=-s,E.lanes|=s;var B=WT(E,R,s);bT(E,B);break e;case 1:N=R;var D=E.type,z=E.stateNode;if((E.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(ti===null||!ti.has(z)))){E.flags|=65536,s&=-s,E.lanes|=s;var le=GT(E,N,s);bT(E,le);break e}}E=E.return}while(E!==null)}Nb(a)}catch(xe){s=xe,Nt===a&&a!==null&&(Nt=a=a.return);continue}break}while(!0)}function kb(){var i=Dl.current;return Dl.current=vl,i===null?vl:i}function Xh(){(Ot===0||Ot===3||Ot===2)&&(Ot=4),Mt===null||(Ri&268435455)===0&&(Ml&268435455)===0||ii(Mt,jt)}function jl(i,s){var a=Qe;Qe|=2;var c=kb();(Mt!==i||jt!==s)&&(Or=null,Li(i,s));do try{JL();break}catch(m){Cb(i,m)}while(!0);if(ch(),Qe=a,Dl.current=c,Nt!==null)throw Error(n(261));return Mt=null,jt=0,Ot}function JL(){for(;Nt!==null;)wb(Nt)}function ZL(){for(;Nt!==null&&!AP();)wb(Nt)}function wb(i){var s=Ib(i.alternate,i,Cn);i.memoizedProps=i.pendingProps,s===null?Nb(i):Nt=s,jh.current=null}function Nb(i){var s=i;do{var a=s.alternate;if(i=s.return,(s.flags&32768)===0){if(a=YL(a,s,Cn),a!==null){Nt=a;return}}else{if(a=qL(a,s),a!==null){a.flags&=32767,Nt=a;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Ot=6,Nt=null;return}}if(s=s.sibling,s!==null){Nt=s;return}Nt=s=i}while(s!==null);Ot===0&&(Ot=5)}function Di(i,s,a){var c=tt,m=Mn.transition;try{Mn.transition=null,tt=1,e4(i,s,a,c)}finally{Mn.transition=m,tt=c}return null}function e4(i,s,a,c){do js();while(ni!==null);if((Qe&6)!==0)throw Error(n(327));a=i.finishedWork;var m=i.finishedLanes;if(a===null)return null;if(i.finishedWork=null,i.finishedLanes=0,a===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var E=a.lanes|a.childLanes;if(LP(i,E),i===Mt&&(Nt=Mt=null,jt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Bl||(Bl=!0,Rb(qa,function(){return js(),null})),E=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||E){E=Mn.transition,Mn.transition=null;var _=tt;tt=1;var N=Qe;Qe|=4,jh.current=null,GL(i,a),yb(a,i),bL(Xd),Za=!!Qd,Xd=Qd=null,i.current=a,KL(a),CP(),Qe=N,tt=_,Mn.transition=E}else i.current=a;if(Bl&&(Bl=!1,ni=i,Ul=m),E=i.pendingLanes,E===0&&(ti=null),NP(a.stateNode),gn(i,_t()),s!==null)for(c=i.onRecoverableError,a=0;a<s.length;a++)m=s[a],c(m.value,{componentStack:m.stack,digest:m.digest});if(Fl)throw Fl=!1,i=Yh,Yh=null,i;return(Ul&1)!==0&&i.tag!==0&&js(),E=i.pendingLanes,(E&1)!==0?i===qh?xu++:(xu=0,qh=i):xu=0,Xr(),null}function js(){if(ni!==null){var i=gy(Ul),s=Mn.transition,a=tt;try{if(Mn.transition=null,tt=16>i?16:i,ni===null)var c=!1;else{if(i=ni,ni=null,Ul=0,(Qe&6)!==0)throw Error(n(331));var m=Qe;for(Qe|=4,Te=i.current;Te!==null;){var E=Te,_=E.child;if((Te.flags&16)!==0){var N=E.deletions;if(N!==null){for(var R=0;R<N.length;R++){var V=N[R];for(Te=V;Te!==null;){var ne=Te;switch(ne.tag){case 0:case 11:case 15:bu(8,ne,E)}var ie=ne.child;if(ie!==null)ie.return=ne,Te=ie;else for(;Te!==null;){ne=Te;var J=ne.sibling,ye=ne.return;if(hb(ne),ne===V){Te=null;break}if(J!==null){J.return=ye,Te=J;break}Te=ye}}}var _e=E.alternate;if(_e!==null){var Se=_e.child;if(Se!==null){_e.child=null;do{var St=Se.sibling;Se.sibling=null,Se=St}while(Se!==null)}}Te=E}}if((E.subtreeFlags&2064)!==0&&_!==null)_.return=E,Te=_;else e:for(;Te!==null;){if(E=Te,(E.flags&2048)!==0)switch(E.tag){case 0:case 11:case 15:bu(9,E,E.return)}var B=E.sibling;if(B!==null){B.return=E.return,Te=B;break e}Te=E.return}}var D=i.current;for(Te=D;Te!==null;){_=Te;var z=_.child;if((_.subtreeFlags&2064)!==0&&z!==null)z.return=_,Te=z;else e:for(_=D;Te!==null;){if(N=Te,(N.flags&2048)!==0)try{switch(N.tag){case 0:case 11:case 15:Ll(9,N)}}catch(xe){Et(N,N.return,xe)}if(N===_){Te=null;break e}var le=N.sibling;if(le!==null){le.return=N.return,Te=le;break e}Te=N.return}}if(Qe=m,Xr(),lr&&typeof lr.onPostCommitFiberRoot=="function")try{lr.onPostCommitFiberRoot(Wa,i)}catch(xe){}c=!0}return c}finally{tt=a,Mn.transition=s}}return!1}function vb(i,s,a){s=Bs(a,s),s=WT(i,s,1),i=Zr(i,s,1),s=en(),i!==null&&(Wo(i,1,s),gn(i,s))}function Et(i,s,a){if(i.tag===3)vb(i,i,a);else for(;s!==null;){if(s.tag===3){vb(s,i,a);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ti===null||!ti.has(c))){i=Bs(a,i),i=GT(s,i,1),s=Zr(s,i,1),i=en(),s!==null&&(Wo(s,1,i),gn(s,i));break}}s=s.return}}function t4(i,s,a){var c=i.pingCache;c!==null&&c.delete(s),s=en(),i.pingedLanes|=i.suspendedLanes&a,Mt===i&&(jt&a)===a&&(Ot===4||Ot===3&&(jt&130023424)===jt&&500>_t()-Vh?Li(i,0):$h|=a),gn(i,s)}function Ob(i,s){s===0&&((i.mode&1)===0?s=1:(s=Ka,Ka<<=1,(Ka&130023424)===0&&(Ka=4194304)));var a=en();i=wr(i,s),i!==null&&(Wo(i,s,a),gn(i,a))}function n4(i){var s=i.memoizedState,a=0;s!==null&&(a=s.retryLane),Ob(i,a)}function r4(i,s){var a=0;switch(i.tag){case 13:var c=i.stateNode,m=i.memoizedState;m!==null&&(a=m.retryLane);break;case 19:c=i.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(s),Ob(i,a)}var Ib;Ib=function(i,s,a){if(i!==null)if(i.memoizedProps!==s.pendingProps||dn.current)pn=!0;else{if((i.lanes&a)===0&&(s.flags&128)===0)return pn=!1,VL(i,s,a);pn=(i.flags&131072)!==0}else pn=!1,ft&&(s.flags&1048576)!==0&&cT(s,El,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;Rl(i,s),i=s.pendingProps;var m=Os(s,Wt.current);Ms(s,a),m=_h(null,s,c,i,m,a);var E=Sh();return s.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,hn(c)?(E=!0,pl(s)):E=!1,s.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,ph(s),m.updater=Ol,s.stateNode=m,m._reactInternals=s,Nh(s,c,i,a),s=Rh(null,s,c,!0,E,a)):(s.tag=0,ft&&E&&ih(s),Zt(null,s,m,a),s=s.child),s;case 16:c=s.elementType;e:{switch(Rl(i,s),i=s.pendingProps,m=c._init,c=m(c._payload),s.type=c,m=s.tag=s4(c),i=Gn(c,i),m){case 0:s=Ih(null,s,c,i,a);break e;case 1:s=rb(null,s,c,i,a);break e;case 11:s=JT(null,s,c,i,a);break e;case 14:s=ZT(null,s,c,Gn(c.type,i),a);break e}throw Error(n(306,c,""))}return s;case 0:return c=s.type,m=s.pendingProps,m=s.elementType===c?m:Gn(c,m),Ih(i,s,c,m,a);case 1:return c=s.type,m=s.pendingProps,m=s.elementType===c?m:Gn(c,m),rb(i,s,c,m,a);case 3:e:{if(ib(s),i===null)throw Error(n(387));c=s.pendingProps,E=s.memoizedState,m=E.element,TT(i,s),xl(s,c,null,a);var _=s.memoizedState;if(c=_.element,E.isDehydrated)if(E={element:c,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},s.updateQueue.baseState=E,s.memoizedState=E,s.flags&256){m=Bs(Error(n(423)),s),s=sb(i,s,c,a,m);break e}else if(c!==m){m=Bs(Error(n(424)),s),s=sb(i,s,c,a,m);break e}else for(An=Gr(s.stateNode.containerInfo.firstChild),xn=s,ft=!0,Wn=null,a=ET(s,null,c,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ps(),c===m){s=vr(i,s,a);break e}Zt(i,s,c,a)}s=s.child}return s;case 5:return ST(s),i===null&&uh(s),c=s.type,m=s.pendingProps,E=i!==null?i.memoizedProps:null,_=m.children,Jd(c,m)?_=null:E!==null&&Jd(c,E)&&(s.flags|=32),nb(i,s),Zt(i,s,_,a),s.child;case 6:return i===null&&uh(s),null;case 13:return ob(i,s,a);case 4:return mh(s,s.stateNode.containerInfo),c=s.pendingProps,i===null?s.child=Ls(s,null,c,a):Zt(i,s,c,a),s.child;case 11:return c=s.type,m=s.pendingProps,m=s.elementType===c?m:Gn(c,m),JT(i,s,c,m,a);case 7:return Zt(i,s,s.pendingProps,a),s.child;case 8:return Zt(i,s,s.pendingProps.children,a),s.child;case 12:return Zt(i,s,s.pendingProps.children,a),s.child;case 10:e:{if(c=s.type._context,m=s.pendingProps,E=s.memoizedProps,_=m.value,ot(bl,c._currentValue),c._currentValue=_,E!==null)if(qn(E.value,_)){if(E.children===m.children&&!dn.current){s=vr(i,s,a);break e}}else for(E=s.child,E!==null&&(E.return=s);E!==null;){var N=E.dependencies;if(N!==null){_=E.child;for(var R=N.firstContext;R!==null;){if(R.context===c){if(E.tag===1){R=Nr(-1,a&-a),R.tag=2;var V=E.updateQueue;if(V!==null){V=V.shared;var ne=V.pending;ne===null?R.next=R:(R.next=ne.next,ne.next=R),V.pending=R}}E.lanes|=a,R=E.alternate,R!==null&&(R.lanes|=a),dh(E.return,a,s),N.lanes|=a;break}R=R.next}}else if(E.tag===10)_=E.type===s.type?null:E.child;else if(E.tag===18){if(_=E.return,_===null)throw Error(n(341));_.lanes|=a,N=_.alternate,N!==null&&(N.lanes|=a),dh(_,a,s),_=E.sibling}else _=E.child;if(_!==null)_.return=E;else for(_=E;_!==null;){if(_===s){_=null;break}if(E=_.sibling,E!==null){E.return=_.return,_=E;break}_=_.return}E=_}Zt(i,s,m.children,a),s=s.child}return s;case 9:return m=s.type,c=s.pendingProps.children,Ms(s,a),m=Ln(m),c=c(m),s.flags|=1,Zt(i,s,c,a),s.child;case 14:return c=s.type,m=Gn(c,s.pendingProps),m=Gn(c.type,m),ZT(i,s,c,m,a);case 15:return eb(i,s,s.type,s.pendingProps,a);case 17:return c=s.type,m=s.pendingProps,m=s.elementType===c?m:Gn(c,m),Rl(i,s),s.tag=1,hn(c)?(i=!0,pl(s)):i=!1,Ms(s,a),YT(s,c,m),Nh(s,c,m,a),Rh(null,s,c,!0,i,a);case 19:return ab(i,s,a);case 22:return tb(i,s,a)}throw Error(n(156,s.tag))};function Rb(i,s){return fy(i,s)}function i4(i,s,a,c){this.tag=i,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fn(i,s,a,c){return new i4(i,s,a,c)}function Jh(i){return i=i.prototype,!(!i||!i.isReactComponent)}function s4(i){if(typeof i=="function")return Jh(i)?1:0;if(i!=null){if(i=i.$$typeof,i===pe)return 11;if(i===be)return 14}return 2}function si(i,s){var a=i.alternate;return a===null?(a=Fn(i.tag,s,i.key,i.mode),a.elementType=i.elementType,a.type=i.type,a.stateNode=i.stateNode,a.alternate=i,i.alternate=a):(a.pendingProps=s,a.type=i.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=i.flags&14680064,a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,s=i.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=i.sibling,a.index=i.index,a.ref=i.ref,a}function $l(i,s,a,c,m,E){var _=2;if(c=i,typeof i=="function")Jh(i)&&(_=1);else if(typeof i=="string")_=5;else e:switch(i){case me:return Mi(a.children,m,E,s);case Ae:_=8,m|=8;break;case Ne:return i=Fn(12,a,s,m|2),i.elementType=Ne,i.lanes=E,i;case ce:return i=Fn(13,a,s,m),i.elementType=ce,i.lanes=E,i;case fe:return i=Fn(19,a,s,m),i.elementType=fe,i.lanes=E,i;case ae:return Vl(a,m,E,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case H:_=10;break e;case ge:_=9;break e;case pe:_=11;break e;case be:_=14;break e;case Le:_=16,c=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return s=Fn(_,a,s,m),s.elementType=i,s.type=c,s.lanes=E,s}function Mi(i,s,a,c){return i=Fn(7,i,c,s),i.lanes=a,i}function Vl(i,s,a,c){return i=Fn(22,i,c,s),i.elementType=ae,i.lanes=a,i.stateNode={isHidden:!1},i}function Zh(i,s,a){return i=Fn(6,i,null,s),i.lanes=a,i}function ep(i,s,a){return s=Fn(4,i.children!==null?i.children:[],i.key,s),s.lanes=a,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function o4(i,s,a,c,m){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wd(0),this.expirationTimes=wd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wd(0),this.identifierPrefix=c,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function tp(i,s,a,c,m,E,_,N,R){return i=new o4(i,s,a,N,R),s===1?(s=1,E===!0&&(s|=8)):s=0,E=Fn(3,null,null,s),i.current=E,E.stateNode=i,E.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},ph(E),i}function u4(i,s,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:c==null?null:""+c,children:i,containerInfo:s,implementation:a}}function Pb(i){if(!i)return Qr;i=i._reactInternals;e:{if(Ai(i)!==i||i.tag!==1)throw Error(n(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(hn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(i.tag===1){var a=i.type;if(hn(a))return uT(i,a,s)}return s}function Lb(i,s,a,c,m,E,_,N,R){return i=tp(a,c,!0,i,m,E,_,N,R),i.context=Pb(null),a=i.current,c=en(),m=ri(a),E=Nr(c,m),E.callback=s!=null?s:null,Zr(a,E,m),i.current.lanes=m,Wo(i,m,c),gn(i,c),i}function Yl(i,s,a,c){var m=s.current,E=en(),_=ri(m);return a=Pb(a),s.context===null?s.context=a:s.pendingContext=a,s=Nr(E,_),s.payload={element:i},c=c===void 0?null:c,c!==null&&(s.callback=c),i=Zr(m,s,_),i!==null&&(Xn(i,m,_,E),Sl(i,m,_)),_}function ql(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function Db(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var a=i.retryLane;i.retryLane=a!==0&&a<s?a:s}}function np(i,s){Db(i,s),(i=i.alternate)&&Db(i,s)}function a4(){return null}var Mb=typeof reportError=="function"?reportError:function(i){console.error(i)};function rp(i){this._internalRoot=i}Wl.prototype.render=rp.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));Yl(i,s,null,null)},Wl.prototype.unmount=rp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Pi(function(){Yl(null,i,null,null)}),s[xr]=null}};function Wl(i){this._internalRoot=i}Wl.prototype.unstable_scheduleHydration=function(i){if(i){var s=Ty();i={blockedOn:null,target:i,priority:s};for(var a=0;a<Yr.length&&s!==0&&s<Yr[a].priority;a++);Yr.splice(a,0,i),a===0&&Sy(i)}};function ip(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Gl(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Fb(){}function l4(i,s,a,c,m){if(m){if(typeof c=="function"){var E=c;c=function(){var V=ql(_);E.call(V)}}var _=Lb(s,c,i,0,null,!1,!1,"",Fb);return i._reactRootContainer=_,i[xr]=_.current,uu(i.nodeType===8?i.parentNode:i),Pi(),_}for(;m=i.lastChild;)i.removeChild(m);if(typeof c=="function"){var N=c;c=function(){var V=ql(R);N.call(V)}}var R=tp(i,0,!1,null,null,!1,!1,"",Fb);return i._reactRootContainer=R,i[xr]=R.current,uu(i.nodeType===8?i.parentNode:i),Pi(function(){Yl(s,R,a,c)}),R}function Kl(i,s,a,c,m){var E=a._reactRootContainer;if(E){var _=E;if(typeof m=="function"){var N=m;m=function(){var R=ql(_);N.call(R)}}Yl(s,_,i,m)}else _=l4(a,s,i,m,c);return ql(_)}Ey=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var a=qo(s.pendingLanes);a!==0&&(Nd(s,a|1),gn(s,_t()),(Qe&6)===0&&(zs=_t()+500,Xr()))}break;case 13:Pi(function(){var c=wr(i,1);if(c!==null){var m=en();Xn(c,i,1,m)}}),np(i,1)}},vd=function(i){if(i.tag===13){var s=wr(i,134217728);if(s!==null){var a=en();Xn(s,i,134217728,a)}np(i,134217728)}},yy=function(i){if(i.tag===13){var s=ri(i),a=wr(i,s);if(a!==null){var c=en();Xn(a,i,s,c)}np(i,s)}},Ty=function(){return tt},by=function(i,s){var a=tt;try{return tt=i,s()}finally{tt=a}},_d=function(i,s,a){switch(s){case"input":if(Es(i,a),s=a.name,a.type==="radio"&&s!=null){for(a=i;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<a.length;s++){var c=a[s];if(c!==i&&c.form===i.form){var m=dl(c);if(!m)throw Error(n(90));Ua(c),Es(c,m)}}}break;case"textarea":ja(i,a);break;case"select":s=a.value,s!=null&&Hr(i,!!a.multiple,s,!1)}},iy=Kh,sy=Pi;var c4={usingClientEntryPoint:!1,Events:[cu,Ns,dl,ny,ry,Kh]},Au={findFiberByHostInstance:Ci,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},f4={bundleType:Au.bundleType,version:Au.version,rendererPackageName:Au.rendererPackageName,rendererConfig:Au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:te.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=ly(i),i===null?null:i.stateNode},findFiberByHostInstance:Au.findFiberByHostInstance||a4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Ql=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ql.isDisabled&&Ql.supportsFiber)try{Wa=Ql.inject(f4),lr=Ql}catch(i){}}return fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=c4,fn.createPortal=function(i,s){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ip(s))throw Error(n(200));return u4(i,s,null,a)},fn.createRoot=function(i,s){if(!ip(i))throw Error(n(299));var a=!1,c="",m=Mb;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(m=s.onRecoverableError)),s=tp(i,1,!1,null,null,a,!1,c,m),i[xr]=s.current,uu(i.nodeType===8?i.parentNode:i),new rp(s)},fn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=ly(s),i=i===null?null:i.stateNode,i},fn.flushSync=function(i){return Pi(i)},fn.hydrate=function(i,s,a){if(!Gl(s))throw Error(n(200));return Kl(null,i,s,!0,a)},fn.hydrateRoot=function(i,s,a){if(!ip(i))throw Error(n(405));var c=a!=null&&a.hydratedSources||null,m=!1,E="",_=Mb;if(a!=null&&(a.unstable_strictMode===!0&&(m=!0),a.identifierPrefix!==void 0&&(E=a.identifierPrefix),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),s=Lb(s,null,i,1,a!=null?a:null,m,!1,E,_),i[xr]=s.current,uu(i),c)for(i=0;i<c.length;i++)a=c[i],m=a._getVersion,m=m(a._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[a,m]:s.mutableSourceEagerHydrationData.push(a,m);return new Wl(s)},fn.render=function(i,s,a){if(!Gl(s))throw Error(n(200));return Kl(null,i,s,!1,a)},fn.unmountComponentAtNode=function(i){if(!Gl(i))throw Error(n(40));return i._reactRootContainer?(Pi(function(){Kl(null,null,i,!1,function(){i._reactRootContainer=null,i[xr]=null})}),!0):!1},fn.unstable_batchedUpdates=Kh,fn.unstable_renderSubtreeIntoContainer=function(i,s,a,c){if(!Gl(a))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return Kl(i,s,a,!1,c)},fn.version="18.3.1-next-f1338f8080-20240426",fn}var xE;function AE(){if(xE)return sd.exports;xE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sd.exports=u6(),sd.exports}var Ra=AE();function a6(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var CE=()=>e=>Array.from(new Set(e)),kE=typeof globalThis.document!="undefined"?X.useLayoutEffect:X.useEffect;function Pa(e){var y,b;const t=(y=e().value)!=null?y:e().defaultValue,n=(b=e().isEqual)!=null?b:Object.is,[r]=X.useState(t),[o,u]=X.useState(r),l=e().value!==void 0,f=X.useRef(o);f.current=l?e().value:o;const d=X.useRef(f.current);kE(()=>{d.current=f.current},[o,e().value]);const h=T=>{var O,L;const S=d.current,C=fs(T)?T(S):T;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:C,prev:S}),l||u(C),n(C,S)||(L=(O=e()).onChange)==null||L.call(O,C,S)};function g(){return l?e().value:o}return{initial:r,ref:f,get:g,set(T){(e().sync?Ra.flushSync:kR)(()=>h(T))},invoke(T,S){var C,O;(O=(C=e()).onChange)==null||O.call(C,T,S)},hash(T){var S,C,O;return(O=(C=(S=e()).hash)==null?void 0:C.call(S,T))!=null?O:String(T)}}}Pa.cleanup=e=>{X.useEffect(()=>e,[])},Pa.ref=e=>{const t=X.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function l6(e){const t=X.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var c6=(e,t)=>{const n=X.useRef(!1),r=X.useRef(!1);X.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e!=null?e:[]).map(o=>typeof o=="function"?o():o)]),X.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function wE(e,t={}){var ge,pe,ce,fe,be,Le;const n=X.useMemo(()=>{const{id:ae,ids:M,getRootNode:G}=t;return i6({id:ae,ids:M,getRootNode:G})},[t]),r=(...ae)=>{e.debug&&console.log(...ae)},o=(pe=(ge=e.props)==null?void 0:ge.call(e,{props:aE(t),scope:n}))!=null?pe:t,u=f6(o),l=(ce=e.context)==null?void 0:ce.call(e,{prop:u,bindable:Pa,scope:n,flush:vE,getContext(){return d},getComputed(){return he},getRefs(){return C},getEvent(){return T()}}),f=NE(l),d={get(ae){var M;return(M=f.current)==null?void 0:M[ae].ref.current},set(ae,M){var G;(G=f.current)==null||G[ae].set(M)},initial(ae){var M;return(M=f.current)==null?void 0:M[ae].initial},hash(ae){var G,x;const M=(G=f.current)==null?void 0:G[ae].get();return(x=f.current)==null?void 0:x[ae].hash(M)}},h=X.useRef(new Map),g=X.useRef(null),y=X.useRef(null),b=X.useRef({type:""}),T=()=>$e(Q({},b.current),{current(){return b.current},previous(){return y.current}}),S=()=>$e(Q({},F),{matches(...ae){return ae.includes(F.ref.current)},hasTag(ae){var M,G;return!!((G=(M=e.states[F.ref.current])==null?void 0:M.tags)!=null&&G.includes(ae))}}),C=l6((be=(fe=e.refs)==null?void 0:fe.call(e,{prop:u,context:d}))!=null?be:{}),O=()=>({state:S(),context:d,event:T(),prop:u,send:H,action:L,guard:$,track:c6,refs:C,computed:he,flush:vE,scope:n,choose:te}),L=ae=>{const M=fs(ae)?ae(O()):ae;if(!M)return;const G=M.map(x=>{var q,w;const I=(w=(q=e.implementations)==null?void 0:q.actions)==null?void 0:w[x];return I||Jf(`[zag-js] No implementation found for action "${JSON.stringify(x)}"`),I});for(const x of G)x==null||x(O())},$=ae=>{var M,G;return fs(ae)?ae(O()):(G=(M=e.implementations)==null?void 0:M.guards)==null?void 0:G[ae](O())},j=ae=>{const M=fs(ae)?ae(O()):ae;if(!M)return;const G=M.map(I=>{var w,Ee;const q=(Ee=(w=e.implementations)==null?void 0:w.effects)==null?void 0:Ee[I];return q||Jf(`[zag-js] No implementation found for effect "${JSON.stringify(I)}"`),q}),x=[];for(const I of G){const q=I==null?void 0:I(O());q&&x.push(q)}return()=>x.forEach(I=>I==null?void 0:I())},te=ae=>ER(ae).find(M=>{let G=!M.guard;return Na(M.guard)?G=!!$(M.guard):fs(M.guard)&&(G=M.guard(O())),G}),he=ae=>{wR(e.computed,()=>"[zag-js] No computed object found on machine");const M=e.computed[ae];return M({context:d,event:T(),prop:u,refs:C,scope:n,computed:he})},F=Pa(()=>({defaultValue:e.initialState({prop:u}),onChange(ae,M){var x,I,q,w;if(M){const Ee=h.current.get(M);Ee==null||Ee(),h.current.delete(M)}M&&L((x=e.states[M])==null?void 0:x.exit),L((I=g.current)==null?void 0:I.actions);const G=j((q=e.states[ae])==null?void 0:q.effects);if(G&&h.current.set(ae,G),M===id){L(e.entry);const Ee=j(e.effects);Ee&&h.current.set(id,Ee)}L((w=e.states[ae])==null?void 0:w.entry)}})),me=X.useRef(void 0),Ae=X.useRef(hs.NotStarted);kE(()=>{queueMicrotask(()=>{var I;const G=Ae.current===hs.Started;Ae.current=hs.Started,r(G?"rehydrating...":"initializing...");const x=(I=me.current)!=null?I:F.initial;F.invoke(x,G?F.get():id)});const ae=h.current,M=F.ref.current;return()=>{r("unmounting..."),me.current=M,Ae.current=hs.Stopped,ae.forEach(G=>G==null?void 0:G()),h.current=new Map,g.current=null,queueMicrotask(()=>{L(e.exit)})}},[]);const Ne=()=>"ref"in F?F.ref.current:F.get(),H=ae=>{queueMicrotask(()=>{var w,Ee,ve,Ce,We;if(Ae.current!==hs.Started)return;y.current=b.current,b.current=ae,r("send",ae);let M=Ne();const G=(ve=(w=e.states[M].on)==null?void 0:w[ae.type])!=null?ve:(Ee=e.on)==null?void 0:Ee[ae.type],x=te(G);if(!x)return;g.current=x;const I=(Ce=x.target)!=null?Ce:M;r("transition",x);const q=I!==M;q?Ra.flushSync(()=>F.set(I)):x.reenter&&!q?F.invoke(M,M):L((We=x.actions)!=null?We:[])})};return(Le=e.watch)==null||Le.call(e,O()),{state:S(),send:H,context:d,prop:u,scope:n,refs:C,computed:he,event:T(),getStatus:()=>Ae.current}}function NE(e){const t=X.useRef(e);return t.current=e,t}function f6(e){const t=NE(e);return function(r){return t.current[r]}}function vE(e){queueMicrotask(()=>{Ra.flushSync(()=>e())})}var d6=a6(e=>e);function ad(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function h6(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Po(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:u,defaultValue:l}=e,f=X.createContext(l);f.displayName=t;function d(){var g;const h=X.useContext(f);if(!h&&n){const y=new Error(u!=null?u:h6(r,o));throw y.name="ContextError",(g=Error.captureStackTrace)==null||g.call(Error,y,d),y}return h}return[f.Provider,d,f]}const OE=()=>(e,t)=>t.reduce((n,r)=>{const[o,u]=n,l=r;return u[l]!==void 0&&(o[l]=u[l]),delete u[l],[o,u]},[{},Q({},e)]),[p6,m6]=Po({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),g6=e=>OE()(e,["lazyMount","unmountOnExit"]);function E6(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const ld=e=>{const t=X.memo(X.forwardRef((n,r)=>{const h=n,{asChild:o,children:u}=h,l=Fi(h,["asChild","children"]);if(!o)return X.createElement(e,$e(Q({},l),{ref:r}),u);if(!X.isValidElement(u))return null;const f=X.Children.only(u),d=E6(f);return X.cloneElement(f,$e(Q({},_i(l,f.props)),{ref:r?ad(r,d):d}))}));return t.displayName=e.displayName||e.name,t},Lo=(()=>{const e=new Map;return new Proxy(ld,{apply(t,n,r){return ld(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,ld(r)),e.get(r)}})})();function y6(e,t){const{state:n,send:r,context:o}=e,u=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:u,setNode(l){l&&r({type:"NODE.SET",node:l})},unmount(){r({type:"UNMOUNT"})}}}var T6={props({props:e}){return $e(Q({},e),{present:!!e.present})},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,action:t,prop:n}){e([()=>n("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",dE(t.node))},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const u=t.get("node");if(!o&&(u==null?void 0:u.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});br(()=>{var f,d;const l=La(t.get("styles"));e.set("unmountAnimationName",l),l==="none"||l===e.get("prevAnimationName")||((f=t.get("styles"))==null?void 0:f.display)==="none"||((d=t.get("styles"))==null?void 0:d.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{br(()=>{e.set("prevAnimationName",La(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{const r=t.get("node");if(!r)return;const o=f=>{var h,g,y;((y=(g=(h=f.composedPath)==null?void 0:h.call(f))==null?void 0:g[0])!=null?y:f.target)===r&&e.set("prevAnimationName",La(t.get("styles")))},u=f=>{const d=La(t.get("styles"));Tr(f)===r&&d===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};r.addEventListener("animationstart",o),r.addEventListener("animationcancel",u),r.addEventListener("animationend",u);const l=Ia(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",u),r.removeEventListener("animationend",u),GR(()=>l())}}}}};function La(e){return(e==null?void 0:e.animationName)||"none"}CE()(["onExitComplete","present","immediate"]);function b6(e,t={}){const{sync:n=!1}=t,r=_6(e);return X.useCallback((...o)=>{var u;return n?queueMicrotask(()=>{var l;return(l=r.current)==null?void 0:l.call(r,...o)}):(u=r.current)==null?void 0:u.call(r,...o)},[n,r])}function _6(e){const t=X.useRef(e);return t.current=e,t}const IE=(e={})=>{const b=e,{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1}=b,u=Fi(b,["lazyMount","unmountOnExit","present","skipAnimationOnMount"]),l=X.useRef(!1),f=$e(Q({},u),{present:r,onExitComplete:b6(e.onExitComplete)}),d=wE(T6,f),h=y6(d);h.present&&(l.current=!0);const g=!h.present&&!l.current&&t||n&&!h.present&&l.current,y=()=>({"data-state":h.skip&&o?void 0:r?"open":"closed",hidden:!h.present});return{ref:h.setNode,getPresenceProps:y,present:h.present,unmounted:g}},[S6,Do]=Po({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),RE=X.forwardRef((e,t)=>{const n=Do(),r=m6(),o=IE($e(Q({},r),{present:n.open})),u=_i(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:P.jsx(Lo.div,$e(Q({},u),{ref:ad(o.ref,t)}))});RE.displayName="DialogBackdrop";const[x6,PE]=Po({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),cd=X.forwardRef((e,t)=>{const n=Do(),r=PE(),o=_i(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:P.jsx(Lo.div,$e(Q({},o),{ref:ad(r.ref,t)}))});cd.displayName="DialogContent";const fd=X.forwardRef((e,t)=>{const n=Do(),r=_i(n.getDescriptionProps(),e);return P.jsx(Lo.div,$e(Q({},r),{ref:t}))});fd.displayName="DialogDescription";const dd=X.forwardRef((e,t)=>{const n=Do(),r=_i(n.getPositionerProps(),e);return PE().unmounted?null:P.jsx(Lo.div,$e(Q({},r),{ref:t}))});dd.displayName="DialogPositioner";const A6=e=>OE()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);var Mo=(e,t=[])=>({parts:(...n)=>{if(C6(t))return Mo(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>Mo(e,[...t,...n]),omit:(...n)=>Mo(e,t.filter(r=>!n.includes(r))),rename:n=>Mo(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${ps(e)}"][data-part="${ps(r)}"]`,`& [data-scope="${ps(e)}"][data-part="${ps(r)}"]`].join(", "),attrs:{"data-scope":ps(e),"data-part":ps(r)}}}),{})}),ps=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),C6=e=>e.length===0,ms=new WeakMap,Da=new WeakMap,Ma={},hd=0,LE=e=>e&&(e.host||LE(e.parentNode)),k6=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=LE(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),w6=new Set(["script","output","status","next-route-announcer"]),N6=e=>w6.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),v6=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o}=t,u=k6(n,Array.isArray(e)?e:[e]);Ma[r]||(Ma[r]=new WeakMap);const l=Ma[r],f=[],d=new Set,h=new Set(u),g=b=>{!b||d.has(b)||(d.add(b),g(b.parentNode))};u.forEach(g);const y=b=>{!b||h.has(b)||Array.prototype.forEach.call(b.children,T=>{if(d.has(T))y(T);else try{if(N6(T))return;const C=T.getAttribute(o)==="true",O=(ms.get(T)||0)+1,L=(l.get(T)||0)+1;ms.set(T,O),l.set(T,L),f.push(T),O===1&&C&&Da.set(T,!0),L===1&&T.setAttribute(r,""),C||T.setAttribute(o,"true")}catch(S){console.error("[zag-js > ariaHidden] cannot operate on ",T,S)}})};return y(n),d.clear(),hd++,()=>{f.forEach(b=>{const T=ms.get(b)-1,S=l.get(b)-1;ms.set(b,T),l.set(b,S),T||(Da.has(b)||b.removeAttribute(o),Da.delete(b)),S||b.removeAttribute(r)}),hd--,hd||(ms=new WeakMap,ms=new WeakMap,Da=new WeakMap,Ma={})}},O6=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,I6=(e,t=O6(e),n="data-aria-hidden")=>{if(t)return v6(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},R6=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function P6(e,t={}){const{defer:n=!0}=t,r=n?R6:u=>u(),o=[];return o.push(r(()=>{const l=(typeof e=="function"?e():e).filter(Boolean);l.length!==0&&o.push(I6(l))})),()=>{o.forEach(u=>u==null?void 0:u())}}function L6(e){const t={each(n){var r;for(let o=0;o<((r=e.frames)==null?void 0:r.length);o+=1){const u=e.frames[o];u&&n(u)}},addEventListener(n,r,o){return t.each(u=>{try{u.document.addEventListener(n,r,o)}catch(l){}}),()=>{try{t.removeEventListener(n,r,o)}catch(u){}}},removeEventListener(n,r,o){t.each(u=>{try{u.document.removeEventListener(n,r,o)}catch(l){}})}};return t}function D6(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t==null||t.addEventListener(n,r,o)}catch(u){}return()=>{try{t==null||t.removeEventListener(n,r,o)}catch(u){}}},removeEventListener:(n,r,o)=>{try{t==null||t.removeEventListener(n,r,o)}catch(u){}}}}var DE="pointerdown.outside",ME="focus.outside";function M6(e){for(const t of e)if(cn(t)&&Br(t))return!0;return!1}var FE=e=>"clientY"in e;function F6(e,t){if(!FE(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function B6(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function BE(e,t){if(!t||!FE(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,u=o&&e.clientY>t.offsetTop+t.clientHeight,l={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},f={x:e.clientX,y:e.clientY};return B6(l,f)?r||u:!1}function U6(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:u,defer:l}=t;if(!e)return;const f=or(e),d=Io(e),h=L6(d),g=D6(d);function y($,j){if(!cn(j)||!j.isConnected||Oa(e,j)||F6(e,$))return!1;const te=f.querySelector(`[aria-controls="${e.id}"]`);if(te){const F=rd(te);if(BE($,F))return!1}const he=rd(e);return BE($,he)?!1:!(n!=null&&n(j))}const b=new Set,T=ds(e==null?void 0:e.getRootNode());function S($){function j(te){var Ae,Ne;const he=l&&!pE()?br:H=>H(),F=te!=null?te:$,me=(Ne=(Ae=F==null?void 0:F.composedPath)==null?void 0:Ae.call(F))!=null?Ne:[F==null?void 0:F.target];he(()=>{const H=T?me[0]:Tr($);if(!(!e||!y($,H))){if(o||u){const ge=Xf(o,u);e.addEventListener(DE,ge,{once:!0})}UE(e,DE,{bubbles:!1,cancelable:!0,detail:{originalEvent:F,contextmenu:YR(F),focusable:M6(me),target:H}})}})}$.pointerType==="touch"?(b.forEach(te=>te()),b.add(ur(f,"click",j,{once:!0})),b.add(g.addEventListener("click",j,{once:!0})),b.add(h.addEventListener("click",j,{once:!0}))):j()}const C=new Set,O=setTimeout(()=>{C.add(ur(f,"pointerdown",S,!0)),C.add(g.addEventListener("pointerdown",S,!0)),C.add(h.addEventListener("pointerdown",S,!0))},0);function L($){(l?br:te=>te())(()=>{const te=Tr($);if(!(!e||!y($,te))){if(r||u){const he=Xf(r,u);e.addEventListener(ME,he,{once:!0})}UE(e,ME,{bubbles:!1,cancelable:!0,detail:{originalEvent:$,contextmenu:!1,focusable:Br(te),target:te}})}})}return pE()||(C.add(ur(f,"focusin",L,!0)),C.add(g.addEventListener("focusin",L,!0)),C.add(h.addEventListener("focusin",L,!0))),()=>{clearTimeout(O),b.forEach($=>$()),C.forEach($=>$())}}function H6(e,t){const{defer:n}=t,r=n?br:u=>u(),o=[];return o.push(r(()=>{const u=typeof e=="function"?e():e;o.push(U6(u,t))})),()=>{o.forEach(u=>u==null?void 0:u())}}function UE(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function z6(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return ur(or(e),"keydown",n,{capture:!0})}var Vn={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return t<n},isTopMost(e){const t=this.layers[this.count()-1];return(t==null?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>Oa(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Oa(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>r.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){var t;(t=this.layers[this.indexOf(e)])==null||t.dismiss()},clear(){this.remove(this.layers[0].node)}},HE;function zE(){Vn.layers.forEach(({node:e})=>{e.style.pointerEvents=Vn.isBelowPointerBlockingLayer(e)?"none":"auto"})}function j6(e){e.style.pointerEvents=""}function $6(e,t){const n=or(e),r=[];return Vn.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(HE=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(o=>{const[u,l]=e6(()=>{const f=o();return cn(f)?f:null},{timeout:1e3});u.then(f=>r.push(Ia(f,{pointerEvents:"auto"}))),r.push(l)}),()=>{Vn.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=HE,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function V6(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){Jf("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,pointerBlocking:o,exclude:u,debug:l}=t,f={dismiss:r,node:e,pointerBlocking:o};Vn.add(f),zE();function d(T){var C,O;const S=Tr(T.detail.originalEvent);Vn.isBelowPointerBlockingLayer(e)||Vn.isInBranch(S)||((C=t.onPointerDownOutside)==null||C.call(t,T),(O=t.onInteractOutside)==null||O.call(t,T),!T.defaultPrevented&&(l&&console.log("onPointerDownOutside:",T.detail.originalEvent),r==null||r()))}function h(T){var C,O;const S=Tr(T.detail.originalEvent);Vn.isInBranch(S)||((C=t.onFocusOutside)==null||C.call(t,T),(O=t.onInteractOutside)==null||O.call(t,T),!T.defaultPrevented&&(l&&console.log("onFocusOutside:",T.detail.originalEvent),r==null||r()))}function g(T){var S;Vn.isTopMost(e)&&((S=t.onEscapeKeyDown)==null||S.call(t,T),!T.defaultPrevented&&r&&(T.preventDefault(),r()))}function y(T){var L;if(!e)return!1;const S=typeof u=="function"?u():u,C=Array.isArray(S)?S:[S],O=(L=t.persistentElements)==null?void 0:L.map($=>$()).filter(cn);return O&&C.push(...O),C.some($=>Oa($,T))||Vn.isInNestedLayer(e,T)}const b=[o?$6(e,t.persistentElements):void 0,z6(e,g),H6(e,{exclude:y,onFocusOutside:h,onPointerDownOutside:d,defer:t.defer})];return()=>{Vn.remove(e),zE(),j6(e),b.forEach(T=>T==null?void 0:T())}}function Y6(e,t){const{defer:n}=t,r=n?br:u=>u(),o=[];return o.push(r(()=>{const u=fs(e)?e():e;o.push(V6(u,t))})),()=>{o.forEach(u=>u==null?void 0:u())}}var q6=Object.defineProperty,W6=(e,t,n)=>t in e?q6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ht=(e,t,n)=>W6(e,typeof t!="symbol"?t+"":t,n),jE={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},G6=[],K6=class{constructor(e,t){ht(this,"trapStack"),ht(this,"config"),ht(this,"doc"),ht(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),ht(this,"listenerCleanups",[]),ht(this,"handleFocus",r=>{const o=Tr(r),u=this.findContainerIndex(o,r)>=0;if(u||Zf(o))u&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let l,f=!0;if(this.state.mostRecentlyFocusedNode)if(Ro(this.state.mostRecentlyFocusedNode)>0){const d=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:h}=this.state.containerGroups[d];if(h.length>0){const g=h.findIndex(y=>y===this.state.mostRecentlyFocusedNode);g>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?g+1<h.length&&(l=h[g+1],f=!1):g-1>=0&&(l=h[g-1],f=!1))}}else this.state.containerGroups.some(d=>d.tabbableNodes.some(h=>Ro(h)>0))||(f=!1);else f=!1;f&&(l=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),l?this.tryFocus(l):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),ht(this,"handlePointerDown",r=>{const o=Tr(r);if(!(this.findContainerIndex(o,r)>=0)){if(Bo(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Bo(this.config.allowOutsideClick,r)||r.preventDefault()}}),ht(this,"handleClick",r=>{const o=Tr(r);this.findContainerIndex(o,r)>=0||Bo(this.config.clickOutsideDeactivates,r)||Bo(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),ht(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),u=this.findNextNavNode({event:r,isBackward:o});if(!u)return;Fo(r)&&r.preventDefault(),this.tryFocus(u)}}),ht(this,"handleEscapeKey",r=>{Q6(r)&&Bo(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),ht(this,"_mutationObserver"),ht(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(l=>Array.from(l.removedNodes).some(d=>d===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),ht(this,"updateObservedNodes",()=>{var r;(r=this._mutationObserver)==null||r.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(o=>{var u;(u=this._mutationObserver)==null||u.observe(o,{subtree:!0,childList:!0})})}),ht(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Br(r))if(this.findContainerIndex(this.doc.activeElement)>=0)r=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];r=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),ht(this,"tryFocus",r=>{if(r!==!1&&r!==fE(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,X6(r)&&r.select()}}),ht(this,"deactivate",r=>{if(!this.state.active)return this;const o=Q({onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus},r);clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),jE.deactivateTrap(this.trapStack,this);const u=this.getOption(o,"onDeactivate"),l=this.getOption(o,"onPostDeactivate"),f=this.getOption(o,"checkCanReturnFocus"),d=this.getOption(o,"returnFocus","returnFocusOnDeactivate");u==null||u();const h=()=>{$E(()=>{if(d){const g=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(g)}l==null||l()})};if(d&&f){const g=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return f(g).then(h,h),this}return h(),this}),ht(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),u=this.getOption(r,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),u==null||u(),this}),ht(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),u=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),u==null||u(),this}),ht(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),ht(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),ht(this,"getOption",(r,o,u)=>r&&r[o]!==void 0?r[o]:this.config[u||o]),ht(this,"getNodeForOption",(r,{hasFallback:o=!1,params:u=[]}={})=>{let l=this.config[r];if(typeof l=="function"&&(l=l(...u)),l===!0&&(l=void 0),!l){if(l===void 0||l===!1)return l;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let f=l;if(typeof l=="string"){try{f=this.doc.querySelector(l)}catch(d){throw new Error(`\`${r}\` appears to be an invalid selector; error="${d.message}"`)}if(!f&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return f}),ht(this,"findNextNavNode",r=>{const{event:o,isBackward:u=!1}=r,l=r.target||Tr(o);this.updateTabbableNodes();let f=null;if(this.state.tabbableGroups.length>0){const d=this.findContainerIndex(l,o),h=d>=0?this.state.containerGroups[d]:void 0;if(d<0)u?f=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:f=this.state.tabbableGroups[0].firstTabbableNode;else if(u){let g=this.state.tabbableGroups.findIndex(({firstTabbableNode:y})=>l===y);if(g<0&&((h==null?void 0:h.container)===l||Br(l)&&!bi(l)&&!(h!=null&&h.nextTabbableNode(l,!1)))&&(g=d),g>=0){const y=g===0?this.state.tabbableGroups.length-1:g-1,b=this.state.tabbableGroups[y];f=Ro(l)>=0?b.lastTabbableNode:b.lastDomTabbableNode}else Fo(o)||(f=h==null?void 0:h.nextTabbableNode(l,!1))}else{let g=this.state.tabbableGroups.findIndex(({lastTabbableNode:y})=>l===y);if(g<0&&((h==null?void 0:h.container)===l||Br(l)&&!bi(l)&&!(h!=null&&h.nextTabbableNode(l)))&&(g=d),g>=0){const y=g===this.state.tabbableGroups.length-1?0:g+1,b=this.state.tabbableGroups[y];f=Ro(l)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else Fo(o)||(f=h==null?void 0:h.nextTabbableNode(l))}}else f=this.getNodeForOption("fallbackFocus");return f}),this.trapStack=t.trapStack||G6;const n=Q({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(r){return Fo(r)&&!r.shiftKey},isKeyBackward(r){return Fo(r)&&r.shiftKey}},t);this.doc=n.document||or(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||(n==null?void 0:n.includes(r))||o.find(u=>u===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=yE(e),n=EE(e),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,u=n.find(h=>bi(h)),l=n.slice().reverse().find(h=>bi(h)),f=!!t.find(h=>Ro(h)>0);function d(h,g=!0){const y=t.indexOf(h);return y<0?g?n.slice(n.indexOf(h)+1).find(b=>bi(b)):n.slice(0,n.indexOf(h)).reverse().find(b=>bi(b)):t[y+(g?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:f,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:u,lastDomTabbableNode:l,nextTabbableNode:d}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return jE.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?$E(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ur(this.doc,"focusin",this.handleFocus,!0),ur(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ur(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ur(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ur(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ur(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t==null||t();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n==null||n()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},Fo=e=>e.key==="Tab",Bo=(e,...t)=>typeof e=="function"?e(...t):e,Q6=e=>!e.isComposing&&e.key==="Escape",$E=e=>setTimeout(e,0),X6=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function J6(e,t={}){let n;const r=br(()=>{const o=typeof e=="function"?e():e;if(o){n=new K6(o,$e(Q({escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o},t),{document:or(o)}));try{n.activate()}catch(u){}}});return function(){n==null||n.deactivate(),r()}}var pd="data-scroll-lock";function Z6(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function eP(e){var b;const t=e!=null?e:document,n=(b=t.defaultView)!=null?b:window,{documentElement:r,body:o}=t;if(o.hasAttribute(pd))return;const l=n.innerWidth-r.clientWidth;o.setAttribute(pd,"");const f=()=>JR(r,"--scrollbar-width",`${l}px`),d=Z6(r),h=()=>Ia(o,{overflow:"hidden",[d]:`${l}px`}),g=()=>{var j,te;const{scrollX:T,scrollY:S,visualViewport:C}=n,O=(j=C==null?void 0:C.offsetLeft)!=null?j:0,L=(te=C==null?void 0:C.offsetTop)!=null?te:0,$=Ia(o,{position:"fixed",overflow:"hidden",top:`${-(S-Math.floor(L))}px`,left:`${-(T-Math.floor(O))}px`,right:"0",[d]:`${l}px`});return()=>{$==null||$(),n.scrollTo({left:T,top:S,behavior:"instant"})}},y=[f(),$R()?g():h()];return()=>{y.forEach(T=>T==null?void 0:T()),o.removeAttribute(pd)}}var tP=Mo("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Si=tP.build(),VE=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.positioner)!=null?n:`dialog:${e.id}:positioner`},YE=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.backdrop)!=null?n:`dialog:${e.id}:backdrop`},md=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.content)!=null?n:`dialog:${e.id}:content`},qE=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.trigger)!=null?n:`dialog:${e.id}:trigger`},gd=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.title)!=null?n:`dialog:${e.id}:title`},Ed=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.description)!=null?n:`dialog:${e.id}:description`},WE=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.closeTrigger)!=null?n:`dialog:${e.id}:close`},Fa=e=>e.getById(md(e)),nP=e=>e.getById(VE(e)),rP=e=>e.getById(YE(e)),iP=e=>e.getById(qE(e)),sP=e=>e.getById(gd(e)),oP=e=>e.getById(Ed(e)),uP=e=>e.getById(WE(e));function aP(e,t){const{state:n,send:r,context:o,prop:u,scope:l}=e,f=u("aria-label"),d=n.matches("open");return{open:d,setOpen(h){n.matches("open")!==h&&r({type:h?"OPEN":"CLOSE"})},getTriggerProps(){return t.button($e(Q({},Si.trigger.attrs),{dir:u("dir"),id:qE(l),"aria-haspopup":"dialog",type:"button","aria-expanded":d,"data-state":d?"open":"closed","aria-controls":md(l),onClick(h){h.defaultPrevented||r({type:"TOGGLE"})}}))},getBackdropProps(){return t.element($e(Q({},Si.backdrop.attrs),{dir:u("dir"),hidden:!d,id:YE(l),"data-state":d?"open":"closed"}))},getPositionerProps(){return t.element($e(Q({},Si.positioner.attrs),{dir:u("dir"),id:VE(l),style:{pointerEvents:d?void 0:"none"}}))},getContentProps(){const h=o.get("rendered");return t.element($e(Q({},Si.content.attrs),{dir:u("dir"),role:u("role"),hidden:!d,id:md(l),tabIndex:-1,"data-state":d?"open":"closed","aria-modal":!0,"aria-label":f||void 0,"aria-labelledby":f||!h.title?void 0:gd(l),"aria-describedby":h.description?Ed(l):void 0}))},getTitleProps(){return t.element($e(Q({},Si.title.attrs),{dir:u("dir"),id:gd(l)}))},getDescriptionProps(){return t.element($e(Q({},Si.description.attrs),{dir:u("dir"),id:Ed(l)}))},getCloseTriggerProps(){return t.button($e(Q({},Si.closeTrigger.attrs),{dir:u("dir"),id:WE(l),type:"button",onClick(h){h.defaultPrevented||(h.stopPropagation(),r({type:"CLOSE"}))}}))}}}var lP={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>uP(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return Q({role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r},e)},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Y6(()=>Fa(e),{defer:!0,pointerBlocking:n("modal"),exclude:[iP(e)],onInteractOutside(o){var u;(u=n("onInteractOutside"))==null||u(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onEscapeKeyDown(o){var u;(u=n("onEscapeKeyDown"))==null||u(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return eP(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?J6(()=>Fa(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>{var o,u;return(u=(o=t("finalFocusEl"))==null?void 0:o())!=null?u:r}}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?P6(()=>[Fa(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){br(()=>{e.set("rendered",{title:!!sP(t),description:!!oP(t)})})},syncZIndex({scope:e}){br(()=>{const t=Fa(e);if(!t)return;const n=dE(t);[nP(e),rP(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",n.zIndex),o==null||o.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};CE()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const[eD,GE]=Po({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[tD,cP]=Po({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),fP=e=>{const t=X.useId(),{getRootNode:n}=GE(),{dir:r}=cP(),o=Q({id:t,getRootNode:n,dir:r},e),u=wE(lP,o);return aP(u,d6)},KE=e=>{const[t,f]=A6(e),d=f,{children:n}=d,r=Fi(d,["children"]),[o]=g6(t),u=fP(r),l=IE(_i({present:u.open},t));return P.jsx(S6,{value:u,children:P.jsx(p6,{value:o,children:P.jsx(x6,{value:l,children:n})})})},yd=X.forwardRef((e,t)=>{const n=Do(),r=_i(n.getTitleProps(),e);return P.jsx(Lo.h2,$e(Q({},r),{ref:t}))});yd.displayName="DialogTitle";const QE=e=>{var d;const{children:t,disabled:n}=e,[r,o]=X.useState((d=e.container)==null?void 0:d.current),u=X.useSyncExternalStore(hP,()=>!1,()=>!0),{getRootNode:l}=GE();if(X.useEffect(()=>{o(()=>{var h;return(h=e.container)==null?void 0:h.current})},[e.container]),u||n)return P.jsx(P.Fragment,{children:t});const f=r!=null?r:dP(l);return P.jsx(P.Fragment,{children:X.Children.map(t,h=>Ra.createPortal(h,f))})},dP=e=>{const t=e==null?void 0:e(),n=t.getRootNode();return ds(n)?n:or(t).body},hP=()=>()=>{},XE=()=>{const{logoUrl:e,headerText:t,globalClassName:n,themeVariables:r}=Rr(),{mode:o,status:u,dialogPosition:l}=Xu(),{copilot:f,messages:d,groupedMessages:h,isLoading:g,handleUserInput:y,handleSuggestion:b}=Gi(),T=X.useRef(null),{isOpen:S}=u||{},C=o==="standalone";X.useEffect(()=>{T.current&&T.current.scrollIntoView({behavior:"smooth",block:"end"})},[d]);const O=({open:te})=>{ro(te)},L=()=>{Dm(l==="bottom-left"?"bottom-right":"bottom-left")},$=()=>{zc("modal")},j=()=>{ro(!1)};return!S||h.length===0?null:f?P.jsx(KE,{lazyMount:!0,modal:!1,closeOnEscape:!1,closeOnInteractOutside:!1,open:S,onOpenChange:O,children:P.jsx(QE,{children:P.jsx(dd,{className:ue(n,`${Z}-container`,`${Z}-dialog`,l),style:r,children:P.jsxs(cd,{className:ue(n,`${Z}-dialog-content`,{standalone:C,embedded:!C}),children:[P.jsxs("div",{className:ue(n,`${Z}-dialog-header`,{standalone:C,embedded:!C}),children:[e&&P.jsx("img",{alt:"",role:"img",className:ue(n,`${Z}-dialog-logo`,{standalone:C,embedded:!C}),src:e}),P.jsx(yd,{className:ue(n,`${Z}-dialog-title`,{standalone:C,embedded:!C}),children:t}),P.jsxs("div",{className:ue(n,`${Z}-dialog-controls`),children:[P.jsx(io,{ariaLabel:"Toggle left or right position",icon:P.jsx(pR,{}),onClick:L}),P.jsx(io,{ariaLabel:"Toggle Modal",icon:P.jsx(gR,{}),onClick:$}),P.jsx(Km,{className:`dialog ${n}`,onClick:j})]})]}),P.jsxs(fd,{className:ue(n,`${Z}-message-container`,{standalone:C,embedded:!C}),children:[P.jsx(Qf,{isWidgetStandalone:C,messages:h,handleSuggestionClick:b}),g&&P.jsx("div",{style:{display:"flex",justifyContent:"flex-start",paddingBottom:"1rem"},children:P.jsx(wa,{})}),P.jsx("div",{ref:T})]}),P.jsx(jc,{className:`dialog ${n}`,isLoading:g,onSubmit:y})]})})})}):P.jsx("div",{children:"Loading Copilot..."})},JE=()=>{const{logoUrl:e,headerText:t,globalClassName:n,themeVariables:r}=Rr(),{mode:o,status:u,isModalFullscreen:l}=Xu(),{copilot:f,messages:d,groupedMessages:h,isLoading:g,handleUserInput:y,handleSuggestion:b}=Gi(),T=X.useRef(null),{isOpen:S}=u||{},C=o==="standalone";X.useEffect(()=>{T.current&&T.current.scrollIntoView({behavior:"smooth",block:"end"})},[d]);const O=({open:te})=>{ro(te)},L=()=>{Lm(!l)},$=()=>{zc("dialog")},j=()=>{ro(!1)};return!S||h.length===0?null:f?P.jsx(KE,{lazyMount:!0,open:S,onOpenChange:O,children:P.jsx(QE,{children:P.jsxs("div",{className:ue(`${Z}-modal-container`),style:r,children:[P.jsx(RE,{className:`${Z}-modal-backdrop`}),P.jsx(dd,{className:ue(n,`${Z}-container`,`${Z}-modal`,{fullscreen:l,standalone:C,embedded:!C}),children:P.jsxs(cd,{className:ue(n,`${Z}-modal-content`,{standalone:C,embedded:!C}),children:[P.jsxs("div",{className:ue(n,`${Z}-modal-header`,{standalone:C,embedded:!C}),children:[e&&P.jsx("img",{alt:"",role:"img",className:ue(n,`${Z}-modal-logo`,{standalone:C,embedded:!C}),src:e}),P.jsx(yd,{className:ue(n,`${Z}-modal-title`,{standalone:C,embedded:!C}),children:t}),P.jsxs("div",{className:ue(n,`${Z}-modal-controls`),children:[P.jsx(io,{ariaLabel:"Toggle Fullscreen",className:ue(n,`${Z}-modal-fullscreen-button`),icon:P.jsx(Sx,{}),onClick:L}),P.jsx(io,{ariaLabel:"Toggle Dialog",className:ue(n,`${Z}-modal-toggle-dialog-button`),icon:P.jsx(mR,{}),onClick:$}),P.jsx(Km,{className:`modal ${n}`,onClick:j})]})]}),P.jsxs(fd,{className:ue(n,`${Z}-message-container`,{standalone:C,embedded:!C}),children:[P.jsx(Qf,{isWidgetStandalone:C,messages:h,handleSuggestionClick:b}),g&&P.jsx("div",{style:{display:"flex",justifyContent:"flex-start",paddingLeft:"1rem",paddingBottom:"1rem"},children:P.jsx(wa,{})}),P.jsx("div",{ref:T})]}),P.jsx(jc,{className:`modal ${n}`,isLoading:g,onSubmit:y})]})})]})})}):P.jsx("div",{children:"Loading Copilot..."})},pP=()=>{const e=Xu(),{status:{type:t}}=e||{status:{}};return t==="dialog"?P.jsx(XE,{}):t==="modal"?P.jsx(JE,{}):P.jsx(oE,{})},Td=e=>P.jsx(Hm,$e(Q({},e),{children:P.jsx(pP,{})}));var Ba={},ZE;function mP(){if(ZE)return Ba;ZE=1;var e=AE();return Ba.createRoot=e.createRoot,Ba.hydrateRoot=e.hydrateRoot,Ba}var ey=mP();const gP=r=>{var o=r,{elementId:e,timeout:t=5e3}=o,n=Fi(o,["elementId","timeout"]);let u;const l=(d,h)=>{var g;for(const y of d)if(y.type==="childList"&&y.addedNodes.length)for(const b of y.addedNodes)b.nodeType===Node.ELEMENT_NODE&&b.id===e&&(Wi(!0,"log","Target element found, rendering Copilot Widget"),h.disconnect(),clearTimeout(u),(g=ey.createRoot(b))==null||g.render(P.jsx(Td,Q({},n))))},f=new MutationObserver(l);return f.observe(document.body,{childList:!0,subtree:!0}),u=setTimeout(()=>{f.disconnect(),Wi(!0,"error",`Element with id: ${e} not found within ${t} milliseconds, stopping observation`)},t),f},EP=r=>{var o=r,{timeout:e,elementId:t}=o,n=Fi(o,["timeout","elementId"]);if(!n.apiKey&&!n.apiToken){Wi(!0,"error","Copilot Widget requires either apiKey or apiToken");return}const u=document.getElementById(t);if(!u){Wi(!0,"warn","Container element not found for id:",t),Wi(!0,"warn","Beginning observation for element"),gP(Q({elementId:t,timeout:e},n));return}ey.createRoot(u).render(P.jsx(Td,Q({},n)))},yP={search:{setSearchContext:GS,updateSearchQuery:KS,updateFacetFilter:XS,updateFacetFilters:QS,updateRangeFilter:ZS,updateRangeFilters:JS,updateCatalogSegment:ex},components:{toggleWidgetOpen:ro,toggleModalFullscreen:Lm,setWidgetType:zc,setWidgetDialogPosition:Dm}};ke.CopilotDialog=XE,ke.CopilotEmbed=oE,ke.CopilotModal=JE,ke.CopilotWidget=Td,ke.WidgetProvider=Hm,ke.eventHandlers=yP,ke.injectCopilotWidget=EP,ke.useCopilot=Gi,Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"})});