diff --git a/static/assets/index-161ed743.js b/static/assets/index-161ed743.js deleted file mode 100644 index 6ab1294a8c..0000000000 --- a/static/assets/index-161ed743.js +++ /dev/null @@ -1,114 +0,0 @@ -var NS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var tY=NS((fr,hr)=>{function xS(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function u_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Au={},DS={get exports(){return Au},set exports(e){Au=e}},Bd={},E={},wS={get exports(){return E},set exports(e){E=e}},Me={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r1=Symbol.for("react.element"),RS=Symbol.for("react.portal"),OS=Symbol.for("react.fragment"),MS=Symbol.for("react.strict_mode"),PS=Symbol.for("react.profiler"),LS=Symbol.for("react.provider"),BS=Symbol.for("react.context"),HS=Symbol.for("react.forward_ref"),US=Symbol.for("react.suspense"),zS=Symbol.for("react.memo"),GS=Symbol.for("react.lazy"),Jg=Symbol.iterator;function WS(e){return e===null||typeof e!="object"?null:(e=Jg&&e[Jg]||e["@@iterator"],typeof e=="function"?e:null)}var c_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d_=Object.assign,f_={};function ol(e,t,n){this.props=e,this.context=t,this.refs=f_,this.updater=n||c_}ol.prototype.isReactComponent={};ol.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ol.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function h_(){}h_.prototype=ol.prototype;function e0(e,t,n){this.props=e,this.context=t,this.refs=f_,this.updater=n||c_}var t0=e0.prototype=new h_;t0.constructor=e0;d_(t0,ol.prototype);t0.isPureReactComponent=!0;var e9=Array.isArray,m_=Object.prototype.hasOwnProperty,n0={current:null},p_={key:!0,ref:!0,__self:!0,__source:!0};function g_(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)m_.call(t,r)&&!p_.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,F=M[b];if(0>>1;bi(ut,$))Cei(Ge,ut)?(M[b]=Ge,M[Ce]=$,b=Ce):(M[b]=ut,M[xe]=$,b=xe);else if(Cei(Ge,$))M[b]=Ge,M[Ce]=$,b=Ce;else break e}}return z}function i(M,z){var $=M.sortIndex-z.sortIndex;return $!==0?$:M.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,m=!1,h=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(M){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=M)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function C(M){if(v=!1,_(M),!h)if(n(l)!==null)h=!0,O(k);else{var z=n(u);z!==null&&Q(C,z.startTime-M)}}function k(M,z){h=!1,v&&(v=!1,p(N),N=-1),m=!0;var $=f;try{for(_(z),d=n(l);d!==null&&(!(d.expirationTime>z)||M&&!L());){var b=d.callback;if(typeof b=="function"){d.callback=null,f=d.priorityLevel;var F=b(d.expirationTime<=z);z=e.unstable_now(),typeof F=="function"?d.callback=F:d===n(l)&&r(l),_(z)}else r(l);d=n(l)}if(d!==null)var me=!0;else{var xe=n(u);xe!==null&&Q(C,xe.startTime-z),me=!1}return me}finally{d=null,f=$,m=!1}}var A=!1,S=null,N=-1,P=5,I=-1;function L(){return!(e.unstable_now()-IM||125b?(M.sortIndex=$,t(u,M),n(l)===null&&M===n(u)&&(v?(p(N),N=-1):v=!0,Q(C,$-b))):(M.sortIndex=F,t(l,M),h||m||(h=!0,O(k))),M},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(M){var z=f;return function(){var $=f;f=z;try{return M.apply(this,arguments)}finally{f=$}}}})(v_);(function(e){e.exports=v_})(tA);/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var T_=E,gr=km;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Im=Object.prototype.hasOwnProperty,nA=/^[: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]*$/,n9={},r9={};function rA(e){return Im.call(r9,e)?!0:Im.call(n9,e)?!1:nA.test(e)?r9[e]=!0:(n9[e]=!0,!1)}function iA(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oA(e,t,n,r){if(t===null||typeof t>"u"||iA(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function zn(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var cn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){cn[e]=new zn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];cn[t]=new zn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){cn[e]=new zn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){cn[e]=new zn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){cn[e]=new zn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){cn[e]=new zn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){cn[e]=new zn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){cn[e]=new zn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){cn[e]=new zn(e,5,!1,e.toLowerCase(),null,!1,!1)});var i0=/[\-:]([a-z])/g;function o0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(i0,o0);cn[t]=new zn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(i0,o0);cn[t]=new zn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(i0,o0);cn[t]=new zn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){cn[e]=new zn(e,1,!1,e.toLowerCase(),null,!1,!1)});cn.xlinkHref=new zn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){cn[e]=new zn(e,1,!1,e.toLowerCase(),null,!0,!0)});function a0(e,t,n,r){var i=cn.hasOwnProperty(t)?cn[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Kf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ql(e):""}function aA(e){switch(e.tag){case 5:return Ql(e.type);case 16:return Ql("Lazy");case 13:return Ql("Suspense");case 19:return Ql("SuspenseList");case 0:case 2:case 15:return e=$f(e.type,!1),e;case 11:return e=$f(e.type.render,!1),e;case 1:return e=$f(e.type,!0),e;default:return""}}function Dm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vs:return"Fragment";case Es:return"Portal";case Fm:return"Profiler";case s0:return"StrictMode";case Nm:return"Suspense";case xm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C_:return(e.displayName||"Context")+".Consumer";case y_:return(e._context.displayName||"Context")+".Provider";case l0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case u0:return t=e.displayName||null,t!==null?t:Dm(e.type)||"Memo";case Io:t=e._payload,e=e._init;try{return Dm(e(t))}catch{}}return null}function sA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Dm(t);case 8:return t===s0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function A_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lA(e){var t=A_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function N1(e){e._valueTracker||(e._valueTracker=lA(e))}function b_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=A_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function wm(e,t){var n=t.checked;return Ft({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function o9(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function k_(e,t){t=t.checked,t!=null&&a0(e,"checked",t,!1)}function Rm(e,t){k_(e,t);var n=qo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Om(e,t.type,n):t.hasOwnProperty("defaultValue")&&Om(e,t.type,qo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function a9(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Om(e,t,n){(t!=="number"||Vc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xl=Array.isArray;function Os(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=x1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ku(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var nu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uA=["Webkit","ms","Moz","O"];Object.keys(nu).forEach(function(e){uA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nu[t]=nu[e]})});function x_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||nu.hasOwnProperty(e)&&nu[e]?(""+t).trim():t+"px"}function D_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=x_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var cA=Ft({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Lm(e,t){if(t){if(cA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Bm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hm=null;function c0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Um=null,Ms=null,Ps=null;function u9(e){if(e=a1(e)){if(typeof Um!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=Wd(t),Um(e.stateNode,e.type,t))}}function w_(e){Ms?Ps?Ps.push(e):Ps=[e]:Ms=e}function R_(){if(Ms){var e=Ms,t=Ps;if(Ps=Ms=null,u9(e),t)for(e=0;e>>=0,e===0?32:31-(yA(e)/CA|0)|0}var D1=64,w1=4194304;function Zl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Zl(s):(o&=a,o!==0&&(r=Zl(o)))}else a=n&~i,a!==0?r=Zl(a):o!==0&&(r=Zl(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function i1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-oi(t),e[t]=n}function kA(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=iu),v9=String.fromCharCode(32),T9=!1;function J_(e,t){switch(e){case"keyup":return e6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ey(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ts=!1;function n6(e,t){switch(e){case"compositionend":return ey(t);case"keypress":return t.which!==32?null:(T9=!0,v9);case"textInput":return e=t.data,e===v9&&T9?null:e;default:return null}}function r6(e,t){if(Ts)return e==="compositionend"||!v0&&J_(e,t)?(e=X_(),Sc=p0=Po=null,Ts=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=S9(n)}}function iy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?iy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oy(){for(var e=window,t=Vc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vc(e.document)}return t}function T0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function f6(e){var t=oy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&iy(n.ownerDocument.documentElement,n)){if(r!==null&&T0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=A9(n,o);var a=A9(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,_s=null,$m=null,au=null,Vm=!1;function b9(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vm||_s==null||_s!==Vc(r)||(r=_s,"selectionStart"in r&&T0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),au&&wu(au,r)||(au=r,r=ed($m,"onSelect"),0Ss||(e.current=Jm[Ss],Jm[Ss]=null,Ss--)}function lt(e,t){Ss++,Jm[Ss]=e.current,e.current=t}var Qo={},Cn=Jo(Qo),Jn=Jo(!1),Oa=Qo;function Ks(e,t){var n=e.type.contextTypes;if(!n)return Qo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function er(e){return e=e.childContextTypes,e!=null}function nd(){gt(Jn),gt(Cn)}function w9(e,t,n){if(Cn.current!==Qo)throw Error(Z(168));lt(Cn,t),lt(Jn,n)}function my(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Z(108,sA(e)||"Unknown",i));return Ft({},n,r)}function rd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qo,Oa=Cn.current,lt(Cn,e),lt(Jn,Jn.current),!0}function R9(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=my(e,t,Oa),r.__reactInternalMemoizedMergedChildContext=e,gt(Jn),gt(Cn),lt(Cn,e)):gt(Jn),lt(Jn,n)}var Ji=null,jd=!1,ah=!1;function py(e){Ji===null?Ji=[e]:Ji.push(e)}function A6(e){jd=!0,py(e)}function ea(){if(!ah&&Ji!==null){ah=!0;var e=0,t=Xe;try{var n=Ji;for(Xe=1;e>=a,i-=a,eo=1<<32-oi(t)+i|n<N?(P=S,S=null):P=S.sibling;var I=f(p,S,_[N],C);if(I===null){S===null&&(S=P);break}e&&S&&I.alternate===null&&t(p,S),T=o(I,T,N),A===null?k=I:A.sibling=I,A=I,S=P}if(N===_.length)return n(p,S),yt&&ga(p,N),k;if(S===null){for(;N<_.length;N++)S=d(p,_[N],C),S!==null&&(T=o(S,T,N),A===null?k=S:A.sibling=S,A=S);return yt&&ga(p,N),k}for(S=r(p,S);N<_.length;N++)P=m(S,p,N,_[N],C),P!==null&&(e&&P.alternate!==null&&S.delete(P.key===null?N:P.key),T=o(P,T,N),A===null?k=P:A.sibling=P,A=P);return e&&S.forEach(function(L){return t(p,L)}),yt&&ga(p,N),k}function v(p,T,_,C){var k=Sl(_);if(typeof k!="function")throw Error(Z(150));if(_=k.call(_),_==null)throw Error(Z(151));for(var A=k=null,S=T,N=T=0,P=null,I=_.next();S!==null&&!I.done;N++,I=_.next()){S.index>N?(P=S,S=null):P=S.sibling;var L=f(p,S,I.value,C);if(L===null){S===null&&(S=P);break}e&&S&&L.alternate===null&&t(p,S),T=o(L,T,N),A===null?k=L:A.sibling=L,A=L,S=P}if(I.done)return n(p,S),yt&&ga(p,N),k;if(S===null){for(;!I.done;N++,I=_.next())I=d(p,I.value,C),I!==null&&(T=o(I,T,N),A===null?k=I:A.sibling=I,A=I);return yt&&ga(p,N),k}for(S=r(p,S);!I.done;N++,I=_.next())I=m(S,p,N,I.value,C),I!==null&&(e&&I.alternate!==null&&S.delete(I.key===null?N:I.key),T=o(I,T,N),A===null?k=I:A.sibling=I,A=I);return e&&S.forEach(function(B){return t(p,B)}),yt&&ga(p,N),k}function y(p,T,_,C){if(typeof _=="object"&&_!==null&&_.type===vs&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case F1:e:{for(var k=_.key,A=T;A!==null;){if(A.key===k){if(k=_.type,k===vs){if(A.tag===7){n(p,A.sibling),T=i(A,_.props.children),T.return=p,p=T;break e}}else if(A.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Io&&U9(k)===A.type){n(p,A.sibling),T=i(A,_.props),T.ref=Fl(p,A,_),T.return=p,p=T;break e}n(p,A);break}else t(p,A);A=A.sibling}_.type===vs?(T=Da(_.props.children,p.mode,C,_.key),T.return=p,p=T):(C=Dc(_.type,_.key,_.props,null,p.mode,C),C.ref=Fl(p,T,_),C.return=p,p=C)}return a(p);case Es:e:{for(A=_.key;T!==null;){if(T.key===A)if(T.tag===4&&T.stateNode.containerInfo===_.containerInfo&&T.stateNode.implementation===_.implementation){n(p,T.sibling),T=i(T,_.children||[]),T.return=p,p=T;break e}else{n(p,T);break}else t(p,T);T=T.sibling}T=mh(_,p.mode,C),T.return=p,p=T}return a(p);case Io:return A=_._init,y(p,T,A(_._payload),C)}if(Xl(_))return h(p,T,_,C);if(Sl(_))return v(p,T,_,C);H1(p,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,T!==null&&T.tag===6?(n(p,T.sibling),T=i(T,_),T.return=p,p=T):(n(p,T),T=hh(_,p.mode,C),T.return=p,p=T),a(p)):n(p,T)}return y}var Vs=Sy(!0),Ay=Sy(!1),s1={},Di=Jo(s1),Pu=Jo(s1),Lu=Jo(s1);function ka(e){if(e===s1)throw Error(Z(174));return e}function F0(e,t){switch(lt(Lu,t),lt(Pu,e),lt(Di,s1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pm(t,e)}gt(Di),lt(Di,t)}function Ys(){gt(Di),gt(Pu),gt(Lu)}function by(e){ka(Lu.current);var t=ka(Di.current),n=Pm(t,e.type);t!==n&&(lt(Pu,e),lt(Di,n))}function N0(e){Pu.current===e&&(gt(Di),gt(Pu))}var kt=Jo(0);function ud(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sh=[];function x0(){for(var e=0;en?n:4,e(!0);var r=lh.transition;lh.transition={};try{e(!1),t()}finally{Xe=n,lh.transition=r}}function zy(){return Lr().memoizedState}function F6(e,t,n){var r=$o(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gy(e))Wy(t,n);else if(n=Ty(e,t,n,r),n!==null){var i=Ln();ai(n,e,r,i),jy(n,t,r)}}function N6(e,t,n){var r=$o(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gy(e))Wy(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,li(s,a)){var l=t.interleaved;l===null?(i.next=i,k0(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ty(e,t,i,r),n!==null&&(i=Ln(),ai(n,e,r,i),jy(n,t,r))}}function Gy(e){var t=e.alternate;return e===It||t!==null&&t===It}function Wy(e,t){su=cd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,f0(e,n)}}var dd={readContext:Pr,useCallback:mn,useContext:mn,useEffect:mn,useImperativeHandle:mn,useInsertionEffect:mn,useLayoutEffect:mn,useMemo:mn,useReducer:mn,useRef:mn,useState:mn,useDebugValue:mn,useDeferredValue:mn,useTransition:mn,useMutableSource:mn,useSyncExternalStore:mn,useId:mn,unstable_isNewReconciler:!1},x6={readContext:Pr,useCallback:function(e,t){return _i().memoizedState=[e,t===void 0?null:t],e},useContext:Pr,useEffect:G9,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ic(4194308,4,Py.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ic(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ic(4,2,e,t)},useMemo:function(e,t){var n=_i();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_i();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=F6.bind(null,It,e),[r.memoizedState,e]},useRef:function(e){var t=_i();return e={current:e},t.memoizedState=e},useState:z9,useDebugValue:M0,useDeferredValue:function(e){return _i().memoizedState=e},useTransition:function(){var e=z9(!1),t=e[0];return e=I6.bind(null,e[1]),_i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=It,i=_i();if(yt){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),tn===null)throw Error(Z(349));Pa&30||Fy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,G9(xy.bind(null,r,o,e),[e]),r.flags|=2048,Uu(9,Ny.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=_i(),t=tn.identifierPrefix;if(yt){var n=to,r=eo;n=(r&~(1<<32-oi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ai]=t,e[Mu]=r,Jy(e,t,!1,!1),t.stateNode=e;e:{switch(a=Bm(n,r),n){case"dialog":ht("cancel",e),ht("close",e),i=r;break;case"iframe":case"object":case"embed":ht("load",e),i=r;break;case"video":case"audio":for(i=0;iQs&&(t.flags|=128,r=!0,Nl(o,!1),t.lanes=4194304)}else{if(!r)if(e=ud(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!yt)return pn(t),null}else 2*Pt()-o.renderingStartTime>Qs&&n!==1073741824&&(t.flags|=128,r=!0,Nl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Pt(),t.sibling=null,n=kt.current,lt(kt,r?n&1|2:n&1),t):(pn(t),null);case 22:case 23:return z0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lr&1073741824&&(pn(t),t.subtreeFlags&6&&(t.flags|=8192)):pn(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function B6(e,t){switch(y0(t),t.tag){case 1:return er(t.type)&&nd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ys(),gt(Jn),gt(Cn),x0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return N0(t),null;case 13:if(gt(kt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));$s()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return gt(kt),null;case 4:return Ys(),null;case 10:return b0(t.type._context),null;case 22:case 23:return z0(),null;case 24:return null;default:return null}}var z1=!1,vn=!1,H6=typeof WeakSet=="function"?WeakSet:Set,ae=null;function Is(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){wt(e,t,r)}else n.current=null}function dp(e,t,n){try{n()}catch(r){wt(e,t,r)}}var X9=!1;function U6(e,t){if(Ym=Zc,e=oy(),T0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=a),f===o&&++c===r&&(l=a),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(qm={focusedElem:e,selectionRange:n},Zc=!1,ae=t;ae!==null;)if(t=ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ae=e;else for(;ae!==null;){t=ae;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,p=t.stateNode,T=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:Jr(t.type,v),y);p.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(C){wt(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return h=X9,X9=!1,h}function lu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&dp(t,n,o)}i=i.next}while(i!==r)}}function Vd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function fp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function n4(e){var t=e.alternate;t!==null&&(e.alternate=null,n4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ai],delete t[Mu],delete t[Zm],delete t[C6],delete t[S6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function r4(e){return e.tag===5||e.tag===3||e.tag===4}function Z9(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||r4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=td));else if(r!==4&&(e=e.child,e!==null))for(hp(e,t,n),e=e.sibling;e!==null;)hp(e,t,n),e=e.sibling}function mp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(mp(e,t,n),e=e.sibling;e!==null;)mp(e,t,n),e=e.sibling}var an=null,ei=!1;function vo(e,t,n){for(n=n.child;n!==null;)i4(e,t,n),n=n.sibling}function i4(e,t,n){if(xi&&typeof xi.onCommitFiberUnmount=="function")try{xi.onCommitFiberUnmount(Hd,n)}catch{}switch(n.tag){case 5:vn||Is(n,t);case 6:var r=an,i=ei;an=null,vo(e,t,n),an=r,ei=i,an!==null&&(ei?(e=an,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):an.removeChild(n.stateNode));break;case 18:an!==null&&(ei?(e=an,n=n.stateNode,e.nodeType===8?oh(e.parentNode,n):e.nodeType===1&&oh(e,n),xu(e)):oh(an,n.stateNode));break;case 4:r=an,i=ei,an=n.stateNode.containerInfo,ei=!0,vo(e,t,n),an=r,ei=i;break;case 0:case 11:case 14:case 15:if(!vn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&dp(n,t,a),i=i.next}while(i!==r)}vo(e,t,n);break;case 1:if(!vn&&(Is(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){wt(n,t,s)}vo(e,t,n);break;case 21:vo(e,t,n);break;case 22:n.mode&1?(vn=(r=vn)||n.memoizedState!==null,vo(e,t,n),vn=r):vo(e,t,n);break;default:vo(e,t,n)}}function J9(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new H6),t.forEach(function(r){var i=q6.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function $r(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Pt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*G6(r/1960))-r,10e?16:e,Lo===null)var r=!1;else{if(e=Lo,Lo=null,md=0,ze&6)throw Error(Z(331));var i=ze;for(ze|=4,ae=e.current;ae!==null;){var o=ae,a=o.child;if(ae.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lPt()-H0?xa(e,0):B0|=n),tr(e,t)}function f4(e,t){t===0&&(e.mode&1?(t=w1,w1<<=1,!(w1&130023424)&&(w1=4194304)):t=1);var n=Ln();e=so(e,t),e!==null&&(i1(e,t,n),tr(e,n))}function Y6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),f4(e,n)}function q6(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),f4(e,n)}var h4;h4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jn.current)Zn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Zn=!1,P6(e,t,n);Zn=!!(e.flags&131072)}else Zn=!1,yt&&t.flags&1048576&&gy(t,od,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fc(e,t),e=t.pendingProps;var i=Ks(t,Cn.current);Bs(t,n),i=w0(null,t,r,e,i,n);var o=R0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,er(r)?(o=!0,rd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,I0(t),i.updater=Kd,t.stateNode=i,i._reactInternals=t,ip(t,r,e,n),t=sp(null,t,r,!0,o,n)):(t.tag=0,yt&&o&&_0(t),Fn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=X6(r),e=Jr(r,e),i){case 0:t=ap(null,t,r,e,n);break e;case 1:t=Y9(null,t,r,e,n);break e;case 11:t=$9(null,t,r,e,n);break e;case 14:t=V9(null,t,r,Jr(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),ap(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),Y9(e,t,r,i,n);case 3:e:{if(Qy(t),e===null)throw Error(Z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,_y(e,t),ld(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=qs(Error(Z(423)),t),t=q9(e,t,r,n,i);break e}else if(r!==i){i=qs(Error(Z(424)),t),t=q9(e,t,r,n,i);break e}else for(ur=Wo(t.stateNode.containerInfo.firstChild),mr=t,yt=!0,ni=null,n=Ay(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($s(),r===i){t=lo(e,t,n);break e}Fn(e,t,r,n)}t=t.child}return t;case 5:return by(t),e===null&&tp(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Qm(r,i)?a=null:o!==null&&Qm(r,o)&&(t.flags|=32),qy(e,t),Fn(e,t,a,n),t.child;case 6:return e===null&&tp(t),null;case 13:return Xy(e,t,n);case 4:return F0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vs(t,null,r,n):Fn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),$9(e,t,r,i,n);case 7:return Fn(e,t,t.pendingProps,n),t.child;case 8:return Fn(e,t,t.pendingProps.children,n),t.child;case 12:return Fn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,lt(ad,r._currentValue),r._currentValue=a,o!==null)if(li(o.value,a)){if(o.children===i.children&&!Jn.current){t=lo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=io(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),np(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Z(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),np(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Fn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Bs(t,n),i=Pr(i),r=r(i),t.flags|=1,Fn(e,t,r,n),t.child;case 14:return r=t.type,i=Jr(r,t.pendingProps),i=Jr(r.type,i),V9(e,t,r,i,n);case 15:return Vy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),Fc(e,t),t.tag=1,er(r)?(e=!0,rd(t)):e=!1,Bs(t,n),Cy(t,r,i),ip(t,r,i,n),sp(null,t,r,!0,e,n);case 19:return Zy(e,t,n);case 22:return Yy(e,t,n)}throw Error(Z(156,t.tag))};function m4(e,t){return U_(e,t)}function Q6(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dr(e,t,n,r){return new Q6(e,t,n,r)}function W0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X6(e){if(typeof e=="function")return W0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===l0)return 11;if(e===u0)return 14}return 2}function Vo(e,t){var n=e.alternate;return n===null?(n=Dr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")W0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case vs:return Da(n.children,i,o,t);case s0:a=8,i|=8;break;case Fm:return e=Dr(12,n,t,i|2),e.elementType=Fm,e.lanes=o,e;case Nm:return e=Dr(13,n,t,i),e.elementType=Nm,e.lanes=o,e;case xm:return e=Dr(19,n,t,i),e.elementType=xm,e.lanes=o,e;case S_:return qd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case y_:a=10;break e;case C_:a=9;break e;case l0:a=11;break e;case u0:a=14;break e;case Io:a=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=Dr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Da(e,t,n,r){return e=Dr(7,e,r,t),e.lanes=n,e}function qd(e,t,n,r){return e=Dr(22,e,r,t),e.elementType=S_,e.lanes=n,e.stateNode={isHidden:!1},e}function hh(e,t,n){return e=Dr(6,e,null,t),e.lanes=n,e}function mh(e,t,n){return t=Dr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z6(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yf(0),this.expirationTimes=Yf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function j0(e,t,n,r,i,o,a,s,l){return e=new Z6(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Dr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},I0(o),e}function J6(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Er})(eA);var sE=$c;bm.createRoot=sE.createRoot,bm.hydrateRoot=sE.hydrateRoot;/** - * @remix-run/router v1.3.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function o3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function a3(){return Math.random().toString(36).substr(2,8)}function uE(e,t){return{usr:e.state,key:e.key,idx:t}}function Tp(e,t,n,r){return n===void 0&&(n=null),Gu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ka(t):t,{state:n,key:t&&t.key||r||a3()})}function Ed(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ka(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function s3(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Bo.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Gu({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=Bo.Pop;let y=c(),p=y==null?null:y-u;u=y,l&&l({action:s,location:v.location,delta:p})}function f(y,p){s=Bo.Push;let T=Tp(v.location,y,p);n&&n(T,y),u=c()+1;let _=uE(T,u),C=v.createHref(T);try{a.pushState(_,"",C)}catch{i.location.assign(C)}o&&l&&l({action:s,location:v.location,delta:1})}function m(y,p){s=Bo.Replace;let T=Tp(v.location,y,p);n&&n(T,y),u=c();let _=uE(T,u),C=v.createHref(T);a.replaceState(_,"",C),o&&l&&l({action:s,location:v.location,delta:0})}function h(y){let p=i.location.origin!=="null"?i.location.origin:i.location.href,T=typeof y=="string"?y:Ed(y);return jt(p,"No window.location.(origin|href) available to create URL for href: "+T),new URL(T,p)}let v={get action(){return s},get location(){return e(i,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(lE,d),l=y,()=>{i.removeEventListener(lE,d),l=null}},createHref(y){return t(i,y)},createURL:h,encodeLocation(y){let p=h(y);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:m,go(y){return a.go(y)}};return v}var cE;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cE||(cE={}));function l3(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ka(t):t,i=_4(r.pathname||"/",n);if(i==null)return null;let o=v4(e);u3(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(jt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Yo([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(jt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),v4(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:g3(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of T4(o.path))i(o,a,l)}),t}function T4(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=T4(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function u3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:E3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const c3=/^:\w+$/,d3=3,f3=2,h3=1,m3=10,p3=-2,dE=e=>e==="*";function g3(e,t){let n=e.split("/"),r=n.length;return n.some(dE)&&(r+=p3),t&&(r+=f3),n.filter(i=>!dE(i)).reduce((i,o)=>i+(c3.test(o)?d3:o===""?h3:m3),r)}function E3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function v3(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{if(c==="*"){let f=s[d]||"";a=o.slice(0,o.length-f.length).replace(/(.)\/+$/,"$1")}return u[c]=C3(s[d]||"",c),u},{}),pathname:o,pathnameBase:a,pattern:e}}function _3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Y0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function y3(e){try{return decodeURI(e)}catch(t){return Y0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function C3(e,t){try{return decodeURIComponent(e)}catch(n){return Y0(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function _4(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Y0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function S3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ka(e):e;return{pathname:n?n.startsWith("/")?n:A3(n,t):t,search:k3(r),hash:I3(i)}}function A3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ph(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function y4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function C4(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ka(e):(i=Gu({},e),jt(!i.pathname||!i.pathname.includes("?"),ph("?","pathname","search",i)),jt(!i.pathname||!i.pathname.includes("#"),ph("#","pathname","hash",i)),jt(!i.search||!i.search.includes("#"),ph("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=S3(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Yo=e=>e.join("/").replace(/\/\/+/g,"/"),b3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),k3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,I3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function F3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const N3=["post","put","patch","delete"];[...N3];/** - * React Router v6.8.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function _p(){return _p=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,gh(i)&&o({inst:i})},[e,r,t]),R3(()=>(gh(i)&&o({inst:i}),e(()=>{gh(i)&&o({inst:i})})),[e]),M3(r),r}function gh(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!D3(n,r)}catch{return!0}}function L3(e,t,n){return t()}const B3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",H3=!B3,U3=H3?L3:P3;"useSyncExternalStore"in Kc&&(e=>e.useSyncExternalStore)(Kc);const S4=E.createContext(null),A4=E.createContext(null),ef=E.createContext(null),tf=E.createContext(null),$a=E.createContext({outlet:null,matches:[]}),b4=E.createContext(null);function z3(e,t){let{relative:n}=t===void 0?{}:t;l1()||jt(!1);let{basename:r,navigator:i}=E.useContext(ef),{hash:o,pathname:a,search:s}=k4(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Yo([r,a])),i.createHref({pathname:l,search:s,hash:o})}function l1(){return E.useContext(tf)!=null}function nf(){return l1()||jt(!1),E.useContext(tf).location}function G3(){l1()||jt(!1);let{basename:e,navigator:t}=E.useContext(ef),{matches:n}=E.useContext($a),{pathname:r}=nf(),i=JSON.stringify(y4(n).map(s=>s.pathnameBase)),o=E.useRef(!1);return E.useEffect(()=>{o.current=!0}),E.useCallback(function(s,l){if(l===void 0&&(l={}),!o.current)return;if(typeof s=="number"){t.go(s);return}let u=C4(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Yo([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}const W3=E.createContext(null);function j3(e){let t=E.useContext($a).outlet;return t&&E.createElement(W3.Provider,{value:e},t)}function k4(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=E.useContext($a),{pathname:i}=nf(),o=JSON.stringify(y4(r).map(a=>a.pathnameBase));return E.useMemo(()=>C4(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function K3(e,t){l1()||jt(!1);let{navigator:n}=E.useContext(ef),r=E.useContext(A4),{matches:i}=E.useContext($a),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=nf(),u;if(t){var c;let v=typeof t=="string"?Ka(t):t;s==="/"||(c=v.pathname)!=null&&c.startsWith(s)||jt(!1),u=v}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",m=l3(e,{pathname:f}),h=q3(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:Yo([s,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:Yo([s,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r||void 0);return t&&h?E.createElement(tf.Provider,{value:{location:_p({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Bo.Pop}},h):h}function $3(){let e=J3(),t=F3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,o)}class V3 extends E.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?E.createElement($a.Provider,{value:this.props.routeContext},E.createElement(b4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Y3(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(S4);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement($a.Provider,{value:t},r)}function q3(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||jt(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,a,s)=>{let l=a.route.id?i==null?void 0:i[a.route.id]:null,u=n?a.route.errorElement||E.createElement($3,null):null,c=t.concat(r.slice(0,s+1)),d=()=>E.createElement(Y3,{match:a,routeContext:{outlet:o,matches:c}},l?u:a.route.element!==void 0?a.route.element:o);return n&&(a.route.errorElement||s===0)?E.createElement(V3,{location:n.location,component:u,error:l,children:d(),routeContext:{outlet:null,matches:c}}):d()},null)}var fE;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(fE||(fE={}));var vd;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(vd||(vd={}));function Q3(e){let t=E.useContext(A4);return t||jt(!1),t}function X3(e){let t=E.useContext($a);return t||jt(!1),t}function Z3(e){let t=X3(),n=t.matches[t.matches.length-1];return n.route.id||jt(!1),n.route.id}function J3(){var e;let t=E.useContext(b4),n=Q3(vd.UseRouteError),r=Z3(vd.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function e7(e){return j3(e.context)}function wc(e){jt(!1)}function t7(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Bo.Pop,navigator:o,static:a=!1}=e;l1()&&jt(!1);let s=t.replace(/^\/*/,"/"),l=E.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=Ka(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:m="default"}=r,h=E.useMemo(()=>{let v=_4(u,s);return v==null?null:{pathname:v,search:c,hash:d,state:f,key:m}},[s,u,c,d,f,m]);return h==null?null:E.createElement(ef.Provider,{value:l},E.createElement(tf.Provider,{children:n,value:{location:h,navigationType:i}}))}function n7(e){let{children:t,location:n}=e,r=E.useContext(S4),i=r&&!t?r.router.routes:yp(t);return K3(i,n)}var hE;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(hE||(hE={}));new Promise(()=>{});function yp(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;if(r.type===E.Fragment){n.push.apply(n,yp(r.props.children,t));return}r.type!==wc&&jt(!1),!r.props.index||!r.props.children||jt(!1);let o=[...t,i],a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=yp(r.props.children,o)),n.push(a)}),n}/** - * React Router DOM v6.8.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function i7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function o7(e,t){return e.button===0&&(!t||t==="_self")&&!i7(e)}const a7=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function s7(e){let{basename:t,children:n,window:r}=e,i=E.useRef();i.current==null&&(i.current=i3({window:r,v5Compat:!0}));let o=i.current,[a,s]=E.useState({action:o.action,location:o.location});return E.useLayoutEffect(()=>o.listen(s),[o]),E.createElement(t7,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const l7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",u7=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,d=r7(t,a7),f,m=!1;if(l7&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){f=u;let p=new URL(window.location.href),T=u.startsWith("//")?new URL(p.protocol+u):new URL(u);T.origin===p.origin?u=T.pathname+T.search+T.hash:m=!0}let h=z3(u,{relative:i}),v=c7(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});function y(p){r&&r(p),p.defaultPrevented||v(p)}return E.createElement("a",Cp({},d,{href:f||h,onClick:m||o?r:y,ref:n,target:l}))});var mE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(mE||(mE={}));var pE;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(pE||(pE={}));function c7(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=G3(),l=nf(),u=k4(e,{relative:a});return E.useCallback(c=>{if(o7(c,n)){c.preventDefault();let d=r!==void 0?r:Ed(l)===Ed(u);s(e,{replace:d,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}var gE={},Rc=void 0;try{Rc=window}catch{}function q0(e,t){if(typeof Rc<"u"){var n=Rc.__packages__=Rc.__packages__||{};if(!n[e]||!gE[e]){gE[e]=t;var r=n[e]=n[e]||[];r.push(t)}}}q0("@fluentui/set-version","6.0.0");var Sp=function(e,t){return Sp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Sp(e,t)};function it(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var x=function(){return x=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function ui(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r"u"?Dl.none:Dl.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(r=n==null?void 0:n.classNameToArgs)!==null&&r!==void 0?r:this._classNameToArgs,this._counter=(i=n==null?void 0:n.counter)!==null&&i!==void 0?i:this._counter,this._keyToClassName=(a=(o=this._config.classNameCache)!==null&&o!==void 0?o:n==null?void 0:n.keyToClassName)!==null&&a!==void 0?a:this._keyToClassName,this._preservedRules=(s=n==null?void 0:n.preservedRules)!==null&&s!==void 0?s:this._preservedRules,this._rules=(l=n==null?void 0:n.rules)!==null&&l!==void 0?l:this._rules}return e.getInstance=function(){if(ns=fs[EE],!ns||ns._lastStyleElement&&ns._lastStyleElement.ownerDocument!==document){var t=(fs==null?void 0:fs.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);ns=n,fs[EE]=n}return ns},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=x(x({},this._config),t)},e.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter(function(r){return r!==t})}},e.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter(function(r){return r!==t})}},e.prototype.getClassName=function(t){var n=this._config.namespace,r=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(r,"-").concat(this._counter++)},e.prototype.cacheClassName=function(t,n,r,i){this._keyToClassName[n]=t,this._classNameToArgs[t]={args:r,rules:i}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},e.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},e.prototype.insertRule=function(t,n){var r=this._config.injectionMode,i=r!==Dl.none?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),i)switch(r){case Dl.insertNode:var o=i.sheet;try{o.insertRule(t,o.cssRules.length)}catch{}break;case Dl.appendChild:i.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(a){return a()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),d7||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,n=document.createElement("style"),r=null;n.setAttribute("data-merge-styles","true");var i=this._config.cspSettings;if(i&&i.nonce&&n.setAttribute("nonce",i.nonce),this._lastStyleElement)r=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();o?r=o.nextElementSibling:r=t.childNodes[0]}return t.insertBefore(n,t.contains(r)?r:null),this._lastStyleElement=n,n},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function I4(){for(var e=[],t=0;t=0)o(u.split(" "));else{var c=i.argsFromClassName(u);c?o(c):n.indexOf(u)===-1&&n.push(u)}else Array.isArray(u)?o(u):typeof u=="object"&&r.push(u)}}return o(e),{classes:n,objects:r}}function F4(e){Us!==e&&(Us=e)}function N4(){return Us===void 0&&(Us=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Us}var Us;Us=N4();function rf(){return{rtl:N4()}}var vE={};function f7(e,t){var n=e[t];n.charAt(0)!=="-"&&(e[t]=vE[n]=vE[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var j1;function h7(){var e;if(!j1){var t=typeof document<"u"?document:void 0,n=typeof navigator<"u"?navigator:void 0,r=(e=n==null?void 0:n.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?j1={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!!(n&&(/rv:11.0/i.test(n.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:j1={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return j1}var TE={"user-select":1};function m7(e,t){var n=h7(),r=e[t];if(TE[r]){var i=e[t+1];TE[r]&&(n.isWebkit&&e.push("-webkit-"+r,i),n.isMoz&&e.push("-moz-"+r,i),n.isMs&&e.push("-ms-"+r,i),n.isOpera&&e.push("-o-"+r,i))}}var p7=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function g7(e,t){var n=e[t],r=e[t+1];if(typeof r=="number"){var i=p7.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]="".concat(r).concat(a)}}var K1,No="left",xo="right",E7="@noflip",_E=(K1={},K1[No]=xo,K1[xo]=No,K1),yE={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function v7(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if(typeof i=="string"&&i.indexOf(E7)>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(No)>=0)t[n]=r.replace(No,xo);else if(r.indexOf(xo)>=0)t[n]=r.replace(xo,No);else if(String(i).indexOf(No)>=0)t[n+1]=i.replace(No,xo);else if(String(i).indexOf(xo)>=0)t[n+1]=i.replace(xo,No);else if(_E[r])t[n]=_E[r];else if(yE[i])t[n+1]=yE[i];else switch(r){case"margin":case"padding":t[n+1]=_7(i);break;case"box-shadow":t[n+1]=T7(i,0);break}}}function T7(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(r*-1)),n.join(" ")}function _7(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}function y7(e){for(var t=[],n=0,r=0,i=0;in&&t.push(e.substring(n,i)),n=i+1);break}return n-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map(function(i){return":global(".concat(i.trim(),")")}).join(", ")]);return t.reverse().reduce(function(i,o){var a=o[0],s=o[1],l=o[2],u=i.slice(0,a),c=i.slice(s);return u+l+c},e)}function CE(e,t){return e.indexOf(":global(")>=0?e.replace(x4,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function SE(e,t,n,r){t===void 0&&(t={__order:[]}),n.indexOf("@")===0?(n=n+"{"+e,zs([r],t,n)):n.indexOf(",")>-1?A7(n).split(",").map(function(i){return i.trim()}).forEach(function(i){return zs([r],t,CE(i,e))}):zs([r],t,CE(n,e))}function zs(e,t,n){t===void 0&&(t={__order:[]}),n===void 0&&(n="&");var r=Br.getInstance(),i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var o=0,a=e;o0){n.subComponentStyles={};var f=n.subComponentStyles,m=function(h){if(r.hasOwnProperty(h)){var v=r[h];f[h]=function(y){return Li.apply(void 0,v.map(function(p){return typeof p=="function"?p(y):p}))}}};for(var u in r)m(u)}return n}function u1(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:Ap}}var ul=function(){function e(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return e.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(t,n){var r=this,i=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),i=setTimeout(function(){try{r._timeoutIds&&delete r._timeoutIds[i],t.apply(r._parent)}catch(o){r._logError(o)}},n),this._timeoutIds[i]=!0),i},e.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},e.prototype.setImmediate=function(t,n){var r=this,i=0,o=Et(n);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var a=function(){try{r._immediateIds&&delete r._immediateIds[i],t.apply(r._parent)}catch(s){r._logError(s)}};i=o.setTimeout(a,0),this._immediateIds[i]=!0}return i},e.prototype.clearImmediate=function(t,n){var r=Et(n);this._immediateIds&&this._immediateIds[t]&&(r.clearTimeout(t),delete this._immediateIds[t])},e.prototype.setInterval=function(t,n){var r=this,i=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),i=setInterval(function(){try{t.apply(r._parent)}catch(o){r._logError(o)}},n),this._intervalIds[i]=!0),i},e.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},e.prototype.throttle=function(t,n,r){var i=this;if(this._isDisposed)return this._noop;var o=n||0,a=!0,s=!0,l=0,u,c,d=null;r&&typeof r.leading=="boolean"&&(a=r.leading),r&&typeof r.trailing=="boolean"&&(s=r.trailing);var f=function(h){var v=Date.now(),y=v-l,p=a?o-y:o;return y>=o&&(!h||a)?(l=v,d&&(i.clearTimeout(d),d=null),u=t.apply(i._parent,c)):d===null&&s&&(d=i.setTimeout(f,p)),u},m=function(){for(var h=[],v=0;v=a&&(N=!0),c=S);var P=S-c,I=a-P,L=S-d,B=!1;return u!==null&&(L>=u&&h?B=!0:I=Math.min(I,u-L)),P>=a||B||N?y(S):(h===null||!A)&&l&&(h=i.setTimeout(p,I)),f},T=function(){return!!h},_=function(){T()&&v(Date.now())},C=function(){return T()&&y(Date.now()),f},k=function(){for(var A=[],S=0;S-1)for(var a=n.split(/[ ,]+/),s=0;s"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var Eh,du=0,B4=bi({overflow:"hidden !important"}),AE="data-is-scrollable",x7=function(e,t){if(e){var n=0,r=null,i=function(a){a.targetTouches.length===1&&(n=a.targetTouches[0].clientY)},o=function(a){if(a.targetTouches.length===1&&(a.stopPropagation(),!!r)){var s=a.targetTouches[0].clientY-n,l=Z0(a.target);l&&(r=l),r.scrollTop===0&&s>0&&a.preventDefault(),r.scrollHeight-Math.ceil(r.scrollTop)<=r.clientHeight&&s<0&&a.preventDefault()}};t.on(e,"touchstart",i,{passive:!1}),t.on(e,"touchmove",o,{passive:!1}),r=e}},D7=function(e,t){if(e){var n=function(r){r.stopPropagation()};t.on(e,"touchmove",n,{passive:!1})}},H4=function(e){e.preventDefault()};function w7(){var e=Bn();e&&e.body&&!du&&(e.body.classList.add(B4),e.body.addEventListener("touchmove",H4,{passive:!1,capture:!1})),du++}function R7(){if(du>0){var e=Bn();e&&e.body&&du===1&&(e.body.classList.remove(B4),e.body.removeEventListener("touchmove",H4)),du--}}function O7(){if(Eh===void 0){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Eh=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Eh}function Z0(e){for(var t=e,n=Bn(e);t&&t!==n.body;){if(t.getAttribute(AE)==="true")return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if(t.getAttribute(AE)!=="false"){var r=getComputedStyle(t),i=r?r.getPropertyValue("overflow-y"):"";if(i&&(i==="scroll"||i==="auto"))return t}t=t.parentElement}return(!t||t===n.body)&&(t=Et(e)),t}var M7=void 0;function J0(e){console&&console.warn&&console.warn(e)}function U4(e,t,n,r,i){if(i===!0&&!1)for(var o,a;o1?r[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new ul(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new Fr(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(n){var r=this;return this.__resolves||(this.__resolves={}),this.__resolves[n]||(this.__resolves[n]=function(i){return r[n]=i}),this.__resolves[n]},t.prototype._updateComponentRef=function(n,r){r===void 0&&(r={}),n&&r&&n.componentRef!==r.componentRef&&(this._setComponentRef(n.componentRef,null),this._setComponentRef(r.componentRef,this))},t.prototype._warnDeprecations=function(n){this.className,this.props},t.prototype._warnMutuallyExclusive=function(n){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(n,r,i){U4(this.className,this.props,n,r,i)},t.prototype._setComponentRef=function(n,r){!this._skipComponentRefResolution&&n&&(typeof n=="function"&&n(r),typeof n=="object"&&(n.current=r))},t})(E.Component);function P7(e,t,n){for(var r=0,i=n.length;r-1&&i._virtual.children.splice(o,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}var Q7="data-is-focusable",X7="data-is-visible",Z7="data-focuszone-id",J7="data-is-sub-focuszone";function eb(e,t,n){return Nn(e,t,!0,!1,!1,n)}function tb(e,t,n){return qn(e,t,!0,!1,!0,n)}function nb(e,t,n,r){return r===void 0&&(r=!0),Nn(e,t,r,!1,!1,n,!1,!0)}function rb(e,t,n,r){return r===void 0&&(r=!0),qn(e,t,r,!1,!0,n,!1,!0)}function ib(e,t){var n=Nn(e,e,!0,!1,!1,!0,void 0,void 0,t);return n?(Y4(n),!0):!1}function qn(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=af(t);if(i&&l&&(o||!(Zi(t)||ng(t)))){var u=qn(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&Si(u,!0)||!s)return u;var c=qn(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var f=qn(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(f)return f;d=d.parentElement}}}if(n&&l&&Si(t,s))return t;var m=qn(e,t.previousElementSibling,!0,!0,!0,o,a,s);return m||(r?null:qn(e,t.parentElement,!0,!1,!1,o,a,s))}function Nn(e,t,n,r,i,o,a,s,l){if(!t||t===e&&i&&!a)return null;var u=l?$4:af,c=u(t);if(n&&c&&Si(t,s))return t;if(!i&&c&&(o||!(Zi(t)||ng(t)))){var d=Nn(e,t.firstElementChild,!0,!0,!1,o,a,s,l);if(d)return d}if(t===e)return null;var f=Nn(e,t.nextElementSibling,!0,!0,!1,o,a,s,l);return f||(r?null:Nn(e,t.parentElement,!1,!1,!0,o,a,s,l))}function af(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(X7);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function $4(e){return!!e&&af(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function Si(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"),r&&(n=parseInt(r,10)));var i=e.getAttribute?e.getAttribute(Q7):null,o=r!==null&&n>=0,a=!!e&&i!=="false"&&(e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"||i==="true"||o);return t?n!==-1&&a:a}function Zi(e){return!!(e&&e.getAttribute&&e.getAttribute(Z7))}function ng(e){return!!(e&&e.getAttribute&&e.getAttribute(J7)==="true")}function ob(e){var t=Bn(e),n=t&&t.activeElement;return!!(n&&Xn(e,n))}function V4(e,t){return V7(e,t)!=="true"}var rs=void 0;function Y4(e){if(e){if(rs){rs=e;return}rs=e;var t=Et(e);t&&t.requestAnimationFrame(function(){rs&&rs.focus(),rs=void 0})}}function ab(e,t){for(var n=e,r=0,i=t;r(e.cacheSize||lb)){var m=Et();!((l=m==null?void 0:m.FabricConfig)===null||l===void 0)&&l.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),t.clear(),n=0,e.disableCaching=!0}return u[$1]};return o}function _h(e,t){return t=cb(t),e.has(t)||e.set(t,new Map),e.get(t)}function kE(e,t){if(typeof t=="function"){var n=t.__cachedInputs__;if(n)for(var r=0,i=t.__cachedInputs__;r"u"?null:WeakMap;function fb(){Mc++}function Nt(e,t,n){if(t===void 0&&(t=100),n===void 0&&(n=!1),!Wu)return e;if(!IE){var r=Br.getInstance();r&&r.onReset&&Br.getInstance().onReset(fb),IE=!0}var i,o=0,a=Mc;return function(){for(var l=[],u=0;u0&&o>t)&&(i=FE(),o=0,a=Mc),c=i;for(var d=0;d=0||l.indexOf("data-")===0||l.indexOf("aria-")===0;u&&(!n||(n==null?void 0:n.indexOf(l))===-1)&&(i[l]=e[l])}return i}var Lb=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function Bb(e,t,n){n===void 0&&(n=Lb);var r=[],i=function(a){typeof t[a]=="function"&&e[a]===void 0&&(!n||n.indexOf(a)===-1)&&(r.push(a),e[a]=function(){for(var s=[],l=0;l=0&&r.splice(l,1)}}},[t,r,i,o]);return E.useEffect(function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}},[a]),a?E.createElement(Cd.Provider,{value:a},e.children):E.createElement(E.Fragment,null,e.children)};function Kb(e){var t=null;try{var n=Et();t=n?n.localStorage.getItem(e):null}catch{}return t}var ua,ME="language";function $b(e){if(e===void 0&&(e="sessionStorage"),ua===void 0){var t=Bn(),n=e==="localStorage"?Kb(ME):e==="sessionStorage"?W4(ME):void 0;n&&(ua=n),ua===void 0&&t&&(ua=t.documentElement.getAttribute("lang")),ua===void 0&&(ua="en")}return ua}function PE(e){for(var t=[],n=1;n-1;e[r]=o?i:a2(e[r]||{},i,n)}else e[r]=i}return n.pop(),e}var LE=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},Vb=["TEMPLATE","STYLE","SCRIPT"];function s2(e){var t=Bn(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,i=e.parentElement.children;r"u"||e){var n=Et(),r=(t=n==null?void 0:n.navigator)===null||t===void 0?void 0:t.userAgent;Ch=!!r&&r.indexOf("Macintosh")!==-1}return!!Ch}function qb(e){var t=Zs(function(n){var r=Zs(function(i){return function(o){return n(o,i)}});return function(i,o){return e(i,o?r(o):n)}});return t}var Qb=Zs(qb);function Ip(e,t){return Qb(e)(t)}var Xb=["theme","styles"];function rn(e,t,n,r,i){r=r||{scope:"",fields:void 0};var o=r.scope,a=r.fields,s=a===void 0?Xb:a,l=E.forwardRef(function(c,d){var f=E.useRef(),m=kb(s,o),h=m.styles;m.dir;var v=Pi(m,["styles","dir"]),y=n?n(c):void 0,p=f.current&&f.current.__cachedInputs__||[],T=c.styles;if(!f.current||h!==p[1]||T!==p[2]){var _=function(C){return P4(C,t,h,T)};_.__cachedInputs__=[t,h,T],_.__noStyleOverride__=!h&&!T,f.current=_}return E.createElement(e,x({ref:d},v,y,c,{styles:f.current}))});l.displayName="Styled".concat(e.displayName||e.name);var u=i?E.memo(l):l;return l.displayName&&(u.displayName=l.displayName),u}var Zb=function(){var e,t=Et();return!((e=t==null?void 0:t.navigator)===null||e===void 0)&&e.userAgent?t.navigator.userAgent.indexOf("rv:11.0")>-1:!1};function d1(e,t){for(var n=x({},t),r=0,i=Object.keys(e);rr?" (+ "+(wl.length-r)+" more)":"")),Ah=void 0,wl=[]},n)))}function rk(e,t,n,r,i){i===void 0&&(i=!1);var o=x({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),a=u2(e,t,o,r);return ik(a,i)}function u2(e,t,n,r,i){var o={},a=e||{},s=a.white,l=a.black,u=a.themePrimary,c=a.themeDark,d=a.themeDarker,f=a.themeDarkAlt,m=a.themeLighter,h=a.neutralLight,v=a.neutralLighter,y=a.neutralDark,p=a.neutralQuaternary,T=a.neutralQuaternaryAlt,_=a.neutralPrimary,C=a.neutralSecondary,k=a.neutralSecondaryAlt,A=a.neutralTertiary,S=a.neutralTertiaryAlt,N=a.neutralLighterAlt,P=a.accent;return s&&(o.bodyBackground=s,o.bodyFrameBackground=s,o.accentButtonText=s,o.buttonBackground=s,o.primaryButtonText=s,o.primaryButtonTextHovered=s,o.primaryButtonTextPressed=s,o.inputBackground=s,o.inputForegroundChecked=s,o.listBackground=s,o.menuBackground=s,o.cardStandoutBackground=s),l&&(o.bodyTextChecked=l,o.buttonTextCheckedHovered=l),u&&(o.link=u,o.primaryButtonBackground=u,o.inputBackgroundChecked=u,o.inputIcon=u,o.inputFocusBorderAlt=u,o.menuIcon=u,o.menuHeader=u,o.accentButtonBackground=u),c&&(o.primaryButtonBackgroundPressed=c,o.inputBackgroundCheckedHovered=c,o.inputIconHovered=c),d&&(o.linkHovered=d),f&&(o.primaryButtonBackgroundHovered=f),m&&(o.inputPlaceholderBackgroundChecked=m),h&&(o.bodyBackgroundChecked=h,o.bodyFrameDivider=h,o.bodyDivider=h,o.variantBorder=h,o.buttonBackgroundCheckedHovered=h,o.buttonBackgroundPressed=h,o.listItemBackgroundChecked=h,o.listHeaderBackgroundPressed=h,o.menuItemBackgroundPressed=h,o.menuItemBackgroundChecked=h),v&&(o.bodyBackgroundHovered=v,o.buttonBackgroundHovered=v,o.buttonBackgroundDisabled=v,o.buttonBorderDisabled=v,o.primaryButtonBackgroundDisabled=v,o.disabledBackground=v,o.listItemBackgroundHovered=v,o.listHeaderBackgroundHovered=v,o.menuItemBackgroundHovered=v),p&&(o.primaryButtonTextDisabled=p,o.disabledSubtext=p),T&&(o.listItemBackgroundCheckedHovered=T),A&&(o.disabledBodyText=A,o.variantBorderHovered=(n==null?void 0:n.variantBorderHovered)||A,o.buttonTextDisabled=A,o.inputIconDisabled=A,o.disabledText=A),_&&(o.bodyText=_,o.actionLink=_,o.buttonText=_,o.inputBorderHovered=_,o.inputText=_,o.listText=_,o.menuItemText=_),N&&(o.bodyStandoutBackground=N,o.defaultStateBackground=N),y&&(o.actionLinkHovered=y,o.buttonTextHovered=y,o.buttonTextChecked=y,o.buttonTextPressed=y,o.inputTextHovered=y,o.menuItemTextHovered=y),C&&(o.bodySubtext=C,o.focusBorder=C,o.inputBorder=C,o.smallInputBorder=C,o.inputPlaceholderText=C),k&&(o.buttonBorder=k),S&&(o.disabledBodySubtext=S,o.disabledBorder=S,o.buttonBackgroundChecked=S,o.menuDivider=S),P&&(o.accentButtonBackground=P),t!=null&&t.elevation4&&(o.cardShadow=t.elevation4),!r&&(t!=null&&t.elevation8)?o.cardShadowHovered=t.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),o=x(x({},o),n),o}function ik(e,t){var n="";return t===!0&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}function ok(e,t){var n,r,i;t===void 0&&(t={});var o=PE({},e,t,{semanticColors:u2(t.palette,t.effects,t.semanticColors,t.isInverted===void 0?e.isInverted:t.isInverted)});if(!((n=t.palette)===null||n===void 0)&&n.themePrimary&&!(!((r=t.palette)===null||r===void 0)&&r.accent)&&(o.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(o.fonts);a"u"?global:window,WE=fu&&fu.CSPSettings&&fu.CSPSettings.nonce,dr=Xk();function Xk(){var e=fu.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=xs(xs({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=xs(xs({},e),{registeredThemableStyles:[]})),fu.__themeState__=e,e}function Zk(e,t){dr.loadStyles?dr.loadStyles(h2(e).styleString,e):nI(e)}function Jk(e){dr.theme=e,tI()}function eI(e){e===void 0&&(e=3),(e===3||e===2)&&(jE(dr.registeredStyles),dr.registeredStyles=[]),(e===3||e===1)&&(jE(dr.registeredThemableStyles),dr.registeredThemableStyles=[])}function jE(e){e.forEach(function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)})}function tI(){if(dr.theme){for(var e=[],t=0,n=dr.registeredThemableStyles;t0&&(eI(1),Zk([].concat.apply([],e)))}}function h2(e){var t=dr.theme,n=!1,r=(e||[]).map(function(i){var o=i.theme;if(o){n=!0;var a=t?t[o]:void 0,s=i.defaultValue||"inherit";return t&&!a&&console&&!(o in t)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(o,'". Falling back to "').concat(s,'".')),a||s}else return i.rawString});return{styleString:r.join(""),themable:n}}function nI(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=h2(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),WE&&n.setAttribute("nonce",WE),n.appendChild(document.createTextNode(i)),dr.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};o?dr.registeredThemableStyles.push(s):dr.registeredStyles.push(s)}}var Ar=f1({}),rI=[],xp="theme";function m2(){var e,t,n,r=Et();!((t=r==null?void 0:r.FabricConfig)===null||t===void 0)&&t.legacyTheme?oI(r.FabricConfig.legacyTheme):Rr.getSettings([xp]).theme||(!((n=r==null?void 0:r.FabricConfig)===null||n===void 0)&&n.theme&&(Ar=f1(r.FabricConfig.theme)),Rr.applySettings((e={},e[xp]=Ar,e)))}m2();function iI(e){return e===void 0&&(e=!1),e===!0&&(Ar=f1({},e)),Ar}function oI(e,t){var n;return t===void 0&&(t=!1),Ar=f1(e,t),Jk(x(x(x(x({},Ar.palette),Ar.semanticColors),Ar.effects),aI(Ar))),Rr.applySettings((n={},n[xp]=Ar,n)),rI.forEach(function(r){try{r(Ar)}catch{}}),Ar}function aI(e){for(var t={},n=0,r=Object.keys(e.fonts);nt.bottom||e.leftt.right)}function Ad(e,t){var n=[];return e.topt.bottom&&n.push(de.bottom),e.leftt.right&&n.push(de.right),n}function Sn(e,t){return e[de[t]]}function YE(e,t,n){return e[de[t]]=n,e}function Ku(e,t){var n=cl(t);return(Sn(e,n.positiveEdge)+Sn(e,n.negativeEdge))/2}function cf(e,t){return e>0?t:t*-1}function Dp(e,t){return cf(e,Sn(t,e))}function no(e,t,n){var r=Sn(e,n)-Sn(t,n);return cf(n,r)}function tl(e,t,n,r){r===void 0&&(r=!0);var i=Sn(e,t)-n,o=YE(e,t,n);return r&&(o=YE(e,t*-1,Sn(e,t*-1)-i)),o}function $u(e,t,n,r){return r===void 0&&(r=0),tl(e,n,Sn(t,n)+cf(n,r))}function sI(e,t,n,r){r===void 0&&(r=0);var i=n*-1,o=cf(i,r);return tl(e,n*-1,Sn(t,n)+o)}function bd(e,t,n){var r=Dp(n,e);return r>Dp(n,t)}function lI(e,t){for(var n=Ad(e,t),r=0,i=0,o=n;i0&&(o.indexOf(s*-1)>-1?s=s*-1:(l=s,s=o.slice(-1)[0]),a=kd(e,t,{targetEdge:s,alignmentEdge:l},i))}return a=kd(e,t,{targetEdge:c,alignmentEdge:d},i),{elementRectangle:a,targetEdge:c,alignmentEdge:d}}function cI(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=e.elementRectangle,s=i*-1,l=kd(a,t,{targetEdge:o,alignmentEdge:s},n,r);return{elementRectangle:l,targetEdge:o,alignmentEdge:s}}function dI(e,t,n,r,i,o,a){i===void 0&&(i=0);var s=r.alignmentEdge,l=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};!o&&!a&&(u=uI(e,t,n,r,i));var c=Ad(u.elementRectangle,n),d=o?-u.targetEdge:void 0;if(c.length>0)if(l)if(u.alignmentEdge&&c.indexOf(u.alignmentEdge*-1)>-1){var f=cI(u,t,i,a);if(ig(f.elementRectangle,n))return f;u=Nh(Ad(f.elementRectangle,n),u,n,d)}else u=Nh(c,u,n,d);else u=Nh(c,u,n,d);return u}function Nh(e,t,n,r){for(var i=0,o=e;iMath.abs(no(e,n,t*-1))?t*-1:t}function fI(e,t,n){return n!==void 0&&Sn(e,t)===Sn(n,t)}function hI(e,t,n,r,i,o,a,s){var l={},u=og(t),c=o?n:n*-1,d=i||cl(n).positiveEdge;return(!a||fI(e,II(d),r))&&(d=g2(e,d,r)),l[de[c]]=no(e,u,c),l[de[d]]=no(e,u,d),s&&(l[de[c*-1]]=no(e,u,c*-1),l[de[d*-1]]=no(e,u,d*-1)),l}function mI(e){return Math.sqrt(e*e*2)}function pI(e,t,n){if(e===void 0&&(e=Mt.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=x({},VE[e]);return Rn()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=r.alignmentEdge*-1),t!==void 0?VE[t]:r):r}function gI(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=E2(e.targetEdge,t,n)),e.alignTargetEdge=i,e}function E2(e,t,n){var r=Ku(t,e),i=Ku(n,e),o=cl(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function EI(e,t,n,r,i,o,a){var s=kd(e,t,r,i,a);return ig(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:dI(s,t,n,r,i,o,a)}function vI(e,t,n){var r=e.targetEdge*-1,i=new wi(0,e.elementRectangle.width,0,e.elementRectangle.height),o={},a=g2(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:cl(r).positiveEdge,n),s=no(e.elementRectangle,e.targetRectangle,r),l=s>Math.abs(Sn(t,r));return o[de[r]]=Sn(t,r),o[de[a]]=no(t,i,a),{elementPosition:x({},o),closestEdge:E2(e.targetEdge,t,i),targetEdge:r,hideBeak:!l}}function TI(e,t){var n=t.targetRectangle,r=cl(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=Ku(n,t.targetEdge),s=new wi(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new wi(0,e,0,e);return l=tl(l,t.targetEdge*-1,-e/2),l=p2(l,t.targetEdge*-1,a-Dp(i,t.elementRectangle)),bd(l,s,i)?bd(l,s,o)||(l=$u(l,s,o)):l=$u(l,s,i),l}function og(e){var t=e.getBoundingClientRect();return new wi(t.left,t.right,t.top,t.bottom)}function _I(e){return new wi(e.left,e.right,e.top,e.bottom)}function yI(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new wi(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=og(t);else{var i=t,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new wi(o,s,a,l)}if(!ig(n,e))for(var u=Ad(n,e),c=0,d=u;c=r&&i&&u.top<=i&&u.bottom>=i&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}function NI(e,t){return FI(e,t)}function dl(){var e=E.useRef();return e.current||(e.current=new ul),E.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function Or(e){var t=E.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function h1(e){var t=E.useState(e),n=t[0],r=t[1],i=Or(function(){return function(){r(!0)}}),o=Or(function(){return function(){r(!1)}}),a=Or(function(){return function(){r(function(s){return!s})}});return[n,{setTrue:i,setFalse:o,toggle:a}]}function qE(e,t,n){var r=E.useState(t),i=r[0],o=r[1],a=Or(e!==void 0),s=a?e:i,l=E.useRef(s),u=E.useRef(n);E.useEffect(function(){l.current=s,u.current=n});var c=Or(function(){return function(d,f){var m=typeof d=="function"?d(l.current):d;u.current&&u.current(f,m),a||o(m)}});return[s,c]}function xh(e){var t=E.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return Js(function(){t.current=e},[e]),Or(function(){return function(){for(var n=[],r=0;r0&&u>l&&(s=u-l>1)}i!==s&&o(s)}}),function(){return n.dispose()}}),i}function RI(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==Et()&&setTimeout(function(){var r;(r=t.focus)===null||r===void 0||r.call(t)},0)}function OI(e,t){var n=e.onRestoreFocus,r=n===void 0?RI:n,i=E.useRef(),o=E.useRef(!1);E.useEffect(function(){return i.current=Bn().activeElement,ob(t.current)&&(o.current=!0),function(){var a;r==null||r({originalElement:i.current,containsFocus:o.current,documentContainsFocus:((a=Bn())===null||a===void 0?void 0:a.hasFocus())||!1}),i.current=void 0}},[]),Vu(t,"focus",E.useCallback(function(){o.current=!0},[]),!0),Vu(t,"blur",E.useCallback(function(a){t.current&&a.relatedTarget&&!t.current.contains(a.relatedTarget)&&(o.current=!1)},[]),!0)}function MI(e,t){var n=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;E.useEffect(function(){if(n&&t.current){var r=s2(t.current);return r}},[t,n])}var lg=E.forwardRef(function(e,t){var n=d1({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=E.useRef(),i=Oi(r,t);MI(n,r),OI(n,r);var o=n.role,a=n.className,s=n.ariaLabel,l=n.ariaLabelledBy,u=n.ariaDescribedBy,c=n.style,d=n.children,f=n.onDismiss,m=wI(n,r),h=E.useCallback(function(y){switch(y.which){case ue.escape:f&&(f(y),y.preventDefault(),y.stopPropagation());break}},[f]),v=df();return Vu(v,"keydown",h),E.createElement("div",x({ref:i},Tt(n,ho),{className:a,role:o,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,onKeyDown:h,style:x({overflowY:m?"scroll":void 0,outline:"none"},c)}),d)});lg.displayName="Popup";var is,PI="CalloutContentBase",LI=(is={},is[de.top]=Ds.slideUpIn10,is[de.bottom]=Ds.slideDownIn10,is[de.left]=Ds.slideLeftIn10,is[de.right]=Ds.slideRightIn10,is),QE={top:0,left:0},BI={opacity:0,filter:"opacity(0)",pointerEvents:"none"},HI=["role","aria-roledescription"],y2={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Mt.bottomAutoEdge},UI=nn({disableCaching:!0});function zI(e,t,n){var r=e.bounds,i=e.minPagePadding,o=i===void 0?y2.minPagePadding:i,a=e.target,s=E.useState(!1),l=s[0],u=s[1],c=E.useRef(),d=E.useCallback(function(){if(!c.current||l){var m=typeof r=="function"?n?r(a,n):void 0:r;!m&&n&&(m=NI(t.current,n),m={top:m.top+o,left:m.left+o,right:m.right-o,bottom:m.bottom-o,width:m.width-o*2,height:m.height-o*2}),c.current=m,l&&u(!1)}return c.current},[r,o,a,t,n,l]),f=dl();return Vu(n,"resize",f.debounce(function(){u(!0)},500,{leading:!0})),d}function GI(e,t,n){var r,i=e.calloutMaxHeight,o=e.finalHeight,a=e.directionalHint,s=e.directionalHintFixed,l=e.hidden,u=E.useState(),c=u[0],d=u[1],f=(r=n==null?void 0:n.elementPosition)!==null&&r!==void 0?r:{},m=f.top,h=f.bottom;return E.useEffect(function(){var v,y=(v=t())!==null&&v!==void 0?v:{},p=y.top,T=y.bottom;!i&&!l?typeof m=="number"&&T?d(T-m):typeof h=="number"&&typeof p=="number"&&T&&d(T-p-h):d(i||void 0)},[h,i,o,a,s,t,l,n,m]),c}function WI(e,t,n,r,i){var o=E.useState(),a=o[0],s=o[1],l=E.useRef(0),u=E.useRef(),c=dl(),d=e.hidden,f=e.target,m=e.finalHeight,h=e.calloutMaxHeight,v=e.onPositioned,y=e.directionalHint;return E.useEffect(function(){if(d)s(void 0),l.current=0;else{var p=c.requestAnimationFrame(function(){var T,_;if(t.current&&n){var C=x(x({},e),{target:r.current,bounds:i()}),k=n.cloneNode(!0);k.style.maxHeight=h?""+h:"",k.style.visibility="hidden",(T=n.parentElement)===null||T===void 0||T.appendChild(k);var A=u.current===f?a:void 0,S=m?kI(C,t.current,k,A):bI(C,t.current,k,A);(_=n.parentElement)===null||_===void 0||_.removeChild(k),!a&&S||a&&S&&!VI(a,S)&&l.current<5?(l.current++,s(S)):l.current>0&&(l.current=0,v==null||v(a))}},n);return u.current=f,function(){c.cancelAnimationFrame(p),u.current=void 0}}},[d,y,c,n,h,t,r,m,i,v,a,e,f]),a}function jI(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=dl(),a=!!t;E.useEffect(function(){if(!r&&i&&a&&n){var s=o.requestAnimationFrame(function(){return ib(n)},n);return function(){return o.cancelAnimationFrame(s)}}},[r,a,o,n,i])}function KI(e,t,n,r,i){var o=e.hidden,a=e.onDismiss,s=e.preventDismissOnScroll,l=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,c=e.dismissOnTargetClick,d=e.shouldDismissOnWindowFocus,f=e.preventDismissOnEvent,m=E.useRef(!1),h=dl(),v=Or([function(){m.current=!0},function(){m.current=!1}]),y=!!t;return E.useEffect(function(){var p=function(S){y&&!s&&C(S)},T=function(S){!l&&!(f&&f(S))&&(a==null||a(S))},_=function(S){u||C(S)},C=function(S){var N=S.composedPath?S.composedPath():[],P=N.length>0?N[0]:S.target,I=n.current&&!Xn(n.current,P);if(I&&m.current){m.current=!1;return}if(!r.current&&I||S.target!==i&&I&&(!r.current||"stopPropagation"in r.current||c||P!==r.current&&!Xn(r.current,P))){if(f&&f(S))return;a==null||a(S)}},k=function(S){d&&(f&&!f(S)||!f&&!u)&&!(i!=null&&i.document.hasFocus())&&S.relatedTarget===null&&(a==null||a(S))},A=new Promise(function(S){h.setTimeout(function(){if(!o&&i){var N=[ki(i,"scroll",p,!0),ki(i,"resize",T,!0),ki(i.document.documentElement,"focus",_,!0),ki(i.document.documentElement,"click",_,!0),ki(i,"blur",k,!0)];S(function(){N.forEach(function(P){return P()})})}},0)});return function(){A.then(function(S){return S()})}},[o,h,n,r,i,a,d,c,u,l,s,y,f]),v}var C2=E.memo(E.forwardRef(function(e,t){var n=d1(y2,e),r=n.styles,i=n.style,o=n.ariaLabel,a=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,u=n.isBeakVisible,c=n.children,d=n.beakWidth,f=n.calloutWidth,m=n.calloutMaxWidth,h=n.calloutMinWidth,v=n.doNotLayer,y=n.finalHeight,p=n.hideOverflow,T=p===void 0?!!y:p,_=n.backgroundColor,C=n.calloutMaxHeight,k=n.onScroll,A=n.shouldRestoreFocus,S=A===void 0?!0:A,N=n.target,P=n.hidden,I=n.onLayerMounted,L=n.popupProps,B=E.useRef(null),Y=E.useState(null),V=Y[0],W=Y[1],O=E.useCallback(function(Vt){W(Vt)},[]),Q=Oi(B,t),M=T2(n.target,{current:V}),z=M[0],$=M[1],b=zI(n,z,$),F=WI(n,B,V,z,b),me=GI(n,b,F),xe=KI(n,F,B,z,$),ut=xe[0],Ce=xe[1],Ge=(F==null?void 0:F.elementPosition.top)&&(F==null?void 0:F.elementPosition.bottom),Ct=x(x({},F==null?void 0:F.elementPosition),{maxHeight:me});if(Ge&&(Ct.bottom=void 0),jI(n,F,V),E.useEffect(function(){P||I==null||I()},[P]),!$)return null;var _t=T,je=u&&!!N,ct=UI(r,{theme:n.theme,className:l,overflowYHidden:_t,calloutWidth:f,positions:F,beakWidth:d,backgroundColor:_,calloutMaxWidth:m,calloutMinWidth:h,doNotLayer:v}),$t=x(x({maxHeight:C||"100%"},i),_t&&{overflowY:"hidden"}),on=n.hidden?{visibility:"hidden"}:void 0;return E.createElement("div",{ref:Q,className:ct.container,style:on},E.createElement("div",x({},Tt(n,ho,HI),{className:Pn(ct.root,F&&F.targetEdge&&LI[F.targetEdge]),style:F?x({},Ct):BI,tabIndex:-1,ref:O}),je&&E.createElement("div",{className:ct.beak,style:$I(F)}),je&&E.createElement("div",{className:ct.beakCurtain}),E.createElement(lg,x({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:a,ariaLabel:o,ariaLabelledBy:s,className:ct.calloutMain,onDismiss:n.onDismiss,onMouseDown:ut,onMouseUp:Ce,onRestoreFocus:n.onRestoreFocus,onScroll:k,shouldRestoreFocus:S,style:$t},L),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:X0(e,t)});function $I(e){var t,n,r=x(x({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((n=e==null?void 0:e.beakPosition)===null||n===void 0)&&n.hideBeak?"none":void 0});return!r.top&&!r.bottom&&!r.left&&!r.right&&(r.left=QE.left,r.top=QE.top),r}function VI(e,t){return XE(e.elementPosition,t.elementPosition)&&XE(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function XE(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],i=t[n];if(r!==void 0&&i!==void 0){if(r.toFixed(2)!==i.toFixed(2))return!1}else return!1}return!0}C2.displayName=PI;function YI(e){return{height:e,width:e}}var qI={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},QI=function(e){var t,n=e.theme,r=e.className,i=e.overflowYHidden,o=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,d=dn(qI,n),f=n.semanticColors,m=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?el.Layer:void 0,boxSizing:"border-box",borderRadius:m.roundedCorner2,boxShadow:m.elevation16,selectors:(t={},t[re]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},qk(),r,!!o&&{width:o},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[d.beak,{position:"absolute",backgroundColor:f.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},YI(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:f.menuBackground,borderRadius:m.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:f.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:m.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}},XI=rn(C2,QI,void 0,{scope:"CalloutContent"}),S2=E.createContext(void 0),ZI=function(){return function(){}};S2.Provider;function JI(){var e;return(e=E.useContext(S2))!==null&&e!==void 0?e:ZI}var eF=nn(),tF=Nt(function(e,t){return f1(x(x({},e),{rtl:t}))}),nF=function(e){var t=e.theme,n=e.dir,r=Rn(t)?"rtl":"ltr",i=Rn()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}},A2=E.forwardRef(function(e,t){var n=e.className,r=e.theme,i=e.applyTheme,o=e.applyThemeToBody,a=e.styles,s=eF(a,{theme:r,applyTheme:i,className:n}),l=E.useRef(null);return iF(o,s,l),E.createElement(E.Fragment,null,rF(e,s,l,t))});A2.displayName="FabricBase";function rF(e,t,n,r){var i=t.root,o=e.as,a=o===void 0?"div":o,s=e.dir,l=e.theme,u=Tt(e,ho,["dir"]),c=nF(e),d=c.rootDir,f=c.needsTheme,m=E.createElement(o2,{providerRef:n},E.createElement(a,x({dir:d},u,{className:i,ref:Oi(n,r)})));return f&&(m=E.createElement(bb,{settings:{theme:tF(l,s==="rtl")}},m)),m}function iF(e,t,n){var r=t.bodyThemed;return E.useEffect(function(){if(e){var i=Bn(n.current);if(i)return i.body.classList.add(r),function(){i.body.classList.remove(r)}}},[r,e,n]),n}var Dh={fontFamily:"inherit"},oF={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},aF=function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,i=e.theme,o=dn(oF,i);return{root:[o.root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":Dh,"& input":Dh,"& textarea":Dh},t&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}},sF=rn(A2,aF,void 0,{scope:"Fabric"}),hu={},ug={},b2="fluent-default-layer-host",lF="#"+b2;function uF(e,t){hu[e]||(hu[e]=[]),hu[e].push(t);var n=ug[e];if(n)for(var r=0,i=n;r=0&&(n.splice(r,1),n.length===0&&delete hu[e])}var i=ug[e];if(i)for(var o=0,a=i;o0&&t.current.naturalHeight>0||t.current.complete&&SF.test(o):!1;d&&l(wn.loaded)}}),E.useEffect(function(){n==null||n(s)},[s]);var u=E.useCallback(function(d){r==null||r(d),o&&l(wn.loaded)},[o,r]),c=E.useCallback(function(d){i==null||i(d),l(wn.error)},[i]);return[s,u,c]}var N2=E.forwardRef(function(e,t){var n=E.useRef(),r=E.useRef(),i=bF(e,r),o=i[0],a=i[1],s=i[2],l=Tt(e,Pb,["width","height"]),u=e.src,c=e.alt,d=e.width,f=e.height,m=e.shouldFadeIn,h=m===void 0?!0:m,v=e.shouldStartVisible,y=e.className,p=e.imageFit,T=e.role,_=e.maximizeFrame,C=e.styles,k=e.theme,A=e.loading,S=kF(e,o,r,n),N=CF(C,{theme:k,className:y,width:d,height:f,maximizeFrame:_,shouldFadeIn:h,shouldStartVisible:v,isLoaded:o===wn.loaded||o===wn.notLoaded&&e.shouldStartVisible,isLandscape:S===Yu.landscape,isCenter:p===Qn.center,isCenterContain:p===Qn.centerContain,isCenterCover:p===Qn.centerCover,isContain:p===Qn.contain,isCover:p===Qn.cover,isNone:p===Qn.none,isError:o===wn.error,isNotImageFit:p===void 0});return E.createElement("div",{className:N.root,style:{width:d,height:f},ref:n},E.createElement("img",x({},l,{onLoad:a,onError:s,key:AF+e.src||"",className:N.image,ref:Oi(r,t),src:u,alt:c,role:T,loading:A})))});N2.displayName="ImageBase";function kF(e,t,n,r){var i=E.useRef(t),o=E.useRef();return(o===void 0||i.current===wn.notLoaded&&t===wn.loaded)&&(o.current=IF(e,t,n,r)),i.current=t,o.current}function IF(e,t,n,r){var i=e.imageFit,o=e.width,a=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===wn.loaded&&(i===Qn.cover||i===Qn.contain||i===Qn.centerContain||i===Qn.centerCover)&&n.current&&r.current){var s=void 0;typeof o=="number"&&typeof a=="number"&&i!==Qn.centerContain&&i!==Qn.centerCover?s=o/a:s=r.current.clientWidth/r.current.clientHeight;var l=n.current.naturalWidth/n.current.naturalHeight;if(l>s)return Yu.landscape}return Yu.portrait}var FF={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},NF=function(e){var t=e.className,n=e.width,r=e.height,i=e.maximizeFrame,o=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,d=e.isCover,f=e.isCenterContain,m=e.isCenterCover,h=e.isNone,v=e.isError,y=e.isNotImageFit,p=e.theme,T=dn(FF,p),_={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=Et(),k=C!==void 0&&C.navigator.msMaxTouchPoints===void 0,A=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[T.root,p.fonts.medium,{overflow:"hidden"},i&&[T.rootMaximizeFrame,{height:"100%",width:"100%"}],o&&a&&!s&&Ds.fadeIn400,(u||c||d||f||m)&&{position:"relative"},t],image:[T.image,{display:"block",opacity:0},o&&["is-loaded",{opacity:1}],u&&[T.imageCenter,_],c&&[T.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&A,!k&&_],d&&[T.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&A,!k&&_],f&&[T.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},_],m&&[T.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},_],h&&[T.imageNone,{width:"auto",height:"auto"}],y&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],l&&T.imageLandscape,!l&&T.imagePortrait,!o&&"is-notLoaded",a&&"is-fadeIn",v&&"is-error"]}},cg=rn(N2,NF,void 0,{scope:"Image"},!0);cg.displayName="Image";var Ra=u1({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),x2="ms-Icon",xF=function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,i=e.isImage,o=e.styles;return{root:[r&&Ra.placeholder,Ra.root,i&&Ra.image,n,t,o&&o.root,o&&o.imageContainer]}},D2=Nt(function(e){var t=tk(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily,mergeImageProps:r.mergeImageProps}:null},void 0,!0),Fd=function(e){var t=e.iconName,n=e.className,r=e.style,i=r===void 0?{}:r,o=D2(t)||{},a=o.iconClassName,s=o.children,l=o.fontFamily,u=o.mergeImageProps,c=Tt(e,xt),d=e["aria-label"]||e.title,f=e["aria-label"]||e["aria-labelledby"]||e.title?{role:u?void 0:"img"}:{"aria-hidden":!0},m=s;return u&&typeof s=="object"&&typeof s.props=="object"&&d&&(m=E.cloneElement(s,{alt:d})),E.createElement("i",x({"data-icon-name":t},f,c,u?{title:void 0,"aria-label":void 0}:{},{className:Pn(x2,Ra.root,a,!t&&Ra.placeholder,n),style:x({fontFamily:l},i)}),m)};Nt(function(e,t,n){return Fd({iconName:e,className:t,"aria-label":n})});var DF=nn({cacheSize:100}),wF=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;return r._onImageLoadingStateChange=function(i){r.props.imageProps&&r.props.imageProps.onLoadingStateChange&&r.props.imageProps.onLoadingStateChange(i),i===wn.error&&r.setState({imageLoadError:!0})},r.state={imageLoadError:!1},r}return t.prototype.render=function(){var n=this.props,r=n.children,i=n.className,o=n.styles,a=n.iconName,s=n.imageErrorAs,l=n.theme,u=typeof a=="string"&&a.length===0,c=!!this.props.imageProps||this.props.iconType===Id.image||this.props.iconType===Id.Image,d=D2(a)||{},f=d.iconClassName,m=d.children,h=d.mergeImageProps,v=DF(o,{theme:l,className:i,iconClassName:f,isImage:c,isPlaceholder:u}),y=c?"span":"i",p=Tt(this.props,xt,["aria-label"]),T=this.state.imageLoadError,_=x(x({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),C=T&&s||cg,k=this.props["aria-label"]||this.props.ariaLabel,A=_.alt||k||this.props.title,S=!!(A||this.props["aria-labelledby"]||_["aria-label"]||_["aria-labelledby"]),N=S?{role:c||h?void 0:"img","aria-label":c||h?void 0:A}:{"aria-hidden":!0},P=m;return h&&m&&typeof m=="object"&&A&&(P=E.cloneElement(m,{alt:A})),E.createElement(y,x({"data-icon-name":a},N,p,h?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?E.createElement(C,x({},_)):r||P)},t}(E.Component),Mi=rn(wF,xF,void 0,{scope:"Icon"},!0);Mi.displayName="Icon";var RF=function(e){var t=e.className,n=e.imageProps,r=Tt(e,xt,["aria-label","aria-labelledby","title","aria-describedby"]),i=n.alt||e["aria-label"],o=i||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,a={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},s=o?{}:{"aria-hidden":!0};return E.createElement("div",x({},s,r,{className:Pn(x2,Ra.root,Ra.image,t)}),E.createElement(cg,x({},a,n,{alt:o?i:""})))},wp={none:0,all:1,inputOnly:2},In;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(In||(In={}));var q1="data-is-focusable",OF="data-disable-click-on-enter",wh="data-focuszone-id",gi="tabindex",Rh="data-no-vertical-wrap",Oh="data-no-horizontal-wrap",Mh=999999999,Rl=-999999999,Ph,MF="ms-FocusZone";function PF(e,t){var n;typeof MouseEvent=="function"?n=new MouseEvent("click",{ctrlKey:t==null?void 0:t.ctrlKey,metaKey:t==null?void 0:t.metaKey,shiftKey:t==null?void 0:t.shiftKey,altKey:t==null?void 0:t.altKey,bubbles:t==null?void 0:t.bubbles,cancelable:t==null?void 0:t.cancelable}):(n=document.createEvent("MouseEvents"),n.initMouseEvent("click",t?t.bubbles:!1,t?t.cancelable:!1,window,0,0,0,0,0,t?t.ctrlKey:!1,t?t.altKey:!1,t?t.shiftKey:!1,t?t.metaKey:!1,0,null)),e.dispatchEvent(n)}function LF(){return Ph||(Ph=bi({selectors:{":focus":{outline:"none"}}},MF)),Ph}var Ol={},Q1=new Set,BF=["text","number","password","email","tel","url","search","textarea"],Gi=!1,HF=function(e){it(t,e);function t(n){var r,i,o,a,s=e.call(this,n)||this;s._root=E.createRef(),s._mergedRef=l2(),s._onFocus=function(u){if(!s._portalContainsElement(u.target)){var c=s.props,d=c.onActiveElementChanged,f=c.doNotAllowFocusEventToPropagate,m=c.stopFocusPropagation,h=c.onFocusNotification,v=c.onFocus,y=c.shouldFocusInnerElementWhenReceivedFocus,p=c.defaultTabbableElement,T=s._isImmediateDescendantOfZone(u.target),_;if(T)_=u.target;else for(var C=u.target;C&&C!==s._root.current;){if(Si(C)&&s._isImmediateDescendantOfZone(C)){_=C;break}C=ti(C,Gi)}if(y&&u.target===s._root.current){var k=p&&typeof p=="function"&&s._root.current&&p(s._root.current);k&&Si(k)?(_=k,k.focus()):(s.focus(!0),s._activeElement&&(_=null))}var A=!s._activeElement;_&&_!==s._activeElement&&((T||A)&&s._setFocusAlignment(_,!0,!0),s._activeElement=_,A&&s._updateTabIndexes()),d&&d(s._activeElement,u),(m||f)&&u.stopPropagation(),v?v(u):h&&h()}},s._onBlur=function(){s._setParkedFocus(!1)},s._onMouseDown=function(u){if(!s._portalContainsElement(u.target)){var c=s.props.disabled;if(!c){for(var d=u.target,f=[];d&&d!==s._root.current;)f.push(d),d=ti(d,Gi);for(;f.length&&(d=f.pop(),d&&Si(d)&&s._setActiveElement(d,!0),!Zi(d)););}}},s._onKeyDown=function(u,c){if(!s._portalContainsElement(u.target)){var d=s.props,f=d.direction,m=d.disabled,h=d.isInnerZoneKeystroke,v=d.pagingSupportDisabled,y=d.shouldEnterInnerZone;if(!m&&(s.props.onKeyDown&&s.props.onKeyDown(u),!u.isDefaultPrevented()&&!(s._getDocument().activeElement===s._root.current&&s._isInnerZone))){if((y&&y(u)||h&&h(u))&&s._isImmediateDescendantOfZone(u.target)){var p=s._getFirstInnerZone();if(p){if(!p.focus(!0))return}else if(ng(u.target)){if(!s.focusElement(Nn(u.target,u.target.firstChild,!0)))return}else return}else{if(u.altKey)return;switch(u.which){case ue.space:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(u.target,u))break;return;case ue.left:if(f!==In.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusLeft(c)))break;return;case ue.right:if(f!==In.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusRight(c)))break;return;case ue.up:if(f!==In.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusUp()))break;return;case ue.down:if(f!==In.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusDown()))break;return;case ue.pageDown:if(!v&&s._moveFocusPaging(!0))break;return;case ue.pageUp:if(!v&&s._moveFocusPaging(!1))break;return;case ue.tab:if(s.props.allowTabKey||s.props.handleTabKey===wp.all||s.props.handleTabKey===wp.inputOnly&&s._isElementInput(u.target)){var T=!1;if(s._processingTabKey=!0,f===In.vertical||!s._shouldWrapFocus(s._activeElement,Oh))T=u.shiftKey?s._moveFocusUp():s._moveFocusDown();else{var _=Rn(c)?!u.shiftKey:u.shiftKey;T=_?s._moveFocusLeft(c):s._moveFocusRight(c)}if(s._processingTabKey=!1,T)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case ue.home:if(s._isContentEditableElement(u.target)||s._isElementInput(u.target)&&!s._shouldInputLoseFocus(u.target,!1))return!1;var C=s._root.current&&s._root.current.firstChild;if(s._root.current&&C&&s.focusElement(Nn(s._root.current,C,!0)))break;return;case ue.end:if(s._isContentEditableElement(u.target)||s._isElementInput(u.target)&&!s._shouldInputLoseFocus(u.target,!0))return!1;var k=s._root.current&&s._root.current.lastChild;if(s._root.current&&s.focusElement(qn(s._root.current,k,!0,!0,!0)))break;return;case ue.enter:if(s._shouldRaiseClicksOnEnter&&s._tryInvokeClickForFocusable(u.target,u))break;return;default:return}}u.preventDefault(),u.stopPropagation()}}},s._getHorizontalDistanceFromCenter=function(u,c,d){var f=s._focusAlignment.left||s._focusAlignment.x||0,m=Math.floor(d.top),h=Math.floor(c.bottom),v=Math.floor(d.bottom),y=Math.floor(c.top),p=u&&m>h,T=!u&&v=d.left&&f<=d.left+d.width?0:Math.abs(d.left+d.width/2-f):s._shouldWrapFocus(s._activeElement,Rh)?Mh:Rl},mo(s),s._id=On("FocusZone"),s._focusAlignment={left:0,top:0},s._processingTabKey=!1;var l=(i=(r=n.shouldRaiseClicks)!==null&&r!==void 0?r:t.defaultProps.shouldRaiseClicks)!==null&&i!==void 0?i:!0;return s._shouldRaiseClicksOnEnter=(o=n.shouldRaiseClicksOnEnter)!==null&&o!==void 0?o:l,s._shouldRaiseClicksOnSpace=(a=n.shouldRaiseClicksOnSpace)!==null&&a!==void 0?a:l,s}return t.getOuterZones=function(){return Q1.size},t._onKeyDownCapture=function(n){n.which===ue.tab&&Q1.forEach(function(r){return r._updateTabIndexes()})},t.prototype.componentDidMount=function(){var n=this._root.current;if(Ol[this._id]=this,n){for(var r=ti(n,Gi);r&&r!==this._getDocument().body&&r.nodeType===1;){if(Zi(r)){this._isInnerZone=!0;break}r=ti(r,Gi)}this._isInnerZone||(Q1.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var n=this._root.current,r=this._getDocument();if((this._activeElement&&!Xn(this._root.current,this._activeElement,Gi)||this._defaultFocusElement&&!Xn(this._root.current,this._defaultFocusElement,Gi))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&r&&this._lastIndexPath&&(r.activeElement===r.body||r.activeElement===null||r.activeElement===n)){var i=ab(n,this._lastIndexPath);i?(this._setActiveElement(i,!0),i.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Ol[this._id],this._isInnerZone||(Q1.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var n=this,r=this.props,i=r.as,o=r.elementType,a=r.rootProps,s=r.ariaDescribedBy,l=r.ariaLabelledBy,u=r.className,c=Tt(this.props,xt),d=i||o||"div";this._evaluateFocusBeforeRender();var f=iI();return E.createElement(d,x({"aria-labelledby":l,"aria-describedby":s},c,a,{className:Pn(LF(),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(m){return n._onKeyDown(m,f)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!1),this._root.current)if(!n&&this._root.current.getAttribute(q1)==="true"&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var o=Ol[i.getAttribute(wh)];return!!o&&o.focusElement(this._root.current)}return!1}else{if(!n&&this._activeElement&&Xn(this._root.current,this._activeElement)&&Si(this._activeElement)&&(!r||$4(this._activeElement)))return this._activeElement.focus(),!0;var a=this._root.current.firstChild;return this.focusElement(Nn(this._root.current,a,!0,void 0,void 0,void 0,void 0,void 0,r))}return!1},t.prototype.focusLast=function(){if(this._root.current){var n=this._root.current&&this._root.current.lastChild;return this.focusElement(qn(this._root.current,n,!0,!0,!0))}return!1},t.prototype.focusElement=function(n,r){var i=this.props,o=i.onBeforeFocus,a=i.shouldReceiveFocus;return a&&!a(n)||o&&!o(n)?!1:n?(this._setActiveElement(n,r),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(n){this._focusAlignment=n},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var n=this._root.current,r=this._getDocument();if(r){var i=r.activeElement;if(i!==n){var o=Xn(n,i,!1);this._lastIndexPath=o?sb(n,i):void 0}}},t.prototype._setParkedFocus=function(n){var r=this._root.current;r&&this._isParked!==n&&(this._isParked=n,n?(this.props.allowFocusRoot||(this._parkedTabIndex=r.getAttribute("tabindex"),r.setAttribute("tabindex","-1")),r.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(r.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):r.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(n,r){var i=this._activeElement;this._activeElement=n,i&&(Zi(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&((!this._focusAlignment||r)&&this._setFocusAlignment(n,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(n){this.props.preventDefaultWhenHandled&&n.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(n,r){var i=n;if(i===this._root.current)return!1;do{if(i.tagName==="BUTTON"||i.tagName==="A"||i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(i)&&i.getAttribute(q1)==="true"&&i.getAttribute(OF)!=="true")return PF(i,r),!0;i=ti(i,Gi)}while(i!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(n){if(n=n||this._activeElement||this._root.current,!n)return null;if(Zi(n))return Ol[n.getAttribute(wh)];for(var r=n.firstElementChild;r;){if(Zi(r))return Ol[r.getAttribute(wh)];var i=this._getFirstInnerZone(r);if(i)return i;r=r.nextElementSibling}return null},t.prototype._moveFocus=function(n,r,i,o){o===void 0&&(o=!0);var a=this._activeElement,s=-1,l=void 0,u=!1,c=this.props.direction===In.bidirectional;if(!a||!this._root.current||this._isElementInput(a)&&!this._shouldInputLoseFocus(a,n))return!1;var d=c?a.getBoundingClientRect():null;do if(a=n?Nn(this._root.current,a):qn(this._root.current,a),c){if(a){var f=a.getBoundingClientRect(),m=r(d,f);if(m===-1&&s===-1){l=a;break}if(m>-1&&(s===-1||m=0&&m<0)break}}else{l=a;break}while(a);if(l&&l!==this._activeElement)u=!0,this.focusElement(l);else if(this.props.isCircularNavigation&&o)return n?this.focusElement(Nn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(qn(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},t.prototype._moveFocusDown=function(){var n=this,r=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(o,a){var s=-1,l=Math.floor(a.top),u=Math.floor(o.bottom);return l=u||l===r)&&(r=l,i>=a.left&&i<=a.left+a.width?s=0:s=Math.abs(a.left+a.width/2-i)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var n=this,r=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(o,a){var s=-1,l=Math.floor(a.bottom),u=Math.floor(a.top),c=Math.floor(o.top);return l>c?n._shouldWrapFocus(n._activeElement,Rh)?Mh:Rl:((r===-1&&l<=c||u===r)&&(r=u,i>=a.left&&i<=a.left+a.width?s=0:s=Math.abs(a.left+a.width/2-i)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusLeft=function(n){var r=this,i=this._shouldWrapFocus(this._activeElement,Oh);return this._moveFocus(Rn(n),function(o,a){var s=-1,l;return Rn(n)?l=parseFloat(a.top.toFixed(3))parseFloat(o.top.toFixed(3)),l&&a.right<=o.right&&r.props.direction!==In.vertical?s=o.right-a.right:i||(s=Rl),s},void 0,i)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusRight=function(n){var r=this,i=this._shouldWrapFocus(this._activeElement,Oh);return this._moveFocus(!Rn(n),function(o,a){var s=-1,l;return Rn(n)?l=parseFloat(a.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)):l=parseFloat(a.top.toFixed(3))=o.left&&r.props.direction!==In.vertical?s=a.left-o.left:i||(s=Rl),s},void 0,i)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusPaging=function(n,r){r===void 0&&(r=!0);var i=this._activeElement;if(!i||!this._root.current||this._isElementInput(i)&&!this._shouldInputLoseFocus(i,n))return!1;var o=Z0(i);if(!o)return!1;var a=-1,s=void 0,l=-1,u=-1,c=o.clientHeight,d=i.getBoundingClientRect();do if(i=n?Nn(this._root.current,i):qn(this._root.current,i),i){var f=i.getBoundingClientRect(),m=Math.floor(f.top),h=Math.floor(d.bottom),v=Math.floor(f.bottom),y=Math.floor(d.top),p=this._getHorizontalDistanceFromCenter(n,d,f),T=n&&m>h+c,_=!n&&v-1&&(n&&m>l?(l=m,a=p,s=i):!n&&v-1){var i=n.selectionStart,o=n.selectionEnd,a=i!==o,s=n.value,l=n.readOnly;if(a||i>0&&!r&&!l||i!==s.length&&r&&!l||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(n)))return!1}return!0},t.prototype._shouldWrapFocus=function(n,r){return this.props.checkForNoWrap?V4(n,r):!0},t.prototype._portalContainsElement=function(n){return n&&!!this._root.current&&K4(n,this._root.current)},t.prototype._getDocument=function(){return Bn(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:In.bidirectional,shouldRaiseClicks:!0},t}(E.Component),Vn;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Vn||(Vn={}));function qu(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function uo(e){return!!(e.subMenuProps||e.items)}function Fi(e){return!!(e.isDisabled||e.disabled)}function w2(e){var t=qu(e),n=t!==null;return n?"menuitemcheckbox":"menuitem"}var ZE=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return E.createElement(Mi,x({},r,{className:n.icon}))},UF=function(e){var t=e.item,n=e.hasIcons;return n?t.onRenderIcon?t.onRenderIcon(e,ZE):ZE(e):null},zF=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=qu(n);if(t){var o=function(a){return t(n,a)};return E.createElement(Mi,{iconName:n.canCheck!==!1&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:o})}return null},GF=function(e){var t=e.item,n=e.classNames;return t.text||t.name?E.createElement("span",{className:n.label},t.text||t.name):null},WF=function(e){var t=e.item,n=e.classNames;return t.secondaryText?E.createElement("span",{className:n.secondaryText},t.secondaryText):null},jF=function(e){var t=e.item,n=e.classNames,r=e.theme;return uo(t)?E.createElement(Mi,x({iconName:Rn(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},KF=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;return r.openSubMenu=function(){var i=r.props,o=i.item,a=i.openSubMenu,s=i.getSubmenuTarget;if(s){var l=s();uo(o)&&a&&l&&a(o,l)}},r.dismissSubMenu=function(){var i=r.props,o=i.item,a=i.dismissSubMenu;uo(o)&&a&&a()},r.dismissMenu=function(i){var o=r.props.dismissMenu;o&&o(void 0,i)},mo(r),r}return t.prototype.render=function(){var n=this.props,r=n.item,i=n.classNames,o=r.onRenderContent||this._renderLayout;return E.createElement("div",{className:r.split?i.linkContentMenu:i.linkContent},o(this.props,{renderCheckMarkIcon:zF,renderItemIcon:UF,renderItemName:GF,renderSecondaryText:WF,renderSubMenuIcon:jF}))},t.prototype._renderLayout=function(n,r){return E.createElement(E.Fragment,null,r.renderCheckMarkIcon(n),r.renderItemIcon(n),r.renderItemName(n),r.renderSecondaryText(n),r.renderSubMenuIcon(n))},t}(E.Component),$F=Nt(function(e){return u1({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),Do=36,JE=f2(0,d2),VF=Nt(function(e){var t,n,r,i,o,a=e.semanticColors,s=e.fonts,l=e.palette,u=a.menuItemBackgroundHovered,c=a.menuItemTextHovered,d=a.menuItemBackgroundPressed,f=a.bodyDivider,m={item:[s.medium,{color:a.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[Xo(e),s.medium,{color:a.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:Do,lineHeight:Do,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[re]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:u,color:c,selectors:{".ms-ContextualMenu-icon":{color:l.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootFocused:{backgroundColor:l.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:l.neutralPrimary}}},rootPressed:{backgroundColor:d,selectors:{".ms-ContextualMenu-icon":{color:l.themeDark},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootExpanded:{backgroundColor:d,color:a.bodyTextChecked,selectors:(n={".ms-ContextualMenu-submenuIcon":(r={},r[re]={color:"inherit"},r)},n[re]=x({},Wt()),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:Do,fontSize:ri.medium,width:ri.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[JE]={fontSize:ri.large,width:ri.large},i)},iconColor:{color:a.menuIcon},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext},subMenuIcon:{height:Do,lineHeight:Do,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:ri.small,selectors:(o={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},o[JE]={fontSize:ri.medium},o)},splitButtonFlexContainer:[Xo(e),{display:"flex",height:Do,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return Li(m)}),e5="28px",YF=f2(0,d2),qF=Nt(function(e){var t;return u1($F(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[YF]={right:32},t)},divider:{height:16,width:1}})}),QF={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},XF=Nt(function(e,t,n,r,i,o,a,s,l,u,c,d){var f,m,h,v,y=VF(e),p=dn(QF,e);return u1({item:[p.item,y.item,a],divider:[p.divider,y.divider,s],root:[p.root,y.root,r&&[p.isChecked,y.rootChecked],i&&y.anchorLink,n&&[p.isExpanded,y.rootExpanded],t&&[p.isDisabled,y.rootDisabled],!t&&!n&&[{selectors:(f={":hover":y.rootHovered,":active":y.rootPressed},f["."+En+" &:focus, ."+En+" &:focus:hover"]=y.rootFocused,f["."+En+" &:hover"]={background:"inherit;"},f)}],d],splitPrimary:[y.root,{width:"calc(100% - "+e5+")"},r&&["is-checked",y.rootChecked],(t||c)&&["is-disabled",y.rootDisabled],!(t||c)&&!r&&[{selectors:(m={":hover":y.rootHovered},m[":hover ~ ."+p.splitMenu]=y.rootHovered,m[":active"]=y.rootPressed,m["."+En+" &:focus, ."+En+" &:focus:hover"]=y.rootFocused,m["."+En+" &:hover"]={background:"inherit;"},m)}]],splitMenu:[p.splitMenu,y.root,{flexBasis:"0",padding:"0 8px",minWidth:e5},n&&["is-expanded",y.rootExpanded],t&&["is-disabled",y.rootDisabled],!t&&!n&&[{selectors:(h={":hover":y.rootHovered,":active":y.rootPressed},h["."+En+" &:focus, ."+En+" &:focus:hover"]=y.rootFocused,h["."+En+" &:hover"]={background:"inherit;"},h)}]],anchorLink:y.anchorLink,linkContent:[p.linkContent,y.linkContent],linkContentMenu:[p.linkContentMenu,y.linkContent,{justifyContent:"center"}],icon:[p.icon,o&&y.iconColor,y.icon,l,t&&[p.isDisabled,y.iconDisabled]],iconColor:y.iconColor,checkmarkIcon:[p.checkmarkIcon,o&&y.checkmarkIcon,y.icon,l],subMenuIcon:[p.subMenuIcon,y.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[y.iconDisabled]],label:[p.label,y.label],secondaryText:[p.secondaryText,y.secondaryText],splitContainer:[y.splitButtonFlexContainer,!t&&!r&&[{selectors:(v={},v["."+En+" &:focus, ."+En+" &:focus:hover"]=y.rootFocused,v)}]],screenReaderText:[p.screenReaderText,y.screenReaderText,rg,{visibility:"hidden"}]})}),R2=function(e){var t=e.theme,n=e.disabled,r=e.expanded,i=e.checked,o=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,d=e.primaryDisabled,f=e.className;return XF(t,n,r,i,o,a,s,l,u,c,d,f)},Qu=rn(KF,R2,void 0,{scope:"ContextualMenuItem"}),dg=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;return r._onItemMouseEnter=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(a,i,i.currentTarget)},r._onItemClick=function(i){var o=r.props,a=o.item,s=o.onItemClickBase;s&&s(a,i,i.currentTarget)},r._onItemMouseLeave=function(i){var o=r.props,a=o.item,s=o.onItemMouseLeave;s&&s(a,i)},r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;s&&s(a,i)},r._onItemMouseMove=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(a,i,i.currentTarget)},r._getSubmenuTarget=function(){},mo(r),r}return t.prototype.shouldComponentUpdate=function(n){return!X0(n,this.props)},t}(E.Component),ZF="ktp",t5="-",JF="data-ktp-target",eN="data-ktp-execute-target",tN="ktp-layer-id",yi;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(yi||(yi={}));var nN=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,n){n===void 0&&(n=!1);var r=t;n||(r=this.addParentOverflow(t),this.sequenceMapping[r.keySequences.toString()]=r);var i=this._getUniqueKtp(r);if(n?this.persistedKeytips[i.uniqueID]=i:this.keytips[i.uniqueID]=i,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=n?yi.PERSISTED_KEYTIP_ADDED:yi.KEYTIP_ADDED;Fr.raise(this,o,{keytip:r,uniqueID:i.uniqueID})}return i.uniqueID},e.prototype.update=function(t,n){var r=this.addParentOverflow(t),i=this._getUniqueKtp(r,n),o=this.keytips[n];o&&(i.keytip.visible=o.keytip.visible,this.keytips[n]=i,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[i.keytip.keySequences.toString()]=i.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Fr.raise(this,yi.KEYTIP_UPDATED,{keytip:i.keytip,uniqueID:i.uniqueID}))},e.prototype.unregister=function(t,n,r){r===void 0&&(r=!1),r?delete this.persistedKeytips[n]:delete this.keytips[n],!r&&delete this.sequenceMapping[t.keySequences.toString()];var i=r?yi.PERSISTED_KEYTIP_REMOVED:yi.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Fr.raise(this,i,{keytip:t,uniqueID:n})},e.prototype.enterKeytipMode=function(){Fr.raise(this,yi.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Fr.raise(this,yi.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(n){return t.keytips[n].keytip})},e.prototype.addParentOverflow=function(t){var n=ui([],t.keySequences);if(n.pop(),n.length!==0){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return x(x({},t),{overflowSetSequence:r.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,n){Fr.raise(this,yi.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},e.prototype._getUniqueKtp=function(t,n){return n===void 0&&(n=On()),{keytip:x({},t),uniqueID:n}},e._instance=new e,e}();function O2(e){return e.reduce(function(t,n){return t+t5+n.split("").join(t5)},ZF)}function rN(e,t){var n=t.length,r=ui([],t).pop(),i=ui([],e);return z7(i,n-1,r)}function iN(e){var t=" "+tN;return e.length?t+" "+O2(e):t}function oN(e){var t=E.useRef(),n=e.keytipProps?x({disabled:e.disabled},e.keytipProps):void 0,r=Or(nN.getInstance()),i=ag(e);Js(function(){t.current&&n&&((i==null?void 0:i.keytipProps)!==e.keytipProps||(i==null?void 0:i.disabled)!==e.disabled)&&r.update(n,t.current)}),Js(function(){return n&&(t.current=r.register(n)),function(){n&&r.unregister(n,t.current)}},[]);var o={ariaDescribedBy:void 0,keytipId:void 0};return n&&(o=aN(r,n,e.ariaDescribedBy)),o}function aN(e,t,n){var r=e.addParentOverflow(t),i=c1(n,iN(r.keySequences)),o=ui([],r.keySequences);r.overflowSetSequence&&(o=rN(o,r.overflowSetSequence));var a=O2(o);return{ariaDescribedBy:i,keytipId:a}}var Xu=function(e){var t,n=e.children,r=Pi(e,["children"]),i=oN(r),o=i.keytipId,a=i.ariaDescribedBy;return n((t={},t[JF]=o,t[eN]=o,t["aria-describedby"]=a,t))},sN=function(e){it(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._anchor=E.createRef(),n._getMemoizedMenuButtonKeytipProps=Nt(function(r){return x(x({},r),{hasMenu:!0})}),n._getSubmenuTarget=function(){return n._anchor.current?n._anchor.current:void 0},n._onItemClick=function(r){var i=n.props,o=i.item,a=i.onItemClick;a&&a(o,r)},n._renderAriaDescription=function(r,i){return r?E.createElement("span",{id:n._ariaDescriptionId,className:i},r):null},n}return t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.contextualMenuItemAs,f=d===void 0?Qu:d,m=r.expandedMenuItemKey,h=r.onItemClick,v=r.openSubMenu,y=r.dismissSubMenu,p=r.dismissMenu,T=i.rel;i.target&&i.target.toLowerCase()==="_blank"&&(T=T||"nofollow noopener noreferrer");var _=uo(i),C=Tt(i,X4),k=Fi(i),A=i.itemProps,S=i.ariaDescription,N=i.keytipProps;N&&_&&(N=this._getMemoizedMenuButtonKeytipProps(N)),S&&(this._ariaDescriptionId=On());var P=c1(i.ariaDescribedBy,S?this._ariaDescriptionId:void 0,C["aria-describedby"]),I={"aria-describedby":P};return E.createElement("div",null,E.createElement(Xu,{keytipProps:i.keytipProps,ariaDescribedBy:P,disabled:k},function(L){return E.createElement("a",x({},I,C,L,{ref:n._anchor,href:i.href,target:i.target,rel:T,className:o.root,role:"menuitem","aria-haspopup":_||void 0,"aria-expanded":_?i.key===m:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":Fi(i),style:i.style,onClick:n._onItemClick,onMouseEnter:n._onItemMouseEnter,onMouseLeave:n._onItemMouseLeave,onMouseMove:n._onItemMouseMove,onKeyDown:_?n._onItemKeyDown:void 0}),E.createElement(f,x({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&h?h:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:y,dismissMenu:p,getSubmenuTarget:n._getSubmenuTarget},A)),n._renderAriaDescription(S,o.screenReaderText))}))},t}(dg),lN=function(e){it(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._btn=E.createRef(),n._getMemoizedMenuButtonKeytipProps=Nt(function(r){return x(x({},r),{hasMenu:!0})}),n._renderAriaDescription=function(r,i){return r?E.createElement("span",{id:n._ariaDescriptionId,className:i},r):null},n._getSubmenuTarget=function(){return n._btn.current?n._btn.current:void 0},n}return t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.contextualMenuItemAs,f=d===void 0?Qu:d,m=r.expandedMenuItemKey,h=r.onItemMouseDown,v=r.onItemClick,y=r.openSubMenu,p=r.dismissSubMenu,T=r.dismissMenu,_=qu(i),C=_!==null,k=w2(i),A=uo(i),S=i.itemProps,N=i.ariaLabel,P=i.ariaDescription,I=Tt(i,Ha);delete I.disabled;var L=i.role||k;P&&(this._ariaDescriptionId=On());var B=c1(i.ariaDescribedBy,P?this._ariaDescriptionId:void 0,I["aria-describedby"]),Y={className:o.root,onClick:this._onItemClick,onKeyDown:A?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(W){return h?h(i,W):void 0},onMouseMove:this._onItemMouseMove,href:i.href,title:i.title,"aria-label":N,"aria-describedby":B,"aria-haspopup":A||void 0,"aria-expanded":A?i.key===m:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":Fi(i),"aria-checked":(L==="menuitemcheckbox"||L==="menuitemradio")&&C?!!_:void 0,"aria-selected":L==="menuitem"&&C?!!_:void 0,role:L,style:i.style},V=i.keytipProps;return V&&A&&(V=this._getMemoizedMenuButtonKeytipProps(V)),E.createElement(Xu,{keytipProps:V,ariaDescribedBy:B,disabled:Fi(i)},function(W){return E.createElement("button",x({ref:n._btn},I,Y,W),E.createElement(f,x({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&v?v:void 0,hasIcons:c,openSubMenu:y,dismissSubMenu:p,dismissMenu:T,getSubmenuTarget:n._getSubmenuTarget},S)),n._renderAriaDescription(P,o.screenReaderText))})},t}(dg),uN=function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var i=n(t);return{wrapper:[i.wrapper],divider:[i.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},cN=nn(),M2=E.forwardRef(function(e,t){var n=e.styles,r=e.theme,i=e.getClassNames,o=e.className,a=cN(n,{theme:r,getClassNames:i,className:o});return E.createElement("span",{className:a.wrapper,ref:t},E.createElement("span",{className:a.divider}))});M2.displayName="VerticalDividerBase";var dN=rn(M2,uN,void 0,{scope:"VerticalDivider"}),fN=500,hN=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=Nt(function(i){return x(x({},i),{hasMenu:!0})}),r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;i.which===ue.enter?(r._executeItemClick(i),i.preventDefault(),i.stopPropagation()):s&&s(a,i)},r._getSubmenuTarget=function(){return r._splitButton},r._renderAriaDescription=function(i,o){return i?E.createElement("span",{id:r._ariaDescriptionId,className:o},i):null},r._onItemMouseEnterPrimary=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(x(x({},a),{subMenuProps:void 0,items:void 0}),i,r._splitButton)},r._onItemMouseEnterIcon=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(a,i,r._splitButton)},r._onItemMouseMovePrimary=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(x(x({},a),{subMenuProps:void 0,items:void 0}),i,r._splitButton)},r._onItemMouseMoveIcon=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(a,i,r._splitButton)},r._onIconItemClick=function(i){var o=r.props,a=o.item,s=o.onItemClickBase;s&&s(a,i,r._splitButton?r._splitButton:i.currentTarget)},r._executeItemClick=function(i){var o=r.props,a=o.item,s=o.executeItemClick,l=o.onItemClick;if(!(a.disabled||a.isDisabled)){if(r._processingTouch&&l)return l(a,i);s&&s(a,i)}},r._onTouchStart=function(i){r._splitButton&&!("onpointerdown"in r._splitButton)&&r._handleTouchAndPointerEvent(i)},r._onPointerDown=function(i){i.pointerType==="touch"&&(r._handleTouchAndPointerEvent(i),i.preventDefault(),i.stopImmediatePropagation())},r._async=new ul(r),r._events=new Fr(r),r}return t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.onItemMouseLeave,f=r.expandedMenuItemKey,m=uo(i),h=i.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var v=i.ariaDescription;return v&&(this._ariaDescriptionId=On()),E.createElement(Xu,{keytipProps:h,disabled:Fi(i)},function(y){return E.createElement("div",{"data-ktp-target":y["data-ktp-target"],ref:function(p){return n._splitButton=p},role:w2(i),"aria-label":i.ariaLabel,className:o.splitContainer,"aria-disabled":Fi(i),"aria-expanded":m?i.key===f:void 0,"aria-haspopup":!0,"aria-describedby":c1(i.ariaDescribedBy,v?n._ariaDescriptionId:void 0,y["aria-describedby"]),"aria-checked":i.isChecked||i.checked,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:n._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(n,x(x({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:n._onItemMouseMovePrimary,onKeyDown:n._onItemKeyDown,onClick:n._executeItemClick,onTouchStart:n._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},n._renderSplitPrimaryButton(i,o,a,u,c),n._renderSplitDivider(i),n._renderSplitIconButton(i,o,a,y),n._renderAriaDescription(v,o.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(n,r,i,o,a){var s=this.props,l=s.contextualMenuItemAs,u=l===void 0?Qu:l,c=s.onItemClick,d={key:n.key,disabled:Fi(n)||n.primaryDisabled,name:n.name,text:n.text||n.name,secondaryText:n.secondaryText,className:r.splitPrimary,canCheck:n.canCheck,isChecked:n.isChecked,checked:n.checked,iconProps:n.iconProps,onRenderIcon:n.onRenderIcon,data:n.data,"data-is-focusable":!1},f=n.itemProps;return E.createElement("button",x({},Tt(d,Ha)),E.createElement(u,x({"data-is-focusable":!1,item:d,classNames:r,index:i,onCheckmarkClick:o&&c?c:void 0,hasIcons:a},f)))},t.prototype._renderSplitDivider=function(n){var r=n.getSplitButtonVerticalDividerClassNames||qF;return E.createElement(dN,{getClassNames:r})},t.prototype._renderSplitIconButton=function(n,r,i,o){var a=this.props,s=a.contextualMenuItemAs,l=s===void 0?Qu:s,u=a.onItemMouseLeave,c=a.onItemMouseDown,d=a.openSubMenu,f=a.dismissSubMenu,m=a.dismissMenu,h={onClick:this._onIconItemClick,disabled:Fi(n),className:r.splitMenu,subMenuProps:n.subMenuProps,submenuIconProps:n.submenuIconProps,split:!0,key:n.key},v=x(x({},Tt(h,Ha)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,n):void 0,onMouseDown:function(p){return c?c(n,p):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),y=n.itemProps;return E.createElement("button",x({},v),E.createElement(l,x({componentRef:n.componentRef,item:h,classNames:r,index:i,hasIcons:!1,openSubMenu:d,dismissSubMenu:f,dismissMenu:m,getSubmenuTarget:this._getSubmenuTarget},y)))},t.prototype._handleTouchAndPointerEvent=function(n){var r=this,i=this.props.onTap;i&&i(n),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){r._processingTouch=!1,r._lastTouchTimeoutId=void 0},fN)},t}(dg),mN=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;return r._updateComposedComponentRef=r._updateComposedComponentRef.bind(r),r}return t.prototype._updateComposedComponentRef=function(n){this._composedComponentInstance=n,n?this._hoisted=Bb(this,n):this._hoisted&&Hb(this,this._hoisted)},t}(E.Component),Ua;(function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"})(Ua||(Ua={}));var pN=[479,639,1023,1365,1919,99999999],P2;function fg(){var e;return(e=P2)!==null&&e!==void 0?e:Ua.large}function L2(e){var t,n=(t=function(r){it(i,r);function i(o){var a=r.call(this,o)||this;return a._onResize=function(){var s=B2(a.context.window);s!==a.state.responsiveMode&&a.setState({responsiveMode:s})},a._events=new Fr(a),a._updateComposedComponentRef=a._updateComposedComponentRef.bind(a),a.state={responsiveMode:fg()},a}return i.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},i.prototype.componentWillUnmount=function(){this._events.dispose()},i.prototype.render=function(){var o=this.state.responsiveMode;return o===Ua.unknown?null:E.createElement(e,x({ref:this._updateComposedComponentRef,responsiveMode:o},this.props))},i}(mN),t.contextType=sg,t);return Q4(e,n)}function gN(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function B2(e){var t=Ua.small;if(e){try{for(;gN(e)>pN[t];)t++}catch{t=fg()}P2=t}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}var H2=function(e,t){var n=E.useState(fg()),r=n[0],i=n[1],o=E.useCallback(function(){var s=B2(Et(e.current));r!==s&&i(s)},[e,r]),a=df();return Vu(a,"resize",o),E.useEffect(function(){t===void 0&&o()},[t]),t??r},EN=E.createContext({}),vN=nn(),TN=nn(),_N={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Mt.bottomAutoEdge,beakWidth:16};function U2(e,t){var n=t==null?void 0:t.target,r=e.subMenuProps?e.subMenuProps.items:e.items;if(r){for(var i=[],o=0,a=r;o0)return E.createElement("li",{role:"presentation",key:_e.key||G.key||"section-"+te},E.createElement("div",x({},$e),E.createElement("ul",{className:j.list,role:"presentation"},_e.topDivider&&on(te,R,!0,!0),Je&&$t(Je,G.key||te,R,G.title),_e.items.map(function(k1,Cl){return _t(k1,Cl,Cl,_e.items.length,Ae,Ke,j)}),_e.bottomDivider&&on(te,R,!1,!0))))}},$t=function(G,R,j,te){return E.createElement("li",{role:"presentation",title:te,key:R,className:j.item},G)},on=function(G,R,j,te){return te||G>0?E.createElement("li",{role:"separator",key:"separator-"+G+(j===void 0?"":j?"-top":"-bottom"),className:R.divider,"aria-hidden":"true"}):null},Vt=function(G,R,j,te,Ae,Ke,_e){if(G.onRender)return G.onRender(x({"aria-posinset":te+1,"aria-setsize":Ae},G),l);var Je=i.contextualMenuItemAs,$e={item:G,classNames:R,index:j,focusableElementIndex:te,totalItemCount:Ae,hasCheckmarks:Ke,hasIcons:_e,contextualMenuItemAs:Je,onItemMouseEnter:$,onItemMouseLeave:F,onItemMouseMove:b,onItemMouseDown:wN,executeItemClick:ut,onItemKeyDown:M,expandedMenuItemKey:h,openSubMenu:v,dismissSubMenu:p,dismissMenu:l};return G.href?E.createElement(sN,x({},$e,{onItemClick:xe})):G.split&&uo(G)?E.createElement(hN,x({},$e,{onItemClick:me,onItemClickBase:Ce,onTap:I})):E.createElement(lN,x({},$e,{onItemClick:me,onItemClickBase:Ce}))},fn=function(G,R,j,te,Ae,Ke){var _e=i.contextualMenuItemAs,Je=_e===void 0?Qu:_e,$e=G.itemProps,Ht=G.id,dt=$e&&Tt($e,ho);return E.createElement("div",x({id:Ht,className:j.header},dt,{style:G.style}),E.createElement(Je,x({item:G,classNames:R,index:te,onCheckmarkClick:Ae?me:void 0,hasIcons:Ke},$e)))},Yt=i.isBeakVisible,ie=i.items,Se=i.labelElementId,ve=i.id,We=i.className,Pe=i.beakWidth,nt=i.directionalHint,pe=i.directionalHintForRTL,Gn=i.alignTargetEdge,rr=i.gapSpace,An=i.coverTarget,U=i.ariaLabel,q=i.doNotLayer,oe=i.target,Ee=i.bounds,X=i.useTargetWidth,Ye=i.useTargetAsMinWidth,St=i.directionalHintFixed,At=i.shouldFocusOnMount,ke=i.shouldFocusOnContainer,Ie=i.title,Fe=i.styles,Be=i.theme,le=i.calloutProps,hn=i.onRenderSubMenu,Ja=hn===void 0?r5:hn,jr=i.onRenderMenuList,hi=jr===void 0?function(G,R){return Ge(G,_r)}:jr,Ui=i.focusZoneProps,qt=i.getMenuClassNames,_r=qt?qt(Be,We):vN(Fe,{theme:Be,className:We}),aa=Ve(ie);function Ve(G){for(var R=0,j=G;R0){for(var Cr=0,es=0,yl=ie;es span":{position:"relative",left:0,top:0}}}],rootDisabled:[Xo(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":o5,":focus":o5}}],iconDisabled:{color:l,selectors:(t={},t[re]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[re]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:a5(o.mediumPlus.fontSize),menuIcon:a5(o.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:rg}}),pg=Nt(function(e,t){var n,r,i,o,a,s,l,u,c,d,f,m,h,v=e.effects,y=e.palette,p=e.semanticColors,T={left:-2,top:-2,bottom:-2,right:-2,border:"none"},_={position:"absolute",width:1,right:31,top:8,bottom:8},C={splitButtonContainer:[Xo(e,{highContrastStyle:T,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(n={},n[re]=x({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},Wt()),n[":hover"]={border:"none"},n[":active"]={border:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[re]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[re]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:p.buttonTextDisabled,selectors:(o={},o[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[re]=x({color:"Window",backgroundColor:"WindowText"},Wt()),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[re]=x({color:"Window",backgroundColor:"WindowText"},Wt()),s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(l={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:v.roundedCorner2,borderBottomRightRadius:v.roundedCorner2,border:"1px solid "+y.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},l[re]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:x(x({},_),{selectors:(u={},u[re]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:x(x({},_),{selectors:(c={},c[re]={backgroundColor:"GrayText"},c)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(d={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(f={},f[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f)},".ms-Button-menuIcon":{selectors:(m={},m[re]={color:"GrayText"},m)}},d[re]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},d)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(h={},h[re]=x({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Wt()),h)},splitButtonMenuFocused:x({},Xo(e,{highContrastStyle:T,inset:2}))};return Li(C,t)}),Y2=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function HN(e){var t,n,r,i,o,a=e.semanticColors,s=e.palette,l=a.buttonBackground,u=a.buttonBackgroundPressed,c=a.buttonBackgroundHovered,d=a.buttonBackgroundDisabled,f=a.buttonText,m=a.buttonTextHovered,h=a.buttonTextDisabled,v=a.buttonTextChecked,y=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:f},rootHovered:{backgroundColor:c,color:m,selectors:(t={},t[re]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:u,color:v},rootExpanded:{backgroundColor:u,color:v},rootChecked:{backgroundColor:u,color:v},rootCheckedHovered:{backgroundColor:u,color:y},rootDisabled:{color:h,backgroundColor:d,selectors:(n={},n[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(r={},r[re]={border:"none"},r)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(i={},i[re]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:x(x({},Y2()),{backgroundColor:s.neutralTertiaryAlt,selectors:(o={},o[re]={backgroundColor:"WindowText"},o)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}function UN(e){var t,n,r,i,o,a,s,l,u,c=e.palette,d=e.semanticColors;return{root:{backgroundColor:d.primaryButtonBackground,border:"1px solid "+d.primaryButtonBackground,color:d.primaryButtonText,selectors:(t={},t[re]=x({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},Wt()),t["."+En+" &:focus"]={selectors:{":after":{border:"none",outlineColor:c.white}}},t)},rootHovered:{backgroundColor:d.primaryButtonBackgroundHovered,border:"1px solid "+d.primaryButtonBackgroundHovered,color:d.primaryButtonTextHovered,selectors:(n={},n[re]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:d.primaryButtonBackgroundPressed,border:"1px solid "+d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed,selectors:(r={},r[re]=x({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},Wt()),r)},rootExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootChecked:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootDisabled:{color:d.primaryButtonTextDisabled,backgroundColor:d.primaryButtonBackgroundDisabled,selectors:(i={},i[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(o={},o[re]={border:"none"},o)},splitButtonDivider:x(x({},Y2()),{backgroundColor:c.white,selectors:(a={},a[re]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:d.primaryButtonBackground,color:d.primaryButtonText,selectors:(s={},s[re]={backgroundColor:"Canvas"},s[":hover"]={backgroundColor:d.primaryButtonBackgroundHovered,selectors:(l={},l[re]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:d.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:d.primaryButtonText},splitButtonMenuIconDisabled:{color:c.neutralTertiary,selectors:(u={},u[re]={color:"GrayText"},u)}}}var zN="32px",GN="80px",WN=Nt(function(e,t,n){var r=mg(e),i=pg(e),o={root:{minWidth:GN,height:zN},label:{fontWeight:at.semibold}};return Li(r,o,n?UN(e):HN(e),i,t)}),p1=function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.primary,i=r===void 0?!1:r,o=n.styles,a=n.theme;return E.createElement(hg,x({},this.props,{variantClassName:i?"ms-Button--primary":"ms-Button--default",styles:WN(a,o,i),onRenderDescription:Xs}))},t=ll([sf("DefaultButton",["theme","styles"],!0)],t),t}(E.Component),jN=Nt(function(e,t){var n,r=mg(e),i=pg(e),o=e.palette,a=e.semanticColors,s={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:a.link},rootHovered:{color:o.themeDarkAlt,backgroundColor:o.neutralLighter,selectors:(n={},n[re]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:o.themeDark,backgroundColor:o.neutralLight},rootExpanded:{color:o.themeDark,backgroundColor:o.neutralLight},rootChecked:{color:o.themeDark,backgroundColor:o.neutralLight},rootCheckedHovered:{color:o.themeDark,backgroundColor:o.neutralQuaternaryAlt},rootDisabled:{color:o.neutralTertiaryAlt}};return Li(r,s,i,t)}),Fa=function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.styles,i=n.theme;return E.createElement(hg,x({},this.props,{variantClassName:"ms-Button--icon",styles:jN(i,r),onRenderText:Xs,onRenderDescription:Xs}))},t=ll([sf("IconButton",["theme","styles"],!0)],t),t}(E.Component),q2=function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return E.createElement(p1,x({},this.props,{primary:!0,onRenderDescription:Xs}))},t=ll([sf("PrimaryButton",["theme","styles"],!0)],t),t}(E.Component),KN=Nt(function(e,t,n,r){var i,o,a,s,l,u,c,d,f,m,h,v,y,p,T=mg(e),_=pg(e),C=e.palette,k=e.semanticColors,A={left:4,top:4,bottom:4,right:4,border:"none"},S={root:[Xo(e,{inset:2,highContrastStyle:A,borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:C.white,color:C.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(i={},i[re]={border:"none"},i)}],rootHovered:{backgroundColor:C.neutralLighter,color:C.neutralDark,selectors:(o={},o[re]={color:"Highlight"},o["."+kn.msButtonIcon]={color:C.themeDarkAlt},o["."+kn.msButtonMenuIcon]={color:C.neutralPrimary},o)},rootPressed:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(a={},a["."+kn.msButtonIcon]={color:C.themeDark},a["."+kn.msButtonMenuIcon]={color:C.neutralPrimary},a)},rootChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(s={},s["."+kn.msButtonIcon]={color:C.themeDark},s["."+kn.msButtonMenuIcon]={color:C.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:C.neutralQuaternaryAlt,selectors:(l={},l["."+kn.msButtonIcon]={color:C.themeDark},l["."+kn.msButtonMenuIcon]={color:C.neutralPrimary},l)},rootExpanded:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(u={},u["."+kn.msButtonIcon]={color:C.themeDark},u["."+kn.msButtonMenuIcon]={color:C.neutralPrimary},u)},rootExpandedHovered:{backgroundColor:C.neutralQuaternaryAlt},rootDisabled:{backgroundColor:C.white,selectors:(c={},c["."+kn.msButtonIcon]={color:k.disabledBodySubtext,selectors:(d={},d[re]=x({color:"GrayText"},Wt()),d)},c[re]=x({color:"GrayText",backgroundColor:"Window"},Wt()),c)},splitButtonContainer:{height:"100%",selectors:(f={},f[re]={border:"none"},f)},splitButtonDividerDisabled:{selectors:(m={},m[re]={backgroundColor:"Window"},m)},splitButtonDivider:{backgroundColor:C.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:C.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:C.neutralSecondary,selectors:{":hover":{backgroundColor:C.neutralLighter,color:C.neutralDark,selectors:(h={},h[re]={color:"Highlight"},h["."+kn.msButtonIcon]={color:C.neutralPrimary},h)},":active":{backgroundColor:C.neutralLight,selectors:(v={},v["."+kn.msButtonIcon]={color:C.neutralPrimary},v)}}},splitButtonMenuButtonDisabled:{backgroundColor:C.white,selectors:(y={},y[re]=x({color:"GrayText",border:"none",backgroundColor:"Window"},Wt()),y)},splitButtonMenuButtonChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:{":hover":{backgroundColor:C.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:C.neutralLight,color:C.black,selectors:{":hover":{backgroundColor:C.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:C.neutralPrimary},splitButtonMenuIconDisabled:{color:C.neutralTertiary},label:{fontWeight:"normal"},icon:{color:C.themePrimary},menuIcon:(p={color:C.neutralSecondary},p[re]={color:"GrayText"},p)};return Li(T,_,S,t)}),Zu=function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.styles,i=n.theme;return E.createElement(hg,x({},this.props,{variantClassName:"ms-Button--commandBar",styles:KN(i,r),onRenderDescription:Xs}))},t=ll([sf("CommandBarButton",["theme","styles"],!0)],t),t}(E.Component),$N=nn(),Q2=E.forwardRef(function(e,t){var n=e.disabled,r=e.required,i=e.inputProps,o=e.name,a=e.ariaLabel,s=e.ariaLabelledBy,l=e.ariaDescribedBy,u=e.ariaPositionInSet,c=e.ariaSetSize,d=e.title,f=e.checkmarkIconProps,m=e.styles,h=e.theme,v=e.className,y=e.boxSide,p=y===void 0?"start":y,T=m1("checkbox-",e.id),_=E.useRef(null),C=Oi(_,t),k=E.useRef(null),A=qE(e.checked,e.defaultChecked,e.onChange),S=A[0],N=A[1],P=qE(e.indeterminate,e.defaultIndeterminate),I=P[0],L=P[1];J4(_);var B=$N(m,{theme:h,className:v,disabled:n,indeterminate:I,checked:S,reversed:p!=="start",isUsingCustomLabelRender:!!e.onRenderLabel}),Y=E.useCallback(function(z){I?(N(!!S,z),L(!1)):N(!S,z)},[N,L,I,S]),V=E.useCallback(function(z){return z&&z.label?E.createElement("span",{className:B.text,title:z.title},z.label):null},[B.text]),W=E.useCallback(function(z){if(k.current){var $=!!z;k.current.indeterminate=$,L($)}},[L]);VN(e,S,I,W,k),E.useEffect(function(){return W(I)},[W,I]);var O=e.onRenderLabel||V,Q=I?"mixed":void 0,M=x(x({className:B.input,type:"checkbox"},i),{checked:!!S,disabled:n,required:r,name:o,id:T,title:d,onChange:Y,"aria-disabled":n,"aria-label":a,"aria-labelledby":s,"aria-describedby":l,"aria-posinset":u,"aria-setsize":c,"aria-checked":Q});return E.createElement("div",{className:B.root,title:d,ref:C},E.createElement("input",x({},M,{ref:k,title:d,"data-ktp-execute-target":!0})),E.createElement("label",{className:B.label,htmlFor:T},E.createElement("div",{className:B.checkbox,"data-ktp-target":!0},E.createElement(Mi,x({iconName:"CheckMark"},f,{className:B.checkmark}))),O(e,V)))});Q2.displayName="CheckboxBase";function VN(e,t,n,r,i){E.useImperativeHandle(e.componentRef,function(){return{get checked(){return!!t},get indeterminate(){return!!n},set indeterminate(o){r(o)},focus:function(){i.current&&i.current.focus()}}},[i,t,n,r])}var YN={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},s5="20px",l5="200ms",u5="cubic-bezier(.4, 0, .23, 1)",qN=function(e){var t,n,r,i,o,a,s,l,u,c,d,f,m,h,v,y,p,T,_=e.className,C=e.theme,k=e.reversed,A=e.checked,S=e.disabled,N=e.isUsingCustomLabelRender,P=e.indeterminate,I=C.semanticColors,L=C.effects,B=C.palette,Y=C.fonts,V=dn(YN,C),W=I.inputForegroundChecked,O=B.neutralSecondary,Q=B.neutralPrimary,M=I.inputBackgroundChecked,z=I.inputBackgroundChecked,$=I.disabledBodySubtext,b=I.inputBorderHovered,F=I.inputBackgroundCheckedHovered,me=I.inputBackgroundChecked,xe=I.inputBackgroundCheckedHovered,ut=I.inputBackgroundCheckedHovered,Ce=I.inputTextHovered,Ge=I.disabledBodySubtext,Ct=I.bodyText,_t=I.disabledText,je=[(t={content:'""',borderRadius:L.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:S?$:M,transitionProperty:"border-width, border, border-color",transitionDuration:l5,transitionTimingFunction:u5},t[re]={borderColor:"WindowText"},t)];return{root:[V.root,{position:"relative",display:"flex"},k&&"reversed",A&&"is-checked",!S&&"is-enabled",S&&"is-disabled",!S&&[!A&&(n={},n[":hover ."+V.checkbox]=(r={borderColor:b},r[re]={borderColor:"Highlight"},r),n[":focus ."+V.checkbox]={borderColor:b},n[":hover ."+V.checkmark]=(i={color:O,opacity:"1"},i[re]={color:"Highlight"},i),n),A&&!P&&(o={},o[":hover ."+V.checkbox]={background:xe,borderColor:ut},o[":focus ."+V.checkbox]={background:xe,borderColor:ut},o[re]=(a={},a[":hover ."+V.checkbox]={background:"Highlight",borderColor:"Highlight"},a[":focus ."+V.checkbox]={background:"Highlight"},a[":focus:hover ."+V.checkbox]={background:"Highlight"},a[":focus:hover ."+V.checkmark]={color:"Window"},a[":hover ."+V.checkmark]={color:"Window"},a),o),P&&(s={},s[":hover ."+V.checkbox+", :hover ."+V.checkbox+":after"]=(l={borderColor:F},l[re]={borderColor:"WindowText"},l),s[":focus ."+V.checkbox]={borderColor:F},s[":hover ."+V.checkmark]={opacity:"0"},s),(u={},u[":hover ."+V.text+", :focus ."+V.text]=(c={color:Ce},c[re]={color:S?"GrayText":"WindowText"},c),u)],_],input:(d={position:"absolute",background:"none",opacity:0},d["."+En+" &:focus + label::before"]=(f={outline:"1px solid "+C.palette.neutralSecondary,outlineOffset:"2px"},f[re]={outline:"1px solid WindowText"},f),d),label:[V.label,C.fonts.medium,{display:"flex",alignItems:N?"center":"flex-start",cursor:S?"default":"pointer",position:"relative",userSelect:"none"},k&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[V.checkbox,(m={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:s5,width:s5,border:"1px solid "+Q,borderRadius:L.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:l5,transitionTimingFunction:u5,overflow:"hidden",":after":P?je:null},m[re]=x({borderColor:"WindowText"},Wt()),m),P&&{borderColor:M},k?{marginLeft:4}:{marginRight:4},!S&&!P&&A&&(h={background:me,borderColor:z},h[re]={background:"Highlight",borderColor:"Highlight"},h),S&&(v={borderColor:$},v[re]={borderColor:"GrayText"},v),A&&S&&(y={background:Ge,borderColor:$},y[re]={background:"Window"},y)],checkmark:[V.checkmark,(p={opacity:A&&!P?"1":"0",color:W},p[re]=x({color:S?"GrayText":"Window"},Wt()),p)],text:[V.text,(T={color:S?_t:Ct,fontSize:Y.medium.fontSize,lineHeight:"20px"},T[re]=x({color:S?"GrayText":"WindowText"},Wt()),T),k?{marginRight:4}:{marginLeft:4}]}},Ei=rn(Q2,qN,void 0,{scope:"Checkbox"}),QN=nn({cacheSize:100}),XN=function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.as,i=r===void 0?"label":r,o=n.children,a=n.className,s=n.disabled,l=n.styles,u=n.required,c=n.theme,d=QN(l,{className:a,disabled:s,required:u,theme:c});return E.createElement(i,x({},Tt(this.props,ho),{className:d.root}),o)},t}(E.Component),ZN=function(e){var t,n=e.theme,r=e.className,i=e.disabled,o=e.required,a=n.semanticColors,s=at.semibold,l=a.bodyText,u=a.disabledBodyText,c=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},i&&{color:u,selectors:(t={},t[re]=x({color:"GrayText"},Wt()),t)},o&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},r]}},JN=rn(XN,ZN,void 0,{scope:"Label"}),ex=nn(),tx="",da="TextField",nx="RedEye",rx="Hide",ix=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;r._textElement=E.createRef(),r._onFocus=function(a){r.props.onFocus&&r.props.onFocus(a),r.setState({isFocused:!0},function(){r.props.validateOnFocusIn&&r._validate(r.value)})},r._onBlur=function(a){r.props.onBlur&&r.props.onBlur(a),r.setState({isFocused:!1},function(){r.props.validateOnFocusOut&&r._validate(r.value)})},r._onRenderLabel=function(a){var s=a.label,l=a.required,u=r._classNames.subComponentStyles?r._classNames.subComponentStyles.label:void 0;return s?E.createElement(JN,{required:l,htmlFor:r._id,styles:u,disabled:a.disabled,id:r._labelId},a.label):null},r._onRenderDescription=function(a){return a.description?E.createElement("span",{className:r._classNames.description},a.description):null},r._onRevealButtonClick=function(a){r.setState(function(s){return{isRevealingPassword:!s.isRevealingPassword}})},r._onInputChange=function(a){var s,l,u=a.target,c=u.value,d=Lh(r.props,r.state)||"";if(c===void 0||c===r._lastChangeValue||c===d){r._lastChangeValue=void 0;return}r._lastChangeValue=c,(l=(s=r.props).onChange)===null||l===void 0||l.call(s,a,c),r._isControlled||r.setState({uncontrolledValue:c})},mo(r),r._async=new ul(r),r._fallbackId=On(da),r._descriptionId=On(da+"Description"),r._labelId=On(da+"Label"),r._prefixId=On(da+"Prefix"),r._suffixId=On(da+"Suffix"),r._warnControlledUsage();var i=n.defaultValue,o=i===void 0?tx:i;return typeof o=="number"&&(o=String(o)),r.state={uncontrolledValue:r._isControlled?void 0:o,isFocused:!1,errorMessage:""},r._delayedValidate=r._async.debounce(r._validate,r.props.deferredValidationTime),r._lastValidation=0,r}return Object.defineProperty(t.prototype,"value",{get:function(){return Lh(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(n,r){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(n,r,i){var o=this.props,a=(i||{}).selection,s=a===void 0?[null,null]:a,l=s[0],u=s[1];!!n.multiline!=!!o.multiline&&r.isFocused&&(this.focus(),l!==null&&u!==null&&l>=0&&u>=0&&this.setSelectionRange(l,u)),n.value!==o.value&&(this._lastChangeValue=void 0);var c=Lh(n,r),d=this.value;c!==d&&(this._warnControlledUsage(n),this.state.errorMessage&&!o.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),c5(o)&&this._delayedValidate(d))},t.prototype.render=function(){var n=this.props,r=n.borderless,i=n.className,o=n.disabled,a=n.invalid,s=n.iconProps,l=n.inputClassName,u=n.label,c=n.multiline,d=n.required,f=n.underlined,m=n.prefix,h=n.resizable,v=n.suffix,y=n.theme,p=n.styles,T=n.autoAdjustHeight,_=n.canRevealPassword,C=n.revealPasswordAriaLabel,k=n.type,A=n.onRenderPrefix,S=A===void 0?this._onRenderPrefix:A,N=n.onRenderSuffix,P=N===void 0?this._onRenderSuffix:N,I=n.onRenderLabel,L=I===void 0?this._onRenderLabel:I,B=n.onRenderDescription,Y=B===void 0?this._onRenderDescription:B,V=this.state,W=V.isFocused,O=V.isRevealingPassword,Q=this._errorMessage,M=typeof a=="boolean"?a:!!Q,z=!!_&&k==="password"&&ox(),$=this._classNames=ex(p,{theme:y,className:i,disabled:o,focused:W,required:d,multiline:c,hasLabel:!!u,hasErrorMessage:M,borderless:r,resizable:h,hasIcon:!!s,underlined:f,inputClassName:l,autoAdjustHeight:T,hasRevealButton:z});return E.createElement("div",{ref:this.props.elementRef,className:$.root},E.createElement("div",{className:$.wrapper},L(this.props,this._onRenderLabel),E.createElement("div",{className:$.fieldGroup},(m!==void 0||this.props.onRenderPrefix)&&E.createElement("div",{className:$.prefix,id:this._prefixId},S(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),s&&E.createElement(Mi,x({className:$.icon},s)),z&&E.createElement("button",{"aria-label":C,className:$.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!O,type:"button"},E.createElement("span",{className:$.revealSpan},E.createElement(Mi,{className:$.revealIcon,iconName:O?rx:nx}))),(v!==void 0||this.props.onRenderSuffix)&&E.createElement("div",{className:$.suffix,id:this._suffixId},P(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&E.createElement("span",{id:this._descriptionId},Y(this.props,this._onRenderDescription),Q&&E.createElement("div",{role:"alert"},E.createElement(z4,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(n){this._textElement.current&&(this._textElement.current.selectionStart=n)},t.prototype.setSelectionEnd=function(n){this._textElement.current&&(this._textElement.current.selectionEnd=n)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(n,r){this._textElement.current&&this._textElement.current.setSelectionRange(n,r)},t.prototype._warnControlledUsage=function(n){this._id,this.props,this.props.value===null&&!this._hasWarnedNullValue&&(this._hasWarnedNullValue=!0,J0("Warning: 'value' prop on '"+da+"' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return Eb(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(n){var r=n.prefix;return E.createElement("span",{style:{paddingBottom:"1px"}},r)},t.prototype._onRenderSuffix=function(n){var r=n.suffix;return E.createElement("span",{style:{paddingBottom:"1px"}},r)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var n=this.props.errorMessage,r=n===void 0?this.state.errorMessage:n;return r||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var n=this._errorMessage;return n?typeof n=="string"?E.createElement("p",{className:this._classNames.errorMessage},E.createElement("span",{"data-automation-id":"error-message"},n)):E.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},n):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var n=this.props;return!!(n.onRenderDescription||n.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var n=this.props.invalid,r=n===void 0?!!this._errorMessage:n,i=Tt(this.props,Mb,["defaultValue"]),o=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return E.createElement("textarea",x({id:this._id},i,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":o,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":r,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var n=this.props,r=n.ariaLabel,i=n.invalid,o=i===void 0?!!this._errorMessage:i,a=n.onRenderPrefix,s=n.onRenderSuffix,l=n.prefix,u=n.suffix,c=n.type,d=c===void 0?"text":c,f=n.label,m=[];f&&m.push(this._labelId),(l!==void 0||a)&&m.push(this._prefixId),(u!==void 0||s)&&m.push(this._suffixId);var h=x(x({type:this.state.isRevealingPassword?"text":d,id:this._id},Tt(this.props,Ob,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(m.length>0?m.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":r,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":o,onFocus:this._onFocus,onBlur:this._onBlur}),v=function(p){return E.createElement("input",x({},p))},y=this.props.onRenderInput||v;return y(h,v)},t.prototype._validate=function(n){var r=this;if(!(this._latestValidateValue===n&&c5(this.props))){this._latestValidateValue=n;var i=this.props.onGetErrorMessage,o=i&&i(n||"");if(o!==void 0)if(typeof o=="string"||!("then"in o))this.setState({errorMessage:o}),this._notifyAfterValidate(n,o);else{var a=++this._lastValidation;o.then(function(s){a===r._lastValidation&&r.setState({errorMessage:s}),r._notifyAfterValidate(n,s)})}else this._notifyAfterValidate(n,"")}},t.prototype._notifyAfterValidate=function(n,r){n===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(r,n)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var n=this._textElement.current;n.style.height="",n.style.height=n.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(E.Component);function Lh(e,t){var n=e.value,r=n===void 0?t.uncontrolledValue:n;return typeof r=="number"?String(r):r}function c5(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var X1;function ox(){if(typeof X1!="boolean"){var e=Et();if(e!=null&&e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");X1=!(Zb()||t)}else X1=!0}return X1}var ax={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function sx(e){var t=e.underlined,n=e.disabled,r=e.focused,i=e.theme,o=i.palette,a=i.fonts;return function(){var s;return{root:[t&&n&&{color:o.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:(s={},s[re]={height:31},s)}]}}}function lx(e){var t,n,r,i,o,a,s,l,u,c,d,f,m=e.theme,h=e.className,v=e.disabled,y=e.focused,p=e.required,T=e.multiline,_=e.hasLabel,C=e.borderless,k=e.underlined,A=e.hasIcon,S=e.resizable,N=e.hasErrorMessage,P=e.inputClassName,I=e.autoAdjustHeight,L=e.hasRevealButton,B=m.semanticColors,Y=m.effects,V=m.fonts,W=dn(ax,m),O={background:B.disabledBackground,color:v?B.disabledText:B.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[re]={background:"Window",color:v?"GrayText":"WindowText"},t)},Q=[{color:B.inputPlaceholderText,opacity:1,selectors:(n={},n[re]={color:"GrayText"},n)}],M={color:B.disabledText,selectors:(r={},r[re]={color:"GrayText"},r)};return{root:[W.root,V.medium,p&&W.required,v&&W.disabled,y&&W.active,T&&W.multiline,C&&W.borderless,k&&W.underlined,Fh,{position:"relative"},h],wrapper:[W.wrapper,k&&[{display:"flex",borderBottom:"1px solid "+(N?B.errorText:B.inputBorder),width:"100%"},v&&{borderBottomColor:B.disabledBackground,selectors:(i={},i[re]=x({borderColor:"GrayText"},Wt()),i)},!v&&{selectors:{":hover":{borderBottomColor:N?B.errorText:B.inputBorderHovered,selectors:(o={},o[re]=x({borderBottomColor:"Highlight"},Wt()),o)}}},y&&[{position:"relative"},GE(N?B.errorText:B.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[W.fieldGroup,Fh,{border:"1px solid "+B.inputBorder,borderRadius:Y.roundedCorner2,background:B.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},T&&{minHeight:"60px",height:"auto",display:"flex"},!y&&!v&&{selectors:{":hover":{borderColor:B.inputBorderHovered,selectors:(a={},a[re]=x({borderColor:"Highlight"},Wt()),a)}}},y&&!k&&GE(N?B.errorText:B.inputFocusBorderAlt,Y.roundedCorner2),v&&{borderColor:B.disabledBackground,selectors:(s={},s[re]=x({borderColor:"GrayText"},Wt()),s),cursor:"default"},C&&{border:"none"},C&&y&&{border:"none",selectors:{":after":{border:"none"}}},k&&{flex:"1 1 0px",border:"none",textAlign:"left"},k&&v&&{backgroundColor:"transparent"},N&&!k&&{borderColor:B.errorText,selectors:{"&:hover":{borderColor:B.errorText}}},!_&&p&&{selectors:(l={":before":{content:"'*'",color:B.errorText,position:"absolute",top:-5,right:-10}},l[re]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[V.medium,W.field,Fh,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:B.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(u={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},u[re]={background:"Window",color:v?"GrayText":"WindowText"},u)},KE(Q),T&&!S&&[W.unresizable,{resize:"none"}],T&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},T&&I&&{overflow:"hidden"},A&&!L&&{paddingRight:24},T&&A&&{paddingRight:40},v&&[{backgroundColor:B.disabledBackground,color:B.disabledText,borderColor:B.disabledBackground},KE(M)],k&&{textAlign:"left"},y&&!C&&{selectors:(c={},c[re]={paddingLeft:11,paddingRight:11},c)},y&&T&&!C&&{selectors:(d={},d[re]={paddingTop:4},d)},P],icon:[T&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:ri.medium,lineHeight:18},v&&{color:B.disabledText}],description:[W.description,{color:B.bodySubtext,fontSize:V.xSmall.fontSize}],errorMessage:[W.errorMessage,Ds.slideDownIn20,V.small,{color:B.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[W.prefix,O],suffix:[W.suffix,O],revealButton:[W.revealButton,"ms-Button","ms-Button--icon",Xo(m,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:B.link,selectors:{":hover":{outline:0,color:B.primaryButtonBackgroundHovered,backgroundColor:B.buttonBackgroundHovered,selectors:(f={},f[re]={borderColor:"Highlight",color:"Highlight"},f)},":focus":{outline:0}}},A&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:ri.medium,lineHeight:18},subComponentStyles:{label:sx(e)}}}var gg=rn(ix,lx,void 0,{scope:"TextField"}),Ml={auto:0,top:1,bottom:2,center:3},ux=function(e){if(e===void 0)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t},d5=function(e){if(e===void 0)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},Z1=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},cx=16,dx=100,fx=500,hx=200,mx=500,f5=10,px=30,gx=2,Ex=2,vx="page-",h5="spacer-",m5={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},X2=function(e){return e.getBoundingClientRect()},Tx=X2,_x=X2,yx=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;return r._root=E.createRef(),r._surface=E.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(i,o){return(i.items!==r.props.items||i.renderCount!==r.props.renderCount||i.startIndex!==r.props.startIndex||i.version!==r.props.version||!o.hasMounted)&&of()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(i,o)):o},r._onRenderRoot=function(i){var o=i.rootRef,a=i.surfaceElement,s=i.divProps;return E.createElement("div",x({ref:o},s),a)},r._onRenderSurface=function(i){var o=i.surfaceRef,a=i.pageElements,s=i.divProps;return E.createElement("div",x({ref:o},s),a)},r._onRenderPage=function(i,o){for(var a,s=r.props,l=s.onRenderCell,u=s.onRenderCellConditional,c=s.role,d=i.page,f=d.items,m=f===void 0?[]:f,h=d.startIndex,v=Pi(i,["page"]),y=c===void 0?"listitem":"presentation",p=[],T=0;Tn;if(h){if(r&&this._scrollElement){for(var v=_x(this._scrollElement),y=d5(this._scrollElement),p={top:y,bottom:y+v.height},T=n-d,_=0;_=p.top&&C<=p.bottom;if(k)return;var A=up.bottom;A||S&&(u=C-v.height)}this._scrollElement&&Z1(this._scrollElement,u);return}u+=m}},t.prototype.getStartItemIndexInView=function(n){for(var r=this.state.pages||[],i=0,o=r;i=a.top&&(this._scrollTop||0)<=a.top+a.height;if(s)if(n)for(var u=0,c=a.startIndex;c0?o:void 0,"aria-label":c.length>0?d["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(n){n===void 0&&(n=this.props);var r=n.onShouldVirtualize;return!r||r(n)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(n){var r=this,i=this.props.usePageCache,o;if(i&&(o=this._pageCache[n.key],o&&o.pageElement))return o.pageElement;var a=this._getPageStyle(n),s=this.props.onRenderPage,l=s===void 0?this._onRenderPage:s,u=l({page:n,className:"ms-List-page",key:n.key,ref:function(c){r._pageRefs[n.key]=c},style:a,role:"presentation"},this._onRenderPage);return i&&n.startIndex===0&&(this._pageCache[n.key]={page:n,pageElement:u}),u},t.prototype._getPageStyle=function(n){var r=this.props.getPageStyle;return x(x({},r?r(n):{}),n.items?{}:{height:n.height})},t.prototype._onFocus=function(n){for(var r=n.target;r!==this._surface.current;){var i=r.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}r=ti(r)}},t.prototype._onScroll=function(){!this.state.isScrolling&&!this.props.ignoreScrollingState&&this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),(!this._materializedRect||!Cx(this._requiredRect,this._materializedRect))&&this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var n=this.props,r=n.renderedWindowsAhead,i=n.renderedWindowsBehind,o=this,a=o._requiredWindowsAhead,s=o._requiredWindowsBehind,l=Math.min(r,a+1),u=Math.min(i,s+1);(l!==a||u!==s)&&(this._requiredWindowsAhead=l,this._requiredWindowsBehind=u,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(r>l||i>u)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(n,r){this._requiredRect||this._updateRenderRects(n,r);var i=this._buildPages(n,r),o=r.pages;return this._notifyPageChanges(o,i.pages,this.props),x(x(x({},r),i),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(n,r,i){var o=i.onPageAdded,a=i.onPageRemoved;if(o||a){for(var s={},l=0,u=n;l-1,Y=!p||L>=p.top&&d<=p.bottom,V=!_._requiredRect||L>=_._requiredRect.top&&d<=_._requiredRect.bottom,W=!y&&(V||Y&&B)||!v,O=m>=A&&m=_._visibleRect.top&&d<=_._visibleRect.bottom),u.push(z),V&&_._allowedRect&&Sx(l,{top:d,bottom:L,height:N,left:p.left,right:p.right,width:p.width})}else f||(f=_._createPage(h5+A,void 0,A,0,void 0,P,!0)),f.height=(f.height||0)+(L-d)+1,f.itemCount+=c;if(d+=L-d+1,y&&v)return"break"},_=this,C=a;Cthis._estimatedPageHeight/3)&&(l=this._surfaceRect=Tx(this._surface.current),this._scrollTop=c),(i||!u||u!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=u||0;var d=Math.max(0,-l.top),f=Et(this._root.current),m={top:d,left:l.left,bottom:d+f.innerHeight,right:l.right,width:l.width,height:f.innerHeight};this._requiredRect=p5(m,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=p5(m,a,o),this._visibleRect=m}},t.defaultProps={startIndex:0,onRenderCell:function(n,r,i){return E.createElement(E.Fragment,null,n&&n.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:Ex,renderedWindowsBehind:gx},t}(E.Component);function p5(e,t,n){var r=e.top-t*e.height,i=e.height+(t+n)*e.height;return{top:r,bottom:r+i,height:i,left:e.left,right:e.right,width:e.width}}function Cx(e,t){return e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}function Sx(e,t){return e.top=t.tope.bottom||e.bottom===-1?t.bottom:e.bottom,e.right=t.right>e.right||e.right===-1?t.right:e.right,e.width=e.right-e.left+1,e.height=e.bottom-e.top+1,e}var ii;(function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"})(ii||(ii={}));var Rp;(function(e){e[e.normal=0]="normal",e[e.large=1]="large"})(Rp||(Rp={}));var Ax=nn(),bx=function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,r=n.type,i=n.size,o=n.ariaLabel,a=n.ariaLive,s=n.styles,l=n.label,u=n.theme,c=n.className,d=n.labelPosition,f=o,m=Tt(this.props,ho,["size"]),h=i;h===void 0&&r!==void 0&&(h=r===Rp.large?ii.large:ii.medium);var v=Ax(s,{theme:u,size:h,className:c,labelPosition:d});return E.createElement("div",x({},m,{className:v.root}),E.createElement("div",{className:v.circle}),l&&E.createElement("div",{className:v.label},l),f&&E.createElement("div",{role:"status","aria-live":a},E.createElement(z4,null,E.createElement("div",{className:v.screenReaderText},f))))},t.defaultProps={size:ii.medium,ariaLive:"polite",labelPosition:"bottom"},t}(E.Component),kx={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Ix=Nt(function(){return Tr({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),Fx=function(e){var t,n=e.theme,r=e.size,i=e.className,o=e.labelPosition,a=n.palette,s=dn(kx,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},o==="top"&&{flexDirection:"column-reverse"},o==="right"&&{flexDirection:"row"},o==="left"&&{flexDirection:"row-reverse"},i],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:Ix(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[re]=x({borderTopColor:"Highlight"},Wt()),t)},r===ii.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===ii.small&&["ms-Spinner--small",{width:16,height:16}],r===ii.medium&&["ms-Spinner--medium",{width:20,height:20}],r===ii.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},o==="top"&&{margin:"0 0 8px"},o==="right"&&{margin:"0 0 0 8px"},o==="left"&&{margin:"0 8px 0 0"}],screenReaderText:rg}},Z2=rn(bx,Fx,void 0,{scope:"Spinner"}),Ni;(function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"})(Ni||(Ni={}));var J2=Lk.durationValue2,Nx={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},xx=function(e){var t,n=e.className,r=e.containerClassName,i=e.scrollableContentClassName,o=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,u=e.theme,c=e.topOffsetFixed,d=e.isModeless,f=e.layerClassName,m=e.isDefaultDragHandle,h=e.windowInnerHeight,v=u.palette,y=u.effects,p=u.fonts,T=dn(Nx,u);return{root:[T.root,p.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+J2},c&&typeof l=="number"&&s&&{alignItems:"flex-start"},o&&T.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[T.main,{boxShadow:y.elevation64,borderRadius:y.roundedCorner2,backgroundColor:v.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?el.Layer:void 0},d&&{pointerEvents:"auto"},c&&typeof l=="number"&&s&&{top:l},m&&{cursor:"move"},r],scrollableContent:[T.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:h},t)},i],layer:d&&[f,T.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:p.xLargePlus.fontSize,width:"24px"}}},Dx=nn(),wx=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;mo(r);var i=r.props.allowTouchBodyScroll,o=i===void 0?!1:i;return r._allowTouchBodyScroll=o,r}return t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&w7()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&R7()},t.prototype.render=function(){var n=this.props,r=n.isDarkThemed,i=n.className,o=n.theme,a=n.styles,s=Tt(this.props,ho),l=Dx(a,{theme:o,className:i,isDark:r});return E.createElement("div",x({},s,{className:l.root}))},t}(E.Component),Rx={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},Ox=function(e){var t,n=e.className,r=e.theme,i=e.isNone,o=e.isDark,a=r.palette,s=dn(Rx,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[re]={border:"1px solid WindowText",opacity:0},t)},i&&{visibility:"hidden"},o&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}},Mx=rn(wx,Ox,void 0,{scope:"Overlay"}),Px=Nt(function(e,t){return{root:bi(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),Pl={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Lx=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;return r._currentEventType=Pl.mouse,r._events=[],r._onMouseDown=function(i){var o=E.Children.only(r.props.children).props.onMouseDown;return o&&o(i),r._currentEventType=Pl.mouse,r._onDragStart(i)},r._onMouseUp=function(i){var o=E.Children.only(r.props.children).props.onMouseUp;return o&&o(i),r._currentEventType=Pl.mouse,r._onDragStop(i)},r._onTouchStart=function(i){var o=E.Children.only(r.props.children).props.onTouchStart;return o&&o(i),r._currentEventType=Pl.touch,r._onDragStart(i)},r._onTouchEnd=function(i){var o=E.Children.only(r.props.children).props.onTouchEnd;o&&o(i),r._currentEventType=Pl.touch,r._onDragStop(i)},r._onDragStart=function(i){if(typeof i.button=="number"&&i.button!==0)return!1;if(!(r.props.handleSelector&&!r._matchesSelector(i.target,r.props.handleSelector)||r.props.preventDragSelector&&r._matchesSelector(i.target,r.props.preventDragSelector))){r._touchId=r._getTouchId(i);var o=r._getControlPosition(i);if(o!==void 0){var a=r._createDragDataFromPosition(o);r.props.onStart&&r.props.onStart(i,a),r.setState({isDragging:!0,lastPosition:o}),r._events=[ki(document.body,r._currentEventType.move,r._onDrag,!0),ki(document.body,r._currentEventType.stop,r._onDragStop,!0)]}}},r._onDrag=function(i){i.type==="touchmove"&&i.preventDefault();var o=r._getControlPosition(i);if(o){var a=r._createUpdatedDragData(r._createDragDataFromPosition(o)),s=a.position;r.props.onDragChange&&r.props.onDragChange(i,a),r.setState({position:s,lastPosition:o})}},r._onDragStop=function(i){if(r.state.isDragging){var o=r._getControlPosition(i);if(o){var a=r._createDragDataFromPosition(o);r.setState({isDragging:!1,lastPosition:void 0}),r.props.onStop&&r.props.onStop(i,a),r.props.position&&r.setState({position:r.props.position}),r._events.forEach(function(s){return s()})}}},r.state={isDragging:!1,position:r.props.position||{x:0,y:0},lastPosition:void 0},r}return t.prototype.componentDidUpdate=function(n){this.props.position&&(!n.position||this.props.position!==n.position)&&this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach(function(n){return n()})},t.prototype.render=function(){var n=E.Children.only(this.props.children),r=n.props,i=this.props.position,o=this.state,a=o.position,s=o.isDragging,l=a.x,u=a.y;return i&&!s&&(l=i.x,u=i.y),E.cloneElement(n,{style:x(x({},r.style),{transform:"translate("+l+"px, "+u+"px)"}),className:Px(r.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(n){var r=this._getActiveTouch(n);if(!(this._touchId!==void 0&&!r)){var i=r||n;return{x:i.clientX,y:i.clientY}}},t.prototype._getActiveTouch=function(n){return n.targetTouches&&this._findTouchInTouchList(n.targetTouches)||n.changedTouches&&this._findTouchInTouchList(n.changedTouches)},t.prototype._getTouchId=function(n){var r=n.targetTouches&&n.targetTouches[0]||n.changedTouches&&n.changedTouches[0];if(r)return r.identifier},t.prototype._matchesSelector=function(n,r){if(!n||n===document.body)return!1;var i=n.matches||n.webkitMatchesSelector||n.msMatchesSelector;return i?i.call(n,r)||this._matchesSelector(n.parentElement,r):!1},t.prototype._findTouchInTouchList=function(n){if(this._touchId!==void 0){for(var r=0;r=(O||Ua.small)&&E.createElement(I2,x({ref:Ge},Ie),E.createElement(lg,x({role:St?"alertdialog":"dialog",ariaLabelledBy:L,ariaDescribedBy:Y,onDismiss:S,shouldRestoreFocus:!T,enableAriaHiddenSiblings:b,"aria-modal":!M},F),E.createElement("div",{className:ke.root,role:M?void 0:"document"},!M&&E.createElement(Mx,x({"aria-hidden":!0,isDarkThemed:A,onClick:_?void 0:S,allowTouchBodyScroll:l},P)),z?E.createElement(Lx,{handleSelector:z.dragHandleSelector||"#"+_t,preventDragSelector:"button",onStart:Ja,onDragChange:jr,onStop:hi,position:Pe},aa):aa)))||null});eC.displayName="Modal";var tC=rn(eC,xx,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});tC.displayName="Modal";var Gx=nn(),Wx=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;return mo(r),r}return t.prototype.render=function(){var n=this.props,r=n.className,i=n.styles,o=n.theme;return this._classNames=Gx(i,{theme:o,className:r}),E.createElement("div",{className:this._classNames.actions},E.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var n=this;return E.Children.map(this.props.children,function(r){return r?E.createElement("span",{className:n._classNames.action},r):null})},t}(E.Component),jx={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},Kx=function(e){var t=e.className,n=e.theme,r=dn(jx,n);return{actions:[r.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal",verticalAlign:"middle"}}},t],action:[r.action,{margin:"0 4px"}],actionsRight:[r.actionsRight,{alignItems:"center",display:"flex",fontSize:"0",justifyContent:"flex-end",marginRight:"-4px"}]}},Eg=rn(Wx,Kx,void 0,{scope:"DialogFooter"}),$x=nn(),Vx=E.createElement(Eg,null).type,Yx=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;return mo(r),r}return t.prototype.render=function(){var n=this.props,r=n.showCloseButton,i=n.className,o=n.closeButtonAriaLabel,a=n.onDismiss,s=n.subTextId,l=n.subText,u=n.titleProps,c=u===void 0?{}:u,d=n.titleId,f=n.title,m=n.type,h=n.styles,v=n.theme,y=n.draggableHeaderClassName,p=$x(h,{theme:v,className:i,isLargeHeader:m===Ni.largeHeader,isClose:m===Ni.close,draggableHeaderClassName:y}),T=this._groupChildren(),_;return l&&(_=E.createElement("p",{className:p.subText,id:s},l)),E.createElement("div",{className:p.content},E.createElement("div",{className:p.header},E.createElement("div",x({id:d,role:"heading","aria-level":1},c,{className:Pn(p.title,c.className)}),f),E.createElement("div",{className:p.topButton},this.props.topButtonsProps.map(function(C,k){return E.createElement(Fa,x({key:C.uniqueId||k},C))}),(m===Ni.close||r&&m!==Ni.largeHeader)&&E.createElement(Fa,{className:p.button,iconProps:{iconName:"Cancel"},ariaLabel:o,onClick:a}))),E.createElement("div",{className:p.inner},E.createElement("div",{className:p.innerContent},_,T.contents),T.footers))},t.prototype._groupChildren=function(){var n={footers:[],contents:[]};return E.Children.map(this.props.children,function(r){typeof r=="object"&&r!==null&&r.type===Vx?n.footers.push(r):n.contents.push(r)}),n},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=ll([L2],t),t}(E.Component),qx={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},Qx=function(e){var t,n,r,i=e.className,o=e.theme,a=e.isLargeHeader,s=e.isClose,l=e.hidden,u=e.isMultiline,c=e.draggableHeaderClassName,d=o.palette,f=o.fonts,m=o.effects,h=o.semanticColors,v=dn(qx,o);return{content:[a&&[v.contentLgHeader,{borderTop:"4px solid "+d.themePrimary}],s&&v.close,{flexGrow:1,overflowY:"hidden"},i],subText:[v.subText,f.medium,{margin:"0 0 24px 0",color:h.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:at.regular}],header:[v.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&v.close,c&&[c,{cursor:"move"}]],button:[v.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:h.buttonText,fontSize:ri.medium}}}],inner:[v.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: "+kh+"px) and (max-width: "+Ih+"px)"]={padding:"0 16px 16px"},t)}],innerContent:[v.content,{position:"relative",width:"100%"}],title:[v.title,f.xLarge,{color:h.bodyText,margin:"0",minHeight:f.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: "+kh+"px) and (max-width: "+Ih+"px)"]={padding:"16px 46px 16px 16px"},n)},a&&{color:h.menuHeader},u&&{fontSize:f.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(r={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:h.buttonText},".ms-Dialog-button:hover":{color:h.buttonTextHovered,borderRadius:m.roundedCorner2}},r["@media (min-width: "+kh+"px) and (max-width: "+Ih+"px)"]={padding:"15px 8px 0 0"},r)}]}},Xx=rn(Yx,Qx,void 0,{scope:"DialogContent"}),Zx=nn(),Jx={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},eD={type:Ni.normal,className:"",topButtonsProps:[]},tD=function(e){it(t,e);function t(n){var r=e.call(this,n)||this;return r._getSubTextId=function(){var i=r.props,o=i.ariaDescribedById,a=i.modalProps,s=i.dialogContentProps,l=i.subText,u=a&&a.subtitleAriaId||o;return u||(u=(s&&s.subText||l)&&r._defaultSubTextId),u},r._getTitleTextId=function(){var i=r.props,o=i.ariaLabelledById,a=i.modalProps,s=i.dialogContentProps,l=i.title,u=a&&a.titleAriaId||o;return u||(u=(s&&s.title||l)&&r._defaultTitleTextId),u},r._id=On("Dialog"),r._defaultTitleTextId=r._id+"-title",r._defaultSubTextId=r._id+"-subText",r}return t.prototype.render=function(){var n,r,i,o=this.props,a=o.className,s=o.containerClassName,l=o.contentClassName,u=o.elementToFocusOnDismiss,c=o.firstFocusableSelector,d=o.forceFocusInsideTrap,f=o.styles,m=o.hidden,h=o.disableRestoreFocus,v=h===void 0?o.ignoreExternalFocusing:h,y=o.isBlocking,p=o.isClickableOutsideFocusTrap,T=o.isDarkOverlay,_=o.isOpen,C=_===void 0?!m:_,k=o.onDismiss,A=o.onDismissed,S=o.onLayerDidMount,N=o.responsiveMode,P=o.subText,I=o.theme,L=o.title,B=o.topButtonsProps,Y=o.type,V=o.minWidth,W=o.maxWidth,O=o.modalProps,Q=x({onLayerDidMount:S},O==null?void 0:O.layerProps),M,z;O!=null&&O.dragOptions&&!(!((n=O.dragOptions)===null||n===void 0)&&n.dragHandleSelector)&&(z=x({},O.dragOptions),M="ms-Dialog-draggable-header",z.dragHandleSelector="."+M);var $=x(x(x(x({},Jx),{elementToFocusOnDismiss:u,firstFocusableSelector:c,forceFocusInsideTrap:d,disableRestoreFocus:v,isClickableOutsideFocusTrap:p,responsiveMode:N,className:a,containerClassName:s,isBlocking:y,isDarkOverlay:T,onDismissed:A}),O),{dragOptions:z,layerProps:Q,isOpen:C}),b=x(x(x({className:l,subText:P,title:L,topButtonsProps:B,type:Y},eD),o.dialogContentProps),{draggableHeaderClassName:M,titleProps:x({id:((r=o.dialogContentProps)===null||r===void 0?void 0:r.titleId)||this._defaultTitleTextId},(i=o.dialogContentProps)===null||i===void 0?void 0:i.titleProps)}),F=Zx(f,{theme:I,className:$.className,containerClassName:$.containerClassName,hidden:m,dialogDefaultMinWidth:V,dialogDefaultMaxWidth:W});return E.createElement(tC,x({},$,{className:F.root,containerClassName:F.main,onDismiss:k||$.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),E.createElement(Xx,x({subTextId:this._defaultSubTextId,showCloseButton:$.isBlocking,onDismiss:k},b),o.children))},t.defaultProps={hidden:!0},t=ll([L2],t),t}(E.Component),nD={root:"ms-Dialog"},rD=function(e){var t,n=e.className,r=e.containerClassName,i=e.dialogDefaultMinWidth,o=i===void 0?"288px":i,a=e.dialogDefaultMaxWidth,s=a===void 0?"340px":a,l=e.hidden,u=e.theme,c=dn(nD,u);return{root:[c.root,u.fonts.medium,n],main:[{width:o,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: "+c2+"px)"]={width:"auto",maxWidth:s,minWidth:o},t)},!l&&{display:"flex"},r]}},fl=rn(tD,rD,void 0,{scope:"Dialog"});fl.displayName="Dialog";function iD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};Kt(n,t)}function oD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+e+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};Kt(n,t)}function aD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+e+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};Kt(n,t)}function sD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+e+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};Kt(n,t)}function lD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+e+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};Kt(n,t)}function uD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+e+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};Kt(n,t)}function cD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+e+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};Kt(n,t)}function dD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+e+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};Kt(n,t)}function fD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+e+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};Kt(n,t)}function hD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+e+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};Kt(n,t)}function mD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+e+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};Kt(n,t)}function pD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+e+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};Kt(n,t)}function gD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+e+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};Kt(n,t)}function ED(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+e+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};Kt(n,t)}function vD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+e+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};Kt(n,t)}function TD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+e+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};Kt(n,t)}function _D(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+e+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};Kt(n,t)}function yD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+e+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};Kt(n,t)}function CD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+e+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};Kt(n,t)}var SD=function(){ca("trash","delete"),ca("onedrive","onedrivelogo"),ca("alertsolid12","eventdatemissed12"),ca("sixpointstar","6pointstar"),ca("twelvepointstar","12pointstar"),ca("toggleon","toggleleft"),ca("toggleoff","toggleright")};q0("@fluentui/font-icons-mdl2","8.5.8");var AD="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/",as=Et();function bD(e,t){var n,r;e===void 0&&(e=((n=as==null?void 0:as.FabricConfig)===null||n===void 0?void 0:n.iconBaseUrl)||((r=as==null?void 0:as.FabricConfig)===null||r===void 0?void 0:r.fontBaseUrl)||AD),[iD,oD,aD,sD,lD,uD,cD,dD,fD,hD,mD,pD,gD,ED,vD,TD,_D,yD,CD].forEach(function(i){return i(e,t)}),SD()}var kD=nn(),ID=E.forwardRef(function(e,t){var n=e.styles,r=e.theme,i=e.className,o=e.vertical,a=e.alignContent,s=e.children,l=kD(n,{theme:r,className:i,alignContent:a,vertical:o});return E.createElement("div",{className:l.root,ref:t},E.createElement("div",{className:l.content,role:"separator","aria-orientation":o?"vertical":"horizontal"},s))}),FD=function(e){var t,n,r=e.theme,i=e.alignContent,o=e.vertical,a=e.className,s=i==="start",l=i==="center",u=i==="end";return{root:[r.fonts.medium,{position:"relative"},i&&{textAlign:i},!i&&{textAlign:"center"},o&&(l||!i)&&{verticalAlign:"middle"},o&&s&&{verticalAlign:"top"},o&&u&&{verticalAlign:"bottom"},o&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[re]={backgroundColor:"WindowText"},t)}},!o&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[re]={backgroundColor:"WindowText"},n)}},a],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},o&&{padding:"12px 0"}]}},nC=rn(ID,FD,void 0,{scope:"Separator"});nC.displayName="Separator";var vg=x;function mu(e,t){for(var n=[],r=2;r0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return wD(t[a],l,r[a],r.slots&&r.slots[a],r._defaultStyles&&r._defaultStyles[a],r.theme)};s.isSlot=!0,n[a]=s}};for(var o in t)i(o);return n}function xD(e,t){var n,r;return typeof t=="string"||typeof t=="number"||typeof t=="boolean"?r=(n={},n[e]=t,n):r=t,r}function DD(e,t){for(var n=[],r=2;r2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(n.length===2)return{rowGap:Bh(Gs(n[0],t)),columnGap:Bh(Gs(n[1],t))};var r=Bh(Gs(e,t));return{rowGap:r,columnGap:r}},g5=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var n=e.split(" ");return n.length<2?Gs(e,t):n.reduce(function(r,i){return Gs(r,t)+" "+Gs(i,t)})},ss={start:"flex-start",end:"flex-end"},Op={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},HD=function(e,t,n){var r,i,o,a,s,l,u,c,d,f,m,h,v,y=e.className,p=e.disableShrink,T=e.enableScopedSelectors,_=e.grow,C=e.horizontal,k=e.horizontalAlign,A=e.reversed,S=e.verticalAlign,N=e.verticalFill,P=e.wrap,I=dn(Op,t),L=n&&n.childrenGap?n.childrenGap:e.gap,B=n&&n.maxHeight?n.maxHeight:e.maxHeight,Y=n&&n.maxWidth?n.maxWidth:e.maxWidth,V=n&&n.padding?n.padding:e.padding,W=BD(L,t),O=W.rowGap,Q=W.columnGap,M=""+-.5*Q.value+Q.unit,z=""+-.5*O.value+O.unit,$={textOverflow:"ellipsis"},b="> "+(T?"."+Op.child:"*"),F=(r={},r[b+":not(."+oC.root+")"]={flexShrink:0},r);return P?{root:[I.root,{flexWrap:"wrap",maxWidth:Y,maxHeight:B,width:"auto",overflow:"visible",height:"100%"},k&&(i={},i[C?"justifyContent":"alignItems"]=ss[k]||k,i),S&&(o={},o[C?"alignItems":"justifyContent"]=ss[S]||S,o),y,{display:"flex"},C&&{height:N?"100%":"auto"}],inner:[I.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:M,marginRight:M,marginTop:z,marginBottom:z,overflow:"visible",boxSizing:"border-box",padding:g5(V,t),width:Q.value===0?"100%":"calc(100% + "+Q.value+Q.unit+")",maxWidth:"100vw"},a[b]=x({margin:""+.5*O.value+O.unit+" "+.5*Q.value+Q.unit},$),a),p&&F,k&&(s={},s[C?"justifyContent":"alignItems"]=ss[k]||k,s),S&&(l={},l[C?"alignItems":"justifyContent"]=ss[S]||S,l),C&&(u={flexDirection:A?"row-reverse":"row",height:O.value===0?"100%":"calc(100% + "+O.value+O.unit+")"},u[b]={maxWidth:Q.value===0?"100%":"calc(100% - "+Q.value+Q.unit+")"},u),!C&&(c={flexDirection:A?"column-reverse":"column",height:"calc(100% + "+O.value+O.unit+")"},c[b]={maxHeight:O.value===0?"100%":"calc(100% - "+O.value+O.unit+")"},c)]}:{root:[I.root,(d={display:"flex",flexDirection:C?A?"row-reverse":"row":A?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:N?"100%":"auto",maxWidth:Y,maxHeight:B,padding:g5(V,t),boxSizing:"border-box"},d[b]=$,d),p&&F,_&&{flexGrow:_===!0?1:_},k&&(f={},f[C?"justifyContent":"alignItems"]=ss[k]||k,f),S&&(m={},m[C?"alignItems":"justifyContent"]=ss[S]||S,m),C&&Q.value>0&&(h={},h[A?b+":not(:last-child)":b+":not(:first-child)"]={marginLeft:""+Q.value+Q.unit},h),!C&&O.value>0&&(v={},v[A?b+":not(:last-child)":b+":not(:first-child)"]={marginTop:""+O.value+O.unit},v),y]}},UD=function(e){var t=e.as,n=t===void 0?"div":t,r=e.disableShrink,i=r===void 0?!1:r,o=e.enableScopedSelectors,a=o===void 0?!1:o,s=e.wrap,l=Pi(e,["as","disableShrink","enableScopedSelectors","wrap"]),u=aC(e.children,{disableShrink:i,enableScopedSelectors:a}),c=Tt(l,xt),d=Tg(e,{root:n,inner:"div"});return s?mu(d.root,x({},c),mu(d.inner,null,u)):mu(d.root,x({},c),u)};function aC(e,t){var n=t.disableShrink,r=t.enableScopedSelectors,i=E.Children.toArray(e);return i=E.Children.map(i,function(o){if(!o||!E.isValidElement(o))return o;if(o.type===E.Fragment)return o.props.children?aC(o.props.children,{disableShrink:n,enableScopedSelectors:r}):null;var a=o,s={};zD(o)&&(s={shrink:!n});var l=a.props.className;return E.cloneElement(a,x(x(x(x({},s),a.props),l&&{className:l}),r&&{className:Pn(Op.child,l)}))}),i}function zD(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===Mo.displayName}var GD={Item:Mo},ge=_g(UD,{displayName:"Stack",styles:HD,statics:GD}),WD=function(e){if(e.children==null)return null;e.block,e.className;var t=e.as,n=t===void 0?"span":t;e.variant,e.nowrap;var r=Pi(e,["block","className","as","variant","nowrap"]),i=Tg(e,{root:n});return mu(i.root,x({},Tt(r,xt)))},jD=function(e,t){var n=e.as,r=e.className,i=e.block,o=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,u=s[a||"medium"];return{root:[u,{color:u.color||l.bodyText,display:i?n==="td"?"table-cell":"block":"inline",mozOsxFontSmoothing:u.MozOsxFontSmoothing,webkitFontSmoothing:u.WebkitFontSmoothing},o&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}},Ho=_g(WD,{displayName:"Text",styles:jD});const KD="_layout_12jdk_1",$D="_header_12jdk_7",VD="_headerContainer_12jdk_11",YD="_headerTitleContainer_12jdk_17",qD="_headerTitle_12jdk_17",QD="_headerIcon_12jdk_34",XD="_shareButtonContainer_12jdk_40",ZD="_shareButton_12jdk_40",JD="_shareButtonText_12jdk_51",ew="_urlTextBox_12jdk_61",tw="_copyButtonContainer_12jdk_71",nw="_copyButton_12jdk_71",rw="_copyButtonText_12jdk_93",vi={layout:KD,header:$D,headerContainer:VD,headerTitleContainer:YD,headerTitle:qD,headerIcon:QD,shareButtonContainer:XD,shareButton:ZD,shareButtonText:JD,urlTextBox:ew,copyButtonContainer:tw,copyButton:nw,copyButtonText:rw},sC="/assets/Contoso-ff70ad88.svg",Hh=typeof window>"u"?global:window,Uh="@griffel/";function iw(e,t){return Hh[Symbol.for(Uh+e)]||(Hh[Symbol.for(Uh+e)]=t),Hh[Symbol.for(Uh+e)]}const Mp=iw("DEFINITION_LOOKUP_TABLE",{}),Pc="data-make-styles-bucket",Pp=7,yg="___",ow=yg.length+Pp,aw=0,sw=1;function lw(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function uw(e){const t=e.length;if(t===Pp)return e;for(let n=t;n0&&(t+=c.slice(0,d)),n+=f,r[u]=f}}}if(n==="")return t.slice(0,-1);const i=v5[n];if(i!==void 0)return t+i;const o=[];for(let u=0;uo.cssText):r}}}const hw=["r","d","l","v","w","f","i","h","a","k","t","m"],T5=hw.reduce((e,t,n)=>(e[t]=n,e),{});function mw(e,t,n,r,i={}){const o=e==="m",a=o?e+i.m:e;if(!r.stylesheets[a]){const s=t&&t.createElement("style"),l=fw(s,e,{...r.styleElementAttributes,...o&&{media:i.m}});r.stylesheets[a]=l,t&&s&&t.head.insertBefore(s,pw(t,n,e,r,i))}return r.stylesheets[a]}function pw(e,t,n,r,i){const o=T5[n];let a=c=>o-T5[c.getAttribute(Pc)],s=e.head.querySelectorAll(`[${Pc}]`);if(n==="m"&&i){const c=e.head.querySelectorAll(`[${Pc}="${n}"]`);c.length&&(s=c,a=d=>r.compareMediaQueries(i.m,d.media))}const l=s.length;let u=l-1;for(;u>=0;){const c=s.item(u);if(a(c)>0)return c.nextSibling;u--}return l>0?s.item(0):t?t.nextSibling:null}let gw=0;const Ew=(e,t)=>et?1:0;function vw(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:n,insertionPoint:r,styleElementAttributes:i,compareMediaQueries:o=Ew}=t,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:o,id:`d${gw++}`,insertCSSRules(s){for(const l in s){const u=s[l];for(let c=0,d=u.length;c{const{title:t,primaryFill:n="currentColor"}=e,r=Pi(e,["title","primaryFill"]),i=Object.assign(Object.assign({},r),{title:void 0,fill:n}),o=bw();return i.className=cw(o.root,i.className),t&&(i["aria-label"]=t),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},Iw=(e,t)=>{const n=r=>{const i=kw(r);return E.createElement(e,Object.assign({},i))};return n.displayName=t,n},Va=Iw,Fw=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z",fill:t}))},Nw=Va(Fw,"CopyRegular"),xw=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 9.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5ZM10 6a.5.5 0 0 1 .5.41V11a.5.5 0 0 1-1 .09V6.5c0-.28.22-.5.5-.5Z",fill:t}))},Dw=Va(xw,"ErrorCircleRegular"),ww=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:t}))},Rw=Va(ww,"SendRegular"),Ow=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M9.72 2.08a.5.5 0 0 1 .56 0c1.94 1.3 4.03 2.1 6.3 2.43A.5.5 0 0 1 17 5v4.34c-.26-.38-.6-.7-1-.94V5.43a15.97 15.97 0 0 1-5.6-2.08L10 3.1l-.4.25A15.97 15.97 0 0 1 4 5.43V9.5c0 3.4 1.97 5.86 6 7.46V17a2 2 0 0 0 .24.94l-.06.03a.5.5 0 0 1-.36 0C5.31 16.23 3 13.39 3 9.5V5a.5.5 0 0 1 .43-.5 15.05 15.05 0 0 0 6.3-2.42ZM12.5 12v-1a2 2 0 1 1 4 0v1h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h.5Zm1-1v1h2v-1a1 1 0 1 0-2 0Zm1.75 4a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z",fill:t}))},Mw=Va(Ow,"ShieldLockRegular"),Pw=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm3-2a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6Z",fill:t}))},Lw=Va(Pw,"SquareRegular"),Bw=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M12.48 18.3c-.8.83-2.09.38-2.43-.6-.28-.8-.64-1.77-1-2.48C8 13.1 7.38 11.9 5.67 10.37c-.23-.2-.52-.36-.84-.49-1.13-.44-2.2-1.61-1.91-3l.35-1.77a2.5 2.5 0 0 1 1.8-1.92l5.6-1.53a4.5 4.5 0 0 1 5.6 3.54l.69 3.76A3 3 0 0 1 14 12.5h-.89l.01.05c.08.41.18.97.24 1.58.07.62.1 1.29.05 1.92a3.68 3.68 0 0 1-.5 1.73c-.11.16-.27.35-.44.52Z",fill:t}))},Hw=Va(Bw,"ThumbDislike20Filled"),Uw=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M12.48 1.7c-.8-.83-2.09-.38-2.43.6-.28.8-.64 1.77-1 2.48C8 6.9 7.38 8.1 5.67 9.63c-.23.2-.52.36-.84.49-1.13.44-2.2 1.61-1.91 3l.35 1.77a2.5 2.5 0 0 0 1.8 1.92l5.6 1.52a4.5 4.5 0 0 0 5.6-3.53l.69-3.76A3 3 0 0 0 14 7.5h-.89l.01-.05c.08-.41.18-.97.24-1.59.07-.6.1-1.28.05-1.9a3.68 3.68 0 0 0-.5-1.74 4.16 4.16 0 0 0-.44-.52Z",fill:t}))},zw=Va(Uw,"ThumbLike20Filled"),Gw="_shareButtonRoot_19k49_1",Ww="_historyButtonRoot_19k49_24",cC={shareButtonRoot:Gw,historyButtonRoot:Ww},jw=({onClick:e,text:t})=>H(Zu,{className:cC.shareButtonRoot,iconProps:{iconName:"Share"},onClick:e,text:t}),Kw=({onClick:e,text:t})=>H(p1,{className:cC.historyButtonRoot,text:t,iconProps:{iconName:"History"},onClick:e}),$w=(e,t)=>{switch(t.type){case"TOGGLE_CHAT_HISTORY":return{...e,isChatHistoryOpen:!e.isChatHistoryOpen};case"UPDATE_CURRENT_CHAT":return{...e,currentChat:t.payload};case"UPDATE_CHAT_HISTORY_LOADING_STATE":return{...e,chatHistoryLoadingState:t.payload};case"UPDATE_CHAT_HISTORY":if(!e.chatHistory||!e.currentChat)return e;let n=e.chatHistory.findIndex(a=>a.id===t.payload.id);if(n!==-1){let a=[...e.chatHistory];return a[n]=e.currentChat,{...e,chatHistory:a}}else return{...e,chatHistory:[...e.chatHistory,t.payload]};case"UPDATE_CHAT_TITLE":if(!e.chatHistory)return{...e,chatHistory:[]};let r=e.chatHistory.map(a=>{var s;return a.id===t.payload.id?(((s=e.currentChat)==null?void 0:s.id)===t.payload.id&&(e.currentChat.title=t.payload.title),{...a,title:t.payload.title}):a});return{...e,chatHistory:r};case"DELETE_CHAT_ENTRY":if(!e.chatHistory)return{...e,chatHistory:[]};let i=e.chatHistory.filter(a=>a.id!==t.payload);return e.currentChat=null,{...e,chatHistory:i};case"DELETE_CHAT_HISTORY":return{...e,chatHistory:[],filteredChatHistory:[],currentChat:null};case"DELETE_CURRENT_CHAT_MESSAGES":if(!e.currentChat||!e.chatHistory)return e;const o={...e.currentChat,messages:[]};return{...e,currentChat:o};case"FETCH_CHAT_HISTORY":return{...e,chatHistory:t.payload};case"SET_COSMOSDB_STATUS":return{...e,isCosmosDBAvailable:t.payload};case"FETCH_FRONTEND_SETTINGS":return{...e,frontendSettings:t.payload};case"SET_FEEDBACK_STATE":return{...e,feedbackState:{...e.feedbackState,[t.payload.answerId]:t.payload.feedback}};default:return e}};var Tn=(e=>(e.NotConfigured="CosmosDB is not configured",e.NotWorking="CosmosDB is not working",e.InvalidCredentials="CosmosDB has invalid credentials",e.InvalidDatabase="Invalid CosmosDB database name",e.InvalidContainer="Invalid CosmosDB container name",e.Working="CosmosDB is configured and working",e))(Tn||{}),xn=(e=>(e.Loading="loading",e.Success="success",e.Fail="fail",e.NotStarted="notStarted",e))(xn||{}),we=(e=>(e.Neutral="neutral",e.Positive="positive",e.Negative="negative",e.MissingCitation="missing_citation",e.WrongCitation="wrong_citation",e.OutOfScope="out_of_scope",e.InaccurateOrIrrelevant="inaccurate_or_irrelevant",e.OtherUnhelpful="other_unhelpful",e.HateSpeech="hate_speech",e.Violent="violent",e.Sexual="sexual",e.Manipulative="manipulative",e.OtherHarmful="other_harmlful",e))(we||{});async function Vw(e,t){return await fetch("/conversation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e.messages}),signal:t})}async function Yw(){const e=await fetch("/.auth/me");return e.ok?await e.json():(console.log("No identity provider found. Access to chat will be blocked."),[])}const dC=async(e=0)=>await fetch(`/history/list?offset=${e}`,{method:"GET"}).then(async n=>{const r=await n.json();return Array.isArray(r)?await Promise.all(r.map(async o=>{let a=[];return a=await qw(o.id).then(l=>l).catch(l=>(console.error("error fetching messages: ",l),[])),{id:o.id,title:o.title,date:o.createdAt,messages:a}})):(console.error("There was an issue fetching your data."),null)}).catch(n=>(console.error("There was an issue fetching your data."),null)),qw=async e=>await fetch("/history/read",{method:"POST",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(async n=>{if(!n)return[];const r=await n.json();let i=[];return r!=null&&r.messages&&r.messages.forEach(o=>{const a={id:o.id,role:o.role,date:o.createdAt,content:o.content,feedback:o.feedback??void 0};i.push(a)}),i}).catch(n=>(console.error("There was an issue fetching your data."),[])),_5=async(e,t,n)=>{let r;return n?r=JSON.stringify({conversation_id:n,messages:e.messages}):r=JSON.stringify({messages:e.messages}),await fetch("/history/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:r,signal:t}).then(o=>o).catch(o=>(console.error("There was an issue fetching your data."),new Response))},Qw=async(e,t)=>await fetch("/history/update",{method:"POST",body:JSON.stringify({conversation_id:t,messages:e}),headers:{"Content-Type":"application/json"}}).then(async r=>r).catch(r=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),Xw=async e=>await fetch("/history/delete",{method:"DELETE",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(n=>n).catch(n=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),Zw=async()=>await fetch("/history/delete_all",{method:"DELETE",body:JSON.stringify({}),headers:{"Content-Type":"application/json"}}).then(t=>t).catch(t=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),Jw=async e=>await fetch("/history/clear",{method:"POST",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(n=>n).catch(n=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),eR=async(e,t)=>await fetch("/history/rename",{method:"POST",body:JSON.stringify({conversation_id:e,title:t}),headers:{"Content-Type":"application/json"}}).then(r=>r).catch(r=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),tR=async()=>await fetch("/history/ensure",{method:"GET"}).then(async t=>{let n=await t.json(),r;return n.message?r=Tn.Working:t.status===500?r=Tn.NotWorking:t.status===401?r=Tn.InvalidCredentials:t.status===422?r=n.error:r=Tn.NotConfigured,t.ok?{cosmosDB:!0,status:r}:{cosmosDB:!1,status:r}}).catch(t=>(console.error("There was an issue fetching your data."),{cosmosDB:!1,status:t})),nR=async()=>await fetch("/frontend_settings",{method:"GET"}).then(t=>t.json()).catch(t=>(console.error("There was an issue fetching your data."),null)),zh=async(e,t)=>await fetch("/history/message_feedback",{method:"POST",body:JSON.stringify({message_id:e,message_feedback:t}),headers:{"Content-Type":"application/json"}}).then(r=>r).catch(r=>(console.error("There was an issue logging feedback."),{...new Response,ok:!1,status:500})),rR={isChatHistoryOpen:!1,chatHistoryLoadingState:xn.Loading,chatHistory:null,filteredChatHistory:null,currentChat:null,isCosmosDBAvailable:{cosmosDB:!1,status:Tn.NotConfigured},frontendSettings:null,feedbackState:{}},ra=E.createContext(void 0),iR=({children:e})=>{const[t,n]=E.useReducer($w,rR);return E.useEffect(()=>{const r=async(o=0)=>await dC(o).then(s=>(n(s?{type:"FETCH_CHAT_HISTORY",payload:s}:{type:"FETCH_CHAT_HISTORY",payload:null}),s)).catch(s=>(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Fail}),n({type:"FETCH_CHAT_HISTORY",payload:null}),console.error("There was an issue fetching your data."),null));(async()=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Loading}),tR().then(o=>{o!=null&&o.cosmosDB?r().then(a=>{a?(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Success}),n({type:"SET_COSMOSDB_STATUS",payload:o})):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:Tn.NotWorking}}))}).catch(a=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:Tn.NotWorking}})}):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:o}))}).catch(o=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:Tn.NotConfigured}})})})()},[]),E.useEffect(()=>{(async()=>{nR().then(i=>{n({type:"FETCH_FRONTEND_SETTINGS",payload:i})}).catch(i=>{console.error("There was an issue fetching your data.")})})()},[]),H(ra.Provider,{value:{state:t,dispatch:n},children:e})},oR=()=>{var T,_,C;const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[i,o]=E.useState("Copy URL"),[a,s]=E.useState("Share"),[l,u]=E.useState("Hide chat history"),[c,d]=E.useState("Show chat history"),f=E.useContext(ra),m=(T=f==null?void 0:f.state.frontendSettings)==null?void 0:T.ui,h=()=>{t(!0)},v=()=>{t(!1),r(!1),o("Copy URL")},y=()=>{navigator.clipboard.writeText(window.location.href),r(!0)},p=()=>{f==null||f.dispatch({type:"TOGGLE_CHAT_HISTORY"})};return E.useEffect(()=>{n&&o("Copied URL")},[n]),E.useEffect(()=>{},[f==null?void 0:f.state.isCosmosDBAvailable.status]),E.useEffect(()=>{const k=()=>{window.innerWidth<480?(s(void 0),u("Hide history"),d("Show history")):(s("Share"),u("Hide chat history"),d("Show chat history"))};return window.addEventListener("resize",k),k(),()=>window.removeEventListener("resize",k)},[]),fe("div",{className:vi.layout,children:[H("header",{className:vi.header,role:"banner",children:fe(ge,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",children:[fe(ge,{horizontal:!0,verticalAlign:"center",children:[H("img",{src:m!=null&&m.logo?m.logo:sC,className:vi.headerIcon,"aria-hidden":"true"}),H(u7,{to:"/",className:vi.headerTitleContainer,children:H("h1",{className:vi.headerTitle,children:m==null?void 0:m.title})})]}),fe(ge,{horizontal:!0,tokens:{childrenGap:4},className:vi.shareButtonContainer,children:[((_=f==null?void 0:f.state.isCosmosDBAvailable)==null?void 0:_.status)!==Tn.NotConfigured&&H(Kw,{onClick:p,text:(C=f==null?void 0:f.state)!=null&&C.isChatHistoryOpen?l:c}),(m==null?void 0:m.show_share_button)&&H(jw,{onClick:h,text:a})]})]})}),H(e7,{}),H(fl,{onDismiss:v,hidden:!e,styles:{main:[{selectors:{["@media (min-width: 480px)"]:{maxWidth:"600px",background:"#FFFFFF",boxShadow:"0px 14px 28.8px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px",maxHeight:"200px",minHeight:"100px"}}}]},dialogContentProps:{title:"Share the web app",showCloseButton:!0},children:fe(ge,{horizontal:!0,verticalAlign:"center",style:{gap:"8px"},children:[H(gg,{className:vi.urlTextBox,defaultValue:window.location.href,readOnly:!0}),fe("div",{className:vi.copyButtonContainer,role:"button",tabIndex:0,"aria-label":"Copy",onClick:y,onKeyDown:k=>k.key==="Enter"||k.key===" "?y():null,children:[H(Nw,{className:vi.copyButton}),H("span",{className:vi.copyButtonText,children:i})]})]})})]})},aR=()=>H("h1",{children:"404"}),y5=["http","https","mailto","tel"];function sR(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh - * @license MIT - */var fC=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};function pu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?C5(e.position):"start"in e||"end"in e?C5(e):"line"in e||"column"in e?Lp(e):""}function Lp(e){return S5(e&&e.line)+":"+S5(e&&e.column)}function C5(e){return Lp(e&&e.start)+"-"+Lp(e&&e.end)}function S5(e){return e&&typeof e=="number"?e:1}class Ur extends Error{constructor(t,n,r){const i=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const a=r.indexOf(":");a===-1?i[1]=r:(i[0]=r.slice(0,a),i[1]=r.slice(a+1))}n&&("type"in n||"position"in n?n.position&&(o=n.position):"start"in n||"end"in n?o=n:("line"in n||"column"in n)&&(o.start=n)),this.name=pu(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}Ur.prototype.file="";Ur.prototype.name="";Ur.prototype.reason="";Ur.prototype.message="";Ur.prototype.stack="";Ur.prototype.fatal=null;Ur.prototype.column=null;Ur.prototype.line=null;Ur.prototype.source=null;Ur.prototype.ruleId=null;Ur.prototype.position=null;const Ci={basename:lR,dirname:uR,extname:cR,join:dR,sep:"/"};function lR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');g1(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function uR(e){if(g1(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function cR(e){g1(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function dR(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function hR(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function g1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const mR={cwd:pR};function pR(){return"/"}function Bp(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function gR(e){if(typeof e=="string")e=new URL(e);else if(!Bp(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ER(e)}function ER(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||Lc.call(t,i)},x5=function(t,n){k5&&n.name==="__proto__"?k5(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},D5=function(t,n){if(n==="__proto__")if(Lc.call(t,n)){if(I5)return I5(t,n).value}else return;return t[n]},w5=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});la.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const yR=gC().freeze(),pC={}.hasOwnProperty;function gC(){const e=TR(),t=[];let n={},r,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=s,o.attachers=t,o.use=l,o.parse=u,o.stringify=c,o.run=d,o.runSync=f,o.process=m,o.processSync=h,o;function o(){const v=gC();let y=-1;for(;++y{if(A||!S||!N)k(A);else{const P=o.stringify(S,N);P==null||(AR(P)?N.value=P:N.result=P),k(A,N)}});function k(A,S){A||!S?_(A):T?T(S):y(null,S)}}}function h(v){let y;o.freeze(),Kh("processSync",o.Parser),$h("processSync",o.Compiler);const p=Ll(v);return o.process(p,T),M5("processSync","process",y),p;function T(_){y=!0,b5(_)}}}function R5(e,t){return typeof e=="function"&&e.prototype&&(CR(e.prototype)||t in e.prototype)}function CR(e){let t;for(t in e)if(pC.call(e,t))return!0;return!1}function Kh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function $h(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Vh(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 O5(e){if(!Hp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function M5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ll(e){return SR(e)?e:new hC(e)}function SR(e){return Boolean(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function AR(e){return typeof e=="string"||fC(e)}const bR={};function kR(e,t){const n=t||bR,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return EC(e,r,i)}function EC(e,t,n){if(IR(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return P5(e.children,t,n)}return Array.isArray(e)?P5(e,t,n):""}function P5(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),[].splice.apply(e,a);else for(n&&[].splice.apply(e,[t,n]);o0?(pr(e,e.length,0,t),e):t}const L5={}.hasOwnProperty;function vC(e){const t={};let n=-1;for(;++na))return;const S=t.events.length;let N=S,P,I;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(P){I=t.events[N][1].end;break}P=!0}for(p(r),A=S;A_;){const k=n[C];t.containerState=k[1],k[0].exit.call(t,e)}n.length=_}function T(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function LR(e,t,n){return Le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Dd(e){if(e===null||vt(e)||za(e))return 1;if(ff(e))return 2}function hf(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);U5(d,-l),U5(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Nr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Nr(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Nr(u,hf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Nr(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Nr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,pr(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n=4?a(u):n(u)}function a(u){return u===null?l(u):he(u)?e.attempt(qR,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||he(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function XR(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):he(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Le(e,o,"linePrefix",4+1)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):he(a)?i(a):n(a)}}const ZR={name:"codeText",tokenize:tO,resolve:JR,previous:eO};function JR(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function SC(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(p){return p===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(p),e.exit(o),f):p===null||p===41||xd(p)?n(p):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(p))}function f(p){return p===62?(e.enter(o),e.consume(p),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(p))}function m(p){return p===62?(e.exit("chunkString"),e.exit(s),f(p)):p===null||p===60||he(p)?n(p):(e.consume(p),p===92?h:m)}function h(p){return p===60||p===62||p===92?(e.consume(p),m):m(p)}function v(p){return p===40?++c>u?n(p):(e.consume(p),v):p===41?c--?(e.consume(p),v):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(p)):p===null||vt(p)?c?n(p):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(p)):xd(p)?n(p):(e.consume(p),p===92?y:v)}function y(p){return p===40||p===41||p===92?(e.consume(p),v):v(p)}}function AC(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(o),c}function c(m){return m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs||s>999?n(m):m===93?(e.exit(o),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):he(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||he(m)||s++>999?(e.exit("chunkString"),c(m)):(e.consume(m),l=l||!st(m),m===92?f:d)}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function bC(e,t,n,r,i,o){let a;return s;function s(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===a?(e.exit(o),l(a)):f===null?n(f):he(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Le(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||he(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===a||f===92?(e.consume(f),c):c(f)}}function gu(e,t){let n;return r;function r(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):st(i)?Le(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function si(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const lO={name:"definition",tokenize:cO},uO={tokenize:dO,partial:!0};function cO(e,t,n){const r=this;let i;return o;function o(l){return e.enter("definition"),AC.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function a(l){return i=si(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),gu(e,SC(e,e.attempt(uO,Le(e,s,"whitespace"),Le(e,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(l)}function s(l){return l===null||he(l)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),t(l)):n(l)}}function dO(e,t,n){return r;function r(a){return vt(a)?gu(e,i)(a):n(a)}function i(a){return a===34||a===39||a===40?bC(e,Le(e,o,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):n(a)}function o(a){return a===null||he(a)?t(a):n(a)}}const fO={name:"hardBreakEscape",tokenize:hO};function hO(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(o),i}function i(o){return he(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}const mO={name:"headingAtx",tokenize:gO,resolve:pO};function pO(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},pr(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function gO(e,t,n){const r=this;let i=0;return o;function o(c){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&i++<6?(e.consume(c),a):c===null||vt(c)?(e.exit("atxHeadingSequence"),r.interrupt?t(c):s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):st(c)?Le(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||vt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const EO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],W5=["pre","script","style","textarea"],vO={name:"htmlFlow",tokenize:yO,resolveTo:_O,concrete:!0},TO={tokenize:CO,partial:!0};function _O(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function yO(e,t,n){const r=this;let i,o,a,s,l;return u;function u(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),c}function c(F){return F===33?(e.consume(F),d):F===47?(e.consume(F),h):F===63?(e.consume(F),i=3,r.interrupt?t:z):Mn(F)?(e.consume(F),a=String.fromCharCode(F),o=!0,v):n(F)}function d(F){return F===45?(e.consume(F),i=2,f):F===91?(e.consume(F),i=5,a="CDATA[",s=0,m):Mn(F)?(e.consume(F),i=4,r.interrupt?t:z):n(F)}function f(F){return F===45?(e.consume(F),r.interrupt?t:z):n(F)}function m(F){return F===a.charCodeAt(s++)?(e.consume(F),s===a.length?r.interrupt?t:L:m):n(F)}function h(F){return Mn(F)?(e.consume(F),a=String.fromCharCode(F),v):n(F)}function v(F){return F===null||F===47||F===62||vt(F)?F!==47&&o&&W5.includes(a.toLowerCase())?(i=1,r.interrupt?t(F):L(F)):EO.includes(a.toLowerCase())?(i=6,F===47?(e.consume(F),y):r.interrupt?t(F):L(F)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(F):o?T(F):p(F)):F===45||yn(F)?(e.consume(F),a+=String.fromCharCode(F),v):n(F)}function y(F){return F===62?(e.consume(F),r.interrupt?t:L):n(F)}function p(F){return st(F)?(e.consume(F),p):P(F)}function T(F){return F===47?(e.consume(F),P):F===58||F===95||Mn(F)?(e.consume(F),_):st(F)?(e.consume(F),T):P(F)}function _(F){return F===45||F===46||F===58||F===95||yn(F)?(e.consume(F),_):C(F)}function C(F){return F===61?(e.consume(F),k):st(F)?(e.consume(F),C):T(F)}function k(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),l=F,A):st(F)?(e.consume(F),k):(l=null,S(F))}function A(F){return F===null||he(F)?n(F):F===l?(e.consume(F),N):(e.consume(F),A)}function S(F){return F===null||F===34||F===39||F===60||F===61||F===62||F===96||vt(F)?C(F):(e.consume(F),S)}function N(F){return F===47||F===62||st(F)?T(F):n(F)}function P(F){return F===62?(e.consume(F),I):n(F)}function I(F){return st(F)?(e.consume(F),I):F===null||he(F)?L(F):n(F)}function L(F){return F===45&&i===2?(e.consume(F),W):F===60&&i===1?(e.consume(F),O):F===62&&i===4?(e.consume(F),$):F===63&&i===3?(e.consume(F),z):F===93&&i===5?(e.consume(F),M):he(F)&&(i===6||i===7)?e.check(TO,$,B)(F):F===null||he(F)?B(F):(e.consume(F),L)}function B(F){return e.exit("htmlFlowData"),Y(F)}function Y(F){return F===null?b(F):he(F)?e.attempt({tokenize:V,partial:!0},Y,b)(F):(e.enter("htmlFlowData"),L(F))}function V(F,me,xe){return ut;function ut(Ge){return F.enter("lineEnding"),F.consume(Ge),F.exit("lineEnding"),Ce}function Ce(Ge){return r.parser.lazy[r.now().line]?xe(Ge):me(Ge)}}function W(F){return F===45?(e.consume(F),z):L(F)}function O(F){return F===47?(e.consume(F),a="",Q):L(F)}function Q(F){return F===62&&W5.includes(a.toLowerCase())?(e.consume(F),$):Mn(F)&&a.length<8?(e.consume(F),a+=String.fromCharCode(F),Q):L(F)}function M(F){return F===93?(e.consume(F),z):L(F)}function z(F){return F===62?(e.consume(F),$):F===45&&i===2?(e.consume(F),z):L(F)}function $(F){return F===null||he(F)?(e.exit("htmlFlowData"),b(F)):(e.consume(F),$)}function b(F){return e.exit("htmlFlow"),t(F)}}function CO(e,t,n){return r;function r(i){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(E1,t,n)}}const SO={name:"htmlText",tokenize:AO};function AO(e,t,n){const r=this;let i,o,a,s;return l;function l(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),u}function u(b){return b===33?(e.consume(b),c):b===47?(e.consume(b),S):b===63?(e.consume(b),k):Mn(b)?(e.consume(b),I):n(b)}function c(b){return b===45?(e.consume(b),d):b===91?(e.consume(b),o="CDATA[",a=0,y):Mn(b)?(e.consume(b),C):n(b)}function d(b){return b===45?(e.consume(b),f):n(b)}function f(b){return b===null||b===62?n(b):b===45?(e.consume(b),m):h(b)}function m(b){return b===null||b===62?n(b):h(b)}function h(b){return b===null?n(b):b===45?(e.consume(b),v):he(b)?(s=h,M(b)):(e.consume(b),h)}function v(b){return b===45?(e.consume(b),$):h(b)}function y(b){return b===o.charCodeAt(a++)?(e.consume(b),a===o.length?p:y):n(b)}function p(b){return b===null?n(b):b===93?(e.consume(b),T):he(b)?(s=p,M(b)):(e.consume(b),p)}function T(b){return b===93?(e.consume(b),_):p(b)}function _(b){return b===62?$(b):b===93?(e.consume(b),_):p(b)}function C(b){return b===null||b===62?$(b):he(b)?(s=C,M(b)):(e.consume(b),C)}function k(b){return b===null?n(b):b===63?(e.consume(b),A):he(b)?(s=k,M(b)):(e.consume(b),k)}function A(b){return b===62?$(b):k(b)}function S(b){return Mn(b)?(e.consume(b),N):n(b)}function N(b){return b===45||yn(b)?(e.consume(b),N):P(b)}function P(b){return he(b)?(s=P,M(b)):st(b)?(e.consume(b),P):$(b)}function I(b){return b===45||yn(b)?(e.consume(b),I):b===47||b===62||vt(b)?L(b):n(b)}function L(b){return b===47?(e.consume(b),$):b===58||b===95||Mn(b)?(e.consume(b),B):he(b)?(s=L,M(b)):st(b)?(e.consume(b),L):$(b)}function B(b){return b===45||b===46||b===58||b===95||yn(b)?(e.consume(b),B):Y(b)}function Y(b){return b===61?(e.consume(b),V):he(b)?(s=Y,M(b)):st(b)?(e.consume(b),Y):L(b)}function V(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,W):he(b)?(s=V,M(b)):st(b)?(e.consume(b),V):(e.consume(b),i=void 0,Q)}function W(b){return b===i?(e.consume(b),O):b===null?n(b):he(b)?(s=W,M(b)):(e.consume(b),W)}function O(b){return b===62||b===47||vt(b)?L(b):n(b)}function Q(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===62||vt(b)?L(b):(e.consume(b),Q)}function M(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Le(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function z(b){return e.enter("htmlTextData"),s(b)}function $(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}}const Sg={name:"labelEnd",tokenize:xO,resolveTo:NO,resolveAll:FO},bO={tokenize:DO},kO={tokenize:wO},IO={tokenize:RO};function FO(e){let t=-1,n;for(;++t-1&&(a[0]=a[0].slice(r)),o>0&&a.push(e[i].slice(0,o))),a}function rM(e,t){let n=-1;const r=[];let i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const EM=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function NC(e){return e.replace(EM,vM)}function vM(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return FC(n.slice(o?2:1),o?16:10)}return Cg(n)||e}const xC={}.hasOwnProperty,TM=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),_M(n)(gM(mM(n).document().write(pM()(e,t,!0))))};function _M(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(We),autolinkProtocol:L,autolinkEmail:L,atxHeading:s(Yt),blockQuote:s(ct),characterEscape:L,characterReference:L,codeFenced:s($t),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s($t,l),codeText:s(on,l),codeTextData:L,data:L,codeFlowValue:L,definition:s(Vt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(fn),hardBreakEscape:s(ie),hardBreakTrailing:s(ie),htmlFlow:s(Se,l),htmlFlowData:L,htmlText:s(Se,l),htmlTextData:L,image:s(ve),label:l,link:s(We),listItem:s(nt),listItemValue:h,listOrdered:s(Pe,m),listUnordered:s(Pe),paragraph:s(pe),reference:ut,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(Yt),strong:s(Gn),thematicBreak:s(An)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:je,autolinkProtocol:_t,blockQuote:c(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:Ge,characterReferenceMarkerNumeric:Ge,characterReferenceValue:Ct,codeFenced:c(T),codeFencedFence:p,codeFencedFenceInfo:v,codeFencedFenceMeta:y,codeFlowValue:B,codeIndented:c(_),codeText:c(Q),codeTextData:B,data:B,definition:c(),definitionDestinationString:A,definitionLabelString:C,definitionTitleString:k,emphasis:c(),hardBreakEscape:c(V),hardBreakTrailing:c(V),htmlFlow:c(W),htmlFlowData:B,htmlText:c(O),htmlTextData:B,image:c(z),label:b,labelText:$,lineEnding:Y,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Ce,resourceDestinationString:F,resourceTitleString:me,resource:xe,setextHeading:c(I),setextHeadingLineSequence:P,setextHeadingText:N,strong:c(),thematicBreak:c()}};DC(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(U){let q={type:"root",children:[]};const oe={stack:[q],tokenStack:[],config:t,enter:u,exit:d,buffer:l,resume:f,setData:o,getData:a},Ee=[];let X=-1;for(;++X0){const Ye=oe.tokenStack[oe.tokenStack.length-1];(Ye[1]||$5).call(oe,void 0,Ye[0])}for(q.position={start:_o(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:_o(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},X=-1;++X{const r=this.data("settings");return TM(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function SM(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function AM(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` -`}]}function bM(e,t){const n=t.value?t.value+` -`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function kM(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IM(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hl(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function wC(e,t){const n=String(t.identifier).toUpperCase(),r=hl(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function FM(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},wC(e,{type:"footnoteReference",identifier:i,position:t.position})}function NM(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xM(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function RC(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function DM(e,t){const n=e.definition(t.identifier);if(!n)return RC(e,t);const r={src:hl(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function wM(e,t){const n={src:hl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function RM(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function OM(e,t){const n=e.definition(t.identifier);if(!n)return RC(e,t);const r={href:hl(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function MM(e,t){const n={href:hl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function PM(e,t,n){const r=e.all(t),i=n?LM(n):OC(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s1}function BM(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i-1?r.offset:null}}}function WM(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=v1(t.children[1]),l=mf(t.children[t.children.length-1]);s.line&&l.line&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function jM(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(q5(t.slice(i),i>0,!1)),o.join("")}function q5(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===V5||o===Y5;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===V5||o===Y5;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function VM(e,t){const n={type:"text",value:$M(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function YM(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const qM={blockquote:SM,break:AM,code:bM,delete:kM,emphasis:IM,footnoteReference:wC,footnote:FM,heading:NM,html:xM,imageReference:DM,image:wM,inlineCode:RM,linkReference:OM,link:MM,listItem:PM,list:BM,paragraph:HM,root:UM,strong:zM,table:WM,tableCell:KM,tableRow:jM,text:VM,thematicBreak:YM,toml:J1,yaml:J1,definition:J1,footnoteDefinition:J1};function J1(){return null}const Ag=function(e){if(e==null)return JM;if(typeof e=="string")return ZM(e);if(typeof e=="object")return Array.isArray(e)?QM(e):XM(e);if(typeof e=="function")return pf(e);throw new Error("Expected function, string, or object as test")};function QM(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let f=[],m,h,v;if((!t||i(s,l,u[u.length-1]||null))&&(f=nP(n(s,u)),f[0]===Q5))return f;if(s.children&&f[0]!==tP)for(h=(r?s.children.length:-1)+o,v=u.concat(s);h>-1&&h{const i=Z5(r.identifier);i&&!X5.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Z5(r);return i&&X5.call(t,i)?t[i]:null}}function Z5(e){return String(e||"").toUpperCase()}const wd={}.hasOwnProperty;function oP(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...qM,...n.handlers},a.definition=iP(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=aP,a.applyData=sP,a.one=s,a.all=l,a.wrap=uP,a.augment=o,nl(e,"footnoteDefinition",u=>{const c=String(u.identifier).toUpperCase();wd.call(i,c)||(i[c]=u)}),a;function o(u,c){if(u&&"data"in u&&u.data){const d=u.data;d.hName&&(c.type!=="element"&&(c={type:"element",tagName:"",properties:{},children:[]}),c.tagName=d.hName),c.type==="element"&&d.hProperties&&(c.properties={...c.properties,...d.hProperties}),"children"in c&&c.children&&d.hChildren&&(c.children=d.hChildren)}if(u){const d="type"in u?u:{position:u};rP(d)||(c.position={start:v1(d),end:mf(d)})}return c}function a(u,c,d,f){return Array.isArray(d)&&(f=d,d={}),o(u,{type:"element",tagName:c,properties:d||{},children:f||[]})}function s(u,c){return LC(a,u,c)}function l(u){return bg(a,u)}}function aP(e,t){e.position&&(t.position=GM(e))}function sP(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function LC(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return wd.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:bg(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):lP(e,t)}function bg(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i0&&n.push({type:"text",value:` -`}),n}function cP(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const u=i[i.length-1];if(u&&u.type==="element"&&u.tagName==="p"){const d=u.children[u.children.length-1];d&&d.type==="text"?d.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...l)}else i.push(...l);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,c),t.push(c)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` -`}]}}function BC(e,t){const n=oP(e,t),r=n.one(e,null),i=cP(n);return i&&r.children.push({type:"text",value:` -`},i),Array.isArray(r)?{type:"root",children:r}:r}const dP=function(e,t){return e&&"run"in e?hP(e,t):mP(e||t)},fP=dP;function hP(e,t){return(n,r,i)=>{e.run(BC(n,t),r,o=>{i(o)})}}function mP(e){return t=>BC(t,e)}var ye={},pP={get exports(){return ye},set exports(e){ye=e}},gP="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",EP=gP,vP=EP;function HC(){}function UC(){}UC.resetWarningCache=HC;var TP=function(){function e(r,i,o,a,s,l){if(l!==vP){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:UC,resetWarningCache:HC};return n.PropTypes=n,n};pP.exports=TP();class T1{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}T1.prototype.property={};T1.prototype.normal={};T1.prototype.space=null;function zC(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&AP.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ev,IP);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ev.test(o)){let a=o.replace(bP,kP);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=kg}return new i(r,t)}function kP(e){return"-"+e.toLowerCase()}function IP(e){return e.charAt(1).toUpperCase()}const tv={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"},_1=zC([jC,WC,VC,YC,CP],"html"),pl=zC([jC,WC,VC,YC,SP],"svg");function FP(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{nl(t,"element",(n,r,i)=>{const o=i;let a;if(e.allowedElements?a=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(n.tagName)),!a&&e.allowElement&&typeof r=="number"&&(a=!e.allowElement(n,r,o)),a&&typeof r=="number")return e.unwrapDisallowed&&n.children?o.children.splice(r,1,...n.children):o.children.splice(r,1),r})}}var Wp={},NP={get exports(){return Wp},set exports(e){Wp=e}},Ze={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ig=Symbol.for("react.element"),Fg=Symbol.for("react.portal"),Ef=Symbol.for("react.fragment"),vf=Symbol.for("react.strict_mode"),Tf=Symbol.for("react.profiler"),_f=Symbol.for("react.provider"),yf=Symbol.for("react.context"),xP=Symbol.for("react.server_context"),Cf=Symbol.for("react.forward_ref"),Sf=Symbol.for("react.suspense"),Af=Symbol.for("react.suspense_list"),bf=Symbol.for("react.memo"),kf=Symbol.for("react.lazy"),DP=Symbol.for("react.offscreen"),qC;qC=Symbol.for("react.module.reference");function Gr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ig:switch(e=e.type,e){case Ef:case Tf:case vf:case Sf:case Af:return e;default:switch(e=e&&e.$$typeof,e){case xP:case yf:case Cf:case kf:case bf:case _f:return e;default:return t}}case Fg:return t}}}Ze.ContextConsumer=yf;Ze.ContextProvider=_f;Ze.Element=Ig;Ze.ForwardRef=Cf;Ze.Fragment=Ef;Ze.Lazy=kf;Ze.Memo=bf;Ze.Portal=Fg;Ze.Profiler=Tf;Ze.StrictMode=vf;Ze.Suspense=Sf;Ze.SuspenseList=Af;Ze.isAsyncMode=function(){return!1};Ze.isConcurrentMode=function(){return!1};Ze.isContextConsumer=function(e){return Gr(e)===yf};Ze.isContextProvider=function(e){return Gr(e)===_f};Ze.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ig};Ze.isForwardRef=function(e){return Gr(e)===Cf};Ze.isFragment=function(e){return Gr(e)===Ef};Ze.isLazy=function(e){return Gr(e)===kf};Ze.isMemo=function(e){return Gr(e)===bf};Ze.isPortal=function(e){return Gr(e)===Fg};Ze.isProfiler=function(e){return Gr(e)===Tf};Ze.isStrictMode=function(e){return Gr(e)===vf};Ze.isSuspense=function(e){return Gr(e)===Sf};Ze.isSuspenseList=function(e){return Gr(e)===Af};Ze.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ef||e===Tf||e===vf||e===Sf||e===Af||e===DP||typeof e=="object"&&e!==null&&(e.$$typeof===kf||e.$$typeof===bf||e.$$typeof===_f||e.$$typeof===yf||e.$$typeof===Cf||e.$$typeof===qC||e.getModuleId!==void 0)};Ze.typeOf=Gr;(function(e){e.exports=Ze})(NP);const wP=u_(Wp);function RP(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function nv(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function QC(e){return e.join(" ").trim()}function rv(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function XC(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var Rd={},OP={get exports(){return Rd},set exports(e){Rd=e}},iv=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,MP=/\n/g,PP=/^\s*/,LP=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,BP=/^:\s*/,HP=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,UP=/^[;\s]*/,zP=/^\s+|\s+$/g,GP=` -`,ov="/",av="*",Sa="",WP="comment",jP="declaration",KP=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var v=h.match(MP);v&&(n+=v.length);var y=h.lastIndexOf(GP);r=~y?h.length-y:r+h.length}function o(){var h={line:n,column:r};return function(v){return v.position=new a(h),u(),v}}function a(h){this.start=h,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(h){var v=new Error(t.source+":"+n+":"+r+": "+h);if(v.reason=h,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(h){var v=h.exec(e);if(v){var y=v[0];return i(y),e=e.slice(y.length),v}}function u(){l(PP)}function c(h){var v;for(h=h||[];v=d();)v!==!1&&h.push(v);return h}function d(){var h=o();if(!(ov!=e.charAt(0)||av!=e.charAt(1))){for(var v=2;Sa!=e.charAt(v)&&(av!=e.charAt(v)||ov!=e.charAt(v+1));)++v;if(v+=2,Sa===e.charAt(v-1))return s("End of comment missing");var y=e.slice(2,v-2);return r+=2,i(y),e=e.slice(v),r+=2,h({type:WP,comment:y})}}function f(){var h=o(),v=l(LP);if(v){if(d(),!l(BP))return s("property missing ':'");var y=l(HP),p=h({type:jP,property:sv(v[0].replace(iv,Sa)),value:y?sv(y[0].replace(iv,Sa)):Sa});return l(UP),p}}function m(){var h=[];c(h);for(var v;v=f();)v!==!1&&(h.push(v),c(h));return h}return u(),m()};function sv(e){return e?e.replace(zP,Sa):Sa}var $P=KP;function ZC(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=$P(e),o=typeof t=="function",a,s,l=0,u=i.length;l0?Dn.createElement(m,l,d):Dn.createElement(m,l)}function QP(e){let t=-1;for(;++t for more info)`),delete ec[o]}const t=yR().use(CM).use(e.remarkPlugins||[]).use(fP,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(FP,e),n=new hC;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=Dn.createElement(Dn.Fragment,{},JC({options:e,schema:_1,listDepth:0},r));return e.className&&(i=Dn.createElement("div",{className:e.className},i)),i}Ng.propTypes={children:ye.string,className:ye.string,allowElement:ye.func,allowedElements:ye.arrayOf(ye.string),disallowedElements:ye.arrayOf(ye.string),unwrapDisallowed:ye.bool,remarkPlugins:ye.arrayOf(ye.oneOfType([ye.object,ye.func,ye.arrayOf(ye.oneOfType([ye.bool,ye.string,ye.object,ye.func,ye.arrayOf(ye.any)]))])),rehypePlugins:ye.arrayOf(ye.oneOfType([ye.object,ye.func,ye.arrayOf(ye.oneOfType([ye.bool,ye.string,ye.object,ye.func,ye.arrayOf(ye.any)]))])),sourcePos:ye.bool,rawSourcePos:ye.bool,skipHtml:ye.bool,includeElementIndex:ye.bool,transformLinkUri:ye.oneOfType([ye.func,ye.bool]),linkTarget:ye.oneOfType([ye.func,ye.string]),transformImageUri:ye.func,components:ye.object};const nL={tokenize:lL,partial:!0},e8={tokenize:uL,partial:!0},t8={tokenize:cL,partial:!0},n8={tokenize:dL,partial:!0},rL={tokenize:fL,partial:!0},r8={tokenize:aL,previous:o8},i8={tokenize:sL,previous:a8},po={tokenize:oL,previous:s8},Bi={},iL={text:Bi};let fa=48;for(;fa<123;)Bi[fa]=po,fa++,fa===58?fa=65:fa===91&&(fa=97);Bi[43]=po;Bi[45]=po;Bi[46]=po;Bi[95]=po;Bi[72]=[po,i8];Bi[104]=[po,i8];Bi[87]=[po,r8];Bi[119]=[po,r8];function oL(e,t,n){const r=this;let i,o;return a;function a(d){return!Kp(d)||!s8.call(r,r.previous)||xg(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return Kp(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(rL,c,u)(d):d===45||d===95||yn(d)?(o=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return o&&i&&Mn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function aL(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!o8.call(r,r.previous)||xg(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(nL,e.attempt(e8,e.attempt(t8,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function sL(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&a8.call(r,r.previous)&&!xg(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Mn(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?u:(o=!0,l)):n(d)}function u(d){return d===null||xd(d)||vt(d)||za(d)||ff(d)?n(d):e.attempt(e8,e.attempt(t8,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function lL(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function uL(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(n8,l,s)(u):u===null||vt(u)||za(u)||u!==45&&ff(u)?l(u):(o=!0,e.consume(u),a)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function l(u){return i||r||!o?n(u):t(u)}}function cL(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const hL={tokenize:yL,partial:!0};function mL(){return{document:{[91]:{tokenize:vL,continuation:{tokenize:TL},exit:_L}},text:{[91]:{tokenize:EL},[93]:{add:"after",tokenize:pL,resolveTo:gL}}}}function pL(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=si(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function gL(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={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",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,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 EL(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||vt(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(si(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return vt(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function vL(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(a>999||h===93&&!s||h===null||h===91||vt(h))return n(h);if(h===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=si(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return vt(h)||(s=!0),a++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),Le(e,m,"gfmFootnoteDefinitionWhitespace")):n(h)}function m(h){return t(h)}}function TL(e,t,n){return e.check(E1,t,e.attempt(hL,t,n))}function _L(e){e.exit("gfmFootnoteDefinition")}function yL(e,t,n){const r=this;return Le(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function CL(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l1?l(h):(a.consume(h),d++,m);if(d<2&&!n)return l(h);const y=a.exit("strikethroughSequenceTemporary"),p=Dd(h);return y._open=!p||p===2&&Boolean(v),y._close=!v||v===2&&Boolean(p),s(h)}}}class SL{constructor(){this.map=[]}add(t,n,r){AL(this,t,n,r)}consume(t){if(this.map.sort((o,a)=>o[0]-a[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function AL(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const V=r.events[L][1].type;if(V==="lineEnding"||V==="linePrefix")L--;else break}const B=L>-1?r.events[L][1].type:null,Y=B==="tableHead"||B==="tableRow"?A:l;return Y===A&&r.parser.lazy[r.now().line]?n(I):Y(I)}function l(I){return e.enter("tableHead"),e.enter("tableRow"),u(I)}function u(I){return I===124||(a=!0,o+=1),c(I)}function c(I){return I===null?n(I):he(I)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),m):n(I):st(I)?Le(e,c,"whitespace")(I):(o+=1,a&&(a=!1,i+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||vt(I)?(e.exit("data"),c(I)):(e.consume(I),I===92?f:d)}function f(I){return I===92||I===124?(e.consume(I),d):d(I)}function m(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(I):(e.enter("tableDelimiterRow"),a=!1,st(I)?Le(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):h(I))}function h(I){return I===45||I===58?y(I):I===124?(a=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),v):k(I)}function v(I){return st(I)?Le(e,y,"whitespace")(I):y(I)}function y(I){return I===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),p):I===45?(o+=1,p(I)):I===null||he(I)?C(I):k(I)}function p(I){return I===45?(e.enter("tableDelimiterFiller"),T(I)):k(I)}function T(I){return I===45?(e.consume(I),T):I===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(I))}function _(I){return st(I)?Le(e,C,"whitespace")(I):C(I)}function C(I){return I===124?h(I):I===null||he(I)?!a||i!==o?k(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):k(I)}function k(I){return n(I)}function A(I){return e.enter("tableRow"),S(I)}function S(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),S):I===null||he(I)?(e.exit("tableRow"),t(I)):st(I)?Le(e,S,"whitespace")(I):(e.enter("data"),N(I))}function N(I){return I===null||I===124||vt(I)?(e.exit("data"),S(I)):(e.consume(I),I===92?P:N)}function P(I){return I===92||I===124?(e.consume(I),N):N(I)}}function FL(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,d;const f=new SL;for(;++nn[2]+1){const h=n[2]+1,v=n[3]-n[2]-1;e.add(h,v,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},hs(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function uv(e,t,n,r,i){const o=[],a=hs(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function hs(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const NL={tokenize:DL},xL={text:{[91]:NL}};function DL(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return vt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return he(l)?t(l):st(l)?e.check({tokenize:wL},t,n)(l):n(l)}}function wL(e,t,n){return Le(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function RL(e){return vC([iL,mL(),CL(e),kL,xL])}function cv(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function OL(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const ML={}.hasOwnProperty,PL=function(e,t,n,r){let i,o;typeof t=="string"||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const a=Ag(i.ignore||[]),s=LL(o);let l=-1;for(;++l0?{type:"text",value:S}:void 0),S!==!1&&(y!==k&&_.push({type:"text",value:d.value.slice(y,k)}),Array.isArray(S)?_.push(...S):S&&_.push(S),y=k+C[0].length,T=!0),!h.global)break;C=h.exec(d.value)}return T?(ye}const Zh="phrasing",Jh=["autolink","link","image","label"],BL={transforms:[KL],enter:{literalAutolink:UL,literalAutolinkEmail:em,literalAutolinkHttp:em,literalAutolinkWww:em},exit:{literalAutolink:jL,literalAutolinkEmail:WL,literalAutolinkHttp:zL,literalAutolinkWww:GL}},HL={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Zh,notInConstruct:Jh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Zh,notInConstruct:Jh},{character:":",before:"[ps]",after:"\\/",inConstruct:Zh,notInConstruct:Jh}]};function UL(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function em(e){this.config.enter.autolinkProtocol.call(this,e)}function zL(e){this.config.exit.autolinkProtocol.call(this,e)}function GL(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function WL(e){this.config.exit.autolinkEmail.call(this,e)}function jL(e){this.exit(e)}function KL(e){PL(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$L],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,VL]],{ignore:["link","linkReference"]})}function $L(e,t,n,r,i){let o="";if(!l8(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!YL(n)))return!1;const a=qL(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function VL(e,t,n,r){return!l8(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function YL(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qL(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 i=cv(e,"(");let o=cv(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function l8(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||za(n)||ff(n))&&(!t||n!==47)}function u8(e){return e.label||!e.identifier?e.label||"":NC(e.identifier)}function QL(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s - -`}return` - -`}const ZL=/\r?\n|\r/g;function JL(e,t){const n=[];let r=0,i=0,o;for(;o=ZL.exec(e);)a(e.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return a(e.slice(r)),n.join("");function a(s){n.push(t(s,i,!s))}}function c8(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function eB(e,t){return hv(e,t.inConstruct,!0)&&!hv(e,t.notInConstruct,!1)}function hv(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r=u||c+10?" ":"")),i.shift(4),o+=i.move(JL(QL(e,n,i.current()),mB)),a(),o}function mB(e,t,n){return t===0?e:(n?"":" ")+e}function h8(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a0&&(s==="\r"||s===` -`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(u,e,t,{...l.current(),before:s,after:c}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const pB=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];m8.peek=_B;const gB={canContainEols:["delete"],enter:{strikethrough:vB},exit:{strikethrough:TB}},EB={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:pB}],handlers:{delete:m8}};function vB(e){this.enter({type:"delete",children:[]},e)}function TB(e){this.exit(e)}function m8(e,t,n,r){const i=If(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=h8(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function _B(){return"~"}p8.peek=yB;function p8(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++ol&&(l=e[u].length);++ys[y])&&(s[y]=T)}h.push(p)}o[u]=h,a[u]=v}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cs[c]&&(s[c]=p),f[c]=p),d[c]=T}o.splice(1,0,d),a.splice(1,0,f),u=-1;const m=[];for(;++un==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function IB(e){this.exit(e),this.setData("inTable")}function FB(e){this.enter({type:"tableRow",children:[]},e)}function tm(e){this.exit(e)}function gv(e){this.enter({type:"tableCell",children:[]},e)}function NB(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,xB));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function xB(e,t){return t==="|"?t:e}function DB(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:s,tableCell:l,inlineCode:f}};function a(m,h,v,y){return u(c(m,v,y),m.align)}function s(m,h,v,y){const p=d(m,v,y),T=u([p]);return T.slice(0,T.indexOf(` -`))}function l(m,h,v,y){const p=v.enter("tableCell"),T=v.enter("phrasing"),_=h8(m,v,{...y,before:o,after:o});return T(),p(),_}function u(m,h){return CB(m,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(m,h,v){const y=m.children;let p=-1;const T=[],_=h.enter("table");for(;++p-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(d,f,m){return f?(m?"":" ".repeat(a))+d:(m?o:o+" ".repeat(a-o.length))+d}}const MB={exit:{taskListCheckValueChecked:Ev,taskListCheckValueUnchecked:Ev,paragraph:LB}},PB={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:BB}};function Ev(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function LB(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o=55296&&e<=57343};di.isSurrogatePair=function(e){return e>=56320&&e<=57343};di.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};di.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};di.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||zB.indexOf(e)>-1};var Dg={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const ms=di,nm=Dg,ha=ms.CODE_POINTS,GB=1<<16;let WB=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=GB}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(ms.isSurrogatePair(n))return this.pos++,this._addGap(),ms.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ha.EOF;return this._err(nm.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,ha.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===ha.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===ha.CARRIAGE_RETURN?(this.skipNextNewLine=!0,ha.LINE_FEED):(this.skipNextNewLine=!1,ms.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===ha.LINE_FEED||t===ha.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ms.isControlCodePoint(t)?this._err(nm.controlCharacterInInputStream):ms.isUndefinedCodePoint(t)&&this._err(nm.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var jB=WB,KB=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const $B=jB,et=di,Na=KB,K=Dg,D=et.CODE_POINTS,ma=et.CODE_POINT_SEQUENCES,VB={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},E8=1<<0,v8=1<<1,T8=1<<2,YB=E8|v8|T8,Re="DATA_STATE",ps="RCDATA_STATE",tu="RAWTEXT_STATE",qi="SCRIPT_DATA_STATE",_8="PLAINTEXT_STATE",vv="TAG_OPEN_STATE",Tv="END_TAG_OPEN_STATE",rm="TAG_NAME_STATE",_v="RCDATA_LESS_THAN_SIGN_STATE",yv="RCDATA_END_TAG_OPEN_STATE",Cv="RCDATA_END_TAG_NAME_STATE",Sv="RAWTEXT_LESS_THAN_SIGN_STATE",Av="RAWTEXT_END_TAG_OPEN_STATE",bv="RAWTEXT_END_TAG_NAME_STATE",kv="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Iv="SCRIPT_DATA_END_TAG_OPEN_STATE",Fv="SCRIPT_DATA_END_TAG_NAME_STATE",Nv="SCRIPT_DATA_ESCAPE_START_STATE",xv="SCRIPT_DATA_ESCAPE_START_DASH_STATE",qr="SCRIPT_DATA_ESCAPED_STATE",Dv="SCRIPT_DATA_ESCAPED_DASH_STATE",im="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",nc="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",wv="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Rv="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Ov="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Wi="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Mv="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",Pv="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",rc="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Lv="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Ti="BEFORE_ATTRIBUTE_NAME_STATE",ic="ATTRIBUTE_NAME_STATE",om="AFTER_ATTRIBUTE_NAME_STATE",am="BEFORE_ATTRIBUTE_VALUE_STATE",oc="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",ac="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",sc="ATTRIBUTE_VALUE_UNQUOTED_STATE",sm="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",yo="SELF_CLOSING_START_TAG_STATE",Bl="BOGUS_COMMENT_STATE",Bv="MARKUP_DECLARATION_OPEN_STATE",Hv="COMMENT_START_STATE",Uv="COMMENT_START_DASH_STATE",Co="COMMENT_STATE",zv="COMMENT_LESS_THAN_SIGN_STATE",Gv="COMMENT_LESS_THAN_SIGN_BANG_STATE",Wv="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",jv="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",lc="COMMENT_END_DASH_STATE",uc="COMMENT_END_STATE",Kv="COMMENT_END_BANG_STATE",$v="DOCTYPE_STATE",cc="BEFORE_DOCTYPE_NAME_STATE",dc="DOCTYPE_NAME_STATE",Vv="AFTER_DOCTYPE_NAME_STATE",Yv="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",qv="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",lm="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",um="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",cm="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Qv="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Xv="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Zv="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Hl="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Ul="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",dm="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ji="BOGUS_DOCTYPE_STATE",fc="CDATA_SECTION_STATE",Jv="CDATA_SECTION_BRACKET_STATE",eT="CDATA_SECTION_END_STATE",ls="CHARACTER_REFERENCE_STATE",tT="NAMED_CHARACTER_REFERENCE_STATE",nT="AMBIGUOS_AMPERSAND_STATE",rT="NUMERIC_CHARACTER_REFERENCE_STATE",iT="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",oT="DECIMAL_CHARACTER_REFERENCE_START_STATE",aT="HEXADEMICAL_CHARACTER_REFERENCE_STATE",sT="DECIMAL_CHARACTER_REFERENCE_STATE",zl="NUMERIC_CHARACTER_REFERENCE_END_STATE";function ft(e){return e===D.SPACE||e===D.LINE_FEED||e===D.TABULATION||e===D.FORM_FEED}function Eu(e){return e>=D.DIGIT_0&&e<=D.DIGIT_9}function Xr(e){return e>=D.LATIN_CAPITAL_A&&e<=D.LATIN_CAPITAL_Z}function va(e){return e>=D.LATIN_SMALL_A&&e<=D.LATIN_SMALL_Z}function bo(e){return va(e)||Xr(e)}function fm(e){return bo(e)||Eu(e)}function y8(e){return e>=D.LATIN_CAPITAL_A&&e<=D.LATIN_CAPITAL_F}function C8(e){return e>=D.LATIN_SMALL_A&&e<=D.LATIN_SMALL_F}function qB(e){return Eu(e)||y8(e)||C8(e)}function Hc(e){return e+32}function Dt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function So(e){return String.fromCharCode(Hc(e))}function lT(e,t){const n=Na[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=Na[o];if(at)i=o-1;else return Na[o+n]}return-1}let Wr=class Kn{constructor(){this.preprocessor=new $B,this.tokenQueue=[],this.allowCDATA=!1,this.state=Re,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Kn.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,o=!0;const a=t.length;let s=0,l=n,u;for(;s0&&(l=this._consume(),i++),l===D.EOF){o=!1;break}if(u=t[s],l!==u&&(r||l!==Hc(u))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==ma.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(K.endTagWithAttributes),t.selfClosing&&this._err(K.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=Kn.CHARACTER_TOKEN;ft(t)?n=Kn.WHITESPACE_CHARACTER_TOKEN:t===D.NULL&&(n=Kn.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Dt(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const o=Na[i],a=o")):t===D.NULL?(this._err(K.unexpectedNullCharacter),this.state=qr,this._emitChars(et.REPLACEMENT_CHARACTER)):t===D.EOF?(this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=qr,this._emitCodePoint(t))}[nc](t){t===D.SOLIDUS?(this.tempBuff=[],this.state=wv):bo(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Ov)):(this._emitChars("<"),this._reconsumeInState(qr))}[wv](t){bo(t)?(this._createEndTagToken(),this._reconsumeInState(Rv)):(this._emitChars("")):t===D.NULL?(this._err(K.unexpectedNullCharacter),this.state=Wi,this._emitChars(et.REPLACEMENT_CHARACTER)):t===D.EOF?(this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Wi,this._emitCodePoint(t))}[rc](t){t===D.SOLIDUS?(this.tempBuff=[],this.state=Lv,this._emitChars("/")):this._reconsumeInState(Wi)}[Lv](t){ft(t)||t===D.SOLIDUS||t===D.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?qr:Wi,this._emitCodePoint(t)):Xr(t)?(this.tempBuff.push(Hc(t)),this._emitCodePoint(t)):va(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Wi)}[Ti](t){ft(t)||(t===D.SOLIDUS||t===D.GREATER_THAN_SIGN||t===D.EOF?this._reconsumeInState(om):t===D.EQUALS_SIGN?(this._err(K.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ic):(this._createAttr(""),this._reconsumeInState(ic)))}[ic](t){ft(t)||t===D.SOLIDUS||t===D.GREATER_THAN_SIGN||t===D.EOF?(this._leaveAttrName(om),this._unconsume()):t===D.EQUALS_SIGN?this._leaveAttrName(am):Xr(t)?this.currentAttr.name+=So(t):t===D.QUOTATION_MARK||t===D.APOSTROPHE||t===D.LESS_THAN_SIGN?(this._err(K.unexpectedCharacterInAttributeName),this.currentAttr.name+=Dt(t)):t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentAttr.name+=et.REPLACEMENT_CHARACTER):this.currentAttr.name+=Dt(t)}[om](t){ft(t)||(t===D.SOLIDUS?this.state=yo:t===D.EQUALS_SIGN?this.state=am:t===D.GREATER_THAN_SIGN?(this.state=Re,this._emitCurrentToken()):t===D.EOF?(this._err(K.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(ic)))}[am](t){ft(t)||(t===D.QUOTATION_MARK?this.state=oc:t===D.APOSTROPHE?this.state=ac:t===D.GREATER_THAN_SIGN?(this._err(K.missingAttributeValue),this.state=Re,this._emitCurrentToken()):this._reconsumeInState(sc))}[oc](t){t===D.QUOTATION_MARK?this.state=sm:t===D.AMPERSAND?(this.returnState=oc,this.state=ls):t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentAttr.value+=et.REPLACEMENT_CHARACTER):t===D.EOF?(this._err(K.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Dt(t)}[ac](t){t===D.APOSTROPHE?this.state=sm:t===D.AMPERSAND?(this.returnState=ac,this.state=ls):t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentAttr.value+=et.REPLACEMENT_CHARACTER):t===D.EOF?(this._err(K.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Dt(t)}[sc](t){ft(t)?this._leaveAttrValue(Ti):t===D.AMPERSAND?(this.returnState=sc,this.state=ls):t===D.GREATER_THAN_SIGN?(this._leaveAttrValue(Re),this._emitCurrentToken()):t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentAttr.value+=et.REPLACEMENT_CHARACTER):t===D.QUOTATION_MARK||t===D.APOSTROPHE||t===D.LESS_THAN_SIGN||t===D.EQUALS_SIGN||t===D.GRAVE_ACCENT?(this._err(K.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Dt(t)):t===D.EOF?(this._err(K.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Dt(t)}[sm](t){ft(t)?this._leaveAttrValue(Ti):t===D.SOLIDUS?this._leaveAttrValue(yo):t===D.GREATER_THAN_SIGN?(this._leaveAttrValue(Re),this._emitCurrentToken()):t===D.EOF?(this._err(K.eofInTag),this._emitEOFToken()):(this._err(K.missingWhitespaceBetweenAttributes),this._reconsumeInState(Ti))}[yo](t){t===D.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Re,this._emitCurrentToken()):t===D.EOF?(this._err(K.eofInTag),this._emitEOFToken()):(this._err(K.unexpectedSolidusInTag),this._reconsumeInState(Ti))}[Bl](t){t===D.GREATER_THAN_SIGN?(this.state=Re,this._emitCurrentToken()):t===D.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentToken.data+=et.REPLACEMENT_CHARACTER):this.currentToken.data+=Dt(t)}[Bv](t){this._consumeSequenceIfMatch(ma.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=Hv):this._consumeSequenceIfMatch(ma.DOCTYPE_STRING,t,!1)?this.state=$v:this._consumeSequenceIfMatch(ma.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=fc:(this._err(K.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Bl):this._ensureHibernation()||(this._err(K.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Bl))}[Hv](t){t===D.HYPHEN_MINUS?this.state=Uv:t===D.GREATER_THAN_SIGN?(this._err(K.abruptClosingOfEmptyComment),this.state=Re,this._emitCurrentToken()):this._reconsumeInState(Co)}[Uv](t){t===D.HYPHEN_MINUS?this.state=uc:t===D.GREATER_THAN_SIGN?(this._err(K.abruptClosingOfEmptyComment),this.state=Re,this._emitCurrentToken()):t===D.EOF?(this._err(K.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Co))}[Co](t){t===D.HYPHEN_MINUS?this.state=lc:t===D.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=zv):t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentToken.data+=et.REPLACEMENT_CHARACTER):t===D.EOF?(this._err(K.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Dt(t)}[zv](t){t===D.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Gv):t===D.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Co)}[Gv](t){t===D.HYPHEN_MINUS?this.state=Wv:this._reconsumeInState(Co)}[Wv](t){t===D.HYPHEN_MINUS?this.state=jv:this._reconsumeInState(lc)}[jv](t){t!==D.GREATER_THAN_SIGN&&t!==D.EOF&&this._err(K.nestedComment),this._reconsumeInState(uc)}[lc](t){t===D.HYPHEN_MINUS?this.state=uc:t===D.EOF?(this._err(K.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Co))}[uc](t){t===D.GREATER_THAN_SIGN?(this.state=Re,this._emitCurrentToken()):t===D.EXCLAMATION_MARK?this.state=Kv:t===D.HYPHEN_MINUS?this.currentToken.data+="-":t===D.EOF?(this._err(K.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Co))}[Kv](t){t===D.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=lc):t===D.GREATER_THAN_SIGN?(this._err(K.incorrectlyClosedComment),this.state=Re,this._emitCurrentToken()):t===D.EOF?(this._err(K.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Co))}[$v](t){ft(t)?this.state=cc:t===D.GREATER_THAN_SIGN?this._reconsumeInState(cc):t===D.EOF?(this._err(K.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(K.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(cc))}[cc](t){ft(t)||(Xr(t)?(this._createDoctypeToken(So(t)),this.state=dc):t===D.NULL?(this._err(K.unexpectedNullCharacter),this._createDoctypeToken(et.REPLACEMENT_CHARACTER),this.state=dc):t===D.GREATER_THAN_SIGN?(this._err(K.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Re):t===D.EOF?(this._err(K.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Dt(t)),this.state=dc))}[dc](t){ft(t)?this.state=Vv:t===D.GREATER_THAN_SIGN?(this.state=Re,this._emitCurrentToken()):Xr(t)?this.currentToken.name+=So(t):t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentToken.name+=et.REPLACEMENT_CHARACTER):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Dt(t)}[Vv](t){ft(t)||(t===D.GREATER_THAN_SIGN?(this.state=Re,this._emitCurrentToken()):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(ma.PUBLIC_STRING,t,!1)?this.state=Yv:this._consumeSequenceIfMatch(ma.SYSTEM_STRING,t,!1)?this.state=Xv:this._ensureHibernation()||(this._err(K.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(ji)))}[Yv](t){ft(t)?this.state=qv:t===D.QUOTATION_MARK?(this._err(K.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=lm):t===D.APOSTROPHE?(this._err(K.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=um):t===D.GREATER_THAN_SIGN?(this._err(K.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Re,this._emitCurrentToken()):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(K.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ji))}[qv](t){ft(t)||(t===D.QUOTATION_MARK?(this.currentToken.publicId="",this.state=lm):t===D.APOSTROPHE?(this.currentToken.publicId="",this.state=um):t===D.GREATER_THAN_SIGN?(this._err(K.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Re,this._emitCurrentToken()):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(K.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ji)))}[lm](t){t===D.QUOTATION_MARK?this.state=cm:t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentToken.publicId+=et.REPLACEMENT_CHARACTER):t===D.GREATER_THAN_SIGN?(this._err(K.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Re):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Dt(t)}[um](t){t===D.APOSTROPHE?this.state=cm:t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentToken.publicId+=et.REPLACEMENT_CHARACTER):t===D.GREATER_THAN_SIGN?(this._err(K.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Re):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Dt(t)}[cm](t){ft(t)?this.state=Qv:t===D.GREATER_THAN_SIGN?(this.state=Re,this._emitCurrentToken()):t===D.QUOTATION_MARK?(this._err(K.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Hl):t===D.APOSTROPHE?(this._err(K.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Ul):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ji))}[Qv](t){ft(t)||(t===D.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Re):t===D.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Hl):t===D.APOSTROPHE?(this.currentToken.systemId="",this.state=Ul):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ji)))}[Xv](t){ft(t)?this.state=Zv:t===D.QUOTATION_MARK?(this._err(K.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Hl):t===D.APOSTROPHE?(this._err(K.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Ul):t===D.GREATER_THAN_SIGN?(this._err(K.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Re,this._emitCurrentToken()):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ji))}[Zv](t){ft(t)||(t===D.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Hl):t===D.APOSTROPHE?(this.currentToken.systemId="",this.state=Ul):t===D.GREATER_THAN_SIGN?(this._err(K.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Re,this._emitCurrentToken()):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ji)))}[Hl](t){t===D.QUOTATION_MARK?this.state=dm:t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentToken.systemId+=et.REPLACEMENT_CHARACTER):t===D.GREATER_THAN_SIGN?(this._err(K.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Re):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Dt(t)}[Ul](t){t===D.APOSTROPHE?this.state=dm:t===D.NULL?(this._err(K.unexpectedNullCharacter),this.currentToken.systemId+=et.REPLACEMENT_CHARACTER):t===D.GREATER_THAN_SIGN?(this._err(K.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Re):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Dt(t)}[dm](t){ft(t)||(t===D.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Re):t===D.EOF?(this._err(K.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(K.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(ji)))}[ji](t){t===D.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Re):t===D.NULL?this._err(K.unexpectedNullCharacter):t===D.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[fc](t){t===D.RIGHT_SQUARE_BRACKET?this.state=Jv:t===D.EOF?(this._err(K.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Jv](t){t===D.RIGHT_SQUARE_BRACKET?this.state=eT:(this._emitChars("]"),this._reconsumeInState(fc))}[eT](t){t===D.GREATER_THAN_SIGN?this.state=Re:t===D.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(fc))}[ls](t){this.tempBuff=[D.AMPERSAND],t===D.NUMBER_SIGN?(this.tempBuff.push(t),this.state=rT):fm(t)?this._reconsumeInState(tT):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[tT](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[D.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===D.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(K.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=nT}[nT](t){fm(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Dt(t):this._emitCodePoint(t):(t===D.SEMICOLON&&this._err(K.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[rT](t){this.charRefCode=0,t===D.LATIN_SMALL_X||t===D.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=iT):this._reconsumeInState(oT)}[iT](t){qB(t)?this._reconsumeInState(aT):(this._err(K.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[oT](t){Eu(t)?this._reconsumeInState(sT):(this._err(K.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[aT](t){y8(t)?this.charRefCode=this.charRefCode*16+t-55:C8(t)?this.charRefCode=this.charRefCode*16+t-87:Eu(t)?this.charRefCode=this.charRefCode*16+t-48:t===D.SEMICOLON?this.state=zl:(this._err(K.missingSemicolonAfterCharacterReference),this._reconsumeInState(zl))}[sT](t){Eu(t)?this.charRefCode=this.charRefCode*10+t-48:t===D.SEMICOLON?this.state=zl:(this._err(K.missingSemicolonAfterCharacterReference),this._reconsumeInState(zl))}[zl](){if(this.charRefCode===D.NULL)this._err(K.nullCharacterReference),this.charRefCode=D.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(K.characterReferenceOutsideUnicodeRange),this.charRefCode=D.REPLACEMENT_CHARACTER;else if(et.isSurrogate(this.charRefCode))this._err(K.surrogateCharacterReference),this.charRefCode=D.REPLACEMENT_CHARACTER;else if(et.isUndefinedCodePoint(this.charRefCode))this._err(K.noncharacterCharacterReference);else if(et.isControlCodePoint(this.charRefCode)||this.charRefCode===D.CARRIAGE_RETURN){this._err(K.controlCharacterReference);const t=VB[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Wr.CHARACTER_TOKEN="CHARACTER_TOKEN";Wr.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Wr.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Wr.START_TAG_TOKEN="START_TAG_TOKEN";Wr.END_TAG_TOKEN="END_TAG_TOKEN";Wr.COMMENT_TOKEN="COMMENT_TOKEN";Wr.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Wr.EOF_TOKEN="EOF_TOKEN";Wr.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Wr.MODE={DATA:Re,RCDATA:ps,RAWTEXT:tu,SCRIPT_DATA:qi,PLAINTEXT:_8};Wr.getTokenAttr=function(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};var Ff=Wr,fi={};const hm=fi.NAMESPACES={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/"};fi.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};fi.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const ee=fi.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};fi.SPECIAL_ELEMENTS={[hm.HTML]:{[ee.ADDRESS]:!0,[ee.APPLET]:!0,[ee.AREA]:!0,[ee.ARTICLE]:!0,[ee.ASIDE]:!0,[ee.BASE]:!0,[ee.BASEFONT]:!0,[ee.BGSOUND]:!0,[ee.BLOCKQUOTE]:!0,[ee.BODY]:!0,[ee.BR]:!0,[ee.BUTTON]:!0,[ee.CAPTION]:!0,[ee.CENTER]:!0,[ee.COL]:!0,[ee.COLGROUP]:!0,[ee.DD]:!0,[ee.DETAILS]:!0,[ee.DIR]:!0,[ee.DIV]:!0,[ee.DL]:!0,[ee.DT]:!0,[ee.EMBED]:!0,[ee.FIELDSET]:!0,[ee.FIGCAPTION]:!0,[ee.FIGURE]:!0,[ee.FOOTER]:!0,[ee.FORM]:!0,[ee.FRAME]:!0,[ee.FRAMESET]:!0,[ee.H1]:!0,[ee.H2]:!0,[ee.H3]:!0,[ee.H4]:!0,[ee.H5]:!0,[ee.H6]:!0,[ee.HEAD]:!0,[ee.HEADER]:!0,[ee.HGROUP]:!0,[ee.HR]:!0,[ee.HTML]:!0,[ee.IFRAME]:!0,[ee.IMG]:!0,[ee.INPUT]:!0,[ee.LI]:!0,[ee.LINK]:!0,[ee.LISTING]:!0,[ee.MAIN]:!0,[ee.MARQUEE]:!0,[ee.MENU]:!0,[ee.META]:!0,[ee.NAV]:!0,[ee.NOEMBED]:!0,[ee.NOFRAMES]:!0,[ee.NOSCRIPT]:!0,[ee.OBJECT]:!0,[ee.OL]:!0,[ee.P]:!0,[ee.PARAM]:!0,[ee.PLAINTEXT]:!0,[ee.PRE]:!0,[ee.SCRIPT]:!0,[ee.SECTION]:!0,[ee.SELECT]:!0,[ee.SOURCE]:!0,[ee.STYLE]:!0,[ee.SUMMARY]:!0,[ee.TABLE]:!0,[ee.TBODY]:!0,[ee.TD]:!0,[ee.TEMPLATE]:!0,[ee.TEXTAREA]:!0,[ee.TFOOT]:!0,[ee.TH]:!0,[ee.THEAD]:!0,[ee.TITLE]:!0,[ee.TR]:!0,[ee.TRACK]:!0,[ee.UL]:!0,[ee.WBR]:!0,[ee.XMP]:!0},[hm.MATHML]:{[ee.MI]:!0,[ee.MO]:!0,[ee.MN]:!0,[ee.MS]:!0,[ee.MTEXT]:!0,[ee.ANNOTATION_XML]:!0},[hm.SVG]:{[ee.TITLE]:!0,[ee.FOREIGN_OBJECT]:!0,[ee.DESC]:!0}};const S8=fi,ne=S8.TAG_NAMES,tt=S8.NAMESPACES;function uT(e){switch(e.length){case 1:return e===ne.P;case 2:return e===ne.RB||e===ne.RP||e===ne.RT||e===ne.DD||e===ne.DT||e===ne.LI;case 3:return e===ne.RTC;case 6:return e===ne.OPTION;case 8:return e===ne.OPTGROUP}return!1}function QB(e){switch(e.length){case 1:return e===ne.P;case 2:return e===ne.RB||e===ne.RP||e===ne.RT||e===ne.DD||e===ne.DT||e===ne.LI||e===ne.TD||e===ne.TH||e===ne.TR;case 3:return e===ne.RTC;case 5:return e===ne.TBODY||e===ne.TFOOT||e===ne.THEAD;case 6:return e===ne.OPTION;case 7:return e===ne.CAPTION;case 8:return e===ne.OPTGROUP||e===ne.COLGROUP}return!1}function hc(e,t){switch(e.length){case 2:if(e===ne.TD||e===ne.TH)return t===tt.HTML;if(e===ne.MI||e===ne.MO||e===ne.MN||e===ne.MS)return t===tt.MATHML;break;case 4:if(e===ne.HTML)return t===tt.HTML;if(e===ne.DESC)return t===tt.SVG;break;case 5:if(e===ne.TABLE)return t===tt.HTML;if(e===ne.MTEXT)return t===tt.MATHML;if(e===ne.TITLE)return t===tt.SVG;break;case 6:return(e===ne.APPLET||e===ne.OBJECT)&&t===tt.HTML;case 7:return(e===ne.CAPTION||e===ne.MARQUEE)&&t===tt.HTML;case 8:return e===ne.TEMPLATE&&t===tt.HTML;case 13:return e===ne.FOREIGN_OBJECT&&t===tt.SVG;case 14:return e===ne.ANNOTATION_XML&&t===tt.MATHML}return!1}let XB=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===ne.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===tt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===tt.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===ne.H1||t===ne.H2||t===ne.H3||t===ne.H4||t===ne.H5||t===ne.H6&&n===tt.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===ne.TD||t===ne.TH&&n===tt.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==ne.TABLE&&this.currentTagName!==ne.TEMPLATE&&this.currentTagName!==ne.HTML||this.treeAdapter.getNamespaceURI(this.current)!==tt.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==ne.TBODY&&this.currentTagName!==ne.TFOOT&&this.currentTagName!==ne.THEAD&&this.currentTagName!==ne.TEMPLATE&&this.currentTagName!==ne.HTML||this.treeAdapter.getNamespaceURI(this.current)!==tt.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==ne.TR&&this.currentTagName!==ne.TEMPLATE&&this.currentTagName!==ne.HTML||this.treeAdapter.getNamespaceURI(this.current)!==tt.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===ne.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===ne.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===tt.HTML)return!0;if(hc(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===ne.H1||n===ne.H2||n===ne.H3||n===ne.H4||n===ne.H5||n===ne.H6)&&r===tt.HTML)return!0;if(hc(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===tt.HTML)return!0;if((r===ne.UL||r===ne.OL)&&i===tt.HTML||hc(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===tt.HTML)return!0;if(r===ne.BUTTON&&i===tt.HTML||hc(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===tt.HTML){if(r===t)return!0;if(r===ne.TABLE||r===ne.TEMPLATE||r===ne.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===tt.HTML){if(n===ne.TBODY||n===ne.THEAD||n===ne.TFOOT)return!0;if(n===ne.TABLE||n===ne.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===tt.HTML){if(r===t)return!0;if(r!==ne.OPTION&&r!==ne.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;uT(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;QB(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;uT(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var ZB=XB;const mc=3;let wg=class ko{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=mc){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=this.length-1;a>=0;a--){const s=this.entries[a];if(s.type===ko.MARKER_ENTRY)break;const l=s.element,u=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===o&&u.length===r&&n.push({idx:a,attrs:u})}}return n.length=mc-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:ko.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:ko.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:ko.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===ko.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===ko.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===ko.ELEMENT_ENTRY&&r.element===t)return r}return null}};wg.MARKER_ENTRY="MARKER_ENTRY";wg.ELEMENT_ENTRY="ELEMENT_ENTRY";var JB=wg;let A8=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};A8.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const o=mm.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var k8=rH;const iH=go;let oH=class extends iH{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var aH=oH;const pm=go,dT=Ff,sH=k8,lH=aH,uH=fi,gm=uH.TAG_NAMES;let cH=class extends pm{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,o=this.treeAdapter.getTagName(t),a=n.type===dT.END_TAG_TOKEN&&o===n.tagName,s={};a?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const o=pm.install(this.tokenizer,sH);t.posTracker=o.posTracker,pm.install(this.openElements,lH,{onItemPop:function(a){t._setEndLocation(a,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===dT.END_TAG_TOKEN&&(r.tagName===gm.HTML||r.tagName===gm.BODY&&this.openElements.hasInScope(gm.BODY)))for(let o=this.openElements.stackTop;o>=0;o--){const a=this.openElements.items[o];if(this.treeAdapter.getTagName(a)===r.tagName){t._setEndLocation(a,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),o=i.length;for(let a=0;a(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),Object.create(null))},Nf={};const{DOCUMENT_MODE:us}=fi,N8="html",wH="about:legacy-compat",RH="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",x8=["+//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//"],OH=x8.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),MH=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],D8=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],PH=D8.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function hT(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function mT(e,t){for(let n=0;n-1)return us.QUIRKS;let r=t===null?OH:x8;if(mT(n,r))return us.QUIRKS;if(r=t===null?D8:PH,mT(n,r))return us.LIMITED_QUIRKS}return us.NO_QUIRKS};Nf.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+hT(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+hT(n)),r};var oa={};const Em=Ff,Og=fi,ce=Og.TAG_NAMES,sn=Og.NAMESPACES,Uc=Og.ATTRS,pT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},LH="definitionurl",BH="definitionURL",HH={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},UH={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:sn.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:sn.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:sn.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:sn.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:sn.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:sn.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:sn.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:sn.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:sn.XML},"xml:space":{prefix:"xml",name:"space",namespace:sn.XML},xmlns:{prefix:"",name:"xmlns",namespace:sn.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:sn.XMLNS}},zH=oa.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},GH={[ce.B]:!0,[ce.BIG]:!0,[ce.BLOCKQUOTE]:!0,[ce.BODY]:!0,[ce.BR]:!0,[ce.CENTER]:!0,[ce.CODE]:!0,[ce.DD]:!0,[ce.DIV]:!0,[ce.DL]:!0,[ce.DT]:!0,[ce.EM]:!0,[ce.EMBED]:!0,[ce.H1]:!0,[ce.H2]:!0,[ce.H3]:!0,[ce.H4]:!0,[ce.H5]:!0,[ce.H6]:!0,[ce.HEAD]:!0,[ce.HR]:!0,[ce.I]:!0,[ce.IMG]:!0,[ce.LI]:!0,[ce.LISTING]:!0,[ce.MENU]:!0,[ce.META]:!0,[ce.NOBR]:!0,[ce.OL]:!0,[ce.P]:!0,[ce.PRE]:!0,[ce.RUBY]:!0,[ce.S]:!0,[ce.SMALL]:!0,[ce.SPAN]:!0,[ce.STRONG]:!0,[ce.STRIKE]:!0,[ce.SUB]:!0,[ce.SUP]:!0,[ce.TABLE]:!0,[ce.TT]:!0,[ce.U]:!0,[ce.UL]:!0,[ce.VAR]:!0};oa.causesExit=function(e){const t=e.tagName;return t===ce.FONT&&(Em.getTokenAttr(e,Uc.COLOR)!==null||Em.getTokenAttr(e,Uc.SIZE)!==null||Em.getTokenAttr(e,Uc.FACE)!==null)?!0:GH[t]};oa.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),o=eU[i];if(o){this.insertionMode=o;break}else if(!n&&(i===g.TD||i===g.TH)){this.insertionMode=Rf;break}else if(!n&&i===g.HEAD){this.insertionMode=gl;break}else if(i===g.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===g.HTML){this.insertionMode=this.headElement?Df:xf;break}else if(n){this.insertionMode=Ri;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===g.TEMPLATE)break;if(i===g.TABLE){this.insertionMode=Lg;return}}this.insertionMode=Pg}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(i===g.TEMPLATE&&o===se.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===g.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return qa.SPECIAL_ELEMENTS[r][n]}}var rU=nU;function iU(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Zr(e,t),n}function oU(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function aU(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=JH;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=sU(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function sU(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 lU(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===se.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function uU(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function wo(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(un.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(un.endTagWithoutMatchingOpenElement)}function _u(e,t){e.openElements.pop(),e.insertionMode=Df,e._processToken(t)}function gU(e,t){const n=t.tagName;n===g.HTML?nr(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?en(e,t):n===g.NOSCRIPT?e._err(un.nestedNoscriptInHead):yu(e,t)}function EU(e,t){const n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode=gl):n===g.BR?yu(e,t):e._err(un.endTagWithoutMatchingOpenElement)}function yu(e,t){const n=t.type===w.EOF_TOKEN?un.openElementsLeftAfterEof:un.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=gl,e._processToken(t)}function vU(e,t){const n=t.tagName;n===g.HTML?nr(e,t):n===g.BODY?(e._insertElement(t,se.HTML),e.framesetOk=!1,e.insertionMode=Ri):n===g.FRAMESET?(e._insertElement(t,se.HTML),e.insertionMode=Of):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(un.abandonedHeadElementChild),e.openElements.push(e.headElement),en(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(un.misplacedStartTagForHeadElement):Cu(e,t)}function TU(e,t){const n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?Cu(e,t):n===g.TEMPLATE?Qa(e,t):e._err(un.endTagWithoutMatchingOpenElement)}function Cu(e,t){e._insertFakeElement(g.BODY),e.insertionMode=Ri,e._processToken(t)}function pa(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function gc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function _U(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function yU(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function CU(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,se.HTML),e.insertionMode=Of)}function Ki(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,se.HTML)}function SU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6)&&e.openElements.pop(),e._insertElement(t,se.HTML)}function yT(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,se.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function AU(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,se.HTML),n||(e.formElement=e.openElements.current))}function bU(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],o=e.treeAdapter.getTagName(i);let a=null;if(n===g.LI&&o===g.LI?a=g.LI:(n===g.DD||n===g.DT)&&(o===g.DD||o===g.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==g.ADDRESS&&o!==g.DIV&&o!==g.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,se.HTML)}function kU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,se.HTML),e.tokenizer.state=w.MODE.PLAINTEXT}function IU(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,se.HTML),e.framesetOk=!1}function FU(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(wo(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,se.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function cs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,se.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function NU(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(wo(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,se.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function CT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,se.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function xU(e,t){e.treeAdapter.getDocumentMode(e.document)!==qa.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,se.HTML),e.framesetOk=!1,e.insertionMode=_n}function gs(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,se.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function DU(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,se.HTML);const n=w.getTokenAttr(t,w8.TYPE);(!n||n.toLowerCase()!==R8)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function ST(e,t){e._appendElement(t,se.HTML),t.ackSelfClosing=!0}function wU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,se.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function RU(e,t){t.tagName=g.IMG,gs(e,t)}function OU(e,t){e._insertElement(t,se.HTML),e.skipNextNewLine=!0,e.tokenizer.state=w.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Od}function MU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function PU(e,t){e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function AT(e,t){e._switchToTextParsing(t,w.MODE.RAWTEXT)}function LU(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,se.HTML),e.framesetOk=!1,e.insertionMode===_n||e.insertionMode===wf||e.insertionMode===Mr||e.insertionMode===co||e.insertionMode===Rf?e.insertionMode=Lg:e.insertionMode=Pg}function bT(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,se.HTML)}function kT(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,se.HTML)}function BU(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,se.HTML)}function HU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,se.HTML)}function UU(e,t){e._reconstructActiveFormattingElements(),Ii.adjustTokenMathMLAttrs(t),Ii.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,se.MATHML):e._insertElement(t,se.MATHML),t.ackSelfClosing=!0}function zU(e,t){e._reconstructActiveFormattingElements(),Ii.adjustTokenSVGAttrs(t),Ii.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,se.SVG):e._insertElement(t,se.SVG),t.ackSelfClosing=!0}function Sr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,se.HTML)}function nr(e,t){const n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?cs(e,t):n===g.P?Ki(e,t):n===g.A?FU(e,t):Sr(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?Ki(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?SU(e,t):n===g.LI||n===g.DD||n===g.DT?bU(e,t):n===g.EM||n===g.TT?cs(e,t):n===g.BR?gs(e,t):n===g.HR?wU(e,t):n===g.RB?kT(e,t):n===g.RT||n===g.RP?BU(e,t):n!==g.TH&&n!==g.TD&&n!==g.TR&&Sr(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?Ki(e,t):n===g.PRE?yT(e,t):n===g.BIG?cs(e,t):n===g.IMG||n===g.WBR?gs(e,t):n===g.XMP?MU(e,t):n===g.SVG?zU(e,t):n===g.RTC?kT(e,t):n!==g.COL&&Sr(e,t);break;case 4:n===g.HTML?_U(e,t):n===g.BASE||n===g.LINK||n===g.META?en(e,t):n===g.BODY?yU(e,t):n===g.MAIN||n===g.MENU?Ki(e,t):n===g.FORM?AU(e,t):n===g.CODE||n===g.FONT?cs(e,t):n===g.NOBR?NU(e,t):n===g.AREA?gs(e,t):n===g.MATH?UU(e,t):n===g.MENU?HU(e,t):n!==g.HEAD&&Sr(e,t);break;case 5:n===g.STYLE||n===g.TITLE?en(e,t):n===g.ASIDE?Ki(e,t):n===g.SMALL?cs(e,t):n===g.TABLE?xU(e,t):n===g.EMBED?gs(e,t):n===g.INPUT?DU(e,t):n===g.PARAM||n===g.TRACK?ST(e,t):n===g.IMAGE?RU(e,t):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&Sr(e,t);break;case 6:n===g.SCRIPT?en(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?Ki(e,t):n===g.BUTTON?IU(e,t):n===g.STRIKE||n===g.STRONG?cs(e,t):n===g.APPLET||n===g.OBJECT?CT(e,t):n===g.KEYGEN?gs(e,t):n===g.SOURCE?ST(e,t):n===g.IFRAME?PU(e,t):n===g.SELECT?LU(e,t):n===g.OPTION?bT(e,t):Sr(e,t);break;case 7:n===g.BGSOUND?en(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?Ki(e,t):n===g.LISTING?yT(e,t):n===g.MARQUEE?CT(e,t):n===g.NOEMBED?AT(e,t):n!==g.CAPTION&&Sr(e,t);break;case 8:n===g.BASEFONT?en(e,t):n===g.FRAMESET?CU(e,t):n===g.FIELDSET?Ki(e,t):n===g.TEXTAREA?OU(e,t):n===g.TEMPLATE?en(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?AT(e,t):Sr(e,t):n===g.OPTGROUP?bT(e,t):n!==g.COLGROUP&&Sr(e,t);break;case 9:n===g.PLAINTEXT?kU(e,t):Sr(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?Ki(e,t):Sr(e,t);break;default:Sr(e,t)}}function GU(e){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=Bg)}function WU(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=Bg,e._processToken(t))}function Ao(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function jU(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}function KU(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()}function $U(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function VU(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function YU(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function IT(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function qU(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1}function Zr(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function Hg(e,t){const n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?wo(e,t):n===g.P?KU(e):Zr(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?Ao(e,t):n===g.LI?$U(e):n===g.DD||n===g.DT?VU(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?YU(e):n===g.BR?qU(e):n===g.EM||n===g.TT?wo(e,t):Zr(e,t);break;case 3:n===g.BIG?wo(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?Ao(e,t):Zr(e,t);break;case 4:n===g.BODY?GU(e):n===g.HTML?WU(e,t):n===g.FORM?jU(e):n===g.CODE||n===g.FONT||n===g.NOBR?wo(e,t):n===g.MAIN||n===g.MENU?Ao(e,t):Zr(e,t);break;case 5:n===g.ASIDE?Ao(e,t):n===g.SMALL?wo(e,t):Zr(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?Ao(e,t):n===g.APPLET||n===g.OBJECT?IT(e,t):n===g.STRIKE||n===g.STRONG?wo(e,t):Zr(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?Ao(e,t):n===g.MARQUEE?IT(e,t):Zr(e,t);break;case 8:n===g.FIELDSET?Ao(e,t):n===g.TEMPLATE?Qa(e,t):Zr(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?Ao(e,t):Zr(e,t);break;default:Zr(e,t)}}function $i(e,t){e.tmplInsertionModeStackTop>-1?G8(e,t):e.stopped=!0}function QU(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function XU(e,t){e._err(un.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Vi(e,t){const n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=P8,e._processToken(t)):br(e,t)}function ZU(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,se.HTML),e.insertionMode=wf}function JU(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,se.HTML),e.insertionMode=y1}function ez(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode=y1,e._processToken(t)}function tz(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,se.HTML),e.insertionMode=Mr}function nz(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode=Mr,e._processToken(t)}function rz(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t))}function iz(e,t){const n=w.getTokenAttr(t,w8.TYPE);n&&n.toLowerCase()===R8?e._appendElement(t,se.HTML):br(e,t),t.ackSelfClosing=!0}function oz(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,se.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ug(e,t){const n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?nz(e,t):br(e,t);break;case 3:n===g.COL?ez(e,t):br(e,t);break;case 4:n===g.FORM?oz(e,t):br(e,t);break;case 5:n===g.TABLE?rz(e,t):n===g.STYLE?en(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?tz(e,t):n===g.INPUT?iz(e,t):br(e,t);break;case 6:n===g.SCRIPT?en(e,t):br(e,t);break;case 7:n===g.CAPTION?ZU(e,t):br(e,t);break;case 8:n===g.COLGROUP?JU(e,t):n===g.TEMPLATE?en(e,t):br(e,t);break;default:br(e,t)}}function zg(e,t){const n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?Qa(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&br(e,t)}function br(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function az(e,t){e.pendingCharacterTokens.push(t)}function sz(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function jl(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Cz(e,t){t.tagName===g.HTML?nr(e,t):Ld(e,t)}function Sz(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode=B8):Ld(e,t)}function Ld(e,t){e.insertionMode=Ri,e._processToken(t)}function Az(e,t){const n=t.tagName;n===g.HTML?nr(e,t):n===g.FRAMESET?e._insertElement(t,se.HTML):n===g.FRAME?(e._appendElement(t,se.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&en(e,t)}function bz(e,t){t.tagName===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==g.FRAMESET&&(e.insertionMode=L8))}function kz(e,t){const n=t.tagName;n===g.HTML?nr(e,t):n===g.NOFRAMES&&en(e,t)}function Iz(e,t){t.tagName===g.HTML&&(e.insertionMode=H8)}function Fz(e,t){t.tagName===g.HTML?nr(e,t):zc(e,t)}function zc(e,t){e.insertionMode=Ri,e._processToken(t)}function Nz(e,t){const n=t.tagName;n===g.HTML?nr(e,t):n===g.NOFRAMES&&en(e,t)}function xz(e,t){t.chars=QH.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Dz(e,t){e._insertCharacters(t),e.framesetOk=!1}function wz(e,t){if(Ii.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==se.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===se.MATHML?Ii.adjustTokenMathMLAttrs(t):r===se.SVG&&(Ii.adjustTokenSVGTagName(t),Ii.adjustTokenSVGAttrs(t)),Ii.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Rz(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===se.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const FT=/[#.]/g;function Oz(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&aa)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){const s=a&&a.line,l=a&&a.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const u=(n[s-2]||0)+l-1||0;if(u>-1&&u{const I=S;if(I.value.stitch&&P!==null&&N!==null)return P.children[N]=I.value.stitch,N}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const S={nodeName:"template",tagName:"template",attrs:[],namespaceURI:e1.html,childNodes:[]},N={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:e1.html,childNodes:[]},P={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(N,S),i._pushTmplInsertionMode(oG),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,c=s.__mixins[0],u=c.posTracker,o(e),A(),i._adoptNodes(N.childNodes[0],P),P}function m(){const S=i.treeAdapter.createDocument();if(i._bootstrap(S,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,c=s.__mixins[0],u=c.posTracker,o(e),A(),S}function h(S){let N=-1;if(S)for(;++NY8(t,n,e)}function _G(){const e=["a","b","c","d","e","f","0","1","2","3","4","5","6","7","8","9"];let t=[];for(let n=0;n<36;n++)n===8||n===13||n===18||n===23?t[n]="-":t[n]=e[Math.ceil(Math.random()*e.length-1)];return t.join("")}var Yi=_G,yG=typeof global=="object"&&global&&global.Object===Object&&global;const q8=yG;var CG=typeof self=="object"&&self&&self.Object===Object&&self,SG=q8||CG||Function("return this")();const Hi=SG;var AG=Hi.Symbol;const rl=AG;var Q8=Object.prototype,bG=Q8.hasOwnProperty,kG=Q8.toString,Kl=rl?rl.toStringTag:void 0;function IG(e){var t=bG.call(e,Kl),n=e[Kl];try{e[Kl]=void 0;var r=!0}catch{}var i=kG.call(e);return r&&(t?e[Kl]=n:delete e[Kl]),i}var FG=Object.prototype,NG=FG.toString;function xG(e){return NG.call(e)}var DG="[object Null]",wG="[object Undefined]",wT=rl?rl.toStringTag:void 0;function C1(e){return e==null?e===void 0?wG:DG:wT&&wT in Object(e)?IG(e):xG(e)}function S1(e){return e!=null&&typeof e=="object"}var RG=Array.isArray;const Mf=RG;function A1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var OG="[object AsyncFunction]",MG="[object Function]",PG="[object GeneratorFunction]",LG="[object Proxy]";function X8(e){if(!A1(e))return!1;var t=C1(e);return t==MG||t==PG||t==OG||t==LG}var BG=Hi["__core-js_shared__"];const vm=BG;var RT=function(){var e=/[^.]+$/.exec(vm&&vm.keys&&vm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function HG(e){return!!RT&&RT in e}var UG=Function.prototype,zG=UG.toString;function Xa(e){if(e!=null){try{return zG.call(e)}catch{}try{return e+""}catch{}}return""}var GG=/[\\^$.*+?()[\]{}|]/g,WG=/^\[object .+?Constructor\]$/,jG=Function.prototype,KG=Object.prototype,$G=jG.toString,VG=KG.hasOwnProperty,YG=RegExp("^"+$G.call(VG).replace(GG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qG(e){if(!A1(e)||HG(e))return!1;var t=X8(e)?YG:WG;return t.test(Xa(e))}function QG(e,t){return e==null?void 0:e[t]}function Za(e,t){var n=QG(e,t);return qG(n)?n:void 0}var XG=Za(Hi,"WeakMap");const Yp=XG;var OT=Object.create,ZG=function(){function e(){}return function(t){if(!A1(t))return{};if(OT)return OT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const JG=ZG;function eW(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e-1&&e%1==0&&e<=lW}function jg(e){return e!=null&&tS(e.length)&&!X8(e)}var uW=Object.prototype;function Lf(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||uW;return e===n}function cW(e,t){for(var n=-1,r=Array(e);++n-1}function yj(e,t){var n=this.__data__,r=Bf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Eo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:jc;e_&&e_(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(C$(t)||(t[r]=o),i=o)}e[i]=!0}return e}function F$(e){for(let t=0;t/gm),R$=ci(/\${[\w\W]*}/gm),O$=ci(/^data-[\-\w.\u00B7-\uFFFF]/),M$=ci(/^aria-[\-\w]+$/),yS=ci(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),P$=ci(/^(?:\w+script|data):/i),L$=ci(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),CS=ci(/^html$/i);var a_=Object.freeze({__proto__:null,MUSTACHE_EXPR:D$,ERB_EXPR:w$,TMPLIT_EXPR:R$,DATA_ATTR:O$,ARIA_ATTR:M$,IS_ALLOWED_URI:yS,IS_SCRIPT_OR_DATA:P$,ATTR_WHITESPACE:L$,DOCTYPE_NAME:CS});const B$=function(){return typeof window>"u"?null:window},H$=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function SS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B$();const t=G=>SS(G);if(t.version="3.0.8",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:m}=e,h=l.prototype,v=vc(h,"cloneNode"),y=vc(h,"nextSibling"),p=vc(h,"childNodes"),T=vc(h,"parentNode");if(typeof a=="function"){const G=n.createElement("template");G.content&&G.content.ownerDocument&&(n=G.content.ownerDocument)}let _,C="";const{implementation:k,createNodeIterator:A,createDocumentFragment:S,getElementsByTagName:N}=n,{importNode:P}=r;let I={};t.isSupported=typeof TS=="function"&&typeof T=="function"&&k&&k.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:B,TMPLIT_EXPR:Y,DATA_ATTR:V,ARIA_ATTR:W,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:Q}=a_;let{IS_ALLOWED_URI:M}=a_,z=null;const $=De({},[...n_,...ym,...Cm,...Sm,...r_]);let b=null;const F=De({},[...i_,...Am,...o_,...Tc]);let me=Object.seal(_S(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,ut=null,Ce=!0,Ge=!0,Ct=!1,_t=!0,je=!1,ct=!1,$t=!1,on=!1,Vt=!1,fn=!1,Yt=!1,ie=!0,Se=!1;const ve="user-content-";let We=!0,Pe=!1,nt={},pe=null;const Gn=De({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rr=null;const An=De({},["audio","video","img","source","image","track"]);let U=null;const q=De({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oe="http://www.w3.org/1998/Math/MathML",Ee="http://www.w3.org/2000/svg",X="http://www.w3.org/1999/xhtml";let Ye=X,St=!1,At=null;const ke=De({},[oe,Ee,X],_m);let Ie=null;const Fe=["application/xhtml+xml","text/html"],Be="text/html";let le=null,hn=null;const Ja=n.createElement("form"),jr=function(R){return R instanceof RegExp||R instanceof Function},hi=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hn&&hn===R)){if((!R||typeof R!="object")&&(R={}),R=_a(R),Ie=Fe.indexOf(R.PARSER_MEDIA_TYPE)===-1?Be:R.PARSER_MEDIA_TYPE,le=Ie==="application/xhtml+xml"?_m:jc,z="ALLOWED_TAGS"in R?De({},R.ALLOWED_TAGS,le):$,b="ALLOWED_ATTR"in R?De({},R.ALLOWED_ATTR,le):F,At="ALLOWED_NAMESPACES"in R?De({},R.ALLOWED_NAMESPACES,_m):ke,U="ADD_URI_SAFE_ATTR"in R?De(_a(q),R.ADD_URI_SAFE_ATTR,le):q,rr="ADD_DATA_URI_TAGS"in R?De(_a(An),R.ADD_DATA_URI_TAGS,le):An,pe="FORBID_CONTENTS"in R?De({},R.FORBID_CONTENTS,le):Gn,xe="FORBID_TAGS"in R?De({},R.FORBID_TAGS,le):{},ut="FORBID_ATTR"in R?De({},R.FORBID_ATTR,le):{},nt="USE_PROFILES"in R?R.USE_PROFILES:!1,Ce=R.ALLOW_ARIA_ATTR!==!1,Ge=R.ALLOW_DATA_ATTR!==!1,Ct=R.ALLOW_UNKNOWN_PROTOCOLS||!1,_t=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=R.SAFE_FOR_TEMPLATES||!1,ct=R.WHOLE_DOCUMENT||!1,Vt=R.RETURN_DOM||!1,fn=R.RETURN_DOM_FRAGMENT||!1,Yt=R.RETURN_TRUSTED_TYPE||!1,on=R.FORCE_BODY||!1,ie=R.SANITIZE_DOM!==!1,Se=R.SANITIZE_NAMED_PROPS||!1,We=R.KEEP_CONTENT!==!1,Pe=R.IN_PLACE||!1,M=R.ALLOWED_URI_REGEXP||yS,Ye=R.NAMESPACE||X,me=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&jr(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(me.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&jr(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(me.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),je&&(Ge=!1),fn&&(Vt=!0),nt&&(z=De({},r_),b=[],nt.html===!0&&(De(z,n_),De(b,i_)),nt.svg===!0&&(De(z,ym),De(b,Am),De(b,Tc)),nt.svgFilters===!0&&(De(z,Cm),De(b,Am),De(b,Tc)),nt.mathMl===!0&&(De(z,Sm),De(b,o_),De(b,Tc))),R.ADD_TAGS&&(z===$&&(z=_a(z)),De(z,R.ADD_TAGS,le)),R.ADD_ATTR&&(b===F&&(b=_a(b)),De(b,R.ADD_ATTR,le)),R.ADD_URI_SAFE_ATTR&&De(U,R.ADD_URI_SAFE_ATTR,le),R.FORBID_CONTENTS&&(pe===Gn&&(pe=_a(pe)),De(pe,R.FORBID_CONTENTS,le)),We&&(z["#text"]=!0),ct&&De(z,["html","head","body"]),z.table&&(De(z,["tbody"]),delete xe.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw ql('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ql('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=R.TRUSTED_TYPES_POLICY,C=_.createHTML("")}else _===void 0&&(_=H$(m,i)),_!==null&&typeof C=="string"&&(C=_.createHTML(""));Hn&&Hn(R),hn=R}},Ui=De({},["mi","mo","mn","ms","mtext"]),qt=De({},["foreignobject","desc","title","annotation-xml"]),_r=De({},["title","style","font","a","script"]),aa=De({},[...ym,...Cm,...N$]),Ve=De({},[...Sm,...x$]),Te=function(R){let j=T(R);(!j||!j.tagName)&&(j={namespaceURI:Ye,tagName:"template"});const te=jc(R.tagName),Ae=jc(j.tagName);return At[R.namespaceURI]?R.namespaceURI===Ee?j.namespaceURI===X?te==="svg":j.namespaceURI===oe?te==="svg"&&(Ae==="annotation-xml"||Ui[Ae]):Boolean(aa[te]):R.namespaceURI===oe?j.namespaceURI===X?te==="math":j.namespaceURI===Ee?te==="math"&&qt[Ae]:Boolean(Ve[te]):R.namespaceURI===X?j.namespaceURI===Ee&&!qt[Ae]||j.namespaceURI===oe&&!Ui[Ae]?!1:!Ve[te]&&(_r[te]||!aa[te]):!!(Ie==="application/xhtml+xml"&&At[R.namespaceURI]):!1},Ot=function(R){Vl(t.removed,{element:R});try{R.parentNode.removeChild(R)}catch{R.remove()}},yr=function(R,j){try{Vl(t.removed,{attribute:j.getAttributeNode(R),from:j})}catch{Vl(t.removed,{attribute:null,from:j})}if(j.removeAttribute(R),R==="is"&&!b[R])if(Vt||fn)try{Ot(j)}catch{}else try{j.setAttribute(R,"")}catch{}},Kr=function(R){let j=null,te=null;if(on)R=""+R;else{const _e=A$(R,/^[\r\n\t ]+/);te=_e&&_e[0]}Ie==="application/xhtml+xml"&&Ye===X&&(R=''+R+"");const Ae=_?_.createHTML(R):R;if(Ye===X)try{j=new f().parseFromString(Ae,Ie)}catch{}if(!j||!j.documentElement){j=k.createDocument(Ye,"template",null);try{j.documentElement.innerHTML=St?C:Ae}catch{}}const Ke=j.body||j.documentElement;return R&&te&&Ke.insertBefore(n.createTextNode(te),Ke.childNodes[0]||null),Ye===X?N.call(j,ct?"html":"body")[0]:ct?j.documentElement:Ke},Qt=function(R){return A.call(R.ownerDocument||R,R,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},zf=function(R){return R instanceof d&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof c)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},_l=function(R){return typeof s=="function"&&R instanceof s},Cr=function(R,j,te){I[R]&&Ec(I[R],Ae=>{Ae.call(t,j,te,hn)})},es=function(R){let j=null;if(Cr("beforeSanitizeElements",R,null),zf(R))return Ot(R),!0;const te=le(R.nodeName);if(Cr("uponSanitizeElement",R,{tagName:te,allowedTags:z}),R.hasChildNodes()&&!_l(R.firstElementChild)&&or(/<[/\w]/g,R.innerHTML)&&or(/<[/\w]/g,R.textContent))return Ot(R),!0;if(!z[te]||xe[te]){if(!xe[te]&&sa(te)&&(me.tagNameCheck instanceof RegExp&&or(me.tagNameCheck,te)||me.tagNameCheck instanceof Function&&me.tagNameCheck(te)))return!1;if(We&&!pe[te]){const Ae=T(R)||R.parentNode,Ke=p(R)||R.childNodes;if(Ke&&Ae){const _e=Ke.length;for(let Je=_e-1;Je>=0;--Je)Ae.insertBefore(v(Ke[Je],!0),y(R))}}return Ot(R),!0}return R instanceof l&&!Te(R)||(te==="noscript"||te==="noembed"||te==="noframes")&&or(/<\/no(script|embed|frames)/i,R.innerHTML)?(Ot(R),!0):(je&&R.nodeType===3&&(j=R.textContent,Ec([L,B,Y],Ae=>{j=Yl(j,Ae," ")}),R.textContent!==j&&(Vl(t.removed,{element:R.cloneNode()}),R.textContent=j)),Cr("afterSanitizeElements",R,null),!1)},yl=function(R,j,te){if(ie&&(j==="id"||j==="name")&&(te in n||te in Ja))return!1;if(!(Ge&&!ut[j]&&or(V,j))){if(!(Ce&&or(W,j))){if(!b[j]||ut[j]){if(!(sa(R)&&(me.tagNameCheck instanceof RegExp&&or(me.tagNameCheck,R)||me.tagNameCheck instanceof Function&&me.tagNameCheck(R))&&(me.attributeNameCheck instanceof RegExp&&or(me.attributeNameCheck,j)||me.attributeNameCheck instanceof Function&&me.attributeNameCheck(j))||j==="is"&&me.allowCustomizedBuiltInElements&&(me.tagNameCheck instanceof RegExp&&or(me.tagNameCheck,te)||me.tagNameCheck instanceof Function&&me.tagNameCheck(te))))return!1}else if(!U[j]){if(!or(M,Yl(te,Q,""))){if(!((j==="src"||j==="xlink:href"||j==="href")&&R!=="script"&&b$(te,"data:")===0&&rr[R])){if(!(Ct&&!or(O,Yl(te,Q,"")))){if(te)return!1}}}}}}return!0},sa=function(R){return R.indexOf("-")>0},b1=function(R){Cr("beforeSanitizeAttributes",R,null);const{attributes:j}=R;if(!j)return;const te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:b};let Ae=j.length;for(;Ae--;){const Ke=j[Ae],{name:_e,namespaceURI:Je,value:$e}=Ke,Ht=le(_e);let dt=_e==="value"?$e:k$($e);if(te.attrName=Ht,te.attrValue=dt,te.keepAttr=!0,te.forceKeepAttr=void 0,Cr("uponSanitizeAttribute",R,te),dt=te.attrValue,te.forceKeepAttr||(yr(_e,R),!te.keepAttr))continue;if(!_t&&or(/\/>/i,dt)){yr(_e,R);continue}je&&Ec([L,B,Y],la=>{dt=Yl(dt,la," ")});const mi=le(R.nodeName);if(yl(mi,Ht,dt)){if(Se&&(Ht==="id"||Ht==="name")&&(yr(_e,R),dt=ve+dt),_&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Je)switch(m.getAttributeType(mi,Ht)){case"TrustedHTML":{dt=_.createHTML(dt);break}case"TrustedScriptURL":{dt=_.createScriptURL(dt);break}}try{Je?R.setAttributeNS(Je,_e,dt):R.setAttribute(_e,dt),t_(t.removed)}catch{}}}Cr("afterSanitizeAttributes",R,null)},Gf=function G(R){let j=null;const te=Qt(R);for(Cr("beforeSanitizeShadowDOM",R,null);j=te.nextNode();)Cr("uponSanitizeShadowNode",j,null),!es(j)&&(j.content instanceof o&&G(j.content),b1(j));Cr("afterSanitizeShadowDOM",R,null)};return t.sanitize=function(G){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,te=null,Ae=null,Ke=null;if(St=!G,St&&(G=""),typeof G!="string"&&!_l(G))if(typeof G.toString=="function"){if(G=G.toString(),typeof G!="string")throw ql("dirty is not a string, aborting")}else throw ql("toString is not a function");if(!t.isSupported)return G;if($t||hi(R),t.removed=[],typeof G=="string"&&(Pe=!1),Pe){if(G.nodeName){const $e=le(G.nodeName);if(!z[$e]||xe[$e])throw ql("root node is forbidden and cannot be sanitized in-place")}}else if(G instanceof s)j=Kr(""),te=j.ownerDocument.importNode(G,!0),te.nodeType===1&&te.nodeName==="BODY"||te.nodeName==="HTML"?j=te:j.appendChild(te);else{if(!Vt&&!je&&!ct&&G.indexOf("<")===-1)return _&&Yt?_.createHTML(G):G;if(j=Kr(G),!j)return Vt?null:Yt?C:""}j&&on&&Ot(j.firstChild);const _e=Qt(Pe?G:j);for(;Ae=_e.nextNode();)es(Ae)||(Ae.content instanceof o&&Gf(Ae.content),b1(Ae));if(Pe)return G;if(Vt){if(fn)for(Ke=S.call(j.ownerDocument);j.firstChild;)Ke.appendChild(j.firstChild);else Ke=j;return(b.shadowroot||b.shadowrootmode)&&(Ke=P.call(r,Ke,!0)),Ke}let Je=ct?j.outerHTML:j.innerHTML;return ct&&z["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&or(CS,j.ownerDocument.doctype.name)&&(Je=" -`+Je),je&&Ec([L,B,Y],$e=>{Je=Yl(Je,$e," ")}),_&&Yt?_.createHTML(Je):Je},t.setConfig=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};hi(G),$t=!0},t.clearConfig=function(){hn=null,$t=!1},t.isValidAttribute=function(G,R,j){hn||hi({});const te=le(G),Ae=le(R);return yl(te,Ae,j)},t.addHook=function(G,R){typeof R=="function"&&(I[G]=I[G]||[],Vl(I[G],R))},t.removeHook=function(G){if(I[G])return t_(I[G])},t.removeHooks=function(G){I[G]&&(I[G]=[])},t.removeAllHooks=function(){I={}},t}var AS=SS();const U$="_container_m3enm_1",z$="_chatRoot_m3enm_8",G$="_chatContainer_m3enm_18",W$="_chatEmptyState_m3enm_30",j$="_chatEmptyStateTitle_m3enm_38",K$="_chatEmptyStateSubtitle_m3enm_50",$$="_chatIcon_m3enm_62",V$="_chatMessageStream_m3enm_67",Y$="_chatMessageUser_m3enm_79",q$="_chatMessageUserMessage_m3enm_85",Q$="_chatMessageGpt_m3enm_103",X$="_chatMessageError_m3enm_109",Z$="_chatMessageErrorContent_m3enm_121",J$="_chatInput_m3enm_133",eV="_clearChatBroom_m3enm_146",tV="_clearChatBroomNoCosmos_m3enm_162",nV="_newChatIcon_m3enm_178",rV="_stopGeneratingContainer_m3enm_194",iV="_stopGeneratingIcon_m3enm_211",oV="_stopGeneratingText_m3enm_217",aV="_citationPanel_m3enm_232",sV="_citationPanelHeaderContainer_m3enm_250",lV="_citationPanelHeader_m3enm_250",uV="_citationPanelDismiss_m3enm_265",cV="_citationPanelTitle_m3enm_276",dV="_citationPanelContent_m3enm_291",fV="_viewSourceButton_m3enm_308",He={container:U$,chatRoot:z$,chatContainer:G$,chatEmptyState:W$,chatEmptyStateTitle:j$,chatEmptyStateSubtitle:K$,chatIcon:$$,chatMessageStream:V$,chatMessageUser:Y$,chatMessageUserMessage:q$,chatMessageGpt:Q$,chatMessageError:X$,chatMessageErrorContent:Z$,chatInput:J$,clearChatBroom:eV,clearChatBroomNoCosmos:tV,newChatIcon:nV,stopGeneratingContainer:rV,stopGeneratingIcon:iV,stopGeneratingText:oV,citationPanel:aV,citationPanelHeaderContainer:sV,citationPanelHeader:lV,citationPanelDismiss:uV,citationPanelTitle:cV,citationPanelContent:dV,viewSourceButton:fV},bS=["iframe","a","img","svg","h1","h2","h3","h4","h5","h6","div","p","span","small","del","img","pictrue","embed","video","audio","i","u","sup","sub","strong","strike","code","pre","body","section","article","footer","table","tr","td","th","thead","tbody","tfooter","ul","ol","li"],hV="_answerContainer_1io9c_1",mV="_answerText_1io9c_12",pV="_answerHeader_1io9c_29",gV="_answerFooter_1io9c_33",EV="_answerDisclaimerContainer_1io9c_42",vV="_answerDisclaimer_1io9c_42",TV="_citationWrapper_1io9c_62",_V="_citationContainer_1io9c_70",yV="_citation_1io9c_62",CV="_accordionIcon_1io9c_120",SV="_accordionTitle_1io9c_135",AV="_clickableSup_1io9c_151",Qr={answerContainer:hV,answerText:mV,answerHeader:pV,answerFooter:gV,answerDisclaimerContainer:EV,answerDisclaimer:vV,citationWrapper:TV,citationContainer:_V,citation:yV,accordionIcon:CV,accordionTitle:SV,clickableSup:AV},bV=e=>{const t=new Map;for(const n of e){const{filepath:r}=n;let i=1;t.has(r)&&(i=t.get(r)+1),t.set(r,i),n.part_index=i}return e};function kV(e){let t=e.answer;const n=t.match(/\[(doc\d\d?\d?)]/g),r=4;let i=[],o=0;return n==null||n.forEach(a=>{let s=a.slice(r,a.length-1),l=E$(e.citations[Number(s)-1]);!i.find(u=>u.id===s)&&l&&(t=t.replaceAll(a,` ^${++o}^ `),l.id=s,l.reindex_id=o.toString(),i.push(l))}),i=bV(i),{citations:i,markdownFormatText:t}}function IV(){return e=>{nl(e,["text"],(t,n,r)=>{if(t.type!=="text")return;const{value:i}=t,o=i.split(/\^/);if(o.length===1||o.length%2===0)return;const a=o.map((s,l)=>l%2===0?{type:"text",value:s}:{type:"superscript",data:{hName:"sup"},children:[{type:"text",value:s}]});r.children.splice(n,1,...a)}),nl(e,["text"],(t,n,r)=>{if(t.type!=="text")return;const{value:i}=t,o=i.split(/\~/);if(o.length===1||o.length%2===0)return;const a=o.map((s,l)=>l%2===0?{type:"text",value:s}:{type:"subscript",data:{hName:"sub"},children:[{type:"text",value:s}]});r.children.splice(n,1,...a)})}}const s_=({answer:e,onCitationClicked:t})=>{var Y,V,W;const n=O=>{if(O.message_id!=null&&O.feedback!=null)return O.feedback.split(",").length>1?we.Negative:Object.values(we).includes(O.feedback)?O.feedback:we.Neutral},[r,{toggle:i}]=h1(!1),o=50,a=E.useMemo(()=>kV(e),[e]),[s,l]=E.useState(r),[u,c]=E.useState(n(e)),[d,f]=E.useState(!1),[m,h]=E.useState(!1),[v,y]=E.useState([]),p=E.useContext(ra),T=((Y=p==null?void 0:p.state.frontendSettings)==null?void 0:Y.feedback_enabled)&&((V=p==null?void 0:p.state.isCosmosDBAvailable)==null?void 0:V.cosmosDB),_=(W=p==null?void 0:p.state.frontendSettings)==null?void 0:W.sanitize_answer,C=()=>{l(!s),i()};E.useEffect(()=>{l(r)},[r]),E.useEffect(()=>{if(e.message_id==null)return;let O;p!=null&&p.state.feedbackState&&(p!=null&&p.state.feedbackState[e.message_id])?O=p==null?void 0:p.state.feedbackState[e.message_id]:O=n(e),c(O)},[p==null?void 0:p.state.feedbackState,u,e.message_id]);const k=(O,Q,M=!1)=>{let z="";if(O.filepath){const $=O.part_index??(O.chunk_id?parseInt(O.chunk_id)+1:"");if(M&&O.filepath.length>o){const b=O.filepath.length;z=`${O.filepath.substring(0,20)}...${O.filepath.substring(b-20)} - Part ${$}`}else z=`${O.filepath} - Part ${$}`}else O.filepath&&O.reindex_id?z=`${O.filepath} - Part ${O.reindex_id}`:z=`Citation ${Q}`;return z},A=async()=>{if(e.message_id==null)return;let O=u;u==we.Positive?O=we.Neutral:O=we.Positive,p==null||p.dispatch({type:"SET_FEEDBACK_STATE",payload:{answerId:e.message_id,feedback:O}}),c(O),await zh(e.message_id,O)},S=async()=>{if(e.message_id==null)return;let O=u;u===void 0||u===we.Neutral||u===we.Positive?(O=we.Negative,c(O),f(!0)):(O=we.Neutral,c(O),await zh(e.message_id,we.Neutral)),p==null||p.dispatch({type:"SET_FEEDBACK_STATE",payload:{answerId:e.message_id,feedback:O}})},N=(O,Q)=>{var $;if(e.message_id==null)return;let M=($=O==null?void 0:O.target)==null?void 0:$.id,z=v.slice();Q?z.push(M):z=z.filter(b=>b!==M),y(z)},P=async()=>{e.message_id!=null&&(await zh(e.message_id,v.join(",")),I())},I=()=>{f(!1),h(!1),y([])},L=()=>fe(ro,{children:[H("div",{children:"Why wasn't this response helpful?"}),fe(ge,{tokens:{childrenGap:4},children:[H(Ei,{label:"Citations are missing",id:we.MissingCitation,defaultChecked:v.includes(we.MissingCitation),onChange:N}),H(Ei,{label:"Citations are wrong",id:we.WrongCitation,defaultChecked:v.includes(we.WrongCitation),onChange:N}),H(Ei,{label:"The response is not from my data",id:we.OutOfScope,defaultChecked:v.includes(we.OutOfScope),onChange:N}),H(Ei,{label:"Inaccurate or irrelevant",id:we.InaccurateOrIrrelevant,defaultChecked:v.includes(we.InaccurateOrIrrelevant),onChange:N}),H(Ei,{label:"Other",id:we.OtherUnhelpful,defaultChecked:v.includes(we.OtherUnhelpful),onChange:N})]}),H("div",{onClick:()=>h(!0),style:{color:"#115EA3",cursor:"pointer"},children:"Report inappropriate content"})]}),B=()=>fe(ro,{children:[fe("div",{children:["The content is ",H("span",{style:{color:"red"},children:"*"})]}),fe(ge,{tokens:{childrenGap:4},children:[H(Ei,{label:"Hate speech, stereotyping, demeaning",id:we.HateSpeech,defaultChecked:v.includes(we.HateSpeech),onChange:N}),H(Ei,{label:"Violent: glorification of violence, self-harm",id:we.Violent,defaultChecked:v.includes(we.Violent),onChange:N}),H(Ei,{label:"Sexual: explicit content, grooming",id:we.Sexual,defaultChecked:v.includes(we.Sexual),onChange:N}),H(Ei,{label:"Manipulative: devious, emotional, pushy, bullying",defaultChecked:v.includes(we.Manipulative),id:we.Manipulative,onChange:N}),H(Ei,{label:"Other",id:we.OtherHarmful,defaultChecked:v.includes(we.OtherHarmful),onChange:N})]})]});return fe(ro,{children:[fe(ge,{className:Qr.answerContainer,tabIndex:0,children:[H(ge.Item,{children:fe(ge,{horizontal:!0,grow:!0,children:[H(ge.Item,{grow:!0,children:H(Ng,{linkTarget:"_blank",remarkPlugins:[g8,IV],children:_?AS.sanitize(a.markdownFormatText,{ALLOWED_TAGS:bS}):a.markdownFormatText,className:Qr.answerText})}),H(ge.Item,{className:Qr.answerHeader,children:T&&e.message_id!==void 0&&fe(ge,{horizontal:!0,horizontalAlign:"space-between",children:[H(zw,{"aria-hidden":"false","aria-label":"Like this response",onClick:()=>A(),style:u===we.Positive||(p==null?void 0:p.state.feedbackState[e.message_id])===we.Positive?{color:"darkgreen",cursor:"pointer"}:{color:"slategray",cursor:"pointer"}}),H(Hw,{"aria-hidden":"false","aria-label":"Dislike this response",onClick:()=>S(),style:u!==we.Positive&&u!==we.Neutral&&u!==void 0?{color:"darkred",cursor:"pointer"}:{color:"slategray",cursor:"pointer"}})]})})]})}),fe(ge,{horizontal:!0,className:Qr.answerFooter,children:[!!a.citations.length&&H(ge.Item,{onKeyDown:O=>O.key==="Enter"||O.key===" "?i():null,children:H(ge,{style:{width:"100%"},children:fe(ge,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",children:[H(Ho,{className:Qr.accordionTitle,onClick:i,"aria-label":"Open references",tabIndex:0,role:"button",children:H("span",{children:a.citations.length>1?a.citations.length+" references":"1 reference"})}),H(Fd,{className:Qr.accordionIcon,onClick:C,iconName:s?"ChevronDown":"ChevronRight"})]})})}),H(ge.Item,{className:Qr.answerDisclaimerContainer,children:H("span",{className:Qr.answerDisclaimer,children:"AI-generated content may be incorrect"})})]}),s&&H("div",{className:Qr.citationWrapper,children:a.citations.map((O,Q)=>fe("span",{title:k(O,++Q),tabIndex:0,role:"link",onClick:()=>t(O),onKeyDown:M=>M.key==="Enter"||M.key===" "?t(O):null,className:Qr.citationContainer,"aria-label":k(O,Q),children:[H("div",{className:Qr.citation,children:Q}),k(O,Q,!0)]},Q))})]}),H(fl,{onDismiss:()=>{I(),c(we.Neutral)},hidden:!d,styles:{main:[{selectors:{["@media (min-width: 480px)"]:{maxWidth:"600px",background:"#FFFFFF",boxShadow:"0px 14px 28.8px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px",maxHeight:"600px",minHeight:"100px"}}}]},dialogContentProps:{title:"Submit Feedback",showCloseButton:!0},children:fe(ge,{tokens:{childrenGap:4},children:[H("div",{children:"Your feedback will improve this experience."}),m?H(B,{}):H(L,{}),H("div",{children:"By pressing submit, your feedback will be visible to the application owner."}),H(p1,{disabled:v.length<1,onClick:P,children:"Submit"})]})})]})},FV="/assets/Send-d0601aaa.svg",NV="_questionInputContainer_scmpq_1",xV="_questionInputTextArea_scmpq_13",DV="_questionInputSendButtonContainer_scmpq_22",wV="_questionInputSendButton_scmpq_22",RV="_questionInputSendButtonDisabled_scmpq_33",OV="_questionInputBottomBorder_scmpq_41",MV="_questionInputOptionsButton_scmpq_52",ds={questionInputContainer:NV,questionInputTextArea:xV,questionInputSendButtonContainer:DV,questionInputSendButton:wV,questionInputSendButtonDisabled:RV,questionInputBottomBorder:OV,questionInputOptionsButton:MV},PV=({onSend:e,disabled:t,placeholder:n,clearOnSend:r,conversationId:i})=>{const[o,a]=E.useState(""),s=()=>{t||!o.trim()||(i?e(o,i):e(o),r&&a(""))},l=d=>{var f;d.key==="Enter"&&!d.shiftKey&&((f=d.nativeEvent)==null?void 0:f.isComposing)!==!0&&(d.preventDefault(),s())},u=(d,f)=>{a(f||"")},c=t||!o.trim();return fe(ge,{horizontal:!0,className:ds.questionInputContainer,children:[H(gg,{className:ds.questionInputTextArea,placeholder:n,multiline:!0,resizable:!1,borderless:!0,value:o,onChange:u,onKeyDown:l}),H("div",{className:ds.questionInputSendButtonContainer,role:"button",tabIndex:0,"aria-label":"Ask question button",onClick:s,onKeyDown:d=>d.key==="Enter"||d.key===" "?s():null,children:c?H(Rw,{className:ds.questionInputSendButtonDisabled}):H("img",{src:FV,className:ds.questionInputSendButton})}),H("div",{className:ds.questionInputBottomBorder})]})},LV="_container_1jok3_1",BV="_listContainer_1jok3_6",HV="_itemCell_1jok3_11",UV="_itemButton_1jok3_28",zV="_chatGroup_1jok3_45",GV="_spinnerContainer_1jok3_50",WV="_chatList_1jok3_57",jV="_chatMonth_1jok3_61",KV="_chatTitle_1jok3_68",xr={container:LV,listContainer:BV,itemCell:HV,itemButton:UV,chatGroup:zV,spinnerContainer:GV,chatList:WV,chatMonth:jV,chatTitle:KV},$V=e=>{const n=new Date().getFullYear(),[r,i]=e.split(" ");return parseInt(i)===n?r:e},VV=({item:e,onSelect:t})=>{var W,O,Q;const[n,r]=E.useState(!1),[i,o]=E.useState(!1),[a,s]=E.useState(""),[l,{toggle:u}]=h1(!0),[c,d]=E.useState(!1),[f,m]=E.useState(!1),[h,v]=E.useState(void 0),[y,p]=E.useState(!1),T=E.useRef(null),_=E.useContext(ra),C=(e==null?void 0:e.id)===((W=_==null?void 0:_.state.currentChat)==null?void 0:W.id),k={type:Ni.close,title:"Are you sure you want to delete this item?",closeButtonAriaLabel:"Close",subText:"The history of this chat session will permanently removed."},A={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}};if(!e)return null;E.useEffect(()=>{y&&T.current&&(T.current.focus(),p(!1))},[y]),E.useEffect(()=>{var M;((M=_==null?void 0:_.state.currentChat)==null?void 0:M.id)!==(e==null?void 0:e.id)&&(o(!1),s(""))},[(O=_==null?void 0:_.state.currentChat)==null?void 0:O.id,e==null?void 0:e.id]);const S=async()=>{(await Xw(e.id)).ok?_==null||_.dispatch({type:"DELETE_CHAT_ENTRY",payload:e.id}):(d(!0),setTimeout(()=>{d(!1)},5e3)),u()},N=()=>{o(!0),p(!0),s(e==null?void 0:e.title)},P=()=>{t(e),_==null||_.dispatch({type:"UPDATE_CURRENT_CHAT",payload:e})},I=((Q=e==null?void 0:e.title)==null?void 0:Q.length)>28?`${e.title.substring(0,28)} ...`:e.title,L=async M=>{if(M.preventDefault(),h||f)return;if(a==e.title){v("Error: Enter a new title to proceed."),setTimeout(()=>{v(void 0),p(!0),T.current&&T.current.focus()},5e3);return}m(!0),(await eR(e.id,a)).ok?(m(!1),o(!1),_==null||_.dispatch({type:"UPDATE_CHAT_TITLE",payload:{...e,title:a}}),s("")):(v("Error: could not rename item"),setTimeout(()=>{p(!0),v(void 0),T.current&&T.current.focus()},5e3))},B=M=>{s(M.target.value)},Y=()=>{o(!1),s("")},V=M=>{if(M.key==="Enter")return L(M);if(M.key==="Escape"){Y();return}};return fe(ge,{tabIndex:0,"aria-label":"chat history item",className:xr.itemCell,onClick:()=>P(),onKeyDown:M=>M.key==="Enter"||M.key===" "?P():null,verticalAlign:"center",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),styles:{root:{backgroundColor:C?"#e6e6e6":"transparent"}},children:[i?H(ro,{children:H(ge.Item,{style:{width:"100%"},children:fe("form",{"aria-label":"edit title form",onSubmit:M=>L(M),style:{padding:"5px 0px"},children:[fe(ge,{horizontal:!0,verticalAlign:"start",children:[H(ge.Item,{children:H(gg,{componentRef:T,autoFocus:y,value:a,placeholder:e.title,onChange:B,onKeyDown:V,disabled:!!h})}),a&&H(ge.Item,{children:fe(ge,{"aria-label":"action button group",horizontal:!0,verticalAlign:"center",children:[H(Fa,{role:"button",disabled:h!==void 0,onKeyDown:M=>M.key===" "||M.key==="Enter"?L(M):null,onClick:M=>L(M),"aria-label":"confirm new title",iconProps:{iconName:"CheckMark"},styles:{root:{color:"green",marginLeft:"5px"}}}),H(Fa,{role:"button",disabled:h!==void 0,onKeyDown:M=>M.key===" "||M.key==="Enter"?Y():null,onClick:()=>Y(),"aria-label":"cancel edit title",iconProps:{iconName:"Cancel"},styles:{root:{color:"red",marginLeft:"5px"}}})]})})]}),h&&H(Ho,{role:"alert","aria-label":h,style:{fontSize:12,fontWeight:400,color:"rgb(164,38,44)"},children:h})]})})}):H(ro,{children:fe(ge,{horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[H("div",{className:xr.chatTitle,children:I}),(C||n)&&fe(ge,{horizontal:!0,horizontalAlign:"end",children:[H(Fa,{className:xr.itemButton,iconProps:{iconName:"Delete"},title:"Delete",onClick:u,onKeyDown:M=>M.key===" "?u():null}),H(Fa,{className:xr.itemButton,iconProps:{iconName:"Edit"},title:"Edit",onClick:N,onKeyDown:M=>M.key===" "?N():null})]})]})}),c&&H(Ho,{styles:{root:{color:"red",marginTop:5,fontSize:14}},children:"Error: could not delete item"}),H(fl,{hidden:l,onDismiss:u,dialogContentProps:k,modalProps:A,children:fe(Eg,{children:[H(q2,{onClick:S,text:"Delete"}),H(p1,{onClick:u,text:"Cancel"})]})})]},e.id)},YV=({groupedChatHistory:e})=>{const t=E.useContext(ra),n=E.useRef(null),[,r]=E.useState(null),[i,o]=E.useState(25),[a,s]=E.useState(0),[l,u]=E.useState(!1),c=E.useRef(!0),d=h=>{h&&r(h)},f=h=>H(VV,{item:h,onSelect:()=>d(h)});E.useEffect(()=>{if(c.current){c.current=!1;return}m(),o(h=>h+=25)},[a]);const m=async()=>{const h=t==null?void 0:t.state.chatHistory;u(!0),await dC(i).then(v=>{const y=h&&v&&h.concat(...v);return v?t==null||t.dispatch({type:"FETCH_CHAT_HISTORY",payload:y||v}):t==null||t.dispatch({type:"FETCH_CHAT_HISTORY",payload:null}),u(!1),v})};return E.useEffect(()=>{const h=new IntersectionObserver(v=>{v[0].isIntersecting&&s(y=>y+=1)},{threshold:1});return n.current&&h.observe(n.current),()=>{n.current&&h.unobserve(n.current)}},[n]),fe("div",{className:xr.listContainer,"data-is-scrollable":!0,children:[e.map(h=>h.entries.length>0&&fe(ge,{horizontalAlign:"start",verticalAlign:"center",className:xr.chatGroup,"aria-label":`chat history group: ${h.month}`,children:[H(ge,{"aria-label":h.month,className:xr.chatMonth,children:$V(h.month)}),H(yx,{"aria-label":"chat history list",items:h.entries,onRenderCell:f,className:xr.chatList}),H("div",{ref:n}),H(nC,{styles:{root:{width:"100%",position:"relative","::before":{backgroundColor:"#d6d6d6"}}}})]},h.month)),l&&H("div",{className:xr.spinnerContainer,children:H(Z2,{size:ii.small,"aria-label":"loading more chat history",className:xr.spinner})})]})},qV=e=>{const t=[{month:"Recent",entries:[]}],n=new Date;return e.forEach(r=>{const i=new Date(r.date),o=(n.getTime()-i.getTime())/(1e3*60*60*24),a=i.toLocaleString("default",{month:"long",year:"numeric"}),s=t.find(l=>l.month===a);o<=7?t[0].entries.push(r):s?s.entries.push(r):t.push({month:a,entries:[r]})}),t.sort((r,i)=>{if(r.entries.length===0&&i.entries.length===0)return 0;if(r.entries.length===0)return 1;if(i.entries.length===0)return-1;const o=new Date(r.entries[0].date);return new Date(i.entries[0].date).getTime()-o.getTime()}),t.forEach(r=>{r.entries.sort((i,o)=>{const a=new Date(i.date);return new Date(o.date).getTime()-a.getTime()})}),t},QV=()=>{const e=E.useContext(ra),t=e==null?void 0:e.state.chatHistory;Dn.useEffect(()=>{},[e==null?void 0:e.state.chatHistory]);let n;if(t&&t.length>0)n=qV(t);else return H(ge,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:H(Mo,{children:H(Ho,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:H("span",{children:"No chat history."})})})});return H(YV,{groupedChatHistory:n})},l_={root:{padding:"0",display:"flex",justifyContent:"center",backgroundColor:"transparent"}},XV={root:{height:"50px"}};function ZV(e){var T,_,C;const t=E.useContext(ra),[n,r]=Dn.useState(!1),[i,{toggle:o}]=h1(!0),[a,s]=Dn.useState(!1),[l,u]=Dn.useState(!1),c={type:Ni.close,title:l?"Error deleting all of chat history":"Are you sure you want to clear all chat history?",closeButtonAriaLabel:"Close",subText:l?"Please try again. If the problem persists, please contact the site administrator.":"All chat history will be permanently removed."},d={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},f=[{key:"clearAll",text:"Clear all chat history",iconProps:{iconName:"Delete"}}],m=()=>{t==null||t.dispatch({type:"TOGGLE_CHAT_HISTORY"})},h=Dn.useCallback(k=>{k.preventDefault(),r(!0)},[]),v=Dn.useCallback(()=>r(!1),[]),y=async()=>{s(!0),(await Zw()).ok?(t==null||t.dispatch({type:"DELETE_CHAT_HISTORY"}),o()):u(!0),s(!1)},p=()=>{o(),setTimeout(()=>{u(!1)},2e3)};return Dn.useEffect(()=>{},[t==null?void 0:t.state.chatHistory,l]),fe("section",{className:xr.container,"data-is-scrollable":!0,"aria-label":"chat history panel",children:[fe(ge,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",wrap:!0,"aria-label":"chat history header",children:[H(Mo,{children:H(Ho,{role:"heading","aria-level":2,style:{alignSelf:"center",fontWeight:"600",fontSize:"18px",marginRight:"auto",paddingLeft:"20px"},children:"Chat history"})}),H(ge,{verticalAlign:"start",children:fe(ge,{horizontal:!0,styles:XV,children:[H(Zu,{iconProps:{iconName:"More"},title:"Clear all chat history",onClick:h,"aria-label":"clear all chat history",styles:l_,role:"button",id:"moreButton"}),H(Nd,{items:f,hidden:!n,target:"#moreButton",onItemClick:o,onDismiss:v}),H(Zu,{iconProps:{iconName:"Cancel"},title:"Hide",onClick:m,"aria-label":"hide button",styles:l_,role:"button"})]})})]}),H(ge,{"aria-label":"chat history panel content",styles:{root:{display:"flex",flexGrow:1,flexDirection:"column",paddingTop:"2.5px",maxWidth:"100%"}},style:{display:"flex",flexGrow:1,flexDirection:"column",flexWrap:"wrap",padding:"1px"},children:fe(ge,{className:xr.chatHistoryListContainer,children:[(t==null?void 0:t.state.chatHistoryLoadingState)===xn.Success&&(t==null?void 0:t.state.isCosmosDBAvailable.cosmosDB)&&H(QV,{}),(t==null?void 0:t.state.chatHistoryLoadingState)===xn.Fail&&(t==null?void 0:t.state.isCosmosDBAvailable)&&H(ro,{children:H(ge,{children:fe(ge,{horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[H(Mo,{children:fe(Ho,{style:{alignSelf:"center",fontWeight:"400",fontSize:16},children:[((T=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:T.status)&&H("span",{children:(_=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:_.status}),!((C=t==null?void 0:t.state.isCosmosDBAvailable)!=null&&C.status)&&H("span",{children:"Error loading chat history"})]})}),H(Mo,{children:H(Ho,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:H("span",{children:"Chat history can't be saved at this time"})})})]})})}),(t==null?void 0:t.state.chatHistoryLoadingState)===xn.Loading&&H(ro,{children:H(ge,{children:fe(ge,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[H(Mo,{style:{justifyContent:"center",alignItems:"center"},children:H(Z2,{style:{alignSelf:"flex-start",height:"100%",marginRight:"5px"},size:ii.medium})}),H(Mo,{children:H(Ho,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:H("span",{style:{whiteSpace:"pre-wrap"},children:"Loading chat history"})})})]})})})]})}),H(fl,{hidden:i,onDismiss:a?()=>{}:p,dialogContentProps:c,modalProps:d,children:fe(Eg,{children:[!l&&H(q2,{onClick:y,disabled:a,text:"Clear All"}),H(p1,{onClick:p,disabled:a,text:l?"Close":"Cancel"})]})})]})}const JV=()=>{var _t,je,ct,$t,on,Vt,fn,Yt;const e=E.useContext(ra),t=(_t=e==null?void 0:e.state.frontendSettings)==null?void 0:_t.ui,n=(je=e==null?void 0:e.state.frontendSettings)==null?void 0:je.auth_enabled,r=E.useRef(null),[i,o]=E.useState(!1),[a,s]=E.useState(!1),[l,u]=E.useState(),[c,d]=E.useState(!1),f=E.useRef([]),[m,h]=E.useState(!0),[v,y]=E.useState([]),[p,T]=E.useState("Not Running"),[_,C]=E.useState(!1),[k,{toggle:A}]=h1(!0),[S,N]=E.useState(),P={type:Ni.close,title:S==null?void 0:S.title,closeButtonAriaLabel:"Close",subText:S==null?void 0:S.subtitle},I={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},[L,B,Y]=["assistant","tool","error"];E.useEffect(()=>{var ie,Se;if(((ie=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:ie.status)!==Tn.Working&&((Se=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:Se.status)!==Tn.NotConfigured&&(e==null?void 0:e.state.chatHistoryLoadingState)===xn.Fail&&k){let ve=`${e.state.isCosmosDBAvailable.status}. Please contact the site administrator.`;N({title:"Chat history is not enabled",subtitle:ve}),A()}},[e==null?void 0:e.state.isCosmosDBAvailable]);const V=()=>{A(),setTimeout(()=>{N(null)},500)};E.useEffect(()=>{o((e==null?void 0:e.state.chatHistoryLoadingState)===xn.Loading)},[e==null?void 0:e.state.chatHistoryLoadingState]);const W=async()=>{if(!n){h(!1);return}(await Yw()).length===0&&window.location.hostname!=="127.0.0.1"?h(!0):h(!1)};let O={},Q={},M="";const z=(ie,Se,ve)=>{ie.role===L&&(M+=ie.content,O=ie,O.content=M,ie.context&&(Q={id:Yi(),role:B,content:ie.context,date:new Date().toISOString()})),ie.role===B&&(Q=ie),ve?$l(Q)?y([...v,O]):y([...v,Q,O]):$l(Q)?y([...v,Se,O]):y([...v,Se,Q,O])},$=async(ie,Se)=>{var rr,An;o(!0),s(!0);const ve=new AbortController;f.current.unshift(ve);const We={id:Yi(),role:"user",content:ie,date:new Date().toISOString()};let Pe;if(!Se)Pe={id:Se??Yi(),title:ie,messages:[We],date:new Date().toISOString()};else if(Pe=(rr=e==null?void 0:e.state)==null?void 0:rr.currentChat,Pe)Pe.messages.push(We);else{console.error("Conversation not found."),o(!1),s(!1),f.current=f.current.filter(U=>U!==ve);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Pe}),y(Pe.messages);const nt={messages:[...Pe.messages.filter(U=>U.role!==Y)]};let pe={};try{const U=await Vw(nt,ve.signal);if(U!=null&&U.body){const q=U.body.getReader();let oe="";for(;;){T("Processing");const{done:Ee,value:X}=await q.read();if(Ee)break;var Gn=new TextDecoder("utf-8").decode(X);Gn.split(` -`).forEach(St=>{var At,ke;try{if(St!==""&&St!=="{}"){if(oe+=St,pe=JSON.parse(oe),((At=pe.choices)==null?void 0:At.length)>0)pe.choices[0].messages.forEach(Ie=>{Ie.id=pe.id,Ie.date=new Date().toISOString()}),(ke=pe.choices[0].messages)!=null&&ke.some(Ie=>Ie.role===L)&&s(!1),pe.choices[0].messages.forEach(Ie=>{z(Ie,We,Se)});else if(pe.error)throw Error(pe.error);oe=""}}catch(Ie){if(Ie instanceof SyntaxError)console.log("Incomplete message. Continuing...");else throw console.error(Ie),Ie}})}Pe.messages.push(Q,O),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Pe}),y([...v,Q,O])}}catch{if(ve.signal.aborted)y([...v,We]);else{let q="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(An=pe.error)!=null&&An.message?q=pe.error.message:typeof pe.error=="string"&&(q=pe.error);let oe={id:Yi(),role:Y,content:q,date:new Date().toISOString()};Pe.messages.push(oe),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Pe}),y([...v,oe])}}finally{o(!1),s(!1),f.current=f.current.filter(U=>U!==ve),T("Done")}return ve.abort()},b=async(ie,Se)=>{var An,U,q,oe,Ee,X,Ye,St,At;o(!0),s(!0);const ve=new AbortController;f.current.unshift(ve);const We={id:Yi(),role:"user",content:ie,date:new Date().toISOString()};let Pe,nt;if(Se)if(nt=(U=(An=e==null?void 0:e.state)==null?void 0:An.chatHistory)==null?void 0:U.find(ke=>ke.id===Se),nt)nt.messages.push(We),Pe={messages:[...nt.messages.filter(ke=>ke.role!==Y)]};else{console.error("Conversation not found."),o(!1),s(!1),f.current=f.current.filter(ke=>ke!==ve);return}else Pe={messages:[We].filter(ke=>ke.role!==Y)},y(Pe.messages);let pe={};try{const ke=Se?await _5(Pe,ve.signal,Se):await _5(Pe,ve.signal);if(!(ke!=null&&ke.ok)){const Ie=await ke.json();var Gn=Ie.error===void 0?"Please try again. If the problem persists, please contact the site administrator.":Ie.error;let Fe={id:Yi(),role:Y,content:`There was an error generating a response. Chat history can't be saved at this time. ${Gn}`,date:new Date().toISOString()},Be;if(Se){if(Be=(oe=(q=e==null?void 0:e.state)==null?void 0:q.chatHistory)==null?void 0:oe.find(le=>le.id===Se),!Be){console.error("Conversation not found."),o(!1),s(!1),f.current=f.current.filter(le=>le!==ve);return}Be.messages.push(Fe)}else{y([...v,We,Fe]),o(!1),s(!1),f.current=f.current.filter(le=>le!==ve);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Be}),y([...Be.messages]);return}if(ke!=null&&ke.body){const Ie=ke.body.getReader();let Fe="";for(;;){T("Processing");const{done:le,value:hn}=await Ie.read();if(le)break;var rr=new TextDecoder("utf-8").decode(hn);rr.split(` -`).forEach(jr=>{var hi,Ui;try{if(jr!==""&&jr!=="{}")Fe+=jr,pe=JSON.parse(Fe),((hi=pe.choices)==null?void 0:hi.length)>0&&(pe.choices[0].messages.forEach(qt=>{qt.id=pe.id,qt.date=new Date().toISOString()}),(Ui=pe.choices[0].messages)!=null&&Ui.some(qt=>qt.role===L)&&s(!1),pe.choices[0].messages.forEach(qt=>{z(qt,We,Se)})),Fe="";else if(pe.error)throw Error(pe.error)}catch(qt){if(qt instanceof SyntaxError)console.log("Incomplete message. Continuing...");else throw console.error(qt),qt}})}let Be;if(Se){if(Be=(X=(Ee=e==null?void 0:e.state)==null?void 0:Ee.chatHistory)==null?void 0:X.find(le=>le.id===Se),!Be){console.error("Conversation not found."),o(!1),s(!1),f.current=f.current.filter(le=>le!==ve);return}$l(Q)?Be.messages.push(O):Be.messages.push(Q,O)}else Be={id:pe.history_metadata.conversation_id,title:pe.history_metadata.title,messages:[We],date:pe.history_metadata.date},$l(Q)?Be.messages.push(O):Be.messages.push(Q,O);if(!Be){o(!1),s(!1),f.current=f.current.filter(le=>le!==ve);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Be}),$l(Q)?y([...v,O]):y([...v,Q,O])}}catch{if(ve.signal.aborted)y([...v,We]);else{let Ie=`An error occurred. ${Gn}`;(Ye=pe.error)!=null&&Ye.message?Ie=pe.error.message:typeof pe.error=="string"&&(Ie=pe.error);let Fe={id:Yi(),role:Y,content:Ie,date:new Date().toISOString()},Be;if(Se){if(Be=(At=(St=e==null?void 0:e.state)==null?void 0:St.chatHistory)==null?void 0:At.find(le=>le.id===Se),!Be){console.error("Conversation not found."),o(!1),s(!1),f.current=f.current.filter(le=>le!==ve);return}Be.messages.push(Fe)}else{if(!pe.history_metadata){console.error("Error retrieving data.",pe),console.log("errorMessage",Ie);let le={id:Yi(),role:Y,content:Ie,date:new Date().toISOString()};y([...v,We,le]),o(!1),s(!1),f.current=f.current.filter(hn=>hn!==ve);return}Be={id:pe.history_metadata.conversation_id,title:pe.history_metadata.title,messages:[We],date:pe.history_metadata.date},Be.messages.push(Fe)}if(!Be){o(!1),s(!1),f.current=f.current.filter(le=>le!==ve);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Be}),y([...v,Fe])}}finally{o(!1),s(!1),f.current=f.current.filter(ke=>ke!==ve),T("Done")}return ve.abort()},F=async()=>{var ie;C(!0),(ie=e==null?void 0:e.state.currentChat)!=null&&ie.id&&(e!=null&&e.state.isCosmosDBAvailable.cosmosDB)&&((await Jw(e==null?void 0:e.state.currentChat.id)).ok?(e==null||e.dispatch({type:"DELETE_CURRENT_CHAT_MESSAGES",payload:e==null?void 0:e.state.currentChat.id}),e==null||e.dispatch({type:"UPDATE_CHAT_HISTORY",payload:e==null?void 0:e.state.currentChat}),u(void 0),d(!1),y([])):(N({title:"Error clearing current chat",subtitle:"Please try again. If the problem persists, please contact the site administrator."}),A())),C(!1)},me=()=>{T("Processing"),y([]),d(!1),u(void 0),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:null}),T("Done")},xe=()=>{f.current.forEach(ie=>ie.abort()),s(!1),o(!1)};E.useEffect(()=>{e!=null&&e.state.currentChat?y(e.state.currentChat.messages):y([])},[e==null?void 0:e.state.currentChat]),E.useLayoutEffect(()=>{var Se;const ie=async(ve,We)=>await Qw(ve,We);if(e&&e.state.currentChat&&p==="Done"){if(e.state.isCosmosDBAvailable.cosmosDB){if(!((Se=e==null?void 0:e.state.currentChat)!=null&&Se.messages)){console.error("Failure fetching current chat state.");return}ie(e.state.currentChat.messages,e.state.currentChat.id).then(ve=>{var We,Pe;if(!ve.ok){let nt="An error occurred. Answers can't be saved at this time. If the problem persists, please contact the site administrator.",pe={id:Yi(),role:Y,content:nt,date:new Date().toISOString()};if(!((We=e==null?void 0:e.state.currentChat)!=null&&We.messages))throw{...new Error,message:"Failure fetching current chat state."};y([...(Pe=e==null?void 0:e.state.currentChat)==null?void 0:Pe.messages,pe])}return ve}).catch(ve=>(console.error("Error: ",ve),{...new Response,ok:!1,status:500}))}e==null||e.dispatch({type:"UPDATE_CHAT_HISTORY",payload:e.state.currentChat}),y(e.state.currentChat.messages),T("Not Running")}},[p]),E.useEffect(()=>{n!==void 0&&W()},[n]),E.useLayoutEffect(()=>{var ie;(ie=r.current)==null||ie.scrollIntoView({behavior:"smooth"})},[a,p]);const ut=ie=>{u(ie),d(!0)},Ce=ie=>{ie.url&&!ie.url.includes("blob.core")&&window.open(ie.url,"_blank")},Ge=ie=>{if(ie!=null&&ie.role&&(ie==null?void 0:ie.role)==="tool")try{return JSON.parse(ie.content).citations}catch{return[]}return[]},Ct=()=>i||v&&v.length===0||_||(e==null?void 0:e.state.chatHistoryLoadingState)===xn.Loading;return H("div",{className:He.container,role:"main",children:m?fe(ge,{className:He.chatEmptyState,children:[H(Mw,{className:He.chatIcon,style:{color:"darkorange",height:"200px",width:"200px"}}),H("h1",{className:He.chatEmptyStateTitle,children:"Authentication Not Configured"}),fe("h2",{className:He.chatEmptyStateSubtitle,children:["This app does not have authentication configured. Please add an identity provider by finding your app in the ",H("a",{href:"https://portal.azure.com/",target:"_blank",children:"Azure Portal"}),"and following ",H("a",{href:"https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service#3-configure-authentication-and-authorization",target:"_blank",children:"these instructions"}),"."]}),H("h2",{className:He.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:H("strong",{children:"Authentication configuration takes a few minutes to apply. "})}),H("h2",{className:He.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:H("strong",{children:"If you deployed in the last 10 minutes, please wait and reload the page after 10 minutes."})})]}):fe(ge,{horizontal:!0,className:He.chatRoot,children:[fe("div",{className:He.chatContainer,children:[!v||v.length<1?fe(ge,{className:He.chatEmptyState,children:[H("img",{src:t!=null&&t.chat_logo?t.chat_logo:sC,className:He.chatIcon,"aria-hidden":"true"}),H("h1",{className:He.chatEmptyStateTitle,children:t==null?void 0:t.chat_title}),H("h2",{className:He.chatEmptyStateSubtitle,children:t==null?void 0:t.chat_description})]}):fe("div",{className:He.chatMessageStream,style:{marginBottom:i?"40px":"0px"},role:"log",children:[v.map((ie,Se)=>H(ro,{children:ie.role==="user"?H("div",{className:He.chatMessageUser,tabIndex:0,children:H("div",{className:He.chatMessageUserMessage,children:ie.content})}):ie.role==="assistant"?H("div",{className:He.chatMessageGpt,children:H(s_,{answer:{answer:ie.content,citations:Ge(v[Se-1]),message_id:ie.id,feedback:ie.feedback},onCitationClicked:ve=>ut(ve)})}):ie.role===Y?fe("div",{className:He.chatMessageError,children:[fe(ge,{horizontal:!0,className:He.chatMessageErrorContent,children:[H(Dw,{className:He.errorIcon,style:{color:"rgba(182, 52, 67, 1)"}}),H("span",{children:"Error"})]}),H("span",{className:He.chatMessageErrorContent,children:ie.content})]}):null})),a&&H(ro,{children:H("div",{className:He.chatMessageGpt,children:H(s_,{answer:{answer:"Generating answer...",citations:[]},onCitationClicked:()=>null})})}),H("div",{ref:r})]}),fe(ge,{horizontal:!0,className:He.chatInput,children:[i&&fe(ge,{horizontal:!0,className:He.stopGeneratingContainer,role:"button","aria-label":"Stop generating",tabIndex:0,onClick:xe,onKeyDown:ie=>ie.key==="Enter"||ie.key===" "?xe():null,children:[H(Lw,{className:He.stopGeneratingIcon,"aria-hidden":"true"}),H("span",{className:He.stopGeneratingText,"aria-hidden":"true",children:"Stop generating"})]}),fe(ge,{children:[((ct=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:ct.status)!==Tn.NotConfigured&&H(Zu,{role:"button",styles:{icon:{color:"#FFFFFF"},iconDisabled:{color:"#BDBDBD !important"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#F0F0F0"}},className:He.newChatIcon,iconProps:{iconName:"Add"},onClick:me,disabled:Ct(),"aria-label":"start a new chat button"}),H(Zu,{role:"button",styles:{icon:{color:"#FFFFFF"},iconDisabled:{color:"#BDBDBD !important"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#F0F0F0"}},className:(($t=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:$t.status)!==Tn.NotConfigured?He.clearChatBroom:He.clearChatBroomNoCosmos,iconProps:{iconName:"Broom"},onClick:((on=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:on.status)!==Tn.NotConfigured?F:me,disabled:Ct(),"aria-label":"clear chat button"}),H(fl,{hidden:k,onDismiss:V,dialogContentProps:P,modalProps:I})]}),H(PV,{clearOnSend:!0,placeholder:"Type a new question...",disabled:i,onSend:(ie,Se)=>{var ve;(ve=e==null?void 0:e.state.isCosmosDBAvailable)!=null&&ve.cosmosDB?b(ie,Se):$(ie,Se)},conversationId:(Vt=e==null?void 0:e.state.currentChat)!=null&&Vt.id?(fn=e==null?void 0:e.state.currentChat)==null?void 0:fn.id:void 0})]})]}),v&&v.length>0&&c&&l&&fe(ge.Item,{className:He.citationPanel,tabIndex:0,role:"tabpanel","aria-label":"Citations Panel",children:[fe(ge,{"aria-label":"Citations Panel Header Container",horizontal:!0,className:He.citationPanelHeaderContainer,horizontalAlign:"space-between",verticalAlign:"center",children:[H("span",{"aria-label":"Citations",className:He.citationPanelHeader,children:"Citations"}),H(Fa,{iconProps:{iconName:"Cancel"},"aria-label":"Close citations panel",onClick:()=>d(!1)})]}),H("h5",{className:He.citationPanelTitle,tabIndex:0,title:l.url&&!l.url.includes("blob.core")?l.url:l.title??"",onClick:()=>Ce(l),children:l.title}),H("div",{tabIndex:0,children:H(Ng,{linkTarget:"_blank",className:He.citationPanelContent,children:AS.sanitize(l.content,{ALLOWED_TAGS:bS}),remarkPlugins:[g8],rehypePlugins:[TG]})})]}),(e==null?void 0:e.state.isChatHistoryOpen)&&((Yt=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:Yt.status)!==Tn.NotConfigured&&H(ZV,{})]})})};bD();function eY(){return H(iR,{children:H(s7,{children:H(n7,{children:fe(wc,{path:"/",element:H(oR,{}),children:[H(wc,{index:!0,element:H(JV,{})}),H(wc,{path:"*",element:H(aR,{})})]})})})})}bm.createRoot(document.getElementById("root")).render(H(Dn.StrictMode,{children:H(eY,{})}))});export default tY(); -//# sourceMappingURL=index-161ed743.js.map diff --git a/static/assets/index-161ed743.js.map b/static/assets/index-161ed743.js.map deleted file mode 100644 index 483fe54198..0000000000 --- a/static/assets/index-161ed743.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index-161ed743.js","sources":["../../frontend/node_modules/react/cjs/react.production.min.js","../../frontend/node_modules/react/index.js","../../frontend/node_modules/react/cjs/react-jsx-runtime.production.min.js","../../frontend/node_modules/react/jsx-runtime.js","../../frontend/node_modules/scheduler/cjs/scheduler.production.min.js","../../frontend/node_modules/scheduler/index.js","../../frontend/node_modules/react-dom/cjs/react-dom.production.min.js","../../frontend/node_modules/react-dom/index.js","../../frontend/node_modules/react-dom/client.js","../../frontend/node_modules/@remix-run/router/dist/router.js","../../frontend/node_modules/react-router/dist/index.js","../../frontend/node_modules/react-router-dom/dist/index.js","../../frontend/node_modules/@fluentui/set-version/lib/setVersion.js","../../frontend/node_modules/@fluentui/set-version/lib/index.js","../../frontend/node_modules/tslib/tslib.es6.js","../../frontend/node_modules/@fluentui/merge-styles/lib/Stylesheet.js","../../frontend/node_modules/@fluentui/merge-styles/lib/extractStyleParts.js","../../frontend/node_modules/@fluentui/merge-styles/lib/StyleOptionsState.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/kebabRules.js","../../frontend/node_modules/@fluentui/merge-styles/lib/getVendorSettings.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/prefixRules.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/provideUnits.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/rtlifyRules.js","../../frontend/node_modules/@fluentui/merge-styles/lib/tokenizeWithParentheses.js","../../frontend/node_modules/@fluentui/merge-styles/lib/styleToClassName.js","../../frontend/node_modules/@fluentui/merge-styles/lib/mergeStyles.js","../../frontend/node_modules/@fluentui/merge-styles/lib/concatStyleSets.js","../../frontend/node_modules/@fluentui/merge-styles/lib/mergeStyleSets.js","../../frontend/node_modules/@fluentui/merge-styles/lib/concatStyleSetsWithProps.js","../../frontend/node_modules/@fluentui/merge-styles/lib/fontFace.js","../../frontend/node_modules/@fluentui/merge-styles/lib/keyframes.js","../../frontend/node_modules/@fluentui/style-utilities/lib/utilities/buildClassMap.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/canUseDOM.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/getWindow.js","../../frontend/node_modules/@fluentui/utilities/lib/Async.js","../../frontend/node_modules/@fluentui/utilities/lib/object.js","../../frontend/node_modules/@fluentui/utilities/lib/EventGroup.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/getDocument.js","../../frontend/node_modules/@fluentui/utilities/lib/scroll.js","../../frontend/node_modules/@fluentui/utilities/lib/warn/warn.js","../../frontend/node_modules/@fluentui/utilities/lib/warn/warnConditionallyRequiredProps.js","../../frontend/node_modules/@fluentui/utilities/lib/BaseComponent.js","../../frontend/node_modules/@fluentui/utilities/lib/DelayedRender.js","../../frontend/node_modules/@fluentui/utilities/lib/GlobalSettings.js","../../frontend/node_modules/@fluentui/utilities/lib/KeyCodes.js","../../frontend/node_modules/@fluentui/utilities/lib/Rectangle.js","../../frontend/node_modules/@fluentui/utilities/lib/appendFunction.js","../../frontend/node_modules/@fluentui/utilities/lib/aria.js","../../frontend/node_modules/@fluentui/utilities/lib/array.js","../../frontend/node_modules/@fluentui/utilities/lib/sessionStorage.js","../../frontend/node_modules/@fluentui/utilities/lib/rtl.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/isVirtualElement.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/getVirtualParent.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/getParent.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/elementContains.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/findElementRecursive.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/elementContainsAttribute.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/setPortalAttribute.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/portalContainsElement.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/setVirtualParent.js","../../frontend/node_modules/@fluentui/utilities/lib/focus.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/on.js","../../frontend/node_modules/@fluentui/utilities/lib/classNamesFunction.js","../../frontend/node_modules/@fluentui/utilities/lib/memoize.js","../../frontend/node_modules/@fluentui/utilities/lib/componentAs/composeComponentAs.js","../../frontend/node_modules/@fluentui/utilities/lib/controlled.js","../../frontend/node_modules/@fluentui/utilities/lib/css.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/Customizations.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/CustomizerContext.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/mergeSettings.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/mergeCustomizations.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/Customizer.js","../../frontend/node_modules/@fluentui/utilities/lib/hoistStatics.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/customizable.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/useCustomizationSettings.js","../../frontend/node_modules/@fluentui/utilities/lib/extendComponent.js","../../frontend/node_modules/@fluentui/utilities/lib/getId.js","../../frontend/node_modules/@fluentui/utilities/lib/properties.js","../../frontend/node_modules/@fluentui/utilities/lib/hoist.js","../../frontend/node_modules/@fluentui/utilities/lib/initializeComponentRef.js","../../frontend/node_modules/@fluentui/utilities/lib/keyboard.js","../../frontend/node_modules/@fluentui/utilities/lib/setFocusVisibility.js","../../frontend/node_modules/@fluentui/utilities/lib/useFocusRects.js","../../frontend/node_modules/@fluentui/utilities/lib/FocusRectsProvider.js","../../frontend/node_modules/@fluentui/utilities/lib/localStorage.js","../../frontend/node_modules/@fluentui/utilities/lib/language.js","../../frontend/node_modules/@fluentui/utilities/lib/merge.js","../../frontend/node_modules/@fluentui/utilities/lib/mobileDetector.js","../../frontend/node_modules/@fluentui/utilities/lib/modalize.js","../../frontend/node_modules/@fluentui/utilities/lib/osDetector.js","../../frontend/node_modules/@fluentui/utilities/lib/renderFunction/composeRenderFunction.js","../../frontend/node_modules/@fluentui/utilities/lib/styled.js","../../frontend/node_modules/@fluentui/utilities/lib/ie11Detector.js","../../frontend/node_modules/@fluentui/utilities/lib/getPropsWithDefaults.js","../../frontend/node_modules/@fluentui/utilities/lib/createMergedRef.js","../../frontend/node_modules/@fluentui/utilities/lib/useIsomorphicLayoutEffect.js","../../frontend/node_modules/@fluentui/style-utilities/lib/utilities/icons.js","../../frontend/node_modules/@fluentui/theme/lib/utilities/makeSemanticColors.js","../../frontend/node_modules/@fluentui/theme/lib/mergeThemes.js","../../frontend/node_modules/@fluentui/theme/lib/colors/DefaultPalette.js","../../frontend/node_modules/@fluentui/theme/lib/effects/FluentDepths.js","../../frontend/node_modules/@fluentui/theme/lib/effects/DefaultEffects.js","../../frontend/node_modules/@fluentui/theme/lib/spacing/DefaultSpacing.js","../../frontend/node_modules/@fluentui/theme/lib/motion/AnimationStyles.js","../../frontend/node_modules/@fluentui/theme/lib/fonts/FluentFonts.js","../../frontend/node_modules/@fluentui/theme/lib/fonts/createFontStyles.js","../../frontend/node_modules/@fluentui/theme/lib/fonts/DefaultFontStyles.js","../../frontend/node_modules/@fluentui/theme/lib/createTheme.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/CommonStyles.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/zIndexes.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/getFocusStyle.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/hiddenContentStyle.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/getGlobalClassNames.js","../../frontend/node_modules/@microsoft/load-themed-styles/lib-es6/index.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/theme.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/GeneralStyles.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/getPlaceholderStyles.js","../../frontend/node_modules/@fluentui/style-utilities/lib/classNames/AnimationClassNames.js","../../frontend/node_modules/@fluentui/style-utilities/lib/version.js","../../frontend/node_modules/@fluentui/style-utilities/lib/index.js","../../frontend/node_modules/@fluentui/react/lib/common/DirectionalHint.js","../../frontend/node_modules/@fluentui/react/lib/utilities/positioning/positioning.types.js","../../frontend/node_modules/@fluentui/react/lib/utilities/positioning/positioning.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useAsync.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useConst.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useBoolean.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useControllableValue.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useEventCallback.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useId.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useMergedRefs.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useOnEvent.js","../../frontend/node_modules/@fluentui/react-hooks/lib/usePrevious.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useSetTimeout.js","../../frontend/node_modules/@fluentui/react-window-provider/lib/WindowProvider.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useTarget.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useUnmount.js","../../frontend/node_modules/@fluentui/react/lib/components/Popup/Popup.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/CalloutContent.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/CalloutContent.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/CalloutContent.js","../../frontend/node_modules/@fluentui/react-portal-compat-context/lib/PortalCompatContext.js","../../frontend/node_modules/@fluentui/react/lib/components/Fabric/Fabric.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Fabric/Fabric.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Fabric/Fabric.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.notification.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/Callout.js","../../frontend/node_modules/@fluentui/react/lib/components/FocusTrapZone/FocusTrapZone.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/FontIcon.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/ImageIcon.js","../../frontend/node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.types.js","../../frontend/node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.types.js","../../frontend/node_modules/@fluentui/react/lib/utilities/contextualMenu/contextualMenuUtility.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.cnstyles.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js","../../frontend/node_modules/@fluentui/react/lib/utilities/keytips/KeytipConstants.js","../../frontend/node_modules/@fluentui/react/lib/utilities/keytips/KeytipManager.js","../../frontend/node_modules/@fluentui/react/lib/utilities/keytips/KeytipUtils.js","../../frontend/node_modules/@fluentui/react/lib/components/KeytipData/useKeytipData.js","../../frontend/node_modules/@fluentui/react/lib/components/KeytipData/KeytipData.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuSplitButton.js","../../frontend/node_modules/@fluentui/react/lib/utilities/decorators/BaseDecorator.js","../../frontend/node_modules/@fluentui/react/lib/utilities/decorators/withResponsiveMode.js","../../frontend/node_modules/@fluentui/react/lib/utilities/hooks/useResponsiveMode.js","../../frontend/node_modules/@fluentui/react/lib/utilities/MenuContext/MenuContext.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.base.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/BaseButton.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/BaseButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/ButtonThemes.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/PrimaryButton/PrimaryButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.js","../../frontend/node_modules/@fluentui/react/lib/components/Label/Label.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Label/Label.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Label/Label.js","../../frontend/node_modules/@fluentui/react/lib/components/TextField/TextField.base.js","../../frontend/node_modules/@fluentui/react/lib/components/TextField/TextField.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/TextField/TextField.js","../../frontend/node_modules/@fluentui/react/lib/components/List/List.types.js","../../frontend/node_modules/@fluentui/react/lib/components/List/utils/scroll.js","../../frontend/node_modules/@fluentui/react/lib/components/List/List.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Modal/Modal.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Overlay/Overlay.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Overlay/Overlay.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Overlay/Overlay.js","../../frontend/node_modules/@fluentui/react/lib/utilities/DraggableZone/DraggableZone.styles.js","../../frontend/node_modules/@fluentui/react/lib/utilities/DraggableZone/DraggableZone.js","../../frontend/node_modules/@fluentui/react/lib/components/Modal/Modal.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Modal/Modal.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/Dialog.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/Dialog.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/Dialog.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-0.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-1.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-2.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-3.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-4.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-5.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-6.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-7.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-8.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-9.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-10.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-11.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-12.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-13.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-14.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-15.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-16.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-17.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/iconAliases.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/version.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/index.js","../../frontend/node_modules/@fluentui/react/lib/components/Separator/Separator.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Separator/Separator.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Separator/Separator.js","../../frontend/node_modules/@fluentui/foundation-legacy/lib/utilities.js","../../frontend/node_modules/@fluentui/foundation-legacy/lib/slots.js","../../frontend/node_modules/@fluentui/foundation-legacy/lib/createComponent.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/StackItem/StackItem.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/StackItem/StackItem.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/StackUtils.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/Stack.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/Stack.js","../../frontend/node_modules/@fluentui/react/lib/components/Text/Text.view.js","../../frontend/node_modules/@fluentui/react/lib/components/Text/Text.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Text/Text.js","../../frontend/src/assets/Contoso.svg","../../frontend/node_modules/@griffel/core/constants.esm.js","../../frontend/node_modules/@emotion/hash/dist/emotion-hash.esm.js","../../frontend/node_modules/@griffel/core/runtime/utils/hashSequence.esm.js","../../frontend/node_modules/@griffel/core/runtime/reduceToClassNameForSlots.esm.js","../../frontend/node_modules/@griffel/core/mergeClasses.esm.js","../../frontend/node_modules/@griffel/core/runtime/utils/normalizeCSSBucketEntry.esm.js","../../frontend/node_modules/@griffel/core/renderer/createIsomorphicStyleSheet.esm.js","../../frontend/node_modules/@griffel/core/renderer/getStyleSheetForBucket.esm.js","../../frontend/node_modules/@griffel/core/renderer/createDOMRenderer.esm.js","../../frontend/node_modules/@griffel/core/__styles.esm.js","../../frontend/node_modules/@griffel/react/RendererContext.esm.js","../../frontend/node_modules/@griffel/react/TextDirectionContext.esm.js","../../frontend/node_modules/@griffel/react/__styles.esm.js","../../frontend/node_modules/@fluentui/react-icons/lib/utils/useIconState.js","../../frontend/node_modules/@fluentui/react-icons/lib/utils/wrapIcon.js","../../frontend/node_modules/@fluentui/react-icons/lib/icons/chunk-2.js","../../frontend/node_modules/@fluentui/react-icons/lib/icons/chunk-3.js","../../frontend/node_modules/@fluentui/react-icons/lib/icons/chunk-6.js","../../frontend/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-24.js","../../frontend/src/components/common/Button.tsx","../../frontend/src/state/AppReducer.tsx","../../frontend/src/api/models.ts","../../frontend/src/api/api.ts","../../frontend/src/state/AppProvider.tsx","../../frontend/src/pages/layout/Layout.tsx","../../frontend/src/pages/NoPage.tsx","../../frontend/node_modules/react-markdown/lib/uri-transformer.js","../../frontend/node_modules/is-buffer/index.js","../../frontend/node_modules/unist-util-stringify-position/lib/index.js","../../frontend/node_modules/vfile-message/lib/index.js","../../frontend/node_modules/vfile/lib/minpath.browser.js","../../frontend/node_modules/vfile/lib/minproc.browser.js","../../frontend/node_modules/vfile/lib/minurl.shared.js","../../frontend/node_modules/vfile/lib/minurl.browser.js","../../frontend/node_modules/vfile/lib/index.js","../../frontend/node_modules/bail/index.js","../../frontend/node_modules/extend/index.js","../../frontend/node_modules/is-plain-obj/index.js","../../frontend/node_modules/trough/index.js","../../frontend/node_modules/unified/lib/index.js","../../frontend/node_modules/mdast-util-to-string/lib/index.js","../../frontend/node_modules/micromark-util-chunked/index.js","../../frontend/node_modules/micromark-util-combine-extensions/index.js","../../frontend/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js","../../frontend/node_modules/micromark-util-character/index.js","../../frontend/node_modules/micromark-factory-space/index.js","../../frontend/node_modules/micromark/lib/initialize/content.js","../../frontend/node_modules/micromark/lib/initialize/document.js","../../frontend/node_modules/micromark-util-classify-character/index.js","../../frontend/node_modules/micromark-util-resolve-all/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/attention.js","../../frontend/node_modules/micromark-core-commonmark/lib/autolink.js","../../frontend/node_modules/micromark-core-commonmark/lib/blank-line.js","../../frontend/node_modules/micromark-core-commonmark/lib/block-quote.js","../../frontend/node_modules/micromark-core-commonmark/lib/character-escape.js","../../frontend/node_modules/decode-named-character-reference/index.dom.js","../../frontend/node_modules/micromark-core-commonmark/lib/character-reference.js","../../frontend/node_modules/micromark-core-commonmark/lib/code-fenced.js","../../frontend/node_modules/micromark-core-commonmark/lib/code-indented.js","../../frontend/node_modules/micromark-core-commonmark/lib/code-text.js","../../frontend/node_modules/micromark-util-subtokenize/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/content.js","../../frontend/node_modules/micromark-factory-destination/index.js","../../frontend/node_modules/micromark-factory-label/index.js","../../frontend/node_modules/micromark-factory-title/index.js","../../frontend/node_modules/micromark-factory-whitespace/index.js","../../frontend/node_modules/micromark-util-normalize-identifier/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/definition.js","../../frontend/node_modules/micromark-core-commonmark/lib/hard-break-escape.js","../../frontend/node_modules/micromark-core-commonmark/lib/heading-atx.js","../../frontend/node_modules/micromark-util-html-tag-name/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/html-flow.js","../../frontend/node_modules/micromark-core-commonmark/lib/html-text.js","../../frontend/node_modules/micromark-core-commonmark/lib/label-end.js","../../frontend/node_modules/micromark-core-commonmark/lib/label-start-image.js","../../frontend/node_modules/micromark-core-commonmark/lib/label-start-link.js","../../frontend/node_modules/micromark-core-commonmark/lib/line-ending.js","../../frontend/node_modules/micromark-core-commonmark/lib/thematic-break.js","../../frontend/node_modules/micromark-core-commonmark/lib/list.js","../../frontend/node_modules/micromark-core-commonmark/lib/setext-underline.js","../../frontend/node_modules/micromark/lib/initialize/flow.js","../../frontend/node_modules/micromark/lib/initialize/text.js","../../frontend/node_modules/micromark/lib/create-tokenizer.js","../../frontend/node_modules/micromark/lib/constructs.js","../../frontend/node_modules/micromark/lib/parse.js","../../frontend/node_modules/micromark/lib/preprocess.js","../../frontend/node_modules/micromark/lib/postprocess.js","../../frontend/node_modules/micromark-util-decode-numeric-character-reference/index.js","../../frontend/node_modules/micromark-util-decode-string/index.js","../../frontend/node_modules/mdast-util-from-markdown/lib/index.js","../../frontend/node_modules/remark-parse/lib/index.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/break.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/code.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/delete.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js","../../frontend/node_modules/micromark-util-sanitize-uri/index.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/footnote.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/heading.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/html.js","../../frontend/node_modules/mdast-util-to-hast/lib/revert.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/image.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/link.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/list-item.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/list.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/root.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/strong.js","../../frontend/node_modules/unist-util-position/lib/index.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/table.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/table-row.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js","../../frontend/node_modules/trim-lines/index.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/text.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/index.js","../../frontend/node_modules/unist-util-is/lib/index.js","../../frontend/node_modules/unist-util-visit-parents/lib/index.js","../../frontend/node_modules/unist-util-visit/lib/index.js","../../frontend/node_modules/unist-util-generated/lib/index.js","../../frontend/node_modules/mdast-util-definitions/lib/index.js","../../frontend/node_modules/mdast-util-to-hast/lib/state.js","../../frontend/node_modules/mdast-util-to-hast/lib/footer.js","../../frontend/node_modules/mdast-util-to-hast/lib/index.js","../../frontend/node_modules/remark-rehype/lib/index.js","../../frontend/node_modules/prop-types/lib/ReactPropTypesSecret.js","../../frontend/node_modules/prop-types/factoryWithThrowingShims.js","../../frontend/node_modules/prop-types/index.js","../../frontend/node_modules/property-information/lib/util/schema.js","../../frontend/node_modules/property-information/lib/util/merge.js","../../frontend/node_modules/property-information/lib/normalize.js","../../frontend/node_modules/property-information/lib/util/info.js","../../frontend/node_modules/property-information/lib/util/types.js","../../frontend/node_modules/property-information/lib/util/defined-info.js","../../frontend/node_modules/property-information/lib/util/create.js","../../frontend/node_modules/property-information/lib/xlink.js","../../frontend/node_modules/property-information/lib/xml.js","../../frontend/node_modules/property-information/lib/util/case-sensitive-transform.js","../../frontend/node_modules/property-information/lib/util/case-insensitive-transform.js","../../frontend/node_modules/property-information/lib/xmlns.js","../../frontend/node_modules/property-information/lib/aria.js","../../frontend/node_modules/property-information/lib/html.js","../../frontend/node_modules/property-information/lib/svg.js","../../frontend/node_modules/property-information/lib/find.js","../../frontend/node_modules/property-information/lib/hast-to-react.js","../../frontend/node_modules/property-information/index.js","../../frontend/node_modules/react-markdown/lib/rehype-filter.js","../../frontend/node_modules/react-is/cjs/react-is.production.min.js","../../frontend/node_modules/react-is/index.js","../../frontend/node_modules/hast-util-whitespace/index.js","../../frontend/node_modules/space-separated-tokens/index.js","../../frontend/node_modules/comma-separated-tokens/index.js","../../frontend/node_modules/inline-style-parser/index.js","../../frontend/node_modules/style-to-object/index.js","../../frontend/node_modules/style-to-object/index.mjs","../../frontend/node_modules/react-markdown/lib/ast-to-react.js","../../frontend/node_modules/react-markdown/lib/react-markdown.js","../../frontend/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js","../../frontend/node_modules/micromark-extension-gfm-footnote/lib/syntax.js","../../frontend/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js","../../frontend/node_modules/micromark-extension-gfm-table/lib/edit-map.js","../../frontend/node_modules/micromark-extension-gfm-table/lib/infer.js","../../frontend/node_modules/micromark-extension-gfm-table/lib/syntax.js","../../frontend/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js","../../frontend/node_modules/micromark-extension-gfm/index.js","../../frontend/node_modules/ccount/index.js","../../frontend/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js","../../frontend/node_modules/mdast-util-find-and-replace/lib/index.js","../../frontend/node_modules/mdast-util-gfm-autolink-literal/lib/index.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/association.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/container-flow.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/safe.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/track.js","../../frontend/node_modules/mdast-util-gfm-footnote/lib/index.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js","../../frontend/node_modules/mdast-util-gfm-strikethrough/lib/index.js","../../frontend/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js","../../frontend/node_modules/markdown-table/index.js","../../frontend/node_modules/mdast-util-gfm-table/lib/index.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js","../../frontend/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js","../../frontend/node_modules/mdast-util-to-markdown/lib/handle/list-item.js","../../frontend/node_modules/mdast-util-gfm-task-list-item/lib/index.js","../../frontend/node_modules/mdast-util-gfm/lib/index.js","../../frontend/node_modules/remark-gfm/index.js","../../frontend/node_modules/parse5/lib/common/unicode.js","../../frontend/node_modules/parse5/lib/common/error-codes.js","../../frontend/node_modules/parse5/lib/tokenizer/preprocessor.js","../../frontend/node_modules/parse5/lib/tokenizer/named-entity-data.js","../../frontend/node_modules/parse5/lib/tokenizer/index.js","../../frontend/node_modules/parse5/lib/common/html.js","../../frontend/node_modules/parse5/lib/parser/open-element-stack.js","../../frontend/node_modules/parse5/lib/parser/formatting-element-list.js","../../frontend/node_modules/parse5/lib/utils/mixin.js","../../frontend/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js","../../frontend/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js","../../frontend/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js","../../frontend/node_modules/parse5/lib/extensions/location-info/parser-mixin.js","../../frontend/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js","../../frontend/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js","../../frontend/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js","../../frontend/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js","../../frontend/node_modules/parse5/lib/tree-adapters/default.js","../../frontend/node_modules/parse5/lib/utils/merge-options.js","../../frontend/node_modules/parse5/lib/common/doctype.js","../../frontend/node_modules/parse5/lib/common/foreign-content.js","../../frontend/node_modules/parse5/lib/parser/index.js","../../frontend/node_modules/hast-util-parse-selector/lib/index.js","../../frontend/node_modules/hastscript/lib/core.js","../../frontend/node_modules/hastscript/lib/html.js","../../frontend/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js","../../frontend/node_modules/hastscript/lib/svg.js","../../frontend/node_modules/vfile-location/lib/index.js","../../frontend/node_modules/web-namespaces/index.js","../../frontend/node_modules/hast-util-from-parse5/lib/index.js","../../frontend/node_modules/zwitch/index.js","../../frontend/node_modules/hast-util-to-parse5/lib/index.js","../../frontend/node_modules/html-void-elements/index.js","../../frontend/node_modules/hast-util-raw/lib/index.js","../../frontend/node_modules/rehype-raw/index.js","../../frontend/node_modules/react-uuid/uuid.js","../../frontend/node_modules/lodash-es/_freeGlobal.js","../../frontend/node_modules/lodash-es/_root.js","../../frontend/node_modules/lodash-es/_Symbol.js","../../frontend/node_modules/lodash-es/_getRawTag.js","../../frontend/node_modules/lodash-es/_objectToString.js","../../frontend/node_modules/lodash-es/_baseGetTag.js","../../frontend/node_modules/lodash-es/isObjectLike.js","../../frontend/node_modules/lodash-es/isArray.js","../../frontend/node_modules/lodash-es/isObject.js","../../frontend/node_modules/lodash-es/isFunction.js","../../frontend/node_modules/lodash-es/_coreJsData.js","../../frontend/node_modules/lodash-es/_isMasked.js","../../frontend/node_modules/lodash-es/_toSource.js","../../frontend/node_modules/lodash-es/_baseIsNative.js","../../frontend/node_modules/lodash-es/_getValue.js","../../frontend/node_modules/lodash-es/_getNative.js","../../frontend/node_modules/lodash-es/_WeakMap.js","../../frontend/node_modules/lodash-es/_baseCreate.js","../../frontend/node_modules/lodash-es/_copyArray.js","../../frontend/node_modules/lodash-es/_defineProperty.js","../../frontend/node_modules/lodash-es/_arrayEach.js","../../frontend/node_modules/lodash-es/_isIndex.js","../../frontend/node_modules/lodash-es/_baseAssignValue.js","../../frontend/node_modules/lodash-es/eq.js","../../frontend/node_modules/lodash-es/_assignValue.js","../../frontend/node_modules/lodash-es/_copyObject.js","../../frontend/node_modules/lodash-es/isLength.js","../../frontend/node_modules/lodash-es/isArrayLike.js","../../frontend/node_modules/lodash-es/_isPrototype.js","../../frontend/node_modules/lodash-es/_baseTimes.js","../../frontend/node_modules/lodash-es/_baseIsArguments.js","../../frontend/node_modules/lodash-es/isArguments.js","../../frontend/node_modules/lodash-es/stubFalse.js","../../frontend/node_modules/lodash-es/isBuffer.js","../../frontend/node_modules/lodash-es/_baseIsTypedArray.js","../../frontend/node_modules/lodash-es/_baseUnary.js","../../frontend/node_modules/lodash-es/_nodeUtil.js","../../frontend/node_modules/lodash-es/isTypedArray.js","../../frontend/node_modules/lodash-es/_arrayLikeKeys.js","../../frontend/node_modules/lodash-es/_overArg.js","../../frontend/node_modules/lodash-es/_nativeKeys.js","../../frontend/node_modules/lodash-es/_baseKeys.js","../../frontend/node_modules/lodash-es/keys.js","../../frontend/node_modules/lodash-es/_nativeKeysIn.js","../../frontend/node_modules/lodash-es/_baseKeysIn.js","../../frontend/node_modules/lodash-es/keysIn.js","../../frontend/node_modules/lodash-es/_nativeCreate.js","../../frontend/node_modules/lodash-es/_hashClear.js","../../frontend/node_modules/lodash-es/_hashDelete.js","../../frontend/node_modules/lodash-es/_hashGet.js","../../frontend/node_modules/lodash-es/_hashHas.js","../../frontend/node_modules/lodash-es/_hashSet.js","../../frontend/node_modules/lodash-es/_Hash.js","../../frontend/node_modules/lodash-es/_listCacheClear.js","../../frontend/node_modules/lodash-es/_assocIndexOf.js","../../frontend/node_modules/lodash-es/_listCacheDelete.js","../../frontend/node_modules/lodash-es/_listCacheGet.js","../../frontend/node_modules/lodash-es/_listCacheHas.js","../../frontend/node_modules/lodash-es/_listCacheSet.js","../../frontend/node_modules/lodash-es/_ListCache.js","../../frontend/node_modules/lodash-es/_Map.js","../../frontend/node_modules/lodash-es/_mapCacheClear.js","../../frontend/node_modules/lodash-es/_isKeyable.js","../../frontend/node_modules/lodash-es/_getMapData.js","../../frontend/node_modules/lodash-es/_mapCacheDelete.js","../../frontend/node_modules/lodash-es/_mapCacheGet.js","../../frontend/node_modules/lodash-es/_mapCacheHas.js","../../frontend/node_modules/lodash-es/_mapCacheSet.js","../../frontend/node_modules/lodash-es/_MapCache.js","../../frontend/node_modules/lodash-es/_arrayPush.js","../../frontend/node_modules/lodash-es/_getPrototype.js","../../frontend/node_modules/lodash-es/_stackClear.js","../../frontend/node_modules/lodash-es/_stackDelete.js","../../frontend/node_modules/lodash-es/_stackGet.js","../../frontend/node_modules/lodash-es/_stackHas.js","../../frontend/node_modules/lodash-es/_stackSet.js","../../frontend/node_modules/lodash-es/_Stack.js","../../frontend/node_modules/lodash-es/_baseAssign.js","../../frontend/node_modules/lodash-es/_baseAssignIn.js","../../frontend/node_modules/lodash-es/_cloneBuffer.js","../../frontend/node_modules/lodash-es/_arrayFilter.js","../../frontend/node_modules/lodash-es/stubArray.js","../../frontend/node_modules/lodash-es/_getSymbols.js","../../frontend/node_modules/lodash-es/_copySymbols.js","../../frontend/node_modules/lodash-es/_getSymbolsIn.js","../../frontend/node_modules/lodash-es/_copySymbolsIn.js","../../frontend/node_modules/lodash-es/_baseGetAllKeys.js","../../frontend/node_modules/lodash-es/_getAllKeys.js","../../frontend/node_modules/lodash-es/_getAllKeysIn.js","../../frontend/node_modules/lodash-es/_DataView.js","../../frontend/node_modules/lodash-es/_Promise.js","../../frontend/node_modules/lodash-es/_Set.js","../../frontend/node_modules/lodash-es/_getTag.js","../../frontend/node_modules/lodash-es/_initCloneArray.js","../../frontend/node_modules/lodash-es/_Uint8Array.js","../../frontend/node_modules/lodash-es/_cloneArrayBuffer.js","../../frontend/node_modules/lodash-es/_cloneDataView.js","../../frontend/node_modules/lodash-es/_cloneRegExp.js","../../frontend/node_modules/lodash-es/_cloneSymbol.js","../../frontend/node_modules/lodash-es/_cloneTypedArray.js","../../frontend/node_modules/lodash-es/_initCloneByTag.js","../../frontend/node_modules/lodash-es/_initCloneObject.js","../../frontend/node_modules/lodash-es/_baseIsMap.js","../../frontend/node_modules/lodash-es/isMap.js","../../frontend/node_modules/lodash-es/_baseIsSet.js","../../frontend/node_modules/lodash-es/isSet.js","../../frontend/node_modules/lodash-es/_baseClone.js","../../frontend/node_modules/lodash-es/cloneDeep.js","../../frontend/node_modules/lodash-es/isEmpty.js","../../frontend/node_modules/dompurify/dist/purify.es.mjs","../../frontend/src/constants/xssAllowTags.ts","../../frontend/src/components/Answer/AnswerParser.tsx","../../frontend/node_modules/remark-supersub/lib/index.js","../../frontend/src/components/Answer/Answer.tsx","../../frontend/src/assets/Send.svg","../../frontend/src/components/QuestionInput/QuestionInput.tsx","../../frontend/src/components/ChatHistory/ChatHistoryListItem.tsx","../../frontend/src/components/ChatHistory/ChatHistoryList.tsx","../../frontend/src/components/ChatHistory/ChatHistoryPanel.tsx","../../frontend/src/pages/chat/Chat.tsx","../../frontend/src/index.tsx"],"sourcesContent":["/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"\")&&(k=k.replace(\"\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e\"+b.valueOf().toString()+\"\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}\nfunction Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);\nfunction Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];\nfunction Oh(){for(var a=0;ac?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}\nfunction Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}\nfunction ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}\nfunction Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,\n4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=\nci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,\nf,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Uh++;0\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eHj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),\nnull;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;\nfunction Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}\nfunction Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}\nfunction Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}\nfunction ak(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;\nZj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}\nfunction ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;\nWk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\nhj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}\nfunction al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction $k(a){if(\"function\"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction yh(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)bj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3 createMemoryLocation(entry, typeof entry === \"string\" ? null : entry.state, index === 0 ? \"default\" : undefined));\n let index = clampIndex(initialIndex == null ? entries.length - 1 : initialIndex);\n let action = Action.Pop;\n let listener = null;\n\n function clampIndex(n) {\n return Math.min(Math.max(n, 0), entries.length - 1);\n }\n\n function getCurrentLocation() {\n return entries[index];\n }\n\n function createMemoryLocation(to, state, key) {\n if (state === void 0) {\n state = null;\n }\n\n let location = createLocation(entries ? getCurrentLocation().pathname : \"/\", to, state, key);\n warning$1(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in memory history: \" + JSON.stringify(to));\n return location;\n }\n\n function createHref(to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n\n let history = {\n get index() {\n return index;\n },\n\n get action() {\n return action;\n },\n\n get location() {\n return getCurrentLocation();\n },\n\n createHref,\n\n createURL(to) {\n return new URL(createHref(to), \"http://localhost\");\n },\n\n encodeLocation(to) {\n let path = typeof to === \"string\" ? parsePath(to) : to;\n return {\n pathname: path.pathname || \"\",\n search: path.search || \"\",\n hash: path.hash || \"\"\n };\n },\n\n push(to, state) {\n action = Action.Push;\n let nextLocation = createMemoryLocation(to, state);\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 1\n });\n }\n },\n\n replace(to, state) {\n action = Action.Replace;\n let nextLocation = createMemoryLocation(to, state);\n entries[index] = nextLocation;\n\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 0\n });\n }\n },\n\n go(delta) {\n action = Action.Pop;\n let nextIndex = clampIndex(index + delta);\n let nextLocation = entries[nextIndex];\n index = nextIndex;\n\n if (listener) {\n listener({\n action,\n location: nextLocation,\n delta\n });\n }\n },\n\n listen(fn) {\n listener = fn;\n return () => {\n listener = null;\n };\n }\n\n };\n return history;\n}\n/**\n * Browser history stores the location in regular URLs. This is the standard for\n * most web apps, but it requires some configuration on the server to ensure you\n * serve the same app at multiple URLs.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\n */\n\nfunction createBrowserHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n function createBrowserLocation(window, globalHistory) {\n let {\n pathname,\n search,\n hash\n } = window.location;\n return createLocation(\"\", {\n pathname,\n search,\n hash\n }, // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n\n function createBrowserHref(window, to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n\n return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);\n}\n/**\n * Hash history stores the location in window.location.hash. This makes it ideal\n * for situations where you don't want to send the location to the server for\n * some reason, either because you do cannot configure it or the URL space is\n * reserved for something else.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\n */\n\nfunction createHashHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n function createHashLocation(window, globalHistory) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = parsePath(window.location.hash.substr(1));\n return createLocation(\"\", {\n pathname,\n search,\n hash\n }, // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n\n function createHashHref(window, to) {\n let base = window.document.querySelector(\"base\");\n let href = \"\";\n\n if (base && base.getAttribute(\"href\")) {\n let url = window.location.href;\n let hashIndex = url.indexOf(\"#\");\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n\n return href + \"#\" + (typeof to === \"string\" ? to : createPath(to));\n }\n\n function validateHashLocation(location, to) {\n warning$1(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in hash history.push(\" + JSON.stringify(to) + \")\");\n }\n\n return getUrlBasedHistory(createHashLocation, createHashHref, validateHashLocation, options);\n}\nfunction invariant(value, message) {\n if (value === false || value === null || typeof value === \"undefined\") {\n throw new Error(message);\n }\n}\n\nfunction warning$1(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging history!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n\nfunction createKey() {\n return Math.random().toString(36).substr(2, 8);\n}\n/**\n * For browser-based histories, we combine the state and key into an object\n */\n\n\nfunction getHistoryState(location, index) {\n return {\n usr: location.state,\n key: location.key,\n idx: index\n };\n}\n/**\n * Creates a Location object with a unique key from the given Path\n */\n\n\nfunction createLocation(current, to, state, key) {\n if (state === void 0) {\n state = null;\n }\n\n let location = _extends({\n pathname: typeof current === \"string\" ? current : current.pathname,\n search: \"\",\n hash: \"\"\n }, typeof to === \"string\" ? parsePath(to) : to, {\n state,\n // TODO: This could be cleaned up. push/replace should probably just take\n // full Locations now and avoid the need to run through this flow at all\n // But that's a pretty big refactor to the current test suite so going to\n // keep as is for the time being and just let any incoming keys take precedence\n key: to && to.key || key || createKey()\n });\n\n return location;\n}\n/**\n * Creates a string URL path from the given pathname, search, and hash components.\n */\n\nfunction createPath(_ref) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = _ref;\n if (search && search !== \"?\") pathname += search.charAt(0) === \"?\" ? search : \"?\" + search;\n if (hash && hash !== \"#\") pathname += hash.charAt(0) === \"#\" ? hash : \"#\" + hash;\n return pathname;\n}\n/**\n * Parses a string URL path into its separate pathname, search, and hash components.\n */\n\nfunction parsePath(path) {\n let parsedPath = {};\n\n if (path) {\n let hashIndex = path.indexOf(\"#\");\n\n if (hashIndex >= 0) {\n parsedPath.hash = path.substr(hashIndex);\n path = path.substr(0, hashIndex);\n }\n\n let searchIndex = path.indexOf(\"?\");\n\n if (searchIndex >= 0) {\n parsedPath.search = path.substr(searchIndex);\n path = path.substr(0, searchIndex);\n }\n\n if (path) {\n parsedPath.pathname = path;\n }\n }\n\n return parsedPath;\n}\n\nfunction getUrlBasedHistory(getLocation, createHref, validateLocation, options) {\n if (options === void 0) {\n options = {};\n }\n\n let {\n window = document.defaultView,\n v5Compat = false\n } = options;\n let globalHistory = window.history;\n let action = Action.Pop;\n let listener = null;\n let index = getIndex(); // Index should only be null when we initialize. If not, it's because the\n // user called history.pushState or history.replaceState directly, in which\n // case we should log a warning as it will result in bugs.\n\n if (index == null) {\n index = 0;\n globalHistory.replaceState(_extends({}, globalHistory.state, {\n idx: index\n }), \"\");\n }\n\n function getIndex() {\n let state = globalHistory.state || {\n idx: null\n };\n return state.idx;\n }\n\n function handlePop() {\n action = Action.Pop;\n let nextIndex = getIndex();\n let delta = nextIndex == null ? null : nextIndex - index;\n index = nextIndex;\n\n if (listener) {\n listener({\n action,\n location: history.location,\n delta\n });\n }\n }\n\n function push(to, state) {\n action = Action.Push;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex() + 1;\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location); // try...catch because iOS limits us to 100 pushState calls :/\n\n try {\n globalHistory.pushState(historyState, \"\", url);\n } catch (error) {\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 1\n });\n }\n }\n\n function replace(to, state) {\n action = Action.Replace;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex();\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n globalHistory.replaceState(historyState, \"\", url);\n\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 0\n });\n }\n }\n\n function createURL(to) {\n // window.location.origin is \"null\" (the literal string value) in Firefox\n // under certain conditions, notably when serving from a local HTML file\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=878297\n let base = window.location.origin !== \"null\" ? window.location.origin : window.location.href;\n let href = typeof to === \"string\" ? to : createPath(to);\n invariant(base, \"No window.location.(origin|href) available to create URL for href: \" + href);\n return new URL(href, base);\n }\n\n let history = {\n get action() {\n return action;\n },\n\n get location() {\n return getLocation(window, globalHistory);\n },\n\n listen(fn) {\n if (listener) {\n throw new Error(\"A history only accepts one active listener\");\n }\n\n window.addEventListener(PopStateEventType, handlePop);\n listener = fn;\n return () => {\n window.removeEventListener(PopStateEventType, handlePop);\n listener = null;\n };\n },\n\n createHref(to) {\n return createHref(window, to);\n },\n\n createURL,\n\n encodeLocation(to) {\n // Encode a Location the same way window.location would\n let url = createURL(to);\n return {\n pathname: url.pathname,\n search: url.search,\n hash: url.hash\n };\n },\n\n push,\n replace,\n\n go(n) {\n return globalHistory.go(n);\n }\n\n };\n return history;\n} //#endregion\n\nvar ResultType;\n\n(function (ResultType) {\n ResultType[\"data\"] = \"data\";\n ResultType[\"deferred\"] = \"deferred\";\n ResultType[\"redirect\"] = \"redirect\";\n ResultType[\"error\"] = \"error\";\n})(ResultType || (ResultType = {}));\n\nfunction isIndexRoute(route) {\n return route.index === true;\n} // Walk the route tree generating unique IDs where necessary so we are working\n// solely with AgnosticDataRouteObject's within the Router\n\n\nfunction convertRoutesToDataRoutes(routes, parentPath, allIds) {\n if (parentPath === void 0) {\n parentPath = [];\n }\n\n if (allIds === void 0) {\n allIds = new Set();\n }\n\n return routes.map((route, index) => {\n let treePath = [...parentPath, index];\n let id = typeof route.id === \"string\" ? route.id : treePath.join(\"-\");\n invariant(route.index !== true || !route.children, \"Cannot specify children on an index route\");\n invariant(!allIds.has(id), \"Found a route id collision on id \\\"\" + id + \"\\\". Route \" + \"id's must be globally unique within Data Router usages\");\n allIds.add(id);\n\n if (isIndexRoute(route)) {\n let indexRoute = _extends({}, route, {\n id\n });\n\n return indexRoute;\n } else {\n let pathOrLayoutRoute = _extends({}, route, {\n id,\n children: route.children ? convertRoutesToDataRoutes(route.children, treePath, allIds) : undefined\n });\n\n return pathOrLayoutRoute;\n }\n });\n}\n/**\n * Matches the given routes to a location and returns the match data.\n *\n * @see https://reactrouter.com/utils/match-routes\n */\n\nfunction matchRoutes(routes, locationArg, basename) {\n if (basename === void 0) {\n basename = \"/\";\n }\n\n let location = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n let pathname = stripBasename(location.pathname || \"/\", basename);\n\n if (pathname == null) {\n return null;\n }\n\n let branches = flattenRoutes(routes);\n rankRouteBranches(branches);\n let matches = null;\n\n for (let i = 0; matches == null && i < branches.length; ++i) {\n matches = matchRouteBranch(branches[i], // Incoming pathnames are generally encoded from either window.location\n // or from router.navigate, but we want to match against the unencoded\n // paths in the route definitions. Memory router locations won't be\n // encoded here but there also shouldn't be anything to decode so this\n // should be a safe operation. This avoids needing matchRoutes to be\n // history-aware.\n safelyDecodeURI(pathname));\n }\n\n return matches;\n}\n\nfunction flattenRoutes(routes, branches, parentsMeta, parentPath) {\n if (branches === void 0) {\n branches = [];\n }\n\n if (parentsMeta === void 0) {\n parentsMeta = [];\n }\n\n if (parentPath === void 0) {\n parentPath = \"\";\n }\n\n let flattenRoute = (route, index, relativePath) => {\n let meta = {\n relativePath: relativePath === undefined ? route.path || \"\" : relativePath,\n caseSensitive: route.caseSensitive === true,\n childrenIndex: index,\n route\n };\n\n if (meta.relativePath.startsWith(\"/\")) {\n invariant(meta.relativePath.startsWith(parentPath), \"Absolute route path \\\"\" + meta.relativePath + \"\\\" nested under path \" + (\"\\\"\" + parentPath + \"\\\" is not valid. An absolute child route path \") + \"must start with the combined path of all its parent routes.\");\n meta.relativePath = meta.relativePath.slice(parentPath.length);\n }\n\n let path = joinPaths([parentPath, meta.relativePath]);\n let routesMeta = parentsMeta.concat(meta); // Add the children before adding this route to the array so we traverse the\n // route tree depth-first and child routes appear before their parents in\n // the \"flattened\" version.\n\n if (route.children && route.children.length > 0) {\n invariant( // Our types know better, but runtime JS may not!\n // @ts-expect-error\n route.index !== true, \"Index routes must not have child routes. Please remove \" + (\"all child routes from route path \\\"\" + path + \"\\\".\"));\n flattenRoutes(route.children, branches, routesMeta, path);\n } // Routes without a path shouldn't ever match by themselves unless they are\n // index routes, so don't add them to the list of possible branches.\n\n\n if (route.path == null && !route.index) {\n return;\n }\n\n branches.push({\n path,\n score: computeScore(path, route.index),\n routesMeta\n });\n };\n\n routes.forEach((route, index) => {\n var _route$path;\n\n // coarse-grain check for optional params\n if (route.path === \"\" || !((_route$path = route.path) != null && _route$path.includes(\"?\"))) {\n flattenRoute(route, index);\n } else {\n for (let exploded of explodeOptionalSegments(route.path)) {\n flattenRoute(route, index, exploded);\n }\n }\n });\n return branches;\n}\n/**\n * Computes all combinations of optional path segments for a given path,\n * excluding combinations that are ambiguous and of lower priority.\n *\n * For example, `/one/:two?/three/:four?/:five?` explodes to:\n * - `/one/three`\n * - `/one/:two/three`\n * - `/one/three/:four`\n * - `/one/three/:five`\n * - `/one/:two/three/:four`\n * - `/one/:two/three/:five`\n * - `/one/three/:four/:five`\n * - `/one/:two/three/:four/:five`\n */\n\n\nfunction explodeOptionalSegments(path) {\n let segments = path.split(\"/\");\n if (segments.length === 0) return [];\n let [first, ...rest] = segments; // Optional path segments are denoted by a trailing `?`\n\n let isOptional = first.endsWith(\"?\"); // Compute the corresponding required segment: `foo?` -> `foo`\n\n let required = first.replace(/\\?$/, \"\");\n\n if (rest.length === 0) {\n // Intepret empty string as omitting an optional segment\n // `[\"one\", \"\", \"three\"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`\n return isOptional ? [required, \"\"] : [required];\n }\n\n let restExploded = explodeOptionalSegments(rest.join(\"/\"));\n let result = []; // All child paths with the prefix. Do this for all children before the\n // optional version for all children so we get consistent ordering where the\n // parent optional aspect is preferred as required. Otherwise, we can get\n // child sections interspersed where deeper optional segments are higher than\n // parent optional segments, where for example, /:two would explodes _earlier_\n // then /:one. By always including the parent as required _for all children_\n // first, we avoid this issue\n\n result.push(...restExploded.map(subpath => subpath === \"\" ? required : [required, subpath].join(\"/\"))); // Then if this is an optional value, add all child versions without\n\n if (isOptional) {\n result.push(...restExploded);\n } // for absolute paths, ensure `/` instead of empty segment\n\n\n return result.map(exploded => path.startsWith(\"/\") && exploded === \"\" ? \"/\" : exploded);\n}\n\nfunction rankRouteBranches(branches) {\n branches.sort((a, b) => a.score !== b.score ? b.score - a.score // Higher score first\n : compareIndexes(a.routesMeta.map(meta => meta.childrenIndex), b.routesMeta.map(meta => meta.childrenIndex)));\n}\n\nconst paramRe = /^:\\w+$/;\nconst dynamicSegmentValue = 3;\nconst indexRouteValue = 2;\nconst emptySegmentValue = 1;\nconst staticSegmentValue = 10;\nconst splatPenalty = -2;\n\nconst isSplat = s => s === \"*\";\n\nfunction computeScore(path, index) {\n let segments = path.split(\"/\");\n let initialScore = segments.length;\n\n if (segments.some(isSplat)) {\n initialScore += splatPenalty;\n }\n\n if (index) {\n initialScore += indexRouteValue;\n }\n\n return segments.filter(s => !isSplat(s)).reduce((score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === \"\" ? emptySegmentValue : staticSegmentValue), initialScore);\n}\n\nfunction compareIndexes(a, b) {\n let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]);\n return siblings ? // If two routes are siblings, we should try to match the earlier sibling\n // first. This allows people to have fine-grained control over the matching\n // behavior by simply putting routes with identical paths in the order they\n // want them tried.\n a[a.length - 1] - b[b.length - 1] : // Otherwise, it doesn't really make sense to rank non-siblings by index,\n // so they sort equally.\n 0;\n}\n\nfunction matchRouteBranch(branch, pathname) {\n let {\n routesMeta\n } = branch;\n let matchedParams = {};\n let matchedPathname = \"/\";\n let matches = [];\n\n for (let i = 0; i < routesMeta.length; ++i) {\n let meta = routesMeta[i];\n let end = i === routesMeta.length - 1;\n let remainingPathname = matchedPathname === \"/\" ? pathname : pathname.slice(matchedPathname.length) || \"/\";\n let match = matchPath({\n path: meta.relativePath,\n caseSensitive: meta.caseSensitive,\n end\n }, remainingPathname);\n if (!match) return null;\n Object.assign(matchedParams, match.params);\n let route = meta.route;\n matches.push({\n // TODO: Can this as be avoided?\n params: matchedParams,\n pathname: joinPaths([matchedPathname, match.pathname]),\n pathnameBase: normalizePathname(joinPaths([matchedPathname, match.pathnameBase])),\n route\n });\n\n if (match.pathnameBase !== \"/\") {\n matchedPathname = joinPaths([matchedPathname, match.pathnameBase]);\n }\n }\n\n return matches;\n}\n/**\n * Returns a path with params interpolated.\n *\n * @see https://reactrouter.com/utils/generate-path\n */\n\n\nfunction generatePath(originalPath, params) {\n if (params === void 0) {\n params = {};\n }\n\n let path = originalPath;\n\n if (path.endsWith(\"*\") && path !== \"*\" && !path.endsWith(\"/*\")) {\n warning(false, \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n path = path.replace(/\\*$/, \"/*\");\n }\n\n return path.replace(/^:(\\w+)(\\??)/g, (_, key, optional) => {\n let param = params[key];\n\n if (optional === \"?\") {\n return param == null ? \"\" : param;\n }\n\n if (param == null) {\n invariant(false, \"Missing \\\":\" + key + \"\\\" param\");\n }\n\n return param;\n }).replace(/\\/:(\\w+)(\\??)/g, (_, key, optional) => {\n let param = params[key];\n\n if (optional === \"?\") {\n return param == null ? \"\" : \"/\" + param;\n }\n\n if (param == null) {\n invariant(false, \"Missing \\\":\" + key + \"\\\" param\");\n }\n\n return \"/\" + param;\n }) // Remove any optional markers from optional static segments\n .replace(/\\?/g, \"\").replace(/(\\/?)\\*/, (_, prefix, __, str) => {\n const star = \"*\";\n\n if (params[star] == null) {\n // If no splat was provided, trim the trailing slash _unless_ it's\n // the entire path\n return str === \"/*\" ? \"/\" : \"\";\n } // Apply the splat\n\n\n return \"\" + prefix + params[star];\n });\n}\n/**\n * Performs pattern matching on a URL pathname and returns information about\n * the match.\n *\n * @see https://reactrouter.com/utils/match-path\n */\n\nfunction matchPath(pattern, pathname) {\n if (typeof pattern === \"string\") {\n pattern = {\n path: pattern,\n caseSensitive: false,\n end: true\n };\n }\n\n let [matcher, paramNames] = compilePath(pattern.path, pattern.caseSensitive, pattern.end);\n let match = pathname.match(matcher);\n if (!match) return null;\n let matchedPathname = match[0];\n let pathnameBase = matchedPathname.replace(/(.)\\/+$/, \"$1\");\n let captureGroups = match.slice(1);\n let params = paramNames.reduce((memo, paramName, index) => {\n // We need to compute the pathnameBase here using the raw splat value\n // instead of using params[\"*\"] later because it will be decoded then\n if (paramName === \"*\") {\n let splatValue = captureGroups[index] || \"\";\n pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\\/+$/, \"$1\");\n }\n\n memo[paramName] = safelyDecodeURIComponent(captureGroups[index] || \"\", paramName);\n return memo;\n }, {});\n return {\n params,\n pathname: matchedPathname,\n pathnameBase,\n pattern\n };\n}\n\nfunction compilePath(path, caseSensitive, end) {\n if (caseSensitive === void 0) {\n caseSensitive = false;\n }\n\n if (end === void 0) {\n end = true;\n }\n\n warning(path === \"*\" || !path.endsWith(\"*\") || path.endsWith(\"/*\"), \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n let paramNames = [];\n let regexpSource = \"^\" + path.replace(/\\/*\\*?$/, \"\") // Ignore trailing / and /*, we'll handle it below\n .replace(/^\\/*/, \"/\") // Make sure it has a leading /\n .replace(/[\\\\.*+^$?{}|()[\\]]/g, \"\\\\$&\") // Escape special regex chars\n .replace(/\\/:(\\w+)/g, (_, paramName) => {\n paramNames.push(paramName);\n return \"/([^\\\\/]+)\";\n });\n\n if (path.endsWith(\"*\")) {\n paramNames.push(\"*\");\n regexpSource += path === \"*\" || path === \"/*\" ? \"(.*)$\" // Already matched the initial /, just match the rest\n : \"(?:\\\\/(.+)|\\\\/*)$\"; // Don't include the / in params[\"*\"]\n } else if (end) {\n // When matching to the end, ignore trailing slashes\n regexpSource += \"\\\\/*$\";\n } else if (path !== \"\" && path !== \"/\") {\n // If our path is non-empty and contains anything beyond an initial slash,\n // then we have _some_ form of path in our regex so we should expect to\n // match only if we find the end of this path segment. Look for an optional\n // non-captured trailing slash (to match a portion of the URL) or the end\n // of the path (if we've matched to the end). We used to do this with a\n // word boundary but that gives false positives on routes like\n // /user-preferences since `-` counts as a word boundary.\n regexpSource += \"(?:(?=\\\\/|$))\";\n } else ;\n\n let matcher = new RegExp(regexpSource, caseSensitive ? undefined : \"i\");\n return [matcher, paramNames];\n}\n\nfunction safelyDecodeURI(value) {\n try {\n return decodeURI(value);\n } catch (error) {\n warning(false, \"The URL path \\\"\" + value + \"\\\" could not be decoded because it is is a \" + \"malformed URL segment. This is probably due to a bad percent \" + (\"encoding (\" + error + \").\"));\n return value;\n }\n}\n\nfunction safelyDecodeURIComponent(value, paramName) {\n try {\n return decodeURIComponent(value);\n } catch (error) {\n warning(false, \"The value for the URL param \\\"\" + paramName + \"\\\" will not be decoded because\" + (\" the string \\\"\" + value + \"\\\" is a malformed URL segment. This is probably\") + (\" due to a bad percent encoding (\" + error + \").\"));\n return value;\n }\n}\n/**\n * @private\n */\n\n\nfunction stripBasename(pathname, basename) {\n if (basename === \"/\") return pathname;\n\n if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {\n return null;\n } // We want to leave trailing slash behavior in the user's control, so if they\n // specify a basename with a trailing slash, we should support it\n\n\n let startIndex = basename.endsWith(\"/\") ? basename.length - 1 : basename.length;\n let nextChar = pathname.charAt(startIndex);\n\n if (nextChar && nextChar !== \"/\") {\n // pathname does not start with basename/\n return null;\n }\n\n return pathname.slice(startIndex) || \"/\";\n}\n/**\n * @private\n */\n\nfunction warning(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging @remix-run/router!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n/**\n * Returns a resolved path object relative to the given pathname.\n *\n * @see https://reactrouter.com/utils/resolve-path\n */\n\nfunction resolvePath(to, fromPathname) {\n if (fromPathname === void 0) {\n fromPathname = \"/\";\n }\n\n let {\n pathname: toPathname,\n search = \"\",\n hash = \"\"\n } = typeof to === \"string\" ? parsePath(to) : to;\n let pathname = toPathname ? toPathname.startsWith(\"/\") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;\n return {\n pathname,\n search: normalizeSearch(search),\n hash: normalizeHash(hash)\n };\n}\n\nfunction resolvePathname(relativePath, fromPathname) {\n let segments = fromPathname.replace(/\\/+$/, \"\").split(\"/\");\n let relativeSegments = relativePath.split(\"/\");\n relativeSegments.forEach(segment => {\n if (segment === \"..\") {\n // Keep the root \"\" segment so the pathname starts at /\n if (segments.length > 1) segments.pop();\n } else if (segment !== \".\") {\n segments.push(segment);\n }\n });\n return segments.length > 1 ? segments.join(\"/\") : \"/\";\n}\n\nfunction getInvalidPathError(char, field, dest, path) {\n return \"Cannot include a '\" + char + \"' character in a manually specified \" + (\"`to.\" + field + \"` field [\" + JSON.stringify(path) + \"]. Please separate it out to the \") + (\"`to.\" + dest + \"` field. Alternatively you may provide the full path as \") + \"a string in and the router will parse it for you.\";\n}\n/**\n * @private\n *\n * When processing relative navigation we want to ignore ancestor routes that\n * do not contribute to the path, such that index/pathless layout routes don't\n * interfere.\n *\n * For example, when moving a route element into an index route and/or a\n * pathless layout route, relative link behavior contained within should stay\n * the same. Both of the following examples should link back to the root:\n *\n * \n * \n * \n *\n * \n * \n * }> // <-- Does not contribute\n * // <-- Does not contribute\n * \n * \n */\n\n\nfunction getPathContributingMatches(matches) {\n return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);\n}\n/**\n * @private\n */\n\nfunction resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {\n if (isPathRelative === void 0) {\n isPathRelative = false;\n }\n\n let to;\n\n if (typeof toArg === \"string\") {\n to = parsePath(toArg);\n } else {\n to = _extends({}, toArg);\n invariant(!to.pathname || !to.pathname.includes(\"?\"), getInvalidPathError(\"?\", \"pathname\", \"search\", to));\n invariant(!to.pathname || !to.pathname.includes(\"#\"), getInvalidPathError(\"#\", \"pathname\", \"hash\", to));\n invariant(!to.search || !to.search.includes(\"#\"), getInvalidPathError(\"#\", \"search\", \"hash\", to));\n }\n\n let isEmptyPath = toArg === \"\" || to.pathname === \"\";\n let toPathname = isEmptyPath ? \"/\" : to.pathname;\n let from; // Routing is relative to the current pathname if explicitly requested.\n //\n // If a pathname is explicitly provided in `to`, it should be relative to the\n // route context. This is explained in `Note on `` values` in our\n // migration guide from v5 as a means of disambiguation between `to` values\n // that begin with `/` and those that do not. However, this is problematic for\n // `to` values that do not provide a pathname. `to` can simply be a search or\n // hash string, in which case we should assume that the navigation is relative\n // to the current location's pathname and *not* the route pathname.\n\n if (isPathRelative || toPathname == null) {\n from = locationPathname;\n } else {\n let routePathnameIndex = routePathnames.length - 1;\n\n if (toPathname.startsWith(\"..\")) {\n let toSegments = toPathname.split(\"/\"); // Each leading .. segment means \"go up one route\" instead of \"go up one\n // URL segment\". This is a key difference from how works and a\n // major reason we call this a \"to\" value instead of a \"href\".\n\n while (toSegments[0] === \"..\") {\n toSegments.shift();\n routePathnameIndex -= 1;\n }\n\n to.pathname = toSegments.join(\"/\");\n } // If there are more \"..\" segments than parent routes, resolve relative to\n // the root / URL.\n\n\n from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : \"/\";\n }\n\n let path = resolvePath(to, from); // Ensure the pathname has a trailing slash if the original \"to\" had one\n\n let hasExplicitTrailingSlash = toPathname && toPathname !== \"/\" && toPathname.endsWith(\"/\"); // Or if this was a link to the current path which has a trailing slash\n\n let hasCurrentTrailingSlash = (isEmptyPath || toPathname === \".\") && locationPathname.endsWith(\"/\");\n\n if (!path.pathname.endsWith(\"/\") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {\n path.pathname += \"/\";\n }\n\n return path;\n}\n/**\n * @private\n */\n\nfunction getToPathname(to) {\n // Empty strings should be treated the same as / paths\n return to === \"\" || to.pathname === \"\" ? \"/\" : typeof to === \"string\" ? parsePath(to).pathname : to.pathname;\n}\n/**\n * @private\n */\n\nconst joinPaths = paths => paths.join(\"/\").replace(/\\/\\/+/g, \"/\");\n/**\n * @private\n */\n\nconst normalizePathname = pathname => pathname.replace(/\\/+$/, \"\").replace(/^\\/*/, \"/\");\n/**\n * @private\n */\n\nconst normalizeSearch = search => !search || search === \"?\" ? \"\" : search.startsWith(\"?\") ? search : \"?\" + search;\n/**\n * @private\n */\n\nconst normalizeHash = hash => !hash || hash === \"#\" ? \"\" : hash.startsWith(\"#\") ? hash : \"#\" + hash;\n/**\n * This is a shortcut for creating `application/json` responses. Converts `data`\n * to JSON and sets the `Content-Type` header.\n */\n\nconst json = function json(data, init) {\n if (init === void 0) {\n init = {};\n }\n\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n let headers = new Headers(responseInit.headers);\n\n if (!headers.has(\"Content-Type\")) {\n headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n }\n\n return new Response(JSON.stringify(data), _extends({}, responseInit, {\n headers\n }));\n};\nclass AbortedDeferredError extends Error {}\nclass DeferredData {\n constructor(data, responseInit) {\n this.pendingKeysSet = new Set();\n this.subscribers = new Set();\n this.deferredKeys = [];\n invariant(data && typeof data === \"object\" && !Array.isArray(data), \"defer() only accepts plain objects\"); // Set up an AbortController + Promise we can race against to exit early\n // cancellation\n\n let reject;\n this.abortPromise = new Promise((_, r) => reject = r);\n this.controller = new AbortController();\n\n let onAbort = () => reject(new AbortedDeferredError(\"Deferred data aborted\"));\n\n this.unlistenAbortSignal = () => this.controller.signal.removeEventListener(\"abort\", onAbort);\n\n this.controller.signal.addEventListener(\"abort\", onAbort);\n this.data = Object.entries(data).reduce((acc, _ref) => {\n let [key, value] = _ref;\n return Object.assign(acc, {\n [key]: this.trackPromise(key, value)\n });\n }, {});\n\n if (this.done) {\n // All incoming values were resolved\n this.unlistenAbortSignal();\n }\n\n this.init = responseInit;\n }\n\n trackPromise(key, value) {\n if (!(value instanceof Promise)) {\n return value;\n }\n\n this.deferredKeys.push(key);\n this.pendingKeysSet.add(key); // We store a little wrapper promise that will be extended with\n // _data/_error props upon resolve/reject\n\n let promise = Promise.race([value, this.abortPromise]).then(data => this.onSettle(promise, key, null, data), error => this.onSettle(promise, key, error)); // Register rejection listeners to avoid uncaught promise rejections on\n // errors or aborted deferred values\n\n promise.catch(() => {});\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n return promise;\n }\n\n onSettle(promise, key, error, data) {\n if (this.controller.signal.aborted && error instanceof AbortedDeferredError) {\n this.unlistenAbortSignal();\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n return Promise.reject(error);\n }\n\n this.pendingKeysSet.delete(key);\n\n if (this.done) {\n // Nothing left to abort!\n this.unlistenAbortSignal();\n }\n\n if (error) {\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n this.emit(false, key);\n return Promise.reject(error);\n }\n\n Object.defineProperty(promise, \"_data\", {\n get: () => data\n });\n this.emit(false, key);\n return data;\n }\n\n emit(aborted, settledKey) {\n this.subscribers.forEach(subscriber => subscriber(aborted, settledKey));\n }\n\n subscribe(fn) {\n this.subscribers.add(fn);\n return () => this.subscribers.delete(fn);\n }\n\n cancel() {\n this.controller.abort();\n this.pendingKeysSet.forEach((v, k) => this.pendingKeysSet.delete(k));\n this.emit(true);\n }\n\n async resolveData(signal) {\n let aborted = false;\n\n if (!this.done) {\n let onAbort = () => this.cancel();\n\n signal.addEventListener(\"abort\", onAbort);\n aborted = await new Promise(resolve => {\n this.subscribe(aborted => {\n signal.removeEventListener(\"abort\", onAbort);\n\n if (aborted || this.done) {\n resolve(aborted);\n }\n });\n });\n }\n\n return aborted;\n }\n\n get done() {\n return this.pendingKeysSet.size === 0;\n }\n\n get unwrappedData() {\n invariant(this.data !== null && this.done, \"Can only unwrap data on initialized and settled deferreds\");\n return Object.entries(this.data).reduce((acc, _ref2) => {\n let [key, value] = _ref2;\n return Object.assign(acc, {\n [key]: unwrapTrackedPromise(value)\n });\n }, {});\n }\n\n get pendingKeys() {\n return Array.from(this.pendingKeysSet);\n }\n\n}\n\nfunction isTrackedPromise(value) {\n return value instanceof Promise && value._tracked === true;\n}\n\nfunction unwrapTrackedPromise(value) {\n if (!isTrackedPromise(value)) {\n return value;\n }\n\n if (value._error) {\n throw value._error;\n }\n\n return value._data;\n}\n\nconst defer = function defer(data, init) {\n if (init === void 0) {\n init = {};\n }\n\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n return new DeferredData(data, responseInit);\n};\n/**\n * A redirect response. Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\n\nconst redirect = function redirect(url, init) {\n if (init === void 0) {\n init = 302;\n }\n\n let responseInit = init;\n\n if (typeof responseInit === \"number\") {\n responseInit = {\n status: responseInit\n };\n } else if (typeof responseInit.status === \"undefined\") {\n responseInit.status = 302;\n }\n\n let headers = new Headers(responseInit.headers);\n headers.set(\"Location\", url);\n return new Response(null, _extends({}, responseInit, {\n headers\n }));\n};\n/**\n * @private\n * Utility class we use to hold auto-unwrapped 4xx/5xx Response bodies\n */\n\nclass ErrorResponse {\n constructor(status, statusText, data, internal) {\n if (internal === void 0) {\n internal = false;\n }\n\n this.status = status;\n this.statusText = statusText || \"\";\n this.internal = internal;\n\n if (data instanceof Error) {\n this.data = data.toString();\n this.error = data;\n } else {\n this.data = data;\n }\n }\n\n}\n/**\n * Check if the given error is an ErrorResponse generated from a 4xx/5xx\n * Response thrown from an action/loader\n */\n\nfunction isRouteErrorResponse(error) {\n return error != null && typeof error.status === \"number\" && typeof error.statusText === \"string\" && typeof error.internal === \"boolean\" && \"data\" in error;\n}\n\nconst validMutationMethodsArr = [\"post\", \"put\", \"patch\", \"delete\"];\nconst validMutationMethods = new Set(validMutationMethodsArr);\nconst validRequestMethodsArr = [\"get\", ...validMutationMethodsArr];\nconst validRequestMethods = new Set(validRequestMethodsArr);\nconst redirectStatusCodes = new Set([301, 302, 303, 307, 308]);\nconst redirectPreserveMethodStatusCodes = new Set([307, 308]);\nconst IDLE_NAVIGATION = {\n state: \"idle\",\n location: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n};\nconst IDLE_FETCHER = {\n state: \"idle\",\n data: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n};\nconst IDLE_BLOCKER = {\n state: \"unblocked\",\n proceed: undefined,\n reset: undefined,\n location: undefined\n};\nconst ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nconst isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\";\nconst isServer = !isBrowser; //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createRouter\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Create a router and listen to history POP navigations\n */\n\nfunction createRouter(init) {\n invariant(init.routes.length > 0, \"You must provide a non-empty routes array to createRouter\");\n let dataRoutes = convertRoutesToDataRoutes(init.routes); // Cleanup function for history\n\n let unlistenHistory = null; // Externally-provided functions to call on all state changes\n\n let subscribers = new Set(); // Externally-provided object to hold scroll restoration locations during routing\n\n let savedScrollPositions = null; // Externally-provided function to get scroll restoration keys\n\n let getScrollRestorationKey = null; // Externally-provided function to get current scroll position\n\n let getScrollPosition = null; // One-time flag to control the initial hydration scroll restoration. Because\n // we don't get the saved positions from until _after_\n // the initial render, we need to manually trigger a separate updateState to\n // send along the restoreScrollPosition\n // Set to true if we have `hydrationData` since we assume we were SSR'd and that\n // SSR did the initial scroll restoration.\n\n let initialScrollRestored = init.hydrationData != null;\n let initialMatches = matchRoutes(dataRoutes, init.history.location, init.basename);\n let initialErrors = null;\n\n if (initialMatches == null) {\n // If we do not match a user-provided-route, fall back to the root\n // to allow the error boundary to take over\n let error = getInternalRouterError(404, {\n pathname: init.history.location.pathname\n });\n let {\n matches,\n route\n } = getShortCircuitMatches(dataRoutes);\n initialMatches = matches;\n initialErrors = {\n [route.id]: error\n };\n }\n\n let initialized = !initialMatches.some(m => m.route.loader) || init.hydrationData != null;\n let router;\n let state = {\n historyAction: init.history.action,\n location: init.history.location,\n matches: initialMatches,\n initialized,\n navigation: IDLE_NAVIGATION,\n // Don't restore on initial updateState() if we were SSR'd\n restoreScrollPosition: init.hydrationData != null ? false : null,\n preventScrollReset: false,\n revalidation: \"idle\",\n loaderData: init.hydrationData && init.hydrationData.loaderData || {},\n actionData: init.hydrationData && init.hydrationData.actionData || null,\n errors: init.hydrationData && init.hydrationData.errors || initialErrors,\n fetchers: new Map(),\n blockers: new Map()\n }; // -- Stateful internal variables to manage navigations --\n // Current navigation in progress (to be committed in completeNavigation)\n\n let pendingAction = Action.Pop; // Should the current navigation prevent the scroll reset if scroll cannot\n // be restored?\n\n let pendingPreventScrollReset = false; // AbortController for the active navigation\n\n let pendingNavigationController; // We use this to avoid touching history in completeNavigation if a\n // revalidation is entirely uninterrupted\n\n let isUninterruptedRevalidation = false; // Use this internal flag to force revalidation of all loaders:\n // - submissions (completed or interrupted)\n // - useRevalidate()\n // - X-Remix-Revalidate (from redirect)\n\n let isRevalidationRequired = false; // Use this internal array to capture routes that require revalidation due\n // to a cancelled deferred on action submission\n\n let cancelledDeferredRoutes = []; // Use this internal array to capture fetcher loads that were cancelled by an\n // action navigation and require revalidation\n\n let cancelledFetcherLoads = []; // AbortControllers for any in-flight fetchers\n\n let fetchControllers = new Map(); // Track loads based on the order in which they started\n\n let incrementingLoadId = 0; // Track the outstanding pending navigation data load to be compared against\n // the globally incrementing load when a fetcher load lands after a completed\n // navigation\n\n let pendingNavigationLoadId = -1; // Fetchers that triggered data reloads as a result of their actions\n\n let fetchReloadIds = new Map(); // Fetchers that triggered redirect navigations from their actions\n\n let fetchRedirectIds = new Set(); // Most recent href/match for fetcher.load calls for fetchers\n\n let fetchLoadMatches = new Map(); // Store DeferredData instances for active route matches. When a\n // route loader returns defer() we stick one in here. Then, when a nested\n // promise resolves we update loaderData. If a new navigation starts we\n // cancel active deferreds for eliminated routes.\n\n let activeDeferreds = new Map(); // Store blocker functions in a separate Map outside of router state since\n // we don't need to update UI state if they change\n\n let blockerFunctions = new Map(); // Flag to ignore the next history update, so we can revert the URL change on\n // a POP navigation that was blocked by the user without touching router state\n\n let ignoreNextHistoryUpdate = false; // Initialize the router, all side effects should be kicked off from here.\n // Implemented as a Fluent API for ease of:\n // let router = createRouter(init).initialize();\n\n function initialize() {\n // If history informs us of a POP navigation, start the navigation but do not update\n // state. We'll update our own state once the navigation completes\n unlistenHistory = init.history.listen(_ref => {\n let {\n action: historyAction,\n location,\n delta\n } = _ref;\n\n // Ignore this event if it was just us resetting the URL from a\n // blocked POP navigation\n if (ignoreNextHistoryUpdate) {\n ignoreNextHistoryUpdate = false;\n return;\n }\n\n warning(blockerFunctions.size === 0 || delta != null, \"You are trying to use a blocker on a POP navigation to a location \" + \"that was not created by @remix-run/router. This will fail silently in \" + \"production. This can happen if you are navigating outside the router \" + \"via `window.history.pushState`/`window.location.hash` instead of using \" + \"router navigation APIs. This can also happen if you are using \" + \"createHashRouter and the user manually changes the URL.\");\n let blockerKey = shouldBlockNavigation({\n currentLocation: state.location,\n nextLocation: location,\n historyAction\n });\n\n if (blockerKey && delta != null) {\n // Restore the URL to match the current UI, but don't update router state\n ignoreNextHistoryUpdate = true;\n init.history.go(delta * -1); // Put the blocker into a blocked state\n\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location,\n\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location\n }); // Re-do the same POP navigation we just blocked\n\n init.history.go(delta);\n },\n\n reset() {\n deleteBlocker(blockerKey);\n updateState({\n blockers: new Map(router.state.blockers)\n });\n }\n\n });\n return;\n }\n\n return startNavigation(historyAction, location);\n }); // Kick off initial data load if needed. Use Pop to avoid modifying history\n\n if (!state.initialized) {\n startNavigation(Action.Pop, state.location);\n }\n\n return router;\n } // Clean up a router and it's side effects\n\n\n function dispose() {\n if (unlistenHistory) {\n unlistenHistory();\n }\n\n subscribers.clear();\n pendingNavigationController && pendingNavigationController.abort();\n state.fetchers.forEach((_, key) => deleteFetcher(key));\n state.blockers.forEach((_, key) => deleteBlocker(key));\n } // Subscribe to state updates for the router\n\n\n function subscribe(fn) {\n subscribers.add(fn);\n return () => subscribers.delete(fn);\n } // Update our state and notify the calling context of the change\n\n\n function updateState(newState) {\n state = _extends({}, state, newState);\n subscribers.forEach(subscriber => subscriber(state));\n } // Complete a navigation returning the state.navigation back to the IDLE_NAVIGATION\n // and setting state.[historyAction/location/matches] to the new route.\n // - Location is a required param\n // - Navigation will always be set to IDLE_NAVIGATION\n // - Can pass any other state in newState\n\n\n function completeNavigation(location, newState) {\n var _location$state, _location$state2;\n\n // Deduce if we're in a loading/actionReload state:\n // - We have committed actionData in the store\n // - The current navigation was a mutation submission\n // - We're past the submitting state and into the loading state\n // - The location being loaded is not the result of a redirect\n let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === \"loading\" && ((_location$state = location.state) == null ? void 0 : _location$state._isRedirect) !== true;\n let actionData;\n\n if (newState.actionData) {\n if (Object.keys(newState.actionData).length > 0) {\n actionData = newState.actionData;\n } else {\n // Empty actionData -> clear prior actionData due to an action error\n actionData = null;\n }\n } else if (isActionReload) {\n // Keep the current data if we're wrapping up the action reload\n actionData = state.actionData;\n } else {\n // Clear actionData on any other completed navigations\n actionData = null;\n } // Always preserve any existing loaderData from re-used routes\n\n\n let loaderData = newState.loaderData ? mergeLoaderData(state.loaderData, newState.loaderData, newState.matches || [], newState.errors) : state.loaderData; // On a successful navigation we can assume we got through all blockers\n // so we can start fresh\n\n for (let [key] of blockerFunctions) {\n deleteBlocker(key);\n } // Always respect the user flag. Otherwise don't reset on mutation\n // submission navigations unless they redirect\n\n\n let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && ((_location$state2 = location.state) == null ? void 0 : _location$state2._isRedirect) !== true;\n updateState(_extends({}, newState, {\n actionData,\n loaderData,\n historyAction: pendingAction,\n location,\n initialized: true,\n navigation: IDLE_NAVIGATION,\n revalidation: \"idle\",\n restoreScrollPosition: getSavedScrollPosition(location, newState.matches || state.matches),\n preventScrollReset,\n blockers: new Map(state.blockers)\n }));\n\n if (isUninterruptedRevalidation) ; else if (pendingAction === Action.Pop) ; else if (pendingAction === Action.Push) {\n init.history.push(location, location.state);\n } else if (pendingAction === Action.Replace) {\n init.history.replace(location, location.state);\n } // Reset stateful navigation vars\n\n\n pendingAction = Action.Pop;\n pendingPreventScrollReset = false;\n isUninterruptedRevalidation = false;\n isRevalidationRequired = false;\n cancelledDeferredRoutes = [];\n cancelledFetcherLoads = [];\n } // Trigger a navigation event, which can either be a numerical POP or a PUSH\n // replace with an optional submission\n\n\n async function navigate(to, opts) {\n if (typeof to === \"number\") {\n init.history.go(to);\n return;\n }\n\n let {\n path,\n submission,\n error\n } = normalizeNavigateOptions(to, opts);\n let currentLocation = state.location;\n let nextLocation = createLocation(state.location, path, opts && opts.state); // When using navigate as a PUSH/REPLACE we aren't reading an already-encoded\n // URL from window.location, so we need to encode it here so the behavior\n // remains the same as POP and non-data-router usages. new URL() does all\n // the same encoding we'd get from a history.pushState/window.location read\n // without having to touch history\n\n nextLocation = _extends({}, nextLocation, init.history.encodeLocation(nextLocation));\n let userReplace = opts && opts.replace != null ? opts.replace : undefined;\n let historyAction = Action.Push;\n\n if (userReplace === true) {\n historyAction = Action.Replace;\n } else if (userReplace === false) ; else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) {\n // By default on submissions to the current location we REPLACE so that\n // users don't have to double-click the back button to get to the prior\n // location. If the user redirects to a different location from the\n // action/loader this will be ignored and the redirect will be a PUSH\n historyAction = Action.Replace;\n }\n\n let preventScrollReset = opts && \"preventScrollReset\" in opts ? opts.preventScrollReset === true : undefined;\n let blockerKey = shouldBlockNavigation({\n currentLocation,\n nextLocation,\n historyAction\n });\n\n if (blockerKey) {\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location: nextLocation,\n\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location: nextLocation\n }); // Send the same navigation through\n\n navigate(to, opts);\n },\n\n reset() {\n deleteBlocker(blockerKey);\n updateState({\n blockers: new Map(state.blockers)\n });\n }\n\n });\n return;\n }\n\n return await startNavigation(historyAction, nextLocation, {\n submission,\n // Send through the formData serialization error if we have one so we can\n // render at the right error boundary after we match routes\n pendingError: error,\n preventScrollReset,\n replace: opts && opts.replace\n });\n } // Revalidate all current loaders. If a navigation is in progress or if this\n // is interrupted by a navigation, allow this to \"succeed\" by calling all\n // loaders during the next loader round\n\n\n function revalidate() {\n interruptActiveLoads();\n updateState({\n revalidation: \"loading\"\n }); // If we're currently submitting an action, we don't need to start a new\n // navigation, we'll just let the follow up loader execution call all loaders\n\n if (state.navigation.state === \"submitting\") {\n return;\n } // If we're currently in an idle state, start a new navigation for the current\n // action/location and mark it as uninterrupted, which will skip the history\n // update in completeNavigation\n\n\n if (state.navigation.state === \"idle\") {\n startNavigation(state.historyAction, state.location, {\n startUninterruptedRevalidation: true\n });\n return;\n } // Otherwise, if we're currently in a loading state, just start a new\n // navigation to the navigation.location but do not trigger an uninterrupted\n // revalidation so that history correctly updates once the navigation completes\n\n\n startNavigation(pendingAction || state.historyAction, state.navigation.location, {\n overrideNavigation: state.navigation\n });\n } // Start a navigation to the given action/location. Can optionally provide a\n // overrideNavigation which will override the normalLoad in the case of a redirect\n // navigation\n\n\n async function startNavigation(historyAction, location, opts) {\n // Abort any in-progress navigations and start a new one. Unset any ongoing\n // uninterrupted revalidations unless told otherwise, since we want this\n // new navigation to update history normally\n pendingNavigationController && pendingNavigationController.abort();\n pendingNavigationController = null;\n pendingAction = historyAction;\n isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true; // Save the current scroll position every time we start a new navigation,\n // and track whether we should reset scroll on completion\n\n saveScrollPosition(state.location, state.matches);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n let loadingNavigation = opts && opts.overrideNavigation;\n let matches = matchRoutes(dataRoutes, location, init.basename); // Short circuit with a 404 on the root error boundary if we match nothing\n\n if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes); // Cancel all pending deferred on 404s since we don't keep any routes\n\n cancelActiveDeferreds();\n completeNavigation(location, {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n });\n return;\n } // Short circuit if it's only a hash change and not a mutation submission\n // For example, on /page#hash and submit a
which will\n // default to a navigation to /page\n\n\n if (isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {\n completeNavigation(location, {\n matches\n });\n return;\n } // Create a controller/Request for this navigation\n\n\n pendingNavigationController = new AbortController();\n let request = createClientSideRequest(init.history, location, pendingNavigationController.signal, opts && opts.submission);\n let pendingActionData;\n let pendingError;\n\n if (opts && opts.pendingError) {\n // If we have a pendingError, it means the user attempted a GET submission\n // with binary FormData so assign here and skip to handleLoaders. That\n // way we handle calling loaders above the boundary etc. It's not really\n // different from an actionError in that sense.\n pendingError = {\n [findNearestBoundary(matches).route.id]: opts.pendingError\n };\n } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) {\n // Call action if we received an action submission\n let actionOutput = await handleAction(request, location, opts.submission, matches, {\n replace: opts.replace\n });\n\n if (actionOutput.shortCircuited) {\n return;\n }\n\n pendingActionData = actionOutput.pendingActionData;\n pendingError = actionOutput.pendingActionError;\n\n let navigation = _extends({\n state: \"loading\",\n location\n }, opts.submission);\n\n loadingNavigation = navigation; // Create a GET request for the loaders\n\n request = new Request(request.url, {\n signal: request.signal\n });\n } // Call loaders\n\n\n let {\n shortCircuited,\n loaderData,\n errors\n } = await handleLoaders(request, location, matches, loadingNavigation, opts && opts.submission, opts && opts.replace, pendingActionData, pendingError);\n\n if (shortCircuited) {\n return;\n } // Clean up now that the action/loaders have completed. Don't clean up if\n // we short circuited because pendingNavigationController will have already\n // been assigned to a new controller for the next navigation\n\n\n pendingNavigationController = null;\n completeNavigation(location, _extends({\n matches\n }, pendingActionData ? {\n actionData: pendingActionData\n } : {}, {\n loaderData,\n errors\n }));\n } // Call the action matched by the leaf route for this navigation and handle\n // redirects/errors\n\n\n async function handleAction(request, location, submission, matches, opts) {\n interruptActiveLoads(); // Put us in a submitting state\n\n let navigation = _extends({\n state: \"submitting\",\n location\n }, submission);\n\n updateState({\n navigation\n }); // Call our action and get the result\n\n let result;\n let actionMatch = getTargetMatch(matches, location);\n\n if (!actionMatch.route.action) {\n result = {\n type: ResultType.error,\n error: getInternalRouterError(405, {\n method: request.method,\n pathname: location.pathname,\n routeId: actionMatch.route.id\n })\n };\n } else {\n result = await callLoaderOrAction(\"action\", request, actionMatch, matches, router.basename);\n\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n }\n }\n\n if (isRedirectResult(result)) {\n let replace;\n\n if (opts && opts.replace != null) {\n replace = opts.replace;\n } else {\n // If the user didn't explicity indicate replace behavior, replace if\n // we redirected to the exact same location we're currently at to avoid\n // double back-buttons\n replace = result.location === state.location.pathname + state.location.search;\n }\n\n await startRedirectNavigation(state, result, {\n submission,\n replace\n });\n return {\n shortCircuited: true\n };\n }\n\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id); // By default, all submissions are REPLACE navigations, but if the\n // action threw an error that'll be rendered in an errorElement, we fall\n // back to PUSH so that the user can use the back button to get back to\n // the pre-submission form location to try again\n\n if ((opts && opts.replace) !== true) {\n pendingAction = Action.Push;\n }\n\n return {\n // Send back an empty object we can use to clear out any prior actionData\n pendingActionData: {},\n pendingActionError: {\n [boundaryMatch.route.id]: result.error\n }\n };\n }\n\n if (isDeferredResult(result)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n }\n\n return {\n pendingActionData: {\n [actionMatch.route.id]: result.data\n }\n };\n } // Call all applicable loaders for the given matches, handling redirects,\n // errors, etc.\n\n\n async function handleLoaders(request, location, matches, overrideNavigation, submission, replace, pendingActionData, pendingError) {\n // Figure out the right navigation we want to use for data loading\n let loadingNavigation = overrideNavigation;\n\n if (!loadingNavigation) {\n let navigation = _extends({\n state: \"loading\",\n location,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n }, submission);\n\n loadingNavigation = navigation;\n } // If this was a redirect from an action we don't have a \"submission\" but\n // we have it on the loading navigation so use that if available\n\n\n let activeSubmission = submission ? submission : loadingNavigation.formMethod && loadingNavigation.formAction && loadingNavigation.formData && loadingNavigation.formEncType ? {\n formMethod: loadingNavigation.formMethod,\n formAction: loadingNavigation.formAction,\n formData: loadingNavigation.formData,\n formEncType: loadingNavigation.formEncType\n } : undefined;\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, activeSubmission, location, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, pendingActionData, pendingError, fetchLoadMatches); // Cancel pending deferreds for no-longer-matched routes or routes we're\n // about to reload. Note that if this is an action reload we would have\n // already cancelled all pending deferreds so this would be a no-op\n\n cancelActiveDeferreds(routeId => !(matches && matches.some(m => m.route.id === routeId)) || matchesToLoad && matchesToLoad.some(m => m.route.id === routeId)); // Short circuit if we have no loaders to run\n\n if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) {\n completeNavigation(location, _extends({\n matches,\n loaderData: {},\n // Commit pending error if we're short circuiting\n errors: pendingError || null\n }, pendingActionData ? {\n actionData: pendingActionData\n } : {}));\n return {\n shortCircuited: true\n };\n } // If this is an uninterrupted revalidation, we remain in our current idle\n // state. If not, we need to switch to our loading state and load data,\n // preserving any new action data or existing action data (in the case of\n // a revalidation interrupting an actionReload)\n\n\n if (!isUninterruptedRevalidation) {\n revalidatingFetchers.forEach(rf => {\n let fetcher = state.fetchers.get(rf.key);\n let revalidatingFetcher = {\n state: \"loading\",\n data: fetcher && fetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(rf.key, revalidatingFetcher);\n });\n let actionData = pendingActionData || state.actionData;\n updateState(_extends({\n navigation: loadingNavigation\n }, actionData ? Object.keys(actionData).length === 0 ? {\n actionData: null\n } : {\n actionData\n } : {}, revalidatingFetchers.length > 0 ? {\n fetchers: new Map(state.fetchers)\n } : {}));\n }\n\n pendingNavigationLoadId = ++incrementingLoadId;\n revalidatingFetchers.forEach(rf => fetchControllers.set(rf.key, pendingNavigationController));\n let {\n results,\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, request);\n\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n } // Clean up _after_ loaders have completed. Don't clean up if we short\n // circuited because fetchControllers would have been aborted and\n // reassigned to new controllers for the next navigation\n\n\n revalidatingFetchers.forEach(rf => fetchControllers.delete(rf.key)); // If any loaders returned a redirect Response, start a new REPLACE navigation\n\n let redirect = findRedirect(results);\n\n if (redirect) {\n await startRedirectNavigation(state, redirect, {\n replace\n });\n return {\n shortCircuited: true\n };\n } // Process and commit output from loaders\n\n\n let {\n loaderData,\n errors\n } = processLoaderData(state, matches, matchesToLoad, loaderResults, pendingError, revalidatingFetchers, fetcherResults, activeDeferreds); // Wire up subscribers to update loaderData as promises settle\n\n activeDeferreds.forEach((deferredData, routeId) => {\n deferredData.subscribe(aborted => {\n // Note: No need to updateState here since the TrackedPromise on\n // loaderData is stable across resolve/reject\n // Remove this instance if we were aborted or if promises have settled\n if (aborted || deferredData.done) {\n activeDeferreds.delete(routeId);\n }\n });\n });\n markFetchRedirectsDone();\n let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId);\n return _extends({\n loaderData,\n errors\n }, didAbortFetchLoads || revalidatingFetchers.length > 0 ? {\n fetchers: new Map(state.fetchers)\n } : {});\n }\n\n function getFetcher(key) {\n return state.fetchers.get(key) || IDLE_FETCHER;\n } // Trigger a fetcher load/submit for the given fetcher key\n\n\n function fetch(key, routeId, href, opts) {\n if (isServer) {\n throw new Error(\"router.fetch() was called during the server render, but it shouldn't be. \" + \"You are likely calling a useFetcher() method in the body of your component. \" + \"Try moving it to a useEffect or a callback.\");\n }\n\n if (fetchControllers.has(key)) abortFetcher(key);\n let matches = matchRoutes(dataRoutes, href, init.basename);\n\n if (!matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: href\n }));\n return;\n }\n\n let {\n path,\n submission\n } = normalizeNavigateOptions(href, opts, true);\n let match = getTargetMatch(matches, path);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n\n if (submission && isMutationMethod(submission.formMethod)) {\n handleFetcherAction(key, routeId, path, match, matches, submission);\n return;\n } // Store off the match so we can call it's shouldRevalidate on subsequent\n // revalidations\n\n\n fetchLoadMatches.set(key, {\n routeId,\n path,\n match,\n matches\n });\n handleFetcherLoader(key, routeId, path, match, matches, submission);\n } // Call the action for the matched fetcher.submit(), and then handle redirects,\n // errors, and revalidation\n\n\n async function handleFetcherAction(key, routeId, path, match, requestMatches, submission) {\n interruptActiveLoads();\n fetchLoadMatches.delete(key);\n\n if (!match.route.action) {\n let error = getInternalRouterError(405, {\n method: submission.formMethod,\n pathname: path,\n routeId: routeId\n });\n setFetcherError(key, routeId, error);\n return;\n } // Put this fetcher into it's submitting state\n\n\n let existingFetcher = state.fetchers.get(key);\n\n let fetcher = _extends({\n state: \"submitting\"\n }, submission, {\n data: existingFetcher && existingFetcher.data,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, fetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }); // Call the action for the fetcher\n\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal, submission);\n fetchControllers.set(key, abortController);\n let actionResult = await callLoaderOrAction(\"action\", fetchRequest, match, requestMatches, router.basename);\n\n if (fetchRequest.signal.aborted) {\n // We can delete this so long as we weren't aborted by ou our own fetcher\n // re-submit which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n\n return;\n }\n\n if (isRedirectResult(actionResult)) {\n fetchControllers.delete(key);\n fetchRedirectIds.add(key);\n\n let loadingFetcher = _extends({\n state: \"loading\"\n }, submission, {\n data: undefined,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadingFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n });\n return startRedirectNavigation(state, actionResult, {\n isFetchActionRedirect: true\n });\n } // Process any non-redirect errors thrown\n\n\n if (isErrorResult(actionResult)) {\n setFetcherError(key, routeId, actionResult.error);\n return;\n }\n\n if (isDeferredResult(actionResult)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n } // Start the data load for current matches, or the next location if we're\n // in the middle of a navigation\n\n\n let nextLocation = state.navigation.location || state.location;\n let revalidationRequest = createClientSideRequest(init.history, nextLocation, abortController.signal);\n let matches = state.navigation.state !== \"idle\" ? matchRoutes(dataRoutes, state.navigation.location, init.basename) : state.matches;\n invariant(matches, \"Didn't find any matches after fetcher action\");\n let loadId = ++incrementingLoadId;\n fetchReloadIds.set(key, loadId);\n\n let loadFetcher = _extends({\n state: \"loading\",\n data: actionResult.data\n }, submission, {\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadFetcher);\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, submission, nextLocation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, {\n [match.route.id]: actionResult.data\n }, undefined, // No need to send through errors since we short circuit above\n fetchLoadMatches); // Put all revalidating fetchers into the loading state, except for the\n // current fetcher which we want to keep in it's current loading state which\n // contains it's action submission info + action data\n\n revalidatingFetchers.filter(rf => rf.key !== key).forEach(rf => {\n let staleKey = rf.key;\n let existingFetcher = state.fetchers.get(staleKey);\n let revalidatingFetcher = {\n state: \"loading\",\n data: existingFetcher && existingFetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(staleKey, revalidatingFetcher);\n fetchControllers.set(staleKey, abortController);\n });\n updateState({\n fetchers: new Map(state.fetchers)\n });\n let {\n results,\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, revalidationRequest);\n\n if (abortController.signal.aborted) {\n return;\n }\n\n fetchReloadIds.delete(key);\n fetchControllers.delete(key);\n revalidatingFetchers.forEach(r => fetchControllers.delete(r.key));\n let redirect = findRedirect(results);\n\n if (redirect) {\n return startRedirectNavigation(state, redirect);\n } // Process and commit output from loaders\n\n\n let {\n loaderData,\n errors\n } = processLoaderData(state, state.matches, matchesToLoad, loaderResults, undefined, revalidatingFetchers, fetcherResults, activeDeferreds);\n let doneFetcher = {\n state: \"idle\",\n data: actionResult.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n let didAbortFetchLoads = abortStaleFetchLoads(loadId); // If we are currently in a navigation loading state and this fetcher is\n // more recent than the navigation, we want the newer data so abort the\n // navigation and complete it with the fetcher data\n\n if (state.navigation.state === \"loading\" && loadId > pendingNavigationLoadId) {\n invariant(pendingAction, \"Expected pending action\");\n pendingNavigationController && pendingNavigationController.abort();\n completeNavigation(state.navigation.location, {\n matches,\n loaderData,\n errors,\n fetchers: new Map(state.fetchers)\n });\n } else {\n // otherwise just update with the fetcher data, preserving any existing\n // loaderData for loaders that did not need to reload. We have to\n // manually merge here since we aren't going through completeNavigation\n updateState(_extends({\n errors,\n loaderData: mergeLoaderData(state.loaderData, loaderData, matches, errors)\n }, didAbortFetchLoads ? {\n fetchers: new Map(state.fetchers)\n } : {}));\n isRevalidationRequired = false;\n }\n } // Call the matched loader for fetcher.load(), handling redirects, errors, etc.\n\n\n async function handleFetcherLoader(key, routeId, path, match, matches, submission) {\n let existingFetcher = state.fetchers.get(key); // Put this fetcher into it's loading state\n\n let loadingFetcher = _extends({\n state: \"loading\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n }, submission, {\n data: existingFetcher && existingFetcher.data,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadingFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }); // Call the loader for this fetcher route match\n\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal);\n fetchControllers.set(key, abortController);\n let result = await callLoaderOrAction(\"loader\", fetchRequest, match, matches, router.basename); // Deferred isn't supported for fetcher loads, await everything and treat it\n // as a normal load. resolveDeferredData will return undefined if this\n // fetcher gets aborted, so we just leave result untouched and short circuit\n // below if that happens\n\n if (isDeferredResult(result)) {\n result = (await resolveDeferredData(result, fetchRequest.signal, true)) || result;\n } // We can delete this so long as we weren't aborted by ou our own fetcher\n // re-load which would have put _new_ controller is in fetchControllers\n\n\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n\n if (fetchRequest.signal.aborted) {\n return;\n } // If the loader threw a redirect Response, start a new REPLACE navigation\n\n\n if (isRedirectResult(result)) {\n await startRedirectNavigation(state, result);\n return;\n } // Process any non-redirect errors thrown\n\n\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n state.fetchers.delete(key); // TODO: In remix, this would reset to IDLE_NAVIGATION if it was a catch -\n // do we need to behave any differently with our non-redirect errors?\n // What if it was a non-redirect Response?\n\n updateState({\n fetchers: new Map(state.fetchers),\n errors: {\n [boundaryMatch.route.id]: result.error\n }\n });\n return;\n }\n\n invariant(!isDeferredResult(result), \"Unhandled fetcher deferred data\"); // Put the fetcher back into an idle state\n\n let doneFetcher = {\n state: \"idle\",\n data: result.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n });\n }\n /**\n * Utility function to handle redirects returned from an action or loader.\n * Normally, a redirect \"replaces\" the navigation that triggered it. So, for\n * example:\n *\n * - user is on /a\n * - user clicks a link to /b\n * - loader for /b redirects to /c\n *\n * In a non-JS app the browser would track the in-flight navigation to /b and\n * then replace it with /c when it encountered the redirect response. In\n * the end it would only ever update the URL bar with /c.\n *\n * In client-side routing using pushState/replaceState, we aim to emulate\n * this behavior and we also do not update history until the end of the\n * navigation (including processed redirects). This means that we never\n * actually touch history until we've processed redirects, so we just use\n * the history action from the original navigation (PUSH or REPLACE).\n */\n\n\n async function startRedirectNavigation(state, redirect, _temp) {\n var _window;\n\n let {\n submission,\n replace,\n isFetchActionRedirect\n } = _temp === void 0 ? {} : _temp;\n\n if (redirect.revalidate) {\n isRevalidationRequired = true;\n }\n\n let redirectLocation = createLocation(state.location, redirect.location, // TODO: This can be removed once we get rid of useTransition in Remix v2\n _extends({\n _isRedirect: true\n }, isFetchActionRedirect ? {\n _isFetchActionRedirect: true\n } : {}));\n invariant(redirectLocation, \"Expected a location on the redirect navigation\"); // Check if this an absolute external redirect that goes to a new origin\n\n if (ABSOLUTE_URL_REGEX.test(redirect.location) && isBrowser && typeof ((_window = window) == null ? void 0 : _window.location) !== \"undefined\") {\n let newOrigin = init.history.createURL(redirect.location).origin;\n\n if (window.location.origin !== newOrigin) {\n if (replace) {\n window.location.replace(redirect.location);\n } else {\n window.location.assign(redirect.location);\n }\n\n return;\n }\n } // There's no need to abort on redirects, since we don't detect the\n // redirect until the action/loaders have settled\n\n\n pendingNavigationController = null;\n let redirectHistoryAction = replace === true ? Action.Replace : Action.Push; // Use the incoming submission if provided, fallback on the active one in\n // state.navigation\n\n let {\n formMethod,\n formAction,\n formEncType,\n formData\n } = state.navigation;\n\n if (!submission && formMethod && formAction && formData && formEncType) {\n submission = {\n formMethod,\n formAction,\n formEncType,\n formData\n };\n } // If this was a 307/308 submission we want to preserve the HTTP method and\n // re-submit the GET/POST/PUT/PATCH/DELETE as a submission navigation to the\n // redirected location\n\n\n if (redirectPreserveMethodStatusCodes.has(redirect.status) && submission && isMutationMethod(submission.formMethod)) {\n await startNavigation(redirectHistoryAction, redirectLocation, {\n submission: _extends({}, submission, {\n formAction: redirect.location\n }),\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset\n });\n } else {\n // Otherwise, we kick off a new loading navigation, preserving the\n // submission info for the duration of this navigation\n await startNavigation(redirectHistoryAction, redirectLocation, {\n overrideNavigation: {\n state: \"loading\",\n location: redirectLocation,\n formMethod: submission ? submission.formMethod : undefined,\n formAction: submission ? submission.formAction : undefined,\n formEncType: submission ? submission.formEncType : undefined,\n formData: submission ? submission.formData : undefined\n },\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset\n });\n }\n }\n\n async function callLoadersAndMaybeResolveData(currentMatches, matches, matchesToLoad, fetchersToLoad, request) {\n // Call all navigation loaders and revalidating fetcher loaders in parallel,\n // then slice off the results into separate arrays so we can handle them\n // accordingly\n let results = await Promise.all([...matchesToLoad.map(match => callLoaderOrAction(\"loader\", request, match, matches, router.basename)), ...fetchersToLoad.map(f => callLoaderOrAction(\"loader\", createClientSideRequest(init.history, f.path, request.signal), f.match, f.matches, router.basename))]);\n let loaderResults = results.slice(0, matchesToLoad.length);\n let fetcherResults = results.slice(matchesToLoad.length);\n await Promise.all([resolveDeferredResults(currentMatches, matchesToLoad, loaderResults, request.signal, false, state.loaderData), resolveDeferredResults(currentMatches, fetchersToLoad.map(f => f.match), fetcherResults, request.signal, true)]);\n return {\n results,\n loaderResults,\n fetcherResults\n };\n }\n\n function interruptActiveLoads() {\n // Every interruption triggers a revalidation\n isRevalidationRequired = true; // Cancel pending route-level deferreds and mark cancelled routes for\n // revalidation\n\n cancelledDeferredRoutes.push(...cancelActiveDeferreds()); // Abort in-flight fetcher loads\n\n fetchLoadMatches.forEach((_, key) => {\n if (fetchControllers.has(key)) {\n cancelledFetcherLoads.push(key);\n abortFetcher(key);\n }\n });\n }\n\n function setFetcherError(key, routeId, error) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n deleteFetcher(key);\n updateState({\n errors: {\n [boundaryMatch.route.id]: error\n },\n fetchers: new Map(state.fetchers)\n });\n }\n\n function deleteFetcher(key) {\n if (fetchControllers.has(key)) abortFetcher(key);\n fetchLoadMatches.delete(key);\n fetchReloadIds.delete(key);\n fetchRedirectIds.delete(key);\n state.fetchers.delete(key);\n }\n\n function abortFetcher(key) {\n let controller = fetchControllers.get(key);\n invariant(controller, \"Expected fetch controller: \" + key);\n controller.abort();\n fetchControllers.delete(key);\n }\n\n function markFetchersDone(keys) {\n for (let key of keys) {\n let fetcher = getFetcher(key);\n let doneFetcher = {\n state: \"idle\",\n data: fetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n }\n }\n\n function markFetchRedirectsDone() {\n let doneKeys = [];\n\n for (let key of fetchRedirectIds) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n\n if (fetcher.state === \"loading\") {\n fetchRedirectIds.delete(key);\n doneKeys.push(key);\n }\n }\n\n markFetchersDone(doneKeys);\n }\n\n function abortStaleFetchLoads(landedId) {\n let yeetedKeys = [];\n\n for (let [key, id] of fetchReloadIds) {\n if (id < landedId) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n\n if (fetcher.state === \"loading\") {\n abortFetcher(key);\n fetchReloadIds.delete(key);\n yeetedKeys.push(key);\n }\n }\n }\n\n markFetchersDone(yeetedKeys);\n return yeetedKeys.length > 0;\n }\n\n function getBlocker(key, fn) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n\n if (blockerFunctions.get(key) !== fn) {\n blockerFunctions.set(key, fn);\n }\n\n return blocker;\n }\n\n function deleteBlocker(key) {\n state.blockers.delete(key);\n blockerFunctions.delete(key);\n } // Utility function to update blockers, ensuring valid state transitions\n\n\n function updateBlocker(key, newBlocker) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER; // Poor mans state machine :)\n // https://mermaid.live/edit#pako:eNqVkc9OwzAMxl8l8nnjAYrEtDIOHEBIgwvKJTReGy3_lDpIqO27k6awMG0XcrLlnz87nwdonESogKXXBuE79rq75XZO3-yHds0RJVuv70YrPlUrCEe2HfrORS3rubqZfuhtpg5C9wk5tZ4VKcRUq88q9Z8RS0-48cE1iHJkL0ugbHuFLus9L6spZy8nX9MP2CNdomVaposqu3fGayT8T8-jJQwhepo_UtpgBQaDEUom04dZhAN1aJBDlUKJBxE1ceB2Smj0Mln-IBW5AFU2dwUiktt_2Qaq2dBfaKdEup85UV7Yd-dKjlnkabl2Pvr0DTkTreM\n\n invariant(blocker.state === \"unblocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"proceeding\" || blocker.state === \"blocked\" && newBlocker.state === \"unblocked\" || blocker.state === \"proceeding\" && newBlocker.state === \"unblocked\", \"Invalid blocker state transition: \" + blocker.state + \" -> \" + newBlocker.state);\n state.blockers.set(key, newBlocker);\n updateState({\n blockers: new Map(state.blockers)\n });\n }\n\n function shouldBlockNavigation(_ref2) {\n let {\n currentLocation,\n nextLocation,\n historyAction\n } = _ref2;\n\n if (blockerFunctions.size === 0) {\n return;\n } // We ony support a single active blocker at the moment since we don't have\n // any compelling use cases for multi-blocker yet\n\n\n if (blockerFunctions.size > 1) {\n warning(false, \"A router only supports one blocker at a time\");\n }\n\n let entries = Array.from(blockerFunctions.entries());\n let [blockerKey, blockerFunction] = entries[entries.length - 1];\n let blocker = state.blockers.get(blockerKey);\n\n if (blocker && blocker.state === \"proceeding\") {\n // If the blocker is currently proceeding, we don't need to re-check\n // it and can let this navigation continue\n return;\n } // At this point, we know we're unblocked/blocked so we need to check the\n // user-provided blocker function\n\n\n if (blockerFunction({\n currentLocation,\n nextLocation,\n historyAction\n })) {\n return blockerKey;\n }\n }\n\n function cancelActiveDeferreds(predicate) {\n let cancelledRouteIds = [];\n activeDeferreds.forEach((dfd, routeId) => {\n if (!predicate || predicate(routeId)) {\n // Cancel the deferred - but do not remove from activeDeferreds here -\n // we rely on the subscribers to do that so our tests can assert proper\n // cleanup via _internalActiveDeferreds\n dfd.cancel();\n cancelledRouteIds.push(routeId);\n activeDeferreds.delete(routeId);\n }\n });\n return cancelledRouteIds;\n } // Opt in to capturing and reporting scroll positions during navigations,\n // used by the component\n\n\n function enableScrollRestoration(positions, getPosition, getKey) {\n savedScrollPositions = positions;\n getScrollPosition = getPosition;\n\n getScrollRestorationKey = getKey || (location => location.key); // Perform initial hydration scroll restoration, since we miss the boat on\n // the initial updateState() because we've not yet rendered \n // and therefore have no savedScrollPositions available\n\n\n if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) {\n initialScrollRestored = true;\n let y = getSavedScrollPosition(state.location, state.matches);\n\n if (y != null) {\n updateState({\n restoreScrollPosition: y\n });\n }\n }\n\n return () => {\n savedScrollPositions = null;\n getScrollPosition = null;\n getScrollRestorationKey = null;\n };\n }\n\n function saveScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollRestorationKey && getScrollPosition) {\n let userMatches = matches.map(m => createUseMatchesMatch(m, state.loaderData));\n let key = getScrollRestorationKey(location, userMatches) || location.key;\n savedScrollPositions[key] = getScrollPosition();\n }\n }\n\n function getSavedScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollRestorationKey && getScrollPosition) {\n let userMatches = matches.map(m => createUseMatchesMatch(m, state.loaderData));\n let key = getScrollRestorationKey(location, userMatches) || location.key;\n let y = savedScrollPositions[key];\n\n if (typeof y === \"number\") {\n return y;\n }\n }\n\n return null;\n }\n\n router = {\n get basename() {\n return init.basename;\n },\n\n get state() {\n return state;\n },\n\n get routes() {\n return dataRoutes;\n },\n\n initialize,\n subscribe,\n enableScrollRestoration,\n navigate,\n fetch,\n revalidate,\n // Passthrough to history-aware createHref used by useHref so we get proper\n // hash-aware URLs in DOM paths\n createHref: to => init.history.createHref(to),\n encodeLocation: to => init.history.encodeLocation(to),\n getFetcher,\n deleteFetcher,\n dispose,\n getBlocker,\n deleteBlocker,\n _internalFetchControllers: fetchControllers,\n _internalActiveDeferreds: activeDeferreds\n };\n return router;\n} //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createStaticHandler\n////////////////////////////////////////////////////////////////////////////////\n\nconst UNSAFE_DEFERRED_SYMBOL = Symbol(\"deferred\");\nfunction createStaticHandler(routes, opts) {\n invariant(routes.length > 0, \"You must provide a non-empty routes array to createStaticHandler\");\n let dataRoutes = convertRoutesToDataRoutes(routes);\n let basename = (opts ? opts.basename : null) || \"/\";\n /**\n * The query() method is intended for document requests, in which we want to\n * call an optional action and potentially multiple loaders for all nested\n * routes. It returns a StaticHandlerContext object, which is very similar\n * to the router state (location, loaderData, actionData, errors, etc.) and\n * also adds SSR-specific information such as the statusCode and headers\n * from action/loaders Responses.\n *\n * It _should_ never throw and should report all errors through the\n * returned context.errors object, properly associating errors to their error\n * boundary. Additionally, it tracks _deepestRenderedBoundaryId which can be\n * used to emulate React error boundaries during SSr by performing a second\n * pass only down to the boundaryId.\n *\n * The one exception where we do not return a StaticHandlerContext is when a\n * redirect response is returned or thrown from any action/loader. We\n * propagate that out and return the raw Response so the HTTP server can\n * return it directly.\n */\n\n async function query(request, _temp2) {\n let {\n requestContext\n } = _temp2 === void 0 ? {} : _temp2;\n let url = new URL(request.url);\n let method = request.method.toLowerCase();\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename); // SSR supports HEAD requests while SPA doesn't\n\n if (!isValidMethod(method) && method !== \"head\") {\n let error = getInternalRouterError(405, {\n method\n });\n let {\n matches: methodNotAllowedMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: methodNotAllowedMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n } else if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: notFoundMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n\n let result = await queryImpl(request, location, matches, requestContext);\n\n if (isResponse(result)) {\n return result;\n } // When returning StaticHandlerContext, we patch back in the location here\n // since we need it for React Context. But this helps keep our submit and\n // loadRouteData operating on a Request instead of a Location\n\n\n return _extends({\n location,\n basename\n }, result);\n }\n /**\n * The queryRoute() method is intended for targeted route requests, either\n * for fetch ?_data requests or resource route requests. In this case, we\n * are only ever calling a single action or loader, and we are returning the\n * returned value directly. In most cases, this will be a Response returned\n * from the action/loader, but it may be a primitive or other value as well -\n * and in such cases the calling context should handle that accordingly.\n *\n * We do respect the throw/return differentiation, so if an action/loader\n * throws, then this method will throw the value. This is important so we\n * can do proper boundary identification in Remix where a thrown Response\n * must go to the Catch Boundary but a returned Response is happy-path.\n *\n * One thing to note is that any Router-initiated Errors that make sense\n * to associate with a status code will be thrown as an ErrorResponse\n * instance which include the raw Error, such that the calling context can\n * serialize the error as they see fit while including the proper response\n * code. Examples here are 404 and 405 errors that occur prior to reaching\n * any user-defined loaders.\n */\n\n\n async function queryRoute(request, _temp3) {\n let {\n routeId,\n requestContext\n } = _temp3 === void 0 ? {} : _temp3;\n let url = new URL(request.url);\n let method = request.method.toLowerCase();\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename); // SSR supports HEAD requests while SPA doesn't\n\n if (!isValidMethod(method) && method !== \"head\" && method !== \"options\") {\n throw getInternalRouterError(405, {\n method\n });\n } else if (!matches) {\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n\n let match = routeId ? matches.find(m => m.route.id === routeId) : getTargetMatch(matches, location);\n\n if (routeId && !match) {\n throw getInternalRouterError(403, {\n pathname: location.pathname,\n routeId\n });\n } else if (!match) {\n // This should never hit I don't think?\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n\n let result = await queryImpl(request, location, matches, requestContext, match);\n\n if (isResponse(result)) {\n return result;\n }\n\n let error = result.errors ? Object.values(result.errors)[0] : undefined;\n\n if (error !== undefined) {\n // If we got back result.errors, that means the loader/action threw\n // _something_ that wasn't a Response, but it's not guaranteed/required\n // to be an `instanceof Error` either, so we have to use throw here to\n // preserve the \"error\" state outside of queryImpl.\n throw error;\n } // Pick off the right state value to return\n\n\n if (result.actionData) {\n return Object.values(result.actionData)[0];\n }\n\n if (result.loaderData) {\n var _result$activeDeferre;\n\n let data = Object.values(result.loaderData)[0];\n\n if ((_result$activeDeferre = result.activeDeferreds) != null && _result$activeDeferre[match.route.id]) {\n data[UNSAFE_DEFERRED_SYMBOL] = result.activeDeferreds[match.route.id];\n }\n\n return data;\n }\n\n return undefined;\n }\n\n async function queryImpl(request, location, matches, requestContext, routeMatch) {\n invariant(request.signal, \"query()/queryRoute() requests must contain an AbortController signal\");\n\n try {\n if (isMutationMethod(request.method.toLowerCase())) {\n let result = await submit(request, matches, routeMatch || getTargetMatch(matches, location), requestContext, routeMatch != null);\n return result;\n }\n\n let result = await loadRouteData(request, matches, requestContext, routeMatch);\n return isResponse(result) ? result : _extends({}, result, {\n actionData: null,\n actionHeaders: {}\n });\n } catch (e) {\n // If the user threw/returned a Response in callLoaderOrAction, we throw\n // it to bail out and then return or throw here based on whether the user\n // returned or threw\n if (isQueryRouteResponse(e)) {\n if (e.type === ResultType.error && !isRedirectResponse(e.response)) {\n throw e.response;\n }\n\n return e.response;\n } // Redirects are always returned since they don't propagate to catch\n // boundaries\n\n\n if (isRedirectResponse(e)) {\n return e;\n }\n\n throw e;\n }\n }\n\n async function submit(request, matches, actionMatch, requestContext, isRouteRequest) {\n let result;\n\n if (!actionMatch.route.action) {\n let error = getInternalRouterError(405, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: actionMatch.route.id\n });\n\n if (isRouteRequest) {\n throw error;\n }\n\n result = {\n type: ResultType.error,\n error\n };\n } else {\n result = await callLoaderOrAction(\"action\", request, actionMatch, matches, basename, true, isRouteRequest, requestContext);\n\n if (request.signal.aborted) {\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted\");\n }\n }\n\n if (isRedirectResult(result)) {\n // Uhhhh - this should never happen, we should always throw these from\n // callLoaderOrAction, but the type narrowing here keeps TS happy and we\n // can get back on the \"throw all redirect responses\" train here should\n // this ever happen :/\n throw new Response(null, {\n status: result.status,\n headers: {\n Location: result.location\n }\n });\n }\n\n if (isDeferredResult(result)) {\n let error = getInternalRouterError(400, {\n type: \"defer-action\"\n });\n\n if (isRouteRequest) {\n throw error;\n }\n\n result = {\n type: ResultType.error,\n error\n };\n }\n\n if (isRouteRequest) {\n // Note: This should only be non-Response values if we get here, since\n // isRouteRequest should throw any Response received in callLoaderOrAction\n if (isErrorResult(result)) {\n throw result.error;\n }\n\n return {\n matches: [actionMatch],\n loaderData: {},\n actionData: {\n [actionMatch.route.id]: result.data\n },\n errors: null,\n // Note: statusCode + headers are unused here since queryRoute will\n // return the raw Response or value\n statusCode: 200,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n let context = await loadRouteData(request, matches, requestContext, undefined, {\n [boundaryMatch.route.id]: result.error\n }); // action status codes take precedence over loader status codes\n\n return _extends({}, context, {\n statusCode: isRouteErrorResponse(result.error) ? result.error.status : 500,\n actionData: null,\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n } // Create a GET request for the loaders\n\n\n let loaderRequest = new Request(request.url, {\n headers: request.headers,\n redirect: request.redirect,\n signal: request.signal\n });\n let context = await loadRouteData(loaderRequest, matches, requestContext);\n return _extends({}, context, result.statusCode ? {\n statusCode: result.statusCode\n } : {}, {\n actionData: {\n [actionMatch.route.id]: result.data\n },\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n }\n\n async function loadRouteData(request, matches, requestContext, routeMatch, pendingActionError) {\n let isRouteRequest = routeMatch != null; // Short circuit if we have no loaders to run (queryRoute())\n\n if (isRouteRequest && !(routeMatch != null && routeMatch.route.loader)) {\n throw getInternalRouterError(400, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: routeMatch == null ? void 0 : routeMatch.route.id\n });\n }\n\n let requestMatches = routeMatch ? [routeMatch] : getLoaderMatchesUntilBoundary(matches, Object.keys(pendingActionError || {})[0]);\n let matchesToLoad = requestMatches.filter(m => m.route.loader); // Short circuit if we have no loaders to run (query())\n\n if (matchesToLoad.length === 0) {\n return {\n matches,\n // Add a null for all matched routes for proper revalidation on the client\n loaderData: matches.reduce((acc, m) => Object.assign(acc, {\n [m.route.id]: null\n }), {}),\n errors: pendingActionError || null,\n statusCode: 200,\n loaderHeaders: {},\n activeDeferreds: null\n };\n }\n\n let results = await Promise.all([...matchesToLoad.map(match => callLoaderOrAction(\"loader\", request, match, matches, basename, true, isRouteRequest, requestContext))]);\n\n if (request.signal.aborted) {\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted\");\n } // Process and commit output from loaders\n\n\n let activeDeferreds = new Map();\n let context = processRouteLoaderData(matches, matchesToLoad, results, pendingActionError, activeDeferreds); // Add a null for any non-loader matches for proper revalidation on the client\n\n let executedLoaders = new Set(matchesToLoad.map(match => match.route.id));\n matches.forEach(match => {\n if (!executedLoaders.has(match.route.id)) {\n context.loaderData[match.route.id] = null;\n }\n });\n return _extends({}, context, {\n matches,\n activeDeferreds: activeDeferreds.size > 0 ? Object.fromEntries(activeDeferreds.entries()) : null\n });\n }\n\n return {\n dataRoutes,\n query,\n queryRoute\n };\n} //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Helpers\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Given an existing StaticHandlerContext and an error thrown at render time,\n * provide an updated StaticHandlerContext suitable for a second SSR render\n */\n\nfunction getStaticContextFromError(routes, context, error) {\n let newContext = _extends({}, context, {\n statusCode: 500,\n errors: {\n [context._deepestRenderedBoundaryId || routes[0].id]: error\n }\n });\n\n return newContext;\n}\n\nfunction isSubmissionNavigation(opts) {\n return opts != null && \"formData\" in opts;\n} // Normalize navigation options by converting formMethod=GET formData objects to\n// URLSearchParams so they behave identically to links with query params\n\n\nfunction normalizeNavigateOptions(to, opts, isFetcher) {\n if (isFetcher === void 0) {\n isFetcher = false;\n }\n\n let path = typeof to === \"string\" ? to : createPath(to); // Return location verbatim on non-submission navigations\n\n if (!opts || !isSubmissionNavigation(opts)) {\n return {\n path\n };\n }\n\n if (opts.formMethod && !isValidMethod(opts.formMethod)) {\n return {\n path,\n error: getInternalRouterError(405, {\n method: opts.formMethod\n })\n };\n } // Create a Submission on non-GET navigations\n\n\n let submission;\n\n if (opts.formData) {\n submission = {\n formMethod: opts.formMethod || \"get\",\n formAction: stripHashFromPath(path),\n formEncType: opts && opts.formEncType || \"application/x-www-form-urlencoded\",\n formData: opts.formData\n };\n\n if (isMutationMethod(submission.formMethod)) {\n return {\n path,\n submission\n };\n }\n } // Flatten submission onto URLSearchParams for GET submissions\n\n\n let parsedPath = parsePath(path);\n let searchParams = convertFormDataToSearchParams(opts.formData); // Since fetcher GET submissions only run a single loader (as opposed to\n // navigation GET submissions which run all loaders), we need to preserve\n // any incoming ?index params\n\n if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) {\n searchParams.append(\"index\", \"\");\n }\n\n parsedPath.search = \"?\" + searchParams;\n return {\n path: createPath(parsedPath),\n submission\n };\n} // Filter out all routes below any caught error as they aren't going to\n// render so we don't need to load them\n\n\nfunction getLoaderMatchesUntilBoundary(matches, boundaryId) {\n let boundaryMatches = matches;\n\n if (boundaryId) {\n let index = matches.findIndex(m => m.route.id === boundaryId);\n\n if (index >= 0) {\n boundaryMatches = matches.slice(0, index);\n }\n }\n\n return boundaryMatches;\n}\n\nfunction getMatchesToLoad(history, state, matches, submission, location, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, pendingActionData, pendingError, fetchLoadMatches) {\n let actionResult = pendingError ? Object.values(pendingError)[0] : pendingActionData ? Object.values(pendingActionData)[0] : undefined;\n let currentUrl = history.createURL(state.location);\n let nextUrl = history.createURL(location);\n let defaultShouldRevalidate = // Forced revalidation due to submission, useRevalidate, or X-Remix-Revalidate\n isRevalidationRequired || // Clicked the same link, resubmitted a GET form\n currentUrl.toString() === nextUrl.toString() || // Search params affect all loaders\n currentUrl.search !== nextUrl.search; // Pick navigation matches that are net-new or qualify for revalidation\n\n let boundaryId = pendingError ? Object.keys(pendingError)[0] : undefined;\n let boundaryMatches = getLoaderMatchesUntilBoundary(matches, boundaryId);\n let navigationMatches = boundaryMatches.filter((match, index) => {\n if (match.route.loader == null) {\n return false;\n } // Always call the loader on new route instances and pending defer cancellations\n\n\n if (isNewLoader(state.loaderData, state.matches[index], match) || cancelledDeferredRoutes.some(id => id === match.route.id)) {\n return true;\n } // This is the default implementation for when we revalidate. If the route\n // provides it's own implementation, then we give them full control but\n // provide this value so they can leverage it if needed after they check\n // their own specific use cases\n\n\n let currentRouteMatch = state.matches[index];\n let nextRouteMatch = match;\n return shouldRevalidateLoader(match, _extends({\n currentUrl,\n currentParams: currentRouteMatch.params,\n nextUrl,\n nextParams: nextRouteMatch.params\n }, submission, {\n actionResult,\n defaultShouldRevalidate: defaultShouldRevalidate || isNewRouteInstance(currentRouteMatch, nextRouteMatch)\n }));\n }); // Pick fetcher.loads that need to be revalidated\n\n let revalidatingFetchers = [];\n fetchLoadMatches && fetchLoadMatches.forEach((f, key) => {\n if (!matches.some(m => m.route.id === f.routeId)) {\n // This fetcher is not going to be present in the subsequent render so\n // there's no need to revalidate it\n return;\n } else if (cancelledFetcherLoads.includes(key)) {\n // This fetcher was cancelled from a prior action submission - force reload\n revalidatingFetchers.push(_extends({\n key\n }, f));\n } else {\n // Revalidating fetchers are decoupled from the route matches since they\n // hit a static href, so they _always_ check shouldRevalidate and the\n // default is strictly if a revalidation is explicitly required (action\n // submissions, useRevalidator, X-Remix-Revalidate).\n let shouldRevalidate = shouldRevalidateLoader(f.match, _extends({\n currentUrl,\n currentParams: state.matches[state.matches.length - 1].params,\n nextUrl,\n nextParams: matches[matches.length - 1].params\n }, submission, {\n actionResult,\n defaultShouldRevalidate\n }));\n\n if (shouldRevalidate) {\n revalidatingFetchers.push(_extends({\n key\n }, f));\n }\n }\n });\n return [navigationMatches, revalidatingFetchers];\n}\n\nfunction isNewLoader(currentLoaderData, currentMatch, match) {\n let isNew = // [a] -> [a, b]\n !currentMatch || // [a, b] -> [a, c]\n match.route.id !== currentMatch.route.id; // Handle the case that we don't have data for a re-used route, potentially\n // from a prior error or from a cancelled pending deferred\n\n let isMissingData = currentLoaderData[match.route.id] === undefined; // Always load if this is a net-new route or we don't yet have data\n\n return isNew || isMissingData;\n}\n\nfunction isNewRouteInstance(currentMatch, match) {\n let currentPath = currentMatch.route.path;\n return (// param change for this match, /users/123 -> /users/456\n currentMatch.pathname !== match.pathname || // splat param changed, which is not present in match.path\n // e.g. /files/images/avatar.jpg -> files/finances.xls\n currentPath != null && currentPath.endsWith(\"*\") && currentMatch.params[\"*\"] !== match.params[\"*\"]\n );\n}\n\nfunction shouldRevalidateLoader(loaderMatch, arg) {\n if (loaderMatch.route.shouldRevalidate) {\n let routeChoice = loaderMatch.route.shouldRevalidate(arg);\n\n if (typeof routeChoice === \"boolean\") {\n return routeChoice;\n }\n }\n\n return arg.defaultShouldRevalidate;\n}\n\nasync function callLoaderOrAction(type, request, match, matches, basename, isStaticRequest, isRouteRequest, requestContext) {\n if (basename === void 0) {\n basename = \"/\";\n }\n\n if (isStaticRequest === void 0) {\n isStaticRequest = false;\n }\n\n if (isRouteRequest === void 0) {\n isRouteRequest = false;\n }\n\n let resultType;\n let result; // Setup a promise we can race against so that abort signals short circuit\n\n let reject;\n let abortPromise = new Promise((_, r) => reject = r);\n\n let onReject = () => reject();\n\n request.signal.addEventListener(\"abort\", onReject);\n\n try {\n let handler = match.route[type];\n invariant(handler, \"Could not find the \" + type + \" to run on the \\\"\" + match.route.id + \"\\\" route\");\n result = await Promise.race([handler({\n request,\n params: match.params,\n context: requestContext\n }), abortPromise]);\n invariant(result !== undefined, \"You defined \" + (type === \"action\" ? \"an action\" : \"a loader\") + \" for route \" + (\"\\\"\" + match.route.id + \"\\\" but didn't return anything from your `\" + type + \"` \") + \"function. Please return a value or `null`.\");\n } catch (e) {\n resultType = ResultType.error;\n result = e;\n } finally {\n request.signal.removeEventListener(\"abort\", onReject);\n }\n\n if (isResponse(result)) {\n let status = result.status; // Process redirects\n\n if (redirectStatusCodes.has(status)) {\n let location = result.headers.get(\"Location\");\n invariant(location, \"Redirects returned/thrown from loaders/actions must have a Location header\"); // Support relative routing in internal redirects\n\n if (!ABSOLUTE_URL_REGEX.test(location)) {\n let activeMatches = matches.slice(0, matches.indexOf(match) + 1);\n let routePathnames = getPathContributingMatches(activeMatches).map(match => match.pathnameBase);\n let resolvedLocation = resolveTo(location, routePathnames, new URL(request.url).pathname);\n invariant(createPath(resolvedLocation), \"Unable to resolve redirect location: \" + location); // Prepend the basename to the redirect location if we have one\n\n if (basename) {\n let path = resolvedLocation.pathname;\n resolvedLocation.pathname = path === \"/\" ? basename : joinPaths([basename, path]);\n }\n\n location = createPath(resolvedLocation);\n } else if (!isStaticRequest) {\n // Strip off the protocol+origin for same-origin absolute redirects.\n // If this is a static reques, we can let it go back to the browser\n // as-is\n let currentUrl = new URL(request.url);\n let url = location.startsWith(\"//\") ? new URL(currentUrl.protocol + location) : new URL(location);\n\n if (url.origin === currentUrl.origin) {\n location = url.pathname + url.search + url.hash;\n }\n } // Don't process redirects in the router during static requests requests.\n // Instead, throw the Response and let the server handle it with an HTTP\n // redirect. We also update the Location header in place in this flow so\n // basename and relative routing is taken into account\n\n\n if (isStaticRequest) {\n result.headers.set(\"Location\", location);\n throw result;\n }\n\n return {\n type: ResultType.redirect,\n status,\n location,\n revalidate: result.headers.get(\"X-Remix-Revalidate\") !== null\n };\n } // For SSR single-route requests, we want to hand Responses back directly\n // without unwrapping. We do this with the QueryRouteResponse wrapper\n // interface so we can know whether it was returned or thrown\n\n\n if (isRouteRequest) {\n // eslint-disable-next-line no-throw-literal\n throw {\n type: resultType || ResultType.data,\n response: result\n };\n }\n\n let data;\n let contentType = result.headers.get(\"Content-Type\"); // Check between word boundaries instead of startsWith() due to the last\n // paragraph of https://httpwg.org/specs/rfc9110.html#field.content-type\n\n if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n data = await result.json();\n } else {\n data = await result.text();\n }\n\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: new ErrorResponse(status, result.statusText, data),\n headers: result.headers\n };\n }\n\n return {\n type: ResultType.data,\n data,\n statusCode: result.status,\n headers: result.headers\n };\n }\n\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: result\n };\n }\n\n if (result instanceof DeferredData) {\n return {\n type: ResultType.deferred,\n deferredData: result\n };\n }\n\n return {\n type: ResultType.data,\n data: result\n };\n} // Utility method for creating the Request instances for loaders/actions during\n// client-side navigations and fetches. During SSR we will always have a\n// Request instance from the static handler (query/queryRoute)\n\n\nfunction createClientSideRequest(history, location, signal, submission) {\n let url = history.createURL(stripHashFromPath(location)).toString();\n let init = {\n signal\n };\n\n if (submission && isMutationMethod(submission.formMethod)) {\n let {\n formMethod,\n formEncType,\n formData\n } = submission;\n init.method = formMethod.toUpperCase();\n init.body = formEncType === \"application/x-www-form-urlencoded\" ? convertFormDataToSearchParams(formData) : formData;\n } // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n\n\n return new Request(url, init);\n}\n\nfunction convertFormDataToSearchParams(formData) {\n let searchParams = new URLSearchParams();\n\n for (let [key, value] of formData.entries()) {\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs\n searchParams.append(key, value instanceof File ? value.name : value);\n }\n\n return searchParams;\n}\n\nfunction processRouteLoaderData(matches, matchesToLoad, results, pendingError, activeDeferreds) {\n // Fill in loaderData/errors from our loaders\n let loaderData = {};\n let errors = null;\n let statusCode;\n let foundError = false;\n let loaderHeaders = {}; // Process loader results into state.loaderData/state.errors\n\n results.forEach((result, index) => {\n let id = matchesToLoad[index].route.id;\n invariant(!isRedirectResult(result), \"Cannot handle redirect results in processLoaderData\");\n\n if (isErrorResult(result)) {\n // Look upwards from the matched route for the closest ancestor\n // error boundary, defaulting to the root match\n let boundaryMatch = findNearestBoundary(matches, id);\n let error = result.error; // If we have a pending action error, we report it at the highest-route\n // that throws a loader error, and then clear it out to indicate that\n // it was consumed\n\n if (pendingError) {\n error = Object.values(pendingError)[0];\n pendingError = undefined;\n }\n\n errors = errors || {}; // Prefer higher error values if lower errors bubble to the same boundary\n\n if (errors[boundaryMatch.route.id] == null) {\n errors[boundaryMatch.route.id] = error;\n } // Clear our any prior loaderData for the throwing route\n\n\n loaderData[id] = undefined; // Once we find our first (highest) error, we set the status code and\n // prevent deeper status codes from overriding\n\n if (!foundError) {\n foundError = true;\n statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500;\n }\n\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else {\n if (isDeferredResult(result)) {\n activeDeferreds.set(id, result.deferredData);\n loaderData[id] = result.deferredData.data;\n } else {\n loaderData[id] = result.data;\n } // Error status codes always override success status codes, but if all\n // loaders are successful we take the deepest status code.\n\n\n if (result.statusCode != null && result.statusCode !== 200 && !foundError) {\n statusCode = result.statusCode;\n }\n\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n }\n }); // If we didn't consume the pending action error (i.e., all loaders\n // resolved), then consume it here. Also clear out any loaderData for the\n // throwing route\n\n if (pendingError) {\n errors = pendingError;\n loaderData[Object.keys(pendingError)[0]] = undefined;\n }\n\n return {\n loaderData,\n errors,\n statusCode: statusCode || 200,\n loaderHeaders\n };\n}\n\nfunction processLoaderData(state, matches, matchesToLoad, results, pendingError, revalidatingFetchers, fetcherResults, activeDeferreds) {\n let {\n loaderData,\n errors\n } = processRouteLoaderData(matches, matchesToLoad, results, pendingError, activeDeferreds); // Process results from our revalidating fetchers\n\n for (let index = 0; index < revalidatingFetchers.length; index++) {\n let {\n key,\n match\n } = revalidatingFetchers[index];\n invariant(fetcherResults !== undefined && fetcherResults[index] !== undefined, \"Did not find corresponding fetcher result\");\n let result = fetcherResults[index]; // Process fetcher non-redirect errors\n\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, match.route.id);\n\n if (!(errors && errors[boundaryMatch.route.id])) {\n errors = _extends({}, errors, {\n [boundaryMatch.route.id]: result.error\n });\n }\n\n state.fetchers.delete(key);\n } else if (isRedirectResult(result)) {\n // Should never get here, redirects should get processed above, but we\n // keep this to type narrow to a success result in the else\n invariant(false, \"Unhandled fetcher revalidation redirect\");\n } else if (isDeferredResult(result)) {\n // Should never get here, deferred data should be awaited for fetchers\n // in resolveDeferredResults\n invariant(false, \"Unhandled fetcher deferred data\");\n } else {\n let doneFetcher = {\n state: \"idle\",\n data: result.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n }\n }\n\n return {\n loaderData,\n errors\n };\n}\n\nfunction mergeLoaderData(loaderData, newLoaderData, matches, errors) {\n let mergedLoaderData = _extends({}, newLoaderData);\n\n for (let match of matches) {\n let id = match.route.id;\n\n if (newLoaderData.hasOwnProperty(id)) {\n if (newLoaderData[id] !== undefined) {\n mergedLoaderData[id] = newLoaderData[id];\n }\n } else if (loaderData[id] !== undefined) {\n mergedLoaderData[id] = loaderData[id];\n }\n\n if (errors && errors.hasOwnProperty(id)) {\n // Don't keep any loader data below the boundary\n break;\n }\n }\n\n return mergedLoaderData;\n} // Find the nearest error boundary, looking upwards from the leaf route (or the\n// route specified by routeId) for the closest ancestor error boundary,\n// defaulting to the root match\n\n\nfunction findNearestBoundary(matches, routeId) {\n let eligibleMatches = routeId ? matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1) : [...matches];\n return eligibleMatches.reverse().find(m => m.route.hasErrorBoundary === true) || matches[0];\n}\n\nfunction getShortCircuitMatches(routes) {\n // Prefer a root layout route if present, otherwise shim in a route object\n let route = routes.find(r => r.index || !r.path || r.path === \"/\") || {\n id: \"__shim-error-route__\"\n };\n return {\n matches: [{\n params: {},\n pathname: \"\",\n pathnameBase: \"\",\n route\n }],\n route\n };\n}\n\nfunction getInternalRouterError(status, _temp4) {\n let {\n pathname,\n routeId,\n method,\n type\n } = _temp4 === void 0 ? {} : _temp4;\n let statusText = \"Unknown Server Error\";\n let errorMessage = \"Unknown @remix-run/router error\";\n\n if (status === 400) {\n statusText = \"Bad Request\";\n\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide a `loader` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (type === \"defer-action\") {\n errorMessage = \"defer() is not supported in actions\";\n }\n } else if (status === 403) {\n statusText = \"Forbidden\";\n errorMessage = \"Route \\\"\" + routeId + \"\\\" does not match URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 404) {\n statusText = \"Not Found\";\n errorMessage = \"No route matches URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 405) {\n statusText = \"Method Not Allowed\";\n\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method.toUpperCase() + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide an `action` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (method) {\n errorMessage = \"Invalid request method \\\"\" + method.toUpperCase() + \"\\\"\";\n }\n }\n\n return new ErrorResponse(status || 500, statusText, new Error(errorMessage), true);\n} // Find any returned redirect errors, starting from the lowest match\n\n\nfunction findRedirect(results) {\n for (let i = results.length - 1; i >= 0; i--) {\n let result = results[i];\n\n if (isRedirectResult(result)) {\n return result;\n }\n }\n}\n\nfunction stripHashFromPath(path) {\n let parsedPath = typeof path === \"string\" ? parsePath(path) : path;\n return createPath(_extends({}, parsedPath, {\n hash: \"\"\n }));\n}\n\nfunction isHashChangeOnly(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash !== b.hash;\n}\n\nfunction isDeferredResult(result) {\n return result.type === ResultType.deferred;\n}\n\nfunction isErrorResult(result) {\n return result.type === ResultType.error;\n}\n\nfunction isRedirectResult(result) {\n return (result && result.type) === ResultType.redirect;\n}\n\nfunction isResponse(value) {\n return value != null && typeof value.status === \"number\" && typeof value.statusText === \"string\" && typeof value.headers === \"object\" && typeof value.body !== \"undefined\";\n}\n\nfunction isRedirectResponse(result) {\n if (!isResponse(result)) {\n return false;\n }\n\n let status = result.status;\n let location = result.headers.get(\"Location\");\n return status >= 300 && status <= 399 && location != null;\n}\n\nfunction isQueryRouteResponse(obj) {\n return obj && isResponse(obj.response) && (obj.type === ResultType.data || ResultType.error);\n}\n\nfunction isValidMethod(method) {\n return validRequestMethods.has(method);\n}\n\nfunction isMutationMethod(method) {\n return validMutationMethods.has(method);\n}\n\nasync function resolveDeferredResults(currentMatches, matchesToLoad, results, signal, isFetcher, currentLoaderData) {\n for (let index = 0; index < results.length; index++) {\n let result = results[index];\n let match = matchesToLoad[index];\n let currentMatch = currentMatches.find(m => m.route.id === match.route.id);\n let isRevalidatingLoader = currentMatch != null && !isNewRouteInstance(currentMatch, match) && (currentLoaderData && currentLoaderData[match.route.id]) !== undefined;\n\n if (isDeferredResult(result) && (isFetcher || isRevalidatingLoader)) {\n // Note: we do not have to touch activeDeferreds here since we race them\n // against the signal in resolveDeferredData and they'll get aborted\n // there if needed\n await resolveDeferredData(result, signal, isFetcher).then(result => {\n if (result) {\n results[index] = result || results[index];\n }\n });\n }\n }\n}\n\nasync function resolveDeferredData(result, signal, unwrap) {\n if (unwrap === void 0) {\n unwrap = false;\n }\n\n let aborted = await result.deferredData.resolveData(signal);\n\n if (aborted) {\n return;\n }\n\n if (unwrap) {\n try {\n return {\n type: ResultType.data,\n data: result.deferredData.unwrappedData\n };\n } catch (e) {\n // Handle any TrackedPromise._error values encountered while unwrapping\n return {\n type: ResultType.error,\n error: e\n };\n }\n }\n\n return {\n type: ResultType.data,\n data: result.deferredData.data\n };\n}\n\nfunction hasNakedIndexQuery(search) {\n return new URLSearchParams(search).getAll(\"index\").some(v => v === \"\");\n} // Note: This should match the format exported by useMatches, so if you change\n// this please also change that :) Eventually we'll DRY this up\n\n\nfunction createUseMatchesMatch(match, loaderData) {\n let {\n route,\n pathname,\n params\n } = match;\n return {\n id: route.id,\n pathname,\n params,\n data: loaderData[route.id],\n handle: route.handle\n };\n}\n\nfunction getTargetMatch(matches, location) {\n let search = typeof location === \"string\" ? parsePath(location).search : location.search;\n\n if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || \"\")) {\n // Return the leaf index route when index is present\n return matches[matches.length - 1];\n } // Otherwise grab the deepest \"path contributing\" match (ignoring index and\n // pathless layout routes)\n\n\n let pathMatches = getPathContributingMatches(matches);\n return pathMatches[pathMatches.length - 1];\n} //#endregion\n\nexport { AbortedDeferredError, Action, ErrorResponse, IDLE_BLOCKER, IDLE_FETCHER, IDLE_NAVIGATION, UNSAFE_DEFERRED_SYMBOL, DeferredData as UNSAFE_DeferredData, convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes, getPathContributingMatches as UNSAFE_getPathContributingMatches, createBrowserHistory, createHashHistory, createMemoryHistory, createPath, createRouter, createStaticHandler, defer, generatePath, getStaticContextFromError, getToPathname, invariant, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, parsePath, redirect, resolvePath, resolveTo, stripBasename, warning };\n//# sourceMappingURL=router.js.map\n","/**\n * React Router v6.8.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { invariant, joinPaths, matchPath, UNSAFE_getPathContributingMatches, warning, resolveTo, parsePath, matchRoutes, Action, isRouteErrorResponse, createMemoryHistory, stripBasename, AbortedDeferredError, createRouter } from '@remix-run/router';\nexport { AbortedDeferredError, Action as NavigationType, createPath, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, resolvePath } from '@remix-run/router';\nimport * as React from 'react';\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n\nfunction isPolyfill(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n ;\n}\n\nconst is = typeof Object.is === \"function\" ? Object.is : isPolyfill; // Intentionally not using named imports because Rollup uses dynamic\n// dispatch for CommonJS interop named imports.\n\nconst {\n useState,\n useEffect,\n useLayoutEffect,\n useDebugValue\n} = React;\nlet didWarnOld18Alpha = false;\nlet didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works\n// because of a very particular set of implementation details and assumptions\n// -- change any one of them and it will break. The most important assumption\n// is that updates are always synchronous, because concurrent rendering is\n// only available in versions of React that also have a built-in\n// useSyncExternalStore API. And we only use this shim when the built-in API\n// does not exist.\n//\n// Do not assume that the clever hacks used by this hook also work in general.\n// The point of this shim is to replace the need for hacks by other libraries.\n\nfunction useSyncExternalStore$2(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of\n// React do not expose a way to check if we're hydrating. So users of the shim\n// will need to track that themselves and return the correct value\n// from `getSnapshot`.\ngetServerSnapshot) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnOld18Alpha) {\n if (\"startTransition\" in React) {\n didWarnOld18Alpha = true;\n console.error(\"You are using an outdated, pre-release alpha of React 18 that \" + \"does not support useSyncExternalStore. The \" + \"use-sync-external-store shim will not work correctly. Upgrade \" + \"to a newer pre-release.\");\n }\n }\n } // Read the current snapshot from the store on every render. Again, this\n // breaks the rules of React, and only works here because of specific\n // implementation details, most importantly that updates are\n // always synchronous.\n\n\n const value = getSnapshot();\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnUncachedGetSnapshot) {\n const cachedValue = getSnapshot();\n\n if (!is(value, cachedValue)) {\n console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\");\n didWarnUncachedGetSnapshot = true;\n }\n }\n } // Because updates are synchronous, we don't queue them. Instead we force a\n // re-render whenever the subscribed state changes by updating an some\n // arbitrary useState hook. Then, during render, we call getSnapshot to read\n // the current value.\n //\n // Because we don't actually use the state returned by the useState hook, we\n // can save a bit of memory by storing other stuff in that slot.\n //\n // To implement the early bailout, we need to track some things on a mutable\n // object. Usually, we would put that in a useRef hook, but we can stash it in\n // our useState hook instead.\n //\n // To force a re-render, we call forceUpdate({inst}). That works because the\n // new object always fails an equality check.\n\n\n const [{\n inst\n }, forceUpdate] = useState({\n inst: {\n value,\n getSnapshot\n }\n }); // Track the latest getSnapshot function with a ref. This needs to be updated\n // in the layout phase so we can access it during the tearing check that\n // happens on subscribe.\n\n useLayoutEffect(() => {\n inst.value = value;\n inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the\n // commit phase if there was an interleaved mutation. In concurrent mode\n // this can happen all the time, but even in synchronous mode, an earlier\n // effect may have mutated the store.\n\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, [subscribe, value, getSnapshot]);\n useEffect(() => {\n // Check for changes right before subscribing. Subsequent changes will be\n // detected in the subscription handler.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n }\n\n const handleStoreChange = () => {\n // TODO: Because there is no cross-renderer API for batching updates, it's\n // up to the consumer of this library to wrap their subscription event\n // with unstable_batchedUpdates. Should we try to detect when this isn't\n // the case and print a warning in development?\n // The store changed. Check if the snapshot changed since the last time we\n // read from the store.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n }\n }; // Subscribe to the store and return a clean-up function.\n\n\n return subscribe(handleStoreChange); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [subscribe]);\n useDebugValue(value);\n return value;\n}\n\nfunction checkIfSnapshotChanged(inst) {\n const latestGetSnapshot = inst.getSnapshot;\n const prevValue = inst.value;\n\n try {\n const nextValue = latestGetSnapshot();\n return !is(prevValue, nextValue);\n } catch (error) {\n return true;\n }\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n */\nfunction useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {\n // Note: The shim does not use getServerSnapshot, because pre-18 versions of\n // React do not expose a way to check if we're hydrating. So users of the shim\n // will need to track that themselves and return the correct value\n // from `getSnapshot`.\n return getSnapshot();\n}\n\n/**\n * Inlined into the react-router repo since use-sync-external-store does not\n * provide a UMD-compatible package, so we need this to be able to distribute\n * UMD react-router bundles\n */\nconst canUseDOM = !!(typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\");\nconst isServerEnvironment = !canUseDOM;\nconst shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore$2;\nconst useSyncExternalStore = \"useSyncExternalStore\" in React ? (module => module.useSyncExternalStore)(React) : shim;\n\nconst DataRouterContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterContext.displayName = \"DataRouter\";\n}\n\nconst DataRouterStateContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterStateContext.displayName = \"DataRouterState\";\n}\n\nconst AwaitContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n AwaitContext.displayName = \"Await\";\n}\n\nconst NavigationContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n NavigationContext.displayName = \"Navigation\";\n}\n\nconst LocationContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n LocationContext.displayName = \"Location\";\n}\n\nconst RouteContext = /*#__PURE__*/React.createContext({\n outlet: null,\n matches: []\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n RouteContext.displayName = \"Route\";\n}\n\nconst RouteErrorContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n RouteErrorContext.displayName = \"RouteError\";\n}\n\n/**\n * Returns the full href for the given \"to\" value. This is useful for building\n * custom links that are also accessible and preserve right-click behavior.\n *\n * @see https://reactrouter.com/hooks/use-href\n */\n\nfunction useHref(to, _temp) {\n let {\n relative\n } = _temp === void 0 ? {} : _temp;\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useHref() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n hash,\n pathname,\n search\n } = useResolvedPath(to, {\n relative\n });\n let joinedPathname = pathname; // If we're operating within a basename, prepend it to the pathname prior\n // to creating the href. If this is a root navigation, then just use the raw\n // basename which allows the basename to have full control over the presence\n // of a trailing slash on root links\n\n if (basename !== \"/\") {\n joinedPathname = pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n }\n\n return navigator.createHref({\n pathname: joinedPathname,\n search,\n hash\n });\n}\n/**\n * Returns true if this component is a descendant of a .\n *\n * @see https://reactrouter.com/hooks/use-in-router-context\n */\n\nfunction useInRouterContext() {\n return React.useContext(LocationContext) != null;\n}\n/**\n * Returns the current location object, which represents the current URL in web\n * browsers.\n *\n * Note: If you're using this it may mean you're doing some of your own\n * \"routing\" in your app, and we'd like to know what your use case is. We may\n * be able to provide something higher-level to better suit your needs.\n *\n * @see https://reactrouter.com/hooks/use-location\n */\n\nfunction useLocation() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useLocation() may be used only in the context of a component.\") : invariant(false) : void 0;\n return React.useContext(LocationContext).location;\n}\n/**\n * Returns the current navigation action which describes how the router came to\n * the current location, either by a pop, push, or replace on the history stack.\n *\n * @see https://reactrouter.com/hooks/use-navigation-type\n */\n\nfunction useNavigationType() {\n return React.useContext(LocationContext).navigationType;\n}\n/**\n * Returns a PathMatch object if the given pattern matches the current URL.\n * This is useful for components that need to know \"active\" state, e.g.\n * .\n *\n * @see https://reactrouter.com/hooks/use-match\n */\n\nfunction useMatch(pattern) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useMatch() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n pathname\n } = useLocation();\n return React.useMemo(() => matchPath(pattern, pathname), [pathname, pattern]);\n}\n/**\n * The interface for the navigate() function returned from useNavigate().\n */\n\n/**\n * Returns an imperative method for changing the location. Used by s, but\n * may also be used by other elements to change the location.\n *\n * @see https://reactrouter.com/hooks/use-navigate\n */\nfunction useNavigate() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useNavigate() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getPathContributingMatches(matches).map(match => match.pathnameBase));\n let activeRef = React.useRef(false);\n React.useEffect(() => {\n activeRef.current = true;\n });\n let navigate = React.useCallback(function (to, options) {\n if (options === void 0) {\n options = {};\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(activeRef.current, \"You should call navigate() in a React.useEffect(), not when \" + \"your component is first rendered.\") : void 0;\n if (!activeRef.current) return;\n\n if (typeof to === \"number\") {\n navigator.go(to);\n return;\n }\n\n let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === \"path\"); // If we're operating within a basename, prepend it to the pathname prior\n // to handing off to history. If this is a root navigation, then we\n // navigate to the raw basename which allows the basename to have full\n // control over the presence of a trailing slash on root links\n\n if (basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n\n (!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);\n }, [basename, navigator, routePathnamesJson, locationPathname]);\n return navigate;\n}\nconst OutletContext = /*#__PURE__*/React.createContext(null);\n/**\n * Returns the context (if provided) for the child route at this level of the route\n * hierarchy.\n * @see https://reactrouter.com/hooks/use-outlet-context\n */\n\nfunction useOutletContext() {\n return React.useContext(OutletContext);\n}\n/**\n * Returns the element for the child route at this level of the route\n * hierarchy. Used internally by to render child routes.\n *\n * @see https://reactrouter.com/hooks/use-outlet\n */\n\nfunction useOutlet(context) {\n let outlet = React.useContext(RouteContext).outlet;\n\n if (outlet) {\n return /*#__PURE__*/React.createElement(OutletContext.Provider, {\n value: context\n }, outlet);\n }\n\n return outlet;\n}\n/**\n * Returns an object of key/value pairs of the dynamic params from the current\n * URL that were matched by the route path.\n *\n * @see https://reactrouter.com/hooks/use-params\n */\n\nfunction useParams() {\n let {\n matches\n } = React.useContext(RouteContext);\n let routeMatch = matches[matches.length - 1];\n return routeMatch ? routeMatch.params : {};\n}\n/**\n * Resolves the pathname of the given `to` value against the current location.\n *\n * @see https://reactrouter.com/hooks/use-resolved-path\n */\n\nfunction useResolvedPath(to, _temp2) {\n let {\n relative\n } = _temp2 === void 0 ? {} : _temp2;\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getPathContributingMatches(matches).map(match => match.pathnameBase));\n return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === \"path\"), [to, routePathnamesJson, locationPathname, relative]);\n}\n/**\n * Returns the element of the route that matched the current location, prepared\n * with the correct context to render the remainder of the route tree. Route\n * elements in the tree must render an to render their child route's\n * element.\n *\n * @see https://reactrouter.com/hooks/use-routes\n */\n\nfunction useRoutes(routes, locationArg) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useRoutes() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n navigator\n } = React.useContext(NavigationContext);\n let dataRouterStateContext = React.useContext(DataRouterStateContext);\n let {\n matches: parentMatches\n } = React.useContext(RouteContext);\n let routeMatch = parentMatches[parentMatches.length - 1];\n let parentParams = routeMatch ? routeMatch.params : {};\n let parentPathname = routeMatch ? routeMatch.pathname : \"/\";\n let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : \"/\";\n let parentRoute = routeMatch && routeMatch.route;\n\n if (process.env.NODE_ENV !== \"production\") {\n // You won't get a warning about 2 different under a \n // without a trailing *, but this is a best-effort warning anyway since we\n // cannot even give the warning unless they land at the parent route.\n //\n // Example:\n //\n // \n // {/* This route path MUST end with /* because otherwise\n // it will never match /blog/post/123 */}\n // } />\n // } />\n // \n //\n // function Blog() {\n // return (\n // \n // } />\n // \n // );\n // }\n let parentPath = parentRoute && parentRoute.path || \"\";\n warningOnce(parentPathname, !parentRoute || parentPath.endsWith(\"*\"), \"You rendered descendant (or called `useRoutes()`) at \" + (\"\\\"\" + parentPathname + \"\\\" (under ) but the \") + \"parent route path has no trailing \\\"*\\\". This means if you navigate \" + \"deeper, the parent won't match anymore and therefore the child \" + \"routes will never render.\\n\\n\" + (\"Please change the parent to .\"));\n }\n\n let locationFromContext = useLocation();\n let location;\n\n if (locationArg) {\n var _parsedLocationArg$pa;\n\n let parsedLocationArg = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n !(parentPathnameBase === \"/\" || ((_parsedLocationArg$pa = parsedLocationArg.pathname) == null ? void 0 : _parsedLocationArg$pa.startsWith(parentPathnameBase))) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"When overriding the location using `` or `useRoutes(routes, location)`, \" + \"the location pathname must begin with the portion of the URL pathname that was \" + (\"matched by all parent routes. The current pathname base is \\\"\" + parentPathnameBase + \"\\\" \") + (\"but pathname \\\"\" + parsedLocationArg.pathname + \"\\\" was given in the `location` prop.\")) : invariant(false) : void 0;\n location = parsedLocationArg;\n } else {\n location = locationFromContext;\n }\n\n let pathname = location.pathname || \"/\";\n let remainingPathname = parentPathnameBase === \"/\" ? pathname : pathname.slice(parentPathnameBase.length) || \"/\";\n let matches = matchRoutes(routes, {\n pathname: remainingPathname\n });\n\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(parentRoute || matches != null, \"No routes matched location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \") : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(matches == null || matches[matches.length - 1].route.element !== undefined, \"Matched leaf route at location \\\"\" + location.pathname + location.search + location.hash + \"\\\" does not have an element. \" + \"This means it will render an with a null value by default resulting in an \\\"empty\\\" page.\") : void 0;\n }\n\n let renderedMatches = _renderMatches(matches && matches.map(match => Object.assign({}, match, {\n params: Object.assign({}, parentParams, match.params),\n pathname: joinPaths([parentPathnameBase, // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathname).pathname : match.pathname]),\n pathnameBase: match.pathnameBase === \"/\" ? parentPathnameBase : joinPaths([parentPathnameBase, // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathnameBase).pathname : match.pathnameBase])\n })), parentMatches, dataRouterStateContext || undefined); // When a user passes in a `locationArg`, the associated routes need to\n // be wrapped in a new `LocationContext.Provider` in order for `useLocation`\n // to use the scoped location instead of the global location.\n\n\n if (locationArg && renderedMatches) {\n return /*#__PURE__*/React.createElement(LocationContext.Provider, {\n value: {\n location: _extends({\n pathname: \"/\",\n search: \"\",\n hash: \"\",\n state: null,\n key: \"default\"\n }, location),\n navigationType: Action.Pop\n }\n }, renderedMatches);\n }\n\n return renderedMatches;\n}\n\nfunction DefaultErrorElement() {\n let error = useRouteError();\n let message = isRouteErrorResponse(error) ? error.status + \" \" + error.statusText : error instanceof Error ? error.message : JSON.stringify(error);\n let stack = error instanceof Error ? error.stack : null;\n let lightgrey = \"rgba(200,200,200, 0.5)\";\n let preStyles = {\n padding: \"0.5rem\",\n backgroundColor: lightgrey\n };\n let codeStyles = {\n padding: \"2px 4px\",\n backgroundColor: lightgrey\n };\n let devInfo = null;\n\n if (process.env.NODE_ENV !== \"production\") {\n devInfo = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", null, \"\\uD83D\\uDCBF Hey developer \\uD83D\\uDC4B\"), /*#__PURE__*/React.createElement(\"p\", null, \"You can provide a way better UX than this when your app throws errors by providing your own\\xA0\", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"errorElement\"), \" props on\\xA0\", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"\")));\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"h2\", null, \"Unexpected Application Error!\"), /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n fontStyle: \"italic\"\n }\n }, message), stack ? /*#__PURE__*/React.createElement(\"pre\", {\n style: preStyles\n }, stack) : null, devInfo);\n}\n\nclass RenderErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n location: props.location,\n error: props.error\n };\n }\n\n static getDerivedStateFromError(error) {\n return {\n error: error\n };\n }\n\n static getDerivedStateFromProps(props, state) {\n // When we get into an error state, the user will likely click \"back\" to the\n // previous page that didn't have an error. Because this wraps the entire\n // application, that will have no effect--the error page continues to display.\n // This gives us a mechanism to recover from the error when the location changes.\n //\n // Whether we're in an error state or not, we update the location in state\n // so that when we are in an error state, it gets reset when a new location\n // comes in and the user recovers from the error.\n if (state.location !== props.location) {\n return {\n error: props.error,\n location: props.location\n };\n } // If we're not changing locations, preserve the location but still surface\n // any new errors that may come through. We retain the existing error, we do\n // this because the error provided from the app state may be cleared without\n // the location changing.\n\n\n return {\n error: props.error || state.error,\n location: state.location\n };\n }\n\n componentDidCatch(error, errorInfo) {\n console.error(\"React Router caught the following error during render\", error, errorInfo);\n }\n\n render() {\n return this.state.error ? /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: this.props.routeContext\n }, /*#__PURE__*/React.createElement(RouteErrorContext.Provider, {\n value: this.state.error,\n children: this.props.component\n })) : this.props.children;\n }\n\n}\n\nfunction RenderedRoute(_ref) {\n let {\n routeContext,\n match,\n children\n } = _ref;\n let dataRouterContext = React.useContext(DataRouterContext); // Track how deep we got in our render pass to emulate SSR componentDidCatch\n // in a DataStaticRouter\n\n if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && match.route.errorElement) {\n dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id;\n }\n\n return /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: routeContext\n }, children);\n}\n\nfunction _renderMatches(matches, parentMatches, dataRouterState) {\n if (parentMatches === void 0) {\n parentMatches = [];\n }\n\n if (matches == null) {\n if (dataRouterState != null && dataRouterState.errors) {\n // Don't bail if we have data router errors so we can render them in the\n // boundary. Use the pre-matched (or shimmed) matches\n matches = dataRouterState.matches;\n } else {\n return null;\n }\n }\n\n let renderedMatches = matches; // If we have data errors, trim matches to the highest error boundary\n\n let errors = dataRouterState == null ? void 0 : dataRouterState.errors;\n\n if (errors != null) {\n let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]));\n !(errorIndex >= 0) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Could not find a matching route for the current errors: \" + errors) : invariant(false) : void 0;\n renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1));\n }\n\n return renderedMatches.reduceRight((outlet, match, index) => {\n let error = match.route.id ? errors == null ? void 0 : errors[match.route.id] : null; // Only data routers handle errors\n\n let errorElement = dataRouterState ? match.route.errorElement || /*#__PURE__*/React.createElement(DefaultErrorElement, null) : null;\n let matches = parentMatches.concat(renderedMatches.slice(0, index + 1));\n\n let getChildren = () => /*#__PURE__*/React.createElement(RenderedRoute, {\n match: match,\n routeContext: {\n outlet,\n matches\n }\n }, error ? errorElement : match.route.element !== undefined ? match.route.element : outlet); // Only wrap in an error boundary within data router usages when we have an\n // errorElement on this route. Otherwise let it bubble up to an ancestor\n // errorElement\n\n\n return dataRouterState && (match.route.errorElement || index === 0) ? /*#__PURE__*/React.createElement(RenderErrorBoundary, {\n location: dataRouterState.location,\n component: errorElement,\n error: error,\n children: getChildren(),\n routeContext: {\n outlet: null,\n matches\n }\n }) : getChildren();\n }, null);\n}\nvar DataRouterHook;\n\n(function (DataRouterHook) {\n DataRouterHook[\"UseBlocker\"] = \"useBlocker\";\n DataRouterHook[\"UseRevalidator\"] = \"useRevalidator\";\n})(DataRouterHook || (DataRouterHook = {}));\n\nvar DataRouterStateHook;\n\n(function (DataRouterStateHook) {\n DataRouterStateHook[\"UseLoaderData\"] = \"useLoaderData\";\n DataRouterStateHook[\"UseActionData\"] = \"useActionData\";\n DataRouterStateHook[\"UseRouteError\"] = \"useRouteError\";\n DataRouterStateHook[\"UseNavigation\"] = \"useNavigation\";\n DataRouterStateHook[\"UseRouteLoaderData\"] = \"useRouteLoaderData\";\n DataRouterStateHook[\"UseMatches\"] = \"useMatches\";\n DataRouterStateHook[\"UseRevalidator\"] = \"useRevalidator\";\n})(DataRouterStateHook || (DataRouterStateHook = {}));\n\nfunction getDataRouterConsoleError(hookName) {\n return hookName + \" must be used within a data router. See https://reactrouter.com/routers/picking-a-router.\";\n}\n\nfunction useDataRouterContext(hookName) {\n let ctx = React.useContext(DataRouterContext);\n !ctx ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return ctx;\n}\n\nfunction useDataRouterState(hookName) {\n let state = React.useContext(DataRouterStateContext);\n !state ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return state;\n}\n\nfunction useRouteContext(hookName) {\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return route;\n}\n\nfunction useCurrentRouteId(hookName) {\n let route = useRouteContext(hookName);\n let thisRoute = route.matches[route.matches.length - 1];\n !thisRoute.route.id ? process.env.NODE_ENV !== \"production\" ? invariant(false, hookName + \" can only be used on routes that contain a unique \\\"id\\\"\") : invariant(false) : void 0;\n return thisRoute.route.id;\n}\n/**\n * Returns the current navigation, defaulting to an \"idle\" navigation when\n * no navigation is in progress\n */\n\n\nfunction useNavigation() {\n let state = useDataRouterState(DataRouterStateHook.UseNavigation);\n return state.navigation;\n}\n/**\n * Returns a revalidate function for manually triggering revalidation, as well\n * as the current state of any manual revalidations\n */\n\nfunction useRevalidator() {\n let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator);\n let state = useDataRouterState(DataRouterStateHook.UseRevalidator);\n return {\n revalidate: dataRouterContext.router.revalidate,\n state: state.revalidation\n };\n}\n/**\n * Returns the active route matches, useful for accessing loaderData for\n * parent/child routes or the route \"handle\" property\n */\n\nfunction useMatches() {\n let {\n matches,\n loaderData\n } = useDataRouterState(DataRouterStateHook.UseMatches);\n return React.useMemo(() => matches.map(match => {\n let {\n pathname,\n params\n } = match; // Note: This structure matches that created by createUseMatchesMatch\n // in the @remix-run/router , so if you change this please also change\n // that :) Eventually we'll DRY this up\n\n return {\n id: match.route.id,\n pathname,\n params,\n data: loaderData[match.route.id],\n handle: match.route.handle\n };\n }), [matches, loaderData]);\n}\n/**\n * Returns the loader data for the nearest ancestor Route loader\n */\n\nfunction useLoaderData() {\n let state = useDataRouterState(DataRouterStateHook.UseLoaderData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n\n if (state.errors && state.errors[routeId] != null) {\n console.error(\"You cannot `useLoaderData` in an errorElement (routeId: \" + routeId + \")\");\n return undefined;\n }\n\n return state.loaderData[routeId];\n}\n/**\n * Returns the loaderData for the given routeId\n */\n\nfunction useRouteLoaderData(routeId) {\n let state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData);\n return state.loaderData[routeId];\n}\n/**\n * Returns the action data for the nearest ancestor Route action\n */\n\nfunction useActionData() {\n let state = useDataRouterState(DataRouterStateHook.UseActionData);\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"useActionData must be used inside a RouteContext\") : invariant(false) : void 0;\n return Object.values((state == null ? void 0 : state.actionData) || {})[0];\n}\n/**\n * Returns the nearest ancestor Route error, which could be a loader/action\n * error or a render error. This is intended to be called from your\n * errorElement to display a proper error message.\n */\n\nfunction useRouteError() {\n var _state$errors;\n\n let error = React.useContext(RouteErrorContext);\n let state = useDataRouterState(DataRouterStateHook.UseRouteError);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError); // If this was a render error, we put it in a RouteError context inside\n // of RenderErrorBoundary\n\n if (error) {\n return error;\n } // Otherwise look for errors from our data router state\n\n\n return (_state$errors = state.errors) == null ? void 0 : _state$errors[routeId];\n}\n/**\n * Returns the happy-path data from the nearest ancestor value\n */\n\nfunction useAsyncValue() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._data;\n}\n/**\n * Returns the error from the nearest ancestor value\n */\n\nfunction useAsyncError() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._error;\n}\nlet blockerId = 0;\n/**\n * Allow the application to block navigations within the SPA and present the\n * user a confirmation dialog to confirm the navigation. Mostly used to avoid\n * using half-filled form data. This does not handle hard-reloads or\n * cross-origin navigations.\n */\n\nfunction useBlocker(shouldBlock) {\n let {\n router\n } = useDataRouterContext(DataRouterHook.UseBlocker);\n let [blockerKey] = React.useState(() => String(++blockerId));\n let blockerFunction = React.useCallback(args => {\n return typeof shouldBlock === \"function\" ? !!shouldBlock(args) : !!shouldBlock;\n }, [shouldBlock]);\n let blocker = router.getBlocker(blockerKey, blockerFunction); // Cleanup on unmount\n\n React.useEffect(() => () => router.deleteBlocker(blockerKey), [router, blockerKey]);\n return blocker;\n}\nconst alreadyWarned = {};\n\nfunction warningOnce(key, cond, message) {\n if (!cond && !alreadyWarned[key]) {\n alreadyWarned[key] = true;\n process.env.NODE_ENV !== \"production\" ? warning(false, message) : void 0;\n }\n}\n\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nfunction RouterProvider(_ref) {\n let {\n fallbackElement,\n router\n } = _ref;\n // Sync router state to our component state to force re-renders\n let state = useSyncExternalStore(router.subscribe, () => router.state, // We have to provide this so React@18 doesn't complain during hydration,\n // but we pass our serialized hydration data into the router so state here\n // is already synced with what the server saw\n () => router.state);\n let navigator = React.useMemo(() => {\n return {\n createHref: router.createHref,\n encodeLocation: router.encodeLocation,\n go: n => router.navigate(n),\n push: (to, state, opts) => router.navigate(to, {\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n }),\n replace: (to, state, opts) => router.navigate(to, {\n replace: true,\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n })\n };\n }, [router]);\n let basename = router.basename || \"/\"; // The fragment and {null} here are important! We need them to keep React 18's\n // useId happy when we are server-rendering since we may have a \n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `
` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {HastNodes | null | undefined}\n * hast tree.\n */\n// To do: next major: always return a single `root`.\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, null)\n const foot = footer(state)\n\n if (foot) {\n // @ts-expect-error If there’s a footer, there were definitions, meaning block\n // content.\n // So assume `node` is a parent node.\n node.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n // To do: next major: always return root?\n return Array.isArray(node) ? {type: 'root', children: node} : node\n}\n","/**\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('mdast-util-to-hast').Options} Options\n * @typedef {import('unified').Processor} Processor\n *\n * @typedef {import('mdast-util-to-hast')} DoNotTouchAsThisImportIncludesRawInTree\n */\n\nimport {toHast} from 'mdast-util-to-hast'\n\n// Note: the `` overload doesn’t seem to work :'(\n\n/**\n * Plugin that turns markdown into HTML to support rehype.\n *\n * * If a destination processor is given, that processor runs with a new HTML\n * (hast) tree (bridge-mode).\n * As the given processor runs with a hast tree, and rehype plugins support\n * hast, that means rehype plugins can be used with the given processor.\n * The hast tree is discarded in the end.\n * It’s highly unlikely that you want to do this.\n * * The common case is to not pass a destination processor, in which case the\n * current processor continues running with a new HTML (hast) tree\n * (mutate-mode).\n * As the current processor continues with a hast tree, and rehype plugins\n * support hast, that means rehype plugins can be used after\n * `remark-rehype`.\n * It’s likely that this is what you want to do.\n *\n * @param destination\n * Optional unified processor.\n * @param options\n * Options passed to `mdast-util-to-hast`.\n */\nconst remarkRehype =\n /** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */\n (\n function (destination, options) {\n return destination && 'run' in destination\n ? bridge(destination, options)\n : mutate(destination || options)\n }\n )\n\nexport default remarkRehype\n\n/**\n * Bridge-mode.\n * Runs the destination with the new hast tree.\n *\n * @type {import('unified').Plugin<[Processor, Options?], MdastRoot>}\n */\nfunction bridge(destination, options) {\n return (node, file, next) => {\n destination.run(toHast(node, options), file, (error) => {\n next(error)\n })\n }\n}\n\n/**\n * Mutate-mode.\n * Further plugins run on the hast tree.\n *\n * @type {import('unified').Plugin<[Options?]|void[], MdastRoot, HastRoot>}\n */\nfunction mutate(options) {\n // @ts-expect-error: assume a corresponding node is returned by `toHast`.\n return (node) => toHast(node, options)\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * @typedef {import('./info.js').Info} Info\n * @typedef {Record} Properties\n * @typedef {Record} Normal\n */\n\nexport class Schema {\n /**\n * @constructor\n * @param {Properties} property\n * @param {Normal} normal\n * @param {string} [space]\n */\n constructor(property, normal, space) {\n this.property = property\n this.normal = normal\n if (space) {\n this.space = space\n }\n }\n}\n\n/** @type {Properties} */\nSchema.prototype.property = {}\n/** @type {Normal} */\nSchema.prototype.normal = {}\n/** @type {string|null} */\nSchema.prototype.space = null\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n */\n\nimport {Schema} from './schema.js'\n\n/**\n * @param {Schema[]} definitions\n * @param {string} [space]\n * @returns {Schema}\n */\nexport function merge(definitions, space) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n let index = -1\n\n while (++index < definitions.length) {\n Object.assign(property, definitions[index].property)\n Object.assign(normal, definitions[index].normal)\n }\n\n return new Schema(property, normal, space)\n}\n","/**\n * @param {string} value\n * @returns {string}\n */\nexport function normalize(value) {\n return value.toLowerCase()\n}\n","export class Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n */\n constructor(property, attribute) {\n /** @type {string} */\n this.property = property\n /** @type {string} */\n this.attribute = attribute\n }\n}\n\n/** @type {string|null} */\nInfo.prototype.space = null\nInfo.prototype.boolean = false\nInfo.prototype.booleanish = false\nInfo.prototype.overloadedBoolean = false\nInfo.prototype.number = false\nInfo.prototype.commaSeparated = false\nInfo.prototype.spaceSeparated = false\nInfo.prototype.commaOrSpaceSeparated = false\nInfo.prototype.mustUseProperty = false\nInfo.prototype.defined = false\n","let powers = 0\n\nexport const boolean = increment()\nexport const booleanish = increment()\nexport const overloadedBoolean = increment()\nexport const number = increment()\nexport const spaceSeparated = increment()\nexport const commaSeparated = increment()\nexport const commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return 2 ** ++powers\n}\n","import {Info} from './info.js'\nimport * as types from './types.js'\n\n/** @type {Array} */\n// @ts-expect-error: hush.\nconst checks = Object.keys(types)\n\nexport class DefinedInfo extends Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n * @param {number|null} [mask]\n * @param {string} [space]\n */\n constructor(property, attribute, mask, space) {\n let index = -1\n\n super(property, attribute)\n\n mark(this, 'space', space)\n\n if (typeof mask === 'number') {\n while (++index < checks.length) {\n const check = checks[index]\n mark(this, checks[index], (mask & types[check]) === types[check])\n }\n }\n }\n}\n\nDefinedInfo.prototype.defined = true\n\n/**\n * @param {DefinedInfo} values\n * @param {string} key\n * @param {unknown} value\n */\nfunction mark(values, key, value) {\n if (value) {\n // @ts-expect-error: assume `value` matches the expected value of `key`.\n values[key] = value\n }\n}\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n *\n * @typedef {Record} Attributes\n *\n * @typedef {Object} Definition\n * @property {Record} properties\n * @property {(attributes: Attributes, property: string) => string} transform\n * @property {string} [space]\n * @property {Attributes} [attributes]\n * @property {Array} [mustUseProperty]\n */\n\nimport {normalize} from '../normalize.js'\nimport {Schema} from './schema.js'\nimport {DefinedInfo} from './defined-info.js'\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Definition} definition\n * @returns {Schema}\n */\nexport function create(definition) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n /** @type {string} */\n let prop\n\n for (prop in definition.properties) {\n if (own.call(definition.properties, prop)) {\n const value = definition.properties[prop]\n const info = new DefinedInfo(\n prop,\n definition.transform(definition.attributes || {}, prop),\n value,\n definition.space\n )\n\n if (\n definition.mustUseProperty &&\n definition.mustUseProperty.includes(prop)\n ) {\n info.mustUseProperty = true\n }\n\n property[prop] = info\n\n normal[normalize(prop)] = prop\n normal[normalize(info.attribute)] = prop\n }\n }\n\n return new Schema(property, normal, definition.space)\n}\n","import {create} from './util/create.js'\n\nexport const xlink = create({\n space: 'xlink',\n transform(_, prop) {\n return 'xlink:' + prop.slice(5).toLowerCase()\n },\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n }\n})\n","import {create} from './util/create.js'\n\nexport const xml = create({\n space: 'xml',\n transform(_, prop) {\n return 'xml:' + prop.slice(3).toLowerCase()\n },\n properties: {xmlLang: null, xmlBase: null, xmlSpace: null}\n})\n","/**\n * @param {Record} attributes\n * @param {string} attribute\n * @returns {string}\n */\nexport function caseSensitiveTransform(attributes, attribute) {\n return attribute in attributes ? attributes[attribute] : attribute\n}\n","import {caseSensitiveTransform} from './case-sensitive-transform.js'\n\n/**\n * @param {Record} attributes\n * @param {string} property\n * @returns {string}\n */\nexport function caseInsensitiveTransform(attributes, property) {\n return caseSensitiveTransform(attributes, property.toLowerCase())\n}\n","import {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const xmlns = create({\n space: 'xmlns',\n attributes: {xmlnsxlink: 'xmlns:xlink'},\n transform: caseInsensitiveTransform,\n properties: {xmlns: null, xmlnsXLink: null}\n})\n","import {booleanish, number, spaceSeparated} from './util/types.js'\nimport {create} from './util/create.js'\n\nexport const aria = create({\n transform(_, prop) {\n return prop === 'role' ? prop : 'aria-' + prop.slice(4).toLowerCase()\n },\n properties: {\n ariaActiveDescendant: null,\n ariaAtomic: booleanish,\n ariaAutoComplete: null,\n ariaBusy: booleanish,\n ariaChecked: booleanish,\n ariaColCount: number,\n ariaColIndex: number,\n ariaColSpan: number,\n ariaControls: spaceSeparated,\n ariaCurrent: null,\n ariaDescribedBy: spaceSeparated,\n ariaDetails: null,\n ariaDisabled: booleanish,\n ariaDropEffect: spaceSeparated,\n ariaErrorMessage: null,\n ariaExpanded: booleanish,\n ariaFlowTo: spaceSeparated,\n ariaGrabbed: booleanish,\n ariaHasPopup: null,\n ariaHidden: booleanish,\n ariaInvalid: null,\n ariaKeyShortcuts: null,\n ariaLabel: null,\n ariaLabelledBy: spaceSeparated,\n ariaLevel: number,\n ariaLive: null,\n ariaModal: booleanish,\n ariaMultiLine: booleanish,\n ariaMultiSelectable: booleanish,\n ariaOrientation: null,\n ariaOwns: spaceSeparated,\n ariaPlaceholder: null,\n ariaPosInSet: number,\n ariaPressed: booleanish,\n ariaReadOnly: booleanish,\n ariaRelevant: null,\n ariaRequired: booleanish,\n ariaRoleDescription: spaceSeparated,\n ariaRowCount: number,\n ariaRowIndex: number,\n ariaRowSpan: number,\n ariaSelected: booleanish,\n ariaSetSize: number,\n ariaSort: null,\n ariaValueMax: number,\n ariaValueMin: number,\n ariaValueNow: number,\n ariaValueText: null,\n role: null\n }\n})\n","import {\n boolean,\n overloadedBoolean,\n booleanish,\n number,\n spaceSeparated,\n commaSeparated\n} from './util/types.js'\nimport {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const html = create({\n space: 'html',\n attributes: {\n acceptcharset: 'accept-charset',\n classname: 'class',\n htmlfor: 'for',\n httpequiv: 'http-equiv'\n },\n transform: caseInsensitiveTransform,\n mustUseProperty: ['checked', 'multiple', 'muted', 'selected'],\n properties: {\n // Standard Properties.\n abbr: null,\n accept: commaSeparated,\n acceptCharset: spaceSeparated,\n accessKey: spaceSeparated,\n action: null,\n allow: null,\n allowFullScreen: boolean,\n allowPaymentRequest: boolean,\n allowUserMedia: boolean,\n alt: null,\n as: null,\n async: boolean,\n autoCapitalize: null,\n autoComplete: spaceSeparated,\n autoFocus: boolean,\n autoPlay: boolean,\n capture: boolean,\n charSet: null,\n checked: boolean,\n cite: null,\n className: spaceSeparated,\n cols: number,\n colSpan: null,\n content: null,\n contentEditable: booleanish,\n controls: boolean,\n controlsList: spaceSeparated,\n coords: number | commaSeparated,\n crossOrigin: null,\n data: null,\n dateTime: null,\n decoding: null,\n default: boolean,\n defer: boolean,\n dir: null,\n dirName: null,\n disabled: boolean,\n download: overloadedBoolean,\n draggable: booleanish,\n encType: null,\n enterKeyHint: null,\n form: null,\n formAction: null,\n formEncType: null,\n formMethod: null,\n formNoValidate: boolean,\n formTarget: null,\n headers: spaceSeparated,\n height: number,\n hidden: boolean,\n high: number,\n href: null,\n hrefLang: null,\n htmlFor: spaceSeparated,\n httpEquiv: spaceSeparated,\n id: null,\n imageSizes: null,\n imageSrcSet: null,\n inputMode: null,\n integrity: null,\n is: null,\n isMap: boolean,\n itemId: null,\n itemProp: spaceSeparated,\n itemRef: spaceSeparated,\n itemScope: boolean,\n itemType: spaceSeparated,\n kind: null,\n label: null,\n lang: null,\n language: null,\n list: null,\n loading: null,\n loop: boolean,\n low: number,\n manifest: null,\n max: null,\n maxLength: number,\n media: null,\n method: null,\n min: null,\n minLength: number,\n multiple: boolean,\n muted: boolean,\n name: null,\n nonce: null,\n noModule: boolean,\n noValidate: boolean,\n onAbort: null,\n onAfterPrint: null,\n onAuxClick: null,\n onBeforeMatch: null,\n onBeforePrint: null,\n onBeforeUnload: null,\n onBlur: null,\n onCancel: null,\n onCanPlay: null,\n onCanPlayThrough: null,\n onChange: null,\n onClick: null,\n onClose: null,\n onContextLost: null,\n onContextMenu: null,\n onContextRestored: null,\n onCopy: null,\n onCueChange: null,\n onCut: null,\n onDblClick: null,\n onDrag: null,\n onDragEnd: null,\n onDragEnter: null,\n onDragExit: null,\n onDragLeave: null,\n onDragOver: null,\n onDragStart: null,\n onDrop: null,\n onDurationChange: null,\n onEmptied: null,\n onEnded: null,\n onError: null,\n onFocus: null,\n onFormData: null,\n onHashChange: null,\n onInput: null,\n onInvalid: null,\n onKeyDown: null,\n onKeyPress: null,\n onKeyUp: null,\n onLanguageChange: null,\n onLoad: null,\n onLoadedData: null,\n onLoadedMetadata: null,\n onLoadEnd: null,\n onLoadStart: null,\n onMessage: null,\n onMessageError: null,\n onMouseDown: null,\n onMouseEnter: null,\n onMouseLeave: null,\n onMouseMove: null,\n onMouseOut: null,\n onMouseOver: null,\n onMouseUp: null,\n onOffline: null,\n onOnline: null,\n onPageHide: null,\n onPageShow: null,\n onPaste: null,\n onPause: null,\n onPlay: null,\n onPlaying: null,\n onPopState: null,\n onProgress: null,\n onRateChange: null,\n onRejectionHandled: null,\n onReset: null,\n onResize: null,\n onScroll: null,\n onScrollEnd: null,\n onSecurityPolicyViolation: null,\n onSeeked: null,\n onSeeking: null,\n onSelect: null,\n onSlotChange: null,\n onStalled: null,\n onStorage: null,\n onSubmit: null,\n onSuspend: null,\n onTimeUpdate: null,\n onToggle: null,\n onUnhandledRejection: null,\n onUnload: null,\n onVolumeChange: null,\n onWaiting: null,\n onWheel: null,\n open: boolean,\n optimum: number,\n pattern: null,\n ping: spaceSeparated,\n placeholder: null,\n playsInline: boolean,\n poster: null,\n preload: null,\n readOnly: boolean,\n referrerPolicy: null,\n rel: spaceSeparated,\n required: boolean,\n reversed: boolean,\n rows: number,\n rowSpan: number,\n sandbox: spaceSeparated,\n scope: null,\n scoped: boolean,\n seamless: boolean,\n selected: boolean,\n shape: null,\n size: number,\n sizes: null,\n slot: null,\n span: number,\n spellCheck: booleanish,\n src: null,\n srcDoc: null,\n srcLang: null,\n srcSet: null,\n start: number,\n step: null,\n style: null,\n tabIndex: number,\n target: null,\n title: null,\n translate: null,\n type: null,\n typeMustMatch: boolean,\n useMap: null,\n value: booleanish,\n width: number,\n wrap: null,\n\n // Legacy.\n // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis\n align: null, // Several. Use CSS `text-align` instead,\n aLink: null, // ``. Use CSS `a:active {color}` instead\n archive: spaceSeparated, // ``. List of URIs to archives\n axis: null, // `` and ``. Use `scope` on ``\n background: null, // ``. Use CSS `background-image` instead\n bgColor: null, // `` and table elements. Use CSS `background-color` instead\n border: number, // ``. Use CSS `border-width` instead,\n borderColor: null, // `
`. Use CSS `border-color` instead,\n bottomMargin: number, // ``\n cellPadding: null, // `
`\n cellSpacing: null, // `
`\n char: null, // Several table elements. When `align=char`, sets the character to align on\n charOff: null, // Several table elements. When `char`, offsets the alignment\n classId: null, // ``\n clear: null, // `
`. Use CSS `clear` instead\n code: null, // ``\n codeBase: null, // ``\n codeType: null, // ``\n color: null, // `` and `
`. Use CSS instead\n compact: boolean, // Lists. Use CSS to reduce space between items instead\n declare: boolean, // ``\n event: null, // `\n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `
` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {HastNodes | null | undefined}\n * hast tree.\n */\n// To do: next major: always return a single `root`.\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, null)\n const foot = footer(state)\n\n if (foot) {\n // @ts-expect-error If there’s a footer, there were definitions, meaning block\n // content.\n // So assume `node` is a parent node.\n node.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n // To do: next major: always return root?\n return Array.isArray(node) ? {type: 'root', children: node} : node\n}\n","/**\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('mdast-util-to-hast').Options} Options\n * @typedef {import('unified').Processor} Processor\n *\n * @typedef {import('mdast-util-to-hast')} DoNotTouchAsThisImportIncludesRawInTree\n */\n\nimport {toHast} from 'mdast-util-to-hast'\n\n// Note: the `` overload doesn’t seem to work :'(\n\n/**\n * Plugin that turns markdown into HTML to support rehype.\n *\n * * If a destination processor is given, that processor runs with a new HTML\n * (hast) tree (bridge-mode).\n * As the given processor runs with a hast tree, and rehype plugins support\n * hast, that means rehype plugins can be used with the given processor.\n * The hast tree is discarded in the end.\n * It’s highly unlikely that you want to do this.\n * * The common case is to not pass a destination processor, in which case the\n * current processor continues running with a new HTML (hast) tree\n * (mutate-mode).\n * As the current processor continues with a hast tree, and rehype plugins\n * support hast, that means rehype plugins can be used after\n * `remark-rehype`.\n * It’s likely that this is what you want to do.\n *\n * @param destination\n * Optional unified processor.\n * @param options\n * Options passed to `mdast-util-to-hast`.\n */\nconst remarkRehype =\n /** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */\n (\n function (destination, options) {\n return destination && 'run' in destination\n ? bridge(destination, options)\n : mutate(destination || options)\n }\n )\n\nexport default remarkRehype\n\n/**\n * Bridge-mode.\n * Runs the destination with the new hast tree.\n *\n * @type {import('unified').Plugin<[Processor, Options?], MdastRoot>}\n */\nfunction bridge(destination, options) {\n return (node, file, next) => {\n destination.run(toHast(node, options), file, (error) => {\n next(error)\n })\n }\n}\n\n/**\n * Mutate-mode.\n * Further plugins run on the hast tree.\n *\n * @type {import('unified').Plugin<[Options?]|void[], MdastRoot, HastRoot>}\n */\nfunction mutate(options) {\n // @ts-expect-error: assume a corresponding node is returned by `toHast`.\n return (node) => toHast(node, options)\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * @typedef {import('./info.js').Info} Info\n * @typedef {Record} Properties\n * @typedef {Record} Normal\n */\n\nexport class Schema {\n /**\n * @constructor\n * @param {Properties} property\n * @param {Normal} normal\n * @param {string} [space]\n */\n constructor(property, normal, space) {\n this.property = property\n this.normal = normal\n if (space) {\n this.space = space\n }\n }\n}\n\n/** @type {Properties} */\nSchema.prototype.property = {}\n/** @type {Normal} */\nSchema.prototype.normal = {}\n/** @type {string|null} */\nSchema.prototype.space = null\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n */\n\nimport {Schema} from './schema.js'\n\n/**\n * @param {Schema[]} definitions\n * @param {string} [space]\n * @returns {Schema}\n */\nexport function merge(definitions, space) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n let index = -1\n\n while (++index < definitions.length) {\n Object.assign(property, definitions[index].property)\n Object.assign(normal, definitions[index].normal)\n }\n\n return new Schema(property, normal, space)\n}\n","/**\n * @param {string} value\n * @returns {string}\n */\nexport function normalize(value) {\n return value.toLowerCase()\n}\n","export class Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n */\n constructor(property, attribute) {\n /** @type {string} */\n this.property = property\n /** @type {string} */\n this.attribute = attribute\n }\n}\n\n/** @type {string|null} */\nInfo.prototype.space = null\nInfo.prototype.boolean = false\nInfo.prototype.booleanish = false\nInfo.prototype.overloadedBoolean = false\nInfo.prototype.number = false\nInfo.prototype.commaSeparated = false\nInfo.prototype.spaceSeparated = false\nInfo.prototype.commaOrSpaceSeparated = false\nInfo.prototype.mustUseProperty = false\nInfo.prototype.defined = false\n","let powers = 0\n\nexport const boolean = increment()\nexport const booleanish = increment()\nexport const overloadedBoolean = increment()\nexport const number = increment()\nexport const spaceSeparated = increment()\nexport const commaSeparated = increment()\nexport const commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return 2 ** ++powers\n}\n","import {Info} from './info.js'\nimport * as types from './types.js'\n\n/** @type {Array} */\n// @ts-expect-error: hush.\nconst checks = Object.keys(types)\n\nexport class DefinedInfo extends Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n * @param {number|null} [mask]\n * @param {string} [space]\n */\n constructor(property, attribute, mask, space) {\n let index = -1\n\n super(property, attribute)\n\n mark(this, 'space', space)\n\n if (typeof mask === 'number') {\n while (++index < checks.length) {\n const check = checks[index]\n mark(this, checks[index], (mask & types[check]) === types[check])\n }\n }\n }\n}\n\nDefinedInfo.prototype.defined = true\n\n/**\n * @param {DefinedInfo} values\n * @param {string} key\n * @param {unknown} value\n */\nfunction mark(values, key, value) {\n if (value) {\n // @ts-expect-error: assume `value` matches the expected value of `key`.\n values[key] = value\n }\n}\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n *\n * @typedef {Record} Attributes\n *\n * @typedef {Object} Definition\n * @property {Record} properties\n * @property {(attributes: Attributes, property: string) => string} transform\n * @property {string} [space]\n * @property {Attributes} [attributes]\n * @property {Array} [mustUseProperty]\n */\n\nimport {normalize} from '../normalize.js'\nimport {Schema} from './schema.js'\nimport {DefinedInfo} from './defined-info.js'\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Definition} definition\n * @returns {Schema}\n */\nexport function create(definition) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n /** @type {string} */\n let prop\n\n for (prop in definition.properties) {\n if (own.call(definition.properties, prop)) {\n const value = definition.properties[prop]\n const info = new DefinedInfo(\n prop,\n definition.transform(definition.attributes || {}, prop),\n value,\n definition.space\n )\n\n if (\n definition.mustUseProperty &&\n definition.mustUseProperty.includes(prop)\n ) {\n info.mustUseProperty = true\n }\n\n property[prop] = info\n\n normal[normalize(prop)] = prop\n normal[normalize(info.attribute)] = prop\n }\n }\n\n return new Schema(property, normal, definition.space)\n}\n","import {create} from './util/create.js'\n\nexport const xlink = create({\n space: 'xlink',\n transform(_, prop) {\n return 'xlink:' + prop.slice(5).toLowerCase()\n },\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n }\n})\n","import {create} from './util/create.js'\n\nexport const xml = create({\n space: 'xml',\n transform(_, prop) {\n return 'xml:' + prop.slice(3).toLowerCase()\n },\n properties: {xmlLang: null, xmlBase: null, xmlSpace: null}\n})\n","/**\n * @param {Record} attributes\n * @param {string} attribute\n * @returns {string}\n */\nexport function caseSensitiveTransform(attributes, attribute) {\n return attribute in attributes ? attributes[attribute] : attribute\n}\n","import {caseSensitiveTransform} from './case-sensitive-transform.js'\n\n/**\n * @param {Record} attributes\n * @param {string} property\n * @returns {string}\n */\nexport function caseInsensitiveTransform(attributes, property) {\n return caseSensitiveTransform(attributes, property.toLowerCase())\n}\n","import {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const xmlns = create({\n space: 'xmlns',\n attributes: {xmlnsxlink: 'xmlns:xlink'},\n transform: caseInsensitiveTransform,\n properties: {xmlns: null, xmlnsXLink: null}\n})\n","import {booleanish, number, spaceSeparated} from './util/types.js'\nimport {create} from './util/create.js'\n\nexport const aria = create({\n transform(_, prop) {\n return prop === 'role' ? prop : 'aria-' + prop.slice(4).toLowerCase()\n },\n properties: {\n ariaActiveDescendant: null,\n ariaAtomic: booleanish,\n ariaAutoComplete: null,\n ariaBusy: booleanish,\n ariaChecked: booleanish,\n ariaColCount: number,\n ariaColIndex: number,\n ariaColSpan: number,\n ariaControls: spaceSeparated,\n ariaCurrent: null,\n ariaDescribedBy: spaceSeparated,\n ariaDetails: null,\n ariaDisabled: booleanish,\n ariaDropEffect: spaceSeparated,\n ariaErrorMessage: null,\n ariaExpanded: booleanish,\n ariaFlowTo: spaceSeparated,\n ariaGrabbed: booleanish,\n ariaHasPopup: null,\n ariaHidden: booleanish,\n ariaInvalid: null,\n ariaKeyShortcuts: null,\n ariaLabel: null,\n ariaLabelledBy: spaceSeparated,\n ariaLevel: number,\n ariaLive: null,\n ariaModal: booleanish,\n ariaMultiLine: booleanish,\n ariaMultiSelectable: booleanish,\n ariaOrientation: null,\n ariaOwns: spaceSeparated,\n ariaPlaceholder: null,\n ariaPosInSet: number,\n ariaPressed: booleanish,\n ariaReadOnly: booleanish,\n ariaRelevant: null,\n ariaRequired: booleanish,\n ariaRoleDescription: spaceSeparated,\n ariaRowCount: number,\n ariaRowIndex: number,\n ariaRowSpan: number,\n ariaSelected: booleanish,\n ariaSetSize: number,\n ariaSort: null,\n ariaValueMax: number,\n ariaValueMin: number,\n ariaValueNow: number,\n ariaValueText: null,\n role: null\n }\n})\n","import {\n boolean,\n overloadedBoolean,\n booleanish,\n number,\n spaceSeparated,\n commaSeparated\n} from './util/types.js'\nimport {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const html = create({\n space: 'html',\n attributes: {\n acceptcharset: 'accept-charset',\n classname: 'class',\n htmlfor: 'for',\n httpequiv: 'http-equiv'\n },\n transform: caseInsensitiveTransform,\n mustUseProperty: ['checked', 'multiple', 'muted', 'selected'],\n properties: {\n // Standard Properties.\n abbr: null,\n accept: commaSeparated,\n acceptCharset: spaceSeparated,\n accessKey: spaceSeparated,\n action: null,\n allow: null,\n allowFullScreen: boolean,\n allowPaymentRequest: boolean,\n allowUserMedia: boolean,\n alt: null,\n as: null,\n async: boolean,\n autoCapitalize: null,\n autoComplete: spaceSeparated,\n autoFocus: boolean,\n autoPlay: boolean,\n capture: boolean,\n charSet: null,\n checked: boolean,\n cite: null,\n className: spaceSeparated,\n cols: number,\n colSpan: null,\n content: null,\n contentEditable: booleanish,\n controls: boolean,\n controlsList: spaceSeparated,\n coords: number | commaSeparated,\n crossOrigin: null,\n data: null,\n dateTime: null,\n decoding: null,\n default: boolean,\n defer: boolean,\n dir: null,\n dirName: null,\n disabled: boolean,\n download: overloadedBoolean,\n draggable: booleanish,\n encType: null,\n enterKeyHint: null,\n form: null,\n formAction: null,\n formEncType: null,\n formMethod: null,\n formNoValidate: boolean,\n formTarget: null,\n headers: spaceSeparated,\n height: number,\n hidden: boolean,\n high: number,\n href: null,\n hrefLang: null,\n htmlFor: spaceSeparated,\n httpEquiv: spaceSeparated,\n id: null,\n imageSizes: null,\n imageSrcSet: null,\n inputMode: null,\n integrity: null,\n is: null,\n isMap: boolean,\n itemId: null,\n itemProp: spaceSeparated,\n itemRef: spaceSeparated,\n itemScope: boolean,\n itemType: spaceSeparated,\n kind: null,\n label: null,\n lang: null,\n language: null,\n list: null,\n loading: null,\n loop: boolean,\n low: number,\n manifest: null,\n max: null,\n maxLength: number,\n media: null,\n method: null,\n min: null,\n minLength: number,\n multiple: boolean,\n muted: boolean,\n name: null,\n nonce: null,\n noModule: boolean,\n noValidate: boolean,\n onAbort: null,\n onAfterPrint: null,\n onAuxClick: null,\n onBeforeMatch: null,\n onBeforePrint: null,\n onBeforeUnload: null,\n onBlur: null,\n onCancel: null,\n onCanPlay: null,\n onCanPlayThrough: null,\n onChange: null,\n onClick: null,\n onClose: null,\n onContextLost: null,\n onContextMenu: null,\n onContextRestored: null,\n onCopy: null,\n onCueChange: null,\n onCut: null,\n onDblClick: null,\n onDrag: null,\n onDragEnd: null,\n onDragEnter: null,\n onDragExit: null,\n onDragLeave: null,\n onDragOver: null,\n onDragStart: null,\n onDrop: null,\n onDurationChange: null,\n onEmptied: null,\n onEnded: null,\n onError: null,\n onFocus: null,\n onFormData: null,\n onHashChange: null,\n onInput: null,\n onInvalid: null,\n onKeyDown: null,\n onKeyPress: null,\n onKeyUp: null,\n onLanguageChange: null,\n onLoad: null,\n onLoadedData: null,\n onLoadedMetadata: null,\n onLoadEnd: null,\n onLoadStart: null,\n onMessage: null,\n onMessageError: null,\n onMouseDown: null,\n onMouseEnter: null,\n onMouseLeave: null,\n onMouseMove: null,\n onMouseOut: null,\n onMouseOver: null,\n onMouseUp: null,\n onOffline: null,\n onOnline: null,\n onPageHide: null,\n onPageShow: null,\n onPaste: null,\n onPause: null,\n onPlay: null,\n onPlaying: null,\n onPopState: null,\n onProgress: null,\n onRateChange: null,\n onRejectionHandled: null,\n onReset: null,\n onResize: null,\n onScroll: null,\n onScrollEnd: null,\n onSecurityPolicyViolation: null,\n onSeeked: null,\n onSeeking: null,\n onSelect: null,\n onSlotChange: null,\n onStalled: null,\n onStorage: null,\n onSubmit: null,\n onSuspend: null,\n onTimeUpdate: null,\n onToggle: null,\n onUnhandledRejection: null,\n onUnload: null,\n onVolumeChange: null,\n onWaiting: null,\n onWheel: null,\n open: boolean,\n optimum: number,\n pattern: null,\n ping: spaceSeparated,\n placeholder: null,\n playsInline: boolean,\n poster: null,\n preload: null,\n readOnly: boolean,\n referrerPolicy: null,\n rel: spaceSeparated,\n required: boolean,\n reversed: boolean,\n rows: number,\n rowSpan: number,\n sandbox: spaceSeparated,\n scope: null,\n scoped: boolean,\n seamless: boolean,\n selected: boolean,\n shape: null,\n size: number,\n sizes: null,\n slot: null,\n span: number,\n spellCheck: booleanish,\n src: null,\n srcDoc: null,\n srcLang: null,\n srcSet: null,\n start: number,\n step: null,\n style: null,\n tabIndex: number,\n target: null,\n title: null,\n translate: null,\n type: null,\n typeMustMatch: boolean,\n useMap: null,\n value: booleanish,\n width: number,\n wrap: null,\n\n // Legacy.\n // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis\n align: null, // Several. Use CSS `text-align` instead,\n aLink: null, // ``. Use CSS `a:active {color}` instead\n archive: spaceSeparated, // ``. List of URIs to archives\n axis: null, // `
` and ``. Use `scope` on ``\n background: null, // ``. Use CSS `background-image` instead\n bgColor: null, // `` and table elements. Use CSS `background-color` instead\n border: number, // ``. Use CSS `border-width` instead,\n borderColor: null, // `
`. Use CSS `border-color` instead,\n bottomMargin: number, // ``\n cellPadding: null, // `
`\n cellSpacing: null, // `
`\n char: null, // Several table elements. When `align=char`, sets the character to align on\n charOff: null, // Several table elements. When `char`, offsets the alignment\n classId: null, // ``\n clear: null, // `
`. Use CSS `clear` instead\n code: null, // ``\n codeBase: null, // ``\n codeType: null, // ``\n color: null, // `` and `
`. Use CSS instead\n compact: boolean, // Lists. Use CSS to reduce space between items instead\n declare: boolean, // ``\n event: null, // `\n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `
` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {HastNodes | null | undefined}\n * hast tree.\n */\n// To do: next major: always return a single `root`.\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, null)\n const foot = footer(state)\n\n if (foot) {\n // @ts-expect-error If there’s a footer, there were definitions, meaning block\n // content.\n // So assume `node` is a parent node.\n node.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n // To do: next major: always return root?\n return Array.isArray(node) ? {type: 'root', children: node} : node\n}\n","/**\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('mdast-util-to-hast').Options} Options\n * @typedef {import('unified').Processor} Processor\n *\n * @typedef {import('mdast-util-to-hast')} DoNotTouchAsThisImportIncludesRawInTree\n */\n\nimport {toHast} from 'mdast-util-to-hast'\n\n// Note: the `` overload doesn’t seem to work :'(\n\n/**\n * Plugin that turns markdown into HTML to support rehype.\n *\n * * If a destination processor is given, that processor runs with a new HTML\n * (hast) tree (bridge-mode).\n * As the given processor runs with a hast tree, and rehype plugins support\n * hast, that means rehype plugins can be used with the given processor.\n * The hast tree is discarded in the end.\n * It’s highly unlikely that you want to do this.\n * * The common case is to not pass a destination processor, in which case the\n * current processor continues running with a new HTML (hast) tree\n * (mutate-mode).\n * As the current processor continues with a hast tree, and rehype plugins\n * support hast, that means rehype plugins can be used after\n * `remark-rehype`.\n * It’s likely that this is what you want to do.\n *\n * @param destination\n * Optional unified processor.\n * @param options\n * Options passed to `mdast-util-to-hast`.\n */\nconst remarkRehype =\n /** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */\n (\n function (destination, options) {\n return destination && 'run' in destination\n ? bridge(destination, options)\n : mutate(destination || options)\n }\n )\n\nexport default remarkRehype\n\n/**\n * Bridge-mode.\n * Runs the destination with the new hast tree.\n *\n * @type {import('unified').Plugin<[Processor, Options?], MdastRoot>}\n */\nfunction bridge(destination, options) {\n return (node, file, next) => {\n destination.run(toHast(node, options), file, (error) => {\n next(error)\n })\n }\n}\n\n/**\n * Mutate-mode.\n * Further plugins run on the hast tree.\n *\n * @type {import('unified').Plugin<[Options?]|void[], MdastRoot, HastRoot>}\n */\nfunction mutate(options) {\n // @ts-expect-error: assume a corresponding node is returned by `toHast`.\n return (node) => toHast(node, options)\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * @typedef {import('./info.js').Info} Info\n * @typedef {Record} Properties\n * @typedef {Record} Normal\n */\n\nexport class Schema {\n /**\n * @constructor\n * @param {Properties} property\n * @param {Normal} normal\n * @param {string} [space]\n */\n constructor(property, normal, space) {\n this.property = property\n this.normal = normal\n if (space) {\n this.space = space\n }\n }\n}\n\n/** @type {Properties} */\nSchema.prototype.property = {}\n/** @type {Normal} */\nSchema.prototype.normal = {}\n/** @type {string|null} */\nSchema.prototype.space = null\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n */\n\nimport {Schema} from './schema.js'\n\n/**\n * @param {Schema[]} definitions\n * @param {string} [space]\n * @returns {Schema}\n */\nexport function merge(definitions, space) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n let index = -1\n\n while (++index < definitions.length) {\n Object.assign(property, definitions[index].property)\n Object.assign(normal, definitions[index].normal)\n }\n\n return new Schema(property, normal, space)\n}\n","/**\n * @param {string} value\n * @returns {string}\n */\nexport function normalize(value) {\n return value.toLowerCase()\n}\n","export class Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n */\n constructor(property, attribute) {\n /** @type {string} */\n this.property = property\n /** @type {string} */\n this.attribute = attribute\n }\n}\n\n/** @type {string|null} */\nInfo.prototype.space = null\nInfo.prototype.boolean = false\nInfo.prototype.booleanish = false\nInfo.prototype.overloadedBoolean = false\nInfo.prototype.number = false\nInfo.prototype.commaSeparated = false\nInfo.prototype.spaceSeparated = false\nInfo.prototype.commaOrSpaceSeparated = false\nInfo.prototype.mustUseProperty = false\nInfo.prototype.defined = false\n","let powers = 0\n\nexport const boolean = increment()\nexport const booleanish = increment()\nexport const overloadedBoolean = increment()\nexport const number = increment()\nexport const spaceSeparated = increment()\nexport const commaSeparated = increment()\nexport const commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return 2 ** ++powers\n}\n","import {Info} from './info.js'\nimport * as types from './types.js'\n\n/** @type {Array} */\n// @ts-expect-error: hush.\nconst checks = Object.keys(types)\n\nexport class DefinedInfo extends Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n * @param {number|null} [mask]\n * @param {string} [space]\n */\n constructor(property, attribute, mask, space) {\n let index = -1\n\n super(property, attribute)\n\n mark(this, 'space', space)\n\n if (typeof mask === 'number') {\n while (++index < checks.length) {\n const check = checks[index]\n mark(this, checks[index], (mask & types[check]) === types[check])\n }\n }\n }\n}\n\nDefinedInfo.prototype.defined = true\n\n/**\n * @param {DefinedInfo} values\n * @param {string} key\n * @param {unknown} value\n */\nfunction mark(values, key, value) {\n if (value) {\n // @ts-expect-error: assume `value` matches the expected value of `key`.\n values[key] = value\n }\n}\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n *\n * @typedef {Record} Attributes\n *\n * @typedef {Object} Definition\n * @property {Record} properties\n * @property {(attributes: Attributes, property: string) => string} transform\n * @property {string} [space]\n * @property {Attributes} [attributes]\n * @property {Array} [mustUseProperty]\n */\n\nimport {normalize} from '../normalize.js'\nimport {Schema} from './schema.js'\nimport {DefinedInfo} from './defined-info.js'\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Definition} definition\n * @returns {Schema}\n */\nexport function create(definition) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n /** @type {string} */\n let prop\n\n for (prop in definition.properties) {\n if (own.call(definition.properties, prop)) {\n const value = definition.properties[prop]\n const info = new DefinedInfo(\n prop,\n definition.transform(definition.attributes || {}, prop),\n value,\n definition.space\n )\n\n if (\n definition.mustUseProperty &&\n definition.mustUseProperty.includes(prop)\n ) {\n info.mustUseProperty = true\n }\n\n property[prop] = info\n\n normal[normalize(prop)] = prop\n normal[normalize(info.attribute)] = prop\n }\n }\n\n return new Schema(property, normal, definition.space)\n}\n","import {create} from './util/create.js'\n\nexport const xlink = create({\n space: 'xlink',\n transform(_, prop) {\n return 'xlink:' + prop.slice(5).toLowerCase()\n },\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n }\n})\n","import {create} from './util/create.js'\n\nexport const xml = create({\n space: 'xml',\n transform(_, prop) {\n return 'xml:' + prop.slice(3).toLowerCase()\n },\n properties: {xmlLang: null, xmlBase: null, xmlSpace: null}\n})\n","/**\n * @param {Record} attributes\n * @param {string} attribute\n * @returns {string}\n */\nexport function caseSensitiveTransform(attributes, attribute) {\n return attribute in attributes ? attributes[attribute] : attribute\n}\n","import {caseSensitiveTransform} from './case-sensitive-transform.js'\n\n/**\n * @param {Record} attributes\n * @param {string} property\n * @returns {string}\n */\nexport function caseInsensitiveTransform(attributes, property) {\n return caseSensitiveTransform(attributes, property.toLowerCase())\n}\n","import {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const xmlns = create({\n space: 'xmlns',\n attributes: {xmlnsxlink: 'xmlns:xlink'},\n transform: caseInsensitiveTransform,\n properties: {xmlns: null, xmlnsXLink: null}\n})\n","import {booleanish, number, spaceSeparated} from './util/types.js'\nimport {create} from './util/create.js'\n\nexport const aria = create({\n transform(_, prop) {\n return prop === 'role' ? prop : 'aria-' + prop.slice(4).toLowerCase()\n },\n properties: {\n ariaActiveDescendant: null,\n ariaAtomic: booleanish,\n ariaAutoComplete: null,\n ariaBusy: booleanish,\n ariaChecked: booleanish,\n ariaColCount: number,\n ariaColIndex: number,\n ariaColSpan: number,\n ariaControls: spaceSeparated,\n ariaCurrent: null,\n ariaDescribedBy: spaceSeparated,\n ariaDetails: null,\n ariaDisabled: booleanish,\n ariaDropEffect: spaceSeparated,\n ariaErrorMessage: null,\n ariaExpanded: booleanish,\n ariaFlowTo: spaceSeparated,\n ariaGrabbed: booleanish,\n ariaHasPopup: null,\n ariaHidden: booleanish,\n ariaInvalid: null,\n ariaKeyShortcuts: null,\n ariaLabel: null,\n ariaLabelledBy: spaceSeparated,\n ariaLevel: number,\n ariaLive: null,\n ariaModal: booleanish,\n ariaMultiLine: booleanish,\n ariaMultiSelectable: booleanish,\n ariaOrientation: null,\n ariaOwns: spaceSeparated,\n ariaPlaceholder: null,\n ariaPosInSet: number,\n ariaPressed: booleanish,\n ariaReadOnly: booleanish,\n ariaRelevant: null,\n ariaRequired: booleanish,\n ariaRoleDescription: spaceSeparated,\n ariaRowCount: number,\n ariaRowIndex: number,\n ariaRowSpan: number,\n ariaSelected: booleanish,\n ariaSetSize: number,\n ariaSort: null,\n ariaValueMax: number,\n ariaValueMin: number,\n ariaValueNow: number,\n ariaValueText: null,\n role: null\n }\n})\n","import {\n boolean,\n overloadedBoolean,\n booleanish,\n number,\n spaceSeparated,\n commaSeparated\n} from './util/types.js'\nimport {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const html = create({\n space: 'html',\n attributes: {\n acceptcharset: 'accept-charset',\n classname: 'class',\n htmlfor: 'for',\n httpequiv: 'http-equiv'\n },\n transform: caseInsensitiveTransform,\n mustUseProperty: ['checked', 'multiple', 'muted', 'selected'],\n properties: {\n // Standard Properties.\n abbr: null,\n accept: commaSeparated,\n acceptCharset: spaceSeparated,\n accessKey: spaceSeparated,\n action: null,\n allow: null,\n allowFullScreen: boolean,\n allowPaymentRequest: boolean,\n allowUserMedia: boolean,\n alt: null,\n as: null,\n async: boolean,\n autoCapitalize: null,\n autoComplete: spaceSeparated,\n autoFocus: boolean,\n autoPlay: boolean,\n capture: boolean,\n charSet: null,\n checked: boolean,\n cite: null,\n className: spaceSeparated,\n cols: number,\n colSpan: null,\n content: null,\n contentEditable: booleanish,\n controls: boolean,\n controlsList: spaceSeparated,\n coords: number | commaSeparated,\n crossOrigin: null,\n data: null,\n dateTime: null,\n decoding: null,\n default: boolean,\n defer: boolean,\n dir: null,\n dirName: null,\n disabled: boolean,\n download: overloadedBoolean,\n draggable: booleanish,\n encType: null,\n enterKeyHint: null,\n form: null,\n formAction: null,\n formEncType: null,\n formMethod: null,\n formNoValidate: boolean,\n formTarget: null,\n headers: spaceSeparated,\n height: number,\n hidden: boolean,\n high: number,\n href: null,\n hrefLang: null,\n htmlFor: spaceSeparated,\n httpEquiv: spaceSeparated,\n id: null,\n imageSizes: null,\n imageSrcSet: null,\n inputMode: null,\n integrity: null,\n is: null,\n isMap: boolean,\n itemId: null,\n itemProp: spaceSeparated,\n itemRef: spaceSeparated,\n itemScope: boolean,\n itemType: spaceSeparated,\n kind: null,\n label: null,\n lang: null,\n language: null,\n list: null,\n loading: null,\n loop: boolean,\n low: number,\n manifest: null,\n max: null,\n maxLength: number,\n media: null,\n method: null,\n min: null,\n minLength: number,\n multiple: boolean,\n muted: boolean,\n name: null,\n nonce: null,\n noModule: boolean,\n noValidate: boolean,\n onAbort: null,\n onAfterPrint: null,\n onAuxClick: null,\n onBeforeMatch: null,\n onBeforePrint: null,\n onBeforeUnload: null,\n onBlur: null,\n onCancel: null,\n onCanPlay: null,\n onCanPlayThrough: null,\n onChange: null,\n onClick: null,\n onClose: null,\n onContextLost: null,\n onContextMenu: null,\n onContextRestored: null,\n onCopy: null,\n onCueChange: null,\n onCut: null,\n onDblClick: null,\n onDrag: null,\n onDragEnd: null,\n onDragEnter: null,\n onDragExit: null,\n onDragLeave: null,\n onDragOver: null,\n onDragStart: null,\n onDrop: null,\n onDurationChange: null,\n onEmptied: null,\n onEnded: null,\n onError: null,\n onFocus: null,\n onFormData: null,\n onHashChange: null,\n onInput: null,\n onInvalid: null,\n onKeyDown: null,\n onKeyPress: null,\n onKeyUp: null,\n onLanguageChange: null,\n onLoad: null,\n onLoadedData: null,\n onLoadedMetadata: null,\n onLoadEnd: null,\n onLoadStart: null,\n onMessage: null,\n onMessageError: null,\n onMouseDown: null,\n onMouseEnter: null,\n onMouseLeave: null,\n onMouseMove: null,\n onMouseOut: null,\n onMouseOver: null,\n onMouseUp: null,\n onOffline: null,\n onOnline: null,\n onPageHide: null,\n onPageShow: null,\n onPaste: null,\n onPause: null,\n onPlay: null,\n onPlaying: null,\n onPopState: null,\n onProgress: null,\n onRateChange: null,\n onRejectionHandled: null,\n onReset: null,\n onResize: null,\n onScroll: null,\n onScrollEnd: null,\n onSecurityPolicyViolation: null,\n onSeeked: null,\n onSeeking: null,\n onSelect: null,\n onSlotChange: null,\n onStalled: null,\n onStorage: null,\n onSubmit: null,\n onSuspend: null,\n onTimeUpdate: null,\n onToggle: null,\n onUnhandledRejection: null,\n onUnload: null,\n onVolumeChange: null,\n onWaiting: null,\n onWheel: null,\n open: boolean,\n optimum: number,\n pattern: null,\n ping: spaceSeparated,\n placeholder: null,\n playsInline: boolean,\n poster: null,\n preload: null,\n readOnly: boolean,\n referrerPolicy: null,\n rel: spaceSeparated,\n required: boolean,\n reversed: boolean,\n rows: number,\n rowSpan: number,\n sandbox: spaceSeparated,\n scope: null,\n scoped: boolean,\n seamless: boolean,\n selected: boolean,\n shape: null,\n size: number,\n sizes: null,\n slot: null,\n span: number,\n spellCheck: booleanish,\n src: null,\n srcDoc: null,\n srcLang: null,\n srcSet: null,\n start: number,\n step: null,\n style: null,\n tabIndex: number,\n target: null,\n title: null,\n translate: null,\n type: null,\n typeMustMatch: boolean,\n useMap: null,\n value: booleanish,\n width: number,\n wrap: null,\n\n // Legacy.\n // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis\n align: null, // Several. Use CSS `text-align` instead,\n aLink: null, // ``. Use CSS `a:active {color}` instead\n archive: spaceSeparated, // ``. List of URIs to archives\n axis: null, // `
` and ``. Use `scope` on ``\n background: null, // ``. Use CSS `background-image` instead\n bgColor: null, // `` and table elements. Use CSS `background-color` instead\n border: number, // ``. Use CSS `border-width` instead,\n borderColor: null, // `
`. Use CSS `border-color` instead,\n bottomMargin: number, // ``\n cellPadding: null, // `
`\n cellSpacing: null, // `
`\n char: null, // Several table elements. When `align=char`, sets the character to align on\n charOff: null, // Several table elements. When `char`, offsets the alignment\n classId: null, // ``\n clear: null, // `
`. Use CSS `clear` instead\n code: null, // ``\n codeBase: null, // ``\n codeType: null, // ``\n color: null, // `` and `
`. Use CSS instead\n compact: boolean, // Lists. Use CSS to reduce space between items instead\n declare: boolean, // ``\n event: null, // `\n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `
` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {HastNodes | null | undefined}\n * hast tree.\n */\n// To do: next major: always return a single `root`.\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, null)\n const foot = footer(state)\n\n if (foot) {\n // @ts-expect-error If there’s a footer, there were definitions, meaning block\n // content.\n // So assume `node` is a parent node.\n node.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n // To do: next major: always return root?\n return Array.isArray(node) ? {type: 'root', children: node} : node\n}\n","/**\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('mdast-util-to-hast').Options} Options\n * @typedef {import('unified').Processor} Processor\n *\n * @typedef {import('mdast-util-to-hast')} DoNotTouchAsThisImportIncludesRawInTree\n */\n\nimport {toHast} from 'mdast-util-to-hast'\n\n// Note: the `` overload doesn’t seem to work :'(\n\n/**\n * Plugin that turns markdown into HTML to support rehype.\n *\n * * If a destination processor is given, that processor runs with a new HTML\n * (hast) tree (bridge-mode).\n * As the given processor runs with a hast tree, and rehype plugins support\n * hast, that means rehype plugins can be used with the given processor.\n * The hast tree is discarded in the end.\n * It’s highly unlikely that you want to do this.\n * * The common case is to not pass a destination processor, in which case the\n * current processor continues running with a new HTML (hast) tree\n * (mutate-mode).\n * As the current processor continues with a hast tree, and rehype plugins\n * support hast, that means rehype plugins can be used after\n * `remark-rehype`.\n * It’s likely that this is what you want to do.\n *\n * @param destination\n * Optional unified processor.\n * @param options\n * Options passed to `mdast-util-to-hast`.\n */\nconst remarkRehype =\n /** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */\n (\n function (destination, options) {\n return destination && 'run' in destination\n ? bridge(destination, options)\n : mutate(destination || options)\n }\n )\n\nexport default remarkRehype\n\n/**\n * Bridge-mode.\n * Runs the destination with the new hast tree.\n *\n * @type {import('unified').Plugin<[Processor, Options?], MdastRoot>}\n */\nfunction bridge(destination, options) {\n return (node, file, next) => {\n destination.run(toHast(node, options), file, (error) => {\n next(error)\n })\n }\n}\n\n/**\n * Mutate-mode.\n * Further plugins run on the hast tree.\n *\n * @type {import('unified').Plugin<[Options?]|void[], MdastRoot, HastRoot>}\n */\nfunction mutate(options) {\n // @ts-expect-error: assume a corresponding node is returned by `toHast`.\n return (node) => toHast(node, options)\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * @typedef {import('./info.js').Info} Info\n * @typedef {Record} Properties\n * @typedef {Record} Normal\n */\n\nexport class Schema {\n /**\n * @constructor\n * @param {Properties} property\n * @param {Normal} normal\n * @param {string} [space]\n */\n constructor(property, normal, space) {\n this.property = property\n this.normal = normal\n if (space) {\n this.space = space\n }\n }\n}\n\n/** @type {Properties} */\nSchema.prototype.property = {}\n/** @type {Normal} */\nSchema.prototype.normal = {}\n/** @type {string|null} */\nSchema.prototype.space = null\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n */\n\nimport {Schema} from './schema.js'\n\n/**\n * @param {Schema[]} definitions\n * @param {string} [space]\n * @returns {Schema}\n */\nexport function merge(definitions, space) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n let index = -1\n\n while (++index < definitions.length) {\n Object.assign(property, definitions[index].property)\n Object.assign(normal, definitions[index].normal)\n }\n\n return new Schema(property, normal, space)\n}\n","/**\n * @param {string} value\n * @returns {string}\n */\nexport function normalize(value) {\n return value.toLowerCase()\n}\n","export class Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n */\n constructor(property, attribute) {\n /** @type {string} */\n this.property = property\n /** @type {string} */\n this.attribute = attribute\n }\n}\n\n/** @type {string|null} */\nInfo.prototype.space = null\nInfo.prototype.boolean = false\nInfo.prototype.booleanish = false\nInfo.prototype.overloadedBoolean = false\nInfo.prototype.number = false\nInfo.prototype.commaSeparated = false\nInfo.prototype.spaceSeparated = false\nInfo.prototype.commaOrSpaceSeparated = false\nInfo.prototype.mustUseProperty = false\nInfo.prototype.defined = false\n","let powers = 0\n\nexport const boolean = increment()\nexport const booleanish = increment()\nexport const overloadedBoolean = increment()\nexport const number = increment()\nexport const spaceSeparated = increment()\nexport const commaSeparated = increment()\nexport const commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return 2 ** ++powers\n}\n","import {Info} from './info.js'\nimport * as types from './types.js'\n\n/** @type {Array} */\n// @ts-expect-error: hush.\nconst checks = Object.keys(types)\n\nexport class DefinedInfo extends Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n * @param {number|null} [mask]\n * @param {string} [space]\n */\n constructor(property, attribute, mask, space) {\n let index = -1\n\n super(property, attribute)\n\n mark(this, 'space', space)\n\n if (typeof mask === 'number') {\n while (++index < checks.length) {\n const check = checks[index]\n mark(this, checks[index], (mask & types[check]) === types[check])\n }\n }\n }\n}\n\nDefinedInfo.prototype.defined = true\n\n/**\n * @param {DefinedInfo} values\n * @param {string} key\n * @param {unknown} value\n */\nfunction mark(values, key, value) {\n if (value) {\n // @ts-expect-error: assume `value` matches the expected value of `key`.\n values[key] = value\n }\n}\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n *\n * @typedef {Record} Attributes\n *\n * @typedef {Object} Definition\n * @property {Record} properties\n * @property {(attributes: Attributes, property: string) => string} transform\n * @property {string} [space]\n * @property {Attributes} [attributes]\n * @property {Array} [mustUseProperty]\n */\n\nimport {normalize} from '../normalize.js'\nimport {Schema} from './schema.js'\nimport {DefinedInfo} from './defined-info.js'\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Definition} definition\n * @returns {Schema}\n */\nexport function create(definition) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n /** @type {string} */\n let prop\n\n for (prop in definition.properties) {\n if (own.call(definition.properties, prop)) {\n const value = definition.properties[prop]\n const info = new DefinedInfo(\n prop,\n definition.transform(definition.attributes || {}, prop),\n value,\n definition.space\n )\n\n if (\n definition.mustUseProperty &&\n definition.mustUseProperty.includes(prop)\n ) {\n info.mustUseProperty = true\n }\n\n property[prop] = info\n\n normal[normalize(prop)] = prop\n normal[normalize(info.attribute)] = prop\n }\n }\n\n return new Schema(property, normal, definition.space)\n}\n","import {create} from './util/create.js'\n\nexport const xlink = create({\n space: 'xlink',\n transform(_, prop) {\n return 'xlink:' + prop.slice(5).toLowerCase()\n },\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n }\n})\n","import {create} from './util/create.js'\n\nexport const xml = create({\n space: 'xml',\n transform(_, prop) {\n return 'xml:' + prop.slice(3).toLowerCase()\n },\n properties: {xmlLang: null, xmlBase: null, xmlSpace: null}\n})\n","/**\n * @param {Record} attributes\n * @param {string} attribute\n * @returns {string}\n */\nexport function caseSensitiveTransform(attributes, attribute) {\n return attribute in attributes ? attributes[attribute] : attribute\n}\n","import {caseSensitiveTransform} from './case-sensitive-transform.js'\n\n/**\n * @param {Record} attributes\n * @param {string} property\n * @returns {string}\n */\nexport function caseInsensitiveTransform(attributes, property) {\n return caseSensitiveTransform(attributes, property.toLowerCase())\n}\n","import {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const xmlns = create({\n space: 'xmlns',\n attributes: {xmlnsxlink: 'xmlns:xlink'},\n transform: caseInsensitiveTransform,\n properties: {xmlns: null, xmlnsXLink: null}\n})\n","import {booleanish, number, spaceSeparated} from './util/types.js'\nimport {create} from './util/create.js'\n\nexport const aria = create({\n transform(_, prop) {\n return prop === 'role' ? prop : 'aria-' + prop.slice(4).toLowerCase()\n },\n properties: {\n ariaActiveDescendant: null,\n ariaAtomic: booleanish,\n ariaAutoComplete: null,\n ariaBusy: booleanish,\n ariaChecked: booleanish,\n ariaColCount: number,\n ariaColIndex: number,\n ariaColSpan: number,\n ariaControls: spaceSeparated,\n ariaCurrent: null,\n ariaDescribedBy: spaceSeparated,\n ariaDetails: null,\n ariaDisabled: booleanish,\n ariaDropEffect: spaceSeparated,\n ariaErrorMessage: null,\n ariaExpanded: booleanish,\n ariaFlowTo: spaceSeparated,\n ariaGrabbed: booleanish,\n ariaHasPopup: null,\n ariaHidden: booleanish,\n ariaInvalid: null,\n ariaKeyShortcuts: null,\n ariaLabel: null,\n ariaLabelledBy: spaceSeparated,\n ariaLevel: number,\n ariaLive: null,\n ariaModal: booleanish,\n ariaMultiLine: booleanish,\n ariaMultiSelectable: booleanish,\n ariaOrientation: null,\n ariaOwns: spaceSeparated,\n ariaPlaceholder: null,\n ariaPosInSet: number,\n ariaPressed: booleanish,\n ariaReadOnly: booleanish,\n ariaRelevant: null,\n ariaRequired: booleanish,\n ariaRoleDescription: spaceSeparated,\n ariaRowCount: number,\n ariaRowIndex: number,\n ariaRowSpan: number,\n ariaSelected: booleanish,\n ariaSetSize: number,\n ariaSort: null,\n ariaValueMax: number,\n ariaValueMin: number,\n ariaValueNow: number,\n ariaValueText: null,\n role: null\n }\n})\n","import {\n boolean,\n overloadedBoolean,\n booleanish,\n number,\n spaceSeparated,\n commaSeparated\n} from './util/types.js'\nimport {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const html = create({\n space: 'html',\n attributes: {\n acceptcharset: 'accept-charset',\n classname: 'class',\n htmlfor: 'for',\n httpequiv: 'http-equiv'\n },\n transform: caseInsensitiveTransform,\n mustUseProperty: ['checked', 'multiple', 'muted', 'selected'],\n properties: {\n // Standard Properties.\n abbr: null,\n accept: commaSeparated,\n acceptCharset: spaceSeparated,\n accessKey: spaceSeparated,\n action: null,\n allow: null,\n allowFullScreen: boolean,\n allowPaymentRequest: boolean,\n allowUserMedia: boolean,\n alt: null,\n as: null,\n async: boolean,\n autoCapitalize: null,\n autoComplete: spaceSeparated,\n autoFocus: boolean,\n autoPlay: boolean,\n capture: boolean,\n charSet: null,\n checked: boolean,\n cite: null,\n className: spaceSeparated,\n cols: number,\n colSpan: null,\n content: null,\n contentEditable: booleanish,\n controls: boolean,\n controlsList: spaceSeparated,\n coords: number | commaSeparated,\n crossOrigin: null,\n data: null,\n dateTime: null,\n decoding: null,\n default: boolean,\n defer: boolean,\n dir: null,\n dirName: null,\n disabled: boolean,\n download: overloadedBoolean,\n draggable: booleanish,\n encType: null,\n enterKeyHint: null,\n form: null,\n formAction: null,\n formEncType: null,\n formMethod: null,\n formNoValidate: boolean,\n formTarget: null,\n headers: spaceSeparated,\n height: number,\n hidden: boolean,\n high: number,\n href: null,\n hrefLang: null,\n htmlFor: spaceSeparated,\n httpEquiv: spaceSeparated,\n id: null,\n imageSizes: null,\n imageSrcSet: null,\n inputMode: null,\n integrity: null,\n is: null,\n isMap: boolean,\n itemId: null,\n itemProp: spaceSeparated,\n itemRef: spaceSeparated,\n itemScope: boolean,\n itemType: spaceSeparated,\n kind: null,\n label: null,\n lang: null,\n language: null,\n list: null,\n loading: null,\n loop: boolean,\n low: number,\n manifest: null,\n max: null,\n maxLength: number,\n media: null,\n method: null,\n min: null,\n minLength: number,\n multiple: boolean,\n muted: boolean,\n name: null,\n nonce: null,\n noModule: boolean,\n noValidate: boolean,\n onAbort: null,\n onAfterPrint: null,\n onAuxClick: null,\n onBeforeMatch: null,\n onBeforePrint: null,\n onBeforeUnload: null,\n onBlur: null,\n onCancel: null,\n onCanPlay: null,\n onCanPlayThrough: null,\n onChange: null,\n onClick: null,\n onClose: null,\n onContextLost: null,\n onContextMenu: null,\n onContextRestored: null,\n onCopy: null,\n onCueChange: null,\n onCut: null,\n onDblClick: null,\n onDrag: null,\n onDragEnd: null,\n onDragEnter: null,\n onDragExit: null,\n onDragLeave: null,\n onDragOver: null,\n onDragStart: null,\n onDrop: null,\n onDurationChange: null,\n onEmptied: null,\n onEnded: null,\n onError: null,\n onFocus: null,\n onFormData: null,\n onHashChange: null,\n onInput: null,\n onInvalid: null,\n onKeyDown: null,\n onKeyPress: null,\n onKeyUp: null,\n onLanguageChange: null,\n onLoad: null,\n onLoadedData: null,\n onLoadedMetadata: null,\n onLoadEnd: null,\n onLoadStart: null,\n onMessage: null,\n onMessageError: null,\n onMouseDown: null,\n onMouseEnter: null,\n onMouseLeave: null,\n onMouseMove: null,\n onMouseOut: null,\n onMouseOver: null,\n onMouseUp: null,\n onOffline: null,\n onOnline: null,\n onPageHide: null,\n onPageShow: null,\n onPaste: null,\n onPause: null,\n onPlay: null,\n onPlaying: null,\n onPopState: null,\n onProgress: null,\n onRateChange: null,\n onRejectionHandled: null,\n onReset: null,\n onResize: null,\n onScroll: null,\n onScrollEnd: null,\n onSecurityPolicyViolation: null,\n onSeeked: null,\n onSeeking: null,\n onSelect: null,\n onSlotChange: null,\n onStalled: null,\n onStorage: null,\n onSubmit: null,\n onSuspend: null,\n onTimeUpdate: null,\n onToggle: null,\n onUnhandledRejection: null,\n onUnload: null,\n onVolumeChange: null,\n onWaiting: null,\n onWheel: null,\n open: boolean,\n optimum: number,\n pattern: null,\n ping: spaceSeparated,\n placeholder: null,\n playsInline: boolean,\n poster: null,\n preload: null,\n readOnly: boolean,\n referrerPolicy: null,\n rel: spaceSeparated,\n required: boolean,\n reversed: boolean,\n rows: number,\n rowSpan: number,\n sandbox: spaceSeparated,\n scope: null,\n scoped: boolean,\n seamless: boolean,\n selected: boolean,\n shape: null,\n size: number,\n sizes: null,\n slot: null,\n span: number,\n spellCheck: booleanish,\n src: null,\n srcDoc: null,\n srcLang: null,\n srcSet: null,\n start: number,\n step: null,\n style: null,\n tabIndex: number,\n target: null,\n title: null,\n translate: null,\n type: null,\n typeMustMatch: boolean,\n useMap: null,\n value: booleanish,\n width: number,\n wrap: null,\n\n // Legacy.\n // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis\n align: null, // Several. Use CSS `text-align` instead,\n aLink: null, // ``. Use CSS `a:active {color}` instead\n archive: spaceSeparated, // ``. List of URIs to archives\n axis: null, // `
` and ``. Use `scope` on ``\n background: null, // ``. Use CSS `background-image` instead\n bgColor: null, // `` and table elements. Use CSS `background-color` instead\n border: number, // ``. Use CSS `border-width` instead,\n borderColor: null, // `
`. Use CSS `border-color` instead,\n bottomMargin: number, // ``\n cellPadding: null, // `
`\n cellSpacing: null, // `
`\n char: null, // Several table elements. When `align=char`, sets the character to align on\n charOff: null, // Several table elements. When `char`, offsets the alignment\n classId: null, // ``\n clear: null, // `
`. Use CSS `clear` instead\n code: null, // ``\n codeBase: null, // ``\n codeType: null, // ``\n color: null, // `` and `
`. Use CSS instead\n compact: boolean, // Lists. Use CSS to reduce space between items instead\n declare: boolean, // ``\n event: null, // ` - + +