@inkeep/cxkit-fern 0.5.117 → 0.5.118

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ var __defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */function BT(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var HT=Symbol.for("react.transitional.element"),zT=Symbol.for("react.portal"),UT=Symbol.for("react.fragment"),$T=Symbol.for("react.strict_mode"),VT=Symbol.for("react.profiler"),GT=Symbol.for("react.provider"),WT=Symbol.for("react.consumer"),qT=Symbol.for("react.context"),YT=Symbol.for("react.forward_ref"),KT=Symbol.for("react.suspense"),XT=Symbol.for("react.suspense_list"),QT=Symbol.for("react.memo"),ZT=Symbol.for("react.lazy"),JT=Symbol.for("react.scope"),eC=Symbol.for("react.debug_trace_mode"),tC=Symbol.for("react.offscreen"),nC=Symbol.for("react.legacy_hidden"),rC=Symbol.for("react.memo_cache_sentinel"),aC=Symbol.iterator,oC=Array.isArray;function iC(e,t){var n=3&e.length,r=e.length-n,a=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,a=27492+(65535&(a=5*(65535&(a=(a^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:a^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,((a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295)^a>>>16)>>>0}var sC=new MessageChannel,lC=[];function cC(e){lC.push(e),sC.port2.postMessage(null)}function uC(e){setTimeout((function(){throw e}))}sC.port1.onmessage=function(){var e=lC.shift();e&&e()};var dC=Promise,pC="function"==typeof queueMicrotask?queueMicrotask:function(e){dC.resolve(null).then(e).catch(uC)},hC=null,fC=0;function mC(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<fC&&(e.enqueue(new Uint8Array(hC.buffer,0,fC)),hC=new Uint8Array(2048),fC=0),e.enqueue(t);else{var n=hC.length-fC;n<t.byteLength&&(0===n?e.enqueue(hC):(hC.set(t.subarray(0,n),fC),e.enqueue(hC),t=t.subarray(n)),hC=new Uint8Array(2048),fC=0),hC.set(t,fC),fC+=t.byteLength}}function gC(e,t){return mC(e,t),!0}function yC(e){hC&&0<fC&&(e.enqueue(new Uint8Array(hC.buffer,0,fC)),hC=null,fC=0)}var bC=new TextEncoder;function vC(e){return bC.encode(e)}function kC(e){return bC.encode(e)}function wC(e,t){"function"==typeof e.error?e.error(t):e.close()}var xC=Object.assign,EC=Object.prototype.hasOwnProperty,_C=RegExp("^[: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]*$"),SC={},TC={};function CC(e){return!!EC.call(TC,e)||!EC.call(SC,e)&&(_C.test(e)?TC[e]=!0:(SC[e]=!0,!1))}var AC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),NC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),IC=/["'&<>]/;function RC(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=IC.exec(e);if(t){var n,r="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==n&&(r+=e.slice(a,n)),a=n+1,r+=t}e=a!==n?r+e.slice(a,n):r}return e}var OC=/([A-Z])/g,PC=/^ms-/,LC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function DC(e){return LC.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var MC=FT.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,FC=jT.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,jC={pending:!1,data:null,method:null,action:null},BC=FC.d;FC.d={f:BC.f,r:BC.r,D:function(e){var t=zR||null;if(t){var n=t.resumableState,r=t.renderState;if("string"==typeof e&&e){var a,o;if(!n.dnsResources.hasOwnProperty(e))n.dnsResources[e]=null,(o=(n=r.headers)&&0<n.remainingCapacity)&&(a="<"+(""+e).replace(xI,EI)+">; rel=dns-prefetch",o=0<=(n.remainingCapacity-=a.length+2)),o?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=", "),n.preconnects+=a):(OA(a=[],{href:e,rel:"dns-prefetch"}),r.preconnects.add(a));_O(t)}}else BC.D(e)},C:function(e,t){var n=zR||null;if(n){var r=n.resumableState,a=n.renderState;if("string"==typeof e&&e){var o="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[o].hasOwnProperty(e)){var i,s;if(r.connectResources[o][e]=null,s=(r=a.headers)&&0<r.remainingCapacity){if(s="<"+(""+e).replace(xI,EI)+">; rel=preconnect","string"==typeof t)s+='; crossorigin="'+(""+t).replace(_I,SI)+'"';i=s,s=0<=(r.remainingCapacity-=i.length+2)}s?(a.resets.connect[o][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=i):(OA(o=[],{rel:"preconnect",href:e,crossOrigin:t}),a.preconnects.add(o))}_O(n)}}else BC.C(e,t)},L:function(e,t,n){var r=zR||null;if(r){var a=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var i=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var c,u=i?i+"\n"+(s||""):e;if(a.imageResources.hasOwnProperty(u))return;a.imageResources[u]=HC,(a=o.headers)&&0<a.remainingCapacity&&"high"===l&&(c=wI(e,t,n),0<=(a.remainingCapacity-=c.length+2))?(o.resets.image[u]=HC,a.highImagePreloads&&(a.highImagePreloads+=", "),a.highImagePreloads+=c):(OA(a=[],xC({rel:"preload",href:i?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(a):(o.bulkPreloads.add(a),o.preloads.images.set(u,a)));break;case"style":if(a.styleResources.hasOwnProperty(e))return;OA(i=[],xC({rel:"preload",href:e,as:t},n)),a.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?HC:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,i),o.bulkPreloads.add(i);break;case"script":if(a.scriptResources.hasOwnProperty(e))return;i=[],o.preloads.scripts.set(e,i),o.bulkPreloads.add(i),OA(i,xC({rel:"preload",href:e,as:t},n)),a.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?HC:[n.crossOrigin,n.integrity];break;default:if(a.unknownResources.hasOwnProperty(t)){if((i=a.unknownResources[t]).hasOwnProperty(e))return}else i={},a.unknownResources[t]=i;if(i[e]=HC,(a=o.headers)&&0<a.remainingCapacity&&"font"===t&&(u=wI(e,t,n),0<=(a.remainingCapacity-=u.length+2)))o.resets.font[e]=HC,a.fontPreloads&&(a.fontPreloads+=", "),a.fontPreloads+=u;else if("font"===(OA(a=[],e=xC({rel:"preload",href:e,as:t},n)),t))o.fontPreloads.add(a);else o.bulkPreloads.add(a)}_O(r)}}else BC.L(e,t,n)},m:function(e,t){var n=zR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?HC:[t.crossOrigin,t.integrity],a.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var i=r.unknownResources[o];if(i.hasOwnProperty(e))return}else i={},r.moduleUnknownResources[o]=i;o=[],i[e]=HC}OA(o,xC({rel:"modulepreload",href:e},t)),a.bulkPreloads.add(o),_O(n)}}else BC.m(e,t)},X:function(e,t){var n=zR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=xC({src:e,async:!0},t),o&&(2===o.length&&kI(t,o),e=a.preloads.scripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),FA(e,t),_O(n))}}else BC.X(e,t)},S:function(e,t,n){var r=zR||null;if(r){var a=r.resumableState,o=r.renderState;if(e){t=t||"default";var i=o.styles.get(t),s=a.styleResources.hasOwnProperty(e)?a.styleResources[e]:void 0;null!==s&&(a.styleResources[e]=null,i||(i={precedence:vC(RC(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,i)),t={state:0,props:xC({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&kI(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),i.sheets.set(e,t),_O(r))}}else BC.S(e,t,n)},M:function(e,t){var n=zR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=xC({src:e,type:"module",async:!0},t),o&&(2===o.length&&kI(t,o),e=a.preloads.moduleScripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),FA(e,t),_O(n))}}else BC.M(e,t)}};var HC=[];kC('"></template>');var zC=kC("<script>"),UC=kC("<\/script>"),$C=kC('<script src="'),VC=kC('<script type="module" src="'),GC=kC('" nonce="'),WC=kC('" integrity="'),qC=kC('" crossorigin="'),YC=kC('" async=""><\/script>'),KC=/(<\/|<)(s)(cript)/gi;function XC(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var QC=kC('<script type="importmap">'),ZC=kC("<\/script>");function JC(e,t,n,r,a,o){var i=void 0===t?zC:kC('<script nonce="'+RC(t)+'">'),s=e.idPrefix;n=[];var l=e.bootstrapScriptContent,c=e.bootstrapScripts,u=e.bootstrapModules;if(void 0!==l&&n.push(i,vC((""+l).replace(KC,XC)),UC),l=[],void 0!==r&&(l.push(QC),l.push(vC((""+JSON.stringify(r)).replace(KC,XC))),l.push(ZC)),r=a?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,a={placeholderPrefix:kC(s+"P:"),segmentPrefix:kC(s+"S:"),boundaryPrefix:kC(s+"B:"),startInlineScript:i,htmlChunks:null,headChunks:null,externalRuntimeScript:null,bootstrapChunks:n,importMapChunks:l,onHeaders:a,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:t,hoistableState:null,stylesToHoist:!1},void 0!==c)for(r=0;r<c.length;r++){var d=c[r];s=i=void 0,l={rel:"preload",as:"script",fetchPriority:"low",nonce:t},"string"==typeof d?l.href=o=d:(l.href=o=d.src,l.integrity=s="string"==typeof d.integrity?d.integrity:void 0,l.crossOrigin=i="string"==typeof d||null==d.crossOrigin?void 0:"use-credentials"===d.crossOrigin?"use-credentials":"");var p=o;(d=e).scriptResources[p]=null,d.moduleScriptResources[p]=null,OA(d=[],l),a.bootstrapScripts.add(d),n.push($C,vC(RC(o))),t&&n.push(GC,vC(RC(t))),"string"==typeof s&&n.push(WC,vC(RC(s))),"string"==typeof i&&n.push(qC,vC(RC(i))),n.push(YC)}if(void 0!==u)for(c=0;c<u.length;c++)i=o=void 0,s={rel:"modulepreload",fetchPriority:"low",nonce:t},"string"==typeof(l=u[c])?s.href=r=l:(s.href=r=l.src,s.integrity=i="string"==typeof l.integrity?l.integrity:void 0,s.crossOrigin=o="string"==typeof l||null==l.crossOrigin?void 0:"use-credentials"===l.crossOrigin?"use-credentials":""),d=r,(l=e).scriptResources[d]=null,l.moduleScriptResources[d]=null,OA(l=[],s),a.bootstrapScripts.add(l),n.push(VC,vC(RC(r))),t&&n.push(GC,vC(RC(t))),"string"==typeof i&&n.push(WC,vC(RC(i))),"string"==typeof o&&n.push(qC,vC(RC(o))),n.push(YC);return a}function eA(e,t,n,r,a){return{idPrefix:void 0===e?"":e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:a,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function tA(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function nA(e){return tA("http://www.w3.org/2000/svg"===e?3:"http://www.w3.org/1998/Math/MathML"===e?4:0,null,0)}function rA(e,t,n){switch(t){case"noscript":return tA(2,null,1|e.tagScope);case"select":return tA(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return tA(3,null,e.tagScope);case"picture":return tA(2,null,2|e.tagScope);case"math":return tA(4,null,e.tagScope);case"foreignObject":return tA(2,null,e.tagScope);case"table":return tA(5,null,e.tagScope);case"thead":case"tbody":case"tfoot":return tA(6,null,e.tagScope);case"colgroup":return tA(8,null,e.tagScope);case"tr":return tA(7,null,e.tagScope)}return 5<=e.insertionMode?tA(2,null,e.tagScope):0===e.insertionMode?tA("html"===t?1:2,null,e.tagScope):1===e.insertionMode?tA(2,null,e.tagScope):e}var aA=kC("\x3c!-- --\x3e");function oA(e,t,n,r){return""===t?r:(r&&e.push(aA),e.push(vC(RC(t))),!0)}var iA=new Map,sA=kC(' style="'),lA=kC(":"),cA=kC(";");function uA(e,t){if("object"!=typeof t)throw Error(BT(62));var n,r=!0;for(n in t)if(EC.call(t,n)){var a=t[n];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===n.indexOf("--")){var o=vC(RC(n));a=vC(RC((""+a).trim()))}else void 0===(o=iA.get(n))&&(o=kC(RC(n.replace(OC,"-$1").toLowerCase().replace(PC,"-ms-"))),iA.set(n,o)),a="number"==typeof a?0===a||AC.has(n)?vC(""+a):vC(a+"px"):vC(RC((""+a).trim()));r?(r=!1,e.push(sA,o,lA,a)):e.push(cA,o,lA,a)}}r||e.push(hA)}var dA=kC(" "),pA=kC('="'),hA=kC('"'),fA=kC('=""');function mA(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(dA,vC(t),fA)}function gA(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(dA,vC(t),pA,vC(RC(n)),hA)}var yA=kC(RC("javascript:throw new Error('React form unexpectedly submitted.')")),bA=kC('<input type="hidden"');function vA(e,t){this.push(bA),kA(e),gA(this,"name",t),gA(this,"value",e),this.push(SA)}function kA(e){if("string"!=typeof e)throw Error(BT(480))}function wA(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var a=r.data;null!=a&&a.forEach(kA)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function xA(e,t,n,r,a,o,i,s){var l=null;if("function"==typeof r){var c=wA(t,r);null!==c?(s=c.name,r=c.action||"",a=c.encType,o=c.method,i=c.target,l=c.data):(e.push(dA,vC("formAction"),pA,yA,hA),i=o=a=r=s=null,NA(t,n))}return null!=s&&EA(e,"name",s),null!=r&&EA(e,"formAction",r),null!=a&&EA(e,"formEncType",a),null!=o&&EA(e,"formMethod",o),null!=i&&EA(e,"formTarget",i),l}function EA(e,t,n){switch(t){case"className":gA(e,"class",n);break;case"tabIndex":gA(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":gA(e,t,n);break;case"style":uA(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=DC(""+n),e.push(dA,vC(t),pA,vC(RC(n)),hA);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":mA(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=DC(""+n),e.push(dA,vC("xlink:href"),pA,vC(RC(n)),hA);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(dA,vC(t),pA,vC(RC(n)),hA);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(dA,vC(t),fA);break;case"capture":case"download":!0===n?e.push(dA,vC(t),fA):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(dA,vC(t),pA,vC(RC(n)),hA);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(dA,vC(t),pA,vC(RC(n)),hA);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(dA,vC(t),pA,vC(RC(n)),hA);break;case"xlinkActuate":gA(e,"xlink:actuate",n);break;case"xlinkArcrole":gA(e,"xlink:arcrole",n);break;case"xlinkRole":gA(e,"xlink:role",n);break;case"xlinkShow":gA(e,"xlink:show",n);break;case"xlinkTitle":gA(e,"xlink:title",n);break;case"xlinkType":gA(e,"xlink:type",n);break;case"xmlBase":gA(e,"xml:base",n);break;case"xmlLang":gA(e,"xml:lang",n);break;case"xmlSpace":gA(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&CC(t=NC.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(dA,vC(t),pA,vC(RC(n)),hA)}}}var _A=kC(">"),SA=kC("/>");function TA(e,t,n){if(null!=t){if(null!=n)throw Error(BT(60));if("object"!=typeof t||!("__html"in t))throw Error(BT(61));null!=(t=t.__html)&&e.push(vC(""+t))}}var CA=kC(' selected=""'),AA=kC('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});');function NA(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,AA,UC))}var IA=kC("\x3c!--F!--\x3e"),RA=kC("\x3c!--F--\x3e");function OA(e,t){for(var n in e.push(UA("link")),t)if(EC.call(t,n)){var r=t[n];if(null!=r)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(BT(399,"link"));default:EA(e,n,r)}}return e.push(SA),null}var PA=/(<\/|<)(s)(tyle)/gi;function LA(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function DA(e,t,n){for(var r in e.push(UA(n)),t)if(EC.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(BT(399,n));default:EA(e,r,a)}}return e.push(SA),null}function MA(e,t){e.push(UA("title"));var n,r=null,a=null;for(n in t)if(EC.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:EA(e,n,o)}}return e.push(_A),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(vC(RC(""+t))),TA(e,a,r),e.push(WA("title")),null}function FA(e,t){e.push(UA("script"));var n,r=null,a=null;for(n in t)if(EC.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:EA(e,n,o)}}return e.push(_A),TA(e,a,r),"string"==typeof r&&e.push(vC((""+r).replace(KC,XC))),e.push(WA("script")),null}function jA(e,t,n){e.push(UA(n));var r,a=n=null;for(r in t)if(EC.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":a=o;break;default:EA(e,r,o)}}return e.push(_A),TA(e,a,n),"string"==typeof n?(e.push(vC(RC(n))),null):n}var BA=kC("\n"),HA=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,zA=new Map;function UA(e){var t=zA.get(e);if(void 0===t){if(!HA.test(e))throw Error(BT(65,e));t=kC("<"+e),zA.set(e,t)}return t}var $A=kC("<!DOCTYPE html>");function VA(e,t,n,r,a,o,i,s,l){switch(t){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":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":break;case"a":e.push(UA("a"));var c,u=null,d=null;for(c in n)if(EC.call(n,c)){var p=n[c];if(null!=p)switch(c){case"children":u=p;break;case"dangerouslySetInnerHTML":d=p;break;case"href":""===p?gA(e,"href",""):EA(e,c,p);break;default:EA(e,c,p)}}if(e.push(_A),TA(e,d,u),"string"==typeof u){e.push(vC(RC(u)));var h=null}else h=u;return h;case"select":e.push(UA("select"));var f,m=null,g=null;for(f in n)if(EC.call(n,f)){var y=n[f];if(null!=y)switch(f){case"children":m=y;break;case"dangerouslySetInnerHTML":g=y;break;case"defaultValue":case"value":break;default:EA(e,f,y)}}return e.push(_A),TA(e,g,m),m;case"option":var b=i.selectedValue;e.push(UA("option"));var v,k=null,w=null,x=null,E=null;for(v in n)if(EC.call(n,v)){var _=n[v];if(null!=_)switch(v){case"children":k=_;break;case"selected":x=_;break;case"dangerouslySetInnerHTML":E=_;break;case"value":w=_;default:EA(e,v,_)}}if(null!=b){var S=null!==w?""+w:function(e){var t="";return FT.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(k);if(oC(b)){for(var T=0;T<b.length;T++)if(""+b[T]===S){e.push(CA);break}}else""+b===S&&e.push(CA)}else x&&e.push(CA);return e.push(_A),TA(e,E,k),k;case"textarea":e.push(UA("textarea"));var C,A=null,N=null,I=null;for(C in n)if(EC.call(n,C)){var R=n[C];if(null!=R)switch(C){case"children":I=R;break;case"value":A=R;break;case"defaultValue":N=R;break;case"dangerouslySetInnerHTML":throw Error(BT(91));default:EA(e,C,R)}}if(null===A&&null!==N&&(A=N),e.push(_A),null!=I){if(null!=A)throw Error(BT(92));if(oC(I)){if(1<I.length)throw Error(BT(93));A=""+I[0]}A=""+I}return"string"==typeof A&&"\n"===A[0]&&e.push(BA),null!==A&&e.push(vC(RC(""+A))),null;case"input":e.push(UA("input"));var O,P=null,L=null,D=null,M=null,F=null,j=null,B=null,H=null,z=null;for(O in n)if(EC.call(n,O)){var U=n[O];if(null!=U)switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(BT(399,"input"));case"name":P=U;break;case"formAction":L=U;break;case"formEncType":D=U;break;case"formMethod":M=U;break;case"formTarget":F=U;break;case"defaultChecked":z=U;break;case"defaultValue":B=U;break;case"checked":H=U;break;case"value":j=U;break;default:EA(e,O,U)}}var $=xA(e,r,a,L,D,M,F,P);return null!==H?mA(e,"checked",H):null!==z&&mA(e,"checked",z),null!==j?EA(e,"value",j):null!==B&&EA(e,"value",B),e.push(SA),null!=$&&$.forEach(vA,e),null;case"button":e.push(UA("button"));var V,G=null,W=null,q=null,Y=null,K=null,X=null,Q=null;for(V in n)if(EC.call(n,V)){var Z=n[V];if(null!=Z)switch(V){case"children":G=Z;break;case"dangerouslySetInnerHTML":W=Z;break;case"name":q=Z;break;case"formAction":Y=Z;break;case"formEncType":K=Z;break;case"formMethod":X=Z;break;case"formTarget":Q=Z;break;default:EA(e,V,Z)}}var J=xA(e,r,a,Y,K,X,Q,q);if(e.push(_A),null!=J&&J.forEach(vA,e),TA(e,W,G),"string"==typeof G){e.push(vC(RC(G)));var ee=null}else ee=G;return ee;case"form":e.push(UA("form"));var te,ne=null,re=null,ae=null,oe=null,ie=null,se=null;for(te in n)if(EC.call(n,te)){var le=n[te];if(null!=le)switch(te){case"children":ne=le;break;case"dangerouslySetInnerHTML":re=le;break;case"action":ae=le;break;case"encType":oe=le;break;case"method":ie=le;break;case"target":se=le;break;default:EA(e,te,le)}}var ce=null,ue=null;if("function"==typeof ae){var de=wA(r,ae);null!==de?(ae=de.action||"",oe=de.encType,ie=de.method,se=de.target,ce=de.data,ue=de.name):(e.push(dA,vC("action"),pA,yA,hA),se=ie=oe=ae=null,NA(r,a))}if(null!=ae&&EA(e,"action",ae),null!=oe&&EA(e,"encType",oe),null!=ie&&EA(e,"method",ie),null!=se&&EA(e,"target",se),e.push(_A),null!==ue&&(e.push(bA),gA(e,"name",ue),e.push(SA),null!=ce&&ce.forEach(vA,e)),TA(e,re,ne),"string"==typeof ne){e.push(vC(RC(ne)));var pe=null}else pe=ne;return pe;case"menuitem":for(var he in e.push(UA("menuitem")),n)if(EC.call(n,he)){var fe=n[he];if(null!=fe)switch(he){case"children":case"dangerouslySetInnerHTML":throw Error(BT(400));default:EA(e,he,fe)}}return e.push(_A),null;case"object":e.push(UA("object"));var me,ge=null,ye=null;for(me in n)if(EC.call(n,me)){var be=n[me];if(null!=be)switch(me){case"children":ge=be;break;case"dangerouslySetInnerHTML":ye=be;break;case"data":var ve=DC(""+be);if(""===ve)break;e.push(dA,vC("data"),pA,vC(RC(ve)),hA);break;default:EA(e,me,be)}}if(e.push(_A),TA(e,ye,ge),"string"==typeof ge){e.push(vC(RC(ge)));var ke=null}else ke=ge;return ke;case"title":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var we=MA(e,n);else l?we=null:(MA(a.hoistableChunks,n),we=void 0);return we;case"link":var xe=n.rel,Ee=n.href,_e=n.precedence;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof xe||"string"!=typeof Ee||""===Ee){OA(e,n);var Se=null}else if("stylesheet"===n.rel)if("string"!=typeof _e||null!=n.disabled||n.onLoad||n.onError)Se=OA(e,n);else{var Te=a.styles.get(_e),Ce=r.styleResources.hasOwnProperty(Ee)?r.styleResources[Ee]:void 0;if(null!==Ce){r.styleResources[Ee]=null,Te||(Te={precedence:vC(RC(_e)),rules:[],hrefs:[],sheets:new Map},a.styles.set(_e,Te));var Ae={state:0,props:xC({},n,{"data-precedence":n.precedence,precedence:null})};if(Ce){2===Ce.length&&kI(Ae.props,Ce);var Ne=a.preloads.stylesheets.get(Ee);Ne&&0<Ne.length?Ne.length=0:Ae.state=1}Te.sheets.set(Ee,Ae),o&&o.stylesheets.add(Ae)}else if(Te){var Ie=Te.sheets.get(Ee);Ie&&o&&o.stylesheets.add(Ie)}s&&e.push(aA),Se=null}else n.onLoad||n.onError?Se=OA(e,n):(s&&e.push(aA),Se=l?null:OA(a.hoistableChunks,n));return Se;case"script":var Re=n.async;if("string"!=typeof n.src||!n.src||!Re||"function"==typeof Re||"symbol"==typeof Re||n.onLoad||n.onError||3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var Oe=FA(e,n);else{var Pe=n.src;if("module"===n.type)var Le=r.moduleScriptResources,De=a.preloads.moduleScripts;else Le=r.scriptResources,De=a.preloads.scripts;var Me=Le.hasOwnProperty(Pe)?Le[Pe]:void 0;if(null!==Me){Le[Pe]=null;var Fe=n;if(Me){2===Me.length&&kI(Fe=xC({},n),Me);var je=De.get(Pe);je&&(je.length=0)}var Be=[];a.scripts.add(Be),FA(Be,Fe)}s&&e.push(aA),Oe=null}return Oe;case"style":var He=n.precedence,ze=n.href;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof He||"string"!=typeof ze||""===ze){e.push(UA("style"));var Ue,$e=null,Ve=null;for(Ue in n)if(EC.call(n,Ue)){var Ge=n[Ue];if(null!=Ge)switch(Ue){case"children":$e=Ge;break;case"dangerouslySetInnerHTML":Ve=Ge;break;default:EA(e,Ue,Ge)}}e.push(_A);var We=Array.isArray($e)?2>$e.length?$e[0]:null:$e;"function"!=typeof We&&"symbol"!=typeof We&&null!=We&&e.push(vC((""+We).replace(PA,LA))),TA(e,Ve,$e),e.push(WA("style"));var qe=null}else{var Ye=a.styles.get(He);if(null!==(r.styleResources.hasOwnProperty(ze)?r.styleResources[ze]:void 0)){r.styleResources[ze]=null,Ye?Ye.hrefs.push(vC(RC(ze))):(Ye={precedence:vC(RC(He)),rules:[],hrefs:[vC(RC(ze))],sheets:new Map},a.styles.set(He,Ye));var Ke,Xe=Ye.rules,Qe=null,Ze=null;for(Ke in n)if(EC.call(n,Ke)){var Je=n[Ke];if(null!=Je)switch(Ke){case"children":Qe=Je;break;case"dangerouslySetInnerHTML":Ze=Je}}var et=Array.isArray(Qe)?2>Qe.length?Qe[0]:null:Qe;"function"!=typeof et&&"symbol"!=typeof et&&null!=et&&Xe.push(vC((""+et).replace(PA,LA))),TA(Xe,Ze,Qe)}Ye&&o&&o.styles.add(Ye),s&&e.push(aA),qe=void 0}return qe;case"meta":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var tt=DA(e,n,"meta");else s&&e.push(aA),tt=l?null:"string"==typeof n.charSet?DA(a.charsetChunks,n,"meta"):"viewport"===n.name?DA(a.viewportChunks,n,"meta"):DA(a.hoistableChunks,n,"meta");return tt;case"listing":case"pre":e.push(UA(t));var nt,rt=null,at=null;for(nt in n)if(EC.call(n,nt)){var ot=n[nt];if(null!=ot)switch(nt){case"children":rt=ot;break;case"dangerouslySetInnerHTML":at=ot;break;default:EA(e,nt,ot)}}if(e.push(_A),null!=at){if(null!=rt)throw Error(BT(60));if("object"!=typeof at||!("__html"in at))throw Error(BT(61));var it=at.__html;null!=it&&("string"==typeof it&&0<it.length&&"\n"===it[0]?e.push(BA,vC(it)):e.push(vC(""+it)))}return"string"==typeof rt&&"\n"===rt[0]&&e.push(BA),rt;case"img":var st=n.src,lt=n.srcSet;if(!("lazy"===n.loading||!st&&!lt||"string"!=typeof st&&null!=st||"string"!=typeof lt&&null!=lt)&&"low"!==n.fetchPriority&&!1==!!(3&i.tagScope)&&("string"!=typeof st||":"!==st[4]||"d"!==st[0]&&"D"!==st[0]||"a"!==st[1]&&"A"!==st[1]||"t"!==st[2]&&"T"!==st[2]||"a"!==st[3]&&"A"!==st[3])&&("string"!=typeof lt||":"!==lt[4]||"d"!==lt[0]&&"D"!==lt[0]||"a"!==lt[1]&&"A"!==lt[1]||"t"!==lt[2]&&"T"!==lt[2]||"a"!==lt[3]&&"A"!==lt[3])){var ct="string"==typeof n.sizes?n.sizes:void 0,ut=lt?lt+"\n"+(ct||""):st,dt=a.preloads.images,pt=dt.get(ut);if(pt)("high"===n.fetchPriority||10>a.highImagePreloads.size)&&(dt.delete(ut),a.highImagePreloads.add(pt));else if(!r.imageResources.hasOwnProperty(ut)){r.imageResources[ut]=HC;var ht,ft=n.crossOrigin,mt="string"==typeof ft?"use-credentials"===ft?ft:"":void 0,gt=a.headers;gt&&0<gt.remainingCapacity&&("high"===n.fetchPriority||500>gt.highImagePreloads.length)&&(ht=wI(st,"image",{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:mt,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),0<=(gt.remainingCapacity-=ht.length+2))?(a.resets.image[ut]=HC,gt.highImagePreloads&&(gt.highImagePreloads+=", "),gt.highImagePreloads+=ht):(OA(pt=[],{rel:"preload",as:"image",href:lt?void 0:st,imageSrcSet:lt,imageSizes:ct,crossOrigin:mt,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),"high"===n.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(pt):(a.bulkPreloads.add(pt),dt.set(ut,pt)))}}return DA(e,n,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return DA(e,n,t);case"head":if(2>i.insertionMode&&null===a.headChunks){a.headChunks=[];var yt=jA(a.headChunks,n,"head")}else yt=jA(e,n,"head");return yt;case"html":if(0===i.insertionMode&&null===a.htmlChunks){a.htmlChunks=[$A];var bt=jA(a.htmlChunks,n,"html")}else bt=jA(e,n,"html");return bt;default:if(-1!==t.indexOf("-")){e.push(UA(t));var vt,kt=null,wt=null;for(vt in n)if(EC.call(n,vt)){var xt=n[vt];if(null!=xt){var Et=vt;switch(vt){case"children":kt=xt;break;case"dangerouslySetInnerHTML":wt=xt;break;case"style":uA(e,xt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":Et="class";default:if(CC(vt)&&"function"!=typeof xt&&"symbol"!=typeof xt&&!1!==xt){if(!0===xt)xt="";else if("object"==typeof xt)continue;e.push(dA,vC(Et),pA,vC(RC(xt)),hA)}}}}return e.push(_A),TA(e,wt,kt),kt}}return jA(e,n,t)}var GA=new Map;function WA(e){var t=GA.get(e);return void 0===t&&(t=kC("</"+e+">"),GA.set(e,t)),t}function qA(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)mC(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,gC(e,n))}var YA=kC('<template id="'),KA=kC('"></template>'),XA=kC("\x3c!--$--\x3e"),QA=kC('\x3c!--$?--\x3e<template id="'),ZA=kC('"></template>'),JA=kC("\x3c!--$!--\x3e"),eN=kC("\x3c!--/$--\x3e"),tN=kC("<template"),nN=kC('"'),rN=kC(' data-dgst="');kC(' data-msg="'),kC(' data-stck="'),kC(' data-cstck="');var aN=kC("></template>");function oN(e,t,n){if(mC(e,QA),null===n)throw Error(BT(395));return mC(e,t.boundaryPrefix),mC(e,vC(n.toString(16))),gC(e,ZA)}var iN=kC('<div hidden id="'),sN=kC('">'),lN=kC("</div>"),cN=kC('<svg aria-hidden="true" style="display:none" id="'),uN=kC('">'),dN=kC("</svg>"),pN=kC('<math aria-hidden="true" style="display:none" id="'),hN=kC('">'),fN=kC("</math>"),mN=kC('<table hidden id="'),gN=kC('">'),yN=kC("</table>"),bN=kC('<table hidden><tbody id="'),vN=kC('">'),kN=kC("</tbody></table>"),wN=kC('<table hidden><tr id="'),xN=kC('">'),EN=kC("</tr></table>"),_N=kC('<table hidden><colgroup id="'),SN=kC('">'),TN=kC("</colgroup></table>");var CN=kC('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),AN=kC('$RS("'),NN=kC('","'),IN=kC('")<\/script>');kC('<template data-rsi="" data-sid="'),kC('" data-pid="');var RN=kC('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),ON=kC('$RC("'),PN=kC('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),LN=kC('$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),DN=kC('$RR("'),MN=kC('","'),FN=kC('",'),jN=kC('"'),BN=kC(")<\/script>");kC('<template data-rci="" data-bid="'),kC('<template data-rri="" data-bid="'),kC('" data-sid="'),kC('" data-sty="');var HN=kC('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),zN=kC('$RX("'),UN=kC('"'),$N=kC(","),VN=kC(")<\/script>");kC('<template data-rxi="" data-bid="'),kC('" data-dgst="'),kC('" data-msg="'),kC('" data-stck="'),kC('" data-cstck="');var GN=/[<\u2028\u2029]/g;var WN=/[&><\u2028\u2029]/g;function qN(e){return JSON.stringify(e).replace(WN,(function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var YN=kC('<style media="not all" data-precedence="'),KN=kC('" data-href="'),XN=kC('">'),QN=kC("</style>"),ZN=!1,JN=!0;function eI(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(mC(this,YN),mC(this,e.precedence),mC(this,KN);r<n.length-1;r++)mC(this,n[r]),mC(this,lI);for(mC(this,n[r]),mC(this,XN),r=0;r<t.length;r++)mC(this,t[r]);JN=gC(this,QN),ZN=!0,t.length=0,n.length=0}}function tI(e){return 2!==e.state&&(ZN=!0)}function nI(e,t,n){return ZN=!1,JN=!0,t.styles.forEach(eI,e),t.stylesheets.forEach(tI),ZN&&(n.stylesToHoist=!0),JN}function rI(e){for(var t=0;t<e.length;t++)mC(this,e[t]);e.length=0}var aI=[];function oI(e){OA(aI,e.props);for(var t=0;t<aI.length;t++)mC(this,aI[t]);aI.length=0,e.state=2}var iI=kC('<style data-precedence="'),sI=kC('" data-href="'),lI=kC(" "),cI=kC('">'),uI=kC("</style>");function dI(e){var t=0<e.sheets.size;e.sheets.forEach(oI,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(mC(this,iI),mC(this,e.precedence),e=0,r.length){for(mC(this,sI);e<r.length-1;e++)mC(this,r[e]),mC(this,lI);mC(this,r[e])}for(mC(this,cI),e=0;e<n.length;e++)mC(this,n[e]);mC(this,uI),n.length=0,r.length=0}}function pI(e){if(0===e.state){e.state=1;var t=e.props;for(OA(aI,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<aI.length;e++)mC(this,aI[e]);aI.length=0}}function hI(e){e.sheets.forEach(pI,this),e.sheets.clear()}var fI=kC("["),mI=kC(",["),gI=kC(","),yI=kC("]");function bI(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=DC(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!CC(t))return;t=""+n}mC(e,gI),mC(e,vC(qN(r))),mC(e,gI),mC(e,vC(qN(t)))}function vI(){return{styles:new Set,stylesheets:new Set}}function kI(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function wI(e,t,n){for(var r in t="<"+(e=(""+e).replace(xI,EI))+'>; rel=preload; as="'+(t=(""+t).replace(_I,SI))+'"',n)EC.call(n,r)&&("string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(_I,SI)+'"'));return t}var xI=/[<>\r\n]/g;function EI(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var _I=/["';,\r\n]/g;function SI(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function TI(e){this.styles.add(e)}function CI(e){this.stylesheets.add(e)}var AI=Function.prototype.bind,NI=Symbol.for("react.client.reference");function II(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===NI?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case UT:return"Fragment";case zT:return"Portal";case VT:return"Profiler";case $T:return"StrictMode";case KT:return"Suspense";case XT:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case qT:return(e.displayName||"Context")+".Provider";case WT:return(e._context.displayName||"Context")+".Consumer";case YT:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case QT:return null!==(t=e.displayName||null)?t:II(e.type)||"Memo";case ZT:t=e._payload,e=e._init;try{return II(e(t))}catch(n){}}return null}var RI={},OI=null;function PI(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(BT(401))}else{if(null===n)throw Error(BT(401));PI(e,n)}t.context._currentValue=t.value}}function LI(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&LI(e)}function DI(e){var t=e.parent;null!==t&&DI(t),e.context._currentValue=e.value}function MI(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(BT(402));e.depth===t.depth?PI(e,t):MI(e,t)}function FI(e,t){var n=t.parent;if(null===n)throw Error(BT(402));e.depth===n.depth?PI(e,n):FI(e,n),t.context._currentValue=t.value}function jI(e){var t=OI;t!==e&&(null===t?DI(e):null===e?LI(t):t.depth===e.depth?PI(t,e):t.depth>e.depth?MI(t,e):FI(t,e),OI=e)}var BI={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},HI={id:1,overflow:""};function zI(e,t,n){var r=e.id;e=e.overflow;var a=32-UI(r)-1;r&=~(1<<a),n+=1;var o=32-UI(t)+a;if(30<o){var i=a-a%5;return o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,{id:1<<32-UI(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var UI=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-($I(e)/VI|0)|0},$I=Math.log,VI=Math.LN2;var GI=Error(BT(460));function WI(){}var qI=null;function YI(){if(null===qI)throw Error(BT(459));var e=qI;return qI=null,e}var KI="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},XI=null,QI=null,ZI=null,JI=null,eR=null,tR=null,nR=!1,rR=!1,aR=0,oR=0,iR=-1,sR=0,lR=null,cR=null,uR=0;function dR(){if(null===XI)throw Error(BT(321));return XI}function pR(){if(0<uR)throw Error(BT(312));return{memoizedState:null,queue:null,next:null}}function hR(){return null===tR?null===eR?(nR=!1,eR=tR=pR()):(nR=!0,tR=eR):null===tR.next?(nR=!1,tR=tR.next=pR()):(nR=!0,tR=tR.next),tR}function fR(){var e=lR;return lR=null,e}function mR(){JI=ZI=QI=XI=null,rR=!1,eR=null,uR=0,tR=cR=null}function gR(e,t){return"function"==typeof t?t(e):t}function yR(e,t,n){if(XI=dR(),tR=hR(),nR){var r=tR.queue;if(t=r.dispatch,null!==cR&&void 0!==(n=cR.get(r))){cR.delete(r),r=tR.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return tR.memoizedState=r,[r,t]}return[tR.memoizedState,t]}return e=e===gR?"function"==typeof t?t():t:void 0!==n?n(t):t,tR.memoizedState=e,e=(e=tR.queue={last:null,dispatch:null}).dispatch=vR.bind(null,XI,e),[tR.memoizedState,e]}function bR(e,t){if(XI=dR(),t=void 0===t?null:t,null!==(tR=hR())){var n=tR.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var a=0;a<r.length&&a<t.length;a++)if(!KI(t[a],r[a])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),tR.memoizedState=[e,t],e}function vR(e,t,n){if(25<=uR)throw Error(BT(301));if(e===XI)if(rR=!0,e={action:n,next:null},null===cR&&(cR=new Map),void 0===(n=cR.get(t)))cR.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function kR(){throw Error(BT(394))}function wR(){throw Error(BT(479))}function xR(e,t,n){dR();var r=oR++,a=ZI;if("function"==typeof e.$$FORM_ACTION){var o=null,i=JI;a=a.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==a&&"function"==typeof s){var l=a[1];s.call(e,a[2],a[3])&&(l===(o=void 0!==n?"p"+n:"k"+iC(JSON.stringify([i,null,r]),0))&&(iR=r,t=a[0]))}var c=e.bind(null,t);return e=function(e){c(e)},"function"==typeof c.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=c.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+iC(JSON.stringify([i,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function ER(e){var t=sR;return sR+=1,null===lR&&(lR=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(WI,WI),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(WI,WI):((e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw qI=t,GI}}(lR,e,t)}function _R(){throw Error(BT(393))}function SR(){}var TR={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ER(e);if(e.$$typeof===qT)return e._currentValue}throw Error(BT(438,String(e)))},useContext:function(e){return dR(),e._currentValue},useMemo:bR,useReducer:yR,useRef:function(e){XI=dR();var t=(tR=hR()).memoizedState;return null===t?(e={current:e},tR.memoizedState=e):t},useState:function(e){return yR(gR,e)},useInsertionEffect:SR,useLayoutEffect:SR,useCallback:function(e,t){return bR((function(){return e}),t)},useImperativeHandle:SR,useEffect:SR,useDebugValue:SR,useDeferredValue:function(e,t){return dR(),void 0!==t?t:e},useTransition:function(){return dR(),[!1,kR]},useId:function(){var e=QI.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-UI(e)-1)).toString(32)+t;var n=NR;if(null===n)throw Error(BT(404));return t=aR++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(BT(407));return n()},useCacheRefresh:function(){return _R},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=rC;return t},useHostTransitionStatus:function(){return dR(),jC},useOptimistic:function(e){return dR(),[e,wR]}};TR.useFormState=xR,TR.useActionState=xR;var CR,AR,NR=null,IR={getCacheForType:function(){throw Error(BT(248))}};function RR(e){if(void 0===CR)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);CR=t&&t[1]||"",AR=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+CR+e+AR}var OR=!1;function PR(e,t){if(!e||OR)return"";OR=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],s=o[1];if(i&&s){var l=i.split("\n"),c=s.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==c[a]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{OR=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?RR(n):""}function LR(e){if("string"==typeof e)return RR(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?e=PR(e,!0):PR(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case YT:return PR(e.render,!1);case QT:return PR(e.type,!1);case ZT:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return RR("Lazy")}return LR(e)}if("string"==typeof e.name)return n=e.env,RR(e.name+(n?" ["+n+"]":""))}switch(e){case XT:return RR("SuspenseList");case KT:return RR("Suspense")}return""}function DR(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"%c%s%c "+e[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""):e.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""),e.unshift(console),(t=AI.apply(console.error,e))()}else console.error(e);return null}function MR(){}function FR(e,t,n,r,a,o,i,s,l,c,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedRootSegment=null,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===a?DR:a,this.onPostpone=void 0===c?MR:c,this.onAllReady=void 0===o?MR:o,this.onShellReady=void 0===i?MR:i,this.onShellError=void 0===s?MR:s,this.onFatalError=void 0===l?MR:l,this.formState=void 0===u?null:u}function jR(e,t,n,r,a,o,i,s,l,c,u,d){return(n=WR(t=new FR(t,n,r,a,o,i,s,l,c,u,d),0,null,r,!1,!1)).parentFlushed=!0,qR(e=VR(t,null,e,-1,null,n,null,t.abortableTasks,null,r,null,HI,null,!1)),t.pingedTasks.push(e),t}var BR,HR,zR=null;function UR(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?pC((function(){return gO(e)})):cC((function(){return gO(e)})))}function $R(e,t){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:vI(),fallbackState:vI(),trackedContentKeyPath:null,trackedFallbackNode:null}}function VR(e,t,n,r,a,o,i,s,l,c,u,d,p,h){e.allPendingTasks++,null===a?e.pendingRootTasks++:a.pendingTasks++;var f={replay:null,node:n,childIndex:r,ping:function(){return UR(e,f)},blockedBoundary:a,blockedSegment:o,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:h};return s.add(f),f}function GR(e,t,n,r,a,o,i,s,l,c,u,d,p,h){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var f={replay:n,node:r,childIndex:a,ping:function(){return UR(e,f)},blockedBoundary:o,blockedSegment:null,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:h};return s.add(f),f}function WR(e,t,n,r,a,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],parentFormatContext:r,boundary:n,lastPushedText:a,textEmbedded:o}}function qR(e){var t=e.node;if("object"==typeof t&&null!==t&&t.$$typeof===HT)e.componentStack={parent:e.componentStack,type:t.type}}function YR(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=LR(r.type),r=r.parent}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return Object.defineProperty(t,"componentStack",{value:a}),a}}),t}function KR(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function XR(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,wC(e.destination,t)):(e.status=13,e.fatalError=t)}function QR(e,t,n,r,a,o){var i=t.thenableState;for(t.thenableState=null,XI={},QI=t,ZI=e,JI=n,oR=aR=0,iR=-1,sR=0,lR=i,e=r(a,o);rR;)rR=!1,oR=aR=0,iR=-1,sR=0,uR+=1,tR=null,e=r(a,o);return mR(),e}function ZR(e,t,n,r,a,o,i){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===i?l.push(IA):l.push(RA)}}o=t.keyPath,t.keyPath=n,a?(n=t.treeContext,t.treeContext=zI(n,1,0),sO(e,t,r,-1),t.treeContext=n):s?sO(e,t,r,-1):tO(e,t,r,-1),t.keyPath=o}function JR(e,t,n,r,a,o){if("function"==typeof r)if(r.prototype&&r.prototype.isReactComponent){var i=a;if("ref"in a)for(var s in i={},a)"ref"!==s&&(i[s]=a[s]);var l=r.defaultProps;if(l)for(var c in i===a&&(i=xC({},i,a)),l)void 0===i[c]&&(i[c]=l[c]);a=i,i=RI,"object"==typeof(l=r.contextType)&&null!==l&&(i=l._currentValue);var u=void 0!==(i=new r(a,i)).state?i.state:null;if(i.updater=BI,i.props=a,i.state=u,l={queue:[],replace:!1},i._reactInternals=l,o=r.contextType,i.context="object"==typeof o&&null!==o?o._currentValue:RI,"function"==typeof(o=r.getDerivedStateFromProps)&&(u=null==(o=o(a,u))?u:xC({},u,o),i.state=u),"function"!=typeof r.getDerivedStateFromProps&&"function"!=typeof i.getSnapshotBeforeUpdate&&("function"==typeof i.UNSAFE_componentWillMount||"function"==typeof i.componentWillMount))if(r=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),r!==i.state&&BI.enqueueReplaceState(i,i.state,null),null!==l.queue&&0<l.queue.length)if(r=l.queue,o=l.replace,l.queue=null,l.replace=!1,o&&1===r.length)i.state=r[0];else{for(l=o?r[0]:i.state,u=!0,o=o?1:0;o<r.length;o++)null!=(c="function"==typeof(c=r[o])?c.call(i,l,a,void 0):c)&&(u?(u=!1,l=xC({},l,c)):xC(l,c));i.state=l}else l.queue=null;if(r=i.render(),12===e.status)throw null;a=t.keyPath,t.keyPath=n,tO(e,t,r,-1),t.keyPath=a}else{if(r=QR(e,t,n,r,a,void 0),12===e.status)throw null;ZR(e,t,n,r,0!==aR,oR,iR)}else{if("string"!=typeof r){switch(r){case nC:case eC:case $T:case VT:case UT:return r=t.keyPath,t.keyPath=n,tO(e,t,a.children,-1),void(t.keyPath=r);case tC:return void("hidden"!==a.mode&&(r=t.keyPath,t.keyPath=n,tO(e,t,a.children,-1),t.keyPath=r));case XT:return r=t.keyPath,t.keyPath=n,tO(e,t,a.children,-1),void(t.keyPath=r);case JT:throw Error(BT(343));case KT:e:if(null!==t.replay){r=t.keyPath,t.keyPath=n,n=a.children;try{sO(e,t,n,-1)}finally{t.keyPath=r}}else{r=t.keyPath;var d=t.blockedBoundary,p=t.hoistableState;o=t.blockedSegment,c=a.fallback,a=a.children;var h=new Set;s=$R(0,h),null!==e.trackedPostpones&&(s.trackedContentKeyPath=n);var f=WR(0,o.chunks.length,s,t.formatContext,!1,!1);o.children.push(f),o.lastPushedText=!1;var m=WR(0,0,null,t.formatContext,!1,!1);if(m.parentFlushed=!0,null!==e.trackedPostpones){l=[(i=[n[0],"Suspense Fallback",n[2]])[1],i[2],[],null],e.trackedPostpones.workingMap.set(i,l),s.trackedFallbackNode=l,t.blockedSegment=f,t.keyPath=i,f.status=6;try{sO(e,t,c,-1),f.lastPushedText&&f.textEmbedded&&f.chunks.push(aA),f.status=1}catch(g){throw f.status=12===e.status?3:4,g}finally{t.blockedSegment=o,t.keyPath=r}qR(t=VR(e,null,a,-1,s,m,s.contentState,t.abortSet,n,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)),e.pingedTasks.push(t)}else{t.blockedBoundary=s,t.hoistableState=s.contentState,t.blockedSegment=m,t.keyPath=n,m.status=6;try{if(sO(e,t,a,-1),m.lastPushedText&&m.textEmbedded&&m.chunks.push(aA),m.status=1,fO(s,m),0===s.pendingTasks&&0===s.status){s.status=1;break e}}catch(y){s.status=4,12===e.status?(m.status=3,i=e.fatalError):(m.status=4,i=y),u=KR(e,i,l=YR(t.componentStack)),s.errorDigest=u,aO(e,s)}finally{t.blockedBoundary=d,t.hoistableState=p,t.blockedSegment=o,t.keyPath=r}qR(t=VR(e,null,c,-1,d,f,s.fallbackState,h,[n[0],"Suspense Fallback",n[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}return}if("object"==typeof r&&null!==r)switch(r.$$typeof){case YT:if("ref"in a)for(f in i={},a)"ref"!==f&&(i[f]=a[f]);else i=a;return void ZR(e,t,n,r=QR(e,t,n,r.render,i,o),0!==aR,oR,iR);case QT:return void JR(e,t,n,r.type,a,o);case GT:case qT:if(l=a.children,i=t.keyPath,a=a.value,u=r._currentValue,r._currentValue=a,OI=r={parent:o=OI,depth:null===o?0:o.depth+1,context:r,parentValue:u,value:a},t.context=r,t.keyPath=n,tO(e,t,l,-1),null===(e=OI))throw Error(BT(403));return e.context._currentValue=e.parentValue,e=OI=e.parent,t.context=e,void(t.keyPath=i);case WT:return r=(a=a.children)(r._context._currentValue),a=t.keyPath,t.keyPath=n,tO(e,t,r,-1),void(t.keyPath=a);case ZT:if(r=(i=r._init)(r._payload),12===e.status)throw null;return void JR(e,t,n,r,a,o)}throw Error(BT(130,null==r?r:typeof r,""))}if(null===(i=t.blockedSegment))i=a.children,l=t.formatContext,u=t.keyPath,t.formatContext=rA(l,r,a),t.keyPath=n,sO(e,t,i,-1),t.formatContext=l,t.keyPath=u;else{u=VA(i.chunks,r,a,e.resumableState,e.renderState,t.hoistableState,t.formatContext,i.lastPushedText,t.isFallback),i.lastPushedText=!1,l=t.formatContext,o=t.keyPath,t.formatContext=rA(l,r,a),t.keyPath=n,sO(e,t,u,-1),t.formatContext=l,t.keyPath=o;e:{switch(t=i.chunks,e=e.resumableState,r){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=l.insertionMode){e.hasBody=!0;break e}break;case"html":if(0===l.insertionMode){e.hasHtml=!0;break e}}t.push(WA(r))}i.lastPushedText=!1}}}function eO(e,t,n,r,a){var o=t.replay,i=t.blockedBoundary,s=WR(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,sO(e,t,r,a),s.status=1,null===i?e.completedRootSegment=s:(fO(i,s),i.parentFlushed&&e.partialBoundaries.push(i))}finally{t.replay=o,t.blockedSegment=null}}function tO(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?eO(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,qR(t),nO(e,t),t.componentStack=n)}function nO(e,t){var n=t.node,r=t.childIndex;if(null!==n){if("object"==typeof n){switch(n.$$typeof){case HT:var a=n.type,o=n.key,i=n.props,s=void 0!==(n=i.ref)?n:null,l=II(a),c=null==o?-1===r?0:r:o;if(o=[t.keyPath,l,c],null!==t.replay)e:{var u=t.replay;for(r=u.nodes,n=0;n<r.length;n++){var d=r[n];if(c===d[1]){if(4===d.length){if(null!==l&&l!==d[0])throw Error(BT(490,d[0],l));var p=d[2];l=d[3],c=t.node,t.replay={nodes:p,slots:l,pendingTasks:1};try{if(JR(e,t,o,a,i,s),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(BT(488));t.replay.pendingTasks--}catch(k){if("object"==typeof k&&null!==k&&(k===GI||"function"==typeof k.then))throw t.node===c&&(t.replay=u),k;t.replay.pendingTasks--,i=YR(t.componentStack),cO(e,o=t.blockedBoundary,p,l,a=k,i=KR(e,a,i))}t.replay=u}else{if(a!==KT)throw Error(BT(490,"Suspense",II(a)||"Unknown"));t:{u=void 0,a=d[5],s=d[2],l=d[3],c=null===d[4]?[]:d[4][2],d=null===d[4]?null:d[4][3];var h=t.keyPath,f=t.replay,m=t.blockedBoundary,g=t.hoistableState,y=i.children;i=i.fallback;var b=new Set,v=$R(0,b);v.parentFlushed=!0,v.rootSegmentID=a,t.blockedBoundary=v,t.hoistableState=v.contentState,t.keyPath=o,t.replay={nodes:s,slots:l,pendingTasks:1};try{if(sO(e,t,y,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(BT(488));if(t.replay.pendingTasks--,0===v.pendingTasks&&0===v.status){v.status=1,e.completedBoundaries.push(v);break t}}catch(w){v.status=4,u=KR(e,w,p=YR(t.componentStack)),v.errorDigest=u,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(v)}finally{t.blockedBoundary=m,t.hoistableState=g,t.replay=f,t.keyPath=h}qR(t=GR(e,null,{nodes:c,slots:d,pendingTasks:0},i,-1,m,v.fallbackState,b,[o[0],"Suspense Fallback",o[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}r.splice(n,1);break e}}}else JR(e,t,o,a,i,s);return;case zT:throw Error(BT(257));case ZT:if(n=(p=n._init)(n._payload),12===e.status)throw null;return void tO(e,t,n,r)}if(oC(n))return void rO(e,t,n,r);if(null===n||"object"!=typeof n?p=null:p="function"==typeof(p=aC&&n[aC]||n["@@iterator"])?p:null,p&&(p=p.call(n))){if(!(n=p.next()).done){i=[];do{i.push(n.value),n=p.next()}while(!n.done);rO(e,t,i,r)}return}if("function"==typeof n.then)return t.thenableState=null,tO(e,t,ER(n),r);if(n.$$typeof===qT)return tO(e,t,n._currentValue,r);throw r=Object.prototype.toString.call(n),Error(BT(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r))}"string"==typeof n?null!==(r=t.blockedSegment)&&(r.lastPushedText=oA(r.chunks,n,e.renderState,r.lastPushedText)):"number"!=typeof n&&"bigint"!=typeof n||null!==(r=t.blockedSegment)&&(r.lastPushedText=oA(r.chunks,""+n,e.renderState,r.lastPushedText))}}function rO(e,t,n,r){var a=t.keyPath;if(-1===r||(t.keyPath=[t.keyPath,"Fragment",r],null===t.replay)){if(o=t.treeContext,i=n.length,null!==t.replay&&(null!==(s=t.replay.slots)&&"object"==typeof s)){for(r=0;r<i;r++)l=n[r],t.treeContext=zI(o,i,r),"number"==typeof(c=s[r])?(eO(e,t,c,l,r),delete s[r]):sO(e,t,l,r);return t.treeContext=o,void(t.keyPath=a)}for(s=0;s<i;s++)r=n[s],t.treeContext=zI(o,i,s),sO(e,t,r,s);t.treeContext=o,t.keyPath=a}else{for(var o=t.replay,i=o.nodes,s=0;s<i.length;s++){var l=i[s];if(l[1]===r){r=l[2],l=l[3],t.replay={nodes:r,slots:l,pendingTasks:1};try{if(rO(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(BT(488));t.replay.pendingTasks--}catch(u){if("object"==typeof u&&null!==u&&(u===GI||"function"==typeof u.then))throw u;t.replay.pendingTasks--,n=YR(t.componentStack);var c=t.blockedBoundary;cO(e,c,r,l,u,n=KR(e,u,n))}t.replay=o,i.splice(s,1);break}}t.keyPath=a}}function aO(e,t){null!==(e=e.trackedPostpones)&&(null!==(t=t.trackedContentKeyPath)&&(void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)))}function oO(e,t,n){return GR(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function iO(e,t,n){var r=t.blockedSegment,a=WR(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(a),r.lastPushedText=!1,VR(e,n,t.node,t.childIndex,t.blockedBoundary,a,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function sO(e,t,n,r){var a=t.formatContext,o=t.context,i=t.keyPath,s=t.treeContext,l=t.componentStack,c=t.blockedSegment;if(null===c)try{return tO(e,t,n,r)}catch(p){if(mR(),"object"==typeof(n=p===GI?YI():p)&&null!==n){if("function"==typeof n.then)return e=oO(e,t,r=fR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void jI(o);if("Maximum call stack size exceeded"===n.message)return n=oO(e,t,n=fR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void jI(o)}}else{var u=c.children.length,d=c.chunks.length;try{return tO(e,t,n,r)}catch(h){if(mR(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=h===GI?YI():h)&&null!==n){if("function"==typeof n.then)return e=iO(e,t,r=fR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void jI(o);if("Maximum call stack size exceeded"===n.message)return n=iO(e,t,n=fR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void jI(o)}}}throw t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,jI(o),n}function lO(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,mO(this,t,e))}function cO(e,t,n,r,a,o){for(var i=0;i<n.length;i++){var s=n[i];if(4===s.length)cO(e,t,s[2],s[3],a,o);else{s=s[5];var l=e,c=o,u=$R(0,new Set);u.parentFlushed=!0,u.rootSegmentID=s,u.status=4,u.errorDigest=c,u.parentFlushed&&l.clientRenderedBoundaries.push(u)}}if(n.length=0,null!==r){if(null===t)throw Error(BT(487));if(4!==t.status&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof r)for(var d in r)delete r[d]}}function uO(e,t,n){var r=e.blockedBoundary,a=e.blockedSegment;if(null!==a){if(6===a.status)return;a.status=3}if(a=YR(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return KR(t,n,a),void XR(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=KR(t,n,a),cO(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&pO(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=KR(t,n,a),r.status=4,r.errorDigest=e,aO(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return uO(e,t,n)})),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&hO(t)}function dO(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var a=n.headers;if(a){n.headers=null;var o=a.preconnects;if(a.fontPreloads&&(o&&(o+=", "),o+=a.fontPreloads),a.highImagePreloads&&(o&&(o+=", "),o+=a.highImagePreloads),!t){var i=n.styles.values(),s=i.next();e:for(;0<a.remainingCapacity&&!s.done;s=i.next())for(var l=s.value.sheets.values(),c=l.next();0<a.remainingCapacity&&!c.done;c=l.next()){var u=c.value,d=u.props,p=d.href,h=u.props,f=wI(h.href,"style",{crossOrigin:h.crossOrigin,integrity:h.integrity,nonce:h.nonce,type:h.type,fetchPriority:h.fetchPriority,referrerPolicy:h.referrerPolicy,media:h.media});if(!(0<=(a.remainingCapacity-=f.length+2)))break e;n.resets.style[p]=HC,o&&(o+=", "),o+=f,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:HC}}r(o?{Link:o}:{})}}}catch(m){KR(e,m,{})}}function pO(e){null===e.trackedPostpones&&dO(e,!0),e.onShellError=MR,(e=e.onShellReady)()}function hO(e){dO(e,null===e.trackedPostpones||(null===e.completedRootSegment||5!==e.completedRootSegment.status)),(e=e.onAllReady)()}function fO(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&fO(e,n)}else e.completedSegments.push(t)}function mO(e,t,n){if(null===t){if(null!==n&&n.parentFlushed){if(null!==e.completedRootSegment)throw Error(BT(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&pO(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==n&&n.parentFlushed&&1===n.status&&fO(t,n),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(lO,e),t.fallbackAbortableTasks.clear())):null!==n&&n.parentFlushed&&1===n.status&&(fO(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&hO(e)}function gO(e){if(14!==e.status&&13!==e.status){var t=OI,n=MC.H;MC.H=TR;var r=MC.A;MC.A=IR;var a=zR;zR=e;var o=NR;NR=e.resumableState;try{var i,s=e.pingedTasks;for(i=0;i<s.length;i++){var l=s[i],c=e,u=l.blockedSegment;if(null===u){var d=c;if(0!==l.replay.pendingTasks){jI(l.context);try{if("number"==typeof l.replay.slots?eO(d,l,l.replay.slots,l.node,l.childIndex):nO(d,l),1===l.replay.pendingTasks&&0<l.replay.nodes.length)throw Error(BT(488));l.replay.pendingTasks--,l.abortSet.delete(l),mO(d,l.blockedBoundary,null)}catch(_){mR();var p=_===GI?YI():_;if("object"==typeof p&&null!==p&&"function"==typeof p.then){var h=l.ping;p.then(h,h),l.thenableState=fR()}else{l.replay.pendingTasks--,l.abortSet.delete(l);var f=YR(l.componentStack);c=void 0;var m=d,g=l.blockedBoundary,y=12===d.status?d.fatalError:p;cO(m,g,l.replay.nodes,l.replay.slots,y,c=KR(m,y,f)),d.pendingRootTasks--,0===d.pendingRootTasks&&pO(d),d.allPendingTasks--,0===d.allPendingTasks&&hO(d)}}}}else if(d=void 0,0===(m=u).status){m.status=6,jI(l.context);var b=m.children.length,v=m.chunks.length;try{nO(c,l),m.lastPushedText&&m.textEmbedded&&m.chunks.push(aA),l.abortSet.delete(l),m.status=1,mO(c,l.blockedBoundary,m)}catch(_){mR(),m.children.length=b,m.chunks.length=v;var k=_===GI?YI():12===c.status?c.fatalError:_;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,l.thenableState=fR();var w=l.ping;k.then(w,w)}else{var x=YR(l.componentStack);l.abortSet.delete(l),m.status=4;var E=l.blockedBoundary;d=KR(c,k,x),null===E?XR(c,k):(E.pendingTasks--,4!==E.status&&(E.status=4,E.errorDigest=d,aO(c,E),E.parentFlushed&&c.clientRenderedBoundaries.push(E))),c.allPendingTasks--,0===c.allPendingTasks&&hO(c)}}}}s.splice(0,i),null!==e.destination&&xO(e,e.destination)}catch(S){KR(e,S,{}),XR(e,S)}finally{NR=o,MC.H=n,MC.A=r,n===TR&&jI(t),zR=a}}}function yO(e,t,n,r){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,mC(t,YA),mC(t,e.placeholderPrefix),mC(t,e=vC(r.toString(16))),gC(t,KA);case 1:n.status=2;var a=!0,o=n.chunks,i=0;n=n.children;for(var s=0;s<n.length;s++){for(a=n[s];i<a.index;i++)mC(t,o[i]);a=bO(e,t,a,r)}for(;i<o.length-1;i++)mC(t,o[i]);return i<o.length&&(a=gC(t,o[i])),a;default:throw Error(BT(390))}}function bO(e,t,n,r){var a=n.boundary;if(null===a)return yO(e,t,n,r);if(a.parentFlushed=!0,4===a.status)a=a.errorDigest,gC(t,JA),mC(t,tN),a&&(mC(t,rN),mC(t,vC(RC(a))),mC(t,nN)),gC(t,aN),yO(e,t,n,r);else if(1!==a.status)0===a.status&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),oN(t,e.renderState,a.rootSegmentID),r&&((a=a.fallbackState).styles.forEach(TI,r),a.stylesheets.forEach(CI,r)),yO(e,t,n,r);else if(a.byteSize>e.progressiveChunkSize)a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),oN(t,e.renderState,a.rootSegmentID),yO(e,t,n,r);else{if(r&&((n=a.contentState).styles.forEach(TI,r),n.stylesheets.forEach(CI,r)),gC(t,XA),1!==(n=a.completedSegments).length)throw Error(BT(391));bO(e,t,n[0],r)}return gC(t,eN)}function vO(e,t,n,r){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 2:return mC(e,iN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,sN);case 3:return mC(e,cN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,uN);case 4:return mC(e,pN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,hN);case 5:return mC(e,mN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,gN);case 6:return mC(e,bN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,vN);case 7:return mC(e,wN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,xN);case 8:return mC(e,_N),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,SN);default:throw Error(BT(397))}}(t,e.renderState,n.parentFormatContext,n.id),bO(e,t,n,r),function(e,t){switch(t.insertionMode){case 0:case 1:case 2:return gC(e,lN);case 3:return gC(e,dN);case 4:return gC(e,fN);case 5:return gC(e,yN);case 6:return gC(e,kN);case 7:return gC(e,EN);case 8:return gC(e,TN);default:throw Error(BT(397))}}(t,n.parentFormatContext)}function kO(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)wO(e,t,n,r[a]);r.length=0,nI(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,a=n.rootSegmentID,n=n.contentState;var o=e.stylesToHoist;return e.stylesToHoist=!1,mC(t,e.startInlineScript),o?2&r.instructions?8&r.instructions?mC(t,DN):(r.instructions|=8,mC(t,LN)):(r.instructions|=10,mC(t,PN)):2&r.instructions?mC(t,ON):(r.instructions|=2,mC(t,RN)),r=vC(a.toString(16)),mC(t,e.boundaryPrefix),mC(t,r),mC(t,MN),mC(t,e.segmentPrefix),mC(t,r),o?(mC(t,FN),function(e,t){mC(e,fI);var n=fI;t.stylesheets.forEach((function(t){if(2!==t.state)if(3===t.state)mC(e,n),mC(e,vC(qN(""+t.props.href))),mC(e,yI),n=mI;else{mC(e,n);var r=t.props["data-precedence"],a=t.props,o=DC(""+t.props.href);for(var i in mC(e,vC(qN(o))),r=""+r,mC(e,gI),mC(e,vC(qN(r))),a)if(EC.call(a,i)&&null!=(r=a[i]))switch(i){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(BT(399,"link"));default:bI(e,i,r)}mC(e,yI),n=mI,t.state=3}})),mC(e,yI)}(t,n)):mC(t,jN),n=gC(t,BN),qA(t,e)&&n}function wO(e,t,n,r){if(2===r.status)return!0;var a=n.contentState,o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(BT(392));return vO(e,t,r,a)}return o===n.rootSegmentID?vO(e,t,r,a):(vO(e,t,r,a),n=e.resumableState,mC(t,(e=e.renderState).startInlineScript),1&n.instructions?mC(t,AN):(n.instructions|=1,mC(t,CN)),mC(t,e.segmentPrefix),mC(t,o=vC(o.toString(16))),mC(t,NN),mC(t,e.placeholderPrefix),mC(t,o),t=gC(t,IN))}function xO(e,t){hC=new Uint8Array(2048),fC=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var a,o=e.renderState,i=o.htmlChunks,s=o.headChunks;if(i){for(a=0;a<i.length;a++)mC(t,i[a]);if(s)for(a=0;a<s.length;a++)mC(t,s[a]);else mC(t,UA("head")),mC(t,_A)}else if(s)for(a=0;a<s.length;a++)mC(t,s[a]);var l=o.charsetChunks;for(a=0;a<l.length;a++)mC(t,l[a]);l.length=0,o.preconnects.forEach(rI,t),o.preconnects.clear();var c=o.viewportChunks;for(a=0;a<c.length;a++)mC(t,c[a]);c.length=0,o.fontPreloads.forEach(rI,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(rI,t),o.highImagePreloads.clear(),o.styles.forEach(dI,t);var u=o.importMapChunks;for(a=0;a<u.length;a++)mC(t,u[a]);u.length=0,o.bootstrapScripts.forEach(rI,t),o.scripts.forEach(rI,t),o.scripts.clear(),o.bulkPreloads.forEach(rI,t),o.bulkPreloads.clear();var d=o.hoistableChunks;for(a=0;a<d.length;a++)mC(t,d[a]);d.length=0,i&&null===s&&mC(t,WA("head")),bO(e,t,r,null),e.completedRootSegment=null,qA(t,e.renderState)}var p=e.renderState;r=0;var h=p.viewportChunks;for(r=0;r<h.length;r++)mC(t,h[r]);h.length=0,p.preconnects.forEach(rI,t),p.preconnects.clear(),p.fontPreloads.forEach(rI,t),p.fontPreloads.clear(),p.highImagePreloads.forEach(rI,t),p.highImagePreloads.clear(),p.styles.forEach(hI,t),p.scripts.forEach(rI,t),p.scripts.clear(),p.bulkPreloads.forEach(rI,t),p.bulkPreloads.clear();var f=p.hoistableChunks;for(r=0;r<f.length;r++)mC(t,f[r]);f.length=0;var m=e.clientRenderedBoundaries;for(n=0;n<m.length;n++){var g=m[n];p=t;var y=e.resumableState,b=e.renderState,v=g.rootSegmentID,k=g.errorDigest;mC(p,b.startInlineScript),4&y.instructions?mC(p,zN):(y.instructions|=4,mC(p,HN)),mC(p,b.boundaryPrefix),mC(p,vC(v.toString(16))),mC(p,UN),k&&(mC(p,$N),mC(p,vC((A=k||"",JSON.stringify(A).replace(GN,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))))));var w=gC(p,VN);if(!w)return e.destination=null,n++,void m.splice(0,n)}m.splice(0,n);var x=e.completedBoundaries;for(n=0;n<x.length;n++)if(!kO(e,t,x[n]))return e.destination=null,n++,void x.splice(0,n);x.splice(0,n),yC(t),hC=new Uint8Array(2048),fC=0;var E=e.partialBoundaries;for(n=0;n<E.length;n++){var _=E[n];e:{m=e,g=t;var S=_.completedSegments;for(w=0;w<S.length;w++)if(!wO(m,g,_,S[w])){w++,S.splice(0,w);var T=!1;break e}S.splice(0,w),T=nI(g,_.contentState,m.renderState)}if(!T)return e.destination=null,n++,void E.splice(0,n)}E.splice(0,n);var C=e.completedBoundaries;for(n=0;n<C.length;n++)if(!kO(e,t,C[n]))return e.destination=null,n++,void C.splice(0,n);C.splice(0,n)}}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length?(e.flushScheduled=!1,(n=e.resumableState).hasBody&&mC(t,WA("body")),n.hasHtml&&mC(t,WA("html")),yC(t),e.status=14,t.close(),e.destination=null):yC(t)}var A}function EO(e){e.flushScheduled=null!==e.destination,pC((function(){return gO(e)})),cC((function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&dO(e,0===e.pendingRootTasks)}))}function _O(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,cC((function(){var t=e.destination;t?xO(e,t):e.flushScheduled=!1})))}function SO(e,t){if(13===e.status)e.status=14,wC(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{xO(e,t)}catch(n){KR(e,n,{}),XR(e,n)}}}function TO(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=void 0===t?Error(BT(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(BT(530)):t;e.fatalError=r,n.forEach((function(t){return uO(t,e,r)})),n.clear()}null!==e.destination&&xO(e,e.destination)}catch(a){KR(e,a,{}),XR(e,a)}}function CO(){var e=FT.version;if("19.0.0"!==e)throw Error(BT(527,e,"19.0.0"))}CO(),CO(),MT.prerender=function(e,t){return new Promise((function(n,r){var a,o=t?t.onHeaders:void 0;o&&(a=function(e){o(new Headers(e))});var i=eA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=function(e,t,n,r,a,o,i,s,l,c,u){return(e=jR(e,t,n,r,a,o,i,s,l,c,u,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,i,JC(i,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),nA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,(function(){var e={prelude:new ReadableStream({type:"bytes",pull:function(e){SO(s,e)},cancel:function(e){s.destination=null,TO(s,e)}},{highWaterMark:0})};n(e)}),void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var l=t.signal;if(l.aborted)TO(s,l.reason);else{var c=function(){TO(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}}EO(s)}))},MT.renderToReadableStream=function(e,t){return new Promise((function(n,r){var a,o,i,s=new Promise((function(e,t){o=e,a=t})),l=t?t.onHeaders:void 0;l&&(i=function(e){l(new Headers(e))});var c=eA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=jR(e,c,JC(c,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),nA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){SO(u,e)},cancel:function(e){u.destination=null,TO(u,e)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),r(e)}),a,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)TO(u,d.reason);else{var p=function(){TO(u,d.reason),d.removeEventListener("abort",p)};d.addEventListener("abort",p)}}EO(u)}))},MT.version="19.0.0",HR=MT,(BR=qx).version;var AO=BR.renderToString;function NO({children:e="",...t}){let n="";return J.isValidElement(e)?n=AO(e):"string"==typeof e&&(n=e),Vh.jsx("template",{...t,dangerouslySetInnerHTML:{__html:n}})}function IO({root:e,children:t=null}){return ue.createPortal(t,e)}function RO(e){return Z.forwardRef((({mode:t="open",delegatesFocus:n=!1,styleSheets:r=[],ssr:a=!1,children:o=null,...i},s)=>{const l=function(e){const t=Z.useRef(null==e?void 0:e.current);return Z.useEffect((()=>{e&&(e.current=t.current)}),[e]),t}(s),[c,u]=Z.useState(null),d=`node_${t}${n}`;return Z.useLayoutEffect((()=>{if(l.current)try{if("function"==typeof s&&s(l.current),a){const{shadowRoot:e}=l.current;return void u(e)}const e=l.current.attachShadow({mode:t,delegatesFocus:n});r.length>0&&(e.adoptedStyleSheets=r),u(e)}catch(e){!function({error:e,styleSheets:t,root:n}){if("NotSupportedError"!==(null==e?void 0:e.name))throw e;t.length>0&&n&&(n.adoptedStyleSheets=t)}({error:e,styleSheets:r,root:c})}}),[s,l,r]),Vh.jsx(e.tag,{ref:l,...i,children:(c||a)&&Vh.jsx(Wx.Provider,{value:c,children:a?Vh.jsx(NO,{shadowroot:t,shadowrootmode:t,children:e.render({root:c,ssr:a,children:o})}):Vh.jsx(IO,{root:c,children:e.render({root:c,ssr:a,children:o})})})},d)}))}BR.renderToStaticMarkup,HR.renderToReadableStream,HR.resume&&HR.resume;const OO=new Map;const PO=function(e={},t="core",n=({children:e})=>e){return new Proxy(e,{get:function(e,r){const a=Gx.decamelize(r,{separator:"-"}),o=`${t}-${a}`;if(!OO.has(o)){const e=RO({tag:a,render:n});OO.set(o,e)}return OO.get(o)}})}();var LO=(null==globalThis?void 0:globalThis.document)?Z.useLayoutEffect:()=>{},DO=ee[" useId ".trim().toString()]||(()=>{}),MO=0;function FO(e){const[t,n]=Z.useState(DO());return LO((()=>{n((e=>e??String(MO++)))}),[e]),t?`radix-${t}`:""}const jO=Z.createContext(void 0),BO=()=>Z.useContext(jO);function HO({wrapperStyles:e={},children:t,customStyles:n,styles:r}){const[a,o]=Z.useState(null),[i,s]=Z.useState(null),l=Z.useMemo((()=>({shadowHost:a,rootElement:i})),[a,i]),c=FO(),u=PO.div;return Vh.jsxs(u,{id:`inkeep-shadow${c}`,ref:e=>{e&&o(e)},style:e,children:[Vh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`${r}`}}),n,Vh.jsx("div",{id:"inkeep-widget-root",ref:e=>{e&&s(e)},style:e,children:Vh.jsx(jO.Provider,{value:l,children:a&&i&&t})})]})}const zO=e=>BO()?e.children:Vh.jsx(HO,{...e}),UO="ChatButton",$O="CustomTrigger",VO="SearchBar",GO="EmbeddedChat",WO="EmbeddedSearch",qO="EmbeddedSearchAndChat",YO="IntelligentForm",KO="SidebarChat",XO={prefix:"ikp",aiChatSettings:{model:"inkeep-qa-expert",placeholder:"How do I get started?",aiAssistantName:void 0,shouldOpenLinksInNewTab:!0,disclaimerSettings:{isEnabled:!1,label:"Usage policy"},isShareButtonVisible:!1,isViewOnly:!1,exampleQuestionsLabel:"Example questions",exampleQuestions:[],isFirstExampleQuestionHighlighted:!0,isCopyChatButtonVisible:!1,getHelpOptions:[],workflowsHeader:"Workflows",workflows:[],toolbarButtonLabels:{clear:"Clear",share:"Share",getHelp:"Get help",stop:"Stop",copyChat:"Copy"},prompts:[]},baseSettings:Cx,searchSettings:{shouldOpenLinksInNewTab:!1,maxResults:40,defaultQuery:"",debounceTimeMs:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],placeholder:"Search for anything...",view:"single-pane"},componentType:GO},QO=Z.createContext(XO),ZO=({children:e,value:t})=>{const n=BO(),r=(e,t,n)=>["baseSettings","searchSettings","aiChatSettings"].includes(n)&&!t?e:t,a={baseSettings:n??{}},o=Z.useMemo((()=>{const e=function(e,t,...n){return n.reduce(((t,n)=>c(t,n,e)),t)}(r,XO,a,t??{});return e.baseSettings.apiKey||console.warn("Inkeep API key is missing."),e}),[t]);return Vh.jsx(QO.Provider,{value:o,children:e})},JO=()=>{const e=Z.useContext(QO);if(!e)throw new Error("useInkeepConfig must be used within a ConfigProvider");return e},eP="conversationId",tP=Z.createContext(null),nP=({children:e})=>{const t=function(){const[e,t]=Z.useState(void 0),{aiChatSettings:n}=JO(),{shareChatUrlBasePath:r}=n;return Z.useEffect((()=>{if(!r||"undefined"==typeof window)return;const e=e=>e.endsWith("/")?e.slice(0,-1):e,n=()=>{const{origin:n,pathname:a,search:o}=window.location,i=new URL(r),s=e(a),l=e(i.pathname);if(n===i.origin&&s===l){const e=new URLSearchParams(o).get(eP);e&&t(e)}};n();const a=()=>n();return window.addEventListener("popstate",a),()=>{window.removeEventListener("popstate",a)}}),[r]),e}(),{aiChatSettings:n}=JO(),r=n.chatId||t,[a,o]=Z.useState(r);Z.useEffect((()=>{o(r)}),[r]);const i={id:"",messages:[]},[s,l]=Z.useState(i),c=()=>{l(i),o(void 0)},u=Z.useMemo((()=>({conversation:s,setConversation:l,chatId:a,isSharedChat:!!t,resetConversation:c,setExternalChatId:o})),[s,a,t]);return Vh.jsx(tP.Provider,{value:u,children:e})},rP=()=>{const e=Z.useContext(tP);if(!e)throw new Error("useInkeepConversation must be used within an InkeepConversationProvider");return e};async function aP(e,t,n,r){try{const a=`${r}/conversations`,o={id:e||void 0,type:"openai",...t},i=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(o)});if(!i.ok){const e=await i.text();throw new Error(`Failed to log conversation: ${e}`)}return i.json()}catch(a){console.warn("Error in logConversation:",a)}}const oP="inkeepUsagePreferences",iP={defaultView:null,inkeepChatSessionId:null},sP={hasSwitchModeButtonJiggled:!1,userId:null,...iP},lP={set(e,t,n,r=365){try{if("cookie"===e){const e=new Date;void 0===n?(e.setTime(e.getTime()-1),document.cookie=`${oP}_${t}=; expires=${e.toUTCString()}; path=/`):(e.setTime(e.getTime()+24*r*60*60*1e3),document.cookie=`${oP}_${t}=${n}; expires=${e.toUTCString()}; path=/`)}else"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`${oP}_${t}`,n?JSON.stringify(n):"")}catch(a){return null}},get(e,t){if("cookie"===e){const e=`${oP}_${t}=`,n=document.cookie.split(";");for(const t of n){const n=t.trim();if(n.startsWith(e))return n.substring(e.length)}return null}try{if("undefined"!=typeof sessionStorage){const e=sessionStorage.getItem(`${oP}_${t}`);return e?JSON.parse(e):null}}catch(n){return null}return null}},cP=()=>{const e=(()=>{try{if("undefined"==typeof localStorage)return!1;const e="__df709c5b-6651-43dc-94e7-d8dc899bf4e8__";return localStorage.setItem(e,"test_value"),localStorage.removeItem(e),!0}catch{return!1}})(),t=(()=>{if("undefined"==typeof document)return!1;document.cookie="testcookie=true; Path=/; Max-Age=1000";const e=document.cookie.includes("testcookie=true");return document.cookie="testcookie=; Path=/; Max-Age=-1000",e})();return e&&t},uP=Z.createContext(void 0),dP=({children:e})=>{const{baseSettings:{userProperties:t,privacyPreferences:n}}=JO(),{optOutAllAnalytics:r,optOutAnalyticalCookies:a}=n,{browserStorage:o,setBrowserStorage:i}=(()=>{const{baseSettings:e,componentType:t}=JO(),{optOutAllAnalytics:n,optOutFunctionalCookies:r}=e.privacyPreferences,a=n||r||!cP()?"sessionStorage":"cookie",o=`${e.apiKey}-${t}`,i=e=>e in iP?`${e}-${o}`:e,s=Object.keys(sP).reduce(((e,t)=>{const n=i(t),r=lP.get(a,n);return{...e,[t]:r}}),{...sP}),[l,c]=Z.useState(s);return Z.useEffect((()=>{if(r)for(const e of Object.keys(sP)){const t=i(e);lP.set("cookie",t,null,-1)}}),[r]),{browserStorage:l,setBrowserStorage:(e,t,n=365)=>{const r=i(e);lP.set(a,r,t,n),c((n=>({...n,[e]:t})))}}})(),s=Z.useMemo((()=>cP()),[]),l=Z.useMemo((()=>!r&&!a&&s),[r,a,s]),c=Z.useMemo((()=>{const e=r?"ANONYMOUS":t.id?"ID_PROVIDED":l?"COOKIED":"ANONYMOUS",n=r?void 0:t.id||l&&o.userId||Kh();return{identificationType:e,...r?{}:t,id:n}}),[t,r,l,o.userId]);return Z.useEffect((()=>{i("userId",l?c.id:void 0)}),[l,c.id]),Vh.jsx(uP.Provider,{value:{userProperties:c},children:e})},pP=()=>{const e=Z.useContext(uP);if(!e)throw new Error("useUser must be used within a UserProvider");return e};const hP=Z.createContext(void 0),fP=({children:e})=>{const{baseSettings:t,componentType:n}=JO(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:i,env:s,analyticsProperties:l}=t,{userProperties:c}=pP(),u=Z.useMemo((()=>({widgetLibraryVersion:"0.5.117",componentType:n,tags:o})),[n,o]),d=!i.optOutAllAnalytics&&"development"!==s,p={logEvent:Z.useCallback((async e=>{var n,o;const i={...u,...e.properties,...l},s={eventName:e.eventName,properties:i,userProperties:c},p=["modal_opened","modal_closed"].includes(e.eventName);if(d&&!p){if("conversation"in i&&!(null==(n=i.conversation)?void 0:n.id))return;!async function(e,t,n){try{const r=`${n}/events`,a={...e,type:e.eventName};if("searchQuery"in e.properties)a.entityType="search",a.searchQuery=e.properties.searchQuery;else if("messageId"in e.properties)a.entityType="message",a.messageId=e.properties.messageId;else{if(a.entityType="conversation",!e.properties.conversation)return;a.conversationId=e.properties.conversation.id}const o=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(a)});if(!o.ok){const e=await o.text();throw new Error(`Failed to log event: ${e}`)}}catch(r){console.warn("Error in logEvent:",r)}}(s,r,a)}null==(o=t.onEvent)||o.call(t,s)}),[d,t,r,a,c,u,l])};return Vh.jsx(hP.Provider,{value:p,children:e})},mP=()=>{const e=Z.useContext(hP);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e},gP=Z.createContext(void 0),yP=({children:e})=>{const{baseSettings:t,aiChatSettings:n}=JO(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:{optOutAllAnalytics:i},env:s,analyticsProperties:l}=t,{conversationVisibility:c}=n,{userProperties:u}=pP(),{logEvent:d}=mP(),{conversation:p,setConversation:h,chatId:f,isSharedChat:m,setExternalChatId:g}=rP(),y=Z.useRef(p),b=Z.useRef(m?f:void 0);Z.useEffect((()=>{y.current=p}),[p]),Z.useEffect((()=>{b.current=m?f:void 0}),[f,m]);const v=Z.useCallback((async e=>{const t=y.current;b.current&&(t.id="",g(void 0),b.current=void 0);const n=!i&&"development"!==s;let d=Object.assign({},t,{messages:e});if(n){const n=await aP(t.id,{messages:e,tags:o,userProperties:u,properties:l,visibility:c},r,a);n&&(d=n)}else d.id="conv_"+Kh(16);return d}),[a,r,o,u,i,s,l,g,c]),k=Z.useCallback((async(e,t)=>{let n=y.current;if(t){const e=y.current.messages||[];(t.length!==e.length||t.some(((t,n)=>{var r;return t.id!==(null==(r=e[n])?void 0:r.id)})))&&(n=await v(t),h(n),y.current=n)}const r={...e,properties:{conversation:n,...e.properties}};d(r)}),[d,v,i,s,l]),w=Z.useCallback((()=>y.current),[]),x={logEvent:k,logConversation:v,getLatestConversation:w};return Vh.jsx(gP.Provider,{value:x,children:e})},bP=()=>{const e=Z.useContext(gP);if(!e)throw new Error("useChatEvents must be used within a ChatEventsProvider");return e};function vP(e){const{displayName:t,goals:n,informationToCollect:r,guidance:a,botPersona:o,context:i}=e,s=xP({title:"Guidance",content:[kP(a)],note:o,depth:2}),l=wP(null==r?void 0:r.filter((e=>e.required)).map((e=>e.description))),c=wP(null==r?void 0:r.filter((e=>!e.required)).map((e=>e.description))),u=xP({title:"Required",content:[l],note:"IMPORTANT: This information is REQUIRED for this workflow. If not provided in the conversation, prompt the user to provide it and don't otherwise answer their question.",depth:3}),d=xP({title:"Optional",content:[c],depth:3}),p=xP({title:"Information to collect",content:[u,d],note:"This is information that should be collected from the user.",depth:2}),h=xP({title:"Context",content:[wP(i)],depth:2}),f=xP({title:"Workflow Name",content:[t],depth:2}),m=xP({title:"Goals",content:[kP(n)],depth:2});return xP({title:"Workflow",content:["I am a user being guided through a “workflow” defined by the organization that provides this chat experience.","**IMPORTANT: Follow the instructions outlined in this workflow. Follow the instructions in the workflow configuration below. Do not answer questions unrelated to the workflow.**",f,m,h,p,s],depth:1})}function kP(e){if(CP(e))return e.filter((e=>null!=e)).map(((e,t)=>`${t+1}. ${e}`)).join("\n")}function wP(e){if(CP(e))return e.filter((e=>null!=e)).map((e=>`- ${e}`)).join("\n")}function xP({title:e,content:t,note:n,depth:r=2}){const a=TP(t);if(!a&&!n)return;const o=`${"#".repeat(r)} ${e}\n`,i=TP([n,a]);return i?`${o}${i}\n`:void 0}function EP(e){if(!e)return;if(!CP(e))return;const t=e.map(((e,t)=>function({attachment:e,index:t}){const{title:n,content:r,contentType:a,context:o}=e,{contentInputLabel:i,type:s}=a,l=function(e){if("CODE"===(null==e?void 0:e.type))return e.language||"";return}(a),c=function(e,t){return t?`\`\`\`${t}\n${e}\n\`\`\``:e}(r,l),u=CP(o)?["\nAdditional Context:",TP(o)]:[],d=[`#### ATTACHMENT #${t+1}`,`Title: ${n}`,`Label: ${i}`,`Type: ${s}`,"Content:",c,...u].join("\n");return d}({attachment:e,index:t})));return TP(t)}function _P(e){return xP({title:"User-provided Attachments",content:["The user has provided the following attachments to their message:",EP(e)],depth:1})}function SP(e){if(!e.supportedInputs)return e;const t={...e};return t.supportedInputs=e.supportedInputs.map((e=>{const t={...e};return"MODAL"===t.type&&(t.workflowModalProps=void 0),t})),t}function TP(e){if(CP(e))return e.filter((e=>null!=e)).join("\n")}function CP(e){return Array.isArray(e)&&e.length>0}const AP=()=>{const e="undefined"==typeof window?new URL(""):new URL(window.location.href),t=new URLSearchParams(e.search);if(t.has(eP)){t.delete(eP);const n=t.toString(),r=n?`${e.origin}${e.pathname}?${n}`:`${e.origin}${e.pathname}`;"undefined"!=typeof window&&window.history.pushState({},"",r)}};var NP=e=>"checkbox"===e.type,IP=e=>e instanceof Date,RP=e=>null==e;const OP=e=>"object"==typeof e;var PP=e=>!RP(e)&&!Array.isArray(e)&&OP(e)&&!IP(e),LP=e=>PP(e)&&e.target?NP(e.target)?e.target.checked:e.target.value:e,DP=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),MP="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function FP(e){let t;const n=Array.isArray(e),r="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(MP&&(e instanceof Blob||r)||!n&&!PP(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return PP(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=FP(e[n]));else t=e}return t}var jP=e=>Array.isArray(e)?e.filter(Boolean):[],BP=e=>void 0===e,HP=(e,t,n)=>{if(!t||!PP(e))return n;const r=jP(t.split(/[,[\].]+?/)).reduce(((e,t)=>RP(e)?e:e[t]),e);return BP(r)||r===e?BP(e[t])?n:e[t]:r},zP=e=>"boolean"==typeof e,UP=e=>/^\w*$/.test(e),$P=e=>jP(e.replace(/["|']|\]/g,"").split(/\.|\[/)),VP=(e,t,n)=>{let r=-1;const a=UP(t)?[t]:$P(t),o=a.length,i=o-1;for(;++r<o;){const t=a[r];let o=n;if(r!==i){const n=e[t];o=PP(n)||Array.isArray(n)?n:isNaN(+a[r+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}return e};const GP="blur",WP="focusout",qP="change",YP="onBlur",KP="onChange",XP="onSubmit",QP="onTouched",ZP="all",JP="max",eL="min",tL="maxLength",nL="minLength",rL="pattern",aL="required",oL="validate",iL=J.createContext(null),sL=()=>J.useContext(iL);var lL=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const a=o;return t._proxyFormState[a]!==ZP&&(t._proxyFormState[a]=!r||ZP),n&&(n[a]=!0),e[a]}});return a},cL=e=>PP(e)&&!Object.keys(e).length,uL=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return cL(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||ZP)))},dL=e=>Array.isArray(e)?e:[e],pL=(e,t,n)=>!e||!t||e===t||dL(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function hL(e){const t=J.useRef(e);t.current=e,J.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var fL=e=>"string"==typeof e,mL=(e,t,n,r,a)=>fL(e)?(r&&t.watch.add(e),HP(n,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),HP(n,e)))):(r&&(t.watchAll=!0),n);function gL(e){const t=sL(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,i=DP(a._names.array,n),s=function(e){const t=sL(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:i}=e||{},s=J.useRef(r);s.current=r,hL({disabled:o,subject:n._subjects.values,next:e=>{pL(s.current,e.name,i)&&c(FP(mL(s.current,n._names,e.values||n._formValues,!1,a)))}});const[l,c]=J.useState(n._getWatch(r,a));return J.useEffect((()=>n._removeUnmounted())),l}({control:a,name:n,defaultValue:HP(a._formValues,n,HP(a._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=sL(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[i,s]=J.useState(n._formState),l=J.useRef(!0),c=J.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=J.useRef(a);return u.current=a,hL({disabled:r,next:e=>l.current&&pL(u.current,e.name,o)&&uL(e,c.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),J.useEffect((()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),J.useMemo((()=>lL(i,n,c.current,!1)),[i,n])}({control:a,name:n,exact:!0}),c=J.useRef(a.register(n,{...e.rules,value:s,...zP(e.disabled)?{disabled:e.disabled}:{}})),u=J.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!HP(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!HP(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!HP(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!HP(l.validatingFields,n)},error:{enumerable:!0,get:()=>HP(l.errors,n)}})),[l,n]),d=J.useMemo((()=>({name:n,value:s,...zP(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:e=>c.current.onChange({target:{value:LP(e),name:n},type:qP}),onBlur:()=>c.current.onBlur({target:{value:HP(a._formValues,n),name:n},type:GP}),ref:e=>{const t=HP(a._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[n,a._formValues,r,l.disabled,s,a._fields]);return J.useEffect((()=>{const e=a._options.shouldUnregister||o,t=(e,t)=>{const n=HP(a._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=FP(HP(a._options.defaultValues,n));VP(a._defaultValues,n,e),BP(HP(a._formValues,n))&&VP(a._formValues,n,e)}return!i&&a.register(n),()=>{(i?e&&!a._state.action:e)?a.unregister(n):t(n,!1)}}),[n,a,i,o]),J.useEffect((()=>{a._updateDisabledField({disabled:r,fields:a._fields,name:n})}),[r,n,a]),J.useMemo((()=>({field:d,formState:l,fieldState:u})),[d,l,u])}const yL=e=>e.render(gL(e));var bL=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},vL=e=>({isOnSubmit:!e||e===XP,isOnBlur:e===YP,isOnChange:e===KP,isOnAll:e===ZP,isOnTouch:e===QP}),kL=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const wL=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=HP(e,a);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(wL(o,t))break}else if(PP(o)&&wL(o,t))break}}};var xL=(e,t,n)=>{const r=dL(HP(e,n));return VP(r,"root",t[n]),VP(e,n,r),e},EL=e=>"file"===e.type,_L=e=>"function"==typeof e,SL=e=>{if(!MP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},TL=e=>fL(e),CL=e=>"radio"===e.type,AL=e=>e instanceof RegExp;const NL={value:!1,isValid:!1},IL={value:!0,isValid:!0};var RL=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!BP(e[0].attributes.value)?BP(e[0].value)||""===e[0].value?IL:{value:e[0].value,isValid:!0}:IL:NL}return NL};const OL={isValid:!1,value:null};var PL=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),OL):OL;function LL(e,t,n="validate"){if(TL(e)||Array.isArray(e)&&e.every(TL)||zP(e)&&!e)return{type:n,message:TL(e)?e:"",ref:t}}var DL=e=>PP(e)&&!AL(e)?e:{value:e,message:""},ML=async(e,t,n,r,a,o)=>{const{ref:i,refs:s,required:l,maxLength:c,minLength:u,min:d,max:p,pattern:h,validate:f,name:m,valueAsNumber:g,mount:y}=e._f,b=HP(n,m);if(!y||t.has(m))return{};const v=s?s[0]:i,k=e=>{a&&v.reportValidity&&(v.setCustomValidity(zP(e)?"":e||""),v.reportValidity())},w={},x=CL(i),E=NP(i),_=x||E,S=(g||EL(i))&&BP(i.value)&&BP(b)||SL(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,T=bL.bind(null,m,r,w),C=(e,t,n,r=tL,a=nL)=>{const o=e?t:n;w[m]={type:e?r:a,message:o,ref:i,...T(e?r:a,o)}};if(o?!Array.isArray(b)||!b.length:l&&(!_&&(S||RP(b))||zP(b)&&!b||E&&!RL(s).isValid||x&&!PL(s).isValid)){const{value:e,message:t}=TL(l)?{value:!!l,message:l}:DL(l);if(e&&(w[m]={type:aL,message:t,ref:v,...T(aL,t)},!r))return k(t),w}if(!(S||RP(d)&&RP(p))){let e,t;const n=DL(p),a=DL(d);if(RP(b)||isNaN(b)){const r=i.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;fL(n.value)&&b&&(e=s?o(b)>o(n.value):l?b>n.value:r>new Date(n.value)),fL(a.value)&&b&&(t=s?o(b)<o(a.value):l?b<a.value:r<new Date(a.value))}else{const r=i.valueAsNumber||(b?+b:b);RP(n.value)||(e=r>n.value),RP(a.value)||(t=r<a.value)}if((e||t)&&(C(!!e,n.message,a.message,JP,eL),!r))return k(w[m].message),w}if((c||u)&&!S&&(fL(b)||o&&Array.isArray(b))){const e=DL(c),t=DL(u),n=!RP(e.value)&&b.length>+e.value,a=!RP(t.value)&&b.length<+t.value;if((n||a)&&(C(n,e.message,t.message),!r))return k(w[m].message),w}if(h&&!S&&fL(b)){const{value:e,message:t}=DL(h);if(AL(e)&&!b.match(e)&&(w[m]={type:rL,message:t,ref:i,...T(rL,t)},!r))return k(t),w}if(f)if(_L(f)){const e=LL(await f(b,n),v);if(e&&(w[m]={...e,...T(oL,e.message)},!r))return k(e.message),w}else if(PP(f)){let e={};for(const t in f){if(!cL(e)&&!r)break;const a=LL(await f[t](b,n),v,t);a&&(e={...a,...T(t,a.message)},k(a.message),r&&(w[m]=e))}if(!cL(e)&&(w[m]={ref:v,...e},!r))return w}return k(!0),w};function FL(e,t){const n=Array.isArray(t)?t:UP(t)?[t]:$P(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=BP(e)?r++:e[t[r++]];return e}(e,n),a=n.length-1,o=n[a];return r&&delete r[o],0!==a&&(PP(r)&&cL(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!BP(e[t]))return!1;return!0}(r))&&FL(e,n.slice(0,-1)),e}var jL=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},BL=e=>RP(e)||!OP(e);function HL(e,t){if(BL(e)||BL(t))return e===t;if(IP(e)&&IP(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const n=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(IP(n)&&IP(e)||PP(n)&&PP(e)||Array.isArray(n)&&Array.isArray(e)?!HL(n,e):n!==e)return!1}}return!0}var zL=e=>"select-multiple"===e.type,UL=e=>SL(e)&&e.isConnected,$L=e=>{for(const t in e)if(_L(e[t]))return!0;return!1};function VL(e,t={}){const n=Array.isArray(e);if(PP(e)||n)for(const r in e)Array.isArray(e[r])||PP(e[r])&&!$L(e[r])?(t[r]=Array.isArray(e[r])?[]:{},VL(e[r],t[r])):RP(e[r])||(t[r]=!0);return t}function GL(e,t,n){const r=Array.isArray(e);if(PP(e)||r)for(const a in e)Array.isArray(e[a])||PP(e[a])&&!$L(e[a])?BP(t)||BL(n[a])?n[a]=Array.isArray(e[a])?VL(e[a],[]):{...VL(e[a])}:GL(e[a],RP(t)?{}:t[a],n[a]):n[a]=!HL(e[a],t[a]);return n}var WL=(e,t)=>GL(e,t,VL(t)),qL=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>BP(e)?e:t?""===e?NaN:e?+e:e:n&&fL(e)?new Date(e):r?r(e):e;function YL(e){const t=e.ref;return EL(t)?t.files:CL(t)?PL(e.refs).value:zL(t)?[...t.selectedOptions].map((({value:e})=>e)):NP(t)?RL(e.refs).value:qL(BP(t.value)?e.ref.value:t.value,e)}var KL=e=>BP(e)?e:AL(e)?e.source:PP(e)?AL(e.value)?e.value.source:e.value:e;const XL="AsyncFunction";function QL(e,t,n){const r=HP(e,n);if(r||UP(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=HP(t,r),i=HP(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};a.pop()}return{name:n}}const ZL={mode:XP,reValidateMode:KP,shouldFocusError:!0};function JL(e={}){let t,n={...ZL,...e},r={submitCount:0,isDirty:!1,isLoading:_L(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},o=(PP(n.defaultValues)||PP(n.values))&&FP(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:FP(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:jL(),array:jL(),state:jL()},p=vL(n.mode),h=vL(n.reValidateMode),f=n.criteriaMode===ZP,m=async e=>{if(!n.disabled&&(u.isValid||e)){const e=n.resolver?cL((await k()).errors):await w(a,!0);e!==r.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{n.disabled||!u.isValidating&&!u.validatingFields||((e||Array.from(l.mount)).forEach((e=>{e&&(t?VP(r.validatingFields,e,t):FL(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!cL(r.validatingFields)}))},y=(e,t,n,r)=>{const l=HP(a,e);if(l){const a=HP(i,e,BP(n)?HP(o,e):n);BP(a)||r&&r.defaultChecked||t?VP(i,e,t?a:YL(l._f)):_(e,a),s.mount&&m()}},b=(e,t,i,s,l)=>{let c=!1,p=!1;const h={name:e};if(!n.disabled){const n=!!(HP(a,e)&&HP(a,e)._f&&HP(a,e)._f.disabled);if(!i||s){u.isDirty&&(p=r.isDirty,r.isDirty=h.isDirty=x(),c=p!==h.isDirty);const a=n||HL(HP(o,e),t);p=!(n||!HP(r.dirtyFields,e)),a||n?FL(r.dirtyFields,e):VP(r.dirtyFields,e,!0),h.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&p!==!a}if(i){const t=HP(r.touchedFields,e);t||(VP(r.touchedFields,e,i),h.touchedFields=r.touchedFields,c=c||u.touchedFields&&t!==i)}c&&l&&d.state.next(h)}return c?h:{}},v=(e,a,o,i)=>{const s=HP(r.errors,e),l=u.isValid&&zP(a)&&r.isValid!==a;var p;if(n.delayError&&o?(p=()=>((e,t)=>{VP(r.errors,e,t),d.state.next({errors:r.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(p,e)},t(n.delayError)):(clearTimeout(c),t=null,o?VP(r.errors,e,o):FL(r.errors,e)),(o?!HL(s,o):s)||!cL(i)||l){const t={...i,...l&&zP(a)?{isValid:a}:{},errors:r.errors,name:e};r={...r,...t},d.state.next(t)}},k=async e=>{g(e,!0);const t=await n.resolver(i,n.context,((e,t,n,r)=>{const a={};for(const o of e){const e=HP(t,o);e&&VP(a,o,e._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}})(e||l.mount,a,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},w=async(e,t,a={valid:!0})=>{for(const s in e){const c=e[s];if(c){const{_f:e,...d}=c;if(e){const d=l.array.has(e.name),p=c._f&&(!!(o=c._f)&&!!o.validate&&!!(_L(o.validate)&&o.validate.constructor.name===XL||PP(o.validate)&&Object.values(o.validate).find((e=>e.constructor.name===XL))));p&&u.validatingFields&&g([s],!0);const h=await ML(c,l.disabled,i,f,n.shouldUseNativeValidation&&!t,d);if(p&&u.validatingFields&&g([s]),h[e.name]&&(a.valid=!1,t))break;!t&&(HP(h,e.name)?d?xL(r.errors,h,e.name):VP(r.errors,e.name,h[e.name]):FL(r.errors,e.name))}!cL(d)&&await w(d,t,a)}}var o;return a.valid},x=(e,t)=>!n.disabled&&(e&&t&&VP(i,e,t),!HL(I(),o)),E=(e,t,n)=>mL(e,l,{...s.mount?i:BP(t)?o:fL(e)?{[e]:t}:t},n,t),_=(e,t,n={})=>{const r=HP(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&VP(i,e,qL(t,n)),o=SL(n.ref)&&RP(t)?"":t,zL(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?NP(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):EL(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||d.values.next({name:e,values:{...i}})))}(n.shouldDirty||n.shouldTouch)&&b(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&N(e)},S=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=HP(a,i);(l.array.has(e)||PP(o)||s&&!s._f)&&!IP(o)?S(i,o,n):_(i,o,n)}},T=(e,t,n={})=>{const c=HP(a,e),p=l.array.has(e),h=FP(t);VP(i,e,h),p?(d.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:WL(o,i),isDirty:x(e,h)})):!c||c._f||RP(h)?_(e,h,n):S(e,h,n),kL(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...i}})},C=async e=>{s.mount=!0;const o=e.target;let c=o.name,y=!0;const x=HP(a,c),E=e=>{y=Number.isNaN(e)||IP(e)&&isNaN(e.getTime())||HL(e,HP(i,c,e))};if(x){let s,S;const T=o.type?YL(x._f):LP(e),C=e.type===GP||e.type===WP,A=!((_=x._f).mount&&(_.required||_.min||_.max||_.maxLength||_.minLength||_.pattern||_.validate)||n.resolver||HP(r.errors,c)||x._f.deps)||((e,t,n,r,a)=>!a.isOnAll&&(!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:!(n?r.isOnChange:a.isOnChange)||e))(C,HP(r.touchedFields,c),r.isSubmitted,h,p),I=kL(c,l,C);VP(i,c,T),C?(x._f.onBlur&&x._f.onBlur(e),t&&t(0)):x._f.onChange&&x._f.onChange(e);const R=b(c,T,C,!1),O=!cL(R)||I;if(!C&&d.values.next({name:c,type:e.type,values:{...i}}),A)return u.isValid&&("onBlur"===n.mode&&C?m():C||m()),O&&d.state.next({name:c,...I?{}:R});if(!C&&I&&d.state.next({...r}),n.resolver){const{errors:e}=await k([c]);if(E(T),y){const t=QL(r.errors,a,c),n=QL(e,a,t.name||c);s=n.error,c=n.name,S=cL(e)}}else g([c],!0),s=(await ML(x,l.disabled,i,f,n.shouldUseNativeValidation))[c],g([c]),E(T),y&&(s?S=!1:u.isValid&&(S=await w(a,!0)));y&&(x._f.deps&&N(x._f.deps),v(c,S,s,R))}var _},A=(e,t)=>{if(HP(r.errors,t)&&e.focus)return e.focus(),1},N=async(e,t={})=>{let o,i;const s=dL(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await k(e);if(e)for(const n of e){const e=HP(t,n);e?VP(r.errors,n,e):FL(r.errors,n)}else r.errors=t;return t})(BP(e)?e:s);o=cL(t),i=e?!s.some((e=>HP(t,e))):o}else e?(i=(await Promise.all(s.map((async e=>{const t=HP(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&m()):i=o=await w(a);return d.state.next({...!fL(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!i&&wL(a,A,e?s:l.mount),i},I=e=>{const t={...s.mount?i:o};return BP(e)?t:fL(e)?HP(t,e):e.map((e=>HP(t,e)))},R=(e,t)=>({invalid:!!HP((t||r).errors,e),isDirty:!!HP((t||r).dirtyFields,e),error:HP((t||r).errors,e),isValidating:!!HP(r.validatingFields,e),isTouched:!!HP((t||r).touchedFields,e)}),O=(e,t,n)=>{const o=(HP(a,e,{_f:{}})._f||{}).ref,i=HP(r.errors,e)||{},{ref:s,message:l,type:c,...u}=i;VP(r.errors,e,{...u,...t,ref:o}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},P=(e,t={})=>{for(const s of e?dL(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(FL(a,s),FL(i,s)),!t.keepError&&FL(r.errors,s),!t.keepDirty&&FL(r.dirtyFields,s),!t.keepTouched&&FL(r.touchedFields,s),!t.keepIsValidating&&FL(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&FL(o,s);d.values.next({values:{...i}}),d.state.next({...r,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&m()},L=({disabled:e,name:t,field:n,fields:r})=>{(zP(e)&&s.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t),b(t,YL(n?n._f:HP(r,t)._f),!1,!1,!0))},D=(e,t={})=>{let r=HP(a,e);const i=zP(t.disabled)||zP(n.disabled);return VP(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?L({field:r,disabled:zP(t.disabled)?t.disabled:n.disabled,name:e}):y(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:KL(t.min),max:KL(t.max),minLength:KL(t.minLength),maxLength:KL(t.maxLength),pattern:KL(t.pattern)}:{},name:e,onChange:C,onBlur:C,ref:i=>{if(i){D(e,t),r=HP(a,e);const n=BP(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>CL(e)||NP(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;VP(a,e,{_f:{...r._f,...s?{refs:[...l.filter(UL),n,...Array.isArray(HP(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=HP(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!DP(l.array,e)||!s.action)&&l.unMount.add(e)}}},M=()=>n.shouldFocusError&&wL(a,A,l.mount),F=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=FP(i);if(l.disabled.size)for(const e of l.disabled)VP(c,e,void 0);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await k();r.errors=e,c=t}else await w(a);if(FL(r.errors,"root"),cL(r.errors)){d.state.next({errors:{}});try{await e(c,o)}catch(u){s=u}}else t&&await t({...r.errors},o),M(),setTimeout(M);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:cL(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},j=(e,t={})=>{const c=e?FP(e):o,p=FP(c),h=cL(e),f=h?o:p;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(WL(o,i))]);for(const t of Array.from(e))HP(r.dirtyFields,t)?VP(f,t,HP(i,t)):T(t,HP(f,t))}else{if(MP&&BP(e))for(const e of l.mount){const t=HP(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(SL(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=n.shouldUnregister?t.keepDefaultValues?FP(o):{}:FP(f),d.array.next({values:{...f}}),d.values.next({values:{...f}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues,s.watch=!!n.shouldUnregister,d.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!h&&(t.keepDirty?r.isDirty:!(!t.keepDefaultValues||HL(e,o))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&i?WL(o,i):r.dirtyFields:t.keepDefaultValues&&e?WL(o,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},B=(e,t)=>j(_L(e)?e(i):e,t);return{control:{register:D,unregister:P,getFieldState:R,handleSubmit:F,setError:O,_executeSchema:k,_getWatch:E,_getDirty:x,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=HP(a,e);t&&(t._f.refs?t._f.refs.every((e=>!UL(e))):!UL(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],l,c,p=!0,h=!0)=>{if(c&&l&&!n.disabled){if(s.action=!0,h&&Array.isArray(HP(a,e))){const t=l(HP(a,e),c.argA,c.argB);p&&VP(a,e,t)}if(h&&Array.isArray(HP(r.errors,e))){const t=l(HP(r.errors,e),c.argA,c.argB);p&&VP(r.errors,e,t),((e,t)=>{!jP(HP(e,t)).length&&FL(e,t)})(r.errors,e)}if(u.touchedFields&&h&&Array.isArray(HP(r.touchedFields,e))){const t=l(HP(r.touchedFields,e),c.argA,c.argB);p&&VP(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=WL(o,i)),d.state.next({name:e,isDirty:x(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else VP(i,e,t)},_updateDisabledField:L,_getFieldArray:e=>jP(HP(s.mount?i:o,e,n.shouldUnregister?HP(o,e,[]):[])),_reset:j,_resetDefaultValues:()=>_L(n.defaultValues)&&n.defaultValues().then((e=>{B(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{zP(e)&&(d.state.next({disabled:e}),wL(a,((t,n)=>{const r=HP(a,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return a},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:N,register:D,handleSubmit:F,watch:(e,t)=>_L(e)?d.values.subscribe({next:n=>e(E(void 0,t),n)}):E(e,t,!0),setValue:T,getValues:I,reset:B,resetField:(e,t={})=>{HP(a,e)&&(BP(t.defaultValue)?T(e,FP(HP(o,e))):(T(e,t.defaultValue),VP(o,e,FP(t.defaultValue))),t.keepTouched||FL(r.touchedFields,e),t.keepDirty||(FL(r.dirtyFields,e),r.isDirty=t.defaultValue?x(e,FP(HP(o,e))):x()),t.keepError||(FL(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&dL(e).forEach((e=>FL(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:O,setFocus:(e,t={})=>{const n=HP(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&_L(e.select)&&e.select())}},getFieldState:R}}function eD(e={}){const t=J.useRef(void 0),n=J.useRef(void 0),[r,a]=J.useState({isDirty:!1,isValidating:!1,isLoading:_L(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:_L(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...JL(e),formState:r});const o=t.current.control;return o._options=e,hL({subject:o._subjects.state,next:e=>{uL(e,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),J.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),J.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,r.isDirty]),J.useEffect((()=>{e.values&&!HL(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),J.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),J.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),J.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=lL(r,o),t.current}const tD=Z.createContext(void 0),nD=({children:e,modal:t})=>Vh.jsx(tD.Provider,{value:t,children:e}),rD=()=>Z.useContext(tD);var aD=(e,t=[])=>({parts:(...n)=>{if(iD(t))return aD(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>aD(e,[...t,...n]),omit:(...n)=>aD(e,t.filter((e=>!n.includes(e)))),rename:e=>aD(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce(((t,n)=>Object.assign(t,{[n]:{selector:[`&[data-scope="${oD(e)}"][data-part="${oD(n)}"]`,`& [data-scope="${oD(e)}"][data-part="${oD(n)}"]`].join(", "),attrs:{"data-scope":oD(e),"data-part":oD(n)}}})),{})}),oD=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),iD=e=>0===e.length;var sD=(e,...t)=>e.filter((e=>!t.includes(e))),lD=(e,t)=>((e,t)=>-1!==e.indexOf(t))(e,t)?sD(e,t):((e,...t)=>e.concat(t))(e,t),cD=e=>"Array"===(null==e?void 0:e.constructor.name),uD=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof(null==e?void 0:e.isEqual)&&"function"==typeof(null==t?void 0:t.isEqual))return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(cD(e)&&cD(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!uD(e[n],t[n]))return!1;return!0})(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let a=0;a<r;a++){if(!Reflect.has(e,n[a]))return!1}for(let a=0;a<r;a++){const r=n[a];if(!uD(e[r],t[r]))return!1}return!0},dD=e=>null!=e&&"object"==typeof e,pD=e=>dD(e)&&!(e=>Array.isArray(e))(e),hD=e=>"function"==typeof e,fD=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),mD=Function.prototype.toString,gD=mD.call(Object),yD=e=>{if(!dD(e)||"[object Object]"!=(e=>Object.prototype.toString.call(e))(e)||bD(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const n=fD(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&mD.call(n)==gD},bD=e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e),vD=e=>e(),kD=()=>{},wD=(...e)=>(...t)=>{e.forEach((function(e){null==e||e(...t)}))};function xD(e,t,...n){var r;if(e in t){const r=t[e];return hD(r)?r(...n):r}const a=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw null==(r=Error.captureStackTrace)||r.call(Error,a,xD),a}function ED(e){if(!yD(e)||void 0===e)return e;const t=Reflect.ownKeys(e).filter((e=>"string"==typeof e)),n={};for(const r of t){const t=e[r];void 0!==t&&(n[r]=ED(t))}return n}function _D(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function SD(e,t){if(null==e)throw new Error(t())}var TD=Object.defineProperty,CD=(e,t,n)=>((e,t,n)=>t in e?TD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),AD={itemToValue:e=>"string"==typeof e?e:pD(e)&&fD(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:pD(e)&&fD(e,"label")?e.label:AD.itemToValue(e),isItemDisabled:e=>!(!pD(e)||!fD(e,"disabled"))&&!!e.disabled},ND=class e{constructor(t){this.options=t,CD(this,"items"),CD(this,"indexMap",null),CD(this,"copy",(t=>new e({...this.options,items:t??[...this.items]}))),CD(this,"isEqual",(e=>uD(this.items,e.items))),CD(this,"setItems",(e=>this.copy(e))),CD(this,"getValues",((e=this.items)=>{const t=[];for(const n of e){const e=this.getItemValue(n);null!=e&&t.push(e)}return t})),CD(this,"find",(e=>{if(null==e)return null;const t=this.indexOf(e);return-1!==t?this.at(t):null})),CD(this,"findMany",(e=>{const t=[];for(const n of e){const e=this.find(n);null!=e&&t.push(e)}return t})),CD(this,"at",(e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;const n=this.group();for(const[,r]of n)for(const n of r){if(t===e)return n;t++}return null})),CD(this,"sortFn",((e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0))),CD(this,"sort",(e=>[...e].sort(this.sortFn.bind(this)))),CD(this,"getItemValue",(e=>{var t,n;return null==e?null:(null==(n=(t=this.options).itemToValue)?void 0:n.call(t,e))??AD.itemToValue(e)})),CD(this,"getItemDisabled",(e=>{var t,n;return null!=e&&((null==(n=(t=this.options).isItemDisabled)?void 0:n.call(t,e))??AD.isItemDisabled(e))})),CD(this,"stringifyItem",(e=>{var t,n;return null==e?null:(null==(n=(t=this.options).itemToString)?void 0:n.call(t,e))??AD.itemToString(e)})),CD(this,"stringify",(e=>null==e?null:this.stringifyItem(this.find(e)))),CD(this,"stringifyItems",((e,t=", ")=>{const n=[];for(const r of e){const e=this.stringifyItem(r);null!=e&&n.push(e)}return n.join(t)})),CD(this,"stringifyMany",((e,t)=>this.stringifyItems(this.findMany(e),t))),CD(this,"has",(e=>-1!==this.indexOf(e))),CD(this,"hasItem",(e=>null!=e&&this.has(this.getItemValue(e)))),CD(this,"group",(()=>{const{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];const n=new Map;this.items.forEach(((t,r)=>{const a=e(t,r);n.has(a)||n.set(a,[]),n.get(a).push(t)}));let r=Array.from(n.entries());return t&&r.sort((([e],[n])=>{if("function"==typeof t)return t(e,n);if(Array.isArray(t)){const r=t.indexOf(e),a=t.indexOf(n);return-1===r?1:-1===a?-1:r-a}return"asc"===t?e.localeCompare(n):"desc"===t?n.localeCompare(e):0})),r})),CD(this,"getNextValue",((e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.min(r+t,this.size-1):r+t;r<=this.size&&this.getItemDisabled(this.at(r));)r++;return this.getItemValue(this.at(r))})),CD(this,"getPreviousValue",((e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.max(r-t,0):r-t;r>=0&&this.getItemDisabled(this.at(r));)r--;return this.getItemValue(this.at(r))})),CD(this,"indexOf",(e=>{if(null==e)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex((t=>this.getItemValue(t)===e));if(!this.indexMap){this.indexMap=new Map;let e=0;const t=this.group();for(const[,n]of t)for(const t of n){const n=this.getItemValue(t);null!=n&&this.indexMap.set(n,e),e++}}return this.indexMap.get(e)??-1})),CD(this,"getByText",((e,t)=>{const n=null!=t?this.indexOf(t):-1,r=1===e.length;for(let a=0;a<this.items.length;a++){const o=this.items[(n+a+1)%this.items.length];if((!r||this.getItemValue(o)!==t)&&(!this.getItemDisabled(o)&&ID(this.stringifyItem(o),e)))return o}})),CD(this,"search",((e,t)=>{const{state:n,currentValue:r,timeout:a=350}=t,o=n.keysSoFar+e,i=o.length>1&&Array.from(o).every((e=>e===o[0]))?o[0]:o,s=this.getByText(i,r),l=this.getItemValue(s);function c(){clearTimeout(n.timer),n.timer=-1}return function e(t){n.keysSoFar=t,c(),""!==t&&(n.timer=+setTimeout((()=>{e(""),c()}),a))}(o),l})),CD(this,"update",((e,t)=>{let n=this.indexOf(e);return-1===n?this:this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])})),CD(this,"upsert",((e,t,n="append")=>{let r=this.indexOf(e);if(-1===r){return("append"===n?this.append:this.prepend)(t)}return this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])})),CD(this,"insert",((e,...t)=>this.copy(RD(this.items,e,...t)))),CD(this,"insertBefore",((e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(RD(this.items,n,...t))})),CD(this,"insertAfter",((e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(RD(this.items,n+1,...t))})),CD(this,"prepend",((...e)=>this.copy(RD(this.items,0,...e)))),CD(this,"append",((...e)=>this.copy(RD(this.items,this.items.length,...e)))),CD(this,"filter",(e=>{const t=this.items.filter(((t,n)=>e(this.stringifyItem(t),n,t)));return this.copy(t)})),CD(this,"remove",((...e)=>{const t=e.map((e=>"string"==typeof e?e:this.getItemValue(e)));return this.copy(this.items.filter((e=>{const n=this.getItemValue(e);return null!=n&&!t.includes(n)})))})),CD(this,"move",((e,t)=>{const n=this.indexOf(e);return-1===n?this:this.copy(OD(this.items,[n],t))})),CD(this,"moveBefore",((e,...t)=>{let n=this.items.findIndex((t=>this.getItemValue(t)===e));if(-1===n)return this;let r=t.map((e=>this.items.findIndex((t=>this.getItemValue(t)===e)))).sort(((e,t)=>e-t));return this.copy(OD(this.items,r,n))})),CD(this,"moveAfter",((e,...t)=>{let n=this.items.findIndex((t=>this.getItemValue(t)===e));if(-1===n)return this;let r=t.map((e=>this.items.findIndex((t=>this.getItemValue(t)===e)))).sort(((e,t)=>e-t));return this.copy(OD(this.items,r,n+1))})),CD(this,"reorder",((e,t)=>this.copy(OD(this.items,[e],t)))),CD(this,"compareValue",((e,t)=>{const n=this.indexOf(e),r=this.indexOf(t);return n<r?-1:n>r?1:0})),CD(this,"range",((e,t)=>{let n=[],r=e;for(;null!=r;){if(this.find(r)&&n.push(r),r===t)return n;r=this.getNextValue(r)}return[]})),CD(this,"getValueRange",((e,t)=>e&&t?this.compareValue(e,t)<=0?this.range(e,t):this.range(t,e):[])),CD(this,"toString",(()=>{let e="";for(const t of this.items){e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+","}return e})),CD(this,"toJSON",(()=>({size:this.size,first:this.firstValue,last:this.lastValue}))),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},ID=(e,t)=>!!(null==e?void 0:e.toLowerCase().startsWith(t.toLowerCase()));function RD(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function OD(e,t,n){const r=(t=[...t].sort(((e,t)=>e-t))).map((t=>e[t]));for(let a=t.length-1;a>=0;a--)e=[...e.slice(0,t[a]),...e.slice(t[a]+1)];return n=Math.max(0,n-t.filter((e=>e<n)).length),[...e.slice(0,n),...r,...e.slice(n)]}var PD=Object.defineProperty,LD=(e,t,n)=>((e,t,n)=>t in e?PD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);var DD=()=>{},MD=e=>"object"==typeof e&&null!==e,FD=e=>e?"":void 0,jD=e=>e?"true":void 0,BD=e=>MD(e)&&1===e.nodeType&&"string"==typeof e.nodeName,HD=e=>MD(e)&&9===e.nodeType,zD=e=>BD(e)?e.localName||"":"#document";var UD=e=>(e=>MD(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e;function $D(e){if(!e)return!1;return KD(e.getRootNode())===e}var VD=/(textarea|select)/;function GD(e){if(null==e||!BD(e))return!1;try{return(e=>BD(e)&&"input"===e.localName)(e)&&null!=e.selectionStart||VD.test(e.localName)||e.isContentEditable||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")}catch{return!1}}function WD(e,t){var n;if(!e||!t)return!1;if(!BD(e)||!BD(t))return!1;const r=null==(n=t.getRootNode)?void 0:n.call(t);if(e===t)return!0;if(e.contains(t))return!0;if(r&&UD(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function qD(e){return HD(e)?e:(e=>MD(e)&&e===e.window)(e)?e.document:(null==e?void 0:e.ownerDocument)??document}function YD(e){var t;return UD(e)?YD(e.host):HD(e)?e.defaultView??window:BD(e)?(null==(t=e.ownerDocument)?void 0:t.defaultView)??window:window}function KD(e){let t=e.activeElement;for(;null==t?void 0:t.shadowRoot;){const e=t.shadowRoot.activeElement;if(!e||e===t)break;t=e}return t}function XD(e){if("html"===zD(e))return e;const t=e.assignedSlot||e.parentNode||UD(e)&&e.host||qD(e).documentElement;return UD(t)?t.host:t}function QD(e){let t;try{if(t=e.getRootNode({composed:!0}),HD(t)||UD(t))return t}catch{}return e.ownerDocument??document}var ZD=new WeakMap;function JD(e){return ZD.has(e)||ZD.set(e,YD(e).getComputedStyle(e)),ZD.get(e)}var eM=new Set(["menu","listbox","dialog","grid","tree","region"]),tM=e=>eM.has(e),nM=e=>{var t;return(null==(t=e.getAttribute("aria-controls"))?void 0:t.split(" "))||[]};function rM(e,t){const n=new Set,r=QD(e),a=e=>{const o=e.querySelectorAll("[aria-controls]");for(const i of o){if("true"!==i.getAttribute("aria-expanded"))continue;const e=nM(i);for(const o of e){if(!o||n.has(o))continue;n.add(o);const e=r.getElementById(o);if(e){const n=e.getAttribute("role"),r="true"===e.getAttribute("aria-modal");if(n&&tM(n)&&!r){if(e===t||e.contains(t))return!0;if(a(e))return!0}}}}return!1};return a(e)}function aM(e){const t=new Set;return function(e,t){const n=QD(e),r=new Set,a=e=>{const o=e.querySelectorAll("[aria-controls]");for(const i of o){if("true"!==i.getAttribute("aria-expanded"))continue;const e=nM(i);for(const o of e){if(!o||r.has(o))continue;r.add(o);const e=n.getElementById(o);if(e){const n=e.getAttribute("role"),r="true"===e.getAttribute("aria-modal");n&&eM.has(n)&&!r&&(t(e),a(e))}}}};a(e)}(e,(n=>{e.contains(n)||t.add(n)})),Array.from(t)}function oM(e){if(!e.id)return!1;const t=QD(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`,a=t.querySelector(r);return Boolean(a&&function(e){const t=e.getAttribute("role");return Boolean(t&&eM.has(t))}(e))}var iM=()=>"undefined"!=typeof document;var sM=e=>iM()&&e.test(function(){const e=navigator.userAgentData;return(null==e?void 0:e.platform)??navigator.platform}()),lM=e=>iM()&&e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((({brand:e,version:t})=>`${e}/${t}`)).join(" "):navigator.userAgent}()),cM=()=>iM()&&!!navigator.maxTouchPoints,uM=()=>sM(/^Mac/i);function dM(e){const t=function(e){var t,n,r;return(null==(t=e.composedPath)?void 0:t.call(e))??(null==(r=null==(n=e.nativeEvent)?void 0:n.composedPath)?void 0:r.call(n))}(e);return(null==t?void 0:t[0])??e.target}function pM(e){const t=e.currentTarget;if(!t)return!1;if(!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const n=1===e.button,r=(a=e,uM()?a.metaKey:a.ctrlKey);var a;return n||r}var hM=e=>0===e.button,fM=e=>2===e.button||uM()&&e.ctrlKey&&0===e.button,mM={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},gM={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function yM(e,t={}){const{dir:n="ltr",orientation:r="horizontal"}=t;let a=e.key;a=mM[a]??a;return"rtl"===n&&"horizontal"===r&&a in gM&&(a=gM[a]),a}var bM=(e,t,n,r)=>{const a="function"==typeof e?e():e;return null==a||a.addEventListener(t,n,r),()=>{null==a||a.removeEventListener(t,n,r)}},vM=e=>BD(e)&&"IFRAME"===e.tagName,kM=/^(audio|video|details)$/;function wM(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}function xM(e,t){if(!t)return null;if(!0===t)return e.shadowRoot||null;const n=t(e);return(!0===n?e.shadowRoot:n)||null}function EM(e,t,n){const r=[...e],a=[...e],o=new Set,i=new Map;e.forEach(((e,t)=>i.set(e,t)));let s=0;for(;s<a.length;){const e=a[s++];if(!e||o.has(e))continue;o.add(e);const l=xM(e,t);if(l){const t=Array.from(l.querySelectorAll(_M)).filter(n),o=i.get(e);if(void 0!==o){const e=o+1;r.splice(e,0,...t),t.forEach(((t,n)=>{i.set(t,e+n)}));for(let n=e+t.length;n<r.length;n++)i.set(r[n],n)}else{const e=r.length;r.push(...t),t.forEach(((t,n)=>{i.set(t,e+n)}))}a.push(...t)}}return r}var _M="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",SM=(e,t={})=>{if(!e)return[];const{includeContainer:n=!1,getShadowRoot:r}=t,a=Array.from(e.querySelectorAll(_M));(1==n||"if-empty"==n&&0===a.length)&&BD(e)&&TM(e)&&a.unshift(e);const o=[];for(const i of a)if(TM(i))if(vM(i)&&i.contentDocument){const e=i.contentDocument.body;o.push(...SM(e,{getShadowRoot:r}))}else o.push(i);return r?EM(o,r,TM):o};function TM(e){return!(!BD(e)||e.closest("[inert]"))&&(e.matches(_M)&&(!!BD(t=e)&&(t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)));var t}function CM(e,t={}){if(!e)return[];const{includeContainer:n,getShadowRoot:r}=t,a=Array.from(e.querySelectorAll(_M));n&&AM(e)&&a.unshift(e);const o=[];for(const i of a)if(AM(i))if(vM(i)&&i.contentDocument){const e=i.contentDocument.body;o.push(...CM(e,{getShadowRoot:r}))}else o.push(i);if(r){const e=EM(o,r,AM);return!e.length&&n?a:e}return!o.length&&n?a:o}function AM(e){return!!(BD(e)&&e.tabIndex>0)||TM(e)&&!(e=>wM(e)<0)(e)}function NM(e){return e.tabIndex<0&&(kM.test(e.localName)||GD(e))&&(t=e,Number.isNaN(wM(t)))?0:e.tabIndex;var t}var IM=class e{constructor(){LD(this,"id",null),LD(this,"fn_cleanup"),LD(this,"cleanup",(()=>{this.cancel()}))}static create(){return new e}request(e){this.cancel(),this.id=globalThis.requestAnimationFrame((()=>{this.id=null,this.fn_cleanup=null==e?void 0:e()}))}cancel(){var e;null!==this.id&&(globalThis.cancelAnimationFrame(this.id),this.id=null),null==(e=this.fn_cleanup)||e.call(this),this.fn_cleanup=void 0}isActive(){return null!==this.id}};function RM(e){const t=IM.create();return t.request(e),t.cleanup}function OM(e){const t=new Set;function n(e){const n=globalThis.requestAnimationFrame(e);t.add((()=>globalThis.cancelAnimationFrame(n)))}return n((()=>n(e))),function(){t.forEach((e=>e()))}}function PM(e,t){const{defer:n}=t,r=n?RM:e=>e(),a=[];return a.push(r((()=>{const n="function"==typeof e?e():e;a.push(function(e,t){if(!e)return;const{attributes:n,callback:r}=t,a=new(e.ownerDocument.defaultView||window).MutationObserver((e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&n.includes(t.attributeName)&&r(t)}));return a.observe(e,{attributes:!0,attributeFilter:n}),()=>a.disconnect()}(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}function LM(e){const t=()=>{const t=YD(e);e.dispatchEvent(new t.MouseEvent("click"))};lM(/Firefox/i)?function(e,t,n){const r=RM((()=>{e.removeEventListener(t,a,!0),n()})),a=()=>{r(),n()};e.addEventListener(t,a,{once:!0,capture:!0})}(e,"keyup",t):queueMicrotask(t)}function DM(e){const t=XD(e);return["html","body","#document"].includes(zD(t))?qD(t).body:BD(t)&&jM(t)?t:DM(t)}var MM=/auto|scroll|overlay|hidden|clip/,FM=new Set(["inline","contents"]);function jM(e){const t=YD(e),{overflow:n,overflowX:r,overflowY:a,display:o}=t.getComputedStyle(e);return MM.test(n+a+r)&&!FM.has(o)}function BM(e,t){const{rootEl:n,...r}=t||{};e&&n&&jM(n)&&function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(n)&&e.scrollIntoView(r)}function HM(e,t){if(!e)return DD;const n=Object.keys(t).reduce(((t,n)=>(t[n]=e.style.getPropertyValue(n),t)),{});return r=n,a=t,Object.keys(r).every((e=>r[e]===a[e]))?DD:(Object.assign(e.style,t),()=>{Object.assign(e.style,n),0===e.style.length&&e.removeAttribute("style")});var r,a}function zM(e,t){const{timeout:n,rootNode:r}=t,a=YD(r),o=qD(r),i=new a.AbortController;return function(e,t,n){const{signal:r}=t;return[new Promise(((t,a)=>{const o=setTimeout((()=>{a(new Error(`Timeout of ${n}ms exceeded`))}),n);r.addEventListener("abort",(()=>{clearTimeout(o),a(new Error("Promise aborted"))})),e.then((e=>{r.aborted||(clearTimeout(o),t(e))})).catch((e=>{r.aborted||(clearTimeout(o),a(e))}))})),()=>t.abort()]}(new Promise((t=>{const n=e();if(n)return void t(n);const r=new a.MutationObserver((()=>{const n=e();n&&n.isConnected&&(r.disconnect(),t(n))}));r.observe(o.body,{childList:!0,subtree:!0})})),i,n)}const UM=["top","right","bottom","left"],$M=Math.min,VM=Math.max,GM=Math.round,WM=Math.floor,qM=e=>({x:e,y:e}),YM={left:"right",right:"left",bottom:"top",top:"bottom"},KM={start:"end",end:"start"};function XM(e,t,n){return VM(e,$M(t,n))}function QM(e,t){return"function"==typeof e?e(t):e}function ZM(e){return e.split("-")[0]}function JM(e){return e.split("-")[1]}function eF(e){return"x"===e?"y":"x"}function tF(e){return"y"===e?"height":"width"}const nF=new Set(["top","bottom"]);function rF(e){return nF.has(ZM(e))?"y":"x"}function aF(e){return eF(rF(e))}function oF(e){return e.replace(/start|end/g,(e=>KM[e]))}const iF=["left","right"],sF=["right","left"],lF=["top","bottom"],cF=["bottom","top"];function uF(e,t,n,r){const a=JM(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?sF:iF:t?iF:sF;case"left":case"right":return t?lF:cF;default:return[]}}(ZM(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(oF)))),o}function dF(e){return e.replace(/left|right|bottom|top/g,(e=>YM[e]))}function pF(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function hF(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function fF(e,t,n){let{reference:r,floating:a}=e;const o=rF(t),i=aF(t),s=tF(i),l=ZM(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-a.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-a.width,y:d};break;default:h={x:r.x,y:r.y}}switch(JM(t)){case"start":h[i]-=p*(n&&c?-1:1);break;case"end":h[i]+=p*(n&&c?-1:1)}return h}async function mF(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=QM(t,e),f=pF(h),m=s[p?"floating"===d?"reference":"floating":d],g=hF(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=hF(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-k.top+f.top)/v.y,bottom:(k.bottom-g.bottom+f.bottom)/v.y,left:(g.left-k.left+f.left)/v.x,right:(k.right-g.right+f.right)/v.x}}function gF(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yF(e){return UM.some((t=>e[t]>=0))}const bF=new Set(["left","top"]);function vF(){return"undefined"!=typeof window}function kF(e){return EF(e)?(e.nodeName||"").toLowerCase():"#document"}function wF(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function xF(e){var t;return null==(t=(EF(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function EF(e){return!!vF()&&(e instanceof Node||e instanceof wF(e).Node)}function _F(e){return!!vF()&&(e instanceof Element||e instanceof wF(e).Element)}function SF(e){return!!vF()&&(e instanceof HTMLElement||e instanceof wF(e).HTMLElement)}function TF(e){return!(!vF()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof wF(e).ShadowRoot)}const CF=new Set(["inline","contents"]);function AF(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=HF(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!CF.has(a)}const NF=new Set(["table","td","th"]);function IF(e){return NF.has(kF(e))}const RF=[":popover-open",":modal"];function OF(e){return RF.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}const PF=["transform","translate","scale","rotate","perspective"],LF=["transform","translate","scale","rotate","perspective","filter"],DF=["paint","layout","strict","content"];function MF(e){const t=FF(),n=_F(e)?HF(e):e;return PF.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||LF.some((e=>(n.willChange||"").includes(e)))||DF.some((e=>(n.contain||"").includes(e)))}function FF(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const jF=new Set(["html","body","#document"]);function BF(e){return jF.has(kF(e))}function HF(e){return wF(e).getComputedStyle(e)}function zF(e){return _F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function UF(e){if("html"===kF(e))return e;const t=e.assignedSlot||e.parentNode||TF(e)&&e.host||xF(e);return TF(t)?t.host:t}function $F(e){const t=UF(e);return BF(t)?e.ownerDocument?e.ownerDocument.body:e.body:SF(t)&&AF(t)?t:$F(t)}function VF(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=$F(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=wF(a);if(o){const e=GF(i);return t.concat(i,i.visualViewport||[],AF(a)?a:[],e&&n?VF(e):[])}return t.concat(a,VF(a,[],n))}function GF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function WF(e){const t=HF(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=SF(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=GM(n)!==o||GM(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function qF(e){return _F(e)?e:e.contextElement}function YF(e){const t=qF(e);if(!SF(t))return qM(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=WF(t);let i=(o?GM(n.width):n.width)/r,s=(o?GM(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const KF=qM(0);function XF(e){const t=wF(e);return FF()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:KF}function QF(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=qF(e);let i=qM(1);t&&(r?_F(r)&&(i=YF(r)):i=YF(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==wF(e))&&t}(o,n,r)?XF(o):qM(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=wF(o),t=r&&_F(r)?wF(r):r;let n=e,a=GF(n);for(;a&&r&&t!==n;){const e=YF(a),t=a.getBoundingClientRect(),r=HF(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=wF(a),a=GF(n)}}return hF({width:u,height:d,x:l,y:c})}function ZF(e,t){const n=zF(e).scrollLeft;return t?t.left+n:QF(xF(e)).left+n}function JF(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ZF(e,n),y:n.top+t.scrollTop}}const ej=new Set(["absolute","fixed"]);function tj(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=wF(e),r=xF(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=FF();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}const c=ZF(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-a);i<=25&&(o-=i)}else c<=25&&(o+=c);return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=xF(e),n=zF(e),r=e.ownerDocument.body,a=VM(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=VM(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ZF(e);const s=-n.scrollTop;return"rtl"===HF(r).direction&&(i+=VM(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(xF(e));else if(_F(t))r=function(e,t){const n=QF(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=SF(e)?YF(e):qM(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=XF(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return hF(r)}function nj(e,t){const n=UF(e);return!(n===t||!_F(n)||BF(n))&&("fixed"===HF(n).position||nj(n,t))}function rj(e,t,n){const r=SF(t),a=xF(t),o="fixed"===n,i=QF(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=qM(0);function c(){l.x=ZF(a)}if(r||!r&&!o)if(("body"!==kF(t)||AF(a))&&(s=zF(t)),r){const e=QF(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&c();o&&!r&&a&&c();const u=!a||r||o?qM(0):JF(a,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function aj(e){return"static"===HF(e).position}function oj(e,t){if(!SF(e)||"fixed"===HF(e).position)return null;if(t)return t(e);let n=e.offsetParent;return xF(e)===n&&(n=n.ownerDocument.body),n}function ij(e,t){const n=wF(e);if(OF(e))return n;if(!SF(e)){let t=UF(e);for(;t&&!BF(t);){if(_F(t)&&!aj(t))return t;t=UF(t)}return n}let r=oj(e,t);for(;r&&IF(r)&&aj(r);)r=oj(r,t);return r&&BF(r)&&aj(r)&&!MF(r)?n:r||function(e){let t=UF(e);for(;SF(t)&&!BF(t);){if(MF(t))return t;if(OF(t))return null;t=UF(t)}return null}(e)||n}const sj={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=xF(r),s=!!t&&OF(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=qM(1);const u=qM(0),d=SF(r);if((d||!d&&!o)&&(("body"!==kF(r)||AF(i))&&(l=zF(r)),SF(r))){const e=QF(r);c=YF(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?qM(0):JF(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:xF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?OF(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=VF(e,[],!1).filter((e=>_F(e)&&"body"!==kF(e))),a=null;const o="fixed"===HF(e).position;let i=o?UF(e):e;for(;_F(i)&&!BF(i);){const t=HF(i),n=MF(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&ej.has(a.position)||AF(i)&&!n&&nj(e,i))?r=r.filter((e=>e!==i)):a=t,i=UF(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=tj(t,n,a);return e.top=VM(r.top,e.top),e.right=$M(r.right,e.right),e.bottom=$M(r.bottom,e.bottom),e.left=VM(r.left,e.left),e}),tj(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ij,getElementRects:async function(e){const t=this.getOffsetParent||ij,n=this.getDimensions,r=await n(e.floating);return{reference:rj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=WF(e);return{width:t,height:n}},getScale:YF,isElement:_F,isRTL:function(e){return"rtl"===HF(e).direction}};function lj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cj(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=qF(e),u=a||o?[...c?VF(c):[],...VF(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=xF(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-WM(d)+"px "+-WM(a.clientWidth-(u+p))+"px "+-WM(a.clientHeight-(d+h))+"px "+-WM(u)+"px",threshold:VM(0,$M(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||lj(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(y){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?QF(e):null;return l&&function t(){const r=QF(e);m&&!lj(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const uj=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=ZM(n),s=JM(n),l="y"===rF(n),c=bF.has(i)?-1:1,u=o&&l?-1:1,d=QM(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},dj=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=QM(e,t),u={x:n,y:r},d=await o.detectOverflow(t,c),p=rF(ZM(a)),h=eF(p);let f=u[h],m=u[p];if(i){const e="y"===h?"bottom":"right";f=XM(f+d["y"===h?"top":"left"],f,f-d[e])}if(s){const e="y"===p?"bottom":"right";m=XM(m+d["y"===p?"top":"left"],m,m-d[e])}const g=l.fn({...t,[h]:f,[p]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[p]:s}}}}}},pj=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=QM(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=ZM(a),b=rF(s),v=ZM(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[dF(s)]:function(e){const t=dF(e);return[oF(e),t,oF(t)]}(s)),x="none"!==f;!p&&x&&w.push(...uF(s,m,f,k));const E=[s,...w],_=await l.detectOverflow(t,g),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(_[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=JM(e),a=aF(e),o=tF(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=dF(i)),[i,dF(i)]}(a,i,k);S.push(_[e[0]],_[e[1]])}if(T=[...T,{placement:a,overflows:S}],!S.every((e=>e<=0))){var C,A;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=E[e];if(t){if(!("alignment"===d&&b!==rF(t))||T.every((e=>rF(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var N;const e=null==(N=T.filter((e=>{if(x){const t=rF(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},hj=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=QM(e,t),u=await i.detectOverflow(t,c),d=ZM(a),p=JM(a),h="y"===rF(a),{width:f,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,v=f-u.left-u.right,k=$M(m-u[g],b),w=$M(f-u[y],v),x=!t.middlewareData.shift;let E=k,_=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=b),x&&!p){const e=VM(u.left,0),t=VM(u.right,0),n=VM(u.top,0),r=VM(u.bottom,0);h?_=f-2*(0!==e||0!==t?e+t:VM(u.left,u.right)):E=m-2*(0!==n||0!==r?n+r:VM(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:E});const S=await i.getDimensions(s.floating);return f!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},fj=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:a="referenceHidden",...o}=QM(e,t);switch(a){case"referenceHidden":{const e=gF(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:yF(e)}}}case"escaped":{const e=gF(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:yF(e)}}}default:return{}}}}},mj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=QM(e,t)||{};if(null==c)return{};const d=pF(u),p={x:n,y:r},h=aF(a),f=tF(h),m=await i.getDimensions(c),g="y"===h,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",k=o.reference[f]+o.reference[h]-p[h]-o.floating[f],w=p[h]-o.reference[h],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let E=x?x[v]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=s.floating[v]||o.floating[f]);const _=k/2-w/2,S=E/2-m[f]/2-1,T=$M(d[y],S),C=$M(d[b],S),A=T,N=E-m[f]-C,I=E/2-m[f]/2+_,R=XM(A,I,N),O=!l.arrow&&null!=JM(a)&&I!==R&&o.reference[f]/2-(I<A?T:C)-m[f]/2<0,P=O?I<A?I-A:I-N:0;return{[h]:p[h]+P,data:{[h]:R,centerOffset:I-R-P,...O&&{alignmentOffset:P}},reset:O}}}),gj=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=QM(e,t),u={x:n,y:r},d=rF(a),p=eF(d);let h=u[p],f=u[d];const m=QM(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var y,b;const e="y"===p?"width":"height",t=bF.has(ZM(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},yj=(e,t,n)=>{const r=new Map,a={platform:sj,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=fF(c,r,l),p=r,h={},f=0;for(let g=0;g<s.length;g++){var m;const{name:n,fn:o}=s[g],{x:y,y:b,data:v,reset:k}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:c,platform:{...i,detectOverflow:null!=(m=i.detectOverflow)?m:mF},elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=b?b:d,h={...h,[n]:{...h[n],...v}},k&&f<=50&&(f++,"object"==typeof k&&(k.placement&&(p=k.placement),k.rects&&(c=!0===k.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):k.rects),({x:u,y:d}=fF(c,p,l))),g=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}})(e,t,{...a,platform:o})};function bj(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const a={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...a,toJSON:()=>a}}function vj(e,t){return{contextElement:BD(e)?e:null==e?void 0:e.contextElement,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return bj();const{x:t,y:n,width:r,height:a}=e;return bj(t,n,r,a)}(r):n.getBoundingClientRect()}}}var kj=e=>({variable:e,reference:`var(${e})`}),wj={arrowSize:kj("--arrow-size"),arrowSizeHalf:kj("--arrow-size-half"),arrowBg:kj("--arrow-background"),transformOrigin:kj("--transform-origin"),arrowOffset:kj("--arrow-offset")};function xj(e,t){return{name:"transformOrigin",fn(n){var r,a,o,i;const{elements:s,middlewareData:l,placement:c,rects:u,y:d}=n,p=c.split("-")[0],h=(e=>"top"===e||"bottom"===e?"y":"x")(p),f=(null==(r=l.arrow)?void 0:r.x)||0,m=(null==(a=l.arrow)?void 0:a.y)||0,g=(null==t?void 0:t.clientWidth)||0,y=(null==t?void 0:t.clientHeight)||0,b=f+g/2,v=m+y/2,k=Math.abs((null==(o=l.shift)?void 0:o.y)||0),w=u.reference.height/2,x=y/2,E=(null==(i=e.offset)?void 0:i.mainAxis)??e.gutter,_="number"==typeof E?E+x:E??x,S=k>_,T={top:`${b}px calc(100% + ${_}px)`,bottom:`${b}px ${-_}px`,left:`calc(100% + ${_}px) ${v}px`,right:`${-_}px ${v}px`}[p],C=`${b}px ${u.reference.y+w-d}px`,A=Boolean(e.overlap)&&"y"===h&&S;return s.floating.style.setProperty(wj.transformOrigin.variable,A?C:T),{data:{transformOrigin:A?C:T}}}}}var Ej={name:"rects",fn:({rects:e})=>({data:e})},_j=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:a}=n.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:null!=r?`${r}px`:"",top:null!=a?`${a}px`:"",[o]:`calc(100% + ${wj.arrowOffset.reference})`}),{}}}};var Sj={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Tj(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Cj(e){return"function"==typeof e?e():"clipping-ancestors"===e?"clippingAncestors":e}function Aj(e,t,n){const r=e||t.createElement("div");return mj({element:r,padding:n.arrowPadding})}function Nj(e,t){if(null!=(t.offset??t.gutter))return uj((({placement:n})=>{var r,a;const o=((null==e?void 0:e.clientHeight)||0)/2,i=(null==(r=t.offset)?void 0:r.mainAxis)??t.gutter,s="number"==typeof i?i+o:i??o,{hasAlign:l}=function(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:null!=n}}(n),c=l?void 0:t.shift;return ED({crossAxis:(null==(a=t.offset)?void 0:a.crossAxis)??c,mainAxis:s,alignmentAxis:t.shift})}))}function Ij(e){if(!e.flip)return;const t=Cj(e.boundary);return pj({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip})}function Rj(e){if(!e.slide&&!e.overlap)return;const t=Cj(e.boundary);return dj({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:gj()})}function Oj(e){return hj({padding:e.overflowPadding,apply({elements:e,rects:t,availableHeight:n,availableWidth:r}){const a=e.floating,o=Math.round(t.reference.width),i=Math.round(t.reference.height);r=Math.floor(r),n=Math.floor(n),a.style.setProperty("--reference-width",`${o}px`),a.style.setProperty("--reference-height",`${i}px`),a.style.setProperty("--available-width",`${r}px`),a.style.setProperty("--available-height",`${n}px`)}})}function Pj(e){if(e.hideWhenDetached)return fj({strategy:"referenceHidden",boundary:Cj(e.boundary)??"clippingAncestors"})}function Lj(e,t,n={}){const{defer:r,...a}=n,o=r?RM:e=>e(),i=[];return i.push(o((()=>{const n="function"==typeof e?e():e,r="function"==typeof t?t():t;i.push(function(e,t,n={}){var r;const a=vj((null==(r=n.getAnchorElement)?void 0:r.call(n))??e,n.getAnchorRect);if(!t||!a)return;const o=Object.assign({},Sj,n),i=t.querySelector("[data-part=arrow]"),s=[Nj(i,o),Ij(o),Rj(o),Aj(i,t.ownerDocument,o),_j(i),xj({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),Oj(o),Pj(o),Ej],{placement:l,strategy:c,onComplete:u,onPositioned:d}=o,p=async()=>{var e;if(!a||!t)return;const n=await yj(a,t,{placement:l,middleware:s,strategy:c});null==u||u(n),null==d||d({placed:!0});const r=YD(t),i=Tj(r,n.x),p=Tj(r,n.y);t.style.setProperty("--x",`${i}px`),t.style.setProperty("--y",`${p}px`),o.hideWhenDetached&&((null==(e=n.middlewareData.hide)?void 0:e.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const h=t.firstElementChild;if(h){const e=JD(h);t.style.setProperty("--z-index",e.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:p,floatingElement:t}),null==d||d({placed:!0})):await p()},f=function(e){return e?!0===e?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}(o.listeners),m=o.listeners?cj(a,t,h,f):kD;return h(),()=>{null==m||m(),null==d||d({placed:!1})}}(n,r,a))}))),()=>{i.forEach((e=>null==e?void 0:e()))}}var Dj={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};var Mj=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Mj||{}),Fj="__init__";var jj="pointerdown.outside",Bj="focus.outside";function Hj(e){for(const t of e)if(BD(t)&&TM(t))return!0;return!1}var zj=e=>"clientY"in e;function Uj(e,t){if(!t||!zj(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,a=t.scrollWidth>t.clientWidth,o=a&&e.clientY>t.offsetTop+t.clientHeight;return!!function(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}({x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(a?16:0)},{x:e.clientX,y:e.clientY})&&(r||o)}function $j(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:a,onInteractOutside:o,defer:i,followControlledElements:s=!0}=t;if(!e)return;const l=qD(e),c=YD(e),u=function(e){const t={each(t){var n;for(let r=0;r<(null==(n=e.frames)?void 0:n.length);r+=1){const n=e.frames[r];n&&t(n)}},addEventListener:(e,n,r)=>(t.each((t=>{try{t.document.addEventListener(e,n,r)}catch{}})),()=>{try{t.removeEventListener(e,n,r)}catch{}}),removeEventListener(e,n,r){t.each((t=>{try{t.document.removeEventListener(e,n,r)}catch{}}))}};return t}(c),d=function(e){const t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,n,r)=>{try{null==t||t.addEventListener(e,n,r)}catch{}return()=>{try{null==t||t.removeEventListener(e,n,r)}catch{}}},removeEventListener:(e,n,r)=>{try{null==t||t.removeEventListener(e,n,r)}catch{}}}}(c);function p(t,r){if(!BD(r))return!1;if(!r.isConnected)return!1;if(WD(e,r))return!1;if(function(e,t){if(!zj(t)||!e)return!1;const n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}(e,t))return!1;if(s&&rM(e,r))return!1;const a=l.querySelector(`[aria-controls="${e.id}"]`);if(a){if(Uj(t,DM(a)))return!1}return!Uj(t,DM(e))&&!(null==n?void 0:n(r))}const h=new Set,f=UD(null==e?void 0:e.getRootNode());function m(t){function n(n){var r;const s=i&&!cM()?RM:e=>e(),l=n??t,c=(null==(r=null==l?void 0:l.composedPath)?void 0:r.call(l))??[null==l?void 0:l.target];s((()=>{const n=f?c[0]:dM(t);if(e&&p(t,n)){if(a||o){const t=wD(a,o);e.addEventListener(jj,t,{once:!0})}Gj(e,jj,{bubbles:!1,cancelable:!0,detail:{originalEvent:l,contextmenu:fM(l),focusable:Hj(c),target:n}})}}))}"touch"===t.pointerType?(h.forEach((e=>e())),h.add(bM(l,"click",n,{once:!0})),h.add(d.addEventListener("click",n,{once:!0})),h.add(u.addEventListener("click",n,{once:!0}))):n()}const g=new Set,y=setTimeout((()=>{g.add(bM(l,"pointerdown",m,!0)),g.add(d.addEventListener("pointerdown",m,!0)),g.add(u.addEventListener("pointerdown",m,!0))}),0);function b(t){(i?RM:e=>e())((()=>{var n;const a=(null==(n=null==t?void 0:t.composedPath)?void 0:n.call(t))??[null==t?void 0:t.target],i=f?a[0]:dM(t);if(e&&p(t,i)){if(r||o){const t=wD(r,o);e.addEventListener(Bj,t,{once:!0})}Gj(e,Bj,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:TM(i),target:i}})}}))}return cM()||(g.add(bM(l,"focusin",b,!0)),g.add(d.addEventListener("focusin",b,!0)),g.add(u.addEventListener("focusin",b,!0))),()=>{clearTimeout(y),h.forEach((e=>e())),g.forEach((e=>e()))}}function Vj(e,t){const{defer:n}=t,r=n?RM:e=>e(),a=[];return a.push(r((()=>{const n="function"==typeof e?e():e;a.push($j(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}function Gj(e,t,n){const r=new(e.ownerDocument.defaultView||window).CustomEvent(t,n);return e.dispatchEvent(r)}function Wj(e,t){return bM(qD(e),"keydown",(e=>{"Escape"===e.key&&(e.isComposing||null==t||t(e))}),{capture:!0})}var qj,Yj="layer:request-dismiss",Kj={layers:[],branches:[],recentlyRemoved:new Set,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 t;return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(null==(t=this.topMostPointerBlockingLayer())?void 0:t.node):-1)},isTopMost(e){const t=this.layers[this.count()-1];return(null==t?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter((t=>t.type===e))},getNestedLayersByType(e,t){const n=this.indexOf(e);return-1===n?[]:this.layers.slice(n+1).filter((e=>e.type===t))},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find((e=>e.type===t))},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!this.getNestedLayers(e).some((e=>WD(e.node,t)))||this.recentlyRemoved.size>0},isInBranch(e){return Array.from(this.branches).some((t=>WD(t,e)))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);if(!(t<0)){if(this.recentlyRemoved.add(e),OM((()=>this.recentlyRemoved.delete(e))),t<this.count()-1){this.getNestedLayers(e).forEach((t=>Kj.dismiss(t.node,e)))}this.layers.splice(t,1),this.syncLayers()}},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach(((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested");this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const n=this.countNestedLayersOfType(e.node,e.type);n>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${n}`)}))},indexOf(e){return this.layers.findIndex((t=>t.node===e))},dismiss(e,t){const n=this.indexOf(e);if(-1===n)return;const r=this.layers[n];var a,o;a=Yj,o=e=>{var t;null==(t=r.requestDismiss)||t.call(r,e),e.defaultPrevented||null==r||r.dismiss()},e.addEventListener(a,o,{once:!0}),function(e,t,n){const r=e.ownerDocument.defaultView||window,a=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});e.dispatchEvent(a)}(e,Yj,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function Xj(){Kj.layers.forEach((({node:e})=>{e.style.pointerEvents=Kj.isBelowPointerBlockingLayer(e)?"none":"auto"}))}function Qj(e,t){const n=qD(e),r=[];return Kj.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(qj=document.body.style.pointerEvents,queueMicrotask((()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")}))),null==t||t.forEach((e=>{const[t,n]=zM((()=>{const t=e();return BD(t)?t:null}),{timeout:1e3});t.then((e=>r.push(HM(e,{pointerEvents:"auto"})))),r.push(n)})),()=>{Kj.hasPointerBlockingLayer()||(queueMicrotask((()=>{n.body.style.pointerEvents=qj,n.body.removeAttribute("data-inert"),0===n.body.style.length&&n.body.removeAttribute("style")})),r.forEach((e=>e())))}}function Zj(e,t){const{defer:n}=t,r=n?RM:e=>e(),a=[];return a.push(r((()=>{const n=hD(e)?e():e;a.push(function(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e)return void _D("[@zag-js/dismissable] node is `null` or `undefined`");if(!e)return;const{onDismiss:r,onRequestDismiss:a,pointerBlocking:o,exclude:i,debug:s,type:l="dialog"}=t,c={dismiss:r,node:e,type:l,pointerBlocking:o,requestDismiss:a};Kj.add(c),Xj();const u=[o?Qj(e,t.persistentElements):void 0,Wj(e,(function(n){var a;Kj.isTopMost(e)&&(null==(a=t.onEscapeKeyDown)||a.call(t,n),!n.defaultPrevented&&r&&(n.preventDefault(),r()))})),Vj(e,{exclude:function(n){var r;if(!e)return!1;const a="function"==typeof i?i():i,o=Array.isArray(a)?a:[a],s=null==(r=t.persistentElements)?void 0:r.map((e=>e())).filter(BD);return s&&o.push(...s),o.some((e=>WD(e,n)))||Kj.isInNestedLayer(e,n)},onFocusOutside:function(e){var n,a;const o=dM(e.detail.originalEvent);Kj.isInBranch(o)||(null==(n=t.onFocusOutside)||n.call(t,e),null==(a=t.onInteractOutside)||a.call(t,e),e.defaultPrevented||(s&&console.log("onFocusOutside:",e.detail.originalEvent),null==r||r()))},onPointerDownOutside:function(n){var a,o;const i=dM(n.detail.originalEvent);Kj.isBelowPointerBlockingLayer(e)||Kj.isInBranch(i)||(null==(a=t.onPointerDownOutside)||a.call(t,n),null==(o=t.onInteractOutside)||o.call(t,n),n.defaultPrevented||(s&&console.log("onPointerDownOutside:",n.detail.originalEvent),null==r||r()))},defer:t.defer})];return()=>{Kj.remove(e),Xj(),function(e){e.style.pointerEvents=""}(e),u.forEach((e=>null==e?void 0:e()))}}(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}var Jj=()=>e=>Array.from(new Set(e)),eB=aD("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger").build(),tB=e=>new ND(e);tB.empty=()=>new ND({items:[]});var nB=e=>{var t;return(null==(t=e.ids)?void 0:t.label)??`combobox:${e.id}:label`},rB=e=>{var t;return(null==(t=e.ids)?void 0:t.control)??`combobox:${e.id}:control`},aB=e=>{var t;return(null==(t=e.ids)?void 0:t.input)??`combobox:${e.id}:input`},oB=e=>{var t;return(null==(t=e.ids)?void 0:t.content)??`combobox:${e.id}:content`},iB=e=>{var t;return(null==(t=e.ids)?void 0:t.positioner)??`combobox:${e.id}:popper`},sB=e=>{var t;return(null==(t=e.ids)?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},lB=e=>{var t;return(null==(t=e.ids)?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},cB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.itemGroup)?void 0:r.call(n,t))??`combobox:${e.id}:optgroup:${t}`},uB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.itemGroupLabel)?void 0:r.call(n,t))??`combobox:${e.id}:optgroup-label:${t}`},dB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.item)?void 0:r.call(n,t))??`combobox:${e.id}:option:${t}`},pB=e=>e.getById(oB(e)),hB=e=>e.getById(aB(e)),fB=e=>e.getById(iB(e)),mB=e=>e.getById(rB(e)),gB=e=>e.getById(sB(e)),yB=(e,t)=>{if(null==t)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return function(e,t){return(null==e?void 0:e.querySelector(t))??null}(pB(e),n)},bB=e=>{const t=hB(e);e.isActiveElement(t)||null==t||t.focus({preventScroll:!0})};function vB(e,t){const{context:n,prop:r,state:a,send:o,scope:i,computed:s,event:l}=e,c=r("translations"),u=r("collection"),d=!!r("disabled"),p=s("isInteractive"),h=!!r("invalid"),f=!!r("required"),m=!!r("readOnly"),g=a.hasTag("open"),y=a.hasTag("focused"),b=r("composite"),v=n.get("highlightedValue"),k=function(e={}){const{placement:t,sameWidth:n,fitViewport:r,strategy:a="absolute"}=e;return{arrow:{position:"absolute",width:wj.arrowSize.reference,height:wj.arrowSize.reference,[wj.arrowSizeHalf.variable]:`calc(${wj.arrowSize.reference} / 2)`,[wj.arrowOffset.variable]:`calc(${wj.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?Dj[t.split("-")[0]]:void 0,background:wj.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:a,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}({...r("positioning"),placement:n.get("currentPlacement")});function w(e){const t=u.getItemDisabled(e.item),r=u.getItemValue(e.item);return SD(r,(()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`)),{value:r,disabled:Boolean(t||t),highlighted:v===r,selected:n.get("value").includes(r)}}return{focused:y,open:g,inputValue:n.get("inputValue"),highlightedValue:v,highlightedItem:n.get("highlightedItem"),value:n.get("value"),valueAsString:s("valueAsString"),hasSelectedItems:s("hasSelectedItems"),selectedItems:n.get("selectedItems"),collection:r("collection"),multiple:!!r("multiple"),disabled:!!d,syncSelectedItems(){o({type:"SELECTED_ITEMS.SYNC"})},reposition(e={}){o({type:"POSITIONING.SET",options:e})},setHighlightValue(e){o({type:"HIGHLIGHTED_VALUE.SET",value:e})},clearHighlightValue(){o({type:"HIGHLIGHTED_VALUE.CLEAR"})},selectValue(e){o({type:"ITEM.SELECT",value:e})},setValue(e){o({type:"VALUE.SET",value:e})},setInputValue(e,t="script"){o({type:"INPUT_VALUE.SET",value:e,src:t})},clearValue(e){o(null!=e?{type:"ITEM.CLEAR",value:e}:{type:"VALUE.CLEAR"})},focus(){var e;null==(e=hB(i))||e.focus()},setOpen(e,t="script"){a.hasTag("open")!==e&&o({type:e?"OPEN":"CLOSE",src:t})},getRootProps(){return t.element({...eB.root.attrs,dir:r("dir"),id:(e=i,(null==(n=e.ids)?void 0:n.root)??`combobox:${e.id}`),"data-invalid":FD(h),"data-readonly":FD(m)});var e,n},getLabelProps:()=>t.label({...eB.label.attrs,dir:r("dir"),htmlFor:aB(i),id:nB(i),"data-readonly":FD(m),"data-disabled":FD(d),"data-invalid":FD(h),"data-required":FD(f),"data-focus":FD(y),onClick(e){var t;b||(e.preventDefault(),null==(t=gB(i))||t.focus({preventScroll:!0}))}}),getControlProps:()=>t.element({...eB.control.attrs,dir:r("dir"),id:rB(i),"data-state":g?"open":"closed","data-focus":FD(y),"data-disabled":FD(d),"data-invalid":FD(h)}),getPositionerProps:()=>t.element({...eB.positioner.attrs,dir:r("dir"),id:iB(i),style:k.floating}),getInputProps:()=>t.input({...eB.input.attrs,dir:r("dir"),"aria-invalid":jD(h),"data-invalid":FD(h),"data-autofocus":FD(r("autoFocus")),name:r("name"),form:r("form"),disabled:d,required:r("required"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",readOnly:m,placeholder:r("placeholder"),id:aB(i),type:"text",role:"combobox",defaultValue:n.get("inputValue"),"aria-autocomplete":s("autoComplete")?"both":"list","aria-controls":oB(i),"aria-expanded":g,"data-state":g?"open":"closed","aria-activedescendant":v?dB(i,v):void 0,onClick(e){e.defaultPrevented||r("openOnClick")&&p&&o({type:"INPUT.CLICK",src:"input-click"})},onFocus(){d||o({type:"INPUT.FOCUS"})},onBlur(){d||o({type:"INPUT.BLUR"})},onChange(e){o({type:"INPUT.CHANGE",value:e.currentTarget.value,src:"input-change"})},onKeyDown(e){if(e.defaultPrevented)return;if(!p)return;if(e.ctrlKey||e.shiftKey||function(e){return function(e){return e.nativeEvent??e}(e).isComposing||229===e.keyCode}(e))return;const t=r("openOnKeyPress"),n=e.ctrlKey||e.metaKey||e.shiftKey,a=!0,l={ArrowDown(e){(t||g)&&(o({type:e.altKey?"OPEN":"INPUT.ARROW_DOWN",keypress:a,src:"arrow-key"}),e.preventDefault())},ArrowUp(){(t||g)&&(o({type:e.altKey?"CLOSE":"INPUT.ARROW_UP",keypress:a,src:"arrow-key"}),e.preventDefault())},Home(e){n||(o({type:"INPUT.HOME",keypress:a}),g&&e.preventDefault())},End(e){n||(o({type:"INPUT.END",keypress:a}),g&&e.preventDefault())},Enter(e){var t;o({type:"INPUT.ENTER",keypress:a,src:"item-select"});const n=s("isCustomValue")&&r("allowCustomValue"),l=null!=v,c=r("alwaysSubmitOnEnter");if(g&&!n&&!c&&l&&e.preventDefault(),null==v)return;const u=yB(i,v);var d;(null==(d=u)?void 0:d.matches("a[href]"))&&(null==(t=r("navigate"))||t({value:v,node:u,href:u.href}))},Escape(){o({type:"INPUT.ESCAPE",keypress:a,src:"escape-key"}),e.preventDefault()}}[yM(e,{dir:r("dir")})];null==l||l(e)}}),getTriggerProps:(e={})=>t.button({...eB.trigger.attrs,dir:r("dir"),id:sB(i),"aria-haspopup":b?"listbox":"dialog",type:"button",tabIndex:e.focusable?void 0:-1,"aria-label":c.triggerLabel,"aria-expanded":g,"data-state":g?"open":"closed","aria-controls":g?oB(i):void 0,disabled:d,"data-invalid":FD(h),"data-focusable":FD(e.focusable),"data-readonly":FD(m),"data-disabled":FD(d),onFocus(){e.focusable&&o({type:"INPUT.FOCUS",src:"trigger"})},onClick(e){e.defaultPrevented||p&&hM(e)&&o({type:"TRIGGER.CLICK",src:"trigger-click"})},onPointerDown(e){p&&"touch"!==e.pointerType&&hM(e)&&(e.preventDefault(),queueMicrotask((()=>{var e;null==(e=hB(i))||e.focus({preventScroll:!0})})))},onKeyDown(e){if(e.defaultPrevented)return;if(b)return;const t={ArrowDown(){o({type:"INPUT.ARROW_DOWN",src:"arrow-key"})},ArrowUp(){o({type:"INPUT.ARROW_UP",src:"arrow-key"})}}[yM(e,{dir:r("dir")})];t&&(t(e),e.preventDefault())}}),getContentProps:()=>t.element({...eB.content.attrs,dir:r("dir"),id:oB(i),role:b?"listbox":"dialog",tabIndex:-1,hidden:!g,"data-state":g?"open":"closed","data-placement":n.get("currentPlacement"),"aria-labelledby":nB(i),"aria-multiselectable":!(!r("multiple")||!b)||void 0,"data-empty":FD(0===u.size),onPointerDown(e){hM(e)&&e.preventDefault()}}),getListProps:()=>t.element({...eB.list.attrs,role:b?void 0:"listbox","data-empty":FD(0===u.size),"aria-labelledby":nB(i),"aria-multiselectable":!(!r("multiple")||b)||void 0}),getClearTriggerProps:()=>t.button({...eB.clearTrigger.attrs,dir:r("dir"),id:lB(i),type:"button",tabIndex:-1,disabled:d,"data-invalid":FD(h),"aria-label":c.clearTriggerLabel,"aria-controls":aB(i),hidden:!n.get("value").length,onPointerDown(e){hM(e)&&e.preventDefault()},onClick(e){e.defaultPrevented||p&&o({type:"VALUE.CLEAR",src:"clear-trigger"})}}),getItemState:w,getItemProps(e){const n=w(e),a=n.value;return t.element({...eB.item.attrs,dir:r("dir"),id:dB(i,a),role:"option",tabIndex:-1,"data-highlighted":FD(n.highlighted),"data-state":n.selected?"checked":"unchecked","aria-selected":jD(n.highlighted),"aria-disabled":jD(n.disabled),"data-disabled":FD(n.disabled),"data-value":n.value,onPointerMove(){n.disabled||n.highlighted||o({type:"ITEM.POINTER_MOVE",value:a})},onPointerLeave(){if(e.persistFocus)return;if(n.disabled)return;const t=l.previous();(null==t?void 0:t.type.includes("POINTER"))&&o({type:"ITEM.POINTER_LEAVE",value:a})},onClick(e){(function(e){const t=e.currentTarget;if(!t)return!1;const n=t.localName;return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)})(e)||pM(e)||fM(e)||n.disabled||o({type:"ITEM.CLICK",src:"item-select",value:a})}})},getItemTextProps(e){const n=w(e);return t.element({...eB.itemText.attrs,dir:r("dir"),"data-state":n.selected?"checked":"unchecked","data-disabled":FD(n.disabled),"data-highlighted":FD(n.highlighted)})},getItemIndicatorProps(e){const n=w(e);return t.element({"aria-hidden":!0,...eB.itemIndicator.attrs,dir:r("dir"),"data-state":n.selected?"checked":"unchecked",hidden:!n.selected})},getItemGroupProps(e){const{id:n}=e;return t.element({...eB.itemGroup.attrs,dir:r("dir"),id:cB(i,n),"aria-labelledby":uB(i,n),"data-empty":FD(0===u.size),role:"group"})},getItemGroupLabelProps(e){const{htmlFor:n}=e;return t.element({...eB.itemGroupLabel.attrs,dir:r("dir"),id:uB(i,n),role:"presentation"})}}}var{guards:kB,createMachine:wB,choose:xB}={guards:{and:(...e)=>function(t){return e.every((e=>t.guard(e)))},or:(...e)=>function(t){return e.some((e=>t.guard(e)))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){var n;return null==(n=t(e))?void 0:n.actions}},{and:EB,not:_B}=kB,SB=wB({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){LM(e)},collection:tB.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"suggesting":"idle",context:({prop:e,bindable:t,getContext:n,getEvent:r})=>({currentPlacement:t((()=>({defaultValue:void 0}))),value:t((()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:uD,hash:e=>e.join(","),onChange(t){var r;const a=n(),o=a.get("selectedItems"),i=e("collection"),s=t.map((e=>o.find((t=>i.getItemValue(t)===e))||i.find(e)));a.set("selectedItems",s),null==(r=e("onValueChange"))||r({value:t,items:s})}}))),highlightedValue:t((()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){var n;const r=e("collection").find(t);null==(n=e("onHighlightChange"))||n({highlightedValue:t,highlightedItem:r})}}))),inputValue:t((()=>{let t=e("inputValue")||e("defaultInputValue");const n=e("value")||e("defaultValue");if(!t.trim()&&!e("multiple")){const r=e("collection").stringifyMany(n);t=xD(e("selectionBehavior"),{preserve:t||r,replace:r,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){var n;const a=r(),o=(a.previousEvent||a).src;null==(n=e("onInputValueChange"))||n({inputValue:t,reason:o})}}})),highlightedItem:t((()=>{const t=e("highlightedValue");return{defaultValue:e("collection").find(t)}})),selectedItems:t((()=>{const t=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(t)}}))}),computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:a}){n([()=>e.hash("value")],(()=>{r(["syncSelectedItems"])})),n([()=>e.get("inputValue")],(()=>{r(["syncInputValue"])})),n([()=>e.get("highlightedValue")],(()=>{r(["syncHighlightedItem","autofillInputValue"])})),n([()=>t("open")],(()=>{r(["toggleVisibility"])})),n([()=>t("collection").toString()],(()=>{a({type:"CHILDREN_CHANGE"})}))},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:xB([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:EB("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:EB("isCustomValue",_B("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:EB("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:EB("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:EB("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:EB("isOpenControlled","isCustomValue",_B("hasHighlightedItem"),_B("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:EB("isCustomValue",_B("hasHighlightedItem"),_B("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:EB("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:EB("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:EB("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:EB("isOpenControlled","isCustomValue",_B("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:EB("isCustomValue",_B("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:EB("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:EB("isOpenControlled","isCustomValue",_B("hasHighlightedItem"),_B("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:EB("isCustomValue",_B("hasHighlightedItem"),_B("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:EB("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:EB("isOpenControlled","isCustomValue",_B("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:EB("isCustomValue",_B("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:EB("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return!0===(r=n)||!1===r?n:!!(null==n?void 0:n({inputValue:t.get("inputValue")}));var r},restoreFocus:({event:e})=>{var t;const n=e.restoreFocus??(null==(t=e.previousEvent)?void 0:t.restoreFocus);return null==n||!!n},isChangeEvent:({event:e})=>{var t;return"INPUT.CHANGE"===(null==(t=e.previousEvent)?void 0:t.type)},autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){if(t("disableLayer"))return;return Zj((()=>pB(n)),{type:"listbox",defer:!0,exclude:()=>{return[hB(n),gB(n),(e=n,e.getById(lB(e)))];var e},onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackPlacement:({context:e,prop:t,scope:n})=>(e.set("currentPlacement",t("positioning").placement),Lj((()=>mB(n)||gB(n)),(()=>fB(n)),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const a=hB(n);let o=[];const i=a=>{const i=r.current().type.includes("POINTER"),s=e.get("highlightedValue");if(i||!s)return;const l=pB(n),c=t("scrollToIndexFn");if(c){return void c({index:t("collection").indexOf(s),immediate:a,getElement:()=>yB(n,s)})}const u=yB(n,s),d=RM((()=>{BM(u,{rootEl:l,block:"nearest"})}));o.push(d)},s=RM((()=>i(!0)));o.push(s);const l=PM(a,{attributes:["aria-activedescendant"],callback:()=>i(!1)});return o.push(l),()=>{o.forEach((e=>e()))}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){Lj((()=>mB(n)),(()=>fB(n)),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedValue({context:e,event:t}){null!=t.value&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){var t;const{context:n,prop:r}=e,a=r("collection"),o=n.get("highlightedValue");if(!o||!a.has(o))return;const i=r("multiple")?lD(n.get("value"),o):[o];null==(t=r("onSelect"))||t({value:i,itemValue:o}),n.set("value",i);const s=xD(r("selectionBehavior"),{preserve:n.get("inputValue"),replace:a.stringifyMany(i),clear:""});n.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){OM((()=>{const r=e.get("highlightedValue");if(null==r)return;const a=yB(n,r),o=pB(n),i=t("scrollToIndexFn");if(i){i({index:t("collection").indexOf(r),immediate:!0,getElement:()=>yB(n,r)})}else BM(a,{rootEl:o,block:"nearest"})}))},selectItem(e){const{context:t,event:n,flush:r,prop:a}=e;null!=n.value&&r((()=>{var e;const r=a("multiple")?lD(t.get("value"),n.value):[n.value];null==(e=a("onSelect"))||e({value:r,itemValue:n.value}),t.set("value",r);const o=xD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(r),clear:""});t.set("inputValue",o)}))},clearItem(e){const{context:t,event:n,flush:r,prop:a}=e;null!=n.value&&r((()=>{const e=sD(t.get("value"),n.value);t.set("value",e);const r=xD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(e),clear:""});t.set("inputValue",r)}))},setInitialFocus({scope:e}){RM((()=>{bB(e)}))},setFinalFocus({scope:e}){RM((()=>{const t=gB(e);null==(null==t?void 0:t.dataset.focusable)?bB(e):(e=>{const t=gB(e);e.isActiveElement(t)||null==t||t.focus({preventScroll:!0})})(e)}))},syncInputValue({context:e,scope:t,event:n}){const r=hB(t);r&&(r.value=e.get("inputValue"),queueMicrotask((()=>{"INPUT.CHANGE"!==n.current().type&&function(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;const t=e.value.length;e.setSelectionRange(t,t)}catch{}}(r)})))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=xD(t("selectionBehavior"),{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",r)},setValue(e){const{context:t,flush:n,event:r,prop:a}=e;n((()=>{t.set("value",r.value);const e=xD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(r.value),clear:""});t.set("inputValue",e)}))},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n((()=>{t.set("value",[]);const e=xD(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",e)}))},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>yB(t,r)})}else{const e=pB(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:n}){var r;const a=TB(t);null==(r=e("onOpenChange"))||r({open:!0,reason:a,value:n.get("value")})},invokeOnClose({prop:e,event:t,context:n}){var r;const a=TB(t);null==(r=e("onOpenChange"))||r({open:!1,reason:a,value:n.get("value")})},highlightFirstItem({context:e,prop:t,scope:n}){(pB(n)?queueMicrotask:RM)((()=>{const n=t("collection").firstValue;n&&e.set("highlightedValue",n)}))},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(pB(n)?queueMicrotask:RM)((()=>{const n=t("collection").lastValue;n&&e.set("highlightedValue",n)}))},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),a=t("collection");r?(n=a.getNextValue(r),!n&&t("loopFocus")&&(n=a.firstValue)):n=a.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),a=t("collection");r?(n=a.getPreviousValue(r),!n&&t("loopFocus")&&(n=a.lastValue)):n=a.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){RM((()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)}))},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){RM((()=>{let r=null;r=n("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue,r&&e.set("highlightedValue",r)}))},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){RM((()=>{const r=t("collection");let a=null;a=n("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue,a&&e.set("highlightedValue",a)}))},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:a}){const o=hB(a),i=n("collection");if(!t("autoComplete")||!o||!r.keypress)return;const s=i.stringify(e.get("highlightedValue"));RM((()=>{o.value=s||e.get("inputValue")}))},syncSelectedItems(e){queueMicrotask((()=>{const{context:t,prop:n}=e,r=n("collection"),a=t.get("value"),o=a.map((e=>t.get("selectedItems").find((t=>r.getItemValue(t)===e))||r.find(e)));t.set("selectedItems",o);const i=xD(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(a),clear:""});t.set("inputValue",i)}))},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function TB(e){return(e.previousEvent||e).src}Jj()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]),Jj()(["htmlFor"]),Jj()(["id"]),Jj()(["item","persistFocus"]);var CB=void 0!==globalThis.document?Z.useLayoutEffect:Z.useEffect;function AB(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=Z.useState(t),[a,o]=Z.useState(r),i=void 0!==e().value,s=Z.useRef(a);s.current=i?e().value:a;const l=Z.useRef(s.current);CB((()=>{l.current=s.current}),[a,e().value]);return{initial:r,ref:s,get:function(){return i?e().value:a},set(t){(e().sync?ue.flushSync:vD)((()=>(t=>{var r,a;const s=l.current,c=hD(t)?t(s):t;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:c,prev:s}),i||o(c),n(c,s)||null==(a=(r=e()).onChange)||a.call(r,c,s)})(t)))},invoke(t,n){var r,a;null==(a=(r=e()).onChange)||a.call(r,t,n)},hash(t){var n,r;return(null==(r=(n=e()).hash)?void 0:r.call(n,t))??String(t)}}}AB.cleanup=e=>{Z.useEffect((()=>e),[])},AB.ref=e=>{const t=Z.useRef(e);return{get:()=>t.current,set:e=>{t.current=e}}};var NB=(e,t)=>{const n=Z.useRef(!1),r=Z.useRef(!1);Z.useEffect((()=>{if(n.current&&r.current)return t();r.current=!0}),[...(e??[]).map((e=>"function"==typeof e?e():e))]),Z.useEffect((()=>(n.current=!0,()=>{n.current=!1})),[])};function IB(e,t={}){var n,r,a,o;const i=Z.useMemo((()=>{const{id:e,ids:n,getRootNode:r}=t;return function(e){const t=()=>{var t;return(null==(t=e.getRootNode)?void 0:t.call(e))??document},n=()=>qD(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:()=>KD(t()),isActiveElement:$D,getById:e=>t().getElementById(e)}}({id:e,ids:n,getRootNode:r})}),[t]),s=(...t)=>{e.debug&&console.log(...t)},l=function(e){const t=RB(e);return function(e){return t.current[e]}}((null==(n=e.props)?void 0:n.call(e,{props:ED(t),scope:i}))??t),c=RB(null==(r=e.context)?void 0:r.call(e,{prop:l,bindable:AB,scope:i,flush:OB,getContext:()=>u,getComputed:()=>E,getRefs:()=>y,getEvent:()=>m()})),u={get(e){var t;return null==(t=c.current)?void 0:t[e].ref.current},set(e,t){var n;null==(n=c.current)||n[e].set(t)},initial(e){var t;return null==(t=c.current)?void 0:t[e].initial},hash(e){var t,n;const r=null==(t=c.current)?void 0:t[e].get();return null==(n=c.current)?void 0:n[e].hash(r)}},d=Z.useRef(new Map),p=Z.useRef(null),h=Z.useRef(null),f=Z.useRef({type:""}),m=()=>({...f.current,current:()=>f.current,previous:()=>h.current}),g=()=>({..._,matches:(...e)=>e.includes(_.ref.current),hasTag(t){var n,r;return!!(null==(r=null==(n=e.states[_.ref.current])?void 0:n.tags)?void 0:r.includes(t))}}),y=function(e){const t=Z.useRef(e);return{get:e=>t.current[e],set(e,n){t.current[e]=n}}}((null==(a=e.refs)?void 0:a.call(e,{prop:l,context:u}))??{}),b=()=>({state:g(),context:u,event:m(),prop:l,send:C,action:v,guard:k,track:NB,refs:y,computed:E,flush:OB,scope:i,choose:x}),v=t=>{const n=hD(t)?t(b()):t;if(!n)return;const r=n.map((t=>{var n,r;const a=null==(r=null==(n=e.implementations)?void 0:n.actions)?void 0:r[t];return a||_D(`[zag-js] No implementation found for action "${JSON.stringify(t)}"`),a}));for(const e of r)null==e||e(b())},k=t=>{var n,r;return hD(t)?t(b()):null==(r=null==(n=e.implementations)?void 0:n.guards)?void 0:r[t](b())},w=t=>{const n=hD(t)?t(b()):t;if(!n)return;const r=n.map((t=>{var n,r;const a=null==(r=null==(n=e.implementations)?void 0:n.effects)?void 0:r[t];return a||_D(`[zag-js] No implementation found for effect "${JSON.stringify(t)}"`),a})),a=[];for(const e of r){const t=null==e?void 0:e(b());t&&a.push(t)}return()=>a.forEach((e=>null==e?void 0:e()))},x=e=>{return(t=e,null==t?[]:Array.isArray(t)?t:[t]).find((e=>{let t=!e.guard;return(e=>"string"==typeof e)(e.guard)?t=!!k(e.guard):hD(e.guard)&&(t=e.guard(b())),t}));var t},E=t=>{SD(e.computed,(()=>"[zag-js] No computed object found on machine"));return(0,e.computed[t])({context:u,event:m(),prop:l,refs:y,scope:i,computed:E})},_=AB((()=>({defaultValue:e.initialState({prop:l}),onChange(t,n){var r,a,o,i;if(n){const e=d.current.get(n);null==e||e(),d.current.delete(n)}n&&v(null==(r=e.states[n])?void 0:r.exit),v(null==(a=p.current)?void 0:a.actions);const s=w(null==(o=e.states[t])?void 0:o.effects);if(s&&d.current.set(t,s),n===Fj){v(e.entry);const t=w(e.effects);t&&d.current.set(Fj,t)}v(null==(i=e.states[t])?void 0:i.entry)}}))),S=Z.useRef(void 0),T=Z.useRef(Mj.NotStarted);CB((()=>{queueMicrotask((()=>{const e=T.current===Mj.Started;T.current=Mj.Started,s(e?"rehydrating...":"initializing...");const t=S.current??_.initial;_.invoke(t,e?_.get():Fj)}));const t=d.current,n=_.ref.current;return()=>{s("unmounting..."),S.current=n,T.current=Mj.Stopped,t.forEach((e=>null==e?void 0:e())),d.current=new Map,p.current=null,queueMicrotask((()=>{v(e.exit)}))}}),[]);const C=t=>{queueMicrotask((()=>{var n,r;if(T.current!==Mj.Started)return;h.current=f.current,f.current=t;let a="ref"in _?_.ref.current:_.get();const o=(null==(n=e.states[a].on)?void 0:n[t.type])??(null==(r=e.on)?void 0:r[t.type]),i=x(o);if(!i)return;p.current=i;const l=i.target??a;s("transition",t.type,i.target||a,`(${i.actions})`);const c=l!==a;c?ue.flushSync((()=>_.set(l))):i.reenter&&!c?_.invoke(a,a):v(i.actions??[])}))};return null==(o=e.watch)||o.call(e,b()),{state:g(),send:C,context:u,prop:l,scope:i,refs:y,computed:E,event:m(),getStatus:()=>T.current}}function RB(e){const t=Z.useRef(e);return t.current=e,t}function OB(e){queueMicrotask((()=>{ue.flushSync((()=>e()))}))}var PB,LB=(PB=e=>e,new Proxy({},{get:(e,t)=>"style"===t?e=>PB({style:e}).style:PB}));function DB(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function MB(...e){return t=>{let n=!1;const r=e.map((e=>{const r=DB(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():DB(e[t],null)}}}}function FB(...e){return Z.useCallback(MB(...e),e)}function jB(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function BB(){return BB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BB.apply(null,arguments)}function HB(e,t){return(HB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var zB=function(){return zB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},zB.apply(this,arguments)};function UB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function $B(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
38
+ */function BT(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var HT=Symbol.for("react.transitional.element"),zT=Symbol.for("react.portal"),UT=Symbol.for("react.fragment"),$T=Symbol.for("react.strict_mode"),VT=Symbol.for("react.profiler"),GT=Symbol.for("react.provider"),WT=Symbol.for("react.consumer"),qT=Symbol.for("react.context"),YT=Symbol.for("react.forward_ref"),KT=Symbol.for("react.suspense"),XT=Symbol.for("react.suspense_list"),QT=Symbol.for("react.memo"),ZT=Symbol.for("react.lazy"),JT=Symbol.for("react.scope"),eC=Symbol.for("react.debug_trace_mode"),tC=Symbol.for("react.offscreen"),nC=Symbol.for("react.legacy_hidden"),rC=Symbol.for("react.memo_cache_sentinel"),aC=Symbol.iterator,oC=Array.isArray;function iC(e,t){var n=3&e.length,r=e.length-n,a=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,a=27492+(65535&(a=5*(65535&(a=(a^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:a^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,((a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295)^a>>>16)>>>0}var sC=new MessageChannel,lC=[];function cC(e){lC.push(e),sC.port2.postMessage(null)}function uC(e){setTimeout((function(){throw e}))}sC.port1.onmessage=function(){var e=lC.shift();e&&e()};var dC=Promise,pC="function"==typeof queueMicrotask?queueMicrotask:function(e){dC.resolve(null).then(e).catch(uC)},hC=null,fC=0;function mC(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<fC&&(e.enqueue(new Uint8Array(hC.buffer,0,fC)),hC=new Uint8Array(2048),fC=0),e.enqueue(t);else{var n=hC.length-fC;n<t.byteLength&&(0===n?e.enqueue(hC):(hC.set(t.subarray(0,n),fC),e.enqueue(hC),t=t.subarray(n)),hC=new Uint8Array(2048),fC=0),hC.set(t,fC),fC+=t.byteLength}}function gC(e,t){return mC(e,t),!0}function yC(e){hC&&0<fC&&(e.enqueue(new Uint8Array(hC.buffer,0,fC)),hC=null,fC=0)}var bC=new TextEncoder;function vC(e){return bC.encode(e)}function kC(e){return bC.encode(e)}function wC(e,t){"function"==typeof e.error?e.error(t):e.close()}var xC=Object.assign,EC=Object.prototype.hasOwnProperty,_C=RegExp("^[: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]*$"),SC={},TC={};function CC(e){return!!EC.call(TC,e)||!EC.call(SC,e)&&(_C.test(e)?TC[e]=!0:(SC[e]=!0,!1))}var AC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),NC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),IC=/["'&<>]/;function RC(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=IC.exec(e);if(t){var n,r="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==n&&(r+=e.slice(a,n)),a=n+1,r+=t}e=a!==n?r+e.slice(a,n):r}return e}var OC=/([A-Z])/g,PC=/^ms-/,LC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function DC(e){return LC.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var MC=FT.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,FC=jT.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,jC={pending:!1,data:null,method:null,action:null},BC=FC.d;FC.d={f:BC.f,r:BC.r,D:function(e){var t=zR||null;if(t){var n=t.resumableState,r=t.renderState;if("string"==typeof e&&e){var a,o;if(!n.dnsResources.hasOwnProperty(e))n.dnsResources[e]=null,(o=(n=r.headers)&&0<n.remainingCapacity)&&(a="<"+(""+e).replace(xI,EI)+">; rel=dns-prefetch",o=0<=(n.remainingCapacity-=a.length+2)),o?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=", "),n.preconnects+=a):(OA(a=[],{href:e,rel:"dns-prefetch"}),r.preconnects.add(a));_O(t)}}else BC.D(e)},C:function(e,t){var n=zR||null;if(n){var r=n.resumableState,a=n.renderState;if("string"==typeof e&&e){var o="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[o].hasOwnProperty(e)){var i,s;if(r.connectResources[o][e]=null,s=(r=a.headers)&&0<r.remainingCapacity){if(s="<"+(""+e).replace(xI,EI)+">; rel=preconnect","string"==typeof t)s+='; crossorigin="'+(""+t).replace(_I,SI)+'"';i=s,s=0<=(r.remainingCapacity-=i.length+2)}s?(a.resets.connect[o][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=i):(OA(o=[],{rel:"preconnect",href:e,crossOrigin:t}),a.preconnects.add(o))}_O(n)}}else BC.C(e,t)},L:function(e,t,n){var r=zR||null;if(r){var a=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var i=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var c,u=i?i+"\n"+(s||""):e;if(a.imageResources.hasOwnProperty(u))return;a.imageResources[u]=HC,(a=o.headers)&&0<a.remainingCapacity&&"high"===l&&(c=wI(e,t,n),0<=(a.remainingCapacity-=c.length+2))?(o.resets.image[u]=HC,a.highImagePreloads&&(a.highImagePreloads+=", "),a.highImagePreloads+=c):(OA(a=[],xC({rel:"preload",href:i?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(a):(o.bulkPreloads.add(a),o.preloads.images.set(u,a)));break;case"style":if(a.styleResources.hasOwnProperty(e))return;OA(i=[],xC({rel:"preload",href:e,as:t},n)),a.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?HC:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,i),o.bulkPreloads.add(i);break;case"script":if(a.scriptResources.hasOwnProperty(e))return;i=[],o.preloads.scripts.set(e,i),o.bulkPreloads.add(i),OA(i,xC({rel:"preload",href:e,as:t},n)),a.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?HC:[n.crossOrigin,n.integrity];break;default:if(a.unknownResources.hasOwnProperty(t)){if((i=a.unknownResources[t]).hasOwnProperty(e))return}else i={},a.unknownResources[t]=i;if(i[e]=HC,(a=o.headers)&&0<a.remainingCapacity&&"font"===t&&(u=wI(e,t,n),0<=(a.remainingCapacity-=u.length+2)))o.resets.font[e]=HC,a.fontPreloads&&(a.fontPreloads+=", "),a.fontPreloads+=u;else if("font"===(OA(a=[],e=xC({rel:"preload",href:e,as:t},n)),t))o.fontPreloads.add(a);else o.bulkPreloads.add(a)}_O(r)}}else BC.L(e,t,n)},m:function(e,t){var n=zR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?HC:[t.crossOrigin,t.integrity],a.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var i=r.unknownResources[o];if(i.hasOwnProperty(e))return}else i={},r.moduleUnknownResources[o]=i;o=[],i[e]=HC}OA(o,xC({rel:"modulepreload",href:e},t)),a.bulkPreloads.add(o),_O(n)}}else BC.m(e,t)},X:function(e,t){var n=zR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=xC({src:e,async:!0},t),o&&(2===o.length&&kI(t,o),e=a.preloads.scripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),FA(e,t),_O(n))}}else BC.X(e,t)},S:function(e,t,n){var r=zR||null;if(r){var a=r.resumableState,o=r.renderState;if(e){t=t||"default";var i=o.styles.get(t),s=a.styleResources.hasOwnProperty(e)?a.styleResources[e]:void 0;null!==s&&(a.styleResources[e]=null,i||(i={precedence:vC(RC(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,i)),t={state:0,props:xC({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&kI(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),i.sheets.set(e,t),_O(r))}}else BC.S(e,t,n)},M:function(e,t){var n=zR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=xC({src:e,type:"module",async:!0},t),o&&(2===o.length&&kI(t,o),e=a.preloads.moduleScripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),FA(e,t),_O(n))}}else BC.M(e,t)}};var HC=[];kC('"></template>');var zC=kC("<script>"),UC=kC("<\/script>"),$C=kC('<script src="'),VC=kC('<script type="module" src="'),GC=kC('" nonce="'),WC=kC('" integrity="'),qC=kC('" crossorigin="'),YC=kC('" async=""><\/script>'),KC=/(<\/|<)(s)(cript)/gi;function XC(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var QC=kC('<script type="importmap">'),ZC=kC("<\/script>");function JC(e,t,n,r,a,o){var i=void 0===t?zC:kC('<script nonce="'+RC(t)+'">'),s=e.idPrefix;n=[];var l=e.bootstrapScriptContent,c=e.bootstrapScripts,u=e.bootstrapModules;if(void 0!==l&&n.push(i,vC((""+l).replace(KC,XC)),UC),l=[],void 0!==r&&(l.push(QC),l.push(vC((""+JSON.stringify(r)).replace(KC,XC))),l.push(ZC)),r=a?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,a={placeholderPrefix:kC(s+"P:"),segmentPrefix:kC(s+"S:"),boundaryPrefix:kC(s+"B:"),startInlineScript:i,htmlChunks:null,headChunks:null,externalRuntimeScript:null,bootstrapChunks:n,importMapChunks:l,onHeaders:a,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:t,hoistableState:null,stylesToHoist:!1},void 0!==c)for(r=0;r<c.length;r++){var d=c[r];s=i=void 0,l={rel:"preload",as:"script",fetchPriority:"low",nonce:t},"string"==typeof d?l.href=o=d:(l.href=o=d.src,l.integrity=s="string"==typeof d.integrity?d.integrity:void 0,l.crossOrigin=i="string"==typeof d||null==d.crossOrigin?void 0:"use-credentials"===d.crossOrigin?"use-credentials":"");var p=o;(d=e).scriptResources[p]=null,d.moduleScriptResources[p]=null,OA(d=[],l),a.bootstrapScripts.add(d),n.push($C,vC(RC(o))),t&&n.push(GC,vC(RC(t))),"string"==typeof s&&n.push(WC,vC(RC(s))),"string"==typeof i&&n.push(qC,vC(RC(i))),n.push(YC)}if(void 0!==u)for(c=0;c<u.length;c++)i=o=void 0,s={rel:"modulepreload",fetchPriority:"low",nonce:t},"string"==typeof(l=u[c])?s.href=r=l:(s.href=r=l.src,s.integrity=i="string"==typeof l.integrity?l.integrity:void 0,s.crossOrigin=o="string"==typeof l||null==l.crossOrigin?void 0:"use-credentials"===l.crossOrigin?"use-credentials":""),d=r,(l=e).scriptResources[d]=null,l.moduleScriptResources[d]=null,OA(l=[],s),a.bootstrapScripts.add(l),n.push(VC,vC(RC(r))),t&&n.push(GC,vC(RC(t))),"string"==typeof i&&n.push(WC,vC(RC(i))),"string"==typeof o&&n.push(qC,vC(RC(o))),n.push(YC);return a}function eA(e,t,n,r,a){return{idPrefix:void 0===e?"":e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:a,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function tA(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function nA(e){return tA("http://www.w3.org/2000/svg"===e?3:"http://www.w3.org/1998/Math/MathML"===e?4:0,null,0)}function rA(e,t,n){switch(t){case"noscript":return tA(2,null,1|e.tagScope);case"select":return tA(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return tA(3,null,e.tagScope);case"picture":return tA(2,null,2|e.tagScope);case"math":return tA(4,null,e.tagScope);case"foreignObject":return tA(2,null,e.tagScope);case"table":return tA(5,null,e.tagScope);case"thead":case"tbody":case"tfoot":return tA(6,null,e.tagScope);case"colgroup":return tA(8,null,e.tagScope);case"tr":return tA(7,null,e.tagScope)}return 5<=e.insertionMode?tA(2,null,e.tagScope):0===e.insertionMode?tA("html"===t?1:2,null,e.tagScope):1===e.insertionMode?tA(2,null,e.tagScope):e}var aA=kC("\x3c!-- --\x3e");function oA(e,t,n,r){return""===t?r:(r&&e.push(aA),e.push(vC(RC(t))),!0)}var iA=new Map,sA=kC(' style="'),lA=kC(":"),cA=kC(";");function uA(e,t){if("object"!=typeof t)throw Error(BT(62));var n,r=!0;for(n in t)if(EC.call(t,n)){var a=t[n];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===n.indexOf("--")){var o=vC(RC(n));a=vC(RC((""+a).trim()))}else void 0===(o=iA.get(n))&&(o=kC(RC(n.replace(OC,"-$1").toLowerCase().replace(PC,"-ms-"))),iA.set(n,o)),a="number"==typeof a?0===a||AC.has(n)?vC(""+a):vC(a+"px"):vC(RC((""+a).trim()));r?(r=!1,e.push(sA,o,lA,a)):e.push(cA,o,lA,a)}}r||e.push(hA)}var dA=kC(" "),pA=kC('="'),hA=kC('"'),fA=kC('=""');function mA(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(dA,vC(t),fA)}function gA(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(dA,vC(t),pA,vC(RC(n)),hA)}var yA=kC(RC("javascript:throw new Error('React form unexpectedly submitted.')")),bA=kC('<input type="hidden"');function vA(e,t){this.push(bA),kA(e),gA(this,"name",t),gA(this,"value",e),this.push(SA)}function kA(e){if("string"!=typeof e)throw Error(BT(480))}function wA(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var a=r.data;null!=a&&a.forEach(kA)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function xA(e,t,n,r,a,o,i,s){var l=null;if("function"==typeof r){var c=wA(t,r);null!==c?(s=c.name,r=c.action||"",a=c.encType,o=c.method,i=c.target,l=c.data):(e.push(dA,vC("formAction"),pA,yA,hA),i=o=a=r=s=null,NA(t,n))}return null!=s&&EA(e,"name",s),null!=r&&EA(e,"formAction",r),null!=a&&EA(e,"formEncType",a),null!=o&&EA(e,"formMethod",o),null!=i&&EA(e,"formTarget",i),l}function EA(e,t,n){switch(t){case"className":gA(e,"class",n);break;case"tabIndex":gA(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":gA(e,t,n);break;case"style":uA(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=DC(""+n),e.push(dA,vC(t),pA,vC(RC(n)),hA);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":mA(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=DC(""+n),e.push(dA,vC("xlink:href"),pA,vC(RC(n)),hA);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(dA,vC(t),pA,vC(RC(n)),hA);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(dA,vC(t),fA);break;case"capture":case"download":!0===n?e.push(dA,vC(t),fA):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(dA,vC(t),pA,vC(RC(n)),hA);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(dA,vC(t),pA,vC(RC(n)),hA);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(dA,vC(t),pA,vC(RC(n)),hA);break;case"xlinkActuate":gA(e,"xlink:actuate",n);break;case"xlinkArcrole":gA(e,"xlink:arcrole",n);break;case"xlinkRole":gA(e,"xlink:role",n);break;case"xlinkShow":gA(e,"xlink:show",n);break;case"xlinkTitle":gA(e,"xlink:title",n);break;case"xlinkType":gA(e,"xlink:type",n);break;case"xmlBase":gA(e,"xml:base",n);break;case"xmlLang":gA(e,"xml:lang",n);break;case"xmlSpace":gA(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&CC(t=NC.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(dA,vC(t),pA,vC(RC(n)),hA)}}}var _A=kC(">"),SA=kC("/>");function TA(e,t,n){if(null!=t){if(null!=n)throw Error(BT(60));if("object"!=typeof t||!("__html"in t))throw Error(BT(61));null!=(t=t.__html)&&e.push(vC(""+t))}}var CA=kC(' selected=""'),AA=kC('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});');function NA(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,AA,UC))}var IA=kC("\x3c!--F!--\x3e"),RA=kC("\x3c!--F--\x3e");function OA(e,t){for(var n in e.push(UA("link")),t)if(EC.call(t,n)){var r=t[n];if(null!=r)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(BT(399,"link"));default:EA(e,n,r)}}return e.push(SA),null}var PA=/(<\/|<)(s)(tyle)/gi;function LA(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function DA(e,t,n){for(var r in e.push(UA(n)),t)if(EC.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(BT(399,n));default:EA(e,r,a)}}return e.push(SA),null}function MA(e,t){e.push(UA("title"));var n,r=null,a=null;for(n in t)if(EC.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:EA(e,n,o)}}return e.push(_A),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(vC(RC(""+t))),TA(e,a,r),e.push(WA("title")),null}function FA(e,t){e.push(UA("script"));var n,r=null,a=null;for(n in t)if(EC.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:EA(e,n,o)}}return e.push(_A),TA(e,a,r),"string"==typeof r&&e.push(vC((""+r).replace(KC,XC))),e.push(WA("script")),null}function jA(e,t,n){e.push(UA(n));var r,a=n=null;for(r in t)if(EC.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":a=o;break;default:EA(e,r,o)}}return e.push(_A),TA(e,a,n),"string"==typeof n?(e.push(vC(RC(n))),null):n}var BA=kC("\n"),HA=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,zA=new Map;function UA(e){var t=zA.get(e);if(void 0===t){if(!HA.test(e))throw Error(BT(65,e));t=kC("<"+e),zA.set(e,t)}return t}var $A=kC("<!DOCTYPE html>");function VA(e,t,n,r,a,o,i,s,l){switch(t){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":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":break;case"a":e.push(UA("a"));var c,u=null,d=null;for(c in n)if(EC.call(n,c)){var p=n[c];if(null!=p)switch(c){case"children":u=p;break;case"dangerouslySetInnerHTML":d=p;break;case"href":""===p?gA(e,"href",""):EA(e,c,p);break;default:EA(e,c,p)}}if(e.push(_A),TA(e,d,u),"string"==typeof u){e.push(vC(RC(u)));var h=null}else h=u;return h;case"select":e.push(UA("select"));var f,m=null,g=null;for(f in n)if(EC.call(n,f)){var y=n[f];if(null!=y)switch(f){case"children":m=y;break;case"dangerouslySetInnerHTML":g=y;break;case"defaultValue":case"value":break;default:EA(e,f,y)}}return e.push(_A),TA(e,g,m),m;case"option":var b=i.selectedValue;e.push(UA("option"));var v,k=null,w=null,x=null,E=null;for(v in n)if(EC.call(n,v)){var _=n[v];if(null!=_)switch(v){case"children":k=_;break;case"selected":x=_;break;case"dangerouslySetInnerHTML":E=_;break;case"value":w=_;default:EA(e,v,_)}}if(null!=b){var S=null!==w?""+w:function(e){var t="";return FT.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(k);if(oC(b)){for(var T=0;T<b.length;T++)if(""+b[T]===S){e.push(CA);break}}else""+b===S&&e.push(CA)}else x&&e.push(CA);return e.push(_A),TA(e,E,k),k;case"textarea":e.push(UA("textarea"));var C,A=null,N=null,I=null;for(C in n)if(EC.call(n,C)){var R=n[C];if(null!=R)switch(C){case"children":I=R;break;case"value":A=R;break;case"defaultValue":N=R;break;case"dangerouslySetInnerHTML":throw Error(BT(91));default:EA(e,C,R)}}if(null===A&&null!==N&&(A=N),e.push(_A),null!=I){if(null!=A)throw Error(BT(92));if(oC(I)){if(1<I.length)throw Error(BT(93));A=""+I[0]}A=""+I}return"string"==typeof A&&"\n"===A[0]&&e.push(BA),null!==A&&e.push(vC(RC(""+A))),null;case"input":e.push(UA("input"));var O,P=null,L=null,D=null,M=null,F=null,j=null,B=null,H=null,z=null;for(O in n)if(EC.call(n,O)){var U=n[O];if(null!=U)switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(BT(399,"input"));case"name":P=U;break;case"formAction":L=U;break;case"formEncType":D=U;break;case"formMethod":M=U;break;case"formTarget":F=U;break;case"defaultChecked":z=U;break;case"defaultValue":B=U;break;case"checked":H=U;break;case"value":j=U;break;default:EA(e,O,U)}}var $=xA(e,r,a,L,D,M,F,P);return null!==H?mA(e,"checked",H):null!==z&&mA(e,"checked",z),null!==j?EA(e,"value",j):null!==B&&EA(e,"value",B),e.push(SA),null!=$&&$.forEach(vA,e),null;case"button":e.push(UA("button"));var V,G=null,W=null,q=null,Y=null,K=null,X=null,Q=null;for(V in n)if(EC.call(n,V)){var Z=n[V];if(null!=Z)switch(V){case"children":G=Z;break;case"dangerouslySetInnerHTML":W=Z;break;case"name":q=Z;break;case"formAction":Y=Z;break;case"formEncType":K=Z;break;case"formMethod":X=Z;break;case"formTarget":Q=Z;break;default:EA(e,V,Z)}}var J=xA(e,r,a,Y,K,X,Q,q);if(e.push(_A),null!=J&&J.forEach(vA,e),TA(e,W,G),"string"==typeof G){e.push(vC(RC(G)));var ee=null}else ee=G;return ee;case"form":e.push(UA("form"));var te,ne=null,re=null,ae=null,oe=null,ie=null,se=null;for(te in n)if(EC.call(n,te)){var le=n[te];if(null!=le)switch(te){case"children":ne=le;break;case"dangerouslySetInnerHTML":re=le;break;case"action":ae=le;break;case"encType":oe=le;break;case"method":ie=le;break;case"target":se=le;break;default:EA(e,te,le)}}var ce=null,ue=null;if("function"==typeof ae){var de=wA(r,ae);null!==de?(ae=de.action||"",oe=de.encType,ie=de.method,se=de.target,ce=de.data,ue=de.name):(e.push(dA,vC("action"),pA,yA,hA),se=ie=oe=ae=null,NA(r,a))}if(null!=ae&&EA(e,"action",ae),null!=oe&&EA(e,"encType",oe),null!=ie&&EA(e,"method",ie),null!=se&&EA(e,"target",se),e.push(_A),null!==ue&&(e.push(bA),gA(e,"name",ue),e.push(SA),null!=ce&&ce.forEach(vA,e)),TA(e,re,ne),"string"==typeof ne){e.push(vC(RC(ne)));var pe=null}else pe=ne;return pe;case"menuitem":for(var he in e.push(UA("menuitem")),n)if(EC.call(n,he)){var fe=n[he];if(null!=fe)switch(he){case"children":case"dangerouslySetInnerHTML":throw Error(BT(400));default:EA(e,he,fe)}}return e.push(_A),null;case"object":e.push(UA("object"));var me,ge=null,ye=null;for(me in n)if(EC.call(n,me)){var be=n[me];if(null!=be)switch(me){case"children":ge=be;break;case"dangerouslySetInnerHTML":ye=be;break;case"data":var ve=DC(""+be);if(""===ve)break;e.push(dA,vC("data"),pA,vC(RC(ve)),hA);break;default:EA(e,me,be)}}if(e.push(_A),TA(e,ye,ge),"string"==typeof ge){e.push(vC(RC(ge)));var ke=null}else ke=ge;return ke;case"title":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var we=MA(e,n);else l?we=null:(MA(a.hoistableChunks,n),we=void 0);return we;case"link":var xe=n.rel,Ee=n.href,_e=n.precedence;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof xe||"string"!=typeof Ee||""===Ee){OA(e,n);var Se=null}else if("stylesheet"===n.rel)if("string"!=typeof _e||null!=n.disabled||n.onLoad||n.onError)Se=OA(e,n);else{var Te=a.styles.get(_e),Ce=r.styleResources.hasOwnProperty(Ee)?r.styleResources[Ee]:void 0;if(null!==Ce){r.styleResources[Ee]=null,Te||(Te={precedence:vC(RC(_e)),rules:[],hrefs:[],sheets:new Map},a.styles.set(_e,Te));var Ae={state:0,props:xC({},n,{"data-precedence":n.precedence,precedence:null})};if(Ce){2===Ce.length&&kI(Ae.props,Ce);var Ne=a.preloads.stylesheets.get(Ee);Ne&&0<Ne.length?Ne.length=0:Ae.state=1}Te.sheets.set(Ee,Ae),o&&o.stylesheets.add(Ae)}else if(Te){var Ie=Te.sheets.get(Ee);Ie&&o&&o.stylesheets.add(Ie)}s&&e.push(aA),Se=null}else n.onLoad||n.onError?Se=OA(e,n):(s&&e.push(aA),Se=l?null:OA(a.hoistableChunks,n));return Se;case"script":var Re=n.async;if("string"!=typeof n.src||!n.src||!Re||"function"==typeof Re||"symbol"==typeof Re||n.onLoad||n.onError||3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var Oe=FA(e,n);else{var Pe=n.src;if("module"===n.type)var Le=r.moduleScriptResources,De=a.preloads.moduleScripts;else Le=r.scriptResources,De=a.preloads.scripts;var Me=Le.hasOwnProperty(Pe)?Le[Pe]:void 0;if(null!==Me){Le[Pe]=null;var Fe=n;if(Me){2===Me.length&&kI(Fe=xC({},n),Me);var je=De.get(Pe);je&&(je.length=0)}var Be=[];a.scripts.add(Be),FA(Be,Fe)}s&&e.push(aA),Oe=null}return Oe;case"style":var He=n.precedence,ze=n.href;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof He||"string"!=typeof ze||""===ze){e.push(UA("style"));var Ue,$e=null,Ve=null;for(Ue in n)if(EC.call(n,Ue)){var Ge=n[Ue];if(null!=Ge)switch(Ue){case"children":$e=Ge;break;case"dangerouslySetInnerHTML":Ve=Ge;break;default:EA(e,Ue,Ge)}}e.push(_A);var We=Array.isArray($e)?2>$e.length?$e[0]:null:$e;"function"!=typeof We&&"symbol"!=typeof We&&null!=We&&e.push(vC((""+We).replace(PA,LA))),TA(e,Ve,$e),e.push(WA("style"));var qe=null}else{var Ye=a.styles.get(He);if(null!==(r.styleResources.hasOwnProperty(ze)?r.styleResources[ze]:void 0)){r.styleResources[ze]=null,Ye?Ye.hrefs.push(vC(RC(ze))):(Ye={precedence:vC(RC(He)),rules:[],hrefs:[vC(RC(ze))],sheets:new Map},a.styles.set(He,Ye));var Ke,Xe=Ye.rules,Qe=null,Ze=null;for(Ke in n)if(EC.call(n,Ke)){var Je=n[Ke];if(null!=Je)switch(Ke){case"children":Qe=Je;break;case"dangerouslySetInnerHTML":Ze=Je}}var et=Array.isArray(Qe)?2>Qe.length?Qe[0]:null:Qe;"function"!=typeof et&&"symbol"!=typeof et&&null!=et&&Xe.push(vC((""+et).replace(PA,LA))),TA(Xe,Ze,Qe)}Ye&&o&&o.styles.add(Ye),s&&e.push(aA),qe=void 0}return qe;case"meta":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var tt=DA(e,n,"meta");else s&&e.push(aA),tt=l?null:"string"==typeof n.charSet?DA(a.charsetChunks,n,"meta"):"viewport"===n.name?DA(a.viewportChunks,n,"meta"):DA(a.hoistableChunks,n,"meta");return tt;case"listing":case"pre":e.push(UA(t));var nt,rt=null,at=null;for(nt in n)if(EC.call(n,nt)){var ot=n[nt];if(null!=ot)switch(nt){case"children":rt=ot;break;case"dangerouslySetInnerHTML":at=ot;break;default:EA(e,nt,ot)}}if(e.push(_A),null!=at){if(null!=rt)throw Error(BT(60));if("object"!=typeof at||!("__html"in at))throw Error(BT(61));var it=at.__html;null!=it&&("string"==typeof it&&0<it.length&&"\n"===it[0]?e.push(BA,vC(it)):e.push(vC(""+it)))}return"string"==typeof rt&&"\n"===rt[0]&&e.push(BA),rt;case"img":var st=n.src,lt=n.srcSet;if(!("lazy"===n.loading||!st&&!lt||"string"!=typeof st&&null!=st||"string"!=typeof lt&&null!=lt)&&"low"!==n.fetchPriority&&!1==!!(3&i.tagScope)&&("string"!=typeof st||":"!==st[4]||"d"!==st[0]&&"D"!==st[0]||"a"!==st[1]&&"A"!==st[1]||"t"!==st[2]&&"T"!==st[2]||"a"!==st[3]&&"A"!==st[3])&&("string"!=typeof lt||":"!==lt[4]||"d"!==lt[0]&&"D"!==lt[0]||"a"!==lt[1]&&"A"!==lt[1]||"t"!==lt[2]&&"T"!==lt[2]||"a"!==lt[3]&&"A"!==lt[3])){var ct="string"==typeof n.sizes?n.sizes:void 0,ut=lt?lt+"\n"+(ct||""):st,dt=a.preloads.images,pt=dt.get(ut);if(pt)("high"===n.fetchPriority||10>a.highImagePreloads.size)&&(dt.delete(ut),a.highImagePreloads.add(pt));else if(!r.imageResources.hasOwnProperty(ut)){r.imageResources[ut]=HC;var ht,ft=n.crossOrigin,mt="string"==typeof ft?"use-credentials"===ft?ft:"":void 0,gt=a.headers;gt&&0<gt.remainingCapacity&&("high"===n.fetchPriority||500>gt.highImagePreloads.length)&&(ht=wI(st,"image",{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:mt,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),0<=(gt.remainingCapacity-=ht.length+2))?(a.resets.image[ut]=HC,gt.highImagePreloads&&(gt.highImagePreloads+=", "),gt.highImagePreloads+=ht):(OA(pt=[],{rel:"preload",as:"image",href:lt?void 0:st,imageSrcSet:lt,imageSizes:ct,crossOrigin:mt,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),"high"===n.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(pt):(a.bulkPreloads.add(pt),dt.set(ut,pt)))}}return DA(e,n,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return DA(e,n,t);case"head":if(2>i.insertionMode&&null===a.headChunks){a.headChunks=[];var yt=jA(a.headChunks,n,"head")}else yt=jA(e,n,"head");return yt;case"html":if(0===i.insertionMode&&null===a.htmlChunks){a.htmlChunks=[$A];var bt=jA(a.htmlChunks,n,"html")}else bt=jA(e,n,"html");return bt;default:if(-1!==t.indexOf("-")){e.push(UA(t));var vt,kt=null,wt=null;for(vt in n)if(EC.call(n,vt)){var xt=n[vt];if(null!=xt){var Et=vt;switch(vt){case"children":kt=xt;break;case"dangerouslySetInnerHTML":wt=xt;break;case"style":uA(e,xt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":Et="class";default:if(CC(vt)&&"function"!=typeof xt&&"symbol"!=typeof xt&&!1!==xt){if(!0===xt)xt="";else if("object"==typeof xt)continue;e.push(dA,vC(Et),pA,vC(RC(xt)),hA)}}}}return e.push(_A),TA(e,wt,kt),kt}}return jA(e,n,t)}var GA=new Map;function WA(e){var t=GA.get(e);return void 0===t&&(t=kC("</"+e+">"),GA.set(e,t)),t}function qA(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)mC(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,gC(e,n))}var YA=kC('<template id="'),KA=kC('"></template>'),XA=kC("\x3c!--$--\x3e"),QA=kC('\x3c!--$?--\x3e<template id="'),ZA=kC('"></template>'),JA=kC("\x3c!--$!--\x3e"),eN=kC("\x3c!--/$--\x3e"),tN=kC("<template"),nN=kC('"'),rN=kC(' data-dgst="');kC(' data-msg="'),kC(' data-stck="'),kC(' data-cstck="');var aN=kC("></template>");function oN(e,t,n){if(mC(e,QA),null===n)throw Error(BT(395));return mC(e,t.boundaryPrefix),mC(e,vC(n.toString(16))),gC(e,ZA)}var iN=kC('<div hidden id="'),sN=kC('">'),lN=kC("</div>"),cN=kC('<svg aria-hidden="true" style="display:none" id="'),uN=kC('">'),dN=kC("</svg>"),pN=kC('<math aria-hidden="true" style="display:none" id="'),hN=kC('">'),fN=kC("</math>"),mN=kC('<table hidden id="'),gN=kC('">'),yN=kC("</table>"),bN=kC('<table hidden><tbody id="'),vN=kC('">'),kN=kC("</tbody></table>"),wN=kC('<table hidden><tr id="'),xN=kC('">'),EN=kC("</tr></table>"),_N=kC('<table hidden><colgroup id="'),SN=kC('">'),TN=kC("</colgroup></table>");var CN=kC('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),AN=kC('$RS("'),NN=kC('","'),IN=kC('")<\/script>');kC('<template data-rsi="" data-sid="'),kC('" data-pid="');var RN=kC('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),ON=kC('$RC("'),PN=kC('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),LN=kC('$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),DN=kC('$RR("'),MN=kC('","'),FN=kC('",'),jN=kC('"'),BN=kC(")<\/script>");kC('<template data-rci="" data-bid="'),kC('<template data-rri="" data-bid="'),kC('" data-sid="'),kC('" data-sty="');var HN=kC('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),zN=kC('$RX("'),UN=kC('"'),$N=kC(","),VN=kC(")<\/script>");kC('<template data-rxi="" data-bid="'),kC('" data-dgst="'),kC('" data-msg="'),kC('" data-stck="'),kC('" data-cstck="');var GN=/[<\u2028\u2029]/g;var WN=/[&><\u2028\u2029]/g;function qN(e){return JSON.stringify(e).replace(WN,(function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var YN=kC('<style media="not all" data-precedence="'),KN=kC('" data-href="'),XN=kC('">'),QN=kC("</style>"),ZN=!1,JN=!0;function eI(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(mC(this,YN),mC(this,e.precedence),mC(this,KN);r<n.length-1;r++)mC(this,n[r]),mC(this,lI);for(mC(this,n[r]),mC(this,XN),r=0;r<t.length;r++)mC(this,t[r]);JN=gC(this,QN),ZN=!0,t.length=0,n.length=0}}function tI(e){return 2!==e.state&&(ZN=!0)}function nI(e,t,n){return ZN=!1,JN=!0,t.styles.forEach(eI,e),t.stylesheets.forEach(tI),ZN&&(n.stylesToHoist=!0),JN}function rI(e){for(var t=0;t<e.length;t++)mC(this,e[t]);e.length=0}var aI=[];function oI(e){OA(aI,e.props);for(var t=0;t<aI.length;t++)mC(this,aI[t]);aI.length=0,e.state=2}var iI=kC('<style data-precedence="'),sI=kC('" data-href="'),lI=kC(" "),cI=kC('">'),uI=kC("</style>");function dI(e){var t=0<e.sheets.size;e.sheets.forEach(oI,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(mC(this,iI),mC(this,e.precedence),e=0,r.length){for(mC(this,sI);e<r.length-1;e++)mC(this,r[e]),mC(this,lI);mC(this,r[e])}for(mC(this,cI),e=0;e<n.length;e++)mC(this,n[e]);mC(this,uI),n.length=0,r.length=0}}function pI(e){if(0===e.state){e.state=1;var t=e.props;for(OA(aI,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<aI.length;e++)mC(this,aI[e]);aI.length=0}}function hI(e){e.sheets.forEach(pI,this),e.sheets.clear()}var fI=kC("["),mI=kC(",["),gI=kC(","),yI=kC("]");function bI(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=DC(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!CC(t))return;t=""+n}mC(e,gI),mC(e,vC(qN(r))),mC(e,gI),mC(e,vC(qN(t)))}function vI(){return{styles:new Set,stylesheets:new Set}}function kI(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function wI(e,t,n){for(var r in t="<"+(e=(""+e).replace(xI,EI))+'>; rel=preload; as="'+(t=(""+t).replace(_I,SI))+'"',n)EC.call(n,r)&&("string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(_I,SI)+'"'));return t}var xI=/[<>\r\n]/g;function EI(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var _I=/["';,\r\n]/g;function SI(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function TI(e){this.styles.add(e)}function CI(e){this.stylesheets.add(e)}var AI=Function.prototype.bind,NI=Symbol.for("react.client.reference");function II(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===NI?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case UT:return"Fragment";case zT:return"Portal";case VT:return"Profiler";case $T:return"StrictMode";case KT:return"Suspense";case XT:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case qT:return(e.displayName||"Context")+".Provider";case WT:return(e._context.displayName||"Context")+".Consumer";case YT:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case QT:return null!==(t=e.displayName||null)?t:II(e.type)||"Memo";case ZT:t=e._payload,e=e._init;try{return II(e(t))}catch(n){}}return null}var RI={},OI=null;function PI(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(BT(401))}else{if(null===n)throw Error(BT(401));PI(e,n)}t.context._currentValue=t.value}}function LI(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&LI(e)}function DI(e){var t=e.parent;null!==t&&DI(t),e.context._currentValue=e.value}function MI(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(BT(402));e.depth===t.depth?PI(e,t):MI(e,t)}function FI(e,t){var n=t.parent;if(null===n)throw Error(BT(402));e.depth===n.depth?PI(e,n):FI(e,n),t.context._currentValue=t.value}function jI(e){var t=OI;t!==e&&(null===t?DI(e):null===e?LI(t):t.depth===e.depth?PI(t,e):t.depth>e.depth?MI(t,e):FI(t,e),OI=e)}var BI={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},HI={id:1,overflow:""};function zI(e,t,n){var r=e.id;e=e.overflow;var a=32-UI(r)-1;r&=~(1<<a),n+=1;var o=32-UI(t)+a;if(30<o){var i=a-a%5;return o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,{id:1<<32-UI(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var UI=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-($I(e)/VI|0)|0},$I=Math.log,VI=Math.LN2;var GI=Error(BT(460));function WI(){}var qI=null;function YI(){if(null===qI)throw Error(BT(459));var e=qI;return qI=null,e}var KI="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},XI=null,QI=null,ZI=null,JI=null,eR=null,tR=null,nR=!1,rR=!1,aR=0,oR=0,iR=-1,sR=0,lR=null,cR=null,uR=0;function dR(){if(null===XI)throw Error(BT(321));return XI}function pR(){if(0<uR)throw Error(BT(312));return{memoizedState:null,queue:null,next:null}}function hR(){return null===tR?null===eR?(nR=!1,eR=tR=pR()):(nR=!0,tR=eR):null===tR.next?(nR=!1,tR=tR.next=pR()):(nR=!0,tR=tR.next),tR}function fR(){var e=lR;return lR=null,e}function mR(){JI=ZI=QI=XI=null,rR=!1,eR=null,uR=0,tR=cR=null}function gR(e,t){return"function"==typeof t?t(e):t}function yR(e,t,n){if(XI=dR(),tR=hR(),nR){var r=tR.queue;if(t=r.dispatch,null!==cR&&void 0!==(n=cR.get(r))){cR.delete(r),r=tR.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return tR.memoizedState=r,[r,t]}return[tR.memoizedState,t]}return e=e===gR?"function"==typeof t?t():t:void 0!==n?n(t):t,tR.memoizedState=e,e=(e=tR.queue={last:null,dispatch:null}).dispatch=vR.bind(null,XI,e),[tR.memoizedState,e]}function bR(e,t){if(XI=dR(),t=void 0===t?null:t,null!==(tR=hR())){var n=tR.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var a=0;a<r.length&&a<t.length;a++)if(!KI(t[a],r[a])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),tR.memoizedState=[e,t],e}function vR(e,t,n){if(25<=uR)throw Error(BT(301));if(e===XI)if(rR=!0,e={action:n,next:null},null===cR&&(cR=new Map),void 0===(n=cR.get(t)))cR.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function kR(){throw Error(BT(394))}function wR(){throw Error(BT(479))}function xR(e,t,n){dR();var r=oR++,a=ZI;if("function"==typeof e.$$FORM_ACTION){var o=null,i=JI;a=a.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==a&&"function"==typeof s){var l=a[1];s.call(e,a[2],a[3])&&(l===(o=void 0!==n?"p"+n:"k"+iC(JSON.stringify([i,null,r]),0))&&(iR=r,t=a[0]))}var c=e.bind(null,t);return e=function(e){c(e)},"function"==typeof c.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=c.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+iC(JSON.stringify([i,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function ER(e){var t=sR;return sR+=1,null===lR&&(lR=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(WI,WI),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(WI,WI):((e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw qI=t,GI}}(lR,e,t)}function _R(){throw Error(BT(393))}function SR(){}var TR={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ER(e);if(e.$$typeof===qT)return e._currentValue}throw Error(BT(438,String(e)))},useContext:function(e){return dR(),e._currentValue},useMemo:bR,useReducer:yR,useRef:function(e){XI=dR();var t=(tR=hR()).memoizedState;return null===t?(e={current:e},tR.memoizedState=e):t},useState:function(e){return yR(gR,e)},useInsertionEffect:SR,useLayoutEffect:SR,useCallback:function(e,t){return bR((function(){return e}),t)},useImperativeHandle:SR,useEffect:SR,useDebugValue:SR,useDeferredValue:function(e,t){return dR(),void 0!==t?t:e},useTransition:function(){return dR(),[!1,kR]},useId:function(){var e=QI.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-UI(e)-1)).toString(32)+t;var n=NR;if(null===n)throw Error(BT(404));return t=aR++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(BT(407));return n()},useCacheRefresh:function(){return _R},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=rC;return t},useHostTransitionStatus:function(){return dR(),jC},useOptimistic:function(e){return dR(),[e,wR]}};TR.useFormState=xR,TR.useActionState=xR;var CR,AR,NR=null,IR={getCacheForType:function(){throw Error(BT(248))}};function RR(e){if(void 0===CR)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);CR=t&&t[1]||"",AR=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+CR+e+AR}var OR=!1;function PR(e,t){if(!e||OR)return"";OR=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],s=o[1];if(i&&s){var l=i.split("\n"),c=s.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==c[a]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{OR=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?RR(n):""}function LR(e){if("string"==typeof e)return RR(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?e=PR(e,!0):PR(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case YT:return PR(e.render,!1);case QT:return PR(e.type,!1);case ZT:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return RR("Lazy")}return LR(e)}if("string"==typeof e.name)return n=e.env,RR(e.name+(n?" ["+n+"]":""))}switch(e){case XT:return RR("SuspenseList");case KT:return RR("Suspense")}return""}function DR(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"%c%s%c "+e[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""):e.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""),e.unshift(console),(t=AI.apply(console.error,e))()}else console.error(e);return null}function MR(){}function FR(e,t,n,r,a,o,i,s,l,c,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedRootSegment=null,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===a?DR:a,this.onPostpone=void 0===c?MR:c,this.onAllReady=void 0===o?MR:o,this.onShellReady=void 0===i?MR:i,this.onShellError=void 0===s?MR:s,this.onFatalError=void 0===l?MR:l,this.formState=void 0===u?null:u}function jR(e,t,n,r,a,o,i,s,l,c,u,d){return(n=WR(t=new FR(t,n,r,a,o,i,s,l,c,u,d),0,null,r,!1,!1)).parentFlushed=!0,qR(e=VR(t,null,e,-1,null,n,null,t.abortableTasks,null,r,null,HI,null,!1)),t.pingedTasks.push(e),t}var BR,HR,zR=null;function UR(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?pC((function(){return gO(e)})):cC((function(){return gO(e)})))}function $R(e,t){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:vI(),fallbackState:vI(),trackedContentKeyPath:null,trackedFallbackNode:null}}function VR(e,t,n,r,a,o,i,s,l,c,u,d,p,h){e.allPendingTasks++,null===a?e.pendingRootTasks++:a.pendingTasks++;var f={replay:null,node:n,childIndex:r,ping:function(){return UR(e,f)},blockedBoundary:a,blockedSegment:o,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:h};return s.add(f),f}function GR(e,t,n,r,a,o,i,s,l,c,u,d,p,h){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var f={replay:n,node:r,childIndex:a,ping:function(){return UR(e,f)},blockedBoundary:o,blockedSegment:null,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:h};return s.add(f),f}function WR(e,t,n,r,a,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],parentFormatContext:r,boundary:n,lastPushedText:a,textEmbedded:o}}function qR(e){var t=e.node;if("object"==typeof t&&null!==t&&t.$$typeof===HT)e.componentStack={parent:e.componentStack,type:t.type}}function YR(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=LR(r.type),r=r.parent}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return Object.defineProperty(t,"componentStack",{value:a}),a}}),t}function KR(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function XR(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,wC(e.destination,t)):(e.status=13,e.fatalError=t)}function QR(e,t,n,r,a,o){var i=t.thenableState;for(t.thenableState=null,XI={},QI=t,ZI=e,JI=n,oR=aR=0,iR=-1,sR=0,lR=i,e=r(a,o);rR;)rR=!1,oR=aR=0,iR=-1,sR=0,uR+=1,tR=null,e=r(a,o);return mR(),e}function ZR(e,t,n,r,a,o,i){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===i?l.push(IA):l.push(RA)}}o=t.keyPath,t.keyPath=n,a?(n=t.treeContext,t.treeContext=zI(n,1,0),sO(e,t,r,-1),t.treeContext=n):s?sO(e,t,r,-1):tO(e,t,r,-1),t.keyPath=o}function JR(e,t,n,r,a,o){if("function"==typeof r)if(r.prototype&&r.prototype.isReactComponent){var i=a;if("ref"in a)for(var s in i={},a)"ref"!==s&&(i[s]=a[s]);var l=r.defaultProps;if(l)for(var c in i===a&&(i=xC({},i,a)),l)void 0===i[c]&&(i[c]=l[c]);a=i,i=RI,"object"==typeof(l=r.contextType)&&null!==l&&(i=l._currentValue);var u=void 0!==(i=new r(a,i)).state?i.state:null;if(i.updater=BI,i.props=a,i.state=u,l={queue:[],replace:!1},i._reactInternals=l,o=r.contextType,i.context="object"==typeof o&&null!==o?o._currentValue:RI,"function"==typeof(o=r.getDerivedStateFromProps)&&(u=null==(o=o(a,u))?u:xC({},u,o),i.state=u),"function"!=typeof r.getDerivedStateFromProps&&"function"!=typeof i.getSnapshotBeforeUpdate&&("function"==typeof i.UNSAFE_componentWillMount||"function"==typeof i.componentWillMount))if(r=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),r!==i.state&&BI.enqueueReplaceState(i,i.state,null),null!==l.queue&&0<l.queue.length)if(r=l.queue,o=l.replace,l.queue=null,l.replace=!1,o&&1===r.length)i.state=r[0];else{for(l=o?r[0]:i.state,u=!0,o=o?1:0;o<r.length;o++)null!=(c="function"==typeof(c=r[o])?c.call(i,l,a,void 0):c)&&(u?(u=!1,l=xC({},l,c)):xC(l,c));i.state=l}else l.queue=null;if(r=i.render(),12===e.status)throw null;a=t.keyPath,t.keyPath=n,tO(e,t,r,-1),t.keyPath=a}else{if(r=QR(e,t,n,r,a,void 0),12===e.status)throw null;ZR(e,t,n,r,0!==aR,oR,iR)}else{if("string"!=typeof r){switch(r){case nC:case eC:case $T:case VT:case UT:return r=t.keyPath,t.keyPath=n,tO(e,t,a.children,-1),void(t.keyPath=r);case tC:return void("hidden"!==a.mode&&(r=t.keyPath,t.keyPath=n,tO(e,t,a.children,-1),t.keyPath=r));case XT:return r=t.keyPath,t.keyPath=n,tO(e,t,a.children,-1),void(t.keyPath=r);case JT:throw Error(BT(343));case KT:e:if(null!==t.replay){r=t.keyPath,t.keyPath=n,n=a.children;try{sO(e,t,n,-1)}finally{t.keyPath=r}}else{r=t.keyPath;var d=t.blockedBoundary,p=t.hoistableState;o=t.blockedSegment,c=a.fallback,a=a.children;var h=new Set;s=$R(0,h),null!==e.trackedPostpones&&(s.trackedContentKeyPath=n);var f=WR(0,o.chunks.length,s,t.formatContext,!1,!1);o.children.push(f),o.lastPushedText=!1;var m=WR(0,0,null,t.formatContext,!1,!1);if(m.parentFlushed=!0,null!==e.trackedPostpones){l=[(i=[n[0],"Suspense Fallback",n[2]])[1],i[2],[],null],e.trackedPostpones.workingMap.set(i,l),s.trackedFallbackNode=l,t.blockedSegment=f,t.keyPath=i,f.status=6;try{sO(e,t,c,-1),f.lastPushedText&&f.textEmbedded&&f.chunks.push(aA),f.status=1}catch(g){throw f.status=12===e.status?3:4,g}finally{t.blockedSegment=o,t.keyPath=r}qR(t=VR(e,null,a,-1,s,m,s.contentState,t.abortSet,n,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)),e.pingedTasks.push(t)}else{t.blockedBoundary=s,t.hoistableState=s.contentState,t.blockedSegment=m,t.keyPath=n,m.status=6;try{if(sO(e,t,a,-1),m.lastPushedText&&m.textEmbedded&&m.chunks.push(aA),m.status=1,fO(s,m),0===s.pendingTasks&&0===s.status){s.status=1;break e}}catch(y){s.status=4,12===e.status?(m.status=3,i=e.fatalError):(m.status=4,i=y),u=KR(e,i,l=YR(t.componentStack)),s.errorDigest=u,aO(e,s)}finally{t.blockedBoundary=d,t.hoistableState=p,t.blockedSegment=o,t.keyPath=r}qR(t=VR(e,null,c,-1,d,f,s.fallbackState,h,[n[0],"Suspense Fallback",n[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}return}if("object"==typeof r&&null!==r)switch(r.$$typeof){case YT:if("ref"in a)for(f in i={},a)"ref"!==f&&(i[f]=a[f]);else i=a;return void ZR(e,t,n,r=QR(e,t,n,r.render,i,o),0!==aR,oR,iR);case QT:return void JR(e,t,n,r.type,a,o);case GT:case qT:if(l=a.children,i=t.keyPath,a=a.value,u=r._currentValue,r._currentValue=a,OI=r={parent:o=OI,depth:null===o?0:o.depth+1,context:r,parentValue:u,value:a},t.context=r,t.keyPath=n,tO(e,t,l,-1),null===(e=OI))throw Error(BT(403));return e.context._currentValue=e.parentValue,e=OI=e.parent,t.context=e,void(t.keyPath=i);case WT:return r=(a=a.children)(r._context._currentValue),a=t.keyPath,t.keyPath=n,tO(e,t,r,-1),void(t.keyPath=a);case ZT:if(r=(i=r._init)(r._payload),12===e.status)throw null;return void JR(e,t,n,r,a,o)}throw Error(BT(130,null==r?r:typeof r,""))}if(null===(i=t.blockedSegment))i=a.children,l=t.formatContext,u=t.keyPath,t.formatContext=rA(l,r,a),t.keyPath=n,sO(e,t,i,-1),t.formatContext=l,t.keyPath=u;else{u=VA(i.chunks,r,a,e.resumableState,e.renderState,t.hoistableState,t.formatContext,i.lastPushedText,t.isFallback),i.lastPushedText=!1,l=t.formatContext,o=t.keyPath,t.formatContext=rA(l,r,a),t.keyPath=n,sO(e,t,u,-1),t.formatContext=l,t.keyPath=o;e:{switch(t=i.chunks,e=e.resumableState,r){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=l.insertionMode){e.hasBody=!0;break e}break;case"html":if(0===l.insertionMode){e.hasHtml=!0;break e}}t.push(WA(r))}i.lastPushedText=!1}}}function eO(e,t,n,r,a){var o=t.replay,i=t.blockedBoundary,s=WR(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,sO(e,t,r,a),s.status=1,null===i?e.completedRootSegment=s:(fO(i,s),i.parentFlushed&&e.partialBoundaries.push(i))}finally{t.replay=o,t.blockedSegment=null}}function tO(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?eO(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,qR(t),nO(e,t),t.componentStack=n)}function nO(e,t){var n=t.node,r=t.childIndex;if(null!==n){if("object"==typeof n){switch(n.$$typeof){case HT:var a=n.type,o=n.key,i=n.props,s=void 0!==(n=i.ref)?n:null,l=II(a),c=null==o?-1===r?0:r:o;if(o=[t.keyPath,l,c],null!==t.replay)e:{var u=t.replay;for(r=u.nodes,n=0;n<r.length;n++){var d=r[n];if(c===d[1]){if(4===d.length){if(null!==l&&l!==d[0])throw Error(BT(490,d[0],l));var p=d[2];l=d[3],c=t.node,t.replay={nodes:p,slots:l,pendingTasks:1};try{if(JR(e,t,o,a,i,s),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(BT(488));t.replay.pendingTasks--}catch(k){if("object"==typeof k&&null!==k&&(k===GI||"function"==typeof k.then))throw t.node===c&&(t.replay=u),k;t.replay.pendingTasks--,i=YR(t.componentStack),cO(e,o=t.blockedBoundary,p,l,a=k,i=KR(e,a,i))}t.replay=u}else{if(a!==KT)throw Error(BT(490,"Suspense",II(a)||"Unknown"));t:{u=void 0,a=d[5],s=d[2],l=d[3],c=null===d[4]?[]:d[4][2],d=null===d[4]?null:d[4][3];var h=t.keyPath,f=t.replay,m=t.blockedBoundary,g=t.hoistableState,y=i.children;i=i.fallback;var b=new Set,v=$R(0,b);v.parentFlushed=!0,v.rootSegmentID=a,t.blockedBoundary=v,t.hoistableState=v.contentState,t.keyPath=o,t.replay={nodes:s,slots:l,pendingTasks:1};try{if(sO(e,t,y,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(BT(488));if(t.replay.pendingTasks--,0===v.pendingTasks&&0===v.status){v.status=1,e.completedBoundaries.push(v);break t}}catch(w){v.status=4,u=KR(e,w,p=YR(t.componentStack)),v.errorDigest=u,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(v)}finally{t.blockedBoundary=m,t.hoistableState=g,t.replay=f,t.keyPath=h}qR(t=GR(e,null,{nodes:c,slots:d,pendingTasks:0},i,-1,m,v.fallbackState,b,[o[0],"Suspense Fallback",o[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}r.splice(n,1);break e}}}else JR(e,t,o,a,i,s);return;case zT:throw Error(BT(257));case ZT:if(n=(p=n._init)(n._payload),12===e.status)throw null;return void tO(e,t,n,r)}if(oC(n))return void rO(e,t,n,r);if(null===n||"object"!=typeof n?p=null:p="function"==typeof(p=aC&&n[aC]||n["@@iterator"])?p:null,p&&(p=p.call(n))){if(!(n=p.next()).done){i=[];do{i.push(n.value),n=p.next()}while(!n.done);rO(e,t,i,r)}return}if("function"==typeof n.then)return t.thenableState=null,tO(e,t,ER(n),r);if(n.$$typeof===qT)return tO(e,t,n._currentValue,r);throw r=Object.prototype.toString.call(n),Error(BT(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r))}"string"==typeof n?null!==(r=t.blockedSegment)&&(r.lastPushedText=oA(r.chunks,n,e.renderState,r.lastPushedText)):"number"!=typeof n&&"bigint"!=typeof n||null!==(r=t.blockedSegment)&&(r.lastPushedText=oA(r.chunks,""+n,e.renderState,r.lastPushedText))}}function rO(e,t,n,r){var a=t.keyPath;if(-1===r||(t.keyPath=[t.keyPath,"Fragment",r],null===t.replay)){if(o=t.treeContext,i=n.length,null!==t.replay&&(null!==(s=t.replay.slots)&&"object"==typeof s)){for(r=0;r<i;r++)l=n[r],t.treeContext=zI(o,i,r),"number"==typeof(c=s[r])?(eO(e,t,c,l,r),delete s[r]):sO(e,t,l,r);return t.treeContext=o,void(t.keyPath=a)}for(s=0;s<i;s++)r=n[s],t.treeContext=zI(o,i,s),sO(e,t,r,s);t.treeContext=o,t.keyPath=a}else{for(var o=t.replay,i=o.nodes,s=0;s<i.length;s++){var l=i[s];if(l[1]===r){r=l[2],l=l[3],t.replay={nodes:r,slots:l,pendingTasks:1};try{if(rO(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(BT(488));t.replay.pendingTasks--}catch(u){if("object"==typeof u&&null!==u&&(u===GI||"function"==typeof u.then))throw u;t.replay.pendingTasks--,n=YR(t.componentStack);var c=t.blockedBoundary;cO(e,c,r,l,u,n=KR(e,u,n))}t.replay=o,i.splice(s,1);break}}t.keyPath=a}}function aO(e,t){null!==(e=e.trackedPostpones)&&(null!==(t=t.trackedContentKeyPath)&&(void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)))}function oO(e,t,n){return GR(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function iO(e,t,n){var r=t.blockedSegment,a=WR(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(a),r.lastPushedText=!1,VR(e,n,t.node,t.childIndex,t.blockedBoundary,a,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function sO(e,t,n,r){var a=t.formatContext,o=t.context,i=t.keyPath,s=t.treeContext,l=t.componentStack,c=t.blockedSegment;if(null===c)try{return tO(e,t,n,r)}catch(p){if(mR(),"object"==typeof(n=p===GI?YI():p)&&null!==n){if("function"==typeof n.then)return e=oO(e,t,r=fR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void jI(o);if("Maximum call stack size exceeded"===n.message)return n=oO(e,t,n=fR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void jI(o)}}else{var u=c.children.length,d=c.chunks.length;try{return tO(e,t,n,r)}catch(h){if(mR(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=h===GI?YI():h)&&null!==n){if("function"==typeof n.then)return e=iO(e,t,r=fR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void jI(o);if("Maximum call stack size exceeded"===n.message)return n=iO(e,t,n=fR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void jI(o)}}}throw t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,jI(o),n}function lO(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,mO(this,t,e))}function cO(e,t,n,r,a,o){for(var i=0;i<n.length;i++){var s=n[i];if(4===s.length)cO(e,t,s[2],s[3],a,o);else{s=s[5];var l=e,c=o,u=$R(0,new Set);u.parentFlushed=!0,u.rootSegmentID=s,u.status=4,u.errorDigest=c,u.parentFlushed&&l.clientRenderedBoundaries.push(u)}}if(n.length=0,null!==r){if(null===t)throw Error(BT(487));if(4!==t.status&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof r)for(var d in r)delete r[d]}}function uO(e,t,n){var r=e.blockedBoundary,a=e.blockedSegment;if(null!==a){if(6===a.status)return;a.status=3}if(a=YR(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return KR(t,n,a),void XR(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=KR(t,n,a),cO(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&pO(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=KR(t,n,a),r.status=4,r.errorDigest=e,aO(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return uO(e,t,n)})),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&hO(t)}function dO(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var a=n.headers;if(a){n.headers=null;var o=a.preconnects;if(a.fontPreloads&&(o&&(o+=", "),o+=a.fontPreloads),a.highImagePreloads&&(o&&(o+=", "),o+=a.highImagePreloads),!t){var i=n.styles.values(),s=i.next();e:for(;0<a.remainingCapacity&&!s.done;s=i.next())for(var l=s.value.sheets.values(),c=l.next();0<a.remainingCapacity&&!c.done;c=l.next()){var u=c.value,d=u.props,p=d.href,h=u.props,f=wI(h.href,"style",{crossOrigin:h.crossOrigin,integrity:h.integrity,nonce:h.nonce,type:h.type,fetchPriority:h.fetchPriority,referrerPolicy:h.referrerPolicy,media:h.media});if(!(0<=(a.remainingCapacity-=f.length+2)))break e;n.resets.style[p]=HC,o&&(o+=", "),o+=f,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:HC}}r(o?{Link:o}:{})}}}catch(m){KR(e,m,{})}}function pO(e){null===e.trackedPostpones&&dO(e,!0),e.onShellError=MR,(e=e.onShellReady)()}function hO(e){dO(e,null===e.trackedPostpones||(null===e.completedRootSegment||5!==e.completedRootSegment.status)),(e=e.onAllReady)()}function fO(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&fO(e,n)}else e.completedSegments.push(t)}function mO(e,t,n){if(null===t){if(null!==n&&n.parentFlushed){if(null!==e.completedRootSegment)throw Error(BT(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&pO(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==n&&n.parentFlushed&&1===n.status&&fO(t,n),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(lO,e),t.fallbackAbortableTasks.clear())):null!==n&&n.parentFlushed&&1===n.status&&(fO(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&hO(e)}function gO(e){if(14!==e.status&&13!==e.status){var t=OI,n=MC.H;MC.H=TR;var r=MC.A;MC.A=IR;var a=zR;zR=e;var o=NR;NR=e.resumableState;try{var i,s=e.pingedTasks;for(i=0;i<s.length;i++){var l=s[i],c=e,u=l.blockedSegment;if(null===u){var d=c;if(0!==l.replay.pendingTasks){jI(l.context);try{if("number"==typeof l.replay.slots?eO(d,l,l.replay.slots,l.node,l.childIndex):nO(d,l),1===l.replay.pendingTasks&&0<l.replay.nodes.length)throw Error(BT(488));l.replay.pendingTasks--,l.abortSet.delete(l),mO(d,l.blockedBoundary,null)}catch(_){mR();var p=_===GI?YI():_;if("object"==typeof p&&null!==p&&"function"==typeof p.then){var h=l.ping;p.then(h,h),l.thenableState=fR()}else{l.replay.pendingTasks--,l.abortSet.delete(l);var f=YR(l.componentStack);c=void 0;var m=d,g=l.blockedBoundary,y=12===d.status?d.fatalError:p;cO(m,g,l.replay.nodes,l.replay.slots,y,c=KR(m,y,f)),d.pendingRootTasks--,0===d.pendingRootTasks&&pO(d),d.allPendingTasks--,0===d.allPendingTasks&&hO(d)}}}}else if(d=void 0,0===(m=u).status){m.status=6,jI(l.context);var b=m.children.length,v=m.chunks.length;try{nO(c,l),m.lastPushedText&&m.textEmbedded&&m.chunks.push(aA),l.abortSet.delete(l),m.status=1,mO(c,l.blockedBoundary,m)}catch(_){mR(),m.children.length=b,m.chunks.length=v;var k=_===GI?YI():12===c.status?c.fatalError:_;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,l.thenableState=fR();var w=l.ping;k.then(w,w)}else{var x=YR(l.componentStack);l.abortSet.delete(l),m.status=4;var E=l.blockedBoundary;d=KR(c,k,x),null===E?XR(c,k):(E.pendingTasks--,4!==E.status&&(E.status=4,E.errorDigest=d,aO(c,E),E.parentFlushed&&c.clientRenderedBoundaries.push(E))),c.allPendingTasks--,0===c.allPendingTasks&&hO(c)}}}}s.splice(0,i),null!==e.destination&&xO(e,e.destination)}catch(S){KR(e,S,{}),XR(e,S)}finally{NR=o,MC.H=n,MC.A=r,n===TR&&jI(t),zR=a}}}function yO(e,t,n,r){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,mC(t,YA),mC(t,e.placeholderPrefix),mC(t,e=vC(r.toString(16))),gC(t,KA);case 1:n.status=2;var a=!0,o=n.chunks,i=0;n=n.children;for(var s=0;s<n.length;s++){for(a=n[s];i<a.index;i++)mC(t,o[i]);a=bO(e,t,a,r)}for(;i<o.length-1;i++)mC(t,o[i]);return i<o.length&&(a=gC(t,o[i])),a;default:throw Error(BT(390))}}function bO(e,t,n,r){var a=n.boundary;if(null===a)return yO(e,t,n,r);if(a.parentFlushed=!0,4===a.status)a=a.errorDigest,gC(t,JA),mC(t,tN),a&&(mC(t,rN),mC(t,vC(RC(a))),mC(t,nN)),gC(t,aN),yO(e,t,n,r);else if(1!==a.status)0===a.status&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),oN(t,e.renderState,a.rootSegmentID),r&&((a=a.fallbackState).styles.forEach(TI,r),a.stylesheets.forEach(CI,r)),yO(e,t,n,r);else if(a.byteSize>e.progressiveChunkSize)a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),oN(t,e.renderState,a.rootSegmentID),yO(e,t,n,r);else{if(r&&((n=a.contentState).styles.forEach(TI,r),n.stylesheets.forEach(CI,r)),gC(t,XA),1!==(n=a.completedSegments).length)throw Error(BT(391));bO(e,t,n[0],r)}return gC(t,eN)}function vO(e,t,n,r){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 2:return mC(e,iN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,sN);case 3:return mC(e,cN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,uN);case 4:return mC(e,pN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,hN);case 5:return mC(e,mN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,gN);case 6:return mC(e,bN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,vN);case 7:return mC(e,wN),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,xN);case 8:return mC(e,_N),mC(e,t.segmentPrefix),mC(e,vC(r.toString(16))),gC(e,SN);default:throw Error(BT(397))}}(t,e.renderState,n.parentFormatContext,n.id),bO(e,t,n,r),function(e,t){switch(t.insertionMode){case 0:case 1:case 2:return gC(e,lN);case 3:return gC(e,dN);case 4:return gC(e,fN);case 5:return gC(e,yN);case 6:return gC(e,kN);case 7:return gC(e,EN);case 8:return gC(e,TN);default:throw Error(BT(397))}}(t,n.parentFormatContext)}function kO(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)wO(e,t,n,r[a]);r.length=0,nI(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,a=n.rootSegmentID,n=n.contentState;var o=e.stylesToHoist;return e.stylesToHoist=!1,mC(t,e.startInlineScript),o?2&r.instructions?8&r.instructions?mC(t,DN):(r.instructions|=8,mC(t,LN)):(r.instructions|=10,mC(t,PN)):2&r.instructions?mC(t,ON):(r.instructions|=2,mC(t,RN)),r=vC(a.toString(16)),mC(t,e.boundaryPrefix),mC(t,r),mC(t,MN),mC(t,e.segmentPrefix),mC(t,r),o?(mC(t,FN),function(e,t){mC(e,fI);var n=fI;t.stylesheets.forEach((function(t){if(2!==t.state)if(3===t.state)mC(e,n),mC(e,vC(qN(""+t.props.href))),mC(e,yI),n=mI;else{mC(e,n);var r=t.props["data-precedence"],a=t.props,o=DC(""+t.props.href);for(var i in mC(e,vC(qN(o))),r=""+r,mC(e,gI),mC(e,vC(qN(r))),a)if(EC.call(a,i)&&null!=(r=a[i]))switch(i){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(BT(399,"link"));default:bI(e,i,r)}mC(e,yI),n=mI,t.state=3}})),mC(e,yI)}(t,n)):mC(t,jN),n=gC(t,BN),qA(t,e)&&n}function wO(e,t,n,r){if(2===r.status)return!0;var a=n.contentState,o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(BT(392));return vO(e,t,r,a)}return o===n.rootSegmentID?vO(e,t,r,a):(vO(e,t,r,a),n=e.resumableState,mC(t,(e=e.renderState).startInlineScript),1&n.instructions?mC(t,AN):(n.instructions|=1,mC(t,CN)),mC(t,e.segmentPrefix),mC(t,o=vC(o.toString(16))),mC(t,NN),mC(t,e.placeholderPrefix),mC(t,o),t=gC(t,IN))}function xO(e,t){hC=new Uint8Array(2048),fC=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var a,o=e.renderState,i=o.htmlChunks,s=o.headChunks;if(i){for(a=0;a<i.length;a++)mC(t,i[a]);if(s)for(a=0;a<s.length;a++)mC(t,s[a]);else mC(t,UA("head")),mC(t,_A)}else if(s)for(a=0;a<s.length;a++)mC(t,s[a]);var l=o.charsetChunks;for(a=0;a<l.length;a++)mC(t,l[a]);l.length=0,o.preconnects.forEach(rI,t),o.preconnects.clear();var c=o.viewportChunks;for(a=0;a<c.length;a++)mC(t,c[a]);c.length=0,o.fontPreloads.forEach(rI,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(rI,t),o.highImagePreloads.clear(),o.styles.forEach(dI,t);var u=o.importMapChunks;for(a=0;a<u.length;a++)mC(t,u[a]);u.length=0,o.bootstrapScripts.forEach(rI,t),o.scripts.forEach(rI,t),o.scripts.clear(),o.bulkPreloads.forEach(rI,t),o.bulkPreloads.clear();var d=o.hoistableChunks;for(a=0;a<d.length;a++)mC(t,d[a]);d.length=0,i&&null===s&&mC(t,WA("head")),bO(e,t,r,null),e.completedRootSegment=null,qA(t,e.renderState)}var p=e.renderState;r=0;var h=p.viewportChunks;for(r=0;r<h.length;r++)mC(t,h[r]);h.length=0,p.preconnects.forEach(rI,t),p.preconnects.clear(),p.fontPreloads.forEach(rI,t),p.fontPreloads.clear(),p.highImagePreloads.forEach(rI,t),p.highImagePreloads.clear(),p.styles.forEach(hI,t),p.scripts.forEach(rI,t),p.scripts.clear(),p.bulkPreloads.forEach(rI,t),p.bulkPreloads.clear();var f=p.hoistableChunks;for(r=0;r<f.length;r++)mC(t,f[r]);f.length=0;var m=e.clientRenderedBoundaries;for(n=0;n<m.length;n++){var g=m[n];p=t;var y=e.resumableState,b=e.renderState,v=g.rootSegmentID,k=g.errorDigest;mC(p,b.startInlineScript),4&y.instructions?mC(p,zN):(y.instructions|=4,mC(p,HN)),mC(p,b.boundaryPrefix),mC(p,vC(v.toString(16))),mC(p,UN),k&&(mC(p,$N),mC(p,vC((A=k||"",JSON.stringify(A).replace(GN,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))))));var w=gC(p,VN);if(!w)return e.destination=null,n++,void m.splice(0,n)}m.splice(0,n);var x=e.completedBoundaries;for(n=0;n<x.length;n++)if(!kO(e,t,x[n]))return e.destination=null,n++,void x.splice(0,n);x.splice(0,n),yC(t),hC=new Uint8Array(2048),fC=0;var E=e.partialBoundaries;for(n=0;n<E.length;n++){var _=E[n];e:{m=e,g=t;var S=_.completedSegments;for(w=0;w<S.length;w++)if(!wO(m,g,_,S[w])){w++,S.splice(0,w);var T=!1;break e}S.splice(0,w),T=nI(g,_.contentState,m.renderState)}if(!T)return e.destination=null,n++,void E.splice(0,n)}E.splice(0,n);var C=e.completedBoundaries;for(n=0;n<C.length;n++)if(!kO(e,t,C[n]))return e.destination=null,n++,void C.splice(0,n);C.splice(0,n)}}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length?(e.flushScheduled=!1,(n=e.resumableState).hasBody&&mC(t,WA("body")),n.hasHtml&&mC(t,WA("html")),yC(t),e.status=14,t.close(),e.destination=null):yC(t)}var A}function EO(e){e.flushScheduled=null!==e.destination,pC((function(){return gO(e)})),cC((function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&dO(e,0===e.pendingRootTasks)}))}function _O(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,cC((function(){var t=e.destination;t?xO(e,t):e.flushScheduled=!1})))}function SO(e,t){if(13===e.status)e.status=14,wC(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{xO(e,t)}catch(n){KR(e,n,{}),XR(e,n)}}}function TO(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=void 0===t?Error(BT(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(BT(530)):t;e.fatalError=r,n.forEach((function(t){return uO(t,e,r)})),n.clear()}null!==e.destination&&xO(e,e.destination)}catch(a){KR(e,a,{}),XR(e,a)}}function CO(){var e=FT.version;if("19.0.0"!==e)throw Error(BT(527,e,"19.0.0"))}CO(),CO(),MT.prerender=function(e,t){return new Promise((function(n,r){var a,o=t?t.onHeaders:void 0;o&&(a=function(e){o(new Headers(e))});var i=eA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=function(e,t,n,r,a,o,i,s,l,c,u){return(e=jR(e,t,n,r,a,o,i,s,l,c,u,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,i,JC(i,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),nA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,(function(){var e={prelude:new ReadableStream({type:"bytes",pull:function(e){SO(s,e)},cancel:function(e){s.destination=null,TO(s,e)}},{highWaterMark:0})};n(e)}),void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var l=t.signal;if(l.aborted)TO(s,l.reason);else{var c=function(){TO(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}}EO(s)}))},MT.renderToReadableStream=function(e,t){return new Promise((function(n,r){var a,o,i,s=new Promise((function(e,t){o=e,a=t})),l=t?t.onHeaders:void 0;l&&(i=function(e){l(new Headers(e))});var c=eA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=jR(e,c,JC(c,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),nA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){SO(u,e)},cancel:function(e){u.destination=null,TO(u,e)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),r(e)}),a,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)TO(u,d.reason);else{var p=function(){TO(u,d.reason),d.removeEventListener("abort",p)};d.addEventListener("abort",p)}}EO(u)}))},MT.version="19.0.0",HR=MT,(BR=qx).version;var AO=BR.renderToString;function NO({children:e="",...t}){let n="";return J.isValidElement(e)?n=AO(e):"string"==typeof e&&(n=e),Vh.jsx("template",{...t,dangerouslySetInnerHTML:{__html:n}})}function IO({root:e,children:t=null}){return ue.createPortal(t,e)}function RO(e){return Z.forwardRef((({mode:t="open",delegatesFocus:n=!1,styleSheets:r=[],ssr:a=!1,children:o=null,...i},s)=>{const l=function(e){const t=Z.useRef(null==e?void 0:e.current);return Z.useEffect((()=>{e&&(e.current=t.current)}),[e]),t}(s),[c,u]=Z.useState(null),d=`node_${t}${n}`;return Z.useLayoutEffect((()=>{if(l.current)try{if("function"==typeof s&&s(l.current),a){const{shadowRoot:e}=l.current;return void u(e)}const e=l.current.attachShadow({mode:t,delegatesFocus:n});r.length>0&&(e.adoptedStyleSheets=r),u(e)}catch(e){!function({error:e,styleSheets:t,root:n}){if("NotSupportedError"!==(null==e?void 0:e.name))throw e;t.length>0&&n&&(n.adoptedStyleSheets=t)}({error:e,styleSheets:r,root:c})}}),[s,l,r]),Vh.jsx(e.tag,{ref:l,...i,children:(c||a)&&Vh.jsx(Wx.Provider,{value:c,children:a?Vh.jsx(NO,{shadowroot:t,shadowrootmode:t,children:e.render({root:c,ssr:a,children:o})}):Vh.jsx(IO,{root:c,children:e.render({root:c,ssr:a,children:o})})})},d)}))}BR.renderToStaticMarkup,HR.renderToReadableStream,HR.resume&&HR.resume;const OO=new Map;const PO=function(e={},t="core",n=({children:e})=>e){return new Proxy(e,{get:function(e,r){const a=Gx.decamelize(r,{separator:"-"}),o=`${t}-${a}`;if(!OO.has(o)){const e=RO({tag:a,render:n});OO.set(o,e)}return OO.get(o)}})}();var LO=(null==globalThis?void 0:globalThis.document)?Z.useLayoutEffect:()=>{},DO=ee[" useId ".trim().toString()]||(()=>{}),MO=0;function FO(e){const[t,n]=Z.useState(DO());return LO((()=>{n((e=>e??String(MO++)))}),[e]),t?`radix-${t}`:""}const jO=Z.createContext(void 0),BO=()=>Z.useContext(jO);function HO({wrapperStyles:e={},children:t,customStyles:n,styles:r}){const[a,o]=Z.useState(null),[i,s]=Z.useState(null),l=Z.useMemo((()=>({shadowHost:a,rootElement:i})),[a,i]),c=FO(),u=PO.div;return Vh.jsxs(u,{id:`inkeep-shadow${c}`,ref:e=>{e&&o(e)},style:e,children:[Vh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`${r}`}}),n,Vh.jsx("div",{id:"inkeep-widget-root",ref:e=>{e&&s(e)},style:e,children:Vh.jsx(jO.Provider,{value:l,children:a&&i&&t})})]})}const zO=e=>BO()?e.children:Vh.jsx(HO,{...e}),UO="ChatButton",$O="CustomTrigger",VO="SearchBar",GO="EmbeddedChat",WO="EmbeddedSearch",qO="EmbeddedSearchAndChat",YO="IntelligentForm",KO="SidebarChat",XO={prefix:"ikp",aiChatSettings:{model:"inkeep-qa-expert",placeholder:"How do I get started?",aiAssistantName:void 0,shouldOpenLinksInNewTab:!0,disclaimerSettings:{isEnabled:!1,label:"Usage policy"},isShareButtonVisible:!1,isViewOnly:!1,exampleQuestionsLabel:"Example questions",exampleQuestions:[],isFirstExampleQuestionHighlighted:!0,isCopyChatButtonVisible:!1,getHelpOptions:[],workflowsHeader:"Workflows",workflows:[],toolbarButtonLabels:{clear:"Clear",share:"Share",getHelp:"Get help",stop:"Stop",copyChat:"Copy"},prompts:[]},baseSettings:Cx,searchSettings:{shouldOpenLinksInNewTab:!1,maxResults:40,defaultQuery:"",debounceTimeMs:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],placeholder:"Search for anything...",view:"single-pane"},componentType:GO},QO=Z.createContext(XO),ZO=({children:e,value:t})=>{const n=BO(),r=(e,t,n)=>["baseSettings","searchSettings","aiChatSettings"].includes(n)&&!t?e:t,a={baseSettings:n??{}},o=Z.useMemo((()=>{const e=function(e,t,...n){return n.reduce(((t,n)=>c(t,n,e)),t)}(r,XO,a,t??{});return e.baseSettings.apiKey||console.warn("Inkeep API key is missing."),e}),[t]);return Vh.jsx(QO.Provider,{value:o,children:e})},JO=()=>{const e=Z.useContext(QO);if(!e)throw new Error("useInkeepConfig must be used within a ConfigProvider");return e},eP="conversationId",tP=Z.createContext(null),nP=({children:e})=>{const t=function(){const[e,t]=Z.useState(void 0),{aiChatSettings:n}=JO(),{shareChatUrlBasePath:r}=n;return Z.useEffect((()=>{if(!r||"undefined"==typeof window)return;const e=e=>e.endsWith("/")?e.slice(0,-1):e,n=()=>{const{origin:n,pathname:a,search:o}=window.location,i=new URL(r),s=e(a),l=e(i.pathname);if(n===i.origin&&s===l){const e=new URLSearchParams(o).get(eP);e&&t(e)}};n();const a=()=>n();return window.addEventListener("popstate",a),()=>{window.removeEventListener("popstate",a)}}),[r]),e}(),{aiChatSettings:n}=JO(),r=n.chatId||t,[a,o]=Z.useState(r);Z.useEffect((()=>{o(r)}),[r]);const i={id:"",messages:[]},[s,l]=Z.useState(i),c=()=>{l(i),o(void 0)},u=Z.useMemo((()=>({conversation:s,setConversation:l,chatId:a,isSharedChat:!!t,resetConversation:c,setExternalChatId:o})),[s,a,t]);return Vh.jsx(tP.Provider,{value:u,children:e})},rP=()=>{const e=Z.useContext(tP);if(!e)throw new Error("useInkeepConversation must be used within an InkeepConversationProvider");return e};async function aP(e,t,n,r){try{const a=`${r}/conversations`,o={id:e||void 0,type:"openai",...t},i=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(o)});if(!i.ok){const e=await i.text();throw new Error(`Failed to log conversation: ${e}`)}return i.json()}catch(a){console.warn("Error in logConversation:",a)}}const oP="inkeepUsagePreferences",iP={defaultView:null,inkeepChatSessionId:null},sP={hasSwitchModeButtonJiggled:!1,userId:null,...iP},lP={set(e,t,n,r=365){try{if("cookie"===e){const e=new Date;void 0===n?(e.setTime(e.getTime()-1),document.cookie=`${oP}_${t}=; expires=${e.toUTCString()}; path=/`):(e.setTime(e.getTime()+24*r*60*60*1e3),document.cookie=`${oP}_${t}=${n}; expires=${e.toUTCString()}; path=/`)}else"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`${oP}_${t}`,n?JSON.stringify(n):"")}catch(a){return null}},get(e,t){if("cookie"===e){const e=`${oP}_${t}=`,n=document.cookie.split(";");for(const t of n){const n=t.trim();if(n.startsWith(e))return n.substring(e.length)}return null}try{if("undefined"!=typeof sessionStorage){const e=sessionStorage.getItem(`${oP}_${t}`);return e?JSON.parse(e):null}}catch(n){return null}return null}},cP=()=>{const e=(()=>{try{if("undefined"==typeof localStorage)return!1;const e="__df709c5b-6651-43dc-94e7-d8dc899bf4e8__";return localStorage.setItem(e,"test_value"),localStorage.removeItem(e),!0}catch{return!1}})(),t=(()=>{if("undefined"==typeof document)return!1;document.cookie="testcookie=true; Path=/; Max-Age=1000";const e=document.cookie.includes("testcookie=true");return document.cookie="testcookie=; Path=/; Max-Age=-1000",e})();return e&&t},uP=Z.createContext(void 0),dP=({children:e})=>{const{baseSettings:{userProperties:t,privacyPreferences:n}}=JO(),{optOutAllAnalytics:r,optOutAnalyticalCookies:a}=n,{browserStorage:o,setBrowserStorage:i}=(()=>{const{baseSettings:e,componentType:t}=JO(),{optOutAllAnalytics:n,optOutFunctionalCookies:r}=e.privacyPreferences,a=n||r||!cP()?"sessionStorage":"cookie",o=`${e.apiKey}-${t}`,i=e=>e in iP?`${e}-${o}`:e,s=Object.keys(sP).reduce(((e,t)=>{const n=i(t),r=lP.get(a,n);return{...e,[t]:r}}),{...sP}),[l,c]=Z.useState(s);return Z.useEffect((()=>{if(r)for(const e of Object.keys(sP)){const t=i(e);lP.set("cookie",t,null,-1)}}),[r]),{browserStorage:l,setBrowserStorage:(e,t,n=365)=>{const r=i(e);lP.set(a,r,t,n),c((n=>({...n,[e]:t})))}}})(),s=Z.useMemo((()=>cP()),[]),l=Z.useMemo((()=>!r&&!a&&s),[r,a,s]),c=Z.useMemo((()=>{const e=r?"ANONYMOUS":t.id?"ID_PROVIDED":l?"COOKIED":"ANONYMOUS",n=r?void 0:t.id||l&&o.userId||Kh();return{identificationType:e,...r?{}:t,id:n}}),[t,r,l,o.userId]);return Z.useEffect((()=>{i("userId",l?c.id:void 0)}),[l,c.id]),Vh.jsx(uP.Provider,{value:{userProperties:c},children:e})},pP=()=>{const e=Z.useContext(uP);if(!e)throw new Error("useUser must be used within a UserProvider");return e};const hP=Z.createContext(void 0),fP=({children:e})=>{const{baseSettings:t,componentType:n}=JO(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:i,env:s,analyticsProperties:l}=t,{userProperties:c}=pP(),u=Z.useMemo((()=>({widgetLibraryVersion:"0.5.118",componentType:n,tags:o})),[n,o]),d=!i.optOutAllAnalytics&&"development"!==s,p={logEvent:Z.useCallback((async e=>{var n,o;const i={...u,...e.properties,...l},s={eventName:e.eventName,properties:i,userProperties:c},p=["modal_opened","modal_closed"].includes(e.eventName);if(d&&!p){if("conversation"in i&&!(null==(n=i.conversation)?void 0:n.id))return;!async function(e,t,n){try{const r=`${n}/events`,a={...e,type:e.eventName};if("searchQuery"in e.properties)a.entityType="search",a.searchQuery=e.properties.searchQuery;else if("messageId"in e.properties)a.entityType="message",a.messageId=e.properties.messageId;else{if(a.entityType="conversation",!e.properties.conversation)return;a.conversationId=e.properties.conversation.id}const o=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(a)});if(!o.ok){const e=await o.text();throw new Error(`Failed to log event: ${e}`)}}catch(r){console.warn("Error in logEvent:",r)}}(s,r,a)}null==(o=t.onEvent)||o.call(t,s)}),[d,t,r,a,c,u,l])};return Vh.jsx(hP.Provider,{value:p,children:e})},mP=()=>{const e=Z.useContext(hP);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e},gP=Z.createContext(void 0),yP=({children:e})=>{const{baseSettings:t,aiChatSettings:n}=JO(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:{optOutAllAnalytics:i},env:s,analyticsProperties:l}=t,{conversationVisibility:c}=n,{userProperties:u}=pP(),{logEvent:d}=mP(),{conversation:p,setConversation:h,chatId:f,isSharedChat:m,setExternalChatId:g}=rP(),y=Z.useRef(p),b=Z.useRef(m?f:void 0);Z.useEffect((()=>{y.current=p}),[p]),Z.useEffect((()=>{b.current=m?f:void 0}),[f,m]);const v=Z.useCallback((async e=>{const t=y.current;b.current&&(t.id="",g(void 0),b.current=void 0);const n=!i&&"development"!==s;let d=Object.assign({},t,{messages:e});if(n){const n=await aP(t.id,{messages:e,tags:o,userProperties:u,properties:l,visibility:c},r,a);n&&(d=n)}else d.id="conv_"+Kh(16);return d}),[a,r,o,u,i,s,l,g,c]),k=Z.useCallback((async(e,t)=>{let n=y.current;if(t){const e=y.current.messages||[];(t.length!==e.length||t.some(((t,n)=>{var r;return t.id!==(null==(r=e[n])?void 0:r.id)})))&&(n=await v(t),h(n),y.current=n)}const r={...e,properties:{conversation:n,...e.properties}};d(r)}),[d,v,i,s,l]),w=Z.useCallback((()=>y.current),[]),x={logEvent:k,logConversation:v,getLatestConversation:w};return Vh.jsx(gP.Provider,{value:x,children:e})},bP=()=>{const e=Z.useContext(gP);if(!e)throw new Error("useChatEvents must be used within a ChatEventsProvider");return e};function vP(e){const{displayName:t,goals:n,informationToCollect:r,guidance:a,botPersona:o,context:i}=e,s=xP({title:"Guidance",content:[kP(a)],note:o,depth:2}),l=wP(null==r?void 0:r.filter((e=>e.required)).map((e=>e.description))),c=wP(null==r?void 0:r.filter((e=>!e.required)).map((e=>e.description))),u=xP({title:"Required",content:[l],note:"IMPORTANT: This information is REQUIRED for this workflow. If not provided in the conversation, prompt the user to provide it and don't otherwise answer their question.",depth:3}),d=xP({title:"Optional",content:[c],depth:3}),p=xP({title:"Information to collect",content:[u,d],note:"This is information that should be collected from the user.",depth:2}),h=xP({title:"Context",content:[wP(i)],depth:2}),f=xP({title:"Workflow Name",content:[t],depth:2}),m=xP({title:"Goals",content:[kP(n)],depth:2});return xP({title:"Workflow",content:["I am a user being guided through a “workflow” defined by the organization that provides this chat experience.","**IMPORTANT: Follow the instructions outlined in this workflow. Follow the instructions in the workflow configuration below. Do not answer questions unrelated to the workflow.**",f,m,h,p,s],depth:1})}function kP(e){if(CP(e))return e.filter((e=>null!=e)).map(((e,t)=>`${t+1}. ${e}`)).join("\n")}function wP(e){if(CP(e))return e.filter((e=>null!=e)).map((e=>`- ${e}`)).join("\n")}function xP({title:e,content:t,note:n,depth:r=2}){const a=TP(t);if(!a&&!n)return;const o=`${"#".repeat(r)} ${e}\n`,i=TP([n,a]);return i?`${o}${i}\n`:void 0}function EP(e){if(!e)return;if(!CP(e))return;const t=e.map(((e,t)=>function({attachment:e,index:t}){const{title:n,content:r,contentType:a,context:o}=e,{contentInputLabel:i,type:s}=a,l=function(e){if("CODE"===(null==e?void 0:e.type))return e.language||"";return}(a),c=function(e,t){return t?`\`\`\`${t}\n${e}\n\`\`\``:e}(r,l),u=CP(o)?["\nAdditional Context:",TP(o)]:[],d=[`#### ATTACHMENT #${t+1}`,`Title: ${n}`,`Label: ${i}`,`Type: ${s}`,"Content:",c,...u].join("\n");return d}({attachment:e,index:t})));return TP(t)}function _P(e){return xP({title:"User-provided Attachments",content:["The user has provided the following attachments to their message:",EP(e)],depth:1})}function SP(e){if(!e.supportedInputs)return e;const t={...e};return t.supportedInputs=e.supportedInputs.map((e=>{const t={...e};return"MODAL"===t.type&&(t.workflowModalProps=void 0),t})),t}function TP(e){if(CP(e))return e.filter((e=>null!=e)).join("\n")}function CP(e){return Array.isArray(e)&&e.length>0}const AP=()=>{const e="undefined"==typeof window?new URL(""):new URL(window.location.href),t=new URLSearchParams(e.search);if(t.has(eP)){t.delete(eP);const n=t.toString(),r=n?`${e.origin}${e.pathname}?${n}`:`${e.origin}${e.pathname}`;"undefined"!=typeof window&&window.history.pushState({},"",r)}};var NP=e=>"checkbox"===e.type,IP=e=>e instanceof Date,RP=e=>null==e;const OP=e=>"object"==typeof e;var PP=e=>!RP(e)&&!Array.isArray(e)&&OP(e)&&!IP(e),LP=e=>PP(e)&&e.target?NP(e.target)?e.target.checked:e.target.value:e,DP=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),MP="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function FP(e){let t;const n=Array.isArray(e),r="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(MP&&(e instanceof Blob||r)||!n&&!PP(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return PP(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=FP(e[n]));else t=e}return t}var jP=e=>Array.isArray(e)?e.filter(Boolean):[],BP=e=>void 0===e,HP=(e,t,n)=>{if(!t||!PP(e))return n;const r=jP(t.split(/[,[\].]+?/)).reduce(((e,t)=>RP(e)?e:e[t]),e);return BP(r)||r===e?BP(e[t])?n:e[t]:r},zP=e=>"boolean"==typeof e,UP=e=>/^\w*$/.test(e),$P=e=>jP(e.replace(/["|']|\]/g,"").split(/\.|\[/)),VP=(e,t,n)=>{let r=-1;const a=UP(t)?[t]:$P(t),o=a.length,i=o-1;for(;++r<o;){const t=a[r];let o=n;if(r!==i){const n=e[t];o=PP(n)||Array.isArray(n)?n:isNaN(+a[r+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}return e};const GP="blur",WP="focusout",qP="change",YP="onBlur",KP="onChange",XP="onSubmit",QP="onTouched",ZP="all",JP="max",eL="min",tL="maxLength",nL="minLength",rL="pattern",aL="required",oL="validate",iL=J.createContext(null),sL=()=>J.useContext(iL);var lL=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const a=o;return t._proxyFormState[a]!==ZP&&(t._proxyFormState[a]=!r||ZP),n&&(n[a]=!0),e[a]}});return a},cL=e=>PP(e)&&!Object.keys(e).length,uL=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return cL(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||ZP)))},dL=e=>Array.isArray(e)?e:[e],pL=(e,t,n)=>!e||!t||e===t||dL(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function hL(e){const t=J.useRef(e);t.current=e,J.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var fL=e=>"string"==typeof e,mL=(e,t,n,r,a)=>fL(e)?(r&&t.watch.add(e),HP(n,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),HP(n,e)))):(r&&(t.watchAll=!0),n);function gL(e){const t=sL(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,i=DP(a._names.array,n),s=function(e){const t=sL(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:i}=e||{},s=J.useRef(r);s.current=r,hL({disabled:o,subject:n._subjects.values,next:e=>{pL(s.current,e.name,i)&&c(FP(mL(s.current,n._names,e.values||n._formValues,!1,a)))}});const[l,c]=J.useState(n._getWatch(r,a));return J.useEffect((()=>n._removeUnmounted())),l}({control:a,name:n,defaultValue:HP(a._formValues,n,HP(a._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=sL(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[i,s]=J.useState(n._formState),l=J.useRef(!0),c=J.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=J.useRef(a);return u.current=a,hL({disabled:r,next:e=>l.current&&pL(u.current,e.name,o)&&uL(e,c.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),J.useEffect((()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),J.useMemo((()=>lL(i,n,c.current,!1)),[i,n])}({control:a,name:n,exact:!0}),c=J.useRef(a.register(n,{...e.rules,value:s,...zP(e.disabled)?{disabled:e.disabled}:{}})),u=J.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!HP(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!HP(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!HP(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!HP(l.validatingFields,n)},error:{enumerable:!0,get:()=>HP(l.errors,n)}})),[l,n]),d=J.useMemo((()=>({name:n,value:s,...zP(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:e=>c.current.onChange({target:{value:LP(e),name:n},type:qP}),onBlur:()=>c.current.onBlur({target:{value:HP(a._formValues,n),name:n},type:GP}),ref:e=>{const t=HP(a._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[n,a._formValues,r,l.disabled,s,a._fields]);return J.useEffect((()=>{const e=a._options.shouldUnregister||o,t=(e,t)=>{const n=HP(a._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=FP(HP(a._options.defaultValues,n));VP(a._defaultValues,n,e),BP(HP(a._formValues,n))&&VP(a._formValues,n,e)}return!i&&a.register(n),()=>{(i?e&&!a._state.action:e)?a.unregister(n):t(n,!1)}}),[n,a,i,o]),J.useEffect((()=>{a._updateDisabledField({disabled:r,fields:a._fields,name:n})}),[r,n,a]),J.useMemo((()=>({field:d,formState:l,fieldState:u})),[d,l,u])}const yL=e=>e.render(gL(e));var bL=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},vL=e=>({isOnSubmit:!e||e===XP,isOnBlur:e===YP,isOnChange:e===KP,isOnAll:e===ZP,isOnTouch:e===QP}),kL=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const wL=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=HP(e,a);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(wL(o,t))break}else if(PP(o)&&wL(o,t))break}}};var xL=(e,t,n)=>{const r=dL(HP(e,n));return VP(r,"root",t[n]),VP(e,n,r),e},EL=e=>"file"===e.type,_L=e=>"function"==typeof e,SL=e=>{if(!MP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},TL=e=>fL(e),CL=e=>"radio"===e.type,AL=e=>e instanceof RegExp;const NL={value:!1,isValid:!1},IL={value:!0,isValid:!0};var RL=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!BP(e[0].attributes.value)?BP(e[0].value)||""===e[0].value?IL:{value:e[0].value,isValid:!0}:IL:NL}return NL};const OL={isValid:!1,value:null};var PL=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),OL):OL;function LL(e,t,n="validate"){if(TL(e)||Array.isArray(e)&&e.every(TL)||zP(e)&&!e)return{type:n,message:TL(e)?e:"",ref:t}}var DL=e=>PP(e)&&!AL(e)?e:{value:e,message:""},ML=async(e,t,n,r,a,o)=>{const{ref:i,refs:s,required:l,maxLength:c,minLength:u,min:d,max:p,pattern:h,validate:f,name:m,valueAsNumber:g,mount:y}=e._f,b=HP(n,m);if(!y||t.has(m))return{};const v=s?s[0]:i,k=e=>{a&&v.reportValidity&&(v.setCustomValidity(zP(e)?"":e||""),v.reportValidity())},w={},x=CL(i),E=NP(i),_=x||E,S=(g||EL(i))&&BP(i.value)&&BP(b)||SL(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,T=bL.bind(null,m,r,w),C=(e,t,n,r=tL,a=nL)=>{const o=e?t:n;w[m]={type:e?r:a,message:o,ref:i,...T(e?r:a,o)}};if(o?!Array.isArray(b)||!b.length:l&&(!_&&(S||RP(b))||zP(b)&&!b||E&&!RL(s).isValid||x&&!PL(s).isValid)){const{value:e,message:t}=TL(l)?{value:!!l,message:l}:DL(l);if(e&&(w[m]={type:aL,message:t,ref:v,...T(aL,t)},!r))return k(t),w}if(!(S||RP(d)&&RP(p))){let e,t;const n=DL(p),a=DL(d);if(RP(b)||isNaN(b)){const r=i.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;fL(n.value)&&b&&(e=s?o(b)>o(n.value):l?b>n.value:r>new Date(n.value)),fL(a.value)&&b&&(t=s?o(b)<o(a.value):l?b<a.value:r<new Date(a.value))}else{const r=i.valueAsNumber||(b?+b:b);RP(n.value)||(e=r>n.value),RP(a.value)||(t=r<a.value)}if((e||t)&&(C(!!e,n.message,a.message,JP,eL),!r))return k(w[m].message),w}if((c||u)&&!S&&(fL(b)||o&&Array.isArray(b))){const e=DL(c),t=DL(u),n=!RP(e.value)&&b.length>+e.value,a=!RP(t.value)&&b.length<+t.value;if((n||a)&&(C(n,e.message,t.message),!r))return k(w[m].message),w}if(h&&!S&&fL(b)){const{value:e,message:t}=DL(h);if(AL(e)&&!b.match(e)&&(w[m]={type:rL,message:t,ref:i,...T(rL,t)},!r))return k(t),w}if(f)if(_L(f)){const e=LL(await f(b,n),v);if(e&&(w[m]={...e,...T(oL,e.message)},!r))return k(e.message),w}else if(PP(f)){let e={};for(const t in f){if(!cL(e)&&!r)break;const a=LL(await f[t](b,n),v,t);a&&(e={...a,...T(t,a.message)},k(a.message),r&&(w[m]=e))}if(!cL(e)&&(w[m]={ref:v,...e},!r))return w}return k(!0),w};function FL(e,t){const n=Array.isArray(t)?t:UP(t)?[t]:$P(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=BP(e)?r++:e[t[r++]];return e}(e,n),a=n.length-1,o=n[a];return r&&delete r[o],0!==a&&(PP(r)&&cL(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!BP(e[t]))return!1;return!0}(r))&&FL(e,n.slice(0,-1)),e}var jL=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},BL=e=>RP(e)||!OP(e);function HL(e,t){if(BL(e)||BL(t))return e===t;if(IP(e)&&IP(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const n=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(IP(n)&&IP(e)||PP(n)&&PP(e)||Array.isArray(n)&&Array.isArray(e)?!HL(n,e):n!==e)return!1}}return!0}var zL=e=>"select-multiple"===e.type,UL=e=>SL(e)&&e.isConnected,$L=e=>{for(const t in e)if(_L(e[t]))return!0;return!1};function VL(e,t={}){const n=Array.isArray(e);if(PP(e)||n)for(const r in e)Array.isArray(e[r])||PP(e[r])&&!$L(e[r])?(t[r]=Array.isArray(e[r])?[]:{},VL(e[r],t[r])):RP(e[r])||(t[r]=!0);return t}function GL(e,t,n){const r=Array.isArray(e);if(PP(e)||r)for(const a in e)Array.isArray(e[a])||PP(e[a])&&!$L(e[a])?BP(t)||BL(n[a])?n[a]=Array.isArray(e[a])?VL(e[a],[]):{...VL(e[a])}:GL(e[a],RP(t)?{}:t[a],n[a]):n[a]=!HL(e[a],t[a]);return n}var WL=(e,t)=>GL(e,t,VL(t)),qL=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>BP(e)?e:t?""===e?NaN:e?+e:e:n&&fL(e)?new Date(e):r?r(e):e;function YL(e){const t=e.ref;return EL(t)?t.files:CL(t)?PL(e.refs).value:zL(t)?[...t.selectedOptions].map((({value:e})=>e)):NP(t)?RL(e.refs).value:qL(BP(t.value)?e.ref.value:t.value,e)}var KL=e=>BP(e)?e:AL(e)?e.source:PP(e)?AL(e.value)?e.value.source:e.value:e;const XL="AsyncFunction";function QL(e,t,n){const r=HP(e,n);if(r||UP(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=HP(t,r),i=HP(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};a.pop()}return{name:n}}const ZL={mode:XP,reValidateMode:KP,shouldFocusError:!0};function JL(e={}){let t,n={...ZL,...e},r={submitCount:0,isDirty:!1,isLoading:_L(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},o=(PP(n.defaultValues)||PP(n.values))&&FP(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:FP(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:jL(),array:jL(),state:jL()},p=vL(n.mode),h=vL(n.reValidateMode),f=n.criteriaMode===ZP,m=async e=>{if(!n.disabled&&(u.isValid||e)){const e=n.resolver?cL((await k()).errors):await w(a,!0);e!==r.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{n.disabled||!u.isValidating&&!u.validatingFields||((e||Array.from(l.mount)).forEach((e=>{e&&(t?VP(r.validatingFields,e,t):FL(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!cL(r.validatingFields)}))},y=(e,t,n,r)=>{const l=HP(a,e);if(l){const a=HP(i,e,BP(n)?HP(o,e):n);BP(a)||r&&r.defaultChecked||t?VP(i,e,t?a:YL(l._f)):_(e,a),s.mount&&m()}},b=(e,t,i,s,l)=>{let c=!1,p=!1;const h={name:e};if(!n.disabled){const n=!!(HP(a,e)&&HP(a,e)._f&&HP(a,e)._f.disabled);if(!i||s){u.isDirty&&(p=r.isDirty,r.isDirty=h.isDirty=x(),c=p!==h.isDirty);const a=n||HL(HP(o,e),t);p=!(n||!HP(r.dirtyFields,e)),a||n?FL(r.dirtyFields,e):VP(r.dirtyFields,e,!0),h.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&p!==!a}if(i){const t=HP(r.touchedFields,e);t||(VP(r.touchedFields,e,i),h.touchedFields=r.touchedFields,c=c||u.touchedFields&&t!==i)}c&&l&&d.state.next(h)}return c?h:{}},v=(e,a,o,i)=>{const s=HP(r.errors,e),l=u.isValid&&zP(a)&&r.isValid!==a;var p;if(n.delayError&&o?(p=()=>((e,t)=>{VP(r.errors,e,t),d.state.next({errors:r.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(p,e)},t(n.delayError)):(clearTimeout(c),t=null,o?VP(r.errors,e,o):FL(r.errors,e)),(o?!HL(s,o):s)||!cL(i)||l){const t={...i,...l&&zP(a)?{isValid:a}:{},errors:r.errors,name:e};r={...r,...t},d.state.next(t)}},k=async e=>{g(e,!0);const t=await n.resolver(i,n.context,((e,t,n,r)=>{const a={};for(const o of e){const e=HP(t,o);e&&VP(a,o,e._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}})(e||l.mount,a,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},w=async(e,t,a={valid:!0})=>{for(const s in e){const c=e[s];if(c){const{_f:e,...d}=c;if(e){const d=l.array.has(e.name),p=c._f&&(!!(o=c._f)&&!!o.validate&&!!(_L(o.validate)&&o.validate.constructor.name===XL||PP(o.validate)&&Object.values(o.validate).find((e=>e.constructor.name===XL))));p&&u.validatingFields&&g([s],!0);const h=await ML(c,l.disabled,i,f,n.shouldUseNativeValidation&&!t,d);if(p&&u.validatingFields&&g([s]),h[e.name]&&(a.valid=!1,t))break;!t&&(HP(h,e.name)?d?xL(r.errors,h,e.name):VP(r.errors,e.name,h[e.name]):FL(r.errors,e.name))}!cL(d)&&await w(d,t,a)}}var o;return a.valid},x=(e,t)=>!n.disabled&&(e&&t&&VP(i,e,t),!HL(I(),o)),E=(e,t,n)=>mL(e,l,{...s.mount?i:BP(t)?o:fL(e)?{[e]:t}:t},n,t),_=(e,t,n={})=>{const r=HP(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&VP(i,e,qL(t,n)),o=SL(n.ref)&&RP(t)?"":t,zL(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?NP(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):EL(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||d.values.next({name:e,values:{...i}})))}(n.shouldDirty||n.shouldTouch)&&b(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&N(e)},S=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=HP(a,i);(l.array.has(e)||PP(o)||s&&!s._f)&&!IP(o)?S(i,o,n):_(i,o,n)}},T=(e,t,n={})=>{const c=HP(a,e),p=l.array.has(e),h=FP(t);VP(i,e,h),p?(d.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:WL(o,i),isDirty:x(e,h)})):!c||c._f||RP(h)?_(e,h,n):S(e,h,n),kL(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...i}})},C=async e=>{s.mount=!0;const o=e.target;let c=o.name,y=!0;const x=HP(a,c),E=e=>{y=Number.isNaN(e)||IP(e)&&isNaN(e.getTime())||HL(e,HP(i,c,e))};if(x){let s,S;const T=o.type?YL(x._f):LP(e),C=e.type===GP||e.type===WP,A=!((_=x._f).mount&&(_.required||_.min||_.max||_.maxLength||_.minLength||_.pattern||_.validate)||n.resolver||HP(r.errors,c)||x._f.deps)||((e,t,n,r,a)=>!a.isOnAll&&(!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:!(n?r.isOnChange:a.isOnChange)||e))(C,HP(r.touchedFields,c),r.isSubmitted,h,p),I=kL(c,l,C);VP(i,c,T),C?(x._f.onBlur&&x._f.onBlur(e),t&&t(0)):x._f.onChange&&x._f.onChange(e);const R=b(c,T,C,!1),O=!cL(R)||I;if(!C&&d.values.next({name:c,type:e.type,values:{...i}}),A)return u.isValid&&("onBlur"===n.mode&&C?m():C||m()),O&&d.state.next({name:c,...I?{}:R});if(!C&&I&&d.state.next({...r}),n.resolver){const{errors:e}=await k([c]);if(E(T),y){const t=QL(r.errors,a,c),n=QL(e,a,t.name||c);s=n.error,c=n.name,S=cL(e)}}else g([c],!0),s=(await ML(x,l.disabled,i,f,n.shouldUseNativeValidation))[c],g([c]),E(T),y&&(s?S=!1:u.isValid&&(S=await w(a,!0)));y&&(x._f.deps&&N(x._f.deps),v(c,S,s,R))}var _},A=(e,t)=>{if(HP(r.errors,t)&&e.focus)return e.focus(),1},N=async(e,t={})=>{let o,i;const s=dL(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await k(e);if(e)for(const n of e){const e=HP(t,n);e?VP(r.errors,n,e):FL(r.errors,n)}else r.errors=t;return t})(BP(e)?e:s);o=cL(t),i=e?!s.some((e=>HP(t,e))):o}else e?(i=(await Promise.all(s.map((async e=>{const t=HP(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&m()):i=o=await w(a);return d.state.next({...!fL(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!i&&wL(a,A,e?s:l.mount),i},I=e=>{const t={...s.mount?i:o};return BP(e)?t:fL(e)?HP(t,e):e.map((e=>HP(t,e)))},R=(e,t)=>({invalid:!!HP((t||r).errors,e),isDirty:!!HP((t||r).dirtyFields,e),error:HP((t||r).errors,e),isValidating:!!HP(r.validatingFields,e),isTouched:!!HP((t||r).touchedFields,e)}),O=(e,t,n)=>{const o=(HP(a,e,{_f:{}})._f||{}).ref,i=HP(r.errors,e)||{},{ref:s,message:l,type:c,...u}=i;VP(r.errors,e,{...u,...t,ref:o}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},P=(e,t={})=>{for(const s of e?dL(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(FL(a,s),FL(i,s)),!t.keepError&&FL(r.errors,s),!t.keepDirty&&FL(r.dirtyFields,s),!t.keepTouched&&FL(r.touchedFields,s),!t.keepIsValidating&&FL(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&FL(o,s);d.values.next({values:{...i}}),d.state.next({...r,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&m()},L=({disabled:e,name:t,field:n,fields:r})=>{(zP(e)&&s.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t),b(t,YL(n?n._f:HP(r,t)._f),!1,!1,!0))},D=(e,t={})=>{let r=HP(a,e);const i=zP(t.disabled)||zP(n.disabled);return VP(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?L({field:r,disabled:zP(t.disabled)?t.disabled:n.disabled,name:e}):y(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:KL(t.min),max:KL(t.max),minLength:KL(t.minLength),maxLength:KL(t.maxLength),pattern:KL(t.pattern)}:{},name:e,onChange:C,onBlur:C,ref:i=>{if(i){D(e,t),r=HP(a,e);const n=BP(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>CL(e)||NP(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;VP(a,e,{_f:{...r._f,...s?{refs:[...l.filter(UL),n,...Array.isArray(HP(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=HP(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!DP(l.array,e)||!s.action)&&l.unMount.add(e)}}},M=()=>n.shouldFocusError&&wL(a,A,l.mount),F=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=FP(i);if(l.disabled.size)for(const e of l.disabled)VP(c,e,void 0);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await k();r.errors=e,c=t}else await w(a);if(FL(r.errors,"root"),cL(r.errors)){d.state.next({errors:{}});try{await e(c,o)}catch(u){s=u}}else t&&await t({...r.errors},o),M(),setTimeout(M);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:cL(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},j=(e,t={})=>{const c=e?FP(e):o,p=FP(c),h=cL(e),f=h?o:p;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(WL(o,i))]);for(const t of Array.from(e))HP(r.dirtyFields,t)?VP(f,t,HP(i,t)):T(t,HP(f,t))}else{if(MP&&BP(e))for(const e of l.mount){const t=HP(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(SL(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=n.shouldUnregister?t.keepDefaultValues?FP(o):{}:FP(f),d.array.next({values:{...f}}),d.values.next({values:{...f}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues,s.watch=!!n.shouldUnregister,d.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!h&&(t.keepDirty?r.isDirty:!(!t.keepDefaultValues||HL(e,o))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&i?WL(o,i):r.dirtyFields:t.keepDefaultValues&&e?WL(o,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},B=(e,t)=>j(_L(e)?e(i):e,t);return{control:{register:D,unregister:P,getFieldState:R,handleSubmit:F,setError:O,_executeSchema:k,_getWatch:E,_getDirty:x,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=HP(a,e);t&&(t._f.refs?t._f.refs.every((e=>!UL(e))):!UL(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],l,c,p=!0,h=!0)=>{if(c&&l&&!n.disabled){if(s.action=!0,h&&Array.isArray(HP(a,e))){const t=l(HP(a,e),c.argA,c.argB);p&&VP(a,e,t)}if(h&&Array.isArray(HP(r.errors,e))){const t=l(HP(r.errors,e),c.argA,c.argB);p&&VP(r.errors,e,t),((e,t)=>{!jP(HP(e,t)).length&&FL(e,t)})(r.errors,e)}if(u.touchedFields&&h&&Array.isArray(HP(r.touchedFields,e))){const t=l(HP(r.touchedFields,e),c.argA,c.argB);p&&VP(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=WL(o,i)),d.state.next({name:e,isDirty:x(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else VP(i,e,t)},_updateDisabledField:L,_getFieldArray:e=>jP(HP(s.mount?i:o,e,n.shouldUnregister?HP(o,e,[]):[])),_reset:j,_resetDefaultValues:()=>_L(n.defaultValues)&&n.defaultValues().then((e=>{B(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{zP(e)&&(d.state.next({disabled:e}),wL(a,((t,n)=>{const r=HP(a,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return a},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:N,register:D,handleSubmit:F,watch:(e,t)=>_L(e)?d.values.subscribe({next:n=>e(E(void 0,t),n)}):E(e,t,!0),setValue:T,getValues:I,reset:B,resetField:(e,t={})=>{HP(a,e)&&(BP(t.defaultValue)?T(e,FP(HP(o,e))):(T(e,t.defaultValue),VP(o,e,FP(t.defaultValue))),t.keepTouched||FL(r.touchedFields,e),t.keepDirty||(FL(r.dirtyFields,e),r.isDirty=t.defaultValue?x(e,FP(HP(o,e))):x()),t.keepError||(FL(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&dL(e).forEach((e=>FL(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:O,setFocus:(e,t={})=>{const n=HP(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&_L(e.select)&&e.select())}},getFieldState:R}}function eD(e={}){const t=J.useRef(void 0),n=J.useRef(void 0),[r,a]=J.useState({isDirty:!1,isValidating:!1,isLoading:_L(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:_L(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...JL(e),formState:r});const o=t.current.control;return o._options=e,hL({subject:o._subjects.state,next:e=>{uL(e,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),J.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),J.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,r.isDirty]),J.useEffect((()=>{e.values&&!HL(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),J.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),J.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),J.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=lL(r,o),t.current}const tD=Z.createContext(void 0),nD=({children:e,modal:t})=>Vh.jsx(tD.Provider,{value:t,children:e}),rD=()=>Z.useContext(tD);var aD=(e,t=[])=>({parts:(...n)=>{if(iD(t))return aD(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>aD(e,[...t,...n]),omit:(...n)=>aD(e,t.filter((e=>!n.includes(e)))),rename:e=>aD(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce(((t,n)=>Object.assign(t,{[n]:{selector:[`&[data-scope="${oD(e)}"][data-part="${oD(n)}"]`,`& [data-scope="${oD(e)}"][data-part="${oD(n)}"]`].join(", "),attrs:{"data-scope":oD(e),"data-part":oD(n)}}})),{})}),oD=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),iD=e=>0===e.length;var sD=(e,...t)=>e.filter((e=>!t.includes(e))),lD=(e,t)=>((e,t)=>-1!==e.indexOf(t))(e,t)?sD(e,t):((e,...t)=>e.concat(t))(e,t),cD=e=>"Array"===(null==e?void 0:e.constructor.name),uD=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof(null==e?void 0:e.isEqual)&&"function"==typeof(null==t?void 0:t.isEqual))return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(cD(e)&&cD(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!uD(e[n],t[n]))return!1;return!0})(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let a=0;a<r;a++){if(!Reflect.has(e,n[a]))return!1}for(let a=0;a<r;a++){const r=n[a];if(!uD(e[r],t[r]))return!1}return!0},dD=e=>null!=e&&"object"==typeof e,pD=e=>dD(e)&&!(e=>Array.isArray(e))(e),hD=e=>"function"==typeof e,fD=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),mD=Function.prototype.toString,gD=mD.call(Object),yD=e=>{if(!dD(e)||"[object Object]"!=(e=>Object.prototype.toString.call(e))(e)||bD(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const n=fD(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&mD.call(n)==gD},bD=e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e),vD=e=>e(),kD=()=>{},wD=(...e)=>(...t)=>{e.forEach((function(e){null==e||e(...t)}))};function xD(e,t,...n){var r;if(e in t){const r=t[e];return hD(r)?r(...n):r}const a=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw null==(r=Error.captureStackTrace)||r.call(Error,a,xD),a}function ED(e){if(!yD(e)||void 0===e)return e;const t=Reflect.ownKeys(e).filter((e=>"string"==typeof e)),n={};for(const r of t){const t=e[r];void 0!==t&&(n[r]=ED(t))}return n}function _D(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function SD(e,t){if(null==e)throw new Error(t())}var TD=Object.defineProperty,CD=(e,t,n)=>((e,t,n)=>t in e?TD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),AD={itemToValue:e=>"string"==typeof e?e:pD(e)&&fD(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:pD(e)&&fD(e,"label")?e.label:AD.itemToValue(e),isItemDisabled:e=>!(!pD(e)||!fD(e,"disabled"))&&!!e.disabled},ND=class e{constructor(t){this.options=t,CD(this,"items"),CD(this,"indexMap",null),CD(this,"copy",(t=>new e({...this.options,items:t??[...this.items]}))),CD(this,"isEqual",(e=>uD(this.items,e.items))),CD(this,"setItems",(e=>this.copy(e))),CD(this,"getValues",((e=this.items)=>{const t=[];for(const n of e){const e=this.getItemValue(n);null!=e&&t.push(e)}return t})),CD(this,"find",(e=>{if(null==e)return null;const t=this.indexOf(e);return-1!==t?this.at(t):null})),CD(this,"findMany",(e=>{const t=[];for(const n of e){const e=this.find(n);null!=e&&t.push(e)}return t})),CD(this,"at",(e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;const n=this.group();for(const[,r]of n)for(const n of r){if(t===e)return n;t++}return null})),CD(this,"sortFn",((e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0))),CD(this,"sort",(e=>[...e].sort(this.sortFn.bind(this)))),CD(this,"getItemValue",(e=>{var t,n;return null==e?null:(null==(n=(t=this.options).itemToValue)?void 0:n.call(t,e))??AD.itemToValue(e)})),CD(this,"getItemDisabled",(e=>{var t,n;return null!=e&&((null==(n=(t=this.options).isItemDisabled)?void 0:n.call(t,e))??AD.isItemDisabled(e))})),CD(this,"stringifyItem",(e=>{var t,n;return null==e?null:(null==(n=(t=this.options).itemToString)?void 0:n.call(t,e))??AD.itemToString(e)})),CD(this,"stringify",(e=>null==e?null:this.stringifyItem(this.find(e)))),CD(this,"stringifyItems",((e,t=", ")=>{const n=[];for(const r of e){const e=this.stringifyItem(r);null!=e&&n.push(e)}return n.join(t)})),CD(this,"stringifyMany",((e,t)=>this.stringifyItems(this.findMany(e),t))),CD(this,"has",(e=>-1!==this.indexOf(e))),CD(this,"hasItem",(e=>null!=e&&this.has(this.getItemValue(e)))),CD(this,"group",(()=>{const{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];const n=new Map;this.items.forEach(((t,r)=>{const a=e(t,r);n.has(a)||n.set(a,[]),n.get(a).push(t)}));let r=Array.from(n.entries());return t&&r.sort((([e],[n])=>{if("function"==typeof t)return t(e,n);if(Array.isArray(t)){const r=t.indexOf(e),a=t.indexOf(n);return-1===r?1:-1===a?-1:r-a}return"asc"===t?e.localeCompare(n):"desc"===t?n.localeCompare(e):0})),r})),CD(this,"getNextValue",((e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.min(r+t,this.size-1):r+t;r<=this.size&&this.getItemDisabled(this.at(r));)r++;return this.getItemValue(this.at(r))})),CD(this,"getPreviousValue",((e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.max(r-t,0):r-t;r>=0&&this.getItemDisabled(this.at(r));)r--;return this.getItemValue(this.at(r))})),CD(this,"indexOf",(e=>{if(null==e)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex((t=>this.getItemValue(t)===e));if(!this.indexMap){this.indexMap=new Map;let e=0;const t=this.group();for(const[,n]of t)for(const t of n){const n=this.getItemValue(t);null!=n&&this.indexMap.set(n,e),e++}}return this.indexMap.get(e)??-1})),CD(this,"getByText",((e,t)=>{const n=null!=t?this.indexOf(t):-1,r=1===e.length;for(let a=0;a<this.items.length;a++){const o=this.items[(n+a+1)%this.items.length];if((!r||this.getItemValue(o)!==t)&&(!this.getItemDisabled(o)&&ID(this.stringifyItem(o),e)))return o}})),CD(this,"search",((e,t)=>{const{state:n,currentValue:r,timeout:a=350}=t,o=n.keysSoFar+e,i=o.length>1&&Array.from(o).every((e=>e===o[0]))?o[0]:o,s=this.getByText(i,r),l=this.getItemValue(s);function c(){clearTimeout(n.timer),n.timer=-1}return function e(t){n.keysSoFar=t,c(),""!==t&&(n.timer=+setTimeout((()=>{e(""),c()}),a))}(o),l})),CD(this,"update",((e,t)=>{let n=this.indexOf(e);return-1===n?this:this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])})),CD(this,"upsert",((e,t,n="append")=>{let r=this.indexOf(e);if(-1===r){return("append"===n?this.append:this.prepend)(t)}return this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])})),CD(this,"insert",((e,...t)=>this.copy(RD(this.items,e,...t)))),CD(this,"insertBefore",((e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(RD(this.items,n,...t))})),CD(this,"insertAfter",((e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(RD(this.items,n+1,...t))})),CD(this,"prepend",((...e)=>this.copy(RD(this.items,0,...e)))),CD(this,"append",((...e)=>this.copy(RD(this.items,this.items.length,...e)))),CD(this,"filter",(e=>{const t=this.items.filter(((t,n)=>e(this.stringifyItem(t),n,t)));return this.copy(t)})),CD(this,"remove",((...e)=>{const t=e.map((e=>"string"==typeof e?e:this.getItemValue(e)));return this.copy(this.items.filter((e=>{const n=this.getItemValue(e);return null!=n&&!t.includes(n)})))})),CD(this,"move",((e,t)=>{const n=this.indexOf(e);return-1===n?this:this.copy(OD(this.items,[n],t))})),CD(this,"moveBefore",((e,...t)=>{let n=this.items.findIndex((t=>this.getItemValue(t)===e));if(-1===n)return this;let r=t.map((e=>this.items.findIndex((t=>this.getItemValue(t)===e)))).sort(((e,t)=>e-t));return this.copy(OD(this.items,r,n))})),CD(this,"moveAfter",((e,...t)=>{let n=this.items.findIndex((t=>this.getItemValue(t)===e));if(-1===n)return this;let r=t.map((e=>this.items.findIndex((t=>this.getItemValue(t)===e)))).sort(((e,t)=>e-t));return this.copy(OD(this.items,r,n+1))})),CD(this,"reorder",((e,t)=>this.copy(OD(this.items,[e],t)))),CD(this,"compareValue",((e,t)=>{const n=this.indexOf(e),r=this.indexOf(t);return n<r?-1:n>r?1:0})),CD(this,"range",((e,t)=>{let n=[],r=e;for(;null!=r;){if(this.find(r)&&n.push(r),r===t)return n;r=this.getNextValue(r)}return[]})),CD(this,"getValueRange",((e,t)=>e&&t?this.compareValue(e,t)<=0?this.range(e,t):this.range(t,e):[])),CD(this,"toString",(()=>{let e="";for(const t of this.items){e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+","}return e})),CD(this,"toJSON",(()=>({size:this.size,first:this.firstValue,last:this.lastValue}))),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},ID=(e,t)=>!!(null==e?void 0:e.toLowerCase().startsWith(t.toLowerCase()));function RD(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function OD(e,t,n){const r=(t=[...t].sort(((e,t)=>e-t))).map((t=>e[t]));for(let a=t.length-1;a>=0;a--)e=[...e.slice(0,t[a]),...e.slice(t[a]+1)];return n=Math.max(0,n-t.filter((e=>e<n)).length),[...e.slice(0,n),...r,...e.slice(n)]}var PD=Object.defineProperty,LD=(e,t,n)=>((e,t,n)=>t in e?PD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);var DD=()=>{},MD=e=>"object"==typeof e&&null!==e,FD=e=>e?"":void 0,jD=e=>e?"true":void 0,BD=e=>MD(e)&&1===e.nodeType&&"string"==typeof e.nodeName,HD=e=>MD(e)&&9===e.nodeType,zD=e=>BD(e)?e.localName||"":"#document";var UD=e=>(e=>MD(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e;function $D(e){if(!e)return!1;return KD(e.getRootNode())===e}var VD=/(textarea|select)/;function GD(e){if(null==e||!BD(e))return!1;try{return(e=>BD(e)&&"input"===e.localName)(e)&&null!=e.selectionStart||VD.test(e.localName)||e.isContentEditable||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")}catch{return!1}}function WD(e,t){var n;if(!e||!t)return!1;if(!BD(e)||!BD(t))return!1;const r=null==(n=t.getRootNode)?void 0:n.call(t);if(e===t)return!0;if(e.contains(t))return!0;if(r&&UD(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function qD(e){return HD(e)?e:(e=>MD(e)&&e===e.window)(e)?e.document:(null==e?void 0:e.ownerDocument)??document}function YD(e){var t;return UD(e)?YD(e.host):HD(e)?e.defaultView??window:BD(e)?(null==(t=e.ownerDocument)?void 0:t.defaultView)??window:window}function KD(e){let t=e.activeElement;for(;null==t?void 0:t.shadowRoot;){const e=t.shadowRoot.activeElement;if(!e||e===t)break;t=e}return t}function XD(e){if("html"===zD(e))return e;const t=e.assignedSlot||e.parentNode||UD(e)&&e.host||qD(e).documentElement;return UD(t)?t.host:t}function QD(e){let t;try{if(t=e.getRootNode({composed:!0}),HD(t)||UD(t))return t}catch{}return e.ownerDocument??document}var ZD=new WeakMap;function JD(e){return ZD.has(e)||ZD.set(e,YD(e).getComputedStyle(e)),ZD.get(e)}var eM=new Set(["menu","listbox","dialog","grid","tree","region"]),tM=e=>eM.has(e),nM=e=>{var t;return(null==(t=e.getAttribute("aria-controls"))?void 0:t.split(" "))||[]};function rM(e,t){const n=new Set,r=QD(e),a=e=>{const o=e.querySelectorAll("[aria-controls]");for(const i of o){if("true"!==i.getAttribute("aria-expanded"))continue;const e=nM(i);for(const o of e){if(!o||n.has(o))continue;n.add(o);const e=r.getElementById(o);if(e){const n=e.getAttribute("role"),r="true"===e.getAttribute("aria-modal");if(n&&tM(n)&&!r){if(e===t||e.contains(t))return!0;if(a(e))return!0}}}}return!1};return a(e)}function aM(e){const t=new Set;return function(e,t){const n=QD(e),r=new Set,a=e=>{const o=e.querySelectorAll("[aria-controls]");for(const i of o){if("true"!==i.getAttribute("aria-expanded"))continue;const e=nM(i);for(const o of e){if(!o||r.has(o))continue;r.add(o);const e=n.getElementById(o);if(e){const n=e.getAttribute("role"),r="true"===e.getAttribute("aria-modal");n&&eM.has(n)&&!r&&(t(e),a(e))}}}};a(e)}(e,(n=>{e.contains(n)||t.add(n)})),Array.from(t)}function oM(e){if(!e.id)return!1;const t=QD(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`,a=t.querySelector(r);return Boolean(a&&function(e){const t=e.getAttribute("role");return Boolean(t&&eM.has(t))}(e))}var iM=()=>"undefined"!=typeof document;var sM=e=>iM()&&e.test(function(){const e=navigator.userAgentData;return(null==e?void 0:e.platform)??navigator.platform}()),lM=e=>iM()&&e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((({brand:e,version:t})=>`${e}/${t}`)).join(" "):navigator.userAgent}()),cM=()=>iM()&&!!navigator.maxTouchPoints,uM=()=>sM(/^Mac/i);function dM(e){const t=function(e){var t,n,r;return(null==(t=e.composedPath)?void 0:t.call(e))??(null==(r=null==(n=e.nativeEvent)?void 0:n.composedPath)?void 0:r.call(n))}(e);return(null==t?void 0:t[0])??e.target}function pM(e){const t=e.currentTarget;if(!t)return!1;if(!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const n=1===e.button,r=(a=e,uM()?a.metaKey:a.ctrlKey);var a;return n||r}var hM=e=>0===e.button,fM=e=>2===e.button||uM()&&e.ctrlKey&&0===e.button,mM={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},gM={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function yM(e,t={}){const{dir:n="ltr",orientation:r="horizontal"}=t;let a=e.key;a=mM[a]??a;return"rtl"===n&&"horizontal"===r&&a in gM&&(a=gM[a]),a}var bM=(e,t,n,r)=>{const a="function"==typeof e?e():e;return null==a||a.addEventListener(t,n,r),()=>{null==a||a.removeEventListener(t,n,r)}},vM=e=>BD(e)&&"IFRAME"===e.tagName,kM=/^(audio|video|details)$/;function wM(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}function xM(e,t){if(!t)return null;if(!0===t)return e.shadowRoot||null;const n=t(e);return(!0===n?e.shadowRoot:n)||null}function EM(e,t,n){const r=[...e],a=[...e],o=new Set,i=new Map;e.forEach(((e,t)=>i.set(e,t)));let s=0;for(;s<a.length;){const e=a[s++];if(!e||o.has(e))continue;o.add(e);const l=xM(e,t);if(l){const t=Array.from(l.querySelectorAll(_M)).filter(n),o=i.get(e);if(void 0!==o){const e=o+1;r.splice(e,0,...t),t.forEach(((t,n)=>{i.set(t,e+n)}));for(let n=e+t.length;n<r.length;n++)i.set(r[n],n)}else{const e=r.length;r.push(...t),t.forEach(((t,n)=>{i.set(t,e+n)}))}a.push(...t)}}return r}var _M="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",SM=(e,t={})=>{if(!e)return[];const{includeContainer:n=!1,getShadowRoot:r}=t,a=Array.from(e.querySelectorAll(_M));(1==n||"if-empty"==n&&0===a.length)&&BD(e)&&TM(e)&&a.unshift(e);const o=[];for(const i of a)if(TM(i))if(vM(i)&&i.contentDocument){const e=i.contentDocument.body;o.push(...SM(e,{getShadowRoot:r}))}else o.push(i);return r?EM(o,r,TM):o};function TM(e){return!(!BD(e)||e.closest("[inert]"))&&(e.matches(_M)&&(!!BD(t=e)&&(t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)));var t}function CM(e,t={}){if(!e)return[];const{includeContainer:n,getShadowRoot:r}=t,a=Array.from(e.querySelectorAll(_M));n&&AM(e)&&a.unshift(e);const o=[];for(const i of a)if(AM(i))if(vM(i)&&i.contentDocument){const e=i.contentDocument.body;o.push(...CM(e,{getShadowRoot:r}))}else o.push(i);if(r){const e=EM(o,r,AM);return!e.length&&n?a:e}return!o.length&&n?a:o}function AM(e){return!!(BD(e)&&e.tabIndex>0)||TM(e)&&!(e=>wM(e)<0)(e)}function NM(e){return e.tabIndex<0&&(kM.test(e.localName)||GD(e))&&(t=e,Number.isNaN(wM(t)))?0:e.tabIndex;var t}var IM=class e{constructor(){LD(this,"id",null),LD(this,"fn_cleanup"),LD(this,"cleanup",(()=>{this.cancel()}))}static create(){return new e}request(e){this.cancel(),this.id=globalThis.requestAnimationFrame((()=>{this.id=null,this.fn_cleanup=null==e?void 0:e()}))}cancel(){var e;null!==this.id&&(globalThis.cancelAnimationFrame(this.id),this.id=null),null==(e=this.fn_cleanup)||e.call(this),this.fn_cleanup=void 0}isActive(){return null!==this.id}};function RM(e){const t=IM.create();return t.request(e),t.cleanup}function OM(e){const t=new Set;function n(e){const n=globalThis.requestAnimationFrame(e);t.add((()=>globalThis.cancelAnimationFrame(n)))}return n((()=>n(e))),function(){t.forEach((e=>e()))}}function PM(e,t){const{defer:n}=t,r=n?RM:e=>e(),a=[];return a.push(r((()=>{const n="function"==typeof e?e():e;a.push(function(e,t){if(!e)return;const{attributes:n,callback:r}=t,a=new(e.ownerDocument.defaultView||window).MutationObserver((e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&n.includes(t.attributeName)&&r(t)}));return a.observe(e,{attributes:!0,attributeFilter:n}),()=>a.disconnect()}(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}function LM(e){const t=()=>{const t=YD(e);e.dispatchEvent(new t.MouseEvent("click"))};lM(/Firefox/i)?function(e,t,n){const r=RM((()=>{e.removeEventListener(t,a,!0),n()})),a=()=>{r(),n()};e.addEventListener(t,a,{once:!0,capture:!0})}(e,"keyup",t):queueMicrotask(t)}function DM(e){const t=XD(e);return["html","body","#document"].includes(zD(t))?qD(t).body:BD(t)&&jM(t)?t:DM(t)}var MM=/auto|scroll|overlay|hidden|clip/,FM=new Set(["inline","contents"]);function jM(e){const t=YD(e),{overflow:n,overflowX:r,overflowY:a,display:o}=t.getComputedStyle(e);return MM.test(n+a+r)&&!FM.has(o)}function BM(e,t){const{rootEl:n,...r}=t||{};e&&n&&jM(n)&&function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(n)&&e.scrollIntoView(r)}function HM(e,t){if(!e)return DD;const n=Object.keys(t).reduce(((t,n)=>(t[n]=e.style.getPropertyValue(n),t)),{});return r=n,a=t,Object.keys(r).every((e=>r[e]===a[e]))?DD:(Object.assign(e.style,t),()=>{Object.assign(e.style,n),0===e.style.length&&e.removeAttribute("style")});var r,a}function zM(e,t){const{timeout:n,rootNode:r}=t,a=YD(r),o=qD(r),i=new a.AbortController;return function(e,t,n){const{signal:r}=t;return[new Promise(((t,a)=>{const o=setTimeout((()=>{a(new Error(`Timeout of ${n}ms exceeded`))}),n);r.addEventListener("abort",(()=>{clearTimeout(o),a(new Error("Promise aborted"))})),e.then((e=>{r.aborted||(clearTimeout(o),t(e))})).catch((e=>{r.aborted||(clearTimeout(o),a(e))}))})),()=>t.abort()]}(new Promise((t=>{const n=e();if(n)return void t(n);const r=new a.MutationObserver((()=>{const n=e();n&&n.isConnected&&(r.disconnect(),t(n))}));r.observe(o.body,{childList:!0,subtree:!0})})),i,n)}const UM=["top","right","bottom","left"],$M=Math.min,VM=Math.max,GM=Math.round,WM=Math.floor,qM=e=>({x:e,y:e}),YM={left:"right",right:"left",bottom:"top",top:"bottom"},KM={start:"end",end:"start"};function XM(e,t,n){return VM(e,$M(t,n))}function QM(e,t){return"function"==typeof e?e(t):e}function ZM(e){return e.split("-")[0]}function JM(e){return e.split("-")[1]}function eF(e){return"x"===e?"y":"x"}function tF(e){return"y"===e?"height":"width"}const nF=new Set(["top","bottom"]);function rF(e){return nF.has(ZM(e))?"y":"x"}function aF(e){return eF(rF(e))}function oF(e){return e.replace(/start|end/g,(e=>KM[e]))}const iF=["left","right"],sF=["right","left"],lF=["top","bottom"],cF=["bottom","top"];function uF(e,t,n,r){const a=JM(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?sF:iF:t?iF:sF;case"left":case"right":return t?lF:cF;default:return[]}}(ZM(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(oF)))),o}function dF(e){return e.replace(/left|right|bottom|top/g,(e=>YM[e]))}function pF(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function hF(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function fF(e,t,n){let{reference:r,floating:a}=e;const o=rF(t),i=aF(t),s=tF(i),l=ZM(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-a.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-a.width,y:d};break;default:h={x:r.x,y:r.y}}switch(JM(t)){case"start":h[i]-=p*(n&&c?-1:1);break;case"end":h[i]+=p*(n&&c?-1:1)}return h}async function mF(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=QM(t,e),f=pF(h),m=s[p?"floating"===d?"reference":"floating":d],g=hF(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=hF(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-k.top+f.top)/v.y,bottom:(k.bottom-g.bottom+f.bottom)/v.y,left:(g.left-k.left+f.left)/v.x,right:(k.right-g.right+f.right)/v.x}}function gF(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yF(e){return UM.some((t=>e[t]>=0))}const bF=new Set(["left","top"]);function vF(){return"undefined"!=typeof window}function kF(e){return EF(e)?(e.nodeName||"").toLowerCase():"#document"}function wF(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function xF(e){var t;return null==(t=(EF(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function EF(e){return!!vF()&&(e instanceof Node||e instanceof wF(e).Node)}function _F(e){return!!vF()&&(e instanceof Element||e instanceof wF(e).Element)}function SF(e){return!!vF()&&(e instanceof HTMLElement||e instanceof wF(e).HTMLElement)}function TF(e){return!(!vF()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof wF(e).ShadowRoot)}const CF=new Set(["inline","contents"]);function AF(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=HF(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!CF.has(a)}const NF=new Set(["table","td","th"]);function IF(e){return NF.has(kF(e))}const RF=[":popover-open",":modal"];function OF(e){return RF.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}const PF=["transform","translate","scale","rotate","perspective"],LF=["transform","translate","scale","rotate","perspective","filter"],DF=["paint","layout","strict","content"];function MF(e){const t=FF(),n=_F(e)?HF(e):e;return PF.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||LF.some((e=>(n.willChange||"").includes(e)))||DF.some((e=>(n.contain||"").includes(e)))}function FF(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const jF=new Set(["html","body","#document"]);function BF(e){return jF.has(kF(e))}function HF(e){return wF(e).getComputedStyle(e)}function zF(e){return _F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function UF(e){if("html"===kF(e))return e;const t=e.assignedSlot||e.parentNode||TF(e)&&e.host||xF(e);return TF(t)?t.host:t}function $F(e){const t=UF(e);return BF(t)?e.ownerDocument?e.ownerDocument.body:e.body:SF(t)&&AF(t)?t:$F(t)}function VF(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=$F(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=wF(a);if(o){const e=GF(i);return t.concat(i,i.visualViewport||[],AF(a)?a:[],e&&n?VF(e):[])}return t.concat(a,VF(a,[],n))}function GF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function WF(e){const t=HF(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=SF(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=GM(n)!==o||GM(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function qF(e){return _F(e)?e:e.contextElement}function YF(e){const t=qF(e);if(!SF(t))return qM(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=WF(t);let i=(o?GM(n.width):n.width)/r,s=(o?GM(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const KF=qM(0);function XF(e){const t=wF(e);return FF()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:KF}function QF(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=qF(e);let i=qM(1);t&&(r?_F(r)&&(i=YF(r)):i=YF(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==wF(e))&&t}(o,n,r)?XF(o):qM(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=wF(o),t=r&&_F(r)?wF(r):r;let n=e,a=GF(n);for(;a&&r&&t!==n;){const e=YF(a),t=a.getBoundingClientRect(),r=HF(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=wF(a),a=GF(n)}}return hF({width:u,height:d,x:l,y:c})}function ZF(e,t){const n=zF(e).scrollLeft;return t?t.left+n:QF(xF(e)).left+n}function JF(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ZF(e,n),y:n.top+t.scrollTop}}const ej=new Set(["absolute","fixed"]);function tj(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=wF(e),r=xF(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=FF();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}const c=ZF(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-a);i<=25&&(o-=i)}else c<=25&&(o+=c);return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=xF(e),n=zF(e),r=e.ownerDocument.body,a=VM(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=VM(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ZF(e);const s=-n.scrollTop;return"rtl"===HF(r).direction&&(i+=VM(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(xF(e));else if(_F(t))r=function(e,t){const n=QF(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=SF(e)?YF(e):qM(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=XF(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return hF(r)}function nj(e,t){const n=UF(e);return!(n===t||!_F(n)||BF(n))&&("fixed"===HF(n).position||nj(n,t))}function rj(e,t,n){const r=SF(t),a=xF(t),o="fixed"===n,i=QF(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=qM(0);function c(){l.x=ZF(a)}if(r||!r&&!o)if(("body"!==kF(t)||AF(a))&&(s=zF(t)),r){const e=QF(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&c();o&&!r&&a&&c();const u=!a||r||o?qM(0):JF(a,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function aj(e){return"static"===HF(e).position}function oj(e,t){if(!SF(e)||"fixed"===HF(e).position)return null;if(t)return t(e);let n=e.offsetParent;return xF(e)===n&&(n=n.ownerDocument.body),n}function ij(e,t){const n=wF(e);if(OF(e))return n;if(!SF(e)){let t=UF(e);for(;t&&!BF(t);){if(_F(t)&&!aj(t))return t;t=UF(t)}return n}let r=oj(e,t);for(;r&&IF(r)&&aj(r);)r=oj(r,t);return r&&BF(r)&&aj(r)&&!MF(r)?n:r||function(e){let t=UF(e);for(;SF(t)&&!BF(t);){if(MF(t))return t;if(OF(t))return null;t=UF(t)}return null}(e)||n}const sj={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=xF(r),s=!!t&&OF(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=qM(1);const u=qM(0),d=SF(r);if((d||!d&&!o)&&(("body"!==kF(r)||AF(i))&&(l=zF(r)),SF(r))){const e=QF(r);c=YF(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?qM(0):JF(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:xF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?OF(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=VF(e,[],!1).filter((e=>_F(e)&&"body"!==kF(e))),a=null;const o="fixed"===HF(e).position;let i=o?UF(e):e;for(;_F(i)&&!BF(i);){const t=HF(i),n=MF(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&ej.has(a.position)||AF(i)&&!n&&nj(e,i))?r=r.filter((e=>e!==i)):a=t,i=UF(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=tj(t,n,a);return e.top=VM(r.top,e.top),e.right=$M(r.right,e.right),e.bottom=$M(r.bottom,e.bottom),e.left=VM(r.left,e.left),e}),tj(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ij,getElementRects:async function(e){const t=this.getOffsetParent||ij,n=this.getDimensions,r=await n(e.floating);return{reference:rj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=WF(e);return{width:t,height:n}},getScale:YF,isElement:_F,isRTL:function(e){return"rtl"===HF(e).direction}};function lj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cj(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=qF(e),u=a||o?[...c?VF(c):[],...VF(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=xF(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-WM(d)+"px "+-WM(a.clientWidth-(u+p))+"px "+-WM(a.clientHeight-(d+h))+"px "+-WM(u)+"px",threshold:VM(0,$M(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||lj(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(y){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?QF(e):null;return l&&function t(){const r=QF(e);m&&!lj(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const uj=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=ZM(n),s=JM(n),l="y"===rF(n),c=bF.has(i)?-1:1,u=o&&l?-1:1,d=QM(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},dj=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=QM(e,t),u={x:n,y:r},d=await o.detectOverflow(t,c),p=rF(ZM(a)),h=eF(p);let f=u[h],m=u[p];if(i){const e="y"===h?"bottom":"right";f=XM(f+d["y"===h?"top":"left"],f,f-d[e])}if(s){const e="y"===p?"bottom":"right";m=XM(m+d["y"===p?"top":"left"],m,m-d[e])}const g=l.fn({...t,[h]:f,[p]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[p]:s}}}}}},pj=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=QM(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=ZM(a),b=rF(s),v=ZM(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[dF(s)]:function(e){const t=dF(e);return[oF(e),t,oF(t)]}(s)),x="none"!==f;!p&&x&&w.push(...uF(s,m,f,k));const E=[s,...w],_=await l.detectOverflow(t,g),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(_[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=JM(e),a=aF(e),o=tF(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=dF(i)),[i,dF(i)]}(a,i,k);S.push(_[e[0]],_[e[1]])}if(T=[...T,{placement:a,overflows:S}],!S.every((e=>e<=0))){var C,A;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=E[e];if(t){if(!("alignment"===d&&b!==rF(t))||T.every((e=>rF(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var N;const e=null==(N=T.filter((e=>{if(x){const t=rF(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},hj=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=QM(e,t),u=await i.detectOverflow(t,c),d=ZM(a),p=JM(a),h="y"===rF(a),{width:f,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,v=f-u.left-u.right,k=$M(m-u[g],b),w=$M(f-u[y],v),x=!t.middlewareData.shift;let E=k,_=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=b),x&&!p){const e=VM(u.left,0),t=VM(u.right,0),n=VM(u.top,0),r=VM(u.bottom,0);h?_=f-2*(0!==e||0!==t?e+t:VM(u.left,u.right)):E=m-2*(0!==n||0!==r?n+r:VM(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:E});const S=await i.getDimensions(s.floating);return f!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},fj=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:a="referenceHidden",...o}=QM(e,t);switch(a){case"referenceHidden":{const e=gF(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:yF(e)}}}case"escaped":{const e=gF(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:yF(e)}}}default:return{}}}}},mj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=QM(e,t)||{};if(null==c)return{};const d=pF(u),p={x:n,y:r},h=aF(a),f=tF(h),m=await i.getDimensions(c),g="y"===h,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",k=o.reference[f]+o.reference[h]-p[h]-o.floating[f],w=p[h]-o.reference[h],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let E=x?x[v]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=s.floating[v]||o.floating[f]);const _=k/2-w/2,S=E/2-m[f]/2-1,T=$M(d[y],S),C=$M(d[b],S),A=T,N=E-m[f]-C,I=E/2-m[f]/2+_,R=XM(A,I,N),O=!l.arrow&&null!=JM(a)&&I!==R&&o.reference[f]/2-(I<A?T:C)-m[f]/2<0,P=O?I<A?I-A:I-N:0;return{[h]:p[h]+P,data:{[h]:R,centerOffset:I-R-P,...O&&{alignmentOffset:P}},reset:O}}}),gj=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=QM(e,t),u={x:n,y:r},d=rF(a),p=eF(d);let h=u[p],f=u[d];const m=QM(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var y,b;const e="y"===p?"width":"height",t=bF.has(ZM(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},yj=(e,t,n)=>{const r=new Map,a={platform:sj,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=fF(c,r,l),p=r,h={},f=0;for(let g=0;g<s.length;g++){var m;const{name:n,fn:o}=s[g],{x:y,y:b,data:v,reset:k}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:c,platform:{...i,detectOverflow:null!=(m=i.detectOverflow)?m:mF},elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=b?b:d,h={...h,[n]:{...h[n],...v}},k&&f<=50&&(f++,"object"==typeof k&&(k.placement&&(p=k.placement),k.rects&&(c=!0===k.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):k.rects),({x:u,y:d}=fF(c,p,l))),g=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}})(e,t,{...a,platform:o})};function bj(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const a={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...a,toJSON:()=>a}}function vj(e,t){return{contextElement:BD(e)?e:null==e?void 0:e.contextElement,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return bj();const{x:t,y:n,width:r,height:a}=e;return bj(t,n,r,a)}(r):n.getBoundingClientRect()}}}var kj=e=>({variable:e,reference:`var(${e})`}),wj={arrowSize:kj("--arrow-size"),arrowSizeHalf:kj("--arrow-size-half"),arrowBg:kj("--arrow-background"),transformOrigin:kj("--transform-origin"),arrowOffset:kj("--arrow-offset")};function xj(e,t){return{name:"transformOrigin",fn(n){var r,a,o,i;const{elements:s,middlewareData:l,placement:c,rects:u,y:d}=n,p=c.split("-")[0],h=(e=>"top"===e||"bottom"===e?"y":"x")(p),f=(null==(r=l.arrow)?void 0:r.x)||0,m=(null==(a=l.arrow)?void 0:a.y)||0,g=(null==t?void 0:t.clientWidth)||0,y=(null==t?void 0:t.clientHeight)||0,b=f+g/2,v=m+y/2,k=Math.abs((null==(o=l.shift)?void 0:o.y)||0),w=u.reference.height/2,x=y/2,E=(null==(i=e.offset)?void 0:i.mainAxis)??e.gutter,_="number"==typeof E?E+x:E??x,S=k>_,T={top:`${b}px calc(100% + ${_}px)`,bottom:`${b}px ${-_}px`,left:`calc(100% + ${_}px) ${v}px`,right:`${-_}px ${v}px`}[p],C=`${b}px ${u.reference.y+w-d}px`,A=Boolean(e.overlap)&&"y"===h&&S;return s.floating.style.setProperty(wj.transformOrigin.variable,A?C:T),{data:{transformOrigin:A?C:T}}}}}var Ej={name:"rects",fn:({rects:e})=>({data:e})},_j=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:a}=n.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:null!=r?`${r}px`:"",top:null!=a?`${a}px`:"",[o]:`calc(100% + ${wj.arrowOffset.reference})`}),{}}}};var Sj={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Tj(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Cj(e){return"function"==typeof e?e():"clipping-ancestors"===e?"clippingAncestors":e}function Aj(e,t,n){const r=e||t.createElement("div");return mj({element:r,padding:n.arrowPadding})}function Nj(e,t){if(null!=(t.offset??t.gutter))return uj((({placement:n})=>{var r,a;const o=((null==e?void 0:e.clientHeight)||0)/2,i=(null==(r=t.offset)?void 0:r.mainAxis)??t.gutter,s="number"==typeof i?i+o:i??o,{hasAlign:l}=function(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:null!=n}}(n),c=l?void 0:t.shift;return ED({crossAxis:(null==(a=t.offset)?void 0:a.crossAxis)??c,mainAxis:s,alignmentAxis:t.shift})}))}function Ij(e){if(!e.flip)return;const t=Cj(e.boundary);return pj({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip})}function Rj(e){if(!e.slide&&!e.overlap)return;const t=Cj(e.boundary);return dj({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:gj()})}function Oj(e){return hj({padding:e.overflowPadding,apply({elements:e,rects:t,availableHeight:n,availableWidth:r}){const a=e.floating,o=Math.round(t.reference.width),i=Math.round(t.reference.height);r=Math.floor(r),n=Math.floor(n),a.style.setProperty("--reference-width",`${o}px`),a.style.setProperty("--reference-height",`${i}px`),a.style.setProperty("--available-width",`${r}px`),a.style.setProperty("--available-height",`${n}px`)}})}function Pj(e){if(e.hideWhenDetached)return fj({strategy:"referenceHidden",boundary:Cj(e.boundary)??"clippingAncestors"})}function Lj(e,t,n={}){const{defer:r,...a}=n,o=r?RM:e=>e(),i=[];return i.push(o((()=>{const n="function"==typeof e?e():e,r="function"==typeof t?t():t;i.push(function(e,t,n={}){var r;const a=vj((null==(r=n.getAnchorElement)?void 0:r.call(n))??e,n.getAnchorRect);if(!t||!a)return;const o=Object.assign({},Sj,n),i=t.querySelector("[data-part=arrow]"),s=[Nj(i,o),Ij(o),Rj(o),Aj(i,t.ownerDocument,o),_j(i),xj({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),Oj(o),Pj(o),Ej],{placement:l,strategy:c,onComplete:u,onPositioned:d}=o,p=async()=>{var e;if(!a||!t)return;const n=await yj(a,t,{placement:l,middleware:s,strategy:c});null==u||u(n),null==d||d({placed:!0});const r=YD(t),i=Tj(r,n.x),p=Tj(r,n.y);t.style.setProperty("--x",`${i}px`),t.style.setProperty("--y",`${p}px`),o.hideWhenDetached&&((null==(e=n.middlewareData.hide)?void 0:e.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const h=t.firstElementChild;if(h){const e=JD(h);t.style.setProperty("--z-index",e.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:p,floatingElement:t}),null==d||d({placed:!0})):await p()},f=function(e){return e?!0===e?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}(o.listeners),m=o.listeners?cj(a,t,h,f):kD;return h(),()=>{null==m||m(),null==d||d({placed:!1})}}(n,r,a))}))),()=>{i.forEach((e=>null==e?void 0:e()))}}var Dj={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};var Mj=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Mj||{}),Fj="__init__";var jj="pointerdown.outside",Bj="focus.outside";function Hj(e){for(const t of e)if(BD(t)&&TM(t))return!0;return!1}var zj=e=>"clientY"in e;function Uj(e,t){if(!t||!zj(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,a=t.scrollWidth>t.clientWidth,o=a&&e.clientY>t.offsetTop+t.clientHeight;return!!function(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}({x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(a?16:0)},{x:e.clientX,y:e.clientY})&&(r||o)}function $j(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:a,onInteractOutside:o,defer:i,followControlledElements:s=!0}=t;if(!e)return;const l=qD(e),c=YD(e),u=function(e){const t={each(t){var n;for(let r=0;r<(null==(n=e.frames)?void 0:n.length);r+=1){const n=e.frames[r];n&&t(n)}},addEventListener:(e,n,r)=>(t.each((t=>{try{t.document.addEventListener(e,n,r)}catch{}})),()=>{try{t.removeEventListener(e,n,r)}catch{}}),removeEventListener(e,n,r){t.each((t=>{try{t.document.removeEventListener(e,n,r)}catch{}}))}};return t}(c),d=function(e){const t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,n,r)=>{try{null==t||t.addEventListener(e,n,r)}catch{}return()=>{try{null==t||t.removeEventListener(e,n,r)}catch{}}},removeEventListener:(e,n,r)=>{try{null==t||t.removeEventListener(e,n,r)}catch{}}}}(c);function p(t,r){if(!BD(r))return!1;if(!r.isConnected)return!1;if(WD(e,r))return!1;if(function(e,t){if(!zj(t)||!e)return!1;const n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}(e,t))return!1;if(s&&rM(e,r))return!1;const a=l.querySelector(`[aria-controls="${e.id}"]`);if(a){if(Uj(t,DM(a)))return!1}return!Uj(t,DM(e))&&!(null==n?void 0:n(r))}const h=new Set,f=UD(null==e?void 0:e.getRootNode());function m(t){function n(n){var r;const s=i&&!cM()?RM:e=>e(),l=n??t,c=(null==(r=null==l?void 0:l.composedPath)?void 0:r.call(l))??[null==l?void 0:l.target];s((()=>{const n=f?c[0]:dM(t);if(e&&p(t,n)){if(a||o){const t=wD(a,o);e.addEventListener(jj,t,{once:!0})}Gj(e,jj,{bubbles:!1,cancelable:!0,detail:{originalEvent:l,contextmenu:fM(l),focusable:Hj(c),target:n}})}}))}"touch"===t.pointerType?(h.forEach((e=>e())),h.add(bM(l,"click",n,{once:!0})),h.add(d.addEventListener("click",n,{once:!0})),h.add(u.addEventListener("click",n,{once:!0}))):n()}const g=new Set,y=setTimeout((()=>{g.add(bM(l,"pointerdown",m,!0)),g.add(d.addEventListener("pointerdown",m,!0)),g.add(u.addEventListener("pointerdown",m,!0))}),0);function b(t){(i?RM:e=>e())((()=>{var n;const a=(null==(n=null==t?void 0:t.composedPath)?void 0:n.call(t))??[null==t?void 0:t.target],i=f?a[0]:dM(t);if(e&&p(t,i)){if(r||o){const t=wD(r,o);e.addEventListener(Bj,t,{once:!0})}Gj(e,Bj,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:TM(i),target:i}})}}))}return cM()||(g.add(bM(l,"focusin",b,!0)),g.add(d.addEventListener("focusin",b,!0)),g.add(u.addEventListener("focusin",b,!0))),()=>{clearTimeout(y),h.forEach((e=>e())),g.forEach((e=>e()))}}function Vj(e,t){const{defer:n}=t,r=n?RM:e=>e(),a=[];return a.push(r((()=>{const n="function"==typeof e?e():e;a.push($j(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}function Gj(e,t,n){const r=new(e.ownerDocument.defaultView||window).CustomEvent(t,n);return e.dispatchEvent(r)}function Wj(e,t){return bM(qD(e),"keydown",(e=>{"Escape"===e.key&&(e.isComposing||null==t||t(e))}),{capture:!0})}var qj,Yj="layer:request-dismiss",Kj={layers:[],branches:[],recentlyRemoved:new Set,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 t;return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(null==(t=this.topMostPointerBlockingLayer())?void 0:t.node):-1)},isTopMost(e){const t=this.layers[this.count()-1];return(null==t?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter((t=>t.type===e))},getNestedLayersByType(e,t){const n=this.indexOf(e);return-1===n?[]:this.layers.slice(n+1).filter((e=>e.type===t))},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find((e=>e.type===t))},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!this.getNestedLayers(e).some((e=>WD(e.node,t)))||this.recentlyRemoved.size>0},isInBranch(e){return Array.from(this.branches).some((t=>WD(t,e)))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);if(!(t<0)){if(this.recentlyRemoved.add(e),OM((()=>this.recentlyRemoved.delete(e))),t<this.count()-1){this.getNestedLayers(e).forEach((t=>Kj.dismiss(t.node,e)))}this.layers.splice(t,1),this.syncLayers()}},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach(((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested");this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const n=this.countNestedLayersOfType(e.node,e.type);n>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${n}`)}))},indexOf(e){return this.layers.findIndex((t=>t.node===e))},dismiss(e,t){const n=this.indexOf(e);if(-1===n)return;const r=this.layers[n];var a,o;a=Yj,o=e=>{var t;null==(t=r.requestDismiss)||t.call(r,e),e.defaultPrevented||null==r||r.dismiss()},e.addEventListener(a,o,{once:!0}),function(e,t,n){const r=e.ownerDocument.defaultView||window,a=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});e.dispatchEvent(a)}(e,Yj,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function Xj(){Kj.layers.forEach((({node:e})=>{e.style.pointerEvents=Kj.isBelowPointerBlockingLayer(e)?"none":"auto"}))}function Qj(e,t){const n=qD(e),r=[];return Kj.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(qj=document.body.style.pointerEvents,queueMicrotask((()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")}))),null==t||t.forEach((e=>{const[t,n]=zM((()=>{const t=e();return BD(t)?t:null}),{timeout:1e3});t.then((e=>r.push(HM(e,{pointerEvents:"auto"})))),r.push(n)})),()=>{Kj.hasPointerBlockingLayer()||(queueMicrotask((()=>{n.body.style.pointerEvents=qj,n.body.removeAttribute("data-inert"),0===n.body.style.length&&n.body.removeAttribute("style")})),r.forEach((e=>e())))}}function Zj(e,t){const{defer:n}=t,r=n?RM:e=>e(),a=[];return a.push(r((()=>{const n=hD(e)?e():e;a.push(function(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e)return void _D("[@zag-js/dismissable] node is `null` or `undefined`");if(!e)return;const{onDismiss:r,onRequestDismiss:a,pointerBlocking:o,exclude:i,debug:s,type:l="dialog"}=t,c={dismiss:r,node:e,type:l,pointerBlocking:o,requestDismiss:a};Kj.add(c),Xj();const u=[o?Qj(e,t.persistentElements):void 0,Wj(e,(function(n){var a;Kj.isTopMost(e)&&(null==(a=t.onEscapeKeyDown)||a.call(t,n),!n.defaultPrevented&&r&&(n.preventDefault(),r()))})),Vj(e,{exclude:function(n){var r;if(!e)return!1;const a="function"==typeof i?i():i,o=Array.isArray(a)?a:[a],s=null==(r=t.persistentElements)?void 0:r.map((e=>e())).filter(BD);return s&&o.push(...s),o.some((e=>WD(e,n)))||Kj.isInNestedLayer(e,n)},onFocusOutside:function(e){var n,a;const o=dM(e.detail.originalEvent);Kj.isInBranch(o)||(null==(n=t.onFocusOutside)||n.call(t,e),null==(a=t.onInteractOutside)||a.call(t,e),e.defaultPrevented||(s&&console.log("onFocusOutside:",e.detail.originalEvent),null==r||r()))},onPointerDownOutside:function(n){var a,o;const i=dM(n.detail.originalEvent);Kj.isBelowPointerBlockingLayer(e)||Kj.isInBranch(i)||(null==(a=t.onPointerDownOutside)||a.call(t,n),null==(o=t.onInteractOutside)||o.call(t,n),n.defaultPrevented||(s&&console.log("onPointerDownOutside:",n.detail.originalEvent),null==r||r()))},defer:t.defer})];return()=>{Kj.remove(e),Xj(),function(e){e.style.pointerEvents=""}(e),u.forEach((e=>null==e?void 0:e()))}}(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}var Jj=()=>e=>Array.from(new Set(e)),eB=aD("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger").build(),tB=e=>new ND(e);tB.empty=()=>new ND({items:[]});var nB=e=>{var t;return(null==(t=e.ids)?void 0:t.label)??`combobox:${e.id}:label`},rB=e=>{var t;return(null==(t=e.ids)?void 0:t.control)??`combobox:${e.id}:control`},aB=e=>{var t;return(null==(t=e.ids)?void 0:t.input)??`combobox:${e.id}:input`},oB=e=>{var t;return(null==(t=e.ids)?void 0:t.content)??`combobox:${e.id}:content`},iB=e=>{var t;return(null==(t=e.ids)?void 0:t.positioner)??`combobox:${e.id}:popper`},sB=e=>{var t;return(null==(t=e.ids)?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},lB=e=>{var t;return(null==(t=e.ids)?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},cB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.itemGroup)?void 0:r.call(n,t))??`combobox:${e.id}:optgroup:${t}`},uB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.itemGroupLabel)?void 0:r.call(n,t))??`combobox:${e.id}:optgroup-label:${t}`},dB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.item)?void 0:r.call(n,t))??`combobox:${e.id}:option:${t}`},pB=e=>e.getById(oB(e)),hB=e=>e.getById(aB(e)),fB=e=>e.getById(iB(e)),mB=e=>e.getById(rB(e)),gB=e=>e.getById(sB(e)),yB=(e,t)=>{if(null==t)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return function(e,t){return(null==e?void 0:e.querySelector(t))??null}(pB(e),n)},bB=e=>{const t=hB(e);e.isActiveElement(t)||null==t||t.focus({preventScroll:!0})};function vB(e,t){const{context:n,prop:r,state:a,send:o,scope:i,computed:s,event:l}=e,c=r("translations"),u=r("collection"),d=!!r("disabled"),p=s("isInteractive"),h=!!r("invalid"),f=!!r("required"),m=!!r("readOnly"),g=a.hasTag("open"),y=a.hasTag("focused"),b=r("composite"),v=n.get("highlightedValue"),k=function(e={}){const{placement:t,sameWidth:n,fitViewport:r,strategy:a="absolute"}=e;return{arrow:{position:"absolute",width:wj.arrowSize.reference,height:wj.arrowSize.reference,[wj.arrowSizeHalf.variable]:`calc(${wj.arrowSize.reference} / 2)`,[wj.arrowOffset.variable]:`calc(${wj.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?Dj[t.split("-")[0]]:void 0,background:wj.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:a,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}({...r("positioning"),placement:n.get("currentPlacement")});function w(e){const t=u.getItemDisabled(e.item),r=u.getItemValue(e.item);return SD(r,(()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`)),{value:r,disabled:Boolean(t||t),highlighted:v===r,selected:n.get("value").includes(r)}}return{focused:y,open:g,inputValue:n.get("inputValue"),highlightedValue:v,highlightedItem:n.get("highlightedItem"),value:n.get("value"),valueAsString:s("valueAsString"),hasSelectedItems:s("hasSelectedItems"),selectedItems:n.get("selectedItems"),collection:r("collection"),multiple:!!r("multiple"),disabled:!!d,syncSelectedItems(){o({type:"SELECTED_ITEMS.SYNC"})},reposition(e={}){o({type:"POSITIONING.SET",options:e})},setHighlightValue(e){o({type:"HIGHLIGHTED_VALUE.SET",value:e})},clearHighlightValue(){o({type:"HIGHLIGHTED_VALUE.CLEAR"})},selectValue(e){o({type:"ITEM.SELECT",value:e})},setValue(e){o({type:"VALUE.SET",value:e})},setInputValue(e,t="script"){o({type:"INPUT_VALUE.SET",value:e,src:t})},clearValue(e){o(null!=e?{type:"ITEM.CLEAR",value:e}:{type:"VALUE.CLEAR"})},focus(){var e;null==(e=hB(i))||e.focus()},setOpen(e,t="script"){a.hasTag("open")!==e&&o({type:e?"OPEN":"CLOSE",src:t})},getRootProps(){return t.element({...eB.root.attrs,dir:r("dir"),id:(e=i,(null==(n=e.ids)?void 0:n.root)??`combobox:${e.id}`),"data-invalid":FD(h),"data-readonly":FD(m)});var e,n},getLabelProps:()=>t.label({...eB.label.attrs,dir:r("dir"),htmlFor:aB(i),id:nB(i),"data-readonly":FD(m),"data-disabled":FD(d),"data-invalid":FD(h),"data-required":FD(f),"data-focus":FD(y),onClick(e){var t;b||(e.preventDefault(),null==(t=gB(i))||t.focus({preventScroll:!0}))}}),getControlProps:()=>t.element({...eB.control.attrs,dir:r("dir"),id:rB(i),"data-state":g?"open":"closed","data-focus":FD(y),"data-disabled":FD(d),"data-invalid":FD(h)}),getPositionerProps:()=>t.element({...eB.positioner.attrs,dir:r("dir"),id:iB(i),style:k.floating}),getInputProps:()=>t.input({...eB.input.attrs,dir:r("dir"),"aria-invalid":jD(h),"data-invalid":FD(h),"data-autofocus":FD(r("autoFocus")),name:r("name"),form:r("form"),disabled:d,required:r("required"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",readOnly:m,placeholder:r("placeholder"),id:aB(i),type:"text",role:"combobox",defaultValue:n.get("inputValue"),"aria-autocomplete":s("autoComplete")?"both":"list","aria-controls":oB(i),"aria-expanded":g,"data-state":g?"open":"closed","aria-activedescendant":v?dB(i,v):void 0,onClick(e){e.defaultPrevented||r("openOnClick")&&p&&o({type:"INPUT.CLICK",src:"input-click"})},onFocus(){d||o({type:"INPUT.FOCUS"})},onBlur(){d||o({type:"INPUT.BLUR"})},onChange(e){o({type:"INPUT.CHANGE",value:e.currentTarget.value,src:"input-change"})},onKeyDown(e){if(e.defaultPrevented)return;if(!p)return;if(e.ctrlKey||e.shiftKey||function(e){return function(e){return e.nativeEvent??e}(e).isComposing||229===e.keyCode}(e))return;const t=r("openOnKeyPress"),n=e.ctrlKey||e.metaKey||e.shiftKey,a=!0,l={ArrowDown(e){(t||g)&&(o({type:e.altKey?"OPEN":"INPUT.ARROW_DOWN",keypress:a,src:"arrow-key"}),e.preventDefault())},ArrowUp(){(t||g)&&(o({type:e.altKey?"CLOSE":"INPUT.ARROW_UP",keypress:a,src:"arrow-key"}),e.preventDefault())},Home(e){n||(o({type:"INPUT.HOME",keypress:a}),g&&e.preventDefault())},End(e){n||(o({type:"INPUT.END",keypress:a}),g&&e.preventDefault())},Enter(e){var t;o({type:"INPUT.ENTER",keypress:a,src:"item-select"});const n=s("isCustomValue")&&r("allowCustomValue"),l=null!=v,c=r("alwaysSubmitOnEnter");if(g&&!n&&!c&&l&&e.preventDefault(),null==v)return;const u=yB(i,v);var d;(null==(d=u)?void 0:d.matches("a[href]"))&&(null==(t=r("navigate"))||t({value:v,node:u,href:u.href}))},Escape(){o({type:"INPUT.ESCAPE",keypress:a,src:"escape-key"}),e.preventDefault()}}[yM(e,{dir:r("dir")})];null==l||l(e)}}),getTriggerProps:(e={})=>t.button({...eB.trigger.attrs,dir:r("dir"),id:sB(i),"aria-haspopup":b?"listbox":"dialog",type:"button",tabIndex:e.focusable?void 0:-1,"aria-label":c.triggerLabel,"aria-expanded":g,"data-state":g?"open":"closed","aria-controls":g?oB(i):void 0,disabled:d,"data-invalid":FD(h),"data-focusable":FD(e.focusable),"data-readonly":FD(m),"data-disabled":FD(d),onFocus(){e.focusable&&o({type:"INPUT.FOCUS",src:"trigger"})},onClick(e){e.defaultPrevented||p&&hM(e)&&o({type:"TRIGGER.CLICK",src:"trigger-click"})},onPointerDown(e){p&&"touch"!==e.pointerType&&hM(e)&&(e.preventDefault(),queueMicrotask((()=>{var e;null==(e=hB(i))||e.focus({preventScroll:!0})})))},onKeyDown(e){if(e.defaultPrevented)return;if(b)return;const t={ArrowDown(){o({type:"INPUT.ARROW_DOWN",src:"arrow-key"})},ArrowUp(){o({type:"INPUT.ARROW_UP",src:"arrow-key"})}}[yM(e,{dir:r("dir")})];t&&(t(e),e.preventDefault())}}),getContentProps:()=>t.element({...eB.content.attrs,dir:r("dir"),id:oB(i),role:b?"listbox":"dialog",tabIndex:-1,hidden:!g,"data-state":g?"open":"closed","data-placement":n.get("currentPlacement"),"aria-labelledby":nB(i),"aria-multiselectable":!(!r("multiple")||!b)||void 0,"data-empty":FD(0===u.size),onPointerDown(e){hM(e)&&e.preventDefault()}}),getListProps:()=>t.element({...eB.list.attrs,role:b?void 0:"listbox","data-empty":FD(0===u.size),"aria-labelledby":nB(i),"aria-multiselectable":!(!r("multiple")||b)||void 0}),getClearTriggerProps:()=>t.button({...eB.clearTrigger.attrs,dir:r("dir"),id:lB(i),type:"button",tabIndex:-1,disabled:d,"data-invalid":FD(h),"aria-label":c.clearTriggerLabel,"aria-controls":aB(i),hidden:!n.get("value").length,onPointerDown(e){hM(e)&&e.preventDefault()},onClick(e){e.defaultPrevented||p&&o({type:"VALUE.CLEAR",src:"clear-trigger"})}}),getItemState:w,getItemProps(e){const n=w(e),a=n.value;return t.element({...eB.item.attrs,dir:r("dir"),id:dB(i,a),role:"option",tabIndex:-1,"data-highlighted":FD(n.highlighted),"data-state":n.selected?"checked":"unchecked","aria-selected":jD(n.highlighted),"aria-disabled":jD(n.disabled),"data-disabled":FD(n.disabled),"data-value":n.value,onPointerMove(){n.disabled||n.highlighted||o({type:"ITEM.POINTER_MOVE",value:a})},onPointerLeave(){if(e.persistFocus)return;if(n.disabled)return;const t=l.previous();(null==t?void 0:t.type.includes("POINTER"))&&o({type:"ITEM.POINTER_LEAVE",value:a})},onClick(e){(function(e){const t=e.currentTarget;if(!t)return!1;const n=t.localName;return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)})(e)||pM(e)||fM(e)||n.disabled||o({type:"ITEM.CLICK",src:"item-select",value:a})}})},getItemTextProps(e){const n=w(e);return t.element({...eB.itemText.attrs,dir:r("dir"),"data-state":n.selected?"checked":"unchecked","data-disabled":FD(n.disabled),"data-highlighted":FD(n.highlighted)})},getItemIndicatorProps(e){const n=w(e);return t.element({"aria-hidden":!0,...eB.itemIndicator.attrs,dir:r("dir"),"data-state":n.selected?"checked":"unchecked",hidden:!n.selected})},getItemGroupProps(e){const{id:n}=e;return t.element({...eB.itemGroup.attrs,dir:r("dir"),id:cB(i,n),"aria-labelledby":uB(i,n),"data-empty":FD(0===u.size),role:"group"})},getItemGroupLabelProps(e){const{htmlFor:n}=e;return t.element({...eB.itemGroupLabel.attrs,dir:r("dir"),id:uB(i,n),role:"presentation"})}}}var{guards:kB,createMachine:wB,choose:xB}={guards:{and:(...e)=>function(t){return e.every((e=>t.guard(e)))},or:(...e)=>function(t){return e.some((e=>t.guard(e)))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){var n;return null==(n=t(e))?void 0:n.actions}},{and:EB,not:_B}=kB,SB=wB({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){LM(e)},collection:tB.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"suggesting":"idle",context:({prop:e,bindable:t,getContext:n,getEvent:r})=>({currentPlacement:t((()=>({defaultValue:void 0}))),value:t((()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:uD,hash:e=>e.join(","),onChange(t){var r;const a=n(),o=a.get("selectedItems"),i=e("collection"),s=t.map((e=>o.find((t=>i.getItemValue(t)===e))||i.find(e)));a.set("selectedItems",s),null==(r=e("onValueChange"))||r({value:t,items:s})}}))),highlightedValue:t((()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){var n;const r=e("collection").find(t);null==(n=e("onHighlightChange"))||n({highlightedValue:t,highlightedItem:r})}}))),inputValue:t((()=>{let t=e("inputValue")||e("defaultInputValue");const n=e("value")||e("defaultValue");if(!t.trim()&&!e("multiple")){const r=e("collection").stringifyMany(n);t=xD(e("selectionBehavior"),{preserve:t||r,replace:r,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){var n;const a=r(),o=(a.previousEvent||a).src;null==(n=e("onInputValueChange"))||n({inputValue:t,reason:o})}}})),highlightedItem:t((()=>{const t=e("highlightedValue");return{defaultValue:e("collection").find(t)}})),selectedItems:t((()=>{const t=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(t)}}))}),computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:a}){n([()=>e.hash("value")],(()=>{r(["syncSelectedItems"])})),n([()=>e.get("inputValue")],(()=>{r(["syncInputValue"])})),n([()=>e.get("highlightedValue")],(()=>{r(["syncHighlightedItem","autofillInputValue"])})),n([()=>t("open")],(()=>{r(["toggleVisibility"])})),n([()=>t("collection").toString()],(()=>{a({type:"CHILDREN_CHANGE"})}))},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:xB([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:EB("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:EB("isCustomValue",_B("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:EB("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:EB("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:EB("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:EB("isOpenControlled","isCustomValue",_B("hasHighlightedItem"),_B("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:EB("isCustomValue",_B("hasHighlightedItem"),_B("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:EB("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:EB("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:EB("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:EB("isOpenControlled","isCustomValue",_B("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:EB("isCustomValue",_B("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:EB("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:EB("isOpenControlled","isCustomValue",_B("hasHighlightedItem"),_B("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:EB("isCustomValue",_B("hasHighlightedItem"),_B("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:EB("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:EB("isOpenControlled","isCustomValue",_B("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:EB("isCustomValue",_B("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:EB("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return!0===(r=n)||!1===r?n:!!(null==n?void 0:n({inputValue:t.get("inputValue")}));var r},restoreFocus:({event:e})=>{var t;const n=e.restoreFocus??(null==(t=e.previousEvent)?void 0:t.restoreFocus);return null==n||!!n},isChangeEvent:({event:e})=>{var t;return"INPUT.CHANGE"===(null==(t=e.previousEvent)?void 0:t.type)},autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){if(t("disableLayer"))return;return Zj((()=>pB(n)),{type:"listbox",defer:!0,exclude:()=>{return[hB(n),gB(n),(e=n,e.getById(lB(e)))];var e},onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackPlacement:({context:e,prop:t,scope:n})=>(e.set("currentPlacement",t("positioning").placement),Lj((()=>mB(n)||gB(n)),(()=>fB(n)),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const a=hB(n);let o=[];const i=a=>{const i=r.current().type.includes("POINTER"),s=e.get("highlightedValue");if(i||!s)return;const l=pB(n),c=t("scrollToIndexFn");if(c){return void c({index:t("collection").indexOf(s),immediate:a,getElement:()=>yB(n,s)})}const u=yB(n,s),d=RM((()=>{BM(u,{rootEl:l,block:"nearest"})}));o.push(d)},s=RM((()=>i(!0)));o.push(s);const l=PM(a,{attributes:["aria-activedescendant"],callback:()=>i(!1)});return o.push(l),()=>{o.forEach((e=>e()))}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){Lj((()=>mB(n)),(()=>fB(n)),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedValue({context:e,event:t}){null!=t.value&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){var t;const{context:n,prop:r}=e,a=r("collection"),o=n.get("highlightedValue");if(!o||!a.has(o))return;const i=r("multiple")?lD(n.get("value"),o):[o];null==(t=r("onSelect"))||t({value:i,itemValue:o}),n.set("value",i);const s=xD(r("selectionBehavior"),{preserve:n.get("inputValue"),replace:a.stringifyMany(i),clear:""});n.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){OM((()=>{const r=e.get("highlightedValue");if(null==r)return;const a=yB(n,r),o=pB(n),i=t("scrollToIndexFn");if(i){i({index:t("collection").indexOf(r),immediate:!0,getElement:()=>yB(n,r)})}else BM(a,{rootEl:o,block:"nearest"})}))},selectItem(e){const{context:t,event:n,flush:r,prop:a}=e;null!=n.value&&r((()=>{var e;const r=a("multiple")?lD(t.get("value"),n.value):[n.value];null==(e=a("onSelect"))||e({value:r,itemValue:n.value}),t.set("value",r);const o=xD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(r),clear:""});t.set("inputValue",o)}))},clearItem(e){const{context:t,event:n,flush:r,prop:a}=e;null!=n.value&&r((()=>{const e=sD(t.get("value"),n.value);t.set("value",e);const r=xD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(e),clear:""});t.set("inputValue",r)}))},setInitialFocus({scope:e}){RM((()=>{bB(e)}))},setFinalFocus({scope:e}){RM((()=>{const t=gB(e);null==(null==t?void 0:t.dataset.focusable)?bB(e):(e=>{const t=gB(e);e.isActiveElement(t)||null==t||t.focus({preventScroll:!0})})(e)}))},syncInputValue({context:e,scope:t,event:n}){const r=hB(t);r&&(r.value=e.get("inputValue"),queueMicrotask((()=>{"INPUT.CHANGE"!==n.current().type&&function(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;const t=e.value.length;e.setSelectionRange(t,t)}catch{}}(r)})))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=xD(t("selectionBehavior"),{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",r)},setValue(e){const{context:t,flush:n,event:r,prop:a}=e;n((()=>{t.set("value",r.value);const e=xD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(r.value),clear:""});t.set("inputValue",e)}))},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n((()=>{t.set("value",[]);const e=xD(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",e)}))},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>yB(t,r)})}else{const e=pB(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:n}){var r;const a=TB(t);null==(r=e("onOpenChange"))||r({open:!0,reason:a,value:n.get("value")})},invokeOnClose({prop:e,event:t,context:n}){var r;const a=TB(t);null==(r=e("onOpenChange"))||r({open:!1,reason:a,value:n.get("value")})},highlightFirstItem({context:e,prop:t,scope:n}){(pB(n)?queueMicrotask:RM)((()=>{const n=t("collection").firstValue;n&&e.set("highlightedValue",n)}))},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(pB(n)?queueMicrotask:RM)((()=>{const n=t("collection").lastValue;n&&e.set("highlightedValue",n)}))},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),a=t("collection");r?(n=a.getNextValue(r),!n&&t("loopFocus")&&(n=a.firstValue)):n=a.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),a=t("collection");r?(n=a.getPreviousValue(r),!n&&t("loopFocus")&&(n=a.lastValue)):n=a.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){RM((()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)}))},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){RM((()=>{let r=null;r=n("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue,r&&e.set("highlightedValue",r)}))},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){RM((()=>{const r=t("collection");let a=null;a=n("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue,a&&e.set("highlightedValue",a)}))},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:a}){const o=hB(a),i=n("collection");if(!t("autoComplete")||!o||!r.keypress)return;const s=i.stringify(e.get("highlightedValue"));RM((()=>{o.value=s||e.get("inputValue")}))},syncSelectedItems(e){queueMicrotask((()=>{const{context:t,prop:n}=e,r=n("collection"),a=t.get("value"),o=a.map((e=>t.get("selectedItems").find((t=>r.getItemValue(t)===e))||r.find(e)));t.set("selectedItems",o);const i=xD(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(a),clear:""});t.set("inputValue",i)}))},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function TB(e){return(e.previousEvent||e).src}Jj()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]),Jj()(["htmlFor"]),Jj()(["id"]),Jj()(["item","persistFocus"]);var CB=void 0!==globalThis.document?Z.useLayoutEffect:Z.useEffect;function AB(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=Z.useState(t),[a,o]=Z.useState(r),i=void 0!==e().value,s=Z.useRef(a);s.current=i?e().value:a;const l=Z.useRef(s.current);CB((()=>{l.current=s.current}),[a,e().value]);return{initial:r,ref:s,get:function(){return i?e().value:a},set(t){(e().sync?ue.flushSync:vD)((()=>(t=>{var r,a;const s=l.current,c=hD(t)?t(s):t;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:c,prev:s}),i||o(c),n(c,s)||null==(a=(r=e()).onChange)||a.call(r,c,s)})(t)))},invoke(t,n){var r,a;null==(a=(r=e()).onChange)||a.call(r,t,n)},hash(t){var n,r;return(null==(r=(n=e()).hash)?void 0:r.call(n,t))??String(t)}}}AB.cleanup=e=>{Z.useEffect((()=>e),[])},AB.ref=e=>{const t=Z.useRef(e);return{get:()=>t.current,set:e=>{t.current=e}}};var NB=(e,t)=>{const n=Z.useRef(!1),r=Z.useRef(!1);Z.useEffect((()=>{if(n.current&&r.current)return t();r.current=!0}),[...(e??[]).map((e=>"function"==typeof e?e():e))]),Z.useEffect((()=>(n.current=!0,()=>{n.current=!1})),[])};function IB(e,t={}){var n,r,a,o;const i=Z.useMemo((()=>{const{id:e,ids:n,getRootNode:r}=t;return function(e){const t=()=>{var t;return(null==(t=e.getRootNode)?void 0:t.call(e))??document},n=()=>qD(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:()=>KD(t()),isActiveElement:$D,getById:e=>t().getElementById(e)}}({id:e,ids:n,getRootNode:r})}),[t]),s=(...t)=>{e.debug&&console.log(...t)},l=function(e){const t=RB(e);return function(e){return t.current[e]}}((null==(n=e.props)?void 0:n.call(e,{props:ED(t),scope:i}))??t),c=RB(null==(r=e.context)?void 0:r.call(e,{prop:l,bindable:AB,scope:i,flush:OB,getContext:()=>u,getComputed:()=>E,getRefs:()=>y,getEvent:()=>m()})),u={get(e){var t;return null==(t=c.current)?void 0:t[e].ref.current},set(e,t){var n;null==(n=c.current)||n[e].set(t)},initial(e){var t;return null==(t=c.current)?void 0:t[e].initial},hash(e){var t,n;const r=null==(t=c.current)?void 0:t[e].get();return null==(n=c.current)?void 0:n[e].hash(r)}},d=Z.useRef(new Map),p=Z.useRef(null),h=Z.useRef(null),f=Z.useRef({type:""}),m=()=>({...f.current,current:()=>f.current,previous:()=>h.current}),g=()=>({..._,matches:(...e)=>e.includes(_.ref.current),hasTag(t){var n,r;return!!(null==(r=null==(n=e.states[_.ref.current])?void 0:n.tags)?void 0:r.includes(t))}}),y=function(e){const t=Z.useRef(e);return{get:e=>t.current[e],set(e,n){t.current[e]=n}}}((null==(a=e.refs)?void 0:a.call(e,{prop:l,context:u}))??{}),b=()=>({state:g(),context:u,event:m(),prop:l,send:C,action:v,guard:k,track:NB,refs:y,computed:E,flush:OB,scope:i,choose:x}),v=t=>{const n=hD(t)?t(b()):t;if(!n)return;const r=n.map((t=>{var n,r;const a=null==(r=null==(n=e.implementations)?void 0:n.actions)?void 0:r[t];return a||_D(`[zag-js] No implementation found for action "${JSON.stringify(t)}"`),a}));for(const e of r)null==e||e(b())},k=t=>{var n,r;return hD(t)?t(b()):null==(r=null==(n=e.implementations)?void 0:n.guards)?void 0:r[t](b())},w=t=>{const n=hD(t)?t(b()):t;if(!n)return;const r=n.map((t=>{var n,r;const a=null==(r=null==(n=e.implementations)?void 0:n.effects)?void 0:r[t];return a||_D(`[zag-js] No implementation found for effect "${JSON.stringify(t)}"`),a})),a=[];for(const e of r){const t=null==e?void 0:e(b());t&&a.push(t)}return()=>a.forEach((e=>null==e?void 0:e()))},x=e=>{return(t=e,null==t?[]:Array.isArray(t)?t:[t]).find((e=>{let t=!e.guard;return(e=>"string"==typeof e)(e.guard)?t=!!k(e.guard):hD(e.guard)&&(t=e.guard(b())),t}));var t},E=t=>{SD(e.computed,(()=>"[zag-js] No computed object found on machine"));return(0,e.computed[t])({context:u,event:m(),prop:l,refs:y,scope:i,computed:E})},_=AB((()=>({defaultValue:e.initialState({prop:l}),onChange(t,n){var r,a,o,i;if(n){const e=d.current.get(n);null==e||e(),d.current.delete(n)}n&&v(null==(r=e.states[n])?void 0:r.exit),v(null==(a=p.current)?void 0:a.actions);const s=w(null==(o=e.states[t])?void 0:o.effects);if(s&&d.current.set(t,s),n===Fj){v(e.entry);const t=w(e.effects);t&&d.current.set(Fj,t)}v(null==(i=e.states[t])?void 0:i.entry)}}))),S=Z.useRef(void 0),T=Z.useRef(Mj.NotStarted);CB((()=>{queueMicrotask((()=>{const e=T.current===Mj.Started;T.current=Mj.Started,s(e?"rehydrating...":"initializing...");const t=S.current??_.initial;_.invoke(t,e?_.get():Fj)}));const t=d.current,n=_.ref.current;return()=>{s("unmounting..."),S.current=n,T.current=Mj.Stopped,t.forEach((e=>null==e?void 0:e())),d.current=new Map,p.current=null,queueMicrotask((()=>{v(e.exit)}))}}),[]);const C=t=>{queueMicrotask((()=>{var n,r;if(T.current!==Mj.Started)return;h.current=f.current,f.current=t;let a="ref"in _?_.ref.current:_.get();const o=(null==(n=e.states[a].on)?void 0:n[t.type])??(null==(r=e.on)?void 0:r[t.type]),i=x(o);if(!i)return;p.current=i;const l=i.target??a;s("transition",t.type,i.target||a,`(${i.actions})`);const c=l!==a;c?ue.flushSync((()=>_.set(l))):i.reenter&&!c?_.invoke(a,a):v(i.actions??[])}))};return null==(o=e.watch)||o.call(e,b()),{state:g(),send:C,context:u,prop:l,scope:i,refs:y,computed:E,event:m(),getStatus:()=>T.current}}function RB(e){const t=Z.useRef(e);return t.current=e,t}function OB(e){queueMicrotask((()=>{ue.flushSync((()=>e()))}))}var PB,LB=(PB=e=>e,new Proxy({},{get:(e,t)=>"style"===t?e=>PB({style:e}).style:PB}));function DB(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function MB(...e){return t=>{let n=!1;const r=e.map((e=>{const r=DB(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():DB(e[t],null)}}}}function FB(...e){return Z.useCallback(MB(...e),e)}function jB(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function BB(){return BB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BB.apply(null,arguments)}function HB(e,t){return(HB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var zB=function(){return zB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},zB.apply(this,arguments)};function UB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function $B(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
39
39
  /*!
40
40
  * content-type
41
41
  * Copyright(c) 2015 Douglas Christopher Wilson
@@ -67,7 +67,7 @@ var $H={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const Az={search:"IoSearch",thumbsUp:"LuThumbsUp",thumbsDown:"LuThumbsDown",messageCopy:"LuCopy",messageCopied:"LuCheck",messageRevise:"FiEdit",codeCopy:"LuCopy",codeCopied:"LuCheck",openLinkInNewTab:"LuArrowUpRight",openLinkInSameTab:"LuCornerDownLeft",newLine:"LuCornerDownRight",breadcrumbSeparator:"FaChevronRight",switchToSearch:"IoSearch",switchToChat:"LuSparkles",chatSubmit:"IoSend",close:"IoCloseOutline",info:"IoInformationCircleOutline",command:"LuCommand"};function Nz({iconKey:e,...t}){var n;const r=Az[e],a=r?{builtIn:r}:{custom:""},{baseSettings:o}=JO(),i=(null==(n=o.customIcons)?void 0:n[e])||a;return Vh.jsx(Cz,{"data-icon":e,iconSettings:i,...t})}const Iz=Z.createContext(null);function Rz(e){const t=Z.useContext(Iz);if(!t)throw new Error(`${e} must be used within Combobox.Root`);return t}function Oz(){const e=Z.useContext(Iz);return(null==e?void 0:e.items)??[]}const Pz=Z.forwardRef((function(e,t){const{items:n,defaultValue:r,onValueChange:a,multiple:o=!1,placeholder:i,name:s,id:l,disabled:c,required:u,invalid:d=!1,autoFocus:p,className:h,getRootNode:f,children:m}=e,g=Z.useId(),y=l??g,[b,v]=Z.useState(n),k=Z.useMemo((()=>tB({items:b,itemToValue:e=>e.value,itemToString:e=>e.label})),[b]),w=vB(IB(SB,{id:y,collection:k,defaultValue:r??[],onValueChange(e){null==a||a(e.value)},onOpenChange(){v(n)},onInputValueChange({inputValue:e}){const t=n.filter((t=>t.label.toLowerCase().includes(e.toLowerCase())));v(t.length>0?t:[])},multiple:o,selectionBehavior:o?"clear":"replace",placeholder:i,openOnClick:!0,name:s,disabled:c,required:u,invalid:d,autoFocus:p,closeOnSelect:!0,getRootNode:f}),LB),x=Z.useMemo((()=>({api:w,invalid:d,items:b})),[w,d,b]);return Vh.jsx(Iz.Provider,{value:x,children:Vh.jsx("div",{ref:t,...w.getRootProps(),className:h,"data-invalid":d?"":void 0,children:m})})})),Lz=Z.forwardRef((function(e,t){const{api:n,invalid:r}=Rz("ComboboxControl"),a=n.getControlProps();return Vh.jsx("div",{ref:t,...a,"data-invalid":r?"":void 0,"data-state":n.open?"open":"closed",...e})})),Dz=Z.forwardRef((function(e,t){const{api:n}=Rz("ComboboxInput"),r=n.getInputProps(),a=FB(t,r.ref);return Vh.jsx("input",{...r,ref:a,"data-part":"input","data-state":n.open?"open":"closed",...e})})),Mz=Z.forwardRef((function(e,t){const{api:n}=Rz("ComboboxTrigger"),r=n.getTriggerProps();return Vh.jsx("button",{type:"button",...r,ref:t,"data-part":"trigger","data-state":n.open?"open":"closed","aria-label":"Toggle listbox",...e})})),Fz=Z.forwardRef((function(e,t){const{api:n}=Rz("ComboboxPositioner");return Vh.jsx("div",{ref:t,...n.getPositionerProps(),...e})})),jz=Z.forwardRef((function(e,t){const{api:n}=Rz("ComboboxContent"),r=n.getContentProps();return Vh.jsx("ul",{ref:t,...r,"data-part":"content","data-state":n.open?"open":"closed",...e})})),Bz=Z.forwardRef((function({item:e,...t},n){var r;const{api:a}=Rz("ComboboxItem"),o=a.getItemProps({item:e}),i=null==(r=a.getItemState)?void 0:r.call(a,{item:e});return Vh.jsx("li",{ref:n,...o,"data-part":"item","data-value":e.value,"data-highlighted":(null==i?void 0:i.highlighted)?"":void 0,"data-state":(null==i?void 0:i.selected)?"checked":"unchecked",...t})})),Hz=Z.forwardRef((function(e,t){return Vh.jsx("span",{ref:t,"data-part":"item-text",...e})})),zz=Z.forwardRef((function(e,t){const{api:n}=Rz("ComboboxSelectedTags"),r=n.selectedItems??[];return 0===r.length?null:Vh.jsx("div",{ref:t,"data-part":"selected-tags",...e,children:r.map((e=>Vh.jsxs("span",{"data-part":"tag","data-value":e.value,children:[Vh.jsx("span",{"data-part":"tag-text",children:e.label}),Vh.jsx("button",{type:"button","data-part":"tag-clear",onClick:t=>{t.preventDefault(),t.stopPropagation(),n.clearValue(e.value)},"aria-label":`Remove ${e.label}`,children:Vh.jsx(Cz,{iconSettings:{builtIn:"IoCloseOutline"}})})]},e.value)))})})),Uz=Z.forwardRef((function({item:e,children:t,...n},r){var a;const{api:o}=Rz("ComboboxItemIndicator"),i=null==(a=o.getItemState)?void 0:a.call(o,{item:e});return(null==i?void 0:i.selected)?Vh.jsx("span",{ref:r,"data-part":"item-indicator","data-state":"checked",...n,children:t??"✓"}):null})),$z={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:"",combobox:[]};function Vz(e){return e?null==e?void 0:e.reduce(((e,t)=>{var n;return"combobox"===t.inputType?e[t.name]="defaultValue"in t&&null!=t.defaultValue?null==(n=t.defaultValue)?[]:Array.isArray(n)?n:""===n?[]:[n]:$z.combobox:"defaultValue"in t&&t.defaultValue?e[t.name]=t.defaultValue:t.inputType&&(e[t.name]=$z[t.inputType]),e}),{}):{}}const Gz=Z.createContext(void 0);const Wz=({children:e})=>{const t=function(){var e;const[t,n]=Z.useState(null),[r,a]=Z.useState(null),[o,i]=Z.useState(!1),{conversation:s}=rP(),l=rD(),{logEvent:c}=bP(),u=()=>{var e;n(null),a(null),i(!1),"close_modal"===(null==(e=null==t?void 0:t.buttons.close)?void 0:e.action)&&(null==l||l.setOpen(!1))},d=Z.useMemo((()=>null==t?void 0:t.fields.map((e=>{const t={...e};return"_type"in e&&"include_chat_session"===e._type&&(t.inputType="checkbox",s.id?(t.isHidden=e.isHidden,t.isRequired=e.isRequired):(t.isHidden=!0,t.isRequired=!1)),t}))),[null==t?void 0:t.fields,s.id]),p=null==d?void 0:d.find((e=>"_type"in e&&"include_chat_session"===e._type)),h=Z.useMemo((()=>Vz(d)),[d]),{control:f,handleSubmit:m,formState:{errors:g,isSubmitting:y},setError:b,reset:v}=eD({defaultValues:h});Z.useEffect((()=>{h&&v(h)}),[v,h]);const k=m((async e=>{const n=s.id&&p&&e[p.name]?s:null;try{if(await(null==t?void 0:t.buttons.submit.onSubmit({values:e,conversation:n})),r){const e="name"in r;c({eventName:"user_escalation_indicated",properties:{escalationType:"support_form",getHelpOptionName:e?null==r?void 0:r.name:void 0,toolCallActionLabel:e||null==r?void 0:r.label,conversation:n||s}})}c({eventName:"ai_chat_form_submitted",properties:{conversation:n||s,values:e}}),i(!0),(null==t?void 0:t.successView)||u()}catch(a){b("root.serverError",{message:a instanceof Error?a.message:"Something went wrong."})}})),w=null==(e=null==g?void 0:g.root)?void 0:e.serverError;return{form:t,openForm:(e,t)=>{n(e),a(t||null)},closeForm:u,handleSubmit:k,isSuccess:o,isSubmitting:y,formError:w,fields:d,errors:g,control:f,defaultValues:h}}();return Vh.jsx(Gz.Provider,{value:t,children:e})},qz=()=>{const e=Z.useContext(Gz);if(!e)throw new Error("useChatForm must be used within a ChatFormProvider");return e},Yz=Z.createContext(void 0),Kz=({children:e,widget:t})=>Vh.jsx(Yz.Provider,{value:t,children:e}),Xz=()=>Z.useContext(Yz),Qz=e=>{const[t,n]=Z.useState(!1);return Z.useEffect((()=>{const t=window.matchMedia(e);n(t.matches);const r=e=>n(e.matches);return t.addEventListener("change",r),()=>t.removeEventListener("change",r)}),[e]),t},Zz=new TextEncoder;async function Jz(e,t){return n=await async function(e,t){return crypto.subtle.digest(e.toUpperCase(),"string"==typeof t?Zz.encode(t):new Uint8Array(t))}(e,t),[...new Uint8Array(n)].map((e=>e.toString(16).padStart(2,"0"))).join("");var n}const eU={getSolution:async()=>{},prefetchSolution:()=>{},invalidateSolution:()=>{}},tU=async e=>{try{const t=await fetch(e,{method:"GET"});if(!t.ok)throw new Error(`Failed to fetch challenge: ${t.statusText}`);const n=await t.json(),{challenge:r,algorithm:a,salt:o,maxnumber:i}=n,{promise:s}=await function(e,t,n="SHA-256",r=1e6,a=0){const o=new AbortController,i=Date.now();return{promise:(async()=>{for(let s=a;s<=r;s+=1){if(o.signal.aborted)return null;if(await Jz(n,t+s)===e)return{number:s,took:Date.now()-i}}return null})(),controller:o}}(r,o,a,i),l=await s||void 0;if(!l)throw new Error("Challenge not solved");return{number:l.number,...n}}catch(t){console.warn("Error solving captcha:",t)}},nU={type:"function",function:{name:"provideLinks",description:"Provides links",parameters:{type:"object",properties:{links:{anyOf:[{type:"array",items:{type:"object",properties:{label:{type:["string","null"]},url:{type:"string"},title:{type:["string","null"]},description:{type:["string","null"]},type:{anyOf:[{anyOf:[{type:"string",enum:["documentation","site","discourse_post","github_issue","github_discussion","stackoverflow_question","discord_forum_post","discord_message","custom_question_answer"]},{type:"string"}]},{type:"null"}]},breadcrumbs:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]}},required:["url"],additionalProperties:!0}},{type:"null"}]},text:{type:"string"}},required:["text"],additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"},function:e=>e,parse:JSON.parse}},rU=()=>{const{chatId:e,isSharedChat:t,setConversation:n,conversation:r,resetConversation:a}=rP(),{baseSettings:o,aiChatSettings:i}=JO(),{aiApiBaseUrl:s,shouldBypassCaptcha:l,filters:c}=o,u=rD(),{getSolution:d,prefetchSolution:p,invalidateSolution:h}=(({fetchUrl:e,shouldBypassCaptcha:t=!1,shouldMakeInitialRequest:n=!0})=>{if(t)return eU;const r=Z.useRef(null),a=Z.useCallback((()=>{r.current||(r.current=tU(e))}),[e]),o=Z.useCallback((async()=>{let t=await r.current;return t||(r.current=tU(e),t=await r.current),r.current=null,t}),[e]),i=Z.useCallback((()=>{r.current=null}),[]);return Z.useEffect((()=>{n&&a()}),[a,n]),{getSolution:o,prefetchSolution:a,invalidateSolution:i}})({fetchUrl:`${s}/v1/challenge`,shouldBypassCaptcha:l,shouldMakeInitialRequest:!u||u.isOpen}),f=new db({baseURL:`${s}/v1`,apiKey:o.apiKey??"",dangerouslyAllowBrowser:!0}),{onInputMessageChange:m,getTools:g,prompts:y,model:b,filters:v,onToolCall:k}=i,[w,x]=Z.useState(""),E=Z.useRef(null);Z.useEffect((()=>{null==m||m(w)}),[w]);const[_,S]=Z.useState([]),[T,C]=Z.useState(!1),[A,N]=Z.useState(!1),[I,R]=Z.useState(null),[O,P]=Z.useState(null),[L,D]=Z.useState([]),[M,F]=Z.useState({}),j=Z.useRef([]),B=Z.useRef(null),{logEvent:H,getLatestConversation:z}=bP(),U=null==y?void 0:y.map(((e,t)=>({id:`system-${Date.now().toString()}-${Kh(4)}-${t}`,role:"system",content:e}))),[$,V]=Z.useState(!!e);Z.useEffect((()=>{if(e){const{apiKey:t,analyticsApiBaseUrl:r}=o;(async function(e,t,n){try{const r=`${n}/conversations/${e}`,a=await fetch(r,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});if(!a.ok){const e=await a.text();throw new Error(`Failed to get conversation: ${e}`)}return a.json()}catch(I){console.warn("Error in getConversation:",I)}})(e,t,r).then((e=>{if(e){H({eventName:"shared_chat_loaded",properties:{conversation:e}}),V(!1),n({...e});const t=e.messages.map((e=>({...e,content:bH(e.content)})));S(t),j.current=t}}))}}),[e]);const G=e=>{R(e),S((t=>{const n=[...t],r=n[n.length-1];return r&&(r.content=(e=>{switch(e.code){case 400:return e.message;case 403:return`There seems to be a configuration error. Please contact ${o.organizationDisplayName??"Administrator"}`;default:return"Hmm.. \n\nIt seems I might be having some issues right now. Please clear the chat and try again."}})(e)),n})),C(!1),N(!1),h(),p()},W=!w.trim()&&!L.length||T,q=async(n=w)=>{if(W&&(!n||0===n.trim().length))return;C(!0);const r=O?2===_.length:0===_.length,a=function(e,t,n){if(!e)return;const r=n?vP(e):"",a=_P(t),o={workflow:SP(e),attachments:t};return{context:TP([r,a]),attributes:o}}(O,L,r);let o;const i=_P(L);o=L.length&&i?[{type:"text",text:i}]:n;const s={id:`${Date.now().toString()}-${Kh(4)}-1`,role:"user",content:o,metadata:a},u=[..._.length?[]:U,s];if(t&&e){AP();const e=j.current.map(((e,t)=>({id:`${e.id}-${Kh(6)}-${t}`,role:e.role,..."assistant"===e.role?{links:e.links??[]}:{},content:e.content,metadata:e.metadata,tool_calls:e.tool_calls})));S([...e,...u]),j.current=[...e,...u]}else S((e=>[...e,...u])),j.current=[...j.current,...u];D([]),x(""),H({eventName:"user_message_submitted",properties:{}},j.current);const h=z(),m=[nU,...(null==g?void 0:g({conversation:h}))||[]];try{const e={model:b,messages:j.current,stream:!0,tools:m,tool_choice:"auto"},t=await d(),n=t?btoa(JSON.stringify(t)):null,r=c||v?JSON.stringify({...c,...v}):void 0,a={};!l&&n&&(a["X-INKEEP-CHALLENGE-SOLUTION"]=n),r&&(a["inkeep-filters"]=r);const o=f.beta.chat.completions.stream(e,Object.keys(a).length>0?{headers:a}:void 0),i={id:`${Date.now().toString()}-${Kh(4)}-2`,role:"assistant",content:"",links:[],tool_calls:[]};S((e=>[...e,i])),o.on("content",((e,t)=>{N(!0),i.content=t,S((e=>{const t=[...e],n=t.findIndex((e=>e.id===i.id));return-1===n?[...t,i]:(t[n]={...i},t)}))})),o.on("tool_calls.function.arguments.done",(async e=>{var t,n,r,a;const{name:s,arguments:l}=e,c=null==m?void 0:m.find((e=>e.function.name===s));if(!c)return;const u=("parse"in c.function?c.function.parse:JSON.parse)(l),d=null==(n=(t=c.function).function)?void 0:n.call(t,u,o);if("provideLinks"===s)i.links=u.links??[];else{const e=(null==(r=c.renderMessageButtons)?void 0:r.call(c,{args:u,execution:d}))??[];e.length>0&&F((t=>{const n=t[i.id]??[],r=new Set(n.map((e=>e.label))),a=e.filter((e=>!r.has(e.label)));return{...t,[i.id]:[...n,...a]}}))}null==(a=i.tool_calls)||a.push({id:"call_"+Kh(24),type:"function",function:{name:s,arguments:l}}),S((e=>{const t=[...e],n=t.findIndex((e=>e.id===i.id));return t[n]={...i},t})),null==k||k(e,{conversation:{...z(),messages:[...j.current,i]}})})),o.on("error",G),o.finalChatCompletion().then((async()=>{j.current=[...j.current,i],B.current=null,C(!1),N(!1),p(),await H({eventName:"assistant_message_received",properties:{}},j.current),H({eventName:"assistant_answer_displayed",properties:{}})})).catch((e=>{e instanceof Nf||console.warn(e)})),B.current=o.controller}catch(y){G(y),C(!1),N(!1)}},Y=()=>{R(null),S([]),j.current=[],a(),F({}),D([]),AP(),P(null),h(),p(),H({eventName:"chat_clear_button_clicked",properties:{conversation:r}})},{openForm:K}=qz(),X=Xz();Z.useImperativeHandle(i.chatFunctionsRef,(()=>({submitMessage:q,updateInputMessage(e){x(e)},clearChat:Y,openForm:e=>{null==X||X.setView("chat"),K(e)},focusInput:()=>{var e;null==(e=E.current)||e.focus()}})));const Q=Qz("(max-width: 768px)");return{messages:_,input:w,isLoading:T,isStreaming:A,isLoadingConversation:$,error:I,isSubmitDisabled:W,handleInputChange:e=>{const t=e.target.value;x(t)},handleInputKeyDown:e=>{"Enter"!==e.key||e.shiftKey||W||e.nativeEvent.isComposing||(e.preventDefault(),q())},handleSubmit:q,stop:()=>{B.current&&(B.current.abort(),B.current=null),C(!1),N(!1),p()},clear:Y,handleWorkflow:e=>{P(e);const{initialReplyMessage:t,displayName:n}=e,r={id:_.length.toString()+Kh(4),role:"user",content:n},a={id:(_.length+1).toString()+Kh(4),role:"assistant",content:t,links:[]},o=[{id:`system-${Date.now().toString()}-${Kh(4)}-${e.id}`,role:"system",content:`Company has asked user to follow this guided workflow:\n${vP(e)}`},...U,r,a];S(o),D([])},selectedWorkflow:O,messageAttachments:L,setMessageAttachments:D,addAttachment:e=>{D((t=>[...t,e]))},messageButtons:M,isEmpty:0===_.length,inputRef:E,isMobile:Q}};const aU=Z.createContext(void 0);function oU(){const{baseSettings:e}=JO(),{apiKey:t,analyticsApiBaseUrl:n,analyticsProperties:r}=e,[a,o]=Z.useState(null),[i,s]=Z.useState({}),{conversation:l}=rP(),{messages:c,selectedWorkflow:u}=gG(),{userProperties:d}=pP(),{logEvent:p}=bP(),h=Z.useCallback((async(e,a,o=[])=>{const i=await async function(e){try{const{type:t,messageId:n,reasons:r=[],apiKey:a,apiUrl:o,userProperties:i,properties:s}=e,l=`${o}/feedback`,c={type:t,messageId:n,createdAt:(new Date).toISOString(),userProperties:i,properties:s};"negative"===t&&(c.reasons=r);const u=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(c)});if(!u.ok){const e=await u.text();throw new Error(`Failed to send feedback: ${e}`)}return u.json()}catch(t){console.warn("Error in submitFeedback:",t)}}({type:a,messageId:e,reasons:o,apiKey:t,apiUrl:n,userProperties:d,properties:r});i&&s((t=>({...t,[e]:{type:i.type,reasons:i.reasons}})));const h=c.findIndex((t=>t.id===e)),f=c[h],m={conversationId:l.id,question:SH(c[h-1]),answer:SH(f),messageId:e,reasons:o,workflowId:null==u?void 0:u.id};p({eventName:"positive"===a?"assistant_positive_feedback_submitted":"assistant_negative_feedback_submitted",properties:m}),"negative"===a&&p({eventName:"user_escalation_indicated",properties:{escalationType:"downvote",conversation:l}})}),[c,l]);return{feedback:i,currentFeedback:a,setCurrentFeedback:o,submitPositiveFeedback:Z.useCallback((async e=>{h(e,"positive")}),[h]),submitNegativeFeedback:Z.useCallback((async(e,t)=>{const n=function(e){const t=[];for(const n in e){"on"===e[n]&&t.push({label:n,details:e[`${n}:description`]||""})}return t.length>0?t:[]}(t);h(e,"negative",n)}),[h])}}const iU=({children:e})=>{const t=oU();return Vh.jsx(aU.Provider,{value:t,children:e})},sU=()=>{const e=Z.useContext(aU);if(!e)throw new Error("useFeedback must be used within a FeedbackProvider");return e};function lU(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function cU(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function uU(...e){return t=>{let n=!1;const r=e.map((e=>{const r=cU(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():cU(e[t],null)}}}}function dU(...e){return Z.useCallback(uU(...e),e)}function pU(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>Z.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return Z.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=Z.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,c=Z.useMemo((()=>s),Object.values(s));return Vh.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,c=Z.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},hU(r,...t)]}function hU(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return Z.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var fU=Z.forwardRef(((e,t)=>{const{children:n,...r}=e,a=Z.Children.toArray(n),o=a.find(yU);if(o){const e=o.props.children,n=a.map((t=>t===o?Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null:t));return Vh.jsx(mU,{...r,ref:t,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,n):null})}return Vh.jsx(mU,{...r,ref:t,children:n})}));fU.displayName="Slot";var mU=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;if(Z.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n);return Z.cloneElement(n,{...bU(r,n.props),ref:t?uU(t,e):e})}return Z.Children.count(n)>1?Z.Children.only(null):null}));mU.displayName="SlotClone";var gU=({children:e})=>Vh.jsx(Vh.Fragment,{children:e});function yU(e){return Z.isValidElement(e)&&e.type===gU}function bU(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}var vU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=Z.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?fU:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Vh.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function kU(e){const t=Z.useRef(e);return Z.useEffect((()=>{t.current=e})),Z.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function wU(e,t=(null==globalThis?void 0:globalThis.document)){const n=kU(e);Z.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var xU,EU="dismissableLayer.update",_U="dismissableLayer.pointerDownOutside",SU="dismissableLayer.focusOutside",TU=Z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),CU=Z.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=Z.useContext(TU),[u,d]=Z.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=Z.useState({}),f=dU(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=kU(e),r=Z.useRef(!1),a=Z.useRef((()=>{}));return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){NU(_U,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=kU(e),r=Z.useRef(!1);return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){NU(SU,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return wU((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),Z.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(xU=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),AU(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=xU)}}),[u,p,n,c]),Z.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),AU())}),[u,c]),Z.useEffect((()=>{const e=()=>h({});return document.addEventListener(EU,e),()=>document.removeEventListener(EU,e)}),[]),Vh.jsx(vU.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:lU(e.onFocusCapture,x.onFocusCapture),onBlurCapture:lU(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:lU(e.onPointerDownCapture,w.onPointerDownCapture)})}));CU.displayName="DismissableLayer";function AU(){const e=new CustomEvent(EU);document.dispatchEvent(e)}function NU(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&ue.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}Z.forwardRef(((e,t)=>{const n=Z.useContext(TU),r=Z.useRef(null),a=dU(t,r);return Z.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),Vh.jsx(vU.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var IU=Boolean(null==globalThis?void 0:globalThis.document)?Z.useLayoutEffect:()=>{},RU=ee["useId".toString()]||(()=>{}),OU=0;function PU(e){const[t,n]=Z.useState(RU());return IU((()=>{n((e=>e??String(OU++)))}),[e]),e||(t?`radix-${t}`:"")}const LU=["top","right","bottom","left"],DU=Math.min,MU=Math.max,FU=Math.round,jU=Math.floor,BU=e=>({x:e,y:e}),HU={left:"right",right:"left",bottom:"top",top:"bottom"},zU={start:"end",end:"start"};function UU(e,t,n){return MU(e,DU(t,n))}function $U(e,t){return"function"==typeof e?e(t):e}function VU(e){return e.split("-")[0]}function GU(e){return e.split("-")[1]}function WU(e){return"x"===e?"y":"x"}function qU(e){return"y"===e?"height":"width"}function YU(e){return["top","bottom"].includes(VU(e))?"y":"x"}function KU(e){return WU(YU(e))}function XU(e){return e.replace(/start|end/g,(e=>zU[e]))}function QU(e){return e.replace(/left|right|bottom|top/g,(e=>HU[e]))}function ZU(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function JU(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function e$(e,t,n){let{reference:r,floating:a}=e;const o=YU(t),i=KU(t),s=qU(i),l=VU(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-a.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-a.width,y:d};break;default:h={x:r.x,y:r.y}}switch(GU(t)){case"start":h[i]-=p*(n&&c?-1:1);break;case"end":h[i]+=p*(n&&c?-1:1)}return h}async function t$(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=$U(t,e),f=ZU(h),m=s[p?"floating"===d?"reference":"floating":d],g=JU(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=JU(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-k.top+f.top)/v.y,bottom:(k.bottom-g.bottom+f.bottom)/v.y,left:(g.left-k.left+f.left)/v.x,right:(k.right-g.right+f.right)/v.x}}function n$(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function r$(e){return LU.some((t=>e[t]>=0))}function a$(){return"undefined"!=typeof window}function o$(e){return l$(e)?(e.nodeName||"").toLowerCase():"#document"}function i$(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s$(e){var t;return null==(t=(l$(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l$(e){return!!a$()&&(e instanceof Node||e instanceof i$(e).Node)}function c$(e){return!!a$()&&(e instanceof Element||e instanceof i$(e).Element)}function u$(e){return!!a$()&&(e instanceof HTMLElement||e instanceof i$(e).HTMLElement)}function d$(e){return!(!a$()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i$(e).ShadowRoot)}function p$(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=b$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function h$(e){return["table","td","th"].includes(o$(e))}function f$(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(dee){return!1}}))}function m$(e){const t=g$(),n=c$(e)?b$(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function g$(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function y$(e){return["html","body","#document"].includes(o$(e))}function b$(e){return i$(e).getComputedStyle(e)}function v$(e){return c$(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function k$(e){if("html"===o$(e))return e;const t=e.assignedSlot||e.parentNode||d$(e)&&e.host||s$(e);return d$(t)?t.host:t}function w$(e){const t=k$(e);return y$(t)?e.ownerDocument?e.ownerDocument.body:e.body:u$(t)&&p$(t)?t:w$(t)}function x$(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=w$(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=i$(a);if(o){const e=E$(i);return t.concat(i,i.visualViewport||[],p$(a)?a:[],e&&n?x$(e):[])}return t.concat(a,x$(a,[],n))}function E$(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _$(e){const t=b$(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=u$(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=FU(n)!==o||FU(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function S$(e){return c$(e)?e:e.contextElement}function T$(e){const t=S$(e);if(!u$(t))return BU(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=_$(t);let i=(o?FU(n.width):n.width)/r,s=(o?FU(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const C$=BU(0);function A$(e){const t=i$(e);return g$()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:C$}function N$(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=S$(e);let i=BU(1);t&&(r?c$(r)&&(i=T$(r)):i=T$(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==i$(e))&&t}(o,n,r)?A$(o):BU(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=i$(o),t=r&&c$(r)?i$(r):r;let n=e,a=E$(n);for(;a&&r&&t!==n;){const e=T$(a),t=a.getBoundingClientRect(),r=b$(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=i$(a),a=E$(n)}}return JU({width:u,height:d,x:l,y:c})}function I$(e,t){const n=v$(e).scrollLeft;return t?t.left+n:N$(s$(e)).left+n}function R$(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:I$(e,r)),y:r.top+t.scrollTop}}function O$(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=i$(e),r=s$(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=g$();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=s$(e),n=v$(e),r=e.ownerDocument.body,a=MU(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=MU(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+I$(e);const s=-n.scrollTop;return"rtl"===b$(r).direction&&(i+=MU(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(s$(e));else if(c$(t))r=function(e,t){const n=N$(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=u$(e)?T$(e):BU(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=A$(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return JU(r)}function P$(e,t){const n=k$(e);return!(n===t||!c$(n)||y$(n))&&("fixed"===b$(n).position||P$(n,t))}function L$(e,t,n){const r=u$(t),a=s$(t),o="fixed"===n,i=N$(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=BU(0);if(r||!r&&!o)if(("body"!==o$(t)||p$(a))&&(s=v$(t)),r){const e=N$(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=I$(a));const c=!a||r||o?BU(0):R$(a,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function D$(e){return"static"===b$(e).position}function M$(e,t){if(!u$(e)||"fixed"===b$(e).position)return null;if(t)return t(e);let n=e.offsetParent;return s$(e)===n&&(n=n.ownerDocument.body),n}function F$(e,t){const n=i$(e);if(f$(e))return n;if(!u$(e)){let t=k$(e);for(;t&&!y$(t);){if(c$(t)&&!D$(t))return t;t=k$(t)}return n}let r=M$(e,t);for(;r&&h$(r)&&D$(r);)r=M$(r,t);return r&&y$(r)&&D$(r)&&!m$(r)?n:r||function(e){let t=k$(e);for(;u$(t)&&!y$(t);){if(m$(t))return t;if(f$(t))return null;t=k$(t)}return null}(e)||n}const j$={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=s$(r),s=!!t&&f$(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=BU(1);const u=BU(0),d=u$(r);if((d||!d&&!o)&&(("body"!==o$(r)||p$(i))&&(l=v$(r)),u$(r))){const e=N$(r);c=T$(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?BU(0):R$(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:s$,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?f$(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=x$(e,[],!1).filter((e=>c$(e)&&"body"!==o$(e))),a=null;const o="fixed"===b$(e).position;let i=o?k$(e):e;for(;c$(i)&&!y$(i);){const t=b$(i),n=m$(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||p$(i)&&!n&&P$(e,i))?r=r.filter((e=>e!==i)):a=t,i=k$(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=O$(t,n,a);return e.top=MU(r.top,e.top),e.right=DU(r.right,e.right),e.bottom=DU(r.bottom,e.bottom),e.left=MU(r.left,e.left),e}),O$(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:F$,getElementRects:async function(e){const t=this.getOffsetParent||F$,n=this.getDimensions,r=await n(e.floating);return{reference:L$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=_$(e);return{width:t,height:n}},getScale:T$,isElement:c$,isRTL:function(e){return"rtl"===b$(e).direction}};function B$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function H$(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=S$(e),u=a||o?[...c?x$(c):[],...x$(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=s$(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-jU(d)+"px "+-jU(a.clientWidth-(u+p))+"px "+-jU(a.clientHeight-(d+h))+"px "+-jU(u)+"px",threshold:MU(0,DU(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||B$(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(dee){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?N$(e):null;return l&&function t(){const r=N$(e);m&&!B$(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const z$=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=VU(n),s=GU(n),l="y"===YU(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=$U(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},U$=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$U(e,t),c={x:n,y:r},u=await t$(t,l),d=YU(VU(a)),p=WU(d);let h=c[p],f=c[d];if(o){const e="y"===p?"bottom":"right";h=UU(h+u["y"===p?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";f=UU(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:o,[d]:i}}}}}},$$=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=$U(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=VU(a),b=YU(s),v=VU(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[QU(s)]:function(e){const t=QU(e);return[XU(e),t,XU(t)]}(s)),x="none"!==f;!p&&x&&w.push(...function(e,t,n,r){const a=GU(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(VU(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(XU)))),o}(s,m,f,k));const E=[s,...w],_=await t$(t,g),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(_[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=GU(e),a=KU(e),o=qU(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=QU(i)),[i,QU(i)]}(a,i,k);S.push(_[e[0]],_[e[1]])}if(T=[...T,{placement:a,overflows:S}],!S.every((e=>e<=0))){var C,A;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var N;const e=null==(N=T.filter((e=>{if(x){const t=YU(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},V$=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=$U(e,t),u=await t$(t,c),d=VU(a),p=GU(a),h="y"===YU(a),{width:f,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,v=f-u.left-u.right,k=DU(m-u[g],b),w=DU(f-u[y],v),x=!t.middlewareData.shift;let E=k,_=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=b),x&&!p){const e=MU(u.left,0),t=MU(u.right,0),n=MU(u.top,0),r=MU(u.bottom,0);h?_=f-2*(0!==e||0!==t?e+t:MU(u.left,u.right)):E=m-2*(0!==n||0!==r?n+r:MU(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:E});const S=await i.getDimensions(s.floating);return f!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},G$=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=$U(e,t);switch(r){case"referenceHidden":{const e=n$(await t$(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:r$(e)}}}case"escaped":{const e=n$(await t$(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:r$(e)}}}default:return{}}}}},W$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=$U(e,t)||{};if(null==c)return{};const d=ZU(u),p={x:n,y:r},h=KU(a),f=qU(h),m=await i.getDimensions(c),g="y"===h,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",k=o.reference[f]+o.reference[h]-p[h]-o.floating[f],w=p[h]-o.reference[h],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let E=x?x[v]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=s.floating[v]||o.floating[f]);const _=k/2-w/2,S=E/2-m[f]/2-1,T=DU(d[y],S),C=DU(d[b],S),A=T,N=E-m[f]-C,I=E/2-m[f]/2+_,R=UU(A,I,N),O=!l.arrow&&null!=GU(a)&&I!==R&&o.reference[f]/2-(I<A?T:C)-m[f]/2<0,P=O?I<A?I-A:I-N:0;return{[h]:p[h]+P,data:{[h]:R,centerOffset:I-R-P,...O&&{alignmentOffset:P}},reset:O}}}),q$=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=$U(e,t),u={x:n,y:r},d=YU(a),p=WU(d);let h=u[p],f=u[d];const m=$U(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes(VU(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},Y$=(e,t,n)=>{const r=new Map,a={platform:j$,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=e$(c,r,l),p=r,h={},f=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:y,data:b,reset:v}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,h={...h,[n]:{...h[n],...b}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):v.rects),({x:u,y:d}=e$(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}})(e,t,{...a,platform:o})};var K$="undefined"!=typeof document?Z.useLayoutEffect:Z.useEffect;function X$(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!X$(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!X$(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Q$(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Z$(e,t){const n=Q$(e);return Math.round(t*n)/n}function J$(e){const t=Z.useRef(e);return K$((()=>{t.current=e})),t}function eV(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=Z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=Z.useState(r);X$(p,r)||h(r);const[f,m]=Z.useState(null),[g,y]=Z.useState(null),b=Z.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),v=Z.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),k=o||f,w=i||g,x=Z.useRef(null),E=Z.useRef(null),_=Z.useRef(u),S=null!=l,T=J$(l),C=J$(a),A=J$(c),N=Z.useCallback((()=>{if(!x.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),Y$(x.current,E.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};I.current&&!X$(_.current,t)&&(_.current=t,ue.flushSync((()=>{d(t)})))}))}),[p,t,n,C,A]);K$((()=>{!1===c&&_.current.isPositioned&&(_.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const I=Z.useRef(!1);K$((()=>(I.current=!0,()=>{I.current=!1})),[]),K$((()=>{if(k&&(x.current=k),w&&(E.current=w),k&&w){if(T.current)return T.current(k,w,N);N()}}),[k,w,N,T,S]);const R=Z.useMemo((()=>({reference:x,floating:E,setReference:b,setFloating:v})),[b,v]),O=Z.useMemo((()=>({reference:k,floating:w})),[k,w]),P=Z.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=Z$(O.floating,u.x),r=Z$(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Q$(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,O.floating,u.x,u.y]);return Z.useMemo((()=>({...u,update:N,refs:R,elements:O,floatingStyles:P})),[u,N,R,O,P])}const tV=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?W$({element:n.current,padding:r}).fn(t):{}:n?W$({element:n,padding:r}).fn(t):{};var a}}),nV=(e,t)=>({...z$(e),options:[e,t]}),rV=(e,t)=>({...U$(e),options:[e,t]}),aV=(e,t)=>({...q$(e),options:[e,t]}),oV=(e,t)=>({...$$(e),options:[e,t]}),iV=(e,t)=>({...V$(e),options:[e,t]}),sV=(e,t)=>({...G$(e),options:[e,t]}),lV=(e,t)=>({...tV(e),options:[e,t]});var cV=Z.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return Vh.jsx(vU.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Vh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));cV.displayName="Arrow";var uV=cV;function dV(e){const[t,n]=Z.useState(void 0);return IU((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var pV="Popper",[hV,fV]=pU(pV),[mV,gV]=hV(pV),yV=e=>{const{__scopePopper:t,children:n}=e,[r,a]=Z.useState(null);return Vh.jsx(mV,{scope:t,anchor:r,onAnchorChange:a,children:n})};yV.displayName=pV;var bV="PopperAnchor",vV=Z.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=gV(bV,n),i=Z.useRef(null),s=dU(t,i);return Z.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:Vh.jsx(vU.div,{...a,ref:s})}));vV.displayName=bV;var kV="PopperContent",[wV,xV]=hV(kV),EV=Z.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=gV(kV,l),[E,_]=Z.useState(null),S=dU(t,(e=>_(e))),[T,C]=Z.useState(null),A=dV(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(CV),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=eV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>H$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[nV({mainAxis:u+I,alignmentAxis:p}),f&&rV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?aV():void 0,...D}),f&&oV({...D}),iV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&lV({element:T,padding:h}),AV({arrowWidth:N,arrowHeight:I}),b&&sV({strategy:"referenceHidden",...D})]}),[z,U]=NV(j),$=kU(k);IU((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=Z.useState();return IU((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),Vh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Vh.jsx(wV,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:Vh.jsx(vU.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));EV.displayName=kV;var _V="PopperArrow",SV={top:"bottom",right:"left",bottom:"top",left:"right"},TV=Z.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=xV(_V,n),o=SV[a.placedSide];return Vh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:Vh.jsx(uV,{...r,ref:t,style:{...r.style,display:"block"}})})}));function CV(e){return null!==e}TV.displayName=_V;var AV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=NV(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function NV(e){const[t,n="center"]=e.split("-");return[t,n]}var IV=yV,RV=vV,OV=EV,PV=TV;var LV=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=Z.useState(),r=Z.useRef({}),a=Z.useRef(e),o=Z.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return Z.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Z.useEffect((()=>{const e=DV(r.current);o.current="mounted"===s?e:"none"}),[s]),IU((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=DV(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,l]),IU((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=DV(r.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=DV(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Z.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:r.isPresent}):Z.Children.only(n),o=dU(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?Z.cloneElement(a,{ref:o}):null};function DV(e){return(null==e?void 0:e.animationName)||"none"}function MV({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=function({defaultProp:e,onChange:t}){const n=Z.useState(e),[r]=n,a=Z.useRef(r),o=kU(t);return Z.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=kU(n);return[i,Z.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}LV.displayName="Presence";var FV=Z.forwardRef(((e,t)=>Vh.jsx(vU.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));FV.displayName="VisuallyHidden";var jV=FV,[BV,HV]=pU("Tooltip",[fV]),zV=fV(),UV="TooltipProvider",$V=700,VV="tooltip.open",[GV,WV]=BV(UV),qV=e=>{const{__scopeTooltip:t,delayDuration:n=$V,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,[i,s]=Z.useState(!0),l=Z.useRef(!1),c=Z.useRef(0);return Z.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),Vh.jsx(GV,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:Z.useCallback((()=>{window.clearTimeout(c.current),s(!1)}),[]),onClose:Z.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:l,onPointerInTransitChange:Z.useCallback((e=>{l.current=e}),[]),disableHoverableContent:a,children:o})};qV.displayName=UV;var YV="Tooltip",[KV,XV]=BV(YV),QV=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,l=WV(YV,e.__scopeTooltip),c=zV(t),[u,d]=Z.useState(null),p=PU(),h=Z.useRef(0),f=i??l.disableHoverableContent,m=s??l.delayDuration,g=Z.useRef(!1),[y=!1,b]=MV({prop:r,defaultProp:a,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(VV))):l.onClose(),null==o||o(e)}}),v=Z.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),k=Z.useCallback((()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,b(!0)}),[b]),w=Z.useCallback((()=>{window.clearTimeout(h.current),h.current=0,b(!1)}),[b]),x=Z.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{g.current=!0,b(!0),h.current=0}),m)}),[m,b]);return Z.useEffect((()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)}),[]),Vh.jsx(IV,{...c,children:Vh.jsx(KV,{scope:t,contentId:p,open:y,stateAttribute:v,trigger:u,onTriggerChange:d,onTriggerEnter:Z.useCallback((()=>{l.isOpenDelayed?x():k()}),[l.isOpenDelayed,x,k]),onTriggerLeave:Z.useCallback((()=>{f?w():(window.clearTimeout(h.current),h.current=0)}),[w,f]),onOpen:k,onClose:w,disableHoverableContent:f,children:n})})};QV.displayName=YV;var ZV="TooltipTrigger",JV=Z.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=XV(ZV,n),o=WV(ZV,n),i=zV(n),s=dU(t,Z.useRef(null),a.onTriggerChange),l=Z.useRef(!1),c=Z.useRef(!1),u=Z.useCallback((()=>l.current=!1),[]);return Z.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),Vh.jsx(RV,{asChild:!0,...i,children:Vh.jsx(vU.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:s,onPointerMove:lU(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||o.isPointerInTransitRef.current||(a.onTriggerEnter(),c.current=!0))})),onPointerLeave:lU(e.onPointerLeave,(()=>{a.onTriggerLeave(),c.current=!1})),onPointerDown:lU(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:lU(e.onFocus,(()=>{l.current||a.onOpen()})),onBlur:lU(e.onBlur,a.onClose),onClick:lU(e.onClick,a.onClose)})})}));JV.displayName=ZV;var[eG,tG]=BV("TooltipPortal",{forceMount:void 0}),nG="TooltipContent",rG=Z.forwardRef(((e,t)=>{const n=tG(nG,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,i=XV(nG,e.__scopeTooltip);return Vh.jsx(LV,{present:r||i.open,children:i.disableHoverableContent?Vh.jsx(sG,{side:a,...o,ref:t}):Vh.jsx(aG,{side:a,...o,ref:t})})})),aG=Z.forwardRef(((e,t)=>{const n=XV(nG,e.__scopeTooltip),r=WV(nG,e.__scopeTooltip),a=Z.useRef(null),o=dU(t,a),[i,s]=Z.useState(null),{trigger:l,onClose:c}=n,u=a.current,{onPointerInTransitChange:d}=r,p=Z.useCallback((()=>{s(null),d(!1)}),[d]),h=Z.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},a=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...a,...function(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}(t.getBoundingClientRect())]);s(o),d(!0)}),[d]);return Z.useEffect((()=>()=>p()),[p]),Z.useEffect((()=>{if(l&&u){const e=e=>h(e,u),t=e=>h(e,l);return l.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[l,u,h,p]),Z.useEffect((()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==u?void 0:u.contains(t)),a=!function(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const e=t[o].x,s=t[o].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-e)*(r-s)/(c-s)+e&&(a=!a)}return a}(n,i);r?p():a&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,u,i,c,p]),Vh.jsx(sG,{...e,ref:o})})),[oG,iG]=BV(YV,{isInside:!1}),sG=Z.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=e,l=XV(nG,n),c=zV(n),{onClose:u}=l;return Z.useEffect((()=>(document.addEventListener(VV,u),()=>document.removeEventListener(VV,u))),[u]),Z.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;(null==t?void 0:t.contains(l.trigger))&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,u]),Vh.jsx(CU,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:Vh.jsxs(OV,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[Vh.jsx(gU,{children:r}),Vh.jsx(oG,{scope:n,isInside:!0,children:Vh.jsx(jV,{id:l.contentId,role:"tooltip",children:a||r})})]})})}));rG.displayName=nG;var lG="TooltipArrow",cG=Z.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=zV(n);return iG(lG,n).isInside?null:Vh.jsx(PV,{...a,...r,ref:t})}));cG.displayName=lG;var uG=qV,dG=JV,pG=rG,hG=cG;const fG=Z.createContext(void 0),mG=({children:e,...t})=>{const n=rU();return Vh.jsx(fG.Provider,{value:{...n,...t},children:Vh.jsx(iU,{children:Vh.jsx(uG,{children:e})})})},gG=()=>{const e=Z.useContext(fG);if(!e)throw new Error("useChat must be used within a ChatProvider");return e},yG=Z.createContext(void 0);function bG({children:e}){const t=function(){var e;const[t,n]=Z.useState(null),{value:r,setTrue:a,setFalse:o}=Yh(!1),[i,s]=Z.useState({title:"",content:""}),[l,c]=Z.useState({title:void 0,content:void 0}),{addAttachment:u}=gG(),d={data:i,errors:l,labels:{title:(null==(e=null==t?void 0:t.workflowModalProps)?void 0:e.titleInputLabel)||"Title",content:(null==t?void 0:t.contentType.contentInputLabel)||"Content"},validate(){const e={};return i.title.trim()||(e.title=`${d.labels.title} is required`),i.content.trim()||(e.content=`${d.labels.content} is required`),e},onChange(e){const{name:t,value:n}=e.target;s((e=>({...e,[t]:n})))},onSubmit(e){if(e.preventDefault(),!(null==t?void 0:t.contentType))return;const n=d.validate();if(Object.values(n).some((e=>!!e)))return void c(n);const r={...i,id:Kh(),contentType:t.contentType};u(r),o(),s({title:"",content:""}),c({title:void 0,content:void 0})}};return{selectedInput:t,selectInput:n,isOpen:r,onOpen:a,onClose:o,form:d}}();return Vh.jsx(yG.Provider,{value:t,children:e})}const vG=()=>{const e=Z.useContext(yG);if(!e)throw new Error("useAttachmentsBar must be used within a AttachmentsBarProvider");return e},kG=Z.createContext(void 0),wG=({children:e,name:t})=>{const n=Z.useRef(null);return Vh.jsx(kG.Provider,{value:{name:t,focusItem:n},children:e})},xG=()=>{const e=Z.useContext(kG);if(!e)throw new Error("useFeedbackItem must be used within a FeedbackItemProvider");return e},EG=Z.createContext(void 0),_G=({children:e,field:t,fieldProps:n,autoFocus:r})=>{const{errors:a}=qz(),o=a[t.name];return Vh.jsx(EG.Provider,{value:{field:t,fieldProps:n,error:o,autoFocus:r},children:e})},SG=()=>{const e=Z.useContext(EG);if(!e)throw new Error("useFormField must be used within a FormFieldProvider");return e},TG=Z.createContext(void 0);const CG=({children:e,value:t})=>Vh.jsx(TG.Provider,{value:t,children:e}),AG=Z.createContext(void 0);function NG({children:e}){const[t,n]=J.useState(null),{value:r,setTrue:a,setFalse:o}=Yh(!1);return Vh.jsx(AG.Provider,{value:{selectedItem:t,selectItem:n,isOpen:r,onOpen:a,onClose:o},children:e})}const IG=()=>{const e=Z.useContext(AG);if(!e)throw new Error("useMessageAttachments must be used within a MessageAttachmentsProvider");return e},RG=Z.createContext(void 0),OG=({children:e,message:t})=>Vh.jsx(RG.Provider,{value:{message:t},children:e}),PG=()=>{const e=Z.useContext(RG);if(!e)throw new Error("useMessage must be used within a MessageProvider");return e},LG=["light","dark"],DG="(prefers-color-scheme: dark)",MG="undefined"==typeof window,FG=Z.createContext(void 0),jG={setColorMode:e=>{},colorModes:[]};function BG(e,t){const n=Z.useContext(FG)??jG;return"dark"===(n.forcedColorMode??n.resolvedColorMode)?t:e}const HG=e=>(Z.useContext(FG),Vh.jsx(UG,{...e})),zG=["light","dark"],UG=({forcedColorMode:e,disableTransitionOnChange:t=!1,enableSystem:n=!1,enableColorScheme:r=!0,storageKey:a="inkeep-colorMode",colorModes:o=zG,defaultColorMode:i=(n?"system":"light"),attribute:s="data-theme",value:l,children:c,nonce:u,shadowHostId:d,rootId:p})=>{const[h,f]=Z.useState((()=>VG(a,i))),[m,g]=Z.useState((()=>VG(a))),y=l?Object.values(l):o,b=Z.useCallback((e=>{var a;let o=e;if(!o)return;"system"===e&&n&&(o=WG());const c=l?l[o]:o,u=t?GG():null,h=d&&p&&(null==(a=document.getElementById(d))?void 0:a.shadowRoot),f=h?h.getElementById(p)??document.documentElement:document.documentElement;if("class"===s?(f.classList.remove(...y),c&&f.classList.add(c)):c?f.setAttribute(s,c):f.removeAttribute(s),r){const e=LG.includes(i)?i:null,t=LG.includes(o)?o:e;f.style.colorScheme=t}null==u||u()}),[]),v=Z.useCallback((e=>{f(e);try{localStorage.setItem(a,e)}catch(dee){}}),[e]),k=Z.useCallback((t=>{const r=WG(t);g(r),"system"===h&&n&&!e&&b("system")}),[h,e]);Z.useEffect((()=>{const e=window.matchMedia(DG);return e.addListener(k),k(e),()=>e.removeListener(k)}),[k]),Z.useEffect((()=>{const e=e=>{if(e.key!==a)return;const t=e.newValue||i;v(t)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[v]),Z.useEffect((()=>{b(e??h)}),[e,h]);const w=Z.useMemo((()=>({colorMode:h,setColorMode:v,forcedColorMode:e,resolvedColorMode:"system"===h?m:h,colorModes:n?[...o,"system"]:o,systemColorMode:n?m:void 0})),[h,v,e,m,n,o]);return Vh.jsxs(FG.Provider,{value:w,children:[Vh.jsx($G,{forcedColorMode:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:a,colorModes:o,defaultColorMode:i,attribute:s,value:l,children:c,attrs:y,nonce:u,shadowHostId:d,rootId:p}),c]})},$G=Z.memo((({forcedColorMode:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultColorMode:o,value:i,attrs:s,nonce:l,shadowHostId:c,rootId:u})=>{const d="system"===o,p=(()=>{const e=c&&u?`document.getElementById('${c}').shadowRoot.getElementById('${u}')`:"document.documentElement";if("class"===n){return`var d=${e},c=d.classList;${`c.remove(${s.map((e=>`'${e}'`)).join(",")})`};`}return`var d=${e},n='${n}',s='setAttribute';`})(),h=(()=>{if(!a)return"";return(LG.includes(o)?o:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e"})(),f=(e,t=!1,r=!0)=>{const o=i?i[e]:e,s=t?`${e}|| ''`:`'${o}'`;let l="";return a&&r&&!t&&LG.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},m=e?`!function(){${p}${f(e)}}()`:r?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${DG}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${d?"":`else{${f(o,!1,!1)}}`}${h}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${h}}catch(t){}}();`;return Vh.jsx("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),(()=>!0)),VG=(e,t)=>{if(MG)return;let n;try{n=localStorage.getItem(e)||void 0}catch(dee){}return n||t},GG=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout((()=>{document.head.removeChild(e)}),1)}},WG=e=>{e||(e=window.matchMedia(DG));return e.matches?"dark":"light"};var qG=Object.prototype.hasOwnProperty;function YG(e,t,n){for(n of e.keys())if(KG(n,t))return n}function KG(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&KG(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((a=r)&&"object"==typeof a&&!(a=YG(t,a)))return!1;if(!t.has(a))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((a=r[0])&&"object"==typeof a&&!(a=YG(t,a)))return!1;if(!KG(r[1],t.get(a)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(qG.call(e,n)&&++r&&!qG.call(t,n))return!1;if(!(n in t)||!KG(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function XG(){const{baseSettings:e}=JO(),[t,n]=Z.useState([]),r=function(e){const t=Z.useRef(void 0);KG(t.current,e)||(t.current=e);return t.current}(e.theme.styles),{customStyles:a,linksCount:o}=Z.useMemo((()=>{if(!r||!Array.isArray(r))return{customStyles:null,loaded:!0};const{links:e,styleSheets:t}=r.reduce(((e,t)=>("link"===t.type?e.links.push(t):"style"===t.type&&e.styleSheets.push(t),e)),{links:[],styleSheets:[]}),a=t.map((e=>Vh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:e.value}},e.key??Qh("link_")))),o=e.map((e=>{const t=e.key??Qh("stylesheet_");return Vh.jsx("link",{id:t,rel:"stylesheet",type:"text/css",href:e.value,onLoad:()=>{n((t=>[...new Set([...t,e.value])]))}},t)}));return{customStyles:Vh.jsxs(Vh.Fragment,{children:[o,a]}),linksCount:e.length}}),[r]);return{customStyles:a,loaded:t.length>=(o??0)}}const QG=({children:e})=>{const{baseSettings:t}=JO(),{theme:n,primaryBrandColor:r,shadowHost:a,rootElement:o,colorMode:i}=t,{primaryColors:s,varsClassName:l}=n,{disableLoadingDefaultFont:c,fontFamily:d,fontSize:p,spacing:h,borderRadius:f,zIndex:m}=n,g=_x(s,r),y=function(e){const t={};for(const[n,r]of Object.entries(e)){const e=Tx[n]||n,a=(n,r=[])=>{for(const[o,i]of Object.entries(n)){const n=[...r,o];if("object"==typeof i&&null!==i)a(i,n);else{const r=n.map((e=>e.replace(/([A-Z])/g,"-$1").replace(/\./g,"_").toLowerCase())).join("-");t[`--ikp-${e}-${r}`]=i}}};a(r)}return t}({colors:u(n.colors,g),fontFamily:d,fontSize:p,spacing:h,borderRadius:f,zIndex:m}),{customStyles:b,loaded:v}=XG(),{sync:k,forcedColorMode:w,...x}=i??{},[E,_]=Z.useState(),S=Z.useRef(null);return Z.useEffect((()=>{var e,t;if(!(null==k?void 0:k.target))return;const n="string"==typeof k.target?document.querySelector(k.target):k.target;if(!n)return;function r(e,t){return t.reduce(((t,n)=>({...t,[n]:e.getAttribute(n)})),{})}const a=new MutationObserver((()=>{var e,t;const a=r(n,k.attributes),o=(null==(e=k.isDarkMode)?void 0:e.call(k,a))?"dark":"light";null==(t=k.onChange)||t.call(k,o),_(o)}));a.observe(n,{attributes:!0,attributeFilter:k.attributes,childList:!1,subtree:!1}),S.current=a;const o=(null==(e=k.isDarkMode)?void 0:e.call(k,r(n,null==k?void 0:k.attributes)))?"dark":"light";return null==(t=k.onChange)||t.call(k,o),_(o),()=>a.disconnect()}),[k]),Vh.jsxs(Vh.Fragment,{children:[!c&&Vh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');\n "}}),b,v&&Vh.jsx(HG,{forcedColorMode:w??E,...x,shadowHostId:null==a?void 0:a.id,rootId:null==o?void 0:o.id,children:Vh.jsx("div",{className:l,style:{display:"contents",...y},children:e})})]})};function ZG(e){const{children:t,config:n,componentType:r}=e;return Vh.jsx(ZO,{value:{...n,componentType:r},children:Vh.jsx(QG,{children:Vh.jsx(dP,{children:Vh.jsx(fP,{children:t})})})})}const JG=Z.createContext(void 0),eW=({children:e,source:t})=>Vh.jsx(JG.Provider,{value:{source:t},children:e}),tW=()=>{const e=Z.useContext(JG);if(!e)throw new Error("useSourceItem must be used within a SourceItemProvider");return e};function nW(e){const t=Z.useRef(e);return Z.useEffect((()=>{t.current=e})),Z.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function rW({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=function({defaultProp:e,onChange:t}){const n=Z.useState(e),[r]=n,a=Z.useRef(r),o=nW(t);return Z.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=nW(n);return[i,Z.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}const aW=Z.createContext(void 0),oW=({children:e,value:t})=>Vh.jsx(aW.Provider,{value:t,children:e}),iW=()=>{const e=Z.useContext(aW);if(!e)throw new Error("useSidebarChat must be used within a SidebarChatProvider");return e};var sW=Z.useLayoutEffect,lW=function(e,t){"function"!=typeof e?e.current=t:e(t)},cW={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},uW=function(e){Object.keys(cW).forEach((function(t){e.style.setProperty(t,cW[t],"important")}))},dW=null,pW=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var hW=function(){},fW=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],mW=!!document.documentElement.currentStyle,gW=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,fW.reduce((function(e,t){return e[t]=n[t],e}),{})),a=r.boxSizing;return""===a?null:(mW&&"border-box"===a&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})};function yW(e,t,n){var r,a,o=(r=n,a=J.useRef(r),sW((function(){a.current=r})),a);Z.useLayoutEffect((function(){var n=function(e){return o.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var bW=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],vW=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,a=e.minRows,o=e.onChange,i=void 0===o?hW:o,s=e.onHeightChange,l=void 0===s?hW:s,c=jB(e,bW),u=void 0!==c.value,d=Z.useRef(null),p=function(e,t){var n=J.useRef();return J.useCallback((function(r){e.current=r,n.current&&lW(n.current,null),n.current=t,t&&lW(t,r)}),[t])}(d,t),h=Z.useRef(0),f=Z.useRef(),m=function(){var e=d.current,t=n&&f.current?f.current:gW(e);if(t){f.current=t;var o=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),dW||((dW=document.createElement("textarea")).setAttribute("tabindex","-1"),dW.setAttribute("aria-hidden","true"),uW(dW)),null===dW.parentNode&&document.body.appendChild(dW);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach((function(e){var t=e;dW.style[t]=i[t]})),uW(dW),dW.value=t;var l=pW(dW,e);dW.value=t,l=pW(dW,e),dW.value="x";var c=dW.scrollHeight-a,u=c*n;"border-box"===s&&(u=u+a+o),l=Math.max(u,l);var d=c*r;return"border-box"===s&&(d=d+a+o),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",a,r),i=o[0],s=o[1];h.current!==i&&(h.current=i,e.style.setProperty("height",i+"px","important"),l(i,{rowHeight:s}))}};return Z.useLayoutEffect(m),function(e,t){yW(document.body,"reset",(function(n){e.current.form===n.target&&t(n)}))}(d,(function(){if(!u){var e=d.current,t=e.value;requestAnimationFrame((function(){t!==e.value&&m()}))}})),yW(window,"resize",m),function(e){yW(document.fonts,"loadingdone",e)}(m),Z.createElement("textarea",BB({},c,{onChange:function(e){u||m(),i(e)},ref:p}))},kW=Z.forwardRef(vW),wW="Avatar",[xW,EW]=pU(wW),[_W,SW]=xW(wW),TW=Z.forwardRef(((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,o]=Z.useState("idle");return Vh.jsx(_W,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:o,children:Vh.jsx(vU.span,{...r,ref:t})})}));TW.displayName=wW;var CW="AvatarImage",AW=Z.forwardRef(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...o}=e,i=SW(CW,n),s=function(e,t){const[n,r]=Z.useState("idle");return IU((()=>{if(!e)return void r("error");let n=!0;const a=new window.Image,o=e=>()=>{n&&r(e)};return r("loading"),a.onload=o("loaded"),a.onerror=o("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{n=!1}}),[e,t]),n}(r,o.referrerPolicy),l=kU((e=>{a(e),i.onImageLoadingStatusChange(e)}));return IU((()=>{"idle"!==s&&l(s)}),[s,l]),"loaded"===s?Vh.jsx(vU.img,{...o,ref:t,src:r}):null}));AW.displayName=CW;var NW="AvatarFallback",IW=Z.forwardRef(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,o=SW(NW,n),[i,s]=Z.useState(void 0===r);return Z.useEffect((()=>{if(void 0!==r){const e=window.setTimeout((()=>s(!0)),r);return()=>window.clearTimeout(e)}}),[r]),i&&"loaded"!==o.imageLoadingStatus?Vh.jsx(vU.span,{...a,ref:t}):null}));IW.displayName=NW;var RW=TW,OW=AW,PW=IW;var LW="Checkbox",[DW,MW]=pU(LW),[FW,jW]=DW(LW),BW=Z.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[p,h]=Z.useState(null),f=dU(t,(e=>h(e))),m=Z.useRef(!1),g=!p||(u||!!p.closest("form")),[y=!1,b]=MV({prop:a,defaultProp:o,onChange:c}),v=Z.useRef(y);return Z.useEffect((()=>{const e=null==p?void 0:p.form;if(e){const t=()=>b(v.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[p,b]),Vh.jsxs(FW,{scope:n,state:y,disabled:s,children:[Vh.jsx(vU.button,{type:"button",role:"checkbox","aria-checked":$W(y)?"mixed":y,"aria-required":i,"data-state":VW(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:f,onKeyDown:lU(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:lU(e.onClick,(e=>{b((e=>!!$W(e)||!e)),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),g&&Vh.jsx(UW,{control:p,bubbles:!m.current,name:r,value:l,checked:y,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:!$W(o)&&o})]})}));BW.displayName=LW;var HW="CheckboxIndicator",zW=Z.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=jW(HW,n);return Vh.jsx(LV,{present:r||$W(o.state)||!0===o.state,children:Vh.jsx(vU.span,{"data-state":VW(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})}));zW.displayName=HW;var UW=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:a,...o}=e,i=Z.useRef(null),s=function(e){const t=Z.useRef({value:e,previous:e});return Z.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n),l=dV(t);Z.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=$W(n),a.call(e,!$W(n)&&n),e.dispatchEvent(t)}}),[s,n,r]);const c=Z.useRef(!$W(n)&&n);return Vh.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function $W(e){return"indeterminate"===e}function VW(e){return $W(e)?"indeterminate":e?"checked":"unchecked"}var GW=BW,WW=zW,qW=Z.forwardRef(((e,t)=>{const{children:n,...r}=e,a=Z.Children.toArray(n),o=a.find(XW);if(o){const e=o.props.children,n=a.map((t=>t===o?Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null:t));return Vh.jsx(YW,{...r,ref:t,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,n):null})}return Vh.jsx(YW,{...r,ref:t,children:n})}));qW.displayName="Slot";var YW=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;if(Z.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Z.Fragment&&(a.ref=t?uU(t,e):e),Z.cloneElement(n,a)}return Z.Children.count(n)>1?Z.Children.only(null):null}));YW.displayName="SlotClone";var KW=({children:e})=>Vh.jsx(Vh.Fragment,{children:e});function XW(e){return Z.isValidElement(e)&&e.type===KW}var QW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=Z.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?qW:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Vh.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});var ZW,JW="dismissableLayer.update",eq="dismissableLayer.pointerDownOutside",tq="dismissableLayer.focusOutside",nq=Z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rq=Z.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=Z.useContext(nq),[u,d]=Z.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=Z.useState({}),f=dU(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=kU(e),r=Z.useRef(!1),a=Z.useRef((()=>{}));return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){oq(eq,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=kU(e),r=Z.useRef(!1);return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){oq(tq,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return wU((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),Z.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(ZW=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),aq(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=ZW)}}),[u,p,n,c]),Z.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),aq())}),[u,c]),Z.useEffect((()=>{const e=()=>h({});return document.addEventListener(JW,e),()=>document.removeEventListener(JW,e)}),[]),Vh.jsx(QW.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:lU(e.onFocusCapture,x.onFocusCapture),onBlurCapture:lU(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:lU(e.onPointerDownCapture,w.onPointerDownCapture)})}));rq.displayName="DismissableLayer";function aq(){const e=new CustomEvent(JW);document.dispatchEvent(e)}function oq(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&ue.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}Z.forwardRef(((e,t)=>{const n=Z.useContext(nq),r=Z.useRef(null),a=dU(t,r);return Z.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),Vh.jsx(QW.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var iq=0;function sq(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var lq="focusScope.autoFocusOnMount",cq="focusScope.autoFocusOnUnmount",uq={bubbles:!1,cancelable:!0},dq=Z.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=Z.useState(null),c=kU(a),u=kU(o),d=Z.useRef(null),p=dU(t,(e=>l(e))),h=Z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Z.useEffect((()=>{if(r){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:mq(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||mq(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&mq(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,h.paused]),Z.useEffect((()=>{if(s){gq.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(lq,uq);s.addEventListener(lq,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(mq(r,{select:t}),document.activeElement!==n)return}((e=pq(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&mq(s))}return()=>{s.removeEventListener(lq,c),setTimeout((()=>{const e=new CustomEvent(cq,uq);s.addEventListener(cq,u),s.dispatchEvent(e),e.defaultPrevented||mq(t??document.body,{select:!0}),s.removeEventListener(cq,u),gq.remove(h)}),0)}}var e}),[s,c,u,h]);const f=Z.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=function(e){const t=pq(e),n=hq(t,e),r=hq(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&mq(o,{select:!0})):(e.preventDefault(),n&&mq(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,h.paused]);return Vh.jsx(QW.div,{tabIndex:-1,...i,ref:p,onKeyDown:f})}));function pq(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hq(e,t){for(const n of e)if(!fq(n,{upTo:t}))return n}function fq(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function mq(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}dq.displayName="FocusScope";var gq=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=yq(e,t),e.unshift(t)},remove(t){var n;e=yq(e,t),null==(n=e[0])||n.resume()}}}();function yq(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var bq=Z.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return Vh.jsx(QW.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Vh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));bq.displayName="Arrow";var vq=bq,kq="Popper",[wq,xq]=pU(kq),[Eq,_q]=wq(kq),Sq=e=>{const{__scopePopper:t,children:n}=e,[r,a]=Z.useState(null);return Vh.jsx(Eq,{scope:t,anchor:r,onAnchorChange:a,children:n})};Sq.displayName=kq;var Tq="PopperAnchor",Cq=Z.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=_q(Tq,n),i=Z.useRef(null),s=dU(t,i);return Z.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:Vh.jsx(QW.div,{...a,ref:s})}));Cq.displayName=Tq;var Aq="PopperContent",[Nq,Iq]=wq(Aq),Rq=Z.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=_q(Aq,l),[E,_]=Z.useState(null),S=dU(t,(e=>_(e))),[T,C]=Z.useState(null),A=dV(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(Dq),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=eV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>H$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[nV({mainAxis:u+I,alignmentAxis:p}),f&&rV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?aV():void 0,...D}),f&&oV({...D}),iV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&lV({element:T,padding:h}),Mq({arrowWidth:N,arrowHeight:I}),b&&sV({strategy:"referenceHidden",...D})]}),[z,U]=Fq(j),$=kU(k);IU((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=Z.useState();return IU((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),Vh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Vh.jsx(Nq,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:Vh.jsx(QW.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));Rq.displayName=Aq;var Oq="PopperArrow",Pq={top:"bottom",right:"left",bottom:"top",left:"right"},Lq=Z.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=Iq(Oq,n),o=Pq[a.placedSide];return Vh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:Vh.jsx(vq,{...r,ref:t,style:{...r.style,display:"block"}})})}));function Dq(e){return null!==e}Lq.displayName=Oq;var Mq=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=Fq(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function Fq(e){const[t,n="center"]=e.split("-");return[t,n]}var jq=Sq,Bq=Cq,Hq=Rq,zq=Lq,Uq=new WeakMap,$q=new WeakMap,Vq={},Gq=0,Wq=function(e){return e&&(e.host||Wq(e.parentNode))},qq=function(e,t,n,r){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Wq(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Vq[n]||(Vq[n]=new WeakMap);var o=Vq[n],i=[],s=new Set,l=new Set(a),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,l=(Uq.get(e)||0)+1,c=(o.get(e)||0)+1;Uq.set(e,l),o.set(e,c),i.push(e),1===l&&a&&$q.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(dee){console.error("aria-hidden: cannot operate on ",e,dee)}}))};return u(t),s.clear(),Gq++,function(){i.forEach((function(e){var t=Uq.get(e)-1,a=o.get(e)-1;Uq.set(e,t),o.set(e,a),t||($q.has(e)||e.removeAttribute(r),$q.delete(e)),a||e.removeAttribute(n)})),--Gq||(Uq=new WeakMap,Uq=new WeakMap,$q=new WeakMap,Vq={})}},Yq=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),qq(r,a,n,"aria-hidden")):function(){return null}},Kq="right-scroll-bar-position",Xq="width-before-scroll-bar";function Qq(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Zq="undefined"!=typeof window?Z.useLayoutEffect:Z.useEffect,Jq=new WeakMap;function eY(e,t){var n,r,a,o=(n=null,r=function(t){return e.forEach((function(e){return Qq(e,t)}))},(a=Z.useState((function(){return{value:n,callback:r,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=r,a.facade);return Zq((function(){var t=Jq.get(o);if(t){var n=new Set(t),r=new Set(e),a=o.current;n.forEach((function(e){r.has(e)||Qq(e,null)})),r.forEach((function(e){n.has(e)||Qq(e,a)}))}Jq.set(o,e)}),[e]),o}function tY(e){return e}var nY=function(e){var t=e.sideCar,n=UB(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Z.createElement(r,zB({},n))};nY.isSideCarExport=!0;var rY=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=tY);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=zB({async:!0,ssr:!1},e),t}(),aY=function(){},oY=Z.forwardRef((function(e,t){var n=Z.useRef(null),r=Z.useState({onScrollCapture:aY,onWheelCapture:aY,onTouchMoveCapture:aY}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,h=e.noRelative,f=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,v=e.gapMode,k=UB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=eY([n,t]),E=zB(zB({},k),a);return Z.createElement(Z.Fragment,null,u&&Z.createElement(w,{sideCar:rY,removeScrollBar:c,shards:d,noRelative:h,noIsolation:f,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:v}),i?Z.cloneElement(Z.Children.only(s),zB(zB({},E),{ref:x})):Z.createElement(b,zB({},E,{className:l,ref:x}),s))}));oY.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},oY.classNames={fullWidth:Xq,zeroRight:Kq};function iY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var sY=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=iY())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lY=function(){var e,t=(e=sY(),function(t,n){Z.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},cY={left:0,top:0,right:0,gap:0},uY=function(e){return parseInt(e||"",10)||0},dY=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return cY;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[uY(n),uY(r),uY(a)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pY=lY(),hY="data-scroll-locked",fY=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(hY,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Kq," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Xq," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Kq," .").concat(Kq," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Xq," .").concat(Xq," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(hY,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},mY=function(){var e=parseInt(document.body.getAttribute(hY)||"0",10);return isFinite(e)?e:0},gY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;Z.useEffect((function(){return document.body.setAttribute(hY,(mY()+1).toString()),function(){var e=mY()-1;e<=0?document.body.removeAttribute(hY):document.body.setAttribute(hY,e.toString())}}),[]);var o=Z.useMemo((function(){return dY(a)}),[a]);return Z.createElement(pY,{styles:fY(o,!t,a,n?"":"!important")})},yY=!1;if("undefined"!=typeof window)try{var bY=Object.defineProperty({},"passive",{get:function(){return yY=!0,!0}});window.addEventListener("test",bY,bY),window.removeEventListener("test",bY,bY)}catch(dEe){yY=!1}var vY=!!yY&&{passive:!1},kY=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},wY=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),xY(e,r)){var a=EY(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xY=function(e,t){return"v"===e?function(e){return kY(e,"overflowY")}(t):function(e){return kY(e,"overflowX")}(t)},EY=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},_Y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},SY=function(e){return[e.deltaX,e.deltaY]},TY=function(e){return e&&"current"in e?e.current:e},CY=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},AY=0,NY=[];function IY(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const RY=(OY=function(e){var t=Z.useRef([]),n=Z.useRef([0,0]),r=Z.useRef(),a=Z.useState(AY++)[0],o=Z.useState(lY)[0],i=Z.useRef(e);Z.useEffect((function(){i.current=e}),[e]),Z.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=$B([e.lockRef.current],(e.shards||[]).map(TY),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=Z.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=_Y(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=wY(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=wY(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=a),!a)return!0;var h=r.current||a;return function(e,t,n,r){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=a*r,i=n.target,s=t.contains(i),l=!1,c=o>0,u=0,d=0;do{if(!i)break;var p=EY(e,i),h=p[0],f=p[1]-p[2]-a*h;(h||f)&&xY(e,i)&&(u+=f,d+=h);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)}),[]),l=Z.useCallback((function(e){var n=e;if(NY.length&&NY[NY.length-1]===o){var r="deltaY"in n?SY(n):_Y(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,a=r,t[0]===a[0]&&t[1]===a[1]);var t,a}))[0];if(a&&a.should)n.cancelable&&n.preventDefault();else if(!a){var l=(i.current.shards||[]).map(TY).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=Z.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:IY(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=Z.useCallback((function(e){n.current=_Y(e),r.current=void 0}),[]),d=Z.useCallback((function(t){c(t.type,SY(t),t.target,s(t,e.lockRef.current))}),[]),p=Z.useCallback((function(t){c(t.type,_Y(t),t.target,s(t,e.lockRef.current))}),[]);Z.useEffect((function(){return NY.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,vY),document.addEventListener("touchmove",l,vY),document.addEventListener("touchstart",u,vY),function(){NY=NY.filter((function(e){return e!==o})),document.removeEventListener("wheel",l,vY),document.removeEventListener("touchmove",l,vY),document.removeEventListener("touchstart",u,vY)}}),[]);var h=e.removeScrollBar,f=e.inert;return Z.createElement(Z.Fragment,null,f?Z.createElement(o,{styles:CY(a)}):null,h?Z.createElement(gY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},rY.useMedium(OY),nY);var OY,PY=Z.forwardRef((function(e,t){return Z.createElement(oY,zB({},e,{ref:t,sideCar:RY}))}));PY.classNames=oY.classNames;var LY="Popover",[DY,MY]=pU(LY,[xq]),FY=xq(),[jY,BY]=DY(LY),HY=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,s=FY(t),l=Z.useRef(null),[c,u]=Z.useState(!1),[d=!1,p]=MV({prop:r,defaultProp:a,onChange:o});return Vh.jsx(jq,{...s,children:Vh.jsx(jY,{scope:t,contentId:PU(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:Z.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:c,onCustomAnchorAdd:Z.useCallback((()=>u(!0)),[]),onCustomAnchorRemove:Z.useCallback((()=>u(!1)),[]),modal:i,children:n})})};HY.displayName=LY;var zY="PopoverAnchor";Z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=BY(zY,n),o=FY(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=a;return Z.useEffect((()=>(i(),()=>s())),[i,s]),Vh.jsx(Bq,{...o,...r,ref:t})})).displayName=zY;var UY="PopoverTrigger",$Y=Z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=BY(UY,n),o=FY(n),i=dU(t,a.triggerRef),s=Vh.jsx(QW.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":JY(a.open),...r,ref:i,onClick:lU(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?s:Vh.jsx(Bq,{asChild:!0,...o,children:s})}));$Y.displayName=UY;var[VY,GY]=DY("PopoverPortal",{forceMount:void 0}),WY="PopoverContent",qY=Z.forwardRef(((e,t)=>{const n=GY(WY,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,o=BY(WY,e.__scopePopover);return Vh.jsx(LV,{present:r||o.open,children:o.modal?Vh.jsx(YY,{...a,ref:t}):Vh.jsx(KY,{...a,ref:t})})}));qY.displayName=WY;var YY=Z.forwardRef(((e,t)=>{const n=BY(WY,e.__scopePopover),r=Z.useRef(null),a=dU(t,r),o=Z.useRef(!1);return Z.useEffect((()=>{const e=r.current;if(e)return Yq(e)}),[]),Vh.jsx(PY,{as:qW,allowPinchZoom:!0,children:Vh.jsx(XY,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lU(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),o.current||null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:lU(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:lU(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),KY=Z.forwardRef(((e,t)=>{const n=BY(WY,e.__scopePopover),r=Z.useRef(!1),a=Z.useRef(!1);return Vh.jsx(XY,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),XY=Z.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=BY(WY,n),h=FY(n);return Z.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sq()),document.body.insertAdjacentElement("beforeend",e[1]??sq()),iq++,()=>{1===iq&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),iq--}}),[]),Vh.jsx(dq,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:Vh.jsx(rq,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:Vh.jsx(Hq,{"data-state":JY(p.open),role:"dialog",id:p.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),QY="PopoverClose";Z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=BY(QY,n);return Vh.jsx(QW.button,{type:"button",...r,ref:t,onClick:lU(e.onClick,(()=>a.onOpenChange(!1)))})})).displayName=QY;var ZY=Z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=FY(n);return Vh.jsx(zq,{...a,...r,ref:t})}));function JY(e){return e?"open":"closed"}ZY.displayName="PopoverArrow";var eK=HY,tK=$Y,nK=qY,rK=ZY,aK=Z.createContext(void 0);var oK="ScrollArea",[iK,sK]=pU(oK),[lK,cK]=iK(oK),uK=Z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:o=600,...i}=e,[s,l]=Z.useState(null),[c,u]=Z.useState(null),[d,p]=Z.useState(null),[h,f]=Z.useState(null),[m,g]=Z.useState(null),[y,b]=Z.useState(0),[v,k]=Z.useState(0),[w,x]=Z.useState(!1),[E,_]=Z.useState(!1),S=dU(t,(e=>l(e))),T=function(e){const t=Z.useContext(aK);return e||t||"ltr"}(a);return Vh.jsx(lK,{scope:n,type:r,dir:T,scrollHideDelay:o,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:h,onScrollbarXChange:f,scrollbarXEnabled:w,onScrollbarXEnabledChange:x,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:E,onScrollbarYEnabledChange:_,onCornerWidthChange:b,onCornerHeightChange:k,children:Vh.jsx(vU.div,{dir:T,...i,ref:S,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})}));uK.displayName=oK;var dK="ScrollAreaViewport",pK=Z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...o}=e,i=cK(dK,n),s=dU(t,Z.useRef(null),i.onViewportChange);return Vh.jsxs(Vh.Fragment,{children:[Vh.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),Vh.jsx(vU.div,{"data-radix-scroll-area-viewport":"",...o,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:Vh.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})}));pK.displayName=dK;var hK="ScrollAreaScrollbar",fK=Z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=cK(hK,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=a,s="horizontal"===e.orientation;return Z.useEffect((()=>(s?o(!0):i(!0),()=>{s?o(!1):i(!1)})),[s,o,i]),"hover"===a.type?Vh.jsx(mK,{...r,ref:t,forceMount:n}):"scroll"===a.type?Vh.jsx(gK,{...r,ref:t,forceMount:n}):"auto"===a.type?Vh.jsx(yK,{...r,ref:t,forceMount:n}):"always"===a.type?Vh.jsx(bK,{...r,ref:t}):null}));fK.displayName=hK;var mK=Z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=cK(hK,e.__scopeScrollArea),[o,i]=Z.useState(!1);return Z.useEffect((()=>{const e=a.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout((()=>i(!1)),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[a.scrollArea,a.scrollHideDelay]),Vh.jsx(LV,{present:n||o,children:Vh.jsx(yK,{"data-state":o?"visible":"hidden",...r,ref:t})})})),gK=Z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=cK(hK,e.__scopeScrollArea),o="horizontal"===e.orientation,i=FK((()=>l("SCROLL_END")),100),[s,l]=(c="hidden",u={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},Z.useReducer(((e,t)=>u[e][t]??e),c));var c,u;return Z.useEffect((()=>{if("idle"===s){const e=window.setTimeout((()=>l("HIDE")),a.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,a.scrollHideDelay,l]),Z.useEffect((()=>{const e=a.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[a.viewport,o,l,i]),Vh.jsx(LV,{present:n||"hidden"!==s,children:Vh.jsx(bK,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:lU(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:lU(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})})})),yK=Z.forwardRef(((e,t)=>{const n=cK(hK,e.__scopeScrollArea),{forceMount:r,...a}=e,[o,i]=Z.useState(!1),s="horizontal"===e.orientation,l=FK((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}}),10);return jK(n.viewport,l),jK(n.content,l),Vh.jsx(LV,{present:r||o,children:Vh.jsx(bK,{"data-state":o?"visible":"hidden",...a,ref:t})})})),bK=Z.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,a=cK(hK,e.__scopeScrollArea),o=Z.useRef(null),i=Z.useRef(0),[s,l]=Z.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=RK(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(c>0&&c<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const a=OK(n),o=a/2,i=t||o,s=a-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d="ltr"===r?[0,u]:[-1*u,0];return LK([l,c],d)(e)}(e,i.current,s,t)}return"horizontal"===n?Vh.jsx(vK,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=PK(a.viewport.scrollLeft,s,a.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=d(e,a.dir))}}):"vertical"===n?Vh.jsx(kK,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=PK(a.viewport.scrollTop,s);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=d(e))}}):null})),vK=Z.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=cK(hK,e.__scopeScrollArea),[i,s]=Z.useState(),l=Z.useRef(null),c=dU(t,l,o.onScrollbarXChange);return Z.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),Vh.jsx(EK,{"data-orientation":"horizontal",...a,ref:c,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":OK(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),DK(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:IK(i.paddingLeft),paddingEnd:IK(i.paddingRight)}})}})})),kK=Z.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=cK(hK,e.__scopeScrollArea),[i,s]=Z.useState(),l=Z.useRef(null),c=dU(t,l,o.onScrollbarYChange);return Z.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),Vh.jsx(EK,{"data-orientation":"vertical",...a,ref:c,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":OK(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),DK(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:IK(i.paddingTop),paddingEnd:IK(i.paddingBottom)}})}})})),[wK,xK]=iK(hK),EK=Z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,h=cK(hK,n),[f,m]=Z.useState(null),g=dU(t,(e=>m(e))),y=Z.useRef(null),b=Z.useRef(""),v=h.viewport,k=r.content-r.viewport,w=kU(u),x=kU(l),E=FK(d,10);function _(e){if(y.current){const t=e.clientX-y.current.left,n=e.clientY-y.current.top;c({x:t,y:n})}}return Z.useEffect((()=>{const e=e=>{const t=e.target;(null==f?void 0:f.contains(t))&&w(e,k)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[v,f,k,w]),Z.useEffect(x,[r,x]),jK(f,E),jK(h.content,E),Vh.jsx(wK,{scope:n,scrollbar:f,hasThumb:a,onThumbChange:kU(o),onThumbPointerUp:kU(i),onThumbPositionChange:x,onThumbPointerDown:kU(s),children:Vh.jsx(vU.div,{...p,ref:g,style:{position:"absolute",...p.style},onPointerDown:lU(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),y.current=f.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),_(e)}})),onPointerMove:lU(e.onPointerMove,_),onPointerUp:lU(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,h.viewport&&(h.viewport.style.scrollBehavior=""),y.current=null}))})})})),_K="ScrollAreaThumb",SK=Z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=xK(_K,e.__scopeScrollArea);return Vh.jsx(LV,{present:n||a.hasThumb,children:Vh.jsx(TK,{ref:t,...r})})})),TK=Z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,o=cK(_K,n),i=xK(_K,n),{onThumbPositionChange:s}=i,l=dU(t,(e=>i.onThumbChange(e))),c=Z.useRef(void 0),u=FK((()=>{c.current&&(c.current(),c.current=void 0)}),100);return Z.useEffect((()=>{const e=o.viewport;if(e){const t=()=>{if(u(),!c.current){const t=MK(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,s]),Vh.jsx(vU.div,{"data-state":i.hasThumb?"visible":"hidden",...a,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:lU(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})})),onPointerUp:lU(e.onPointerUp,i.onThumbPointerUp)})}));SK.displayName=_K;var CK="ScrollAreaCorner",AK=Z.forwardRef(((e,t)=>{const n=cK(CK,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?Vh.jsx(NK,{...e,ref:t}):null}));AK.displayName=CK;var NK=Z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=cK(CK,n),[o,i]=Z.useState(0),[s,l]=Z.useState(0),c=Boolean(o&&s);return jK(a.scrollbarX,(()=>{var e;const t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),l(t)})),jK(a.scrollbarY,(()=>{var e;const t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),i(t)})),c?Vh.jsx(vU.div,{...r,ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null}));function IK(e){return e?parseInt(e,10):0}function RK(e,t){const n=e/t;return isNaN(n)?0:n}function OK(e){const t=RK(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function PK(e,t,n="ltr"){const r=OK(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,i=t.content-t.viewport,s=o-r,l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,i]:[-1*i,0]);return LK([0,i],[0,s])(l)}function LK(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function DK(e,t){return e>0&&e<t}var MK=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function a(){const o={left:e.scrollLeft,top:e.scrollTop},i=n.left!==o.left,s=n.top!==o.top;(i||s)&&t(),n=o,r=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(r)};function FK(e,t){const n=kU(e),r=Z.useRef(0);return Z.useEffect((()=>()=>window.clearTimeout(r.current)),[]),Z.useCallback((()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)}),[n,t])}function jK(e,t){const n=kU(t);IU((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}var BK=uK,HK=pK,zK=AK;function UK(e,[t,n]){return Math.min(n,Math.max(t,e))}function $K(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function VK(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>Z.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return Z.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=Z.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,c=Z.useMemo((()=>s),Object.values(s));return Vh.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,c=Z.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},GK(r,...t)]}function GK(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return Z.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function WK(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function qK(...e){return t=>{let n=!1;const r=e.map((e=>{const r=WK(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():WK(e[t],null)}}}}function YK(...e){return Z.useCallback(qK(...e),e)}function KK(e){const t=XK(e),n=Z.forwardRef(((e,n)=>{const{children:r,...a}=e,o=Z.Children.toArray(r),i=o.find(ZK);if(i){const e=i.props.children,r=o.map((t=>t===i?Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null:t));return Vh.jsx(t,{...a,ref:n,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,r):null})}return Vh.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function XK(e){const t=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;if(Z.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{const t=o(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Z.Fragment&&(a.ref=t?qK(t,e):e),Z.cloneElement(n,a)}return Z.Children.count(n)>1?Z.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var QK=Symbol("radix.slottable");function ZK(e){return Z.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===QK}var JK=Z.createContext(void 0);function eX(e){const t=Z.useContext(JK);return e||t||"ltr"}function tX(e){const t=rX(e),n=Z.forwardRef(((e,n)=>{const{children:r,...a}=e,o=Z.Children.toArray(r),i=o.find(oX);if(i){const e=i.props.children,r=o.map((t=>t===i?Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null:t));return Vh.jsx(t,{...a,ref:n,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,r):null})}return Vh.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}var nX=tX("Slot");function rX(e){const t=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;if(Z.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Z.Fragment&&(a.ref=t?qK(t,e):e),Z.cloneElement(n,a)}return Z.Children.count(n)>1?Z.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var aX=Symbol("radix.slottable");function oX(e){return Z.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===aX}var iX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=tX(`Primitive.${t}`),r=Z.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Vh.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});var sX,lX="dismissableLayer.update",cX="dismissableLayer.pointerDownOutside",uX="dismissableLayer.focusOutside",dX=Z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pX=Z.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=Z.useContext(dX),[u,d]=Z.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=Z.useState({}),f=YK(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=nW(e),r=Z.useRef(!1),a=Z.useRef((()=>{}));return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){fX(cX,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=nW(e),r=Z.useRef(!1);return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){fX(uX,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return function(e,t=(null==globalThis?void 0:globalThis.document)){const n=nW(e);Z.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),Z.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(sX=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),hX(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=sX)}}),[u,p,n,c]),Z.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),hX())}),[u,c]),Z.useEffect((()=>{const e=()=>h({});return document.addEventListener(lX,e),()=>document.removeEventListener(lX,e)}),[]),Vh.jsx(iX.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:$K(e.onFocusCapture,x.onFocusCapture),onBlurCapture:$K(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:$K(e.onPointerDownCapture,w.onPointerDownCapture)})}));pX.displayName="DismissableLayer";function hX(){const e=new CustomEvent(lX);document.dispatchEvent(e)}function fX(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&ue.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}Z.forwardRef(((e,t)=>{const n=Z.useContext(dX),r=Z.useRef(null),a=YK(t,r);return Z.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),Vh.jsx(iX.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var mX=0;function gX(){Z.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yX()),document.body.insertAdjacentElement("beforeend",e[1]??yX()),mX++,()=>{1===mX&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),mX--}}),[])}function yX(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var bX="focusScope.autoFocusOnMount",vX="focusScope.autoFocusOnUnmount",kX={bubbles:!1,cancelable:!0},wX=Z.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=Z.useState(null),c=nW(a),u=nW(o),d=Z.useRef(null),p=YK(t,(e=>l(e))),h=Z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Z.useEffect((()=>{if(r){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:SX(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||SX(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&SX(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,h.paused]),Z.useEffect((()=>{if(s){TX.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(bX,kX);s.addEventListener(bX,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(SX(r,{select:t}),document.activeElement!==n)return}((e=xX(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&SX(s))}return()=>{s.removeEventListener(bX,c),setTimeout((()=>{const e=new CustomEvent(vX,kX);s.addEventListener(vX,u),s.dispatchEvent(e),e.defaultPrevented||SX(t??document.body,{select:!0}),s.removeEventListener(vX,u),TX.remove(h)}),0)}}var e}),[s,c,u,h]);const f=Z.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=function(e){const t=xX(e),n=EX(t,e),r=EX(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&SX(o,{select:!0})):(e.preventDefault(),n&&SX(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,h.paused]);return Vh.jsx(iX.div,{tabIndex:-1,...i,ref:p,onKeyDown:f})}));function xX(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function EX(e,t){for(const n of e)if(!_X(n,{upTo:t}))return n}function _X(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function SX(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}wX.displayName="FocusScope";var TX=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=CX(e,t),e.unshift(t)},remove(t){var n;e=CX(e,t),null==(n=e[0])||n.resume()}}}();function CX(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var AX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=KK(`Primitive.${t}`),r=Z.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Vh.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),NX=Z.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return Vh.jsx(AX.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Vh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));NX.displayName="Arrow";var IX=NX;var RX="Popper",[OX,PX]=VK(RX),[LX,DX]=OX(RX),MX=e=>{const{__scopePopper:t,children:n}=e,[r,a]=Z.useState(null);return Vh.jsx(LX,{scope:t,anchor:r,onAnchorChange:a,children:n})};MX.displayName=RX;var FX="PopperAnchor",jX=Z.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=DX(FX,n),i=Z.useRef(null),s=YK(t,i);return Z.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:Vh.jsx(AX.div,{...a,ref:s})}));jX.displayName=FX;var BX="PopperContent",[HX,zX]=OX(BX),UX=Z.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=DX(BX,l),[E,_]=Z.useState(null),S=YK(t,(e=>_(e))),[T,C]=Z.useState(null),A=function(e){const[t,n]=Z.useState(void 0);return LO((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(WX),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=eV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>H$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[nV({mainAxis:u+I,alignmentAxis:p}),f&&rV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?aV():void 0,...D}),f&&oV({...D}),iV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&lV({element:T,padding:h}),qX({arrowWidth:N,arrowHeight:I}),b&&sV({strategy:"referenceHidden",...D})]}),[z,U]=YX(j),$=nW(k);LO((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=Z.useState();return LO((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),Vh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Vh.jsx(HX,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:Vh.jsx(AX.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));UX.displayName=BX;var $X="PopperArrow",VX={top:"bottom",right:"left",bottom:"top",left:"right"},GX=Z.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=zX($X,n),o=VX[a.placedSide];return Vh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:Vh.jsx(IX,{...r,ref:t,style:{...r.style,display:"block"}})})}));function WX(e){return null!==e}GX.displayName=$X;var qX=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=YX(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function YX(e){const[t,n="center"]=e.split("-");return[t,n]}var KX=MX,XX=jX,QX=UX,ZX=GX,JX=Z.forwardRef(((e,t)=>{var n;const{container:r,...a}=e,[o,i]=Z.useState(!1);LO((()=>i(!0)),[]);const s=r||o&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?de.createPortal(Vh.jsx(iX.div,{...a,ref:t}),s):null}));JX.displayName="Portal";const eQ=[" ","Enter","ArrowUp","ArrowDown"],tQ=[" ","Enter"],nQ="Select",[rQ,aQ,oQ]=function(e){const t=e+"CollectionProvider",[n,r]=VK(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=J.useRef(null),o=J.useRef(new Map).current;return Vh.jsx(a,{scope:t,itemMap:o,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=KK(s),c=J.forwardRef(((e,t)=>{const{scope:n,children:r}=e,a=YK(t,o(s,n).collectionRef);return Vh.jsx(l,{ref:a,children:r})}));c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=KK(u),h=J.forwardRef(((e,t)=>{const{scope:n,children:r,...a}=e,i=J.useRef(null),s=YK(t,i),l=o(u,n);return J.useEffect((()=>(l.itemMap.set(i,{ref:i,...a}),()=>{l.itemMap.delete(i)}))),Vh.jsx(p,{[d]:"",ref:s,children:r})}));return h.displayName=u,[{Provider:i,Slot:c,ItemSlot:h},function(t){const n=o(e+"CollectionConsumer",t);return J.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}(nQ),[iQ,sQ]=VK(nQ,[oQ,PX]),lQ=PX(),[cQ,uQ]=iQ(nQ),[dQ,pQ]=iQ(nQ),hQ=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:l,dir:c,disabled:u,required:d}=e,p=lQ(t),[h,f]=Z.useState(null),[m,g]=Z.useState(null),[y,b]=Z.useState(!1),v=eX(c),[k,w]=rW({prop:r,defaultProp:a??!1,onChange:o}),[x,E]=rW({prop:i,defaultProp:s,onChange:l}),_=Z.useRef(null),[S,T]=Z.useState(new Set);return Vh.jsx(KX,{...p,children:Vh.jsx(cQ,{required:d,scope:t,trigger:h,onTriggerChange:f,valueNode:m,onValueNodeChange:g,valueNodeHasChildren:y,onValueNodeHasChildrenChange:b,contentId:FO(),value:x,onValueChange:E,open:!!k,onOpenChange:w,dir:v,triggerPointerDownPosRef:_,disabled:u,children:Vh.jsx(rQ.Provider,{scope:t,children:Vh.jsx(dQ,{scope:e.__scopeSelect,onNativeOptionAdd:Z.useCallback((e=>{T((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:Z.useCallback((e=>{T((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:n})})})})};hQ.displayName=nQ;const fQ="SelectTrigger",mQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=lQ(n),i=uQ(fQ,n),s=i.disabled||r,l=YK(t,i.onTriggerChange),c=aQ(n),u=Z.useRef("touch"),[d,p,h]=KQ((e=>{const t=c().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=XQ(t,e,n);void 0!==r&&i.onValueChange(r.value)})),f=e=>{s||(i.onOpenChange(!0),h()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return Vh.jsx(XX,{asChild:!0,...o,children:Vh.jsx(iX.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":YQ(i.value)?"":void 0,...a,ref:l,onClick:$K(a.onClick,(e=>{e.currentTarget.focus(),"mouse"!==u.current&&f(e)})),onPointerDown:$K(a.onPointerDown,(e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())})),onKeyDown:$K(a.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||eQ.includes(e.key)&&(f(),e.preventDefault())}))})})}));mQ.displayName=fQ;const gQ="SelectValue",yQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,l=uQ(gQ,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==o,d=YK(t,l.onValueNodeChange);return LO((()=>{c(u)}),[c,u]),Vh.jsx(iX.span,{...s,ref:d,style:{pointerEvents:"none"},children:YQ(l.value)?Vh.jsx(Vh.Fragment,{children:i}):o})}));yQ.displayName=gQ;const bQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return Vh.jsx(iX.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})}));bQ.displayName="SelectIcon";const vQ="SelectContent",kQ=Z.forwardRef(((e,t)=>{const n=uQ(vQ,e.__scopeSelect),[r,a]=Z.useState();if(LO((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?ue.createPortal(Vh.jsx(xQ,{scope:e.__scopeSelect,children:Vh.jsx(rQ.Slot,{scope:e.__scopeSelect,children:Vh.jsx("div",{children:e.children})})}),t):null}return Vh.jsx(SQ,{...e,ref:t})}));kQ.displayName=vQ;const wQ=10,[xQ,EQ]=iQ(vQ),_Q=tX("SelectContent.RemoveScroll"),SQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:f,hideWhenDetached:m,avoidCollisions:g,...y}=e,b=uQ(vQ,n),[v,k]=Z.useState(null),[w,x]=Z.useState(null),E=YK(t,(e=>k(e))),[_,S]=Z.useState(null),[T,C]=Z.useState(null),A=aQ(n),[N,I]=Z.useState(!1),R=Z.useRef(!1);Z.useEffect((()=>{if(v)return Yq(v)}),[v]),gX();const O=Z.useCallback((e=>{const[t,...n]=A().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement;for(const o of e){if(o===a)return;if(null==o||o.scrollIntoView({block:"nearest"}),o===t&&w&&(w.scrollTop=0),o===r&&w&&(w.scrollTop=w.scrollHeight),null==o||o.focus(),document.activeElement!==a)return}}),[A,w]),P=Z.useCallback((()=>O([_,v])),[O,_,v]);Z.useEffect((()=>{N&&P()}),[N,P]);const{onOpenChange:L,triggerPointerDownPosRef:D}=b;Z.useEffect((()=>{if(v){let e={x:0,y:0};const t=t=>{var n,r;e={x:Math.abs(Math.round(t.pageX)-((null==(n=D.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(r=D.current)?void 0:r.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():v.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[v,L,D]),Z.useEffect((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[M,F]=KQ((e=>{const t=A().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=XQ(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),j=Z.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&(S(e),r&&(R.current=!0))}),[b.value]),B=Z.useCallback((()=>null==v?void 0:v.focus()),[v]),H=Z.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&C(e)}),[b.value]),z="popper"===r?CQ:TQ,U=z===CQ?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:f,hideWhenDetached:m,avoidCollisions:g}:{};return Vh.jsx(xQ,{scope:n,content:v,viewport:w,onViewportChange:x,itemRefCallback:j,selectedItem:_,onItemLeave:B,itemTextRefCallback:H,focusSelectedItem:P,selectedItemText:T,position:r,isPositioned:N,searchRef:M,children:Vh.jsx(PY,{as:_Q,allowPinchZoom:!0,removeScrollBar:!1,children:Vh.jsx(wX,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:$K(a,(e=>{var t;null==(t=b.trigger)||t.focus({preventScroll:!0}),e.preventDefault()})),children:Vh.jsx(pX,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:Vh.jsx(z,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...U,onPlaced:()=>I(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:$K(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>O(t))),e.preventDefault()}}))})})})})})}));SQ.displayName="SelectContentImpl";const TQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=uQ(vQ,n),i=EQ(vQ,n),[s,l]=Z.useState(null),[c,u]=Z.useState(null),d=YK(t,(e=>u(e))),p=aQ(n),h=Z.useRef(!1),f=Z.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=i,v=Z.useCallback((()=>{if(o.trigger&&o.valueNode&&s&&c&&m&&g&&y){const e=o.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=y.getBoundingClientRect();if("rtl"!==o.dir){const r=a.left-t.left,o=n.left-r,i=e.left-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-wQ,d=UK(o,[wQ,Math.max(wQ,u-c)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-a.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-wQ,d=UK(o,[wQ,Math.max(wQ,u-c)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=p(),l=window.innerHeight-2*wQ,u=m.scrollHeight,d=window.getComputedStyle(c),f=Number.parseInt(d.borderTopWidth,10),b=Number.parseInt(d.paddingTop,10),v=Number.parseInt(d.borderBottomWidth,10),k=f+b+u+Number.parseInt(d.paddingBottom,10)+v,w=Math.min(5*g.offsetHeight,k),x=window.getComputedStyle(m),E=Number.parseInt(x.paddingTop,10),_=Number.parseInt(x.paddingBottom,10),S=e.top+e.height/2-wQ,T=l-S,C=g.offsetHeight/2,A=f+b+(g.offsetTop+C),N=k-A;if(A<=S){const e=i.length>0&&g===i[i.length-1].ref.current;s.style.bottom="0px";const t=c.clientHeight-m.offsetTop-m.offsetHeight,n=A+Math.max(T,C+(e?_:0)+t+v);s.style.height=n+"px"}else{const e=i.length>0&&g===i[0].ref.current;s.style.top="0px";const t=Math.max(S,f+m.offsetTop+(e?E:0)+C)+N;s.style.height=t+"px",m.scrollTop=A-S+m.offsetTop}s.style.margin=`${wQ}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame((()=>h.current=!0))}}),[p,o.trigger,o.valueNode,s,c,m,g,y,o.dir,r]);LO((()=>v()),[v]);const[k,w]=Z.useState();LO((()=>{c&&w(window.getComputedStyle(c).zIndex)}),[c]);const x=Z.useCallback((e=>{e&&!0===f.current&&(v(),null==b||b(),f.current=!1)}),[v,b]);return Vh.jsx(AQ,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:x,children:Vh.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:Vh.jsx(iX.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));TQ.displayName="SelectItemAlignedPosition";const CQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=wQ,...o}=e,i=lQ(n);return Vh.jsx(QX,{...i,...o,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})}));CQ.displayName="SelectPopperPosition";const[AQ,NQ]=iQ(vQ,{}),IQ="SelectViewport",RQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=EQ(IQ,n),i=NQ(IQ,n),s=YK(t,o.onViewportChange),l=Z.useRef(0);return Vh.jsxs(Vh.Fragment,{children:[Vh.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),Vh.jsx(rQ.Slot,{scope:n,children:Vh.jsx(iX.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:$K(a.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if((null==r?void 0:r.current)&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*wQ,a=Number.parseFloat(n.style.minHeight),o=Number.parseFloat(n.style.height),i=Math.max(a,o);if(i<r){const a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))})})]})}));RQ.displayName=IQ;const OQ="SelectGroup",[PQ,LQ]=iQ(OQ);Z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=FO();return Vh.jsx(PQ,{scope:n,id:a,children:Vh.jsx(iX.div,{role:"group","aria-labelledby":a,...r,ref:t})})})).displayName=OQ;const DQ="SelectLabel";Z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=LQ(DQ,n);return Vh.jsx(iX.div,{id:a.id,...r,ref:t})})).displayName=DQ;const MQ="SelectItem",[FQ,jQ]=iQ(MQ),BQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=uQ(MQ,n),l=EQ(MQ,n),c=s.value===r,[u,d]=Z.useState(o??""),[p,h]=Z.useState(!1),f=YK(t,(e=>{var t;return null==(t=l.itemRefCallback)?void 0:t.call(l,e,r,a)})),m=FO(),g=Z.useRef("touch"),y=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Vh.jsx(FQ,{scope:n,value:r,disabled:a,textId:m,isSelected:c,onItemTextChange:Z.useCallback((e=>{d((t=>t||((null==e?void 0:e.textContent)??"").trim()))}),[]),children:Vh.jsx(rQ.ItemSlot,{scope:n,value:r,disabled:a,textValue:u,children:Vh.jsx(iX.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:f,onFocus:$K(i.onFocus,(()=>h(!0))),onBlur:$K(i.onBlur,(()=>h(!1))),onClick:$K(i.onClick,(()=>{"mouse"!==g.current&&y()})),onPointerUp:$K(i.onPointerUp,(()=>{"mouse"===g.current&&y()})),onPointerDown:$K(i.onPointerDown,(e=>{g.current=e.pointerType})),onPointerMove:$K(i.onPointerMove,(e=>{var t;g.current=e.pointerType,a?null==(t=l.onItemLeave)||t.call(l):"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:$K(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null==(t=l.onItemLeave)||t.call(l))})),onKeyDown:$K(i.onKeyDown,(e=>{var t;""!==(null==(t=l.searchRef)?void 0:t.current)&&" "===e.key||(tQ.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))})})})}));BQ.displayName=MQ;const HQ="SelectItemText",zQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=uQ(HQ,n),s=EQ(HQ,n),l=jQ(HQ,n),c=pQ(HQ,n),[u,d]=Z.useState(null),p=YK(t,(e=>d(e)),l.onItemTextChange,(e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,l.value,l.disabled)})),h=null==u?void 0:u.textContent,f=Z.useMemo((()=>Vh.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value)),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return LO((()=>(m(f),()=>g(f))),[m,g,f]),Vh.jsxs(Vh.Fragment,{children:[Vh.jsx(iX.span,{id:l.textId,...o,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ue.createPortal(o.children,i.valueNode):null]})}));zQ.displayName=HQ;const UQ="SelectItemIndicator",$Q=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return jQ(UQ,n).isSelected?Vh.jsx(iX.span,{"aria-hidden":!0,...r,ref:t}):null}));$Q.displayName=UQ;const VQ="SelectScrollUpButton";Z.forwardRef(((e,t)=>{const n=EQ(VQ,e.__scopeSelect),r=NQ(VQ,e.__scopeSelect),[a,o]=Z.useState(!1),i=YK(t,r.onScrollButtonChange);return LO((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?Vh.jsx(WQ,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null})).displayName=VQ;const GQ="SelectScrollDownButton";Z.forwardRef(((e,t)=>{const n=EQ(GQ,e.__scopeSelect),r=NQ(GQ,e.__scopeSelect),[a,o]=Z.useState(!1),i=YK(t,r.onScrollButtonChange);return LO((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?Vh.jsx(WQ,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null})).displayName=GQ;const WQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=EQ("SelectScrollButton",n),i=Z.useRef(null),s=aQ(n),l=Z.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return Z.useEffect((()=>()=>l()),[l]),LO((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})}),[s]),Vh.jsx(iX.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:$K(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:$K(a.onPointerMove,(()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:$K(a.onPointerLeave,(()=>{l()}))})}));Z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return Vh.jsx(iX.div,{"aria-hidden":!0,...r,ref:t})})).displayName="SelectSeparator";const qQ="SelectArrow";function YQ(e){return""===e||void 0===e}function KQ(e){const t=nW(e),n=Z.useRef(""),r=Z.useRef(0),a=Z.useCallback((e=>{const a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(a)}),[t]),o=Z.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return Z.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,a,o]}function XQ(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=(i=e,s=Math.max(a,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===r.length&&(o=o.filter((e=>e!==n)));const l=o.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}Z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=lQ(n),o=uQ(qQ,n),i=EQ(qQ,n);return o.open&&"popper"===i.position?Vh.jsx(ZX,{...a,...r,ref:t}):null})).displayName=qQ;const QQ=hQ,ZQ=mQ,JQ=yQ,eZ=bQ,tZ=kQ,nZ=RQ,rZ=BQ,aZ=zQ,oZ=$Q;var iZ=Object.defineProperty,sZ=(e,t,n)=>((e,t,n)=>t in e?iZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),lZ={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},cZ=[],uZ=class{constructor(e,t){sZ(this,"trapStack"),sZ(this,"config"),sZ(this,"doc"),sZ(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),sZ(this,"portalContainers",new Set),sZ(this,"listenerCleanups",[]),sZ(this,"handleFocus",(e=>{const t=dM(e),n=this.findContainerIndex(t,e)>=0;if(n||HD(t))n&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let n=!0;if(this.state.mostRecentlyFocusedNode)if(NM(this.state.mostRecentlyFocusedNode)>0){const e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:r}=this.state.containerGroups[e];if(r.length>0){const e=r.findIndex((e=>e===this.state.mostRecentlyFocusedNode));e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<r.length&&(t=r[e+1],n=!1):e-1>=0&&(t=r[e-1],n=!1))}}else this.state.containerGroups.some((e=>e.tabbableNodes.some((e=>NM(e)>0))))||(n=!1);else n=!1;n&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0})),sZ(this,"handlePointerDown",(e=>{const t=dM(e);this.findContainerIndex(t,e)>=0||(mZ(this.config.clickOutsideDeactivates,e)?this.deactivate({returnFocus:this.config.returnFocusOnDeactivate}):mZ(this.config.allowOutsideClick,e)||e.preventDefault())})),sZ(this,"handleClick",(e=>{const t=dM(e);this.findContainerIndex(t,e)>=0||mZ(this.config.clickOutsideDeactivates,e)||mZ(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())})),sZ(this,"handleTabKey",(e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;const t=this.config.isKeyBackward(e),n=this.findNextNavNode({event:e,isBackward:t});if(!n)return;pZ(e)&&e.preventDefault(),this.tryFocus(n)}})),sZ(this,"handleEscapeKey",(e=>{gZ(e)&&!1!==mZ(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())})),sZ(this,"_mutationObserver"),sZ(this,"setupMutationObserver",(()=>{const e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver((e=>{e.some((e=>Array.from(e.removedNodes).some((e=>e===this.state.mostRecentlyFocusedNode))))&&this.tryFocus(this.getInitialFocusNode());e.some((e=>"attributes"===e.type&&("aria-controls"===e.attributeName||"aria-expanded"===e.attributeName)||"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some((e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;const t=e;return!!function(e){var t;return!!function(e){return e.hasAttribute("aria-controls")&&"true"===e.getAttribute("aria-expanded")}(e)||Boolean(null==(t=e.querySelector)?void 0:t.call(e,'[aria-controls][aria-expanded="true"]'))}(t)||!(!t.id||this.state.containers.some((e=>e.contains(t))))&&oM(t)}))))&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())}))})),sZ(this,"updateObservedNodes",(()=>{var e;null==(e=this._mutationObserver)||e.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map((e=>{var t;null==(t=this._mutationObserver)||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})})),this.portalContainers.forEach((e=>{this.observePortalContainer(e)})))})),sZ(this,"getInitialFocusNode",(()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!TM(e)){const t=KD(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{const t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e.isConnected||(e=this.getNodeForOption("fallbackFocus")),e})),sZ(this,"tryFocus",(e=>{!1!==e&&e!==KD(this.doc)&&(e&&e.focus?(e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,bZ(e)&&e.select()):this.tryFocus(this.getInitialFocusNode()))})),sZ(this,"deactivate",(e=>{if(!this.state.active)return this;const t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),lZ.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const n=this.getOption(t,"onDeactivate"),r=this.getOption(t,"onPostDeactivate"),a=this.getOption(t,"checkCanReturnFocus"),o=this.getOption(t,"returnFocus","returnFocusOnDeactivate");null==n||n();const i=()=>{yZ((()=>{if(o){const e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}null==r||r()}))};if(o&&a){return a(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(i,i),this}return i(),this})),sZ(this,"pause",(e=>{if(this.state.paused||!this.state.active)return this;const t=this.getOption(e,"onPause"),n=this.getOption(e,"onPostPause");return this.state.paused=!0,null==t||t(),this.removeListeners(),this.updateObservedNodes(),null==n||n(),this})),sZ(this,"unpause",(e=>{if(!this.state.paused||!this.state.active)return this;const t=this.getOption(e,"onUnpause"),n=this.getOption(e,"onPostUnpause");return this.state.paused=!1,null==t||t(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),null==n||n(),this})),sZ(this,"updateContainerElements",(e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this))),sZ(this,"getReturnFocusNode",(e=>{const t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e})),sZ(this,"getOption",((e,t,n)=>e&&void 0!==e[t]?e[t]:this.config[n||t])),sZ(this,"getNodeForOption",((e,{hasFallback:t=!1,params:n=[]}={})=>{let r=this.config[e];if("function"==typeof r&&(r=r(...n)),!0===r&&(r=void 0),!r){if(void 0===r||!1===r)return r;throw new Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let a=r;if("string"==typeof r){try{a=this.doc.querySelector(r)}catch(dEe){throw new Error(`\`${e}\` appears to be an invalid selector; error="${dEe.message}"`)}if(!a&&!t)throw new Error(`\`${e}\` as selector refers to no known node`)}return a})),sZ(this,"findNextNavNode",(e=>{const{event:t,isBackward:n=!1}=e,r=e.target||dM(t);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const e=this.findContainerIndex(r,t),o=e>=0?this.state.containerGroups[e]:void 0;if(e<0)a=n?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(n){let n=this.state.tabbableGroups.findIndex((({firstTabbableNode:e})=>r===e));if(n<0&&((null==o?void 0:o.container)===r||TM(r)&&!AM(r)&&!(null==o?void 0:o.nextTabbableNode(r,!1)))&&(n=e),n>=0){const e=0===n?this.state.tabbableGroups.length-1:n-1,t=this.state.tabbableGroups[e];a=NM(r)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else pZ(t)||(a=null==o?void 0:o.nextTabbableNode(r,!1))}else{let n=this.state.tabbableGroups.findIndex((({lastTabbableNode:e})=>r===e));if(n<0&&((null==o?void 0:o.container)===r||TM(r)&&!AM(r)&&!(null==o?void 0:o.nextTabbableNode(r)))&&(n=e),n>=0){const e=n===this.state.tabbableGroups.length-1?0:n+1,t=this.state.tabbableGroups[e];a=NM(r)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else pZ(t)||(a=null==o?void 0:o.nextTabbableNode(r))}}else a=this.getNodeForOption("fallbackFocus");return a})),this.trapStack=t.trapStack||cZ;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:hZ,isKeyBackward:fZ,...t};this.doc=n.document||qD(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){var t;null==(t=this._mutationObserver)||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach((e=>{aM(e).forEach((e=>{this.addPortalContainer(e)}))}))}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return this.state.containerGroups.findIndex((({container:t,tabbableNodes:r})=>t.contains(e)||(null==n?void 0:n.includes(t))||r.find((t=>t===e))||this.isControlledElement(t,e)))}isControlledElement(e,t){return!!this.config.followControlledElements&&rM(e,t)}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map((e=>{const t=CM(e,{getShadowRoot:this.config.getShadowRoot}),n=SM(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],a=t[t.length-1],o=r,i=a;let s=!1;for(let l=0;l<t.length;l++)if(NM(t[l])>0){s=!0;break}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:i,nextTabbableNode:function(e,r=!0){const a=t.indexOf(e);if(a>=0)return t[a+(r?1:-1)];const o=n.indexOf(e);if(!(o<0))if(r){for(let t=o+1;t<n.length;t++)if(AM(n[t]))return n[t]}else for(let t=o-1;t>=0;t--)if(AM(n[t]))return n[t]}}})),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 lZ.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?yZ((()=>{this.tryFocus(this.getInitialFocusNode())})):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(bM(this.doc,"focusin",this.handleFocus,!0),bM(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),bM(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),bM(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),bM(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),bM(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=KD(this.doc),null==t||t();const a=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),null==n||n()};return r?(r(this.state.containers.concat()).then(a,a),this):(a(),this)}},dZ=e=>"keydown"===e.type,pZ=e=>dZ(e)&&"Tab"===(null==e?void 0:e.key),hZ=e=>dZ(e)&&"Tab"===e.key&&!(null==e?void 0:e.shiftKey),fZ=e=>dZ(e)&&"Tab"===e.key&&(null==e?void 0:e.shiftKey),mZ=(e,...t)=>"function"==typeof e?e(...t):e,gZ=e=>!e.isComposing&&"Escape"===e.key,yZ=e=>setTimeout(e,0),bZ=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;var vZ=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=Z.useState(),r=Z.useRef({}),a=Z.useRef(e),o=Z.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return Z.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Z.useEffect((()=>{const e=kZ(r.current);o.current="mounted"===s?e:"none"}),[s]),LO((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=kZ(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,l]),LO((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=kZ(r.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=kZ(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Z.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:r.isPresent}):Z.Children.only(n),o=YK(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?Z.cloneElement(a,{ref:o}):null};function kZ(e){return(null==e?void 0:e.animationName)||"none"}vZ.displayName="Presence";const wZ="Dialog",[xZ,EZ]=VK(wZ),[_Z,SZ]=xZ(wZ),TZ=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=Z.useRef(null),l=Z.useRef(null),[c=!1,u]=rW({prop:r,defaultProp:a,onChange:o});return Vh.jsx(_Z,{scope:t,triggerRef:s,contentRef:l,contentId:FO(),titleId:FO(),descriptionId:FO(),open:c,onOpenChange:u,onOpenToggle:Z.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};TZ.displayName=wZ;const CZ="DialogTrigger";Z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=SZ(CZ,n),o=YK(t,a.triggerRef);return Vh.jsx(iX.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":GZ(a.open),...r,ref:o,onClick:$K(e.onClick,a.onOpenToggle)})})).displayName=CZ;const AZ="DialogPortal",[NZ,IZ]=xZ(AZ,{forceMount:void 0}),RZ=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=SZ(AZ,t);return Vh.jsx(NZ,{scope:t,forceMount:n,children:Z.Children.map(r,(e=>Vh.jsx(vZ,{present:n||o.open,children:Vh.jsx(JX,{asChild:!0,container:a,children:e})})))})};RZ.displayName=AZ;const OZ="DialogOverlay",PZ=Z.forwardRef(((e,t)=>{const n=IZ(OZ,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=SZ(OZ,e.__scopeDialog);return o.modal?Vh.jsx(vZ,{present:r||o.open,children:Vh.jsx(LZ,{...a,ref:t})}):null}));PZ.displayName=OZ;const LZ=Z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=SZ(OZ,n);return Vh.jsx(PY,{as:nX,allowPinchZoom:!0,shards:[a.contentRef],gapMode:"padding",removeScrollBar:!0,children:Vh.jsx(iX.div,{"data-state":GZ(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),DZ="DialogContent",MZ=Z.forwardRef(((e,t)=>{const n=IZ(DZ,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=SZ(DZ,e.__scopeDialog);return Vh.jsx(vZ,{present:r||o.open,children:o.modal?Vh.jsx(FZ,{...a,ref:t}):Vh.jsx(jZ,{...a,ref:t})})}));MZ.displayName=DZ;const FZ=Z.forwardRef(((e,t)=>{const n=SZ(DZ,e.__scopeDialog),r=Z.useRef(null),a=YK(t,n.contentRef,r);return Z.useEffect((()=>{const e=r.current;if(e)return Yq(e)}),[]),Vh.jsx(BZ,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onPointerDownOutside:$K(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:$K(e.onFocusOutside,(e=>e.preventDefault()))})})),jZ=Z.forwardRef(((e,t)=>{const n=SZ(DZ,e.__scopeDialog),r=Z.useRef(!1),a=Z.useRef(!1);return Vh.jsx(BZ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),BZ=Z.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=SZ(DZ,n),l=Z.useRef(null),c=YK(t,l);return gX(),Z.useEffect((()=>{if(r)return function(e,t={}){let n;const r=RM((()=>{const r=(Array.isArray(e)?e:[e]).map((e=>"function"==typeof e?e():e)).filter((e=>null!=e));if(0===r.length)return;const a=r[0];n=new uZ(r,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:a,...t,document:qD(a)});try{n.activate()}catch{}}));return function(){null==n||n.deactivate(),r()}}(l.current,{preventScroll:!0,onActivate:a,onDeactivate:o,initialFocus:!1})}),[]),Vh.jsx(pX,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":GZ(s.open),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})})),HZ="DialogTitle",zZ=Z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=SZ(HZ,n);return Vh.jsx(iX.h2,{id:a.titleId,...r,ref:t})}));zZ.displayName=HZ;const UZ="DialogDescription";Z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=SZ(UZ,n);return Vh.jsx(iX.p,{id:a.descriptionId,...r,ref:t})})).displayName=UZ;const $Z="DialogClose",VZ=Z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=SZ($Z,n);return Vh.jsx(iX.button,{type:"button",...r,ref:t,onClick:$K(e.onClick,(()=>a.onOpenChange(!1)))})}));function GZ(e){return e?"open":"closed"}VZ.displayName=$Z;const WZ=TZ,qZ=RZ,YZ=PZ,KZ=MZ,XZ=zZ,QZ=VZ,ZZ=Z.forwardRef(((e,t)=>{const n=Z.useId();return Vh.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"100%",width:"100%",ref:t,...e,children:[Vh.jsx("title",{children:"AI Avatar"}),Vh.jsx("path",{d:"M9.937 15.5002C9.84772 15.1542 9.66734 14.8384 9.41462 14.5856C9.1619 14.3329 8.84607 14.1525 8.5 14.0632L2.365 12.4812C2.26033 12.4515 2.16821 12.3885 2.10261 12.3017C2.03702 12.2149 2.00153 12.1091 2.00153 12.0002C2.00153 11.8914 2.03702 11.7856 2.10261 11.6988C2.16821 11.612 2.26033 11.549 2.365 11.5192L8.5 9.93625C8.84595 9.84706 9.16169 9.66682 9.4144 9.41429C9.66711 9.16175 9.84757 8.84614 9.937 8.50025L11.519 2.36525C11.5484 2.26017 11.6114 2.16759 11.6983 2.10164C11.7853 2.0357 11.8914 2 12.0005 2C12.1096 2 12.2157 2.0357 12.3027 2.10164C12.3896 2.16759 12.4526 2.26017 12.482 2.36525L14.063 8.50025C14.1523 8.84632 14.3327 9.16215 14.5854 9.41487C14.8381 9.66759 15.1539 9.84797 15.5 9.93725L21.635 11.5182C21.7405 11.5473 21.8335 11.6103 21.8998 11.6973C21.9661 11.7844 22.0021 11.8908 22.0021 12.0002C22.0021 12.1097 21.9661 12.2161 21.8998 12.3032C21.8335 12.3902 21.7405 12.4531 21.635 12.4822L15.5 14.0632C15.1539 14.1525 14.8381 14.3329 14.5854 14.5856C14.3327 14.8384 14.1523 15.1542 14.063 15.5002L12.481 21.6353C12.4516 21.7403 12.3886 21.8329 12.3017 21.8989C12.2147 21.9648 12.1086 22.0005 11.9995 22.0005C11.8904 22.0005 11.7843 21.9648 11.6973 21.8989C11.6104 21.8329 11.5474 21.7403 11.518 21.6353L9.937 15.5002Z",stroke:`url(#${n}-stroke1)`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Vh.jsx("path",{d:"M18.9838 5.37522C18.9615 5.28871 18.9164 5.20975 18.8532 5.14657C18.79 5.08339 18.7111 5.0383 18.6246 5.01598L17.0909 4.62049C17.0647 4.61306 17.0417 4.5973 17.0253 4.5756C17.0089 4.5539 17 4.52744 17 4.50024C17 4.47304 17.0089 4.44659 17.0253 4.42488C17.0417 4.40318 17.0647 4.38742 17.0909 4.38L18.6246 3.98426C18.7111 3.96196 18.79 3.9169 18.8532 3.85377C18.9163 3.79064 18.9615 3.71174 18.9838 3.62527L19.3793 2.09155C19.3867 2.06528 19.4024 2.04214 19.4241 2.02565C19.4459 2.00917 19.4724 2.00024 19.4997 2.00024C19.527 2.00024 19.5535 2.00917 19.5752 2.02565C19.597 2.04214 19.6127 2.06528 19.6201 2.09155L20.0153 3.62527C20.0376 3.71178 20.0827 3.79074 20.1459 3.85391C20.2091 3.91709 20.288 3.96219 20.3745 3.98451L21.9082 4.37975C21.9346 4.38702 21.9579 4.40275 21.9744 4.42452C21.991 4.44628 22 4.47288 22 4.50024C22 4.5276 21.991 4.55421 21.9744 4.57597C21.9579 4.59774 21.9346 4.61347 21.9082 4.62074L20.3745 5.01598C20.288 5.0383 20.2091 5.08339 20.1459 5.14657C20.0827 5.20975 20.0376 5.28871 20.0153 5.37522L19.6198 6.90893C19.6124 6.9352 19.5967 6.95835 19.575 6.97483C19.5532 6.99132 19.5267 7.00024 19.4994 7.00024C19.4721 7.00024 19.4456 6.99132 19.4239 6.97483C19.4022 6.95835 19.3864 6.9352 19.3791 6.90893L18.9838 5.37522Z",stroke:`url(#${n}-stroke2)`,strokeLinecap:"round",strokeLinejoin:"round"}),Vh.jsx("path",{d:"M3.98382 20.3752C3.9615 20.2887 3.9164 20.2098 3.85322 20.1466C3.79005 20.0834 3.71109 20.0383 3.62458 20.016L2.09087 19.6205C2.0647 19.6131 2.04167 19.5973 2.02527 19.5756C2.00887 19.5539 2 19.5274 2 19.5002C2 19.473 2.00887 19.4466 2.02527 19.4249C2.04167 19.4032 2.0647 19.3874 2.09087 19.38L3.62458 18.9843C3.71106 18.962 3.78999 18.9169 3.85317 18.8538C3.91635 18.7906 3.96146 18.7117 3.98382 18.6253L4.37931 17.0916C4.38666 17.0653 4.4024 17.0421 4.42414 17.0257C4.44587 17.0092 4.4724 17.0002 4.49968 17.0002C4.52696 17.0002 4.55349 17.0092 4.57522 17.0257C4.59695 17.0421 4.6127 17.0653 4.62005 17.0916L5.01529 18.6253C5.03761 18.7118 5.0827 18.7907 5.14588 18.8539C5.20906 18.9171 5.28801 18.9622 5.37453 18.9845L6.90824 19.3797C6.93461 19.387 6.95787 19.4027 6.97445 19.4245C6.99102 19.4463 7 19.4729 7 19.5002C7 19.5276 6.99102 19.5542 6.97445 19.576C6.95787 19.5977 6.93461 19.6135 6.90824 19.6207L5.37453 20.016C5.28801 20.0383 5.20906 20.0834 5.14588 20.1466C5.0827 20.2098 5.03761 20.2887 5.01529 20.3752L4.6198 21.9089C4.61245 21.9352 4.5967 21.9583 4.57497 21.9748C4.55324 21.9913 4.52671 22.0002 4.49943 22.0002C4.47215 22.0002 4.44562 21.9913 4.42389 21.9748C4.40215 21.9583 4.38641 21.9352 4.37906 21.9089L3.98382 20.3752Z",stroke:`url(#${n}-stroke3)`,strokeLinecap:"round",strokeLinejoin:"round"}),Vh.jsxs("defs",{children:[Vh.jsxs("linearGradient",{id:`${n}-stroke1`,x1:"0.149625",y1:"0.148102",x2:"23.8539",y2:"23.8524",gradientUnits:"userSpaceOnUse",children:[Vh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),Vh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]}),Vh.jsxs("linearGradient",{id:`${n}-stroke2`,x1:"16.537",y1:"1.53728",x2:"22.463",y2:"7.46321",gradientUnits:"userSpaceOnUse",children:[Vh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),Vh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]}),Vh.jsxs("linearGradient",{id:`${n}-stroke3`,x1:"1.53704",y1:"16.5373",x2:"7.46296",y2:"22.4632",gradientUnits:"userSpaceOnUse",children:[Vh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),Vh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]})]})]})})),JZ=Z.forwardRef(((e,t)=>Vh.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"32px",viewBox:"0 96 960 960",width:"32px",ref:t,...e,children:[Vh.jsx("title",{children:"User Avatar"}),Vh.jsx("path",{d:"M222 801q63-40 124.5-60.5T480 720q72 0 134 20.5T739 801q44-54 62.5-109T820 576q0-145-97.5-242.5T480 236q-145 0-242.5 97.5T140 576q0 61 19 116t63 109Zm257.814-195Q422 606 382.5 566.314q-39.5-39.686-39.5-97.5t39.686-97.314q39.686-39.5 97.5-39.5t97.314 39.686q39.5 39.686 39.5 97.5T577.314 566.5q-39.686 39.5-97.5 39.5Zm-.219 370q-83.146 0-156.275-31.5t-127.225-86Q142 804 111 731.159 80 658.319 80 575.5q0-82.819 31.5-155.659Q143 347 197.5 293t127.341-85.5Q397.681 176 480.5 176q82.819 0 155.659 31.5Q709 239 763 293t85.5 127Q880 493 880 575.734q0 82.734-31.5 155.5T763 858.5q-54 54.5-127.129 86T479.595 976Z",fill:"currentColor"})]}))),eJ=Z.forwardRef((({isExternal:e,...t},n)=>Vh.jsx("a",{target:e?"_blank":void 0,rel:e?"noopener":void 0,...t,ref:n})));eJ.displayName="Link";const tJ=Z.forwardRef((({href:e,appendToUrl:t,...n},r)=>{const{baseSettings:a}=JO(),o=Object.assign({},a.urlQueryParamsToAppend,t),i=e?function(e,t){if(!t)return e;try{const n=new URL(e);for(const e of Object.keys(t))t[e]&&n.searchParams.append(e,t[e]);return n.href}catch{return e}}(e,o):e;return Vh.jsx(eJ,{ref:r,href:i,...n})}));function nJ(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(a,r).trim();!e&&o||t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function rJ(e,t){const n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}tJ.displayName="LinkWithQueryParams";const aJ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oJ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iJ={};function sJ(e,t){return(iJ.jsx?oJ:aJ).test(e)}const lJ=/[ \t\n\f\r]/g;function cJ(e){return""===e.replace(lJ,"")}let uJ=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function dJ(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new uJ(n,r,t)}function pJ(e){return e.toLowerCase()}uJ.prototype.normal={},uJ.prototype.property={},uJ.prototype.space=void 0;let hJ=class{constructor(e,t){this.attribute=t,this.property=e}};hJ.prototype.attribute="",hJ.prototype.booleanish=!1,hJ.prototype.boolean=!1,hJ.prototype.commaOrSpaceSeparated=!1,hJ.prototype.commaSeparated=!1,hJ.prototype.defined=!1,hJ.prototype.mustUseProperty=!1,hJ.prototype.number=!1,hJ.prototype.overloadedBoolean=!1,hJ.prototype.property="",hJ.prototype.spaceSeparated=!1,hJ.prototype.space=void 0;let fJ=0;const mJ=xJ(),gJ=xJ(),yJ=xJ(),bJ=xJ(),vJ=xJ(),kJ=xJ(),wJ=xJ();function xJ(){return 2**++fJ}const EJ=Object.freeze(Object.defineProperty({__proto__:null,boolean:mJ,booleanish:gJ,commaOrSpaceSeparated:wJ,commaSeparated:kJ,number:bJ,overloadedBoolean:yJ,spaceSeparated:vJ},Symbol.toStringTag,{value:"Module"})),_J=Object.keys(EJ);let SJ=class extends hJ{constructor(e,t,n,r){let a=-1;if(super(e,t),TJ(this,"space",r),"number"==typeof n)for(;++a<_J.length;){const e=_J[a];TJ(this,_J[a],(n&EJ[e])===EJ[e])}}};function TJ(e,t,n){n&&(e[t]=n)}function CJ(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new SJ(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[pJ(r)]=r,n[pJ(o.attribute)]=r}return new uJ(t,n,e.space)}SJ.prototype.defined=!0;const AJ=CJ({properties:{ariaActiveDescendant:null,ariaAtomic:gJ,ariaAutoComplete:null,ariaBusy:gJ,ariaChecked:gJ,ariaColCount:bJ,ariaColIndex:bJ,ariaColSpan:bJ,ariaControls:vJ,ariaCurrent:null,ariaDescribedBy:vJ,ariaDetails:null,ariaDisabled:gJ,ariaDropEffect:vJ,ariaErrorMessage:null,ariaExpanded:gJ,ariaFlowTo:vJ,ariaGrabbed:gJ,ariaHasPopup:null,ariaHidden:gJ,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vJ,ariaLevel:bJ,ariaLive:null,ariaModal:gJ,ariaMultiLine:gJ,ariaMultiSelectable:gJ,ariaOrientation:null,ariaOwns:vJ,ariaPlaceholder:null,ariaPosInSet:bJ,ariaPressed:gJ,ariaReadOnly:gJ,ariaRelevant:null,ariaRequired:gJ,ariaRoleDescription:vJ,ariaRowCount:bJ,ariaRowIndex:bJ,ariaRowSpan:bJ,ariaSelected:gJ,ariaSetSize:bJ,ariaSort:null,ariaValueMax:bJ,ariaValueMin:bJ,ariaValueNow:bJ,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function NJ(e,t){return t in e?e[t]:t}function IJ(e,t){return NJ(e,t.toLowerCase())}const RJ=CJ({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kJ,acceptCharset:vJ,accessKey:vJ,action:null,allow:null,allowFullScreen:mJ,allowPaymentRequest:mJ,allowUserMedia:mJ,alt:null,as:null,async:mJ,autoCapitalize:null,autoComplete:vJ,autoFocus:mJ,autoPlay:mJ,blocking:vJ,capture:null,charSet:null,checked:mJ,cite:null,className:vJ,cols:bJ,colSpan:null,content:null,contentEditable:gJ,controls:mJ,controlsList:vJ,coords:bJ|kJ,crossOrigin:null,data:null,dateTime:null,decoding:null,default:mJ,defer:mJ,dir:null,dirName:null,disabled:mJ,download:yJ,draggable:gJ,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:mJ,formTarget:null,headers:vJ,height:bJ,hidden:mJ,high:bJ,href:null,hrefLang:null,htmlFor:vJ,httpEquiv:vJ,id:null,imageSizes:null,imageSrcSet:null,inert:mJ,inputMode:null,integrity:null,is:null,isMap:mJ,itemId:null,itemProp:vJ,itemRef:vJ,itemScope:mJ,itemType:vJ,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:mJ,low:bJ,manifest:null,max:null,maxLength:bJ,media:null,method:null,min:null,minLength:bJ,multiple:mJ,muted:mJ,name:null,nonce:null,noModule:mJ,noValidate:mJ,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:mJ,optimum:bJ,pattern:null,ping:vJ,placeholder:null,playsInline:mJ,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:mJ,referrerPolicy:null,rel:vJ,required:mJ,reversed:mJ,rows:bJ,rowSpan:bJ,sandbox:vJ,scope:null,scoped:mJ,seamless:mJ,selected:mJ,shadowRootClonable:mJ,shadowRootDelegatesFocus:mJ,shadowRootMode:null,shape:null,size:bJ,sizes:null,slot:null,span:bJ,spellCheck:gJ,src:null,srcDoc:null,srcLang:null,srcSet:null,start:bJ,step:null,style:null,tabIndex:bJ,target:null,title:null,translate:null,type:null,typeMustMatch:mJ,useMap:null,value:gJ,width:bJ,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vJ,axis:null,background:null,bgColor:null,border:bJ,borderColor:null,bottomMargin:bJ,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:mJ,declare:mJ,event:null,face:null,frame:null,frameBorder:null,hSpace:bJ,leftMargin:bJ,link:null,longDesc:null,lowSrc:null,marginHeight:bJ,marginWidth:bJ,noResize:mJ,noHref:mJ,noShade:mJ,noWrap:mJ,object:null,profile:null,prompt:null,rev:null,rightMargin:bJ,rules:null,scheme:null,scrolling:gJ,standby:null,summary:null,text:null,topMargin:bJ,valueType:null,version:null,vAlign:null,vLink:null,vSpace:bJ,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:mJ,disableRemotePlayback:mJ,prefix:null,property:null,results:bJ,security:null,unselectable:null},space:"html",transform:IJ}),OJ=CJ({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:wJ,accentHeight:bJ,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:bJ,amplitude:bJ,arabicForm:null,ascent:bJ,attributeName:null,attributeType:null,azimuth:bJ,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:bJ,by:null,calcMode:null,capHeight:bJ,className:vJ,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:bJ,diffuseConstant:bJ,direction:null,display:null,dur:null,divisor:bJ,dominantBaseline:null,download:mJ,dx:null,dy:null,edgeMode:null,editable:null,elevation:bJ,enableBackground:null,end:null,event:null,exponent:bJ,externalResourcesRequired:null,fill:null,fillOpacity:bJ,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:kJ,g2:kJ,glyphName:kJ,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:bJ,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:bJ,horizOriginX:bJ,horizOriginY:bJ,id:null,ideographic:bJ,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:bJ,k:bJ,k1:bJ,k2:bJ,k3:bJ,k4:bJ,kernelMatrix:wJ,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:bJ,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:bJ,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:bJ,overlineThickness:bJ,paintOrder:null,panose1:null,path:null,pathLength:bJ,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vJ,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:bJ,pointsAtY:bJ,pointsAtZ:bJ,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wJ,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wJ,rev:wJ,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wJ,requiredFeatures:wJ,requiredFonts:wJ,requiredFormats:wJ,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:bJ,specularExponent:bJ,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:bJ,strikethroughThickness:bJ,string:null,stroke:null,strokeDashArray:wJ,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:bJ,strokeOpacity:bJ,strokeWidth:null,style:null,surfaceScale:bJ,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wJ,tabIndex:bJ,tableValues:null,target:null,targetX:bJ,targetY:bJ,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wJ,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:bJ,underlineThickness:bJ,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:bJ,values:null,vAlphabetic:bJ,vMathematical:bJ,vectorEffect:null,vHanging:bJ,vIdeographic:bJ,version:null,vertAdvY:bJ,vertOriginX:bJ,vertOriginY:bJ,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:bJ,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:NJ}),PJ=CJ({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),LJ=CJ({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:IJ}),DJ=CJ({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),MJ={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"},FJ=/[A-Z]/g,jJ=/-[a-z]/g,BJ=/^data[-\w.:]+$/i;function HJ(e,t){const n=pJ(t);let r=t,a=hJ;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&BJ.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(jJ,UJ);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!jJ.test(e)){let n=e.replace(FJ,zJ);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=SJ}return new a(r,t)}function zJ(e){return"-"+e.toLowerCase()}function UJ(e){return e.charAt(1).toUpperCase()}const $J=dJ([AJ,RJ,PJ,LJ,DJ],"html"),VJ=dJ([AJ,OJ,PJ,LJ,DJ],"svg");function GJ(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function WJ(e){return e.join(" ").trim()}var qJ={},YJ=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,KJ=/\n/g,XJ=/^\s*/,QJ=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ZJ=/^:\s*/,JJ=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,e0=/^[;\s]*/,t0=/^\s+|\s+$/g,n0="";function r0(e){return e?e.replace(t0,n0):n0}var a0=d&&d.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qJ,"__esModule",{value:!0}),qJ.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o0.default)(e),a="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;a?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o0=a0((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(e){var t=e.match(KJ);t&&(n+=t.length);var a=e.lastIndexOf("\n");r=~a?e.length-a:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new i(e),c(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(a){var o=new Error(t.source+":"+n+":"+r+": "+a);if(o.reason=a,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function l(t){var n=t.exec(e);if(n){var r=n[0];return a(r),e=e.slice(r.length),n}}function c(){l(XJ)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;n0!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,n0===e.charAt(n-1))return s("End of comment missing");var i=e.slice(2,n-2);return r+=2,a(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function p(){var e=o(),t=l(QJ);if(t){if(d(),!l(ZJ))return s("property missing ':'");var n=l(JJ),r=e({type:"declaration",property:r0(t[0].replace(YJ,n0)),value:n?r0(n[0].replace(YJ,n0)):n0});return l(e0),r}}return i.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()}));var i0={};Object.defineProperty(i0,"__esModule",{value:!0}),i0.camelCase=void 0;var s0=/^--[a-zA-Z0-9_-]+$/,l0=/-([a-z])/g,c0=/^[^-]+$/,u0=/^-(webkit|moz|ms|o|khtml)-/,d0=/^-(ms)-/,p0=function(e,t){return t.toUpperCase()},h0=function(e,t){return"".concat(t,"-")};i0.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||c0.test(e)||s0.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(d0,h0):e.replace(u0,h0)).replace(l0,p0))};var f0=d&&d.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},m0=f0(qJ),g0=i0;function y0(e,t){var n={};return e&&"string"==typeof e?((0,m0.default)(e,(function(e,r){e&&r&&(n[(0,g0.camelCase)(e,t)]=r)})),n):n}y0.default=y0;const b0=p(y0),v0=w0("end"),k0=w0("start");function w0(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function x0(e){return e&&"object"==typeof e?"position"in e||"type"in e?_0(e.position):"start"in e||"end"in e?_0(e):"line"in e||"column"in e?E0(e):"":""}function E0(e){return S0(e&&e.line)+":"+S0(e&&e.column)}function _0(e){return E0(e&&e.start)+"-"+E0(e&&e.end)}function S0(e){return e&&"number"==typeof e?e:1}class T0 extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(o=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=i?i.line:void 0,this.name=x0(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}T0.prototype.file="",T0.prototype.name="",T0.prototype.reason="",T0.prototype.message="",T0.prototype.stack="",T0.prototype.column=void 0,T0.prototype.line=void 0,T0.prototype.ancestors=void 0,T0.prototype.cause=void 0,T0.prototype.fatal=void 0,T0.prototype.place=void 0,T0.prototype.ruleId=void 0,T0.prototype.source=void 0;const C0={}.hasOwnProperty,A0=new Map,N0=/[A-Z]/g,I0=new Set(["table","tbody","thead","tfoot","tr"]),R0=new Set(["td","th"]),O0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function P0(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,a,o){const i=Array.isArray(a.children),s=k0(n);return t(r,a,o,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,a,o){const i=Array.isArray(a.children)?n:t;return o?i(r,a,o):i(r,a)}}(0,t.jsx,t.jsxs)}const a={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:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?VJ:$J,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=L0(a,e,void 0);return o&&"string"!=typeof o?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function L0(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=VJ,e.schema=a);e.ancestors.push(t);const o=B0(e,t.tagName,!1),i=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&C0.call(t.properties,a)){const o=j0(e,a,t.properties[a]);if(o){const[a,i]=o;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof i&&R0.has(t.tagName)?r=i:n[a]=i}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=F0(e,t);I0.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&cJ(t.value):cJ(t));var t})));return D0(e,i,o,t),M0(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}H0(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=VJ,e.schema=a);e.ancestors.push(t);const o=null===t.name?e.Fragment:B0(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const a=t.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else H0(e,t.position);else{const a=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else H0(e,t.position);else o=null===r.value||r.value;n[a]=o}return n}(e,t),s=F0(e,t);return D0(e,i,o,t),M0(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);H0(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return M0(r,F0(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function D0(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function M0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function F0(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:A0;for(;++r<t.children.length;){const o=t.children[r];let i;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=a.get(e)||0;i=e+"-"+t,a.set(e,t+1)}}const s=L0(e,o,i);void 0!==s&&n.push(s)}return n}function j0(e,t,n){const r=HJ(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?rJ(n):WJ(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return b0(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new T0("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=O0+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)C0.call(e,n)&&(t[z0(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?MJ[r.property]||r.property:r.attribute,n]}}function B0(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=sJ(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=sJ(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return C0.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);H0(e)}function H0(e,t){const n=new T0("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=O0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function z0(e){let t=e.replace(N0,U0);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function U0(e){return"-"+e.toLowerCase()}const $0={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"]},V0={};function G0(e,t){return W0(e,"boolean"!=typeof V0.includeImageAlt||V0.includeImageAlt,"boolean"!=typeof V0.includeHtml||V0.includeHtml)}function W0(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return q0(e.children,t,n)}return Array.isArray(e)?q0(e,t,n):""}function q0(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=W0(e[a],t,n);return r.join("")}const Y0=document.createElement("i");function K0(e){const t="&"+e+";";Y0.innerHTML=t;const n=Y0.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function X0(e,t,n,r){const a=e.length;let o,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Q0(e,t){return e.length>0?(X0(e,e.length,0,t),e):t}const Z0={}.hasOwnProperty;function J0(e){const t={};let n=-1;for(;++n<e.length;)e1(t,e[n]);return t}function e1(e,t){let n;for(n in t){const r=(Z0.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Z0.call(r,o)||(r[o]=[]);const e=a[o];t1(r[o],Array.isArray(e)?e:e?[e]:[])}}}function t1(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);X0(e,0,0,r)}function n1(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function r1(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const a1=g1(/[A-Za-z]/),o1=g1(/[\dA-Za-z]/),i1=g1(/[#-'*+\--9=?A-Z^-~]/);function s1(e){return null!==e&&(e<32||127===e)}const l1=g1(/\d/),c1=g1(/[\dA-Fa-f]/),u1=g1(/[!-/:-@[-`{-~]/);function d1(e){return null!==e&&e<-2}function p1(e){return null!==e&&(e<0||32===e)}function h1(e){return-2===e||-1===e||32===e}const f1=g1(new RegExp("\\p{P}|\\p{S}","u")),m1=g1(/\s/);function g1(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function y1(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let i="";if(37===o&&o1(e.charCodeAt(n+1))&&o1(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(i=String.fromCharCode(o,t),a=1):i="�"}else i=String.fromCharCode(o);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function b1(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(h1(r))return e.enter(n),i(r);return t(r)};function i(r){return h1(r)&&o++<a?(e.consume(r),i):(e.exit(n),t(r))}}const v1={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),b1(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):d1(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const k1={tokenize:function(e){const t=this,n=[];let r,a,o,i=0;return s;function s(r){if(i<n.length){const a=n[i];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(r)}return c(r)}function l(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let a,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){a=t.events[o][1].end;break}y(i);let s=n;for(;s<t.events.length;)t.events[s][1].end={...a},s++;return X0(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(a){if(i===n.length){if(!r)return p(a);if(r.currentConstruct&&r.currentConstruct.concrete)return f(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(w1,u,d)(a)}function u(e){return r&&b(),y(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(w1,h,f)(n)}function h(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):d1(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let a,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){s=t.events[l][1].end;break}a=!0}for(y(i),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;X0(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},w1={tokenize:function(e,t,n){return b1(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function x1(e){return null===e||p1(e)||m1(e)?1:f1(e)?2:void 0}function E1(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const _1={name:"attention",resolveAll:function(e,t){let n,r,a,o,i,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};S1(d,-s),S1(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...i.end}},e[n][1].end={...o.start},e[u][1].start={...i.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Q0(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Q0(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=Q0(l,E1(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=Q0(l,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Q0(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,X0(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=x1(r);let o;return function(t){return o=t,e.enter("attentionSequence"),i(t)};function i(s){if(s===o)return e.consume(s),i;const l=e.exit("attentionSequence"),c=x1(s),u=!c||2===c&&a||n.includes(s),d=!a||2===a&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(a||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}}};function S1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const T1={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return a1(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||o1(e)?(r=1,i(e)):l(e)}function i(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||o1(t))&&r++<32?(e.consume(t),i):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||s1(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):i1(t)?(e.consume(t),l):n(t)}function c(e){return o1(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||o1(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const C1={partial:!0,tokenize:function(e,t,n){return function(t){return h1(t)?b1(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||d1(e)?t(e):n(e)}}};const A1={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(h1(t))return b1(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(A1,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return h1(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const N1={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return u1(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const I1={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,o,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=o1,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=c1,c):(e.enter("characterReferenceValue"),a=7,o=l1,c(t))}function c(s){if(59===s&&i){const a=e.exit("characterReferenceValue");return o!==o1||K0(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&i++<a?(e.consume(s),c):n(s)}}};const R1={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},O1={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),h1(t)?b1(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(a++,e.consume(t),u):a>=s?(e.exit("codeFencedFenceSequence"),h1(t)?b1(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||d1(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,i=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),h1(t)?b1(e,c,"whitespace")(t):c(t))}function c(n){return null===n||d1(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(R1,h,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||d1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):h1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),b1(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||d1(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||d1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function h(t){return e.attempt(a,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&h1(t)?b1(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||d1(t)?e.check(R1,h,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||d1(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}};const P1={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),b1(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):d1(t)?e.attempt(L1,o,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||d1(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},L1={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):d1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):b1(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):d1(e)?a(e):n(e)}}};const D1={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}t=a-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),o++,i):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),r=0,c(t)):d1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||d1(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}};class M1{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&F1(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),F1(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),F1(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);F1(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);F1(this.left,t.reverse())}}}function F1(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 j1(e){const t={};let n,r,a,o,i,s,l,c=-1;const u=new M1(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,B1(u,c)),c=t[c],l=!0);else if(n[1]._container){for(a=c,r=void 0;a--;)if(o=u.get(a),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=a);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return X0(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function B1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++a)[1]!==h;);o.push(a),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&i.defineSkip(h.start),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(i.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const H1={resolve:function(e){return j1(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):d1(t)?e.check(z1,o,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},z1={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),b1(e,a,"linePrefix")};function a(a){if(null===a||d1(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}};function U1(e,t,n,r,a,o,i,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||s1(t))return n(t);return e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||d1(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(a){return u||null!==a&&41!==a&&!p1(a)?u<c&&40===a?(e.consume(a),u++,f):41===a?(e.consume(a),u--,f):null===a||32===a||40===a||s1(a)?n(a):(e.consume(a),92===a?m:f):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function $1(e,t,n,r,a,o){const i=this;let s,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(o),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):d1(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||d1(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!h1(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function V1(e,t,n,r,a,o){let i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,s;return n(t)};function s(n){return n===i?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===i?(e.exit(o),s(i)):null===t?n(t):d1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),b1(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||d1(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function G1(e,t){let n;return function r(a){if(d1(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(h1(a))return b1(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}const W1={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return $1.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return a=r1(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return p1(t)?G1(e,s)(t):s(t)}function s(t){return U1(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(q1,c,c)(t)}function c(t){return h1(t)?b1(e,u,"whitespace")(t):u(t)}function u(o){return null===o||d1(o)?(e.exit("definition"),r.parser.defined.push(a),t(o)):n(o)}}},q1={partial:!0,tokenize:function(e,t,n){return function(t){return p1(t)?G1(e,r)(t):n(t)};function r(t){return V1(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return h1(t)?b1(e,o,"whitespace")(t):o(t)}function o(e){return null===e||d1(e)?t(e):n(e)}}};const Y1={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return d1(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const K1={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);a-2>o&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4);a>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},r={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},X0(e,o,a-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||p1(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||d1(n)?(e.exit("atxHeading"),t(n)):h1(n)?b1(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||p1(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}};const X1=["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"],Q1=["pre","script","style","textarea"],Z1={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let a,o,i,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),a=3,r.interrupt?t:L):a1(s)?(e.consume(s),i=String.fromCharCode(s),f):n(s)}function u(o){return 45===o?(e.consume(o),a=2,d):91===o?(e.consume(o),a=5,s=0,p):a1(o)?(e.consume(o),a=4,r.interrupt?t:L):n(o)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:L):n(a)}function p(a){const o="CDATA[";return a===o.charCodeAt(s++)?(e.consume(a),6===s?r.interrupt?t:T:p):n(a)}function h(t){return a1(t)?(e.consume(t),i=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||p1(s)){const l=47===s,c=i.toLowerCase();return l||o||!Q1.includes(c)?X1.includes(i.toLowerCase())?(a=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):y(s)):(a=1,r.interrupt?t(s):T(s))}return 45===s||o1(s)?(e.consume(s),i+=String.fromCharCode(s),f):n(s)}function m(a){return 62===a?(e.consume(a),r.interrupt?t:T):n(a)}function g(t){return h1(t)?(e.consume(t),g):_(t)}function y(t){return 47===t?(e.consume(t),_):58===t||95===t||a1(t)?(e.consume(t),b):h1(t)?(e.consume(t),y):_(t)}function b(t){return 45===t||46===t||58===t||95===t||o1(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),k):h1(t)?(e.consume(t),v):y(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):h1(t)?(e.consume(t),k):x(t)}function w(t){return t===l?(e.consume(t),l=null,E):null===t||d1(t)?n(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||p1(t)?v(t):(e.consume(t),x)}function E(e){return 47===e||62===e||h1(e)?y(e):n(e)}function _(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||d1(t)?T(t):h1(t)?(e.consume(t),S):n(t)}function T(t){return 45===t&&2===a?(e.consume(t),I):60===t&&1===a?(e.consume(t),R):62===t&&4===a?(e.consume(t),D):63===t&&3===a?(e.consume(t),L):93===t&&5===a?(e.consume(t),P):!d1(t)||6!==a&&7!==a?null===t||d1(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(J1,M,C)(t))}function C(t){return e.check(e2,A,M)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||d1(t)?C(t):(e.enter("htmlFlowData"),T(t))}function I(t){return 45===t?(e.consume(t),L):T(t)}function R(t){return 47===t?(e.consume(t),i="",O):T(t)}function O(t){if(62===t){const n=i.toLowerCase();return Q1.includes(n)?(e.consume(t),D):T(t)}return a1(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),O):T(t)}function P(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===a?(e.consume(t),L):T(t)}function D(t){return null===t||d1(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(n){return e.exit("htmlFlow"),t(n)}}},J1={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(C1,t,n)}}},e2={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(d1(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const t2={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,o,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),k):63===t?(e.consume(t),b):a1(t)?(e.consume(t),E):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):a1(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):d1(t)?(i=u,O(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?R(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):d1(t)?(i=f,O(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?R(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?R(t):d1(t)?(i=y,O(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):d1(t)?(i=b,O(t)):(e.consume(t),b)}function v(e){return 62===e?R(e):b(e)}function k(t){return a1(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||o1(t)?(e.consume(t),w):x(t)}function x(t){return d1(t)?(i=x,O(t)):h1(t)?(e.consume(t),x):R(t)}function E(t){return 45===t||o1(t)?(e.consume(t),E):47===t||62===t||p1(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),R):58===t||95===t||a1(t)?(e.consume(t),S):d1(t)?(i=_,O(t)):h1(t)?(e.consume(t),_):R(t)}function S(t){return 45===t||46===t||58===t||95===t||o1(t)?(e.consume(t),S):T(t)}function T(t){return 61===t?(e.consume(t),C):d1(t)?(i=T,O(t)):h1(t)?(e.consume(t),T):_(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,A):d1(t)?(i=C,O(t)):h1(t)?(e.consume(t),C):(e.consume(t),N)}function A(t){return t===a?(e.consume(t),a=void 0,I):null===t?n(t):d1(t)?(i=A,O(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||p1(t)?_(t):(e.consume(t),N)}function I(e){return 47===e||62===e||p1(e)?_(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return h1(t)?b1(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}};const n2={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&X0(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,a,o,i=e.length,s=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=i);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=Q0(o,e.slice(r+1,r+s+3)),o=Q0(o,[["enter",u,t]]),o=Q0(o,E1(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),o=Q0(o,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),o=Q0(o,e.slice(a+1)),o=Q0(o,[["exit",l,t]]),X0(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let a,o,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return function(t){if(!a)return n(t);if(a._inactive)return u(t);return o=r.parser.defined.includes(r1(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(r2,c,o?c:u)(t):91===t?e.attempt(a2,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(o2,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},r2={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return p1(t)?G1(e,a)(t):a(t)}function a(t){return 41===t?c(t):U1(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return p1(t)?G1(e,s)(t):c(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?V1(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return p1(t)?G1(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},a2={tokenize:function(e,t,n){const r=this;return function(t){return $1.call(r,e,a,o,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(r1(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},o2={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const i2={name:"labelStartImage",resolveAll:n2.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const s2={name:"labelStartLink",resolveAll:n2.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const l2={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),b1(e,t,"linePrefix")}}};const c2={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),i(o)):a>=3&&(null===o||d1(o))?(e.exit("thematicBreak"),t(o)):n(o)}function i(t){return t===r?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),h1(t)?b1(e,o,"whitespace")(t):o(t))}}};const u2={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(C1,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,b1(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!h1(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(p2,t,a)(n)}));function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,b1(e,e.attempt(u2,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:l1(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(c2,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return l1(t)&&++i<10?(e.consume(t),s):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(C1,r.interrupt?n:c,e.attempt(d2,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return h1(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},d2={partial:!0,tokenize:function(e,t,n){const r=this;return b1(e,(function(e){const a=r.events[r.events.length-1];return!h1(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},p2={partial:!0,tokenize:function(e,t,n){const r=this;return b1(e,(function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const h2={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=i;return e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let i,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){i="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===a?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),h1(t)?b1(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||d1(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const f2={tokenize:function(e){const t=this,n=e.attempt(C1,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,b1(e,e.attempt(this.parser.constructs.flow,r,e.attempt(H1,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const m2={resolveAll:v2()},g2=b2("string"),y2=b2("text");function b2(e){return{resolveAll:v2("text"===e?k2:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,o,i);return o;function o(e){return l(e)?a(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function v2(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function k2(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let o,i=a.length,s=-1,l=0;for(;i--;){const e=a[i];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const a={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const w2={42:u2,43:u2,45:u2,48:u2,49:u2,50:u2,51:u2,52:u2,53:u2,54:u2,55:u2,56:u2,57:u2,62:A1},x2={91:W1},E2={[-2]:P1,[-1]:P1,32:P1},_2={35:K1,42:c2,45:[h2,c2],60:Z1,61:h2,95:c2,96:O1,126:O1},S2={38:I1,92:N1},T2={[-5]:l2,[-4]:l2,[-3]:l2,33:i2,38:I1,42:_1,60:[T1,t2],91:s2,92:[Y1,N1],93:n2,95:_1,96:D1},C2={null:[_1,m2]},A2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:x2,disable:{null:[]},document:w2,flow:_2,flowInitial:E2,insideSpan:C2,string:S2,text:T2},Symbol.toStringTag,{value:"Module"}));function N2(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 a={},o=[];let i=[],s=[];const l={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){d1(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,b()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let i;if("string"==typeof o)i=o;else switch(o){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&a)continue;i=" ";break;default:i=String.fromCharCode(o)}a=-2===o,r.push(i)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(i=Q0(i,e),h(),null!==i[i.length-1])return[];return y(t,0),c.events=E1(o,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,o)];else{if(i=e.slice(n,a),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}o>0&&i.push(e[a].slice(0,o))}return i}(i,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:o}}function h(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}function f(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,a,o){let i,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return i=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){h=function(){const e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,o=Array.from(s);return{from:a,restore:i};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=o,b()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,y)(n)}}function g(t){return e(d,h),a}function y(e){return h.restore(),++u<i.length?m(i[u]):o}}}function y(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&X0(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const I2=/[\0\t\n\r]/g;const R2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function O2(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return n1(n.slice(t?2:1),t?16:10)}return K0(n)||e}const P2={}.hasOwnProperty;function L2(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:o(Q),blockQuote:o(W),characterEscape:S,characterReference:S,codeFenced:o(q),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(q,i),codeText:o(Y,i),codeTextData:S,data:S,codeFlowValue:S,definition:o(K),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(X),hardBreakEscape:o(Z),hardBreakTrailing:o(Z),htmlFlow:o(J,i),htmlFlowData:S,htmlText:o(J,i),htmlTextData:S,image:o(ee),label:i,link:o(te),listItem:o(re),listItemValue:p,listOrdered:o(ne,d),listUnordered:o(ne),paragraph:o(ae),reference:B,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(Q),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:G,autolinkProtocol:V,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:U,characterReference:$,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:T,codeIndented:l(y),codeText:l(R),codeTextData:T,data:T,definition:l(),definitionDestinationString:k,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(A),hardBreakTrailing:l(A),htmlFlow:l(N),htmlFlowData:T,htmlText:l(I),htmlTextData:T,image:l(P),label:D,labelText:L,lineEnding:C,link:l(O),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:M,resourceTitleString:F,resource:j,setextHeading:l(_),setextHeadingLineSequence:E,setextHeadingText:x,strong:l(),thematicBreak:l()}};M2(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:i,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=a(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];P2.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||j2).call(o,void 0,e[0])}for(r.position={start:D2(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:D2(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function a(e,t,n){let r,a,o,i,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||l||o||(o=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=s;for(a=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!a||o<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,o=void 0,i=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:D2(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+x0({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||j2).call(this,e,r[0])}n.position.end=D2(e.end)}function u(){return G0(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=r1(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function k(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:D2(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=D2(e.end)}function C(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=D2(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),T.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(R2,O2)}(t),n.identifier=r1(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=r1(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=n1(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=K0(t)}this.stack[this.stack.length-1].value+=r}function $(e){this.stack.pop().position.end=D2(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function q(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!j1(e););return e}(function(e){const t={constructs:J0([A2,...(e||{}).extensions||[]]),content:n(v1),defined:[],document:n(k1),flow:n(f2),lazy:{},string:n(g2),text:n(y2)};return t;function n(e){return function(n){return N2(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,o,i){const s=[];let l,c,u,d,p;for(a=n+("string"==typeof a?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,n="",r&&(65279===a.charCodeAt(0)&&u++,r=void 0);u<a.length;){if(I2.lastIndex=u,l=I2.exec(a),d=l&&void 0!==l.index?l.index:a.length,p=a.charCodeAt(d),!l){n=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function D2(e){return{line:e.line,column:e.column,offset:e.offset}}function M2(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?M2(e,r):F2(e,r)}}function F2(e,t){let n;for(n in t)if(P2.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 j2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+x0({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+x0({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+x0({start:t.start,end:t.end})+") is still open")}function B2(e){const t=this;t.parser=function(n){return L2(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function H2(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&"text"===i.type?i.value+=r:a.push({type:"text",value:r}),a}function z2(e){const t=e.spread;return null==t?e.children.length>1:t}function U2(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push($2(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push($2(t.slice(a),a>0,!1)),o.join("")}function $2(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const V2={blockquote:function(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)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=y1(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return H2(e,t);const a={src:y1(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:y1(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(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)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return H2(e,t);const a={href:y1(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:y1(t.url)};null!==t.title&&void 0!==t.title&&(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)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=z2(n[r])}return t}(n):z2(t),o={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}const l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=k0(t.children[1]),i=v0(t.children[t.children.length-1]);o&&i&&(r.position={start:o,end:i}),a.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,i=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<i;){const n=t.children[s],r={},i=o?o[s]:void 0;i&&(r.align=i);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:U2(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:G2,yaml:G2,definition:G2,footnoteDefinition:G2};function G2(){}const W2="object"==typeof self?self:globalThis,q2=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new W2[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new W2[o](i),a)};return r})(new Map,e)(0),Y2="",{toString:K2}={},{keys:X2}=Object,Q2=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=K2.call(e).slice(8,-1);switch(n){case"Array":return[1,Y2];case"Object":return[2,Y2];case"Date":return[3,Y2];case"RegExp":return[4,Y2];case"Map":return[5,Y2];case"Set":return[6,Y2];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Z2=([e,t])=>0===e&&("function"===t||"symbol"===t),J2=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},o=r=>{if(n.has(r))return n.get(r);let[i,s]=Q2(r);switch(i){case 0:{let t=r;switch(s){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([i,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([i,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=a([i,n],r);for(const t of X2(r))!e&&Z2(Q2(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return a([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([i,{source:e,flags:t}],r)}case 5:{const t=[],n=a([i,t],r);for(const[a,i]of r)(e||!Z2(Q2(a))&&!Z2(Q2(i)))&&t.push([o(a),o(i)]);return n}case 6:{const t=[],n=a([i,t],r);for(const a of r)!e&&Z2(Q2(a))||t.push(o(a));return n}}const{message:l}=r;return a([i,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},e5="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?q2(J2(e,t)):structuredClone(e):(e,t)=>q2(J2(e,t));function t5(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 n5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const r5=function(e){if(null==e)return o5;if("function"==typeof e)return a5(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=r5(e[n]);return a5(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return a5(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return a5(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function a5(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function o5(){return!0}const i5=[],s5=!0,l5=!1;function c5(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const o=r5(a),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=i5;if((!t||o(a,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[s5,e];return null==e?i5:[e]}(n(a,l)),p[0]===l5))return p;if("children"in a&&a.children){const t=a;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+i,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===l5)return c;u="number"==typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function u5(e,t,n,r){let a,o,i;"function"==typeof t&&"function"!=typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=r),c5(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)}),a)}const d5={}.hasOwnProperty,p5={};function h5(e,t){e.position&&(t.position=function(e){const t=k0(e),n=v0(e);if(t&&n)return{start:t,end:n}}(e))}function f5(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&a&&Object.assign(n.properties,e5(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function m5(e,t){const n=t.data||{},r=!("value"in t)||d5.call(n,"hProperties")||d5.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function g5(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function y5(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function b5(e,t){const n=function(e,t){const n=t||p5,r=new Map,a=new Map,o=new Map,i={...V2,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=s.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=y5(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=y5(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:f5,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=s.handlers[n];if(d5.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=e5(n);return r.children=s.all(e),r}return e5(e)}return(s.options.unknownHandler||m5)(s,e,t)},options:n,patch:h5,wrap:g5};return u5(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||t5,r=e.options.footnoteBackLabel||n5,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const o=e.all(a),i=String(a.identifier).toUpperCase(),c=y1(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(a,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...e5(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:"\n"},a),o}function v5(e,t){return e&&"run"in e?async function(n,r){const a=b5(n,{file:r,...t});await e.run(a,r)}:function(n,r){return b5(n,{file:r,...e||t})}}function k5(e){if(e)throw e}var w5=Object.prototype.hasOwnProperty,x5=Object.prototype.toString,E5=Object.defineProperty,_5=Object.getOwnPropertyDescriptor,S5=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===x5.call(e)},T5=function(e){if(!e||"[object Object]"!==x5.call(e))return!1;var t,n=w5.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&w5.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||w5.call(e,t)},C5=function(e,t){E5&&"__proto__"===t.name?E5(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},A5=function(e,t){if("__proto__"===t){if(!w5.call(e,t))return;if(_5)return _5(e,t).value}return e[t]},N5=function e(){var t,n,r,a,o,i,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=A5(s,n),s!==(a=A5(t,n))&&(u&&a&&(T5(a)||(o=S5(a)))?(o?(o=!1,i=r&&S5(r)?r:[]):i=r&&T5(r)?r:{},C5(s,{name:n,newValue:e(u,i,a)})):void 0!==a&&C5(s,{name:n,newValue:a}));return s};const I5=p(N5);function R5(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function O5(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(o,...i){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==i[l]&&void 0!==i[l]||(i[l]=t[l]);t=i,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(a);try{s=e.apply(this,t)}catch(o){if(r&&n)throw o;return a(o)}r||(s&&s.then&&"function"==typeof s.then?s.then(i,a):s instanceof Error?a(s):i(s))}function a(e,...r){n||(n=!0,t(e,...r))}function i(e){a(null,e)}}(s,a)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const P5={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');L5(e);let n,r=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));r===a?a=i:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(L5(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){L5(e);let t,n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=n+1;break}}if(o<0||r<0||0===i||1===i&&o===r-1&&o===a+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)L5(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){L5(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",o=0):(a=a.slice(0,r),o=a.length-1-a.lastIndexOf("/")),i=l,s=0;continue}}else if(a.length>0){a="",o=0,i=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function L5(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const D5={cwd:function(){return"/"}};function M5(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function F5(e){if("string"==typeof e)e=new URL(e);else if(!M5(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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const j5=["history","path","basename","stem","extname","dirname"];class B5{constructor(e){let t;t=e?M5(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":D5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<j5.length;){const e=j5[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)j5.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?P5.basename(this.path):void 0}set basename(e){z5(e,"basename"),H5(e,"basename"),this.path=P5.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?P5.dirname(this.path):void 0}set dirname(e){U5(this.basename,"dirname"),this.path=P5.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?P5.extname(this.path):void 0}set extname(e){if(H5(e,"extname"),U5(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=P5.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){M5(e)&&(e=F5(e)),z5(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?P5.basename(this.path,this.extname):void 0}set stem(e){z5(e,"stem"),H5(e,"stem"),this.path=P5.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new T0(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function H5(e,t){if(e&&e.includes(P5.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+P5.sep+"`")}function z5(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function U5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const $5=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},V5={}.hasOwnProperty;class G5 extends $5{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=O5()}copy(){const e=new G5;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(I5(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(K5("data",this.frozen),this.namespace[e]=t,this):V5.call(this.namespace,e)&&this.namespace[e]||void 0:e?(K5("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Z5(e),n=this.parser||this.Parser;return q5("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),q5("process",this.parser||this.Parser),Y5("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const o=Z5(e),i=n.parse(o);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,o,(function(e,t,r){if(e||!t||!r)return s(e);const a=t,o=n.stringify(a,r);var i;"string"==typeof(i=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=o:r.result=o,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),q5("processSync",this.parser||this.Parser),Y5("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,k5(e),t=r})),Q5("processSync","process",n),t}run(e,t,n){X5(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){const i=Z5(t);r.run(e,i,(function(t,r,i){const s=r||e;t?o(t):a?a(s):n(void 0,s,i)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){k5(e),n=t,r=!0})),Q5("runSync","run",r),n}stringify(e,t){this.freeze();const n=Z5(t),r=this.compiler||this.Compiler;return Y5("stringify",r),X5(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(K5("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):o(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))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");i(e.plugins),e.settings&&(r.settings=I5(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const i=n[a][1];R5(i)&&R5(r)&&(r=I5(!0,i,r)),n[a]=[e,r,...o]}}}}const W5=(new G5).freeze();function q5(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Y5(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function K5(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 X5(e){if(!R5(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Q5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Z5(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new B5(e)}const J5=[],e3={allowDangerousHtml:!0},t3=/^(https?|ircs?|mailto|xmpp)$/i,n3=[{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:"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 r3(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,i=e.disallowedElements,s=e.rehypePlugins||J5,l=e.remarkPlugins||J5,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...e3}:e3,u=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||a3,h=W5().use(B2).use(l).use(v5,c).use(s),f=new B5;"string"==typeof r&&(f.value=r);for(const y of n3)Object.hasOwn(e,y.from)&&(y.from,y.to&&y.to,y.id);const m=h.parse(f);let g=h.runSync(m,f);return a&&(g={type:"element",tagName:"div",properties:{className:a},children:"root"===g.type?g.children:[g]}),u5(g,(function(e,r,a){if("raw"===e.type&&a&&"number"==typeof r)return u?a.children.splice(r,1):a.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in $0)if(Object.hasOwn($0,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=$0[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=p(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,a)),o&&a&&"number"==typeof r)return d&&e.children?a.children.splice(r,1,...e.children):a.children.splice(r,1),r}})),P0(g,{Fragment:Vh.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Vh.jsx,jsxs:Vh.jsxs,passKeys:!0,passNode:!0})}function a3(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||t3.test(e.slice(0,t))?e:""}const o3=/[#.]/g;function i3(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...o){let i;if(null==n){i={type:"root",children:[]};const e=a;o.unshift(e)}else{i=function(e,t){const n=e||"",r={};let a,o,i=0;for(;i<n.length;){o3.lastIndex=i;const e=o3.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?"#"===a?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t);const s=i.tagName.toLowerCase(),l=r?r.get(s):void 0;if(i.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(a))o.unshift(a);else for(const[t,n]of Object.entries(a))s3(e,i.properties,t,n)}for(const e of o)l3(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function s3(e,t,n,r){const a=HJ(e,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?GJ(r):a.commaSeparated?nJ(r):a.commaOrSpaceSeparated?GJ(nJ(r).join(" ")):c3(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(const t of o)e.push(c3(a,a.property,t));o=e}"className"===a.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function l3(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)l3(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?l3(e,t.children):e.push(t)}}function c3(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||pJ(n)===pJ(t)))return!0}return n}const u3=i3($J,"div"),d3=i3(VJ,"g",["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"]);function p3(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const h3={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/"},f3={}.hasOwnProperty,m3=Object.prototype;function g3(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},b3(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:y3(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=p3(t,e),a=-1===r?t.length+1:r+1;if(e===a)break;n.push(a)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let a=n[r];if(void 0===a){const e=p3(t,n[r-1]);a=-1===e?t.length+1:e+1,n[r]=a}if(a>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),a=r.toPoint(0),o=r.toPoint(t.length);n.position={start:a,end:o}}return n}case"#documentType":return n={type:"doctype"},b3(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},b3(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===h3.svg?VJ:$J;let r=-1;const a={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;f3.call(m3,n)||(a[n]=e.value)}const o="svg"===e.schema.space?d3:u3,i=o(t.tagName,a,y3(e,t.childNodes));if(b3(e,t,i),"template"===i.tagName){const n=t,r=n.sourceCodeLocation,a=r&&r.startTag&&v3(r.startTag),o=r&&r.endTag&&v3(r.endTag),s=g3(e,n.content);a&&o&&e.file&&(s.position={start:a.end,end:o.start}),i.content=s}return e.schema=n,i}(e,t),n}}function y3(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=g3(e,t[n]);r.push(a)}return r}function b3(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=v3(n);if("element"===t.type){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const r={};let a;if(n.attrs)for(a in n.attrs)f3.call(n.attrs,a)&&(r[HJ(e.schema,a).property]=v3(n.attrs[a]));n.startTag;const o=v3(n.startTag),i=n.endTag?v3(n.endTag):void 0,s={opening:o};i&&(s.closing=i),s.properties=r,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function v3(e){const t=k3({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=k3({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function k3(e){return e.line&&e.column?e:void 0}class w3{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function x3(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new w3(n,r,t)}function E3(e){return e.toLowerCase()}w3.prototype.property={},w3.prototype.normal={},w3.prototype.space=null;class _3{constructor(e,t){this.property=e,this.attribute=t}}_3.prototype.space=null,_3.prototype.boolean=!1,_3.prototype.booleanish=!1,_3.prototype.overloadedBoolean=!1,_3.prototype.number=!1,_3.prototype.commaSeparated=!1,_3.prototype.spaceSeparated=!1,_3.prototype.commaOrSpaceSeparated=!1,_3.prototype.mustUseProperty=!1,_3.prototype.defined=!1;let S3=0;const T3=P3(),C3=P3(),A3=P3(),N3=P3(),I3=P3(),R3=P3(),O3=P3();function P3(){return 2**++S3}const L3=Object.freeze(Object.defineProperty({__proto__:null,boolean:T3,booleanish:C3,commaOrSpaceSeparated:O3,commaSeparated:R3,number:N3,overloadedBoolean:A3,spaceSeparated:I3},Symbol.toStringTag,{value:"Module"})),D3=Object.keys(L3);class M3 extends _3{constructor(e,t,n,r){let a=-1;if(super(e,t),F3(this,"space",r),"number"==typeof n)for(;++a<D3.length;){const e=D3[a];F3(this,D3[a],(n&L3[e])===L3[e])}}}function F3(e,t,n){n&&(e[t]=n)}M3.prototype.defined=!0;const j3={}.hasOwnProperty;function B3(e){const t={},n={};let r;for(r in e.properties)if(j3.call(e.properties,r)){const a=e.properties[r],o=new M3(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[E3(r)]=r,n[E3(o.attribute)]=r}return new w3(t,n,e.space)}const H3=B3({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),z3=B3({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function U3(e,t){return t in e?e[t]:t}function $3(e,t){return U3(e,t.toLowerCase())}const V3=B3({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$3,properties:{xmlns:null,xmlnsXLink:null}}),G3=B3({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:C3,ariaAutoComplete:null,ariaBusy:C3,ariaChecked:C3,ariaColCount:N3,ariaColIndex:N3,ariaColSpan:N3,ariaControls:I3,ariaCurrent:null,ariaDescribedBy:I3,ariaDetails:null,ariaDisabled:C3,ariaDropEffect:I3,ariaErrorMessage:null,ariaExpanded:C3,ariaFlowTo:I3,ariaGrabbed:C3,ariaHasPopup:null,ariaHidden:C3,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I3,ariaLevel:N3,ariaLive:null,ariaModal:C3,ariaMultiLine:C3,ariaMultiSelectable:C3,ariaOrientation:null,ariaOwns:I3,ariaPlaceholder:null,ariaPosInSet:N3,ariaPressed:C3,ariaReadOnly:C3,ariaRelevant:null,ariaRequired:C3,ariaRoleDescription:I3,ariaRowCount:N3,ariaRowIndex:N3,ariaRowSpan:N3,ariaSelected:C3,ariaSetSize:N3,ariaSort:null,ariaValueMax:N3,ariaValueMin:N3,ariaValueNow:N3,ariaValueText:null,role:null}}),W3=B3({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$3,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:R3,acceptCharset:I3,accessKey:I3,action:null,allow:null,allowFullScreen:T3,allowPaymentRequest:T3,allowUserMedia:T3,alt:null,as:null,async:T3,autoCapitalize:null,autoComplete:I3,autoFocus:T3,autoPlay:T3,blocking:I3,capture:null,charSet:null,checked:T3,cite:null,className:I3,cols:N3,colSpan:null,content:null,contentEditable:C3,controls:T3,controlsList:I3,coords:N3|R3,crossOrigin:null,data:null,dateTime:null,decoding:null,default:T3,defer:T3,dir:null,dirName:null,disabled:T3,download:A3,draggable:C3,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:T3,formTarget:null,headers:I3,height:N3,hidden:T3,high:N3,href:null,hrefLang:null,htmlFor:I3,httpEquiv:I3,id:null,imageSizes:null,imageSrcSet:null,inert:T3,inputMode:null,integrity:null,is:null,isMap:T3,itemId:null,itemProp:I3,itemRef:I3,itemScope:T3,itemType:I3,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:T3,low:N3,manifest:null,max:null,maxLength:N3,media:null,method:null,min:null,minLength:N3,multiple:T3,muted:T3,name:null,nonce:null,noModule:T3,noValidate:T3,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:T3,optimum:N3,pattern:null,ping:I3,placeholder:null,playsInline:T3,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:T3,referrerPolicy:null,rel:I3,required:T3,reversed:T3,rows:N3,rowSpan:N3,sandbox:I3,scope:null,scoped:T3,seamless:T3,selected:T3,shadowRootClonable:T3,shadowRootDelegatesFocus:T3,shadowRootMode:null,shape:null,size:N3,sizes:null,slot:null,span:N3,spellCheck:C3,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N3,step:null,style:null,tabIndex:N3,target:null,title:null,translate:null,type:null,typeMustMatch:T3,useMap:null,value:C3,width:N3,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I3,axis:null,background:null,bgColor:null,border:N3,borderColor:null,bottomMargin:N3,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:T3,declare:T3,event:null,face:null,frame:null,frameBorder:null,hSpace:N3,leftMargin:N3,link:null,longDesc:null,lowSrc:null,marginHeight:N3,marginWidth:N3,noResize:T3,noHref:T3,noShade:T3,noWrap:T3,object:null,profile:null,prompt:null,rev:null,rightMargin:N3,rules:null,scheme:null,scrolling:C3,standby:null,summary:null,text:null,topMargin:N3,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N3,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:T3,disableRemotePlayback:T3,prefix:null,property:null,results:N3,security:null,unselectable:null}}),q3=B3({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:U3,properties:{about:O3,accentHeight:N3,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N3,amplitude:N3,arabicForm:null,ascent:N3,attributeName:null,attributeType:null,azimuth:N3,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N3,by:null,calcMode:null,capHeight:N3,className:I3,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:N3,diffuseConstant:N3,direction:null,display:null,dur:null,divisor:N3,dominantBaseline:null,download:T3,dx:null,dy:null,edgeMode:null,editable:null,elevation:N3,enableBackground:null,end:null,event:null,exponent:N3,externalResourcesRequired:null,fill:null,fillOpacity:N3,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:R3,g2:R3,glyphName:R3,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N3,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N3,horizOriginX:N3,horizOriginY:N3,id:null,ideographic:N3,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N3,k:N3,k1:N3,k2:N3,k3:N3,k4:N3,kernelMatrix:O3,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N3,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:N3,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:N3,overlineThickness:N3,paintOrder:null,panose1:null,path:null,pathLength:N3,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:I3,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N3,pointsAtY:N3,pointsAtZ:N3,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:O3,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:O3,rev:O3,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:O3,requiredFeatures:O3,requiredFonts:O3,requiredFormats:O3,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:N3,specularExponent:N3,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N3,strikethroughThickness:N3,string:null,stroke:null,strokeDashArray:O3,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N3,strokeOpacity:N3,strokeWidth:null,style:null,surfaceScale:N3,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:O3,tabIndex:N3,tableValues:null,target:null,targetX:N3,targetY:N3,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:O3,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N3,underlineThickness:N3,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N3,values:null,vAlphabetic:N3,vMathematical:N3,vectorEffect:null,vHanging:N3,vIdeographic:N3,version:null,vertAdvY:N3,vertOriginX:N3,vertOriginY:N3,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N3,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Y3=/^data[-\w.:]+$/i,K3=/-[a-z]/g,X3=/[A-Z]/g;function Q3(e){return"-"+e.toLowerCase()}function Z3(e){return e.charAt(1).toUpperCase()}const J3=x3([z3,H3,V3,G3,W3],"html"),e4=x3([z3,H3,V3,G3,q3],"svg"),t4={}.hasOwnProperty;function n4(e,t){const n=t||{};function r(t,...n){let a=r.invalid;const o=r.handlers;if(t&&t4.call(t,e)){const n=String(t[e]);a=t4.call(o,n)?o[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const r4={},a4={}.hasOwnProperty,o4=n4("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=s4(e.children,n,t),l4(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=e4);const a=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&a4.call(e.properties,o)){const t=i4(r,o,e.properties[o]);t&&a.push(t)}const i=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:h3[i],childNodes:[],parentNode:null};s.childNodes=s4(e.children,s,r),l4(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=s4(e.children,n,t),l4(e,n),n}(e.content,r));return s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return l4(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return l4(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return l4(e,t),t}}});function i4(e,t,n){const r=function(e,t){const n=E3(t);let r=t,a=_3;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Y3.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(K3,Z3);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!K3.test(e)){let n=e.replace(X3,Q3);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=M3}return new a(r,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?rJ(n):WJ(n));const a={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=r.attribute.slice(0,e)),a.namespace=h3[r.space]}return a}function s4(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=o4(e[r],n);o.parentNode=t,a.push(o)}return a}function l4(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 c4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],u4=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]),d4="�";var p4,h4;(h4=p4||(p4={}))[h4.EOF=-1]="EOF",h4[h4.NULL=0]="NULL",h4[h4.TABULATION=9]="TABULATION",h4[h4.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",h4[h4.LINE_FEED=10]="LINE_FEED",h4[h4.FORM_FEED=12]="FORM_FEED",h4[h4.SPACE=32]="SPACE",h4[h4.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",h4[h4.QUOTATION_MARK=34]="QUOTATION_MARK",h4[h4.AMPERSAND=38]="AMPERSAND",h4[h4.APOSTROPHE=39]="APOSTROPHE",h4[h4.HYPHEN_MINUS=45]="HYPHEN_MINUS",h4[h4.SOLIDUS=47]="SOLIDUS",h4[h4.DIGIT_0=48]="DIGIT_0",h4[h4.DIGIT_9=57]="DIGIT_9",h4[h4.SEMICOLON=59]="SEMICOLON",h4[h4.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",h4[h4.EQUALS_SIGN=61]="EQUALS_SIGN",h4[h4.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",h4[h4.QUESTION_MARK=63]="QUESTION_MARK",h4[h4.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",h4[h4.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",h4[h4.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",h4[h4.GRAVE_ACCENT=96]="GRAVE_ACCENT",h4[h4.LATIN_SMALL_A=97]="LATIN_SMALL_A",h4[h4.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const f4="--",m4="[CDATA[",g4="doctype",y4="script",b4="public",v4="system";function k4(e){return e>=55296&&e<=57343}function w4(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function x4(e){return e>=64976&&e<=65007||u4.has(e)}var E4,_4;(_4=E4||(E4={})).controlCharacterInInputStream="control-character-in-input-stream",_4.noncharacterInInputStream="noncharacter-in-input-stream",_4.surrogateInInputStream="surrogate-in-input-stream",_4.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",_4.endTagWithAttributes="end-tag-with-attributes",_4.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",_4.unexpectedSolidusInTag="unexpected-solidus-in-tag",_4.unexpectedNullCharacter="unexpected-null-character",_4.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",_4.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",_4.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",_4.missingEndTagName="missing-end-tag-name",_4.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",_4.unknownNamedCharacterReference="unknown-named-character-reference",_4.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",_4.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",_4.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",_4.eofBeforeTagName="eof-before-tag-name",_4.eofInTag="eof-in-tag",_4.missingAttributeValue="missing-attribute-value",_4.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",_4.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",_4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",_4.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",_4.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",_4.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",_4.missingDoctypePublicIdentifier="missing-doctype-public-identifier",_4.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",_4.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",_4.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",_4.cdataInHtmlContent="cdata-in-html-content",_4.incorrectlyOpenedComment="incorrectly-opened-comment",_4.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",_4.eofInDoctype="eof-in-doctype",_4.nestedComment="nested-comment",_4.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",_4.eofInComment="eof-in-comment",_4.incorrectlyClosedComment="incorrectly-closed-comment",_4.eofInCdata="eof-in-cdata",_4.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",_4.nullCharacterReference="null-character-reference",_4.surrogateCharacterReference="surrogate-character-reference",_4.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",_4.controlCharacterReference="control-character-reference",_4.noncharacterCharacterReference="noncharacter-character-reference",_4.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",_4.missingDoctypeName="missing-doctype-name",_4.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",_4.duplicateAttribute="duplicate-attribute",_4.nonConformingDoctype="non-conforming-doctype",_4.missingDoctype="missing-doctype",_4.misplacedDoctype="misplaced-doctype",_4.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",_4.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",_4.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",_4.openElementsLeftAfterEof="open-elements-left-after-eof",_4.abandonedHeadElementChild="abandoned-head-element-child",_4.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",_4.nestedNoscriptInHead="nested-noscript-in-head",_4.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class S4{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:a}=this,o=r+t,i=a+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,p4.EOF;return this._err(E4.surrogateInInputStream),e}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(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,p4.EOF;const n=this.html.charCodeAt(t);return n===p4.CARRIAGE_RETURN?p4.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,p4.EOF;let e=this.html.charCodeAt(this.pos);if(e===p4.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,p4.LINE_FEED;if(e===p4.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,k4(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===p4.LINE_FEED||e===p4.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){w4(e)?this._err(E4.controlCharacterInInputStream):x4(e)&&this._err(E4.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var T4,C4;function A4(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}(C4=T4||(T4={}))[C4.CHARACTER=0]="CHARACTER",C4[C4.NULL_CHARACTER=1]="NULL_CHARACTER",C4[C4.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",C4[C4.START_TAG=3]="START_TAG",C4[C4.END_TAG=4]="END_TAG",C4[C4.COMMENT=5]="COMMENT",C4[C4.DOCTYPE=6]="DOCTYPE",C4[C4.EOF=7]="EOF",C4[C4.HIBERNATION=8]="HIBERNATION";const N4=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)))),I4=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var R4;const O4=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]]),P4=null!==(R4=String.fromCodePoint)&&void 0!==R4?R4:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var L4,D4;(D4=L4||(L4={}))[D4.NUM=35]="NUM",D4[D4.SEMI=59]="SEMI",D4[D4.EQUALS=61]="EQUALS",D4[D4.ZERO=48]="ZERO",D4[D4.NINE=57]="NINE",D4[D4.LOWER_A=97]="LOWER_A",D4[D4.LOWER_F=102]="LOWER_F",D4[D4.LOWER_X=120]="LOWER_X",D4[D4.LOWER_Z=122]="LOWER_Z",D4[D4.UPPER_A=65]="UPPER_A",D4[D4.UPPER_F=70]="UPPER_F",D4[D4.UPPER_Z=90]="UPPER_Z";var M4,F4,j4,B4,H4,z4,U4,$4,V4,G4,W4,q4,Y4,K4,X4,Q4;function Z4(e){return e>=L4.ZERO&&e<=L4.NINE}function J4(e){return e===L4.EQUALS||function(e){return e>=L4.UPPER_A&&e<=L4.UPPER_Z||e>=L4.LOWER_A&&e<=L4.LOWER_Z||Z4(e)}(e)}(F4=M4||(M4={}))[F4.VALUE_LENGTH=49152]="VALUE_LENGTH",F4[F4.BRANCH_LENGTH=16256]="BRANCH_LENGTH",F4[F4.JUMP_TABLE=127]="JUMP_TABLE",(B4=j4||(j4={}))[B4.EntityStart=0]="EntityStart",B4[B4.NumericStart=1]="NumericStart",B4[B4.NumericDecimal=2]="NumericDecimal",B4[B4.NumericHex=3]="NumericHex",B4[B4.NamedEntity=4]="NamedEntity",(z4=H4||(H4={}))[z4.Legacy=0]="Legacy",z4[z4.Strict=1]="Strict",z4[z4.Attribute=2]="Attribute";class e6{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=j4.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=H4.Strict}startEntity(e){this.decodeMode=e,this.state=j4.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case j4.EntityStart:return e.charCodeAt(t)===L4.NUM?(this.state=j4.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=j4.NamedEntity,this.stateNamedEntity(e,t));case j4.NumericStart:return this.stateNumericStart(e,t);case j4.NumericDecimal:return this.stateNumericDecimal(e,t);case j4.NumericHex:return this.stateNumericHex(e,t);case j4.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===L4.LOWER_X?(this.state=j4.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=j4.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const a=n-t;this.result=this.result*Math.pow(r,a)+parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const a=e.charCodeAt(t);if(!(Z4(a)||(r=a,r>=L4.UPPER_A&&r<=L4.UPPER_F||r>=L4.LOWER_A&&r<=L4.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(a,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Z4(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===L4.SEMI)this.consumed+=1;else if(this.decodeMode===H4.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=O4.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==L4.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],a=(r&M4.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=n6(n,r,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return 0===this.result||this.decodeMode===H4.Attribute&&(0===a||J4(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],a=(r&M4.VALUE_LENGTH)>>14,0!==a){if(o===L4.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==H4.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&M4.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~M4.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case j4.NamedEntity:return 0===this.result||this.decodeMode===H4.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case j4.NumericDecimal:return this.emitNumericEntity(0,2);case j4.NumericHex:return this.emitNumericEntity(0,3);case j4.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case j4.EntityStart:return 0}}}function t6(e){let t="";const n=new e6(e,(e=>t+=P4(e)));return function(e,r){let a=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(a,o),n.startEntity(r);const i=n.write(e,o+1);if(i<0){a=o+n.end();break}a=o+i,o=0===i?a+1:a}const i=t+e.slice(a);return t="",i}}function n6(e,t,n,r){const a=(t&M4.BRANCH_LENGTH)>>7,o=t&M4.JUMP_TABLE;if(0===a)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=a?-1:e[n+t]-1}let i=n,s=i+a-1;for(;i<=s;){const t=i+s>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+a];s=t-1}}return-1}t6(N4),t6(I4),($4=U4||(U4={})).HTML="http://www.w3.org/1999/xhtml",$4.MATHML="http://www.w3.org/1998/Math/MathML",$4.SVG="http://www.w3.org/2000/svg",$4.XLINK="http://www.w3.org/1999/xlink",$4.XML="http://www.w3.org/XML/1998/namespace",$4.XMLNS="http://www.w3.org/2000/xmlns/",(G4=V4||(V4={})).TYPE="type",G4.ACTION="action",G4.ENCODING="encoding",G4.PROMPT="prompt",G4.NAME="name",G4.COLOR="color",G4.FACE="face",G4.SIZE="size",(q4=W4||(W4={})).NO_QUIRKS="no-quirks",q4.QUIRKS="quirks",q4.LIMITED_QUIRKS="limited-quirks",(K4=Y4||(Y4={})).A="a",K4.ADDRESS="address",K4.ANNOTATION_XML="annotation-xml",K4.APPLET="applet",K4.AREA="area",K4.ARTICLE="article",K4.ASIDE="aside",K4.B="b",K4.BASE="base",K4.BASEFONT="basefont",K4.BGSOUND="bgsound",K4.BIG="big",K4.BLOCKQUOTE="blockquote",K4.BODY="body",K4.BR="br",K4.BUTTON="button",K4.CAPTION="caption",K4.CENTER="center",K4.CODE="code",K4.COL="col",K4.COLGROUP="colgroup",K4.DD="dd",K4.DESC="desc",K4.DETAILS="details",K4.DIALOG="dialog",K4.DIR="dir",K4.DIV="div",K4.DL="dl",K4.DT="dt",K4.EM="em",K4.EMBED="embed",K4.FIELDSET="fieldset",K4.FIGCAPTION="figcaption",K4.FIGURE="figure",K4.FONT="font",K4.FOOTER="footer",K4.FOREIGN_OBJECT="foreignObject",K4.FORM="form",K4.FRAME="frame",K4.FRAMESET="frameset",K4.H1="h1",K4.H2="h2",K4.H3="h3",K4.H4="h4",K4.H5="h5",K4.H6="h6",K4.HEAD="head",K4.HEADER="header",K4.HGROUP="hgroup",K4.HR="hr",K4.HTML="html",K4.I="i",K4.IMG="img",K4.IMAGE="image",K4.INPUT="input",K4.IFRAME="iframe",K4.KEYGEN="keygen",K4.LABEL="label",K4.LI="li",K4.LINK="link",K4.LISTING="listing",K4.MAIN="main",K4.MALIGNMARK="malignmark",K4.MARQUEE="marquee",K4.MATH="math",K4.MENU="menu",K4.META="meta",K4.MGLYPH="mglyph",K4.MI="mi",K4.MO="mo",K4.MN="mn",K4.MS="ms",K4.MTEXT="mtext",K4.NAV="nav",K4.NOBR="nobr",K4.NOFRAMES="noframes",K4.NOEMBED="noembed",K4.NOSCRIPT="noscript",K4.OBJECT="object",K4.OL="ol",K4.OPTGROUP="optgroup",K4.OPTION="option",K4.P="p",K4.PARAM="param",K4.PLAINTEXT="plaintext",K4.PRE="pre",K4.RB="rb",K4.RP="rp",K4.RT="rt",K4.RTC="rtc",K4.RUBY="ruby",K4.S="s",K4.SCRIPT="script",K4.SEARCH="search",K4.SECTION="section",K4.SELECT="select",K4.SOURCE="source",K4.SMALL="small",K4.SPAN="span",K4.STRIKE="strike",K4.STRONG="strong",K4.STYLE="style",K4.SUB="sub",K4.SUMMARY="summary",K4.SUP="sup",K4.TABLE="table",K4.TBODY="tbody",K4.TEMPLATE="template",K4.TEXTAREA="textarea",K4.TFOOT="tfoot",K4.TD="td",K4.TH="th",K4.THEAD="thead",K4.TITLE="title",K4.TR="tr",K4.TRACK="track",K4.TT="tt",K4.U="u",K4.UL="ul",K4.SVG="svg",K4.VAR="var",K4.WBR="wbr",K4.XMP="xmp",(Q4=X4||(X4={}))[Q4.UNKNOWN=0]="UNKNOWN",Q4[Q4.A=1]="A",Q4[Q4.ADDRESS=2]="ADDRESS",Q4[Q4.ANNOTATION_XML=3]="ANNOTATION_XML",Q4[Q4.APPLET=4]="APPLET",Q4[Q4.AREA=5]="AREA",Q4[Q4.ARTICLE=6]="ARTICLE",Q4[Q4.ASIDE=7]="ASIDE",Q4[Q4.B=8]="B",Q4[Q4.BASE=9]="BASE",Q4[Q4.BASEFONT=10]="BASEFONT",Q4[Q4.BGSOUND=11]="BGSOUND",Q4[Q4.BIG=12]="BIG",Q4[Q4.BLOCKQUOTE=13]="BLOCKQUOTE",Q4[Q4.BODY=14]="BODY",Q4[Q4.BR=15]="BR",Q4[Q4.BUTTON=16]="BUTTON",Q4[Q4.CAPTION=17]="CAPTION",Q4[Q4.CENTER=18]="CENTER",Q4[Q4.CODE=19]="CODE",Q4[Q4.COL=20]="COL",Q4[Q4.COLGROUP=21]="COLGROUP",Q4[Q4.DD=22]="DD",Q4[Q4.DESC=23]="DESC",Q4[Q4.DETAILS=24]="DETAILS",Q4[Q4.DIALOG=25]="DIALOG",Q4[Q4.DIR=26]="DIR",Q4[Q4.DIV=27]="DIV",Q4[Q4.DL=28]="DL",Q4[Q4.DT=29]="DT",Q4[Q4.EM=30]="EM",Q4[Q4.EMBED=31]="EMBED",Q4[Q4.FIELDSET=32]="FIELDSET",Q4[Q4.FIGCAPTION=33]="FIGCAPTION",Q4[Q4.FIGURE=34]="FIGURE",Q4[Q4.FONT=35]="FONT",Q4[Q4.FOOTER=36]="FOOTER",Q4[Q4.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Q4[Q4.FORM=38]="FORM",Q4[Q4.FRAME=39]="FRAME",Q4[Q4.FRAMESET=40]="FRAMESET",Q4[Q4.H1=41]="H1",Q4[Q4.H2=42]="H2",Q4[Q4.H3=43]="H3",Q4[Q4.H4=44]="H4",Q4[Q4.H5=45]="H5",Q4[Q4.H6=46]="H6",Q4[Q4.HEAD=47]="HEAD",Q4[Q4.HEADER=48]="HEADER",Q4[Q4.HGROUP=49]="HGROUP",Q4[Q4.HR=50]="HR",Q4[Q4.HTML=51]="HTML",Q4[Q4.I=52]="I",Q4[Q4.IMG=53]="IMG",Q4[Q4.IMAGE=54]="IMAGE",Q4[Q4.INPUT=55]="INPUT",Q4[Q4.IFRAME=56]="IFRAME",Q4[Q4.KEYGEN=57]="KEYGEN",Q4[Q4.LABEL=58]="LABEL",Q4[Q4.LI=59]="LI",Q4[Q4.LINK=60]="LINK",Q4[Q4.LISTING=61]="LISTING",Q4[Q4.MAIN=62]="MAIN",Q4[Q4.MALIGNMARK=63]="MALIGNMARK",Q4[Q4.MARQUEE=64]="MARQUEE",Q4[Q4.MATH=65]="MATH",Q4[Q4.MENU=66]="MENU",Q4[Q4.META=67]="META",Q4[Q4.MGLYPH=68]="MGLYPH",Q4[Q4.MI=69]="MI",Q4[Q4.MO=70]="MO",Q4[Q4.MN=71]="MN",Q4[Q4.MS=72]="MS",Q4[Q4.MTEXT=73]="MTEXT",Q4[Q4.NAV=74]="NAV",Q4[Q4.NOBR=75]="NOBR",Q4[Q4.NOFRAMES=76]="NOFRAMES",Q4[Q4.NOEMBED=77]="NOEMBED",Q4[Q4.NOSCRIPT=78]="NOSCRIPT",Q4[Q4.OBJECT=79]="OBJECT",Q4[Q4.OL=80]="OL",Q4[Q4.OPTGROUP=81]="OPTGROUP",Q4[Q4.OPTION=82]="OPTION",Q4[Q4.P=83]="P",Q4[Q4.PARAM=84]="PARAM",Q4[Q4.PLAINTEXT=85]="PLAINTEXT",Q4[Q4.PRE=86]="PRE",Q4[Q4.RB=87]="RB",Q4[Q4.RP=88]="RP",Q4[Q4.RT=89]="RT",Q4[Q4.RTC=90]="RTC",Q4[Q4.RUBY=91]="RUBY",Q4[Q4.S=92]="S",Q4[Q4.SCRIPT=93]="SCRIPT",Q4[Q4.SEARCH=94]="SEARCH",Q4[Q4.SECTION=95]="SECTION",Q4[Q4.SELECT=96]="SELECT",Q4[Q4.SOURCE=97]="SOURCE",Q4[Q4.SMALL=98]="SMALL",Q4[Q4.SPAN=99]="SPAN",Q4[Q4.STRIKE=100]="STRIKE",Q4[Q4.STRONG=101]="STRONG",Q4[Q4.STYLE=102]="STYLE",Q4[Q4.SUB=103]="SUB",Q4[Q4.SUMMARY=104]="SUMMARY",Q4[Q4.SUP=105]="SUP",Q4[Q4.TABLE=106]="TABLE",Q4[Q4.TBODY=107]="TBODY",Q4[Q4.TEMPLATE=108]="TEMPLATE",Q4[Q4.TEXTAREA=109]="TEXTAREA",Q4[Q4.TFOOT=110]="TFOOT",Q4[Q4.TD=111]="TD",Q4[Q4.TH=112]="TH",Q4[Q4.THEAD=113]="THEAD",Q4[Q4.TITLE=114]="TITLE",Q4[Q4.TR=115]="TR",Q4[Q4.TRACK=116]="TRACK",Q4[Q4.TT=117]="TT",Q4[Q4.U=118]="U",Q4[Q4.UL=119]="UL",Q4[Q4.SVG=120]="SVG",Q4[Q4.VAR=121]="VAR",Q4[Q4.WBR=122]="WBR",Q4[Q4.XMP=123]="XMP";const r6=new Map([[Y4.A,X4.A],[Y4.ADDRESS,X4.ADDRESS],[Y4.ANNOTATION_XML,X4.ANNOTATION_XML],[Y4.APPLET,X4.APPLET],[Y4.AREA,X4.AREA],[Y4.ARTICLE,X4.ARTICLE],[Y4.ASIDE,X4.ASIDE],[Y4.B,X4.B],[Y4.BASE,X4.BASE],[Y4.BASEFONT,X4.BASEFONT],[Y4.BGSOUND,X4.BGSOUND],[Y4.BIG,X4.BIG],[Y4.BLOCKQUOTE,X4.BLOCKQUOTE],[Y4.BODY,X4.BODY],[Y4.BR,X4.BR],[Y4.BUTTON,X4.BUTTON],[Y4.CAPTION,X4.CAPTION],[Y4.CENTER,X4.CENTER],[Y4.CODE,X4.CODE],[Y4.COL,X4.COL],[Y4.COLGROUP,X4.COLGROUP],[Y4.DD,X4.DD],[Y4.DESC,X4.DESC],[Y4.DETAILS,X4.DETAILS],[Y4.DIALOG,X4.DIALOG],[Y4.DIR,X4.DIR],[Y4.DIV,X4.DIV],[Y4.DL,X4.DL],[Y4.DT,X4.DT],[Y4.EM,X4.EM],[Y4.EMBED,X4.EMBED],[Y4.FIELDSET,X4.FIELDSET],[Y4.FIGCAPTION,X4.FIGCAPTION],[Y4.FIGURE,X4.FIGURE],[Y4.FONT,X4.FONT],[Y4.FOOTER,X4.FOOTER],[Y4.FOREIGN_OBJECT,X4.FOREIGN_OBJECT],[Y4.FORM,X4.FORM],[Y4.FRAME,X4.FRAME],[Y4.FRAMESET,X4.FRAMESET],[Y4.H1,X4.H1],[Y4.H2,X4.H2],[Y4.H3,X4.H3],[Y4.H4,X4.H4],[Y4.H5,X4.H5],[Y4.H6,X4.H6],[Y4.HEAD,X4.HEAD],[Y4.HEADER,X4.HEADER],[Y4.HGROUP,X4.HGROUP],[Y4.HR,X4.HR],[Y4.HTML,X4.HTML],[Y4.I,X4.I],[Y4.IMG,X4.IMG],[Y4.IMAGE,X4.IMAGE],[Y4.INPUT,X4.INPUT],[Y4.IFRAME,X4.IFRAME],[Y4.KEYGEN,X4.KEYGEN],[Y4.LABEL,X4.LABEL],[Y4.LI,X4.LI],[Y4.LINK,X4.LINK],[Y4.LISTING,X4.LISTING],[Y4.MAIN,X4.MAIN],[Y4.MALIGNMARK,X4.MALIGNMARK],[Y4.MARQUEE,X4.MARQUEE],[Y4.MATH,X4.MATH],[Y4.MENU,X4.MENU],[Y4.META,X4.META],[Y4.MGLYPH,X4.MGLYPH],[Y4.MI,X4.MI],[Y4.MO,X4.MO],[Y4.MN,X4.MN],[Y4.MS,X4.MS],[Y4.MTEXT,X4.MTEXT],[Y4.NAV,X4.NAV],[Y4.NOBR,X4.NOBR],[Y4.NOFRAMES,X4.NOFRAMES],[Y4.NOEMBED,X4.NOEMBED],[Y4.NOSCRIPT,X4.NOSCRIPT],[Y4.OBJECT,X4.OBJECT],[Y4.OL,X4.OL],[Y4.OPTGROUP,X4.OPTGROUP],[Y4.OPTION,X4.OPTION],[Y4.P,X4.P],[Y4.PARAM,X4.PARAM],[Y4.PLAINTEXT,X4.PLAINTEXT],[Y4.PRE,X4.PRE],[Y4.RB,X4.RB],[Y4.RP,X4.RP],[Y4.RT,X4.RT],[Y4.RTC,X4.RTC],[Y4.RUBY,X4.RUBY],[Y4.S,X4.S],[Y4.SCRIPT,X4.SCRIPT],[Y4.SEARCH,X4.SEARCH],[Y4.SECTION,X4.SECTION],[Y4.SELECT,X4.SELECT],[Y4.SOURCE,X4.SOURCE],[Y4.SMALL,X4.SMALL],[Y4.SPAN,X4.SPAN],[Y4.STRIKE,X4.STRIKE],[Y4.STRONG,X4.STRONG],[Y4.STYLE,X4.STYLE],[Y4.SUB,X4.SUB],[Y4.SUMMARY,X4.SUMMARY],[Y4.SUP,X4.SUP],[Y4.TABLE,X4.TABLE],[Y4.TBODY,X4.TBODY],[Y4.TEMPLATE,X4.TEMPLATE],[Y4.TEXTAREA,X4.TEXTAREA],[Y4.TFOOT,X4.TFOOT],[Y4.TD,X4.TD],[Y4.TH,X4.TH],[Y4.THEAD,X4.THEAD],[Y4.TITLE,X4.TITLE],[Y4.TR,X4.TR],[Y4.TRACK,X4.TRACK],[Y4.TT,X4.TT],[Y4.U,X4.U],[Y4.UL,X4.UL],[Y4.SVG,X4.SVG],[Y4.VAR,X4.VAR],[Y4.WBR,X4.WBR],[Y4.XMP,X4.XMP]]);function a6(e){var t;return null!==(t=r6.get(e))&&void 0!==t?t:X4.UNKNOWN}const o6=X4,i6={[U4.HTML]:new Set([o6.ADDRESS,o6.APPLET,o6.AREA,o6.ARTICLE,o6.ASIDE,o6.BASE,o6.BASEFONT,o6.BGSOUND,o6.BLOCKQUOTE,o6.BODY,o6.BR,o6.BUTTON,o6.CAPTION,o6.CENTER,o6.COL,o6.COLGROUP,o6.DD,o6.DETAILS,o6.DIR,o6.DIV,o6.DL,o6.DT,o6.EMBED,o6.FIELDSET,o6.FIGCAPTION,o6.FIGURE,o6.FOOTER,o6.FORM,o6.FRAME,o6.FRAMESET,o6.H1,o6.H2,o6.H3,o6.H4,o6.H5,o6.H6,o6.HEAD,o6.HEADER,o6.HGROUP,o6.HR,o6.HTML,o6.IFRAME,o6.IMG,o6.INPUT,o6.LI,o6.LINK,o6.LISTING,o6.MAIN,o6.MARQUEE,o6.MENU,o6.META,o6.NAV,o6.NOEMBED,o6.NOFRAMES,o6.NOSCRIPT,o6.OBJECT,o6.OL,o6.P,o6.PARAM,o6.PLAINTEXT,o6.PRE,o6.SCRIPT,o6.SECTION,o6.SELECT,o6.SOURCE,o6.STYLE,o6.SUMMARY,o6.TABLE,o6.TBODY,o6.TD,o6.TEMPLATE,o6.TEXTAREA,o6.TFOOT,o6.TH,o6.THEAD,o6.TITLE,o6.TR,o6.TRACK,o6.UL,o6.WBR,o6.XMP]),[U4.MATHML]:new Set([o6.MI,o6.MO,o6.MN,o6.MS,o6.MTEXT,o6.ANNOTATION_XML]),[U4.SVG]:new Set([o6.TITLE,o6.FOREIGN_OBJECT,o6.DESC]),[U4.XLINK]:new Set,[U4.XML]:new Set,[U4.XMLNS]:new Set},s6=new Set([o6.H1,o6.H2,o6.H3,o6.H4,o6.H5,o6.H6]);var l6,c6;Y4.STYLE,Y4.SCRIPT,Y4.XMP,Y4.IFRAME,Y4.NOEMBED,Y4.NOFRAMES,Y4.PLAINTEXT,(c6=l6||(l6={}))[c6.DATA=0]="DATA",c6[c6.RCDATA=1]="RCDATA",c6[c6.RAWTEXT=2]="RAWTEXT",c6[c6.SCRIPT_DATA=3]="SCRIPT_DATA",c6[c6.PLAINTEXT=4]="PLAINTEXT",c6[c6.TAG_OPEN=5]="TAG_OPEN",c6[c6.END_TAG_OPEN=6]="END_TAG_OPEN",c6[c6.TAG_NAME=7]="TAG_NAME",c6[c6.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",c6[c6.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",c6[c6.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",c6[c6.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",c6[c6.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",c6[c6.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",c6[c6.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",c6[c6.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",c6[c6.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",c6[c6.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",c6[c6.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",c6[c6.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",c6[c6.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",c6[c6.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",c6[c6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",c6[c6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",c6[c6.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",c6[c6.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",c6[c6.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",c6[c6.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",c6[c6.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",c6[c6.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",c6[c6.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",c6[c6.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",c6[c6.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",c6[c6.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",c6[c6.BOGUS_COMMENT=40]="BOGUS_COMMENT",c6[c6.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",c6[c6.COMMENT_START=42]="COMMENT_START",c6[c6.COMMENT_START_DASH=43]="COMMENT_START_DASH",c6[c6.COMMENT=44]="COMMENT",c6[c6.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",c6[c6.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",c6[c6.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",c6[c6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",c6[c6.COMMENT_END_DASH=49]="COMMENT_END_DASH",c6[c6.COMMENT_END=50]="COMMENT_END",c6[c6.COMMENT_END_BANG=51]="COMMENT_END_BANG",c6[c6.DOCTYPE=52]="DOCTYPE",c6[c6.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",c6[c6.DOCTYPE_NAME=54]="DOCTYPE_NAME",c6[c6.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",c6[c6.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",c6[c6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",c6[c6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",c6[c6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",c6[c6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",c6[c6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",c6[c6.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",c6[c6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",c6[c6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",c6[c6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",c6[c6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",c6[c6.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",c6[c6.CDATA_SECTION=68]="CDATA_SECTION",c6[c6.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",c6[c6.CDATA_SECTION_END=70]="CDATA_SECTION_END",c6[c6.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",c6[c6.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const u6={DATA:l6.DATA,RCDATA:l6.RCDATA,RAWTEXT:l6.RAWTEXT,SCRIPT_DATA:l6.SCRIPT_DATA,PLAINTEXT:l6.PLAINTEXT,CDATA_SECTION:l6.CDATA_SECTION};function d6(e){return e>=p4.LATIN_CAPITAL_A&&e<=p4.LATIN_CAPITAL_Z}function p6(e){return function(e){return e>=p4.LATIN_SMALL_A&&e<=p4.LATIN_SMALL_Z}(e)||d6(e)}function h6(e){return p6(e)||function(e){return e>=p4.DIGIT_0&&e<=p4.DIGIT_9}(e)}function f6(e){return e+32}function m6(e){return e===p4.SPACE||e===p4.LINE_FEED||e===p4.TABULATION||e===p4.FORM_FEED}function g6(e){return m6(e)||e===p4.SOLIDUS||e===p4.GREATER_THAN_SIGN}class y6{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=l6.DATA,this.returnState=l6.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new S4(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new e6(N4,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(E4.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(E4.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===p4.NULL?E4.nullCharacterReference:e>1114111?E4.characterReferenceOutsideUnicodeRange:k4(e)?E4.surrogateCharacterReference:x4(e)?E4.noncharacterCharacterReference:w4(e)||e===p4.CARRIAGE_RETURN?E4.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:T4.START_TAG,tagName:"",tagID:X4.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:T4.END_TAG,tagName:"",tagID:X4.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:T4.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:T4.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===A4(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(E4.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=a6(e.tagName),e.type===T4.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(E4.endTagWithAttributes),e.selfClosing&&this._err(E4.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case T4.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case T4.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case T4.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:T4.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=m6(e)?T4.WHITESPACE_CHARACTER:e===p4.NULL?T4.NULL_CHARACTER:T4.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(T4.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=l6.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?H4.Attribute:H4.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===l6.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===l6.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===l6.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case l6.DATA:this._stateData(e);break;case l6.RCDATA:this._stateRcdata(e);break;case l6.RAWTEXT:this._stateRawtext(e);break;case l6.SCRIPT_DATA:this._stateScriptData(e);break;case l6.PLAINTEXT:this._statePlaintext(e);break;case l6.TAG_OPEN:this._stateTagOpen(e);break;case l6.END_TAG_OPEN:this._stateEndTagOpen(e);break;case l6.TAG_NAME:this._stateTagName(e);break;case l6.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case l6.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case l6.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case l6.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case l6.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case l6.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case l6.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case l6.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case l6.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case l6.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case l6.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case l6.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case l6.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case l6.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case l6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case l6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case l6.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case l6.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case l6.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case l6.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case l6.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case l6.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case l6.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case l6.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case l6.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case l6.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case l6.BOGUS_COMMENT:this._stateBogusComment(e);break;case l6.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case l6.COMMENT_START:this._stateCommentStart(e);break;case l6.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case l6.COMMENT:this._stateComment(e);break;case l6.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case l6.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case l6.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case l6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case l6.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case l6.COMMENT_END:this._stateCommentEnd(e);break;case l6.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case l6.DOCTYPE:this._stateDoctype(e);break;case l6.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case l6.DOCTYPE_NAME:this._stateDoctypeName(e);break;case l6.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case l6.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case l6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case l6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case l6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case l6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case l6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case l6.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case l6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case l6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case l6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case l6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case l6.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case l6.CDATA_SECTION:this._stateCdataSection(e);break;case l6.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case l6.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case l6.CHARACTER_REFERENCE:this._stateCharacterReference();break;case l6.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case p4.LESS_THAN_SIGN:this.state=l6.TAG_OPEN;break;case p4.AMPERSAND:this._startCharacterReference();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitCodePoint(e);break;case p4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case p4.AMPERSAND:this._startCharacterReference();break;case p4.LESS_THAN_SIGN:this.state=l6.RCDATA_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case p4.LESS_THAN_SIGN:this.state=l6.RAWTEXT_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(p6(e))this._createStartTagToken(),this.state=l6.TAG_NAME,this._stateTagName(e);else switch(e){case p4.EXCLAMATION_MARK:this.state=l6.MARKUP_DECLARATION_OPEN;break;case p4.SOLIDUS:this.state=l6.END_TAG_OPEN;break;case p4.QUESTION_MARK:this._err(E4.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=l6.BOGUS_COMMENT,this._stateBogusComment(e);break;case p4.EOF:this._err(E4.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(E4.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=l6.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(p6(e))this._createEndTagToken(),this.state=l6.TAG_NAME,this._stateTagName(e);else switch(e){case p4.GREATER_THAN_SIGN:this._err(E4.missingEndTagName),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(E4.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=l6.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.BEFORE_ATTRIBUTE_NAME;break;case p4.SOLIDUS:this.state=l6.SELF_CLOSING_START_TAG;break;case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentTagToken();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.tagName+=d4;break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(d6(e)?f6(e):e)}}_stateRcdataLessThanSign(e){e===p4.SOLIDUS?this.state=l6.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=l6.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){p6(e)?(this.state=l6.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=l6.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=l6.BEFORE_ATTRIBUTE_NAME,!1;case p4.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=l6.SELF_CLOSING_START_TAG,!1;case p4.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=l6.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l6.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===p4.SOLIDUS?this.state=l6.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=l6.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){p6(e)?(this.state=l6.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=l6.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l6.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case p4.SOLIDUS:this.state=l6.SCRIPT_DATA_END_TAG_OPEN;break;case p4.EXCLAMATION_MARK:this.state=l6.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=l6.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){p6(e)?(this.state=l6.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=l6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===p4.HYPHEN_MINUS?(this.state=l6.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=l6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===p4.HYPHEN_MINUS?(this.state=l6.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=l6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case p4.HYPHEN_MINUS:this.state=l6.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case p4.HYPHEN_MINUS:this.state=l6.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.state=l6.SCRIPT_DATA_ESCAPED,this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=l6.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case p4.HYPHEN_MINUS:this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case p4.GREATER_THAN_SIGN:this.state=l6.SCRIPT_DATA,this._emitChars(">");break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.state=l6.SCRIPT_DATA_ESCAPED,this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=l6.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===p4.SOLIDUS?this.state=l6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:p6(e)?(this._emitChars("<"),this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=l6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){p6(e)?(this.state=l6.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=l6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(y4,!1)&&g6(this.preprocessor.peek(y4.length))){this._emitCodePoint(e);for(let e=0;e<y4.length;e++)this._emitCodePoint(this._consume());this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=l6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case p4.HYPHEN_MINUS:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case p4.HYPHEN_MINUS:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case p4.HYPHEN_MINUS:this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case p4.GREATER_THAN_SIGN:this.state=l6.SCRIPT_DATA,this._emitChars(">");break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===p4.SOLIDUS?(this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(y4,!1)&&g6(this.preprocessor.peek(y4.length))){this._emitCodePoint(e);for(let e=0;e<y4.length;e++)this._emitCodePoint(this._consume());this.state=l6.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.SOLIDUS:case p4.GREATER_THAN_SIGN:case p4.EOF:this.state=l6.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case p4.EQUALS_SIGN:this._err(E4.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=l6.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=l6.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:case p4.SOLIDUS:case p4.GREATER_THAN_SIGN:case p4.EOF:this._leaveAttrName(),this.state=l6.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case p4.EQUALS_SIGN:this._leaveAttrName(),this.state=l6.BEFORE_ATTRIBUTE_VALUE;break;case p4.QUOTATION_MARK:case p4.APOSTROPHE:case p4.LESS_THAN_SIGN:this._err(E4.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.currentAttr.name+=d4;break;default:this.currentAttr.name+=String.fromCodePoint(d6(e)?f6(e):e)}}_stateAfterAttributeName(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.SOLIDUS:this.state=l6.SELF_CLOSING_START_TAG;break;case p4.EQUALS_SIGN:this.state=l6.BEFORE_ATTRIBUTE_VALUE;break;case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentTagToken();break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=l6.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.QUOTATION_MARK:this.state=l6.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case p4.APOSTROPHE:this.state=l6.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case p4.GREATER_THAN_SIGN:this._err(E4.missingAttributeValue),this.state=l6.DATA,this.emitCurrentTagToken();break;default:this.state=l6.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case p4.QUOTATION_MARK:this.state=l6.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case p4.AMPERSAND:this._startCharacterReference();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.currentAttr.value+=d4;break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case p4.APOSTROPHE:this.state=l6.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case p4.AMPERSAND:this._startCharacterReference();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.currentAttr.value+=d4;break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this._leaveAttrValue(),this.state=l6.BEFORE_ATTRIBUTE_NAME;break;case p4.AMPERSAND:this._startCharacterReference();break;case p4.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=l6.DATA,this.emitCurrentTagToken();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.currentAttr.value+=d4;break;case p4.QUOTATION_MARK:case p4.APOSTROPHE:case p4.LESS_THAN_SIGN:case p4.EQUALS_SIGN:case p4.GRAVE_ACCENT:this._err(E4.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this._leaveAttrValue(),this.state=l6.BEFORE_ATTRIBUTE_NAME;break;case p4.SOLIDUS:this._leaveAttrValue(),this.state=l6.SELF_CLOSING_START_TAG;break;case p4.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=l6.DATA,this.emitCurrentTagToken();break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this._err(E4.missingWhitespaceBetweenAttributes),this.state=l6.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case p4.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=l6.DATA,this.emitCurrentTagToken();break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this._err(E4.unexpectedSolidusInTag),this.state=l6.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentComment(t);break;case p4.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.data+=d4;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(f4,!0)?(this._createCommentToken(f4.length+1),this.state=l6.COMMENT_START):this._consumeSequenceIfMatch(g4,!1)?(this.currentLocation=this.getCurrentLocation(g4.length+1),this.state=l6.DOCTYPE):this._consumeSequenceIfMatch(m4,!0)?this.inForeignNode?this.state=l6.CDATA_SECTION:(this._err(E4.cdataInHtmlContent),this._createCommentToken(m4.length+1),this.currentToken.data="[CDATA[",this.state=l6.BOGUS_COMMENT):this._ensureHibernation()||(this._err(E4.incorrectlyOpenedComment),this._createCommentToken(2),this.state=l6.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case p4.HYPHEN_MINUS:this.state=l6.COMMENT_START_DASH;break;case p4.GREATER_THAN_SIGN:{this._err(E4.abruptClosingOfEmptyComment),this.state=l6.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=l6.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case p4.HYPHEN_MINUS:this.state=l6.COMMENT_END;break;case p4.GREATER_THAN_SIGN:this._err(E4.abruptClosingOfEmptyComment),this.state=l6.DATA,this.emitCurrentComment(t);break;case p4.EOF:this._err(E4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=l6.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case p4.HYPHEN_MINUS:this.state=l6.COMMENT_END_DASH;break;case p4.LESS_THAN_SIGN:t.data+="<",this.state=l6.COMMENT_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.data+=d4;break;case p4.EOF:this._err(E4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case p4.EXCLAMATION_MARK:t.data+="!",this.state=l6.COMMENT_LESS_THAN_SIGN_BANG;break;case p4.LESS_THAN_SIGN:t.data+="<";break;default:this.state=l6.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===p4.HYPHEN_MINUS?this.state=l6.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=l6.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===p4.HYPHEN_MINUS?this.state=l6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=l6.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==p4.GREATER_THAN_SIGN&&e!==p4.EOF&&this._err(E4.nestedComment),this.state=l6.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case p4.HYPHEN_MINUS:this.state=l6.COMMENT_END;break;case p4.EOF:this._err(E4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=l6.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentComment(t);break;case p4.EXCLAMATION_MARK:this.state=l6.COMMENT_END_BANG;break;case p4.HYPHEN_MINUS:t.data+="-";break;case p4.EOF:this._err(E4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=l6.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case p4.HYPHEN_MINUS:t.data+="--!",this.state=l6.COMMENT_END_DASH;break;case p4.GREATER_THAN_SIGN:this._err(E4.incorrectlyClosedComment),this.state=l6.DATA,this.emitCurrentComment(t);break;case p4.EOF:this._err(E4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=l6.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.BEFORE_DOCTYPE_NAME;break;case p4.GREATER_THAN_SIGN:this.state=l6.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case p4.EOF:{this._err(E4.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(E4.missingWhitespaceBeforeDoctypeName),this.state=l6.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(d6(e))this._createDoctypeToken(String.fromCharCode(f6(e))),this.state=l6.DOCTYPE_NAME;else switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._createDoctypeToken(d4),this.state=l6.DOCTYPE_NAME;break;case p4.GREATER_THAN_SIGN:{this._err(E4.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=l6.DATA;break}case p4.EOF:{this._err(E4.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=l6.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.AFTER_DOCTYPE_NAME;break;case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.name+=d4;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(d6(e)?f6(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(b4,!1)?this.state=l6.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(v4,!1)?this.state=l6.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(E4.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case p4.QUOTATION_MARK:this._err(E4.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=l6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:this._err(E4.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=l6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case p4.GREATER_THAN_SIGN:this._err(E4.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.QUOTATION_MARK:t.publicId="",this.state=l6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:t.publicId="",this.state=l6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case p4.GREATER_THAN_SIGN:this._err(E4.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case p4.QUOTATION_MARK:this.state=l6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.publicId+=d4;break;case p4.GREATER_THAN_SIGN:this._err(E4.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case p4.APOSTROPHE:this.state=l6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.publicId+=d4;break;case p4.GREATER_THAN_SIGN:this._err(E4.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.QUOTATION_MARK:this._err(E4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:this._err(E4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.QUOTATION_MARK:t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case p4.QUOTATION_MARK:this._err(E4.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:this._err(E4.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case p4.GREATER_THAN_SIGN:this._err(E4.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.QUOTATION_MARK:t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case p4.GREATER_THAN_SIGN:this._err(E4.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case p4.QUOTATION_MARK:this.state=l6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.systemId+=d4;break;case p4.GREATER_THAN_SIGN:this._err(E4.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case p4.APOSTROPHE:this.state=l6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.systemId+=d4;break;case p4.GREATER_THAN_SIGN:this._err(E4.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case p4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.NULL:this._err(E4.unexpectedNullCharacter);break;case p4.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case p4.RIGHT_SQUARE_BRACKET:this.state=l6.CDATA_SECTION_BRACKET;break;case p4.EOF:this._err(E4.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===p4.RIGHT_SQUARE_BRACKET?this.state=l6.CDATA_SECTION_END:(this._emitChars("]"),this.state=l6.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case p4.GREATER_THAN_SIGN:this.state=l6.DATA;break;case p4.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=l6.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(p4.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&h6(this.preprocessor.peek(1))?l6.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){h6(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===p4.SEMICOLON&&this._err(E4.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const b6=new Set([X4.DD,X4.DT,X4.LI,X4.OPTGROUP,X4.OPTION,X4.P,X4.RB,X4.RP,X4.RT,X4.RTC]),v6=new Set([...b6,X4.CAPTION,X4.COLGROUP,X4.TBODY,X4.TD,X4.TFOOT,X4.TH,X4.THEAD,X4.TR]),k6=new Set([X4.APPLET,X4.CAPTION,X4.HTML,X4.MARQUEE,X4.OBJECT,X4.TABLE,X4.TD,X4.TEMPLATE,X4.TH]),w6=new Set([...k6,X4.OL,X4.UL]),x6=new Set([...k6,X4.BUTTON]),E6=new Set([X4.ANNOTATION_XML,X4.MI,X4.MN,X4.MO,X4.MS,X4.MTEXT]),_6=new Set([X4.DESC,X4.FOREIGN_OBJECT,X4.TITLE]),S6=new Set([X4.TR,X4.TEMPLATE,X4.HTML]),T6=new Set([X4.TBODY,X4.TFOOT,X4.THEAD,X4.TEMPLATE,X4.HTML]),C6=new Set([X4.TABLE,X4.TEMPLATE,X4.HTML]),A6=new Set([X4.TD,X4.TH]);class N6{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=X4.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===X4.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===U4.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==U4.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(s6,U4.HTML)}popUntilTableCellPopped(){this.popUntilPopped(A6,U4.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(C6,U4.HTML)}clearBackToTableBodyContext(){this.clearBackTo(T6,U4.HTML)}clearBackToTableRowContext(){this.clearBackTo(S6,U4.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===X4.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===X4.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case U4.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case U4.SVG:if(_6.has(r))return!1;break;case U4.MATHML:if(E6.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,k6)}hasInListItemScope(e){return this.hasInDynamicScope(e,w6)}hasInButtonScope(e){return this.hasInDynamicScope(e,x6)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case U4.HTML:if(s6.has(t))return!0;if(k6.has(t))return!1;break;case U4.SVG:if(_6.has(t))return!1;break;case U4.MATHML:if(E6.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===U4.HTML)switch(this.tagIDs[t]){case e:return!0;case X4.TABLE:case X4.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===U4.HTML)switch(this.tagIDs[e]){case X4.TBODY:case X4.THEAD:case X4.TFOOT:return!0;case X4.TABLE:case X4.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===U4.HTML)switch(this.tagIDs[t]){case e:return!0;case X4.OPTION:case X4.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;b6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;v6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&v6.has(this.currentTagId);)this.pop()}}var I6,R6;(R6=I6||(I6={}))[R6.Marker=0]="Marker",R6[R6.Element=1]="Element";const O6={type:I6.Marker};class P6{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,a=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let i=0;i<this.entries.length;i++){const e=this.entries[i];if(e.type===I6.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===a&&this.treeAdapter.getNamespaceURI(t)===o){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:i,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map((e=>[e.name,e.value])));let a=0;for(let o=0;o<n.length;o++){const e=n[o];e.attrs.every((e=>r.get(e.name)===e.value))&&(a+=1,a>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(O6)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:I6.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:I6.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(O6);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===I6.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===I6.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===I6.Element&&t.element===e))}}const L6={createDocument:()=>({nodeName:"#document",mode:W4.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({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=>e.content,setDocumentType(e,t,n,r){const a=e.childNodes.find((e=>"#documentType"===e.nodeName));if(a)a.name=t,a.publicId=n,a.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};L6.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>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(L6.isTextNode(n))return void(n.value+=t)}L6.appendChild(e,L6.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&L6.isTextNode(r)?r.value+=t:L6.insertBefore(e,L6.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},D6="html",M6=["+//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//"],F6=[...M6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],j6=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),B6=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],H6=[...B6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function z6(e,t){return t.some((t=>e.startsWith(t)))}const U6="text/html",$6="application/xhtml+xml",V6=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]))),G6=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:U4.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:U4.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:U4.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:U4.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:U4.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:U4.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:U4.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:U4.XML}],["xml:space",{prefix:"xml",name:"space",namespace:U4.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:U4.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:U4.XMLNS}]]),W6=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]))),q6=new Set([X4.B,X4.BIG,X4.BLOCKQUOTE,X4.BODY,X4.BR,X4.CENTER,X4.CODE,X4.DD,X4.DIV,X4.DL,X4.DT,X4.EM,X4.EMBED,X4.H1,X4.H2,X4.H3,X4.H4,X4.H5,X4.H6,X4.HEAD,X4.HR,X4.I,X4.IMG,X4.LI,X4.LISTING,X4.MENU,X4.META,X4.NOBR,X4.OL,X4.P,X4.PRE,X4.RUBY,X4.S,X4.SMALL,X4.SPAN,X4.STRONG,X4.STRIKE,X4.SUB,X4.SUP,X4.TABLE,X4.TT,X4.U,X4.UL,X4.VAR]);function Y6(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function K6(e){for(let t=0;t<e.attrs.length;t++){const n=V6.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function X6(e){for(let t=0;t<e.attrs.length;t++){const n=G6.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 Q6(e,t,n,r){return(!r||r===U4.HTML)&&function(e,t,n){if(t===U4.MATHML&&e===X4.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===V4.ENCODING){const e=n[r].value.toLowerCase();return e===U6||e===$6}return t===U4.SVG&&(e===X4.FOREIGN_OBJECT||e===X4.DESC||e===X4.TITLE)}(e,t,n)||(!r||r===U4.MATHML)&&function(e,t){return t===U4.MATHML&&(e===X4.MI||e===X4.MO||e===X4.MN||e===X4.MS||e===X4.MTEXT)}(e,t)}var Z6,J6;(J6=Z6||(Z6={}))[J6.INITIAL=0]="INITIAL",J6[J6.BEFORE_HTML=1]="BEFORE_HTML",J6[J6.BEFORE_HEAD=2]="BEFORE_HEAD",J6[J6.IN_HEAD=3]="IN_HEAD",J6[J6.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",J6[J6.AFTER_HEAD=5]="AFTER_HEAD",J6[J6.IN_BODY=6]="IN_BODY",J6[J6.TEXT=7]="TEXT",J6[J6.IN_TABLE=8]="IN_TABLE",J6[J6.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",J6[J6.IN_CAPTION=10]="IN_CAPTION",J6[J6.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",J6[J6.IN_TABLE_BODY=12]="IN_TABLE_BODY",J6[J6.IN_ROW=13]="IN_ROW",J6[J6.IN_CELL=14]="IN_CELL",J6[J6.IN_SELECT=15]="IN_SELECT",J6[J6.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",J6[J6.IN_TEMPLATE=17]="IN_TEMPLATE",J6[J6.AFTER_BODY=18]="AFTER_BODY",J6[J6.IN_FRAMESET=19]="IN_FRAMESET",J6[J6.AFTER_FRAMESET=20]="AFTER_FRAMESET",J6[J6.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",J6[J6.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const e8={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},t8=new Set([X4.TABLE,X4.TBODY,X4.TFOOT,X4.THEAD,X4.TR]),n8={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:L6,onParseError:null};class r8{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Z6.INITIAL,this.originalInsertionMode=Z6.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={...n8,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new y6(this.options,this),this.activeFormattingElements=new P6(this.treeAdapter),this.fragmentContextID=n?a6(this.treeAdapter.getTagName(n)):X4.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new N6(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...n8,...t};null!=e||(e=n.treeAdapter.createElement(Y4.TEMPLATE,U4.HTML,[]));const r=n.treeAdapter.createElement("documentmock",U4.HTML,[]),a=new this(n,r,e);return a.fragmentContextID===X4.TEMPLATE&&a.tmplInsertionModeStack.unshift(Z6.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const a=null!==(r=e.location)&&void 0!==r?r:e8,o={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,a;null===(a=(r=this.treeAdapter).onItemPush)||void 0===a||a.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===U4.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,U4.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Z6.TEXT}switchToPlaintextParsing(){this.insertionMode=Z6.TEXT,this.originalInsertionMode=Z6.IN_BODY,this.tokenizer.state=u6.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Y4.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===U4.HTML)switch(this.fragmentContextID){case X4.TITLE:case X4.TEXTAREA:this.tokenizer.state=u6.RCDATA;break;case X4.STYLE:case X4.XMP:case X4.IFRAME:case X4.NOEMBED:case X4.NOFRAMES:case X4.NOSCRIPT:this.tokenizer.state=u6.RAWTEXT;break;case X4.SCRIPT:this.tokenizer.state=u6.SCRIPT_DATA;break;case X4.PLAINTEXT:this.tokenizer.state=u6.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,U4.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,U4.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Y4.HTML,U4.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,X4.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,o=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===T4.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==X4.SVG||this.treeAdapter.getTagName(t)!==Y4.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==U4.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===X4.MGLYPH||e.tagID===X4.MALIGNMARK)&&!this._isIntegrationPoint(n,t,U4.HTML))}_processToken(e){switch(e.type){case T4.CHARACTER:this.onCharacter(e);break;case T4.NULL_CHARACTER:this.onNullCharacter(e);break;case T4.COMMENT:this.onComment(e);break;case T4.DOCTYPE:this.onDoctype(e);break;case T4.START_TAG:this._processStartTag(e);break;case T4.END_TAG:this.onEndTag(e);break;case T4.EOF:this.onEof(e);break;case T4.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return Q6(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===I6.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Z6.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(X4.P),this.openElements.popUntilTagNamePopped(X4.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case X4.TR:return void(this.insertionMode=Z6.IN_ROW);case X4.TBODY:case X4.THEAD:case X4.TFOOT:return void(this.insertionMode=Z6.IN_TABLE_BODY);case X4.CAPTION:return void(this.insertionMode=Z6.IN_CAPTION);case X4.COLGROUP:return void(this.insertionMode=Z6.IN_COLUMN_GROUP);case X4.TABLE:return void(this.insertionMode=Z6.IN_TABLE);case X4.BODY:return void(this.insertionMode=Z6.IN_BODY);case X4.FRAMESET:return void(this.insertionMode=Z6.IN_FRAMESET);case X4.SELECT:return void this._resetInsertionModeForSelect(e);case X4.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case X4.HTML:return void(this.insertionMode=this.headElement?Z6.AFTER_HEAD:Z6.BEFORE_HEAD);case X4.TD:case X4.TH:if(e>0)return void(this.insertionMode=Z6.IN_CELL);break;case X4.HEAD:if(e>0)return void(this.insertionMode=Z6.IN_HEAD)}this.insertionMode=Z6.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===X4.TEMPLATE)break;if(e===X4.TABLE)return void(this.insertionMode=Z6.IN_SELECT_IN_TABLE)}this.insertionMode=Z6.IN_SELECT}_isElementCausesFosterParenting(e){return t8.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case X4.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===U4.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case X4.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return i6[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Z6.INITIAL:h8(this,e);break;case Z6.BEFORE_HTML:f8(this,e);break;case Z6.BEFORE_HEAD:m8(this,e);break;case Z6.IN_HEAD:b8(this,e);break;case Z6.IN_HEAD_NO_SCRIPT:v8(this,e);break;case Z6.AFTER_HEAD:k8(this,e);break;case Z6.IN_BODY:case Z6.IN_CAPTION:case Z6.IN_CELL:case Z6.IN_TEMPLATE:E8(this,e);break;case Z6.TEXT:case Z6.IN_SELECT:case Z6.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Z6.IN_TABLE:case Z6.IN_TABLE_BODY:case Z6.IN_ROW:O8(this,e);break;case Z6.IN_TABLE_TEXT:F8(this,e);break;case Z6.IN_COLUMN_GROUP:z8(this,e);break;case Z6.AFTER_BODY:X8(this,e);break;case Z6.AFTER_AFTER_BODY:Q8(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=d4,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Z6.INITIAL:h8(this,e);break;case Z6.BEFORE_HTML:f8(this,e);break;case Z6.BEFORE_HEAD:m8(this,e);break;case Z6.IN_HEAD:b8(this,e);break;case Z6.IN_HEAD_NO_SCRIPT:v8(this,e);break;case Z6.AFTER_HEAD:k8(this,e);break;case Z6.TEXT:this._insertCharacters(e);break;case Z6.IN_TABLE:case Z6.IN_TABLE_BODY:case Z6.IN_ROW:O8(this,e);break;case Z6.IN_COLUMN_GROUP:z8(this,e);break;case Z6.AFTER_BODY:X8(this,e);break;case Z6.AFTER_AFTER_BODY:Q8(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)d8(this,e);else switch(this.insertionMode){case Z6.INITIAL:case Z6.BEFORE_HTML:case Z6.BEFORE_HEAD:case Z6.IN_HEAD:case Z6.IN_HEAD_NO_SCRIPT:case Z6.AFTER_HEAD:case Z6.IN_BODY:case Z6.IN_TABLE:case Z6.IN_CAPTION:case Z6.IN_COLUMN_GROUP:case Z6.IN_TABLE_BODY:case Z6.IN_ROW:case Z6.IN_CELL:case Z6.IN_SELECT:case Z6.IN_SELECT_IN_TABLE:case Z6.IN_TEMPLATE:case Z6.IN_FRAMESET:case Z6.AFTER_FRAMESET:d8(this,e);break;case Z6.IN_TABLE_TEXT:j8(this,e);break;case Z6.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Z6.AFTER_AFTER_BODY:case Z6.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Z6.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?W4.QUIRKS:function(e){if(e.name!==D6)return W4.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return W4.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),j6.has(n))return W4.QUIRKS;let e=null===t?F6:M6;if(z6(n,e))return W4.QUIRKS;if(e=null===t?B6:H6,z6(n,e))return W4.LIMITED_QUIRKS}return W4.NO_QUIRKS}(t);(function(e){return e.name===D6&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,E4.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Z6.BEFORE_HTML}(this,e);break;case Z6.BEFORE_HEAD:case Z6.IN_HEAD:case Z6.IN_HEAD_NO_SCRIPT:case Z6.AFTER_HEAD:this._err(e,E4.misplacedDoctype);break;case Z6.IN_TABLE_TEXT:j8(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,E4.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===X4.FONT&&e.attrs.some((({name:e})=>e===V4.COLOR||e===V4.SIZE||e===V4.FACE))||q6.has(t)}(t))Z8(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===U4.MATHML?Y6(t):r===U4.SVG&&(!function(e){const t=W6.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=a6(e.tagName))}(t),K6(t)),X6(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Z6.INITIAL:h8(this,e);break;case Z6.BEFORE_HTML:!function(e,t){t.tagID===X4.HTML?(e._insertElement(t,U4.HTML),e.insertionMode=Z6.BEFORE_HEAD):f8(e,t)}(this,e);break;case Z6.BEFORE_HEAD:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.HEAD:e._insertElement(t,U4.HTML),e.headElement=e.openElements.current,e.insertionMode=Z6.IN_HEAD;break;default:m8(e,t)}}(this,e);break;case Z6.IN_HEAD:g8(this,e);break;case Z6.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.BASEFONT:case X4.BGSOUND:case X4.HEAD:case X4.LINK:case X4.META:case X4.NOFRAMES:case X4.STYLE:g8(e,t);break;case X4.NOSCRIPT:e._err(t,E4.nestedNoscriptInHead);break;default:v8(e,t)}}(this,e);break;case Z6.AFTER_HEAD:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.BODY:e._insertElement(t,U4.HTML),e.framesetOk=!1,e.insertionMode=Z6.IN_BODY;break;case X4.FRAMESET:e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_FRAMESET;break;case X4.BASE:case X4.BASEFONT:case X4.BGSOUND:case X4.LINK:case X4.META:case X4.NOFRAMES:case X4.SCRIPT:case X4.STYLE:case X4.TEMPLATE:case X4.TITLE:e._err(t,E4.abandonedHeadElementChild),e.openElements.push(e.headElement,X4.HEAD),g8(e,t),e.openElements.remove(e.headElement);break;case X4.HEAD:e._err(t,E4.misplacedStartTagForHeadElement);break;default:k8(e,t)}}(this,e);break;case Z6.IN_BODY:A8(this,e);break;case Z6.IN_TABLE:P8(this,e);break;case Z6.IN_TABLE_TEXT:j8(this,e);break;case Z6.IN_CAPTION:!function(e,t){const n=t.tagID;B8.has(n)?e.openElements.hasInTableScope(X4.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X4.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Z6.IN_TABLE,P8(e,t)):A8(e,t)}(this,e);break;case Z6.IN_COLUMN_GROUP:H8(this,e);break;case Z6.IN_TABLE_BODY:U8(this,e);break;case Z6.IN_ROW:V8(this,e);break;case Z6.IN_CELL:!function(e,t){const n=t.tagID;B8.has(n)?(e.openElements.hasInTableScope(X4.TD)||e.openElements.hasInTableScope(X4.TH))&&(e._closeTableCell(),V8(e,t)):A8(e,t)}(this,e);break;case Z6.IN_SELECT:W8(this,e);break;case Z6.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===X4.CAPTION||n===X4.TABLE||n===X4.TBODY||n===X4.TFOOT||n===X4.THEAD||n===X4.TR||n===X4.TD||n===X4.TH?(e.openElements.popUntilTagNamePopped(X4.SELECT),e._resetInsertionMode(),e._processStartTag(t)):W8(e,t)}(this,e);break;case Z6.IN_TEMPLATE:!function(e,t){switch(t.tagID){case X4.BASE:case X4.BASEFONT:case X4.BGSOUND:case X4.LINK:case X4.META:case X4.NOFRAMES:case X4.SCRIPT:case X4.STYLE:case X4.TEMPLATE:case X4.TITLE:g8(e,t);break;case X4.CAPTION:case X4.COLGROUP:case X4.TBODY:case X4.TFOOT:case X4.THEAD:e.tmplInsertionModeStack[0]=Z6.IN_TABLE,e.insertionMode=Z6.IN_TABLE,P8(e,t);break;case X4.COL:e.tmplInsertionModeStack[0]=Z6.IN_COLUMN_GROUP,e.insertionMode=Z6.IN_COLUMN_GROUP,H8(e,t);break;case X4.TR:e.tmplInsertionModeStack[0]=Z6.IN_TABLE_BODY,e.insertionMode=Z6.IN_TABLE_BODY,U8(e,t);break;case X4.TD:case X4.TH:e.tmplInsertionModeStack[0]=Z6.IN_ROW,e.insertionMode=Z6.IN_ROW,V8(e,t);break;default:e.tmplInsertionModeStack[0]=Z6.IN_BODY,e.insertionMode=Z6.IN_BODY,A8(e,t)}}(this,e);break;case Z6.AFTER_BODY:!function(e,t){t.tagID===X4.HTML?A8(e,t):X8(e,t)}(this,e);break;case Z6.IN_FRAMESET:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.FRAMESET:e._insertElement(t,U4.HTML);break;case X4.FRAME:e._appendElement(t,U4.HTML),t.ackSelfClosing=!0;break;case X4.NOFRAMES:g8(e,t)}}(this,e);break;case Z6.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.NOFRAMES:g8(e,t)}}(this,e);break;case Z6.AFTER_AFTER_BODY:!function(e,t){t.tagID===X4.HTML?A8(e,t):Q8(e,t)}(this,e);break;case Z6.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.NOFRAMES:g8(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===X4.P||t.tagID===X4.BR)return Z8(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===U4.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Z6.INITIAL:h8(this,e);break;case Z6.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==X4.HTML&&n!==X4.HEAD&&n!==X4.BODY&&n!==X4.BR||f8(e,t)}(this,e);break;case Z6.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===X4.HEAD||n===X4.BODY||n===X4.HTML||n===X4.BR?m8(e,t):e._err(t,E4.endTagWithoutMatchingOpenElement)}(this,e);break;case Z6.IN_HEAD:!function(e,t){switch(t.tagID){case X4.HEAD:e.openElements.pop(),e.insertionMode=Z6.AFTER_HEAD;break;case X4.BODY:case X4.BR:case X4.HTML:b8(e,t);break;case X4.TEMPLATE:y8(e,t);break;default:e._err(t,E4.endTagWithoutMatchingOpenElement)}}(this,e);break;case Z6.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case X4.NOSCRIPT:e.openElements.pop(),e.insertionMode=Z6.IN_HEAD;break;case X4.BR:v8(e,t);break;default:e._err(t,E4.endTagWithoutMatchingOpenElement)}}(this,e);break;case Z6.AFTER_HEAD:!function(e,t){switch(t.tagID){case X4.BODY:case X4.HTML:case X4.BR:k8(e,t);break;case X4.TEMPLATE:y8(e,t);break;default:e._err(t,E4.endTagWithoutMatchingOpenElement)}}(this,e);break;case Z6.IN_BODY:I8(this,e);break;case Z6.TEXT:!function(e,t){var n;t.tagID===X4.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Z6.IN_TABLE:L8(this,e);break;case Z6.IN_TABLE_TEXT:j8(this,e);break;case Z6.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case X4.CAPTION:case X4.TABLE:e.openElements.hasInTableScope(X4.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X4.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Z6.IN_TABLE,n===X4.TABLE&&L8(e,t));break;case X4.BODY:case X4.COL:case X4.COLGROUP:case X4.HTML:case X4.TBODY:case X4.TD:case X4.TFOOT:case X4.TH:case X4.THEAD:case X4.TR:break;default:I8(e,t)}}(this,e);break;case Z6.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case X4.COLGROUP:e.openElements.currentTagId===X4.COLGROUP&&(e.openElements.pop(),e.insertionMode=Z6.IN_TABLE);break;case X4.TEMPLATE:y8(e,t);break;case X4.COL:break;default:z8(e,t)}}(this,e);break;case Z6.IN_TABLE_BODY:$8(this,e);break;case Z6.IN_ROW:G8(this,e);break;case Z6.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case X4.TD:case X4.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Z6.IN_ROW);break;case X4.TABLE:case X4.TBODY:case X4.TFOOT:case X4.THEAD:case X4.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),G8(e,t));break;case X4.BODY:case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.HTML:break;default:I8(e,t)}}(this,e);break;case Z6.IN_SELECT:q8(this,e);break;case Z6.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===X4.CAPTION||n===X4.TABLE||n===X4.TBODY||n===X4.TFOOT||n===X4.THEAD||n===X4.TR||n===X4.TD||n===X4.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(X4.SELECT),e._resetInsertionMode(),e.onEndTag(t)):q8(e,t)}(this,e);break;case Z6.IN_TEMPLATE:!function(e,t){t.tagID===X4.TEMPLATE&&y8(e,t)}(this,e);break;case Z6.AFTER_BODY:K8(this,e);break;case Z6.IN_FRAMESET:!function(e,t){t.tagID!==X4.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===X4.FRAMESET||(e.insertionMode=Z6.AFTER_FRAMESET))}(this,e);break;case Z6.AFTER_FRAMESET:!function(e,t){t.tagID===X4.HTML&&(e.insertionMode=Z6.AFTER_AFTER_FRAMESET)}(this,e);break;case Z6.AFTER_AFTER_BODY:Q8(this,e)}}onEof(e){switch(this.insertionMode){case Z6.INITIAL:h8(this,e);break;case Z6.BEFORE_HTML:f8(this,e);break;case Z6.BEFORE_HEAD:m8(this,e);break;case Z6.IN_HEAD:b8(this,e);break;case Z6.IN_HEAD_NO_SCRIPT:v8(this,e);break;case Z6.AFTER_HEAD:k8(this,e);break;case Z6.IN_BODY:case Z6.IN_TABLE:case Z6.IN_CAPTION:case Z6.IN_COLUMN_GROUP:case Z6.IN_TABLE_BODY:case Z6.IN_ROW:case Z6.IN_CELL:case Z6.IN_SELECT:case Z6.IN_SELECT_IN_TABLE:R8(this,e);break;case Z6.TEXT:!function(e,t){e._err(t,E4.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Z6.IN_TABLE_TEXT:j8(this,e);break;case Z6.IN_TEMPLATE:Y8(this,e);break;case Z6.AFTER_BODY:case Z6.IN_FRAMESET:case Z6.AFTER_FRAMESET:case Z6.AFTER_AFTER_BODY:case Z6.AFTER_AFTER_FRAMESET:p8(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===p4.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Z6.IN_HEAD:case Z6.IN_HEAD_NO_SCRIPT:case Z6.AFTER_HEAD:case Z6.TEXT:case Z6.IN_COLUMN_GROUP:case Z6.IN_SELECT:case Z6.IN_SELECT_IN_TABLE:case Z6.IN_FRAMESET:case Z6.AFTER_FRAMESET:this._insertCharacters(e);break;case Z6.IN_BODY:case Z6.IN_CAPTION:case Z6.IN_CELL:case Z6.IN_TEMPLATE:case Z6.AFTER_BODY:case Z6.AFTER_AFTER_BODY:case Z6.AFTER_AFTER_FRAMESET:x8(this,e);break;case Z6.IN_TABLE:case Z6.IN_TABLE_BODY:case Z6.IN_ROW:O8(this,e);break;case Z6.IN_TABLE_TEXT:M8(this,e)}}}function a8(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):N8(e,t),n}function o8(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function i8(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,i=a;i!==n;o++,i=a){a=e.openElements.getCommonAncestor(i);const n=e.activeFormattingElements.getElementEntry(i),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(i)):(i=s8(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function s8(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 l8(e,t,n){const r=a6(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);r===X4.TEMPLATE&&a===U4.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function c8(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function u8(e,t){for(let n=0;n<8;n++){const n=a8(e,t);if(!n)break;const r=o8(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const a=i8(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),o&&l8(e,o,a),c8(e,r,n)}}function d8(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function p8(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 n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function h8(e,t){e._err(t,E4.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,W4.QUIRKS),e.insertionMode=Z6.BEFORE_HTML,e._processToken(t)}function f8(e,t){e._insertFakeRootElement(),e.insertionMode=Z6.BEFORE_HEAD,e._processToken(t)}function m8(e,t){e._insertFakeElement(Y4.HEAD,X4.HEAD),e.headElement=e.openElements.current,e.insertionMode=Z6.IN_HEAD,e._processToken(t)}function g8(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.BASE:case X4.BASEFONT:case X4.BGSOUND:case X4.LINK:case X4.META:e._appendElement(t,U4.HTML),t.ackSelfClosing=!0;break;case X4.TITLE:e._switchToTextParsing(t,u6.RCDATA);break;case X4.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,u6.RAWTEXT):(e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_HEAD_NO_SCRIPT);break;case X4.NOFRAMES:case X4.STYLE:e._switchToTextParsing(t,u6.RAWTEXT);break;case X4.SCRIPT:e._switchToTextParsing(t,u6.SCRIPT_DATA);break;case X4.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Z6.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Z6.IN_TEMPLATE);break;case X4.HEAD:e._err(t,E4.misplacedStartTagForHeadElement);break;default:b8(e,t)}}function y8(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==X4.TEMPLATE&&e._err(t,E4.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(X4.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,E4.endTagWithoutMatchingOpenElement)}function b8(e,t){e.openElements.pop(),e.insertionMode=Z6.AFTER_HEAD,e._processToken(t)}function v8(e,t){const n=t.type===T4.EOF?E4.openElementsLeftAfterEof:E4.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Z6.IN_HEAD,e._processToken(t)}function k8(e,t){e._insertFakeElement(Y4.BODY,X4.BODY),e.insertionMode=Z6.IN_BODY,w8(e,t)}function w8(e,t){switch(t.type){case T4.CHARACTER:E8(e,t);break;case T4.WHITESPACE_CHARACTER:x8(e,t);break;case T4.COMMENT:d8(e,t);break;case T4.START_TAG:A8(e,t);break;case T4.END_TAG:I8(e,t);break;case T4.EOF:R8(e,t)}}function x8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function E8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function _8(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,U4.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function S8(e){const t=A4(e,V4.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function T8(e,t){e._switchToTextParsing(t,u6.RAWTEXT)}function C8(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML)}function A8(e,t){switch(t.tagID){case X4.I:case X4.S:case X4.B:case X4.U:case X4.EM:case X4.TT:case X4.BIG:case X4.CODE:case X4.FONT:case X4.SMALL:case X4.STRIKE:case X4.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case X4.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y4.A);n&&(u8(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case X4.H1:case X4.H2:case X4.H3:case X4.H4:case X4.H5:case X4.H6:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),s6.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,U4.HTML)}(e,t);break;case X4.P:case X4.DL:case X4.OL:case X4.UL:case X4.DIV:case X4.DIR:case X4.NAV:case X4.MAIN:case X4.MENU:case X4.ASIDE:case X4.CENTER:case X4.FIGURE:case X4.FOOTER:case X4.HEADER:case X4.HGROUP:case X4.DIALOG:case X4.DETAILS:case X4.ADDRESS:case X4.ARTICLE:case X4.SEARCH:case X4.SECTION:case X4.SUMMARY:case X4.FIELDSET:case X4.BLOCKQUOTE:case X4.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML)}(e,t);break;case X4.LI:case X4.DD:case X4.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===X4.LI&&t===X4.LI||(n===X4.DD||n===X4.DT)&&(t===X4.DD||t===X4.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==X4.ADDRESS&&t!==X4.DIV&&t!==X4.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML)}(e,t);break;case X4.BR:case X4.IMG:case X4.WBR:case X4.AREA:case X4.EMBED:case X4.KEYGEN:_8(e,t);break;case X4.HR:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._appendElement(t,U4.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case X4.RB:case X4.RTC:!function(e,t){e.openElements.hasInScope(X4.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,U4.HTML)}(e,t);break;case X4.RT:case X4.RP:!function(e,t){e.openElements.hasInScope(X4.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X4.RTC),e._insertElement(t,U4.HTML)}(e,t);break;case X4.PRE:case X4.LISTING:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case X4.XMP:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,u6.RAWTEXT)}(e,t);break;case X4.SVG:!function(e,t){e._reconstructActiveFormattingElements(),K6(t),X6(t),t.selfClosing?e._appendElement(t,U4.SVG):e._insertElement(t,U4.SVG),t.ackSelfClosing=!0}(e,t);break;case X4.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case X4.BASE:case X4.LINK:case X4.META:case X4.STYLE:case X4.TITLE:case X4.SCRIPT:case X4.BGSOUND:case X4.BASEFONT:case X4.TEMPLATE:g8(e,t);break;case X4.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case X4.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case X4.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X4.NOBR)&&(u8(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,U4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case X4.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Y6(t),X6(t),t.selfClosing?e._appendElement(t,U4.MATHML):e._insertElement(t,U4.MATHML),t.ackSelfClosing=!0}(e,t);break;case X4.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==W4.QUIRKS&&e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML),e.framesetOk=!1,e.insertionMode=Z6.IN_TABLE}(e,t);break;case X4.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,U4.HTML),S8(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case X4.PARAM:case X4.TRACK:case X4.SOURCE:!function(e,t){e._appendElement(t,U4.HTML),t.ackSelfClosing=!0}(e,t);break;case X4.IMAGE:!function(e,t){t.tagName=Y4.IMG,t.tagID=X4.IMG,_8(e,t)}(e,t);break;case X4.BUTTON:!function(e,t){e.openElements.hasInScope(X4.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X4.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML),e.framesetOk=!1}(e,t);break;case X4.APPLET:case X4.OBJECT:case X4.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case X4.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,u6.RAWTEXT)}(e,t);break;case X4.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Z6.IN_TABLE||e.insertionMode===Z6.IN_CAPTION||e.insertionMode===Z6.IN_TABLE_BODY||e.insertionMode===Z6.IN_ROW||e.insertionMode===Z6.IN_CELL?Z6.IN_SELECT_IN_TABLE:Z6.IN_SELECT}(e,t);break;case X4.OPTION:case X4.OPTGROUP:!function(e,t){e.openElements.currentTagId===X4.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML)}(e,t);break;case X4.NOEMBED:case X4.NOFRAMES:T8(e,t);break;case X4.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_FRAMESET)}(e,t);break;case X4.TEXTAREA:!function(e,t){e._insertElement(t,U4.HTML),e.skipNextNewLine=!0,e.tokenizer.state=u6.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Z6.TEXT}(e,t);break;case X4.NOSCRIPT:e.options.scriptingEnabled?T8(e,t):C8(e,t);break;case X4.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML),e.tokenizer.state=u6.PLAINTEXT}(e,t);break;case X4.COL:case X4.TH:case X4.TD:case X4.TR:case X4.HEAD:case X4.FRAME:case X4.TBODY:case X4.TFOOT:case X4.THEAD:case X4.CAPTION:case X4.COLGROUP:break;default:C8(e,t)}}function N8(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const t=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==X4.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(t,o))break}}function I8(e,t){switch(t.tagID){case X4.A:case X4.B:case X4.I:case X4.S:case X4.U:case X4.EM:case X4.TT:case X4.BIG:case X4.CODE:case X4.FONT:case X4.NOBR:case X4.SMALL:case X4.STRIKE:case X4.STRONG:u8(e,t);break;case X4.P:!function(e){e.openElements.hasInButtonScope(X4.P)||e._insertFakeElement(Y4.P,X4.P),e._closePElement()}(e);break;case X4.DL:case X4.UL:case X4.OL:case X4.DIR:case X4.DIV:case X4.NAV:case X4.PRE:case X4.MAIN:case X4.MENU:case X4.ASIDE:case X4.BUTTON:case X4.CENTER:case X4.FIGURE:case X4.FOOTER:case X4.HEADER:case X4.HGROUP:case X4.DIALOG:case X4.ADDRESS:case X4.ARTICLE:case X4.DETAILS:case X4.SEARCH:case X4.SECTION:case X4.SUMMARY:case X4.LISTING:case X4.FIELDSET:case X4.BLOCKQUOTE:case X4.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case X4.LI:!function(e){e.openElements.hasInListItemScope(X4.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X4.LI),e.openElements.popUntilTagNamePopped(X4.LI))}(e);break;case X4.DD:case X4.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case X4.H1:case X4.H2:case X4.H3:case X4.H4:case X4.H5:case X4.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case X4.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y4.BR,X4.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case X4.BODY:!function(e,t){if(e.openElements.hasInScope(X4.BODY)&&(e.insertionMode=Z6.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case X4.HTML:!function(e,t){e.openElements.hasInScope(X4.BODY)&&(e.insertionMode=Z6.AFTER_BODY,K8(e,t))}(e,t);break;case X4.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(X4.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(X4.FORM):n&&e.openElements.remove(n))}(e);break;case X4.APPLET:case X4.OBJECT:case X4.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case X4.TEMPLATE:y8(e,t);break;default:N8(e,t)}}function R8(e,t){e.tmplInsertionModeStack.length>0?Y8(e,t):p8(e,t)}function O8(e,t){if(t8.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Z6.IN_TABLE_TEXT,t.type){case T4.CHARACTER:F8(e,t);break;case T4.WHITESPACE_CHARACTER:M8(e,t)}else D8(e,t)}function P8(e,t){switch(t.tagID){case X4.TD:case X4.TH:case X4.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y4.TBODY,X4.TBODY),e.insertionMode=Z6.IN_TABLE_BODY,U8(e,t)}(e,t);break;case X4.STYLE:case X4.SCRIPT:case X4.TEMPLATE:g8(e,t);break;case X4.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y4.COLGROUP,X4.COLGROUP),e.insertionMode=Z6.IN_COLUMN_GROUP,H8(e,t)}(e,t);break;case X4.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,U4.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case X4.TABLE:!function(e,t){e.openElements.hasInTableScope(X4.TABLE)&&(e.openElements.popUntilTagNamePopped(X4.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case X4.TBODY:case X4.TFOOT:case X4.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_TABLE_BODY}(e,t);break;case X4.INPUT:!function(e,t){S8(t)?e._appendElement(t,U4.HTML):D8(e,t),t.ackSelfClosing=!0}(e,t);break;case X4.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_CAPTION}(e,t);break;case X4.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_COLUMN_GROUP}(e,t);break;default:D8(e,t)}}function L8(e,t){switch(t.tagID){case X4.TABLE:e.openElements.hasInTableScope(X4.TABLE)&&(e.openElements.popUntilTagNamePopped(X4.TABLE),e._resetInsertionMode());break;case X4.TEMPLATE:y8(e,t);break;case X4.BODY:case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.HTML:case X4.TBODY:case X4.TD:case X4.TFOOT:case X4.TH:case X4.THEAD:case X4.TR:break;default:D8(e,t)}}function D8(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,w8(e,t),e.fosterParentingEnabled=n}function M8(e,t){e.pendingCharacterTokens.push(t)}function F8(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function j8(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)D8(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const B8=new Set([X4.CAPTION,X4.COL,X4.COLGROUP,X4.TBODY,X4.TD,X4.TFOOT,X4.TH,X4.THEAD,X4.TR]);function H8(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.COL:e._appendElement(t,U4.HTML),t.ackSelfClosing=!0;break;case X4.TEMPLATE:g8(e,t);break;default:z8(e,t)}}function z8(e,t){e.openElements.currentTagId===X4.COLGROUP&&(e.openElements.pop(),e.insertionMode=Z6.IN_TABLE,e._processToken(t))}function U8(e,t){switch(t.tagID){case X4.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_ROW;break;case X4.TH:case X4.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Y4.TR,X4.TR),e.insertionMode=Z6.IN_ROW,V8(e,t);break;case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.TBODY:case X4.TFOOT:case X4.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE,P8(e,t));break;default:P8(e,t)}}function $8(e,t){const n=t.tagID;switch(t.tagID){case X4.TBODY:case X4.TFOOT:case X4.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE);break;case X4.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE,L8(e,t));break;case X4.BODY:case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.HTML:case X4.TD:case X4.TH:case X4.TR:break;default:L8(e,t)}}function V8(e,t){switch(t.tagID){case X4.TH:case X4.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_CELL,e.activeFormattingElements.insertMarker();break;case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.TBODY:case X4.TFOOT:case X4.THEAD:case X4.TR:e.openElements.hasInTableScope(X4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE_BODY,U8(e,t));break;default:P8(e,t)}}function G8(e,t){switch(t.tagID){case X4.TR:e.openElements.hasInTableScope(X4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE_BODY);break;case X4.TABLE:e.openElements.hasInTableScope(X4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE_BODY,$8(e,t));break;case X4.TBODY:case X4.TFOOT:case X4.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(X4.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE_BODY,$8(e,t));break;case X4.BODY:case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.HTML:case X4.TD:case X4.TH:break;default:L8(e,t)}}function W8(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.OPTION:e.openElements.currentTagId===X4.OPTION&&e.openElements.pop(),e._insertElement(t,U4.HTML);break;case X4.OPTGROUP:e.openElements.currentTagId===X4.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X4.OPTGROUP&&e.openElements.pop(),e._insertElement(t,U4.HTML);break;case X4.HR:e.openElements.currentTagId===X4.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X4.OPTGROUP&&e.openElements.pop(),e._appendElement(t,U4.HTML),t.ackSelfClosing=!0;break;case X4.INPUT:case X4.KEYGEN:case X4.TEXTAREA:case X4.SELECT:e.openElements.hasInSelectScope(X4.SELECT)&&(e.openElements.popUntilTagNamePopped(X4.SELECT),e._resetInsertionMode(),t.tagID!==X4.SELECT&&e._processStartTag(t));break;case X4.SCRIPT:case X4.TEMPLATE:g8(e,t)}}function q8(e,t){switch(t.tagID){case X4.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===X4.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===X4.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===X4.OPTGROUP&&e.openElements.pop();break;case X4.OPTION:e.openElements.currentTagId===X4.OPTION&&e.openElements.pop();break;case X4.SELECT:e.openElements.hasInSelectScope(X4.SELECT)&&(e.openElements.popUntilTagNamePopped(X4.SELECT),e._resetInsertionMode());break;case X4.TEMPLATE:y8(e,t)}}function Y8(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X4.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):p8(e,t)}function K8(e,t){var n;if(t.tagID===X4.HTML){if(e.fragmentContext||(e.insertionMode=Z6.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===X4.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else X8(e,t)}function X8(e,t){e.insertionMode=Z6.IN_BODY,w8(e,t)}function Q8(e,t){e.insertionMode=Z6.IN_BODY,w8(e,t)}function Z8(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==U4.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}Y4.AREA,Y4.BASE,Y4.BASEFONT,Y4.BGSOUND,Y4.BR,Y4.COL,Y4.EMBED,Y4.FRAME,Y4.HR,Y4.IMG,Y4.INPUT,Y4.KEYGEN,Y4.LINK,Y4.META,Y4.PARAM,Y4.SOURCE,Y4.TRACK,Y4.WBR;const J8=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,e9=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),t9={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function n9(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=n4("type",{handlers:{root:a9,element:o9,text:i9,comment:c9,doctype:s9,raw:u9},unknown:d9}),a={parser:n?new r8(t9):r8.getFragmentParser(void 0,t9),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),p9(a,k0());const o=function(e,t){const n=t||{};return g3({file:n.file||void 0,location:!1,schema:"svg"===n.space?VJ:$J,verbose:n.verbose||!1},e)}(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&u5(o,"comment",(function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}})),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function r9(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function a9(e,t){r9(e.children,t)}function o9(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===u6.PLAINTEXT)return;p9(t,k0(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:h3.html;a===h3.html&&"svg"===n&&(a=h3.svg);const o=function(e,t){const n=(t||r4).space;return o4(e,"svg"===n?e4:J3)}({...e,children:[]},{space:a===h3.svg?"svg":"html"}),i={type:T4.START_TAG,tagName:n,tagID:a6(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:f9(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),r9(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&c4.includes(n))return;if(t.parser.tokenizer.state===u6.PLAINTEXT)return;p9(t,v0(e));const r={type:T4.END_TAG,tagName:n,tagID:a6(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:f9(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==u6.RCDATA&&t.parser.tokenizer.state!==u6.RAWTEXT&&t.parser.tokenizer.state!==u6.SCRIPT_DATA||(t.parser.tokenizer.state=u6.DATA)}(e,t)}function i9(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:T4.CHARACTER,chars:e.value,location:f9(e)};p9(t,k0(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function s9(e,t){const n={type:T4.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:f9(e)};p9(t,k0(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function l9(e,t){t.stitches=!0;const n=function(e){return e5("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=n9({type:"root",children:e.children},t.options);n.children=r.children}c9({type:"comment",value:{stitch:n}},t)}function c9(e,t){const n=e.value,r={type:T4.COMMENT,data:n,location:f9(e)};p9(t,k0(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function u9(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,h9(t,k0(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(J8,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function d9(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw e9.has(n.type)&&(e=". 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"+e)}l9(n,t)}function p9(e,t){h9(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=u6.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 h9(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function f9(e){const t=k0(e)||{line:void 0,column:void 0,offset:void 0},n=v0(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 m9(e){return function(t,n){return n9(t,{...e,file:n})}}function g9(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function y9(e,t,n){const r=r5((n||{}).ignore||[]),a=function(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 e=n[r];t.push([b9(e[0]),v9(e[1])])}return t}(t);let o=-1;for(;++o<a.length;)c5(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[o][0],i=a[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let o=i(...d,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function b9(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function v9(e){return"function"==typeof e?e:function(){return e}}const k9="phrasing",w9=["autolink","link","image","label"];function x9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function E9(e){this.config.enter.autolinkProtocol.call(this,e)}function _9(e){this.config.exit.autolinkProtocol.call(this,e)}function S9(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 T9(e){this.config.exit.autolinkEmail.call(this,e)}function C9(e){this.exit(e)}function A9(e){y9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,N9],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),I9]],{ignore:["link","linkReference"]})}function N9(e,t,n,r,a){let o="";if(!R9(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(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])))return!1;return!0}(n))return!1;const i=function(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 a=g9(e,"(");let o=g9(e,")");for(;-1!==r&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function I9(e,t,n,r){return!(!R9(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function R9(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||m1(n)||f1(n))&&(!t||47!==n)}function O9(){this.buffer()}function P9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function L9(){this.buffer()}function D9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function M9(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=r1(this.sliceSerialize(e)).toLowerCase(),n.label=t}function F9(e){this.exit(e)}function j9(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=r1(this.sliceSerialize(e)).toLowerCase(),n.label=t}function B9(e){this.exit(e)}function H9(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),i(),o+=a.move("]"),o}function z9(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const o=r.createTracker(a);let i=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");i+=o.move(r.safe(r.associationId(e),{before:i,after:"]"})),l(),i+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),i+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?$9:U9)));return s(),i},footnoteReference:H9},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function U9(e,t,n){return 0===t?e:$9(e,t,n)}function $9(e,t,n){return(n?"":" ")+e}H9.peek=function(){return"["};const V9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function G9(e){this.enter({type:"delete",children:[]},e)}function W9(e){this.exit(e)}function q9(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function Y9(e){return e.length}function K9(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function X9(e,t,n){return">"+(n?"":" ")+e}function Q9(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Z9(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&(o=n.stack,i=n.unsafe[a],Q9(o,i.inConstruct,!0)&&!Q9(o,i.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,i;return"\\\n"}function J9(e,t,n){return(n?"":" ")+e}function e7(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 t7(e){return"&#x"+e.toString(16).toUpperCase()+";"}function n7(e,t,n){const r=x1(e),a=x1(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function r7(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),i=n.createTracker(r),s=i.move(a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=n7(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=t7(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=n7(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+t7(d));const h=i.move(a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}function a7(e){return e.value||""}function o7(e,t,n,r){const a=e7(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),i(),c}function i7(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function s7(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function l7(e,t){const n=G0(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function c7(e,t,n,r){const a=e7(n),o='"'===a?"Quote":"Apostrophe",i=n.createTracker(r);let s,l;if(l7(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(l=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=i.move(" "+a),c+=i.move(n.safe(e.title,{before:c,after:a,...i.current()})),c+=i.move(a),l()),c+=i.move(")"),s(),c}function u7(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function d7(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 p7(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}q9.peek=function(){return"~"},r7.peek=function(e,t,n){return n.options.emphasis||"*"},a7.peek=function(){return"<"},o7.peek=function(){return"!"},i7.peek=function(){return"!"},s7.peek=function(){return"`"},c7.peek=function(e,t,n){return l7(e,n)?"<":"["},u7.peek=function(){return"["};const h7=r5(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function f7(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),i=n.createTracker(r),s=i.move(a+a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=n7(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=t7(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=n7(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+t7(d));const h=i.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}f7.peek=function(e,t,n){return n.options.strong||"*"};const m7={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const i=n.indentLines(n.containerFlow(e,o.current()),X9);return a(),i},break:Z9,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,J9);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++o>i&&(i=o):o=1,a=r+t.length,r=n.indexOf(t,a);return i}(o,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=e7(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),i(),c},emphasis:r7,hardBreak:Z9,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return u5(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,l5})),Boolean((!e.depth||e.depth<3)&&G0(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=t7(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),l(),s(),c},html:a7,image:o7,imageReference:i7,inlineCode:s7,link:c7,linkReference:u7,list:function(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):d7(n);const s=e.ordered?"."===i?")":".":function(e){const t=d7(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}(n);let l=!(!t||!n.bulletLastUsed)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),p7(n)===i&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(i=s),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=o,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||d7(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const s=n.createTracker(r);s.move(o+" ".repeat(i-o.length)),s.shift(i);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?o:o+" ".repeat(i-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),a(),i},root:function(e,t,n,r){return(e.children.some((function(e){return h7(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:f7,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(p7(n)+(n.options.ruleSpaces?" ":"")).repeat(function(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}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function g7(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function y7(e){this.exit(e),this.data.inTable=void 0}function b7(e){this.enter({type:"tableRow",children:[]},e)}function v7(e){this.exit(e)}function k7(e){this.enter({type:"tableCell",children:[]},e)}function w7(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,x7));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function x7(e,t){return"|"===t?t:e}function E7(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=m7.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const o=[],i=t.enter("table");for(;++a<r.length;)o[a]=l(r[a],t,n);return i(),o}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const a=s([l(e,n,r)]);return a.slice(0,a.indexOf("\n"))}}};function i(e,t,n,r){const a=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||Y9,o=[],i=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const i=null==(d=e[u][o])?"":String(d);if(!1!==n.alignDelimiters){const e=a(i);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(i)}i[u]=t,s[u]=r}var d;let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)o[p]=K9(r[p]);else{const e=K9(r);for(;++p<c;)o[p]=e}p=-1;const h=[],f=[];for(;++p<c;){const e=o[p];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length);const i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[p]&&(l[p]=a),f[p]=a),h[p]=i}i.splice(1,0,h),s.splice(1,0,f),u=-1;const m=[];for(;++u<i.length;){const e=i[u],t=s[u];p=-1;const r=[];for(;++p<c;){const a=e[p]||"";let i="",s="";if(!1!==n.alignDelimiters){const e=l[p]-(t[p]||0),n=o[p];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),s=i):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!p||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&p===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const o=[],s=t.enter("tableRow");for(;++a<r.length;)o[a]=i(r[a],0,t,n);return s(),o}}function _7(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function S7(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function T7(e,t,n,r){const a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(i);let l=m7.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+i}))),l}const C7={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),a;return n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},A7={tokenize:function(e,t,n){let r,a,o;return i;function i(t){return 46===t||95===t?e.check(I7,l,s)(t):null===t||p1(t)||m1(t)||45!==t&&f1(t)?l(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function l(e){return a||r||!o?n(e):t(e)}},partial:!0},N7={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(I7,t,o)(i):null===i||p1(i)||m1(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&r++,e.consume(t),a}},partial:!0},I7={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||p1(i)||m1(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||p1(e)||m1(e)?t(e):r(e)}function o(e){return a1(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):a1(t)?(e.consume(t),i):n(t)}},partial:!0},R7={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return o1(e)?n(e):t(e)}},partial:!0},O7={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!F7.call(r,r.previous)||z7(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(C7,e.attempt(A7,e.attempt(N7,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:F7},P7={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",o=!1;return function(t){if((72===t||104===t)&&j7.call(r,r.previous)&&!z7(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i;return n(t)};function i(t){if(a1(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||s1(t)||p1(t)||m1(t)||f1(t)?n(t):e.attempt(A7,e.attempt(N7,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:j7},L7={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,o;return function(t){if(!H7(t)||!B7.call(r,r.previous)||z7(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)};function i(t){return H7(t)?(e.consume(t),i):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(R7,c,l)(t):45===t||95===t||o1(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(i){return o&&a&&a1(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:B7},D7={};let M7=48;for(;M7<123;)D7[M7]=L7,M7++,58===M7?M7=65:91===M7&&(M7=97);function F7(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||p1(e)}function j7(e){return!a1(e)}function B7(e){return!(47===e||H7(e))}function H7(e){return 43===e||45===e||46===e||95===e||o1(e)}function z7(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}D7[43]=L7,D7[45]=L7,D7[46]=L7,D7[95]=L7,D7[72]=[L7,P7],D7[104]=[L7,P7],D7[87]=[L7,O7],D7[119]=[L7,O7];const U7={tokenize:function(e,t,n){const r=this;return b1(e,(function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function $7(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return n(a);const s=r1(r.sliceSerialize({start:i.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function V7(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){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)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function G7(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(i>999||93===s&&!o||null===s||91===s||p1(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return a.includes(r1(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return p1(s)||(o=!0),i++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function W7(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||p1(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=r1(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return p1(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),b1(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function q7(e,t,n){return e.check(C1,t,e.attempt(U7,t,n))}function Y7(e){e.exit("gfmFootnoteDefinition")}function K7(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,o=this.events;let i=0;return function(t){if(126===a&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=x1(a);if(126===o)return i>1?r(o):(e.consume(o),i++,s);if(i<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=x1(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&X0(i,i.length,0,E1(s,e.slice(r+1,n),t)),X0(i,i.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),X0(e,r-1,n-r+3,i),n=r+i.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class X7{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function Q7(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function Z7(e,t,n){const r=this;let a,o=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?k:s;if(o===k&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,i+=1,l(e)}(t)}function l(t){return null===t?n(t):d1(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):h1(t)?b1(e,l,"whitespace")(t):(i+=1,a&&(a=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||p1(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,h1(t)?b1(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?f(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):v(t)}function h(t){return h1(t)?b1(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||d1(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):v(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return h1(t)?b1(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?p(n):(null===n||d1(n))&&a&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function k(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||d1(n)?(e.exit("tableRow"),t(n)):h1(n)?b1(e,w,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||p1(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function J7(e,t){let n,r,a,o=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new X7;for(;++o<e.length;){const h=e[o],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&(tee(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(i=!0,a=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(i?i=!1:(0!==l[1]&&(c[0]=c[1],a=eee(p,t,l,s,void 0,a)),l=c,c=[l[1],o,0,0])):(i=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=eee(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,d=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=o,0!==l[1]?(c[0]=c[1],a=eee(p,t,l,s,o,a)):0!==c[1]&&(a=eee(p,t,c,s,o,a)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==d&&tee(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Q7(t.events,o))}return e}function eee(e,t,n,r,a,o){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},nee(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=nee(t.events,n[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const a=nee(t.events,n[2]),o=nee(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},nee(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function tee(e,t,n,r,a){const o=[],i=nee(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function nee(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const ree={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return p1(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return d1(r)?t(r):h1(r)?e.check({tokenize:aee},t,n)(r):n(r)}}};function aee(e,t,n){return b1(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const oee={};function iee(e){const t=e||oee,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return J0([{text:D7},{document:{91:{name:"gfmFootnoteDefinition",tokenize:W7,continuation:{tokenize:q7},exit:Y7}},text:{91:{name:"gfmFootnoteCall",tokenize:G7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$7,resolveTo:V7}}},K7(e),{flow:{null:{name:"table",tokenize:Z7,resolveAll:J7}}},{text:{91:ree}}])}(t)),a.push([{transforms:[A9],enter:{literalAutolink:x9,literalAutolinkEmail:E9,literalAutolinkHttp:E9,literalAutolinkWww:E9},exit:{literalAutolink:C9,literalAutolinkEmail:T9,literalAutolinkHttp:_9,literalAutolinkWww:S9}},{enter:{gfmFootnoteCallString:O9,gfmFootnoteCall:P9,gfmFootnoteDefinitionLabelString:L9,gfmFootnoteDefinition:D9},exit:{gfmFootnoteCallString:M9,gfmFootnoteCall:F9,gfmFootnoteDefinitionLabelString:j9,gfmFootnoteDefinition:B9}},{canContainEols:["delete"],enter:{strikethrough:G9},exit:{strikethrough:W9}},{enter:{table:g7,tableData:k7,tableHeader:k7,tableRow:b7},exit:{codeText:w7,table:y7,tableData:v7,tableHeader:v7,tableRow:v7}},{exit:{taskListCheckValueChecked:_7,taskListCheckValueUnchecked:_7,paragraph:S7}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:k9,notInConstruct:w9},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:k9,notInConstruct:w9},{character:":",before:"[ps]",after:"\\/",inConstruct:k9,notInConstruct:w9}]},z9(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:V9}],handlers:{delete:q9}},E7(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:T7}}]}}(t))}function see(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=see(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function lee(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=see(e))&&(r&&(r+=" "),r+=t);return r}var cee,uee,dee,pee,hee,fee,mee,gee=Object.create,yee=Object.defineProperty,bee=Object.defineProperties,vee=Object.getOwnPropertyDescriptor,kee=Object.getOwnPropertyDescriptors,wee=Object.getOwnPropertyNames,xee=Object.getOwnPropertySymbols,Eee=Object.getPrototypeOf,_ee=Object.prototype.hasOwnProperty,See=Object.prototype.propertyIsEnumerable,Tee=(e,t,n)=>t in e?yee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cee=(e,t)=>{for(var n in t||(t={}))_ee.call(t,n)&&Tee(e,n,t[n]);if(xee)for(var n of xee(t))See.call(t,n)&&Tee(e,n,t[n]);return e},Aee=(e,t)=>bee(e,kee(t)),Nee=(e,t)=>{var n={};for(var r in e)_ee.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xee)for(var r of xee(e))t.indexOf(r)<0&&See.call(e,r)&&(n[r]=e[r]);return n},Iee=(cee={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var i in a={},n[o]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var c=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,o){o=o||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],a||s);var l=t[s],c=r.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new s;return l(a,a.head,e),i(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function i(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var h=n[p];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(d&&d.cause==p+","+f)return;var m=h[f],g=m.inside,y=!!m.lookbehind,b=!!m.greedy,v=m.alias;if(b&&!m.pattern.global){var k=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,k+"g")}for(var w=m.pattern||m,x=s.next,E=u;x!==t.tail&&!(d&&E>=d.reach);E+=x.value.length,x=x.next){var _=x.value;if(t.length>e.length)return;if(!(_ instanceof a)){var S,T=1;if(b){if(!(S=o(w,E,e,y))||S.index>=e.length)break;var C=S.index,A=S.index+S[0].length,N=E;for(N+=x.value.length;C>=N;)N+=(x=x.next).value.length;if(E=N-=x.value.length,x.value instanceof a)continue;for(var I=x;I!==t.tail&&(N<A||"string"==typeof I.value);I=I.next)T++,N+=I.value.length;T--,_=e.slice(E,N),S.index-=E}else if(!(S=o(w,0,_,y)))continue;C=S.index;var R=S[0],O=_.slice(0,C),P=_.slice(C+R.length),L=E+_.length;d&&L>d.reach&&(d.reach=L);var D=x.prev;if(O&&(D=l(t,D,O),E+=O.length),c(t,D,T),x=l(t,D,new a(p,g?r.tokenize(R,g):R,v,R)),P&&l(t,x,P),T>1){var M={cause:p+","+f,reach:L};i(e,t,n,x.prev,E,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),r.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return uee||(0,cee[wee(cee)[0]])((uee={exports:{}}).exports,uee),uee.exports}),Ree=((e,t,n)=>(n=null!=e?gee(Eee(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of wee(t))_ee.call(e,a)||a===n||yee(e,a,{get:()=>t[a],enumerable:!(r=vee(t,a))||r.enumerable});return e})(e&&e.__esModule?n:yee(n,"default",{value:e,enumerable:!0}),e)))(Iee());Ree.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Ree.languages.markup.tag.inside["attr-value"].inside.entity=Ree.languages.markup.entity,Ree.languages.markup.doctype.inside["internal-subset"].inside=Ree.languages.markup,Ree.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Ree.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Ree.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:Ree.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Ree.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Ree.languages.markup.tag,"addAttribute",{value:function(e,t){Ree.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Ree.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Ree.languages.html=Ree.languages.markup,Ree.languages.mathml=Ree.languages.markup,Ree.languages.svg=Ree.languages.markup,Ree.languages.xml=Ree.languages.extend("markup",{}),Ree.languages.ssml=Ree.languages.xml,Ree.languages.atom=Ree.languages.xml,Ree.languages.rss=Ree.languages.xml,dee=Ree,pee={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},fee="(?:[^\\\\-]|"+(hee=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",fee=RegExp(fee+"-"+fee),mee={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},dee.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:fee,inside:{escape:hee,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":pee,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:hee}},"special-escape":pee,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":mee}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:hee,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":mee}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},Ree.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Ree.languages.javascript=Ree.languages.extend("clike",{"class-name":[Ree.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Ree.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Ree.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Ree.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Ree.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Ree.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Ree.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Ree.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Ree.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Ree.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Ree.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Ree.languages.markup&&(Ree.languages.markup.tag.addInlined("script","javascript"),Ree.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Ree.languages.js=Ree.languages.javascript,Ree.languages.actionscript=Ree.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Ree.languages.actionscript["class-name"].alias="function",delete Ree.languages.actionscript.parameter,delete Ree.languages.actionscript["literal-property"],Ree.languages.markup&&Ree.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Ree.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(Ree),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},a="doc-comment";if(o=e.languages[t]){var o,i=o[a];if((i=i||(o=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(i=o[a]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),r(i[s]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(Ree),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Ree),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(Ree),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Ree),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a,o=t[n];"code"!==o.type?e(o.content):(a=o.content[1],o=o.content[3],a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content&&(a=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r];if(o=/language-(.+)/.exec(o)){n=o[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Ree),Ree.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Ree.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Ree.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=u(0);"variable"===i.type&&(h(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,h(u(0),"property-mutation"),0<a.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=a.indexOf(c.content)&&h(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))a++;else if(r.test(s)&&0==--a)return o}return-1}function h(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),Ree.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,i){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+i.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,i),Object.keys(u));return c=0,function t(n){for(var o=0;o<n.length;o++){if(c>=d.length)return;var i,l,p,h,f,m,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(i=d[c],-1!==(g=(m="string"==typeof y?y:y.content).indexOf(i))&&(++c,l=m.substring(0,g),f=u[i],p=void 0,(h={})["interpolation-punctuation"]=a,3===(h=e.tokenize(f,h)).length&&((p=[1,1]).push.apply(p,s(h[1],e.languages.javascript,"javascript")),h.splice.apply(h,p)),p=new e.Token("interpolation",h,r.alias,f),h=m.substring(g+i.length),f=[],l&&f.push(l),f.push(p),h&&(t(m=[h]),f.push.apply(f,m)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(f)),o+=f.length-1):y.content=f)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(i,l,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var o,i,s,c=n[r];"string"!=typeof c&&(o=c.content,Array.isArray(o)?"template-string"===c.type?(c=o[1],3===o.length&&"string"!=typeof c&&"embedded-code"===c.type&&(i=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(o[1]=l(i,s,c))):t(o):"string"!=typeof o&&t([o]))}}(t.tokens)}))}(Ree),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Ree),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Ree),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Ree),Ree.languages.n4js=Ree.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Ree.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Ree.languages.n4jsd=Ree.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];a=(o="RegExp"===e.util.type(o)?e.languages.javascript[a]={pattern:o}:o).inside||{};(o.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Ree),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;"string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(a.content[0].content[1])&&n.pop():"/>"!==a.content[a.content.length-1].content&&n.push({tagName:s(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces&&(o=s(a),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(o+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(o=s(t[r-1])+o,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",o,null,o)),a.content&&"string"!=typeof a.content&&i(a.content)}}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(Ree),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(Ree),Ree.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Ree.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Ree.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Ree),Ree.languages.c=Ree.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Ree.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Ree.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Ree.languages.c.string],char:Ree.languages.c.char,comment:Ree.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Ree.languages.c}}}}),Ree.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Ree.languages.c.boolean,Ree.languages.objectivec=Ree.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Ree.languages.objectivec["class-name"],Ree.languages.objc=Ree.languages.objectivec,Ree.languages.reason=Ree.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),Ree.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete Ree.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Ree),Ree.languages.go=Ree.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Ree.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Ree.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Ree),Ree.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Ree.languages.python["string-interpolation"].inside.interpolation.inside.rest=Ree.languages.python,Ree.languages.py=Ree.languages.python,Ree.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Ree.languages.webmanifest=Ree.languages.json;var Oee={};((e,t)=>{for(var n in t)yee(e,n,{get:t[n],enumerable:!0})})(Oee,{dracula:()=>Pee,duotoneDark:()=>Lee,duotoneLight:()=>Dee,github:()=>Mee,gruvboxMaterialDark:()=>Jee,gruvboxMaterialLight:()=>ete,jettwaveDark:()=>Kee,jettwaveLight:()=>Xee,nightOwl:()=>Fee,nightOwlLight:()=>jee,oceanicNext:()=>zee,okaidia:()=>Uee,oneDark:()=>Qee,oneLight:()=>Zee,palenight:()=>$ee,shadesOfPurple:()=>Vee,synthwave84:()=>Gee,ultramin:()=>Wee,vsDark:()=>qee,vsLight:()=>Yee});var Pee={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Lee={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Dee={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Mee={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Fee={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},jee={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Bee="#c5a5c5",Hee="#8dc891",zee={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Bee}},{types:["attr-value"],style:{color:Hee}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:Hee}},{types:["punctuation"],style:{color:Hee}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Bee}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Uee={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},$ee={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Vee={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Gee={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Wee={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},qee={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Yee={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Kee={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Xee={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Qee={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},Zee={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},Jee={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},ete={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},tte=/\r\n|\r|\n/,nte=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},rte=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},ate=e=>{const t=[[]],n=[e],r=[0],a=[e.length];let o=0,i=0,s=[];const l=[s];for(;i>-1;){for(;(o=r[i]++)<a[i];){let e,c=t[i];const u=n[i][o];if("string"==typeof u?(c=i>0?c:["plain"],e=u):(c=rte(c,u.type),u.alias&&(c=rte(c,u.alias)),e=u.content),"string"!=typeof e){i++,t.push(c),n.push(e),r.push(0),a.push(e.length);continue}const d=e.split(tte),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)nte(s),l.push(s=[]),s.push({types:c,content:d[t]})}i--,t.pop(),n.pop(),r.pop(),a.pop()}return nte(s),l},ote=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:a}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Cee(Cee({},e[t]),a);e[t]=n})),e}),{});return r.root=n,r.plain=Aee(Cee({},n),{backgroundColor:void 0}),r},ite=({children:e,language:t,code:n,theme:r,prism:a})=>{const o=t.toLowerCase(),i=ote(r,o),s=(e=>Z.useCallback((t=>{var n=t,{className:r,style:a,line:o}=n,i=Nee(n,["className","style","line"]);const s=Aee(Cee({},i),{className:lee("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof a&&(s.style=Cee(Cee({},s.style||{}),a)),s}),[e]))(i),l=(e=>{const t=Z.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return Z.useCallback((e=>{var n=e,{token:r,className:a,style:o}=n,i=Nee(n,["token","className","style"]);const s=Aee(Cee({},i),{className:lee("token",...r.types,a),children:r.content,style:t(r)});return null!=o&&(s.style=Cee(Cee({},s.style||{}),o)),s}),[t])})(i),c=(({prism:e,code:t,grammar:n,language:r})=>Z.useMemo((()=>{if(null==n)return ate([t]);const a={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",a),ate(a.tokens)}),[t,n,r,e]))({prism:a,language:o,code:n,grammar:a.languages[o]});return e({tokens:c,className:`prism-code language-${o}`,style:null!=i?i.root:{},getLineProps:s,getTokenProps:l})},ste=e=>Z.createElement(ite,Aee(Cee({},e),{prism:e.prism||Ree,theme:e.theme||qee,code:e.code,language:e.language}))
70
+ */const Az={search:"IoSearch",thumbsUp:"LuThumbsUp",thumbsDown:"LuThumbsDown",messageCopy:"LuCopy",messageCopied:"LuCheck",messageRevise:"FiEdit",codeCopy:"LuCopy",codeCopied:"LuCheck",openLinkInNewTab:"LuArrowUpRight",openLinkInSameTab:"LuCornerDownLeft",newLine:"LuCornerDownRight",breadcrumbSeparator:"FaChevronRight",switchToSearch:"IoSearch",switchToChat:"LuSparkles",chatSubmit:"IoSend",close:"IoCloseOutline",info:"IoInformationCircleOutline",command:"LuCommand"};function Nz({iconKey:e,...t}){var n;const r=Az[e],a=r?{builtIn:r}:{custom:""},{baseSettings:o}=JO(),i=(null==(n=o.customIcons)?void 0:n[e])||a;return Vh.jsx(Cz,{"data-icon":e,iconSettings:i,...t})}const Iz=Z.createContext(null);function Rz(e){const t=Z.useContext(Iz);if(!t)throw new Error(`${e} must be used within Combobox.Root`);return t}function Oz(){const e=Z.useContext(Iz);return(null==e?void 0:e.items)??[]}const Pz=Z.forwardRef((function(e,t){const{items:n,defaultValue:r,onValueChange:a,multiple:o=!1,placeholder:i,name:s,id:l,disabled:c,required:u,invalid:d=!1,autoFocus:p,className:h,getRootNode:f,children:m}=e,g=Z.useId(),y=l??g,[b,v]=Z.useState(n),k=Z.useMemo((()=>tB({items:b,itemToValue:e=>e.value,itemToString:e=>e.label})),[b]),w=vB(IB(SB,{id:y,collection:k,defaultValue:r??[],onValueChange(e){null==a||a(e.value)},onOpenChange(){v(n)},onInputValueChange({inputValue:e}){const t=n.filter((t=>t.label.toLowerCase().includes(e.toLowerCase())));v(t.length>0?t:[])},multiple:o,selectionBehavior:o?"clear":"replace",placeholder:i,openOnClick:!0,name:s,disabled:c,required:u,invalid:d,autoFocus:p,closeOnSelect:!0,getRootNode:f}),LB),x=Z.useMemo((()=>({api:w,invalid:d,items:b})),[w,d,b]);return Vh.jsx(Iz.Provider,{value:x,children:Vh.jsx("div",{ref:t,...w.getRootProps(),className:h,"data-invalid":d?"":void 0,children:m})})})),Lz=Z.forwardRef((function(e,t){const{api:n,invalid:r}=Rz("ComboboxControl"),a=n.getControlProps();return Vh.jsx("div",{ref:t,...a,"data-invalid":r?"":void 0,"data-state":n.open?"open":"closed",...e})})),Dz=Z.forwardRef((function(e,t){const{api:n}=Rz("ComboboxInput"),r=n.getInputProps(),a=FB(t,r.ref);return Vh.jsx("input",{...r,ref:a,"data-part":"input","data-state":n.open?"open":"closed",...e})})),Mz=Z.forwardRef((function(e,t){const{api:n}=Rz("ComboboxTrigger"),r=n.getTriggerProps();return Vh.jsx("button",{type:"button",...r,ref:t,"data-part":"trigger","data-state":n.open?"open":"closed","aria-label":"Toggle listbox",...e})})),Fz=Z.forwardRef((function(e,t){const{api:n}=Rz("ComboboxPositioner");return Vh.jsx("div",{ref:t,...n.getPositionerProps(),...e})})),jz=Z.forwardRef((function(e,t){const{api:n}=Rz("ComboboxContent"),r=n.getContentProps();return Vh.jsx("ul",{ref:t,...r,"data-part":"content","data-state":n.open?"open":"closed",...e})})),Bz=Z.forwardRef((function({item:e,...t},n){var r;const{api:a}=Rz("ComboboxItem"),o=a.getItemProps({item:e}),i=null==(r=a.getItemState)?void 0:r.call(a,{item:e});return Vh.jsx("li",{ref:n,...o,"data-part":"item","data-value":e.value,"data-highlighted":(null==i?void 0:i.highlighted)?"":void 0,"data-state":(null==i?void 0:i.selected)?"checked":"unchecked",...t})})),Hz=Z.forwardRef((function(e,t){return Vh.jsx("span",{ref:t,"data-part":"item-text",...e})})),zz=Z.forwardRef((function(e,t){const{api:n}=Rz("ComboboxSelectedTags"),r=n.selectedItems??[];return 0===r.length?null:Vh.jsx("div",{ref:t,"data-part":"selected-tags",...e,children:r.map((e=>Vh.jsxs("span",{"data-part":"tag","data-value":e.value,children:[Vh.jsx("span",{"data-part":"tag-text",children:e.label}),Vh.jsx("button",{type:"button","data-part":"tag-clear",onClick:t=>{t.preventDefault(),t.stopPropagation(),n.clearValue(e.value)},"aria-label":`Remove ${e.label}`,children:Vh.jsx(Cz,{iconSettings:{builtIn:"IoCloseOutline"}})})]},e.value)))})})),Uz=Z.forwardRef((function({item:e,children:t,...n},r){var a;const{api:o}=Rz("ComboboxItemIndicator"),i=null==(a=o.getItemState)?void 0:a.call(o,{item:e});return(null==i?void 0:i.selected)?Vh.jsx("span",{ref:r,"data-part":"item-indicator","data-state":"checked",...n,children:t??"✓"}):null})),$z={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:"",combobox:[]};function Vz(e){return e?null==e?void 0:e.reduce(((e,t)=>{var n;return"combobox"===t.inputType?e[t.name]="defaultValue"in t&&null!=t.defaultValue?null==(n=t.defaultValue)?[]:Array.isArray(n)?n:""===n?[]:[n]:$z.combobox:"defaultValue"in t&&t.defaultValue?e[t.name]=t.defaultValue:t.inputType&&(e[t.name]=$z[t.inputType]),e}),{}):{}}const Gz=Z.createContext(void 0);const Wz=({children:e})=>{const t=function(){var e;const[t,n]=Z.useState(null),[r,a]=Z.useState(null),[o,i]=Z.useState(!1),{conversation:s}=rP(),l=rD(),{logEvent:c}=bP(),u=()=>{var e;n(null),a(null),i(!1),"close_modal"===(null==(e=null==t?void 0:t.buttons.close)?void 0:e.action)&&(null==l||l.setOpen(!1))},d=Z.useMemo((()=>null==t?void 0:t.fields.map((e=>{const t={...e};return"_type"in e&&"include_chat_session"===e._type&&(t.inputType="checkbox",s.id?(t.isHidden=e.isHidden,t.isRequired=e.isRequired):(t.isHidden=!0,t.isRequired=!1)),t}))),[null==t?void 0:t.fields,s.id]),p=null==d?void 0:d.find((e=>"_type"in e&&"include_chat_session"===e._type)),h=Z.useMemo((()=>Vz(d)),[d]),{control:f,handleSubmit:m,formState:{errors:g,isSubmitting:y},setError:b,reset:v}=eD({defaultValues:h});Z.useEffect((()=>{h&&v(h)}),[v,h]);const k=m((async e=>{const n=s.id&&p&&e[p.name]?s:null;try{if(await(null==t?void 0:t.buttons.submit.onSubmit({values:e,conversation:n})),r){const e="name"in r;c({eventName:"user_escalation_indicated",properties:{escalationType:"support_form",getHelpOptionName:e?null==r?void 0:r.name:void 0,toolCallActionLabel:e||null==r?void 0:r.label,conversation:n||s}})}c({eventName:"ai_chat_form_submitted",properties:{conversation:n||s,values:e}}),i(!0),(null==t?void 0:t.successView)||u()}catch(a){b("root.serverError",{message:a instanceof Error?a.message:"Something went wrong."})}})),w=null==(e=null==g?void 0:g.root)?void 0:e.serverError;return{form:t,openForm:(e,t)=>{n(e),a(t||null)},closeForm:u,handleSubmit:k,isSuccess:o,isSubmitting:y,formError:w,fields:d,errors:g,control:f,defaultValues:h}}();return Vh.jsx(Gz.Provider,{value:t,children:e})},qz=()=>{const e=Z.useContext(Gz);if(!e)throw new Error("useChatForm must be used within a ChatFormProvider");return e},Yz=Z.createContext(void 0),Kz=({children:e,widget:t})=>Vh.jsx(Yz.Provider,{value:t,children:e}),Xz=()=>Z.useContext(Yz),Qz=e=>{const[t,n]=Z.useState(!1);return Z.useEffect((()=>{const t=window.matchMedia(e);n(t.matches);const r=e=>n(e.matches);return t.addEventListener("change",r),()=>t.removeEventListener("change",r)}),[e]),t},Zz=new TextEncoder;async function Jz(e,t){return n=await async function(e,t){return crypto.subtle.digest(e.toUpperCase(),"string"==typeof t?Zz.encode(t):new Uint8Array(t))}(e,t),[...new Uint8Array(n)].map((e=>e.toString(16).padStart(2,"0"))).join("");var n}const eU={getSolution:async()=>{},prefetchSolution:()=>{},invalidateSolution:()=>{}},tU=async e=>{try{const t=await fetch(e,{method:"GET"});if(!t.ok)throw new Error(`Failed to fetch challenge: ${t.statusText}`);const n=await t.json(),{challenge:r,algorithm:a,salt:o,maxnumber:i}=n,{promise:s}=await function(e,t,n="SHA-256",r=1e6,a=0){const o=new AbortController,i=Date.now();return{promise:(async()=>{for(let s=a;s<=r;s+=1){if(o.signal.aborted)return null;if(await Jz(n,t+s)===e)return{number:s,took:Date.now()-i}}return null})(),controller:o}}(r,o,a,i),l=await s||void 0;if(!l)throw new Error("Challenge not solved");return{number:l.number,...n}}catch(t){console.warn("Error solving captcha:",t)}},nU={type:"function",function:{name:"provideLinks",description:"Provides links",parameters:{type:"object",properties:{links:{anyOf:[{type:"array",items:{type:"object",properties:{label:{type:["string","null"]},url:{type:"string"},title:{type:["string","null"]},description:{type:["string","null"]},type:{anyOf:[{anyOf:[{type:"string",enum:["documentation","site","discourse_post","github_issue","github_discussion","stackoverflow_question","discord_forum_post","discord_message","custom_question_answer"]},{type:"string"}]},{type:"null"}]},breadcrumbs:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]}},required:["url"],additionalProperties:!0}},{type:"null"}]},text:{type:"string"}},required:["text"],additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"},function:e=>e,parse:JSON.parse}},rU=()=>{const{chatId:e,isSharedChat:t,setConversation:n,conversation:r,resetConversation:a}=rP(),{baseSettings:o,aiChatSettings:i}=JO(),{aiApiBaseUrl:s,shouldBypassCaptcha:l,filters:c}=o,u=rD(),{getSolution:d,prefetchSolution:p,invalidateSolution:h}=(({fetchUrl:e,shouldBypassCaptcha:t=!1,shouldMakeInitialRequest:n=!0})=>{if(t)return eU;const r=Z.useRef(null),a=Z.useCallback((()=>{r.current||(r.current=tU(e))}),[e]),o=Z.useCallback((async()=>{let t=await r.current;return t||(r.current=tU(e),t=await r.current),r.current=null,t}),[e]),i=Z.useCallback((()=>{r.current=null}),[]);return Z.useEffect((()=>{n&&a()}),[a,n]),{getSolution:o,prefetchSolution:a,invalidateSolution:i}})({fetchUrl:`${s}/v1/challenge`,shouldBypassCaptcha:l,shouldMakeInitialRequest:!u||u.isOpen}),f=new db({baseURL:`${s}/v1`,apiKey:o.apiKey??"",dangerouslyAllowBrowser:!0}),{onInputMessageChange:m,getTools:g,prompts:y,model:b,filters:v,onToolCall:k}=i,[w,x]=Z.useState(""),E=Z.useRef(null);Z.useEffect((()=>{null==m||m(w)}),[w]);const[_,S]=Z.useState([]),[T,C]=Z.useState(!1),[A,N]=Z.useState(!1),[I,R]=Z.useState(null),[O,P]=Z.useState(null),[L,D]=Z.useState([]),[M,F]=Z.useState({}),j=Z.useRef([]),B=Z.useRef(null),{logEvent:H,getLatestConversation:z}=bP(),U=null==y?void 0:y.map(((e,t)=>({id:`system-${Date.now().toString()}-${Kh(4)}-${t}`,role:"system",content:e}))),[$,V]=Z.useState(!!e);Z.useEffect((()=>{if(e){const{apiKey:t,analyticsApiBaseUrl:r}=o;(async function(e,t,n){try{const r=`${n}/conversations/${e}`,a=await fetch(r,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});if(!a.ok){const e=await a.text();throw new Error(`Failed to get conversation: ${e}`)}return a.json()}catch(I){console.warn("Error in getConversation:",I)}})(e,t,r).then((e=>{if(e){H({eventName:"shared_chat_loaded",properties:{conversation:e}}),V(!1),n({...e});const t=e.messages.map((e=>({...e,content:bH(e.content)})));S(t),j.current=t}}))}}),[e]);const G=e=>{R(e),S((t=>{const n=[...t],r=n[n.length-1];return r&&(r.content=(e=>{var t;return 403===e.status||401===e.status?`There seems to be a configuration error. Please contact ${o.organizationDisplayName??"Administrator"}.`:(null==(t=e.error)?void 0:t.message)??"Hmm.. \n\nIt seems I might be having some issues right now. Please clear the chat and try again."})(e)),n})),C(!1),N(!1),h(),p()},W=!w.trim()&&!L.length||T,q=async(n=w)=>{if(W&&(!n||0===n.trim().length))return;C(!0);const r=O?2===_.length:0===_.length,a=function(e,t,n){if(!e)return;const r=n?vP(e):"",a=_P(t),o={workflow:SP(e),attachments:t};return{context:TP([r,a]),attributes:o}}(O,L,r);let o;const i=_P(L);o=L.length&&i?[{type:"text",text:i}]:n;const s={id:`${Date.now().toString()}-${Kh(4)}-1`,role:"user",content:o,metadata:a},u=[..._.length?[]:U,s];if(t&&e){AP();const e=j.current.map(((e,t)=>({id:`${e.id}-${Kh(6)}-${t}`,role:e.role,..."assistant"===e.role?{links:e.links??[]}:{},content:e.content,metadata:e.metadata,tool_calls:e.tool_calls})));S([...e,...u]),j.current=[...e,...u]}else S((e=>[...e,...u])),j.current=[...j.current,...u];D([]),x(""),H({eventName:"user_message_submitted",properties:{}},j.current);const h=z(),m=[nU,...(null==g?void 0:g({conversation:h}))||[]];try{const e={model:b,messages:j.current,stream:!0,tools:m,tool_choice:"auto"},t=await d(),n=t?btoa(JSON.stringify(t)):null,r=c||v?JSON.stringify({...c,...v}):void 0,a={};!l&&n&&(a["X-INKEEP-CHALLENGE-SOLUTION"]=n),r&&(a["inkeep-filters"]=r);const o=f.beta.chat.completions.stream(e,Object.keys(a).length>0?{headers:a}:void 0),i={id:`${Date.now().toString()}-${Kh(4)}-2`,role:"assistant",content:"",links:[],tool_calls:[]};S((e=>[...e,i])),o.on("content",((e,t)=>{N(!0),i.content=t,S((e=>{const t=[...e],n=t.findIndex((e=>e.id===i.id));return-1===n?[...t,i]:(t[n]={...i},t)}))})),o.on("tool_calls.function.arguments.done",(async e=>{var t,n,r,a;const{name:s,arguments:l}=e,c=null==m?void 0:m.find((e=>e.function.name===s));if(!c)return;const u=("parse"in c.function?c.function.parse:JSON.parse)(l),d=null==(n=(t=c.function).function)?void 0:n.call(t,u,o);if("provideLinks"===s)i.links=u.links??[];else{const e=(null==(r=c.renderMessageButtons)?void 0:r.call(c,{args:u,execution:d}))??[];e.length>0&&F((t=>{const n=t[i.id]??[],r=new Set(n.map((e=>e.label))),a=e.filter((e=>!r.has(e.label)));return{...t,[i.id]:[...n,...a]}}))}null==(a=i.tool_calls)||a.push({id:"call_"+Kh(24),type:"function",function:{name:s,arguments:l}}),S((e=>{const t=[...e],n=t.findIndex((e=>e.id===i.id));return t[n]={...i},t})),null==k||k(e,{conversation:{...z(),messages:[...j.current,i]}})})),o.on("error",G),o.finalChatCompletion().then((async()=>{j.current=[...j.current,i],B.current=null,C(!1),N(!1),p(),await H({eventName:"assistant_message_received",properties:{}},j.current),H({eventName:"assistant_answer_displayed",properties:{}})})).catch((e=>{e instanceof Nf||console.warn(e)})),B.current=o.controller}catch(y){G(y),C(!1),N(!1)}},Y=()=>{R(null),S([]),j.current=[],a(),F({}),D([]),AP(),P(null),h(),p(),H({eventName:"chat_clear_button_clicked",properties:{conversation:r}})},{openForm:K}=qz(),X=Xz();Z.useImperativeHandle(i.chatFunctionsRef,(()=>({submitMessage:q,updateInputMessage(e){x(e)},clearChat:Y,openForm:e=>{null==X||X.setView("chat"),K(e)},focusInput:()=>{var e;null==(e=E.current)||e.focus()}})));const Q=Qz("(max-width: 768px)");return{messages:_,input:w,isLoading:T,isStreaming:A,isLoadingConversation:$,error:I,isSubmitDisabled:W,handleInputChange:e=>{const t=e.target.value;x(t)},handleInputKeyDown:e=>{"Enter"!==e.key||e.shiftKey||W||e.nativeEvent.isComposing||(e.preventDefault(),q())},handleSubmit:q,stop:()=>{B.current&&(B.current.abort(),B.current=null),C(!1),N(!1),p()},clear:Y,handleWorkflow:e=>{P(e);const{initialReplyMessage:t,displayName:n}=e,r={id:_.length.toString()+Kh(4),role:"user",content:n},a={id:(_.length+1).toString()+Kh(4),role:"assistant",content:t,links:[]},o=[{id:`system-${Date.now().toString()}-${Kh(4)}-${e.id}`,role:"system",content:`Company has asked user to follow this guided workflow:\n${vP(e)}`},...U,r,a];S(o),D([])},selectedWorkflow:O,messageAttachments:L,setMessageAttachments:D,addAttachment:e=>{D((t=>[...t,e]))},messageButtons:M,isEmpty:0===_.length,inputRef:E,isMobile:Q}};const aU=Z.createContext(void 0);function oU(){const{baseSettings:e}=JO(),{apiKey:t,analyticsApiBaseUrl:n,analyticsProperties:r}=e,[a,o]=Z.useState(null),[i,s]=Z.useState({}),{conversation:l}=rP(),{messages:c,selectedWorkflow:u}=gG(),{userProperties:d}=pP(),{logEvent:p}=bP(),h=Z.useCallback((async(e,a,o=[])=>{const i=await async function(e){try{const{type:t,messageId:n,reasons:r=[],apiKey:a,apiUrl:o,userProperties:i,properties:s}=e,l=`${o}/feedback`,c={type:t,messageId:n,createdAt:(new Date).toISOString(),userProperties:i,properties:s};"negative"===t&&(c.reasons=r);const u=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(c)});if(!u.ok){const e=await u.text();throw new Error(`Failed to send feedback: ${e}`)}return u.json()}catch(t){console.warn("Error in submitFeedback:",t)}}({type:a,messageId:e,reasons:o,apiKey:t,apiUrl:n,userProperties:d,properties:r});i&&s((t=>({...t,[e]:{type:i.type,reasons:i.reasons}})));const h=c.findIndex((t=>t.id===e)),f=c[h],m={conversationId:l.id,question:SH(c[h-1]),answer:SH(f),messageId:e,reasons:o,workflowId:null==u?void 0:u.id};p({eventName:"positive"===a?"assistant_positive_feedback_submitted":"assistant_negative_feedback_submitted",properties:m}),"negative"===a&&p({eventName:"user_escalation_indicated",properties:{escalationType:"downvote",conversation:l}})}),[c,l]);return{feedback:i,currentFeedback:a,setCurrentFeedback:o,submitPositiveFeedback:Z.useCallback((async e=>{h(e,"positive")}),[h]),submitNegativeFeedback:Z.useCallback((async(e,t)=>{const n=function(e){const t=[];for(const n in e){"on"===e[n]&&t.push({label:n,details:e[`${n}:description`]||""})}return t.length>0?t:[]}(t);h(e,"negative",n)}),[h])}}const iU=({children:e})=>{const t=oU();return Vh.jsx(aU.Provider,{value:t,children:e})},sU=()=>{const e=Z.useContext(aU);if(!e)throw new Error("useFeedback must be used within a FeedbackProvider");return e};function lU(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function cU(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function uU(...e){return t=>{let n=!1;const r=e.map((e=>{const r=cU(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():cU(e[t],null)}}}}function dU(...e){return Z.useCallback(uU(...e),e)}function pU(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>Z.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return Z.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=Z.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,c=Z.useMemo((()=>s),Object.values(s));return Vh.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,c=Z.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},hU(r,...t)]}function hU(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return Z.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var fU=Z.forwardRef(((e,t)=>{const{children:n,...r}=e,a=Z.Children.toArray(n),o=a.find(yU);if(o){const e=o.props.children,n=a.map((t=>t===o?Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null:t));return Vh.jsx(mU,{...r,ref:t,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,n):null})}return Vh.jsx(mU,{...r,ref:t,children:n})}));fU.displayName="Slot";var mU=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;if(Z.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n);return Z.cloneElement(n,{...bU(r,n.props),ref:t?uU(t,e):e})}return Z.Children.count(n)>1?Z.Children.only(null):null}));mU.displayName="SlotClone";var gU=({children:e})=>Vh.jsx(Vh.Fragment,{children:e});function yU(e){return Z.isValidElement(e)&&e.type===gU}function bU(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}var vU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=Z.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?fU:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Vh.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function kU(e){const t=Z.useRef(e);return Z.useEffect((()=>{t.current=e})),Z.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function wU(e,t=(null==globalThis?void 0:globalThis.document)){const n=kU(e);Z.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var xU,EU="dismissableLayer.update",_U="dismissableLayer.pointerDownOutside",SU="dismissableLayer.focusOutside",TU=Z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),CU=Z.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=Z.useContext(TU),[u,d]=Z.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=Z.useState({}),f=dU(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=kU(e),r=Z.useRef(!1),a=Z.useRef((()=>{}));return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){NU(_U,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=kU(e),r=Z.useRef(!1);return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){NU(SU,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return wU((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),Z.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(xU=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),AU(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=xU)}}),[u,p,n,c]),Z.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),AU())}),[u,c]),Z.useEffect((()=>{const e=()=>h({});return document.addEventListener(EU,e),()=>document.removeEventListener(EU,e)}),[]),Vh.jsx(vU.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:lU(e.onFocusCapture,x.onFocusCapture),onBlurCapture:lU(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:lU(e.onPointerDownCapture,w.onPointerDownCapture)})}));CU.displayName="DismissableLayer";function AU(){const e=new CustomEvent(EU);document.dispatchEvent(e)}function NU(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&ue.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}Z.forwardRef(((e,t)=>{const n=Z.useContext(TU),r=Z.useRef(null),a=dU(t,r);return Z.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),Vh.jsx(vU.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var IU=Boolean(null==globalThis?void 0:globalThis.document)?Z.useLayoutEffect:()=>{},RU=ee["useId".toString()]||(()=>{}),OU=0;function PU(e){const[t,n]=Z.useState(RU());return IU((()=>{n((e=>e??String(OU++)))}),[e]),e||(t?`radix-${t}`:"")}const LU=["top","right","bottom","left"],DU=Math.min,MU=Math.max,FU=Math.round,jU=Math.floor,BU=e=>({x:e,y:e}),HU={left:"right",right:"left",bottom:"top",top:"bottom"},zU={start:"end",end:"start"};function UU(e,t,n){return MU(e,DU(t,n))}function $U(e,t){return"function"==typeof e?e(t):e}function VU(e){return e.split("-")[0]}function GU(e){return e.split("-")[1]}function WU(e){return"x"===e?"y":"x"}function qU(e){return"y"===e?"height":"width"}function YU(e){return["top","bottom"].includes(VU(e))?"y":"x"}function KU(e){return WU(YU(e))}function XU(e){return e.replace(/start|end/g,(e=>zU[e]))}function QU(e){return e.replace(/left|right|bottom|top/g,(e=>HU[e]))}function ZU(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function JU(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function e$(e,t,n){let{reference:r,floating:a}=e;const o=YU(t),i=KU(t),s=qU(i),l=VU(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-a.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-a.width,y:d};break;default:h={x:r.x,y:r.y}}switch(GU(t)){case"start":h[i]-=p*(n&&c?-1:1);break;case"end":h[i]+=p*(n&&c?-1:1)}return h}async function t$(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=$U(t,e),f=ZU(h),m=s[p?"floating"===d?"reference":"floating":d],g=JU(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=JU(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-k.top+f.top)/v.y,bottom:(k.bottom-g.bottom+f.bottom)/v.y,left:(g.left-k.left+f.left)/v.x,right:(k.right-g.right+f.right)/v.x}}function n$(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function r$(e){return LU.some((t=>e[t]>=0))}function a$(){return"undefined"!=typeof window}function o$(e){return l$(e)?(e.nodeName||"").toLowerCase():"#document"}function i$(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s$(e){var t;return null==(t=(l$(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l$(e){return!!a$()&&(e instanceof Node||e instanceof i$(e).Node)}function c$(e){return!!a$()&&(e instanceof Element||e instanceof i$(e).Element)}function u$(e){return!!a$()&&(e instanceof HTMLElement||e instanceof i$(e).HTMLElement)}function d$(e){return!(!a$()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i$(e).ShadowRoot)}function p$(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=b$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function h$(e){return["table","td","th"].includes(o$(e))}function f$(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(dee){return!1}}))}function m$(e){const t=g$(),n=c$(e)?b$(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function g$(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function y$(e){return["html","body","#document"].includes(o$(e))}function b$(e){return i$(e).getComputedStyle(e)}function v$(e){return c$(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function k$(e){if("html"===o$(e))return e;const t=e.assignedSlot||e.parentNode||d$(e)&&e.host||s$(e);return d$(t)?t.host:t}function w$(e){const t=k$(e);return y$(t)?e.ownerDocument?e.ownerDocument.body:e.body:u$(t)&&p$(t)?t:w$(t)}function x$(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=w$(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=i$(a);if(o){const e=E$(i);return t.concat(i,i.visualViewport||[],p$(a)?a:[],e&&n?x$(e):[])}return t.concat(a,x$(a,[],n))}function E$(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _$(e){const t=b$(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=u$(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=FU(n)!==o||FU(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function S$(e){return c$(e)?e:e.contextElement}function T$(e){const t=S$(e);if(!u$(t))return BU(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=_$(t);let i=(o?FU(n.width):n.width)/r,s=(o?FU(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const C$=BU(0);function A$(e){const t=i$(e);return g$()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:C$}function N$(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=S$(e);let i=BU(1);t&&(r?c$(r)&&(i=T$(r)):i=T$(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==i$(e))&&t}(o,n,r)?A$(o):BU(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=i$(o),t=r&&c$(r)?i$(r):r;let n=e,a=E$(n);for(;a&&r&&t!==n;){const e=T$(a),t=a.getBoundingClientRect(),r=b$(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=i$(a),a=E$(n)}}return JU({width:u,height:d,x:l,y:c})}function I$(e,t){const n=v$(e).scrollLeft;return t?t.left+n:N$(s$(e)).left+n}function R$(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:I$(e,r)),y:r.top+t.scrollTop}}function O$(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=i$(e),r=s$(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=g$();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=s$(e),n=v$(e),r=e.ownerDocument.body,a=MU(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=MU(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+I$(e);const s=-n.scrollTop;return"rtl"===b$(r).direction&&(i+=MU(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(s$(e));else if(c$(t))r=function(e,t){const n=N$(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=u$(e)?T$(e):BU(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=A$(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return JU(r)}function P$(e,t){const n=k$(e);return!(n===t||!c$(n)||y$(n))&&("fixed"===b$(n).position||P$(n,t))}function L$(e,t,n){const r=u$(t),a=s$(t),o="fixed"===n,i=N$(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=BU(0);if(r||!r&&!o)if(("body"!==o$(t)||p$(a))&&(s=v$(t)),r){const e=N$(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=I$(a));const c=!a||r||o?BU(0):R$(a,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function D$(e){return"static"===b$(e).position}function M$(e,t){if(!u$(e)||"fixed"===b$(e).position)return null;if(t)return t(e);let n=e.offsetParent;return s$(e)===n&&(n=n.ownerDocument.body),n}function F$(e,t){const n=i$(e);if(f$(e))return n;if(!u$(e)){let t=k$(e);for(;t&&!y$(t);){if(c$(t)&&!D$(t))return t;t=k$(t)}return n}let r=M$(e,t);for(;r&&h$(r)&&D$(r);)r=M$(r,t);return r&&y$(r)&&D$(r)&&!m$(r)?n:r||function(e){let t=k$(e);for(;u$(t)&&!y$(t);){if(m$(t))return t;if(f$(t))return null;t=k$(t)}return null}(e)||n}const j$={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=s$(r),s=!!t&&f$(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=BU(1);const u=BU(0),d=u$(r);if((d||!d&&!o)&&(("body"!==o$(r)||p$(i))&&(l=v$(r)),u$(r))){const e=N$(r);c=T$(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?BU(0):R$(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:s$,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?f$(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=x$(e,[],!1).filter((e=>c$(e)&&"body"!==o$(e))),a=null;const o="fixed"===b$(e).position;let i=o?k$(e):e;for(;c$(i)&&!y$(i);){const t=b$(i),n=m$(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||p$(i)&&!n&&P$(e,i))?r=r.filter((e=>e!==i)):a=t,i=k$(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=O$(t,n,a);return e.top=MU(r.top,e.top),e.right=DU(r.right,e.right),e.bottom=DU(r.bottom,e.bottom),e.left=MU(r.left,e.left),e}),O$(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:F$,getElementRects:async function(e){const t=this.getOffsetParent||F$,n=this.getDimensions,r=await n(e.floating);return{reference:L$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=_$(e);return{width:t,height:n}},getScale:T$,isElement:c$,isRTL:function(e){return"rtl"===b$(e).direction}};function B$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function H$(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=S$(e),u=a||o?[...c?x$(c):[],...x$(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=s$(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-jU(d)+"px "+-jU(a.clientWidth-(u+p))+"px "+-jU(a.clientHeight-(d+h))+"px "+-jU(u)+"px",threshold:MU(0,DU(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||B$(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(dee){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?N$(e):null;return l&&function t(){const r=N$(e);m&&!B$(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const z$=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=VU(n),s=GU(n),l="y"===YU(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=$U(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},U$=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$U(e,t),c={x:n,y:r},u=await t$(t,l),d=YU(VU(a)),p=WU(d);let h=c[p],f=c[d];if(o){const e="y"===p?"bottom":"right";h=UU(h+u["y"===p?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";f=UU(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:o,[d]:i}}}}}},$$=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=$U(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=VU(a),b=YU(s),v=VU(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[QU(s)]:function(e){const t=QU(e);return[XU(e),t,XU(t)]}(s)),x="none"!==f;!p&&x&&w.push(...function(e,t,n,r){const a=GU(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(VU(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(XU)))),o}(s,m,f,k));const E=[s,...w],_=await t$(t,g),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(_[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=GU(e),a=KU(e),o=qU(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=QU(i)),[i,QU(i)]}(a,i,k);S.push(_[e[0]],_[e[1]])}if(T=[...T,{placement:a,overflows:S}],!S.every((e=>e<=0))){var C,A;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var N;const e=null==(N=T.filter((e=>{if(x){const t=YU(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},V$=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=$U(e,t),u=await t$(t,c),d=VU(a),p=GU(a),h="y"===YU(a),{width:f,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,v=f-u.left-u.right,k=DU(m-u[g],b),w=DU(f-u[y],v),x=!t.middlewareData.shift;let E=k,_=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=b),x&&!p){const e=MU(u.left,0),t=MU(u.right,0),n=MU(u.top,0),r=MU(u.bottom,0);h?_=f-2*(0!==e||0!==t?e+t:MU(u.left,u.right)):E=m-2*(0!==n||0!==r?n+r:MU(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:E});const S=await i.getDimensions(s.floating);return f!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},G$=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=$U(e,t);switch(r){case"referenceHidden":{const e=n$(await t$(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:r$(e)}}}case"escaped":{const e=n$(await t$(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:r$(e)}}}default:return{}}}}},W$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=$U(e,t)||{};if(null==c)return{};const d=ZU(u),p={x:n,y:r},h=KU(a),f=qU(h),m=await i.getDimensions(c),g="y"===h,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",k=o.reference[f]+o.reference[h]-p[h]-o.floating[f],w=p[h]-o.reference[h],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let E=x?x[v]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=s.floating[v]||o.floating[f]);const _=k/2-w/2,S=E/2-m[f]/2-1,T=DU(d[y],S),C=DU(d[b],S),A=T,N=E-m[f]-C,I=E/2-m[f]/2+_,R=UU(A,I,N),O=!l.arrow&&null!=GU(a)&&I!==R&&o.reference[f]/2-(I<A?T:C)-m[f]/2<0,P=O?I<A?I-A:I-N:0;return{[h]:p[h]+P,data:{[h]:R,centerOffset:I-R-P,...O&&{alignmentOffset:P}},reset:O}}}),q$=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=$U(e,t),u={x:n,y:r},d=YU(a),p=WU(d);let h=u[p],f=u[d];const m=$U(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes(VU(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},Y$=(e,t,n)=>{const r=new Map,a={platform:j$,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=e$(c,r,l),p=r,h={},f=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:y,data:b,reset:v}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,h={...h,[n]:{...h[n],...b}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):v.rects),({x:u,y:d}=e$(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}})(e,t,{...a,platform:o})};var K$="undefined"!=typeof document?Z.useLayoutEffect:Z.useEffect;function X$(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!X$(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!X$(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Q$(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Z$(e,t){const n=Q$(e);return Math.round(t*n)/n}function J$(e){const t=Z.useRef(e);return K$((()=>{t.current=e})),t}function eV(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=Z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=Z.useState(r);X$(p,r)||h(r);const[f,m]=Z.useState(null),[g,y]=Z.useState(null),b=Z.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),v=Z.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),k=o||f,w=i||g,x=Z.useRef(null),E=Z.useRef(null),_=Z.useRef(u),S=null!=l,T=J$(l),C=J$(a),A=J$(c),N=Z.useCallback((()=>{if(!x.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),Y$(x.current,E.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};I.current&&!X$(_.current,t)&&(_.current=t,ue.flushSync((()=>{d(t)})))}))}),[p,t,n,C,A]);K$((()=>{!1===c&&_.current.isPositioned&&(_.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const I=Z.useRef(!1);K$((()=>(I.current=!0,()=>{I.current=!1})),[]),K$((()=>{if(k&&(x.current=k),w&&(E.current=w),k&&w){if(T.current)return T.current(k,w,N);N()}}),[k,w,N,T,S]);const R=Z.useMemo((()=>({reference:x,floating:E,setReference:b,setFloating:v})),[b,v]),O=Z.useMemo((()=>({reference:k,floating:w})),[k,w]),P=Z.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=Z$(O.floating,u.x),r=Z$(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Q$(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,O.floating,u.x,u.y]);return Z.useMemo((()=>({...u,update:N,refs:R,elements:O,floatingStyles:P})),[u,N,R,O,P])}const tV=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?W$({element:n.current,padding:r}).fn(t):{}:n?W$({element:n,padding:r}).fn(t):{};var a}}),nV=(e,t)=>({...z$(e),options:[e,t]}),rV=(e,t)=>({...U$(e),options:[e,t]}),aV=(e,t)=>({...q$(e),options:[e,t]}),oV=(e,t)=>({...$$(e),options:[e,t]}),iV=(e,t)=>({...V$(e),options:[e,t]}),sV=(e,t)=>({...G$(e),options:[e,t]}),lV=(e,t)=>({...tV(e),options:[e,t]});var cV=Z.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return Vh.jsx(vU.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Vh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));cV.displayName="Arrow";var uV=cV;function dV(e){const[t,n]=Z.useState(void 0);return IU((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var pV="Popper",[hV,fV]=pU(pV),[mV,gV]=hV(pV),yV=e=>{const{__scopePopper:t,children:n}=e,[r,a]=Z.useState(null);return Vh.jsx(mV,{scope:t,anchor:r,onAnchorChange:a,children:n})};yV.displayName=pV;var bV="PopperAnchor",vV=Z.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=gV(bV,n),i=Z.useRef(null),s=dU(t,i);return Z.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:Vh.jsx(vU.div,{...a,ref:s})}));vV.displayName=bV;var kV="PopperContent",[wV,xV]=hV(kV),EV=Z.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=gV(kV,l),[E,_]=Z.useState(null),S=dU(t,(e=>_(e))),[T,C]=Z.useState(null),A=dV(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(CV),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=eV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>H$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[nV({mainAxis:u+I,alignmentAxis:p}),f&&rV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?aV():void 0,...D}),f&&oV({...D}),iV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&lV({element:T,padding:h}),AV({arrowWidth:N,arrowHeight:I}),b&&sV({strategy:"referenceHidden",...D})]}),[z,U]=NV(j),$=kU(k);IU((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=Z.useState();return IU((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),Vh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Vh.jsx(wV,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:Vh.jsx(vU.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));EV.displayName=kV;var _V="PopperArrow",SV={top:"bottom",right:"left",bottom:"top",left:"right"},TV=Z.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=xV(_V,n),o=SV[a.placedSide];return Vh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:Vh.jsx(uV,{...r,ref:t,style:{...r.style,display:"block"}})})}));function CV(e){return null!==e}TV.displayName=_V;var AV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=NV(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function NV(e){const[t,n="center"]=e.split("-");return[t,n]}var IV=yV,RV=vV,OV=EV,PV=TV;var LV=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=Z.useState(),r=Z.useRef({}),a=Z.useRef(e),o=Z.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return Z.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Z.useEffect((()=>{const e=DV(r.current);o.current="mounted"===s?e:"none"}),[s]),IU((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=DV(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,l]),IU((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=DV(r.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=DV(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Z.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:r.isPresent}):Z.Children.only(n),o=dU(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?Z.cloneElement(a,{ref:o}):null};function DV(e){return(null==e?void 0:e.animationName)||"none"}function MV({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=function({defaultProp:e,onChange:t}){const n=Z.useState(e),[r]=n,a=Z.useRef(r),o=kU(t);return Z.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=kU(n);return[i,Z.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}LV.displayName="Presence";var FV=Z.forwardRef(((e,t)=>Vh.jsx(vU.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));FV.displayName="VisuallyHidden";var jV=FV,[BV,HV]=pU("Tooltip",[fV]),zV=fV(),UV="TooltipProvider",$V=700,VV="tooltip.open",[GV,WV]=BV(UV),qV=e=>{const{__scopeTooltip:t,delayDuration:n=$V,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,[i,s]=Z.useState(!0),l=Z.useRef(!1),c=Z.useRef(0);return Z.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),Vh.jsx(GV,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:Z.useCallback((()=>{window.clearTimeout(c.current),s(!1)}),[]),onClose:Z.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:l,onPointerInTransitChange:Z.useCallback((e=>{l.current=e}),[]),disableHoverableContent:a,children:o})};qV.displayName=UV;var YV="Tooltip",[KV,XV]=BV(YV),QV=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,l=WV(YV,e.__scopeTooltip),c=zV(t),[u,d]=Z.useState(null),p=PU(),h=Z.useRef(0),f=i??l.disableHoverableContent,m=s??l.delayDuration,g=Z.useRef(!1),[y=!1,b]=MV({prop:r,defaultProp:a,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(VV))):l.onClose(),null==o||o(e)}}),v=Z.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),k=Z.useCallback((()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,b(!0)}),[b]),w=Z.useCallback((()=>{window.clearTimeout(h.current),h.current=0,b(!1)}),[b]),x=Z.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{g.current=!0,b(!0),h.current=0}),m)}),[m,b]);return Z.useEffect((()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)}),[]),Vh.jsx(IV,{...c,children:Vh.jsx(KV,{scope:t,contentId:p,open:y,stateAttribute:v,trigger:u,onTriggerChange:d,onTriggerEnter:Z.useCallback((()=>{l.isOpenDelayed?x():k()}),[l.isOpenDelayed,x,k]),onTriggerLeave:Z.useCallback((()=>{f?w():(window.clearTimeout(h.current),h.current=0)}),[w,f]),onOpen:k,onClose:w,disableHoverableContent:f,children:n})})};QV.displayName=YV;var ZV="TooltipTrigger",JV=Z.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=XV(ZV,n),o=WV(ZV,n),i=zV(n),s=dU(t,Z.useRef(null),a.onTriggerChange),l=Z.useRef(!1),c=Z.useRef(!1),u=Z.useCallback((()=>l.current=!1),[]);return Z.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),Vh.jsx(RV,{asChild:!0,...i,children:Vh.jsx(vU.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:s,onPointerMove:lU(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||o.isPointerInTransitRef.current||(a.onTriggerEnter(),c.current=!0))})),onPointerLeave:lU(e.onPointerLeave,(()=>{a.onTriggerLeave(),c.current=!1})),onPointerDown:lU(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:lU(e.onFocus,(()=>{l.current||a.onOpen()})),onBlur:lU(e.onBlur,a.onClose),onClick:lU(e.onClick,a.onClose)})})}));JV.displayName=ZV;var[eG,tG]=BV("TooltipPortal",{forceMount:void 0}),nG="TooltipContent",rG=Z.forwardRef(((e,t)=>{const n=tG(nG,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,i=XV(nG,e.__scopeTooltip);return Vh.jsx(LV,{present:r||i.open,children:i.disableHoverableContent?Vh.jsx(sG,{side:a,...o,ref:t}):Vh.jsx(aG,{side:a,...o,ref:t})})})),aG=Z.forwardRef(((e,t)=>{const n=XV(nG,e.__scopeTooltip),r=WV(nG,e.__scopeTooltip),a=Z.useRef(null),o=dU(t,a),[i,s]=Z.useState(null),{trigger:l,onClose:c}=n,u=a.current,{onPointerInTransitChange:d}=r,p=Z.useCallback((()=>{s(null),d(!1)}),[d]),h=Z.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},a=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...a,...function(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}(t.getBoundingClientRect())]);s(o),d(!0)}),[d]);return Z.useEffect((()=>()=>p()),[p]),Z.useEffect((()=>{if(l&&u){const e=e=>h(e,u),t=e=>h(e,l);return l.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[l,u,h,p]),Z.useEffect((()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==u?void 0:u.contains(t)),a=!function(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const e=t[o].x,s=t[o].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-e)*(r-s)/(c-s)+e&&(a=!a)}return a}(n,i);r?p():a&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,u,i,c,p]),Vh.jsx(sG,{...e,ref:o})})),[oG,iG]=BV(YV,{isInside:!1}),sG=Z.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=e,l=XV(nG,n),c=zV(n),{onClose:u}=l;return Z.useEffect((()=>(document.addEventListener(VV,u),()=>document.removeEventListener(VV,u))),[u]),Z.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;(null==t?void 0:t.contains(l.trigger))&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,u]),Vh.jsx(CU,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:Vh.jsxs(OV,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[Vh.jsx(gU,{children:r}),Vh.jsx(oG,{scope:n,isInside:!0,children:Vh.jsx(jV,{id:l.contentId,role:"tooltip",children:a||r})})]})})}));rG.displayName=nG;var lG="TooltipArrow",cG=Z.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=zV(n);return iG(lG,n).isInside?null:Vh.jsx(PV,{...a,...r,ref:t})}));cG.displayName=lG;var uG=qV,dG=JV,pG=rG,hG=cG;const fG=Z.createContext(void 0),mG=({children:e,...t})=>{const n=rU();return Vh.jsx(fG.Provider,{value:{...n,...t},children:Vh.jsx(iU,{children:Vh.jsx(uG,{children:e})})})},gG=()=>{const e=Z.useContext(fG);if(!e)throw new Error("useChat must be used within a ChatProvider");return e},yG=Z.createContext(void 0);function bG({children:e}){const t=function(){var e;const[t,n]=Z.useState(null),{value:r,setTrue:a,setFalse:o}=Yh(!1),[i,s]=Z.useState({title:"",content:""}),[l,c]=Z.useState({title:void 0,content:void 0}),{addAttachment:u}=gG(),d={data:i,errors:l,labels:{title:(null==(e=null==t?void 0:t.workflowModalProps)?void 0:e.titleInputLabel)||"Title",content:(null==t?void 0:t.contentType.contentInputLabel)||"Content"},validate(){const e={};return i.title.trim()||(e.title=`${d.labels.title} is required`),i.content.trim()||(e.content=`${d.labels.content} is required`),e},onChange(e){const{name:t,value:n}=e.target;s((e=>({...e,[t]:n})))},onSubmit(e){if(e.preventDefault(),!(null==t?void 0:t.contentType))return;const n=d.validate();if(Object.values(n).some((e=>!!e)))return void c(n);const r={...i,id:Kh(),contentType:t.contentType};u(r),o(),s({title:"",content:""}),c({title:void 0,content:void 0})}};return{selectedInput:t,selectInput:n,isOpen:r,onOpen:a,onClose:o,form:d}}();return Vh.jsx(yG.Provider,{value:t,children:e})}const vG=()=>{const e=Z.useContext(yG);if(!e)throw new Error("useAttachmentsBar must be used within a AttachmentsBarProvider");return e},kG=Z.createContext(void 0),wG=({children:e,name:t})=>{const n=Z.useRef(null);return Vh.jsx(kG.Provider,{value:{name:t,focusItem:n},children:e})},xG=()=>{const e=Z.useContext(kG);if(!e)throw new Error("useFeedbackItem must be used within a FeedbackItemProvider");return e},EG=Z.createContext(void 0),_G=({children:e,field:t,fieldProps:n,autoFocus:r})=>{const{errors:a}=qz(),o=a[t.name];return Vh.jsx(EG.Provider,{value:{field:t,fieldProps:n,error:o,autoFocus:r},children:e})},SG=()=>{const e=Z.useContext(EG);if(!e)throw new Error("useFormField must be used within a FormFieldProvider");return e},TG=Z.createContext(void 0);const CG=({children:e,value:t})=>Vh.jsx(TG.Provider,{value:t,children:e}),AG=Z.createContext(void 0);function NG({children:e}){const[t,n]=J.useState(null),{value:r,setTrue:a,setFalse:o}=Yh(!1);return Vh.jsx(AG.Provider,{value:{selectedItem:t,selectItem:n,isOpen:r,onOpen:a,onClose:o},children:e})}const IG=()=>{const e=Z.useContext(AG);if(!e)throw new Error("useMessageAttachments must be used within a MessageAttachmentsProvider");return e},RG=Z.createContext(void 0),OG=({children:e,message:t})=>Vh.jsx(RG.Provider,{value:{message:t},children:e}),PG=()=>{const e=Z.useContext(RG);if(!e)throw new Error("useMessage must be used within a MessageProvider");return e},LG=["light","dark"],DG="(prefers-color-scheme: dark)",MG="undefined"==typeof window,FG=Z.createContext(void 0),jG={setColorMode:e=>{},colorModes:[]};function BG(e,t){const n=Z.useContext(FG)??jG;return"dark"===(n.forcedColorMode??n.resolvedColorMode)?t:e}const HG=e=>(Z.useContext(FG),Vh.jsx(UG,{...e})),zG=["light","dark"],UG=({forcedColorMode:e,disableTransitionOnChange:t=!1,enableSystem:n=!1,enableColorScheme:r=!0,storageKey:a="inkeep-colorMode",colorModes:o=zG,defaultColorMode:i=(n?"system":"light"),attribute:s="data-theme",value:l,children:c,nonce:u,shadowHostId:d,rootId:p})=>{const[h,f]=Z.useState((()=>VG(a,i))),[m,g]=Z.useState((()=>VG(a))),y=l?Object.values(l):o,b=Z.useCallback((e=>{var a;let o=e;if(!o)return;"system"===e&&n&&(o=WG());const c=l?l[o]:o,u=t?GG():null,h=d&&p&&(null==(a=document.getElementById(d))?void 0:a.shadowRoot),f=h?h.getElementById(p)??document.documentElement:document.documentElement;if("class"===s?(f.classList.remove(...y),c&&f.classList.add(c)):c?f.setAttribute(s,c):f.removeAttribute(s),r){const e=LG.includes(i)?i:null,t=LG.includes(o)?o:e;f.style.colorScheme=t}null==u||u()}),[]),v=Z.useCallback((e=>{f(e);try{localStorage.setItem(a,e)}catch(dee){}}),[e]),k=Z.useCallback((t=>{const r=WG(t);g(r),"system"===h&&n&&!e&&b("system")}),[h,e]);Z.useEffect((()=>{const e=window.matchMedia(DG);return e.addListener(k),k(e),()=>e.removeListener(k)}),[k]),Z.useEffect((()=>{const e=e=>{if(e.key!==a)return;const t=e.newValue||i;v(t)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[v]),Z.useEffect((()=>{b(e??h)}),[e,h]);const w=Z.useMemo((()=>({colorMode:h,setColorMode:v,forcedColorMode:e,resolvedColorMode:"system"===h?m:h,colorModes:n?[...o,"system"]:o,systemColorMode:n?m:void 0})),[h,v,e,m,n,o]);return Vh.jsxs(FG.Provider,{value:w,children:[Vh.jsx($G,{forcedColorMode:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:a,colorModes:o,defaultColorMode:i,attribute:s,value:l,children:c,attrs:y,nonce:u,shadowHostId:d,rootId:p}),c]})},$G=Z.memo((({forcedColorMode:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultColorMode:o,value:i,attrs:s,nonce:l,shadowHostId:c,rootId:u})=>{const d="system"===o,p=(()=>{const e=c&&u?`document.getElementById('${c}').shadowRoot.getElementById('${u}')`:"document.documentElement";if("class"===n){return`var d=${e},c=d.classList;${`c.remove(${s.map((e=>`'${e}'`)).join(",")})`};`}return`var d=${e},n='${n}',s='setAttribute';`})(),h=(()=>{if(!a)return"";return(LG.includes(o)?o:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e"})(),f=(e,t=!1,r=!0)=>{const o=i?i[e]:e,s=t?`${e}|| ''`:`'${o}'`;let l="";return a&&r&&!t&&LG.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},m=e?`!function(){${p}${f(e)}}()`:r?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${DG}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${d?"":`else{${f(o,!1,!1)}}`}${h}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${h}}catch(t){}}();`;return Vh.jsx("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),(()=>!0)),VG=(e,t)=>{if(MG)return;let n;try{n=localStorage.getItem(e)||void 0}catch(dee){}return n||t},GG=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout((()=>{document.head.removeChild(e)}),1)}},WG=e=>{e||(e=window.matchMedia(DG));return e.matches?"dark":"light"};var qG=Object.prototype.hasOwnProperty;function YG(e,t,n){for(n of e.keys())if(KG(n,t))return n}function KG(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&KG(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((a=r)&&"object"==typeof a&&!(a=YG(t,a)))return!1;if(!t.has(a))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((a=r[0])&&"object"==typeof a&&!(a=YG(t,a)))return!1;if(!KG(r[1],t.get(a)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(qG.call(e,n)&&++r&&!qG.call(t,n))return!1;if(!(n in t)||!KG(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function XG(){const{baseSettings:e}=JO(),[t,n]=Z.useState([]),r=function(e){const t=Z.useRef(void 0);KG(t.current,e)||(t.current=e);return t.current}(e.theme.styles),{customStyles:a,linksCount:o}=Z.useMemo((()=>{if(!r||!Array.isArray(r))return{customStyles:null,loaded:!0};const{links:e,styleSheets:t}=r.reduce(((e,t)=>("link"===t.type?e.links.push(t):"style"===t.type&&e.styleSheets.push(t),e)),{links:[],styleSheets:[]}),a=t.map((e=>Vh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:e.value}},e.key??Qh("link_")))),o=e.map((e=>{const t=e.key??Qh("stylesheet_");return Vh.jsx("link",{id:t,rel:"stylesheet",type:"text/css",href:e.value,onLoad:()=>{n((t=>[...new Set([...t,e.value])]))}},t)}));return{customStyles:Vh.jsxs(Vh.Fragment,{children:[o,a]}),linksCount:e.length}}),[r]);return{customStyles:a,loaded:t.length>=(o??0)}}const QG=({children:e})=>{const{baseSettings:t}=JO(),{theme:n,primaryBrandColor:r,shadowHost:a,rootElement:o,colorMode:i}=t,{primaryColors:s,varsClassName:l}=n,{disableLoadingDefaultFont:c,fontFamily:d,fontSize:p,spacing:h,borderRadius:f,zIndex:m}=n,g=_x(s,r),y=function(e){const t={};for(const[n,r]of Object.entries(e)){const e=Tx[n]||n,a=(n,r=[])=>{for(const[o,i]of Object.entries(n)){const n=[...r,o];if("object"==typeof i&&null!==i)a(i,n);else{const r=n.map((e=>e.replace(/([A-Z])/g,"-$1").replace(/\./g,"_").toLowerCase())).join("-");t[`--ikp-${e}-${r}`]=i}}};a(r)}return t}({colors:u(n.colors,g),fontFamily:d,fontSize:p,spacing:h,borderRadius:f,zIndex:m}),{customStyles:b,loaded:v}=XG(),{sync:k,forcedColorMode:w,...x}=i??{},[E,_]=Z.useState(),S=Z.useRef(null);return Z.useEffect((()=>{var e,t;if(!(null==k?void 0:k.target))return;const n="string"==typeof k.target?document.querySelector(k.target):k.target;if(!n)return;function r(e,t){return t.reduce(((t,n)=>({...t,[n]:e.getAttribute(n)})),{})}const a=new MutationObserver((()=>{var e,t;const a=r(n,k.attributes),o=(null==(e=k.isDarkMode)?void 0:e.call(k,a))?"dark":"light";null==(t=k.onChange)||t.call(k,o),_(o)}));a.observe(n,{attributes:!0,attributeFilter:k.attributes,childList:!1,subtree:!1}),S.current=a;const o=(null==(e=k.isDarkMode)?void 0:e.call(k,r(n,null==k?void 0:k.attributes)))?"dark":"light";return null==(t=k.onChange)||t.call(k,o),_(o),()=>a.disconnect()}),[k]),Vh.jsxs(Vh.Fragment,{children:[!c&&Vh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');\n "}}),b,v&&Vh.jsx(HG,{forcedColorMode:w??E,...x,shadowHostId:null==a?void 0:a.id,rootId:null==o?void 0:o.id,children:Vh.jsx("div",{className:l,style:{display:"contents",...y},children:e})})]})};function ZG(e){const{children:t,config:n,componentType:r}=e;return Vh.jsx(ZO,{value:{...n,componentType:r},children:Vh.jsx(QG,{children:Vh.jsx(dP,{children:Vh.jsx(fP,{children:t})})})})}const JG=Z.createContext(void 0),eW=({children:e,source:t})=>Vh.jsx(JG.Provider,{value:{source:t},children:e}),tW=()=>{const e=Z.useContext(JG);if(!e)throw new Error("useSourceItem must be used within a SourceItemProvider");return e};function nW(e){const t=Z.useRef(e);return Z.useEffect((()=>{t.current=e})),Z.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function rW({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=function({defaultProp:e,onChange:t}){const n=Z.useState(e),[r]=n,a=Z.useRef(r),o=nW(t);return Z.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=nW(n);return[i,Z.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}const aW=Z.createContext(void 0),oW=({children:e,value:t})=>Vh.jsx(aW.Provider,{value:t,children:e}),iW=()=>{const e=Z.useContext(aW);if(!e)throw new Error("useSidebarChat must be used within a SidebarChatProvider");return e};var sW=Z.useLayoutEffect,lW=function(e,t){"function"!=typeof e?e.current=t:e(t)},cW={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},uW=function(e){Object.keys(cW).forEach((function(t){e.style.setProperty(t,cW[t],"important")}))},dW=null,pW=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var hW=function(){},fW=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],mW=!!document.documentElement.currentStyle,gW=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,fW.reduce((function(e,t){return e[t]=n[t],e}),{})),a=r.boxSizing;return""===a?null:(mW&&"border-box"===a&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})};function yW(e,t,n){var r,a,o=(r=n,a=J.useRef(r),sW((function(){a.current=r})),a);Z.useLayoutEffect((function(){var n=function(e){return o.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var bW=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],vW=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,a=e.minRows,o=e.onChange,i=void 0===o?hW:o,s=e.onHeightChange,l=void 0===s?hW:s,c=jB(e,bW),u=void 0!==c.value,d=Z.useRef(null),p=function(e,t){var n=J.useRef();return J.useCallback((function(r){e.current=r,n.current&&lW(n.current,null),n.current=t,t&&lW(t,r)}),[t])}(d,t),h=Z.useRef(0),f=Z.useRef(),m=function(){var e=d.current,t=n&&f.current?f.current:gW(e);if(t){f.current=t;var o=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),dW||((dW=document.createElement("textarea")).setAttribute("tabindex","-1"),dW.setAttribute("aria-hidden","true"),uW(dW)),null===dW.parentNode&&document.body.appendChild(dW);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach((function(e){var t=e;dW.style[t]=i[t]})),uW(dW),dW.value=t;var l=pW(dW,e);dW.value=t,l=pW(dW,e),dW.value="x";var c=dW.scrollHeight-a,u=c*n;"border-box"===s&&(u=u+a+o),l=Math.max(u,l);var d=c*r;return"border-box"===s&&(d=d+a+o),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",a,r),i=o[0],s=o[1];h.current!==i&&(h.current=i,e.style.setProperty("height",i+"px","important"),l(i,{rowHeight:s}))}};return Z.useLayoutEffect(m),function(e,t){yW(document.body,"reset",(function(n){e.current.form===n.target&&t(n)}))}(d,(function(){if(!u){var e=d.current,t=e.value;requestAnimationFrame((function(){t!==e.value&&m()}))}})),yW(window,"resize",m),function(e){yW(document.fonts,"loadingdone",e)}(m),Z.createElement("textarea",BB({},c,{onChange:function(e){u||m(),i(e)},ref:p}))},kW=Z.forwardRef(vW),wW="Avatar",[xW,EW]=pU(wW),[_W,SW]=xW(wW),TW=Z.forwardRef(((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,o]=Z.useState("idle");return Vh.jsx(_W,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:o,children:Vh.jsx(vU.span,{...r,ref:t})})}));TW.displayName=wW;var CW="AvatarImage",AW=Z.forwardRef(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...o}=e,i=SW(CW,n),s=function(e,t){const[n,r]=Z.useState("idle");return IU((()=>{if(!e)return void r("error");let n=!0;const a=new window.Image,o=e=>()=>{n&&r(e)};return r("loading"),a.onload=o("loaded"),a.onerror=o("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{n=!1}}),[e,t]),n}(r,o.referrerPolicy),l=kU((e=>{a(e),i.onImageLoadingStatusChange(e)}));return IU((()=>{"idle"!==s&&l(s)}),[s,l]),"loaded"===s?Vh.jsx(vU.img,{...o,ref:t,src:r}):null}));AW.displayName=CW;var NW="AvatarFallback",IW=Z.forwardRef(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,o=SW(NW,n),[i,s]=Z.useState(void 0===r);return Z.useEffect((()=>{if(void 0!==r){const e=window.setTimeout((()=>s(!0)),r);return()=>window.clearTimeout(e)}}),[r]),i&&"loaded"!==o.imageLoadingStatus?Vh.jsx(vU.span,{...a,ref:t}):null}));IW.displayName=NW;var RW=TW,OW=AW,PW=IW;var LW="Checkbox",[DW,MW]=pU(LW),[FW,jW]=DW(LW),BW=Z.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[p,h]=Z.useState(null),f=dU(t,(e=>h(e))),m=Z.useRef(!1),g=!p||(u||!!p.closest("form")),[y=!1,b]=MV({prop:a,defaultProp:o,onChange:c}),v=Z.useRef(y);return Z.useEffect((()=>{const e=null==p?void 0:p.form;if(e){const t=()=>b(v.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[p,b]),Vh.jsxs(FW,{scope:n,state:y,disabled:s,children:[Vh.jsx(vU.button,{type:"button",role:"checkbox","aria-checked":$W(y)?"mixed":y,"aria-required":i,"data-state":VW(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:f,onKeyDown:lU(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:lU(e.onClick,(e=>{b((e=>!!$W(e)||!e)),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),g&&Vh.jsx(UW,{control:p,bubbles:!m.current,name:r,value:l,checked:y,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:!$W(o)&&o})]})}));BW.displayName=LW;var HW="CheckboxIndicator",zW=Z.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=jW(HW,n);return Vh.jsx(LV,{present:r||$W(o.state)||!0===o.state,children:Vh.jsx(vU.span,{"data-state":VW(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})}));zW.displayName=HW;var UW=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:a,...o}=e,i=Z.useRef(null),s=function(e){const t=Z.useRef({value:e,previous:e});return Z.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n),l=dV(t);Z.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=$W(n),a.call(e,!$W(n)&&n),e.dispatchEvent(t)}}),[s,n,r]);const c=Z.useRef(!$W(n)&&n);return Vh.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function $W(e){return"indeterminate"===e}function VW(e){return $W(e)?"indeterminate":e?"checked":"unchecked"}var GW=BW,WW=zW,qW=Z.forwardRef(((e,t)=>{const{children:n,...r}=e,a=Z.Children.toArray(n),o=a.find(XW);if(o){const e=o.props.children,n=a.map((t=>t===o?Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null:t));return Vh.jsx(YW,{...r,ref:t,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,n):null})}return Vh.jsx(YW,{...r,ref:t,children:n})}));qW.displayName="Slot";var YW=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;if(Z.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Z.Fragment&&(a.ref=t?uU(t,e):e),Z.cloneElement(n,a)}return Z.Children.count(n)>1?Z.Children.only(null):null}));YW.displayName="SlotClone";var KW=({children:e})=>Vh.jsx(Vh.Fragment,{children:e});function XW(e){return Z.isValidElement(e)&&e.type===KW}var QW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=Z.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?qW:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Vh.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});var ZW,JW="dismissableLayer.update",eq="dismissableLayer.pointerDownOutside",tq="dismissableLayer.focusOutside",nq=Z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rq=Z.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=Z.useContext(nq),[u,d]=Z.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=Z.useState({}),f=dU(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=kU(e),r=Z.useRef(!1),a=Z.useRef((()=>{}));return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){oq(eq,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=kU(e),r=Z.useRef(!1);return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){oq(tq,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return wU((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),Z.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(ZW=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),aq(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=ZW)}}),[u,p,n,c]),Z.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),aq())}),[u,c]),Z.useEffect((()=>{const e=()=>h({});return document.addEventListener(JW,e),()=>document.removeEventListener(JW,e)}),[]),Vh.jsx(QW.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:lU(e.onFocusCapture,x.onFocusCapture),onBlurCapture:lU(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:lU(e.onPointerDownCapture,w.onPointerDownCapture)})}));rq.displayName="DismissableLayer";function aq(){const e=new CustomEvent(JW);document.dispatchEvent(e)}function oq(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&ue.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}Z.forwardRef(((e,t)=>{const n=Z.useContext(nq),r=Z.useRef(null),a=dU(t,r);return Z.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),Vh.jsx(QW.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var iq=0;function sq(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var lq="focusScope.autoFocusOnMount",cq="focusScope.autoFocusOnUnmount",uq={bubbles:!1,cancelable:!0},dq=Z.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=Z.useState(null),c=kU(a),u=kU(o),d=Z.useRef(null),p=dU(t,(e=>l(e))),h=Z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Z.useEffect((()=>{if(r){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:mq(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||mq(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&mq(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,h.paused]),Z.useEffect((()=>{if(s){gq.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(lq,uq);s.addEventListener(lq,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(mq(r,{select:t}),document.activeElement!==n)return}((e=pq(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&mq(s))}return()=>{s.removeEventListener(lq,c),setTimeout((()=>{const e=new CustomEvent(cq,uq);s.addEventListener(cq,u),s.dispatchEvent(e),e.defaultPrevented||mq(t??document.body,{select:!0}),s.removeEventListener(cq,u),gq.remove(h)}),0)}}var e}),[s,c,u,h]);const f=Z.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=function(e){const t=pq(e),n=hq(t,e),r=hq(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&mq(o,{select:!0})):(e.preventDefault(),n&&mq(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,h.paused]);return Vh.jsx(QW.div,{tabIndex:-1,...i,ref:p,onKeyDown:f})}));function pq(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hq(e,t){for(const n of e)if(!fq(n,{upTo:t}))return n}function fq(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function mq(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}dq.displayName="FocusScope";var gq=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=yq(e,t),e.unshift(t)},remove(t){var n;e=yq(e,t),null==(n=e[0])||n.resume()}}}();function yq(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var bq=Z.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return Vh.jsx(QW.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Vh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));bq.displayName="Arrow";var vq=bq,kq="Popper",[wq,xq]=pU(kq),[Eq,_q]=wq(kq),Sq=e=>{const{__scopePopper:t,children:n}=e,[r,a]=Z.useState(null);return Vh.jsx(Eq,{scope:t,anchor:r,onAnchorChange:a,children:n})};Sq.displayName=kq;var Tq="PopperAnchor",Cq=Z.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=_q(Tq,n),i=Z.useRef(null),s=dU(t,i);return Z.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:Vh.jsx(QW.div,{...a,ref:s})}));Cq.displayName=Tq;var Aq="PopperContent",[Nq,Iq]=wq(Aq),Rq=Z.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=_q(Aq,l),[E,_]=Z.useState(null),S=dU(t,(e=>_(e))),[T,C]=Z.useState(null),A=dV(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(Dq),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=eV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>H$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[nV({mainAxis:u+I,alignmentAxis:p}),f&&rV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?aV():void 0,...D}),f&&oV({...D}),iV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&lV({element:T,padding:h}),Mq({arrowWidth:N,arrowHeight:I}),b&&sV({strategy:"referenceHidden",...D})]}),[z,U]=Fq(j),$=kU(k);IU((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=Z.useState();return IU((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),Vh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Vh.jsx(Nq,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:Vh.jsx(QW.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));Rq.displayName=Aq;var Oq="PopperArrow",Pq={top:"bottom",right:"left",bottom:"top",left:"right"},Lq=Z.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=Iq(Oq,n),o=Pq[a.placedSide];return Vh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:Vh.jsx(vq,{...r,ref:t,style:{...r.style,display:"block"}})})}));function Dq(e){return null!==e}Lq.displayName=Oq;var Mq=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=Fq(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function Fq(e){const[t,n="center"]=e.split("-");return[t,n]}var jq=Sq,Bq=Cq,Hq=Rq,zq=Lq,Uq=new WeakMap,$q=new WeakMap,Vq={},Gq=0,Wq=function(e){return e&&(e.host||Wq(e.parentNode))},qq=function(e,t,n,r){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Wq(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Vq[n]||(Vq[n]=new WeakMap);var o=Vq[n],i=[],s=new Set,l=new Set(a),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,l=(Uq.get(e)||0)+1,c=(o.get(e)||0)+1;Uq.set(e,l),o.set(e,c),i.push(e),1===l&&a&&$q.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(dee){console.error("aria-hidden: cannot operate on ",e,dee)}}))};return u(t),s.clear(),Gq++,function(){i.forEach((function(e){var t=Uq.get(e)-1,a=o.get(e)-1;Uq.set(e,t),o.set(e,a),t||($q.has(e)||e.removeAttribute(r),$q.delete(e)),a||e.removeAttribute(n)})),--Gq||(Uq=new WeakMap,Uq=new WeakMap,$q=new WeakMap,Vq={})}},Yq=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),qq(r,a,n,"aria-hidden")):function(){return null}},Kq="right-scroll-bar-position",Xq="width-before-scroll-bar";function Qq(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Zq="undefined"!=typeof window?Z.useLayoutEffect:Z.useEffect,Jq=new WeakMap;function eY(e,t){var n,r,a,o=(n=null,r=function(t){return e.forEach((function(e){return Qq(e,t)}))},(a=Z.useState((function(){return{value:n,callback:r,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=r,a.facade);return Zq((function(){var t=Jq.get(o);if(t){var n=new Set(t),r=new Set(e),a=o.current;n.forEach((function(e){r.has(e)||Qq(e,null)})),r.forEach((function(e){n.has(e)||Qq(e,a)}))}Jq.set(o,e)}),[e]),o}function tY(e){return e}var nY=function(e){var t=e.sideCar,n=UB(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Z.createElement(r,zB({},n))};nY.isSideCarExport=!0;var rY=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=tY);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=zB({async:!0,ssr:!1},e),t}(),aY=function(){},oY=Z.forwardRef((function(e,t){var n=Z.useRef(null),r=Z.useState({onScrollCapture:aY,onWheelCapture:aY,onTouchMoveCapture:aY}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,h=e.noRelative,f=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,v=e.gapMode,k=UB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=eY([n,t]),E=zB(zB({},k),a);return Z.createElement(Z.Fragment,null,u&&Z.createElement(w,{sideCar:rY,removeScrollBar:c,shards:d,noRelative:h,noIsolation:f,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:v}),i?Z.cloneElement(Z.Children.only(s),zB(zB({},E),{ref:x})):Z.createElement(b,zB({},E,{className:l,ref:x}),s))}));oY.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},oY.classNames={fullWidth:Xq,zeroRight:Kq};function iY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var sY=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=iY())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lY=function(){var e,t=(e=sY(),function(t,n){Z.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},cY={left:0,top:0,right:0,gap:0},uY=function(e){return parseInt(e||"",10)||0},dY=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return cY;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[uY(n),uY(r),uY(a)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pY=lY(),hY="data-scroll-locked",fY=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(hY,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Kq," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Xq," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Kq," .").concat(Kq," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Xq," .").concat(Xq," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(hY,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},mY=function(){var e=parseInt(document.body.getAttribute(hY)||"0",10);return isFinite(e)?e:0},gY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;Z.useEffect((function(){return document.body.setAttribute(hY,(mY()+1).toString()),function(){var e=mY()-1;e<=0?document.body.removeAttribute(hY):document.body.setAttribute(hY,e.toString())}}),[]);var o=Z.useMemo((function(){return dY(a)}),[a]);return Z.createElement(pY,{styles:fY(o,!t,a,n?"":"!important")})},yY=!1;if("undefined"!=typeof window)try{var bY=Object.defineProperty({},"passive",{get:function(){return yY=!0,!0}});window.addEventListener("test",bY,bY),window.removeEventListener("test",bY,bY)}catch(dEe){yY=!1}var vY=!!yY&&{passive:!1},kY=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},wY=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),xY(e,r)){var a=EY(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xY=function(e,t){return"v"===e?function(e){return kY(e,"overflowY")}(t):function(e){return kY(e,"overflowX")}(t)},EY=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},_Y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},SY=function(e){return[e.deltaX,e.deltaY]},TY=function(e){return e&&"current"in e?e.current:e},CY=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},AY=0,NY=[];function IY(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const RY=(OY=function(e){var t=Z.useRef([]),n=Z.useRef([0,0]),r=Z.useRef(),a=Z.useState(AY++)[0],o=Z.useState(lY)[0],i=Z.useRef(e);Z.useEffect((function(){i.current=e}),[e]),Z.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=$B([e.lockRef.current],(e.shards||[]).map(TY),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=Z.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=_Y(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=wY(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=wY(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=a),!a)return!0;var h=r.current||a;return function(e,t,n,r){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=a*r,i=n.target,s=t.contains(i),l=!1,c=o>0,u=0,d=0;do{if(!i)break;var p=EY(e,i),h=p[0],f=p[1]-p[2]-a*h;(h||f)&&xY(e,i)&&(u+=f,d+=h);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)}),[]),l=Z.useCallback((function(e){var n=e;if(NY.length&&NY[NY.length-1]===o){var r="deltaY"in n?SY(n):_Y(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,a=r,t[0]===a[0]&&t[1]===a[1]);var t,a}))[0];if(a&&a.should)n.cancelable&&n.preventDefault();else if(!a){var l=(i.current.shards||[]).map(TY).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=Z.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:IY(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=Z.useCallback((function(e){n.current=_Y(e),r.current=void 0}),[]),d=Z.useCallback((function(t){c(t.type,SY(t),t.target,s(t,e.lockRef.current))}),[]),p=Z.useCallback((function(t){c(t.type,_Y(t),t.target,s(t,e.lockRef.current))}),[]);Z.useEffect((function(){return NY.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,vY),document.addEventListener("touchmove",l,vY),document.addEventListener("touchstart",u,vY),function(){NY=NY.filter((function(e){return e!==o})),document.removeEventListener("wheel",l,vY),document.removeEventListener("touchmove",l,vY),document.removeEventListener("touchstart",u,vY)}}),[]);var h=e.removeScrollBar,f=e.inert;return Z.createElement(Z.Fragment,null,f?Z.createElement(o,{styles:CY(a)}):null,h?Z.createElement(gY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},rY.useMedium(OY),nY);var OY,PY=Z.forwardRef((function(e,t){return Z.createElement(oY,zB({},e,{ref:t,sideCar:RY}))}));PY.classNames=oY.classNames;var LY="Popover",[DY,MY]=pU(LY,[xq]),FY=xq(),[jY,BY]=DY(LY),HY=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,s=FY(t),l=Z.useRef(null),[c,u]=Z.useState(!1),[d=!1,p]=MV({prop:r,defaultProp:a,onChange:o});return Vh.jsx(jq,{...s,children:Vh.jsx(jY,{scope:t,contentId:PU(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:Z.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:c,onCustomAnchorAdd:Z.useCallback((()=>u(!0)),[]),onCustomAnchorRemove:Z.useCallback((()=>u(!1)),[]),modal:i,children:n})})};HY.displayName=LY;var zY="PopoverAnchor";Z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=BY(zY,n),o=FY(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=a;return Z.useEffect((()=>(i(),()=>s())),[i,s]),Vh.jsx(Bq,{...o,...r,ref:t})})).displayName=zY;var UY="PopoverTrigger",$Y=Z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=BY(UY,n),o=FY(n),i=dU(t,a.triggerRef),s=Vh.jsx(QW.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":JY(a.open),...r,ref:i,onClick:lU(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?s:Vh.jsx(Bq,{asChild:!0,...o,children:s})}));$Y.displayName=UY;var[VY,GY]=DY("PopoverPortal",{forceMount:void 0}),WY="PopoverContent",qY=Z.forwardRef(((e,t)=>{const n=GY(WY,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,o=BY(WY,e.__scopePopover);return Vh.jsx(LV,{present:r||o.open,children:o.modal?Vh.jsx(YY,{...a,ref:t}):Vh.jsx(KY,{...a,ref:t})})}));qY.displayName=WY;var YY=Z.forwardRef(((e,t)=>{const n=BY(WY,e.__scopePopover),r=Z.useRef(null),a=dU(t,r),o=Z.useRef(!1);return Z.useEffect((()=>{const e=r.current;if(e)return Yq(e)}),[]),Vh.jsx(PY,{as:qW,allowPinchZoom:!0,children:Vh.jsx(XY,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lU(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),o.current||null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:lU(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:lU(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),KY=Z.forwardRef(((e,t)=>{const n=BY(WY,e.__scopePopover),r=Z.useRef(!1),a=Z.useRef(!1);return Vh.jsx(XY,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),XY=Z.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=BY(WY,n),h=FY(n);return Z.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sq()),document.body.insertAdjacentElement("beforeend",e[1]??sq()),iq++,()=>{1===iq&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),iq--}}),[]),Vh.jsx(dq,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:Vh.jsx(rq,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:Vh.jsx(Hq,{"data-state":JY(p.open),role:"dialog",id:p.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),QY="PopoverClose";Z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=BY(QY,n);return Vh.jsx(QW.button,{type:"button",...r,ref:t,onClick:lU(e.onClick,(()=>a.onOpenChange(!1)))})})).displayName=QY;var ZY=Z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=FY(n);return Vh.jsx(zq,{...a,...r,ref:t})}));function JY(e){return e?"open":"closed"}ZY.displayName="PopoverArrow";var eK=HY,tK=$Y,nK=qY,rK=ZY,aK=Z.createContext(void 0);var oK="ScrollArea",[iK,sK]=pU(oK),[lK,cK]=iK(oK),uK=Z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:o=600,...i}=e,[s,l]=Z.useState(null),[c,u]=Z.useState(null),[d,p]=Z.useState(null),[h,f]=Z.useState(null),[m,g]=Z.useState(null),[y,b]=Z.useState(0),[v,k]=Z.useState(0),[w,x]=Z.useState(!1),[E,_]=Z.useState(!1),S=dU(t,(e=>l(e))),T=function(e){const t=Z.useContext(aK);return e||t||"ltr"}(a);return Vh.jsx(lK,{scope:n,type:r,dir:T,scrollHideDelay:o,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:h,onScrollbarXChange:f,scrollbarXEnabled:w,onScrollbarXEnabledChange:x,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:E,onScrollbarYEnabledChange:_,onCornerWidthChange:b,onCornerHeightChange:k,children:Vh.jsx(vU.div,{dir:T,...i,ref:S,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})}));uK.displayName=oK;var dK="ScrollAreaViewport",pK=Z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...o}=e,i=cK(dK,n),s=dU(t,Z.useRef(null),i.onViewportChange);return Vh.jsxs(Vh.Fragment,{children:[Vh.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),Vh.jsx(vU.div,{"data-radix-scroll-area-viewport":"",...o,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:Vh.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})}));pK.displayName=dK;var hK="ScrollAreaScrollbar",fK=Z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=cK(hK,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=a,s="horizontal"===e.orientation;return Z.useEffect((()=>(s?o(!0):i(!0),()=>{s?o(!1):i(!1)})),[s,o,i]),"hover"===a.type?Vh.jsx(mK,{...r,ref:t,forceMount:n}):"scroll"===a.type?Vh.jsx(gK,{...r,ref:t,forceMount:n}):"auto"===a.type?Vh.jsx(yK,{...r,ref:t,forceMount:n}):"always"===a.type?Vh.jsx(bK,{...r,ref:t}):null}));fK.displayName=hK;var mK=Z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=cK(hK,e.__scopeScrollArea),[o,i]=Z.useState(!1);return Z.useEffect((()=>{const e=a.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout((()=>i(!1)),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[a.scrollArea,a.scrollHideDelay]),Vh.jsx(LV,{present:n||o,children:Vh.jsx(yK,{"data-state":o?"visible":"hidden",...r,ref:t})})})),gK=Z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=cK(hK,e.__scopeScrollArea),o="horizontal"===e.orientation,i=FK((()=>l("SCROLL_END")),100),[s,l]=(c="hidden",u={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},Z.useReducer(((e,t)=>u[e][t]??e),c));var c,u;return Z.useEffect((()=>{if("idle"===s){const e=window.setTimeout((()=>l("HIDE")),a.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,a.scrollHideDelay,l]),Z.useEffect((()=>{const e=a.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[a.viewport,o,l,i]),Vh.jsx(LV,{present:n||"hidden"!==s,children:Vh.jsx(bK,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:lU(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:lU(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})})})),yK=Z.forwardRef(((e,t)=>{const n=cK(hK,e.__scopeScrollArea),{forceMount:r,...a}=e,[o,i]=Z.useState(!1),s="horizontal"===e.orientation,l=FK((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}}),10);return jK(n.viewport,l),jK(n.content,l),Vh.jsx(LV,{present:r||o,children:Vh.jsx(bK,{"data-state":o?"visible":"hidden",...a,ref:t})})})),bK=Z.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,a=cK(hK,e.__scopeScrollArea),o=Z.useRef(null),i=Z.useRef(0),[s,l]=Z.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=RK(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(c>0&&c<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const a=OK(n),o=a/2,i=t||o,s=a-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d="ltr"===r?[0,u]:[-1*u,0];return LK([l,c],d)(e)}(e,i.current,s,t)}return"horizontal"===n?Vh.jsx(vK,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=PK(a.viewport.scrollLeft,s,a.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=d(e,a.dir))}}):"vertical"===n?Vh.jsx(kK,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=PK(a.viewport.scrollTop,s);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=d(e))}}):null})),vK=Z.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=cK(hK,e.__scopeScrollArea),[i,s]=Z.useState(),l=Z.useRef(null),c=dU(t,l,o.onScrollbarXChange);return Z.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),Vh.jsx(EK,{"data-orientation":"horizontal",...a,ref:c,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":OK(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),DK(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:IK(i.paddingLeft),paddingEnd:IK(i.paddingRight)}})}})})),kK=Z.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=cK(hK,e.__scopeScrollArea),[i,s]=Z.useState(),l=Z.useRef(null),c=dU(t,l,o.onScrollbarYChange);return Z.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),Vh.jsx(EK,{"data-orientation":"vertical",...a,ref:c,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":OK(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),DK(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:IK(i.paddingTop),paddingEnd:IK(i.paddingBottom)}})}})})),[wK,xK]=iK(hK),EK=Z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,h=cK(hK,n),[f,m]=Z.useState(null),g=dU(t,(e=>m(e))),y=Z.useRef(null),b=Z.useRef(""),v=h.viewport,k=r.content-r.viewport,w=kU(u),x=kU(l),E=FK(d,10);function _(e){if(y.current){const t=e.clientX-y.current.left,n=e.clientY-y.current.top;c({x:t,y:n})}}return Z.useEffect((()=>{const e=e=>{const t=e.target;(null==f?void 0:f.contains(t))&&w(e,k)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[v,f,k,w]),Z.useEffect(x,[r,x]),jK(f,E),jK(h.content,E),Vh.jsx(wK,{scope:n,scrollbar:f,hasThumb:a,onThumbChange:kU(o),onThumbPointerUp:kU(i),onThumbPositionChange:x,onThumbPointerDown:kU(s),children:Vh.jsx(vU.div,{...p,ref:g,style:{position:"absolute",...p.style},onPointerDown:lU(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),y.current=f.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),_(e)}})),onPointerMove:lU(e.onPointerMove,_),onPointerUp:lU(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,h.viewport&&(h.viewport.style.scrollBehavior=""),y.current=null}))})})})),_K="ScrollAreaThumb",SK=Z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=xK(_K,e.__scopeScrollArea);return Vh.jsx(LV,{present:n||a.hasThumb,children:Vh.jsx(TK,{ref:t,...r})})})),TK=Z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,o=cK(_K,n),i=xK(_K,n),{onThumbPositionChange:s}=i,l=dU(t,(e=>i.onThumbChange(e))),c=Z.useRef(void 0),u=FK((()=>{c.current&&(c.current(),c.current=void 0)}),100);return Z.useEffect((()=>{const e=o.viewport;if(e){const t=()=>{if(u(),!c.current){const t=MK(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,s]),Vh.jsx(vU.div,{"data-state":i.hasThumb?"visible":"hidden",...a,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:lU(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})})),onPointerUp:lU(e.onPointerUp,i.onThumbPointerUp)})}));SK.displayName=_K;var CK="ScrollAreaCorner",AK=Z.forwardRef(((e,t)=>{const n=cK(CK,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?Vh.jsx(NK,{...e,ref:t}):null}));AK.displayName=CK;var NK=Z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=cK(CK,n),[o,i]=Z.useState(0),[s,l]=Z.useState(0),c=Boolean(o&&s);return jK(a.scrollbarX,(()=>{var e;const t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),l(t)})),jK(a.scrollbarY,(()=>{var e;const t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),i(t)})),c?Vh.jsx(vU.div,{...r,ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null}));function IK(e){return e?parseInt(e,10):0}function RK(e,t){const n=e/t;return isNaN(n)?0:n}function OK(e){const t=RK(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function PK(e,t,n="ltr"){const r=OK(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,i=t.content-t.viewport,s=o-r,l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,i]:[-1*i,0]);return LK([0,i],[0,s])(l)}function LK(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function DK(e,t){return e>0&&e<t}var MK=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function a(){const o={left:e.scrollLeft,top:e.scrollTop},i=n.left!==o.left,s=n.top!==o.top;(i||s)&&t(),n=o,r=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(r)};function FK(e,t){const n=kU(e),r=Z.useRef(0);return Z.useEffect((()=>()=>window.clearTimeout(r.current)),[]),Z.useCallback((()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)}),[n,t])}function jK(e,t){const n=kU(t);IU((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}var BK=uK,HK=pK,zK=AK;function UK(e,[t,n]){return Math.min(n,Math.max(t,e))}function $K(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function VK(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>Z.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return Z.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=Z.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,c=Z.useMemo((()=>s),Object.values(s));return Vh.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,c=Z.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},GK(r,...t)]}function GK(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return Z.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function WK(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function qK(...e){return t=>{let n=!1;const r=e.map((e=>{const r=WK(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():WK(e[t],null)}}}}function YK(...e){return Z.useCallback(qK(...e),e)}function KK(e){const t=XK(e),n=Z.forwardRef(((e,n)=>{const{children:r,...a}=e,o=Z.Children.toArray(r),i=o.find(ZK);if(i){const e=i.props.children,r=o.map((t=>t===i?Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null:t));return Vh.jsx(t,{...a,ref:n,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,r):null})}return Vh.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function XK(e){const t=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;if(Z.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{const t=o(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Z.Fragment&&(a.ref=t?qK(t,e):e),Z.cloneElement(n,a)}return Z.Children.count(n)>1?Z.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var QK=Symbol("radix.slottable");function ZK(e){return Z.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===QK}var JK=Z.createContext(void 0);function eX(e){const t=Z.useContext(JK);return e||t||"ltr"}function tX(e){const t=rX(e),n=Z.forwardRef(((e,n)=>{const{children:r,...a}=e,o=Z.Children.toArray(r),i=o.find(oX);if(i){const e=i.props.children,r=o.map((t=>t===i?Z.Children.count(e)>1?Z.Children.only(null):Z.isValidElement(e)?e.props.children:null:t));return Vh.jsx(t,{...a,ref:n,children:Z.isValidElement(e)?Z.cloneElement(e,void 0,r):null})}return Vh.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}var nX=tX("Slot");function rX(e){const t=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;if(Z.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Z.Fragment&&(a.ref=t?qK(t,e):e),Z.cloneElement(n,a)}return Z.Children.count(n)>1?Z.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var aX=Symbol("radix.slottable");function oX(e){return Z.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===aX}var iX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=tX(`Primitive.${t}`),r=Z.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Vh.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});var sX,lX="dismissableLayer.update",cX="dismissableLayer.pointerDownOutside",uX="dismissableLayer.focusOutside",dX=Z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pX=Z.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=Z.useContext(dX),[u,d]=Z.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=Z.useState({}),f=YK(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=nW(e),r=Z.useRef(!1),a=Z.useRef((()=>{}));return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){fX(cX,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=nW(e),r=Z.useRef(!1);return Z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){fX(uX,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return function(e,t=(null==globalThis?void 0:globalThis.document)){const n=nW(e);Z.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),Z.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(sX=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),hX(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=sX)}}),[u,p,n,c]),Z.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),hX())}),[u,c]),Z.useEffect((()=>{const e=()=>h({});return document.addEventListener(lX,e),()=>document.removeEventListener(lX,e)}),[]),Vh.jsx(iX.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:$K(e.onFocusCapture,x.onFocusCapture),onBlurCapture:$K(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:$K(e.onPointerDownCapture,w.onPointerDownCapture)})}));pX.displayName="DismissableLayer";function hX(){const e=new CustomEvent(lX);document.dispatchEvent(e)}function fX(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&ue.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}Z.forwardRef(((e,t)=>{const n=Z.useContext(dX),r=Z.useRef(null),a=YK(t,r);return Z.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),Vh.jsx(iX.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var mX=0;function gX(){Z.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yX()),document.body.insertAdjacentElement("beforeend",e[1]??yX()),mX++,()=>{1===mX&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),mX--}}),[])}function yX(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var bX="focusScope.autoFocusOnMount",vX="focusScope.autoFocusOnUnmount",kX={bubbles:!1,cancelable:!0},wX=Z.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=Z.useState(null),c=nW(a),u=nW(o),d=Z.useRef(null),p=YK(t,(e=>l(e))),h=Z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Z.useEffect((()=>{if(r){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:SX(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||SX(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&SX(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,h.paused]),Z.useEffect((()=>{if(s){TX.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(bX,kX);s.addEventListener(bX,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(SX(r,{select:t}),document.activeElement!==n)return}((e=xX(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&SX(s))}return()=>{s.removeEventListener(bX,c),setTimeout((()=>{const e=new CustomEvent(vX,kX);s.addEventListener(vX,u),s.dispatchEvent(e),e.defaultPrevented||SX(t??document.body,{select:!0}),s.removeEventListener(vX,u),TX.remove(h)}),0)}}var e}),[s,c,u,h]);const f=Z.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=function(e){const t=xX(e),n=EX(t,e),r=EX(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&SX(o,{select:!0})):(e.preventDefault(),n&&SX(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,h.paused]);return Vh.jsx(iX.div,{tabIndex:-1,...i,ref:p,onKeyDown:f})}));function xX(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function EX(e,t){for(const n of e)if(!_X(n,{upTo:t}))return n}function _X(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function SX(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}wX.displayName="FocusScope";var TX=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=CX(e,t),e.unshift(t)},remove(t){var n;e=CX(e,t),null==(n=e[0])||n.resume()}}}();function CX(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var AX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=KK(`Primitive.${t}`),r=Z.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Vh.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),NX=Z.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return Vh.jsx(AX.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Vh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));NX.displayName="Arrow";var IX=NX;var RX="Popper",[OX,PX]=VK(RX),[LX,DX]=OX(RX),MX=e=>{const{__scopePopper:t,children:n}=e,[r,a]=Z.useState(null);return Vh.jsx(LX,{scope:t,anchor:r,onAnchorChange:a,children:n})};MX.displayName=RX;var FX="PopperAnchor",jX=Z.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=DX(FX,n),i=Z.useRef(null),s=YK(t,i);return Z.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:Vh.jsx(AX.div,{...a,ref:s})}));jX.displayName=FX;var BX="PopperContent",[HX,zX]=OX(BX),UX=Z.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=DX(BX,l),[E,_]=Z.useState(null),S=YK(t,(e=>_(e))),[T,C]=Z.useState(null),A=function(e){const[t,n]=Z.useState(void 0);return LO((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(WX),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=eV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>H$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[nV({mainAxis:u+I,alignmentAxis:p}),f&&rV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?aV():void 0,...D}),f&&oV({...D}),iV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&lV({element:T,padding:h}),qX({arrowWidth:N,arrowHeight:I}),b&&sV({strategy:"referenceHidden",...D})]}),[z,U]=YX(j),$=nW(k);LO((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=Z.useState();return LO((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),Vh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Vh.jsx(HX,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:Vh.jsx(AX.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));UX.displayName=BX;var $X="PopperArrow",VX={top:"bottom",right:"left",bottom:"top",left:"right"},GX=Z.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=zX($X,n),o=VX[a.placedSide];return Vh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:Vh.jsx(IX,{...r,ref:t,style:{...r.style,display:"block"}})})}));function WX(e){return null!==e}GX.displayName=$X;var qX=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=YX(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function YX(e){const[t,n="center"]=e.split("-");return[t,n]}var KX=MX,XX=jX,QX=UX,ZX=GX,JX=Z.forwardRef(((e,t)=>{var n;const{container:r,...a}=e,[o,i]=Z.useState(!1);LO((()=>i(!0)),[]);const s=r||o&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?de.createPortal(Vh.jsx(iX.div,{...a,ref:t}),s):null}));JX.displayName="Portal";const eQ=[" ","Enter","ArrowUp","ArrowDown"],tQ=[" ","Enter"],nQ="Select",[rQ,aQ,oQ]=function(e){const t=e+"CollectionProvider",[n,r]=VK(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=J.useRef(null),o=J.useRef(new Map).current;return Vh.jsx(a,{scope:t,itemMap:o,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=KK(s),c=J.forwardRef(((e,t)=>{const{scope:n,children:r}=e,a=YK(t,o(s,n).collectionRef);return Vh.jsx(l,{ref:a,children:r})}));c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=KK(u),h=J.forwardRef(((e,t)=>{const{scope:n,children:r,...a}=e,i=J.useRef(null),s=YK(t,i),l=o(u,n);return J.useEffect((()=>(l.itemMap.set(i,{ref:i,...a}),()=>{l.itemMap.delete(i)}))),Vh.jsx(p,{[d]:"",ref:s,children:r})}));return h.displayName=u,[{Provider:i,Slot:c,ItemSlot:h},function(t){const n=o(e+"CollectionConsumer",t);return J.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}(nQ),[iQ,sQ]=VK(nQ,[oQ,PX]),lQ=PX(),[cQ,uQ]=iQ(nQ),[dQ,pQ]=iQ(nQ),hQ=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:l,dir:c,disabled:u,required:d}=e,p=lQ(t),[h,f]=Z.useState(null),[m,g]=Z.useState(null),[y,b]=Z.useState(!1),v=eX(c),[k,w]=rW({prop:r,defaultProp:a??!1,onChange:o}),[x,E]=rW({prop:i,defaultProp:s,onChange:l}),_=Z.useRef(null),[S,T]=Z.useState(new Set);return Vh.jsx(KX,{...p,children:Vh.jsx(cQ,{required:d,scope:t,trigger:h,onTriggerChange:f,valueNode:m,onValueNodeChange:g,valueNodeHasChildren:y,onValueNodeHasChildrenChange:b,contentId:FO(),value:x,onValueChange:E,open:!!k,onOpenChange:w,dir:v,triggerPointerDownPosRef:_,disabled:u,children:Vh.jsx(rQ.Provider,{scope:t,children:Vh.jsx(dQ,{scope:e.__scopeSelect,onNativeOptionAdd:Z.useCallback((e=>{T((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:Z.useCallback((e=>{T((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:n})})})})};hQ.displayName=nQ;const fQ="SelectTrigger",mQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=lQ(n),i=uQ(fQ,n),s=i.disabled||r,l=YK(t,i.onTriggerChange),c=aQ(n),u=Z.useRef("touch"),[d,p,h]=KQ((e=>{const t=c().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=XQ(t,e,n);void 0!==r&&i.onValueChange(r.value)})),f=e=>{s||(i.onOpenChange(!0),h()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return Vh.jsx(XX,{asChild:!0,...o,children:Vh.jsx(iX.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":YQ(i.value)?"":void 0,...a,ref:l,onClick:$K(a.onClick,(e=>{e.currentTarget.focus(),"mouse"!==u.current&&f(e)})),onPointerDown:$K(a.onPointerDown,(e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())})),onKeyDown:$K(a.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||eQ.includes(e.key)&&(f(),e.preventDefault())}))})})}));mQ.displayName=fQ;const gQ="SelectValue",yQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,l=uQ(gQ,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==o,d=YK(t,l.onValueNodeChange);return LO((()=>{c(u)}),[c,u]),Vh.jsx(iX.span,{...s,ref:d,style:{pointerEvents:"none"},children:YQ(l.value)?Vh.jsx(Vh.Fragment,{children:i}):o})}));yQ.displayName=gQ;const bQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return Vh.jsx(iX.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})}));bQ.displayName="SelectIcon";const vQ="SelectContent",kQ=Z.forwardRef(((e,t)=>{const n=uQ(vQ,e.__scopeSelect),[r,a]=Z.useState();if(LO((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?ue.createPortal(Vh.jsx(xQ,{scope:e.__scopeSelect,children:Vh.jsx(rQ.Slot,{scope:e.__scopeSelect,children:Vh.jsx("div",{children:e.children})})}),t):null}return Vh.jsx(SQ,{...e,ref:t})}));kQ.displayName=vQ;const wQ=10,[xQ,EQ]=iQ(vQ),_Q=tX("SelectContent.RemoveScroll"),SQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:f,hideWhenDetached:m,avoidCollisions:g,...y}=e,b=uQ(vQ,n),[v,k]=Z.useState(null),[w,x]=Z.useState(null),E=YK(t,(e=>k(e))),[_,S]=Z.useState(null),[T,C]=Z.useState(null),A=aQ(n),[N,I]=Z.useState(!1),R=Z.useRef(!1);Z.useEffect((()=>{if(v)return Yq(v)}),[v]),gX();const O=Z.useCallback((e=>{const[t,...n]=A().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement;for(const o of e){if(o===a)return;if(null==o||o.scrollIntoView({block:"nearest"}),o===t&&w&&(w.scrollTop=0),o===r&&w&&(w.scrollTop=w.scrollHeight),null==o||o.focus(),document.activeElement!==a)return}}),[A,w]),P=Z.useCallback((()=>O([_,v])),[O,_,v]);Z.useEffect((()=>{N&&P()}),[N,P]);const{onOpenChange:L,triggerPointerDownPosRef:D}=b;Z.useEffect((()=>{if(v){let e={x:0,y:0};const t=t=>{var n,r;e={x:Math.abs(Math.round(t.pageX)-((null==(n=D.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(r=D.current)?void 0:r.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():v.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[v,L,D]),Z.useEffect((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[M,F]=KQ((e=>{const t=A().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=XQ(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),j=Z.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&(S(e),r&&(R.current=!0))}),[b.value]),B=Z.useCallback((()=>null==v?void 0:v.focus()),[v]),H=Z.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&C(e)}),[b.value]),z="popper"===r?CQ:TQ,U=z===CQ?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:f,hideWhenDetached:m,avoidCollisions:g}:{};return Vh.jsx(xQ,{scope:n,content:v,viewport:w,onViewportChange:x,itemRefCallback:j,selectedItem:_,onItemLeave:B,itemTextRefCallback:H,focusSelectedItem:P,selectedItemText:T,position:r,isPositioned:N,searchRef:M,children:Vh.jsx(PY,{as:_Q,allowPinchZoom:!0,removeScrollBar:!1,children:Vh.jsx(wX,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:$K(a,(e=>{var t;null==(t=b.trigger)||t.focus({preventScroll:!0}),e.preventDefault()})),children:Vh.jsx(pX,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:Vh.jsx(z,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...U,onPlaced:()=>I(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:$K(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>O(t))),e.preventDefault()}}))})})})})})}));SQ.displayName="SelectContentImpl";const TQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=uQ(vQ,n),i=EQ(vQ,n),[s,l]=Z.useState(null),[c,u]=Z.useState(null),d=YK(t,(e=>u(e))),p=aQ(n),h=Z.useRef(!1),f=Z.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=i,v=Z.useCallback((()=>{if(o.trigger&&o.valueNode&&s&&c&&m&&g&&y){const e=o.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=y.getBoundingClientRect();if("rtl"!==o.dir){const r=a.left-t.left,o=n.left-r,i=e.left-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-wQ,d=UK(o,[wQ,Math.max(wQ,u-c)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-a.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-wQ,d=UK(o,[wQ,Math.max(wQ,u-c)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=p(),l=window.innerHeight-2*wQ,u=m.scrollHeight,d=window.getComputedStyle(c),f=Number.parseInt(d.borderTopWidth,10),b=Number.parseInt(d.paddingTop,10),v=Number.parseInt(d.borderBottomWidth,10),k=f+b+u+Number.parseInt(d.paddingBottom,10)+v,w=Math.min(5*g.offsetHeight,k),x=window.getComputedStyle(m),E=Number.parseInt(x.paddingTop,10),_=Number.parseInt(x.paddingBottom,10),S=e.top+e.height/2-wQ,T=l-S,C=g.offsetHeight/2,A=f+b+(g.offsetTop+C),N=k-A;if(A<=S){const e=i.length>0&&g===i[i.length-1].ref.current;s.style.bottom="0px";const t=c.clientHeight-m.offsetTop-m.offsetHeight,n=A+Math.max(T,C+(e?_:0)+t+v);s.style.height=n+"px"}else{const e=i.length>0&&g===i[0].ref.current;s.style.top="0px";const t=Math.max(S,f+m.offsetTop+(e?E:0)+C)+N;s.style.height=t+"px",m.scrollTop=A-S+m.offsetTop}s.style.margin=`${wQ}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame((()=>h.current=!0))}}),[p,o.trigger,o.valueNode,s,c,m,g,y,o.dir,r]);LO((()=>v()),[v]);const[k,w]=Z.useState();LO((()=>{c&&w(window.getComputedStyle(c).zIndex)}),[c]);const x=Z.useCallback((e=>{e&&!0===f.current&&(v(),null==b||b(),f.current=!1)}),[v,b]);return Vh.jsx(AQ,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:x,children:Vh.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:Vh.jsx(iX.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));TQ.displayName="SelectItemAlignedPosition";const CQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=wQ,...o}=e,i=lQ(n);return Vh.jsx(QX,{...i,...o,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})}));CQ.displayName="SelectPopperPosition";const[AQ,NQ]=iQ(vQ,{}),IQ="SelectViewport",RQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=EQ(IQ,n),i=NQ(IQ,n),s=YK(t,o.onViewportChange),l=Z.useRef(0);return Vh.jsxs(Vh.Fragment,{children:[Vh.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),Vh.jsx(rQ.Slot,{scope:n,children:Vh.jsx(iX.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:$K(a.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if((null==r?void 0:r.current)&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*wQ,a=Number.parseFloat(n.style.minHeight),o=Number.parseFloat(n.style.height),i=Math.max(a,o);if(i<r){const a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))})})]})}));RQ.displayName=IQ;const OQ="SelectGroup",[PQ,LQ]=iQ(OQ);Z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=FO();return Vh.jsx(PQ,{scope:n,id:a,children:Vh.jsx(iX.div,{role:"group","aria-labelledby":a,...r,ref:t})})})).displayName=OQ;const DQ="SelectLabel";Z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=LQ(DQ,n);return Vh.jsx(iX.div,{id:a.id,...r,ref:t})})).displayName=DQ;const MQ="SelectItem",[FQ,jQ]=iQ(MQ),BQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=uQ(MQ,n),l=EQ(MQ,n),c=s.value===r,[u,d]=Z.useState(o??""),[p,h]=Z.useState(!1),f=YK(t,(e=>{var t;return null==(t=l.itemRefCallback)?void 0:t.call(l,e,r,a)})),m=FO(),g=Z.useRef("touch"),y=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Vh.jsx(FQ,{scope:n,value:r,disabled:a,textId:m,isSelected:c,onItemTextChange:Z.useCallback((e=>{d((t=>t||((null==e?void 0:e.textContent)??"").trim()))}),[]),children:Vh.jsx(rQ.ItemSlot,{scope:n,value:r,disabled:a,textValue:u,children:Vh.jsx(iX.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:f,onFocus:$K(i.onFocus,(()=>h(!0))),onBlur:$K(i.onBlur,(()=>h(!1))),onClick:$K(i.onClick,(()=>{"mouse"!==g.current&&y()})),onPointerUp:$K(i.onPointerUp,(()=>{"mouse"===g.current&&y()})),onPointerDown:$K(i.onPointerDown,(e=>{g.current=e.pointerType})),onPointerMove:$K(i.onPointerMove,(e=>{var t;g.current=e.pointerType,a?null==(t=l.onItemLeave)||t.call(l):"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:$K(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null==(t=l.onItemLeave)||t.call(l))})),onKeyDown:$K(i.onKeyDown,(e=>{var t;""!==(null==(t=l.searchRef)?void 0:t.current)&&" "===e.key||(tQ.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))})})})}));BQ.displayName=MQ;const HQ="SelectItemText",zQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=uQ(HQ,n),s=EQ(HQ,n),l=jQ(HQ,n),c=pQ(HQ,n),[u,d]=Z.useState(null),p=YK(t,(e=>d(e)),l.onItemTextChange,(e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,l.value,l.disabled)})),h=null==u?void 0:u.textContent,f=Z.useMemo((()=>Vh.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value)),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return LO((()=>(m(f),()=>g(f))),[m,g,f]),Vh.jsxs(Vh.Fragment,{children:[Vh.jsx(iX.span,{id:l.textId,...o,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ue.createPortal(o.children,i.valueNode):null]})}));zQ.displayName=HQ;const UQ="SelectItemIndicator",$Q=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return jQ(UQ,n).isSelected?Vh.jsx(iX.span,{"aria-hidden":!0,...r,ref:t}):null}));$Q.displayName=UQ;const VQ="SelectScrollUpButton";Z.forwardRef(((e,t)=>{const n=EQ(VQ,e.__scopeSelect),r=NQ(VQ,e.__scopeSelect),[a,o]=Z.useState(!1),i=YK(t,r.onScrollButtonChange);return LO((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?Vh.jsx(WQ,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null})).displayName=VQ;const GQ="SelectScrollDownButton";Z.forwardRef(((e,t)=>{const n=EQ(GQ,e.__scopeSelect),r=NQ(GQ,e.__scopeSelect),[a,o]=Z.useState(!1),i=YK(t,r.onScrollButtonChange);return LO((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?Vh.jsx(WQ,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null})).displayName=GQ;const WQ=Z.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=EQ("SelectScrollButton",n),i=Z.useRef(null),s=aQ(n),l=Z.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return Z.useEffect((()=>()=>l()),[l]),LO((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})}),[s]),Vh.jsx(iX.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:$K(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:$K(a.onPointerMove,(()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:$K(a.onPointerLeave,(()=>{l()}))})}));Z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return Vh.jsx(iX.div,{"aria-hidden":!0,...r,ref:t})})).displayName="SelectSeparator";const qQ="SelectArrow";function YQ(e){return""===e||void 0===e}function KQ(e){const t=nW(e),n=Z.useRef(""),r=Z.useRef(0),a=Z.useCallback((e=>{const a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(a)}),[t]),o=Z.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return Z.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,a,o]}function XQ(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=(i=e,s=Math.max(a,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===r.length&&(o=o.filter((e=>e!==n)));const l=o.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}Z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=lQ(n),o=uQ(qQ,n),i=EQ(qQ,n);return o.open&&"popper"===i.position?Vh.jsx(ZX,{...a,...r,ref:t}):null})).displayName=qQ;const QQ=hQ,ZQ=mQ,JQ=yQ,eZ=bQ,tZ=kQ,nZ=RQ,rZ=BQ,aZ=zQ,oZ=$Q;var iZ=Object.defineProperty,sZ=(e,t,n)=>((e,t,n)=>t in e?iZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),lZ={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},cZ=[],uZ=class{constructor(e,t){sZ(this,"trapStack"),sZ(this,"config"),sZ(this,"doc"),sZ(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),sZ(this,"portalContainers",new Set),sZ(this,"listenerCleanups",[]),sZ(this,"handleFocus",(e=>{const t=dM(e),n=this.findContainerIndex(t,e)>=0;if(n||HD(t))n&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let n=!0;if(this.state.mostRecentlyFocusedNode)if(NM(this.state.mostRecentlyFocusedNode)>0){const e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:r}=this.state.containerGroups[e];if(r.length>0){const e=r.findIndex((e=>e===this.state.mostRecentlyFocusedNode));e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<r.length&&(t=r[e+1],n=!1):e-1>=0&&(t=r[e-1],n=!1))}}else this.state.containerGroups.some((e=>e.tabbableNodes.some((e=>NM(e)>0))))||(n=!1);else n=!1;n&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0})),sZ(this,"handlePointerDown",(e=>{const t=dM(e);this.findContainerIndex(t,e)>=0||(mZ(this.config.clickOutsideDeactivates,e)?this.deactivate({returnFocus:this.config.returnFocusOnDeactivate}):mZ(this.config.allowOutsideClick,e)||e.preventDefault())})),sZ(this,"handleClick",(e=>{const t=dM(e);this.findContainerIndex(t,e)>=0||mZ(this.config.clickOutsideDeactivates,e)||mZ(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())})),sZ(this,"handleTabKey",(e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;const t=this.config.isKeyBackward(e),n=this.findNextNavNode({event:e,isBackward:t});if(!n)return;pZ(e)&&e.preventDefault(),this.tryFocus(n)}})),sZ(this,"handleEscapeKey",(e=>{gZ(e)&&!1!==mZ(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())})),sZ(this,"_mutationObserver"),sZ(this,"setupMutationObserver",(()=>{const e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver((e=>{e.some((e=>Array.from(e.removedNodes).some((e=>e===this.state.mostRecentlyFocusedNode))))&&this.tryFocus(this.getInitialFocusNode());e.some((e=>"attributes"===e.type&&("aria-controls"===e.attributeName||"aria-expanded"===e.attributeName)||"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some((e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;const t=e;return!!function(e){var t;return!!function(e){return e.hasAttribute("aria-controls")&&"true"===e.getAttribute("aria-expanded")}(e)||Boolean(null==(t=e.querySelector)?void 0:t.call(e,'[aria-controls][aria-expanded="true"]'))}(t)||!(!t.id||this.state.containers.some((e=>e.contains(t))))&&oM(t)}))))&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())}))})),sZ(this,"updateObservedNodes",(()=>{var e;null==(e=this._mutationObserver)||e.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map((e=>{var t;null==(t=this._mutationObserver)||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})})),this.portalContainers.forEach((e=>{this.observePortalContainer(e)})))})),sZ(this,"getInitialFocusNode",(()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!TM(e)){const t=KD(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{const t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e.isConnected||(e=this.getNodeForOption("fallbackFocus")),e})),sZ(this,"tryFocus",(e=>{!1!==e&&e!==KD(this.doc)&&(e&&e.focus?(e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,bZ(e)&&e.select()):this.tryFocus(this.getInitialFocusNode()))})),sZ(this,"deactivate",(e=>{if(!this.state.active)return this;const t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),lZ.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const n=this.getOption(t,"onDeactivate"),r=this.getOption(t,"onPostDeactivate"),a=this.getOption(t,"checkCanReturnFocus"),o=this.getOption(t,"returnFocus","returnFocusOnDeactivate");null==n||n();const i=()=>{yZ((()=>{if(o){const e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}null==r||r()}))};if(o&&a){return a(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(i,i),this}return i(),this})),sZ(this,"pause",(e=>{if(this.state.paused||!this.state.active)return this;const t=this.getOption(e,"onPause"),n=this.getOption(e,"onPostPause");return this.state.paused=!0,null==t||t(),this.removeListeners(),this.updateObservedNodes(),null==n||n(),this})),sZ(this,"unpause",(e=>{if(!this.state.paused||!this.state.active)return this;const t=this.getOption(e,"onUnpause"),n=this.getOption(e,"onPostUnpause");return this.state.paused=!1,null==t||t(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),null==n||n(),this})),sZ(this,"updateContainerElements",(e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this))),sZ(this,"getReturnFocusNode",(e=>{const t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e})),sZ(this,"getOption",((e,t,n)=>e&&void 0!==e[t]?e[t]:this.config[n||t])),sZ(this,"getNodeForOption",((e,{hasFallback:t=!1,params:n=[]}={})=>{let r=this.config[e];if("function"==typeof r&&(r=r(...n)),!0===r&&(r=void 0),!r){if(void 0===r||!1===r)return r;throw new Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let a=r;if("string"==typeof r){try{a=this.doc.querySelector(r)}catch(dEe){throw new Error(`\`${e}\` appears to be an invalid selector; error="${dEe.message}"`)}if(!a&&!t)throw new Error(`\`${e}\` as selector refers to no known node`)}return a})),sZ(this,"findNextNavNode",(e=>{const{event:t,isBackward:n=!1}=e,r=e.target||dM(t);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const e=this.findContainerIndex(r,t),o=e>=0?this.state.containerGroups[e]:void 0;if(e<0)a=n?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(n){let n=this.state.tabbableGroups.findIndex((({firstTabbableNode:e})=>r===e));if(n<0&&((null==o?void 0:o.container)===r||TM(r)&&!AM(r)&&!(null==o?void 0:o.nextTabbableNode(r,!1)))&&(n=e),n>=0){const e=0===n?this.state.tabbableGroups.length-1:n-1,t=this.state.tabbableGroups[e];a=NM(r)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else pZ(t)||(a=null==o?void 0:o.nextTabbableNode(r,!1))}else{let n=this.state.tabbableGroups.findIndex((({lastTabbableNode:e})=>r===e));if(n<0&&((null==o?void 0:o.container)===r||TM(r)&&!AM(r)&&!(null==o?void 0:o.nextTabbableNode(r)))&&(n=e),n>=0){const e=n===this.state.tabbableGroups.length-1?0:n+1,t=this.state.tabbableGroups[e];a=NM(r)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else pZ(t)||(a=null==o?void 0:o.nextTabbableNode(r))}}else a=this.getNodeForOption("fallbackFocus");return a})),this.trapStack=t.trapStack||cZ;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:hZ,isKeyBackward:fZ,...t};this.doc=n.document||qD(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){var t;null==(t=this._mutationObserver)||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach((e=>{aM(e).forEach((e=>{this.addPortalContainer(e)}))}))}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return this.state.containerGroups.findIndex((({container:t,tabbableNodes:r})=>t.contains(e)||(null==n?void 0:n.includes(t))||r.find((t=>t===e))||this.isControlledElement(t,e)))}isControlledElement(e,t){return!!this.config.followControlledElements&&rM(e,t)}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map((e=>{const t=CM(e,{getShadowRoot:this.config.getShadowRoot}),n=SM(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],a=t[t.length-1],o=r,i=a;let s=!1;for(let l=0;l<t.length;l++)if(NM(t[l])>0){s=!0;break}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:i,nextTabbableNode:function(e,r=!0){const a=t.indexOf(e);if(a>=0)return t[a+(r?1:-1)];const o=n.indexOf(e);if(!(o<0))if(r){for(let t=o+1;t<n.length;t++)if(AM(n[t]))return n[t]}else for(let t=o-1;t>=0;t--)if(AM(n[t]))return n[t]}}})),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 lZ.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?yZ((()=>{this.tryFocus(this.getInitialFocusNode())})):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(bM(this.doc,"focusin",this.handleFocus,!0),bM(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),bM(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),bM(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),bM(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),bM(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=KD(this.doc),null==t||t();const a=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),null==n||n()};return r?(r(this.state.containers.concat()).then(a,a),this):(a(),this)}},dZ=e=>"keydown"===e.type,pZ=e=>dZ(e)&&"Tab"===(null==e?void 0:e.key),hZ=e=>dZ(e)&&"Tab"===e.key&&!(null==e?void 0:e.shiftKey),fZ=e=>dZ(e)&&"Tab"===e.key&&(null==e?void 0:e.shiftKey),mZ=(e,...t)=>"function"==typeof e?e(...t):e,gZ=e=>!e.isComposing&&"Escape"===e.key,yZ=e=>setTimeout(e,0),bZ=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;var vZ=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=Z.useState(),r=Z.useRef({}),a=Z.useRef(e),o=Z.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return Z.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Z.useEffect((()=>{const e=kZ(r.current);o.current="mounted"===s?e:"none"}),[s]),LO((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=kZ(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,l]),LO((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=kZ(r.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=kZ(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Z.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:r.isPresent}):Z.Children.only(n),o=YK(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?Z.cloneElement(a,{ref:o}):null};function kZ(e){return(null==e?void 0:e.animationName)||"none"}vZ.displayName="Presence";const wZ="Dialog",[xZ,EZ]=VK(wZ),[_Z,SZ]=xZ(wZ),TZ=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=Z.useRef(null),l=Z.useRef(null),[c=!1,u]=rW({prop:r,defaultProp:a,onChange:o});return Vh.jsx(_Z,{scope:t,triggerRef:s,contentRef:l,contentId:FO(),titleId:FO(),descriptionId:FO(),open:c,onOpenChange:u,onOpenToggle:Z.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};TZ.displayName=wZ;const CZ="DialogTrigger";Z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=SZ(CZ,n),o=YK(t,a.triggerRef);return Vh.jsx(iX.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":GZ(a.open),...r,ref:o,onClick:$K(e.onClick,a.onOpenToggle)})})).displayName=CZ;const AZ="DialogPortal",[NZ,IZ]=xZ(AZ,{forceMount:void 0}),RZ=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=SZ(AZ,t);return Vh.jsx(NZ,{scope:t,forceMount:n,children:Z.Children.map(r,(e=>Vh.jsx(vZ,{present:n||o.open,children:Vh.jsx(JX,{asChild:!0,container:a,children:e})})))})};RZ.displayName=AZ;const OZ="DialogOverlay",PZ=Z.forwardRef(((e,t)=>{const n=IZ(OZ,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=SZ(OZ,e.__scopeDialog);return o.modal?Vh.jsx(vZ,{present:r||o.open,children:Vh.jsx(LZ,{...a,ref:t})}):null}));PZ.displayName=OZ;const LZ=Z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=SZ(OZ,n);return Vh.jsx(PY,{as:nX,allowPinchZoom:!0,shards:[a.contentRef],gapMode:"padding",removeScrollBar:!0,children:Vh.jsx(iX.div,{"data-state":GZ(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),DZ="DialogContent",MZ=Z.forwardRef(((e,t)=>{const n=IZ(DZ,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=SZ(DZ,e.__scopeDialog);return Vh.jsx(vZ,{present:r||o.open,children:o.modal?Vh.jsx(FZ,{...a,ref:t}):Vh.jsx(jZ,{...a,ref:t})})}));MZ.displayName=DZ;const FZ=Z.forwardRef(((e,t)=>{const n=SZ(DZ,e.__scopeDialog),r=Z.useRef(null),a=YK(t,n.contentRef,r);return Z.useEffect((()=>{const e=r.current;if(e)return Yq(e)}),[]),Vh.jsx(BZ,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onPointerDownOutside:$K(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:$K(e.onFocusOutside,(e=>e.preventDefault()))})})),jZ=Z.forwardRef(((e,t)=>{const n=SZ(DZ,e.__scopeDialog),r=Z.useRef(!1),a=Z.useRef(!1);return Vh.jsx(BZ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),BZ=Z.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=SZ(DZ,n),l=Z.useRef(null),c=YK(t,l);return gX(),Z.useEffect((()=>{if(r)return function(e,t={}){let n;const r=RM((()=>{const r=(Array.isArray(e)?e:[e]).map((e=>"function"==typeof e?e():e)).filter((e=>null!=e));if(0===r.length)return;const a=r[0];n=new uZ(r,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:a,...t,document:qD(a)});try{n.activate()}catch{}}));return function(){null==n||n.deactivate(),r()}}(l.current,{preventScroll:!0,onActivate:a,onDeactivate:o,initialFocus:!1})}),[]),Vh.jsx(pX,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":GZ(s.open),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})})),HZ="DialogTitle",zZ=Z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=SZ(HZ,n);return Vh.jsx(iX.h2,{id:a.titleId,...r,ref:t})}));zZ.displayName=HZ;const UZ="DialogDescription";Z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=SZ(UZ,n);return Vh.jsx(iX.p,{id:a.descriptionId,...r,ref:t})})).displayName=UZ;const $Z="DialogClose",VZ=Z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=SZ($Z,n);return Vh.jsx(iX.button,{type:"button",...r,ref:t,onClick:$K(e.onClick,(()=>a.onOpenChange(!1)))})}));function GZ(e){return e?"open":"closed"}VZ.displayName=$Z;const WZ=TZ,qZ=RZ,YZ=PZ,KZ=MZ,XZ=zZ,QZ=VZ,ZZ=Z.forwardRef(((e,t)=>{const n=Z.useId();return Vh.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"100%",width:"100%",ref:t,...e,children:[Vh.jsx("title",{children:"AI Avatar"}),Vh.jsx("path",{d:"M9.937 15.5002C9.84772 15.1542 9.66734 14.8384 9.41462 14.5856C9.1619 14.3329 8.84607 14.1525 8.5 14.0632L2.365 12.4812C2.26033 12.4515 2.16821 12.3885 2.10261 12.3017C2.03702 12.2149 2.00153 12.1091 2.00153 12.0002C2.00153 11.8914 2.03702 11.7856 2.10261 11.6988C2.16821 11.612 2.26033 11.549 2.365 11.5192L8.5 9.93625C8.84595 9.84706 9.16169 9.66682 9.4144 9.41429C9.66711 9.16175 9.84757 8.84614 9.937 8.50025L11.519 2.36525C11.5484 2.26017 11.6114 2.16759 11.6983 2.10164C11.7853 2.0357 11.8914 2 12.0005 2C12.1096 2 12.2157 2.0357 12.3027 2.10164C12.3896 2.16759 12.4526 2.26017 12.482 2.36525L14.063 8.50025C14.1523 8.84632 14.3327 9.16215 14.5854 9.41487C14.8381 9.66759 15.1539 9.84797 15.5 9.93725L21.635 11.5182C21.7405 11.5473 21.8335 11.6103 21.8998 11.6973C21.9661 11.7844 22.0021 11.8908 22.0021 12.0002C22.0021 12.1097 21.9661 12.2161 21.8998 12.3032C21.8335 12.3902 21.7405 12.4531 21.635 12.4822L15.5 14.0632C15.1539 14.1525 14.8381 14.3329 14.5854 14.5856C14.3327 14.8384 14.1523 15.1542 14.063 15.5002L12.481 21.6353C12.4516 21.7403 12.3886 21.8329 12.3017 21.8989C12.2147 21.9648 12.1086 22.0005 11.9995 22.0005C11.8904 22.0005 11.7843 21.9648 11.6973 21.8989C11.6104 21.8329 11.5474 21.7403 11.518 21.6353L9.937 15.5002Z",stroke:`url(#${n}-stroke1)`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Vh.jsx("path",{d:"M18.9838 5.37522C18.9615 5.28871 18.9164 5.20975 18.8532 5.14657C18.79 5.08339 18.7111 5.0383 18.6246 5.01598L17.0909 4.62049C17.0647 4.61306 17.0417 4.5973 17.0253 4.5756C17.0089 4.5539 17 4.52744 17 4.50024C17 4.47304 17.0089 4.44659 17.0253 4.42488C17.0417 4.40318 17.0647 4.38742 17.0909 4.38L18.6246 3.98426C18.7111 3.96196 18.79 3.9169 18.8532 3.85377C18.9163 3.79064 18.9615 3.71174 18.9838 3.62527L19.3793 2.09155C19.3867 2.06528 19.4024 2.04214 19.4241 2.02565C19.4459 2.00917 19.4724 2.00024 19.4997 2.00024C19.527 2.00024 19.5535 2.00917 19.5752 2.02565C19.597 2.04214 19.6127 2.06528 19.6201 2.09155L20.0153 3.62527C20.0376 3.71178 20.0827 3.79074 20.1459 3.85391C20.2091 3.91709 20.288 3.96219 20.3745 3.98451L21.9082 4.37975C21.9346 4.38702 21.9579 4.40275 21.9744 4.42452C21.991 4.44628 22 4.47288 22 4.50024C22 4.5276 21.991 4.55421 21.9744 4.57597C21.9579 4.59774 21.9346 4.61347 21.9082 4.62074L20.3745 5.01598C20.288 5.0383 20.2091 5.08339 20.1459 5.14657C20.0827 5.20975 20.0376 5.28871 20.0153 5.37522L19.6198 6.90893C19.6124 6.9352 19.5967 6.95835 19.575 6.97483C19.5532 6.99132 19.5267 7.00024 19.4994 7.00024C19.4721 7.00024 19.4456 6.99132 19.4239 6.97483C19.4022 6.95835 19.3864 6.9352 19.3791 6.90893L18.9838 5.37522Z",stroke:`url(#${n}-stroke2)`,strokeLinecap:"round",strokeLinejoin:"round"}),Vh.jsx("path",{d:"M3.98382 20.3752C3.9615 20.2887 3.9164 20.2098 3.85322 20.1466C3.79005 20.0834 3.71109 20.0383 3.62458 20.016L2.09087 19.6205C2.0647 19.6131 2.04167 19.5973 2.02527 19.5756C2.00887 19.5539 2 19.5274 2 19.5002C2 19.473 2.00887 19.4466 2.02527 19.4249C2.04167 19.4032 2.0647 19.3874 2.09087 19.38L3.62458 18.9843C3.71106 18.962 3.78999 18.9169 3.85317 18.8538C3.91635 18.7906 3.96146 18.7117 3.98382 18.6253L4.37931 17.0916C4.38666 17.0653 4.4024 17.0421 4.42414 17.0257C4.44587 17.0092 4.4724 17.0002 4.49968 17.0002C4.52696 17.0002 4.55349 17.0092 4.57522 17.0257C4.59695 17.0421 4.6127 17.0653 4.62005 17.0916L5.01529 18.6253C5.03761 18.7118 5.0827 18.7907 5.14588 18.8539C5.20906 18.9171 5.28801 18.9622 5.37453 18.9845L6.90824 19.3797C6.93461 19.387 6.95787 19.4027 6.97445 19.4245C6.99102 19.4463 7 19.4729 7 19.5002C7 19.5276 6.99102 19.5542 6.97445 19.576C6.95787 19.5977 6.93461 19.6135 6.90824 19.6207L5.37453 20.016C5.28801 20.0383 5.20906 20.0834 5.14588 20.1466C5.0827 20.2098 5.03761 20.2887 5.01529 20.3752L4.6198 21.9089C4.61245 21.9352 4.5967 21.9583 4.57497 21.9748C4.55324 21.9913 4.52671 22.0002 4.49943 22.0002C4.47215 22.0002 4.44562 21.9913 4.42389 21.9748C4.40215 21.9583 4.38641 21.9352 4.37906 21.9089L3.98382 20.3752Z",stroke:`url(#${n}-stroke3)`,strokeLinecap:"round",strokeLinejoin:"round"}),Vh.jsxs("defs",{children:[Vh.jsxs("linearGradient",{id:`${n}-stroke1`,x1:"0.149625",y1:"0.148102",x2:"23.8539",y2:"23.8524",gradientUnits:"userSpaceOnUse",children:[Vh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),Vh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]}),Vh.jsxs("linearGradient",{id:`${n}-stroke2`,x1:"16.537",y1:"1.53728",x2:"22.463",y2:"7.46321",gradientUnits:"userSpaceOnUse",children:[Vh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),Vh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]}),Vh.jsxs("linearGradient",{id:`${n}-stroke3`,x1:"1.53704",y1:"16.5373",x2:"7.46296",y2:"22.4632",gradientUnits:"userSpaceOnUse",children:[Vh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),Vh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]})]})]})})),JZ=Z.forwardRef(((e,t)=>Vh.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"32px",viewBox:"0 96 960 960",width:"32px",ref:t,...e,children:[Vh.jsx("title",{children:"User Avatar"}),Vh.jsx("path",{d:"M222 801q63-40 124.5-60.5T480 720q72 0 134 20.5T739 801q44-54 62.5-109T820 576q0-145-97.5-242.5T480 236q-145 0-242.5 97.5T140 576q0 61 19 116t63 109Zm257.814-195Q422 606 382.5 566.314q-39.5-39.686-39.5-97.5t39.686-97.314q39.686-39.5 97.5-39.5t97.314 39.686q39.5 39.686 39.5 97.5T577.314 566.5q-39.686 39.5-97.5 39.5Zm-.219 370q-83.146 0-156.275-31.5t-127.225-86Q142 804 111 731.159 80 658.319 80 575.5q0-82.819 31.5-155.659Q143 347 197.5 293t127.341-85.5Q397.681 176 480.5 176q82.819 0 155.659 31.5Q709 239 763 293t85.5 127Q880 493 880 575.734q0 82.734-31.5 155.5T763 858.5q-54 54.5-127.129 86T479.595 976Z",fill:"currentColor"})]}))),eJ=Z.forwardRef((({isExternal:e,...t},n)=>Vh.jsx("a",{target:e?"_blank":void 0,rel:e?"noopener":void 0,...t,ref:n})));eJ.displayName="Link";const tJ=Z.forwardRef((({href:e,appendToUrl:t,...n},r)=>{const{baseSettings:a}=JO(),o=Object.assign({},a.urlQueryParamsToAppend,t),i=e?function(e,t){if(!t)return e;try{const n=new URL(e);for(const e of Object.keys(t))t[e]&&n.searchParams.append(e,t[e]);return n.href}catch{return e}}(e,o):e;return Vh.jsx(eJ,{ref:r,href:i,...n})}));function nJ(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(a,r).trim();!e&&o||t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function rJ(e,t){const n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}tJ.displayName="LinkWithQueryParams";const aJ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oJ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iJ={};function sJ(e,t){return(iJ.jsx?oJ:aJ).test(e)}const lJ=/[ \t\n\f\r]/g;function cJ(e){return""===e.replace(lJ,"")}let uJ=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function dJ(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new uJ(n,r,t)}function pJ(e){return e.toLowerCase()}uJ.prototype.normal={},uJ.prototype.property={},uJ.prototype.space=void 0;let hJ=class{constructor(e,t){this.attribute=t,this.property=e}};hJ.prototype.attribute="",hJ.prototype.booleanish=!1,hJ.prototype.boolean=!1,hJ.prototype.commaOrSpaceSeparated=!1,hJ.prototype.commaSeparated=!1,hJ.prototype.defined=!1,hJ.prototype.mustUseProperty=!1,hJ.prototype.number=!1,hJ.prototype.overloadedBoolean=!1,hJ.prototype.property="",hJ.prototype.spaceSeparated=!1,hJ.prototype.space=void 0;let fJ=0;const mJ=xJ(),gJ=xJ(),yJ=xJ(),bJ=xJ(),vJ=xJ(),kJ=xJ(),wJ=xJ();function xJ(){return 2**++fJ}const EJ=Object.freeze(Object.defineProperty({__proto__:null,boolean:mJ,booleanish:gJ,commaOrSpaceSeparated:wJ,commaSeparated:kJ,number:bJ,overloadedBoolean:yJ,spaceSeparated:vJ},Symbol.toStringTag,{value:"Module"})),_J=Object.keys(EJ);let SJ=class extends hJ{constructor(e,t,n,r){let a=-1;if(super(e,t),TJ(this,"space",r),"number"==typeof n)for(;++a<_J.length;){const e=_J[a];TJ(this,_J[a],(n&EJ[e])===EJ[e])}}};function TJ(e,t,n){n&&(e[t]=n)}function CJ(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new SJ(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[pJ(r)]=r,n[pJ(o.attribute)]=r}return new uJ(t,n,e.space)}SJ.prototype.defined=!0;const AJ=CJ({properties:{ariaActiveDescendant:null,ariaAtomic:gJ,ariaAutoComplete:null,ariaBusy:gJ,ariaChecked:gJ,ariaColCount:bJ,ariaColIndex:bJ,ariaColSpan:bJ,ariaControls:vJ,ariaCurrent:null,ariaDescribedBy:vJ,ariaDetails:null,ariaDisabled:gJ,ariaDropEffect:vJ,ariaErrorMessage:null,ariaExpanded:gJ,ariaFlowTo:vJ,ariaGrabbed:gJ,ariaHasPopup:null,ariaHidden:gJ,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vJ,ariaLevel:bJ,ariaLive:null,ariaModal:gJ,ariaMultiLine:gJ,ariaMultiSelectable:gJ,ariaOrientation:null,ariaOwns:vJ,ariaPlaceholder:null,ariaPosInSet:bJ,ariaPressed:gJ,ariaReadOnly:gJ,ariaRelevant:null,ariaRequired:gJ,ariaRoleDescription:vJ,ariaRowCount:bJ,ariaRowIndex:bJ,ariaRowSpan:bJ,ariaSelected:gJ,ariaSetSize:bJ,ariaSort:null,ariaValueMax:bJ,ariaValueMin:bJ,ariaValueNow:bJ,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function NJ(e,t){return t in e?e[t]:t}function IJ(e,t){return NJ(e,t.toLowerCase())}const RJ=CJ({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kJ,acceptCharset:vJ,accessKey:vJ,action:null,allow:null,allowFullScreen:mJ,allowPaymentRequest:mJ,allowUserMedia:mJ,alt:null,as:null,async:mJ,autoCapitalize:null,autoComplete:vJ,autoFocus:mJ,autoPlay:mJ,blocking:vJ,capture:null,charSet:null,checked:mJ,cite:null,className:vJ,cols:bJ,colSpan:null,content:null,contentEditable:gJ,controls:mJ,controlsList:vJ,coords:bJ|kJ,crossOrigin:null,data:null,dateTime:null,decoding:null,default:mJ,defer:mJ,dir:null,dirName:null,disabled:mJ,download:yJ,draggable:gJ,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:mJ,formTarget:null,headers:vJ,height:bJ,hidden:mJ,high:bJ,href:null,hrefLang:null,htmlFor:vJ,httpEquiv:vJ,id:null,imageSizes:null,imageSrcSet:null,inert:mJ,inputMode:null,integrity:null,is:null,isMap:mJ,itemId:null,itemProp:vJ,itemRef:vJ,itemScope:mJ,itemType:vJ,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:mJ,low:bJ,manifest:null,max:null,maxLength:bJ,media:null,method:null,min:null,minLength:bJ,multiple:mJ,muted:mJ,name:null,nonce:null,noModule:mJ,noValidate:mJ,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:mJ,optimum:bJ,pattern:null,ping:vJ,placeholder:null,playsInline:mJ,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:mJ,referrerPolicy:null,rel:vJ,required:mJ,reversed:mJ,rows:bJ,rowSpan:bJ,sandbox:vJ,scope:null,scoped:mJ,seamless:mJ,selected:mJ,shadowRootClonable:mJ,shadowRootDelegatesFocus:mJ,shadowRootMode:null,shape:null,size:bJ,sizes:null,slot:null,span:bJ,spellCheck:gJ,src:null,srcDoc:null,srcLang:null,srcSet:null,start:bJ,step:null,style:null,tabIndex:bJ,target:null,title:null,translate:null,type:null,typeMustMatch:mJ,useMap:null,value:gJ,width:bJ,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vJ,axis:null,background:null,bgColor:null,border:bJ,borderColor:null,bottomMargin:bJ,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:mJ,declare:mJ,event:null,face:null,frame:null,frameBorder:null,hSpace:bJ,leftMargin:bJ,link:null,longDesc:null,lowSrc:null,marginHeight:bJ,marginWidth:bJ,noResize:mJ,noHref:mJ,noShade:mJ,noWrap:mJ,object:null,profile:null,prompt:null,rev:null,rightMargin:bJ,rules:null,scheme:null,scrolling:gJ,standby:null,summary:null,text:null,topMargin:bJ,valueType:null,version:null,vAlign:null,vLink:null,vSpace:bJ,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:mJ,disableRemotePlayback:mJ,prefix:null,property:null,results:bJ,security:null,unselectable:null},space:"html",transform:IJ}),OJ=CJ({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:wJ,accentHeight:bJ,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:bJ,amplitude:bJ,arabicForm:null,ascent:bJ,attributeName:null,attributeType:null,azimuth:bJ,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:bJ,by:null,calcMode:null,capHeight:bJ,className:vJ,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:bJ,diffuseConstant:bJ,direction:null,display:null,dur:null,divisor:bJ,dominantBaseline:null,download:mJ,dx:null,dy:null,edgeMode:null,editable:null,elevation:bJ,enableBackground:null,end:null,event:null,exponent:bJ,externalResourcesRequired:null,fill:null,fillOpacity:bJ,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:kJ,g2:kJ,glyphName:kJ,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:bJ,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:bJ,horizOriginX:bJ,horizOriginY:bJ,id:null,ideographic:bJ,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:bJ,k:bJ,k1:bJ,k2:bJ,k3:bJ,k4:bJ,kernelMatrix:wJ,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:bJ,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:bJ,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:bJ,overlineThickness:bJ,paintOrder:null,panose1:null,path:null,pathLength:bJ,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vJ,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:bJ,pointsAtY:bJ,pointsAtZ:bJ,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wJ,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wJ,rev:wJ,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wJ,requiredFeatures:wJ,requiredFonts:wJ,requiredFormats:wJ,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:bJ,specularExponent:bJ,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:bJ,strikethroughThickness:bJ,string:null,stroke:null,strokeDashArray:wJ,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:bJ,strokeOpacity:bJ,strokeWidth:null,style:null,surfaceScale:bJ,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wJ,tabIndex:bJ,tableValues:null,target:null,targetX:bJ,targetY:bJ,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wJ,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:bJ,underlineThickness:bJ,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:bJ,values:null,vAlphabetic:bJ,vMathematical:bJ,vectorEffect:null,vHanging:bJ,vIdeographic:bJ,version:null,vertAdvY:bJ,vertOriginX:bJ,vertOriginY:bJ,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:bJ,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:NJ}),PJ=CJ({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),LJ=CJ({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:IJ}),DJ=CJ({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),MJ={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"},FJ=/[A-Z]/g,jJ=/-[a-z]/g,BJ=/^data[-\w.:]+$/i;function HJ(e,t){const n=pJ(t);let r=t,a=hJ;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&BJ.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(jJ,UJ);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!jJ.test(e)){let n=e.replace(FJ,zJ);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=SJ}return new a(r,t)}function zJ(e){return"-"+e.toLowerCase()}function UJ(e){return e.charAt(1).toUpperCase()}const $J=dJ([AJ,RJ,PJ,LJ,DJ],"html"),VJ=dJ([AJ,OJ,PJ,LJ,DJ],"svg");function GJ(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function WJ(e){return e.join(" ").trim()}var qJ={},YJ=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,KJ=/\n/g,XJ=/^\s*/,QJ=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ZJ=/^:\s*/,JJ=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,e0=/^[;\s]*/,t0=/^\s+|\s+$/g,n0="";function r0(e){return e?e.replace(t0,n0):n0}var a0=d&&d.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qJ,"__esModule",{value:!0}),qJ.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o0.default)(e),a="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;a?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o0=a0((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(e){var t=e.match(KJ);t&&(n+=t.length);var a=e.lastIndexOf("\n");r=~a?e.length-a:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new i(e),c(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(a){var o=new Error(t.source+":"+n+":"+r+": "+a);if(o.reason=a,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function l(t){var n=t.exec(e);if(n){var r=n[0];return a(r),e=e.slice(r.length),n}}function c(){l(XJ)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;n0!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,n0===e.charAt(n-1))return s("End of comment missing");var i=e.slice(2,n-2);return r+=2,a(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function p(){var e=o(),t=l(QJ);if(t){if(d(),!l(ZJ))return s("property missing ':'");var n=l(JJ),r=e({type:"declaration",property:r0(t[0].replace(YJ,n0)),value:n?r0(n[0].replace(YJ,n0)):n0});return l(e0),r}}return i.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()}));var i0={};Object.defineProperty(i0,"__esModule",{value:!0}),i0.camelCase=void 0;var s0=/^--[a-zA-Z0-9_-]+$/,l0=/-([a-z])/g,c0=/^[^-]+$/,u0=/^-(webkit|moz|ms|o|khtml)-/,d0=/^-(ms)-/,p0=function(e,t){return t.toUpperCase()},h0=function(e,t){return"".concat(t,"-")};i0.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||c0.test(e)||s0.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(d0,h0):e.replace(u0,h0)).replace(l0,p0))};var f0=d&&d.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},m0=f0(qJ),g0=i0;function y0(e,t){var n={};return e&&"string"==typeof e?((0,m0.default)(e,(function(e,r){e&&r&&(n[(0,g0.camelCase)(e,t)]=r)})),n):n}y0.default=y0;const b0=p(y0),v0=w0("end"),k0=w0("start");function w0(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function x0(e){return e&&"object"==typeof e?"position"in e||"type"in e?_0(e.position):"start"in e||"end"in e?_0(e):"line"in e||"column"in e?E0(e):"":""}function E0(e){return S0(e&&e.line)+":"+S0(e&&e.column)}function _0(e){return E0(e&&e.start)+"-"+E0(e&&e.end)}function S0(e){return e&&"number"==typeof e?e:1}class T0 extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(o=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=i?i.line:void 0,this.name=x0(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}T0.prototype.file="",T0.prototype.name="",T0.prototype.reason="",T0.prototype.message="",T0.prototype.stack="",T0.prototype.column=void 0,T0.prototype.line=void 0,T0.prototype.ancestors=void 0,T0.prototype.cause=void 0,T0.prototype.fatal=void 0,T0.prototype.place=void 0,T0.prototype.ruleId=void 0,T0.prototype.source=void 0;const C0={}.hasOwnProperty,A0=new Map,N0=/[A-Z]/g,I0=new Set(["table","tbody","thead","tfoot","tr"]),R0=new Set(["td","th"]),O0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function P0(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,a,o){const i=Array.isArray(a.children),s=k0(n);return t(r,a,o,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,a,o){const i=Array.isArray(a.children)?n:t;return o?i(r,a,o):i(r,a)}}(0,t.jsx,t.jsxs)}const a={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:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?VJ:$J,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=L0(a,e,void 0);return o&&"string"!=typeof o?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function L0(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=VJ,e.schema=a);e.ancestors.push(t);const o=B0(e,t.tagName,!1),i=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&C0.call(t.properties,a)){const o=j0(e,a,t.properties[a]);if(o){const[a,i]=o;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof i&&R0.has(t.tagName)?r=i:n[a]=i}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=F0(e,t);I0.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&cJ(t.value):cJ(t));var t})));return D0(e,i,o,t),M0(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}H0(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=VJ,e.schema=a);e.ancestors.push(t);const o=null===t.name?e.Fragment:B0(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const a=t.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else H0(e,t.position);else{const a=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else H0(e,t.position);else o=null===r.value||r.value;n[a]=o}return n}(e,t),s=F0(e,t);return D0(e,i,o,t),M0(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);H0(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return M0(r,F0(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function D0(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function M0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function F0(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:A0;for(;++r<t.children.length;){const o=t.children[r];let i;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=a.get(e)||0;i=e+"-"+t,a.set(e,t+1)}}const s=L0(e,o,i);void 0!==s&&n.push(s)}return n}function j0(e,t,n){const r=HJ(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?rJ(n):WJ(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return b0(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new T0("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=O0+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)C0.call(e,n)&&(t[z0(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?MJ[r.property]||r.property:r.attribute,n]}}function B0(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=sJ(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=sJ(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return C0.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);H0(e)}function H0(e,t){const n=new T0("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=O0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function z0(e){let t=e.replace(N0,U0);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function U0(e){return"-"+e.toLowerCase()}const $0={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"]},V0={};function G0(e,t){return W0(e,"boolean"!=typeof V0.includeImageAlt||V0.includeImageAlt,"boolean"!=typeof V0.includeHtml||V0.includeHtml)}function W0(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return q0(e.children,t,n)}return Array.isArray(e)?q0(e,t,n):""}function q0(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=W0(e[a],t,n);return r.join("")}const Y0=document.createElement("i");function K0(e){const t="&"+e+";";Y0.innerHTML=t;const n=Y0.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function X0(e,t,n,r){const a=e.length;let o,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Q0(e,t){return e.length>0?(X0(e,e.length,0,t),e):t}const Z0={}.hasOwnProperty;function J0(e){const t={};let n=-1;for(;++n<e.length;)e1(t,e[n]);return t}function e1(e,t){let n;for(n in t){const r=(Z0.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Z0.call(r,o)||(r[o]=[]);const e=a[o];t1(r[o],Array.isArray(e)?e:e?[e]:[])}}}function t1(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);X0(e,0,0,r)}function n1(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function r1(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const a1=g1(/[A-Za-z]/),o1=g1(/[\dA-Za-z]/),i1=g1(/[#-'*+\--9=?A-Z^-~]/);function s1(e){return null!==e&&(e<32||127===e)}const l1=g1(/\d/),c1=g1(/[\dA-Fa-f]/),u1=g1(/[!-/:-@[-`{-~]/);function d1(e){return null!==e&&e<-2}function p1(e){return null!==e&&(e<0||32===e)}function h1(e){return-2===e||-1===e||32===e}const f1=g1(new RegExp("\\p{P}|\\p{S}","u")),m1=g1(/\s/);function g1(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function y1(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let i="";if(37===o&&o1(e.charCodeAt(n+1))&&o1(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(i=String.fromCharCode(o,t),a=1):i="�"}else i=String.fromCharCode(o);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function b1(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(h1(r))return e.enter(n),i(r);return t(r)};function i(r){return h1(r)&&o++<a?(e.consume(r),i):(e.exit(n),t(r))}}const v1={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),b1(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):d1(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const k1={tokenize:function(e){const t=this,n=[];let r,a,o,i=0;return s;function s(r){if(i<n.length){const a=n[i];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(r)}return c(r)}function l(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let a,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){a=t.events[o][1].end;break}y(i);let s=n;for(;s<t.events.length;)t.events[s][1].end={...a},s++;return X0(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(a){if(i===n.length){if(!r)return p(a);if(r.currentConstruct&&r.currentConstruct.concrete)return f(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(w1,u,d)(a)}function u(e){return r&&b(),y(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(w1,h,f)(n)}function h(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):d1(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let a,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){s=t.events[l][1].end;break}a=!0}for(y(i),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;X0(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},w1={tokenize:function(e,t,n){return b1(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function x1(e){return null===e||p1(e)||m1(e)?1:f1(e)?2:void 0}function E1(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const _1={name:"attention",resolveAll:function(e,t){let n,r,a,o,i,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};S1(d,-s),S1(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...i.end}},e[n][1].end={...o.start},e[u][1].start={...i.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Q0(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Q0(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=Q0(l,E1(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=Q0(l,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Q0(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,X0(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=x1(r);let o;return function(t){return o=t,e.enter("attentionSequence"),i(t)};function i(s){if(s===o)return e.consume(s),i;const l=e.exit("attentionSequence"),c=x1(s),u=!c||2===c&&a||n.includes(s),d=!a||2===a&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(a||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}}};function S1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const T1={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return a1(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||o1(e)?(r=1,i(e)):l(e)}function i(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||o1(t))&&r++<32?(e.consume(t),i):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||s1(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):i1(t)?(e.consume(t),l):n(t)}function c(e){return o1(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||o1(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const C1={partial:!0,tokenize:function(e,t,n){return function(t){return h1(t)?b1(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||d1(e)?t(e):n(e)}}};const A1={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(h1(t))return b1(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(A1,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return h1(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const N1={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return u1(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const I1={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,o,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=o1,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=c1,c):(e.enter("characterReferenceValue"),a=7,o=l1,c(t))}function c(s){if(59===s&&i){const a=e.exit("characterReferenceValue");return o!==o1||K0(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&i++<a?(e.consume(s),c):n(s)}}};const R1={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},O1={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),h1(t)?b1(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(a++,e.consume(t),u):a>=s?(e.exit("codeFencedFenceSequence"),h1(t)?b1(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||d1(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,i=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),h1(t)?b1(e,c,"whitespace")(t):c(t))}function c(n){return null===n||d1(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(R1,h,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||d1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):h1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),b1(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||d1(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||d1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function h(t){return e.attempt(a,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&h1(t)?b1(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||d1(t)?e.check(R1,h,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||d1(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}};const P1={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),b1(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):d1(t)?e.attempt(L1,o,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||d1(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},L1={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):d1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):b1(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):d1(e)?a(e):n(e)}}};const D1={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}t=a-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),o++,i):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),r=0,c(t)):d1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||d1(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}};class M1{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&F1(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),F1(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),F1(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);F1(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);F1(this.left,t.reverse())}}}function F1(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 j1(e){const t={};let n,r,a,o,i,s,l,c=-1;const u=new M1(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,B1(u,c)),c=t[c],l=!0);else if(n[1]._container){for(a=c,r=void 0;a--;)if(o=u.get(a),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=a);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return X0(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function B1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++a)[1]!==h;);o.push(a),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&i.defineSkip(h.start),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(i.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const H1={resolve:function(e){return j1(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):d1(t)?e.check(z1,o,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},z1={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),b1(e,a,"linePrefix")};function a(a){if(null===a||d1(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}};function U1(e,t,n,r,a,o,i,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||s1(t))return n(t);return e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||d1(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(a){return u||null!==a&&41!==a&&!p1(a)?u<c&&40===a?(e.consume(a),u++,f):41===a?(e.consume(a),u--,f):null===a||32===a||40===a||s1(a)?n(a):(e.consume(a),92===a?m:f):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function $1(e,t,n,r,a,o){const i=this;let s,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(o),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):d1(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||d1(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!h1(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function V1(e,t,n,r,a,o){let i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,s;return n(t)};function s(n){return n===i?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===i?(e.exit(o),s(i)):null===t?n(t):d1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),b1(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||d1(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function G1(e,t){let n;return function r(a){if(d1(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(h1(a))return b1(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}const W1={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return $1.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return a=r1(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return p1(t)?G1(e,s)(t):s(t)}function s(t){return U1(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(q1,c,c)(t)}function c(t){return h1(t)?b1(e,u,"whitespace")(t):u(t)}function u(o){return null===o||d1(o)?(e.exit("definition"),r.parser.defined.push(a),t(o)):n(o)}}},q1={partial:!0,tokenize:function(e,t,n){return function(t){return p1(t)?G1(e,r)(t):n(t)};function r(t){return V1(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return h1(t)?b1(e,o,"whitespace")(t):o(t)}function o(e){return null===e||d1(e)?t(e):n(e)}}};const Y1={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return d1(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const K1={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);a-2>o&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4);a>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},r={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},X0(e,o,a-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||p1(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||d1(n)?(e.exit("atxHeading"),t(n)):h1(n)?b1(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||p1(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}};const X1=["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"],Q1=["pre","script","style","textarea"],Z1={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let a,o,i,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),a=3,r.interrupt?t:L):a1(s)?(e.consume(s),i=String.fromCharCode(s),f):n(s)}function u(o){return 45===o?(e.consume(o),a=2,d):91===o?(e.consume(o),a=5,s=0,p):a1(o)?(e.consume(o),a=4,r.interrupt?t:L):n(o)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:L):n(a)}function p(a){const o="CDATA[";return a===o.charCodeAt(s++)?(e.consume(a),6===s?r.interrupt?t:T:p):n(a)}function h(t){return a1(t)?(e.consume(t),i=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||p1(s)){const l=47===s,c=i.toLowerCase();return l||o||!Q1.includes(c)?X1.includes(i.toLowerCase())?(a=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):y(s)):(a=1,r.interrupt?t(s):T(s))}return 45===s||o1(s)?(e.consume(s),i+=String.fromCharCode(s),f):n(s)}function m(a){return 62===a?(e.consume(a),r.interrupt?t:T):n(a)}function g(t){return h1(t)?(e.consume(t),g):_(t)}function y(t){return 47===t?(e.consume(t),_):58===t||95===t||a1(t)?(e.consume(t),b):h1(t)?(e.consume(t),y):_(t)}function b(t){return 45===t||46===t||58===t||95===t||o1(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),k):h1(t)?(e.consume(t),v):y(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):h1(t)?(e.consume(t),k):x(t)}function w(t){return t===l?(e.consume(t),l=null,E):null===t||d1(t)?n(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||p1(t)?v(t):(e.consume(t),x)}function E(e){return 47===e||62===e||h1(e)?y(e):n(e)}function _(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||d1(t)?T(t):h1(t)?(e.consume(t),S):n(t)}function T(t){return 45===t&&2===a?(e.consume(t),I):60===t&&1===a?(e.consume(t),R):62===t&&4===a?(e.consume(t),D):63===t&&3===a?(e.consume(t),L):93===t&&5===a?(e.consume(t),P):!d1(t)||6!==a&&7!==a?null===t||d1(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(J1,M,C)(t))}function C(t){return e.check(e2,A,M)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||d1(t)?C(t):(e.enter("htmlFlowData"),T(t))}function I(t){return 45===t?(e.consume(t),L):T(t)}function R(t){return 47===t?(e.consume(t),i="",O):T(t)}function O(t){if(62===t){const n=i.toLowerCase();return Q1.includes(n)?(e.consume(t),D):T(t)}return a1(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),O):T(t)}function P(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===a?(e.consume(t),L):T(t)}function D(t){return null===t||d1(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(n){return e.exit("htmlFlow"),t(n)}}},J1={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(C1,t,n)}}},e2={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(d1(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const t2={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,o,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),k):63===t?(e.consume(t),b):a1(t)?(e.consume(t),E):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):a1(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):d1(t)?(i=u,O(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?R(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):d1(t)?(i=f,O(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?R(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?R(t):d1(t)?(i=y,O(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):d1(t)?(i=b,O(t)):(e.consume(t),b)}function v(e){return 62===e?R(e):b(e)}function k(t){return a1(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||o1(t)?(e.consume(t),w):x(t)}function x(t){return d1(t)?(i=x,O(t)):h1(t)?(e.consume(t),x):R(t)}function E(t){return 45===t||o1(t)?(e.consume(t),E):47===t||62===t||p1(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),R):58===t||95===t||a1(t)?(e.consume(t),S):d1(t)?(i=_,O(t)):h1(t)?(e.consume(t),_):R(t)}function S(t){return 45===t||46===t||58===t||95===t||o1(t)?(e.consume(t),S):T(t)}function T(t){return 61===t?(e.consume(t),C):d1(t)?(i=T,O(t)):h1(t)?(e.consume(t),T):_(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,A):d1(t)?(i=C,O(t)):h1(t)?(e.consume(t),C):(e.consume(t),N)}function A(t){return t===a?(e.consume(t),a=void 0,I):null===t?n(t):d1(t)?(i=A,O(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||p1(t)?_(t):(e.consume(t),N)}function I(e){return 47===e||62===e||p1(e)?_(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return h1(t)?b1(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}};const n2={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&X0(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,a,o,i=e.length,s=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=i);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=Q0(o,e.slice(r+1,r+s+3)),o=Q0(o,[["enter",u,t]]),o=Q0(o,E1(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),o=Q0(o,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),o=Q0(o,e.slice(a+1)),o=Q0(o,[["exit",l,t]]),X0(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let a,o,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return function(t){if(!a)return n(t);if(a._inactive)return u(t);return o=r.parser.defined.includes(r1(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(r2,c,o?c:u)(t):91===t?e.attempt(a2,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(o2,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},r2={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return p1(t)?G1(e,a)(t):a(t)}function a(t){return 41===t?c(t):U1(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return p1(t)?G1(e,s)(t):c(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?V1(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return p1(t)?G1(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},a2={tokenize:function(e,t,n){const r=this;return function(t){return $1.call(r,e,a,o,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(r1(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},o2={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const i2={name:"labelStartImage",resolveAll:n2.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const s2={name:"labelStartLink",resolveAll:n2.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const l2={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),b1(e,t,"linePrefix")}}};const c2={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),i(o)):a>=3&&(null===o||d1(o))?(e.exit("thematicBreak"),t(o)):n(o)}function i(t){return t===r?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),h1(t)?b1(e,o,"whitespace")(t):o(t))}}};const u2={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(C1,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,b1(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!h1(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(p2,t,a)(n)}));function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,b1(e,e.attempt(u2,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:l1(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(c2,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return l1(t)&&++i<10?(e.consume(t),s):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(C1,r.interrupt?n:c,e.attempt(d2,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return h1(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},d2={partial:!0,tokenize:function(e,t,n){const r=this;return b1(e,(function(e){const a=r.events[r.events.length-1];return!h1(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},p2={partial:!0,tokenize:function(e,t,n){const r=this;return b1(e,(function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const h2={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=i;return e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let i,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){i="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===a?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),h1(t)?b1(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||d1(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const f2={tokenize:function(e){const t=this,n=e.attempt(C1,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,b1(e,e.attempt(this.parser.constructs.flow,r,e.attempt(H1,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const m2={resolveAll:v2()},g2=b2("string"),y2=b2("text");function b2(e){return{resolveAll:v2("text"===e?k2:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,o,i);return o;function o(e){return l(e)?a(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function v2(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function k2(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let o,i=a.length,s=-1,l=0;for(;i--;){const e=a[i];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const a={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const w2={42:u2,43:u2,45:u2,48:u2,49:u2,50:u2,51:u2,52:u2,53:u2,54:u2,55:u2,56:u2,57:u2,62:A1},x2={91:W1},E2={[-2]:P1,[-1]:P1,32:P1},_2={35:K1,42:c2,45:[h2,c2],60:Z1,61:h2,95:c2,96:O1,126:O1},S2={38:I1,92:N1},T2={[-5]:l2,[-4]:l2,[-3]:l2,33:i2,38:I1,42:_1,60:[T1,t2],91:s2,92:[Y1,N1],93:n2,95:_1,96:D1},C2={null:[_1,m2]},A2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:x2,disable:{null:[]},document:w2,flow:_2,flowInitial:E2,insideSpan:C2,string:S2,text:T2},Symbol.toStringTag,{value:"Module"}));function N2(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 a={},o=[];let i=[],s=[];const l={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){d1(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,b()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let i;if("string"==typeof o)i=o;else switch(o){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&a)continue;i=" ";break;default:i=String.fromCharCode(o)}a=-2===o,r.push(i)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(i=Q0(i,e),h(),null!==i[i.length-1])return[];return y(t,0),c.events=E1(o,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,o)];else{if(i=e.slice(n,a),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}o>0&&i.push(e[a].slice(0,o))}return i}(i,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:o}}function h(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}function f(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,a,o){let i,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return i=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){h=function(){const e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,o=Array.from(s);return{from:a,restore:i};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=o,b()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,y)(n)}}function g(t){return e(d,h),a}function y(e){return h.restore(),++u<i.length?m(i[u]):o}}}function y(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&X0(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const I2=/[\0\t\n\r]/g;const R2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function O2(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return n1(n.slice(t?2:1),t?16:10)}return K0(n)||e}const P2={}.hasOwnProperty;function L2(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:o(Q),blockQuote:o(W),characterEscape:S,characterReference:S,codeFenced:o(q),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(q,i),codeText:o(Y,i),codeTextData:S,data:S,codeFlowValue:S,definition:o(K),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(X),hardBreakEscape:o(Z),hardBreakTrailing:o(Z),htmlFlow:o(J,i),htmlFlowData:S,htmlText:o(J,i),htmlTextData:S,image:o(ee),label:i,link:o(te),listItem:o(re),listItemValue:p,listOrdered:o(ne,d),listUnordered:o(ne),paragraph:o(ae),reference:B,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(Q),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:G,autolinkProtocol:V,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:U,characterReference:$,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:T,codeIndented:l(y),codeText:l(R),codeTextData:T,data:T,definition:l(),definitionDestinationString:k,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(A),hardBreakTrailing:l(A),htmlFlow:l(N),htmlFlowData:T,htmlText:l(I),htmlTextData:T,image:l(P),label:D,labelText:L,lineEnding:C,link:l(O),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:M,resourceTitleString:F,resource:j,setextHeading:l(_),setextHeadingLineSequence:E,setextHeadingText:x,strong:l(),thematicBreak:l()}};M2(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:i,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=a(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];P2.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||j2).call(o,void 0,e[0])}for(r.position={start:D2(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:D2(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function a(e,t,n){let r,a,o,i,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||l||o||(o=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=s;for(a=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!a||o<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,o=void 0,i=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:D2(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+x0({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||j2).call(this,e,r[0])}n.position.end=D2(e.end)}function u(){return G0(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=r1(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function k(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:D2(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=D2(e.end)}function C(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=D2(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),T.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(R2,O2)}(t),n.identifier=r1(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=r1(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=n1(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=K0(t)}this.stack[this.stack.length-1].value+=r}function $(e){this.stack.pop().position.end=D2(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function q(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!j1(e););return e}(function(e){const t={constructs:J0([A2,...(e||{}).extensions||[]]),content:n(v1),defined:[],document:n(k1),flow:n(f2),lazy:{},string:n(g2),text:n(y2)};return t;function n(e){return function(n){return N2(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,o,i){const s=[];let l,c,u,d,p;for(a=n+("string"==typeof a?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,n="",r&&(65279===a.charCodeAt(0)&&u++,r=void 0);u<a.length;){if(I2.lastIndex=u,l=I2.exec(a),d=l&&void 0!==l.index?l.index:a.length,p=a.charCodeAt(d),!l){n=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function D2(e){return{line:e.line,column:e.column,offset:e.offset}}function M2(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?M2(e,r):F2(e,r)}}function F2(e,t){let n;for(n in t)if(P2.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 j2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+x0({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+x0({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+x0({start:t.start,end:t.end})+") is still open")}function B2(e){const t=this;t.parser=function(n){return L2(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function H2(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&"text"===i.type?i.value+=r:a.push({type:"text",value:r}),a}function z2(e){const t=e.spread;return null==t?e.children.length>1:t}function U2(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push($2(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push($2(t.slice(a),a>0,!1)),o.join("")}function $2(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const V2={blockquote:function(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)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=y1(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return H2(e,t);const a={src:y1(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:y1(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(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)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return H2(e,t);const a={href:y1(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:y1(t.url)};null!==t.title&&void 0!==t.title&&(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)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=z2(n[r])}return t}(n):z2(t),o={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}const l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=k0(t.children[1]),i=v0(t.children[t.children.length-1]);o&&i&&(r.position={start:o,end:i}),a.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,i=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<i;){const n=t.children[s],r={},i=o?o[s]:void 0;i&&(r.align=i);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:U2(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:G2,yaml:G2,definition:G2,footnoteDefinition:G2};function G2(){}const W2="object"==typeof self?self:globalThis,q2=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new W2[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new W2[o](i),a)};return r})(new Map,e)(0),Y2="",{toString:K2}={},{keys:X2}=Object,Q2=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=K2.call(e).slice(8,-1);switch(n){case"Array":return[1,Y2];case"Object":return[2,Y2];case"Date":return[3,Y2];case"RegExp":return[4,Y2];case"Map":return[5,Y2];case"Set":return[6,Y2];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Z2=([e,t])=>0===e&&("function"===t||"symbol"===t),J2=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},o=r=>{if(n.has(r))return n.get(r);let[i,s]=Q2(r);switch(i){case 0:{let t=r;switch(s){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([i,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([i,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=a([i,n],r);for(const t of X2(r))!e&&Z2(Q2(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return a([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([i,{source:e,flags:t}],r)}case 5:{const t=[],n=a([i,t],r);for(const[a,i]of r)(e||!Z2(Q2(a))&&!Z2(Q2(i)))&&t.push([o(a),o(i)]);return n}case 6:{const t=[],n=a([i,t],r);for(const a of r)!e&&Z2(Q2(a))||t.push(o(a));return n}}const{message:l}=r;return a([i,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},e5="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?q2(J2(e,t)):structuredClone(e):(e,t)=>q2(J2(e,t));function t5(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 n5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const r5=function(e){if(null==e)return o5;if("function"==typeof e)return a5(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=r5(e[n]);return a5(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return a5(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return a5(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function a5(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function o5(){return!0}const i5=[],s5=!0,l5=!1;function c5(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const o=r5(a),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=i5;if((!t||o(a,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[s5,e];return null==e?i5:[e]}(n(a,l)),p[0]===l5))return p;if("children"in a&&a.children){const t=a;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+i,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===l5)return c;u="number"==typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function u5(e,t,n,r){let a,o,i;"function"==typeof t&&"function"!=typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=r),c5(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)}),a)}const d5={}.hasOwnProperty,p5={};function h5(e,t){e.position&&(t.position=function(e){const t=k0(e),n=v0(e);if(t&&n)return{start:t,end:n}}(e))}function f5(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&a&&Object.assign(n.properties,e5(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function m5(e,t){const n=t.data||{},r=!("value"in t)||d5.call(n,"hProperties")||d5.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function g5(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function y5(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function b5(e,t){const n=function(e,t){const n=t||p5,r=new Map,a=new Map,o=new Map,i={...V2,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=s.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=y5(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=y5(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:f5,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=s.handlers[n];if(d5.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=e5(n);return r.children=s.all(e),r}return e5(e)}return(s.options.unknownHandler||m5)(s,e,t)},options:n,patch:h5,wrap:g5};return u5(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||t5,r=e.options.footnoteBackLabel||n5,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const o=e.all(a),i=String(a.identifier).toUpperCase(),c=y1(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(a,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...e5(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:"\n"},a),o}function v5(e,t){return e&&"run"in e?async function(n,r){const a=b5(n,{file:r,...t});await e.run(a,r)}:function(n,r){return b5(n,{file:r,...e||t})}}function k5(e){if(e)throw e}var w5=Object.prototype.hasOwnProperty,x5=Object.prototype.toString,E5=Object.defineProperty,_5=Object.getOwnPropertyDescriptor,S5=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===x5.call(e)},T5=function(e){if(!e||"[object Object]"!==x5.call(e))return!1;var t,n=w5.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&w5.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||w5.call(e,t)},C5=function(e,t){E5&&"__proto__"===t.name?E5(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},A5=function(e,t){if("__proto__"===t){if(!w5.call(e,t))return;if(_5)return _5(e,t).value}return e[t]},N5=function e(){var t,n,r,a,o,i,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=A5(s,n),s!==(a=A5(t,n))&&(u&&a&&(T5(a)||(o=S5(a)))?(o?(o=!1,i=r&&S5(r)?r:[]):i=r&&T5(r)?r:{},C5(s,{name:n,newValue:e(u,i,a)})):void 0!==a&&C5(s,{name:n,newValue:a}));return s};const I5=p(N5);function R5(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function O5(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(o,...i){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==i[l]&&void 0!==i[l]||(i[l]=t[l]);t=i,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(a);try{s=e.apply(this,t)}catch(o){if(r&&n)throw o;return a(o)}r||(s&&s.then&&"function"==typeof s.then?s.then(i,a):s instanceof Error?a(s):i(s))}function a(e,...r){n||(n=!0,t(e,...r))}function i(e){a(null,e)}}(s,a)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const P5={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');L5(e);let n,r=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));r===a?a=i:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(L5(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){L5(e);let t,n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=n+1;break}}if(o<0||r<0||0===i||1===i&&o===r-1&&o===a+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)L5(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){L5(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",o=0):(a=a.slice(0,r),o=a.length-1-a.lastIndexOf("/")),i=l,s=0;continue}}else if(a.length>0){a="",o=0,i=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function L5(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const D5={cwd:function(){return"/"}};function M5(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function F5(e){if("string"==typeof e)e=new URL(e);else if(!M5(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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const j5=["history","path","basename","stem","extname","dirname"];class B5{constructor(e){let t;t=e?M5(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":D5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<j5.length;){const e=j5[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)j5.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?P5.basename(this.path):void 0}set basename(e){z5(e,"basename"),H5(e,"basename"),this.path=P5.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?P5.dirname(this.path):void 0}set dirname(e){U5(this.basename,"dirname"),this.path=P5.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?P5.extname(this.path):void 0}set extname(e){if(H5(e,"extname"),U5(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=P5.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){M5(e)&&(e=F5(e)),z5(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?P5.basename(this.path,this.extname):void 0}set stem(e){z5(e,"stem"),H5(e,"stem"),this.path=P5.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new T0(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function H5(e,t){if(e&&e.includes(P5.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+P5.sep+"`")}function z5(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function U5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const $5=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},V5={}.hasOwnProperty;class G5 extends $5{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=O5()}copy(){const e=new G5;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(I5(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(K5("data",this.frozen),this.namespace[e]=t,this):V5.call(this.namespace,e)&&this.namespace[e]||void 0:e?(K5("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Z5(e),n=this.parser||this.Parser;return q5("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),q5("process",this.parser||this.Parser),Y5("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const o=Z5(e),i=n.parse(o);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,o,(function(e,t,r){if(e||!t||!r)return s(e);const a=t,o=n.stringify(a,r);var i;"string"==typeof(i=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=o:r.result=o,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),q5("processSync",this.parser||this.Parser),Y5("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,k5(e),t=r})),Q5("processSync","process",n),t}run(e,t,n){X5(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){const i=Z5(t);r.run(e,i,(function(t,r,i){const s=r||e;t?o(t):a?a(s):n(void 0,s,i)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){k5(e),n=t,r=!0})),Q5("runSync","run",r),n}stringify(e,t){this.freeze();const n=Z5(t),r=this.compiler||this.Compiler;return Y5("stringify",r),X5(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(K5("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):o(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))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");i(e.plugins),e.settings&&(r.settings=I5(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const i=n[a][1];R5(i)&&R5(r)&&(r=I5(!0,i,r)),n[a]=[e,r,...o]}}}}const W5=(new G5).freeze();function q5(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Y5(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function K5(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 X5(e){if(!R5(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Q5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Z5(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new B5(e)}const J5=[],e3={allowDangerousHtml:!0},t3=/^(https?|ircs?|mailto|xmpp)$/i,n3=[{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:"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 r3(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,i=e.disallowedElements,s=e.rehypePlugins||J5,l=e.remarkPlugins||J5,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...e3}:e3,u=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||a3,h=W5().use(B2).use(l).use(v5,c).use(s),f=new B5;"string"==typeof r&&(f.value=r);for(const y of n3)Object.hasOwn(e,y.from)&&(y.from,y.to&&y.to,y.id);const m=h.parse(f);let g=h.runSync(m,f);return a&&(g={type:"element",tagName:"div",properties:{className:a},children:"root"===g.type?g.children:[g]}),u5(g,(function(e,r,a){if("raw"===e.type&&a&&"number"==typeof r)return u?a.children.splice(r,1):a.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in $0)if(Object.hasOwn($0,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=$0[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=p(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,a)),o&&a&&"number"==typeof r)return d&&e.children?a.children.splice(r,1,...e.children):a.children.splice(r,1),r}})),P0(g,{Fragment:Vh.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Vh.jsx,jsxs:Vh.jsxs,passKeys:!0,passNode:!0})}function a3(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||t3.test(e.slice(0,t))?e:""}const o3=/[#.]/g;function i3(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...o){let i;if(null==n){i={type:"root",children:[]};const e=a;o.unshift(e)}else{i=function(e,t){const n=e||"",r={};let a,o,i=0;for(;i<n.length;){o3.lastIndex=i;const e=o3.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?"#"===a?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t);const s=i.tagName.toLowerCase(),l=r?r.get(s):void 0;if(i.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(a))o.unshift(a);else for(const[t,n]of Object.entries(a))s3(e,i.properties,t,n)}for(const e of o)l3(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function s3(e,t,n,r){const a=HJ(e,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?GJ(r):a.commaSeparated?nJ(r):a.commaOrSpaceSeparated?GJ(nJ(r).join(" ")):c3(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(const t of o)e.push(c3(a,a.property,t));o=e}"className"===a.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function l3(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)l3(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?l3(e,t.children):e.push(t)}}function c3(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||pJ(n)===pJ(t)))return!0}return n}const u3=i3($J,"div"),d3=i3(VJ,"g",["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"]);function p3(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const h3={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/"},f3={}.hasOwnProperty,m3=Object.prototype;function g3(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},b3(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:y3(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=p3(t,e),a=-1===r?t.length+1:r+1;if(e===a)break;n.push(a)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let a=n[r];if(void 0===a){const e=p3(t,n[r-1]);a=-1===e?t.length+1:e+1,n[r]=a}if(a>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),a=r.toPoint(0),o=r.toPoint(t.length);n.position={start:a,end:o}}return n}case"#documentType":return n={type:"doctype"},b3(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},b3(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===h3.svg?VJ:$J;let r=-1;const a={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;f3.call(m3,n)||(a[n]=e.value)}const o="svg"===e.schema.space?d3:u3,i=o(t.tagName,a,y3(e,t.childNodes));if(b3(e,t,i),"template"===i.tagName){const n=t,r=n.sourceCodeLocation,a=r&&r.startTag&&v3(r.startTag),o=r&&r.endTag&&v3(r.endTag),s=g3(e,n.content);a&&o&&e.file&&(s.position={start:a.end,end:o.start}),i.content=s}return e.schema=n,i}(e,t),n}}function y3(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=g3(e,t[n]);r.push(a)}return r}function b3(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=v3(n);if("element"===t.type){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const r={};let a;if(n.attrs)for(a in n.attrs)f3.call(n.attrs,a)&&(r[HJ(e.schema,a).property]=v3(n.attrs[a]));n.startTag;const o=v3(n.startTag),i=n.endTag?v3(n.endTag):void 0,s={opening:o};i&&(s.closing=i),s.properties=r,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function v3(e){const t=k3({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=k3({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function k3(e){return e.line&&e.column?e:void 0}class w3{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function x3(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new w3(n,r,t)}function E3(e){return e.toLowerCase()}w3.prototype.property={},w3.prototype.normal={},w3.prototype.space=null;class _3{constructor(e,t){this.property=e,this.attribute=t}}_3.prototype.space=null,_3.prototype.boolean=!1,_3.prototype.booleanish=!1,_3.prototype.overloadedBoolean=!1,_3.prototype.number=!1,_3.prototype.commaSeparated=!1,_3.prototype.spaceSeparated=!1,_3.prototype.commaOrSpaceSeparated=!1,_3.prototype.mustUseProperty=!1,_3.prototype.defined=!1;let S3=0;const T3=P3(),C3=P3(),A3=P3(),N3=P3(),I3=P3(),R3=P3(),O3=P3();function P3(){return 2**++S3}const L3=Object.freeze(Object.defineProperty({__proto__:null,boolean:T3,booleanish:C3,commaOrSpaceSeparated:O3,commaSeparated:R3,number:N3,overloadedBoolean:A3,spaceSeparated:I3},Symbol.toStringTag,{value:"Module"})),D3=Object.keys(L3);class M3 extends _3{constructor(e,t,n,r){let a=-1;if(super(e,t),F3(this,"space",r),"number"==typeof n)for(;++a<D3.length;){const e=D3[a];F3(this,D3[a],(n&L3[e])===L3[e])}}}function F3(e,t,n){n&&(e[t]=n)}M3.prototype.defined=!0;const j3={}.hasOwnProperty;function B3(e){const t={},n={};let r;for(r in e.properties)if(j3.call(e.properties,r)){const a=e.properties[r],o=new M3(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[E3(r)]=r,n[E3(o.attribute)]=r}return new w3(t,n,e.space)}const H3=B3({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),z3=B3({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function U3(e,t){return t in e?e[t]:t}function $3(e,t){return U3(e,t.toLowerCase())}const V3=B3({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$3,properties:{xmlns:null,xmlnsXLink:null}}),G3=B3({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:C3,ariaAutoComplete:null,ariaBusy:C3,ariaChecked:C3,ariaColCount:N3,ariaColIndex:N3,ariaColSpan:N3,ariaControls:I3,ariaCurrent:null,ariaDescribedBy:I3,ariaDetails:null,ariaDisabled:C3,ariaDropEffect:I3,ariaErrorMessage:null,ariaExpanded:C3,ariaFlowTo:I3,ariaGrabbed:C3,ariaHasPopup:null,ariaHidden:C3,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I3,ariaLevel:N3,ariaLive:null,ariaModal:C3,ariaMultiLine:C3,ariaMultiSelectable:C3,ariaOrientation:null,ariaOwns:I3,ariaPlaceholder:null,ariaPosInSet:N3,ariaPressed:C3,ariaReadOnly:C3,ariaRelevant:null,ariaRequired:C3,ariaRoleDescription:I3,ariaRowCount:N3,ariaRowIndex:N3,ariaRowSpan:N3,ariaSelected:C3,ariaSetSize:N3,ariaSort:null,ariaValueMax:N3,ariaValueMin:N3,ariaValueNow:N3,ariaValueText:null,role:null}}),W3=B3({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$3,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:R3,acceptCharset:I3,accessKey:I3,action:null,allow:null,allowFullScreen:T3,allowPaymentRequest:T3,allowUserMedia:T3,alt:null,as:null,async:T3,autoCapitalize:null,autoComplete:I3,autoFocus:T3,autoPlay:T3,blocking:I3,capture:null,charSet:null,checked:T3,cite:null,className:I3,cols:N3,colSpan:null,content:null,contentEditable:C3,controls:T3,controlsList:I3,coords:N3|R3,crossOrigin:null,data:null,dateTime:null,decoding:null,default:T3,defer:T3,dir:null,dirName:null,disabled:T3,download:A3,draggable:C3,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:T3,formTarget:null,headers:I3,height:N3,hidden:T3,high:N3,href:null,hrefLang:null,htmlFor:I3,httpEquiv:I3,id:null,imageSizes:null,imageSrcSet:null,inert:T3,inputMode:null,integrity:null,is:null,isMap:T3,itemId:null,itemProp:I3,itemRef:I3,itemScope:T3,itemType:I3,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:T3,low:N3,manifest:null,max:null,maxLength:N3,media:null,method:null,min:null,minLength:N3,multiple:T3,muted:T3,name:null,nonce:null,noModule:T3,noValidate:T3,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:T3,optimum:N3,pattern:null,ping:I3,placeholder:null,playsInline:T3,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:T3,referrerPolicy:null,rel:I3,required:T3,reversed:T3,rows:N3,rowSpan:N3,sandbox:I3,scope:null,scoped:T3,seamless:T3,selected:T3,shadowRootClonable:T3,shadowRootDelegatesFocus:T3,shadowRootMode:null,shape:null,size:N3,sizes:null,slot:null,span:N3,spellCheck:C3,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N3,step:null,style:null,tabIndex:N3,target:null,title:null,translate:null,type:null,typeMustMatch:T3,useMap:null,value:C3,width:N3,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I3,axis:null,background:null,bgColor:null,border:N3,borderColor:null,bottomMargin:N3,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:T3,declare:T3,event:null,face:null,frame:null,frameBorder:null,hSpace:N3,leftMargin:N3,link:null,longDesc:null,lowSrc:null,marginHeight:N3,marginWidth:N3,noResize:T3,noHref:T3,noShade:T3,noWrap:T3,object:null,profile:null,prompt:null,rev:null,rightMargin:N3,rules:null,scheme:null,scrolling:C3,standby:null,summary:null,text:null,topMargin:N3,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N3,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:T3,disableRemotePlayback:T3,prefix:null,property:null,results:N3,security:null,unselectable:null}}),q3=B3({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:U3,properties:{about:O3,accentHeight:N3,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N3,amplitude:N3,arabicForm:null,ascent:N3,attributeName:null,attributeType:null,azimuth:N3,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N3,by:null,calcMode:null,capHeight:N3,className:I3,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:N3,diffuseConstant:N3,direction:null,display:null,dur:null,divisor:N3,dominantBaseline:null,download:T3,dx:null,dy:null,edgeMode:null,editable:null,elevation:N3,enableBackground:null,end:null,event:null,exponent:N3,externalResourcesRequired:null,fill:null,fillOpacity:N3,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:R3,g2:R3,glyphName:R3,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N3,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N3,horizOriginX:N3,horizOriginY:N3,id:null,ideographic:N3,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N3,k:N3,k1:N3,k2:N3,k3:N3,k4:N3,kernelMatrix:O3,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N3,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:N3,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:N3,overlineThickness:N3,paintOrder:null,panose1:null,path:null,pathLength:N3,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:I3,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N3,pointsAtY:N3,pointsAtZ:N3,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:O3,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:O3,rev:O3,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:O3,requiredFeatures:O3,requiredFonts:O3,requiredFormats:O3,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:N3,specularExponent:N3,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N3,strikethroughThickness:N3,string:null,stroke:null,strokeDashArray:O3,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N3,strokeOpacity:N3,strokeWidth:null,style:null,surfaceScale:N3,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:O3,tabIndex:N3,tableValues:null,target:null,targetX:N3,targetY:N3,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:O3,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N3,underlineThickness:N3,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N3,values:null,vAlphabetic:N3,vMathematical:N3,vectorEffect:null,vHanging:N3,vIdeographic:N3,version:null,vertAdvY:N3,vertOriginX:N3,vertOriginY:N3,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N3,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Y3=/^data[-\w.:]+$/i,K3=/-[a-z]/g,X3=/[A-Z]/g;function Q3(e){return"-"+e.toLowerCase()}function Z3(e){return e.charAt(1).toUpperCase()}const J3=x3([z3,H3,V3,G3,W3],"html"),e4=x3([z3,H3,V3,G3,q3],"svg"),t4={}.hasOwnProperty;function n4(e,t){const n=t||{};function r(t,...n){let a=r.invalid;const o=r.handlers;if(t&&t4.call(t,e)){const n=String(t[e]);a=t4.call(o,n)?o[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const r4={},a4={}.hasOwnProperty,o4=n4("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=s4(e.children,n,t),l4(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=e4);const a=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&a4.call(e.properties,o)){const t=i4(r,o,e.properties[o]);t&&a.push(t)}const i=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:h3[i],childNodes:[],parentNode:null};s.childNodes=s4(e.children,s,r),l4(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=s4(e.children,n,t),l4(e,n),n}(e.content,r));return s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return l4(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return l4(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return l4(e,t),t}}});function i4(e,t,n){const r=function(e,t){const n=E3(t);let r=t,a=_3;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Y3.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(K3,Z3);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!K3.test(e)){let n=e.replace(X3,Q3);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=M3}return new a(r,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?rJ(n):WJ(n));const a={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=r.attribute.slice(0,e)),a.namespace=h3[r.space]}return a}function s4(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=o4(e[r],n);o.parentNode=t,a.push(o)}return a}function l4(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 c4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],u4=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]),d4="�";var p4,h4;(h4=p4||(p4={}))[h4.EOF=-1]="EOF",h4[h4.NULL=0]="NULL",h4[h4.TABULATION=9]="TABULATION",h4[h4.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",h4[h4.LINE_FEED=10]="LINE_FEED",h4[h4.FORM_FEED=12]="FORM_FEED",h4[h4.SPACE=32]="SPACE",h4[h4.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",h4[h4.QUOTATION_MARK=34]="QUOTATION_MARK",h4[h4.AMPERSAND=38]="AMPERSAND",h4[h4.APOSTROPHE=39]="APOSTROPHE",h4[h4.HYPHEN_MINUS=45]="HYPHEN_MINUS",h4[h4.SOLIDUS=47]="SOLIDUS",h4[h4.DIGIT_0=48]="DIGIT_0",h4[h4.DIGIT_9=57]="DIGIT_9",h4[h4.SEMICOLON=59]="SEMICOLON",h4[h4.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",h4[h4.EQUALS_SIGN=61]="EQUALS_SIGN",h4[h4.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",h4[h4.QUESTION_MARK=63]="QUESTION_MARK",h4[h4.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",h4[h4.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",h4[h4.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",h4[h4.GRAVE_ACCENT=96]="GRAVE_ACCENT",h4[h4.LATIN_SMALL_A=97]="LATIN_SMALL_A",h4[h4.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const f4="--",m4="[CDATA[",g4="doctype",y4="script",b4="public",v4="system";function k4(e){return e>=55296&&e<=57343}function w4(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function x4(e){return e>=64976&&e<=65007||u4.has(e)}var E4,_4;(_4=E4||(E4={})).controlCharacterInInputStream="control-character-in-input-stream",_4.noncharacterInInputStream="noncharacter-in-input-stream",_4.surrogateInInputStream="surrogate-in-input-stream",_4.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",_4.endTagWithAttributes="end-tag-with-attributes",_4.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",_4.unexpectedSolidusInTag="unexpected-solidus-in-tag",_4.unexpectedNullCharacter="unexpected-null-character",_4.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",_4.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",_4.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",_4.missingEndTagName="missing-end-tag-name",_4.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",_4.unknownNamedCharacterReference="unknown-named-character-reference",_4.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",_4.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",_4.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",_4.eofBeforeTagName="eof-before-tag-name",_4.eofInTag="eof-in-tag",_4.missingAttributeValue="missing-attribute-value",_4.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",_4.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",_4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",_4.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",_4.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",_4.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",_4.missingDoctypePublicIdentifier="missing-doctype-public-identifier",_4.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",_4.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",_4.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",_4.cdataInHtmlContent="cdata-in-html-content",_4.incorrectlyOpenedComment="incorrectly-opened-comment",_4.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",_4.eofInDoctype="eof-in-doctype",_4.nestedComment="nested-comment",_4.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",_4.eofInComment="eof-in-comment",_4.incorrectlyClosedComment="incorrectly-closed-comment",_4.eofInCdata="eof-in-cdata",_4.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",_4.nullCharacterReference="null-character-reference",_4.surrogateCharacterReference="surrogate-character-reference",_4.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",_4.controlCharacterReference="control-character-reference",_4.noncharacterCharacterReference="noncharacter-character-reference",_4.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",_4.missingDoctypeName="missing-doctype-name",_4.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",_4.duplicateAttribute="duplicate-attribute",_4.nonConformingDoctype="non-conforming-doctype",_4.missingDoctype="missing-doctype",_4.misplacedDoctype="misplaced-doctype",_4.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",_4.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",_4.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",_4.openElementsLeftAfterEof="open-elements-left-after-eof",_4.abandonedHeadElementChild="abandoned-head-element-child",_4.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",_4.nestedNoscriptInHead="nested-noscript-in-head",_4.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class S4{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:a}=this,o=r+t,i=a+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,p4.EOF;return this._err(E4.surrogateInInputStream),e}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(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,p4.EOF;const n=this.html.charCodeAt(t);return n===p4.CARRIAGE_RETURN?p4.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,p4.EOF;let e=this.html.charCodeAt(this.pos);if(e===p4.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,p4.LINE_FEED;if(e===p4.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,k4(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===p4.LINE_FEED||e===p4.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){w4(e)?this._err(E4.controlCharacterInInputStream):x4(e)&&this._err(E4.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var T4,C4;function A4(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}(C4=T4||(T4={}))[C4.CHARACTER=0]="CHARACTER",C4[C4.NULL_CHARACTER=1]="NULL_CHARACTER",C4[C4.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",C4[C4.START_TAG=3]="START_TAG",C4[C4.END_TAG=4]="END_TAG",C4[C4.COMMENT=5]="COMMENT",C4[C4.DOCTYPE=6]="DOCTYPE",C4[C4.EOF=7]="EOF",C4[C4.HIBERNATION=8]="HIBERNATION";const N4=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)))),I4=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var R4;const O4=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]]),P4=null!==(R4=String.fromCodePoint)&&void 0!==R4?R4:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var L4,D4;(D4=L4||(L4={}))[D4.NUM=35]="NUM",D4[D4.SEMI=59]="SEMI",D4[D4.EQUALS=61]="EQUALS",D4[D4.ZERO=48]="ZERO",D4[D4.NINE=57]="NINE",D4[D4.LOWER_A=97]="LOWER_A",D4[D4.LOWER_F=102]="LOWER_F",D4[D4.LOWER_X=120]="LOWER_X",D4[D4.LOWER_Z=122]="LOWER_Z",D4[D4.UPPER_A=65]="UPPER_A",D4[D4.UPPER_F=70]="UPPER_F",D4[D4.UPPER_Z=90]="UPPER_Z";var M4,F4,j4,B4,H4,z4,U4,$4,V4,G4,W4,q4,Y4,K4,X4,Q4;function Z4(e){return e>=L4.ZERO&&e<=L4.NINE}function J4(e){return e===L4.EQUALS||function(e){return e>=L4.UPPER_A&&e<=L4.UPPER_Z||e>=L4.LOWER_A&&e<=L4.LOWER_Z||Z4(e)}(e)}(F4=M4||(M4={}))[F4.VALUE_LENGTH=49152]="VALUE_LENGTH",F4[F4.BRANCH_LENGTH=16256]="BRANCH_LENGTH",F4[F4.JUMP_TABLE=127]="JUMP_TABLE",(B4=j4||(j4={}))[B4.EntityStart=0]="EntityStart",B4[B4.NumericStart=1]="NumericStart",B4[B4.NumericDecimal=2]="NumericDecimal",B4[B4.NumericHex=3]="NumericHex",B4[B4.NamedEntity=4]="NamedEntity",(z4=H4||(H4={}))[z4.Legacy=0]="Legacy",z4[z4.Strict=1]="Strict",z4[z4.Attribute=2]="Attribute";class e6{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=j4.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=H4.Strict}startEntity(e){this.decodeMode=e,this.state=j4.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case j4.EntityStart:return e.charCodeAt(t)===L4.NUM?(this.state=j4.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=j4.NamedEntity,this.stateNamedEntity(e,t));case j4.NumericStart:return this.stateNumericStart(e,t);case j4.NumericDecimal:return this.stateNumericDecimal(e,t);case j4.NumericHex:return this.stateNumericHex(e,t);case j4.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===L4.LOWER_X?(this.state=j4.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=j4.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const a=n-t;this.result=this.result*Math.pow(r,a)+parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const a=e.charCodeAt(t);if(!(Z4(a)||(r=a,r>=L4.UPPER_A&&r<=L4.UPPER_F||r>=L4.LOWER_A&&r<=L4.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(a,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Z4(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===L4.SEMI)this.consumed+=1;else if(this.decodeMode===H4.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=O4.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==L4.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],a=(r&M4.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=n6(n,r,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return 0===this.result||this.decodeMode===H4.Attribute&&(0===a||J4(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],a=(r&M4.VALUE_LENGTH)>>14,0!==a){if(o===L4.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==H4.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&M4.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~M4.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case j4.NamedEntity:return 0===this.result||this.decodeMode===H4.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case j4.NumericDecimal:return this.emitNumericEntity(0,2);case j4.NumericHex:return this.emitNumericEntity(0,3);case j4.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case j4.EntityStart:return 0}}}function t6(e){let t="";const n=new e6(e,(e=>t+=P4(e)));return function(e,r){let a=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(a,o),n.startEntity(r);const i=n.write(e,o+1);if(i<0){a=o+n.end();break}a=o+i,o=0===i?a+1:a}const i=t+e.slice(a);return t="",i}}function n6(e,t,n,r){const a=(t&M4.BRANCH_LENGTH)>>7,o=t&M4.JUMP_TABLE;if(0===a)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=a?-1:e[n+t]-1}let i=n,s=i+a-1;for(;i<=s;){const t=i+s>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+a];s=t-1}}return-1}t6(N4),t6(I4),($4=U4||(U4={})).HTML="http://www.w3.org/1999/xhtml",$4.MATHML="http://www.w3.org/1998/Math/MathML",$4.SVG="http://www.w3.org/2000/svg",$4.XLINK="http://www.w3.org/1999/xlink",$4.XML="http://www.w3.org/XML/1998/namespace",$4.XMLNS="http://www.w3.org/2000/xmlns/",(G4=V4||(V4={})).TYPE="type",G4.ACTION="action",G4.ENCODING="encoding",G4.PROMPT="prompt",G4.NAME="name",G4.COLOR="color",G4.FACE="face",G4.SIZE="size",(q4=W4||(W4={})).NO_QUIRKS="no-quirks",q4.QUIRKS="quirks",q4.LIMITED_QUIRKS="limited-quirks",(K4=Y4||(Y4={})).A="a",K4.ADDRESS="address",K4.ANNOTATION_XML="annotation-xml",K4.APPLET="applet",K4.AREA="area",K4.ARTICLE="article",K4.ASIDE="aside",K4.B="b",K4.BASE="base",K4.BASEFONT="basefont",K4.BGSOUND="bgsound",K4.BIG="big",K4.BLOCKQUOTE="blockquote",K4.BODY="body",K4.BR="br",K4.BUTTON="button",K4.CAPTION="caption",K4.CENTER="center",K4.CODE="code",K4.COL="col",K4.COLGROUP="colgroup",K4.DD="dd",K4.DESC="desc",K4.DETAILS="details",K4.DIALOG="dialog",K4.DIR="dir",K4.DIV="div",K4.DL="dl",K4.DT="dt",K4.EM="em",K4.EMBED="embed",K4.FIELDSET="fieldset",K4.FIGCAPTION="figcaption",K4.FIGURE="figure",K4.FONT="font",K4.FOOTER="footer",K4.FOREIGN_OBJECT="foreignObject",K4.FORM="form",K4.FRAME="frame",K4.FRAMESET="frameset",K4.H1="h1",K4.H2="h2",K4.H3="h3",K4.H4="h4",K4.H5="h5",K4.H6="h6",K4.HEAD="head",K4.HEADER="header",K4.HGROUP="hgroup",K4.HR="hr",K4.HTML="html",K4.I="i",K4.IMG="img",K4.IMAGE="image",K4.INPUT="input",K4.IFRAME="iframe",K4.KEYGEN="keygen",K4.LABEL="label",K4.LI="li",K4.LINK="link",K4.LISTING="listing",K4.MAIN="main",K4.MALIGNMARK="malignmark",K4.MARQUEE="marquee",K4.MATH="math",K4.MENU="menu",K4.META="meta",K4.MGLYPH="mglyph",K4.MI="mi",K4.MO="mo",K4.MN="mn",K4.MS="ms",K4.MTEXT="mtext",K4.NAV="nav",K4.NOBR="nobr",K4.NOFRAMES="noframes",K4.NOEMBED="noembed",K4.NOSCRIPT="noscript",K4.OBJECT="object",K4.OL="ol",K4.OPTGROUP="optgroup",K4.OPTION="option",K4.P="p",K4.PARAM="param",K4.PLAINTEXT="plaintext",K4.PRE="pre",K4.RB="rb",K4.RP="rp",K4.RT="rt",K4.RTC="rtc",K4.RUBY="ruby",K4.S="s",K4.SCRIPT="script",K4.SEARCH="search",K4.SECTION="section",K4.SELECT="select",K4.SOURCE="source",K4.SMALL="small",K4.SPAN="span",K4.STRIKE="strike",K4.STRONG="strong",K4.STYLE="style",K4.SUB="sub",K4.SUMMARY="summary",K4.SUP="sup",K4.TABLE="table",K4.TBODY="tbody",K4.TEMPLATE="template",K4.TEXTAREA="textarea",K4.TFOOT="tfoot",K4.TD="td",K4.TH="th",K4.THEAD="thead",K4.TITLE="title",K4.TR="tr",K4.TRACK="track",K4.TT="tt",K4.U="u",K4.UL="ul",K4.SVG="svg",K4.VAR="var",K4.WBR="wbr",K4.XMP="xmp",(Q4=X4||(X4={}))[Q4.UNKNOWN=0]="UNKNOWN",Q4[Q4.A=1]="A",Q4[Q4.ADDRESS=2]="ADDRESS",Q4[Q4.ANNOTATION_XML=3]="ANNOTATION_XML",Q4[Q4.APPLET=4]="APPLET",Q4[Q4.AREA=5]="AREA",Q4[Q4.ARTICLE=6]="ARTICLE",Q4[Q4.ASIDE=7]="ASIDE",Q4[Q4.B=8]="B",Q4[Q4.BASE=9]="BASE",Q4[Q4.BASEFONT=10]="BASEFONT",Q4[Q4.BGSOUND=11]="BGSOUND",Q4[Q4.BIG=12]="BIG",Q4[Q4.BLOCKQUOTE=13]="BLOCKQUOTE",Q4[Q4.BODY=14]="BODY",Q4[Q4.BR=15]="BR",Q4[Q4.BUTTON=16]="BUTTON",Q4[Q4.CAPTION=17]="CAPTION",Q4[Q4.CENTER=18]="CENTER",Q4[Q4.CODE=19]="CODE",Q4[Q4.COL=20]="COL",Q4[Q4.COLGROUP=21]="COLGROUP",Q4[Q4.DD=22]="DD",Q4[Q4.DESC=23]="DESC",Q4[Q4.DETAILS=24]="DETAILS",Q4[Q4.DIALOG=25]="DIALOG",Q4[Q4.DIR=26]="DIR",Q4[Q4.DIV=27]="DIV",Q4[Q4.DL=28]="DL",Q4[Q4.DT=29]="DT",Q4[Q4.EM=30]="EM",Q4[Q4.EMBED=31]="EMBED",Q4[Q4.FIELDSET=32]="FIELDSET",Q4[Q4.FIGCAPTION=33]="FIGCAPTION",Q4[Q4.FIGURE=34]="FIGURE",Q4[Q4.FONT=35]="FONT",Q4[Q4.FOOTER=36]="FOOTER",Q4[Q4.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Q4[Q4.FORM=38]="FORM",Q4[Q4.FRAME=39]="FRAME",Q4[Q4.FRAMESET=40]="FRAMESET",Q4[Q4.H1=41]="H1",Q4[Q4.H2=42]="H2",Q4[Q4.H3=43]="H3",Q4[Q4.H4=44]="H4",Q4[Q4.H5=45]="H5",Q4[Q4.H6=46]="H6",Q4[Q4.HEAD=47]="HEAD",Q4[Q4.HEADER=48]="HEADER",Q4[Q4.HGROUP=49]="HGROUP",Q4[Q4.HR=50]="HR",Q4[Q4.HTML=51]="HTML",Q4[Q4.I=52]="I",Q4[Q4.IMG=53]="IMG",Q4[Q4.IMAGE=54]="IMAGE",Q4[Q4.INPUT=55]="INPUT",Q4[Q4.IFRAME=56]="IFRAME",Q4[Q4.KEYGEN=57]="KEYGEN",Q4[Q4.LABEL=58]="LABEL",Q4[Q4.LI=59]="LI",Q4[Q4.LINK=60]="LINK",Q4[Q4.LISTING=61]="LISTING",Q4[Q4.MAIN=62]="MAIN",Q4[Q4.MALIGNMARK=63]="MALIGNMARK",Q4[Q4.MARQUEE=64]="MARQUEE",Q4[Q4.MATH=65]="MATH",Q4[Q4.MENU=66]="MENU",Q4[Q4.META=67]="META",Q4[Q4.MGLYPH=68]="MGLYPH",Q4[Q4.MI=69]="MI",Q4[Q4.MO=70]="MO",Q4[Q4.MN=71]="MN",Q4[Q4.MS=72]="MS",Q4[Q4.MTEXT=73]="MTEXT",Q4[Q4.NAV=74]="NAV",Q4[Q4.NOBR=75]="NOBR",Q4[Q4.NOFRAMES=76]="NOFRAMES",Q4[Q4.NOEMBED=77]="NOEMBED",Q4[Q4.NOSCRIPT=78]="NOSCRIPT",Q4[Q4.OBJECT=79]="OBJECT",Q4[Q4.OL=80]="OL",Q4[Q4.OPTGROUP=81]="OPTGROUP",Q4[Q4.OPTION=82]="OPTION",Q4[Q4.P=83]="P",Q4[Q4.PARAM=84]="PARAM",Q4[Q4.PLAINTEXT=85]="PLAINTEXT",Q4[Q4.PRE=86]="PRE",Q4[Q4.RB=87]="RB",Q4[Q4.RP=88]="RP",Q4[Q4.RT=89]="RT",Q4[Q4.RTC=90]="RTC",Q4[Q4.RUBY=91]="RUBY",Q4[Q4.S=92]="S",Q4[Q4.SCRIPT=93]="SCRIPT",Q4[Q4.SEARCH=94]="SEARCH",Q4[Q4.SECTION=95]="SECTION",Q4[Q4.SELECT=96]="SELECT",Q4[Q4.SOURCE=97]="SOURCE",Q4[Q4.SMALL=98]="SMALL",Q4[Q4.SPAN=99]="SPAN",Q4[Q4.STRIKE=100]="STRIKE",Q4[Q4.STRONG=101]="STRONG",Q4[Q4.STYLE=102]="STYLE",Q4[Q4.SUB=103]="SUB",Q4[Q4.SUMMARY=104]="SUMMARY",Q4[Q4.SUP=105]="SUP",Q4[Q4.TABLE=106]="TABLE",Q4[Q4.TBODY=107]="TBODY",Q4[Q4.TEMPLATE=108]="TEMPLATE",Q4[Q4.TEXTAREA=109]="TEXTAREA",Q4[Q4.TFOOT=110]="TFOOT",Q4[Q4.TD=111]="TD",Q4[Q4.TH=112]="TH",Q4[Q4.THEAD=113]="THEAD",Q4[Q4.TITLE=114]="TITLE",Q4[Q4.TR=115]="TR",Q4[Q4.TRACK=116]="TRACK",Q4[Q4.TT=117]="TT",Q4[Q4.U=118]="U",Q4[Q4.UL=119]="UL",Q4[Q4.SVG=120]="SVG",Q4[Q4.VAR=121]="VAR",Q4[Q4.WBR=122]="WBR",Q4[Q4.XMP=123]="XMP";const r6=new Map([[Y4.A,X4.A],[Y4.ADDRESS,X4.ADDRESS],[Y4.ANNOTATION_XML,X4.ANNOTATION_XML],[Y4.APPLET,X4.APPLET],[Y4.AREA,X4.AREA],[Y4.ARTICLE,X4.ARTICLE],[Y4.ASIDE,X4.ASIDE],[Y4.B,X4.B],[Y4.BASE,X4.BASE],[Y4.BASEFONT,X4.BASEFONT],[Y4.BGSOUND,X4.BGSOUND],[Y4.BIG,X4.BIG],[Y4.BLOCKQUOTE,X4.BLOCKQUOTE],[Y4.BODY,X4.BODY],[Y4.BR,X4.BR],[Y4.BUTTON,X4.BUTTON],[Y4.CAPTION,X4.CAPTION],[Y4.CENTER,X4.CENTER],[Y4.CODE,X4.CODE],[Y4.COL,X4.COL],[Y4.COLGROUP,X4.COLGROUP],[Y4.DD,X4.DD],[Y4.DESC,X4.DESC],[Y4.DETAILS,X4.DETAILS],[Y4.DIALOG,X4.DIALOG],[Y4.DIR,X4.DIR],[Y4.DIV,X4.DIV],[Y4.DL,X4.DL],[Y4.DT,X4.DT],[Y4.EM,X4.EM],[Y4.EMBED,X4.EMBED],[Y4.FIELDSET,X4.FIELDSET],[Y4.FIGCAPTION,X4.FIGCAPTION],[Y4.FIGURE,X4.FIGURE],[Y4.FONT,X4.FONT],[Y4.FOOTER,X4.FOOTER],[Y4.FOREIGN_OBJECT,X4.FOREIGN_OBJECT],[Y4.FORM,X4.FORM],[Y4.FRAME,X4.FRAME],[Y4.FRAMESET,X4.FRAMESET],[Y4.H1,X4.H1],[Y4.H2,X4.H2],[Y4.H3,X4.H3],[Y4.H4,X4.H4],[Y4.H5,X4.H5],[Y4.H6,X4.H6],[Y4.HEAD,X4.HEAD],[Y4.HEADER,X4.HEADER],[Y4.HGROUP,X4.HGROUP],[Y4.HR,X4.HR],[Y4.HTML,X4.HTML],[Y4.I,X4.I],[Y4.IMG,X4.IMG],[Y4.IMAGE,X4.IMAGE],[Y4.INPUT,X4.INPUT],[Y4.IFRAME,X4.IFRAME],[Y4.KEYGEN,X4.KEYGEN],[Y4.LABEL,X4.LABEL],[Y4.LI,X4.LI],[Y4.LINK,X4.LINK],[Y4.LISTING,X4.LISTING],[Y4.MAIN,X4.MAIN],[Y4.MALIGNMARK,X4.MALIGNMARK],[Y4.MARQUEE,X4.MARQUEE],[Y4.MATH,X4.MATH],[Y4.MENU,X4.MENU],[Y4.META,X4.META],[Y4.MGLYPH,X4.MGLYPH],[Y4.MI,X4.MI],[Y4.MO,X4.MO],[Y4.MN,X4.MN],[Y4.MS,X4.MS],[Y4.MTEXT,X4.MTEXT],[Y4.NAV,X4.NAV],[Y4.NOBR,X4.NOBR],[Y4.NOFRAMES,X4.NOFRAMES],[Y4.NOEMBED,X4.NOEMBED],[Y4.NOSCRIPT,X4.NOSCRIPT],[Y4.OBJECT,X4.OBJECT],[Y4.OL,X4.OL],[Y4.OPTGROUP,X4.OPTGROUP],[Y4.OPTION,X4.OPTION],[Y4.P,X4.P],[Y4.PARAM,X4.PARAM],[Y4.PLAINTEXT,X4.PLAINTEXT],[Y4.PRE,X4.PRE],[Y4.RB,X4.RB],[Y4.RP,X4.RP],[Y4.RT,X4.RT],[Y4.RTC,X4.RTC],[Y4.RUBY,X4.RUBY],[Y4.S,X4.S],[Y4.SCRIPT,X4.SCRIPT],[Y4.SEARCH,X4.SEARCH],[Y4.SECTION,X4.SECTION],[Y4.SELECT,X4.SELECT],[Y4.SOURCE,X4.SOURCE],[Y4.SMALL,X4.SMALL],[Y4.SPAN,X4.SPAN],[Y4.STRIKE,X4.STRIKE],[Y4.STRONG,X4.STRONG],[Y4.STYLE,X4.STYLE],[Y4.SUB,X4.SUB],[Y4.SUMMARY,X4.SUMMARY],[Y4.SUP,X4.SUP],[Y4.TABLE,X4.TABLE],[Y4.TBODY,X4.TBODY],[Y4.TEMPLATE,X4.TEMPLATE],[Y4.TEXTAREA,X4.TEXTAREA],[Y4.TFOOT,X4.TFOOT],[Y4.TD,X4.TD],[Y4.TH,X4.TH],[Y4.THEAD,X4.THEAD],[Y4.TITLE,X4.TITLE],[Y4.TR,X4.TR],[Y4.TRACK,X4.TRACK],[Y4.TT,X4.TT],[Y4.U,X4.U],[Y4.UL,X4.UL],[Y4.SVG,X4.SVG],[Y4.VAR,X4.VAR],[Y4.WBR,X4.WBR],[Y4.XMP,X4.XMP]]);function a6(e){var t;return null!==(t=r6.get(e))&&void 0!==t?t:X4.UNKNOWN}const o6=X4,i6={[U4.HTML]:new Set([o6.ADDRESS,o6.APPLET,o6.AREA,o6.ARTICLE,o6.ASIDE,o6.BASE,o6.BASEFONT,o6.BGSOUND,o6.BLOCKQUOTE,o6.BODY,o6.BR,o6.BUTTON,o6.CAPTION,o6.CENTER,o6.COL,o6.COLGROUP,o6.DD,o6.DETAILS,o6.DIR,o6.DIV,o6.DL,o6.DT,o6.EMBED,o6.FIELDSET,o6.FIGCAPTION,o6.FIGURE,o6.FOOTER,o6.FORM,o6.FRAME,o6.FRAMESET,o6.H1,o6.H2,o6.H3,o6.H4,o6.H5,o6.H6,o6.HEAD,o6.HEADER,o6.HGROUP,o6.HR,o6.HTML,o6.IFRAME,o6.IMG,o6.INPUT,o6.LI,o6.LINK,o6.LISTING,o6.MAIN,o6.MARQUEE,o6.MENU,o6.META,o6.NAV,o6.NOEMBED,o6.NOFRAMES,o6.NOSCRIPT,o6.OBJECT,o6.OL,o6.P,o6.PARAM,o6.PLAINTEXT,o6.PRE,o6.SCRIPT,o6.SECTION,o6.SELECT,o6.SOURCE,o6.STYLE,o6.SUMMARY,o6.TABLE,o6.TBODY,o6.TD,o6.TEMPLATE,o6.TEXTAREA,o6.TFOOT,o6.TH,o6.THEAD,o6.TITLE,o6.TR,o6.TRACK,o6.UL,o6.WBR,o6.XMP]),[U4.MATHML]:new Set([o6.MI,o6.MO,o6.MN,o6.MS,o6.MTEXT,o6.ANNOTATION_XML]),[U4.SVG]:new Set([o6.TITLE,o6.FOREIGN_OBJECT,o6.DESC]),[U4.XLINK]:new Set,[U4.XML]:new Set,[U4.XMLNS]:new Set},s6=new Set([o6.H1,o6.H2,o6.H3,o6.H4,o6.H5,o6.H6]);var l6,c6;Y4.STYLE,Y4.SCRIPT,Y4.XMP,Y4.IFRAME,Y4.NOEMBED,Y4.NOFRAMES,Y4.PLAINTEXT,(c6=l6||(l6={}))[c6.DATA=0]="DATA",c6[c6.RCDATA=1]="RCDATA",c6[c6.RAWTEXT=2]="RAWTEXT",c6[c6.SCRIPT_DATA=3]="SCRIPT_DATA",c6[c6.PLAINTEXT=4]="PLAINTEXT",c6[c6.TAG_OPEN=5]="TAG_OPEN",c6[c6.END_TAG_OPEN=6]="END_TAG_OPEN",c6[c6.TAG_NAME=7]="TAG_NAME",c6[c6.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",c6[c6.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",c6[c6.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",c6[c6.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",c6[c6.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",c6[c6.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",c6[c6.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",c6[c6.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",c6[c6.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",c6[c6.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",c6[c6.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",c6[c6.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",c6[c6.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",c6[c6.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",c6[c6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",c6[c6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",c6[c6.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",c6[c6.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",c6[c6.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",c6[c6.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",c6[c6.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",c6[c6.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",c6[c6.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",c6[c6.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",c6[c6.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",c6[c6.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",c6[c6.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",c6[c6.BOGUS_COMMENT=40]="BOGUS_COMMENT",c6[c6.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",c6[c6.COMMENT_START=42]="COMMENT_START",c6[c6.COMMENT_START_DASH=43]="COMMENT_START_DASH",c6[c6.COMMENT=44]="COMMENT",c6[c6.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",c6[c6.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",c6[c6.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",c6[c6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",c6[c6.COMMENT_END_DASH=49]="COMMENT_END_DASH",c6[c6.COMMENT_END=50]="COMMENT_END",c6[c6.COMMENT_END_BANG=51]="COMMENT_END_BANG",c6[c6.DOCTYPE=52]="DOCTYPE",c6[c6.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",c6[c6.DOCTYPE_NAME=54]="DOCTYPE_NAME",c6[c6.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",c6[c6.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",c6[c6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",c6[c6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",c6[c6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",c6[c6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",c6[c6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",c6[c6.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",c6[c6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",c6[c6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",c6[c6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",c6[c6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",c6[c6.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",c6[c6.CDATA_SECTION=68]="CDATA_SECTION",c6[c6.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",c6[c6.CDATA_SECTION_END=70]="CDATA_SECTION_END",c6[c6.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",c6[c6.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const u6={DATA:l6.DATA,RCDATA:l6.RCDATA,RAWTEXT:l6.RAWTEXT,SCRIPT_DATA:l6.SCRIPT_DATA,PLAINTEXT:l6.PLAINTEXT,CDATA_SECTION:l6.CDATA_SECTION};function d6(e){return e>=p4.LATIN_CAPITAL_A&&e<=p4.LATIN_CAPITAL_Z}function p6(e){return function(e){return e>=p4.LATIN_SMALL_A&&e<=p4.LATIN_SMALL_Z}(e)||d6(e)}function h6(e){return p6(e)||function(e){return e>=p4.DIGIT_0&&e<=p4.DIGIT_9}(e)}function f6(e){return e+32}function m6(e){return e===p4.SPACE||e===p4.LINE_FEED||e===p4.TABULATION||e===p4.FORM_FEED}function g6(e){return m6(e)||e===p4.SOLIDUS||e===p4.GREATER_THAN_SIGN}class y6{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=l6.DATA,this.returnState=l6.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new S4(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new e6(N4,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(E4.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(E4.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===p4.NULL?E4.nullCharacterReference:e>1114111?E4.characterReferenceOutsideUnicodeRange:k4(e)?E4.surrogateCharacterReference:x4(e)?E4.noncharacterCharacterReference:w4(e)||e===p4.CARRIAGE_RETURN?E4.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:T4.START_TAG,tagName:"",tagID:X4.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:T4.END_TAG,tagName:"",tagID:X4.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:T4.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:T4.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===A4(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(E4.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=a6(e.tagName),e.type===T4.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(E4.endTagWithAttributes),e.selfClosing&&this._err(E4.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case T4.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case T4.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case T4.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:T4.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=m6(e)?T4.WHITESPACE_CHARACTER:e===p4.NULL?T4.NULL_CHARACTER:T4.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(T4.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=l6.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?H4.Attribute:H4.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===l6.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===l6.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===l6.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case l6.DATA:this._stateData(e);break;case l6.RCDATA:this._stateRcdata(e);break;case l6.RAWTEXT:this._stateRawtext(e);break;case l6.SCRIPT_DATA:this._stateScriptData(e);break;case l6.PLAINTEXT:this._statePlaintext(e);break;case l6.TAG_OPEN:this._stateTagOpen(e);break;case l6.END_TAG_OPEN:this._stateEndTagOpen(e);break;case l6.TAG_NAME:this._stateTagName(e);break;case l6.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case l6.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case l6.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case l6.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case l6.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case l6.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case l6.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case l6.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case l6.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case l6.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case l6.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case l6.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case l6.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case l6.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case l6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case l6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case l6.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case l6.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case l6.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case l6.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case l6.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case l6.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case l6.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case l6.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case l6.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case l6.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case l6.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case l6.BOGUS_COMMENT:this._stateBogusComment(e);break;case l6.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case l6.COMMENT_START:this._stateCommentStart(e);break;case l6.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case l6.COMMENT:this._stateComment(e);break;case l6.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case l6.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case l6.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case l6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case l6.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case l6.COMMENT_END:this._stateCommentEnd(e);break;case l6.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case l6.DOCTYPE:this._stateDoctype(e);break;case l6.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case l6.DOCTYPE_NAME:this._stateDoctypeName(e);break;case l6.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case l6.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case l6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case l6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case l6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case l6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case l6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case l6.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case l6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case l6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case l6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case l6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case l6.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case l6.CDATA_SECTION:this._stateCdataSection(e);break;case l6.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case l6.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case l6.CHARACTER_REFERENCE:this._stateCharacterReference();break;case l6.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case p4.LESS_THAN_SIGN:this.state=l6.TAG_OPEN;break;case p4.AMPERSAND:this._startCharacterReference();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitCodePoint(e);break;case p4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case p4.AMPERSAND:this._startCharacterReference();break;case p4.LESS_THAN_SIGN:this.state=l6.RCDATA_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case p4.LESS_THAN_SIGN:this.state=l6.RAWTEXT_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(p6(e))this._createStartTagToken(),this.state=l6.TAG_NAME,this._stateTagName(e);else switch(e){case p4.EXCLAMATION_MARK:this.state=l6.MARKUP_DECLARATION_OPEN;break;case p4.SOLIDUS:this.state=l6.END_TAG_OPEN;break;case p4.QUESTION_MARK:this._err(E4.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=l6.BOGUS_COMMENT,this._stateBogusComment(e);break;case p4.EOF:this._err(E4.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(E4.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=l6.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(p6(e))this._createEndTagToken(),this.state=l6.TAG_NAME,this._stateTagName(e);else switch(e){case p4.GREATER_THAN_SIGN:this._err(E4.missingEndTagName),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(E4.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=l6.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.BEFORE_ATTRIBUTE_NAME;break;case p4.SOLIDUS:this.state=l6.SELF_CLOSING_START_TAG;break;case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentTagToken();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.tagName+=d4;break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(d6(e)?f6(e):e)}}_stateRcdataLessThanSign(e){e===p4.SOLIDUS?this.state=l6.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=l6.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){p6(e)?(this.state=l6.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=l6.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=l6.BEFORE_ATTRIBUTE_NAME,!1;case p4.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=l6.SELF_CLOSING_START_TAG,!1;case p4.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=l6.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l6.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===p4.SOLIDUS?this.state=l6.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=l6.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){p6(e)?(this.state=l6.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=l6.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l6.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case p4.SOLIDUS:this.state=l6.SCRIPT_DATA_END_TAG_OPEN;break;case p4.EXCLAMATION_MARK:this.state=l6.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=l6.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){p6(e)?(this.state=l6.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=l6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===p4.HYPHEN_MINUS?(this.state=l6.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=l6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===p4.HYPHEN_MINUS?(this.state=l6.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=l6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case p4.HYPHEN_MINUS:this.state=l6.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case p4.HYPHEN_MINUS:this.state=l6.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.state=l6.SCRIPT_DATA_ESCAPED,this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=l6.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case p4.HYPHEN_MINUS:this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case p4.GREATER_THAN_SIGN:this.state=l6.SCRIPT_DATA,this._emitChars(">");break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.state=l6.SCRIPT_DATA_ESCAPED,this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=l6.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===p4.SOLIDUS?this.state=l6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:p6(e)?(this._emitChars("<"),this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=l6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){p6(e)?(this.state=l6.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=l6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=l6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(y4,!1)&&g6(this.preprocessor.peek(y4.length))){this._emitCodePoint(e);for(let e=0;e<y4.length;e++)this._emitCodePoint(this._consume());this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=l6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case p4.HYPHEN_MINUS:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case p4.HYPHEN_MINUS:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case p4.HYPHEN_MINUS:this._emitChars("-");break;case p4.LESS_THAN_SIGN:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case p4.GREATER_THAN_SIGN:this.state=l6.SCRIPT_DATA,this._emitChars(">");break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(d4);break;case p4.EOF:this._err(E4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===p4.SOLIDUS?(this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(y4,!1)&&g6(this.preprocessor.peek(y4.length))){this._emitCodePoint(e);for(let e=0;e<y4.length;e++)this._emitCodePoint(this._consume());this.state=l6.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=l6.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.SOLIDUS:case p4.GREATER_THAN_SIGN:case p4.EOF:this.state=l6.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case p4.EQUALS_SIGN:this._err(E4.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=l6.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=l6.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:case p4.SOLIDUS:case p4.GREATER_THAN_SIGN:case p4.EOF:this._leaveAttrName(),this.state=l6.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case p4.EQUALS_SIGN:this._leaveAttrName(),this.state=l6.BEFORE_ATTRIBUTE_VALUE;break;case p4.QUOTATION_MARK:case p4.APOSTROPHE:case p4.LESS_THAN_SIGN:this._err(E4.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.currentAttr.name+=d4;break;default:this.currentAttr.name+=String.fromCodePoint(d6(e)?f6(e):e)}}_stateAfterAttributeName(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.SOLIDUS:this.state=l6.SELF_CLOSING_START_TAG;break;case p4.EQUALS_SIGN:this.state=l6.BEFORE_ATTRIBUTE_VALUE;break;case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentTagToken();break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=l6.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.QUOTATION_MARK:this.state=l6.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case p4.APOSTROPHE:this.state=l6.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case p4.GREATER_THAN_SIGN:this._err(E4.missingAttributeValue),this.state=l6.DATA,this.emitCurrentTagToken();break;default:this.state=l6.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case p4.QUOTATION_MARK:this.state=l6.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case p4.AMPERSAND:this._startCharacterReference();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.currentAttr.value+=d4;break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case p4.APOSTROPHE:this.state=l6.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case p4.AMPERSAND:this._startCharacterReference();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.currentAttr.value+=d4;break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this._leaveAttrValue(),this.state=l6.BEFORE_ATTRIBUTE_NAME;break;case p4.AMPERSAND:this._startCharacterReference();break;case p4.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=l6.DATA,this.emitCurrentTagToken();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this.currentAttr.value+=d4;break;case p4.QUOTATION_MARK:case p4.APOSTROPHE:case p4.LESS_THAN_SIGN:case p4.EQUALS_SIGN:case p4.GRAVE_ACCENT:this._err(E4.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this._leaveAttrValue(),this.state=l6.BEFORE_ATTRIBUTE_NAME;break;case p4.SOLIDUS:this._leaveAttrValue(),this.state=l6.SELF_CLOSING_START_TAG;break;case p4.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=l6.DATA,this.emitCurrentTagToken();break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this._err(E4.missingWhitespaceBetweenAttributes),this.state=l6.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case p4.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=l6.DATA,this.emitCurrentTagToken();break;case p4.EOF:this._err(E4.eofInTag),this._emitEOFToken();break;default:this._err(E4.unexpectedSolidusInTag),this.state=l6.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentComment(t);break;case p4.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.data+=d4;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(f4,!0)?(this._createCommentToken(f4.length+1),this.state=l6.COMMENT_START):this._consumeSequenceIfMatch(g4,!1)?(this.currentLocation=this.getCurrentLocation(g4.length+1),this.state=l6.DOCTYPE):this._consumeSequenceIfMatch(m4,!0)?this.inForeignNode?this.state=l6.CDATA_SECTION:(this._err(E4.cdataInHtmlContent),this._createCommentToken(m4.length+1),this.currentToken.data="[CDATA[",this.state=l6.BOGUS_COMMENT):this._ensureHibernation()||(this._err(E4.incorrectlyOpenedComment),this._createCommentToken(2),this.state=l6.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case p4.HYPHEN_MINUS:this.state=l6.COMMENT_START_DASH;break;case p4.GREATER_THAN_SIGN:{this._err(E4.abruptClosingOfEmptyComment),this.state=l6.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=l6.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case p4.HYPHEN_MINUS:this.state=l6.COMMENT_END;break;case p4.GREATER_THAN_SIGN:this._err(E4.abruptClosingOfEmptyComment),this.state=l6.DATA,this.emitCurrentComment(t);break;case p4.EOF:this._err(E4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=l6.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case p4.HYPHEN_MINUS:this.state=l6.COMMENT_END_DASH;break;case p4.LESS_THAN_SIGN:t.data+="<",this.state=l6.COMMENT_LESS_THAN_SIGN;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.data+=d4;break;case p4.EOF:this._err(E4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case p4.EXCLAMATION_MARK:t.data+="!",this.state=l6.COMMENT_LESS_THAN_SIGN_BANG;break;case p4.LESS_THAN_SIGN:t.data+="<";break;default:this.state=l6.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===p4.HYPHEN_MINUS?this.state=l6.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=l6.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===p4.HYPHEN_MINUS?this.state=l6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=l6.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==p4.GREATER_THAN_SIGN&&e!==p4.EOF&&this._err(E4.nestedComment),this.state=l6.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case p4.HYPHEN_MINUS:this.state=l6.COMMENT_END;break;case p4.EOF:this._err(E4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=l6.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentComment(t);break;case p4.EXCLAMATION_MARK:this.state=l6.COMMENT_END_BANG;break;case p4.HYPHEN_MINUS:t.data+="-";break;case p4.EOF:this._err(E4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=l6.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case p4.HYPHEN_MINUS:t.data+="--!",this.state=l6.COMMENT_END_DASH;break;case p4.GREATER_THAN_SIGN:this._err(E4.incorrectlyClosedComment),this.state=l6.DATA,this.emitCurrentComment(t);break;case p4.EOF:this._err(E4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=l6.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.BEFORE_DOCTYPE_NAME;break;case p4.GREATER_THAN_SIGN:this.state=l6.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case p4.EOF:{this._err(E4.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(E4.missingWhitespaceBeforeDoctypeName),this.state=l6.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(d6(e))this._createDoctypeToken(String.fromCharCode(f6(e))),this.state=l6.DOCTYPE_NAME;else switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.NULL:this._err(E4.unexpectedNullCharacter),this._createDoctypeToken(d4),this.state=l6.DOCTYPE_NAME;break;case p4.GREATER_THAN_SIGN:{this._err(E4.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=l6.DATA;break}case p4.EOF:{this._err(E4.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=l6.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.AFTER_DOCTYPE_NAME;break;case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.name+=d4;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(d6(e)?f6(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(b4,!1)?this.state=l6.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(v4,!1)?this.state=l6.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(E4.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case p4.QUOTATION_MARK:this._err(E4.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=l6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:this._err(E4.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=l6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case p4.GREATER_THAN_SIGN:this._err(E4.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.QUOTATION_MARK:t.publicId="",this.state=l6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:t.publicId="",this.state=l6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case p4.GREATER_THAN_SIGN:this._err(E4.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case p4.QUOTATION_MARK:this.state=l6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.publicId+=d4;break;case p4.GREATER_THAN_SIGN:this._err(E4.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case p4.APOSTROPHE:this.state=l6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.publicId+=d4;break;case p4.GREATER_THAN_SIGN:this._err(E4.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case p4.GREATER_THAN_SIGN:this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.QUOTATION_MARK:this._err(E4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:this._err(E4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.QUOTATION_MARK:t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:this.state=l6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case p4.QUOTATION_MARK:this._err(E4.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:this._err(E4.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case p4.GREATER_THAN_SIGN:this._err(E4.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.QUOTATION_MARK:t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case p4.APOSTROPHE:t.systemId="",this.state=l6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case p4.GREATER_THAN_SIGN:this._err(E4.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.DATA,this.emitCurrentDoctype(t);break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case p4.QUOTATION_MARK:this.state=l6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.systemId+=d4;break;case p4.GREATER_THAN_SIGN:this._err(E4.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case p4.APOSTROPHE:this.state=l6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case p4.NULL:this._err(E4.unexpectedNullCharacter),t.systemId+=d4;break;case p4.GREATER_THAN_SIGN:this._err(E4.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case p4.SPACE:case p4.LINE_FEED:case p4.TABULATION:case p4.FORM_FEED:break;case p4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.EOF:this._err(E4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(E4.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=l6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case p4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=l6.DATA;break;case p4.NULL:this._err(E4.unexpectedNullCharacter);break;case p4.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case p4.RIGHT_SQUARE_BRACKET:this.state=l6.CDATA_SECTION_BRACKET;break;case p4.EOF:this._err(E4.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===p4.RIGHT_SQUARE_BRACKET?this.state=l6.CDATA_SECTION_END:(this._emitChars("]"),this.state=l6.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case p4.GREATER_THAN_SIGN:this.state=l6.DATA;break;case p4.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=l6.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(p4.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&h6(this.preprocessor.peek(1))?l6.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){h6(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===p4.SEMICOLON&&this._err(E4.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const b6=new Set([X4.DD,X4.DT,X4.LI,X4.OPTGROUP,X4.OPTION,X4.P,X4.RB,X4.RP,X4.RT,X4.RTC]),v6=new Set([...b6,X4.CAPTION,X4.COLGROUP,X4.TBODY,X4.TD,X4.TFOOT,X4.TH,X4.THEAD,X4.TR]),k6=new Set([X4.APPLET,X4.CAPTION,X4.HTML,X4.MARQUEE,X4.OBJECT,X4.TABLE,X4.TD,X4.TEMPLATE,X4.TH]),w6=new Set([...k6,X4.OL,X4.UL]),x6=new Set([...k6,X4.BUTTON]),E6=new Set([X4.ANNOTATION_XML,X4.MI,X4.MN,X4.MO,X4.MS,X4.MTEXT]),_6=new Set([X4.DESC,X4.FOREIGN_OBJECT,X4.TITLE]),S6=new Set([X4.TR,X4.TEMPLATE,X4.HTML]),T6=new Set([X4.TBODY,X4.TFOOT,X4.THEAD,X4.TEMPLATE,X4.HTML]),C6=new Set([X4.TABLE,X4.TEMPLATE,X4.HTML]),A6=new Set([X4.TD,X4.TH]);class N6{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=X4.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===X4.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===U4.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==U4.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(s6,U4.HTML)}popUntilTableCellPopped(){this.popUntilPopped(A6,U4.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(C6,U4.HTML)}clearBackToTableBodyContext(){this.clearBackTo(T6,U4.HTML)}clearBackToTableRowContext(){this.clearBackTo(S6,U4.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===X4.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===X4.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case U4.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case U4.SVG:if(_6.has(r))return!1;break;case U4.MATHML:if(E6.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,k6)}hasInListItemScope(e){return this.hasInDynamicScope(e,w6)}hasInButtonScope(e){return this.hasInDynamicScope(e,x6)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case U4.HTML:if(s6.has(t))return!0;if(k6.has(t))return!1;break;case U4.SVG:if(_6.has(t))return!1;break;case U4.MATHML:if(E6.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===U4.HTML)switch(this.tagIDs[t]){case e:return!0;case X4.TABLE:case X4.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===U4.HTML)switch(this.tagIDs[e]){case X4.TBODY:case X4.THEAD:case X4.TFOOT:return!0;case X4.TABLE:case X4.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===U4.HTML)switch(this.tagIDs[t]){case e:return!0;case X4.OPTION:case X4.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;b6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;v6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&v6.has(this.currentTagId);)this.pop()}}var I6,R6;(R6=I6||(I6={}))[R6.Marker=0]="Marker",R6[R6.Element=1]="Element";const O6={type:I6.Marker};class P6{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,a=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let i=0;i<this.entries.length;i++){const e=this.entries[i];if(e.type===I6.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===a&&this.treeAdapter.getNamespaceURI(t)===o){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:i,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map((e=>[e.name,e.value])));let a=0;for(let o=0;o<n.length;o++){const e=n[o];e.attrs.every((e=>r.get(e.name)===e.value))&&(a+=1,a>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(O6)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:I6.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:I6.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(O6);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===I6.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===I6.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===I6.Element&&t.element===e))}}const L6={createDocument:()=>({nodeName:"#document",mode:W4.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({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=>e.content,setDocumentType(e,t,n,r){const a=e.childNodes.find((e=>"#documentType"===e.nodeName));if(a)a.name=t,a.publicId=n,a.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};L6.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>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(L6.isTextNode(n))return void(n.value+=t)}L6.appendChild(e,L6.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&L6.isTextNode(r)?r.value+=t:L6.insertBefore(e,L6.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},D6="html",M6=["+//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//"],F6=[...M6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],j6=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),B6=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],H6=[...B6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function z6(e,t){return t.some((t=>e.startsWith(t)))}const U6="text/html",$6="application/xhtml+xml",V6=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]))),G6=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:U4.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:U4.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:U4.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:U4.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:U4.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:U4.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:U4.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:U4.XML}],["xml:space",{prefix:"xml",name:"space",namespace:U4.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:U4.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:U4.XMLNS}]]),W6=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]))),q6=new Set([X4.B,X4.BIG,X4.BLOCKQUOTE,X4.BODY,X4.BR,X4.CENTER,X4.CODE,X4.DD,X4.DIV,X4.DL,X4.DT,X4.EM,X4.EMBED,X4.H1,X4.H2,X4.H3,X4.H4,X4.H5,X4.H6,X4.HEAD,X4.HR,X4.I,X4.IMG,X4.LI,X4.LISTING,X4.MENU,X4.META,X4.NOBR,X4.OL,X4.P,X4.PRE,X4.RUBY,X4.S,X4.SMALL,X4.SPAN,X4.STRONG,X4.STRIKE,X4.SUB,X4.SUP,X4.TABLE,X4.TT,X4.U,X4.UL,X4.VAR]);function Y6(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function K6(e){for(let t=0;t<e.attrs.length;t++){const n=V6.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function X6(e){for(let t=0;t<e.attrs.length;t++){const n=G6.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 Q6(e,t,n,r){return(!r||r===U4.HTML)&&function(e,t,n){if(t===U4.MATHML&&e===X4.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===V4.ENCODING){const e=n[r].value.toLowerCase();return e===U6||e===$6}return t===U4.SVG&&(e===X4.FOREIGN_OBJECT||e===X4.DESC||e===X4.TITLE)}(e,t,n)||(!r||r===U4.MATHML)&&function(e,t){return t===U4.MATHML&&(e===X4.MI||e===X4.MO||e===X4.MN||e===X4.MS||e===X4.MTEXT)}(e,t)}var Z6,J6;(J6=Z6||(Z6={}))[J6.INITIAL=0]="INITIAL",J6[J6.BEFORE_HTML=1]="BEFORE_HTML",J6[J6.BEFORE_HEAD=2]="BEFORE_HEAD",J6[J6.IN_HEAD=3]="IN_HEAD",J6[J6.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",J6[J6.AFTER_HEAD=5]="AFTER_HEAD",J6[J6.IN_BODY=6]="IN_BODY",J6[J6.TEXT=7]="TEXT",J6[J6.IN_TABLE=8]="IN_TABLE",J6[J6.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",J6[J6.IN_CAPTION=10]="IN_CAPTION",J6[J6.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",J6[J6.IN_TABLE_BODY=12]="IN_TABLE_BODY",J6[J6.IN_ROW=13]="IN_ROW",J6[J6.IN_CELL=14]="IN_CELL",J6[J6.IN_SELECT=15]="IN_SELECT",J6[J6.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",J6[J6.IN_TEMPLATE=17]="IN_TEMPLATE",J6[J6.AFTER_BODY=18]="AFTER_BODY",J6[J6.IN_FRAMESET=19]="IN_FRAMESET",J6[J6.AFTER_FRAMESET=20]="AFTER_FRAMESET",J6[J6.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",J6[J6.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const e8={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},t8=new Set([X4.TABLE,X4.TBODY,X4.TFOOT,X4.THEAD,X4.TR]),n8={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:L6,onParseError:null};class r8{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Z6.INITIAL,this.originalInsertionMode=Z6.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={...n8,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new y6(this.options,this),this.activeFormattingElements=new P6(this.treeAdapter),this.fragmentContextID=n?a6(this.treeAdapter.getTagName(n)):X4.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new N6(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...n8,...t};null!=e||(e=n.treeAdapter.createElement(Y4.TEMPLATE,U4.HTML,[]));const r=n.treeAdapter.createElement("documentmock",U4.HTML,[]),a=new this(n,r,e);return a.fragmentContextID===X4.TEMPLATE&&a.tmplInsertionModeStack.unshift(Z6.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const a=null!==(r=e.location)&&void 0!==r?r:e8,o={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,a;null===(a=(r=this.treeAdapter).onItemPush)||void 0===a||a.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===U4.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,U4.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Z6.TEXT}switchToPlaintextParsing(){this.insertionMode=Z6.TEXT,this.originalInsertionMode=Z6.IN_BODY,this.tokenizer.state=u6.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Y4.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===U4.HTML)switch(this.fragmentContextID){case X4.TITLE:case X4.TEXTAREA:this.tokenizer.state=u6.RCDATA;break;case X4.STYLE:case X4.XMP:case X4.IFRAME:case X4.NOEMBED:case X4.NOFRAMES:case X4.NOSCRIPT:this.tokenizer.state=u6.RAWTEXT;break;case X4.SCRIPT:this.tokenizer.state=u6.SCRIPT_DATA;break;case X4.PLAINTEXT:this.tokenizer.state=u6.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,U4.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,U4.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Y4.HTML,U4.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,X4.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,o=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===T4.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==X4.SVG||this.treeAdapter.getTagName(t)!==Y4.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==U4.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===X4.MGLYPH||e.tagID===X4.MALIGNMARK)&&!this._isIntegrationPoint(n,t,U4.HTML))}_processToken(e){switch(e.type){case T4.CHARACTER:this.onCharacter(e);break;case T4.NULL_CHARACTER:this.onNullCharacter(e);break;case T4.COMMENT:this.onComment(e);break;case T4.DOCTYPE:this.onDoctype(e);break;case T4.START_TAG:this._processStartTag(e);break;case T4.END_TAG:this.onEndTag(e);break;case T4.EOF:this.onEof(e);break;case T4.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return Q6(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===I6.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Z6.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(X4.P),this.openElements.popUntilTagNamePopped(X4.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case X4.TR:return void(this.insertionMode=Z6.IN_ROW);case X4.TBODY:case X4.THEAD:case X4.TFOOT:return void(this.insertionMode=Z6.IN_TABLE_BODY);case X4.CAPTION:return void(this.insertionMode=Z6.IN_CAPTION);case X4.COLGROUP:return void(this.insertionMode=Z6.IN_COLUMN_GROUP);case X4.TABLE:return void(this.insertionMode=Z6.IN_TABLE);case X4.BODY:return void(this.insertionMode=Z6.IN_BODY);case X4.FRAMESET:return void(this.insertionMode=Z6.IN_FRAMESET);case X4.SELECT:return void this._resetInsertionModeForSelect(e);case X4.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case X4.HTML:return void(this.insertionMode=this.headElement?Z6.AFTER_HEAD:Z6.BEFORE_HEAD);case X4.TD:case X4.TH:if(e>0)return void(this.insertionMode=Z6.IN_CELL);break;case X4.HEAD:if(e>0)return void(this.insertionMode=Z6.IN_HEAD)}this.insertionMode=Z6.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===X4.TEMPLATE)break;if(e===X4.TABLE)return void(this.insertionMode=Z6.IN_SELECT_IN_TABLE)}this.insertionMode=Z6.IN_SELECT}_isElementCausesFosterParenting(e){return t8.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case X4.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===U4.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case X4.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return i6[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Z6.INITIAL:h8(this,e);break;case Z6.BEFORE_HTML:f8(this,e);break;case Z6.BEFORE_HEAD:m8(this,e);break;case Z6.IN_HEAD:b8(this,e);break;case Z6.IN_HEAD_NO_SCRIPT:v8(this,e);break;case Z6.AFTER_HEAD:k8(this,e);break;case Z6.IN_BODY:case Z6.IN_CAPTION:case Z6.IN_CELL:case Z6.IN_TEMPLATE:E8(this,e);break;case Z6.TEXT:case Z6.IN_SELECT:case Z6.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Z6.IN_TABLE:case Z6.IN_TABLE_BODY:case Z6.IN_ROW:O8(this,e);break;case Z6.IN_TABLE_TEXT:F8(this,e);break;case Z6.IN_COLUMN_GROUP:z8(this,e);break;case Z6.AFTER_BODY:X8(this,e);break;case Z6.AFTER_AFTER_BODY:Q8(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=d4,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Z6.INITIAL:h8(this,e);break;case Z6.BEFORE_HTML:f8(this,e);break;case Z6.BEFORE_HEAD:m8(this,e);break;case Z6.IN_HEAD:b8(this,e);break;case Z6.IN_HEAD_NO_SCRIPT:v8(this,e);break;case Z6.AFTER_HEAD:k8(this,e);break;case Z6.TEXT:this._insertCharacters(e);break;case Z6.IN_TABLE:case Z6.IN_TABLE_BODY:case Z6.IN_ROW:O8(this,e);break;case Z6.IN_COLUMN_GROUP:z8(this,e);break;case Z6.AFTER_BODY:X8(this,e);break;case Z6.AFTER_AFTER_BODY:Q8(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)d8(this,e);else switch(this.insertionMode){case Z6.INITIAL:case Z6.BEFORE_HTML:case Z6.BEFORE_HEAD:case Z6.IN_HEAD:case Z6.IN_HEAD_NO_SCRIPT:case Z6.AFTER_HEAD:case Z6.IN_BODY:case Z6.IN_TABLE:case Z6.IN_CAPTION:case Z6.IN_COLUMN_GROUP:case Z6.IN_TABLE_BODY:case Z6.IN_ROW:case Z6.IN_CELL:case Z6.IN_SELECT:case Z6.IN_SELECT_IN_TABLE:case Z6.IN_TEMPLATE:case Z6.IN_FRAMESET:case Z6.AFTER_FRAMESET:d8(this,e);break;case Z6.IN_TABLE_TEXT:j8(this,e);break;case Z6.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Z6.AFTER_AFTER_BODY:case Z6.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Z6.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?W4.QUIRKS:function(e){if(e.name!==D6)return W4.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return W4.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),j6.has(n))return W4.QUIRKS;let e=null===t?F6:M6;if(z6(n,e))return W4.QUIRKS;if(e=null===t?B6:H6,z6(n,e))return W4.LIMITED_QUIRKS}return W4.NO_QUIRKS}(t);(function(e){return e.name===D6&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,E4.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Z6.BEFORE_HTML}(this,e);break;case Z6.BEFORE_HEAD:case Z6.IN_HEAD:case Z6.IN_HEAD_NO_SCRIPT:case Z6.AFTER_HEAD:this._err(e,E4.misplacedDoctype);break;case Z6.IN_TABLE_TEXT:j8(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,E4.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===X4.FONT&&e.attrs.some((({name:e})=>e===V4.COLOR||e===V4.SIZE||e===V4.FACE))||q6.has(t)}(t))Z8(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===U4.MATHML?Y6(t):r===U4.SVG&&(!function(e){const t=W6.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=a6(e.tagName))}(t),K6(t)),X6(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Z6.INITIAL:h8(this,e);break;case Z6.BEFORE_HTML:!function(e,t){t.tagID===X4.HTML?(e._insertElement(t,U4.HTML),e.insertionMode=Z6.BEFORE_HEAD):f8(e,t)}(this,e);break;case Z6.BEFORE_HEAD:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.HEAD:e._insertElement(t,U4.HTML),e.headElement=e.openElements.current,e.insertionMode=Z6.IN_HEAD;break;default:m8(e,t)}}(this,e);break;case Z6.IN_HEAD:g8(this,e);break;case Z6.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.BASEFONT:case X4.BGSOUND:case X4.HEAD:case X4.LINK:case X4.META:case X4.NOFRAMES:case X4.STYLE:g8(e,t);break;case X4.NOSCRIPT:e._err(t,E4.nestedNoscriptInHead);break;default:v8(e,t)}}(this,e);break;case Z6.AFTER_HEAD:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.BODY:e._insertElement(t,U4.HTML),e.framesetOk=!1,e.insertionMode=Z6.IN_BODY;break;case X4.FRAMESET:e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_FRAMESET;break;case X4.BASE:case X4.BASEFONT:case X4.BGSOUND:case X4.LINK:case X4.META:case X4.NOFRAMES:case X4.SCRIPT:case X4.STYLE:case X4.TEMPLATE:case X4.TITLE:e._err(t,E4.abandonedHeadElementChild),e.openElements.push(e.headElement,X4.HEAD),g8(e,t),e.openElements.remove(e.headElement);break;case X4.HEAD:e._err(t,E4.misplacedStartTagForHeadElement);break;default:k8(e,t)}}(this,e);break;case Z6.IN_BODY:A8(this,e);break;case Z6.IN_TABLE:P8(this,e);break;case Z6.IN_TABLE_TEXT:j8(this,e);break;case Z6.IN_CAPTION:!function(e,t){const n=t.tagID;B8.has(n)?e.openElements.hasInTableScope(X4.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X4.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Z6.IN_TABLE,P8(e,t)):A8(e,t)}(this,e);break;case Z6.IN_COLUMN_GROUP:H8(this,e);break;case Z6.IN_TABLE_BODY:U8(this,e);break;case Z6.IN_ROW:V8(this,e);break;case Z6.IN_CELL:!function(e,t){const n=t.tagID;B8.has(n)?(e.openElements.hasInTableScope(X4.TD)||e.openElements.hasInTableScope(X4.TH))&&(e._closeTableCell(),V8(e,t)):A8(e,t)}(this,e);break;case Z6.IN_SELECT:W8(this,e);break;case Z6.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===X4.CAPTION||n===X4.TABLE||n===X4.TBODY||n===X4.TFOOT||n===X4.THEAD||n===X4.TR||n===X4.TD||n===X4.TH?(e.openElements.popUntilTagNamePopped(X4.SELECT),e._resetInsertionMode(),e._processStartTag(t)):W8(e,t)}(this,e);break;case Z6.IN_TEMPLATE:!function(e,t){switch(t.tagID){case X4.BASE:case X4.BASEFONT:case X4.BGSOUND:case X4.LINK:case X4.META:case X4.NOFRAMES:case X4.SCRIPT:case X4.STYLE:case X4.TEMPLATE:case X4.TITLE:g8(e,t);break;case X4.CAPTION:case X4.COLGROUP:case X4.TBODY:case X4.TFOOT:case X4.THEAD:e.tmplInsertionModeStack[0]=Z6.IN_TABLE,e.insertionMode=Z6.IN_TABLE,P8(e,t);break;case X4.COL:e.tmplInsertionModeStack[0]=Z6.IN_COLUMN_GROUP,e.insertionMode=Z6.IN_COLUMN_GROUP,H8(e,t);break;case X4.TR:e.tmplInsertionModeStack[0]=Z6.IN_TABLE_BODY,e.insertionMode=Z6.IN_TABLE_BODY,U8(e,t);break;case X4.TD:case X4.TH:e.tmplInsertionModeStack[0]=Z6.IN_ROW,e.insertionMode=Z6.IN_ROW,V8(e,t);break;default:e.tmplInsertionModeStack[0]=Z6.IN_BODY,e.insertionMode=Z6.IN_BODY,A8(e,t)}}(this,e);break;case Z6.AFTER_BODY:!function(e,t){t.tagID===X4.HTML?A8(e,t):X8(e,t)}(this,e);break;case Z6.IN_FRAMESET:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.FRAMESET:e._insertElement(t,U4.HTML);break;case X4.FRAME:e._appendElement(t,U4.HTML),t.ackSelfClosing=!0;break;case X4.NOFRAMES:g8(e,t)}}(this,e);break;case Z6.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.NOFRAMES:g8(e,t)}}(this,e);break;case Z6.AFTER_AFTER_BODY:!function(e,t){t.tagID===X4.HTML?A8(e,t):Q8(e,t)}(this,e);break;case Z6.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.NOFRAMES:g8(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===X4.P||t.tagID===X4.BR)return Z8(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===U4.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Z6.INITIAL:h8(this,e);break;case Z6.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==X4.HTML&&n!==X4.HEAD&&n!==X4.BODY&&n!==X4.BR||f8(e,t)}(this,e);break;case Z6.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===X4.HEAD||n===X4.BODY||n===X4.HTML||n===X4.BR?m8(e,t):e._err(t,E4.endTagWithoutMatchingOpenElement)}(this,e);break;case Z6.IN_HEAD:!function(e,t){switch(t.tagID){case X4.HEAD:e.openElements.pop(),e.insertionMode=Z6.AFTER_HEAD;break;case X4.BODY:case X4.BR:case X4.HTML:b8(e,t);break;case X4.TEMPLATE:y8(e,t);break;default:e._err(t,E4.endTagWithoutMatchingOpenElement)}}(this,e);break;case Z6.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case X4.NOSCRIPT:e.openElements.pop(),e.insertionMode=Z6.IN_HEAD;break;case X4.BR:v8(e,t);break;default:e._err(t,E4.endTagWithoutMatchingOpenElement)}}(this,e);break;case Z6.AFTER_HEAD:!function(e,t){switch(t.tagID){case X4.BODY:case X4.HTML:case X4.BR:k8(e,t);break;case X4.TEMPLATE:y8(e,t);break;default:e._err(t,E4.endTagWithoutMatchingOpenElement)}}(this,e);break;case Z6.IN_BODY:I8(this,e);break;case Z6.TEXT:!function(e,t){var n;t.tagID===X4.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Z6.IN_TABLE:L8(this,e);break;case Z6.IN_TABLE_TEXT:j8(this,e);break;case Z6.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case X4.CAPTION:case X4.TABLE:e.openElements.hasInTableScope(X4.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X4.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Z6.IN_TABLE,n===X4.TABLE&&L8(e,t));break;case X4.BODY:case X4.COL:case X4.COLGROUP:case X4.HTML:case X4.TBODY:case X4.TD:case X4.TFOOT:case X4.TH:case X4.THEAD:case X4.TR:break;default:I8(e,t)}}(this,e);break;case Z6.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case X4.COLGROUP:e.openElements.currentTagId===X4.COLGROUP&&(e.openElements.pop(),e.insertionMode=Z6.IN_TABLE);break;case X4.TEMPLATE:y8(e,t);break;case X4.COL:break;default:z8(e,t)}}(this,e);break;case Z6.IN_TABLE_BODY:$8(this,e);break;case Z6.IN_ROW:G8(this,e);break;case Z6.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case X4.TD:case X4.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Z6.IN_ROW);break;case X4.TABLE:case X4.TBODY:case X4.TFOOT:case X4.THEAD:case X4.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),G8(e,t));break;case X4.BODY:case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.HTML:break;default:I8(e,t)}}(this,e);break;case Z6.IN_SELECT:q8(this,e);break;case Z6.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===X4.CAPTION||n===X4.TABLE||n===X4.TBODY||n===X4.TFOOT||n===X4.THEAD||n===X4.TR||n===X4.TD||n===X4.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(X4.SELECT),e._resetInsertionMode(),e.onEndTag(t)):q8(e,t)}(this,e);break;case Z6.IN_TEMPLATE:!function(e,t){t.tagID===X4.TEMPLATE&&y8(e,t)}(this,e);break;case Z6.AFTER_BODY:K8(this,e);break;case Z6.IN_FRAMESET:!function(e,t){t.tagID!==X4.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===X4.FRAMESET||(e.insertionMode=Z6.AFTER_FRAMESET))}(this,e);break;case Z6.AFTER_FRAMESET:!function(e,t){t.tagID===X4.HTML&&(e.insertionMode=Z6.AFTER_AFTER_FRAMESET)}(this,e);break;case Z6.AFTER_AFTER_BODY:Q8(this,e)}}onEof(e){switch(this.insertionMode){case Z6.INITIAL:h8(this,e);break;case Z6.BEFORE_HTML:f8(this,e);break;case Z6.BEFORE_HEAD:m8(this,e);break;case Z6.IN_HEAD:b8(this,e);break;case Z6.IN_HEAD_NO_SCRIPT:v8(this,e);break;case Z6.AFTER_HEAD:k8(this,e);break;case Z6.IN_BODY:case Z6.IN_TABLE:case Z6.IN_CAPTION:case Z6.IN_COLUMN_GROUP:case Z6.IN_TABLE_BODY:case Z6.IN_ROW:case Z6.IN_CELL:case Z6.IN_SELECT:case Z6.IN_SELECT_IN_TABLE:R8(this,e);break;case Z6.TEXT:!function(e,t){e._err(t,E4.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Z6.IN_TABLE_TEXT:j8(this,e);break;case Z6.IN_TEMPLATE:Y8(this,e);break;case Z6.AFTER_BODY:case Z6.IN_FRAMESET:case Z6.AFTER_FRAMESET:case Z6.AFTER_AFTER_BODY:case Z6.AFTER_AFTER_FRAMESET:p8(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===p4.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Z6.IN_HEAD:case Z6.IN_HEAD_NO_SCRIPT:case Z6.AFTER_HEAD:case Z6.TEXT:case Z6.IN_COLUMN_GROUP:case Z6.IN_SELECT:case Z6.IN_SELECT_IN_TABLE:case Z6.IN_FRAMESET:case Z6.AFTER_FRAMESET:this._insertCharacters(e);break;case Z6.IN_BODY:case Z6.IN_CAPTION:case Z6.IN_CELL:case Z6.IN_TEMPLATE:case Z6.AFTER_BODY:case Z6.AFTER_AFTER_BODY:case Z6.AFTER_AFTER_FRAMESET:x8(this,e);break;case Z6.IN_TABLE:case Z6.IN_TABLE_BODY:case Z6.IN_ROW:O8(this,e);break;case Z6.IN_TABLE_TEXT:M8(this,e)}}}function a8(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):N8(e,t),n}function o8(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function i8(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,i=a;i!==n;o++,i=a){a=e.openElements.getCommonAncestor(i);const n=e.activeFormattingElements.getElementEntry(i),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(i)):(i=s8(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function s8(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 l8(e,t,n){const r=a6(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);r===X4.TEMPLATE&&a===U4.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function c8(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function u8(e,t){for(let n=0;n<8;n++){const n=a8(e,t);if(!n)break;const r=o8(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const a=i8(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),o&&l8(e,o,a),c8(e,r,n)}}function d8(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function p8(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 n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function h8(e,t){e._err(t,E4.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,W4.QUIRKS),e.insertionMode=Z6.BEFORE_HTML,e._processToken(t)}function f8(e,t){e._insertFakeRootElement(),e.insertionMode=Z6.BEFORE_HEAD,e._processToken(t)}function m8(e,t){e._insertFakeElement(Y4.HEAD,X4.HEAD),e.headElement=e.openElements.current,e.insertionMode=Z6.IN_HEAD,e._processToken(t)}function g8(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.BASE:case X4.BASEFONT:case X4.BGSOUND:case X4.LINK:case X4.META:e._appendElement(t,U4.HTML),t.ackSelfClosing=!0;break;case X4.TITLE:e._switchToTextParsing(t,u6.RCDATA);break;case X4.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,u6.RAWTEXT):(e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_HEAD_NO_SCRIPT);break;case X4.NOFRAMES:case X4.STYLE:e._switchToTextParsing(t,u6.RAWTEXT);break;case X4.SCRIPT:e._switchToTextParsing(t,u6.SCRIPT_DATA);break;case X4.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Z6.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Z6.IN_TEMPLATE);break;case X4.HEAD:e._err(t,E4.misplacedStartTagForHeadElement);break;default:b8(e,t)}}function y8(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==X4.TEMPLATE&&e._err(t,E4.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(X4.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,E4.endTagWithoutMatchingOpenElement)}function b8(e,t){e.openElements.pop(),e.insertionMode=Z6.AFTER_HEAD,e._processToken(t)}function v8(e,t){const n=t.type===T4.EOF?E4.openElementsLeftAfterEof:E4.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Z6.IN_HEAD,e._processToken(t)}function k8(e,t){e._insertFakeElement(Y4.BODY,X4.BODY),e.insertionMode=Z6.IN_BODY,w8(e,t)}function w8(e,t){switch(t.type){case T4.CHARACTER:E8(e,t);break;case T4.WHITESPACE_CHARACTER:x8(e,t);break;case T4.COMMENT:d8(e,t);break;case T4.START_TAG:A8(e,t);break;case T4.END_TAG:I8(e,t);break;case T4.EOF:R8(e,t)}}function x8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function E8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function _8(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,U4.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function S8(e){const t=A4(e,V4.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function T8(e,t){e._switchToTextParsing(t,u6.RAWTEXT)}function C8(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML)}function A8(e,t){switch(t.tagID){case X4.I:case X4.S:case X4.B:case X4.U:case X4.EM:case X4.TT:case X4.BIG:case X4.CODE:case X4.FONT:case X4.SMALL:case X4.STRIKE:case X4.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case X4.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y4.A);n&&(u8(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case X4.H1:case X4.H2:case X4.H3:case X4.H4:case X4.H5:case X4.H6:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),s6.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,U4.HTML)}(e,t);break;case X4.P:case X4.DL:case X4.OL:case X4.UL:case X4.DIV:case X4.DIR:case X4.NAV:case X4.MAIN:case X4.MENU:case X4.ASIDE:case X4.CENTER:case X4.FIGURE:case X4.FOOTER:case X4.HEADER:case X4.HGROUP:case X4.DIALOG:case X4.DETAILS:case X4.ADDRESS:case X4.ARTICLE:case X4.SEARCH:case X4.SECTION:case X4.SUMMARY:case X4.FIELDSET:case X4.BLOCKQUOTE:case X4.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML)}(e,t);break;case X4.LI:case X4.DD:case X4.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===X4.LI&&t===X4.LI||(n===X4.DD||n===X4.DT)&&(t===X4.DD||t===X4.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==X4.ADDRESS&&t!==X4.DIV&&t!==X4.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML)}(e,t);break;case X4.BR:case X4.IMG:case X4.WBR:case X4.AREA:case X4.EMBED:case X4.KEYGEN:_8(e,t);break;case X4.HR:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._appendElement(t,U4.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case X4.RB:case X4.RTC:!function(e,t){e.openElements.hasInScope(X4.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,U4.HTML)}(e,t);break;case X4.RT:case X4.RP:!function(e,t){e.openElements.hasInScope(X4.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X4.RTC),e._insertElement(t,U4.HTML)}(e,t);break;case X4.PRE:case X4.LISTING:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case X4.XMP:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,u6.RAWTEXT)}(e,t);break;case X4.SVG:!function(e,t){e._reconstructActiveFormattingElements(),K6(t),X6(t),t.selfClosing?e._appendElement(t,U4.SVG):e._insertElement(t,U4.SVG),t.ackSelfClosing=!0}(e,t);break;case X4.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case X4.BASE:case X4.LINK:case X4.META:case X4.STYLE:case X4.TITLE:case X4.SCRIPT:case X4.BGSOUND:case X4.BASEFONT:case X4.TEMPLATE:g8(e,t);break;case X4.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case X4.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case X4.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X4.NOBR)&&(u8(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,U4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case X4.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Y6(t),X6(t),t.selfClosing?e._appendElement(t,U4.MATHML):e._insertElement(t,U4.MATHML),t.ackSelfClosing=!0}(e,t);break;case X4.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==W4.QUIRKS&&e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML),e.framesetOk=!1,e.insertionMode=Z6.IN_TABLE}(e,t);break;case X4.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,U4.HTML),S8(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case X4.PARAM:case X4.TRACK:case X4.SOURCE:!function(e,t){e._appendElement(t,U4.HTML),t.ackSelfClosing=!0}(e,t);break;case X4.IMAGE:!function(e,t){t.tagName=Y4.IMG,t.tagID=X4.IMG,_8(e,t)}(e,t);break;case X4.BUTTON:!function(e,t){e.openElements.hasInScope(X4.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X4.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML),e.framesetOk=!1}(e,t);break;case X4.APPLET:case X4.OBJECT:case X4.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case X4.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,u6.RAWTEXT)}(e,t);break;case X4.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Z6.IN_TABLE||e.insertionMode===Z6.IN_CAPTION||e.insertionMode===Z6.IN_TABLE_BODY||e.insertionMode===Z6.IN_ROW||e.insertionMode===Z6.IN_CELL?Z6.IN_SELECT_IN_TABLE:Z6.IN_SELECT}(e,t);break;case X4.OPTION:case X4.OPTGROUP:!function(e,t){e.openElements.currentTagId===X4.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,U4.HTML)}(e,t);break;case X4.NOEMBED:case X4.NOFRAMES:T8(e,t);break;case X4.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_FRAMESET)}(e,t);break;case X4.TEXTAREA:!function(e,t){e._insertElement(t,U4.HTML),e.skipNextNewLine=!0,e.tokenizer.state=u6.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Z6.TEXT}(e,t);break;case X4.NOSCRIPT:e.options.scriptingEnabled?T8(e,t):C8(e,t);break;case X4.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(X4.P)&&e._closePElement(),e._insertElement(t,U4.HTML),e.tokenizer.state=u6.PLAINTEXT}(e,t);break;case X4.COL:case X4.TH:case X4.TD:case X4.TR:case X4.HEAD:case X4.FRAME:case X4.TBODY:case X4.TFOOT:case X4.THEAD:case X4.CAPTION:case X4.COLGROUP:break;default:C8(e,t)}}function N8(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const t=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==X4.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(t,o))break}}function I8(e,t){switch(t.tagID){case X4.A:case X4.B:case X4.I:case X4.S:case X4.U:case X4.EM:case X4.TT:case X4.BIG:case X4.CODE:case X4.FONT:case X4.NOBR:case X4.SMALL:case X4.STRIKE:case X4.STRONG:u8(e,t);break;case X4.P:!function(e){e.openElements.hasInButtonScope(X4.P)||e._insertFakeElement(Y4.P,X4.P),e._closePElement()}(e);break;case X4.DL:case X4.UL:case X4.OL:case X4.DIR:case X4.DIV:case X4.NAV:case X4.PRE:case X4.MAIN:case X4.MENU:case X4.ASIDE:case X4.BUTTON:case X4.CENTER:case X4.FIGURE:case X4.FOOTER:case X4.HEADER:case X4.HGROUP:case X4.DIALOG:case X4.ADDRESS:case X4.ARTICLE:case X4.DETAILS:case X4.SEARCH:case X4.SECTION:case X4.SUMMARY:case X4.LISTING:case X4.FIELDSET:case X4.BLOCKQUOTE:case X4.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case X4.LI:!function(e){e.openElements.hasInListItemScope(X4.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X4.LI),e.openElements.popUntilTagNamePopped(X4.LI))}(e);break;case X4.DD:case X4.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case X4.H1:case X4.H2:case X4.H3:case X4.H4:case X4.H5:case X4.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case X4.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y4.BR,X4.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case X4.BODY:!function(e,t){if(e.openElements.hasInScope(X4.BODY)&&(e.insertionMode=Z6.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case X4.HTML:!function(e,t){e.openElements.hasInScope(X4.BODY)&&(e.insertionMode=Z6.AFTER_BODY,K8(e,t))}(e,t);break;case X4.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(X4.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(X4.FORM):n&&e.openElements.remove(n))}(e);break;case X4.APPLET:case X4.OBJECT:case X4.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case X4.TEMPLATE:y8(e,t);break;default:N8(e,t)}}function R8(e,t){e.tmplInsertionModeStack.length>0?Y8(e,t):p8(e,t)}function O8(e,t){if(t8.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Z6.IN_TABLE_TEXT,t.type){case T4.CHARACTER:F8(e,t);break;case T4.WHITESPACE_CHARACTER:M8(e,t)}else D8(e,t)}function P8(e,t){switch(t.tagID){case X4.TD:case X4.TH:case X4.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y4.TBODY,X4.TBODY),e.insertionMode=Z6.IN_TABLE_BODY,U8(e,t)}(e,t);break;case X4.STYLE:case X4.SCRIPT:case X4.TEMPLATE:g8(e,t);break;case X4.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y4.COLGROUP,X4.COLGROUP),e.insertionMode=Z6.IN_COLUMN_GROUP,H8(e,t)}(e,t);break;case X4.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,U4.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case X4.TABLE:!function(e,t){e.openElements.hasInTableScope(X4.TABLE)&&(e.openElements.popUntilTagNamePopped(X4.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case X4.TBODY:case X4.TFOOT:case X4.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_TABLE_BODY}(e,t);break;case X4.INPUT:!function(e,t){S8(t)?e._appendElement(t,U4.HTML):D8(e,t),t.ackSelfClosing=!0}(e,t);break;case X4.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_CAPTION}(e,t);break;case X4.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_COLUMN_GROUP}(e,t);break;default:D8(e,t)}}function L8(e,t){switch(t.tagID){case X4.TABLE:e.openElements.hasInTableScope(X4.TABLE)&&(e.openElements.popUntilTagNamePopped(X4.TABLE),e._resetInsertionMode());break;case X4.TEMPLATE:y8(e,t);break;case X4.BODY:case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.HTML:case X4.TBODY:case X4.TD:case X4.TFOOT:case X4.TH:case X4.THEAD:case X4.TR:break;default:D8(e,t)}}function D8(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,w8(e,t),e.fosterParentingEnabled=n}function M8(e,t){e.pendingCharacterTokens.push(t)}function F8(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function j8(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)D8(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const B8=new Set([X4.CAPTION,X4.COL,X4.COLGROUP,X4.TBODY,X4.TD,X4.TFOOT,X4.TH,X4.THEAD,X4.TR]);function H8(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.COL:e._appendElement(t,U4.HTML),t.ackSelfClosing=!0;break;case X4.TEMPLATE:g8(e,t);break;default:z8(e,t)}}function z8(e,t){e.openElements.currentTagId===X4.COLGROUP&&(e.openElements.pop(),e.insertionMode=Z6.IN_TABLE,e._processToken(t))}function U8(e,t){switch(t.tagID){case X4.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_ROW;break;case X4.TH:case X4.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Y4.TR,X4.TR),e.insertionMode=Z6.IN_ROW,V8(e,t);break;case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.TBODY:case X4.TFOOT:case X4.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE,P8(e,t));break;default:P8(e,t)}}function $8(e,t){const n=t.tagID;switch(t.tagID){case X4.TBODY:case X4.TFOOT:case X4.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE);break;case X4.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE,L8(e,t));break;case X4.BODY:case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.HTML:case X4.TD:case X4.TH:case X4.TR:break;default:L8(e,t)}}function V8(e,t){switch(t.tagID){case X4.TH:case X4.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,U4.HTML),e.insertionMode=Z6.IN_CELL,e.activeFormattingElements.insertMarker();break;case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.TBODY:case X4.TFOOT:case X4.THEAD:case X4.TR:e.openElements.hasInTableScope(X4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE_BODY,U8(e,t));break;default:P8(e,t)}}function G8(e,t){switch(t.tagID){case X4.TR:e.openElements.hasInTableScope(X4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE_BODY);break;case X4.TABLE:e.openElements.hasInTableScope(X4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE_BODY,$8(e,t));break;case X4.TBODY:case X4.TFOOT:case X4.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(X4.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z6.IN_TABLE_BODY,$8(e,t));break;case X4.BODY:case X4.CAPTION:case X4.COL:case X4.COLGROUP:case X4.HTML:case X4.TD:case X4.TH:break;default:L8(e,t)}}function W8(e,t){switch(t.tagID){case X4.HTML:A8(e,t);break;case X4.OPTION:e.openElements.currentTagId===X4.OPTION&&e.openElements.pop(),e._insertElement(t,U4.HTML);break;case X4.OPTGROUP:e.openElements.currentTagId===X4.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X4.OPTGROUP&&e.openElements.pop(),e._insertElement(t,U4.HTML);break;case X4.HR:e.openElements.currentTagId===X4.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X4.OPTGROUP&&e.openElements.pop(),e._appendElement(t,U4.HTML),t.ackSelfClosing=!0;break;case X4.INPUT:case X4.KEYGEN:case X4.TEXTAREA:case X4.SELECT:e.openElements.hasInSelectScope(X4.SELECT)&&(e.openElements.popUntilTagNamePopped(X4.SELECT),e._resetInsertionMode(),t.tagID!==X4.SELECT&&e._processStartTag(t));break;case X4.SCRIPT:case X4.TEMPLATE:g8(e,t)}}function q8(e,t){switch(t.tagID){case X4.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===X4.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===X4.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===X4.OPTGROUP&&e.openElements.pop();break;case X4.OPTION:e.openElements.currentTagId===X4.OPTION&&e.openElements.pop();break;case X4.SELECT:e.openElements.hasInSelectScope(X4.SELECT)&&(e.openElements.popUntilTagNamePopped(X4.SELECT),e._resetInsertionMode());break;case X4.TEMPLATE:y8(e,t)}}function Y8(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X4.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):p8(e,t)}function K8(e,t){var n;if(t.tagID===X4.HTML){if(e.fragmentContext||(e.insertionMode=Z6.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===X4.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else X8(e,t)}function X8(e,t){e.insertionMode=Z6.IN_BODY,w8(e,t)}function Q8(e,t){e.insertionMode=Z6.IN_BODY,w8(e,t)}function Z8(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==U4.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}Y4.AREA,Y4.BASE,Y4.BASEFONT,Y4.BGSOUND,Y4.BR,Y4.COL,Y4.EMBED,Y4.FRAME,Y4.HR,Y4.IMG,Y4.INPUT,Y4.KEYGEN,Y4.LINK,Y4.META,Y4.PARAM,Y4.SOURCE,Y4.TRACK,Y4.WBR;const J8=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,e9=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),t9={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function n9(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=n4("type",{handlers:{root:a9,element:o9,text:i9,comment:c9,doctype:s9,raw:u9},unknown:d9}),a={parser:n?new r8(t9):r8.getFragmentParser(void 0,t9),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),p9(a,k0());const o=function(e,t){const n=t||{};return g3({file:n.file||void 0,location:!1,schema:"svg"===n.space?VJ:$J,verbose:n.verbose||!1},e)}(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&u5(o,"comment",(function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}})),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function r9(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function a9(e,t){r9(e.children,t)}function o9(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===u6.PLAINTEXT)return;p9(t,k0(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:h3.html;a===h3.html&&"svg"===n&&(a=h3.svg);const o=function(e,t){const n=(t||r4).space;return o4(e,"svg"===n?e4:J3)}({...e,children:[]},{space:a===h3.svg?"svg":"html"}),i={type:T4.START_TAG,tagName:n,tagID:a6(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:f9(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),r9(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&c4.includes(n))return;if(t.parser.tokenizer.state===u6.PLAINTEXT)return;p9(t,v0(e));const r={type:T4.END_TAG,tagName:n,tagID:a6(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:f9(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==u6.RCDATA&&t.parser.tokenizer.state!==u6.RAWTEXT&&t.parser.tokenizer.state!==u6.SCRIPT_DATA||(t.parser.tokenizer.state=u6.DATA)}(e,t)}function i9(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:T4.CHARACTER,chars:e.value,location:f9(e)};p9(t,k0(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function s9(e,t){const n={type:T4.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:f9(e)};p9(t,k0(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function l9(e,t){t.stitches=!0;const n=function(e){return e5("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=n9({type:"root",children:e.children},t.options);n.children=r.children}c9({type:"comment",value:{stitch:n}},t)}function c9(e,t){const n=e.value,r={type:T4.COMMENT,data:n,location:f9(e)};p9(t,k0(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function u9(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,h9(t,k0(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(J8,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function d9(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw e9.has(n.type)&&(e=". 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"+e)}l9(n,t)}function p9(e,t){h9(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=u6.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 h9(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function f9(e){const t=k0(e)||{line:void 0,column:void 0,offset:void 0},n=v0(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 m9(e){return function(t,n){return n9(t,{...e,file:n})}}function g9(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function y9(e,t,n){const r=r5((n||{}).ignore||[]),a=function(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 e=n[r];t.push([b9(e[0]),v9(e[1])])}return t}(t);let o=-1;for(;++o<a.length;)c5(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[o][0],i=a[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let o=i(...d,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function b9(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function v9(e){return"function"==typeof e?e:function(){return e}}const k9="phrasing",w9=["autolink","link","image","label"];function x9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function E9(e){this.config.enter.autolinkProtocol.call(this,e)}function _9(e){this.config.exit.autolinkProtocol.call(this,e)}function S9(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 T9(e){this.config.exit.autolinkEmail.call(this,e)}function C9(e){this.exit(e)}function A9(e){y9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,N9],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),I9]],{ignore:["link","linkReference"]})}function N9(e,t,n,r,a){let o="";if(!R9(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(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])))return!1;return!0}(n))return!1;const i=function(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 a=g9(e,"(");let o=g9(e,")");for(;-1!==r&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function I9(e,t,n,r){return!(!R9(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function R9(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||m1(n)||f1(n))&&(!t||47!==n)}function O9(){this.buffer()}function P9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function L9(){this.buffer()}function D9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function M9(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=r1(this.sliceSerialize(e)).toLowerCase(),n.label=t}function F9(e){this.exit(e)}function j9(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=r1(this.sliceSerialize(e)).toLowerCase(),n.label=t}function B9(e){this.exit(e)}function H9(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),i(),o+=a.move("]"),o}function z9(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const o=r.createTracker(a);let i=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");i+=o.move(r.safe(r.associationId(e),{before:i,after:"]"})),l(),i+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),i+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?$9:U9)));return s(),i},footnoteReference:H9},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function U9(e,t,n){return 0===t?e:$9(e,t,n)}function $9(e,t,n){return(n?"":" ")+e}H9.peek=function(){return"["};const V9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function G9(e){this.enter({type:"delete",children:[]},e)}function W9(e){this.exit(e)}function q9(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function Y9(e){return e.length}function K9(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function X9(e,t,n){return">"+(n?"":" ")+e}function Q9(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Z9(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&(o=n.stack,i=n.unsafe[a],Q9(o,i.inConstruct,!0)&&!Q9(o,i.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,i;return"\\\n"}function J9(e,t,n){return(n?"":" ")+e}function e7(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 t7(e){return"&#x"+e.toString(16).toUpperCase()+";"}function n7(e,t,n){const r=x1(e),a=x1(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function r7(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),i=n.createTracker(r),s=i.move(a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=n7(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=t7(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=n7(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+t7(d));const h=i.move(a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}function a7(e){return e.value||""}function o7(e,t,n,r){const a=e7(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),i(),c}function i7(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function s7(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function l7(e,t){const n=G0(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function c7(e,t,n,r){const a=e7(n),o='"'===a?"Quote":"Apostrophe",i=n.createTracker(r);let s,l;if(l7(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(l=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=i.move(" "+a),c+=i.move(n.safe(e.title,{before:c,after:a,...i.current()})),c+=i.move(a),l()),c+=i.move(")"),s(),c}function u7(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function d7(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 p7(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}q9.peek=function(){return"~"},r7.peek=function(e,t,n){return n.options.emphasis||"*"},a7.peek=function(){return"<"},o7.peek=function(){return"!"},i7.peek=function(){return"!"},s7.peek=function(){return"`"},c7.peek=function(e,t,n){return l7(e,n)?"<":"["},u7.peek=function(){return"["};const h7=r5(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function f7(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),i=n.createTracker(r),s=i.move(a+a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=n7(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=t7(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=n7(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+t7(d));const h=i.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}f7.peek=function(e,t,n){return n.options.strong||"*"};const m7={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const i=n.indentLines(n.containerFlow(e,o.current()),X9);return a(),i},break:Z9,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,J9);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++o>i&&(i=o):o=1,a=r+t.length,r=n.indexOf(t,a);return i}(o,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=e7(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),i(),c},emphasis:r7,hardBreak:Z9,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return u5(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,l5})),Boolean((!e.depth||e.depth<3)&&G0(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=t7(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),l(),s(),c},html:a7,image:o7,imageReference:i7,inlineCode:s7,link:c7,linkReference:u7,list:function(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):d7(n);const s=e.ordered?"."===i?")":".":function(e){const t=d7(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}(n);let l=!(!t||!n.bulletLastUsed)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),p7(n)===i&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(i=s),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=o,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||d7(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const s=n.createTracker(r);s.move(o+" ".repeat(i-o.length)),s.shift(i);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?o:o+" ".repeat(i-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),a(),i},root:function(e,t,n,r){return(e.children.some((function(e){return h7(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:f7,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(p7(n)+(n.options.ruleSpaces?" ":"")).repeat(function(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}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function g7(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function y7(e){this.exit(e),this.data.inTable=void 0}function b7(e){this.enter({type:"tableRow",children:[]},e)}function v7(e){this.exit(e)}function k7(e){this.enter({type:"tableCell",children:[]},e)}function w7(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,x7));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function x7(e,t){return"|"===t?t:e}function E7(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=m7.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const o=[],i=t.enter("table");for(;++a<r.length;)o[a]=l(r[a],t,n);return i(),o}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const a=s([l(e,n,r)]);return a.slice(0,a.indexOf("\n"))}}};function i(e,t,n,r){const a=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||Y9,o=[],i=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const i=null==(d=e[u][o])?"":String(d);if(!1!==n.alignDelimiters){const e=a(i);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(i)}i[u]=t,s[u]=r}var d;let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)o[p]=K9(r[p]);else{const e=K9(r);for(;++p<c;)o[p]=e}p=-1;const h=[],f=[];for(;++p<c;){const e=o[p];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length);const i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[p]&&(l[p]=a),f[p]=a),h[p]=i}i.splice(1,0,h),s.splice(1,0,f),u=-1;const m=[];for(;++u<i.length;){const e=i[u],t=s[u];p=-1;const r=[];for(;++p<c;){const a=e[p]||"";let i="",s="";if(!1!==n.alignDelimiters){const e=l[p]-(t[p]||0),n=o[p];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),s=i):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!p||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&p===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const o=[],s=t.enter("tableRow");for(;++a<r.length;)o[a]=i(r[a],0,t,n);return s(),o}}function _7(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function S7(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function T7(e,t,n,r){const a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(i);let l=m7.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+i}))),l}const C7={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),a;return n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},A7={tokenize:function(e,t,n){let r,a,o;return i;function i(t){return 46===t||95===t?e.check(I7,l,s)(t):null===t||p1(t)||m1(t)||45!==t&&f1(t)?l(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function l(e){return a||r||!o?n(e):t(e)}},partial:!0},N7={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(I7,t,o)(i):null===i||p1(i)||m1(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&r++,e.consume(t),a}},partial:!0},I7={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||p1(i)||m1(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||p1(e)||m1(e)?t(e):r(e)}function o(e){return a1(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):a1(t)?(e.consume(t),i):n(t)}},partial:!0},R7={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return o1(e)?n(e):t(e)}},partial:!0},O7={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!F7.call(r,r.previous)||z7(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(C7,e.attempt(A7,e.attempt(N7,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:F7},P7={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",o=!1;return function(t){if((72===t||104===t)&&j7.call(r,r.previous)&&!z7(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i;return n(t)};function i(t){if(a1(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||s1(t)||p1(t)||m1(t)||f1(t)?n(t):e.attempt(A7,e.attempt(N7,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:j7},L7={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,o;return function(t){if(!H7(t)||!B7.call(r,r.previous)||z7(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)};function i(t){return H7(t)?(e.consume(t),i):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(R7,c,l)(t):45===t||95===t||o1(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(i){return o&&a&&a1(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:B7},D7={};let M7=48;for(;M7<123;)D7[M7]=L7,M7++,58===M7?M7=65:91===M7&&(M7=97);function F7(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||p1(e)}function j7(e){return!a1(e)}function B7(e){return!(47===e||H7(e))}function H7(e){return 43===e||45===e||46===e||95===e||o1(e)}function z7(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}D7[43]=L7,D7[45]=L7,D7[46]=L7,D7[95]=L7,D7[72]=[L7,P7],D7[104]=[L7,P7],D7[87]=[L7,O7],D7[119]=[L7,O7];const U7={tokenize:function(e,t,n){const r=this;return b1(e,(function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function $7(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return n(a);const s=r1(r.sliceSerialize({start:i.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function V7(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){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)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function G7(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(i>999||93===s&&!o||null===s||91===s||p1(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return a.includes(r1(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return p1(s)||(o=!0),i++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function W7(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||p1(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=r1(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return p1(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),b1(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function q7(e,t,n){return e.check(C1,t,e.attempt(U7,t,n))}function Y7(e){e.exit("gfmFootnoteDefinition")}function K7(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,o=this.events;let i=0;return function(t){if(126===a&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=x1(a);if(126===o)return i>1?r(o):(e.consume(o),i++,s);if(i<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=x1(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&X0(i,i.length,0,E1(s,e.slice(r+1,n),t)),X0(i,i.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),X0(e,r-1,n-r+3,i),n=r+i.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class X7{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function Q7(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function Z7(e,t,n){const r=this;let a,o=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?k:s;if(o===k&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,i+=1,l(e)}(t)}function l(t){return null===t?n(t):d1(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):h1(t)?b1(e,l,"whitespace")(t):(i+=1,a&&(a=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||p1(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,h1(t)?b1(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?f(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):v(t)}function h(t){return h1(t)?b1(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||d1(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):v(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return h1(t)?b1(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?p(n):(null===n||d1(n))&&a&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function k(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||d1(n)?(e.exit("tableRow"),t(n)):h1(n)?b1(e,w,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||p1(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function J7(e,t){let n,r,a,o=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new X7;for(;++o<e.length;){const h=e[o],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&(tee(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(i=!0,a=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(i?i=!1:(0!==l[1]&&(c[0]=c[1],a=eee(p,t,l,s,void 0,a)),l=c,c=[l[1],o,0,0])):(i=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=eee(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,d=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=o,0!==l[1]?(c[0]=c[1],a=eee(p,t,l,s,o,a)):0!==c[1]&&(a=eee(p,t,c,s,o,a)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==d&&tee(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Q7(t.events,o))}return e}function eee(e,t,n,r,a,o){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},nee(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=nee(t.events,n[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const a=nee(t.events,n[2]),o=nee(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},nee(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function tee(e,t,n,r,a){const o=[],i=nee(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function nee(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const ree={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return p1(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return d1(r)?t(r):h1(r)?e.check({tokenize:aee},t,n)(r):n(r)}}};function aee(e,t,n){return b1(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const oee={};function iee(e){const t=e||oee,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return J0([{text:D7},{document:{91:{name:"gfmFootnoteDefinition",tokenize:W7,continuation:{tokenize:q7},exit:Y7}},text:{91:{name:"gfmFootnoteCall",tokenize:G7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$7,resolveTo:V7}}},K7(e),{flow:{null:{name:"table",tokenize:Z7,resolveAll:J7}}},{text:{91:ree}}])}(t)),a.push([{transforms:[A9],enter:{literalAutolink:x9,literalAutolinkEmail:E9,literalAutolinkHttp:E9,literalAutolinkWww:E9},exit:{literalAutolink:C9,literalAutolinkEmail:T9,literalAutolinkHttp:_9,literalAutolinkWww:S9}},{enter:{gfmFootnoteCallString:O9,gfmFootnoteCall:P9,gfmFootnoteDefinitionLabelString:L9,gfmFootnoteDefinition:D9},exit:{gfmFootnoteCallString:M9,gfmFootnoteCall:F9,gfmFootnoteDefinitionLabelString:j9,gfmFootnoteDefinition:B9}},{canContainEols:["delete"],enter:{strikethrough:G9},exit:{strikethrough:W9}},{enter:{table:g7,tableData:k7,tableHeader:k7,tableRow:b7},exit:{codeText:w7,table:y7,tableData:v7,tableHeader:v7,tableRow:v7}},{exit:{taskListCheckValueChecked:_7,taskListCheckValueUnchecked:_7,paragraph:S7}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:k9,notInConstruct:w9},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:k9,notInConstruct:w9},{character:":",before:"[ps]",after:"\\/",inConstruct:k9,notInConstruct:w9}]},z9(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:V9}],handlers:{delete:q9}},E7(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:T7}}]}}(t))}function see(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=see(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function lee(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=see(e))&&(r&&(r+=" "),r+=t);return r}var cee,uee,dee,pee,hee,fee,mee,gee=Object.create,yee=Object.defineProperty,bee=Object.defineProperties,vee=Object.getOwnPropertyDescriptor,kee=Object.getOwnPropertyDescriptors,wee=Object.getOwnPropertyNames,xee=Object.getOwnPropertySymbols,Eee=Object.getPrototypeOf,_ee=Object.prototype.hasOwnProperty,See=Object.prototype.propertyIsEnumerable,Tee=(e,t,n)=>t in e?yee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cee=(e,t)=>{for(var n in t||(t={}))_ee.call(t,n)&&Tee(e,n,t[n]);if(xee)for(var n of xee(t))See.call(t,n)&&Tee(e,n,t[n]);return e},Aee=(e,t)=>bee(e,kee(t)),Nee=(e,t)=>{var n={};for(var r in e)_ee.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xee)for(var r of xee(e))t.indexOf(r)<0&&See.call(e,r)&&(n[r]=e[r]);return n},Iee=(cee={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var i in a={},n[o]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var c=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,o){o=o||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],a||s);var l=t[s],c=r.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new s;return l(a,a.head,e),i(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function i(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var h=n[p];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(d&&d.cause==p+","+f)return;var m=h[f],g=m.inside,y=!!m.lookbehind,b=!!m.greedy,v=m.alias;if(b&&!m.pattern.global){var k=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,k+"g")}for(var w=m.pattern||m,x=s.next,E=u;x!==t.tail&&!(d&&E>=d.reach);E+=x.value.length,x=x.next){var _=x.value;if(t.length>e.length)return;if(!(_ instanceof a)){var S,T=1;if(b){if(!(S=o(w,E,e,y))||S.index>=e.length)break;var C=S.index,A=S.index+S[0].length,N=E;for(N+=x.value.length;C>=N;)N+=(x=x.next).value.length;if(E=N-=x.value.length,x.value instanceof a)continue;for(var I=x;I!==t.tail&&(N<A||"string"==typeof I.value);I=I.next)T++,N+=I.value.length;T--,_=e.slice(E,N),S.index-=E}else if(!(S=o(w,0,_,y)))continue;C=S.index;var R=S[0],O=_.slice(0,C),P=_.slice(C+R.length),L=E+_.length;d&&L>d.reach&&(d.reach=L);var D=x.prev;if(O&&(D=l(t,D,O),E+=O.length),c(t,D,T),x=l(t,D,new a(p,g?r.tokenize(R,g):R,v,R)),P&&l(t,x,P),T>1){var M={cause:p+","+f,reach:L};i(e,t,n,x.prev,E,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),r.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return uee||(0,cee[wee(cee)[0]])((uee={exports:{}}).exports,uee),uee.exports}),Ree=((e,t,n)=>(n=null!=e?gee(Eee(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of wee(t))_ee.call(e,a)||a===n||yee(e,a,{get:()=>t[a],enumerable:!(r=vee(t,a))||r.enumerable});return e})(e&&e.__esModule?n:yee(n,"default",{value:e,enumerable:!0}),e)))(Iee());Ree.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Ree.languages.markup.tag.inside["attr-value"].inside.entity=Ree.languages.markup.entity,Ree.languages.markup.doctype.inside["internal-subset"].inside=Ree.languages.markup,Ree.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Ree.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Ree.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:Ree.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Ree.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Ree.languages.markup.tag,"addAttribute",{value:function(e,t){Ree.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Ree.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Ree.languages.html=Ree.languages.markup,Ree.languages.mathml=Ree.languages.markup,Ree.languages.svg=Ree.languages.markup,Ree.languages.xml=Ree.languages.extend("markup",{}),Ree.languages.ssml=Ree.languages.xml,Ree.languages.atom=Ree.languages.xml,Ree.languages.rss=Ree.languages.xml,dee=Ree,pee={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},fee="(?:[^\\\\-]|"+(hee=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",fee=RegExp(fee+"-"+fee),mee={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},dee.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:fee,inside:{escape:hee,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":pee,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:hee}},"special-escape":pee,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":mee}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:hee,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":mee}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},Ree.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Ree.languages.javascript=Ree.languages.extend("clike",{"class-name":[Ree.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Ree.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Ree.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Ree.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Ree.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Ree.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Ree.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Ree.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Ree.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Ree.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Ree.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Ree.languages.markup&&(Ree.languages.markup.tag.addInlined("script","javascript"),Ree.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Ree.languages.js=Ree.languages.javascript,Ree.languages.actionscript=Ree.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Ree.languages.actionscript["class-name"].alias="function",delete Ree.languages.actionscript.parameter,delete Ree.languages.actionscript["literal-property"],Ree.languages.markup&&Ree.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Ree.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(Ree),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},a="doc-comment";if(o=e.languages[t]){var o,i=o[a];if((i=i||(o=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(i=o[a]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),r(i[s]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(Ree),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Ree),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(Ree),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Ree),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a,o=t[n];"code"!==o.type?e(o.content):(a=o.content[1],o=o.content[3],a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content&&(a=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r];if(o=/language-(.+)/.exec(o)){n=o[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Ree),Ree.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Ree.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Ree.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=u(0);"variable"===i.type&&(h(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,h(u(0),"property-mutation"),0<a.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=a.indexOf(c.content)&&h(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))a++;else if(r.test(s)&&0==--a)return o}return-1}function h(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),Ree.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,i){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+i.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,i),Object.keys(u));return c=0,function t(n){for(var o=0;o<n.length;o++){if(c>=d.length)return;var i,l,p,h,f,m,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(i=d[c],-1!==(g=(m="string"==typeof y?y:y.content).indexOf(i))&&(++c,l=m.substring(0,g),f=u[i],p=void 0,(h={})["interpolation-punctuation"]=a,3===(h=e.tokenize(f,h)).length&&((p=[1,1]).push.apply(p,s(h[1],e.languages.javascript,"javascript")),h.splice.apply(h,p)),p=new e.Token("interpolation",h,r.alias,f),h=m.substring(g+i.length),f=[],l&&f.push(l),f.push(p),h&&(t(m=[h]),f.push.apply(f,m)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(f)),o+=f.length-1):y.content=f)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(i,l,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var o,i,s,c=n[r];"string"!=typeof c&&(o=c.content,Array.isArray(o)?"template-string"===c.type?(c=o[1],3===o.length&&"string"!=typeof c&&"embedded-code"===c.type&&(i=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(o[1]=l(i,s,c))):t(o):"string"!=typeof o&&t([o]))}}(t.tokens)}))}(Ree),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Ree),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Ree),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Ree),Ree.languages.n4js=Ree.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Ree.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Ree.languages.n4jsd=Ree.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];a=(o="RegExp"===e.util.type(o)?e.languages.javascript[a]={pattern:o}:o).inside||{};(o.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Ree),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;"string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(a.content[0].content[1])&&n.pop():"/>"!==a.content[a.content.length-1].content&&n.push({tagName:s(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces&&(o=s(a),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(o+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(o=s(t[r-1])+o,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",o,null,o)),a.content&&"string"!=typeof a.content&&i(a.content)}}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(Ree),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(Ree),Ree.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Ree.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Ree.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Ree),Ree.languages.c=Ree.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Ree.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Ree.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Ree.languages.c.string],char:Ree.languages.c.char,comment:Ree.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Ree.languages.c}}}}),Ree.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Ree.languages.c.boolean,Ree.languages.objectivec=Ree.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Ree.languages.objectivec["class-name"],Ree.languages.objc=Ree.languages.objectivec,Ree.languages.reason=Ree.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),Ree.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete Ree.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Ree),Ree.languages.go=Ree.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Ree.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Ree.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Ree),Ree.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Ree.languages.python["string-interpolation"].inside.interpolation.inside.rest=Ree.languages.python,Ree.languages.py=Ree.languages.python,Ree.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Ree.languages.webmanifest=Ree.languages.json;var Oee={};((e,t)=>{for(var n in t)yee(e,n,{get:t[n],enumerable:!0})})(Oee,{dracula:()=>Pee,duotoneDark:()=>Lee,duotoneLight:()=>Dee,github:()=>Mee,gruvboxMaterialDark:()=>Jee,gruvboxMaterialLight:()=>ete,jettwaveDark:()=>Kee,jettwaveLight:()=>Xee,nightOwl:()=>Fee,nightOwlLight:()=>jee,oceanicNext:()=>zee,okaidia:()=>Uee,oneDark:()=>Qee,oneLight:()=>Zee,palenight:()=>$ee,shadesOfPurple:()=>Vee,synthwave84:()=>Gee,ultramin:()=>Wee,vsDark:()=>qee,vsLight:()=>Yee});var Pee={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Lee={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Dee={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Mee={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Fee={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},jee={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Bee="#c5a5c5",Hee="#8dc891",zee={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Bee}},{types:["attr-value"],style:{color:Hee}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:Hee}},{types:["punctuation"],style:{color:Hee}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Bee}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Uee={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},$ee={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Vee={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Gee={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Wee={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},qee={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Yee={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Kee={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Xee={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Qee={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},Zee={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},Jee={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},ete={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},tte=/\r\n|\r|\n/,nte=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},rte=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},ate=e=>{const t=[[]],n=[e],r=[0],a=[e.length];let o=0,i=0,s=[];const l=[s];for(;i>-1;){for(;(o=r[i]++)<a[i];){let e,c=t[i];const u=n[i][o];if("string"==typeof u?(c=i>0?c:["plain"],e=u):(c=rte(c,u.type),u.alias&&(c=rte(c,u.alias)),e=u.content),"string"!=typeof e){i++,t.push(c),n.push(e),r.push(0),a.push(e.length);continue}const d=e.split(tte),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)nte(s),l.push(s=[]),s.push({types:c,content:d[t]})}i--,t.pop(),n.pop(),r.pop(),a.pop()}return nte(s),l},ote=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:a}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Cee(Cee({},e[t]),a);e[t]=n})),e}),{});return r.root=n,r.plain=Aee(Cee({},n),{backgroundColor:void 0}),r},ite=({children:e,language:t,code:n,theme:r,prism:a})=>{const o=t.toLowerCase(),i=ote(r,o),s=(e=>Z.useCallback((t=>{var n=t,{className:r,style:a,line:o}=n,i=Nee(n,["className","style","line"]);const s=Aee(Cee({},i),{className:lee("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof a&&(s.style=Cee(Cee({},s.style||{}),a)),s}),[e]))(i),l=(e=>{const t=Z.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return Z.useCallback((e=>{var n=e,{token:r,className:a,style:o}=n,i=Nee(n,["token","className","style"]);const s=Aee(Cee({},i),{className:lee("token",...r.types,a),children:r.content,style:t(r)});return null!=o&&(s.style=Cee(Cee({},s.style||{}),o)),s}),[t])})(i),c=(({prism:e,code:t,grammar:n,language:r})=>Z.useMemo((()=>{if(null==n)return ate([t]);const a={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",a),ate(a.tokens)}),[t,n,r,e]))({prism:a,language:o,code:n,grammar:a.languages[o]});return e({tokens:c,className:`prism-code language-${o}`,style:null!=i?i.root:{},getLineProps:s,getTokenProps:l})},ste=e=>Z.createElement(ite,Aee(Cee({},e),{prism:e.prism||Ree,theme:e.theme||qee,code:e.code,language:e.language}))
71
71
  /*! Bundled license information:
72
72
 
73
73
  prismjs/prism.js: