diff --git a/README.md b/README.md index fbf0e80100..8500cf4dd9 100644 --- a/README.md +++ b/README.md @@ -107,12 +107,11 @@ Deployment will take several minutes. When it completes, you should be able to n ### Add an identity provider After deployment, you will need to add an identity provider to provide authentication support in your app. See [this tutorial](https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service) for more information. -If you don't add an identity provider, the chat functionality of your app will be blocked to prevent unauthorized access to your resources and data. To remove this restriction, or add further access controls, update the logic in `getUserInfoList` in `frontend/src/pages/chat/Chat.tsx`. For example, disable the authorization check like so: -``` -const getUserInfoList = async () => { - setShowAuthMessage(false); -} -``` +If you don't add an identity provider, the chat functionality of your app will be blocked to prevent unauthorized access to your resources and data. + +To remove this restriction, you can add `AUTH_ENABLED=False` to the environment variables. This will disable authentication and allow anyone to access the chat functionality of your app. **This is not recommended for production apps.** + +To add further access controls, update the logic in `getUserInfoList` in `frontend/src/pages/chat/Chat.tsx`. ## Common Customization Scenarios Feel free to fork this repository and make your own modifications to the UX or backend logic. For example, you may want to change aspects of the chat display, or expose some of the settings in `app.py` in the UI for users to try out different behaviors. diff --git a/app.py b/app.py index 7dd2c0aa5a..0f9d2ba261 100644 --- a/app.py +++ b/app.py @@ -113,6 +113,11 @@ def assets(path): ELASTICSEARCH_STRICTNESS = os.environ.get("ELASTICSEARCH_STRICTNESS", SEARCH_STRICTNESS) ELASTICSEARCH_EMBEDDING_MODEL_ID = os.environ.get("ELASTICSEARCH_EMBEDDING_MODEL_ID") +# Frontend Settings via Environment Variables +AUTH_ENABLED = os.environ.get("AUTH_ENABLED", "true").lower() +frontend_settings = { "auth_enabled": AUTH_ENABLED } + + # Initialize a CosmosDB client with AAD auth and containers for Chat History cosmos_conversation_client = None if AZURE_COSMOSDB_DATABASE and AZURE_COSMOSDB_ACCOUNT and AZURE_COSMOSDB_CONVERSATIONS_CONTAINER: @@ -829,6 +834,13 @@ def ensure_cosmos(): return jsonify({"message": "CosmosDB is configured and working"}), 200 +@app.route("/frontend_settings", methods=["GET"]) +def get_frontend_settings(): + try: + return jsonify(frontend_settings), 200 + except Exception as e: + logging.exception("Exception in /frontend_settings") + return jsonify({"error": str(e)}), 500 def generate_title(conversation_messages): ## make sure the messages are sorted by _ts descending diff --git a/frontend/src/api/api.ts b/frontend/src/api/api.ts index 30719d5e4a..b92b27b542 100644 --- a/frontend/src/api/api.ts +++ b/frontend/src/api/api.ts @@ -297,3 +297,15 @@ export const historyEnsure = async (): Promise => { return response; } +export const frontendSettings = async (): Promise => { + const response = await fetch("/frontend_settings", { + method: "GET", + }).then((res) => { + return res.json() + }).catch((err) => { + console.error("There was an issue fetching your data."); + return null + }) + + return response +} diff --git a/frontend/src/api/models.ts b/frontend/src/api/models.ts index 1338c0b116..65f4ecb3e0 100644 --- a/frontend/src/api/models.ts +++ b/frontend/src/api/models.ts @@ -92,4 +92,8 @@ export enum ChatHistoryLoadingState { export type ErrorMessage = { title: string, subtitle: string +} + +export type FrontendSettings = { + auth_enabled?: string | null; } \ No newline at end of file diff --git a/frontend/src/pages/chat/Chat.tsx b/frontend/src/pages/chat/Chat.tsx index a949547b57..a39b27df03 100644 --- a/frontend/src/pages/chat/Chat.tsx +++ b/frontend/src/pages/chat/Chat.tsx @@ -41,6 +41,7 @@ const enum messageStatus { const Chat = () => { const appStateContext = useContext(AppStateContext) + const AUTH_ENABLED = appStateContext?.state.frontendSettings?.auth_enabled === "true" ; const chatMessageStreamEnd = useRef(null); const [isLoading, setIsLoading] = useState(false); const [showLoadingMessage, setShowLoadingMessage] = useState(false); @@ -93,6 +94,10 @@ const Chat = () => { }, [appStateContext?.state.chatHistoryLoadingState]) const getUserInfoList = async () => { + if (!AUTH_ENABLED) { + setShowAuthMessage(false); + return; + } const userInfoList = await getUserInfo(); if (userInfoList.length === 0 && window.location.hostname !== "127.0.0.1") { setShowAuthMessage(true); @@ -525,8 +530,8 @@ const Chat = () => { }, [processMessages]); useEffect(() => { - getUserInfoList(); - }, []); + if (AUTH_ENABLED !== undefined) getUserInfoList(); + }, [AUTH_ENABLED]); useLayoutEffect(() => { chatMessageStreamEnd.current?.scrollIntoView({ behavior: "smooth" }) diff --git a/frontend/src/state/AppProvider.tsx b/frontend/src/state/AppProvider.tsx index 520557ffaf..cc1861b834 100644 --- a/frontend/src/state/AppProvider.tsx +++ b/frontend/src/state/AppProvider.tsx @@ -1,7 +1,6 @@ import React, { createContext, useReducer, ReactNode, useEffect } from 'react'; import { appStateReducer } from './AppReducer'; -import { ChatHistoryLoadingState, CosmosDBHealth, historyList, historyEnsure, CosmosDBStatus } from '../api'; -import { Conversation } from '../api'; +import { Conversation, ChatHistoryLoadingState, CosmosDBHealth, historyList, historyEnsure, CosmosDBStatus, frontendSettings, FrontendSettings } from '../api'; export interface AppState { isChatHistoryOpen: boolean; @@ -10,6 +9,7 @@ export interface AppState { chatHistory: Conversation[] | null; filteredChatHistory: Conversation[] | null; currentChat: Conversation | null; + frontendSettings: FrontendSettings | null; } export type Action = @@ -24,6 +24,7 @@ export type Action = | { type: 'DELETE_CHAT_HISTORY'} // API Call | { type: 'DELETE_CURRENT_CHAT_MESSAGES', payload: string } // API Call | { type: 'FETCH_CHAT_HISTORY', payload: Conversation[] | null } // API Call + | { type: 'FETCH_FRONTEND_SETTINGS', payload: FrontendSettings | null } // API Call const initialState: AppState = { isChatHistoryOpen: false, @@ -34,7 +35,8 @@ const initialState: AppState = { isCosmosDBAvailable: { cosmosDB: false, status: CosmosDBStatus.NotConfigured, - } + }, + frontendSettings: null, }; export const AppStateContext = createContext<{ @@ -99,6 +101,18 @@ type AppStateProviderProps = { } getHistoryEnsure(); }, []); + + useEffect(() => { + const getFrontendSettings = async () => { + frontendSettings().then((response) => { + dispatch({ type: 'FETCH_FRONTEND_SETTINGS', payload: response as FrontendSettings }); + }) + .catch((err) => { + console.error("There was an issue fetching your data."); + }) + } + getFrontendSettings(); + }, []); return ( diff --git a/frontend/src/state/AppReducer.tsx b/frontend/src/state/AppReducer.tsx index fa6770ee37..e26d9f20a2 100644 --- a/frontend/src/state/AppReducer.tsx +++ b/frontend/src/state/AppReducer.tsx @@ -65,6 +65,8 @@ export const appStateReducer = (state: AppState, action: Action): AppState => { return { ...state, chatHistory: action.payload }; case 'SET_COSMOSDB_STATUS': return { ...state, isCosmosDBAvailable: action.payload }; + case 'FETCH_FRONTEND_SETTINGS': + return { ...state, frontendSettings: action.payload }; default: return state; } diff --git a/static/assets/index-88c94d86.js b/static/assets/index-d0e2f128.js similarity index 70% rename from static/assets/index-88c94d86.js rename to static/assets/index-d0e2f128.js index 905bc98fba..aad5f305ff 100644 --- a/static/assets/index-88c94d86.js +++ b/static/assets/index-d0e2f128.js @@ -1,4 +1,4 @@ -var W8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var z$=W8((ar,sr)=>{function j8(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 kT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nu={},$8={get exports(){return nu},set exports(e){nu=e}},Sd={},E={},V8={get exports(){return E},set exports(e){E=e}},Ae={};/** +var W8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var G$=W8((ir,or)=>{function j8(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 kT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nu={},$8={get exports(){return nu},set exports(e){nu=e}},Sd={},E={},V8={get exports(){return E},set exports(e){E=e}},Ae={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var W8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var z$=W8((ar,sr) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Mu=Symbol.for("react.element"),Y8=Symbol.for("react.portal"),q8=Symbol.for("react.fragment"),Q8=Symbol.for("react.strict_mode"),X8=Symbol.for("react.profiler"),Z8=Symbol.for("react.provider"),J8=Symbol.for("react.context"),eS=Symbol.for("react.forward_ref"),tS=Symbol.for("react.suspense"),nS=Symbol.for("react.memo"),rS=Symbol.for("react.lazy"),xg=Symbol.iterator;function iS(e){return e===null||typeof e!="object"?null:(e=xg&&e[xg]||e["@@iterator"],typeof e=="function"?e:null)}var FT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},IT=Object.assign,xT={};function Ks(e,t,n){this.props=e,this.context=t,this.refs=xT,this.updater=n||FT}Ks.prototype.isReactComponent={};Ks.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")};Ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function NT(){}NT.prototype=Ks.prototype;function Np(e,t,n){this.props=e,this.context=t,this.refs=xT,this.updater=n||FT}var Dp=Np.prototype=new NT;Dp.constructor=Np;IT(Dp,Ks.prototype);Dp.isPureReactComponent=!0;var Ng=Array.isArray,DT=Object.prototype.hasOwnProperty,wp={current:null},wT={key:!0,ref:!0,__self:!0,__source:!0};function RT(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)DT.call(t,r)&&!wT.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1()=>(t||e((t={exports:{}}).exports,t),t.exports);var z$=W8((ar,sr) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var uS=E,cS=Symbol.for("react.element"),dS=Symbol.for("react.fragment"),fS=Object.prototype.hasOwnProperty,hS=uS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pS={key:!0,ref:!0,__self:!0,__source:!0};function PT(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)fS.call(t,r)&&!pS.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:cS,type:e,key:o,ref:a,props:i,_owner:hS.current}}Sd.Fragment=dS;Sd.jsx=PT;Sd.jsxs=PT;(function(e){e.exports=Sd})($8);const Ta=nu.Fragment,B=nu.jsx,fe=nu.jsxs;var r0={},Rc={},mS={get exports(){return Rc},set exports(e){Rc=e}},dr={},i0={},gS={get exports(){return i0},set exports(e){i0=e}},MT={};/** + */var uS=E,cS=Symbol.for("react.element"),dS=Symbol.for("react.fragment"),fS=Object.prototype.hasOwnProperty,hS=uS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pS={key:!0,ref:!0,__self:!0,__source:!0};function PT(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)fS.call(t,r)&&!pS.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:cS,type:e,key:o,ref:a,props:i,_owner:hS.current}}Sd.Fragment=dS;Sd.jsx=PT;Sd.jsxs=PT;(function(e){e.exports=Sd})($8);const ya=nu.Fragment,B=nu.jsx,fe=nu.jsxs;var r0={},Rc={},mS={get exports(){return Rc},set exports(e){Rc=e}},ur={},i0={},gS={get exports(){return i0},set exports(e){i0=e}},MT={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var W8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var z$=W8((ar,sr) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(M,z){var K=M.length;M.push(z);e:for(;0>>1,b=M[F];if(0>>1;Fi(Dt,K))pei(Ge,Dt)?(M[F]=Ge,M[pe]=K,F=pe):(M[F]=Dt,M[ze]=K,F=ze);else if(pei(Ge,K))M[F]=Ge,M[pe]=K,F=pe;else break e}}return z}function i(M,z){var K=M.sortIndex-z.sortIndex;return K!==0?K: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,p=!1,h=!1,v=!1,_=typeof setTimeout=="function"?setTimeout:null,g=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 y(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,y(M),!h)if(n(l)!==null)h=!0,G(k);else{var z=n(u);z!==null&&J(C,z.startTime-M)}}function k(M,z){h=!1,v&&(v=!1,g(D),D=-1),p=!0;var K=f;try{for(y(z),d=n(l);d!==null&&(!(d.expirationTime>z)||M&&!R());){var F=d.callback;if(typeof F=="function"){d.callback=null,f=d.priorityLevel;var b=F(d.expirationTime<=z);z=e.unstable_now(),typeof b=="function"?d.callback=b:d===n(l)&&r(l),y(z)}else r(l);d=n(l)}if(d!==null)var at=!0;else{var ze=n(u);ze!==null&&J(C,ze.startTime-z),at=!1}return at}finally{d=null,f=K,p=!1}}var S=!1,A=null,D=-1,P=5,x=-1;function R(){return!(e.unstable_now()-xM||125F?(M.sortIndex=K,t(u,M),n(l)===null&&M===n(u)&&(v?(g(D),D=-1):v=!0,J(C,K-F))):(M.sortIndex=b,t(l,M),h||p||(h=!0,G(k))),M},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(M){var z=f;return function(){var K=f;f=z;try{return M.apply(this,arguments)}finally{f=K}}}})(MT);(function(e){e.exports=MT})(gS);/** + */(function(e){function t(R,G){var K=R.length;R.push(G);e:for(;0>>1,b=R[F];if(0>>1;Fi(Rt,K))_ei(Ne,Rt)?(R[F]=Ne,R[_e]=K,F=_e):(R[F]=Rt,R[Ue]=K,F=Ue);else if(_ei(Ne,K))R[F]=Ne,R[_e]=K,F=_e;else break e}}return G}function i(R,G){var K=R.sortIndex-G.sortIndex;return K!==0?K:R.id-G.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,p=!1,h=!1,v=!1,_=typeof setTimeout=="function"?setTimeout:null,g=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 y(R){for(var G=n(u);G!==null;){if(G.callback===null)r(u);else if(G.startTime<=R)r(u),G.sortIndex=G.expirationTime,t(l,G);else break;G=n(u)}}function C(R){if(v=!1,y(R),!h)if(n(l)!==null)h=!0,z(k);else{var G=n(u);G!==null&&J(C,G.startTime-R)}}function k(R,G){h=!1,v&&(v=!1,g(D),D=-1),p=!0;var K=f;try{for(y(G),d=n(l);d!==null&&(!(d.expirationTime>G)||R&&!O());){var F=d.callback;if(typeof F=="function"){d.callback=null,f=d.priorityLevel;var b=F(d.expirationTime<=G);G=e.unstable_now(),typeof b=="function"?d.callback=b:d===n(l)&&r(l),y(G)}else r(l);d=n(l)}if(d!==null)var Je=!0;else{var Ue=n(u);Ue!==null&&J(C,Ue.startTime-G),Je=!1}return Je}finally{d=null,f=K,p=!1}}var S=!1,A=null,D=-1,P=5,x=-1;function O(){return!(e.unstable_now()-xR||125F?(R.sortIndex=K,t(u,R),n(l)===null&&R===n(u)&&(v?(g(D),D=-1):v=!0,J(C,K-F))):(R.sortIndex=b,t(l,R),h||p||(h=!0,z(k))),R},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(R){var G=f;return function(){var K=f;f=G;try{return R.apply(this,arguments)}finally{f=K}}}})(MT);(function(e){e.exports=MT})(gS);/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var W8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var z$=W8((ar,sr) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var OT=E,cr=i0;function W(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"),o0=Object.prototype.hasOwnProperty,ES=/^[: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]*$/,wg={},Rg={};function vS(e){return o0.call(Rg,e)?!0:o0.call(wg,e)?!1:ES.test(e)?Rg[e]=!0:(wg[e]=!0,!1)}function TS(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 yS(e,t,n,r){if(t===null||typeof t>"u"||TS(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 kn(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 $t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$t[e]=new kn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$t[t]=new kn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$t[e]=new kn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$t[e]=new kn(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){$t[e]=new kn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$t[e]=new kn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$t[e]=new kn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$t[e]=new kn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$t[e]=new kn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pp=/[\-:]([a-z])/g;function Mp(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(Pp,Mp);$t[t]=new kn(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(Pp,Mp);$t[t]=new kn(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(Pp,Mp);$t[t]=new kn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$t[e]=new kn(e,1,!1,e.toLowerCase(),null,!1,!1)});$t.xlinkHref=new kn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$t[e]=new kn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Op(e,t,n,r){var i=$t.hasOwnProperty(t)?$t[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),o0=Object.prototype.hasOwnProperty,ES=/^[: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]*$/,wg={},Rg={};function vS(e){return o0.call(Rg,e)?!0:o0.call(wg,e)?!1:ES.test(e)?Rg[e]=!0:(wg[e]=!0,!1)}function TS(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 yS(e,t,n,r){if(t===null||typeof t>"u"||TS(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 Fn(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 Yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yt[e]=new Fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yt[t]=new Fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yt[e]=new Fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yt[e]=new Fn(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){Yt[e]=new Fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yt[e]=new Fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yt[e]=new Fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yt[e]=new Fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yt[e]=new Fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pp=/[\-:]([a-z])/g;function Mp(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(Pp,Mp);Yt[t]=new Fn(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(Pp,Mp);Yt[t]=new Fn(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(Pp,Mp);Yt[t]=new Fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yt[e]=new Fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Yt.xlinkHref=new Fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yt[e]=new Fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Op(e,t,n,r){var i=Yt.hasOwnProperty(t)?Yt[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{xf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Il(e):""}function _S(e){switch(e.tag){case 5:return Il(e.type);case 16:return Il("Lazy");case 13:return Il("Suspense");case 19:return Il("SuspenseList");case 0:case 2:case 15:return e=Nf(e.type,!1),e;case 11:return e=Nf(e.type.render,!1),e;case 1:return e=Nf(e.type,!0),e;default:return""}}function u0(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 ns:return"Fragment";case ts:return"Portal";case a0:return"Profiler";case Lp:return"StrictMode";case s0:return"Suspense";case l0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case HT:return(e.displayName||"Context")+".Consumer";case BT:return(e._context.displayName||"Context")+".Provider";case Bp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hp:return t=e.displayName||null,t!==null?t:u0(e.type)||"Memo";case mo:t=e._payload,e=e._init;try{return u0(e(t))}catch{}}return null}function CS(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 u0(t);case 8:return t===Lp?"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 Bo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function SS(e){var t=zT(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 T1(e){e._valueTracker||(e._valueTracker=SS(e))}function GT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pc(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 c0(e,t){var n=t.checked;return ft({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bo(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 KT(e,t){t=t.checked,t!=null&&Op(e,"checked",t,!1)}function d0(e,t){KT(e,t);var n=Bo(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")?f0(e,t.type,n):t.hasOwnProperty("defaultValue")&&f0(e,t.type,Bo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Og(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 f0(e,t,n){(t!=="number"||Pc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xl=Array.isArray;function vs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=y1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function iu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pl={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},AS=["Webkit","ms","Moz","O"];Object.keys(Pl).forEach(function(e){AS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pl[t]=Pl[e]})});function VT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pl.hasOwnProperty(e)&&Pl[e]?(""+t).trim():t+"px"}function YT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=VT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var bS=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 m0(e,t){if(t){if(bS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function g0(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 E0=null;function Up(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var v0=null,Ts=null,ys=null;function Hg(e){if(e=Bu(e)){if(typeof v0!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Id(t),v0(e.stateNode,e.type,t))}}function qT(e){Ts?ys?ys.push(e):ys=[e]:Ts=e}function QT(){if(Ts){var e=Ts,t=ys;if(ys=Ts=null,Hg(e),t)for(e=0;e>>=0,e===0?32:31-(OS(e)/LS|0)|0}var _1=64,C1=4194304;function Nl(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 Bc(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=Nl(s):(o&=a,o!==0&&(r=Nl(o)))}else a=n&~i,a!==0?r=Nl(a):o!==0&&(r=Nl(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 Ou(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$r(t),e[t]=n}function zS(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=Ol),Yg=String.fromCharCode(32),qg=!1;function g4(e,t){switch(e){case"keyup":return m6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rs=!1;function E6(e,t){switch(e){case"compositionend":return E4(t);case"keypress":return t.which!==32?null:(qg=!0,Yg);case"textInput":return e=t.data,e===Yg&&qg?null:e;default:return null}}function v6(e,t){if(rs)return e==="compositionend"||!Yp&&g4(e,t)?(e=p4(),cc=jp=Ao=null,rs=!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=Jg(n)}}function _4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function C4(){for(var e=window,t=Pc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pc(e.document)}return t}function qp(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=C4(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_4(n.ownerDocument.documentElement,n)){if(r!==null&&qp(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=e9(n,o);var a=e9(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,is=null,A0=null,Bl=null,b0=!1;function t9(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;b0||is==null||is!==Pc(r)||(r=is,"selectionStart"in r&&qp(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}),Bl&&cu(Bl,r)||(Bl=r,r=zc(A0,"onSelect"),0ss||(e.current=D0[ss],D0[ss]=null,ss--)}function Xe(e,t){ss++,D0[ss]=e.current,e.current=t}var Ho={},rn=Go(Ho),Kn=Go(!1),ya=Ho;function xs(e,t){var n=e.type.contextTypes;if(!n)return Ho;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 Wn(e){return e=e.childContextTypes,e!=null}function Kc(){nt(Kn),nt(rn)}function l9(e,t,n){if(rn.current!==Ho)throw Error(W(168));Xe(rn,t),Xe(Kn,n)}function D4(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(W(108,CS(e)||"Unknown",i));return ft({},n,r)}function Wc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ho,ya=rn.current,Xe(rn,e),Xe(Kn,Kn.current),!0}function u9(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=D4(e,t,ya),r.__reactInternalMemoizedMergedChildContext=e,nt(Kn),nt(rn),Xe(rn,e)):nt(Kn),Xe(Kn,n)}var Bi=null,xd=!1,Wf=!1;function w4(e){Bi===null?Bi=[e]:Bi.push(e)}function H6(e){xd=!0,w4(e)}function Ko(){if(!Wf&&Bi!==null){Wf=!0;var e=0,t=Oe;try{var n=Bi;for(Oe=1;e>=a,i-=a,Hi=1<<32-$r(t)+i|n<D?(P=A,A=null):P=A.sibling;var x=f(g,A,y[D],C);if(x===null){A===null&&(A=P);break}e&&A&&x.alternate===null&&t(g,A),T=o(x,T,D),S===null?k=x:S.sibling=x,S=x,A=P}if(D===y.length)return n(g,A),st&&na(g,D),k;if(A===null){for(;DD?(P=A,A=null):P=A.sibling;var R=f(g,A,x.value,C);if(R===null){A===null&&(A=P);break}e&&A&&R.alternate===null&&t(g,A),T=o(R,T,D),S===null?k=R:S.sibling=R,S=R,A=P}if(x.done)return n(g,A),st&&na(g,D),k;if(A===null){for(;!x.done;D++,x=y.next())x=d(g,x.value,C),x!==null&&(T=o(x,T,D),S===null?k=x:S.sibling=x,S=x);return st&&na(g,D),k}for(A=r(g,A);!x.done;D++,x=y.next())x=p(A,g,D,x.value,C),x!==null&&(e&&x.alternate!==null&&A.delete(x.key===null?D:x.key),T=o(x,T,D),S===null?k=x:S.sibling=x,S=x);return e&&A.forEach(function(O){return t(g,O)}),st&&na(g,D),k}function _(g,T,y,C){if(typeof y=="object"&&y!==null&&y.type===ns&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case v1:e:{for(var k=y.key,S=T;S!==null;){if(S.key===k){if(k=y.type,k===ns){if(S.tag===7){n(g,S.sibling),T=i(S,y.props.children),T.return=g,g=T;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===mo&&g9(k)===S.type){n(g,S.sibling),T=i(S,y.props),T.ref=ul(g,S,y),T.return=g,g=T;break e}n(g,S);break}else t(g,S);S=S.sibling}y.type===ns?(T=ga(y.props.children,g.mode,C,y.key),T.return=g,g=T):(C=vc(y.type,y.key,y.props,null,g.mode,C),C.ref=ul(g,T,y),C.return=g,g=C)}return a(g);case ts:e:{for(S=y.key;T!==null;){if(T.key===S)if(T.tag===4&&T.stateNode.containerInfo===y.containerInfo&&T.stateNode.implementation===y.implementation){n(g,T.sibling),T=i(T,y.children||[]),T.return=g,g=T;break e}else{n(g,T);break}else t(g,T);T=T.sibling}T=Zf(y,g.mode,C),T.return=g,g=T}return a(g);case mo:return S=y._init,_(g,T,S(y._payload),C)}if(xl(y))return h(g,T,y,C);if(il(y))return v(g,T,y,C);x1(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,T!==null&&T.tag===6?(n(g,T.sibling),T=i(T,y),T.return=g,g=T):(n(g,T),T=Xf(y,g.mode,C),T.return=g,g=T),a(g)):n(g,T)}return _}var Ds=U4(!0),z4=U4(!1),Hu={},gi=Go(Hu),pu=Go(Hu),mu=Go(Hu);function da(e){if(e===Hu)throw Error(W(174));return e}function im(e,t){switch(Xe(mu,t),Xe(pu,e),Xe(gi,Hu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:p0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=p0(t,e)}nt(gi),Xe(gi,t)}function ws(){nt(gi),nt(pu),nt(mu)}function G4(e){da(mu.current);var t=da(gi.current),n=p0(t,e.type);t!==n&&(Xe(pu,e),Xe(gi,n))}function om(e){pu.current===e&&(nt(gi),nt(pu))}var ct=Go(0);function Qc(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 jf=[];function am(){for(var e=0;en?n:4,e(!0);var r=$f.transition;$f.transition={};try{e(!1),t()}finally{Oe=n,$f.transition=r}}function iy(){return Fr().memoizedState}function K6(e,t,n){var r=Mo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oy(e))ay(t,n);else if(n=O4(e,t,n,r),n!==null){var i=Sn();Vr(n,e,r,i),sy(n,t,r)}}function W6(e,t,n){var r=Mo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oy(e))ay(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,qr(s,a)){var l=t.interleaved;l===null?(i.next=i,nm(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=O4(e,t,i,r),n!==null&&(i=Sn(),Vr(n,e,r,i),sy(n,t,r))}}function oy(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function ay(e,t){Hl=Xc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gp(e,n)}}var Zc={readContext:kr,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useInsertionEffect:Xt,useLayoutEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useMutableSource:Xt,useSyncExternalStore:Xt,useId:Xt,unstable_isNewReconciler:!1},j6={readContext:kr,useCallback:function(e,t){return oi().memoizedState=[e,t===void 0?null:t],e},useContext:kr,useEffect:v9,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pc(4194308,4,J4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pc(4194308,4,e,t)},useInsertionEffect:function(e,t){return pc(4,2,e,t)},useMemo:function(e,t){var n=oi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oi();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=K6.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=oi();return e={current:e},t.memoizedState=e},useState:E9,useDebugValue:dm,useDeferredValue:function(e){return oi().memoizedState=e},useTransition:function(){var e=E9(!1),t=e[0];return e=G6.bind(null,e[1]),oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,i=oi();if(st){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Lt===null)throw Error(W(349));Ca&30||j4(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,v9(V4.bind(null,r,o,e),[e]),r.flags|=2048,vu(9,$4.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=oi(),t=Lt.identifierPrefix;if(st){var n=Ui,r=Hi;n=(r&~(1<<32-$r(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gu++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{xf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Il(e):""}function _S(e){switch(e.tag){case 5:return Il(e.type);case 16:return Il("Lazy");case 13:return Il("Suspense");case 19:return Il("SuspenseList");case 0:case 2:case 15:return e=Nf(e.type,!1),e;case 11:return e=Nf(e.type.render,!1),e;case 1:return e=Nf(e.type,!0),e;default:return""}}function u0(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 rs:return"Fragment";case ns:return"Portal";case a0:return"Profiler";case Lp:return"StrictMode";case s0:return"Suspense";case l0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case HT:return(e.displayName||"Context")+".Consumer";case BT:return(e._context.displayName||"Context")+".Provider";case Bp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hp:return t=e.displayName||null,t!==null?t:u0(e.type)||"Memo";case go:t=e._payload,e=e._init;try{return u0(e(t))}catch{}}return null}function CS(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 u0(t);case 8:return t===Lp?"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 Ho(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function SS(e){var t=zT(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 T1(e){e._valueTracker||(e._valueTracker=SS(e))}function GT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pc(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 c0(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ho(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 KT(e,t){t=t.checked,t!=null&&Op(e,"checked",t,!1)}function d0(e,t){KT(e,t);var n=Ho(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")?f0(e,t.type,n):t.hasOwnProperty("defaultValue")&&f0(e,t.type,Ho(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Og(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 f0(e,t,n){(t!=="number"||Pc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xl=Array.isArray;function Ts(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=y1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function iu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pl={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},AS=["Webkit","ms","Moz","O"];Object.keys(Pl).forEach(function(e){AS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pl[t]=Pl[e]})});function VT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pl.hasOwnProperty(e)&&Pl[e]?(""+t).trim():t+"px"}function YT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=VT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var bS=pt({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 m0(e,t){if(t){if(bS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function g0(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 E0=null;function Up(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var v0=null,ys=null,_s=null;function Hg(e){if(e=Bu(e)){if(typeof v0!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Id(t),v0(e.stateNode,e.type,t))}}function qT(e){ys?_s?_s.push(e):_s=[e]:ys=e}function QT(){if(ys){var e=ys,t=_s;if(_s=ys=null,Hg(e),t)for(e=0;e>>=0,e===0?32:31-(OS(e)/LS|0)|0}var _1=64,C1=4194304;function Nl(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 Bc(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=Nl(s):(o&=a,o!==0&&(r=Nl(o)))}else a=n&~i,a!==0?r=Nl(a):o!==0&&(r=Nl(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 Ou(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jr(t),e[t]=n}function zS(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=Ol),Yg=String.fromCharCode(32),qg=!1;function g4(e,t){switch(e){case"keyup":return m6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var is=!1;function E6(e,t){switch(e){case"compositionend":return E4(t);case"keypress":return t.which!==32?null:(qg=!0,Yg);case"textInput":return e=t.data,e===Yg&&qg?null:e;default:return null}}function v6(e,t){if(is)return e==="compositionend"||!Yp&&g4(e,t)?(e=p4(),cc=jp=bo=null,is=!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=Jg(n)}}function _4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function C4(){for(var e=window,t=Pc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pc(e.document)}return t}function qp(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=C4(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_4(n.ownerDocument.documentElement,n)){if(r!==null&&qp(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=e9(n,o);var a=e9(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,os=null,A0=null,Bl=null,b0=!1;function t9(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;b0||os==null||os!==Pc(r)||(r=os,"selectionStart"in r&&qp(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}),Bl&&cu(Bl,r)||(Bl=r,r=zc(A0,"onSelect"),0ls||(e.current=D0[ls],D0[ls]=null,ls--)}function Ze(e,t){ls++,D0[ls]=e.current,e.current=t}var Uo={},on=Ko(Uo),Kn=Ko(!1),_a=Uo;function Ns(e,t){var n=e.type.contextTypes;if(!n)return Uo;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 Wn(e){return e=e.childContextTypes,e!=null}function Kc(){it(Kn),it(on)}function l9(e,t,n){if(on.current!==Uo)throw Error(W(168));Ze(on,t),Ze(Kn,n)}function D4(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(W(108,CS(e)||"Unknown",i));return pt({},n,r)}function Wc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Uo,_a=on.current,Ze(on,e),Ze(Kn,Kn.current),!0}function u9(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=D4(e,t,_a),r.__reactInternalMemoizedMergedChildContext=e,it(Kn),it(on),Ze(on,e)):it(Kn),Ze(Kn,n)}var Hi=null,xd=!1,Wf=!1;function w4(e){Hi===null?Hi=[e]:Hi.push(e)}function H6(e){xd=!0,w4(e)}function Wo(){if(!Wf&&Hi!==null){Wf=!0;var e=0,t=Pe;try{var n=Hi;for(Pe=1;e>=a,i-=a,Ui=1<<32-jr(t)+i|n<D?(P=A,A=null):P=A.sibling;var x=f(g,A,y[D],C);if(x===null){A===null&&(A=P);break}e&&A&&x.alternate===null&&t(g,A),T=o(x,T,D),S===null?k=x:S.sibling=x,S=x,A=P}if(D===y.length)return n(g,A),lt&&ra(g,D),k;if(A===null){for(;DD?(P=A,A=null):P=A.sibling;var O=f(g,A,x.value,C);if(O===null){A===null&&(A=P);break}e&&A&&O.alternate===null&&t(g,A),T=o(O,T,D),S===null?k=O:S.sibling=O,S=O,A=P}if(x.done)return n(g,A),lt&&ra(g,D),k;if(A===null){for(;!x.done;D++,x=y.next())x=d(g,x.value,C),x!==null&&(T=o(x,T,D),S===null?k=x:S.sibling=x,S=x);return lt&&ra(g,D),k}for(A=r(g,A);!x.done;D++,x=y.next())x=p(A,g,D,x.value,C),x!==null&&(e&&x.alternate!==null&&A.delete(x.key===null?D:x.key),T=o(x,T,D),S===null?k=x:S.sibling=x,S=x);return e&&A.forEach(function(M){return t(g,M)}),lt&&ra(g,D),k}function _(g,T,y,C){if(typeof y=="object"&&y!==null&&y.type===rs&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case v1:e:{for(var k=y.key,S=T;S!==null;){if(S.key===k){if(k=y.type,k===rs){if(S.tag===7){n(g,S.sibling),T=i(S,y.props.children),T.return=g,g=T;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===go&&g9(k)===S.type){n(g,S.sibling),T=i(S,y.props),T.ref=ul(g,S,y),T.return=g,g=T;break e}n(g,S);break}else t(g,S);S=S.sibling}y.type===rs?(T=Ea(y.props.children,g.mode,C,y.key),T.return=g,g=T):(C=vc(y.type,y.key,y.props,null,g.mode,C),C.ref=ul(g,T,y),C.return=g,g=C)}return a(g);case ns:e:{for(S=y.key;T!==null;){if(T.key===S)if(T.tag===4&&T.stateNode.containerInfo===y.containerInfo&&T.stateNode.implementation===y.implementation){n(g,T.sibling),T=i(T,y.children||[]),T.return=g,g=T;break e}else{n(g,T);break}else t(g,T);T=T.sibling}T=Zf(y,g.mode,C),T.return=g,g=T}return a(g);case go:return S=y._init,_(g,T,S(y._payload),C)}if(xl(y))return h(g,T,y,C);if(il(y))return v(g,T,y,C);x1(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,T!==null&&T.tag===6?(n(g,T.sibling),T=i(T,y),T.return=g,g=T):(n(g,T),T=Xf(y,g.mode,C),T.return=g,g=T),a(g)):n(g,T)}return _}var ws=U4(!0),z4=U4(!1),Hu={},gi=Ko(Hu),pu=Ko(Hu),mu=Ko(Hu);function fa(e){if(e===Hu)throw Error(W(174));return e}function im(e,t){switch(Ze(mu,t),Ze(pu,e),Ze(gi,Hu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:p0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=p0(t,e)}it(gi),Ze(gi,t)}function Rs(){it(gi),it(pu),it(mu)}function G4(e){fa(mu.current);var t=fa(gi.current),n=p0(t,e.type);t!==n&&(Ze(pu,e),Ze(gi,n))}function om(e){pu.current===e&&(it(gi),it(pu))}var ft=Ko(0);function Qc(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 jf=[];function am(){for(var e=0;en?n:4,e(!0);var r=$f.transition;$f.transition={};try{e(!1),t()}finally{Pe=n,$f.transition=r}}function iy(){return kr().memoizedState}function K6(e,t,n){var r=Oo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oy(e))ay(t,n);else if(n=O4(e,t,n,r),n!==null){var i=An();$r(n,e,r,i),sy(n,t,r)}}function W6(e,t,n){var r=Oo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oy(e))ay(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,Yr(s,a)){var l=t.interleaved;l===null?(i.next=i,nm(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=O4(e,t,i,r),n!==null&&(i=An(),$r(n,e,r,i),sy(n,t,r))}}function oy(e){var t=e.alternate;return e===ht||t!==null&&t===ht}function ay(e,t){Hl=Xc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gp(e,n)}}var Zc={readContext:br,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useInsertionEffect:Zt,useLayoutEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useMutableSource:Zt,useSyncExternalStore:Zt,useId:Zt,unstable_isNewReconciler:!1},j6={readContext:br,useCallback:function(e,t){return oi().memoizedState=[e,t===void 0?null:t],e},useContext:br,useEffect:v9,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pc(4194308,4,J4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pc(4194308,4,e,t)},useInsertionEffect:function(e,t){return pc(4,2,e,t)},useMemo:function(e,t){var n=oi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oi();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=K6.bind(null,ht,e),[r.memoizedState,e]},useRef:function(e){var t=oi();return e={current:e},t.memoizedState=e},useState:E9,useDebugValue:dm,useDeferredValue:function(e){return oi().memoizedState=e},useTransition:function(){var e=E9(!1),t=e[0];return e=G6.bind(null,e[1]),oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ht,i=oi();if(lt){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Ht===null)throw Error(W(349));Sa&30||j4(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,v9(V4.bind(null,r,o,e),[e]),r.flags|=2048,vu(9,$4.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=oi(),t=Ht.identifierPrefix;if(lt){var n=zi,r=Ui;n=(r&~(1<<32-jr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gu++,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[ui]=t,e[hu]=r,gy(e,t,!1,!1),t.stateNode=e;e:{switch(a=g0(n,r),n){case"dialog":Je("cancel",e),Je("close",e),i=r;break;case"iframe":case"object":case"embed":Je("load",e),i=r;break;case"video":case"audio":for(i=0;iPs&&(t.flags|=128,r=!0,cl(o,!1),t.lanes=4194304)}else{if(!r)if(e=Qc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!st)return Zt(t),null}else 2*Ct()-o.renderingStartTime>Ps&&n!==1073741824&&(t.flags|=128,r=!0,cl(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=Ct(),t.sibling=null,n=ct.current,Xe(ct,r?n&1|2:n&1),t):(Zt(t),null);case 22:case 23:return Em(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nr&1073741824&&(Zt(t),t.subtreeFlags&6&&(t.flags|=8192)):Zt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function J6(e,t){switch(Xp(t),t.tag){case 1:return Wn(t.type)&&Kc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ws(),nt(Kn),nt(rn),am(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return om(t),null;case 13:if(nt(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ns()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ct),null;case 4:return ws(),null;case 10:return tm(t.type._context),null;case 22:case 23:return Em(),null;case 24:return null;default:return null}}var D1=!1,en=!1,e3=typeof WeakSet=="function"?WeakSet:Set,ee=null;function ds(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Et(e,t,r)}else n.current=null}function K0(e,t,n){try{n()}catch(r){Et(e,t,r)}}var F9=!1;function t3(e,t){if(k0=Hc,e=C4(),qp(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 p;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),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=a),f===o&&++c===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(F0={focusedElem:e,selectionRange:n},Hc=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;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,_=h.memoizedState,g=t.stateNode,T=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ur(t.type,v),_);g.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(C){Et(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return h=F9,F9=!1,h}function Ul(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&&K0(t,n,o)}i=i.next}while(i!==r)}}function wd(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 W0(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 Ty(e){var t=e.alternate;t!==null&&(e.alternate=null,Ty(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ui],delete t[hu],delete t[N0],delete t[L6],delete t[B6])),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 yy(e){return e.tag===5||e.tag===3||e.tag===4}function I9(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yy(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 j0(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=Gc));else if(r!==4&&(e=e.child,e!==null))for(j0(e,t,n),e=e.sibling;e!==null;)j0(e,t,n),e=e.sibling}function $0(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($0(e,t,n),e=e.sibling;e!==null;)$0(e,t,n),e=e.sibling}var Gt=null,zr=!1;function oo(e,t,n){for(n=n.child;n!==null;)_y(e,t,n),n=n.sibling}function _y(e,t,n){if(mi&&typeof mi.onCommitFiberUnmount=="function")try{mi.onCommitFiberUnmount(Ad,n)}catch{}switch(n.tag){case 5:en||ds(n,t);case 6:var r=Gt,i=zr;Gt=null,oo(e,t,n),Gt=r,zr=i,Gt!==null&&(zr?(e=Gt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Gt.removeChild(n.stateNode));break;case 18:Gt!==null&&(zr?(e=Gt,n=n.stateNode,e.nodeType===8?Kf(e.parentNode,n):e.nodeType===1&&Kf(e,n),lu(e)):Kf(Gt,n.stateNode));break;case 4:r=Gt,i=zr,Gt=n.stateNode.containerInfo,zr=!0,oo(e,t,n),Gt=r,zr=i;break;case 0:case 11:case 14:case 15:if(!en&&(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)&&K0(n,t,a),i=i.next}while(i!==r)}oo(e,t,n);break;case 1:if(!en&&(ds(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Et(n,t,s)}oo(e,t,n);break;case 21:oo(e,t,n);break;case 22:n.mode&1?(en=(r=en)||n.memoizedState!==null,oo(e,t,n),en=r):oo(e,t,n);break;default:oo(e,t,n)}}function x9(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new e3),t.forEach(function(r){var i=c3.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Pr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Ct()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*r3(r/1960))-r,10e?16:e,bo===null)var r=!1;else{if(e=bo,bo=null,td=0,Ie&6)throw Error(W(331));var i=Ie;for(Ie|=4,ee=e.current;ee!==null;){var o=ee,a=o.child;if(ee.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lCt()-mm?ma(e,0):pm|=n),jn(e,t)}function xy(e,t){t===0&&(e.mode&1?(t=C1,C1<<=1,!(C1&130023424)&&(C1=4194304)):t=1);var n=Sn();e=ji(e,t),e!==null&&(Ou(e,t,n),jn(e,n))}function u3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xy(e,n)}function c3(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(W(314))}r!==null&&r.delete(t),xy(e,n)}var Ny;Ny=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kn.current)zn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return zn=!1,X6(e,t,n);zn=!!(e.flags&131072)}else zn=!1,st&&t.flags&1048576&&R4(t,$c,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;mc(e,t),e=t.pendingProps;var i=xs(t,rn.current);Cs(t,n),i=lm(null,t,r,e,i,n);var o=um();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,Wn(r)?(o=!0,Wc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rm(t),i.updater=Nd,t.stateNode=i,i._reactInternals=t,O0(t,r,e,n),t=H0(null,t,r,!0,o,n)):(t.tag=0,st&&o&&Qp(t),pn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(mc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=f3(r),e=Ur(r,e),i){case 0:t=B0(null,t,r,e,n);break e;case 1:t=A9(null,t,r,e,n);break e;case 11:t=C9(null,t,r,e,n);break e;case 14:t=S9(null,t,r,Ur(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ur(r,i),B0(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ur(r,i),A9(e,t,r,i,n);case 3:e:{if(hy(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,L4(e,t),qc(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=Rs(Error(W(423)),t),t=b9(e,t,r,n,i);break e}else if(r!==i){i=Rs(Error(W(424)),t),t=b9(e,t,r,n,i);break e}else for(rr=wo(t.stateNode.containerInfo.firstChild),lr=t,st=!0,Kr=null,n=z4(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ns(),r===i){t=$i(e,t,n);break e}pn(e,t,r,n)}t=t.child}return t;case 5:return G4(t),e===null&&R0(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,I0(r,i)?a=null:o!==null&&I0(r,o)&&(t.flags|=32),fy(e,t),pn(e,t,a,n),t.child;case 6:return e===null&&R0(t),null;case 13:return py(e,t,n);case 4:return im(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ds(t,null,r,n):pn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ur(r,i),C9(e,t,r,i,n);case 7:return pn(e,t,t.pendingProps,n),t.child;case 8:return pn(e,t,t.pendingProps.children,n),t.child;case 12:return pn(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,Xe(Vc,r._currentValue),r._currentValue=a,o!==null)if(qr(o.value,a)){if(o.children===i.children&&!Kn.current){t=$i(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=Gi(-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),P0(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(W(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),P0(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}pn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Cs(t,n),i=kr(i),r=r(i),t.flags|=1,pn(e,t,r,n),t.child;case 14:return r=t.type,i=Ur(r,t.pendingProps),i=Ur(r.type,i),S9(e,t,r,i,n);case 15:return cy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ur(r,i),mc(e,t),t.tag=1,Wn(r)?(e=!0,Wc(t)):e=!1,Cs(t,n),H4(t,r,i),O0(t,r,i,n),H0(null,t,r,!0,e,n);case 19:return my(e,t,n);case 22:return dy(e,t,n)}throw Error(W(156,t.tag))};function Dy(e,t){return r4(e,t)}function d3(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 Cr(e,t,n,r){return new d3(e,t,n,r)}function Tm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function f3(e){if(typeof e=="function")return Tm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bp)return 11;if(e===Hp)return 14}return 2}function Oo(e,t){var n=e.alternate;return n===null?(n=Cr(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 vc(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Tm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ns:return ga(n.children,i,o,t);case Lp:a=8,i|=8;break;case a0:return e=Cr(12,n,t,i|2),e.elementType=a0,e.lanes=o,e;case s0:return e=Cr(13,n,t,i),e.elementType=s0,e.lanes=o,e;case l0:return e=Cr(19,n,t,i),e.elementType=l0,e.lanes=o,e;case UT:return Pd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case BT:a=10;break e;case HT:a=9;break e;case Bp:a=11;break e;case Hp:a=14;break e;case mo:a=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=Cr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ga(e,t,n,r){return e=Cr(7,e,r,t),e.lanes=n,e}function Pd(e,t,n,r){return e=Cr(22,e,r,t),e.elementType=UT,e.lanes=n,e.stateNode={isHidden:!1},e}function Xf(e,t,n){return e=Cr(6,e,null,t),e.lanes=n,e}function Zf(e,t,n){return t=Cr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function h3(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=wf(0),this.expirationTimes=wf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ym(e,t,n,r,i,o,a,s,l){return e=new h3(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Cr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rm(o),e}function p3(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=dr})(mS);var L9=Rc;r0.createRoot=L9.createRoot,r0.hydrateRoot=L9.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function qf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function L0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Y6=typeof WeakMap=="function"?WeakMap:Map;function ly(e,t,n){n=Ki(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ed||(ed=!0,V0=r),L0(e,t)},n}function uy(e,t,n){n=Ki(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){L0(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){L0(e,t),typeof r!="function"&&(Mo===null?Mo=new Set([this]):Mo.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function T9(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Y6;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=l3.bind(null,e,t,n),t.then(e,e))}function y9(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function _9(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ki(-1,1),t.tag=2,Po(n,t,1))),n.lanes|=1),e)}var q6=Zi.ReactCurrentOwner,zn=!1;function mn(e,t,n,r){t.child=e===null?z4(t,null,n,r):ws(t,e.child,n,r)}function C9(e,t,n,r,i){n=n.render;var o=t.ref;return Ss(t,i),r=lm(e,t,n,r,o,i),n=um(),e!==null&&!zn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vi(e,t,i)):(lt&&n&&Qp(t),t.flags|=1,mn(e,t,r,i),t.child)}function S9(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Tm(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,cy(e,t,o,r,i)):(e=vc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:cu,n(a,r)&&e.ref===t.ref)return Vi(e,t,i)}return t.flags|=1,e=Lo(o,r),e.ref=t.ref,e.return=t,t.child=e}function cy(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(cu(o,r)&&e.ref===t.ref)if(zn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(zn=!0);else return t.lanes=e.lanes,Vi(e,t,i)}return B0(e,t,n,r,i)}function dy(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ze(hs,er),er|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ze(hs,er),er|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ze(hs,er),er|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ze(hs,er),er|=r;return mn(e,t,i,n),t.child}function fy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function B0(e,t,n,r,i){var o=Wn(n)?_a:on.current;return o=Ns(t,o),Ss(t,i),n=lm(e,t,n,r,o,i),r=um(),e!==null&&!zn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vi(e,t,i)):(lt&&r&&Qp(t),t.flags|=1,mn(e,t,n,i),t.child)}function A9(e,t,n,r,i){if(Wn(n)){var o=!0;Wc(t)}else o=!1;if(Ss(t,i),t.stateNode===null)mc(e,t),H4(t,n,r),O0(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=br(u):(u=Wn(n)?_a:on.current,u=Ns(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&m9(t,a,r,u),Eo=!1;var f=t.memoizedState;a.state=f,qc(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Kn.current||Eo?(typeof c=="function"&&(M0(t,n,c,r),l=t.memoizedState),(s=Eo||p9(t,n,s,r,f,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,L4(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Hr(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=br(l):(l=Wn(n)?_a:on.current,l=Ns(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&m9(t,a,r,l),Eo=!1,f=t.memoizedState,a.state=f,qc(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||Kn.current||Eo?(typeof p=="function"&&(M0(t,n,p,r),h=t.memoizedState),(u=Eo||p9(t,n,u,r,f,h,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,h,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return H0(e,t,n,r,o,i)}function H0(e,t,n,r,i,o){fy(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&u9(t,n,!1),Vi(e,t,o);r=t.stateNode,q6.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ws(t,e.child,null,o),t.child=ws(t,null,s,o)):mn(e,t,s,o),t.memoizedState=r.state,i&&u9(t,n,!0),t.child}function hy(e){var t=e.stateNode;t.pendingContext?l9(e,t.pendingContext,t.pendingContext!==t.context):t.context&&l9(e,t.context,!1),im(e,t.containerInfo)}function b9(e,t,n,r,i){return Ds(),Zp(i),t.flags|=256,mn(e,t,n,r),t.child}var U0={dehydrated:null,treeContext:null,retryLane:0};function z0(e){return{baseLanes:e,cachePool:null,transitions:null}}function py(e,t,n){var r=t.pendingProps,i=ft.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ze(ft,i&1),e===null)return R0(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Pd(a,r,0,null),e=Ea(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=z0(n),t.memoizedState=U0,e):fm(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Q6(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Lo(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Lo(s,o):(o=Ea(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?z0(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=U0,r}return o=e.child,e=o.sibling,r=Lo(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function fm(e,t){return t=Pd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function N1(e,t,n,r){return r!==null&&Zp(r),ws(t,e.child,null,n),e=fm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Q6(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=qf(Error(W(422))),N1(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Pd({mode:"visible",children:r.children},i,0,null),o=Ea(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ws(t,e.child,null,a),t.child.memoizedState=z0(a),t.memoizedState=U0,o);if(!(t.mode&1))return N1(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(W(419)),r=qf(o,r,void 0),N1(e,t,a,r)}if(s=(a&e.childLanes)!==0,zn||s){if(r=Ht,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,$i(e,i),$r(r,e,i,-1))}return vm(),r=qf(Error(W(421))),N1(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=u3.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,tr=Ro(i.nextSibling),ar=t,lt=!0,Gr=null,e!==null&&(gr[Er++]=Ui,gr[Er++]=zi,gr[Er++]=Ca,Ui=e.id,zi=e.overflow,Ca=t),t=fm(t,r.children),t.flags|=4096,t)}function k9(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),P0(e.return,t,n)}function Qf(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function my(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(mn(e,t,r.children,n),r=ft.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&k9(e,n,t);else if(e.tag===19)k9(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ze(ft,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Qc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qf(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Qc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qf(t,!0,n,null,o);break;case"together":Qf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Aa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=Lo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Lo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function X6(e,t,n){switch(t.tag){case 3:hy(t),Ds();break;case 5:G4(t);break;case 1:Wn(t.type)&&Wc(t);break;case 4:im(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ze(Vc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ze(ft,ft.current&1),t.flags|=128,null):n&t.child.childLanes?py(e,t,n):(Ze(ft,ft.current&1),e=Vi(e,t,n),e!==null?e.sibling:null);Ze(ft,ft.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return my(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ze(ft,ft.current),r)break;return null;case 22:case 23:return t.lanes=0,dy(e,t,n)}return Vi(e,t,n)}var gy,G0,Ey,vy;gy=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};G0=function(){};Ey=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,fa(gi.current);var o=null;switch(n){case"input":i=c0(e,i),r=c0(e,r),o=[];break;case"select":i=pt({},i,{value:void 0}),r=pt({},r,{value:void 0}),o=[];break;case"textarea":i=h0(e,i),r=h0(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gc)}m0(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ru.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ru.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&tt("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};vy=function(e,t,n,r){n!==r&&(t.flags|=4)};function cl(e,t){if(!lt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Jt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Z6(e,t,n){var r=t.pendingProps;switch(Xp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jt(t),null;case 1:return Wn(t.type)&&Kc(),Jt(t),null;case 3:return r=t.stateNode,Rs(),it(Kn),it(on),am(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(I1(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gr!==null&&(Q0(Gr),Gr=null))),G0(e,t),Jt(t),null;case 5:om(t);var i=fa(mu.current);if(n=t.type,e!==null&&t.stateNode!=null)Ey(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return Jt(t),null}if(e=fa(gi.current),I1(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ui]=t,r[hu]=o,e=(t.mode&1)!==0,n){case"dialog":tt("cancel",r),tt("close",r);break;case"iframe":case"object":case"embed":tt("load",r);break;case"video":case"audio":for(i=0;i<\/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[ui]=t,e[hu]=r,gy(e,t,!1,!1),t.stateNode=e;e:{switch(a=g0(n,r),n){case"dialog":tt("cancel",e),tt("close",e),i=r;break;case"iframe":case"object":case"embed":tt("load",e),i=r;break;case"video":case"audio":for(i=0;iMs&&(t.flags|=128,r=!0,cl(o,!1),t.lanes=4194304)}else{if(!r)if(e=Qc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!lt)return Jt(t),null}else 2*St()-o.renderingStartTime>Ms&&n!==1073741824&&(t.flags|=128,r=!0,cl(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=St(),t.sibling=null,n=ft.current,Ze(ft,r?n&1|2:n&1),t):(Jt(t),null);case 22:case 23:return Em(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?er&1073741824&&(Jt(t),t.subtreeFlags&6&&(t.flags|=8192)):Jt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function J6(e,t){switch(Xp(t),t.tag){case 1:return Wn(t.type)&&Kc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rs(),it(Kn),it(on),am(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return om(t),null;case 13:if(it(ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return it(ft),null;case 4:return Rs(),null;case 10:return tm(t.type._context),null;case 22:case 23:return Em(),null;case 24:return null;default:return null}}var D1=!1,tn=!1,e3=typeof WeakSet=="function"?WeakSet:Set,ee=null;function fs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Tt(e,t,r)}else n.current=null}function K0(e,t,n){try{n()}catch(r){Tt(e,t,r)}}var F9=!1;function t3(e,t){if(k0=Hc,e=C4(),qp(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 p;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),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=a),f===o&&++c===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(F0={focusedElem:e,selectionRange:n},Hc=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;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,_=h.memoizedState,g=t.stateNode,T=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Hr(t.type,v),_);g.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(C){Tt(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return h=F9,F9=!1,h}function Ul(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&&K0(t,n,o)}i=i.next}while(i!==r)}}function wd(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 W0(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 Ty(e){var t=e.alternate;t!==null&&(e.alternate=null,Ty(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ui],delete t[hu],delete t[N0],delete t[L6],delete t[B6])),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 yy(e){return e.tag===5||e.tag===3||e.tag===4}function I9(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yy(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 j0(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=Gc));else if(r!==4&&(e=e.child,e!==null))for(j0(e,t,n),e=e.sibling;e!==null;)j0(e,t,n),e=e.sibling}function $0(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($0(e,t,n),e=e.sibling;e!==null;)$0(e,t,n),e=e.sibling}var Wt=null,Ur=!1;function ao(e,t,n){for(n=n.child;n!==null;)_y(e,t,n),n=n.sibling}function _y(e,t,n){if(mi&&typeof mi.onCommitFiberUnmount=="function")try{mi.onCommitFiberUnmount(Ad,n)}catch{}switch(n.tag){case 5:tn||fs(n,t);case 6:var r=Wt,i=Ur;Wt=null,ao(e,t,n),Wt=r,Ur=i,Wt!==null&&(Ur?(e=Wt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Wt.removeChild(n.stateNode));break;case 18:Wt!==null&&(Ur?(e=Wt,n=n.stateNode,e.nodeType===8?Kf(e.parentNode,n):e.nodeType===1&&Kf(e,n),lu(e)):Kf(Wt,n.stateNode));break;case 4:r=Wt,i=Ur,Wt=n.stateNode.containerInfo,Ur=!0,ao(e,t,n),Wt=r,Ur=i;break;case 0:case 11:case 14:case 15:if(!tn&&(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)&&K0(n,t,a),i=i.next}while(i!==r)}ao(e,t,n);break;case 1:if(!tn&&(fs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Tt(n,t,s)}ao(e,t,n);break;case 21:ao(e,t,n);break;case 22:n.mode&1?(tn=(r=tn)||n.memoizedState!==null,ao(e,t,n),tn=r):ao(e,t,n);break;default:ao(e,t,n)}}function x9(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new e3),t.forEach(function(r){var i=c3.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Rr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=St()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*r3(r/1960))-r,10e?16:e,ko===null)var r=!1;else{if(e=ko,ko=null,td=0,xe&6)throw Error(W(331));var i=xe;for(xe|=4,ee=e.current;ee!==null;){var o=ee,a=o.child;if(ee.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lSt()-mm?ga(e,0):pm|=n),jn(e,t)}function xy(e,t){t===0&&(e.mode&1?(t=C1,C1<<=1,!(C1&130023424)&&(C1=4194304)):t=1);var n=An();e=$i(e,t),e!==null&&(Ou(e,t,n),jn(e,n))}function u3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xy(e,n)}function c3(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(W(314))}r!==null&&r.delete(t),xy(e,n)}var Ny;Ny=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kn.current)zn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return zn=!1,X6(e,t,n);zn=!!(e.flags&131072)}else zn=!1,lt&&t.flags&1048576&&R4(t,$c,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;mc(e,t),e=t.pendingProps;var i=Ns(t,on.current);Ss(t,n),i=lm(null,t,r,e,i,n);var o=um();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,Wn(r)?(o=!0,Wc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rm(t),i.updater=Nd,t.stateNode=i,i._reactInternals=t,O0(t,r,e,n),t=H0(null,t,r,!0,o,n)):(t.tag=0,lt&&o&&Qp(t),mn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(mc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=f3(r),e=Hr(r,e),i){case 0:t=B0(null,t,r,e,n);break e;case 1:t=A9(null,t,r,e,n);break e;case 11:t=C9(null,t,r,e,n);break e;case 14:t=S9(null,t,r,Hr(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Hr(r,i),B0(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Hr(r,i),A9(e,t,r,i,n);case 3:e:{if(hy(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,L4(e,t),qc(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=Ps(Error(W(423)),t),t=b9(e,t,r,n,i);break e}else if(r!==i){i=Ps(Error(W(424)),t),t=b9(e,t,r,n,i);break e}else for(tr=Ro(t.stateNode.containerInfo.firstChild),ar=t,lt=!0,Gr=null,n=z4(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ds(),r===i){t=Vi(e,t,n);break e}mn(e,t,r,n)}t=t.child}return t;case 5:return G4(t),e===null&&R0(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,I0(r,i)?a=null:o!==null&&I0(r,o)&&(t.flags|=32),fy(e,t),mn(e,t,a,n),t.child;case 6:return e===null&&R0(t),null;case 13:return py(e,t,n);case 4:return im(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ws(t,null,r,n):mn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Hr(r,i),C9(e,t,r,i,n);case 7:return mn(e,t,t.pendingProps,n),t.child;case 8:return mn(e,t,t.pendingProps.children,n),t.child;case 12:return mn(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,Ze(Vc,r._currentValue),r._currentValue=a,o!==null)if(Yr(o.value,a)){if(o.children===i.children&&!Kn.current){t=Vi(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=Ki(-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),P0(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(W(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),P0(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}mn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ss(t,n),i=br(i),r=r(i),t.flags|=1,mn(e,t,r,n),t.child;case 14:return r=t.type,i=Hr(r,t.pendingProps),i=Hr(r.type,i),S9(e,t,r,i,n);case 15:return cy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Hr(r,i),mc(e,t),t.tag=1,Wn(r)?(e=!0,Wc(t)):e=!1,Ss(t,n),H4(t,r,i),O0(t,r,i,n),H0(null,t,r,!0,e,n);case 19:return my(e,t,n);case 22:return dy(e,t,n)}throw Error(W(156,t.tag))};function Dy(e,t){return r4(e,t)}function d3(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 _r(e,t,n,r){return new d3(e,t,n,r)}function Tm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function f3(e){if(typeof e=="function")return Tm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bp)return 11;if(e===Hp)return 14}return 2}function Lo(e,t){var n=e.alternate;return n===null?(n=_r(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 vc(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Tm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case rs:return Ea(n.children,i,o,t);case Lp:a=8,i|=8;break;case a0:return e=_r(12,n,t,i|2),e.elementType=a0,e.lanes=o,e;case s0:return e=_r(13,n,t,i),e.elementType=s0,e.lanes=o,e;case l0:return e=_r(19,n,t,i),e.elementType=l0,e.lanes=o,e;case UT:return Pd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case BT:a=10;break e;case HT:a=9;break e;case Bp:a=11;break e;case Hp:a=14;break e;case go:a=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=_r(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ea(e,t,n,r){return e=_r(7,e,r,t),e.lanes=n,e}function Pd(e,t,n,r){return e=_r(22,e,r,t),e.elementType=UT,e.lanes=n,e.stateNode={isHidden:!1},e}function Xf(e,t,n){return e=_r(6,e,null,t),e.lanes=n,e}function Zf(e,t,n){return t=_r(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function h3(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=wf(0),this.expirationTimes=wf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ym(e,t,n,r,i,o,a,s,l){return e=new h3(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=_r(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rm(o),e}function p3(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=ur})(mS);var L9=Rc;r0.createRoot=L9.createRoot,r0.hydrateRoot=L9.hydrateRoot;/** * @remix-run/router v1.3.2 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function y3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _3(){return Math.random().toString(36).substr(2,8)}function H9(e,t){return{usr:e.state,key:e.key,idx:t}}function X0(e,t,n,r){return n===void 0&&(n=null),yu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Da(t):t,{state:n,key:t&&t.key||r||_3()})}function id(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 Da(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 C3(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=ko.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(yu({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=ko.Pop;let _=c(),g=_==null?null:_-u;u=_,l&&l({action:s,location:v.location,delta:g})}function f(_,g){s=ko.Push;let T=X0(v.location,_,g);n&&n(T,_),u=c()+1;let y=H9(T,u),C=v.createHref(T);try{a.pushState(y,"",C)}catch{i.location.assign(C)}o&&l&&l({action:s,location:v.location,delta:1})}function p(_,g){s=ko.Replace;let T=X0(v.location,_,g);n&&n(T,_),u=c();let y=H9(T,u),C=v.createHref(T);a.replaceState(y,"",C),o&&l&&l({action:s,location:v.location,delta:0})}function h(_){let g=i.location.origin!=="null"?i.location.origin:i.location.href,T=typeof _=="string"?_:id(_);return xt(g,"No window.location.(origin|href) available to create URL for href: "+T),new URL(T,g)}let v={get action(){return s},get location(){return e(i,a)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(B9,d),l=_,()=>{i.removeEventListener(B9,d),l=null}},createHref(_){return t(i,_)},createURL:h,encodeLocation(_){let g=h(_);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(_){return a.go(_)}};return v}var U9;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(U9||(U9={}));function S3(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Da(t):t,i=Ly(r.pathname||"/",n);if(i==null)return null;let o=My(e);A3(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("/")&&(xt(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=Lo([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(xt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),My(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:D3(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 Oy(o.path))i(o,a,l)}),t}function Oy(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=Oy(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 A3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:w3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const b3=/^:\w+$/,k3=3,F3=2,I3=1,x3=10,N3=-2,z9=e=>e==="*";function D3(e,t){let n=e.split("/"),r=n.length;return n.some(z9)&&(r+=N3),t&&(r+=F3),n.filter(i=>!z9(i)).reduce((i,o)=>i+(b3.test(o)?k3:o===""?I3:x3),r)}function w3(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 R3(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]=L3(s[d]||"",c),u},{}),pathname:o,pathnameBase:a,pattern:e}}function M3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Am(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 O3(e){try{return decodeURI(e)}catch(t){return Am(!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 L3(e,t){try{return decodeURIComponent(e)}catch(n){return Am(!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 Ly(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 Am(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function B3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Da(e):e;return{pathname:n?n.startsWith("/")?n:H3(n,t):t,search:z3(r),hash:G3(i)}}function H3(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 Jf(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 By(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hy(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Da(e):(i=yu({},e),xt(!i.pathname||!i.pathname.includes("?"),Jf("?","pathname","search",i)),xt(!i.pathname||!i.pathname.includes("#"),Jf("#","pathname","hash",i)),xt(!i.search||!i.search.includes("#"),Jf("#","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=B3(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Lo=e=>e.join("/").replace(/\/\/+/g,"/"),U3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,G3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function K3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const W3=["post","put","patch","delete"];[...W3];/** + */function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function y3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _3(){return Math.random().toString(36).substr(2,8)}function H9(e,t){return{usr:e.state,key:e.key,idx:t}}function X0(e,t,n,r){return n===void 0&&(n=null),yu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wa(t):t,{state:n,key:t&&t.key||r||_3()})}function id(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 wa(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 C3(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Fo.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(yu({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=Fo.Pop;let _=c(),g=_==null?null:_-u;u=_,l&&l({action:s,location:v.location,delta:g})}function f(_,g){s=Fo.Push;let T=X0(v.location,_,g);n&&n(T,_),u=c()+1;let y=H9(T,u),C=v.createHref(T);try{a.pushState(y,"",C)}catch{i.location.assign(C)}o&&l&&l({action:s,location:v.location,delta:1})}function p(_,g){s=Fo.Replace;let T=X0(v.location,_,g);n&&n(T,_),u=c();let y=H9(T,u),C=v.createHref(T);a.replaceState(y,"",C),o&&l&&l({action:s,location:v.location,delta:0})}function h(_){let g=i.location.origin!=="null"?i.location.origin:i.location.href,T=typeof _=="string"?_:id(_);return Dt(g,"No window.location.(origin|href) available to create URL for href: "+T),new URL(T,g)}let v={get action(){return s},get location(){return e(i,a)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(B9,d),l=_,()=>{i.removeEventListener(B9,d),l=null}},createHref(_){return t(i,_)},createURL:h,encodeLocation(_){let g=h(_);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(_){return a.go(_)}};return v}var U9;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(U9||(U9={}));function S3(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?wa(t):t,i=Ly(r.pathname||"/",n);if(i==null)return null;let o=My(e);A3(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("/")&&(Dt(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=Bo([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),My(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:D3(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 Oy(o.path))i(o,a,l)}),t}function Oy(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=Oy(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 A3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:w3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const b3=/^:\w+$/,k3=3,F3=2,I3=1,x3=10,N3=-2,z9=e=>e==="*";function D3(e,t){let n=e.split("/"),r=n.length;return n.some(z9)&&(r+=N3),t&&(r+=F3),n.filter(i=>!z9(i)).reduce((i,o)=>i+(b3.test(o)?k3:o===""?I3:x3),r)}function w3(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 R3(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]=L3(s[d]||"",c),u},{}),pathname:o,pathnameBase:a,pattern:e}}function M3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Am(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 O3(e){try{return decodeURI(e)}catch(t){return Am(!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 L3(e,t){try{return decodeURIComponent(e)}catch(n){return Am(!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 Ly(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 Am(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function B3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?wa(e):e;return{pathname:n?n.startsWith("/")?n:H3(n,t):t,search:z3(r),hash:G3(i)}}function H3(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 Jf(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 By(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hy(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=wa(e):(i=yu({},e),Dt(!i.pathname||!i.pathname.includes("?"),Jf("?","pathname","search",i)),Dt(!i.pathname||!i.pathname.includes("#"),Jf("#","pathname","hash",i)),Dt(!i.search||!i.search.includes("#"),Jf("#","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=B3(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Bo=e=>e.join("/").replace(/\/\/+/g,"/"),U3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,G3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function K3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const W3=["post","put","patch","delete"];[...W3];/** * React Router v6.8.1 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Z0(){return Z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,eh(i)&&o({inst:i})},[e,r,t]),Y3(()=>(eh(i)&&o({inst:i}),e(()=>{eh(i)&&o({inst:i})})),[e]),Q3(r),r}function eh(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!$3(n,r)}catch{return!0}}function Z3(e,t,n){return t()}const J3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",e7=!J3,t7=e7?Z3:X3;"useSyncExternalStore"in wc&&(e=>e.useSyncExternalStore)(wc);const Uy=E.createContext(null),zy=E.createContext(null),Hd=E.createContext(null),Ud=E.createContext(null),wa=E.createContext({outlet:null,matches:[]}),Gy=E.createContext(null);function n7(e,t){let{relative:n}=t===void 0?{}:t;Uu()||xt(!1);let{basename:r,navigator:i}=E.useContext(Hd),{hash:o,pathname:a,search:s}=Ky(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Lo([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Uu(){return E.useContext(Ud)!=null}function zd(){return Uu()||xt(!1),E.useContext(Ud).location}function r7(){Uu()||xt(!1);let{basename:e,navigator:t}=E.useContext(Hd),{matches:n}=E.useContext(wa),{pathname:r}=zd(),i=JSON.stringify(By(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=Hy(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Lo([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}const i7=E.createContext(null);function o7(e){let t=E.useContext(wa).outlet;return t&&E.createElement(i7.Provider,{value:e},t)}function Ky(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=E.useContext(wa),{pathname:i}=zd(),o=JSON.stringify(By(r).map(a=>a.pathnameBase));return E.useMemo(()=>Hy(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function a7(e,t){Uu()||xt(!1);let{navigator:n}=E.useContext(Hd),r=E.useContext(zy),{matches:i}=E.useContext(wa),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=zd(),u;if(t){var c;let v=typeof t=="string"?Da(t):t;s==="/"||(c=v.pathname)!=null&&c.startsWith(s)||xt(!1),u=v}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",p=S3(e,{pathname:f}),h=c7(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:Lo([s,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:Lo([s,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r||void 0);return t&&h?E.createElement(Ud.Provider,{value:{location:Z0({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ko.Pop}},h):h}function s7(){let e=p7(),t=K3(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 l7 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(wa.Provider,{value:this.props.routeContext},E.createElement(Gy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function u7(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(Uy);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(wa.Provider,{value:t},r)}function c7(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||xt(!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(s7,null):null,c=t.concat(r.slice(0,s+1)),d=()=>E.createElement(u7,{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(l7,{location:n.location,component:u,error:l,children:d(),routeContext:{outlet:null,matches:c}}):d()},null)}var G9;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(G9||(G9={}));var od;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(od||(od={}));function d7(e){let t=E.useContext(zy);return t||xt(!1),t}function f7(e){let t=E.useContext(wa);return t||xt(!1),t}function h7(e){let t=f7(),n=t.matches[t.matches.length-1];return n.route.id||xt(!1),n.route.id}function p7(){var e;let t=E.useContext(Gy),n=d7(od.UseRouteError),r=h7(od.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function m7(e){return o7(e.context)}function Tc(e){xt(!1)}function g7(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ko.Pop,navigator:o,static:a=!1}=e;Uu()&&xt(!1);let s=t.replace(/^\/*/,"/"),l=E.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=Da(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:p="default"}=r,h=E.useMemo(()=>{let v=Ly(u,s);return v==null?null:{pathname:v,search:c,hash:d,state:f,key:p}},[s,u,c,d,f,p]);return h==null?null:E.createElement(Hd.Provider,{value:l},E.createElement(Ud.Provider,{children:n,value:{location:h,navigationType:i}}))}function E7(e){let{children:t,location:n}=e,r=E.useContext(Uy),i=r&&!t?r.router.routes:J0(t);return a7(i,n)}var K9;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(K9||(K9={}));new Promise(()=>{});function J0(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,J0(r.props.children,t));return}r.type!==Tc&&xt(!1),!r.props.index||!r.props.children||xt(!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=J0(r.props.children,o)),n.push(a)}),n}/** + */function Z0(){return Z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,eh(i)&&o({inst:i})},[e,r,t]),Y3(()=>(eh(i)&&o({inst:i}),e(()=>{eh(i)&&o({inst:i})})),[e]),Q3(r),r}function eh(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!$3(n,r)}catch{return!0}}function Z3(e,t,n){return t()}const J3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",e7=!J3,t7=e7?Z3:X3;"useSyncExternalStore"in wc&&(e=>e.useSyncExternalStore)(wc);const Uy=E.createContext(null),zy=E.createContext(null),Hd=E.createContext(null),Ud=E.createContext(null),Ra=E.createContext({outlet:null,matches:[]}),Gy=E.createContext(null);function n7(e,t){let{relative:n}=t===void 0?{}:t;Uu()||Dt(!1);let{basename:r,navigator:i}=E.useContext(Hd),{hash:o,pathname:a,search:s}=Ky(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Bo([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Uu(){return E.useContext(Ud)!=null}function zd(){return Uu()||Dt(!1),E.useContext(Ud).location}function r7(){Uu()||Dt(!1);let{basename:e,navigator:t}=E.useContext(Hd),{matches:n}=E.useContext(Ra),{pathname:r}=zd(),i=JSON.stringify(By(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=Hy(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Bo([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}const i7=E.createContext(null);function o7(e){let t=E.useContext(Ra).outlet;return t&&E.createElement(i7.Provider,{value:e},t)}function Ky(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=E.useContext(Ra),{pathname:i}=zd(),o=JSON.stringify(By(r).map(a=>a.pathnameBase));return E.useMemo(()=>Hy(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function a7(e,t){Uu()||Dt(!1);let{navigator:n}=E.useContext(Hd),r=E.useContext(zy),{matches:i}=E.useContext(Ra),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=zd(),u;if(t){var c;let v=typeof t=="string"?wa(t):t;s==="/"||(c=v.pathname)!=null&&c.startsWith(s)||Dt(!1),u=v}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",p=S3(e,{pathname:f}),h=c7(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:Bo([s,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:Bo([s,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r||void 0);return t&&h?E.createElement(Ud.Provider,{value:{location:Z0({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Fo.Pop}},h):h}function s7(){let e=p7(),t=K3(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 l7 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(Ra.Provider,{value:this.props.routeContext},E.createElement(Gy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function u7(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(Uy);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Ra.Provider,{value:t},r)}function c7(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||Dt(!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(s7,null):null,c=t.concat(r.slice(0,s+1)),d=()=>E.createElement(u7,{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(l7,{location:n.location,component:u,error:l,children:d(),routeContext:{outlet:null,matches:c}}):d()},null)}var G9;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(G9||(G9={}));var od;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(od||(od={}));function d7(e){let t=E.useContext(zy);return t||Dt(!1),t}function f7(e){let t=E.useContext(Ra);return t||Dt(!1),t}function h7(e){let t=f7(),n=t.matches[t.matches.length-1];return n.route.id||Dt(!1),n.route.id}function p7(){var e;let t=E.useContext(Gy),n=d7(od.UseRouteError),r=h7(od.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function m7(e){return o7(e.context)}function Tc(e){Dt(!1)}function g7(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Fo.Pop,navigator:o,static:a=!1}=e;Uu()&&Dt(!1);let s=t.replace(/^\/*/,"/"),l=E.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=wa(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:p="default"}=r,h=E.useMemo(()=>{let v=Ly(u,s);return v==null?null:{pathname:v,search:c,hash:d,state:f,key:p}},[s,u,c,d,f,p]);return h==null?null:E.createElement(Hd.Provider,{value:l},E.createElement(Ud.Provider,{children:n,value:{location:h,navigationType:i}}))}function E7(e){let{children:t,location:n}=e,r=E.useContext(Uy),i=r&&!t?r.router.routes:J0(t);return a7(i,n)}var K9;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(K9||(K9={}));new Promise(()=>{});function J0(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,J0(r.props.children,t));return}r.type!==Tc&&Dt(!1),!r.props.index||!r.props.children||Dt(!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=J0(r.props.children,o)),n.push(a)}),n}/** * React Router DOM v6.8.1 * * Copyright (c) Remix Software Inc. @@ -64,47 +64,47 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function T7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function y7(e,t){return e.button===0&&(!t||t==="_self")&&!T7(e)}const _7=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function C7(e){let{basename:t,children:n,window:r}=e,i=E.useRef();i.current==null&&(i.current=T3({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(g7,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const S7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",A7=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,d=v7(t,_7),f,p=!1;if(S7&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){f=u;let g=new URL(window.location.href),T=u.startsWith("//")?new URL(g.protocol+u):new URL(u);T.origin===g.origin?u=T.pathname+T.search+T.hash:p=!0}let h=n7(u,{relative:i}),v=b7(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});function _(g){r&&r(g),g.defaultPrevented||v(g)}return E.createElement("a",ep({},d,{href:f||h,onClick:p||o?r:_,ref:n,target:l}))});var W9;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(W9||(W9={}));var j9;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(j9||(j9={}));function b7(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=r7(),l=zd(),u=Ky(e,{relative:a});return E.useCallback(c=>{if(y7(c,n)){c.preventDefault();let d=r!==void 0?r:id(l)===id(u);s(e,{replace:d,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}var $9={},yc=void 0;try{yc=window}catch{}function bm(e,t){if(typeof yc<"u"){var n=yc.__packages__=yc.__packages__||{};if(!n[e]||!$9[e]){$9[e]=t;var r=n[e]=n[e]||[];r.push(t)}}}bm("@fluentui/set-version","6.0.0");var tp=function(e,t){return tp=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])},tp(e,t)};function $e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var N=function(){return N=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 Qr(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r"u"?fl.none:fl.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(Ua=Qa[V9],!Ua||Ua._lastStyleElement&&Ua._lastStyleElement.ownerDocument!==document){var t=(Qa==null?void 0:Qa.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);Ua=n,Qa[V9]=n}return Ua},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=N(N({},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!==fl.none?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),i)switch(r){case fl.insertNode:var o=i.sheet;try{o.insertRule(t,o.cssRules.length)}catch{}break;case fl.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(),k7||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 Wy(){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 jy(e){As!==e&&(As=e)}function $y(){return As===void 0&&(As=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),As}var As;As=$y();function Gd(){return{rtl:$y()}}var Y9={};function F7(e,t){var n=e[t];n.charAt(0)!=="-"&&(e[t]=Y9[n]=Y9[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var P1;function I7(){var e;if(!P1){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?P1={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)))}:P1={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return P1}var q9={"user-select":1};function x7(e,t){var n=I7(),r=e[t];if(q9[r]){var i=e[t+1];q9[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 N7=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function D7(e,t){var n=e[t],r=e[t+1];if(typeof r=="number"){var i=N7.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]="".concat(r).concat(a)}}var M1,Eo="left",vo="right",w7="@noflip",Q9=(M1={},M1[Eo]=vo,M1[vo]=Eo,M1),X9={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function R7(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if(typeof i=="string"&&i.indexOf(w7)>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(Eo)>=0)t[n]=r.replace(Eo,vo);else if(r.indexOf(vo)>=0)t[n]=r.replace(vo,Eo);else if(String(i).indexOf(Eo)>=0)t[n+1]=i.replace(Eo,vo);else if(String(i).indexOf(vo)>=0)t[n+1]=i.replace(vo,Eo);else if(Q9[r])t[n]=Q9[r];else if(X9[i])t[n+1]=X9[i];else switch(r){case"margin":case"padding":t[n+1]=M7(i);break;case"box-shadow":t[n+1]=P7(i,0);break}}}function P7(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 M7(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 O7(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 Z9(e,t){return e.indexOf(":global(")>=0?e.replace(Vy,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function J9(e,t,n,r){t===void 0&&(t={__order:[]}),n.indexOf("@")===0?(n=n+"{"+e,bs([r],t,n)):n.indexOf(",")>-1?H7(n).split(",").map(function(i){return i.trim()}).forEach(function(i){return bs([r],t,Z9(i,e))}):bs([r],t,Z9(n,e))}function bs(e,t,n){t===void 0&&(t={__order:[]}),n===void 0&&(n="&");var r=Ir.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,p=function(h){if(r.hasOwnProperty(h)){var v=r[h];f[h]=function(_){return _i.apply(void 0,v.map(function(g){return typeof g=="function"?g(_):g}))}}};for(var u in r)p(u)}return n}function zu(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:np}}var Vs=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=rt(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=rt(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(),_=v-l,g=a?o-_:o;return _>=o&&(!h||a)?(l=v,d&&(i.clearTimeout(d),d=null),u=t.apply(i._parent,c)):d===null&&s&&(d=i.setTimeout(f,g)),u},p=function(){for(var h=[],v=0;v=a&&(D=!0),c=A);var P=A-c,x=a-P,R=A-d,O=!1;return u!==null&&(R>=u&&h?O=!0:x=Math.min(x,u-R)),P>=a||O||D?_(A):(h===null||!S)&&l&&(h=i.setTimeout(g,x)),f},T=function(){return!!h},y=function(){T()&&v(Date.now())},C=function(){return T()&&_(Date.now()),f},k=function(){for(var S=[],A=0;A-1)for(var a=n.split(/[ ,]+/),s=0;s"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var th,Kl=0,t_=ci({overflow:"hidden !important"}),eE="data-is-scrollable",j7=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=Im(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}},$7=function(e,t){if(e){var n=function(r){r.stopPropagation()};t.on(e,"touchmove",n,{passive:!1})}},n_=function(e){e.preventDefault()};function V7(){var e=An();e&&e.body&&!Kl&&(e.body.classList.add(t_),e.body.addEventListener("touchmove",n_,{passive:!1,capture:!1})),Kl++}function Y7(){if(Kl>0){var e=An();e&&e.body&&Kl===1&&(e.body.classList.remove(t_),e.body.removeEventListener("touchmove",n_)),Kl--}}function q7(){if(th===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),th=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return th}function Im(e){for(var t=e,n=An(e);t&&t!==n.body;){if(t.getAttribute(eE)==="true")return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if(t.getAttribute(eE)!=="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=rt(e)),t}var Q7=void 0;function xm(e){console&&console.warn&&console.warn(e)}function r_(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 Vs(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 Tr(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){r_(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 X7(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 dA="data-is-focusable",fA="data-is-visible",hA="data-focuszone-id",pA="data-is-sub-focuszone";function mA(e,t,n){return mn(e,t,!0,!1,!1,n)}function gA(e,t,n){return Ln(e,t,!0,!1,!0,n)}function EA(e,t,n,r){return r===void 0&&(r=!0),mn(e,t,r,!1,!1,n,!1,!0)}function vA(e,t,n,r){return r===void 0&&(r=!0),Ln(e,t,r,!1,!0,n,!1,!0)}function TA(e,t){var n=mn(e,e,!0,!1,!1,!0,void 0,void 0,t);return n?(d_(n),!0):!1}function Ln(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=Wd(t);if(i&&l&&(o||!(Li(t)||wm(t)))){var u=Ln(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&li(u,!0)||!s)return u;var c=Ln(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var f=Ln(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(f)return f;d=d.parentElement}}}if(n&&l&&li(t,s))return t;var p=Ln(e,t.previousElementSibling,!0,!0,!0,o,a,s);return p||(r?null:Ln(e,t.parentElement,!0,!1,!1,o,a,s))}function mn(e,t,n,r,i,o,a,s,l){if(!t||t===e&&i&&!a)return null;var u=l?u_:Wd,c=u(t);if(n&&c&&li(t,s))return t;if(!i&&c&&(o||!(Li(t)||wm(t)))){var d=mn(e,t.firstElementChild,!0,!0,!1,o,a,s,l);if(d)return d}if(t===e)return null;var f=mn(e,t.nextElementSibling,!0,!0,!1,o,a,s,l);return f||(r?null:mn(e,t.parentElement,!1,!1,!0,o,a,s,l))}function Wd(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(fA);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function u_(e){return!!e&&Wd(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function li(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(dA):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 Li(e){return!!(e&&e.getAttribute&&e.getAttribute(hA))}function wm(e){return!!(e&&e.getAttribute&&e.getAttribute(pA)==="true")}function yA(e){var t=An(e),n=t&&t.activeElement;return!!(n&&Hn(e,n))}function c_(e,t){return lA(e,t)!=="true"}var za=void 0;function d_(e){if(e){if(za){za=e;return}za=e;var t=rt(e);t&&t.requestAnimationFrame(function(){za&&za.focus(),za=void 0})}}function _A(e,t){for(var n=e,r=0,i=t;r(e.cacheSize||SA)){var p=rt();!((l=p==null?void 0:p.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[O1]};return o}function ih(e,t){return t=bA(t),e.has(t)||e.set(t,new Map),e.get(t)}function nE(e,t){if(typeof t=="function"){var n=t.__cachedInputs__;if(n)for(var r=0,i=t.__cachedInputs__;r"u"?null:WeakMap;function FA(){Cc++}function ht(e,t,n){if(t===void 0&&(t=100),n===void 0&&(n=!1),!_u)return e;if(!rE){var r=Ir.getInstance();r&&r.onReset&&Ir.getInstance().onReset(FA),rE=!0}var i,o=0,a=Cc;return function(){for(var l=[],u=0;u0&&o>t)&&(i=iE(),o=0,a=Cc),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 ZA=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function JA(e,t,n){n===void 0&&(n=ZA);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(ud.Provider,{value:a},e.children):E.createElement(E.Fragment,null,e.children)};function sb(e){var t=null;try{var n=rt();t=n?n.localStorage.getItem(e):null}catch{}return t}var qo,dE="language";function lb(e){if(e===void 0&&(e="sessionStorage"),qo===void 0){var t=An(),n=e==="localStorage"?sb(dE):e==="sessionStorage"?a_(dE):void 0;n&&(qo=n),qo===void 0&&t&&(qo=t.documentElement.getAttribute("lang")),qo===void 0&&(qo="en")}return qo}function fE(e){for(var t=[],n=1;n-1;e[r]=o?i:C_(e[r]||{},i,n)}else e[r]=i}return n.pop(),e}var hE=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},ub=["TEMPLATE","STYLE","SCRIPT"];function S_(e){var t=An(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=rt(),r=(t=n==null?void 0:n.navigator)===null||t===void 0?void 0:t.userAgent;ah=!!r&&r.indexOf("Macintosh")!==-1}return!!ah}function db(e){var t=Os(function(n){var r=Os(function(i){return function(o){return n(o,i)}});return function(i,o){return e(i,o?r(o):n)}});return t}var fb=Os(db);function op(e,t){return fb(e)(t)}var hb=["theme","styles"];function Yt(e,t,n,r,i){r=r||{scope:"",fields:void 0};var o=r.scope,a=r.fields,s=a===void 0?hb:a,l=E.forwardRef(function(c,d){var f=E.useRef(),p=zA(s,o),h=p.styles;p.dir;var v=yi(p,["styles","dir"]),_=n?n(c):void 0,g=f.current&&f.current.__cachedInputs__||[],T=c.styles;if(!f.current||h!==g[1]||T!==g[2]){var y=function(C){return Jy(C,t,h,T)};y.__cachedInputs__=[t,h,T],y.__noStyleOverride__=!h&&!T,f.current=y}return E.createElement(e,N({ref:d},v,_,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 pb=function(){var e,t=rt();return!((e=t==null?void 0:t.navigator)===null||e===void 0)&&e.userAgent?t.navigator.userAgent.indexOf("rv:11.0")>-1:!1};function Ku(e,t){for(var n=N({},t),r=0,i=Object.keys(e);rr?" (+ "+(hl.length-r)+" more)":"")),lh=void 0,hl=[]},n)))}function Tb(e,t,n,r,i){i===void 0&&(i=!1);var o=N({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=b_(e,t,o,r);return yb(a,i)}function b_(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,p=a.themeLighter,h=a.neutralLight,v=a.neutralLighter,_=a.neutralDark,g=a.neutralQuaternary,T=a.neutralQuaternaryAlt,y=a.neutralPrimary,C=a.neutralSecondary,k=a.neutralSecondaryAlt,S=a.neutralTertiary,A=a.neutralTertiaryAlt,D=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),p&&(o.inputPlaceholderBackgroundChecked=p),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),g&&(o.primaryButtonTextDisabled=g,o.disabledSubtext=g),T&&(o.listItemBackgroundCheckedHovered=T),S&&(o.disabledBodyText=S,o.variantBorderHovered=(n==null?void 0:n.variantBorderHovered)||S,o.buttonTextDisabled=S,o.inputIconDisabled=S,o.disabledText=S),y&&(o.bodyText=y,o.actionLink=y,o.buttonText=y,o.inputBorderHovered=y,o.inputText=y,o.listText=y,o.menuItemText=y),D&&(o.bodyStandoutBackground=D,o.defaultStateBackground=D),_&&(o.actionLinkHovered=_,o.buttonTextHovered=_,o.buttonTextChecked=_,o.buttonTextPressed=_,o.inputTextHovered=_,o.menuItemTextHovered=_),C&&(o.bodySubtext=C,o.focusBorder=C,o.inputBorder=C,o.smallInputBorder=C,o.inputPlaceholderText=C),k&&(o.buttonBorder=k),A&&(o.disabledBodySubtext=A,o.disabledBorder=A,o.buttonBackgroundChecked=A,o.menuDivider=A),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=N(N({},o),n),o}function yb(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 _b(e,t){var n,r,i;t===void 0&&(t={});var o=fE({},e,t,{semanticColors:b_(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,TE=Wl&&Wl.CSPSettings&&Wl.CSPSettings.nonce,or=hk();function hk(){var e=Wl.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=ps(ps({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=ps(ps({},e),{registeredThemableStyles:[]})),Wl.__themeState__=e,e}function pk(e,t){or.loadStyles?or.loadStyles(x_(e).styleString,e):vk(e)}function mk(e){or.theme=e,Ek()}function gk(e){e===void 0&&(e=3),(e===3||e===2)&&(yE(or.registeredStyles),or.registeredStyles=[]),(e===3||e===1)&&(yE(or.registeredThemableStyles),or.registeredThemableStyles=[])}function yE(e){e.forEach(function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)})}function Ek(){if(or.theme){for(var e=[],t=0,n=or.registeredThemableStyles;t0&&(gk(1),pk([].concat.apply([],e)))}}function x_(e){var t=or.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 vk(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=x_(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),TE&&n.setAttribute("nonce",TE),n.appendChild(document.createTextNode(i)),or.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?or.registeredThemableStyles.push(s):or.registeredStyles.push(s)}}var mr=Wu({}),Tk=[],lp="theme";function N_(){var e,t,n,r=rt();!((t=r==null?void 0:r.FabricConfig)===null||t===void 0)&&t.legacyTheme?_k(r.FabricConfig.legacyTheme):Ar.getSettings([lp]).theme||(!((n=r==null?void 0:r.FabricConfig)===null||n===void 0)&&n.theme&&(mr=Wu(r.FabricConfig.theme)),Ar.applySettings((e={},e[lp]=mr,e)))}N_();function yk(e){return e===void 0&&(e=!1),e===!0&&(mr=Wu({},e)),mr}function _k(e,t){var n;return t===void 0&&(t=!1),mr=Wu(e,t),mk(N(N(N(N({},mr.palette),mr.semanticColors),mr.effects),Ck(mr))),Ar.applySettings((n={},n[lp]=mr,n)),Tk.forEach(function(r){try{r(mr)}catch{}}),mr}function Ck(e){for(var t={},n=0,r=Object.keys(e.fonts);nt.bottom||e.leftt.right)}function dd(e,t){var n=[];return e.topt.bottom&&n.push(le.bottom),e.leftt.right&&n.push(le.right),n}function on(e,t){return e[le[t]]}function AE(e,t,n){return e[le[t]]=n,e}function Su(e,t){var n=Ys(t);return(on(e,n.positiveEdge)+on(e,n.negativeEdge))/2}function Yd(e,t){return e>0?t:t*-1}function up(e,t){return Yd(e,on(t,e))}function zi(e,t,n){var r=on(e,n)-on(t,n);return Yd(n,r)}function Hs(e,t,n,r){r===void 0&&(r=!0);var i=on(e,t)-n,o=AE(e,t,n);return r&&(o=AE(e,t*-1,on(e,t*-1)-i)),o}function Au(e,t,n,r){return r===void 0&&(r=0),Hs(e,n,on(t,n)+Yd(n,r))}function Sk(e,t,n,r){r===void 0&&(r=0);var i=n*-1,o=Yd(i,r);return Hs(e,n*-1,on(t,n)+o)}function fd(e,t,n){var r=up(n,e);return r>up(n,t)}function Ak(e,t){for(var n=dd(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=hd(e,t,{targetEdge:s,alignmentEdge:l},i))}return a=hd(e,t,{targetEdge:c,alignmentEdge:d},i),{elementRectangle:a,targetEdge:c,alignmentEdge:d}}function kk(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=e.elementRectangle,s=i*-1,l=hd(a,t,{targetEdge:o,alignmentEdge:s},n,r);return{elementRectangle:l,targetEdge:o,alignmentEdge:s}}function Fk(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=bk(e,t,n,r,i));var c=dd(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=kk(u,t,i,a);if(Pm(f.elementRectangle,n))return f;u=hh(dd(f.elementRectangle,n),u,n,d)}else u=hh(c,u,n,d);else u=hh(c,u,n,d);return u}function hh(e,t,n,r){for(var i=0,o=e;iMath.abs(zi(e,n,t*-1))?t*-1:t}function Ik(e,t,n){return n!==void 0&&on(e,t)===on(n,t)}function xk(e,t,n,r,i,o,a,s){var l={},u=Mm(t),c=o?n:n*-1,d=i||Ys(n).positiveEdge;return(!a||Ik(e,Kk(d),r))&&(d=w_(e,d,r)),l[le[c]]=zi(e,u,c),l[le[d]]=zi(e,u,d),s&&(l[le[c*-1]]=zi(e,u,c*-1),l[le[d*-1]]=zi(e,u,d*-1)),l}function Nk(e){return Math.sqrt(e*e*2)}function Dk(e,t,n){if(e===void 0&&(e=_t.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=N({},SE[e]);return Tn()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=r.alignmentEdge*-1),t!==void 0?SE[t]:r):r}function wk(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=R_(e.targetEdge,t,n)),e.alignTargetEdge=i,e}function R_(e,t,n){var r=Su(t,e),i=Su(n,e),o=Ys(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function Rk(e,t,n,r,i,o,a){var s=hd(e,t,r,i,a);return Pm(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:Fk(s,t,n,r,i,o,a)}function Pk(e,t,n){var r=e.targetEdge*-1,i=new Ei(0,e.elementRectangle.width,0,e.elementRectangle.height),o={},a=w_(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Ys(r).positiveEdge,n),s=zi(e.elementRectangle,e.targetRectangle,r),l=s>Math.abs(on(t,r));return o[le[r]]=on(t,r),o[le[a]]=zi(t,i,a),{elementPosition:N({},o),closestEdge:R_(e.targetEdge,t,i),targetEdge:r,hideBeak:!l}}function Mk(e,t){var n=t.targetRectangle,r=Ys(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=Su(n,t.targetEdge),s=new Ei(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new Ei(0,e,0,e);return l=Hs(l,t.targetEdge*-1,-e/2),l=D_(l,t.targetEdge*-1,a-up(i,t.elementRectangle)),fd(l,s,i)?fd(l,s,o)||(l=Au(l,s,o)):l=Au(l,s,i),l}function Mm(e){var t=e.getBoundingClientRect();return new Ei(t.left,t.right,t.top,t.bottom)}function Ok(e){return new Ei(e.left,e.right,e.top,e.bottom)}function Lk(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new Ei(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Mm(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 Ei(o,s,a,l)}if(!Pm(n,e))for(var u=dd(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 jk(e,t){return Wk(e,t)}function qs(){var e=E.useRef();return e.current||(e.current=new Vs),E.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function vi(e){var t=E.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function ju(e){var t=E.useState(e),n=t[0],r=t[1],i=vi(function(){return function(){r(!0)}}),o=vi(function(){return function(){r(!1)}}),a=vi(function(){return function(){r(function(s){return!s})}});return[n,{setTrue:i,setFalse:o,toggle:a}]}function ph(e){var t=E.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return Ls(function(){t.current=e},[e]),vi(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 qk(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==rt()&&setTimeout(function(){var r;(r=t.focus)===null||r===void 0||r.call(t)},0)}function Qk(e,t){var n=e.onRestoreFocus,r=n===void 0?qk:n,i=E.useRef(),o=E.useRef(!1);E.useEffect(function(){return i.current=An().activeElement,yA(t.current)&&(o.current=!0),function(){var a;r==null||r({originalElement:i.current,containsFocus:o.current,documentContainsFocus:((a=An())===null||a===void 0?void 0:a.hasFocus())||!1}),i.current=void 0}},[]),bu(t,"focus",E.useCallback(function(){o.current=!0},[]),!0),bu(t,"blur",E.useCallback(function(a){t.current&&a.relatedTarget&&!t.current.contains(a.relatedTarget)&&(o.current=!1)},[]),!0)}function Xk(e,t){var n=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;E.useEffect(function(){if(n&&t.current){var r=S_(t.current);return r}},[t,n])}var Bm=E.forwardRef(function(e,t){var n=Ku({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=E.useRef(),i=Vi(r,t);Xk(n,r),Qk(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,p=Yk(n,r),h=E.useCallback(function(_){switch(_.which){case ae.escape:f&&(f(_),_.preventDefault(),_.stopPropagation());break}},[f]),v=Qd();return bu(v,"keydown",h),E.createElement("div",N({ref:i},ot(n,Zi),{className:a,role:o,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,onKeyDown:h,style:N({overflowY:p?"scroll":void 0,outline:"none"},c)}),d)});Bm.displayName="Popup";var Ga,Zk="CalloutContentBase",Jk=(Ga={},Ga[le.top]=ms.slideUpIn10,Ga[le.bottom]=ms.slideDownIn10,Ga[le.left]=ms.slideLeftIn10,Ga[le.right]=ms.slideRightIn10,Ga),bE={top:0,left:0},eF={opacity:0,filter:"opacity(0)",pointerEvents:"none"},tF=["role","aria-roledescription"],L_={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:_t.bottomAutoEdge},nF=Vt({disableCaching:!0});function rF(e,t,n){var r=e.bounds,i=e.minPagePadding,o=i===void 0?L_.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 p=typeof r=="function"?n?r(a,n):void 0:r;!p&&n&&(p=jk(t.current,n),p={top:p.top+o,left:p.left+o,right:p.right-o,bottom:p.bottom-o,width:p.width-o*2,height:p.height-o*2}),c.current=p,l&&u(!1)}return c.current},[r,o,a,t,n,l]),f=qs();return bu(n,"resize",f.debounce(function(){u(!0)},500,{leading:!0})),d}function iF(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:{},p=f.top,h=f.bottom;return E.useEffect(function(){var v,_=(v=t())!==null&&v!==void 0?v:{},g=_.top,T=_.bottom;!i&&!l?typeof p=="number"&&T?d(T-p):typeof h=="number"&&typeof g=="number"&&T&&d(T-g-h):d(i||void 0)},[h,i,o,a,s,t,l,n,p]),c}function oF(e,t,n,r,i){var o=E.useState(),a=o[0],s=o[1],l=E.useRef(0),u=E.useRef(),c=qs(),d=e.hidden,f=e.target,p=e.finalHeight,h=e.calloutMaxHeight,v=e.onPositioned,_=e.directionalHint;return E.useEffect(function(){if(d)s(void 0),l.current=0;else{var g=c.requestAnimationFrame(function(){var T,y;if(t.current&&n){var C=N(N({},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 S=u.current===f?a:void 0,A=p?Gk(C,t.current,k,S):zk(C,t.current,k,S);(y=n.parentElement)===null||y===void 0||y.removeChild(k),!a&&A||a&&A&&!uF(a,A)&&l.current<5?(l.current++,s(A)):l.current>0&&(l.current=0,v==null||v(a))}},n);return u.current=f,function(){c.cancelAnimationFrame(g),u.current=void 0}}},[d,_,c,n,h,t,r,p,i,v,a,e,f]),a}function aF(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=qs(),a=!!t;E.useEffect(function(){if(!r&&i&&a&&n){var s=o.requestAnimationFrame(function(){return TA(n)},n);return function(){return o.cancelAnimationFrame(s)}}},[r,a,o,n,i])}function sF(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,p=E.useRef(!1),h=qs(),v=vi([function(){p.current=!0},function(){p.current=!1}]),_=!!t;return E.useEffect(function(){var g=function(A){_&&!s&&C(A)},T=function(A){!l&&!(f&&f(A))&&(a==null||a(A))},y=function(A){u||C(A)},C=function(A){var D=A.composedPath?A.composedPath():[],P=D.length>0?D[0]:A.target,x=n.current&&!Hn(n.current,P);if(x&&p.current){p.current=!1;return}if(!r.current&&x||A.target!==i&&x&&(!r.current||"stopPropagation"in r.current||c||P!==r.current&&!Hn(r.current,P))){if(f&&f(A))return;a==null||a(A)}},k=function(A){d&&(f&&!f(A)||!f&&!u)&&!(i!=null&&i.document.hasFocus())&&A.relatedTarget===null&&(a==null||a(A))},S=new Promise(function(A){h.setTimeout(function(){if(!o&&i){var D=[di(i,"scroll",g,!0),di(i,"resize",T,!0),di(i.document.documentElement,"focus",y,!0),di(i.document.documentElement,"click",y,!0),di(i,"blur",k,!0)];A(function(){D.forEach(function(P){return P()})})}},0)});return function(){S.then(function(A){return A()})}},[o,h,n,r,i,a,d,c,u,l,s,_,f]),v}var B_=E.memo(E.forwardRef(function(e,t){var n=Ku(L_,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,p=n.calloutMaxWidth,h=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,g=n.hideOverflow,T=g===void 0?!!_:g,y=n.backgroundColor,C=n.calloutMaxHeight,k=n.onScroll,S=n.shouldRestoreFocus,A=S===void 0?!0:S,D=n.target,P=n.hidden,x=n.onLayerMounted,R=n.popupProps,O=E.useRef(null),X=E.useState(null),Y=X[0],H=X[1],G=E.useCallback(function(ge){H(ge)},[]),J=Vi(O,t),M=M_(n.target,{current:Y}),z=M[0],K=M[1],F=rF(n,z,K),b=oF(n,O,Y,z,F),at=iF(n,F,b),ze=sF(n,b,O,z,K),Dt=ze[0],pe=ze[1],Ge=(b==null?void 0:b.elementPosition.top)&&(b==null?void 0:b.elementPosition.bottom),wt=N(N({},b==null?void 0:b.elementPosition),{maxHeight:at});if(Ge&&(wt.bottom=void 0),aF(n,b,Y),E.useEffect(function(){P||x==null||x()},[P]),!K)return null;var bt=T,mt=u&&!!D,Ht=nF(r,{theme:n.theme,className:l,overflowYHidden:bt,calloutWidth:f,positions:b,beakWidth:d,backgroundColor:y,calloutMaxWidth:p,calloutMinWidth:h,doNotLayer:v}),In=N(N({maxHeight:C||"100%"},i),bt&&{overflowY:"hidden"}),re=n.hidden?{visibility:"hidden"}:void 0;return E.createElement("div",{ref:J,className:Ht.container,style:re},E.createElement("div",N({},ot(n,Zi,tF),{className:Cn(Ht.root,b&&b.targetEdge&&Jk[b.targetEdge]),style:b?N({},wt):eF,tabIndex:-1,ref:G}),mt&&E.createElement("div",{className:Ht.beak,style:lF(b)}),mt&&E.createElement("div",{className:Ht.beakCurtain}),E.createElement(Bm,N({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:a,ariaLabel:o,ariaLabelledBy:s,className:Ht.calloutMain,onDismiss:n.onDismiss,onMouseDown:Dt,onMouseUp:pe,onRestoreFocus:n.onRestoreFocus,onScroll:k,shouldRestoreFocus:A,style:In},R),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:Fm(e,t)});function lF(e){var t,n,r=N(N({},(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=bE.left,r.top=bE.top),r}function uF(e,t){return kE(e.elementPosition,t.elementPosition)&&kE(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function kE(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}B_.displayName=Zk;function cF(e){return{height:e,width:e}}var dF={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},fF=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=an(dF,n),f=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Bs.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[ne]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},dk(),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)"},cF(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:f.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:f.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}},hF=Yt(B_,fF,void 0,{scope:"CalloutContent"}),H_=E.createContext(void 0),pF=function(){return function(){}};H_.Provider;function mF(){var e;return(e=E.useContext(H_))!==null&&e!==void 0?e:pF}var gF=Vt(),EF=ht(function(e,t){return Wu(N(N({},e),{rtl:t}))}),vF=function(e){var t=e.theme,n=e.dir,r=Tn(t)?"rtl":"ltr",i=Tn()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}},U_=E.forwardRef(function(e,t){var n=e.className,r=e.theme,i=e.applyTheme,o=e.applyThemeToBody,a=e.styles,s=gF(a,{theme:r,applyTheme:i,className:n}),l=E.useRef(null);return yF(o,s,l),E.createElement(E.Fragment,null,TF(e,s,l,t))});U_.displayName="FabricBase";function TF(e,t,n,r){var i=t.root,o=e.as,a=o===void 0?"div":o,s=e.dir,l=e.theme,u=ot(e,Zi,["dir"]),c=vF(e),d=c.rootDir,f=c.needsTheme,p=E.createElement(__,{providerRef:n},E.createElement(a,N({dir:d},u,{className:i,ref:Vi(n,r)})));return f&&(p=E.createElement(UA,{settings:{theme:EF(l,s==="rtl")}},p)),p}function yF(e,t,n){var r=t.bodyThemed;return E.useEffect(function(){if(e){var i=An(n.current);if(i)return i.body.classList.add(r),function(){i.body.classList.remove(r)}}},[r,e,n]),n}var mh={fontFamily:"inherit"},_F={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},CF=function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,i=e.theme,o=an(_F,i);return{root:[o.root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":mh,"& input":mh,"& textarea":mh},t&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}},SF=Yt(U_,CF,void 0,{scope:"Fabric"}),jl={},Hm={},z_="fluent-default-layer-host",AF="#"+z_;function bF(e,t){jl[e]||(jl[e]=[]),jl[e].push(t);var n=Hm[e];if(n)for(var r=0,i=n;r=0&&(n.splice(r,1),n.length===0&&delete jl[e])}var i=Hm[e];if(i)for(var o=0,a=i;o0&&t.current.naturalHeight>0||t.current.complete&&HF.test(o):!1;d&&l(vn.loaded)}}),E.useEffect(function(){n==null||n(s)},[s]);var u=E.useCallback(function(d){r==null||r(d),o&&l(vn.loaded)},[o,r]),c=E.useCallback(function(d){i==null||i(d),l(vn.error)},[i]);return[s,u,c]}var j_=E.forwardRef(function(e,t){var n=E.useRef(),r=E.useRef(),i=zF(e,r),o=i[0],a=i[1],s=i[2],l=ot(e,XA,["width","height"]),u=e.src,c=e.alt,d=e.width,f=e.height,p=e.shouldFadeIn,h=p===void 0?!0:p,v=e.shouldStartVisible,_=e.className,g=e.imageFit,T=e.role,y=e.maximizeFrame,C=e.styles,k=e.theme,S=e.loading,A=GF(e,o,r,n),D=BF(C,{theme:k,className:_,width:d,height:f,maximizeFrame:y,shouldFadeIn:h,shouldStartVisible:v,isLoaded:o===vn.loaded||o===vn.notLoaded&&e.shouldStartVisible,isLandscape:A===ku.landscape,isCenter:g===Bn.center,isCenterContain:g===Bn.centerContain,isCenterCover:g===Bn.centerCover,isContain:g===Bn.contain,isCover:g===Bn.cover,isNone:g===Bn.none,isError:o===vn.error,isNotImageFit:g===void 0});return E.createElement("div",{className:D.root,style:{width:d,height:f},ref:n},E.createElement("img",N({},l,{onLoad:a,onError:s,key:UF+e.src||"",className:D.image,ref:Vi(r,t),src:u,alt:c,role:T,loading:S})))});j_.displayName="ImageBase";function GF(e,t,n,r){var i=E.useRef(t),o=E.useRef();return(o===void 0||i.current===vn.notLoaded&&t===vn.loaded)&&(o.current=KF(e,t,n,r)),i.current=t,o.current}function KF(e,t,n,r){var i=e.imageFit,o=e.width,a=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===vn.loaded&&(i===Bn.cover||i===Bn.contain||i===Bn.centerContain||i===Bn.centerCover)&&n.current&&r.current){var s=void 0;typeof o=="number"&&typeof a=="number"&&i!==Bn.centerContain&&i!==Bn.centerCover?s=o/a:s=r.current.clientWidth/r.current.clientHeight;var l=n.current.naturalWidth/n.current.naturalHeight;if(l>s)return ku.landscape}return ku.portrait}var WF={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"},jF=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,p=e.isCenterCover,h=e.isNone,v=e.isError,_=e.isNotImageFit,g=e.theme,T=an(WF,g),y={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=rt(),k=C!==void 0&&C.navigator.msMaxTouchPoints===void 0,S=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[T.root,g.fonts.medium,{overflow:"hidden"},i&&[T.rootMaximizeFrame,{height:"100%",width:"100%"}],o&&a&&!s&&ms.fadeIn400,(u||c||d||f||p)&&{position:"relative"},t],image:[T.image,{display:"block",opacity:0},o&&["is-loaded",{opacity:1}],u&&[T.imageCenter,y],c&&[T.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&S,!k&&y],d&&[T.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&S,!k&&y],f&&[T.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},y],p&&[T.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},y],h&&[T.imageNone,{width:"auto",height:"auto"}],_&&[!!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"]}},Um=Yt(j_,jF,void 0,{scope:"Image"},!0);Um.displayName="Image";var va=zu({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),$_="ms-Icon",$F=function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,i=e.isImage,o=e.styles;return{root:[r&&va.placeholder,va.root,i&&va.image,n,t,o&&o.root,o&&o.imageContainer]}},V_=ht(function(e){var t=Eb(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),md=function(e){var t=e.iconName,n=e.className,r=e.style,i=r===void 0?{}:r,o=V_(t)||{},a=o.iconClassName,s=o.children,l=o.fontFamily,u=o.mergeImageProps,c=ot(e,pt),d=e["aria-label"]||e.title,f=e["aria-label"]||e["aria-labelledby"]||e.title?{role:u?void 0:"img"}:{"aria-hidden":!0},p=s;return u&&typeof s=="object"&&typeof s.props=="object"&&d&&(p=E.cloneElement(s,{alt:d})),E.createElement("i",N({"data-icon-name":t},f,c,u?{title:void 0,"aria-label":void 0}:{},{className:Cn($_,va.root,a,!t&&va.placeholder,n),style:N({fontFamily:l},i)}),p)};ht(function(e,t,n){return md({iconName:e,className:t,"aria-label":n})});var VF=Vt({cacheSize:100}),YF=function(e){$e(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===vn.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===pd.image||this.props.iconType===pd.Image,d=V_(a)||{},f=d.iconClassName,p=d.children,h=d.mergeImageProps,v=VF(o,{theme:l,className:i,iconClassName:f,isImage:c,isPlaceholder:u}),_=c?"span":"i",g=ot(this.props,pt,["aria-label"]),T=this.state.imageLoadError,y=N(N({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),C=T&&s||Um,k=this.props["aria-label"]||this.props.ariaLabel,S=y.alt||k||this.props.title,A=!!(S||this.props["aria-labelledby"]||y["aria-label"]||y["aria-labelledby"]),D=A?{role:c||h?void 0:"img","aria-label":c||h?void 0:S}:{"aria-hidden":!0},P=p;return h&&p&&typeof p=="object"&&S&&(P=E.cloneElement(p,{alt:S})),E.createElement(_,N({"data-icon-name":a},D,g,h?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?E.createElement(C,N({},y)):r||P)},t}(E.Component),Yi=Yt(YF,$F,void 0,{scope:"Icon"},!0);Yi.displayName="Icon";var qF=function(e){var t=e.className,n=e.imageProps,r=ot(e,pt,["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",N({},s,r,{className:Cn($_,va.root,va.image,t)}),E.createElement(Um,N({},a,n,{alt:o?i:""})))},cp={none:0,all:1,inputOnly:2},hn;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(hn||(hn={}));var H1="data-is-focusable",QF="data-disable-click-on-enter",gh="data-focuszone-id",ri="tabindex",Eh="data-no-vertical-wrap",vh="data-no-horizontal-wrap",Th=999999999,pl=-999999999,yh,XF="ms-FocusZone";function ZF(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 JF(){return yh||(yh=ci({selectors:{":focus":{outline:"none"}}},XF)),yh}var ml={},U1=new Set,eI=["text","number","password","email","tel","url","search","textarea"],bi=!1,tI=function(e){$e(t,e);function t(n){var r,i,o,a,s=e.call(this,n)||this;s._root=E.createRef(),s._mergedRef=A_(),s._onFocus=function(u){if(!s._portalContainsElement(u.target)){var c=s.props,d=c.onActiveElementChanged,f=c.doNotAllowFocusEventToPropagate,p=c.stopFocusPropagation,h=c.onFocusNotification,v=c.onFocus,_=c.shouldFocusInnerElementWhenReceivedFocus,g=c.defaultTabbableElement,T=s._isImmediateDescendantOfZone(u.target),y;if(T)y=u.target;else for(var C=u.target;C&&C!==s._root.current;){if(li(C)&&s._isImmediateDescendantOfZone(C)){y=C;break}C=Gr(C,bi)}if(_&&u.target===s._root.current){var k=g&&typeof g=="function"&&s._root.current&&g(s._root.current);k&&li(k)?(y=k,k.focus()):(s.focus(!0),s._activeElement&&(y=null))}var S=!s._activeElement;y&&y!==s._activeElement&&((T||S)&&s._setFocusAlignment(y,!0,!0),s._activeElement=y,S&&s._updateTabIndexes()),d&&d(s._activeElement,u),(p||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=Gr(d,bi);for(;f.length&&(d=f.pop(),d&&li(d)&&s._setActiveElement(d,!0),!Li(d)););}}},s._onKeyDown=function(u,c){if(!s._portalContainsElement(u.target)){var d=s.props,f=d.direction,p=d.disabled,h=d.isInnerZoneKeystroke,v=d.pagingSupportDisabled,_=d.shouldEnterInnerZone;if(!p&&(s.props.onKeyDown&&s.props.onKeyDown(u),!u.isDefaultPrevented()&&!(s._getDocument().activeElement===s._root.current&&s._isInnerZone))){if((_&&_(u)||h&&h(u))&&s._isImmediateDescendantOfZone(u.target)){var g=s._getFirstInnerZone();if(g){if(!g.focus(!0))return}else if(wm(u.target)){if(!s.focusElement(mn(u.target,u.target.firstChild,!0)))return}else return}else{if(u.altKey)return;switch(u.which){case ae.space:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(u.target,u))break;return;case ae.left:if(f!==hn.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusLeft(c)))break;return;case ae.right:if(f!==hn.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusRight(c)))break;return;case ae.up:if(f!==hn.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusUp()))break;return;case ae.down:if(f!==hn.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusDown()))break;return;case ae.pageDown:if(!v&&s._moveFocusPaging(!0))break;return;case ae.pageUp:if(!v&&s._moveFocusPaging(!1))break;return;case ae.tab:if(s.props.allowTabKey||s.props.handleTabKey===cp.all||s.props.handleTabKey===cp.inputOnly&&s._isElementInput(u.target)){var T=!1;if(s._processingTabKey=!0,f===hn.vertical||!s._shouldWrapFocus(s._activeElement,vh))T=u.shiftKey?s._moveFocusUp():s._moveFocusDown();else{var y=Tn(c)?!u.shiftKey:u.shiftKey;T=y?s._moveFocusLeft(c):s._moveFocusRight(c)}if(s._processingTabKey=!1,T)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case ae.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(mn(s._root.current,C,!0)))break;return;case ae.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(Ln(s._root.current,k,!0,!0,!0)))break;return;case ae.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,p=Math.floor(d.top),h=Math.floor(c.bottom),v=Math.floor(d.bottom),_=Math.floor(c.top),g=u&&p>h,T=!u&&v<_;return g||T?f>=d.left&&f<=d.left+d.width?0:Math.abs(d.left+d.width/2-f):s._shouldWrapFocus(s._activeElement,Eh)?Th:pl},Ji(s),s._id=yn("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 U1.size},t._onKeyDownCapture=function(n){n.which===ae.tab&&U1.forEach(function(r){return r._updateTabIndexes()})},t.prototype.componentDidMount=function(){var n=this._root.current;if(ml[this._id]=this,n){for(var r=Gr(n,bi);r&&r!==this._getDocument().body&&r.nodeType===1;){if(Li(r)){this._isInnerZone=!0;break}r=Gr(r,bi)}this._isInnerZone||(U1.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&&!Hn(this._root.current,this._activeElement,bi)||this._defaultFocusElement&&!Hn(this._root.current,this._defaultFocusElement,bi))&&(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=_A(n,this._lastIndexPath);i?(this._setActiveElement(i,!0),i.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete ml[this._id],this._isInnerZone||(U1.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=ot(this.props,pt),d=i||o||"div";this._evaluateFocusBeforeRender();var f=yk();return E.createElement(d,N({"aria-labelledby":l,"aria-describedby":s},c,a,{className:Cn(JF(),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(p){return n._onKeyDown(p,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(H1)==="true"&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var o=ml[i.getAttribute(gh)];return!!o&&o.focusElement(this._root.current)}return!1}else{if(!n&&this._activeElement&&Hn(this._root.current,this._activeElement)&&li(this._activeElement)&&(!r||u_(this._activeElement)))return this._activeElement.focus(),!0;var a=this._root.current.firstChild;return this.focusElement(mn(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(Ln(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=Hn(n,i,!1);this._lastIndexPath=o?CA(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&&(Li(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(H1)==="true"&&i.getAttribute(QF)!=="true")return ZF(i,r),!0;i=Gr(i,bi)}while(i!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(n){if(n=n||this._activeElement||this._root.current,!n)return null;if(Li(n))return ml[n.getAttribute(gh)];for(var r=n.firstElementChild;r;){if(Li(r))return ml[r.getAttribute(gh)];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===hn.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?mn(this._root.current,a):Ln(this._root.current,a),c){if(a){var f=a.getBoundingClientRect(),p=r(d,f);if(p===-1&&s===-1){l=a;break}if(p>-1&&(s===-1||p=0&&p<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(mn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ln(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,Eh)?Th:pl:((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,vh);return this._moveFocus(Tn(n),function(o,a){var s=-1,l;return Tn(n)?l=parseFloat(a.top.toFixed(3))parseFloat(o.top.toFixed(3)),l&&a.right<=o.right&&r.props.direction!==hn.vertical?s=o.right-a.right:i||(s=pl),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,vh);return this._moveFocus(!Tn(n),function(o,a){var s=-1,l;return Tn(n)?l=parseFloat(a.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)):l=parseFloat(a.top.toFixed(3))=o.left&&r.props.direction!==hn.vertical?s=a.left-o.left:i||(s=pl),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=Im(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?mn(this._root.current,i):Ln(this._root.current,i),i){var f=i.getBoundingClientRect(),p=Math.floor(f.top),h=Math.floor(d.bottom),v=Math.floor(f.bottom),_=Math.floor(d.top),g=this._getHorizontalDistanceFromCenter(n,d,f),T=n&&p>h+c,y=!n&&v<_-c;if(T||y)break;g>-1&&(n&&p>l?(l=p,a=g,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?c_(n,r):!0},t.prototype._portalContainsElement=function(n){return n&&!!this._root.current&&l_(n,this._root.current)},t.prototype._getDocument=function(){return An(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:hn.bidirectional,shouldRaiseClicks:!0},t}(E.Component),Mn;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Mn||(Mn={}));function Fu(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function qi(e){return!!(e.subMenuProps||e.items)}function hi(e){return!!(e.isDisabled||e.disabled)}function Y_(e){var t=Fu(e),n=t!==null;return n?"menuitemcheckbox":"menuitem"}var FE=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return E.createElement(Yi,N({},r,{className:n.icon}))},nI=function(e){var t=e.item,n=e.hasIcons;return n?t.onRenderIcon?t.onRenderIcon(e,FE):FE(e):null},rI=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=Fu(n);if(t){var o=function(a){return t(n,a)};return E.createElement(Yi,{iconName:n.canCheck!==!1&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:o})}return null},iI=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},oI=function(e){var t=e.item,n=e.classNames;return t.secondaryText?E.createElement("span",{className:n.secondaryText},t.secondaryText):null},aI=function(e){var t=e.item,n=e.classNames,r=e.theme;return qi(t)?E.createElement(Yi,N({iconName:Tn(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},sI=function(e){$e(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();qi(o)&&a&&l&&a(o,l)}},r.dismissSubMenu=function(){var i=r.props,o=i.item,a=i.dismissSubMenu;qi(o)&&a&&a()},r.dismissMenu=function(i){var o=r.props.dismissMenu;o&&o(void 0,i)},Ji(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:rI,renderItemIcon:nI,renderItemName:iI,renderSecondaryText:oI,renderSubMenuIcon:aI}))},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),lI=ht(function(e){return zu({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),To=36,IE=I_(0,F_),uI=ht(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,p={item:[s.medium,{color:a.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[Uo(e),s.medium,{color:a.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:To,lineHeight:To,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[ne]={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[ne]={color:"inherit"},r)},n[ne]=N({},nn()),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:To,fontSize:Wr.medium,width:Wr.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[IE]={fontSize:Wr.large,width:Wr.large},i)},iconColor:{color:a.menuIcon},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext},subMenuIcon:{height:To,lineHeight:To,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Wr.small,selectors:(o={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},o[IE]={fontSize:Wr.medium},o)},splitButtonFlexContainer:[Uo(e),{display:"flex",height:To,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return _i(p)}),xE="28px",cI=I_(0,F_),dI=ht(function(e){var t;return zu(lI(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[cI]={right:32},t)},divider:{height:16,width:1}})}),fI={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"},hI=ht(function(e,t,n,r,i,o,a,s,l,u,c,d){var f,p,h,v,_=uI(e),g=an(fI,e);return zu({item:[g.item,_.item,a],divider:[g.divider,_.divider,s],root:[g.root,_.root,r&&[g.isChecked,_.rootChecked],i&&_.anchorLink,n&&[g.isExpanded,_.rootExpanded],t&&[g.isDisabled,_.rootDisabled],!t&&!n&&[{selectors:(f={":hover":_.rootHovered,":active":_.rootPressed},f["."+fn+" &:focus, ."+fn+" &:focus:hover"]=_.rootFocused,f["."+fn+" &:hover"]={background:"inherit;"},f)}],d],splitPrimary:[_.root,{width:"calc(100% - "+xE+")"},r&&["is-checked",_.rootChecked],(t||c)&&["is-disabled",_.rootDisabled],!(t||c)&&!r&&[{selectors:(p={":hover":_.rootHovered},p[":hover ~ ."+g.splitMenu]=_.rootHovered,p[":active"]=_.rootPressed,p["."+fn+" &:focus, ."+fn+" &:focus:hover"]=_.rootFocused,p["."+fn+" &:hover"]={background:"inherit;"},p)}]],splitMenu:[g.splitMenu,_.root,{flexBasis:"0",padding:"0 8px",minWidth:xE},n&&["is-expanded",_.rootExpanded],t&&["is-disabled",_.rootDisabled],!t&&!n&&[{selectors:(h={":hover":_.rootHovered,":active":_.rootPressed},h["."+fn+" &:focus, ."+fn+" &:focus:hover"]=_.rootFocused,h["."+fn+" &:hover"]={background:"inherit;"},h)}]],anchorLink:_.anchorLink,linkContent:[g.linkContent,_.linkContent],linkContentMenu:[g.linkContentMenu,_.linkContent,{justifyContent:"center"}],icon:[g.icon,o&&_.iconColor,_.icon,l,t&&[g.isDisabled,_.iconDisabled]],iconColor:_.iconColor,checkmarkIcon:[g.checkmarkIcon,o&&_.checkmarkIcon,_.icon,l],subMenuIcon:[g.subMenuIcon,_.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[_.iconDisabled]],label:[g.label,_.label],secondaryText:[g.secondaryText,_.secondaryText],splitContainer:[_.splitButtonFlexContainer,!t&&!r&&[{selectors:(v={},v["."+fn+" &:focus, ."+fn+" &:focus:hover"]=_.rootFocused,v)}]],screenReaderText:[g.screenReaderText,_.screenReaderText,Rm,{visibility:"hidden"}]})}),q_=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 hI(t,n,r,i,o,a,s,l,u,c,d,f)},Iu=Yt(sI,q_,void 0,{scope:"ContextualMenuItem"}),zm=function(e){$e(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(){},Ji(r),r}return t.prototype.shouldComponentUpdate=function(n){return!Fm(n,this.props)},t}(E.Component),pI="ktp",NE="-",mI="data-ktp-target",gI="data-ktp-execute-target",EI="ktp-layer-id",ai;(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"})(ai||(ai={}));var vI=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?ai.PERSISTED_KEYTIP_ADDED:ai.KEYTIP_ADDED;Tr.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)&&Tr.raise(this,ai.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?ai.PERSISTED_KEYTIP_REMOVED:ai.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Tr.raise(this,i,{keytip:t,uniqueID:n})},e.prototype.enterKeytipMode=function(){Tr.raise(this,ai.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Tr.raise(this,ai.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=Qr([],t.keySequences);if(n.pop(),n.length!==0){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return N(N({},t),{overflowSetSequence:r.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,n){Tr.raise(this,ai.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},e.prototype._getUniqueKtp=function(t,n){return n===void 0&&(n=yn()),{keytip:N({},t),uniqueID:n}},e._instance=new e,e}();function Q_(e){return e.reduce(function(t,n){return t+NE+n.split("").join(NE)},pI)}function TI(e,t){var n=t.length,r=Qr([],t).pop(),i=Qr([],e);return nA(i,n-1,r)}function yI(e){var t=" "+EI;return e.length?t+" "+Q_(e):t}function _I(e){var t=E.useRef(),n=e.keytipProps?N({disabled:e.disabled},e.keytipProps):void 0,r=vi(vI.getInstance()),i=Om(e);Ls(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)}),Ls(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=CI(r,n,e.ariaDescribedBy)),o}function CI(e,t,n){var r=e.addParentOverflow(t),i=Gu(n,yI(r.keySequences)),o=Qr([],r.keySequences);r.overflowSetSequence&&(o=TI(o,r.overflowSetSequence));var a=Q_(o);return{ariaDescribedBy:i,keytipId:a}}var xu=function(e){var t,n=e.children,r=yi(e,["children"]),i=_I(r),o=i.keytipId,a=i.ariaDescribedBy;return n((t={},t[mI]=o,t[gI]=o,t["aria-describedby"]=a,t))},SI=function(e){$e(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._anchor=E.createRef(),n._getMemoizedMenuButtonKeytipProps=ht(function(r){return N(N({},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?Iu:d,p=r.expandedMenuItemKey,h=r.onItemClick,v=r.openSubMenu,_=r.dismissSubMenu,g=r.dismissMenu,T=i.rel;i.target&&i.target.toLowerCase()==="_blank"&&(T=T||"nofollow noopener noreferrer");var y=qi(i),C=ot(i,p_),k=hi(i),S=i.itemProps,A=i.ariaDescription,D=i.keytipProps;D&&y&&(D=this._getMemoizedMenuButtonKeytipProps(D)),A&&(this._ariaDescriptionId=yn());var P=Gu(i.ariaDescribedBy,A?this._ariaDescriptionId:void 0,C["aria-describedby"]),x={"aria-describedby":P};return E.createElement("div",null,E.createElement(xu,{keytipProps:i.keytipProps,ariaDescribedBy:P,disabled:k},function(R){return E.createElement("a",N({},x,C,R,{ref:n._anchor,href:i.href,target:i.target,rel:T,className:o.root,role:"menuitem","aria-haspopup":y||void 0,"aria-expanded":y?i.key===p:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":hi(i),style:i.style,onClick:n._onItemClick,onMouseEnter:n._onItemMouseEnter,onMouseLeave:n._onItemMouseLeave,onMouseMove:n._onItemMouseMove,onKeyDown:y?n._onItemKeyDown:void 0}),E.createElement(f,N({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&h?h:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:_,dismissMenu:g,getSubmenuTarget:n._getSubmenuTarget},S)),n._renderAriaDescription(A,o.screenReaderText))}))},t}(zm),AI=function(e){$e(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._btn=E.createRef(),n._getMemoizedMenuButtonKeytipProps=ht(function(r){return N(N({},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?Iu:d,p=r.expandedMenuItemKey,h=r.onItemMouseDown,v=r.onItemClick,_=r.openSubMenu,g=r.dismissSubMenu,T=r.dismissMenu,y=Fu(i),C=y!==null,k=Y_(i),S=qi(i),A=i.itemProps,D=i.ariaLabel,P=i.ariaDescription,x=ot(i,ba);delete x.disabled;var R=i.role||k;P&&(this._ariaDescriptionId=yn());var O=Gu(i.ariaDescribedBy,P?this._ariaDescriptionId:void 0,x["aria-describedby"]),X={className:o.root,onClick:this._onItemClick,onKeyDown:S?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(H){return h?h(i,H):void 0},onMouseMove:this._onItemMouseMove,href:i.href,title:i.title,"aria-label":D,"aria-describedby":O,"aria-haspopup":S||void 0,"aria-expanded":S?i.key===p:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":hi(i),"aria-checked":(R==="menuitemcheckbox"||R==="menuitemradio")&&C?!!y:void 0,"aria-selected":R==="menuitem"&&C?!!y:void 0,role:R,style:i.style},Y=i.keytipProps;return Y&&S&&(Y=this._getMemoizedMenuButtonKeytipProps(Y)),E.createElement(xu,{keytipProps:Y,ariaDescribedBy:O,disabled:hi(i)},function(H){return E.createElement("button",N({ref:n._btn},x,X,H),E.createElement(f,N({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&v?v:void 0,hasIcons:c,openSubMenu:_,dismissSubMenu:g,dismissMenu:T,getSubmenuTarget:n._getSubmenuTarget},A)),n._renderAriaDescription(P,o.screenReaderText))})},t}(zm),bI=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}]}},kI=Vt(),X_=E.forwardRef(function(e,t){var n=e.styles,r=e.theme,i=e.getClassNames,o=e.className,a=kI(n,{theme:r,getClassNames:i,className:o});return E.createElement("span",{className:a.wrapper,ref:t},E.createElement("span",{className:a.divider}))});X_.displayName="VerticalDividerBase";var FI=Yt(X_,bI,void 0,{scope:"VerticalDivider"}),II=500,xI=function(e){$e(t,e);function t(n){var r=e.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=ht(function(i){return N(N({},i),{hasMenu:!0})}),r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;i.which===ae.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(N(N({},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(N(N({},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 Vs(r),r._events=new Tr(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,p=qi(i),h=i.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var v=i.ariaDescription;return v&&(this._ariaDescriptionId=yn()),E.createElement(xu,{keytipProps:h,disabled:hi(i)},function(_){return E.createElement("div",{"data-ktp-target":_["data-ktp-target"],ref:function(g){return n._splitButton=g},role:Y_(i),"aria-label":i.ariaLabel,className:o.splitContainer,"aria-disabled":hi(i),"aria-expanded":p?i.key===f:void 0,"aria-haspopup":!0,"aria-describedby":Gu(i.ariaDescribedBy,v?n._ariaDescriptionId:void 0,_["aria-describedby"]),"aria-checked":i.isChecked||i.checked,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:n._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(n,N(N({},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,_),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?Iu:l,c=s.onItemClick,d={key:n.key,disabled:hi(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",N({},ot(d,ba)),E.createElement(u,N({"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||dI;return E.createElement(FI,{getClassNames:r})},t.prototype._renderSplitIconButton=function(n,r,i,o){var a=this.props,s=a.contextualMenuItemAs,l=s===void 0?Iu:s,u=a.onItemMouseLeave,c=a.onItemMouseDown,d=a.openSubMenu,f=a.dismissSubMenu,p=a.dismissMenu,h={onClick:this._onIconItemClick,disabled:hi(n),className:r.splitMenu,subMenuProps:n.subMenuProps,submenuIconProps:n.submenuIconProps,split:!0,key:n.key},v=N(N({},ot(h,ba)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,n):void 0,onMouseDown:function(g){return c?c(n,g):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),_=n.itemProps;return E.createElement("button",N({},v),E.createElement(l,N({componentRef:n.componentRef,item:h,classNames:r,index:i,hasIcons:!1,openSubMenu:d,dismissSubMenu:f,dismissMenu:p,getSubmenuTarget:this._getSubmenuTarget},_)))},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},II)},t}(zm),NI=function(e){$e(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=JA(this,n):this._hoisted&&eb(this,this._hoisted)},t}(E.Component),ka;(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"})(ka||(ka={}));var DI=[479,639,1023,1365,1919,99999999],Z_;function Gm(){var e;return(e=Z_)!==null&&e!==void 0?e:ka.large}function J_(e){var t,n=(t=function(r){$e(i,r);function i(o){var a=r.call(this,o)||this;return a._onResize=function(){var s=e2(a.context.window);s!==a.state.responsiveMode&&a.setState({responsiveMode:s})},a._events=new Tr(a),a._updateComposedComponentRef=a._updateComposedComponentRef.bind(a),a.state={responsiveMode:Gm()},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===ka.unknown?null:E.createElement(e,N({ref:this._updateComposedComponentRef,responsiveMode:o},this.props))},i}(NI),t.contextType=Lm,t);return h_(e,n)}function wI(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function e2(e){var t=ka.small;if(e){try{for(;wI(e)>DI[t];)t++}catch{t=Gm()}Z_=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 t2=function(e,t){var n=E.useState(Gm()),r=n[0],i=n[1],o=E.useCallback(function(){var s=e2(rt(e.current));r!==s&&i(s)},[e,r]),a=Qd();return bu(a,"resize",o),E.useEffect(function(){t===void 0&&o()},[t]),t??r},RI=E.createContext({}),PI=Vt(),MI=Vt(),OI={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:_t.bottomAutoEdge,beakWidth:16};function n2(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:Re.key||Z.key||"section-"+Be},E.createElement("div",N({},lt),E.createElement("ul",{className:Le.list,role:"presentation"},Re.topDivider&&re(Be,Ee,!0,!0),Xn&&In(Xn,Z.key||Be,Ee,Z.title),Re.items.map(function(g1,rl){return bt(g1,rl,rl,Re.items.length,un,Nn,Le)}),Re.bottomDivider&&re(Be,Ee,!1,!0))))}},In=function(Z,Ee,Le,Be){return E.createElement("li",{role:"presentation",title:Be,key:Ee,className:Le.item},Z)},re=function(Z,Ee,Le,Be){return Be||Z>0?E.createElement("li",{role:"separator",key:"separator-"+Z+(Le===void 0?"":Le?"-top":"-bottom"),className:Ee.divider,"aria-hidden":"true"}):null},ge=function(Z,Ee,Le,Be,un,Nn,Re){if(Z.onRender)return Z.onRender(N({"aria-posinset":Be+1,"aria-setsize":un},Z),l);var Xn=i.contextualMenuItemAs,lt={item:Z,classNames:Ee,index:Le,focusableElementIndex:Be,totalItemCount:un,hasCheckmarks:Nn,hasIcons:Re,contextualMenuItemAs:Xn,onItemMouseEnter:K,onItemMouseLeave:b,onItemMouseMove:F,onItemMouseDown:YI,executeItemClick:Dt,onItemKeyDown:M,expandedMenuItemKey:h,openSubMenu:v,dismissSubMenu:g,dismissMenu:l};return Z.href?E.createElement(SI,N({},lt,{onItemClick:ze})):Z.split&&qi(Z)?E.createElement(xI,N({},lt,{onItemClick:at,onItemClickBase:pe,onTap:x})):E.createElement(AI,N({},lt,{onItemClick:at,onItemClickBase:pe}))},ce=function(Z,Ee,Le,Be,un,Nn){var Re=i.contextualMenuItemAs,Xn=Re===void 0?Iu:Re,lt=Z.itemProps,Zn=Z.id,ti=lt&&ot(lt,Zi);return E.createElement("div",N({id:Zn,className:Le.header},ti,{style:Z.style}),E.createElement(Xn,N({item:Z,classNames:Ee,index:Be,onCheckmarkClick:un?at:void 0,hasIcons:Nn},lt)))},De=i.isBeakVisible,_e=i.items,qt=i.labelElementId,xe=i.id,Vn=i.className,Yn=i.beakWidth,Ut=i.directionalHint,Tt=i.directionalHintForRTL,xn=i.alignTargetEdge,sn=i.gapSpace,wr=i.coverTarget,L=i.ariaLabel,j=i.doNotLayer,oe=i.target,ie=i.bounds,q=i.useTargetWidth,Ne=i.useTargetAsMinWidth,Ce=i.directionalHintFixed,we=i.shouldFocusOnMount,Qt=i.shouldFocusOnContainer,Rr=i.title,Ke=i.styles,qn=i.theme,yt=i.calloutProps,nl=i.onRenderSubMenu,Sf=nl===void 0?wE:nl,d1=i.onRenderMenuList,Af=d1===void 0?function(Z,Ee){return Ge(Z,ei)}:d1,bf=i.focusZoneProps,f1=i.getMenuClassNames,ei=f1?f1(qn,Vn):PI(Ke,{theme:qn,className:Vn}),h1=We(_e);function We(Z){for(var Ee=0,Le=Z;Ee0){for(var kg=0,kf=0,Fg=_e;kf span":{position:"relative",left:0,top:0}}}],rootDisabled:[Uo(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":PE,":focus":PE}}],iconDisabled:{color:l,selectors:(t={},t[ne]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[ne]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:ME(o.mediumPlus.fontSize),menuIcon:ME(o.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Rm}}),jm=ht(function(e,t){var n,r,i,o,a,s,l,u,c,d,f,p,h,v=e.effects,_=e.palette,g=e.semanticColors,T={left:-2,top:-2,bottom:-2,right:-2,border:"none"},y={position:"absolute",width:1,right:31,top:8,bottom:8},C={splitButtonContainer:[Uo(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[ne]=N({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},nn()),n[":hover"]={border:"none"},n[":active"]={border:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[ne]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[ne]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:g.buttonTextDisabled,selectors:(o={},o[ne]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[ne]=N({color:"Window",backgroundColor:"WindowText"},nn()),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[ne]=N({color:"Window",backgroundColor:"WindowText"},nn()),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 "+_.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[ne]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:N(N({},y),{selectors:(u={},u[ne]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:N(N({},y),{selectors:(c={},c[ne]={backgroundColor:"GrayText"},c)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(d={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(f={},f[ne]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f)},".ms-Button-menuIcon":{selectors:(p={},p[ne]={color:"GrayText"},p)}},d[ne]={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[ne]=N({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},nn()),h)},splitButtonMenuFocused:N({},Uo(e,{highContrastStyle:T,inset:2}))};return _i(C,t)}),c2=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function tx(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,p=a.buttonTextHovered,h=a.buttonTextDisabled,v=a.buttonTextChecked,_=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:f},rootHovered:{backgroundColor:c,color:p,selectors:(t={},t[ne]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:u,color:v},rootExpanded:{backgroundColor:u,color:v},rootChecked:{backgroundColor:u,color:v},rootCheckedHovered:{backgroundColor:u,color:_},rootDisabled:{color:h,backgroundColor:d,selectors:(n={},n[ne]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(r={},r[ne]={border:"none"},r)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(i={},i[ne]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:N(N({},c2()),{backgroundColor:s.neutralTertiaryAlt,selectors:(o={},o[ne]={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 nx(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[ne]=N({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},nn()),t["."+fn+" &:focus"]={selectors:{":after":{border:"none",outlineColor:c.white}}},t)},rootHovered:{backgroundColor:d.primaryButtonBackgroundHovered,border:"1px solid "+d.primaryButtonBackgroundHovered,color:d.primaryButtonTextHovered,selectors:(n={},n[ne]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:d.primaryButtonBackgroundPressed,border:"1px solid "+d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed,selectors:(r={},r[ne]=N({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},nn()),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[ne]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(o={},o[ne]={border:"none"},o)},splitButtonDivider:N(N({},c2()),{backgroundColor:c.white,selectors:(a={},a[ne]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:d.primaryButtonBackground,color:d.primaryButtonText,selectors:(s={},s[ne]={backgroundColor:"Canvas"},s[":hover"]={backgroundColor:d.primaryButtonBackgroundHovered,selectors:(l={},l[ne]={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[ne]={color:"GrayText"},u)}}}var rx="32px",ix="80px",ox=ht(function(e,t,n){var r=Wm(e),i=jm(e),o={root:{minWidth:ix,height:rx},label:{fontWeight:qe.semibold}};return _i(r,o,n?nx(e):tx(e),i,t)}),Xd=function(e){$e(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(Km,N({},this.props,{variantClassName:i?"ms-Button--primary":"ms-Button--default",styles:ox(a,o,i),onRenderDescription:Ms}))},t=$s([jd("DefaultButton",["theme","styles"],!0)],t),t}(E.Component),ax=ht(function(e,t){var n,r=Wm(e),i=jm(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[ne]={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 _i(r,s,i,t)}),ha=function(e){$e(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(Km,N({},this.props,{variantClassName:"ms-Button--icon",styles:ax(i,r),onRenderText:Ms,onRenderDescription:Ms}))},t=$s([jd("IconButton",["theme","styles"],!0)],t),t}(E.Component),d2=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return E.createElement(Xd,N({},this.props,{primary:!0,onRenderDescription:Ms}))},t=$s([jd("PrimaryButton",["theme","styles"],!0)],t),t}(E.Component),sx=ht(function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,v,_,g,T=Wm(e),y=jm(e),C=e.palette,k=e.semanticColors,S={left:4,top:4,bottom:4,right:4,border:"none"},A={root:[Uo(e,{inset:2,highContrastStyle:S,borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:C.white,color:C.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(i={},i[ne]={border:"none"},i)}],rootHovered:{backgroundColor:C.neutralLighter,color:C.neutralDark,selectors:(o={},o[ne]={color:"Highlight"},o["."+dn.msButtonIcon]={color:C.themeDarkAlt},o["."+dn.msButtonMenuIcon]={color:C.neutralPrimary},o)},rootPressed:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(a={},a["."+dn.msButtonIcon]={color:C.themeDark},a["."+dn.msButtonMenuIcon]={color:C.neutralPrimary},a)},rootChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(s={},s["."+dn.msButtonIcon]={color:C.themeDark},s["."+dn.msButtonMenuIcon]={color:C.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:C.neutralQuaternaryAlt,selectors:(l={},l["."+dn.msButtonIcon]={color:C.themeDark},l["."+dn.msButtonMenuIcon]={color:C.neutralPrimary},l)},rootExpanded:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(u={},u["."+dn.msButtonIcon]={color:C.themeDark},u["."+dn.msButtonMenuIcon]={color:C.neutralPrimary},u)},rootExpandedHovered:{backgroundColor:C.neutralQuaternaryAlt},rootDisabled:{backgroundColor:C.white,selectors:(c={},c["."+dn.msButtonIcon]={color:k.disabledBodySubtext,selectors:(d={},d[ne]=N({color:"GrayText"},nn()),d)},c[ne]=N({color:"GrayText",backgroundColor:"Window"},nn()),c)},splitButtonContainer:{height:"100%",selectors:(f={},f[ne]={border:"none"},f)},splitButtonDividerDisabled:{selectors:(p={},p[ne]={backgroundColor:"Window"},p)},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[ne]={color:"Highlight"},h["."+dn.msButtonIcon]={color:C.neutralPrimary},h)},":active":{backgroundColor:C.neutralLight,selectors:(v={},v["."+dn.msButtonIcon]={color:C.neutralPrimary},v)}}},splitButtonMenuButtonDisabled:{backgroundColor:C.white,selectors:(_={},_[ne]=N({color:"GrayText",border:"none",backgroundColor:"Window"},nn()),_)},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:(g={color:C.neutralSecondary},g[ne]={color:"GrayText"},g)};return _i(T,y,A,t)}),Nu=function(e){$e(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(Km,N({},this.props,{variantClassName:"ms-Button--commandBar",styles:sx(i,r),onRenderDescription:Ms}))},t=$s([jd("CommandBarButton",["theme","styles"],!0)],t),t}(E.Component),lx=Vt({cacheSize:100}),ux=function(e){$e(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=lx(l,{className:a,disabled:s,required:u,theme:c});return E.createElement(i,N({},ot(this.props,Zi),{className:d.root}),o)},t}(E.Component),cx=function(e){var t,n=e.theme,r=e.className,i=e.disabled,o=e.required,a=n.semanticColors,s=qe.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[ne]=N({color:"GrayText"},nn()),t)},o&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},r]}},dx=Yt(ux,cx,void 0,{scope:"Label"}),fx=Vt(),hx="",Xo="TextField",px="RedEye",mx="Hide",gx=function(e){$e(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(dx,{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=_h(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})},Ji(r),r._async=new Vs(r),r._fallbackId=yn(Xo),r._descriptionId=yn(Xo+"Description"),r._labelId=yn(Xo+"Label"),r._prefixId=yn(Xo+"Prefix"),r._suffixId=yn(Xo+"Suffix"),r._warnControlledUsage();var i=n.defaultValue,o=i===void 0?hx: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 _h(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=_h(n,r),d=this.value;c!==d&&(this._warnControlledUsage(n),this.state.errorMessage&&!o.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),OE(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,p=n.prefix,h=n.resizable,v=n.suffix,_=n.theme,g=n.styles,T=n.autoAdjustHeight,y=n.canRevealPassword,C=n.revealPasswordAriaLabel,k=n.type,S=n.onRenderPrefix,A=S===void 0?this._onRenderPrefix:S,D=n.onRenderSuffix,P=D===void 0?this._onRenderSuffix:D,x=n.onRenderLabel,R=x===void 0?this._onRenderLabel:x,O=n.onRenderDescription,X=O===void 0?this._onRenderDescription:O,Y=this.state,H=Y.isFocused,G=Y.isRevealingPassword,J=this._errorMessage,M=typeof a=="boolean"?a:!!J,z=!!y&&k==="password"&&Ex(),K=this._classNames=fx(g,{theme:_,className:i,disabled:o,focused:H,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:K.root},E.createElement("div",{className:K.wrapper},R(this.props,this._onRenderLabel),E.createElement("div",{className:K.fieldGroup},(p!==void 0||this.props.onRenderPrefix)&&E.createElement("div",{className:K.prefix,id:this._prefixId},A(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),s&&E.createElement(Yi,N({className:K.icon},s)),z&&E.createElement("button",{"aria-label":C,className:K.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!G,type:"button"},E.createElement("span",{className:K.revealSpan},E.createElement(Yi,{className:K.revealIcon,iconName:G?mx:px}))),(v!==void 0||this.props.onRenderSuffix)&&E.createElement("div",{className:K.suffix,id:this._suffixId},P(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&E.createElement("span",{id:this._descriptionId},X(this.props,this._onRenderDescription),J&&E.createElement("div",{role:"alert"},E.createElement(i_,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,xm("Warning: 'value' prop on '"+Xo+"' 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 wA(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=ot(this.props,QA,["defaultValue"]),o=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return E.createElement("textarea",N({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,p=[];f&&p.push(this._labelId),(l!==void 0||a)&&p.push(this._prefixId),(u!==void 0||s)&&p.push(this._suffixId);var h=N(N({type:this.state.isRevealingPassword?"text":d,id:this._id},ot(this.props,qA,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(p.length>0?p.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(g){return E.createElement("input",N({},g))},_=this.props.onRenderInput||v;return _(h,v)},t.prototype._validate=function(n){var r=this;if(!(this._latestValidateValue===n&&OE(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 _h(e,t){var n=e.value,r=n===void 0?t.uncontrolledValue:n;return typeof r=="number"?String(r):r}function OE(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var z1;function Ex(){if(typeof z1!="boolean"){var e=rt();if(e!=null&&e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");z1=!(pb()||t)}else z1=!0}return z1}var vx={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 Tx(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[ne]={height:31},s)}]}}}function yx(e){var t,n,r,i,o,a,s,l,u,c,d,f,p=e.theme,h=e.className,v=e.disabled,_=e.focused,g=e.required,T=e.multiline,y=e.hasLabel,C=e.borderless,k=e.underlined,S=e.hasIcon,A=e.resizable,D=e.hasErrorMessage,P=e.inputClassName,x=e.autoAdjustHeight,R=e.hasRevealButton,O=p.semanticColors,X=p.effects,Y=p.fonts,H=an(vx,p),G={background:O.disabledBackground,color:v?O.disabledText:O.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[ne]={background:"Window",color:v?"GrayText":"WindowText"},t)},J=[{color:O.inputPlaceholderText,opacity:1,selectors:(n={},n[ne]={color:"GrayText"},n)}],M={color:O.disabledText,selectors:(r={},r[ne]={color:"GrayText"},r)};return{root:[H.root,Y.medium,g&&H.required,v&&H.disabled,_&&H.active,T&&H.multiline,C&&H.borderless,k&&H.underlined,fh,{position:"relative"},h],wrapper:[H.wrapper,k&&[{display:"flex",borderBottom:"1px solid "+(D?O.errorText:O.inputBorder),width:"100%"},v&&{borderBottomColor:O.disabledBackground,selectors:(i={},i[ne]=N({borderColor:"GrayText"},nn()),i)},!v&&{selectors:{":hover":{borderBottomColor:D?O.errorText:O.inputBorderHovered,selectors:(o={},o[ne]=N({borderBottomColor:"Highlight"},nn()),o)}}},_&&[{position:"relative"},vE(D?O.errorText:O.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[H.fieldGroup,fh,{border:"1px solid "+O.inputBorder,borderRadius:X.roundedCorner2,background:O.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},T&&{minHeight:"60px",height:"auto",display:"flex"},!_&&!v&&{selectors:{":hover":{borderColor:O.inputBorderHovered,selectors:(a={},a[ne]=N({borderColor:"Highlight"},nn()),a)}}},_&&!k&&vE(D?O.errorText:O.inputFocusBorderAlt,X.roundedCorner2),v&&{borderColor:O.disabledBackground,selectors:(s={},s[ne]=N({borderColor:"GrayText"},nn()),s),cursor:"default"},C&&{border:"none"},C&&_&&{border:"none",selectors:{":after":{border:"none"}}},k&&{flex:"1 1 0px",border:"none",textAlign:"left"},k&&v&&{backgroundColor:"transparent"},D&&!k&&{borderColor:O.errorText,selectors:{"&:hover":{borderColor:O.errorText}}},!y&&g&&{selectors:(l={":before":{content:"'*'",color:O.errorText,position:"absolute",top:-5,right:-10}},l[ne]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[Y.medium,H.field,fh,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:O.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(u={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},u[ne]={background:"Window",color:v?"GrayText":"WindowText"},u)},_E(J),T&&!A&&[H.unresizable,{resize:"none"}],T&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},T&&x&&{overflow:"hidden"},S&&!R&&{paddingRight:24},T&&S&&{paddingRight:40},v&&[{backgroundColor:O.disabledBackground,color:O.disabledText,borderColor:O.disabledBackground},_E(M)],k&&{textAlign:"left"},_&&!C&&{selectors:(c={},c[ne]={paddingLeft:11,paddingRight:11},c)},_&&T&&!C&&{selectors:(d={},d[ne]={paddingTop:4},d)},P],icon:[T&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Wr.medium,lineHeight:18},v&&{color:O.disabledText}],description:[H.description,{color:O.bodySubtext,fontSize:Y.xSmall.fontSize}],errorMessage:[H.errorMessage,ms.slideDownIn20,Y.small,{color:O.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[H.prefix,G],suffix:[H.suffix,G],revealButton:[H.revealButton,"ms-Button","ms-Button--icon",Uo(p,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:O.link,selectors:{":hover":{outline:0,color:O.primaryButtonBackgroundHovered,backgroundColor:O.buttonBackgroundHovered,selectors:(f={},f[ne]={borderColor:"Highlight",color:"Highlight"},f)},":focus":{outline:0}}},S&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Wr.medium,lineHeight:18},subComponentStyles:{label:Tx(e)}}}var $m=Yt(gx,yx,void 0,{scope:"TextField"}),gl={auto:0,top:1,bottom:2,center:3},_x=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},LE=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)},G1=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},Cx=16,Sx=100,Ax=500,bx=200,kx=500,BE=10,Fx=30,Ix=2,xx=2,Nx="page-",HE="spacer-",UE={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},f2=function(e){return e.getBoundingClientRect()},Dx=f2,wx=f2,Rx=function(e){$e(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)&&Kd()?(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",N({ref:o},s),a)},r._onRenderSurface=function(i){var o=i.surfaceRef,a=i.pageElements,s=i.divProps;return E.createElement("div",N({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,p=f===void 0?[]:f,h=d.startIndex,v=yi(i,["page"]),_=c===void 0?"listitem":"presentation",g=[],T=0;Tn;if(h){if(r&&this._scrollElement){for(var v=wx(this._scrollElement),_=LE(this._scrollElement),g={top:_,bottom:_+v.height},T=n-d,y=0;y=g.top&&C<=g.bottom;if(k)return;var S=ug.bottom;S||A&&(u=C-v.height)}this._scrollElement&&G1(this._scrollElement,u);return}u+=p}},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 N(N({},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=Gr(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||!Px(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),N(N(N({},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,X=!g||R>=g.top&&d<=g.bottom,Y=!y._requiredRect||R>=y._requiredRect.top&&d<=y._requiredRect.bottom,H=!_&&(Y||X&&O)||!v,G=p>=S&&p=y._visibleRect.top&&d<=y._visibleRect.bottom),u.push(z),Y&&y._allowedRect&&Mx(l,{top:d,bottom:R,height:D,left:g.left,right:g.right,width:g.width})}else f||(f=y._createPage(HE+S,void 0,S,0,void 0,P,!0)),f.height=(f.height||0)+(R-d)+1,f.itemCount+=c;if(d+=R-d+1,_&&v)return"break"},y=this,C=a;Cthis._estimatedPageHeight/3)&&(l=this._surfaceRect=Dx(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=rt(this._root.current),p={top:d,left:l.left,bottom:d+f.innerHeight,right:l.right,width:l.width,height:f.innerHeight};this._requiredRect=zE(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=zE(p,a,o),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(n,r,i){return E.createElement(E.Fragment,null,n&&n.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:xx,renderedWindowsBehind:Ix},t}(E.Component);function zE(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 Px(e,t){return e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}function Mx(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 jr;(function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"})(jr||(jr={}));var dp;(function(e){e[e.normal=0]="normal",e[e.large=1]="large"})(dp||(dp={}));var Ox=Vt(),Lx=function(e){$e(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,p=ot(this.props,Zi,["size"]),h=i;h===void 0&&r!==void 0&&(h=r===dp.large?jr.large:jr.medium);var v=Ox(s,{theme:u,size:h,className:c,labelPosition:d});return E.createElement("div",N({},p,{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(i_,null,E.createElement("div",{className:v.screenReaderText},f))))},t.defaultProps={size:jr.medium,ariaLive:"polite",labelPosition:"bottom"},t}(E.Component),Bx={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Hx=ht(function(){return hr({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),Ux=function(e){var t,n=e.theme,r=e.size,i=e.className,o=e.labelPosition,a=n.palette,s=an(Bx,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:Hx(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[ne]=N({borderTopColor:"Highlight"},nn()),t)},r===jr.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===jr.small&&["ms-Spinner--small",{width:16,height:16}],r===jr.medium&&["ms-Spinner--medium",{width:20,height:20}],r===jr.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:Rm}},h2=Yt(Lx,Ux,void 0,{scope:"Spinner"}),pi;(function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"})(pi||(pi={}));var p2=Jb.durationValue2,zx={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},Gx=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,p=e.isDefaultDragHandle,h=e.windowInnerHeight,v=u.palette,_=u.effects,g=u.fonts,T=an(zx,u);return{root:[T.root,g.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+p2},c&&typeof l=="number"&&s&&{alignItems:"flex-start"},o&&T.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[T.main,{boxShadow:_.elevation64,borderRadius:_.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?Bs.Layer:void 0},d&&{pointerEvents:"auto"},c&&typeof l=="number"&&s&&{top:l},p&&{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:g.xLargePlus.fontSize,width:"24px"}}},Kx=Vt(),Wx=function(e){$e(t,e);function t(n){var r=e.call(this,n)||this;Ji(r);var i=r.props.allowTouchBodyScroll,o=i===void 0?!1:i;return r._allowTouchBodyScroll=o,r}return t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&V7()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&Y7()},t.prototype.render=function(){var n=this.props,r=n.isDarkThemed,i=n.className,o=n.theme,a=n.styles,s=ot(this.props,Zi),l=Kx(a,{theme:o,className:i,isDark:r});return E.createElement("div",N({},s,{className:l.root}))},t}(E.Component),jx={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},$x=function(e){var t,n=e.className,r=e.theme,i=e.isNone,o=e.isDark,a=r.palette,s=an(jx,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[ne]={border:"1px solid WindowText",opacity:0},t)},i&&{visibility:"hidden"},o&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}},Vx=Yt(Wx,$x,void 0,{scope:"Overlay"}),Yx=ht(function(e,t){return{root:ci(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),El={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},qx=function(e){$e(t,e);function t(n){var r=e.call(this,n)||this;return r._currentEventType=El.mouse,r._events=[],r._onMouseDown=function(i){var o=E.Children.only(r.props.children).props.onMouseDown;return o&&o(i),r._currentEventType=El.mouse,r._onDragStart(i)},r._onMouseUp=function(i){var o=E.Children.only(r.props.children).props.onMouseUp;return o&&o(i),r._currentEventType=El.mouse,r._onDragStop(i)},r._onTouchStart=function(i){var o=E.Children.only(r.props.children).props.onTouchStart;return o&&o(i),r._currentEventType=El.touch,r._onDragStart(i)},r._onTouchEnd=function(i){var o=E.Children.only(r.props.children).props.onTouchEnd;o&&o(i),r._currentEventType=El.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=[di(document.body,r._currentEventType.move,r._onDrag,!0),di(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:N(N({},r.style),{transform:"translate("+l+"px, "+u+"px)"}),className:Yx(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=(G||ka.small)&&E.createElement(K_,N({ref:Ge},Rr),E.createElement(Bm,N({role:Ce?"alertdialog":"dialog",ariaLabelledBy:R,ariaDescribedBy:X,onDismiss:A,shouldRestoreFocus:!T,enableAriaHiddenSiblings:F,"aria-modal":!M},b),E.createElement("div",{className:Qt.root,role:M?void 0:"document"},!M&&E.createElement(Vx,N({"aria-hidden":!0,isDarkThemed:S,onClick:y?void 0:A,allowTouchBodyScroll:l},P)),z?E.createElement(qx,{handleSelector:z.dragHandleSelector||"#"+bt,preventDragSelector:"button",onStart:Sf,onDragChange:d1,onStop:Af,position:Yn},h1):h1)))||null});m2.displayName="Modal";var g2=Yt(m2,Gx,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});g2.displayName="Modal";var eN=Vt(),tN=function(e){$e(t,e);function t(n){var r=e.call(this,n)||this;return Ji(r),r}return t.prototype.render=function(){var n=this.props,r=n.className,i=n.styles,o=n.theme;return this._classNames=eN(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),nN={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},rN=function(e){var t=e.className,n=e.theme,r=an(nN,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"}]}},Vm=Yt(tN,rN,void 0,{scope:"DialogFooter"}),iN=Vt(),oN=E.createElement(Vm,null).type,aN=function(e){$e(t,e);function t(n){var r=e.call(this,n)||this;return Ji(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,p=n.type,h=n.styles,v=n.theme,_=n.draggableHeaderClassName,g=iN(h,{theme:v,className:i,isLargeHeader:p===pi.largeHeader,isClose:p===pi.close,draggableHeaderClassName:_}),T=this._groupChildren(),y;return l&&(y=E.createElement("p",{className:g.subText,id:s},l)),E.createElement("div",{className:g.content},E.createElement("div",{className:g.header},E.createElement("div",N({id:d,role:"heading","aria-level":1},c,{className:Cn(g.title,c.className)}),f),E.createElement("div",{className:g.topButton},this.props.topButtonsProps.map(function(C,k){return E.createElement(ha,N({key:C.uniqueId||k},C))}),(p===pi.close||r&&p!==pi.largeHeader)&&E.createElement(ha,{className:g.button,iconProps:{iconName:"Cancel"},ariaLabel:o,onClick:a}))),E.createElement("div",{className:g.inner},E.createElement("div",{className:g.innerContent},y,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===oN?n.footers.push(r):n.contents.push(r)}),n},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=$s([J_],t),t}(E.Component),sN={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"},lN=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,p=o.effects,h=o.semanticColors,v=an(sN,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:qe.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:Wr.medium}}}],inner:[v.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: "+ch+"px) and (max-width: "+dh+"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: "+ch+"px) and (max-width: "+dh+"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:p.roundedCorner2}},r["@media (min-width: "+ch+"px) and (max-width: "+dh+"px)"]={padding:"15px 8px 0 0"},r)}]}},uN=Yt(aN,lN,void 0,{scope:"DialogContent"}),cN=Vt(),dN={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},fN={type:pi.normal,className:"",topButtonsProps:[]},hN=function(e){$e(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=yn("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,p=o.hidden,h=o.disableRestoreFocus,v=h===void 0?o.ignoreExternalFocusing:h,_=o.isBlocking,g=o.isClickableOutsideFocusTrap,T=o.isDarkOverlay,y=o.isOpen,C=y===void 0?!p:y,k=o.onDismiss,S=o.onDismissed,A=o.onLayerDidMount,D=o.responsiveMode,P=o.subText,x=o.theme,R=o.title,O=o.topButtonsProps,X=o.type,Y=o.minWidth,H=o.maxWidth,G=o.modalProps,J=N({onLayerDidMount:A},G==null?void 0:G.layerProps),M,z;G!=null&&G.dragOptions&&!(!((n=G.dragOptions)===null||n===void 0)&&n.dragHandleSelector)&&(z=N({},G.dragOptions),M="ms-Dialog-draggable-header",z.dragHandleSelector="."+M);var K=N(N(N(N({},dN),{elementToFocusOnDismiss:u,firstFocusableSelector:c,forceFocusInsideTrap:d,disableRestoreFocus:v,isClickableOutsideFocusTrap:g,responsiveMode:D,className:a,containerClassName:s,isBlocking:_,isDarkOverlay:T,onDismissed:S}),G),{dragOptions:z,layerProps:J,isOpen:C}),F=N(N(N({className:l,subText:P,title:R,topButtonsProps:O,type:X},fN),o.dialogContentProps),{draggableHeaderClassName:M,titleProps:N({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)}),b=cN(f,{theme:x,className:K.className,containerClassName:K.containerClassName,hidden:p,dialogDefaultMinWidth:Y,dialogDefaultMaxWidth:H});return E.createElement(g2,N({},K,{className:b.root,containerClassName:b.main,onDismiss:k||K.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),E.createElement(uN,N({subTextId:this._defaultSubTextId,showCloseButton:K.isBlocking,onDismiss:k},F),o.children))},t.defaultProps={hidden:!0},t=$s([J_],t),t}(E.Component),pN={root:"ms-Dialog"},mN=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=an(pN,u);return{root:[c.root,u.fonts.medium,n],main:[{width:o,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: "+k_+"px)"]={width:"auto",maxWidth:s,minWidth:o},t)},!l&&{display:"flex"},r]}},$u=Yt(hN,mN,void 0,{scope:"Dialog"});$u.displayName="Dialog";function gN(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:""}};Nt(n,t)}function EN(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:""}};Nt(n,t)}function vN(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:""}};Nt(n,t)}function TN(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:""}};Nt(n,t)}function yN(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:""}};Nt(n,t)}function _N(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:""}};Nt(n,t)}function CN(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:""}};Nt(n,t)}function SN(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:""}};Nt(n,t)}function AN(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:""}};Nt(n,t)}function bN(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:""}};Nt(n,t)}function kN(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:""}};Nt(n,t)}function FN(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:""}};Nt(n,t)}function IN(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:""}};Nt(n,t)}function xN(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:""}};Nt(n,t)}function NN(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:""}};Nt(n,t)}function DN(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:""}};Nt(n,t)}function wN(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:""}};Nt(n,t)}function RN(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:""}};Nt(n,t)}function PN(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:""}};Nt(n,t)}var MN=function(){Qo("trash","delete"),Qo("onedrive","onedrivelogo"),Qo("alertsolid12","eventdatemissed12"),Qo("sixpointstar","6pointstar"),Qo("twelvepointstar","12pointstar"),Qo("toggleon","toggleleft"),Qo("toggleoff","toggleright")};bm("@fluentui/font-icons-mdl2","8.5.8");var ON="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/",Wa=rt();function LN(e,t){var n,r;e===void 0&&(e=((n=Wa==null?void 0:Wa.FabricConfig)===null||n===void 0?void 0:n.iconBaseUrl)||((r=Wa==null?void 0:Wa.FabricConfig)===null||r===void 0?void 0:r.fontBaseUrl)||ON),[gN,EN,vN,TN,yN,_N,CN,SN,AN,bN,kN,FN,IN,xN,NN,DN,wN,RN,PN].forEach(function(i){return i(e,t)}),MN()}var BN=Vt(),HN=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=BN(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))}),UN=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[ne]={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[ne]={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"}]}},E2=Yt(HN,UN,void 0,{scope:"Separator"});E2.displayName="Separator";var Ym=N;function $l(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 WN(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 GN(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 KN(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:Ch(ks(n[0],t)),columnGap:Ch(ks(n[1],t))};var r=Ch(ks(e,t));return{rowGap:r,columnGap:r}},GE=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var n=e.split(" ");return n.length<2?ks(e,t):n.reduce(function(r,i){return ks(r,t)+" "+ks(i,t)})},ja={start:"flex-start",end:"flex-end"},fp={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},XN=function(e,t,n){var r,i,o,a,s,l,u,c,d,f,p,h,v,_=e.className,g=e.disableShrink,T=e.enableScopedSelectors,y=e.grow,C=e.horizontal,k=e.horizontalAlign,S=e.reversed,A=e.verticalAlign,D=e.verticalFill,P=e.wrap,x=an(fp,t),R=n&&n.childrenGap?n.childrenGap:e.gap,O=n&&n.maxHeight?n.maxHeight:e.maxHeight,X=n&&n.maxWidth?n.maxWidth:e.maxWidth,Y=n&&n.padding?n.padding:e.padding,H=QN(R,t),G=H.rowGap,J=H.columnGap,M=""+-.5*J.value+J.unit,z=""+-.5*G.value+G.unit,K={textOverflow:"ellipsis"},F="> "+(T?"."+fp.child:"*"),b=(r={},r[F+":not(."+y2.root+")"]={flexShrink:0},r);return P?{root:[x.root,{flexWrap:"wrap",maxWidth:X,maxHeight:O,width:"auto",overflow:"visible",height:"100%"},k&&(i={},i[C?"justifyContent":"alignItems"]=ja[k]||k,i),A&&(o={},o[C?"alignItems":"justifyContent"]=ja[A]||A,o),_,{display:"flex"},C&&{height:D?"100%":"auto"}],inner:[x.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:M,marginRight:M,marginTop:z,marginBottom:z,overflow:"visible",boxSizing:"border-box",padding:GE(Y,t),width:J.value===0?"100%":"calc(100% + "+J.value+J.unit+")",maxWidth:"100vw"},a[F]=N({margin:""+.5*G.value+G.unit+" "+.5*J.value+J.unit},K),a),g&&b,k&&(s={},s[C?"justifyContent":"alignItems"]=ja[k]||k,s),A&&(l={},l[C?"alignItems":"justifyContent"]=ja[A]||A,l),C&&(u={flexDirection:S?"row-reverse":"row",height:G.value===0?"100%":"calc(100% + "+G.value+G.unit+")"},u[F]={maxWidth:J.value===0?"100%":"calc(100% - "+J.value+J.unit+")"},u),!C&&(c={flexDirection:S?"column-reverse":"column",height:"calc(100% + "+G.value+G.unit+")"},c[F]={maxHeight:G.value===0?"100%":"calc(100% - "+G.value+G.unit+")"},c)]}:{root:[x.root,(d={display:"flex",flexDirection:C?S?"row-reverse":"row":S?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:D?"100%":"auto",maxWidth:X,maxHeight:O,padding:GE(Y,t),boxSizing:"border-box"},d[F]=K,d),g&&b,y&&{flexGrow:y===!0?1:y},k&&(f={},f[C?"justifyContent":"alignItems"]=ja[k]||k,f),A&&(p={},p[C?"alignItems":"justifyContent"]=ja[A]||A,p),C&&J.value>0&&(h={},h[S?F+":not(:last-child)":F+":not(:first-child)"]={marginLeft:""+J.value+J.unit},h),!C&&G.value>0&&(v={},v[S?F+":not(:last-child)":F+":not(:first-child)"]={marginTop:""+G.value+G.unit},v),_]}},ZN=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=yi(e,["as","disableShrink","enableScopedSelectors","wrap"]),u=_2(e.children,{disableShrink:i,enableScopedSelectors:a}),c=ot(l,pt),d=qm(e,{root:n,inner:"div"});return s?$l(d.root,N({},c),$l(d.inner,null,u)):$l(d.root,N({},c),u)};function _2(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?_2(o.props.children,{disableShrink:n,enableScopedSelectors:r}):null;var a=o,s={};JN(o)&&(s={shrink:!n});var l=a.props.className;return E.cloneElement(a,N(N(N(N({},s),a.props),l&&{className:l}),r&&{className:Cn(fp.child,l)}))}),i}function JN(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===So.displayName}var eD={Item:So},he=Qm(ZN,{displayName:"Stack",styles:XN,statics:eD}),tD=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=yi(e,["block","className","as","variant","nowrap"]),i=qm(e,{root:n});return $l(i.root,N({},ot(r,pt)))},nD=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]}},Fo=Qm(tD,{displayName:"Text",styles:nD});const rD="_layout_19t1l_1",iD="_header_19t1l_7",oD="_headerContainer_19t1l_11",aD="_headerTitleContainer_19t1l_17",sD="_headerTitle_19t1l_17",lD="_headerIcon_19t1l_34",uD="_shareButtonContainer_19t1l_40",cD="_shareButton_19t1l_40",dD="_shareButtonText_19t1l_63",fD="_urlTextBox_19t1l_73",hD="_copyButtonContainer_19t1l_83",pD="_copyButton_19t1l_83",mD="_copyButtonText_19t1l_105",ki={layout:rD,header:iD,headerContainer:oD,headerTitleContainer:aD,headerTitle:sD,headerIcon:lD,shareButtonContainer:uD,shareButton:cD,shareButtonText:dD,urlTextBox:fD,copyButtonContainer:hD,copyButton:pD,copyButtonText:mD},C2="/assets/Azure-30d5e7c0.svg",Sh=typeof window>"u"?global:window,Ah="@griffel/";function gD(e,t){return Sh[Symbol.for(Ah+e)]||(Sh[Symbol.for(Ah+e)]=t),Sh[Symbol.for(Ah+e)]}const hp=gD("DEFINITION_LOOKUP_TABLE",{}),Sc="data-make-styles-bucket",pp=7,Xm="___",ED=Xm.length+pp,vD=0,TD=1;function yD(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 _D(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=WE[n];if(i!==void 0)return t+i;const o=[];for(let u=0;uo.cssText):r}}}const bD=["r","d","l","v","w","f","i","h","a","k","t","m"],jE=bD.reduce((e,t,n)=>(e[t]=n,e),{});function kD(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=AD(s,e,{...r.styleElementAttributes,...o&&{media:i.m}});r.stylesheets[a]=l,t&&s&&t.head.insertBefore(s,FD(t,n,e,r,i))}return r.stylesheets[a]}function FD(e,t,n,r,i){const o=jE[n];let a=c=>o-jE[c.getAttribute(Sc)],s=e.head.querySelectorAll(`[${Sc}]`);if(n==="m"&&i){const c=e.head.querySelectorAll(`[${Sc}="${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 ID=0;const xD=(e,t)=>et?1:0;function ND(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:n,insertionPoint:r,styleElementAttributes:i,compareMediaQueries:o=xD}=t,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:o,id:`d${ID++}`,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=yi(e,["title","primaryFill"]),i=Object.assign(Object.assign({},r),{title:void 0,fill:n}),o=LD();return i.className=CD(o.root,i.className),t&&(i["aria-label"]=t),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},HD=(e,t)=>{const n=r=>{const i=BD(r);return E.createElement(e,Object.assign({},i))};return n.displayName=t,n},Vu=HD,UD=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}))},zD=Vu(UD,"CopyRegular"),GD=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}))},KD=Vu(GD,"ErrorCircleRegular"),WD=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}))},jD=Vu(WD,"SendRegular"),$D=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}))},VD=Vu($D,"ShieldLockRegular"),YD=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}))},qD=Vu(YD,"SquareRegular"),QD=({onClick:e})=>B(Nu,{styles:{root:{width:86,height:32,borderRadius:4,background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)",padding:"5px 12px",marginRight:"20px"},icon:{color:"#FFFFFF"},rootHovered:{background:"linear-gradient(135deg, #0F6CBD 0%, #2D87C3 51.04%, #8DDDD8 100%)"},label:{fontWeight:600,fontSize:14,lineHeight:"20px",color:"#FFFFFF"}},iconProps:{iconName:"Share"},onClick:e,text:"Share"}),XD=({onClick:e,text:t})=>B(Xd,{text:t,iconProps:{iconName:"History"},onClick:e,styles:{root:{width:"180px",border:"1px solid #D1D1D1"},rootHovered:{border:"1px solid #D1D1D1"},rootPressed:{border:"1px solid #D1D1D1"}}}),ZD=(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};default:return e}};var Un=(e=>(e.NotConfigured="CosmosDB is not configured",e.NotWorking="CosmosDB is not working",e.Working="CosmosDB is configured and working",e))(Un||{}),gn=(e=>(e.Loading="loading",e.Success="success",e.Fail="fail",e.NotStarted="notStarted",e))(gn||{});async function JD(e,t){return await fetch("/conversation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e.messages}),signal:t})}async function ew(){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 b2=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 tw(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)),tw=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};i.push(a)}),i}).catch(n=>(console.error("There was an issue fetching your data."),[])),$E=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))},nw=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})),rw=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})),iw=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})),ow=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})),aw=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})),sw=async()=>await fetch("/history/ensure",{method:"GET"}).then(async t=>{let n=await t.json(),r;return n.message?r=Un.Working:t.status===500?r=Un.NotWorking:r=Un.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})),lw={isChatHistoryOpen:!1,chatHistoryLoadingState:gn.Loading,chatHistory:null,filteredChatHistory:null,currentChat:null,isCosmosDBAvailable:{cosmosDB:!1,status:Un.NotConfigured}},Ra=E.createContext(void 0),uw=({children:e})=>{const[t,n]=E.useReducer(ZD,lw);return E.useEffect(()=>{const r=async(o=0)=>await b2(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:gn.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:gn.Loading}),sw().then(o=>{o!=null&&o.cosmosDB?r().then(a=>{a?(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:gn.Success}),n({type:"SET_COSMOSDB_STATUS",payload:o})):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:gn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:Un.NotWorking}}))}).catch(a=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:gn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:Un.NotWorking}})}):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:gn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:o}))}).catch(o=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:gn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:Un.NotConfigured}})})})()},[]),B(Ra.Provider,{value:{state:t,dispatch:n},children:e})},cw=()=>{var d,f;const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[i,o]=E.useState("Copy URL"),a=E.useContext(Ra),s=()=>{t(!0)},l=()=>{t(!1),r(!1),o("Copy URL")},u=()=>{navigator.clipboard.writeText(window.location.href),r(!0)},c=()=>{a==null||a.dispatch({type:"TOGGLE_CHAT_HISTORY"})};return E.useEffect(()=>{n&&o("Copied URL")},[n]),E.useEffect(()=>{},[a==null?void 0:a.state.isCosmosDBAvailable.status]),fe("div",{className:ki.layout,children:[B("header",{className:ki.header,role:"banner",children:fe(he,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",children:[fe(he,{horizontal:!0,verticalAlign:"center",children:[B("img",{src:C2,className:ki.headerIcon,"aria-hidden":"true"}),B(A7,{to:"/",className:ki.headerTitleContainer,children:B("h1",{className:ki.headerTitle,children:"Azure AI"})})]}),fe(he,{horizontal:!0,tokens:{childrenGap:4},children:[((d=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:d.status)!==Un.NotConfigured&&B(XD,{onClick:c,text:(f=a==null?void 0:a.state)!=null&&f.isChatHistoryOpen?"Hide chat history":"Show chat history"}),B(QD,{onClick:s})]})]})}),B(m7,{}),B($u,{onDismiss:l,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(he,{horizontal:!0,verticalAlign:"center",style:{gap:"8px"},children:[B($m,{className:ki.urlTextBox,defaultValue:window.location.href,readOnly:!0}),fe("div",{className:ki.copyButtonContainer,role:"button",tabIndex:0,"aria-label":"Copy",onClick:u,onKeyDown:p=>p.key==="Enter"||p.key===" "?u():null,children:[B(zD,{className:ki.copyButton}),B("span",{className:ki.copyButtonText,children:i})]})]})})]})},dw=()=>B("h1",{children:"404"}),VE=["http","https","mailto","tel"];function fw(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)"}/*! + */function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function T7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function y7(e,t){return e.button===0&&(!t||t==="_self")&&!T7(e)}const _7=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function C7(e){let{basename:t,children:n,window:r}=e,i=E.useRef();i.current==null&&(i.current=T3({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(g7,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const S7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",A7=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,d=v7(t,_7),f,p=!1;if(S7&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){f=u;let g=new URL(window.location.href),T=u.startsWith("//")?new URL(g.protocol+u):new URL(u);T.origin===g.origin?u=T.pathname+T.search+T.hash:p=!0}let h=n7(u,{relative:i}),v=b7(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});function _(g){r&&r(g),g.defaultPrevented||v(g)}return E.createElement("a",ep({},d,{href:f||h,onClick:p||o?r:_,ref:n,target:l}))});var W9;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(W9||(W9={}));var j9;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(j9||(j9={}));function b7(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=r7(),l=zd(),u=Ky(e,{relative:a});return E.useCallback(c=>{if(y7(c,n)){c.preventDefault();let d=r!==void 0?r:id(l)===id(u);s(e,{replace:d,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}var $9={},yc=void 0;try{yc=window}catch{}function bm(e,t){if(typeof yc<"u"){var n=yc.__packages__=yc.__packages__||{};if(!n[e]||!$9[e]){$9[e]=t;var r=n[e]=n[e]||[];r.push(t)}}}bm("@fluentui/set-version","6.0.0");var tp=function(e,t){return tp=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])},tp(e,t)};function je(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var N=function(){return N=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 qr(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r"u"?fl.none:fl.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(za=Xa[V9],!za||za._lastStyleElement&&za._lastStyleElement.ownerDocument!==document){var t=(Xa==null?void 0:Xa.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);za=n,Xa[V9]=n}return za},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=N(N({},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!==fl.none?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),i)switch(r){case fl.insertNode:var o=i.sheet;try{o.insertRule(t,o.cssRules.length)}catch{}break;case fl.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(),k7||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 Wy(){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 jy(e){bs!==e&&(bs=e)}function $y(){return bs===void 0&&(bs=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),bs}var bs;bs=$y();function Gd(){return{rtl:$y()}}var Y9={};function F7(e,t){var n=e[t];n.charAt(0)!=="-"&&(e[t]=Y9[n]=Y9[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var P1;function I7(){var e;if(!P1){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?P1={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)))}:P1={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return P1}var q9={"user-select":1};function x7(e,t){var n=I7(),r=e[t];if(q9[r]){var i=e[t+1];q9[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 N7=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function D7(e,t){var n=e[t],r=e[t+1];if(typeof r=="number"){var i=N7.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]="".concat(r).concat(a)}}var M1,vo="left",To="right",w7="@noflip",Q9=(M1={},M1[vo]=To,M1[To]=vo,M1),X9={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function R7(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if(typeof i=="string"&&i.indexOf(w7)>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(vo)>=0)t[n]=r.replace(vo,To);else if(r.indexOf(To)>=0)t[n]=r.replace(To,vo);else if(String(i).indexOf(vo)>=0)t[n+1]=i.replace(vo,To);else if(String(i).indexOf(To)>=0)t[n+1]=i.replace(To,vo);else if(Q9[r])t[n]=Q9[r];else if(X9[i])t[n+1]=X9[i];else switch(r){case"margin":case"padding":t[n+1]=M7(i);break;case"box-shadow":t[n+1]=P7(i,0);break}}}function P7(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 M7(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 O7(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 Z9(e,t){return e.indexOf(":global(")>=0?e.replace(Vy,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function J9(e,t,n,r){t===void 0&&(t={__order:[]}),n.indexOf("@")===0?(n=n+"{"+e,ks([r],t,n)):n.indexOf(",")>-1?H7(n).split(",").map(function(i){return i.trim()}).forEach(function(i){return ks([r],t,Z9(i,e))}):ks([r],t,Z9(n,e))}function ks(e,t,n){t===void 0&&(t={__order:[]}),n===void 0&&(n="&");var r=Fr.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,p=function(h){if(r.hasOwnProperty(h)){var v=r[h];f[h]=function(_){return _i.apply(void 0,v.map(function(g){return typeof g=="function"?g(_):g}))}}};for(var u in r)p(u)}return n}function zu(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:np}}var Ys=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=ot(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=ot(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(),_=v-l,g=a?o-_:o;return _>=o&&(!h||a)?(l=v,d&&(i.clearTimeout(d),d=null),u=t.apply(i._parent,c)):d===null&&s&&(d=i.setTimeout(f,g)),u},p=function(){for(var h=[],v=0;v=a&&(D=!0),c=A);var P=A-c,x=a-P,O=A-d,M=!1;return u!==null&&(O>=u&&h?M=!0:x=Math.min(x,u-O)),P>=a||M||D?_(A):(h===null||!S)&&l&&(h=i.setTimeout(g,x)),f},T=function(){return!!h},y=function(){T()&&v(Date.now())},C=function(){return T()&&_(Date.now()),f},k=function(){for(var S=[],A=0;A-1)for(var a=n.split(/[ ,]+/),s=0;s"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var th,Kl=0,t_=ci({overflow:"hidden !important"}),eE="data-is-scrollable",j7=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=Im(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}},$7=function(e,t){if(e){var n=function(r){r.stopPropagation()};t.on(e,"touchmove",n,{passive:!1})}},n_=function(e){e.preventDefault()};function V7(){var e=bn();e&&e.body&&!Kl&&(e.body.classList.add(t_),e.body.addEventListener("touchmove",n_,{passive:!1,capture:!1})),Kl++}function Y7(){if(Kl>0){var e=bn();e&&e.body&&Kl===1&&(e.body.classList.remove(t_),e.body.removeEventListener("touchmove",n_)),Kl--}}function q7(){if(th===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),th=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return th}function Im(e){for(var t=e,n=bn(e);t&&t!==n.body;){if(t.getAttribute(eE)==="true")return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if(t.getAttribute(eE)!=="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=ot(e)),t}var Q7=void 0;function xm(e){console&&console.warn&&console.warn(e)}function r_(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 Ys(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 vr(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){r_(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 X7(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 dA="data-is-focusable",fA="data-is-visible",hA="data-focuszone-id",pA="data-is-sub-focuszone";function mA(e,t,n){return gn(e,t,!0,!1,!1,n)}function gA(e,t,n){return Ln(e,t,!0,!1,!0,n)}function EA(e,t,n,r){return r===void 0&&(r=!0),gn(e,t,r,!1,!1,n,!1,!0)}function vA(e,t,n,r){return r===void 0&&(r=!0),Ln(e,t,r,!1,!0,n,!1,!0)}function TA(e,t){var n=gn(e,e,!0,!1,!1,!0,void 0,void 0,t);return n?(d_(n),!0):!1}function Ln(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=Wd(t);if(i&&l&&(o||!(Bi(t)||wm(t)))){var u=Ln(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&li(u,!0)||!s)return u;var c=Ln(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var f=Ln(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(f)return f;d=d.parentElement}}}if(n&&l&&li(t,s))return t;var p=Ln(e,t.previousElementSibling,!0,!0,!0,o,a,s);return p||(r?null:Ln(e,t.parentElement,!0,!1,!1,o,a,s))}function gn(e,t,n,r,i,o,a,s,l){if(!t||t===e&&i&&!a)return null;var u=l?u_:Wd,c=u(t);if(n&&c&&li(t,s))return t;if(!i&&c&&(o||!(Bi(t)||wm(t)))){var d=gn(e,t.firstElementChild,!0,!0,!1,o,a,s,l);if(d)return d}if(t===e)return null;var f=gn(e,t.nextElementSibling,!0,!0,!1,o,a,s,l);return f||(r?null:gn(e,t.parentElement,!1,!1,!0,o,a,s,l))}function Wd(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(fA);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function u_(e){return!!e&&Wd(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function li(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(dA):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 Bi(e){return!!(e&&e.getAttribute&&e.getAttribute(hA))}function wm(e){return!!(e&&e.getAttribute&&e.getAttribute(pA)==="true")}function yA(e){var t=bn(e),n=t&&t.activeElement;return!!(n&&Hn(e,n))}function c_(e,t){return lA(e,t)!=="true"}var Ga=void 0;function d_(e){if(e){if(Ga){Ga=e;return}Ga=e;var t=ot(e);t&&t.requestAnimationFrame(function(){Ga&&Ga.focus(),Ga=void 0})}}function _A(e,t){for(var n=e,r=0,i=t;r(e.cacheSize||SA)){var p=ot();!((l=p==null?void 0:p.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[O1]};return o}function ih(e,t){return t=bA(t),e.has(t)||e.set(t,new Map),e.get(t)}function nE(e,t){if(typeof t=="function"){var n=t.__cachedInputs__;if(n)for(var r=0,i=t.__cachedInputs__;r"u"?null:WeakMap;function FA(){Cc++}function mt(e,t,n){if(t===void 0&&(t=100),n===void 0&&(n=!1),!_u)return e;if(!rE){var r=Fr.getInstance();r&&r.onReset&&Fr.getInstance().onReset(FA),rE=!0}var i,o=0,a=Cc;return function(){for(var l=[],u=0;u0&&o>t)&&(i=iE(),o=0,a=Cc),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 ZA=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function JA(e,t,n){n===void 0&&(n=ZA);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(ud.Provider,{value:a},e.children):E.createElement(E.Fragment,null,e.children)};function sb(e){var t=null;try{var n=ot();t=n?n.localStorage.getItem(e):null}catch{}return t}var Qo,dE="language";function lb(e){if(e===void 0&&(e="sessionStorage"),Qo===void 0){var t=bn(),n=e==="localStorage"?sb(dE):e==="sessionStorage"?a_(dE):void 0;n&&(Qo=n),Qo===void 0&&t&&(Qo=t.documentElement.getAttribute("lang")),Qo===void 0&&(Qo="en")}return Qo}function fE(e){for(var t=[],n=1;n-1;e[r]=o?i:C_(e[r]||{},i,n)}else e[r]=i}return n.pop(),e}var hE=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},ub=["TEMPLATE","STYLE","SCRIPT"];function S_(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=ot(),r=(t=n==null?void 0:n.navigator)===null||t===void 0?void 0:t.userAgent;ah=!!r&&r.indexOf("Macintosh")!==-1}return!!ah}function db(e){var t=Ls(function(n){var r=Ls(function(i){return function(o){return n(o,i)}});return function(i,o){return e(i,o?r(o):n)}});return t}var fb=Ls(db);function op(e,t){return fb(e)(t)}var hb=["theme","styles"];function Qt(e,t,n,r,i){r=r||{scope:"",fields:void 0};var o=r.scope,a=r.fields,s=a===void 0?hb:a,l=E.forwardRef(function(c,d){var f=E.useRef(),p=zA(s,o),h=p.styles;p.dir;var v=yi(p,["styles","dir"]),_=n?n(c):void 0,g=f.current&&f.current.__cachedInputs__||[],T=c.styles;if(!f.current||h!==g[1]||T!==g[2]){var y=function(C){return Jy(C,t,h,T)};y.__cachedInputs__=[t,h,T],y.__noStyleOverride__=!h&&!T,f.current=y}return E.createElement(e,N({ref:d},v,_,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 pb=function(){var e,t=ot();return!((e=t==null?void 0:t.navigator)===null||e===void 0)&&e.userAgent?t.navigator.userAgent.indexOf("rv:11.0")>-1:!1};function Ku(e,t){for(var n=N({},t),r=0,i=Object.keys(e);rr?" (+ "+(hl.length-r)+" more)":"")),lh=void 0,hl=[]},n)))}function Tb(e,t,n,r,i){i===void 0&&(i=!1);var o=N({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=b_(e,t,o,r);return yb(a,i)}function b_(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,p=a.themeLighter,h=a.neutralLight,v=a.neutralLighter,_=a.neutralDark,g=a.neutralQuaternary,T=a.neutralQuaternaryAlt,y=a.neutralPrimary,C=a.neutralSecondary,k=a.neutralSecondaryAlt,S=a.neutralTertiary,A=a.neutralTertiaryAlt,D=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),p&&(o.inputPlaceholderBackgroundChecked=p),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),g&&(o.primaryButtonTextDisabled=g,o.disabledSubtext=g),T&&(o.listItemBackgroundCheckedHovered=T),S&&(o.disabledBodyText=S,o.variantBorderHovered=(n==null?void 0:n.variantBorderHovered)||S,o.buttonTextDisabled=S,o.inputIconDisabled=S,o.disabledText=S),y&&(o.bodyText=y,o.actionLink=y,o.buttonText=y,o.inputBorderHovered=y,o.inputText=y,o.listText=y,o.menuItemText=y),D&&(o.bodyStandoutBackground=D,o.defaultStateBackground=D),_&&(o.actionLinkHovered=_,o.buttonTextHovered=_,o.buttonTextChecked=_,o.buttonTextPressed=_,o.inputTextHovered=_,o.menuItemTextHovered=_),C&&(o.bodySubtext=C,o.focusBorder=C,o.inputBorder=C,o.smallInputBorder=C,o.inputPlaceholderText=C),k&&(o.buttonBorder=k),A&&(o.disabledBodySubtext=A,o.disabledBorder=A,o.buttonBackgroundChecked=A,o.menuDivider=A),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=N(N({},o),n),o}function yb(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 _b(e,t){var n,r,i;t===void 0&&(t={});var o=fE({},e,t,{semanticColors:b_(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,TE=Wl&&Wl.CSPSettings&&Wl.CSPSettings.nonce,rr=hk();function hk(){var e=Wl.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=ms(ms({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=ms(ms({},e),{registeredThemableStyles:[]})),Wl.__themeState__=e,e}function pk(e,t){rr.loadStyles?rr.loadStyles(x_(e).styleString,e):vk(e)}function mk(e){rr.theme=e,Ek()}function gk(e){e===void 0&&(e=3),(e===3||e===2)&&(yE(rr.registeredStyles),rr.registeredStyles=[]),(e===3||e===1)&&(yE(rr.registeredThemableStyles),rr.registeredThemableStyles=[])}function yE(e){e.forEach(function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)})}function Ek(){if(rr.theme){for(var e=[],t=0,n=rr.registeredThemableStyles;t0&&(gk(1),pk([].concat.apply([],e)))}}function x_(e){var t=rr.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 vk(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=x_(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),TE&&n.setAttribute("nonce",TE),n.appendChild(document.createTextNode(i)),rr.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?rr.registeredThemableStyles.push(s):rr.registeredStyles.push(s)}}var pr=Wu({}),Tk=[],lp="theme";function N_(){var e,t,n,r=ot();!((t=r==null?void 0:r.FabricConfig)===null||t===void 0)&&t.legacyTheme?_k(r.FabricConfig.legacyTheme):Sr.getSettings([lp]).theme||(!((n=r==null?void 0:r.FabricConfig)===null||n===void 0)&&n.theme&&(pr=Wu(r.FabricConfig.theme)),Sr.applySettings((e={},e[lp]=pr,e)))}N_();function yk(e){return e===void 0&&(e=!1),e===!0&&(pr=Wu({},e)),pr}function _k(e,t){var n;return t===void 0&&(t=!1),pr=Wu(e,t),mk(N(N(N(N({},pr.palette),pr.semanticColors),pr.effects),Ck(pr))),Sr.applySettings((n={},n[lp]=pr,n)),Tk.forEach(function(r){try{r(pr)}catch{}}),pr}function Ck(e){for(var t={},n=0,r=Object.keys(e.fonts);nt.bottom||e.leftt.right)}function dd(e,t){var n=[];return e.topt.bottom&&n.push(se.bottom),e.leftt.right&&n.push(se.right),n}function an(e,t){return e[se[t]]}function AE(e,t,n){return e[se[t]]=n,e}function Su(e,t){var n=qs(t);return(an(e,n.positiveEdge)+an(e,n.negativeEdge))/2}function Yd(e,t){return e>0?t:t*-1}function up(e,t){return Yd(e,an(t,e))}function Gi(e,t,n){var r=an(e,n)-an(t,n);return Yd(n,r)}function Us(e,t,n,r){r===void 0&&(r=!0);var i=an(e,t)-n,o=AE(e,t,n);return r&&(o=AE(e,t*-1,an(e,t*-1)-i)),o}function Au(e,t,n,r){return r===void 0&&(r=0),Us(e,n,an(t,n)+Yd(n,r))}function Sk(e,t,n,r){r===void 0&&(r=0);var i=n*-1,o=Yd(i,r);return Us(e,n*-1,an(t,n)+o)}function fd(e,t,n){var r=up(n,e);return r>up(n,t)}function Ak(e,t){for(var n=dd(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=hd(e,t,{targetEdge:s,alignmentEdge:l},i))}return a=hd(e,t,{targetEdge:c,alignmentEdge:d},i),{elementRectangle:a,targetEdge:c,alignmentEdge:d}}function kk(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=e.elementRectangle,s=i*-1,l=hd(a,t,{targetEdge:o,alignmentEdge:s},n,r);return{elementRectangle:l,targetEdge:o,alignmentEdge:s}}function Fk(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=bk(e,t,n,r,i));var c=dd(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=kk(u,t,i,a);if(Pm(f.elementRectangle,n))return f;u=hh(dd(f.elementRectangle,n),u,n,d)}else u=hh(c,u,n,d);else u=hh(c,u,n,d);return u}function hh(e,t,n,r){for(var i=0,o=e;iMath.abs(Gi(e,n,t*-1))?t*-1:t}function Ik(e,t,n){return n!==void 0&&an(e,t)===an(n,t)}function xk(e,t,n,r,i,o,a,s){var l={},u=Mm(t),c=o?n:n*-1,d=i||qs(n).positiveEdge;return(!a||Ik(e,Kk(d),r))&&(d=w_(e,d,r)),l[se[c]]=Gi(e,u,c),l[se[d]]=Gi(e,u,d),s&&(l[se[c*-1]]=Gi(e,u,c*-1),l[se[d*-1]]=Gi(e,u,d*-1)),l}function Nk(e){return Math.sqrt(e*e*2)}function Dk(e,t,n){if(e===void 0&&(e=Ct.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=N({},SE[e]);return yn()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=r.alignmentEdge*-1),t!==void 0?SE[t]:r):r}function wk(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=R_(e.targetEdge,t,n)),e.alignTargetEdge=i,e}function R_(e,t,n){var r=Su(t,e),i=Su(n,e),o=qs(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function Rk(e,t,n,r,i,o,a){var s=hd(e,t,r,i,a);return Pm(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:Fk(s,t,n,r,i,o,a)}function Pk(e,t,n){var r=e.targetEdge*-1,i=new Ei(0,e.elementRectangle.width,0,e.elementRectangle.height),o={},a=w_(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:qs(r).positiveEdge,n),s=Gi(e.elementRectangle,e.targetRectangle,r),l=s>Math.abs(an(t,r));return o[se[r]]=an(t,r),o[se[a]]=Gi(t,i,a),{elementPosition:N({},o),closestEdge:R_(e.targetEdge,t,i),targetEdge:r,hideBeak:!l}}function Mk(e,t){var n=t.targetRectangle,r=qs(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=Su(n,t.targetEdge),s=new Ei(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new Ei(0,e,0,e);return l=Us(l,t.targetEdge*-1,-e/2),l=D_(l,t.targetEdge*-1,a-up(i,t.elementRectangle)),fd(l,s,i)?fd(l,s,o)||(l=Au(l,s,o)):l=Au(l,s,i),l}function Mm(e){var t=e.getBoundingClientRect();return new Ei(t.left,t.right,t.top,t.bottom)}function Ok(e){return new Ei(e.left,e.right,e.top,e.bottom)}function Lk(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new Ei(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Mm(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 Ei(o,s,a,l)}if(!Pm(n,e))for(var u=dd(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 jk(e,t){return Wk(e,t)}function Qs(){var e=E.useRef();return e.current||(e.current=new Ys),E.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function vi(e){var t=E.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function ju(e){var t=E.useState(e),n=t[0],r=t[1],i=vi(function(){return function(){r(!0)}}),o=vi(function(){return function(){r(!1)}}),a=vi(function(){return function(){r(function(s){return!s})}});return[n,{setTrue:i,setFalse:o,toggle:a}]}function ph(e){var t=E.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return Bs(function(){t.current=e},[e]),vi(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 qk(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==ot()&&setTimeout(function(){var r;(r=t.focus)===null||r===void 0||r.call(t)},0)}function Qk(e,t){var n=e.onRestoreFocus,r=n===void 0?qk:n,i=E.useRef(),o=E.useRef(!1);E.useEffect(function(){return i.current=bn().activeElement,yA(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}},[]),bu(t,"focus",E.useCallback(function(){o.current=!0},[]),!0),bu(t,"blur",E.useCallback(function(a){t.current&&a.relatedTarget&&!t.current.contains(a.relatedTarget)&&(o.current=!1)},[]),!0)}function Xk(e,t){var n=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;E.useEffect(function(){if(n&&t.current){var r=S_(t.current);return r}},[t,n])}var Bm=E.forwardRef(function(e,t){var n=Ku({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=E.useRef(),i=Yi(r,t);Xk(n,r),Qk(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,p=Yk(n,r),h=E.useCallback(function(_){switch(_.which){case oe.escape:f&&(f(_),_.preventDefault(),_.stopPropagation());break}},[f]),v=Qd();return bu(v,"keydown",h),E.createElement("div",N({ref:i},st(n,Ji),{className:a,role:o,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,onKeyDown:h,style:N({overflowY:p?"scroll":void 0,outline:"none"},c)}),d)});Bm.displayName="Popup";var Ka,Zk="CalloutContentBase",Jk=(Ka={},Ka[se.top]=gs.slideUpIn10,Ka[se.bottom]=gs.slideDownIn10,Ka[se.left]=gs.slideLeftIn10,Ka[se.right]=gs.slideRightIn10,Ka),bE={top:0,left:0},eF={opacity:0,filter:"opacity(0)",pointerEvents:"none"},tF=["role","aria-roledescription"],L_={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Ct.bottomAutoEdge},nF=qt({disableCaching:!0});function rF(e,t,n){var r=e.bounds,i=e.minPagePadding,o=i===void 0?L_.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 p=typeof r=="function"?n?r(a,n):void 0:r;!p&&n&&(p=jk(t.current,n),p={top:p.top+o,left:p.left+o,right:p.right-o,bottom:p.bottom-o,width:p.width-o*2,height:p.height-o*2}),c.current=p,l&&u(!1)}return c.current},[r,o,a,t,n,l]),f=Qs();return bu(n,"resize",f.debounce(function(){u(!0)},500,{leading:!0})),d}function iF(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:{},p=f.top,h=f.bottom;return E.useEffect(function(){var v,_=(v=t())!==null&&v!==void 0?v:{},g=_.top,T=_.bottom;!i&&!l?typeof p=="number"&&T?d(T-p):typeof h=="number"&&typeof g=="number"&&T&&d(T-g-h):d(i||void 0)},[h,i,o,a,s,t,l,n,p]),c}function oF(e,t,n,r,i){var o=E.useState(),a=o[0],s=o[1],l=E.useRef(0),u=E.useRef(),c=Qs(),d=e.hidden,f=e.target,p=e.finalHeight,h=e.calloutMaxHeight,v=e.onPositioned,_=e.directionalHint;return E.useEffect(function(){if(d)s(void 0),l.current=0;else{var g=c.requestAnimationFrame(function(){var T,y;if(t.current&&n){var C=N(N({},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 S=u.current===f?a:void 0,A=p?Gk(C,t.current,k,S):zk(C,t.current,k,S);(y=n.parentElement)===null||y===void 0||y.removeChild(k),!a&&A||a&&A&&!uF(a,A)&&l.current<5?(l.current++,s(A)):l.current>0&&(l.current=0,v==null||v(a))}},n);return u.current=f,function(){c.cancelAnimationFrame(g),u.current=void 0}}},[d,_,c,n,h,t,r,p,i,v,a,e,f]),a}function aF(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=Qs(),a=!!t;E.useEffect(function(){if(!r&&i&&a&&n){var s=o.requestAnimationFrame(function(){return TA(n)},n);return function(){return o.cancelAnimationFrame(s)}}},[r,a,o,n,i])}function sF(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,p=E.useRef(!1),h=Qs(),v=vi([function(){p.current=!0},function(){p.current=!1}]),_=!!t;return E.useEffect(function(){var g=function(A){_&&!s&&C(A)},T=function(A){!l&&!(f&&f(A))&&(a==null||a(A))},y=function(A){u||C(A)},C=function(A){var D=A.composedPath?A.composedPath():[],P=D.length>0?D[0]:A.target,x=n.current&&!Hn(n.current,P);if(x&&p.current){p.current=!1;return}if(!r.current&&x||A.target!==i&&x&&(!r.current||"stopPropagation"in r.current||c||P!==r.current&&!Hn(r.current,P))){if(f&&f(A))return;a==null||a(A)}},k=function(A){d&&(f&&!f(A)||!f&&!u)&&!(i!=null&&i.document.hasFocus())&&A.relatedTarget===null&&(a==null||a(A))},S=new Promise(function(A){h.setTimeout(function(){if(!o&&i){var D=[di(i,"scroll",g,!0),di(i,"resize",T,!0),di(i.document.documentElement,"focus",y,!0),di(i.document.documentElement,"click",y,!0),di(i,"blur",k,!0)];A(function(){D.forEach(function(P){return P()})})}},0)});return function(){S.then(function(A){return A()})}},[o,h,n,r,i,a,d,c,u,l,s,_,f]),v}var B_=E.memo(E.forwardRef(function(e,t){var n=Ku(L_,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,p=n.calloutMaxWidth,h=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,g=n.hideOverflow,T=g===void 0?!!_:g,y=n.backgroundColor,C=n.calloutMaxHeight,k=n.onScroll,S=n.shouldRestoreFocus,A=S===void 0?!0:S,D=n.target,P=n.hidden,x=n.onLayerMounted,O=n.popupProps,M=E.useRef(null),Q=E.useState(null),Z=Q[0],H=Q[1],z=E.useCallback(function(Dr){H(Dr)},[]),J=Yi(M,t),R=M_(n.target,{current:Z}),G=R[0],K=R[1],F=rF(n,G,K),b=oF(n,M,Z,G,F),Je=iF(n,F,b),Ue=sF(n,b,M,G,K),Rt=Ue[0],_e=Ue[1],Ne=(b==null?void 0:b.elementPosition.top)&&(b==null?void 0:b.elementPosition.bottom),Pt=N(N({},b==null?void 0:b.elementPosition),{maxHeight:Je});if(Ne&&(Pt.bottom=void 0),aF(n,b,Z),E.useEffect(function(){P||x==null||x()},[P]),!K)return null;var Ft=T,Et=u&&!!D,zt=nF(r,{theme:n.theme,className:l,overflowYHidden:Ft,calloutWidth:f,positions:b,beakWidth:d,backgroundColor:y,calloutMaxWidth:p,calloutMinWidth:h,doNotLayer:v}),xn=N(N({maxHeight:C||"100%"},i),Ft&&{overflowY:"hidden"}),Vn=n.hidden?{visibility:"hidden"}:void 0;return E.createElement("div",{ref:J,className:zt.container,style:Vn},E.createElement("div",N({},st(n,Ji,tF),{className:Sn(zt.root,b&&b.targetEdge&&Jk[b.targetEdge]),style:b?N({},Pt):eF,tabIndex:-1,ref:z}),Et&&E.createElement("div",{className:zt.beak,style:lF(b)}),Et&&E.createElement("div",{className:zt.beakCurtain}),E.createElement(Bm,N({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:a,ariaLabel:o,ariaLabelledBy:s,className:zt.calloutMain,onDismiss:n.onDismiss,onMouseDown:Rt,onMouseUp:_e,onRestoreFocus:n.onRestoreFocus,onScroll:k,shouldRestoreFocus:A,style:xn},O),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:Fm(e,t)});function lF(e){var t,n,r=N(N({},(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=bE.left,r.top=bE.top),r}function uF(e,t){return kE(e.elementPosition,t.elementPosition)&&kE(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function kE(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}B_.displayName=Zk;function cF(e){return{height:e,width:e}}var dF={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},fF=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=sn(dF,n),f=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Hs.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[ne]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},dk(),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)"},cF(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:f.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:f.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}},hF=Qt(B_,fF,void 0,{scope:"CalloutContent"}),H_=E.createContext(void 0),pF=function(){return function(){}};H_.Provider;function mF(){var e;return(e=E.useContext(H_))!==null&&e!==void 0?e:pF}var gF=qt(),EF=mt(function(e,t){return Wu(N(N({},e),{rtl:t}))}),vF=function(e){var t=e.theme,n=e.dir,r=yn(t)?"rtl":"ltr",i=yn()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}},U_=E.forwardRef(function(e,t){var n=e.className,r=e.theme,i=e.applyTheme,o=e.applyThemeToBody,a=e.styles,s=gF(a,{theme:r,applyTheme:i,className:n}),l=E.useRef(null);return yF(o,s,l),E.createElement(E.Fragment,null,TF(e,s,l,t))});U_.displayName="FabricBase";function TF(e,t,n,r){var i=t.root,o=e.as,a=o===void 0?"div":o,s=e.dir,l=e.theme,u=st(e,Ji,["dir"]),c=vF(e),d=c.rootDir,f=c.needsTheme,p=E.createElement(__,{providerRef:n},E.createElement(a,N({dir:d},u,{className:i,ref:Yi(n,r)})));return f&&(p=E.createElement(UA,{settings:{theme:EF(l,s==="rtl")}},p)),p}function yF(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 mh={fontFamily:"inherit"},_F={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},CF=function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,i=e.theme,o=sn(_F,i);return{root:[o.root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":mh,"& input":mh,"& textarea":mh},t&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}},SF=Qt(U_,CF,void 0,{scope:"Fabric"}),jl={},Hm={},z_="fluent-default-layer-host",AF="#"+z_;function bF(e,t){jl[e]||(jl[e]=[]),jl[e].push(t);var n=Hm[e];if(n)for(var r=0,i=n;r=0&&(n.splice(r,1),n.length===0&&delete jl[e])}var i=Hm[e];if(i)for(var o=0,a=i;o0&&t.current.naturalHeight>0||t.current.complete&&HF.test(o):!1;d&&l(Tn.loaded)}}),E.useEffect(function(){n==null||n(s)},[s]);var u=E.useCallback(function(d){r==null||r(d),o&&l(Tn.loaded)},[o,r]),c=E.useCallback(function(d){i==null||i(d),l(Tn.error)},[i]);return[s,u,c]}var j_=E.forwardRef(function(e,t){var n=E.useRef(),r=E.useRef(),i=zF(e,r),o=i[0],a=i[1],s=i[2],l=st(e,XA,["width","height"]),u=e.src,c=e.alt,d=e.width,f=e.height,p=e.shouldFadeIn,h=p===void 0?!0:p,v=e.shouldStartVisible,_=e.className,g=e.imageFit,T=e.role,y=e.maximizeFrame,C=e.styles,k=e.theme,S=e.loading,A=GF(e,o,r,n),D=BF(C,{theme:k,className:_,width:d,height:f,maximizeFrame:y,shouldFadeIn:h,shouldStartVisible:v,isLoaded:o===Tn.loaded||o===Tn.notLoaded&&e.shouldStartVisible,isLandscape:A===ku.landscape,isCenter:g===Bn.center,isCenterContain:g===Bn.centerContain,isCenterCover:g===Bn.centerCover,isContain:g===Bn.contain,isCover:g===Bn.cover,isNone:g===Bn.none,isError:o===Tn.error,isNotImageFit:g===void 0});return E.createElement("div",{className:D.root,style:{width:d,height:f},ref:n},E.createElement("img",N({},l,{onLoad:a,onError:s,key:UF+e.src||"",className:D.image,ref:Yi(r,t),src:u,alt:c,role:T,loading:S})))});j_.displayName="ImageBase";function GF(e,t,n,r){var i=E.useRef(t),o=E.useRef();return(o===void 0||i.current===Tn.notLoaded&&t===Tn.loaded)&&(o.current=KF(e,t,n,r)),i.current=t,o.current}function KF(e,t,n,r){var i=e.imageFit,o=e.width,a=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===Tn.loaded&&(i===Bn.cover||i===Bn.contain||i===Bn.centerContain||i===Bn.centerCover)&&n.current&&r.current){var s=void 0;typeof o=="number"&&typeof a=="number"&&i!==Bn.centerContain&&i!==Bn.centerCover?s=o/a:s=r.current.clientWidth/r.current.clientHeight;var l=n.current.naturalWidth/n.current.naturalHeight;if(l>s)return ku.landscape}return ku.portrait}var WF={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"},jF=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,p=e.isCenterCover,h=e.isNone,v=e.isError,_=e.isNotImageFit,g=e.theme,T=sn(WF,g),y={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=ot(),k=C!==void 0&&C.navigator.msMaxTouchPoints===void 0,S=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[T.root,g.fonts.medium,{overflow:"hidden"},i&&[T.rootMaximizeFrame,{height:"100%",width:"100%"}],o&&a&&!s&&gs.fadeIn400,(u||c||d||f||p)&&{position:"relative"},t],image:[T.image,{display:"block",opacity:0},o&&["is-loaded",{opacity:1}],u&&[T.imageCenter,y],c&&[T.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&S,!k&&y],d&&[T.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&S,!k&&y],f&&[T.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},y],p&&[T.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},y],h&&[T.imageNone,{width:"auto",height:"auto"}],_&&[!!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"]}},Um=Qt(j_,jF,void 0,{scope:"Image"},!0);Um.displayName="Image";var Ta=zu({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),$_="ms-Icon",$F=function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,i=e.isImage,o=e.styles;return{root:[r&&Ta.placeholder,Ta.root,i&&Ta.image,n,t,o&&o.root,o&&o.imageContainer]}},V_=mt(function(e){var t=Eb(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),md=function(e){var t=e.iconName,n=e.className,r=e.style,i=r===void 0?{}:r,o=V_(t)||{},a=o.iconClassName,s=o.children,l=o.fontFamily,u=o.mergeImageProps,c=st(e,gt),d=e["aria-label"]||e.title,f=e["aria-label"]||e["aria-labelledby"]||e.title?{role:u?void 0:"img"}:{"aria-hidden":!0},p=s;return u&&typeof s=="object"&&typeof s.props=="object"&&d&&(p=E.cloneElement(s,{alt:d})),E.createElement("i",N({"data-icon-name":t},f,c,u?{title:void 0,"aria-label":void 0}:{},{className:Sn($_,Ta.root,a,!t&&Ta.placeholder,n),style:N({fontFamily:l},i)}),p)};mt(function(e,t,n){return md({iconName:e,className:t,"aria-label":n})});var VF=qt({cacheSize:100}),YF=function(e){je(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===Tn.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===pd.image||this.props.iconType===pd.Image,d=V_(a)||{},f=d.iconClassName,p=d.children,h=d.mergeImageProps,v=VF(o,{theme:l,className:i,iconClassName:f,isImage:c,isPlaceholder:u}),_=c?"span":"i",g=st(this.props,gt,["aria-label"]),T=this.state.imageLoadError,y=N(N({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),C=T&&s||Um,k=this.props["aria-label"]||this.props.ariaLabel,S=y.alt||k||this.props.title,A=!!(S||this.props["aria-labelledby"]||y["aria-label"]||y["aria-labelledby"]),D=A?{role:c||h?void 0:"img","aria-label":c||h?void 0:S}:{"aria-hidden":!0},P=p;return h&&p&&typeof p=="object"&&S&&(P=E.cloneElement(p,{alt:S})),E.createElement(_,N({"data-icon-name":a},D,g,h?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?E.createElement(C,N({},y)):r||P)},t}(E.Component),qi=Qt(YF,$F,void 0,{scope:"Icon"},!0);qi.displayName="Icon";var qF=function(e){var t=e.className,n=e.imageProps,r=st(e,gt,["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",N({},s,r,{className:Sn($_,Ta.root,Ta.image,t)}),E.createElement(Um,N({},a,n,{alt:o?i:""})))},cp={none:0,all:1,inputOnly:2},pn;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(pn||(pn={}));var H1="data-is-focusable",QF="data-disable-click-on-enter",gh="data-focuszone-id",ri="tabindex",Eh="data-no-vertical-wrap",vh="data-no-horizontal-wrap",Th=999999999,pl=-999999999,yh,XF="ms-FocusZone";function ZF(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 JF(){return yh||(yh=ci({selectors:{":focus":{outline:"none"}}},XF)),yh}var ml={},U1=new Set,eI=["text","number","password","email","tel","url","search","textarea"],ki=!1,tI=function(e){je(t,e);function t(n){var r,i,o,a,s=e.call(this,n)||this;s._root=E.createRef(),s._mergedRef=A_(),s._onFocus=function(u){if(!s._portalContainsElement(u.target)){var c=s.props,d=c.onActiveElementChanged,f=c.doNotAllowFocusEventToPropagate,p=c.stopFocusPropagation,h=c.onFocusNotification,v=c.onFocus,_=c.shouldFocusInnerElementWhenReceivedFocus,g=c.defaultTabbableElement,T=s._isImmediateDescendantOfZone(u.target),y;if(T)y=u.target;else for(var C=u.target;C&&C!==s._root.current;){if(li(C)&&s._isImmediateDescendantOfZone(C)){y=C;break}C=zr(C,ki)}if(_&&u.target===s._root.current){var k=g&&typeof g=="function"&&s._root.current&&g(s._root.current);k&&li(k)?(y=k,k.focus()):(s.focus(!0),s._activeElement&&(y=null))}var S=!s._activeElement;y&&y!==s._activeElement&&((T||S)&&s._setFocusAlignment(y,!0,!0),s._activeElement=y,S&&s._updateTabIndexes()),d&&d(s._activeElement,u),(p||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=zr(d,ki);for(;f.length&&(d=f.pop(),d&&li(d)&&s._setActiveElement(d,!0),!Bi(d)););}}},s._onKeyDown=function(u,c){if(!s._portalContainsElement(u.target)){var d=s.props,f=d.direction,p=d.disabled,h=d.isInnerZoneKeystroke,v=d.pagingSupportDisabled,_=d.shouldEnterInnerZone;if(!p&&(s.props.onKeyDown&&s.props.onKeyDown(u),!u.isDefaultPrevented()&&!(s._getDocument().activeElement===s._root.current&&s._isInnerZone))){if((_&&_(u)||h&&h(u))&&s._isImmediateDescendantOfZone(u.target)){var g=s._getFirstInnerZone();if(g){if(!g.focus(!0))return}else if(wm(u.target)){if(!s.focusElement(gn(u.target,u.target.firstChild,!0)))return}else return}else{if(u.altKey)return;switch(u.which){case oe.space:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(u.target,u))break;return;case oe.left:if(f!==pn.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusLeft(c)))break;return;case oe.right:if(f!==pn.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusRight(c)))break;return;case oe.up:if(f!==pn.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusUp()))break;return;case oe.down:if(f!==pn.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusDown()))break;return;case oe.pageDown:if(!v&&s._moveFocusPaging(!0))break;return;case oe.pageUp:if(!v&&s._moveFocusPaging(!1))break;return;case oe.tab:if(s.props.allowTabKey||s.props.handleTabKey===cp.all||s.props.handleTabKey===cp.inputOnly&&s._isElementInput(u.target)){var T=!1;if(s._processingTabKey=!0,f===pn.vertical||!s._shouldWrapFocus(s._activeElement,vh))T=u.shiftKey?s._moveFocusUp():s._moveFocusDown();else{var y=yn(c)?!u.shiftKey:u.shiftKey;T=y?s._moveFocusLeft(c):s._moveFocusRight(c)}if(s._processingTabKey=!1,T)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case oe.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(gn(s._root.current,C,!0)))break;return;case oe.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(Ln(s._root.current,k,!0,!0,!0)))break;return;case oe.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,p=Math.floor(d.top),h=Math.floor(c.bottom),v=Math.floor(d.bottom),_=Math.floor(c.top),g=u&&p>h,T=!u&&v<_;return g||T?f>=d.left&&f<=d.left+d.width?0:Math.abs(d.left+d.width/2-f):s._shouldWrapFocus(s._activeElement,Eh)?Th:pl},eo(s),s._id=_n("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 U1.size},t._onKeyDownCapture=function(n){n.which===oe.tab&&U1.forEach(function(r){return r._updateTabIndexes()})},t.prototype.componentDidMount=function(){var n=this._root.current;if(ml[this._id]=this,n){for(var r=zr(n,ki);r&&r!==this._getDocument().body&&r.nodeType===1;){if(Bi(r)){this._isInnerZone=!0;break}r=zr(r,ki)}this._isInnerZone||(U1.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&&!Hn(this._root.current,this._activeElement,ki)||this._defaultFocusElement&&!Hn(this._root.current,this._defaultFocusElement,ki))&&(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=_A(n,this._lastIndexPath);i?(this._setActiveElement(i,!0),i.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete ml[this._id],this._isInnerZone||(U1.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=st(this.props,gt),d=i||o||"div";this._evaluateFocusBeforeRender();var f=yk();return E.createElement(d,N({"aria-labelledby":l,"aria-describedby":s},c,a,{className:Sn(JF(),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(p){return n._onKeyDown(p,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(H1)==="true"&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var o=ml[i.getAttribute(gh)];return!!o&&o.focusElement(this._root.current)}return!1}else{if(!n&&this._activeElement&&Hn(this._root.current,this._activeElement)&&li(this._activeElement)&&(!r||u_(this._activeElement)))return this._activeElement.focus(),!0;var a=this._root.current.firstChild;return this.focusElement(gn(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(Ln(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=Hn(n,i,!1);this._lastIndexPath=o?CA(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&&(Bi(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(H1)==="true"&&i.getAttribute(QF)!=="true")return ZF(i,r),!0;i=zr(i,ki)}while(i!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(n){if(n=n||this._activeElement||this._root.current,!n)return null;if(Bi(n))return ml[n.getAttribute(gh)];for(var r=n.firstElementChild;r;){if(Bi(r))return ml[r.getAttribute(gh)];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===pn.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?gn(this._root.current,a):Ln(this._root.current,a),c){if(a){var f=a.getBoundingClientRect(),p=r(d,f);if(p===-1&&s===-1){l=a;break}if(p>-1&&(s===-1||p=0&&p<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(gn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ln(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,Eh)?Th:pl:((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,vh);return this._moveFocus(yn(n),function(o,a){var s=-1,l;return yn(n)?l=parseFloat(a.top.toFixed(3))parseFloat(o.top.toFixed(3)),l&&a.right<=o.right&&r.props.direction!==pn.vertical?s=o.right-a.right:i||(s=pl),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,vh);return this._moveFocus(!yn(n),function(o,a){var s=-1,l;return yn(n)?l=parseFloat(a.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)):l=parseFloat(a.top.toFixed(3))=o.left&&r.props.direction!==pn.vertical?s=a.left-o.left:i||(s=pl),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=Im(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?gn(this._root.current,i):Ln(this._root.current,i),i){var f=i.getBoundingClientRect(),p=Math.floor(f.top),h=Math.floor(d.bottom),v=Math.floor(f.bottom),_=Math.floor(d.top),g=this._getHorizontalDistanceFromCenter(n,d,f),T=n&&p>h+c,y=!n&&v<_-c;if(T||y)break;g>-1&&(n&&p>l?(l=p,a=g,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?c_(n,r):!0},t.prototype._portalContainsElement=function(n){return n&&!!this._root.current&&l_(n,this._root.current)},t.prototype._getDocument=function(){return bn(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:pn.bidirectional,shouldRaiseClicks:!0},t}(E.Component),Mn;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Mn||(Mn={}));function Fu(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function Qi(e){return!!(e.subMenuProps||e.items)}function hi(e){return!!(e.isDisabled||e.disabled)}function Y_(e){var t=Fu(e),n=t!==null;return n?"menuitemcheckbox":"menuitem"}var FE=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return E.createElement(qi,N({},r,{className:n.icon}))},nI=function(e){var t=e.item,n=e.hasIcons;return n?t.onRenderIcon?t.onRenderIcon(e,FE):FE(e):null},rI=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=Fu(n);if(t){var o=function(a){return t(n,a)};return E.createElement(qi,{iconName:n.canCheck!==!1&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:o})}return null},iI=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},oI=function(e){var t=e.item,n=e.classNames;return t.secondaryText?E.createElement("span",{className:n.secondaryText},t.secondaryText):null},aI=function(e){var t=e.item,n=e.classNames,r=e.theme;return Qi(t)?E.createElement(qi,N({iconName:yn(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},sI=function(e){je(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();Qi(o)&&a&&l&&a(o,l)}},r.dismissSubMenu=function(){var i=r.props,o=i.item,a=i.dismissSubMenu;Qi(o)&&a&&a()},r.dismissMenu=function(i){var o=r.props.dismissMenu;o&&o(void 0,i)},eo(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:rI,renderItemIcon:nI,renderItemName:iI,renderSecondaryText:oI,renderSubMenuIcon:aI}))},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),lI=mt(function(e){return zu({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),yo=36,IE=I_(0,F_),uI=mt(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,p={item:[s.medium,{color:a.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[zo(e),s.medium,{color:a.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:yo,lineHeight:yo,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[ne]={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[ne]={color:"inherit"},r)},n[ne]=N({},rn()),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:yo,fontSize:Kr.medium,width:Kr.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[IE]={fontSize:Kr.large,width:Kr.large},i)},iconColor:{color:a.menuIcon},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext},subMenuIcon:{height:yo,lineHeight:yo,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Kr.small,selectors:(o={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},o[IE]={fontSize:Kr.medium},o)},splitButtonFlexContainer:[zo(e),{display:"flex",height:yo,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return _i(p)}),xE="28px",cI=I_(0,F_),dI=mt(function(e){var t;return zu(lI(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[cI]={right:32},t)},divider:{height:16,width:1}})}),fI={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"},hI=mt(function(e,t,n,r,i,o,a,s,l,u,c,d){var f,p,h,v,_=uI(e),g=sn(fI,e);return zu({item:[g.item,_.item,a],divider:[g.divider,_.divider,s],root:[g.root,_.root,r&&[g.isChecked,_.rootChecked],i&&_.anchorLink,n&&[g.isExpanded,_.rootExpanded],t&&[g.isDisabled,_.rootDisabled],!t&&!n&&[{selectors:(f={":hover":_.rootHovered,":active":_.rootPressed},f["."+hn+" &:focus, ."+hn+" &:focus:hover"]=_.rootFocused,f["."+hn+" &:hover"]={background:"inherit;"},f)}],d],splitPrimary:[_.root,{width:"calc(100% - "+xE+")"},r&&["is-checked",_.rootChecked],(t||c)&&["is-disabled",_.rootDisabled],!(t||c)&&!r&&[{selectors:(p={":hover":_.rootHovered},p[":hover ~ ."+g.splitMenu]=_.rootHovered,p[":active"]=_.rootPressed,p["."+hn+" &:focus, ."+hn+" &:focus:hover"]=_.rootFocused,p["."+hn+" &:hover"]={background:"inherit;"},p)}]],splitMenu:[g.splitMenu,_.root,{flexBasis:"0",padding:"0 8px",minWidth:xE},n&&["is-expanded",_.rootExpanded],t&&["is-disabled",_.rootDisabled],!t&&!n&&[{selectors:(h={":hover":_.rootHovered,":active":_.rootPressed},h["."+hn+" &:focus, ."+hn+" &:focus:hover"]=_.rootFocused,h["."+hn+" &:hover"]={background:"inherit;"},h)}]],anchorLink:_.anchorLink,linkContent:[g.linkContent,_.linkContent],linkContentMenu:[g.linkContentMenu,_.linkContent,{justifyContent:"center"}],icon:[g.icon,o&&_.iconColor,_.icon,l,t&&[g.isDisabled,_.iconDisabled]],iconColor:_.iconColor,checkmarkIcon:[g.checkmarkIcon,o&&_.checkmarkIcon,_.icon,l],subMenuIcon:[g.subMenuIcon,_.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[_.iconDisabled]],label:[g.label,_.label],secondaryText:[g.secondaryText,_.secondaryText],splitContainer:[_.splitButtonFlexContainer,!t&&!r&&[{selectors:(v={},v["."+hn+" &:focus, ."+hn+" &:focus:hover"]=_.rootFocused,v)}]],screenReaderText:[g.screenReaderText,_.screenReaderText,Rm,{visibility:"hidden"}]})}),q_=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 hI(t,n,r,i,o,a,s,l,u,c,d,f)},Iu=Qt(sI,q_,void 0,{scope:"ContextualMenuItem"}),zm=function(e){je(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(){},eo(r),r}return t.prototype.shouldComponentUpdate=function(n){return!Fm(n,this.props)},t}(E.Component),pI="ktp",NE="-",mI="data-ktp-target",gI="data-ktp-execute-target",EI="ktp-layer-id",ai;(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"})(ai||(ai={}));var vI=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?ai.PERSISTED_KEYTIP_ADDED:ai.KEYTIP_ADDED;vr.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)&&vr.raise(this,ai.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?ai.PERSISTED_KEYTIP_REMOVED:ai.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&vr.raise(this,i,{keytip:t,uniqueID:n})},e.prototype.enterKeytipMode=function(){vr.raise(this,ai.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){vr.raise(this,ai.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=qr([],t.keySequences);if(n.pop(),n.length!==0){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return N(N({},t),{overflowSetSequence:r.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,n){vr.raise(this,ai.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},e.prototype._getUniqueKtp=function(t,n){return n===void 0&&(n=_n()),{keytip:N({},t),uniqueID:n}},e._instance=new e,e}();function Q_(e){return e.reduce(function(t,n){return t+NE+n.split("").join(NE)},pI)}function TI(e,t){var n=t.length,r=qr([],t).pop(),i=qr([],e);return nA(i,n-1,r)}function yI(e){var t=" "+EI;return e.length?t+" "+Q_(e):t}function _I(e){var t=E.useRef(),n=e.keytipProps?N({disabled:e.disabled},e.keytipProps):void 0,r=vi(vI.getInstance()),i=Om(e);Bs(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)}),Bs(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=CI(r,n,e.ariaDescribedBy)),o}function CI(e,t,n){var r=e.addParentOverflow(t),i=Gu(n,yI(r.keySequences)),o=qr([],r.keySequences);r.overflowSetSequence&&(o=TI(o,r.overflowSetSequence));var a=Q_(o);return{ariaDescribedBy:i,keytipId:a}}var xu=function(e){var t,n=e.children,r=yi(e,["children"]),i=_I(r),o=i.keytipId,a=i.ariaDescribedBy;return n((t={},t[mI]=o,t[gI]=o,t["aria-describedby"]=a,t))},SI=function(e){je(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._anchor=E.createRef(),n._getMemoizedMenuButtonKeytipProps=mt(function(r){return N(N({},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?Iu:d,p=r.expandedMenuItemKey,h=r.onItemClick,v=r.openSubMenu,_=r.dismissSubMenu,g=r.dismissMenu,T=i.rel;i.target&&i.target.toLowerCase()==="_blank"&&(T=T||"nofollow noopener noreferrer");var y=Qi(i),C=st(i,p_),k=hi(i),S=i.itemProps,A=i.ariaDescription,D=i.keytipProps;D&&y&&(D=this._getMemoizedMenuButtonKeytipProps(D)),A&&(this._ariaDescriptionId=_n());var P=Gu(i.ariaDescribedBy,A?this._ariaDescriptionId:void 0,C["aria-describedby"]),x={"aria-describedby":P};return E.createElement("div",null,E.createElement(xu,{keytipProps:i.keytipProps,ariaDescribedBy:P,disabled:k},function(O){return E.createElement("a",N({},x,C,O,{ref:n._anchor,href:i.href,target:i.target,rel:T,className:o.root,role:"menuitem","aria-haspopup":y||void 0,"aria-expanded":y?i.key===p:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":hi(i),style:i.style,onClick:n._onItemClick,onMouseEnter:n._onItemMouseEnter,onMouseLeave:n._onItemMouseLeave,onMouseMove:n._onItemMouseMove,onKeyDown:y?n._onItemKeyDown:void 0}),E.createElement(f,N({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&h?h:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:_,dismissMenu:g,getSubmenuTarget:n._getSubmenuTarget},S)),n._renderAriaDescription(A,o.screenReaderText))}))},t}(zm),AI=function(e){je(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._btn=E.createRef(),n._getMemoizedMenuButtonKeytipProps=mt(function(r){return N(N({},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?Iu:d,p=r.expandedMenuItemKey,h=r.onItemMouseDown,v=r.onItemClick,_=r.openSubMenu,g=r.dismissSubMenu,T=r.dismissMenu,y=Fu(i),C=y!==null,k=Y_(i),S=Qi(i),A=i.itemProps,D=i.ariaLabel,P=i.ariaDescription,x=st(i,ka);delete x.disabled;var O=i.role||k;P&&(this._ariaDescriptionId=_n());var M=Gu(i.ariaDescribedBy,P?this._ariaDescriptionId:void 0,x["aria-describedby"]),Q={className:o.root,onClick:this._onItemClick,onKeyDown:S?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(H){return h?h(i,H):void 0},onMouseMove:this._onItemMouseMove,href:i.href,title:i.title,"aria-label":D,"aria-describedby":M,"aria-haspopup":S||void 0,"aria-expanded":S?i.key===p:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":hi(i),"aria-checked":(O==="menuitemcheckbox"||O==="menuitemradio")&&C?!!y:void 0,"aria-selected":O==="menuitem"&&C?!!y:void 0,role:O,style:i.style},Z=i.keytipProps;return Z&&S&&(Z=this._getMemoizedMenuButtonKeytipProps(Z)),E.createElement(xu,{keytipProps:Z,ariaDescribedBy:M,disabled:hi(i)},function(H){return E.createElement("button",N({ref:n._btn},x,Q,H),E.createElement(f,N({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&v?v:void 0,hasIcons:c,openSubMenu:_,dismissSubMenu:g,dismissMenu:T,getSubmenuTarget:n._getSubmenuTarget},A)),n._renderAriaDescription(P,o.screenReaderText))})},t}(zm),bI=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}]}},kI=qt(),X_=E.forwardRef(function(e,t){var n=e.styles,r=e.theme,i=e.getClassNames,o=e.className,a=kI(n,{theme:r,getClassNames:i,className:o});return E.createElement("span",{className:a.wrapper,ref:t},E.createElement("span",{className:a.divider}))});X_.displayName="VerticalDividerBase";var FI=Qt(X_,bI,void 0,{scope:"VerticalDivider"}),II=500,xI=function(e){je(t,e);function t(n){var r=e.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=mt(function(i){return N(N({},i),{hasMenu:!0})}),r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;i.which===oe.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(N(N({},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(N(N({},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 Ys(r),r._events=new vr(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,p=Qi(i),h=i.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var v=i.ariaDescription;return v&&(this._ariaDescriptionId=_n()),E.createElement(xu,{keytipProps:h,disabled:hi(i)},function(_){return E.createElement("div",{"data-ktp-target":_["data-ktp-target"],ref:function(g){return n._splitButton=g},role:Y_(i),"aria-label":i.ariaLabel,className:o.splitContainer,"aria-disabled":hi(i),"aria-expanded":p?i.key===f:void 0,"aria-haspopup":!0,"aria-describedby":Gu(i.ariaDescribedBy,v?n._ariaDescriptionId:void 0,_["aria-describedby"]),"aria-checked":i.isChecked||i.checked,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:n._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(n,N(N({},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,_),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?Iu:l,c=s.onItemClick,d={key:n.key,disabled:hi(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",N({},st(d,ka)),E.createElement(u,N({"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||dI;return E.createElement(FI,{getClassNames:r})},t.prototype._renderSplitIconButton=function(n,r,i,o){var a=this.props,s=a.contextualMenuItemAs,l=s===void 0?Iu:s,u=a.onItemMouseLeave,c=a.onItemMouseDown,d=a.openSubMenu,f=a.dismissSubMenu,p=a.dismissMenu,h={onClick:this._onIconItemClick,disabled:hi(n),className:r.splitMenu,subMenuProps:n.subMenuProps,submenuIconProps:n.submenuIconProps,split:!0,key:n.key},v=N(N({},st(h,ka)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,n):void 0,onMouseDown:function(g){return c?c(n,g):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),_=n.itemProps;return E.createElement("button",N({},v),E.createElement(l,N({componentRef:n.componentRef,item:h,classNames:r,index:i,hasIcons:!1,openSubMenu:d,dismissSubMenu:f,dismissMenu:p,getSubmenuTarget:this._getSubmenuTarget},_)))},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},II)},t}(zm),NI=function(e){je(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=JA(this,n):this._hoisted&&eb(this,this._hoisted)},t}(E.Component),Fa;(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"})(Fa||(Fa={}));var DI=[479,639,1023,1365,1919,99999999],Z_;function Gm(){var e;return(e=Z_)!==null&&e!==void 0?e:Fa.large}function J_(e){var t,n=(t=function(r){je(i,r);function i(o){var a=r.call(this,o)||this;return a._onResize=function(){var s=e2(a.context.window);s!==a.state.responsiveMode&&a.setState({responsiveMode:s})},a._events=new vr(a),a._updateComposedComponentRef=a._updateComposedComponentRef.bind(a),a.state={responsiveMode:Gm()},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===Fa.unknown?null:E.createElement(e,N({ref:this._updateComposedComponentRef,responsiveMode:o},this.props))},i}(NI),t.contextType=Lm,t);return h_(e,n)}function wI(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function e2(e){var t=Fa.small;if(e){try{for(;wI(e)>DI[t];)t++}catch{t=Gm()}Z_=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 t2=function(e,t){var n=E.useState(Gm()),r=n[0],i=n[1],o=E.useCallback(function(){var s=e2(ot(e.current));r!==s&&i(s)},[e,r]),a=Qd();return bu(a,"resize",o),E.useEffect(function(){t===void 0&&o()},[t]),t??r},RI=E.createContext({}),PI=qt(),MI=qt(),OI={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Ct.bottomAutoEdge,beakWidth:16};function n2(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:De.key||X.key||"section-"+Le},E.createElement("div",N({},ct),E.createElement("ul",{className:Oe.list,role:"presentation"},De.topDivider&&Vn(Le,ve,!0,!0),qn&&xn(qn,X.key||Le,ve,X.title),De.items.map(function(g1,rl){return Ft(g1,rl,rl,De.items.length,cn,Nn,Oe)}),De.bottomDivider&&Vn(Le,ve,!1,!0))))}},xn=function(X,ve,Oe,Le){return E.createElement("li",{role:"presentation",title:Le,key:ve,className:Oe.item},X)},Vn=function(X,ve,Oe,Le){return Le||X>0?E.createElement("li",{role:"separator",key:"separator-"+X+(Oe===void 0?"":Oe?"-top":"-bottom"),className:ve.divider,"aria-hidden":"true"}):null},Dr=function(X,ve,Oe,Le,cn,Nn,De){if(X.onRender)return X.onRender(N({"aria-posinset":Le+1,"aria-setsize":cn},X),l);var qn=i.contextualMenuItemAs,ct={item:X,classNames:ve,index:Oe,focusableElementIndex:Le,totalItemCount:cn,hasCheckmarks:Nn,hasIcons:De,contextualMenuItemAs:qn,onItemMouseEnter:K,onItemMouseLeave:b,onItemMouseMove:F,onItemMouseDown:YI,executeItemClick:Rt,onItemKeyDown:R,expandedMenuItemKey:h,openSubMenu:v,dismissSubMenu:g,dismissMenu:l};return X.href?E.createElement(SI,N({},ct,{onItemClick:Ue})):X.split&&Qi(X)?E.createElement(xI,N({},ct,{onItemClick:Je,onItemClickBase:_e,onTap:x})):E.createElement(AI,N({},ct,{onItemClick:Je,onItemClickBase:_e}))},re=function(X,ve,Oe,Le,cn,Nn){var De=i.contextualMenuItemAs,qn=De===void 0?Iu:De,ct=X.itemProps,Qn=X.id,ti=ct&&st(ct,Ji);return E.createElement("div",N({id:Qn,className:Oe.header},ti,{style:X.style}),E.createElement(qn,N({item:X,classNames:ve,index:Le,onCheckmarkClick:cn?Je:void 0,hasIcons:Nn},ct)))},he=i.isBeakVisible,le=i.items,Ve=i.labelElementId,Me=i.id,Gt=i.className,Ie=i.beakWidth,Xt=i.directionalHint,fr=i.directionalHintForRTL,wr=i.alignTargetEdge,At=i.gapSpace,ln=i.coverTarget,L=i.ariaLabel,j=i.doNotLayer,ie=i.target,pe=i.bounds,q=i.useTargetWidth,de=i.useTargetAsMinWidth,_t=i.directionalHintFixed,ze=i.shouldFocusOnMount,Ee=i.shouldFocusOnContainer,Ye=i.title,Ge=i.styles,Ai=i.theme,ut=i.calloutProps,Jr=i.onRenderSubMenu,Sf=Jr===void 0?wE:Jr,d1=i.onRenderMenuList,Af=d1===void 0?function(X,ve){return Ne(X,ei)}:d1,bf=i.focusZoneProps,f1=i.getMenuClassNames,ei=f1?f1(Ai,Gt):PI(Ge,{theme:Ai,className:Gt}),h1=Ke(le);function Ke(X){for(var ve=0,Oe=X;ve0){for(var kg=0,kf=0,Fg=le;kf span":{position:"relative",left:0,top:0}}}],rootDisabled:[zo(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":PE,":focus":PE}}],iconDisabled:{color:l,selectors:(t={},t[ne]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[ne]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:ME(o.mediumPlus.fontSize),menuIcon:ME(o.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Rm}}),jm=mt(function(e,t){var n,r,i,o,a,s,l,u,c,d,f,p,h,v=e.effects,_=e.palette,g=e.semanticColors,T={left:-2,top:-2,bottom:-2,right:-2,border:"none"},y={position:"absolute",width:1,right:31,top:8,bottom:8},C={splitButtonContainer:[zo(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[ne]=N({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},rn()),n[":hover"]={border:"none"},n[":active"]={border:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[ne]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[ne]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:g.buttonTextDisabled,selectors:(o={},o[ne]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[ne]=N({color:"Window",backgroundColor:"WindowText"},rn()),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[ne]=N({color:"Window",backgroundColor:"WindowText"},rn()),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 "+_.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[ne]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:N(N({},y),{selectors:(u={},u[ne]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:N(N({},y),{selectors:(c={},c[ne]={backgroundColor:"GrayText"},c)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(d={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(f={},f[ne]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f)},".ms-Button-menuIcon":{selectors:(p={},p[ne]={color:"GrayText"},p)}},d[ne]={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[ne]=N({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},rn()),h)},splitButtonMenuFocused:N({},zo(e,{highContrastStyle:T,inset:2}))};return _i(C,t)}),c2=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function tx(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,p=a.buttonTextHovered,h=a.buttonTextDisabled,v=a.buttonTextChecked,_=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:f},rootHovered:{backgroundColor:c,color:p,selectors:(t={},t[ne]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:u,color:v},rootExpanded:{backgroundColor:u,color:v},rootChecked:{backgroundColor:u,color:v},rootCheckedHovered:{backgroundColor:u,color:_},rootDisabled:{color:h,backgroundColor:d,selectors:(n={},n[ne]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(r={},r[ne]={border:"none"},r)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(i={},i[ne]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:N(N({},c2()),{backgroundColor:s.neutralTertiaryAlt,selectors:(o={},o[ne]={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 nx(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[ne]=N({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},rn()),t["."+hn+" &:focus"]={selectors:{":after":{border:"none",outlineColor:c.white}}},t)},rootHovered:{backgroundColor:d.primaryButtonBackgroundHovered,border:"1px solid "+d.primaryButtonBackgroundHovered,color:d.primaryButtonTextHovered,selectors:(n={},n[ne]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:d.primaryButtonBackgroundPressed,border:"1px solid "+d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed,selectors:(r={},r[ne]=N({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},rn()),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[ne]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(o={},o[ne]={border:"none"},o)},splitButtonDivider:N(N({},c2()),{backgroundColor:c.white,selectors:(a={},a[ne]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:d.primaryButtonBackground,color:d.primaryButtonText,selectors:(s={},s[ne]={backgroundColor:"Canvas"},s[":hover"]={backgroundColor:d.primaryButtonBackgroundHovered,selectors:(l={},l[ne]={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[ne]={color:"GrayText"},u)}}}var rx="32px",ix="80px",ox=mt(function(e,t,n){var r=Wm(e),i=jm(e),o={root:{minWidth:ix,height:rx},label:{fontWeight:Qe.semibold}};return _i(r,o,n?nx(e):tx(e),i,t)}),Xd=function(e){je(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(Km,N({},this.props,{variantClassName:i?"ms-Button--primary":"ms-Button--default",styles:ox(a,o,i),onRenderDescription:Os}))},t=Vs([jd("DefaultButton",["theme","styles"],!0)],t),t}(E.Component),ax=mt(function(e,t){var n,r=Wm(e),i=jm(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[ne]={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 _i(r,s,i,t)}),pa=function(e){je(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(Km,N({},this.props,{variantClassName:"ms-Button--icon",styles:ax(i,r),onRenderText:Os,onRenderDescription:Os}))},t=Vs([jd("IconButton",["theme","styles"],!0)],t),t}(E.Component),d2=function(e){je(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return E.createElement(Xd,N({},this.props,{primary:!0,onRenderDescription:Os}))},t=Vs([jd("PrimaryButton",["theme","styles"],!0)],t),t}(E.Component),sx=mt(function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,v,_,g,T=Wm(e),y=jm(e),C=e.palette,k=e.semanticColors,S={left:4,top:4,bottom:4,right:4,border:"none"},A={root:[zo(e,{inset:2,highContrastStyle:S,borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:C.white,color:C.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(i={},i[ne]={border:"none"},i)}],rootHovered:{backgroundColor:C.neutralLighter,color:C.neutralDark,selectors:(o={},o[ne]={color:"Highlight"},o["."+fn.msButtonIcon]={color:C.themeDarkAlt},o["."+fn.msButtonMenuIcon]={color:C.neutralPrimary},o)},rootPressed:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(a={},a["."+fn.msButtonIcon]={color:C.themeDark},a["."+fn.msButtonMenuIcon]={color:C.neutralPrimary},a)},rootChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(s={},s["."+fn.msButtonIcon]={color:C.themeDark},s["."+fn.msButtonMenuIcon]={color:C.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:C.neutralQuaternaryAlt,selectors:(l={},l["."+fn.msButtonIcon]={color:C.themeDark},l["."+fn.msButtonMenuIcon]={color:C.neutralPrimary},l)},rootExpanded:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(u={},u["."+fn.msButtonIcon]={color:C.themeDark},u["."+fn.msButtonMenuIcon]={color:C.neutralPrimary},u)},rootExpandedHovered:{backgroundColor:C.neutralQuaternaryAlt},rootDisabled:{backgroundColor:C.white,selectors:(c={},c["."+fn.msButtonIcon]={color:k.disabledBodySubtext,selectors:(d={},d[ne]=N({color:"GrayText"},rn()),d)},c[ne]=N({color:"GrayText",backgroundColor:"Window"},rn()),c)},splitButtonContainer:{height:"100%",selectors:(f={},f[ne]={border:"none"},f)},splitButtonDividerDisabled:{selectors:(p={},p[ne]={backgroundColor:"Window"},p)},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[ne]={color:"Highlight"},h["."+fn.msButtonIcon]={color:C.neutralPrimary},h)},":active":{backgroundColor:C.neutralLight,selectors:(v={},v["."+fn.msButtonIcon]={color:C.neutralPrimary},v)}}},splitButtonMenuButtonDisabled:{backgroundColor:C.white,selectors:(_={},_[ne]=N({color:"GrayText",border:"none",backgroundColor:"Window"},rn()),_)},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:(g={color:C.neutralSecondary},g[ne]={color:"GrayText"},g)};return _i(T,y,A,t)}),Nu=function(e){je(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(Km,N({},this.props,{variantClassName:"ms-Button--commandBar",styles:sx(i,r),onRenderDescription:Os}))},t=Vs([jd("CommandBarButton",["theme","styles"],!0)],t),t}(E.Component),lx=qt({cacheSize:100}),ux=function(e){je(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=lx(l,{className:a,disabled:s,required:u,theme:c});return E.createElement(i,N({},st(this.props,Ji),{className:d.root}),o)},t}(E.Component),cx=function(e){var t,n=e.theme,r=e.className,i=e.disabled,o=e.required,a=n.semanticColors,s=Qe.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[ne]=N({color:"GrayText"},rn()),t)},o&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},r]}},dx=Qt(ux,cx,void 0,{scope:"Label"}),fx=qt(),hx="",Zo="TextField",px="RedEye",mx="Hide",gx=function(e){je(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(dx,{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=_h(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})},eo(r),r._async=new Ys(r),r._fallbackId=_n(Zo),r._descriptionId=_n(Zo+"Description"),r._labelId=_n(Zo+"Label"),r._prefixId=_n(Zo+"Prefix"),r._suffixId=_n(Zo+"Suffix"),r._warnControlledUsage();var i=n.defaultValue,o=i===void 0?hx: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 _h(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=_h(n,r),d=this.value;c!==d&&(this._warnControlledUsage(n),this.state.errorMessage&&!o.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),OE(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,p=n.prefix,h=n.resizable,v=n.suffix,_=n.theme,g=n.styles,T=n.autoAdjustHeight,y=n.canRevealPassword,C=n.revealPasswordAriaLabel,k=n.type,S=n.onRenderPrefix,A=S===void 0?this._onRenderPrefix:S,D=n.onRenderSuffix,P=D===void 0?this._onRenderSuffix:D,x=n.onRenderLabel,O=x===void 0?this._onRenderLabel:x,M=n.onRenderDescription,Q=M===void 0?this._onRenderDescription:M,Z=this.state,H=Z.isFocused,z=Z.isRevealingPassword,J=this._errorMessage,R=typeof a=="boolean"?a:!!J,G=!!y&&k==="password"&&Ex(),K=this._classNames=fx(g,{theme:_,className:i,disabled:o,focused:H,required:d,multiline:c,hasLabel:!!u,hasErrorMessage:R,borderless:r,resizable:h,hasIcon:!!s,underlined:f,inputClassName:l,autoAdjustHeight:T,hasRevealButton:G});return E.createElement("div",{ref:this.props.elementRef,className:K.root},E.createElement("div",{className:K.wrapper},O(this.props,this._onRenderLabel),E.createElement("div",{className:K.fieldGroup},(p!==void 0||this.props.onRenderPrefix)&&E.createElement("div",{className:K.prefix,id:this._prefixId},A(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),s&&E.createElement(qi,N({className:K.icon},s)),G&&E.createElement("button",{"aria-label":C,className:K.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!z,type:"button"},E.createElement("span",{className:K.revealSpan},E.createElement(qi,{className:K.revealIcon,iconName:z?mx:px}))),(v!==void 0||this.props.onRenderSuffix)&&E.createElement("div",{className:K.suffix,id:this._suffixId},P(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&E.createElement("span",{id:this._descriptionId},Q(this.props,this._onRenderDescription),J&&E.createElement("div",{role:"alert"},E.createElement(i_,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,xm("Warning: 'value' prop on '"+Zo+"' 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 wA(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=st(this.props,QA,["defaultValue"]),o=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return E.createElement("textarea",N({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,p=[];f&&p.push(this._labelId),(l!==void 0||a)&&p.push(this._prefixId),(u!==void 0||s)&&p.push(this._suffixId);var h=N(N({type:this.state.isRevealingPassword?"text":d,id:this._id},st(this.props,qA,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(p.length>0?p.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(g){return E.createElement("input",N({},g))},_=this.props.onRenderInput||v;return _(h,v)},t.prototype._validate=function(n){var r=this;if(!(this._latestValidateValue===n&&OE(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 _h(e,t){var n=e.value,r=n===void 0?t.uncontrolledValue:n;return typeof r=="number"?String(r):r}function OE(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var z1;function Ex(){if(typeof z1!="boolean"){var e=ot();if(e!=null&&e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");z1=!(pb()||t)}else z1=!0}return z1}var vx={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 Tx(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[ne]={height:31},s)}]}}}function yx(e){var t,n,r,i,o,a,s,l,u,c,d,f,p=e.theme,h=e.className,v=e.disabled,_=e.focused,g=e.required,T=e.multiline,y=e.hasLabel,C=e.borderless,k=e.underlined,S=e.hasIcon,A=e.resizable,D=e.hasErrorMessage,P=e.inputClassName,x=e.autoAdjustHeight,O=e.hasRevealButton,M=p.semanticColors,Q=p.effects,Z=p.fonts,H=sn(vx,p),z={background:M.disabledBackground,color:v?M.disabledText:M.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[ne]={background:"Window",color:v?"GrayText":"WindowText"},t)},J=[{color:M.inputPlaceholderText,opacity:1,selectors:(n={},n[ne]={color:"GrayText"},n)}],R={color:M.disabledText,selectors:(r={},r[ne]={color:"GrayText"},r)};return{root:[H.root,Z.medium,g&&H.required,v&&H.disabled,_&&H.active,T&&H.multiline,C&&H.borderless,k&&H.underlined,fh,{position:"relative"},h],wrapper:[H.wrapper,k&&[{display:"flex",borderBottom:"1px solid "+(D?M.errorText:M.inputBorder),width:"100%"},v&&{borderBottomColor:M.disabledBackground,selectors:(i={},i[ne]=N({borderColor:"GrayText"},rn()),i)},!v&&{selectors:{":hover":{borderBottomColor:D?M.errorText:M.inputBorderHovered,selectors:(o={},o[ne]=N({borderBottomColor:"Highlight"},rn()),o)}}},_&&[{position:"relative"},vE(D?M.errorText:M.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[H.fieldGroup,fh,{border:"1px solid "+M.inputBorder,borderRadius:Q.roundedCorner2,background:M.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},T&&{minHeight:"60px",height:"auto",display:"flex"},!_&&!v&&{selectors:{":hover":{borderColor:M.inputBorderHovered,selectors:(a={},a[ne]=N({borderColor:"Highlight"},rn()),a)}}},_&&!k&&vE(D?M.errorText:M.inputFocusBorderAlt,Q.roundedCorner2),v&&{borderColor:M.disabledBackground,selectors:(s={},s[ne]=N({borderColor:"GrayText"},rn()),s),cursor:"default"},C&&{border:"none"},C&&_&&{border:"none",selectors:{":after":{border:"none"}}},k&&{flex:"1 1 0px",border:"none",textAlign:"left"},k&&v&&{backgroundColor:"transparent"},D&&!k&&{borderColor:M.errorText,selectors:{"&:hover":{borderColor:M.errorText}}},!y&&g&&{selectors:(l={":before":{content:"'*'",color:M.errorText,position:"absolute",top:-5,right:-10}},l[ne]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[Z.medium,H.field,fh,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:M.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(u={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},u[ne]={background:"Window",color:v?"GrayText":"WindowText"},u)},_E(J),T&&!A&&[H.unresizable,{resize:"none"}],T&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},T&&x&&{overflow:"hidden"},S&&!O&&{paddingRight:24},T&&S&&{paddingRight:40},v&&[{backgroundColor:M.disabledBackground,color:M.disabledText,borderColor:M.disabledBackground},_E(R)],k&&{textAlign:"left"},_&&!C&&{selectors:(c={},c[ne]={paddingLeft:11,paddingRight:11},c)},_&&T&&!C&&{selectors:(d={},d[ne]={paddingTop:4},d)},P],icon:[T&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Kr.medium,lineHeight:18},v&&{color:M.disabledText}],description:[H.description,{color:M.bodySubtext,fontSize:Z.xSmall.fontSize}],errorMessage:[H.errorMessage,gs.slideDownIn20,Z.small,{color:M.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[H.prefix,z],suffix:[H.suffix,z],revealButton:[H.revealButton,"ms-Button","ms-Button--icon",zo(p,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:M.link,selectors:{":hover":{outline:0,color:M.primaryButtonBackgroundHovered,backgroundColor:M.buttonBackgroundHovered,selectors:(f={},f[ne]={borderColor:"Highlight",color:"Highlight"},f)},":focus":{outline:0}}},S&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Kr.medium,lineHeight:18},subComponentStyles:{label:Tx(e)}}}var $m=Qt(gx,yx,void 0,{scope:"TextField"}),gl={auto:0,top:1,bottom:2,center:3},_x=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},LE=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)},G1=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},Cx=16,Sx=100,Ax=500,bx=200,kx=500,BE=10,Fx=30,Ix=2,xx=2,Nx="page-",HE="spacer-",UE={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},f2=function(e){return e.getBoundingClientRect()},Dx=f2,wx=f2,Rx=function(e){je(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)&&Kd()?(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",N({ref:o},s),a)},r._onRenderSurface=function(i){var o=i.surfaceRef,a=i.pageElements,s=i.divProps;return E.createElement("div",N({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,p=f===void 0?[]:f,h=d.startIndex,v=yi(i,["page"]),_=c===void 0?"listitem":"presentation",g=[],T=0;Tn;if(h){if(r&&this._scrollElement){for(var v=wx(this._scrollElement),_=LE(this._scrollElement),g={top:_,bottom:_+v.height},T=n-d,y=0;y=g.top&&C<=g.bottom;if(k)return;var S=ug.bottom;S||A&&(u=C-v.height)}this._scrollElement&&G1(this._scrollElement,u);return}u+=p}},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 N(N({},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=zr(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||!Px(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),N(N(N({},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,Q=!g||O>=g.top&&d<=g.bottom,Z=!y._requiredRect||O>=y._requiredRect.top&&d<=y._requiredRect.bottom,H=!_&&(Z||Q&&M)||!v,z=p>=S&&p=y._visibleRect.top&&d<=y._visibleRect.bottom),u.push(G),Z&&y._allowedRect&&Mx(l,{top:d,bottom:O,height:D,left:g.left,right:g.right,width:g.width})}else f||(f=y._createPage(HE+S,void 0,S,0,void 0,P,!0)),f.height=(f.height||0)+(O-d)+1,f.itemCount+=c;if(d+=O-d+1,_&&v)return"break"},y=this,C=a;Cthis._estimatedPageHeight/3)&&(l=this._surfaceRect=Dx(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=ot(this._root.current),p={top:d,left:l.left,bottom:d+f.innerHeight,right:l.right,width:l.width,height:f.innerHeight};this._requiredRect=zE(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=zE(p,a,o),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(n,r,i){return E.createElement(E.Fragment,null,n&&n.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:xx,renderedWindowsBehind:Ix},t}(E.Component);function zE(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 Px(e,t){return e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}function Mx(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 Wr;(function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"})(Wr||(Wr={}));var dp;(function(e){e[e.normal=0]="normal",e[e.large=1]="large"})(dp||(dp={}));var Ox=qt(),Lx=function(e){je(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,p=st(this.props,Ji,["size"]),h=i;h===void 0&&r!==void 0&&(h=r===dp.large?Wr.large:Wr.medium);var v=Ox(s,{theme:u,size:h,className:c,labelPosition:d});return E.createElement("div",N({},p,{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(i_,null,E.createElement("div",{className:v.screenReaderText},f))))},t.defaultProps={size:Wr.medium,ariaLive:"polite",labelPosition:"bottom"},t}(E.Component),Bx={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Hx=mt(function(){return dr({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),Ux=function(e){var t,n=e.theme,r=e.size,i=e.className,o=e.labelPosition,a=n.palette,s=sn(Bx,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:Hx(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[ne]=N({borderTopColor:"Highlight"},rn()),t)},r===Wr.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===Wr.small&&["ms-Spinner--small",{width:16,height:16}],r===Wr.medium&&["ms-Spinner--medium",{width:20,height:20}],r===Wr.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:Rm}},h2=Qt(Lx,Ux,void 0,{scope:"Spinner"}),pi;(function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"})(pi||(pi={}));var p2=Jb.durationValue2,zx={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},Gx=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,p=e.isDefaultDragHandle,h=e.windowInnerHeight,v=u.palette,_=u.effects,g=u.fonts,T=sn(zx,u);return{root:[T.root,g.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+p2},c&&typeof l=="number"&&s&&{alignItems:"flex-start"},o&&T.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[T.main,{boxShadow:_.elevation64,borderRadius:_.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?Hs.Layer:void 0},d&&{pointerEvents:"auto"},c&&typeof l=="number"&&s&&{top:l},p&&{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:g.xLargePlus.fontSize,width:"24px"}}},Kx=qt(),Wx=function(e){je(t,e);function t(n){var r=e.call(this,n)||this;eo(r);var i=r.props.allowTouchBodyScroll,o=i===void 0?!1:i;return r._allowTouchBodyScroll=o,r}return t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&V7()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&Y7()},t.prototype.render=function(){var n=this.props,r=n.isDarkThemed,i=n.className,o=n.theme,a=n.styles,s=st(this.props,Ji),l=Kx(a,{theme:o,className:i,isDark:r});return E.createElement("div",N({},s,{className:l.root}))},t}(E.Component),jx={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},$x=function(e){var t,n=e.className,r=e.theme,i=e.isNone,o=e.isDark,a=r.palette,s=sn(jx,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[ne]={border:"1px solid WindowText",opacity:0},t)},i&&{visibility:"hidden"},o&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}},Vx=Qt(Wx,$x,void 0,{scope:"Overlay"}),Yx=mt(function(e,t){return{root:ci(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),El={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},qx=function(e){je(t,e);function t(n){var r=e.call(this,n)||this;return r._currentEventType=El.mouse,r._events=[],r._onMouseDown=function(i){var o=E.Children.only(r.props.children).props.onMouseDown;return o&&o(i),r._currentEventType=El.mouse,r._onDragStart(i)},r._onMouseUp=function(i){var o=E.Children.only(r.props.children).props.onMouseUp;return o&&o(i),r._currentEventType=El.mouse,r._onDragStop(i)},r._onTouchStart=function(i){var o=E.Children.only(r.props.children).props.onTouchStart;return o&&o(i),r._currentEventType=El.touch,r._onDragStart(i)},r._onTouchEnd=function(i){var o=E.Children.only(r.props.children).props.onTouchEnd;o&&o(i),r._currentEventType=El.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=[di(document.body,r._currentEventType.move,r._onDrag,!0),di(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:N(N({},r.style),{transform:"translate("+l+"px, "+u+"px)"}),className:Yx(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=(z||Fa.small)&&E.createElement(K_,N({ref:Ne},Ye),E.createElement(Bm,N({role:_t?"alertdialog":"dialog",ariaLabelledBy:O,ariaDescribedBy:Q,onDismiss:A,shouldRestoreFocus:!T,enableAriaHiddenSiblings:F,"aria-modal":!R},b),E.createElement("div",{className:Ee.root,role:R?void 0:"document"},!R&&E.createElement(Vx,N({"aria-hidden":!0,isDarkThemed:S,onClick:y?void 0:A,allowTouchBodyScroll:l},P)),G?E.createElement(qx,{handleSelector:G.dragHandleSelector||"#"+Ft,preventDragSelector:"button",onStart:Sf,onDragChange:d1,onStop:Af,position:Ie},h1):h1)))||null});m2.displayName="Modal";var g2=Qt(m2,Gx,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});g2.displayName="Modal";var eN=qt(),tN=function(e){je(t,e);function t(n){var r=e.call(this,n)||this;return eo(r),r}return t.prototype.render=function(){var n=this.props,r=n.className,i=n.styles,o=n.theme;return this._classNames=eN(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),nN={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},rN=function(e){var t=e.className,n=e.theme,r=sn(nN,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"}]}},Vm=Qt(tN,rN,void 0,{scope:"DialogFooter"}),iN=qt(),oN=E.createElement(Vm,null).type,aN=function(e){je(t,e);function t(n){var r=e.call(this,n)||this;return eo(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,p=n.type,h=n.styles,v=n.theme,_=n.draggableHeaderClassName,g=iN(h,{theme:v,className:i,isLargeHeader:p===pi.largeHeader,isClose:p===pi.close,draggableHeaderClassName:_}),T=this._groupChildren(),y;return l&&(y=E.createElement("p",{className:g.subText,id:s},l)),E.createElement("div",{className:g.content},E.createElement("div",{className:g.header},E.createElement("div",N({id:d,role:"heading","aria-level":1},c,{className:Sn(g.title,c.className)}),f),E.createElement("div",{className:g.topButton},this.props.topButtonsProps.map(function(C,k){return E.createElement(pa,N({key:C.uniqueId||k},C))}),(p===pi.close||r&&p!==pi.largeHeader)&&E.createElement(pa,{className:g.button,iconProps:{iconName:"Cancel"},ariaLabel:o,onClick:a}))),E.createElement("div",{className:g.inner},E.createElement("div",{className:g.innerContent},y,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===oN?n.footers.push(r):n.contents.push(r)}),n},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=Vs([J_],t),t}(E.Component),sN={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"},lN=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,p=o.effects,h=o.semanticColors,v=sn(sN,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:Qe.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:Kr.medium}}}],inner:[v.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: "+ch+"px) and (max-width: "+dh+"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: "+ch+"px) and (max-width: "+dh+"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:p.roundedCorner2}},r["@media (min-width: "+ch+"px) and (max-width: "+dh+"px)"]={padding:"15px 8px 0 0"},r)}]}},uN=Qt(aN,lN,void 0,{scope:"DialogContent"}),cN=qt(),dN={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},fN={type:pi.normal,className:"",topButtonsProps:[]},hN=function(e){je(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=_n("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,p=o.hidden,h=o.disableRestoreFocus,v=h===void 0?o.ignoreExternalFocusing:h,_=o.isBlocking,g=o.isClickableOutsideFocusTrap,T=o.isDarkOverlay,y=o.isOpen,C=y===void 0?!p:y,k=o.onDismiss,S=o.onDismissed,A=o.onLayerDidMount,D=o.responsiveMode,P=o.subText,x=o.theme,O=o.title,M=o.topButtonsProps,Q=o.type,Z=o.minWidth,H=o.maxWidth,z=o.modalProps,J=N({onLayerDidMount:A},z==null?void 0:z.layerProps),R,G;z!=null&&z.dragOptions&&!(!((n=z.dragOptions)===null||n===void 0)&&n.dragHandleSelector)&&(G=N({},z.dragOptions),R="ms-Dialog-draggable-header",G.dragHandleSelector="."+R);var K=N(N(N(N({},dN),{elementToFocusOnDismiss:u,firstFocusableSelector:c,forceFocusInsideTrap:d,disableRestoreFocus:v,isClickableOutsideFocusTrap:g,responsiveMode:D,className:a,containerClassName:s,isBlocking:_,isDarkOverlay:T,onDismissed:S}),z),{dragOptions:G,layerProps:J,isOpen:C}),F=N(N(N({className:l,subText:P,title:O,topButtonsProps:M,type:Q},fN),o.dialogContentProps),{draggableHeaderClassName:R,titleProps:N({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)}),b=cN(f,{theme:x,className:K.className,containerClassName:K.containerClassName,hidden:p,dialogDefaultMinWidth:Z,dialogDefaultMaxWidth:H});return E.createElement(g2,N({},K,{className:b.root,containerClassName:b.main,onDismiss:k||K.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),E.createElement(uN,N({subTextId:this._defaultSubTextId,showCloseButton:K.isBlocking,onDismiss:k},F),o.children))},t.defaultProps={hidden:!0},t=Vs([J_],t),t}(E.Component),pN={root:"ms-Dialog"},mN=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=sn(pN,u);return{root:[c.root,u.fonts.medium,n],main:[{width:o,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: "+k_+"px)"]={width:"auto",maxWidth:s,minWidth:o},t)},!l&&{display:"flex"},r]}},$u=Qt(hN,mN,void 0,{scope:"Dialog"});$u.displayName="Dialog";function gN(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:""}};wt(n,t)}function EN(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:""}};wt(n,t)}function vN(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:""}};wt(n,t)}function TN(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:""}};wt(n,t)}function yN(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:""}};wt(n,t)}function _N(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:""}};wt(n,t)}function CN(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:""}};wt(n,t)}function SN(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:""}};wt(n,t)}function AN(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:""}};wt(n,t)}function bN(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:""}};wt(n,t)}function kN(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:""}};wt(n,t)}function FN(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:""}};wt(n,t)}function IN(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:""}};wt(n,t)}function xN(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:""}};wt(n,t)}function NN(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:""}};wt(n,t)}function DN(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:""}};wt(n,t)}function wN(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:""}};wt(n,t)}function RN(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:""}};wt(n,t)}function PN(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:""}};wt(n,t)}var MN=function(){Xo("trash","delete"),Xo("onedrive","onedrivelogo"),Xo("alertsolid12","eventdatemissed12"),Xo("sixpointstar","6pointstar"),Xo("twelvepointstar","12pointstar"),Xo("toggleon","toggleleft"),Xo("toggleoff","toggleright")};bm("@fluentui/font-icons-mdl2","8.5.8");var ON="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/",ja=ot();function LN(e,t){var n,r;e===void 0&&(e=((n=ja==null?void 0:ja.FabricConfig)===null||n===void 0?void 0:n.iconBaseUrl)||((r=ja==null?void 0:ja.FabricConfig)===null||r===void 0?void 0:r.fontBaseUrl)||ON),[gN,EN,vN,TN,yN,_N,CN,SN,AN,bN,kN,FN,IN,xN,NN,DN,wN,RN,PN].forEach(function(i){return i(e,t)}),MN()}var BN=qt(),HN=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=BN(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))}),UN=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[ne]={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[ne]={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"}]}},E2=Qt(HN,UN,void 0,{scope:"Separator"});E2.displayName="Separator";var Ym=N;function $l(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 WN(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 GN(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 KN(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:Ch(Fs(n[0],t)),columnGap:Ch(Fs(n[1],t))};var r=Ch(Fs(e,t));return{rowGap:r,columnGap:r}},GE=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var n=e.split(" ");return n.length<2?Fs(e,t):n.reduce(function(r,i){return Fs(r,t)+" "+Fs(i,t)})},$a={start:"flex-start",end:"flex-end"},fp={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},XN=function(e,t,n){var r,i,o,a,s,l,u,c,d,f,p,h,v,_=e.className,g=e.disableShrink,T=e.enableScopedSelectors,y=e.grow,C=e.horizontal,k=e.horizontalAlign,S=e.reversed,A=e.verticalAlign,D=e.verticalFill,P=e.wrap,x=sn(fp,t),O=n&&n.childrenGap?n.childrenGap:e.gap,M=n&&n.maxHeight?n.maxHeight:e.maxHeight,Q=n&&n.maxWidth?n.maxWidth:e.maxWidth,Z=n&&n.padding?n.padding:e.padding,H=QN(O,t),z=H.rowGap,J=H.columnGap,R=""+-.5*J.value+J.unit,G=""+-.5*z.value+z.unit,K={textOverflow:"ellipsis"},F="> "+(T?"."+fp.child:"*"),b=(r={},r[F+":not(."+y2.root+")"]={flexShrink:0},r);return P?{root:[x.root,{flexWrap:"wrap",maxWidth:Q,maxHeight:M,width:"auto",overflow:"visible",height:"100%"},k&&(i={},i[C?"justifyContent":"alignItems"]=$a[k]||k,i),A&&(o={},o[C?"alignItems":"justifyContent"]=$a[A]||A,o),_,{display:"flex"},C&&{height:D?"100%":"auto"}],inner:[x.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:R,marginRight:R,marginTop:G,marginBottom:G,overflow:"visible",boxSizing:"border-box",padding:GE(Z,t),width:J.value===0?"100%":"calc(100% + "+J.value+J.unit+")",maxWidth:"100vw"},a[F]=N({margin:""+.5*z.value+z.unit+" "+.5*J.value+J.unit},K),a),g&&b,k&&(s={},s[C?"justifyContent":"alignItems"]=$a[k]||k,s),A&&(l={},l[C?"alignItems":"justifyContent"]=$a[A]||A,l),C&&(u={flexDirection:S?"row-reverse":"row",height:z.value===0?"100%":"calc(100% + "+z.value+z.unit+")"},u[F]={maxWidth:J.value===0?"100%":"calc(100% - "+J.value+J.unit+")"},u),!C&&(c={flexDirection:S?"column-reverse":"column",height:"calc(100% + "+z.value+z.unit+")"},c[F]={maxHeight:z.value===0?"100%":"calc(100% - "+z.value+z.unit+")"},c)]}:{root:[x.root,(d={display:"flex",flexDirection:C?S?"row-reverse":"row":S?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:D?"100%":"auto",maxWidth:Q,maxHeight:M,padding:GE(Z,t),boxSizing:"border-box"},d[F]=K,d),g&&b,y&&{flexGrow:y===!0?1:y},k&&(f={},f[C?"justifyContent":"alignItems"]=$a[k]||k,f),A&&(p={},p[C?"alignItems":"justifyContent"]=$a[A]||A,p),C&&J.value>0&&(h={},h[S?F+":not(:last-child)":F+":not(:first-child)"]={marginLeft:""+J.value+J.unit},h),!C&&z.value>0&&(v={},v[S?F+":not(:last-child)":F+":not(:first-child)"]={marginTop:""+z.value+z.unit},v),_]}},ZN=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=yi(e,["as","disableShrink","enableScopedSelectors","wrap"]),u=_2(e.children,{disableShrink:i,enableScopedSelectors:a}),c=st(l,gt),d=qm(e,{root:n,inner:"div"});return s?$l(d.root,N({},c),$l(d.inner,null,u)):$l(d.root,N({},c),u)};function _2(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?_2(o.props.children,{disableShrink:n,enableScopedSelectors:r}):null;var a=o,s={};JN(o)&&(s={shrink:!n});var l=a.props.className;return E.cloneElement(a,N(N(N(N({},s),a.props),l&&{className:l}),r&&{className:Sn(fp.child,l)}))}),i}function JN(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===Ao.displayName}var eD={Item:Ao},me=Qm(ZN,{displayName:"Stack",styles:XN,statics:eD}),tD=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=yi(e,["block","className","as","variant","nowrap"]),i=qm(e,{root:n});return $l(i.root,N({},st(r,gt)))},nD=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]}},Io=Qm(tD,{displayName:"Text",styles:nD});const rD="_layout_19t1l_1",iD="_header_19t1l_7",oD="_headerContainer_19t1l_11",aD="_headerTitleContainer_19t1l_17",sD="_headerTitle_19t1l_17",lD="_headerIcon_19t1l_34",uD="_shareButtonContainer_19t1l_40",cD="_shareButton_19t1l_40",dD="_shareButtonText_19t1l_63",fD="_urlTextBox_19t1l_73",hD="_copyButtonContainer_19t1l_83",pD="_copyButton_19t1l_83",mD="_copyButtonText_19t1l_105",Fi={layout:rD,header:iD,headerContainer:oD,headerTitleContainer:aD,headerTitle:sD,headerIcon:lD,shareButtonContainer:uD,shareButton:cD,shareButtonText:dD,urlTextBox:fD,copyButtonContainer:hD,copyButton:pD,copyButtonText:mD},C2="/assets/Azure-30d5e7c0.svg",Sh=typeof window>"u"?global:window,Ah="@griffel/";function gD(e,t){return Sh[Symbol.for(Ah+e)]||(Sh[Symbol.for(Ah+e)]=t),Sh[Symbol.for(Ah+e)]}const hp=gD("DEFINITION_LOOKUP_TABLE",{}),Sc="data-make-styles-bucket",pp=7,Xm="___",ED=Xm.length+pp,vD=0,TD=1;function yD(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 _D(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=WE[n];if(i!==void 0)return t+i;const o=[];for(let u=0;uo.cssText):r}}}const bD=["r","d","l","v","w","f","i","h","a","k","t","m"],jE=bD.reduce((e,t,n)=>(e[t]=n,e),{});function kD(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=AD(s,e,{...r.styleElementAttributes,...o&&{media:i.m}});r.stylesheets[a]=l,t&&s&&t.head.insertBefore(s,FD(t,n,e,r,i))}return r.stylesheets[a]}function FD(e,t,n,r,i){const o=jE[n];let a=c=>o-jE[c.getAttribute(Sc)],s=e.head.querySelectorAll(`[${Sc}]`);if(n==="m"&&i){const c=e.head.querySelectorAll(`[${Sc}="${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 ID=0;const xD=(e,t)=>et?1:0;function ND(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:n,insertionPoint:r,styleElementAttributes:i,compareMediaQueries:o=xD}=t,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:o,id:`d${ID++}`,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=yi(e,["title","primaryFill"]),i=Object.assign(Object.assign({},r),{title:void 0,fill:n}),o=LD();return i.className=CD(o.root,i.className),t&&(i["aria-label"]=t),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},HD=(e,t)=>{const n=r=>{const i=BD(r);return E.createElement(e,Object.assign({},i))};return n.displayName=t,n},Vu=HD,UD=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}))},zD=Vu(UD,"CopyRegular"),GD=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}))},KD=Vu(GD,"ErrorCircleRegular"),WD=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}))},jD=Vu(WD,"SendRegular"),$D=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}))},VD=Vu($D,"ShieldLockRegular"),YD=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}))},qD=Vu(YD,"SquareRegular"),QD=({onClick:e})=>B(Nu,{styles:{root:{width:86,height:32,borderRadius:4,background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)",padding:"5px 12px",marginRight:"20px"},icon:{color:"#FFFFFF"},rootHovered:{background:"linear-gradient(135deg, #0F6CBD 0%, #2D87C3 51.04%, #8DDDD8 100%)"},label:{fontWeight:600,fontSize:14,lineHeight:"20px",color:"#FFFFFF"}},iconProps:{iconName:"Share"},onClick:e,text:"Share"}),XD=({onClick:e,text:t})=>B(Xd,{text:t,iconProps:{iconName:"History"},onClick:e,styles:{root:{width:"180px",border:"1px solid #D1D1D1"},rootHovered:{border:"1px solid #D1D1D1"},rootPressed:{border:"1px solid #D1D1D1"}}}),ZD=(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};default:return e}};var Un=(e=>(e.NotConfigured="CosmosDB is not configured",e.NotWorking="CosmosDB is not working",e.Working="CosmosDB is configured and working",e))(Un||{}),En=(e=>(e.Loading="loading",e.Success="success",e.Fail="fail",e.NotStarted="notStarted",e))(En||{});async function JD(e,t){return await fetch("/conversation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e.messages}),signal:t})}async function ew(){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 b2=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 tw(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)),tw=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};i.push(a)}),i}).catch(n=>(console.error("There was an issue fetching your data."),[])),$E=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))},nw=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})),rw=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})),iw=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})),ow=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})),aw=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})),sw=async()=>await fetch("/history/ensure",{method:"GET"}).then(async t=>{let n=await t.json(),r;return n.message?r=Un.Working:t.status===500?r=Un.NotWorking:r=Un.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})),lw=async()=>await fetch("/frontend_settings",{method:"GET"}).then(t=>t.json()).catch(t=>(console.error("There was an issue fetching your data."),null)),uw={isChatHistoryOpen:!1,chatHistoryLoadingState:En.Loading,chatHistory:null,filteredChatHistory:null,currentChat:null,isCosmosDBAvailable:{cosmosDB:!1,status:Un.NotConfigured},frontendSettings:null},Pa=E.createContext(void 0),cw=({children:e})=>{const[t,n]=E.useReducer(ZD,uw);return E.useEffect(()=>{const r=async(o=0)=>await b2(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:En.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:En.Loading}),sw().then(o=>{o!=null&&o.cosmosDB?r().then(a=>{a?(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:En.Success}),n({type:"SET_COSMOSDB_STATUS",payload:o})):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:En.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:Un.NotWorking}}))}).catch(a=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:En.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:Un.NotWorking}})}):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:En.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:o}))}).catch(o=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:En.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:Un.NotConfigured}})})})()},[]),E.useEffect(()=>{(async()=>{lw().then(i=>{n({type:"FETCH_FRONTEND_SETTINGS",payload:i})}).catch(i=>{console.error("There was an issue fetching your data.")})})()},[]),B(Pa.Provider,{value:{state:t,dispatch:n},children:e})},dw=()=>{var d,f;const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[i,o]=E.useState("Copy URL"),a=E.useContext(Pa),s=()=>{t(!0)},l=()=>{t(!1),r(!1),o("Copy URL")},u=()=>{navigator.clipboard.writeText(window.location.href),r(!0)},c=()=>{a==null||a.dispatch({type:"TOGGLE_CHAT_HISTORY"})};return E.useEffect(()=>{n&&o("Copied URL")},[n]),E.useEffect(()=>{},[a==null?void 0:a.state.isCosmosDBAvailable.status]),fe("div",{className:Fi.layout,children:[B("header",{className:Fi.header,role:"banner",children:fe(me,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",children:[fe(me,{horizontal:!0,verticalAlign:"center",children:[B("img",{src:C2,className:Fi.headerIcon,"aria-hidden":"true"}),B(A7,{to:"/",className:Fi.headerTitleContainer,children:B("h1",{className:Fi.headerTitle,children:"Azure AI"})})]}),fe(me,{horizontal:!0,tokens:{childrenGap:4},children:[((d=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:d.status)!==Un.NotConfigured&&B(XD,{onClick:c,text:(f=a==null?void 0:a.state)!=null&&f.isChatHistoryOpen?"Hide chat history":"Show chat history"}),B(QD,{onClick:s})]})]})}),B(m7,{}),B($u,{onDismiss:l,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(me,{horizontal:!0,verticalAlign:"center",style:{gap:"8px"},children:[B($m,{className:Fi.urlTextBox,defaultValue:window.location.href,readOnly:!0}),fe("div",{className:Fi.copyButtonContainer,role:"button",tabIndex:0,"aria-label":"Copy",onClick:u,onKeyDown:p=>p.key==="Enter"||p.key===" "?u():null,children:[B(zD,{className:Fi.copyButton}),B("span",{className:Fi.copyButtonText,children:i})]})]})})]})},fw=()=>B("h1",{children:"404"}),VE=["http","https","mailto","tel"];function hw(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 k2=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};function Vl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?YE(e.position):"start"in e||"end"in e?YE(e):"line"in e||"column"in e?mp(e):""}function mp(e){return qE(e&&e.line)+":"+qE(e&&e.column)}function YE(e){return mp(e&&e.start)+"-"+mp(e&&e.end)}function qE(e){return e&&typeof e=="number"?e:1}class xr 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=Vl(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}}xr.prototype.file="";xr.prototype.name="";xr.prototype.reason="";xr.prototype.message="";xr.prototype.stack="";xr.prototype.fatal=null;xr.prototype.column=null;xr.prototype.line=null;xr.prototype.source=null;xr.prototype.ruleId=null;xr.prototype.position=null;const si={basename:hw,dirname:pw,extname:mw,join:gw,sep:"/"};function hw(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Yu(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 pw(e){if(Yu(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 mw(e){Yu(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 gw(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function vw(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 Yu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Tw={cwd:yw};function yw(){return"/"}function gp(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function _w(e){if(typeof e=="string")e=new URL(e);else if(!gp(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 Cw(e)}function Cw(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"||Ac.call(t,i)},n5=function(t,n){ZE&&n.name==="__proto__"?ZE(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},r5=function(t,n){if(n==="__proto__")if(Ac.call(t,n)){if(JE)return JE(t,n).value}else return;return t[n]},i5=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 kw=N2().freeze(),x2={}.hasOwnProperty;function N2(){const e=Aw(),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=p,o.processSync=h,o;function o(){const v=N2();let _=-1;for(;++_{if(S||!A||!D)k(S);else{const P=o.stringify(A,D);P==null||(xw(P)?D.value=P:D.result=P),k(S,D)}});function k(S,A){S||!A?y(S):T?T(A):_(null,A)}}}function h(v){let _;o.freeze(),Ih("processSync",o.Parser),xh("processSync",o.Compiler);const g=vl(v);return o.process(g,T),s5("processSync","process",_),g;function T(y){_=!0,XE(y)}}}function o5(e,t){return typeof e=="function"&&e.prototype&&(Fw(e.prototype)||t in e.prototype)}function Fw(e){let t;for(t in e)if(x2.call(e,t))return!0;return!1}function Ih(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function xh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Nh(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 a5(e){if(!Ep(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function s5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vl(e){return Iw(e)?e:new F2(e)}function Iw(e){return Boolean(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function xw(e){return typeof e=="string"||k2(e)}const Nw={};function Dw(e,t){const n=t||Nw,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return D2(e,r,i)}function D2(e,t,n){if(ww(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 l5(e.children,t,n)}return Array.isArray(e)?l5(e,t,n):""}function l5(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?(ur(e,e.length,0,t),e):t}const u5={}.hasOwnProperty;function w2(e){const t={};let n=-1;for(;++na))return;const A=t.events.length;let D=A,P,x;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(P){x=t.events[D][1].end;break}P=!0}for(g(r),S=A;Sy;){const k=n[C];t.containerState=k[1],k[0].exit.call(t,e)}n.length=y}function T(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Gw(e,t,n){return be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vd(e){if(e===null||it(e)||Fa(e))return 1;if(Zd(e))return 2}function Jd(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);f5(d,-l),f5(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=yr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=yr(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=yr(u,Jd(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=yr(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=yr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ur(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):ue(u)?e.attempt(eR,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ue(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function nR(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):be(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):ue(a)?i(a):n(a)}}const rR={name:"codeText",tokenize:aR,resolve:iR,previous:oR};function iR(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 L2(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),f):g===null||g===41||Ed(g)?n(g):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(g))}function f(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(s),f(g)):g===null||g===60||ue(g)?n(g):(e.consume(g),g===92?h:p)}function h(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function v(g){return g===40?++c>u?n(g):(e.consume(g),v):g===41?c--?(e.consume(g),v):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(g)):g===null||it(g)?c?n(g):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(g)):Ed(g)?n(g):(e.consume(g),g===92?_:v)}function _(g){return g===40||g===41||g===92?(e.consume(g),v):v(g)}}function B2(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c}function c(p){return p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs||s>999?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ue(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ue(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l=l||!Qe(p),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function H2(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):ue(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||ue(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 Yl(e,t){let n;return r;function r(i){return ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Qe(i)?be(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Yr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hR={name:"definition",tokenize:mR},pR={tokenize:gR,partial:!0};function mR(e,t,n){const r=this;let i;return o;function o(l){return e.enter("definition"),B2.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function a(l){return i=Yr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),Yl(e,L2(e,e.attempt(pR,be(e,s,"whitespace"),be(e,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(l)}function s(l){return l===null||ue(l)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),t(l)):n(l)}}function gR(e,t,n){return r;function r(a){return it(a)?Yl(e,i)(a):n(a)}function i(a){return a===34||a===39||a===40?H2(e,be(e,o,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):n(a)}function o(a){return a===null||ue(a)?t(a):n(a)}}const ER={name:"hardBreakEscape",tokenize:vR};function vR(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(o),i}function i(o){return ue(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}const TR={name:"headingAtx",tokenize:_R,resolve:yR};function yR(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"},ur(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function _R(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||it(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||ue(c)?(e.exit("atxHeading"),t(c)):Qe(c)?be(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||it(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const CR=["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"],m5=["pre","script","style","textarea"],SR={name:"htmlFlow",tokenize:kR,resolveTo:bR,concrete:!0},AR={tokenize:FR,partial:!0};function bR(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 kR(e,t,n){const r=this;let i,o,a,s,l;return u;function u(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),c}function c(b){return b===33?(e.consume(b),d):b===47?(e.consume(b),h):b===63?(e.consume(b),i=3,r.interrupt?t:z):_n(b)?(e.consume(b),a=String.fromCharCode(b),o=!0,v):n(b)}function d(b){return b===45?(e.consume(b),i=2,f):b===91?(e.consume(b),i=5,a="CDATA[",s=0,p):_n(b)?(e.consume(b),i=4,r.interrupt?t:z):n(b)}function f(b){return b===45?(e.consume(b),r.interrupt?t:z):n(b)}function p(b){return b===a.charCodeAt(s++)?(e.consume(b),s===a.length?r.interrupt?t:R:p):n(b)}function h(b){return _n(b)?(e.consume(b),a=String.fromCharCode(b),v):n(b)}function v(b){return b===null||b===47||b===62||it(b)?b!==47&&o&&m5.includes(a.toLowerCase())?(i=1,r.interrupt?t(b):R(b)):CR.includes(a.toLowerCase())?(i=6,b===47?(e.consume(b),_):r.interrupt?t(b):R(b)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):o?T(b):g(b)):b===45||Gn(b)?(e.consume(b),a+=String.fromCharCode(b),v):n(b)}function _(b){return b===62?(e.consume(b),r.interrupt?t:R):n(b)}function g(b){return Qe(b)?(e.consume(b),g):P(b)}function T(b){return b===47?(e.consume(b),P):b===58||b===95||_n(b)?(e.consume(b),y):Qe(b)?(e.consume(b),T):P(b)}function y(b){return b===45||b===46||b===58||b===95||Gn(b)?(e.consume(b),y):C(b)}function C(b){return b===61?(e.consume(b),k):Qe(b)?(e.consume(b),C):T(b)}function k(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),l=b,S):Qe(b)?(e.consume(b),k):(l=null,A(b))}function S(b){return b===null||ue(b)?n(b):b===l?(e.consume(b),D):(e.consume(b),S)}function A(b){return b===null||b===34||b===39||b===60||b===61||b===62||b===96||it(b)?C(b):(e.consume(b),A)}function D(b){return b===47||b===62||Qe(b)?T(b):n(b)}function P(b){return b===62?(e.consume(b),x):n(b)}function x(b){return Qe(b)?(e.consume(b),x):b===null||ue(b)?R(b):n(b)}function R(b){return b===45&&i===2?(e.consume(b),H):b===60&&i===1?(e.consume(b),G):b===62&&i===4?(e.consume(b),K):b===63&&i===3?(e.consume(b),z):b===93&&i===5?(e.consume(b),M):ue(b)&&(i===6||i===7)?e.check(AR,K,O)(b):b===null||ue(b)?O(b):(e.consume(b),R)}function O(b){return e.exit("htmlFlowData"),X(b)}function X(b){return b===null?F(b):ue(b)?e.attempt({tokenize:Y,partial:!0},X,F)(b):(e.enter("htmlFlowData"),R(b))}function Y(b,at,ze){return Dt;function Dt(Ge){return b.enter("lineEnding"),b.consume(Ge),b.exit("lineEnding"),pe}function pe(Ge){return r.parser.lazy[r.now().line]?ze(Ge):at(Ge)}}function H(b){return b===45?(e.consume(b),z):R(b)}function G(b){return b===47?(e.consume(b),a="",J):R(b)}function J(b){return b===62&&m5.includes(a.toLowerCase())?(e.consume(b),K):_n(b)&&a.length<8?(e.consume(b),a+=String.fromCharCode(b),J):R(b)}function M(b){return b===93?(e.consume(b),z):R(b)}function z(b){return b===62?(e.consume(b),K):b===45&&i===2?(e.consume(b),z):R(b)}function K(b){return b===null||ue(b)?(e.exit("htmlFlowData"),F(b)):(e.consume(b),K)}function F(b){return e.exit("htmlFlow"),t(b)}}function FR(e,t,n){return r;function r(i){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(qu,t,n)}}const IR={name:"htmlText",tokenize:xR};function xR(e,t,n){const r=this;let i,o,a,s;return l;function l(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),u}function u(F){return F===33?(e.consume(F),c):F===47?(e.consume(F),A):F===63?(e.consume(F),k):_n(F)?(e.consume(F),x):n(F)}function c(F){return F===45?(e.consume(F),d):F===91?(e.consume(F),o="CDATA[",a=0,_):_n(F)?(e.consume(F),C):n(F)}function d(F){return F===45?(e.consume(F),f):n(F)}function f(F){return F===null||F===62?n(F):F===45?(e.consume(F),p):h(F)}function p(F){return F===null||F===62?n(F):h(F)}function h(F){return F===null?n(F):F===45?(e.consume(F),v):ue(F)?(s=h,M(F)):(e.consume(F),h)}function v(F){return F===45?(e.consume(F),K):h(F)}function _(F){return F===o.charCodeAt(a++)?(e.consume(F),a===o.length?g:_):n(F)}function g(F){return F===null?n(F):F===93?(e.consume(F),T):ue(F)?(s=g,M(F)):(e.consume(F),g)}function T(F){return F===93?(e.consume(F),y):g(F)}function y(F){return F===62?K(F):F===93?(e.consume(F),y):g(F)}function C(F){return F===null||F===62?K(F):ue(F)?(s=C,M(F)):(e.consume(F),C)}function k(F){return F===null?n(F):F===63?(e.consume(F),S):ue(F)?(s=k,M(F)):(e.consume(F),k)}function S(F){return F===62?K(F):k(F)}function A(F){return _n(F)?(e.consume(F),D):n(F)}function D(F){return F===45||Gn(F)?(e.consume(F),D):P(F)}function P(F){return ue(F)?(s=P,M(F)):Qe(F)?(e.consume(F),P):K(F)}function x(F){return F===45||Gn(F)?(e.consume(F),x):F===47||F===62||it(F)?R(F):n(F)}function R(F){return F===47?(e.consume(F),K):F===58||F===95||_n(F)?(e.consume(F),O):ue(F)?(s=R,M(F)):Qe(F)?(e.consume(F),R):K(F)}function O(F){return F===45||F===46||F===58||F===95||Gn(F)?(e.consume(F),O):X(F)}function X(F){return F===61?(e.consume(F),Y):ue(F)?(s=X,M(F)):Qe(F)?(e.consume(F),X):R(F)}function Y(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),i=F,H):ue(F)?(s=Y,M(F)):Qe(F)?(e.consume(F),Y):(e.consume(F),i=void 0,J)}function H(F){return F===i?(e.consume(F),G):F===null?n(F):ue(F)?(s=H,M(F)):(e.consume(F),H)}function G(F){return F===62||F===47||it(F)?R(F):n(F)}function J(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===62||it(F)?R(F):(e.consume(F),J)}function M(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),be(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function z(F){return e.enter("htmlTextData"),s(F)}function K(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):n(F)}}const Jm={name:"labelEnd",tokenize:MR,resolveTo:PR,resolveAll:RR},NR={tokenize:OR},DR={tokenize:LR},wR={tokenize:BR};function RR(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 lP(e,t){let n=-1;const r=[];let i;for(;++ne.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 mw(e){if(Yu(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 gw(e){Yu(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 Ew(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Tw(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 Yu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yw={cwd:_w};function _w(){return"/"}function gp(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function Cw(e){if(typeof e=="string")e=new URL(e);else if(!gp(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 Sw(e)}function Sw(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"||Ac.call(t,i)},n5=function(t,n){ZE&&n.name==="__proto__"?ZE(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},r5=function(t,n){if(n==="__proto__")if(Ac.call(t,n)){if(JE)return JE(t,n).value}else return;return t[n]},i5=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 Fw=N2().freeze(),x2={}.hasOwnProperty;function N2(){const e=bw(),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=p,o.processSync=h,o;function o(){const v=N2();let _=-1;for(;++_{if(S||!A||!D)k(S);else{const P=o.stringify(A,D);P==null||(Nw(P)?D.value=P:D.result=P),k(S,D)}});function k(S,A){S||!A?y(S):T?T(A):_(null,A)}}}function h(v){let _;o.freeze(),Ih("processSync",o.Parser),xh("processSync",o.Compiler);const g=vl(v);return o.process(g,T),s5("processSync","process",_),g;function T(y){_=!0,XE(y)}}}function o5(e,t){return typeof e=="function"&&e.prototype&&(Iw(e.prototype)||t in e.prototype)}function Iw(e){let t;for(t in e)if(x2.call(e,t))return!0;return!1}function Ih(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function xh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Nh(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 a5(e){if(!Ep(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function s5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vl(e){return xw(e)?e:new F2(e)}function xw(e){return Boolean(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Nw(e){return typeof e=="string"||k2(e)}const Dw={};function ww(e,t){const n=t||Dw,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return D2(e,r,i)}function D2(e,t,n){if(Rw(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 l5(e.children,t,n)}return Array.isArray(e)?l5(e,t,n):""}function l5(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?(sr(e,e.length,0,t),e):t}const u5={}.hasOwnProperty;function w2(e){const t={};let n=-1;for(;++na))return;const A=t.events.length;let D=A,P,x;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(P){x=t.events[D][1].end;break}P=!0}for(g(r),S=A;Sy;){const k=n[C];t.containerState=k[1],k[0].exit.call(t,e)}n.length=y}function T(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Kw(e,t,n){return be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vd(e){if(e===null||at(e)||Ia(e))return 1;if(Zd(e))return 2}function Jd(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);f5(d,-l),f5(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=Tr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Tr(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Tr(u,Jd(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Tr(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=Tr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,sr(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):ue(u)?e.attempt(tR,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ue(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function rR(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):be(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):ue(a)?i(a):n(a)}}const iR={name:"codeText",tokenize:sR,resolve:oR,previous:aR};function oR(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 L2(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),f):g===null||g===41||Ed(g)?n(g):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(g))}function f(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(s),f(g)):g===null||g===60||ue(g)?n(g):(e.consume(g),g===92?h:p)}function h(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function v(g){return g===40?++c>u?n(g):(e.consume(g),v):g===41?c--?(e.consume(g),v):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(g)):g===null||at(g)?c?n(g):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(g)):Ed(g)?n(g):(e.consume(g),g===92?_:v)}function _(g){return g===40||g===41||g===92?(e.consume(g),v):v(g)}}function B2(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c}function c(p){return p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs||s>999?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ue(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ue(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l=l||!Xe(p),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function H2(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):ue(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||ue(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 Yl(e,t){let n;return r;function r(i){return ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Xe(i)?be(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Vr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const pR={name:"definition",tokenize:gR},mR={tokenize:ER,partial:!0};function gR(e,t,n){const r=this;let i;return o;function o(l){return e.enter("definition"),B2.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function a(l){return i=Vr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),Yl(e,L2(e,e.attempt(mR,be(e,s,"whitespace"),be(e,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(l)}function s(l){return l===null||ue(l)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),t(l)):n(l)}}function ER(e,t,n){return r;function r(a){return at(a)?Yl(e,i)(a):n(a)}function i(a){return a===34||a===39||a===40?H2(e,be(e,o,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):n(a)}function o(a){return a===null||ue(a)?t(a):n(a)}}const vR={name:"hardBreakEscape",tokenize:TR};function TR(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(o),i}function i(o){return ue(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}const yR={name:"headingAtx",tokenize:CR,resolve:_R};function _R(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"},sr(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function CR(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||at(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||ue(c)?(e.exit("atxHeading"),t(c)):Xe(c)?be(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||at(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const SR=["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"],m5=["pre","script","style","textarea"],AR={name:"htmlFlow",tokenize:FR,resolveTo:kR,concrete:!0},bR={tokenize:IR,partial:!0};function kR(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 FR(e,t,n){const r=this;let i,o,a,s,l;return u;function u(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),c}function c(b){return b===33?(e.consume(b),d):b===47?(e.consume(b),h):b===63?(e.consume(b),i=3,r.interrupt?t:G):Cn(b)?(e.consume(b),a=String.fromCharCode(b),o=!0,v):n(b)}function d(b){return b===45?(e.consume(b),i=2,f):b===91?(e.consume(b),i=5,a="CDATA[",s=0,p):Cn(b)?(e.consume(b),i=4,r.interrupt?t:G):n(b)}function f(b){return b===45?(e.consume(b),r.interrupt?t:G):n(b)}function p(b){return b===a.charCodeAt(s++)?(e.consume(b),s===a.length?r.interrupt?t:O:p):n(b)}function h(b){return Cn(b)?(e.consume(b),a=String.fromCharCode(b),v):n(b)}function v(b){return b===null||b===47||b===62||at(b)?b!==47&&o&&m5.includes(a.toLowerCase())?(i=1,r.interrupt?t(b):O(b)):SR.includes(a.toLowerCase())?(i=6,b===47?(e.consume(b),_):r.interrupt?t(b):O(b)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):o?T(b):g(b)):b===45||Gn(b)?(e.consume(b),a+=String.fromCharCode(b),v):n(b)}function _(b){return b===62?(e.consume(b),r.interrupt?t:O):n(b)}function g(b){return Xe(b)?(e.consume(b),g):P(b)}function T(b){return b===47?(e.consume(b),P):b===58||b===95||Cn(b)?(e.consume(b),y):Xe(b)?(e.consume(b),T):P(b)}function y(b){return b===45||b===46||b===58||b===95||Gn(b)?(e.consume(b),y):C(b)}function C(b){return b===61?(e.consume(b),k):Xe(b)?(e.consume(b),C):T(b)}function k(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),l=b,S):Xe(b)?(e.consume(b),k):(l=null,A(b))}function S(b){return b===null||ue(b)?n(b):b===l?(e.consume(b),D):(e.consume(b),S)}function A(b){return b===null||b===34||b===39||b===60||b===61||b===62||b===96||at(b)?C(b):(e.consume(b),A)}function D(b){return b===47||b===62||Xe(b)?T(b):n(b)}function P(b){return b===62?(e.consume(b),x):n(b)}function x(b){return Xe(b)?(e.consume(b),x):b===null||ue(b)?O(b):n(b)}function O(b){return b===45&&i===2?(e.consume(b),H):b===60&&i===1?(e.consume(b),z):b===62&&i===4?(e.consume(b),K):b===63&&i===3?(e.consume(b),G):b===93&&i===5?(e.consume(b),R):ue(b)&&(i===6||i===7)?e.check(bR,K,M)(b):b===null||ue(b)?M(b):(e.consume(b),O)}function M(b){return e.exit("htmlFlowData"),Q(b)}function Q(b){return b===null?F(b):ue(b)?e.attempt({tokenize:Z,partial:!0},Q,F)(b):(e.enter("htmlFlowData"),O(b))}function Z(b,Je,Ue){return Rt;function Rt(Ne){return b.enter("lineEnding"),b.consume(Ne),b.exit("lineEnding"),_e}function _e(Ne){return r.parser.lazy[r.now().line]?Ue(Ne):Je(Ne)}}function H(b){return b===45?(e.consume(b),G):O(b)}function z(b){return b===47?(e.consume(b),a="",J):O(b)}function J(b){return b===62&&m5.includes(a.toLowerCase())?(e.consume(b),K):Cn(b)&&a.length<8?(e.consume(b),a+=String.fromCharCode(b),J):O(b)}function R(b){return b===93?(e.consume(b),G):O(b)}function G(b){return b===62?(e.consume(b),K):b===45&&i===2?(e.consume(b),G):O(b)}function K(b){return b===null||ue(b)?(e.exit("htmlFlowData"),F(b)):(e.consume(b),K)}function F(b){return e.exit("htmlFlow"),t(b)}}function IR(e,t,n){return r;function r(i){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(qu,t,n)}}const xR={name:"htmlText",tokenize:NR};function NR(e,t,n){const r=this;let i,o,a,s;return l;function l(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),u}function u(F){return F===33?(e.consume(F),c):F===47?(e.consume(F),A):F===63?(e.consume(F),k):Cn(F)?(e.consume(F),x):n(F)}function c(F){return F===45?(e.consume(F),d):F===91?(e.consume(F),o="CDATA[",a=0,_):Cn(F)?(e.consume(F),C):n(F)}function d(F){return F===45?(e.consume(F),f):n(F)}function f(F){return F===null||F===62?n(F):F===45?(e.consume(F),p):h(F)}function p(F){return F===null||F===62?n(F):h(F)}function h(F){return F===null?n(F):F===45?(e.consume(F),v):ue(F)?(s=h,R(F)):(e.consume(F),h)}function v(F){return F===45?(e.consume(F),K):h(F)}function _(F){return F===o.charCodeAt(a++)?(e.consume(F),a===o.length?g:_):n(F)}function g(F){return F===null?n(F):F===93?(e.consume(F),T):ue(F)?(s=g,R(F)):(e.consume(F),g)}function T(F){return F===93?(e.consume(F),y):g(F)}function y(F){return F===62?K(F):F===93?(e.consume(F),y):g(F)}function C(F){return F===null||F===62?K(F):ue(F)?(s=C,R(F)):(e.consume(F),C)}function k(F){return F===null?n(F):F===63?(e.consume(F),S):ue(F)?(s=k,R(F)):(e.consume(F),k)}function S(F){return F===62?K(F):k(F)}function A(F){return Cn(F)?(e.consume(F),D):n(F)}function D(F){return F===45||Gn(F)?(e.consume(F),D):P(F)}function P(F){return ue(F)?(s=P,R(F)):Xe(F)?(e.consume(F),P):K(F)}function x(F){return F===45||Gn(F)?(e.consume(F),x):F===47||F===62||at(F)?O(F):n(F)}function O(F){return F===47?(e.consume(F),K):F===58||F===95||Cn(F)?(e.consume(F),M):ue(F)?(s=O,R(F)):Xe(F)?(e.consume(F),O):K(F)}function M(F){return F===45||F===46||F===58||F===95||Gn(F)?(e.consume(F),M):Q(F)}function Q(F){return F===61?(e.consume(F),Z):ue(F)?(s=Q,R(F)):Xe(F)?(e.consume(F),Q):O(F)}function Z(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),i=F,H):ue(F)?(s=Z,R(F)):Xe(F)?(e.consume(F),Z):(e.consume(F),i=void 0,J)}function H(F){return F===i?(e.consume(F),z):F===null?n(F):ue(F)?(s=H,R(F)):(e.consume(F),H)}function z(F){return F===62||F===47||at(F)?O(F):n(F)}function J(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===62||at(F)?O(F):(e.consume(F),J)}function R(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),be(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function G(F){return e.enter("htmlTextData"),s(F)}function K(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):n(F)}}const Jm={name:"labelEnd",tokenize:OR,resolveTo:MR,resolveAll:PR},DR={tokenize:LR},wR={tokenize:BR},RR={tokenize:HR};function PR(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 uP(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 CP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function K2(e){return e.replace(CP,SP)}function SP(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return G2(n.slice(o?2:1),o?16:10)}return Zm(n)||e}const W2={}.hasOwnProperty,AP=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),bP(n)(_P(TP(n).document().write(yP()(e,t,!0))))};function bP(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Vn),autolinkProtocol:R,autolinkEmail:R,atxHeading:s(De),blockQuote:s(Ht),characterEscape:R,characterReference:R,codeFenced:s(In),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(In,l),codeText:s(re,l),codeTextData:R,data:R,codeFlowValue:R,definition:s(ge),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(ce),hardBreakEscape:s(_e),hardBreakTrailing:s(_e),htmlFlow:s(qt,l),htmlFlowData:R,htmlText:s(qt,l),htmlTextData:R,image:s(xe),label:l,link:s(Vn),listItem:s(Ut),listItemValue:h,listOrdered:s(Yn,p),listUnordered:s(Yn),paragraph:s(Tt),reference:Dt,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(De),strong:s(xn),thematicBreak:s(wr)},exit:{atxHeading:c(),atxHeadingSequence:A,autolink:c(),autolinkEmail:mt,autolinkProtocol:bt,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Ge,characterReferenceMarkerNumeric:Ge,characterReferenceValue:wt,codeFenced:c(T),codeFencedFence:g,codeFencedFenceInfo:v,codeFencedFenceMeta:_,codeFlowValue:O,codeIndented:c(y),codeText:c(J),codeTextData:O,data:O,definition:c(),definitionDestinationString:S,definitionLabelString:C,definitionTitleString:k,emphasis:c(),hardBreakEscape:c(Y),hardBreakTrailing:c(Y),htmlFlow:c(H),htmlFlowData:O,htmlText:c(G),htmlTextData:O,image:c(z),label:F,labelText:K,lineEnding:X,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:pe,resourceDestinationString:b,resourceTitleString:at,resource:ze,setextHeading:c(x),setextHeadingLineSequence:P,setextHeadingText:D,strong:c(),thematicBreak:c()}};j2(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(L){let j={type:"root",children:[]};const oe={stack:[j],tokenStack:[],config:t,enter:u,exit:d,buffer:l,resume:f,setData:o,getData:a},ie=[];let q=-1;for(;++q0){const Ne=oe.tokenStack[oe.tokenStack.length-1];(Ne[1]||v5).call(oe,void 0,Ne[0])}for(j.position={start:so(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:so(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q{const r=this.data("settings");return AP(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}const Bt=function(e,t,n){const r={type:String(e)};return n==null&&(typeof t=="string"||Array.isArray(t))?n=t:Object.assign(r,t),Array.isArray(n)?r.children=n:n!=null&&(r.value=String(n)),r},kc={}.hasOwnProperty;function IP(e,t){const n=t.data||{};return"value"in t&&!(kc.call(n,"hName")||kc.call(n,"hProperties")||kc.call(n,"hChildren"))?e.augment(t,Bt("text",t.value)):e(t,"div",Fn(e,t))}function $2(e,t,n){const r=t&&t.type;let i;if(!r)throw new Error("Expected node, got `"+t+"`");return kc.call(e.handlers,r)?i=e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?i=xP:i=e.unknownHandler,(typeof i=="function"?i:IP)(e,t,n)}function xP(e,t){return"children"in t?{...t,children:Fn(e,t)}:t}function Fn(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i":""))+")"})}return d;function d(){let f=[],p,h,v;if((!t||i(s,l,u[u.length-1]||null))&&(f=OP(n(s,u)),f[0]===T5))return f;if(s.children&&f[0]!==MP)for(h=(r?s.children.length:-1)+o,v=u.concat(s);h>-1&&h-1?r.offset:null}}}function LP(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const y5={}.hasOwnProperty;function BP(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Us(e,"definition",r=>{const i=_5(r.identifier);i&&!y5.call(t,i)&&(t[i]=r)}),n;function n(r){const i=_5(r);return i&&y5.call(t,i)?t[i]:null}}function _5(e){return String(e||"").toUpperCase()}function q2(e,t){return e(t,"hr")}function Io(e,t){const n=[];let r=-1;for(t&&n.push(Bt("text",` -`));++r0&&n.push(Bt("text",` -`)),n}function Q2(e,t){const n={},r=t.ordered?"ol":"ul",i=Fn(e,t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o"u"&&(n=!0),s=YP(t),r=0,i=e.length;r=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1=56320&&a<=57343)){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(e[r])}return l}nf.defaultChars=";/?:@&=+$,-_.!~*'()#";nf.componentChars="-_.!~*'()";var rf=nf;function Z2(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return Bt("text","!["+t.alt+r);const i=Fn(e,t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift(Bt("text","["));const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push(Bt("text",r)),i}function qP(e,t){const n=e.definition(t.identifier);if(!n)return Z2(e,t);const r={src:rf(n.url||""),alt:t.alt};return n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)}function QP(e,t){const n={src:rf(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}function XP(e,t){return e(t,"code",[Bt("text",t.value.replace(/\r?\n|\r/g," "))])}function ZP(e,t){const n=e.definition(t.identifier);if(!n)return Z2(e,t);const r={href:rf(n.url||"")};return n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,Fn(e,t))}function JP(e,t){const n={href:rf(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,Fn(e,t))}function eM(e,t,n){const r=Fn(e,t),i=n?tM(n):J2(t),o={},a=[];if(typeof t.checked=="boolean"){let u;r[0]&&r[0].type==="element"&&r[0].tagName==="p"?u=r[0]:(u=e(null,"p",[]),r.unshift(u)),u.children.length>0&&u.children.unshift(Bt("text"," ")),u.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),o.className=["task-list-item"]}let s=-1;for(;++s1}function nM(e,t){return e(t,"p",Fn(e,t))}function rM(e,t){return e.augment(t,Bt("root",Io(Fn(e,t))))}function iM(e,t){return e(t,"strong",Fn(e,t))}function oM(e,t){const n=t.children;let r=-1;const i=t.align||[],o=[];for(;++r{const l=String(s.identifier).toUpperCase();lM.call(i,l)||(i[l]=s)}),a;function o(s,l){if(s&&"data"in s&&s.data){const u=s.data;u.hName&&(l.type!=="element"&&(l={type:"element",tagName:"",properties:{},children:[]}),l.tagName=u.hName),l.type==="element"&&u.hProperties&&(l.properties={...l.properties,...u.hProperties}),"children"in l&&l.children&&u.hChildren&&(l.children=u.hChildren)}if(s){const u="type"in s?s:{position:s};LP(u)||(l.position={start:tf(u),end:tg(u)})}return l}function a(s,l,u,c){return Array.isArray(u)&&(c=u,u={}),o(s,{type:"element",tagName:l,properties:u||{},children:c||[]})}}function eC(e,t){const n=uM(e,t),r=$2(n,e,null),i=HP(n);return i&&r.children.push(Bt("text",` -`),i),Array.isArray(r)?{type:"root",children:r}:r}const cM=function(e,t){return e&&"run"in e?fM(e,t):hM(e)},dM=cM;function fM(e,t){return(n,r,i)=>{e.run(eC(n,t),r,o=>{i(o)})}}function hM(e){return t=>eC(t,e)}var Te={},pM={get exports(){return Te},set exports(e){Te=e}},mM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gM=mM,EM=gM;function tC(){}function nC(){}nC.resetWarningCache=tC;var vM=function(){function e(r,i,o,a,s,l){if(l!==EM){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:nC,resetWarningCache:tC};return n.PropTypes=n,n};pM.exports=vM();class Qu{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Qu.prototype.property={};Qu.prototype.normal={};Qu.prototype.space=null;function rC(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&SM.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(A5,kM);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!A5.test(o)){let a=o.replace(AM,bM);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=ng}return new i(r,t)}function bM(e){return"-"+e.toLowerCase()}function kM(e){return e.charAt(1).toUpperCase()}const b5={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"},Xu=rC([aC,oC,uC,cC,_M],"html"),Xs=rC([aC,oC,uC,cC,CM],"svg");function FM(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=>{Us(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 _p={},IM={get exports(){return _p},set exports(e){_p=e}},Ve={};/** @license React v17.0.2 +`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}const cP={[42]:wn,[43]:wn,[45]:wn,[48]:wn,[49]:wn,[50]:wn,[51]:wn,[52]:wn,[53]:wn,[54]:wn,[55]:wn,[56]:wn,[57]:wn,[62]:R2},dP={[91]:pR},fP={[-2]:Dh,[-1]:Dh,[32]:Dh},hP={[35]:yR,[42]:bc,[45]:[g5,bc],[60]:AR,[61]:g5,[95]:bc,[96]:p5,[126]:p5},pP={[38]:M2,[92]:P2},mP={[-5]:wh,[-4]:wh,[-3]:wh,[33]:UR,[38]:M2,[42]:Tp,[60]:[$w,xR],[91]:GR,[92]:[vR,P2],[93]:Jm,[95]:Tp,[96]:iR},gP={null:[Tp,rP]},EP={null:[42,95]},vP={null:[]},TP=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:EP,contentInitial:dP,disable:vP,document:cP,flow:hP,flowInitial:fP,insideSpan:gP,string:pP,text:mP},Symbol.toStringTag,{value:"Module"}));function yP(e={}){const t=w2([TP].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:r(Hw),document:r(zw),flow:r(tP),string:r(iP),text:r(oP)};return n;function r(i){return o;function o(a){return sP(n,i,a)}}}const E5=/[\0\t\n\r]/g;function _P(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let u,c,d,f,p;for(o=t+o.toString(a),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d13&&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 SP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function K2(e){return e.replace(SP,AP)}function AP(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return G2(n.slice(o?2:1),o?16:10)}return Zm(n)||e}const W2={}.hasOwnProperty,bP=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),kP(n)(CP(yP(n).document().write(_P()(e,t,!0))))};function kP(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Gt),autolinkProtocol:O,autolinkEmail:O,atxHeading:s(he),blockQuote:s(zt),characterEscape:O,characterReference:O,codeFenced:s(xn),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(xn,l),codeText:s(Vn,l),codeTextData:O,data:O,codeFlowValue:O,definition:s(Dr),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(re),hardBreakEscape:s(le),hardBreakTrailing:s(le),htmlFlow:s(Ve,l),htmlFlowData:O,htmlText:s(Ve,l),htmlTextData:O,image:s(Me),label:l,link:s(Gt),listItem:s(Xt),listItemValue:h,listOrdered:s(Ie,p),listUnordered:s(Ie),paragraph:s(fr),reference:Rt,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(he),strong:s(wr),thematicBreak:s(ln)},exit:{atxHeading:c(),atxHeadingSequence:A,autolink:c(),autolinkEmail:Et,autolinkProtocol:Ft,blockQuote:c(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:Ne,characterReferenceMarkerNumeric:Ne,characterReferenceValue:Pt,codeFenced:c(T),codeFencedFence:g,codeFencedFenceInfo:v,codeFencedFenceMeta:_,codeFlowValue:M,codeIndented:c(y),codeText:c(J),codeTextData:M,data:M,definition:c(),definitionDestinationString:S,definitionLabelString:C,definitionTitleString:k,emphasis:c(),hardBreakEscape:c(Z),hardBreakTrailing:c(Z),htmlFlow:c(H),htmlFlowData:M,htmlText:c(z),htmlTextData:M,image:c(G),label:F,labelText:K,lineEnding:Q,link:c(R),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:_e,resourceDestinationString:b,resourceTitleString:Je,resource:Ue,setextHeading:c(x),setextHeadingLineSequence:P,setextHeadingText:D,strong:c(),thematicBreak:c()}};j2(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(L){let j={type:"root",children:[]};const ie={stack:[j],tokenStack:[],config:t,enter:u,exit:d,buffer:l,resume:f,setData:o,getData:a},pe=[];let q=-1;for(;++q0){const de=ie.tokenStack[ie.tokenStack.length-1];(de[1]||v5).call(ie,void 0,de[0])}for(j.position={start:lo(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:lo(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q{const r=this.data("settings");return bP(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}const Ut=function(e,t,n){const r={type:String(e)};return n==null&&(typeof t=="string"||Array.isArray(t))?n=t:Object.assign(r,t),Array.isArray(n)?r.children=n:n!=null&&(r.value=String(n)),r},kc={}.hasOwnProperty;function xP(e,t){const n=t.data||{};return"value"in t&&!(kc.call(n,"hName")||kc.call(n,"hProperties")||kc.call(n,"hChildren"))?e.augment(t,Ut("text",t.value)):e(t,"div",In(e,t))}function $2(e,t,n){const r=t&&t.type;let i;if(!r)throw new Error("Expected node, got `"+t+"`");return kc.call(e.handlers,r)?i=e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?i=NP:i=e.unknownHandler,(typeof i=="function"?i:xP)(e,t,n)}function NP(e,t){return"children"in t?{...t,children:In(e,t)}:t}function In(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i":""))+")"})}return d;function d(){let f=[],p,h,v;if((!t||i(s,l,u[u.length-1]||null))&&(f=LP(n(s,u)),f[0]===T5))return f;if(s.children&&f[0]!==OP)for(h=(r?s.children.length:-1)+o,v=u.concat(s);h>-1&&h-1?r.offset:null}}}function BP(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const y5={}.hasOwnProperty;function HP(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return zs(e,"definition",r=>{const i=_5(r.identifier);i&&!y5.call(t,i)&&(t[i]=r)}),n;function n(r){const i=_5(r);return i&&y5.call(t,i)?t[i]:null}}function _5(e){return String(e||"").toUpperCase()}function q2(e,t){return e(t,"hr")}function xo(e,t){const n=[];let r=-1;for(t&&n.push(Ut("text",` +`));++r0&&n.push(Ut("text",` +`)),n}function Q2(e,t){const n={},r=t.ordered?"ol":"ul",i=In(e,t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o"u"&&(n=!0),s=qP(t),r=0,i=e.length;r=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1=56320&&a<=57343)){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(e[r])}return l}nf.defaultChars=";/?:@&=+$,-_.!~*'()#";nf.componentChars="-_.!~*'()";var rf=nf;function Z2(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return Ut("text","!["+t.alt+r);const i=In(e,t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift(Ut("text","["));const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push(Ut("text",r)),i}function QP(e,t){const n=e.definition(t.identifier);if(!n)return Z2(e,t);const r={src:rf(n.url||""),alt:t.alt};return n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)}function XP(e,t){const n={src:rf(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}function ZP(e,t){return e(t,"code",[Ut("text",t.value.replace(/\r?\n|\r/g," "))])}function JP(e,t){const n=e.definition(t.identifier);if(!n)return Z2(e,t);const r={href:rf(n.url||"")};return n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,In(e,t))}function eM(e,t){const n={href:rf(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,In(e,t))}function tM(e,t,n){const r=In(e,t),i=n?nM(n):J2(t),o={},a=[];if(typeof t.checked=="boolean"){let u;r[0]&&r[0].type==="element"&&r[0].tagName==="p"?u=r[0]:(u=e(null,"p",[]),r.unshift(u)),u.children.length>0&&u.children.unshift(Ut("text"," ")),u.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),o.className=["task-list-item"]}let s=-1;for(;++s1}function rM(e,t){return e(t,"p",In(e,t))}function iM(e,t){return e.augment(t,Ut("root",xo(In(e,t))))}function oM(e,t){return e(t,"strong",In(e,t))}function aM(e,t){const n=t.children;let r=-1;const i=t.align||[],o=[];for(;++r{const l=String(s.identifier).toUpperCase();uM.call(i,l)||(i[l]=s)}),a;function o(s,l){if(s&&"data"in s&&s.data){const u=s.data;u.hName&&(l.type!=="element"&&(l={type:"element",tagName:"",properties:{},children:[]}),l.tagName=u.hName),l.type==="element"&&u.hProperties&&(l.properties={...l.properties,...u.hProperties}),"children"in l&&l.children&&u.hChildren&&(l.children=u.hChildren)}if(s){const u="type"in s?s:{position:s};BP(u)||(l.position={start:tf(u),end:tg(u)})}return l}function a(s,l,u,c){return Array.isArray(u)&&(c=u,u={}),o(s,{type:"element",tagName:l,properties:u||{},children:c||[]})}}function eC(e,t){const n=cM(e,t),r=$2(n,e,null),i=UP(n);return i&&r.children.push(Ut("text",` +`),i),Array.isArray(r)?{type:"root",children:r}:r}const dM=function(e,t){return e&&"run"in e?hM(e,t):pM(e)},fM=dM;function hM(e,t){return(n,r,i)=>{e.run(eC(n,t),r,o=>{i(o)})}}function pM(e){return t=>eC(t,e)}var ye={},mM={get exports(){return ye},set exports(e){ye=e}},gM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",EM=gM,vM=EM;function tC(){}function nC(){}nC.resetWarningCache=tC;var TM=function(){function e(r,i,o,a,s,l){if(l!==vM){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:nC,resetWarningCache:tC};return n.PropTypes=n,n};mM.exports=TM();class Qu{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Qu.prototype.property={};Qu.prototype.normal={};Qu.prototype.space=null;function rC(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&AM.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(A5,FM);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!A5.test(o)){let a=o.replace(bM,kM);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=ng}return new i(r,t)}function kM(e){return"-"+e.toLowerCase()}function FM(e){return e.charAt(1).toUpperCase()}const b5={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"},Xu=rC([aC,oC,uC,cC,CM],"html"),Zs=rC([aC,oC,uC,cC,SM],"svg");function IM(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=>{zs(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 _p={},xM={get exports(){return _p},set exports(e){_p=e}},$e={};/** @license React v17.0.2 * 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 af=60103,sf=60106,Zu=60107,Ju=60108,e1=60114,t1=60109,n1=60110,r1=60112,i1=60113,rg=60120,o1=60115,a1=60116,dC=60121,fC=60122,hC=60117,pC=60129,mC=60131;if(typeof Symbol=="function"&&Symbol.for){var zt=Symbol.for;af=zt("react.element"),sf=zt("react.portal"),Zu=zt("react.fragment"),Ju=zt("react.strict_mode"),e1=zt("react.profiler"),t1=zt("react.provider"),n1=zt("react.context"),r1=zt("react.forward_ref"),i1=zt("react.suspense"),rg=zt("react.suspense_list"),o1=zt("react.memo"),a1=zt("react.lazy"),dC=zt("react.block"),fC=zt("react.server.block"),hC=zt("react.fundamental"),pC=zt("react.debug_trace_mode"),mC=zt("react.legacy_hidden")}function Xr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case af:switch(e=e.type,e){case Zu:case e1:case Ju:case i1:case rg:return e;default:switch(e=e&&e.$$typeof,e){case n1:case r1:case a1:case o1:case t1:return e;default:return t}}case sf:return t}}}var xM=t1,NM=af,DM=r1,wM=Zu,RM=a1,PM=o1,MM=sf,OM=e1,LM=Ju,BM=i1;Ve.ContextConsumer=n1;Ve.ContextProvider=xM;Ve.Element=NM;Ve.ForwardRef=DM;Ve.Fragment=wM;Ve.Lazy=RM;Ve.Memo=PM;Ve.Portal=MM;Ve.Profiler=OM;Ve.StrictMode=LM;Ve.Suspense=BM;Ve.isAsyncMode=function(){return!1};Ve.isConcurrentMode=function(){return!1};Ve.isContextConsumer=function(e){return Xr(e)===n1};Ve.isContextProvider=function(e){return Xr(e)===t1};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===af};Ve.isForwardRef=function(e){return Xr(e)===r1};Ve.isFragment=function(e){return Xr(e)===Zu};Ve.isLazy=function(e){return Xr(e)===a1};Ve.isMemo=function(e){return Xr(e)===o1};Ve.isPortal=function(e){return Xr(e)===sf};Ve.isProfiler=function(e){return Xr(e)===e1};Ve.isStrictMode=function(e){return Xr(e)===Ju};Ve.isSuspense=function(e){return Xr(e)===i1};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zu||e===e1||e===pC||e===Ju||e===i1||e===rg||e===mC||typeof e=="object"&&e!==null&&(e.$$typeof===a1||e.$$typeof===o1||e.$$typeof===t1||e.$$typeof===n1||e.$$typeof===r1||e.$$typeof===hC||e.$$typeof===dC||e[0]===fC)};Ve.typeOf=Xr;(function(e){e.exports=Ve})(IM);const HM=kT(_p);function UM(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 k5(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function gC(e){return e.join(" ").trim()}function F5(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 EC(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var I5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zM=/\n/g,GM=/^\s*/,KM=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,WM=/^:\s*/,jM=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,$M=/^[;\s]*/,VM=/^\s+|\s+$/g,YM=` -`,x5="/",N5="*",la="",qM="comment",QM="declaration",XM=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(zM);v&&(n+=v.length);var _=h.lastIndexOf(YM);r=~_?h.length-_: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 _=v[0];return i(_),e=e.slice(_.length),v}}function u(){l(GM)}function c(h){var v;for(h=h||[];v=d();)v!==!1&&h.push(v);return h}function d(){var h=o();if(!(x5!=e.charAt(0)||N5!=e.charAt(1))){for(var v=2;la!=e.charAt(v)&&(N5!=e.charAt(v)||x5!=e.charAt(v+1));)++v;if(v+=2,la===e.charAt(v-1))return s("End of comment missing");var _=e.slice(2,v-2);return r+=2,i(_),e=e.slice(v),r+=2,h({type:qM,comment:_})}}function f(){var h=o(),v=l(KM);if(v){if(d(),!l(WM))return s("property missing ':'");var _=l(jM),g=h({type:QM,property:D5(v[0].replace(I5,la)),value:_?D5(_[0].replace(I5,la)):la});return l($M),g}}function p(){var h=[];c(h);for(var v;v=f();)v!==!1&&(h.push(v),c(h));return h}return u(),p()};function D5(e){return e?e.replace(VM,la):la}var ZM=XM;function JM(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=ZM(e),o=typeof t=="function",a,s,l=0,u=i.length;l0?En.createElement(f,s,c):En.createElement(f,s)}function rO(e){let t=-1;for(;++tString(t)).join("")}const w5={}.hasOwnProperty,lO="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",W1={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function lf(e){for(const o in W1)if(w5.call(W1,o)&&w5.call(e,o)){const a=W1[o];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${o}\` (see <${lO}#${a.id}> for more info)`),delete W1[o]}const t=kw().use(FP).use(e.remarkPlugins||e.plugins||[]).use(dM,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(FM,e),n=new F2;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=En.createElement(En.Fragment,{},vC({options:e,schema:Xu,listDepth:0},r));return e.className&&(i=En.createElement("div",{className:e.className},i)),i}lf.defaultProps={transformLinkUri:fw};lf.propTypes={children:Te.string,className:Te.string,allowElement:Te.func,allowedElements:Te.arrayOf(Te.string),disallowedElements:Te.arrayOf(Te.string),unwrapDisallowed:Te.bool,remarkPlugins:Te.arrayOf(Te.oneOfType([Te.object,Te.func,Te.arrayOf(Te.oneOfType([Te.object,Te.func]))])),rehypePlugins:Te.arrayOf(Te.oneOfType([Te.object,Te.func,Te.arrayOf(Te.oneOfType([Te.object,Te.func]))])),sourcePos:Te.bool,rawSourcePos:Te.bool,skipHtml:Te.bool,includeElementIndex:Te.bool,transformLinkUri:Te.oneOfType([Te.func,Te.bool]),linkTarget:Te.oneOfType([Te.func,Te.string]),transformImageUri:Te.func,components:Te.object};const uO={tokenize:mO,partial:!0},TC={tokenize:gO,partial:!0},yC={tokenize:EO,partial:!0},_C={tokenize:vO,partial:!0},cO={tokenize:TO,partial:!0},CC={tokenize:hO,previous:AC},SC={tokenize:pO,previous:bC},eo={tokenize:fO,previous:kC},Ci={},dO={text:Ci};let Zo=48;for(;Zo<123;)Ci[Zo]=eo,Zo++,Zo===58?Zo=65:Zo===91&&(Zo=97);Ci[43]=eo;Ci[45]=eo;Ci[46]=eo;Ci[95]=eo;Ci[72]=[eo,SC];Ci[104]=[eo,SC];Ci[87]=[eo,CC];Ci[119]=[eo,CC];function fO(e,t,n){const r=this;let i,o;return a;function a(d){return!Sp(d)||!kC.call(r,r.previous)||ig(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return Sp(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(cO,c,u)(d):d===45||d===95||Gn(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&&_n(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function hO(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!AC.call(r,r.previous)||ig(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(uO,e.attempt(TC,e.attempt(yC,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function pO(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&bC.call(r,r.previous)&&!ig(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(_n(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||Ed(d)||it(d)||Fa(d)||Zd(d)?n(d):e.attempt(TC,e.attempt(yC,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function mO(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 gO(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(_C,l,s)(u):u===null||it(u)||Fa(u)||u!==45&&Zd(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 EO(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 yO={tokenize:IO,partial:!0};function _O(){return{document:{[91]:{tokenize:bO,continuation:{tokenize:kO},exit:FO}},text:{[91]:{tokenize:AO},[93]:{add:"after",tokenize:CO,resolveTo:SO}}}}function CO(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=Yr(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 SO(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 AO(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||it(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Yr(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return it(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 bO(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||it(h))return n(h);if(h===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=Yr(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return it(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),be(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function kO(e,t,n){return e.check(qu,t,e.attempt(yO,t,n))}function FO(e){e.exit("gfmFootnoteDefinition")}function IO(e,t,n){const r=this;return be(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 xO(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++,p);if(d<2&&!n)return l(h);const _=a.exit("strikethroughSequenceTemporary"),g=vd(h);return _._open=!g||g===2&&Boolean(v),_._close=!v||v===2&&Boolean(g),s(h)}}}class NO{constructor(){this.map=[]}add(t,n,r){DO(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 DO(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const Y=r.events[R][1].type;if(Y==="lineEnding"||Y==="linePrefix")R--;else break}const O=R>-1?r.events[R][1].type:null,X=O==="tableHead"||O==="tableRow"?S:l;return X===S&&r.parser.lazy[r.now().line]?n(x):X(x)}function l(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(a=!0,o+=1),c(x)}function c(x){return x===null?n(x):ue(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):n(x):Qe(x)?be(e,c,"whitespace")(x):(o+=1,a&&(a=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(x)))}function d(x){return x===null||x===124||it(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?f:d)}function f(x){return x===92||x===124?(e.consume(x),d):d(x)}function p(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),a=!1,Qe(x)?be(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):h(x))}function h(x){return x===45||x===58?_(x):x===124?(a=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),v):k(x)}function v(x){return Qe(x)?be(e,_,"whitespace")(x):_(x)}function _(x){return x===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),g):x===45?(o+=1,g(x)):x===null||ue(x)?C(x):k(x)}function g(x){return x===45?(e.enter("tableDelimiterFiller"),T(x)):k(x)}function T(x){return x===45?(e.consume(x),T):x===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(x))}function y(x){return Qe(x)?be(e,C,"whitespace")(x):C(x)}function C(x){return x===124?h(x):x===null||ue(x)?!a||i!==o?k(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):k(x)}function k(x){return n(x)}function S(x){return e.enter("tableRow"),A(x)}function A(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),A):x===null||ue(x)?(e.exit("tableRow"),t(x)):Qe(x)?be(e,A,"whitespace")(x):(e.enter("data"),D(x))}function D(x){return x===null||x===124||it(x)?(e.exit("data"),A(x)):(e.consume(x),x===92?P:D)}function P(x){return x===92||x===124?(e.consume(x),D):D(x)}}function MO(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 NO;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({},Xa(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function R5(e,t,n,r,i){const o=[],a=Xa(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 Xa(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const OO={tokenize:BO},LO={text:{[91]:OO}};function BO(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 it(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 ue(l)?t(l):Qe(l)?e.check({tokenize:HO},t,n)(l):n(l)}}function HO(e,t,n){return be(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function UO(e){return w2([dO,_O(),xO(e),RO,LO])}function P5(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 zO(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const GO={}.hasOwnProperty,KO=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=eg(i.ignore||[]),s=WO(o);let l=-1;for(;++l0?{type:"text",value:A}:void 0),A!==!1&&(_!==k&&y.push({type:"text",value:d.value.slice(_,k)}),Array.isArray(A)?y.push(...A):A&&y.push(A),_=k+C[0].length,T=!0),!h.global)break;C=h.exec(d.value)}return T?(_e}const Mh="phrasing",Oh=["autolink","link","image","label"],jO={transforms:[ZO],enter:{literalAutolink:VO,literalAutolinkEmail:Lh,literalAutolinkHttp:Lh,literalAutolinkWww:Lh},exit:{literalAutolink:XO,literalAutolinkEmail:QO,literalAutolinkHttp:YO,literalAutolinkWww:qO}},$O={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mh,notInConstruct:Oh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mh,notInConstruct:Oh},{character:":",before:"[ps]",after:"\\/",inConstruct:Mh,notInConstruct:Oh}]};function VO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Lh(e){this.config.enter.autolinkProtocol.call(this,e)}function YO(e){this.config.exit.autolinkProtocol.call(this,e)}function qO(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function QO(e){this.config.exit.autolinkEmail.call(this,e)}function XO(e){this.exit(e)}function ZO(e){KO(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,JO],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,eL]],{ignore:["link","linkReference"]})}function JO(e,t,n,r,i){let o="";if(!FC(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!tL(n)))return!1;const a=nL(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 eL(e,t,n,r){return!FC(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function tL(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 nL(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=P5(e,"(");let o=P5(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 FC(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Fa(n)||Zd(n))&&(!t||n!==47)}function IC(e){return e.label||!e.identifier?e.label||"":K2(e.identifier)}function rL(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s0?vn.createElement(f,s,c):vn.createElement(f,s)}function iO(e){let t=-1;for(;++tString(t)).join("")}const w5={}.hasOwnProperty,uO="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",W1={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function lf(e){for(const o in W1)if(w5.call(W1,o)&&w5.call(e,o)){const a=W1[o];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${o}\` (see <${uO}#${a.id}> for more info)`),delete W1[o]}const t=Fw().use(IP).use(e.remarkPlugins||e.plugins||[]).use(fM,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(IM,e),n=new F2;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=vn.createElement(vn.Fragment,{},vC({options:e,schema:Xu,listDepth:0},r));return e.className&&(i=vn.createElement("div",{className:e.className},i)),i}lf.defaultProps={transformLinkUri:hw};lf.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.object,ye.func]))])),rehypePlugins:ye.arrayOf(ye.oneOfType([ye.object,ye.func,ye.arrayOf(ye.oneOfType([ye.object,ye.func]))])),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 cO={tokenize:gO,partial:!0},TC={tokenize:EO,partial:!0},yC={tokenize:vO,partial:!0},_C={tokenize:TO,partial:!0},dO={tokenize:yO,partial:!0},CC={tokenize:pO,previous:AC},SC={tokenize:mO,previous:bC},to={tokenize:hO,previous:kC},Ci={},fO={text:Ci};let Jo=48;for(;Jo<123;)Ci[Jo]=to,Jo++,Jo===58?Jo=65:Jo===91&&(Jo=97);Ci[43]=to;Ci[45]=to;Ci[46]=to;Ci[95]=to;Ci[72]=[to,SC];Ci[104]=[to,SC];Ci[87]=[to,CC];Ci[119]=[to,CC];function hO(e,t,n){const r=this;let i,o;return a;function a(d){return!Sp(d)||!kC.call(r,r.previous)||ig(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return Sp(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(dO,c,u)(d):d===45||d===95||Gn(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&&Cn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function pO(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!AC.call(r,r.previous)||ig(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(cO,e.attempt(TC,e.attempt(yC,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function mO(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&bC.call(r,r.previous)&&!ig(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Cn(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||Ed(d)||at(d)||Ia(d)||Zd(d)?n(d):e.attempt(TC,e.attempt(yC,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function gO(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 EO(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(_C,l,s)(u):u===null||at(u)||Ia(u)||u!==45&&Zd(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 vO(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 _O={tokenize:xO,partial:!0};function CO(){return{document:{[91]:{tokenize:kO,continuation:{tokenize:FO},exit:IO}},text:{[91]:{tokenize:bO},[93]:{add:"after",tokenize:SO,resolveTo:AO}}}}function SO(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=Vr(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 AO(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 bO(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||at(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Vr(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return at(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 kO(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||at(h))return n(h);if(h===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=Vr(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return at(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),be(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function FO(e,t,n){return e.check(qu,t,e.attempt(_O,t,n))}function IO(e){e.exit("gfmFootnoteDefinition")}function xO(e,t,n){const r=this;return be(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 NO(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++,p);if(d<2&&!n)return l(h);const _=a.exit("strikethroughSequenceTemporary"),g=vd(h);return _._open=!g||g===2&&Boolean(v),_._close=!v||v===2&&Boolean(g),s(h)}}}class DO{constructor(){this.map=[]}add(t,n,r){wO(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 wO(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const Z=r.events[O][1].type;if(Z==="lineEnding"||Z==="linePrefix")O--;else break}const M=O>-1?r.events[O][1].type:null,Q=M==="tableHead"||M==="tableRow"?S:l;return Q===S&&r.parser.lazy[r.now().line]?n(x):Q(x)}function l(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(a=!0,o+=1),c(x)}function c(x){return x===null?n(x):ue(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):n(x):Xe(x)?be(e,c,"whitespace")(x):(o+=1,a&&(a=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(x)))}function d(x){return x===null||x===124||at(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?f:d)}function f(x){return x===92||x===124?(e.consume(x),d):d(x)}function p(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),a=!1,Xe(x)?be(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):h(x))}function h(x){return x===45||x===58?_(x):x===124?(a=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),v):k(x)}function v(x){return Xe(x)?be(e,_,"whitespace")(x):_(x)}function _(x){return x===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),g):x===45?(o+=1,g(x)):x===null||ue(x)?C(x):k(x)}function g(x){return x===45?(e.enter("tableDelimiterFiller"),T(x)):k(x)}function T(x){return x===45?(e.consume(x),T):x===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(x))}function y(x){return Xe(x)?be(e,C,"whitespace")(x):C(x)}function C(x){return x===124?h(x):x===null||ue(x)?!a||i!==o?k(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):k(x)}function k(x){return n(x)}function S(x){return e.enter("tableRow"),A(x)}function A(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),A):x===null||ue(x)?(e.exit("tableRow"),t(x)):Xe(x)?be(e,A,"whitespace")(x):(e.enter("data"),D(x))}function D(x){return x===null||x===124||at(x)?(e.exit("data"),A(x)):(e.consume(x),x===92?P:D)}function P(x){return x===92||x===124?(e.consume(x),D):D(x)}}function OO(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 DO;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({},Za(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function R5(e,t,n,r,i){const o=[],a=Za(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 Za(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const LO={tokenize:HO},BO={text:{[91]:LO}};function HO(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 at(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 ue(l)?t(l):Xe(l)?e.check({tokenize:UO},t,n)(l):n(l)}}function UO(e,t,n){return be(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function zO(e){return w2([fO,CO(),NO(e),PO,BO])}function P5(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 GO(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const KO={}.hasOwnProperty,WO=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=eg(i.ignore||[]),s=jO(o);let l=-1;for(;++l0?{type:"text",value:A}:void 0),A!==!1&&(_!==k&&y.push({type:"text",value:d.value.slice(_,k)}),Array.isArray(A)?y.push(...A):A&&y.push(A),_=k+C[0].length,T=!0),!h.global)break;C=h.exec(d.value)}return T?(_e}const Mh="phrasing",Oh=["autolink","link","image","label"],$O={transforms:[JO],enter:{literalAutolink:YO,literalAutolinkEmail:Lh,literalAutolinkHttp:Lh,literalAutolinkWww:Lh},exit:{literalAutolink:ZO,literalAutolinkEmail:XO,literalAutolinkHttp:qO,literalAutolinkWww:QO}},VO={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mh,notInConstruct:Oh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mh,notInConstruct:Oh},{character:":",before:"[ps]",after:"\\/",inConstruct:Mh,notInConstruct:Oh}]};function YO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Lh(e){this.config.enter.autolinkProtocol.call(this,e)}function qO(e){this.config.exit.autolinkProtocol.call(this,e)}function QO(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function XO(e){this.config.exit.autolinkEmail.call(this,e)}function ZO(e){this.exit(e)}function JO(e){WO(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,eL],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,tL]],{ignore:["link","linkReference"]})}function eL(e,t,n,r,i){let o="";if(!FC(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!nL(n)))return!1;const a=rL(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 tL(e,t,n,r){return!FC(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nL(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 rL(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=P5(e,"(");let o=P5(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 FC(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ia(n)||Zd(n))&&(!t||n!==47)}function IC(e){return e.label||!e.identifier?e.label||"":K2(e.identifier)}function iL(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 oL=/\r?\n|\r/g;function aL(e,t){const n=[];let r=0,i=0,o;for(;o=oL.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 xC(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 sL(e,t){return L5(e,t.inConstruct,!0)&&!L5(e,t.notInConstruct,!1)}function L5(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(aL(rL(e,n,i.current()),_L)),a(),o}function _L(e,t,n){return t===0?e:(n?"":" ")+e}function wC(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 CL=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];RC.peek=FL;const SL={canContainEols:["delete"],enter:{strikethrough:bL},exit:{strikethrough:kL}},AL={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:CL}],handlers:{delete:RC}};function bL(e){this.enter({type:"delete",children:[]},e)}function kL(e){this.exit(e)}function RC(e,t,n,r){const i=uf(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=wC(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function FL(){return"~"}PC.peek=IL;function PC(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);++_s[_])&&(s[_]=T)}h.push(g)}o[u]=h,a[u]=v}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cs[c]&&(s[c]=g),f[c]=g),d[c]=T}o.splice(1,0,d),a.splice(1,0,f),u=-1;const p=[];for(;++un==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function PL(e){this.exit(e),this.setData("inTable")}function ML(e){this.enter({type:"tableRow",children:[]},e)}function Bh(e){this.exit(e)}function U5(e){this.enter({type:"tableCell",children:[]},e)}function OL(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,LL));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function LL(e,t){return t==="|"?t:e}function BL(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`}const aL=/\r?\n|\r/g;function sL(e,t){const n=[];let r=0,i=0,o;for(;o=aL.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 xC(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 lL(e,t){return L5(e,t.inConstruct,!0)&&!L5(e,t.notInConstruct,!1)}function L5(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(sL(iL(e,n,i.current()),CL)),a(),o}function CL(e,t,n){return t===0?e:(n?"":" ")+e}function wC(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 SL=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];RC.peek=IL;const AL={canContainEols:["delete"],enter:{strikethrough:kL},exit:{strikethrough:FL}},bL={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:SL}],handlers:{delete:RC}};function kL(e){this.enter({type:"delete",children:[]},e)}function FL(e){this.exit(e)}function RC(e,t,n,r){const i=uf(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=wC(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function IL(){return"~"}PC.peek=xL;function PC(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);++_s[_])&&(s[_]=T)}h.push(g)}o[u]=h,a[u]=v}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cs[c]&&(s[c]=g),f[c]=g),d[c]=T}o.splice(1,0,d),a.splice(1,0,f),u=-1;const p=[];for(;++un==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function ML(e){this.exit(e),this.setData("inTable")}function OL(e){this.enter({type:"tableRow",children:[]},e)}function Bh(e){this.exit(e)}function U5(e){this.enter({type:"tableCell",children:[]},e)}function LL(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,BL));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function BL(e,t){return t==="|"?t:e}function HL(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(p,h,v,_){return u(c(p,v,_),p.align)}function s(p,h,v,_){const g=d(p,v,_),T=u([g]);return T.slice(0,T.indexOf(` -`))}function l(p,h,v,_){const g=v.enter("tableCell"),T=v.enter("phrasing"),y=wC(p,v,{..._,before:o,after:o});return T(),g(),y}function u(p,h){return xL(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(p,h,v){const _=p.children;let g=-1;const T=[],y=h.enter("table");for(;++g<_.length;)T[g]=d(_[g],h,v);return y(),T}function d(p,h,v){const _=p.children;let g=-1;const T=[],y=h.enter("tableRow");for(;++g<_.length;)T[g]=l(_[g],p,h,v);return y(),T}function f(p,h,v){let _=PC(p,h,v);return v.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function HL(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function UL(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function zL(e,t,n,r){const i=UL(n);let o=n.bulletCurrent||HL(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-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,p){return f?(p?"":" ".repeat(a))+d:(p?o:o+" ".repeat(a-o.length))+d}}const GL={exit:{taskListCheckValueChecked:z5,taskListCheckValueUnchecked:z5,paragraph:WL}},KL={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:jL}};function z5(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function WL(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};Zr.isSurrogatePair=function(e){return e>=56320&&e<=57343};Zr.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Zr.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Zr.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||YL.indexOf(e)>-1};var og={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 Za=Zr,Hh=og,Jo=Za.CODE_POINTS,qL=1<<16;let QL=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=qL}_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(Za.isSurrogatePair(n))return this.pos++,this._addGap(),Za.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Jo.EOF;return this._err(Hh.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,Jo.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Jo.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Jo.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Jo.LINE_FEED):(this.skipNextNewLine=!1,Za.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Jo.LINE_FEED||t===Jo.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Za.isControlCodePoint(t)?this._err(Hh.controlCharacterInInputStream):Za.isUndefinedCodePoint(t)&&this._err(Hh.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var XL=QL,ZL=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 JL=XL,He=Zr,pa=ZL,U=og,I=He.CODE_POINTS,ea=He.CODE_POINT_SEQUENCES,eB={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},OC=1<<0,LC=1<<1,BC=1<<2,tB=OC|LC|BC,ye="DATA_STATE",Ja="RCDATA_STATE",Rl="RAWTEXT_STATE",Pi="SCRIPT_DATA_STATE",HC="PLAINTEXT_STATE",G5="TAG_OPEN_STATE",K5="END_TAG_OPEN_STATE",Uh="TAG_NAME_STATE",W5="RCDATA_LESS_THAN_SIGN_STATE",j5="RCDATA_END_TAG_OPEN_STATE",$5="RCDATA_END_TAG_NAME_STATE",V5="RAWTEXT_LESS_THAN_SIGN_STATE",Y5="RAWTEXT_END_TAG_OPEN_STATE",q5="RAWTEXT_END_TAG_NAME_STATE",Q5="SCRIPT_DATA_LESS_THAN_SIGN_STATE",X5="SCRIPT_DATA_END_TAG_OPEN_STATE",Z5="SCRIPT_DATA_END_TAG_NAME_STATE",J5="SCRIPT_DATA_ESCAPE_START_STATE",ev="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Lr="SCRIPT_DATA_ESCAPED_STATE",tv="SCRIPT_DATA_ESCAPED_DASH_STATE",zh="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",$1="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",nv="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",rv="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",iv="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Fi="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ov="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",av="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",V1="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",sv="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",ii="BEFORE_ATTRIBUTE_NAME_STATE",Y1="ATTRIBUTE_NAME_STATE",Gh="AFTER_ATTRIBUTE_NAME_STATE",Kh="BEFORE_ATTRIBUTE_VALUE_STATE",q1="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Q1="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",X1="ATTRIBUTE_VALUE_UNQUOTED_STATE",Wh="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",lo="SELF_CLOSING_START_TAG_STATE",Tl="BOGUS_COMMENT_STATE",lv="MARKUP_DECLARATION_OPEN_STATE",uv="COMMENT_START_STATE",cv="COMMENT_START_DASH_STATE",uo="COMMENT_STATE",dv="COMMENT_LESS_THAN_SIGN_STATE",fv="COMMENT_LESS_THAN_SIGN_BANG_STATE",hv="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",pv="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Z1="COMMENT_END_DASH_STATE",J1="COMMENT_END_STATE",mv="COMMENT_END_BANG_STATE",gv="DOCTYPE_STATE",ec="BEFORE_DOCTYPE_NAME_STATE",tc="DOCTYPE_NAME_STATE",Ev="AFTER_DOCTYPE_NAME_STATE",vv="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Tv="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",jh="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",$h="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Vh="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",yv="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",_v="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Cv="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",yl="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",_l="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Yh="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ii="BOGUS_DOCTYPE_STATE",nc="CDATA_SECTION_STATE",Sv="CDATA_SECTION_BRACKET_STATE",Av="CDATA_SECTION_END_STATE",$a="CHARACTER_REFERENCE_STATE",bv="NAMED_CHARACTER_REFERENCE_STATE",kv="AMBIGUOS_AMPERSAND_STATE",Fv="NUMERIC_CHARACTER_REFERENCE_STATE",Iv="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",xv="DECIMAL_CHARACTER_REFERENCE_START_STATE",Nv="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Dv="DECIMAL_CHARACTER_REFERENCE_STATE",Cl="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Ze(e){return e===I.SPACE||e===I.LINE_FEED||e===I.TABULATION||e===I.FORM_FEED}function ql(e){return e>=I.DIGIT_0&&e<=I.DIGIT_9}function Br(e){return e>=I.LATIN_CAPITAL_A&&e<=I.LATIN_CAPITAL_Z}function ia(e){return e>=I.LATIN_SMALL_A&&e<=I.LATIN_SMALL_Z}function ho(e){return ia(e)||Br(e)}function qh(e){return ho(e)||ql(e)}function UC(e){return e>=I.LATIN_CAPITAL_A&&e<=I.LATIN_CAPITAL_F}function zC(e){return e>=I.LATIN_SMALL_A&&e<=I.LATIN_SMALL_F}function nB(e){return ql(e)||UC(e)||zC(e)}function Fc(e){return e+32}function gt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function co(e){return String.fromCharCode(Fc(e))}function wv(e,t){const n=pa[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=pa[o];if(at)i=o-1;else return pa[o+n]}return-1}let Dr=class Rn{constructor(){this.preprocessor=new JL,this.tokenQueue=[],this.allowCDATA=!1,this.state=ye,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:Rn.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===I.EOF){o=!1;break}if(u=t[s],l!==u&&(r||l!==Fc(u))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==ea.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(U.endTagWithAttributes),t.selfClosing&&this._err(U.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=Rn.CHARACTER_TOKEN;Ze(t)?n=Rn.WHITESPACE_CHARACTER_TOKEN:t===I.NULL&&(n=Rn.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,gt(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const o=pa[i],a=o")):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.state=Lr,this._emitChars(He.REPLACEMENT_CHARACTER)):t===I.EOF?(this._err(U.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Lr,this._emitCodePoint(t))}[$1](t){t===I.SOLIDUS?(this.tempBuff=[],this.state=nv):ho(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(iv)):(this._emitChars("<"),this._reconsumeInState(Lr))}[nv](t){ho(t)?(this._createEndTagToken(),this._reconsumeInState(rv)):(this._emitChars("")):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.state=Fi,this._emitChars(He.REPLACEMENT_CHARACTER)):t===I.EOF?(this._err(U.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Fi,this._emitCodePoint(t))}[V1](t){t===I.SOLIDUS?(this.tempBuff=[],this.state=sv,this._emitChars("/")):this._reconsumeInState(Fi)}[sv](t){Ze(t)||t===I.SOLIDUS||t===I.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Lr:Fi,this._emitCodePoint(t)):Br(t)?(this.tempBuff.push(Fc(t)),this._emitCodePoint(t)):ia(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Fi)}[ii](t){Ze(t)||(t===I.SOLIDUS||t===I.GREATER_THAN_SIGN||t===I.EOF?this._reconsumeInState(Gh):t===I.EQUALS_SIGN?(this._err(U.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Y1):(this._createAttr(""),this._reconsumeInState(Y1)))}[Y1](t){Ze(t)||t===I.SOLIDUS||t===I.GREATER_THAN_SIGN||t===I.EOF?(this._leaveAttrName(Gh),this._unconsume()):t===I.EQUALS_SIGN?this._leaveAttrName(Kh):Br(t)?this.currentAttr.name+=co(t):t===I.QUOTATION_MARK||t===I.APOSTROPHE||t===I.LESS_THAN_SIGN?(this._err(U.unexpectedCharacterInAttributeName),this.currentAttr.name+=gt(t)):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentAttr.name+=He.REPLACEMENT_CHARACTER):this.currentAttr.name+=gt(t)}[Gh](t){Ze(t)||(t===I.SOLIDUS?this.state=lo:t===I.EQUALS_SIGN?this.state=Kh:t===I.GREATER_THAN_SIGN?(this.state=ye,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Y1)))}[Kh](t){Ze(t)||(t===I.QUOTATION_MARK?this.state=q1:t===I.APOSTROPHE?this.state=Q1:t===I.GREATER_THAN_SIGN?(this._err(U.missingAttributeValue),this.state=ye,this._emitCurrentToken()):this._reconsumeInState(X1))}[q1](t){t===I.QUOTATION_MARK?this.state=Wh:t===I.AMPERSAND?(this.returnState=q1,this.state=$a):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentAttr.value+=He.REPLACEMENT_CHARACTER):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):this.currentAttr.value+=gt(t)}[Q1](t){t===I.APOSTROPHE?this.state=Wh:t===I.AMPERSAND?(this.returnState=Q1,this.state=$a):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentAttr.value+=He.REPLACEMENT_CHARACTER):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):this.currentAttr.value+=gt(t)}[X1](t){Ze(t)?this._leaveAttrValue(ii):t===I.AMPERSAND?(this.returnState=X1,this.state=$a):t===I.GREATER_THAN_SIGN?(this._leaveAttrValue(ye),this._emitCurrentToken()):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentAttr.value+=He.REPLACEMENT_CHARACTER):t===I.QUOTATION_MARK||t===I.APOSTROPHE||t===I.LESS_THAN_SIGN||t===I.EQUALS_SIGN||t===I.GRAVE_ACCENT?(this._err(U.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=gt(t)):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):this.currentAttr.value+=gt(t)}[Wh](t){Ze(t)?this._leaveAttrValue(ii):t===I.SOLIDUS?this._leaveAttrValue(lo):t===I.GREATER_THAN_SIGN?(this._leaveAttrValue(ye),this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):(this._err(U.missingWhitespaceBetweenAttributes),this._reconsumeInState(ii))}[lo](t){t===I.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=ye,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):(this._err(U.unexpectedSolidusInTag),this._reconsumeInState(ii))}[Tl](t){t===I.GREATER_THAN_SIGN?(this.state=ye,this._emitCurrentToken()):t===I.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.data+=He.REPLACEMENT_CHARACTER):this.currentToken.data+=gt(t)}[lv](t){this._consumeSequenceIfMatch(ea.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=uv):this._consumeSequenceIfMatch(ea.DOCTYPE_STRING,t,!1)?this.state=gv:this._consumeSequenceIfMatch(ea.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=nc:(this._err(U.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Tl):this._ensureHibernation()||(this._err(U.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Tl))}[uv](t){t===I.HYPHEN_MINUS?this.state=cv:t===I.GREATER_THAN_SIGN?(this._err(U.abruptClosingOfEmptyComment),this.state=ye,this._emitCurrentToken()):this._reconsumeInState(uo)}[cv](t){t===I.HYPHEN_MINUS?this.state=J1:t===I.GREATER_THAN_SIGN?(this._err(U.abruptClosingOfEmptyComment),this.state=ye,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(uo))}[uo](t){t===I.HYPHEN_MINUS?this.state=Z1:t===I.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=dv):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.data+=He.REPLACEMENT_CHARACTER):t===I.EOF?(this._err(U.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=gt(t)}[dv](t){t===I.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=fv):t===I.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(uo)}[fv](t){t===I.HYPHEN_MINUS?this.state=hv:this._reconsumeInState(uo)}[hv](t){t===I.HYPHEN_MINUS?this.state=pv:this._reconsumeInState(Z1)}[pv](t){t!==I.GREATER_THAN_SIGN&&t!==I.EOF&&this._err(U.nestedComment),this._reconsumeInState(J1)}[Z1](t){t===I.HYPHEN_MINUS?this.state=J1:t===I.EOF?(this._err(U.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(uo))}[J1](t){t===I.GREATER_THAN_SIGN?(this.state=ye,this._emitCurrentToken()):t===I.EXCLAMATION_MARK?this.state=mv:t===I.HYPHEN_MINUS?this.currentToken.data+="-":t===I.EOF?(this._err(U.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(uo))}[mv](t){t===I.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Z1):t===I.GREATER_THAN_SIGN?(this._err(U.incorrectlyClosedComment),this.state=ye,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(uo))}[gv](t){Ze(t)?this.state=ec:t===I.GREATER_THAN_SIGN?this._reconsumeInState(ec):t===I.EOF?(this._err(U.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ec))}[ec](t){Ze(t)||(Br(t)?(this._createDoctypeToken(co(t)),this.state=tc):t===I.NULL?(this._err(U.unexpectedNullCharacter),this._createDoctypeToken(He.REPLACEMENT_CHARACTER),this.state=tc):t===I.GREATER_THAN_SIGN?(this._err(U.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ye):t===I.EOF?(this._err(U.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(gt(t)),this.state=tc))}[tc](t){Ze(t)?this.state=Ev:t===I.GREATER_THAN_SIGN?(this.state=ye,this._emitCurrentToken()):Br(t)?this.currentToken.name+=co(t):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.name+=He.REPLACEMENT_CHARACTER):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=gt(t)}[Ev](t){Ze(t)||(t===I.GREATER_THAN_SIGN?(this.state=ye,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(ea.PUBLIC_STRING,t,!1)?this.state=vv:this._consumeSequenceIfMatch(ea.SYSTEM_STRING,t,!1)?this.state=_v:this._ensureHibernation()||(this._err(U.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ii)))}[vv](t){Ze(t)?this.state=Tv:t===I.QUOTATION_MARK?(this._err(U.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=jh):t===I.APOSTROPHE?(this._err(U.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=$h):t===I.GREATER_THAN_SIGN?(this._err(U.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ye,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ii))}[Tv](t){Ze(t)||(t===I.QUOTATION_MARK?(this.currentToken.publicId="",this.state=jh):t===I.APOSTROPHE?(this.currentToken.publicId="",this.state=$h):t===I.GREATER_THAN_SIGN?(this._err(U.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ye,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ii)))}[jh](t){t===I.QUOTATION_MARK?this.state=Vh:t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.publicId+=He.REPLACEMENT_CHARACTER):t===I.GREATER_THAN_SIGN?(this._err(U.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ye):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=gt(t)}[$h](t){t===I.APOSTROPHE?this.state=Vh:t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.publicId+=He.REPLACEMENT_CHARACTER):t===I.GREATER_THAN_SIGN?(this._err(U.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ye):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=gt(t)}[Vh](t){Ze(t)?this.state=yv:t===I.GREATER_THAN_SIGN?(this.state=ye,this._emitCurrentToken()):t===I.QUOTATION_MARK?(this._err(U.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=yl):t===I.APOSTROPHE?(this._err(U.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=_l):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ii))}[yv](t){Ze(t)||(t===I.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ye):t===I.QUOTATION_MARK?(this.currentToken.systemId="",this.state=yl):t===I.APOSTROPHE?(this.currentToken.systemId="",this.state=_l):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ii)))}[_v](t){Ze(t)?this.state=Cv:t===I.QUOTATION_MARK?(this._err(U.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=yl):t===I.APOSTROPHE?(this._err(U.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=_l):t===I.GREATER_THAN_SIGN?(this._err(U.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ye,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ii))}[Cv](t){Ze(t)||(t===I.QUOTATION_MARK?(this.currentToken.systemId="",this.state=yl):t===I.APOSTROPHE?(this.currentToken.systemId="",this.state=_l):t===I.GREATER_THAN_SIGN?(this._err(U.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ye,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ii)))}[yl](t){t===I.QUOTATION_MARK?this.state=Yh:t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.systemId+=He.REPLACEMENT_CHARACTER):t===I.GREATER_THAN_SIGN?(this._err(U.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ye):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=gt(t)}[_l](t){t===I.APOSTROPHE?this.state=Yh:t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.systemId+=He.REPLACEMENT_CHARACTER):t===I.GREATER_THAN_SIGN?(this._err(U.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ye):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=gt(t)}[Yh](t){Ze(t)||(t===I.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ye):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ii)))}[Ii](t){t===I.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ye):t===I.NULL?this._err(U.unexpectedNullCharacter):t===I.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[nc](t){t===I.RIGHT_SQUARE_BRACKET?this.state=Sv:t===I.EOF?(this._err(U.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Sv](t){t===I.RIGHT_SQUARE_BRACKET?this.state=Av:(this._emitChars("]"),this._reconsumeInState(nc))}[Av](t){t===I.GREATER_THAN_SIGN?this.state=ye:t===I.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(nc))}[$a](t){this.tempBuff=[I.AMPERSAND],t===I.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Fv):qh(t)?this._reconsumeInState(bv):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[bv](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[I.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===I.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(U.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=kv}[kv](t){qh(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=gt(t):this._emitCodePoint(t):(t===I.SEMICOLON&&this._err(U.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Fv](t){this.charRefCode=0,t===I.LATIN_SMALL_X||t===I.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=Iv):this._reconsumeInState(xv)}[Iv](t){nB(t)?this._reconsumeInState(Nv):(this._err(U.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[xv](t){ql(t)?this._reconsumeInState(Dv):(this._err(U.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Nv](t){UC(t)?this.charRefCode=this.charRefCode*16+t-55:zC(t)?this.charRefCode=this.charRefCode*16+t-87:ql(t)?this.charRefCode=this.charRefCode*16+t-48:t===I.SEMICOLON?this.state=Cl:(this._err(U.missingSemicolonAfterCharacterReference),this._reconsumeInState(Cl))}[Dv](t){ql(t)?this.charRefCode=this.charRefCode*10+t-48:t===I.SEMICOLON?this.state=Cl:(this._err(U.missingSemicolonAfterCharacterReference),this._reconsumeInState(Cl))}[Cl](){if(this.charRefCode===I.NULL)this._err(U.nullCharacterReference),this.charRefCode=I.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(U.characterReferenceOutsideUnicodeRange),this.charRefCode=I.REPLACEMENT_CHARACTER;else if(He.isSurrogate(this.charRefCode))this._err(U.surrogateCharacterReference),this.charRefCode=I.REPLACEMENT_CHARACTER;else if(He.isUndefinedCodePoint(this.charRefCode))this._err(U.noncharacterCharacterReference);else if(He.isControlCodePoint(this.charRefCode)||this.charRefCode===I.CARRIAGE_RETURN){this._err(U.controlCharacterReference);const t=eB[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Dr.CHARACTER_TOKEN="CHARACTER_TOKEN";Dr.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Dr.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Dr.START_TAG_TOKEN="START_TAG_TOKEN";Dr.END_TAG_TOKEN="END_TAG_TOKEN";Dr.COMMENT_TOKEN="COMMENT_TOKEN";Dr.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Dr.EOF_TOKEN="EOF_TOKEN";Dr.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Dr.MODE={DATA:ye,RCDATA:Ja,RAWTEXT:Rl,SCRIPT_DATA:Pi,PLAINTEXT:HC};Dr.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 cf=Dr,Jr={};const Qh=Jr.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/"};Jr.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Jr.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const V=Jr.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"};Jr.SPECIAL_ELEMENTS={[Qh.HTML]:{[V.ADDRESS]:!0,[V.APPLET]:!0,[V.AREA]:!0,[V.ARTICLE]:!0,[V.ASIDE]:!0,[V.BASE]:!0,[V.BASEFONT]:!0,[V.BGSOUND]:!0,[V.BLOCKQUOTE]:!0,[V.BODY]:!0,[V.BR]:!0,[V.BUTTON]:!0,[V.CAPTION]:!0,[V.CENTER]:!0,[V.COL]:!0,[V.COLGROUP]:!0,[V.DD]:!0,[V.DETAILS]:!0,[V.DIR]:!0,[V.DIV]:!0,[V.DL]:!0,[V.DT]:!0,[V.EMBED]:!0,[V.FIELDSET]:!0,[V.FIGCAPTION]:!0,[V.FIGURE]:!0,[V.FOOTER]:!0,[V.FORM]:!0,[V.FRAME]:!0,[V.FRAMESET]:!0,[V.H1]:!0,[V.H2]:!0,[V.H3]:!0,[V.H4]:!0,[V.H5]:!0,[V.H6]:!0,[V.HEAD]:!0,[V.HEADER]:!0,[V.HGROUP]:!0,[V.HR]:!0,[V.HTML]:!0,[V.IFRAME]:!0,[V.IMG]:!0,[V.INPUT]:!0,[V.LI]:!0,[V.LINK]:!0,[V.LISTING]:!0,[V.MAIN]:!0,[V.MARQUEE]:!0,[V.MENU]:!0,[V.META]:!0,[V.NAV]:!0,[V.NOEMBED]:!0,[V.NOFRAMES]:!0,[V.NOSCRIPT]:!0,[V.OBJECT]:!0,[V.OL]:!0,[V.P]:!0,[V.PARAM]:!0,[V.PLAINTEXT]:!0,[V.PRE]:!0,[V.SCRIPT]:!0,[V.SECTION]:!0,[V.SELECT]:!0,[V.SOURCE]:!0,[V.STYLE]:!0,[V.SUMMARY]:!0,[V.TABLE]:!0,[V.TBODY]:!0,[V.TD]:!0,[V.TEMPLATE]:!0,[V.TEXTAREA]:!0,[V.TFOOT]:!0,[V.TH]:!0,[V.THEAD]:!0,[V.TITLE]:!0,[V.TR]:!0,[V.TRACK]:!0,[V.UL]:!0,[V.WBR]:!0,[V.XMP]:!0},[Qh.MATHML]:{[V.MI]:!0,[V.MO]:!0,[V.MN]:!0,[V.MS]:!0,[V.MTEXT]:!0,[V.ANNOTATION_XML]:!0},[Qh.SVG]:{[V.TITLE]:!0,[V.FOREIGN_OBJECT]:!0,[V.DESC]:!0}};const GC=Jr,Q=GC.TAG_NAMES,Ue=GC.NAMESPACES;function Rv(e){switch(e.length){case 1:return e===Q.P;case 2:return e===Q.RB||e===Q.RP||e===Q.RT||e===Q.DD||e===Q.DT||e===Q.LI;case 3:return e===Q.RTC;case 6:return e===Q.OPTION;case 8:return e===Q.OPTGROUP}return!1}function rB(e){switch(e.length){case 1:return e===Q.P;case 2:return e===Q.RB||e===Q.RP||e===Q.RT||e===Q.DD||e===Q.DT||e===Q.LI||e===Q.TD||e===Q.TH||e===Q.TR;case 3:return e===Q.RTC;case 5:return e===Q.TBODY||e===Q.TFOOT||e===Q.THEAD;case 6:return e===Q.OPTION;case 7:return e===Q.CAPTION;case 8:return e===Q.OPTGROUP||e===Q.COLGROUP}return!1}function rc(e,t){switch(e.length){case 2:if(e===Q.TD||e===Q.TH)return t===Ue.HTML;if(e===Q.MI||e===Q.MO||e===Q.MN||e===Q.MS)return t===Ue.MATHML;break;case 4:if(e===Q.HTML)return t===Ue.HTML;if(e===Q.DESC)return t===Ue.SVG;break;case 5:if(e===Q.TABLE)return t===Ue.HTML;if(e===Q.MTEXT)return t===Ue.MATHML;if(e===Q.TITLE)return t===Ue.SVG;break;case 6:return(e===Q.APPLET||e===Q.OBJECT)&&t===Ue.HTML;case 7:return(e===Q.CAPTION||e===Q.MARQUEE)&&t===Ue.HTML;case 8:return e===Q.TEMPLATE&&t===Ue.HTML;case 13:return e===Q.FOREIGN_OBJECT&&t===Ue.SVG;case 14:return e===Q.ANNOTATION_XML&&t===Ue.MATHML}return!1}let iB=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===Q.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ue.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===Ue.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===Q.H1||t===Q.H2||t===Q.H3||t===Q.H4||t===Q.H5||t===Q.H6&&n===Ue.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===Q.TD||t===Q.TH&&n===Ue.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Q.TABLE&&this.currentTagName!==Q.TEMPLATE&&this.currentTagName!==Q.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Ue.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Q.TBODY&&this.currentTagName!==Q.TFOOT&&this.currentTagName!==Q.THEAD&&this.currentTagName!==Q.TEMPLATE&&this.currentTagName!==Q.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Ue.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Q.TR&&this.currentTagName!==Q.TEMPLATE&&this.currentTagName!==Q.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Ue.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)===Q.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===Q.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===Ue.HTML)return!0;if(rc(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===Q.H1||n===Q.H2||n===Q.H3||n===Q.H4||n===Q.H5||n===Q.H6)&&r===Ue.HTML)return!0;if(rc(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===Ue.HTML)return!0;if((r===Q.UL||r===Q.OL)&&i===Ue.HTML||rc(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===Ue.HTML)return!0;if(r===Q.BUTTON&&i===Ue.HTML||rc(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])===Ue.HTML){if(r===t)return!0;if(r===Q.TABLE||r===Q.TEMPLATE||r===Q.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])===Ue.HTML){if(n===Q.TBODY||n===Q.THEAD||n===Q.TFOOT)return!0;if(n===Q.TABLE||n===Q.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])===Ue.HTML){if(r===t)return!0;if(r!==Q.OPTION&&r!==Q.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Rv(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;rB(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Rv(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var oB=iB;const ic=3;let ag=class po{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=ic){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===po.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=ic-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:po.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:po.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:po.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===po.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===po.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===po.ELEMENT_ENTRY&&r.element===t)return r}return null}};ag.MARKER_ENTRY="MARKER_ENTRY";ag.ELEMENT_ENTRY="ELEMENT_ENTRY";var aB=ag;let KC=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")}};KC.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i-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,p){return f?(p?"":" ".repeat(a))+d:(p?o:o+" ".repeat(a-o.length))+d}}const KL={exit:{taskListCheckValueChecked:z5,taskListCheckValueUnchecked:z5,paragraph:jL}},WL={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$L}};function z5(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function jL(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};Xr.isSurrogatePair=function(e){return e>=56320&&e<=57343};Xr.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Xr.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Xr.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||qL.indexOf(e)>-1};var og={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 Ja=Xr,Hh=og,ea=Ja.CODE_POINTS,QL=1<<16;let XL=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=QL}_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(Ja.isSurrogatePair(n))return this.pos++,this._addGap(),Ja.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ea.EOF;return this._err(Hh.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,ea.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===ea.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===ea.CARRIAGE_RETURN?(this.skipNextNewLine=!0,ea.LINE_FEED):(this.skipNextNewLine=!1,Ja.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===ea.LINE_FEED||t===ea.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ja.isControlCodePoint(t)?this._err(Hh.controlCharacterInInputStream):Ja.isUndefinedCodePoint(t)&&this._err(Hh.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var ZL=XL,JL=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 eB=ZL,Be=Xr,ma=JL,U=og,I=Be.CODE_POINTS,ta=Be.CODE_POINT_SEQUENCES,tB={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},OC=1<<0,LC=1<<1,BC=1<<2,nB=OC|LC|BC,Ce="DATA_STATE",es="RCDATA_STATE",Rl="RAWTEXT_STATE",Mi="SCRIPT_DATA_STATE",HC="PLAINTEXT_STATE",G5="TAG_OPEN_STATE",K5="END_TAG_OPEN_STATE",Uh="TAG_NAME_STATE",W5="RCDATA_LESS_THAN_SIGN_STATE",j5="RCDATA_END_TAG_OPEN_STATE",$5="RCDATA_END_TAG_NAME_STATE",V5="RAWTEXT_LESS_THAN_SIGN_STATE",Y5="RAWTEXT_END_TAG_OPEN_STATE",q5="RAWTEXT_END_TAG_NAME_STATE",Q5="SCRIPT_DATA_LESS_THAN_SIGN_STATE",X5="SCRIPT_DATA_END_TAG_OPEN_STATE",Z5="SCRIPT_DATA_END_TAG_NAME_STATE",J5="SCRIPT_DATA_ESCAPE_START_STATE",ev="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Or="SCRIPT_DATA_ESCAPED_STATE",tv="SCRIPT_DATA_ESCAPED_DASH_STATE",zh="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",$1="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",nv="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",rv="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",iv="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Ii="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ov="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",av="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",V1="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",sv="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",ii="BEFORE_ATTRIBUTE_NAME_STATE",Y1="ATTRIBUTE_NAME_STATE",Gh="AFTER_ATTRIBUTE_NAME_STATE",Kh="BEFORE_ATTRIBUTE_VALUE_STATE",q1="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Q1="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",X1="ATTRIBUTE_VALUE_UNQUOTED_STATE",Wh="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",uo="SELF_CLOSING_START_TAG_STATE",Tl="BOGUS_COMMENT_STATE",lv="MARKUP_DECLARATION_OPEN_STATE",uv="COMMENT_START_STATE",cv="COMMENT_START_DASH_STATE",co="COMMENT_STATE",dv="COMMENT_LESS_THAN_SIGN_STATE",fv="COMMENT_LESS_THAN_SIGN_BANG_STATE",hv="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",pv="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Z1="COMMENT_END_DASH_STATE",J1="COMMENT_END_STATE",mv="COMMENT_END_BANG_STATE",gv="DOCTYPE_STATE",ec="BEFORE_DOCTYPE_NAME_STATE",tc="DOCTYPE_NAME_STATE",Ev="AFTER_DOCTYPE_NAME_STATE",vv="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Tv="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",jh="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",$h="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Vh="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",yv="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",_v="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Cv="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",yl="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",_l="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Yh="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",xi="BOGUS_DOCTYPE_STATE",nc="CDATA_SECTION_STATE",Sv="CDATA_SECTION_BRACKET_STATE",Av="CDATA_SECTION_END_STATE",Va="CHARACTER_REFERENCE_STATE",bv="NAMED_CHARACTER_REFERENCE_STATE",kv="AMBIGUOS_AMPERSAND_STATE",Fv="NUMERIC_CHARACTER_REFERENCE_STATE",Iv="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",xv="DECIMAL_CHARACTER_REFERENCE_START_STATE",Nv="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Dv="DECIMAL_CHARACTER_REFERENCE_STATE",Cl="NUMERIC_CHARACTER_REFERENCE_END_STATE";function et(e){return e===I.SPACE||e===I.LINE_FEED||e===I.TABULATION||e===I.FORM_FEED}function ql(e){return e>=I.DIGIT_0&&e<=I.DIGIT_9}function Lr(e){return e>=I.LATIN_CAPITAL_A&&e<=I.LATIN_CAPITAL_Z}function oa(e){return e>=I.LATIN_SMALL_A&&e<=I.LATIN_SMALL_Z}function po(e){return oa(e)||Lr(e)}function qh(e){return po(e)||ql(e)}function UC(e){return e>=I.LATIN_CAPITAL_A&&e<=I.LATIN_CAPITAL_F}function zC(e){return e>=I.LATIN_SMALL_A&&e<=I.LATIN_SMALL_F}function rB(e){return ql(e)||UC(e)||zC(e)}function Fc(e){return e+32}function vt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function fo(e){return String.fromCharCode(Fc(e))}function wv(e,t){const n=ma[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=ma[o];if(at)i=o-1;else return ma[o+n]}return-1}let Nr=class Rn{constructor(){this.preprocessor=new eB,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ce,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:Rn.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===I.EOF){o=!1;break}if(u=t[s],l!==u&&(r||l!==Fc(u))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==ta.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(U.endTagWithAttributes),t.selfClosing&&this._err(U.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=Rn.CHARACTER_TOKEN;et(t)?n=Rn.WHITESPACE_CHARACTER_TOKEN:t===I.NULL&&(n=Rn.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,vt(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const o=ma[i],a=o")):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.state=Or,this._emitChars(Be.REPLACEMENT_CHARACTER)):t===I.EOF?(this._err(U.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Or,this._emitCodePoint(t))}[$1](t){t===I.SOLIDUS?(this.tempBuff=[],this.state=nv):po(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(iv)):(this._emitChars("<"),this._reconsumeInState(Or))}[nv](t){po(t)?(this._createEndTagToken(),this._reconsumeInState(rv)):(this._emitChars("")):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.state=Ii,this._emitChars(Be.REPLACEMENT_CHARACTER)):t===I.EOF?(this._err(U.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ii,this._emitCodePoint(t))}[V1](t){t===I.SOLIDUS?(this.tempBuff=[],this.state=sv,this._emitChars("/")):this._reconsumeInState(Ii)}[sv](t){et(t)||t===I.SOLIDUS||t===I.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Or:Ii,this._emitCodePoint(t)):Lr(t)?(this.tempBuff.push(Fc(t)),this._emitCodePoint(t)):oa(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Ii)}[ii](t){et(t)||(t===I.SOLIDUS||t===I.GREATER_THAN_SIGN||t===I.EOF?this._reconsumeInState(Gh):t===I.EQUALS_SIGN?(this._err(U.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Y1):(this._createAttr(""),this._reconsumeInState(Y1)))}[Y1](t){et(t)||t===I.SOLIDUS||t===I.GREATER_THAN_SIGN||t===I.EOF?(this._leaveAttrName(Gh),this._unconsume()):t===I.EQUALS_SIGN?this._leaveAttrName(Kh):Lr(t)?this.currentAttr.name+=fo(t):t===I.QUOTATION_MARK||t===I.APOSTROPHE||t===I.LESS_THAN_SIGN?(this._err(U.unexpectedCharacterInAttributeName),this.currentAttr.name+=vt(t)):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentAttr.name+=Be.REPLACEMENT_CHARACTER):this.currentAttr.name+=vt(t)}[Gh](t){et(t)||(t===I.SOLIDUS?this.state=uo:t===I.EQUALS_SIGN?this.state=Kh:t===I.GREATER_THAN_SIGN?(this.state=Ce,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Y1)))}[Kh](t){et(t)||(t===I.QUOTATION_MARK?this.state=q1:t===I.APOSTROPHE?this.state=Q1:t===I.GREATER_THAN_SIGN?(this._err(U.missingAttributeValue),this.state=Ce,this._emitCurrentToken()):this._reconsumeInState(X1))}[q1](t){t===I.QUOTATION_MARK?this.state=Wh:t===I.AMPERSAND?(this.returnState=q1,this.state=Va):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentAttr.value+=Be.REPLACEMENT_CHARACTER):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):this.currentAttr.value+=vt(t)}[Q1](t){t===I.APOSTROPHE?this.state=Wh:t===I.AMPERSAND?(this.returnState=Q1,this.state=Va):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentAttr.value+=Be.REPLACEMENT_CHARACTER):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):this.currentAttr.value+=vt(t)}[X1](t){et(t)?this._leaveAttrValue(ii):t===I.AMPERSAND?(this.returnState=X1,this.state=Va):t===I.GREATER_THAN_SIGN?(this._leaveAttrValue(Ce),this._emitCurrentToken()):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentAttr.value+=Be.REPLACEMENT_CHARACTER):t===I.QUOTATION_MARK||t===I.APOSTROPHE||t===I.LESS_THAN_SIGN||t===I.EQUALS_SIGN||t===I.GRAVE_ACCENT?(this._err(U.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=vt(t)):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):this.currentAttr.value+=vt(t)}[Wh](t){et(t)?this._leaveAttrValue(ii):t===I.SOLIDUS?this._leaveAttrValue(uo):t===I.GREATER_THAN_SIGN?(this._leaveAttrValue(Ce),this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):(this._err(U.missingWhitespaceBetweenAttributes),this._reconsumeInState(ii))}[uo](t){t===I.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ce,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInTag),this._emitEOFToken()):(this._err(U.unexpectedSolidusInTag),this._reconsumeInState(ii))}[Tl](t){t===I.GREATER_THAN_SIGN?(this.state=Ce,this._emitCurrentToken()):t===I.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.data+=Be.REPLACEMENT_CHARACTER):this.currentToken.data+=vt(t)}[lv](t){this._consumeSequenceIfMatch(ta.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=uv):this._consumeSequenceIfMatch(ta.DOCTYPE_STRING,t,!1)?this.state=gv:this._consumeSequenceIfMatch(ta.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=nc:(this._err(U.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Tl):this._ensureHibernation()||(this._err(U.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Tl))}[uv](t){t===I.HYPHEN_MINUS?this.state=cv:t===I.GREATER_THAN_SIGN?(this._err(U.abruptClosingOfEmptyComment),this.state=Ce,this._emitCurrentToken()):this._reconsumeInState(co)}[cv](t){t===I.HYPHEN_MINUS?this.state=J1:t===I.GREATER_THAN_SIGN?(this._err(U.abruptClosingOfEmptyComment),this.state=Ce,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(co))}[co](t){t===I.HYPHEN_MINUS?this.state=Z1:t===I.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=dv):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.data+=Be.REPLACEMENT_CHARACTER):t===I.EOF?(this._err(U.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=vt(t)}[dv](t){t===I.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=fv):t===I.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(co)}[fv](t){t===I.HYPHEN_MINUS?this.state=hv:this._reconsumeInState(co)}[hv](t){t===I.HYPHEN_MINUS?this.state=pv:this._reconsumeInState(Z1)}[pv](t){t!==I.GREATER_THAN_SIGN&&t!==I.EOF&&this._err(U.nestedComment),this._reconsumeInState(J1)}[Z1](t){t===I.HYPHEN_MINUS?this.state=J1:t===I.EOF?(this._err(U.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(co))}[J1](t){t===I.GREATER_THAN_SIGN?(this.state=Ce,this._emitCurrentToken()):t===I.EXCLAMATION_MARK?this.state=mv:t===I.HYPHEN_MINUS?this.currentToken.data+="-":t===I.EOF?(this._err(U.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(co))}[mv](t){t===I.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Z1):t===I.GREATER_THAN_SIGN?(this._err(U.incorrectlyClosedComment),this.state=Ce,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(co))}[gv](t){et(t)?this.state=ec:t===I.GREATER_THAN_SIGN?this._reconsumeInState(ec):t===I.EOF?(this._err(U.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ec))}[ec](t){et(t)||(Lr(t)?(this._createDoctypeToken(fo(t)),this.state=tc):t===I.NULL?(this._err(U.unexpectedNullCharacter),this._createDoctypeToken(Be.REPLACEMENT_CHARACTER),this.state=tc):t===I.GREATER_THAN_SIGN?(this._err(U.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ce):t===I.EOF?(this._err(U.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(vt(t)),this.state=tc))}[tc](t){et(t)?this.state=Ev:t===I.GREATER_THAN_SIGN?(this.state=Ce,this._emitCurrentToken()):Lr(t)?this.currentToken.name+=fo(t):t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.name+=Be.REPLACEMENT_CHARACTER):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=vt(t)}[Ev](t){et(t)||(t===I.GREATER_THAN_SIGN?(this.state=Ce,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(ta.PUBLIC_STRING,t,!1)?this.state=vv:this._consumeSequenceIfMatch(ta.SYSTEM_STRING,t,!1)?this.state=_v:this._ensureHibernation()||(this._err(U.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(xi)))}[vv](t){et(t)?this.state=Tv:t===I.QUOTATION_MARK?(this._err(U.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=jh):t===I.APOSTROPHE?(this._err(U.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=$h):t===I.GREATER_THAN_SIGN?(this._err(U.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ce,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xi))}[Tv](t){et(t)||(t===I.QUOTATION_MARK?(this.currentToken.publicId="",this.state=jh):t===I.APOSTROPHE?(this.currentToken.publicId="",this.state=$h):t===I.GREATER_THAN_SIGN?(this._err(U.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ce,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xi)))}[jh](t){t===I.QUOTATION_MARK?this.state=Vh:t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.publicId+=Be.REPLACEMENT_CHARACTER):t===I.GREATER_THAN_SIGN?(this._err(U.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ce):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=vt(t)}[$h](t){t===I.APOSTROPHE?this.state=Vh:t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.publicId+=Be.REPLACEMENT_CHARACTER):t===I.GREATER_THAN_SIGN?(this._err(U.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ce):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=vt(t)}[Vh](t){et(t)?this.state=yv:t===I.GREATER_THAN_SIGN?(this.state=Ce,this._emitCurrentToken()):t===I.QUOTATION_MARK?(this._err(U.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=yl):t===I.APOSTROPHE?(this._err(U.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=_l):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xi))}[yv](t){et(t)||(t===I.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ce):t===I.QUOTATION_MARK?(this.currentToken.systemId="",this.state=yl):t===I.APOSTROPHE?(this.currentToken.systemId="",this.state=_l):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xi)))}[_v](t){et(t)?this.state=Cv:t===I.QUOTATION_MARK?(this._err(U.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=yl):t===I.APOSTROPHE?(this._err(U.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=_l):t===I.GREATER_THAN_SIGN?(this._err(U.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ce,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xi))}[Cv](t){et(t)||(t===I.QUOTATION_MARK?(this.currentToken.systemId="",this.state=yl):t===I.APOSTROPHE?(this.currentToken.systemId="",this.state=_l):t===I.GREATER_THAN_SIGN?(this._err(U.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ce,this._emitCurrentToken()):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xi)))}[yl](t){t===I.QUOTATION_MARK?this.state=Yh:t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.systemId+=Be.REPLACEMENT_CHARACTER):t===I.GREATER_THAN_SIGN?(this._err(U.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ce):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=vt(t)}[_l](t){t===I.APOSTROPHE?this.state=Yh:t===I.NULL?(this._err(U.unexpectedNullCharacter),this.currentToken.systemId+=Be.REPLACEMENT_CHARACTER):t===I.GREATER_THAN_SIGN?(this._err(U.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ce):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=vt(t)}[Yh](t){et(t)||(t===I.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ce):t===I.EOF?(this._err(U.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(U.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(xi)))}[xi](t){t===I.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ce):t===I.NULL?this._err(U.unexpectedNullCharacter):t===I.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[nc](t){t===I.RIGHT_SQUARE_BRACKET?this.state=Sv:t===I.EOF?(this._err(U.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Sv](t){t===I.RIGHT_SQUARE_BRACKET?this.state=Av:(this._emitChars("]"),this._reconsumeInState(nc))}[Av](t){t===I.GREATER_THAN_SIGN?this.state=Ce:t===I.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(nc))}[Va](t){this.tempBuff=[I.AMPERSAND],t===I.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Fv):qh(t)?this._reconsumeInState(bv):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[bv](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[I.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===I.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(U.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=kv}[kv](t){qh(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=vt(t):this._emitCodePoint(t):(t===I.SEMICOLON&&this._err(U.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Fv](t){this.charRefCode=0,t===I.LATIN_SMALL_X||t===I.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=Iv):this._reconsumeInState(xv)}[Iv](t){rB(t)?this._reconsumeInState(Nv):(this._err(U.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[xv](t){ql(t)?this._reconsumeInState(Dv):(this._err(U.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Nv](t){UC(t)?this.charRefCode=this.charRefCode*16+t-55:zC(t)?this.charRefCode=this.charRefCode*16+t-87:ql(t)?this.charRefCode=this.charRefCode*16+t-48:t===I.SEMICOLON?this.state=Cl:(this._err(U.missingSemicolonAfterCharacterReference),this._reconsumeInState(Cl))}[Dv](t){ql(t)?this.charRefCode=this.charRefCode*10+t-48:t===I.SEMICOLON?this.state=Cl:(this._err(U.missingSemicolonAfterCharacterReference),this._reconsumeInState(Cl))}[Cl](){if(this.charRefCode===I.NULL)this._err(U.nullCharacterReference),this.charRefCode=I.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(U.characterReferenceOutsideUnicodeRange),this.charRefCode=I.REPLACEMENT_CHARACTER;else if(Be.isSurrogate(this.charRefCode))this._err(U.surrogateCharacterReference),this.charRefCode=I.REPLACEMENT_CHARACTER;else if(Be.isUndefinedCodePoint(this.charRefCode))this._err(U.noncharacterCharacterReference);else if(Be.isControlCodePoint(this.charRefCode)||this.charRefCode===I.CARRIAGE_RETURN){this._err(U.controlCharacterReference);const t=tB[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Nr.CHARACTER_TOKEN="CHARACTER_TOKEN";Nr.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Nr.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Nr.START_TAG_TOKEN="START_TAG_TOKEN";Nr.END_TAG_TOKEN="END_TAG_TOKEN";Nr.COMMENT_TOKEN="COMMENT_TOKEN";Nr.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Nr.EOF_TOKEN="EOF_TOKEN";Nr.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Nr.MODE={DATA:Ce,RCDATA:es,RAWTEXT:Rl,SCRIPT_DATA:Mi,PLAINTEXT:HC};Nr.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 cf=Nr,Zr={};const Qh=Zr.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/"};Zr.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Zr.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const V=Zr.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"};Zr.SPECIAL_ELEMENTS={[Qh.HTML]:{[V.ADDRESS]:!0,[V.APPLET]:!0,[V.AREA]:!0,[V.ARTICLE]:!0,[V.ASIDE]:!0,[V.BASE]:!0,[V.BASEFONT]:!0,[V.BGSOUND]:!0,[V.BLOCKQUOTE]:!0,[V.BODY]:!0,[V.BR]:!0,[V.BUTTON]:!0,[V.CAPTION]:!0,[V.CENTER]:!0,[V.COL]:!0,[V.COLGROUP]:!0,[V.DD]:!0,[V.DETAILS]:!0,[V.DIR]:!0,[V.DIV]:!0,[V.DL]:!0,[V.DT]:!0,[V.EMBED]:!0,[V.FIELDSET]:!0,[V.FIGCAPTION]:!0,[V.FIGURE]:!0,[V.FOOTER]:!0,[V.FORM]:!0,[V.FRAME]:!0,[V.FRAMESET]:!0,[V.H1]:!0,[V.H2]:!0,[V.H3]:!0,[V.H4]:!0,[V.H5]:!0,[V.H6]:!0,[V.HEAD]:!0,[V.HEADER]:!0,[V.HGROUP]:!0,[V.HR]:!0,[V.HTML]:!0,[V.IFRAME]:!0,[V.IMG]:!0,[V.INPUT]:!0,[V.LI]:!0,[V.LINK]:!0,[V.LISTING]:!0,[V.MAIN]:!0,[V.MARQUEE]:!0,[V.MENU]:!0,[V.META]:!0,[V.NAV]:!0,[V.NOEMBED]:!0,[V.NOFRAMES]:!0,[V.NOSCRIPT]:!0,[V.OBJECT]:!0,[V.OL]:!0,[V.P]:!0,[V.PARAM]:!0,[V.PLAINTEXT]:!0,[V.PRE]:!0,[V.SCRIPT]:!0,[V.SECTION]:!0,[V.SELECT]:!0,[V.SOURCE]:!0,[V.STYLE]:!0,[V.SUMMARY]:!0,[V.TABLE]:!0,[V.TBODY]:!0,[V.TD]:!0,[V.TEMPLATE]:!0,[V.TEXTAREA]:!0,[V.TFOOT]:!0,[V.TH]:!0,[V.THEAD]:!0,[V.TITLE]:!0,[V.TR]:!0,[V.TRACK]:!0,[V.UL]:!0,[V.WBR]:!0,[V.XMP]:!0},[Qh.MATHML]:{[V.MI]:!0,[V.MO]:!0,[V.MN]:!0,[V.MS]:!0,[V.MTEXT]:!0,[V.ANNOTATION_XML]:!0},[Qh.SVG]:{[V.TITLE]:!0,[V.FOREIGN_OBJECT]:!0,[V.DESC]:!0}};const GC=Zr,Y=GC.TAG_NAMES,He=GC.NAMESPACES;function Rv(e){switch(e.length){case 1:return e===Y.P;case 2:return e===Y.RB||e===Y.RP||e===Y.RT||e===Y.DD||e===Y.DT||e===Y.LI;case 3:return e===Y.RTC;case 6:return e===Y.OPTION;case 8:return e===Y.OPTGROUP}return!1}function iB(e){switch(e.length){case 1:return e===Y.P;case 2:return e===Y.RB||e===Y.RP||e===Y.RT||e===Y.DD||e===Y.DT||e===Y.LI||e===Y.TD||e===Y.TH||e===Y.TR;case 3:return e===Y.RTC;case 5:return e===Y.TBODY||e===Y.TFOOT||e===Y.THEAD;case 6:return e===Y.OPTION;case 7:return e===Y.CAPTION;case 8:return e===Y.OPTGROUP||e===Y.COLGROUP}return!1}function rc(e,t){switch(e.length){case 2:if(e===Y.TD||e===Y.TH)return t===He.HTML;if(e===Y.MI||e===Y.MO||e===Y.MN||e===Y.MS)return t===He.MATHML;break;case 4:if(e===Y.HTML)return t===He.HTML;if(e===Y.DESC)return t===He.SVG;break;case 5:if(e===Y.TABLE)return t===He.HTML;if(e===Y.MTEXT)return t===He.MATHML;if(e===Y.TITLE)return t===He.SVG;break;case 6:return(e===Y.APPLET||e===Y.OBJECT)&&t===He.HTML;case 7:return(e===Y.CAPTION||e===Y.MARQUEE)&&t===He.HTML;case 8:return e===Y.TEMPLATE&&t===He.HTML;case 13:return e===Y.FOREIGN_OBJECT&&t===He.SVG;case 14:return e===Y.ANNOTATION_XML&&t===He.MATHML}return!1}let oB=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===Y.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===He.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===He.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===Y.H1||t===Y.H2||t===Y.H3||t===Y.H4||t===Y.H5||t===Y.H6&&n===He.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===Y.TD||t===Y.TH&&n===He.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Y.TABLE&&this.currentTagName!==Y.TEMPLATE&&this.currentTagName!==Y.HTML||this.treeAdapter.getNamespaceURI(this.current)!==He.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Y.TBODY&&this.currentTagName!==Y.TFOOT&&this.currentTagName!==Y.THEAD&&this.currentTagName!==Y.TEMPLATE&&this.currentTagName!==Y.HTML||this.treeAdapter.getNamespaceURI(this.current)!==He.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Y.TR&&this.currentTagName!==Y.TEMPLATE&&this.currentTagName!==Y.HTML||this.treeAdapter.getNamespaceURI(this.current)!==He.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)===Y.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===Y.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===He.HTML)return!0;if(rc(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===Y.H1||n===Y.H2||n===Y.H3||n===Y.H4||n===Y.H5||n===Y.H6)&&r===He.HTML)return!0;if(rc(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===He.HTML)return!0;if((r===Y.UL||r===Y.OL)&&i===He.HTML||rc(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===He.HTML)return!0;if(r===Y.BUTTON&&i===He.HTML||rc(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])===He.HTML){if(r===t)return!0;if(r===Y.TABLE||r===Y.TEMPLATE||r===Y.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])===He.HTML){if(n===Y.TBODY||n===Y.THEAD||n===Y.TFOOT)return!0;if(n===Y.TABLE||n===Y.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])===He.HTML){if(r===t)return!0;if(r!==Y.OPTION&&r!==Y.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Rv(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;iB(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Rv(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var aB=oB;const ic=3;let ag=class mo{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=ic){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===mo.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=ic-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:mo.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:mo.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:mo.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===mo.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===mo.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===mo.ELEMENT_ENTRY&&r.element===t)return r}return null}};ag.MARKER_ENTRY="MARKER_ENTRY";ag.ELEMENT_ENTRY="ELEMENT_ENTRY";var sB=ag;let KC=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")}};KC.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const o=Xh.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var jC=cB;const dB=to;let fB=class extends dB{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 hB=fB;const Zh=to,Mv=cf,pB=jC,mB=hB,gB=Jr,Jh=gB.TAG_NAMES;let EB=class extends Zh{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===Mv.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=Zh.install(this.tokenizer,pB);t.posTracker=o.posTracker,Zh.install(this.openElements,mB,{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===Mv.END_TAG_TOKEN&&(r.tagName===Jh.HTML||r.tagName===Jh.BODY&&this.openElements.hasInScope(Jh.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))},df={};const{DOCUMENT_MODE:Va}=Jr,YC="html",HB="about:legacy-compat",UB="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",qC=["+//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//"],zB=qC.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),GB=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],QC=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],KB=QC.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Lv(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Bv(e,t){for(let n=0;n-1)return Va.QUIRKS;let r=t===null?zB:qC;if(Bv(n,r))return Va.QUIRKS;if(r=t===null?QC:KB,Bv(n,r))return Va.LIMITED_QUIRKS}return Va.NO_QUIRKS};df.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Lv(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Lv(n)),r};var Vo={};const e0=cf,lg=Jr,se=lg.TAG_NAMES,Kt=lg.NAMESPACES,Ic=lg.ATTRS,Hv={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},WB="definitionurl",jB="definitionURL",$B={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"},VB={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Kt.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Kt.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Kt.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Kt.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Kt.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Kt.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Kt.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Kt.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Kt.XML},"xml:space":{prefix:"xml",name:"space",namespace:Kt.XML},xmlns:{prefix:"",name:"xmlns",namespace:Kt.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Kt.XMLNS}},YB=Vo.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"},qB={[se.B]:!0,[se.BIG]:!0,[se.BLOCKQUOTE]:!0,[se.BODY]:!0,[se.BR]:!0,[se.CENTER]:!0,[se.CODE]:!0,[se.DD]:!0,[se.DIV]:!0,[se.DL]:!0,[se.DT]:!0,[se.EM]:!0,[se.EMBED]:!0,[se.H1]:!0,[se.H2]:!0,[se.H3]:!0,[se.H4]:!0,[se.H5]:!0,[se.H6]:!0,[se.HEAD]:!0,[se.HR]:!0,[se.I]:!0,[se.IMG]:!0,[se.LI]:!0,[se.LISTING]:!0,[se.MENU]:!0,[se.META]:!0,[se.NOBR]:!0,[se.OL]:!0,[se.P]:!0,[se.PRE]:!0,[se.RUBY]:!0,[se.S]:!0,[se.SMALL]:!0,[se.SPAN]:!0,[se.STRONG]:!0,[se.STRIKE]:!0,[se.SUB]:!0,[se.SUP]:!0,[se.TABLE]:!0,[se.TT]:!0,[se.U]:!0,[se.UL]:!0,[se.VAR]:!0};Vo.causesExit=function(e){const t=e.tagName;return t===se.FONT&&(e0.getTokenAttr(e,Ic.COLOR)!==null||e0.getTokenAttr(e,Ic.SIZE)!==null||e0.getTokenAttr(e,Ic.FACE)!==null)?!0:qB[t]};Vo.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=sH[i];if(o){this.insertionMode=o;break}else if(!n&&(i===m.TD||i===m.TH)){this.insertionMode=mf;break}else if(!n&&i===m.HEAD){this.insertionMode=Zs;break}else if(i===m.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===m.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===m.HTML){this.insertionMode=this.headElement?hf:ff;break}else if(n){this.insertionMode=Ti;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===m.TEMPLATE)break;if(i===m.TABLE){this.insertionMode=dg;return}}this.insertionMode=cg}_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===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.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===m.TEMPLATE&&o===te.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===m.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 Ma.SPECIAL_ELEMENTS[r][n]}}var cH=uH;function dH(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):Hr(e,t),n}function fH(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 hH(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>=aH;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=pH(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function pH(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 mH(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===m.TEMPLATE&&i===te.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function gH(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 yo(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==m.TEMPLATE&&e._err(jt.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(jt.endTagWithoutMatchingOpenElement)}function Zl(e,t){e.openElements.pop(),e.insertionMode=hf,e._processToken(t)}function SH(e,t){const n=t.tagName;n===m.HTML?$n(e,t):n===m.BASEFONT||n===m.BGSOUND||n===m.HEAD||n===m.LINK||n===m.META||n===m.NOFRAMES||n===m.STYLE?Ot(e,t):n===m.NOSCRIPT?e._err(jt.nestedNoscriptInHead):Jl(e,t)}function AH(e,t){const n=t.tagName;n===m.NOSCRIPT?(e.openElements.pop(),e.insertionMode=Zs):n===m.BR?Jl(e,t):e._err(jt.endTagWithoutMatchingOpenElement)}function Jl(e,t){const n=t.type===w.EOF_TOKEN?jt.openElementsLeftAfterEof:jt.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=Zs,e._processToken(t)}function bH(e,t){const n=t.tagName;n===m.HTML?$n(e,t):n===m.BODY?(e._insertElement(t,te.HTML),e.framesetOk=!1,e.insertionMode=Ti):n===m.FRAMESET?(e._insertElement(t,te.HTML),e.insertionMode=gf):n===m.BASE||n===m.BASEFONT||n===m.BGSOUND||n===m.LINK||n===m.META||n===m.NOFRAMES||n===m.SCRIPT||n===m.STYLE||n===m.TEMPLATE||n===m.TITLE?(e._err(jt.abandonedHeadElementChild),e.openElements.push(e.headElement),Ot(e,t),e.openElements.remove(e.headElement)):n===m.HEAD?e._err(jt.misplacedStartTagForHeadElement):eu(e,t)}function kH(e,t){const n=t.tagName;n===m.BODY||n===m.HTML||n===m.BR?eu(e,t):n===m.TEMPLATE?Oa(e,t):e._err(jt.endTagWithoutMatchingOpenElement)}function eu(e,t){e._insertFakeElement(m.BODY),e.insertionMode=Ti,e._processToken(t)}function ta(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ac(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function FH(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function IH(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function xH(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,te.HTML),e.insertionMode=gf)}function xi(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML)}function NH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6)&&e.openElements.pop(),e._insertElement(t,te.HTML)}function jv(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function DH(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML),n||(e.formElement=e.openElements.current))}function wH(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===m.LI&&o===m.LI?a=m.LI:(n===m.DD||n===m.DT)&&(o===m.DD||o===m.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==m.ADDRESS&&o!==m.DIV&&o!==m.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML)}function RH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML),e.tokenizer.state=w.MODE.PLAINTEXT}function PH(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML),e.framesetOk=!1}function MH(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(m.A);n&&(yo(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ya(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function OH(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(yo(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $v(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function LH(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ma.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML),e.framesetOk=!1,e.insertionMode=tn}function es(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,te.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function BH(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,te.HTML);const n=w.getTokenAttr(t,XC.TYPE);(!n||n.toLowerCase()!==ZC)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Vv(e,t){e._appendElement(t,te.HTML),t.ackSelfClosing=!0}function HH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,te.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function UH(e,t){t.tagName=m.IMG,es(e,t)}function zH(e,t){e._insertElement(t,te.HTML),e.skipNextNewLine=!0,e.tokenizer.state=w.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Td}function GH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function KH(e,t){e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function Yv(e,t){e._switchToTextParsing(t,w.MODE.RAWTEXT)}function WH(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML),e.framesetOk=!1,e.insertionMode===tn||e.insertionMode===pf||e.insertionMode===br||e.insertionMode===Qi||e.insertionMode===mf?e.insertionMode=dg:e.insertionMode=cg}function qv(e,t){e.openElements.currentTagName===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML)}function Qv(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,te.HTML)}function jH(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,te.HTML)}function $H(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML)}function VH(e,t){e._reconstructActiveFormattingElements(),fi.adjustTokenMathMLAttrs(t),fi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,te.MATHML):e._insertElement(t,te.MATHML),t.ackSelfClosing=!0}function YH(e,t){e._reconstructActiveFormattingElements(),fi.adjustTokenSVGAttrs(t),fi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,te.SVG):e._insertElement(t,te.SVG),t.ackSelfClosing=!0}function pr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML)}function $n(e,t){const n=t.tagName;switch(n.length){case 1:n===m.I||n===m.S||n===m.B||n===m.U?Ya(e,t):n===m.P?xi(e,t):n===m.A?MH(e,t):pr(e,t);break;case 2:n===m.DL||n===m.OL||n===m.UL?xi(e,t):n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6?NH(e,t):n===m.LI||n===m.DD||n===m.DT?wH(e,t):n===m.EM||n===m.TT?Ya(e,t):n===m.BR?es(e,t):n===m.HR?HH(e,t):n===m.RB?Qv(e,t):n===m.RT||n===m.RP?jH(e,t):n!==m.TH&&n!==m.TD&&n!==m.TR&&pr(e,t);break;case 3:n===m.DIV||n===m.DIR||n===m.NAV?xi(e,t):n===m.PRE?jv(e,t):n===m.BIG?Ya(e,t):n===m.IMG||n===m.WBR?es(e,t):n===m.XMP?GH(e,t):n===m.SVG?YH(e,t):n===m.RTC?Qv(e,t):n!==m.COL&&pr(e,t);break;case 4:n===m.HTML?FH(e,t):n===m.BASE||n===m.LINK||n===m.META?Ot(e,t):n===m.BODY?IH(e,t):n===m.MAIN||n===m.MENU?xi(e,t):n===m.FORM?DH(e,t):n===m.CODE||n===m.FONT?Ya(e,t):n===m.NOBR?OH(e,t):n===m.AREA?es(e,t):n===m.MATH?VH(e,t):n===m.MENU?$H(e,t):n!==m.HEAD&&pr(e,t);break;case 5:n===m.STYLE||n===m.TITLE?Ot(e,t):n===m.ASIDE?xi(e,t):n===m.SMALL?Ya(e,t):n===m.TABLE?LH(e,t):n===m.EMBED?es(e,t):n===m.INPUT?BH(e,t):n===m.PARAM||n===m.TRACK?Vv(e,t):n===m.IMAGE?UH(e,t):n!==m.FRAME&&n!==m.TBODY&&n!==m.TFOOT&&n!==m.THEAD&&pr(e,t);break;case 6:n===m.SCRIPT?Ot(e,t):n===m.CENTER||n===m.FIGURE||n===m.FOOTER||n===m.HEADER||n===m.HGROUP||n===m.DIALOG?xi(e,t):n===m.BUTTON?PH(e,t):n===m.STRIKE||n===m.STRONG?Ya(e,t):n===m.APPLET||n===m.OBJECT?$v(e,t):n===m.KEYGEN?es(e,t):n===m.SOURCE?Vv(e,t):n===m.IFRAME?KH(e,t):n===m.SELECT?WH(e,t):n===m.OPTION?qv(e,t):pr(e,t);break;case 7:n===m.BGSOUND?Ot(e,t):n===m.DETAILS||n===m.ADDRESS||n===m.ARTICLE||n===m.SECTION||n===m.SUMMARY?xi(e,t):n===m.LISTING?jv(e,t):n===m.MARQUEE?$v(e,t):n===m.NOEMBED?Yv(e,t):n!==m.CAPTION&&pr(e,t);break;case 8:n===m.BASEFONT?Ot(e,t):n===m.FRAMESET?xH(e,t):n===m.FIELDSET?xi(e,t):n===m.TEXTAREA?zH(e,t):n===m.TEMPLATE?Ot(e,t):n===m.NOSCRIPT?e.options.scriptingEnabled?Yv(e,t):pr(e,t):n===m.OPTGROUP?qv(e,t):n!==m.COLGROUP&&pr(e,t);break;case 9:n===m.PLAINTEXT?RH(e,t):pr(e,t);break;case 10:n===m.BLOCKQUOTE||n===m.FIGCAPTION?xi(e,t):pr(e,t);break;default:pr(e,t)}}function qH(e){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=fg)}function QH(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=fg,e._processToken(t))}function fo(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function XH(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):e.openElements.remove(n))}function ZH(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(m.P),e._closePElement()}function JH(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function eU(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function tU(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xv(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function nU(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(m.BR),e.openElements.pop(),e.framesetOk=!1}function Hr(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===m.A||n===m.B||n===m.I||n===m.S||n===m.U?yo(e,t):n===m.P?ZH(e):Hr(e,t);break;case 2:n===m.DL||n===m.UL||n===m.OL?fo(e,t):n===m.LI?JH(e):n===m.DD||n===m.DT?eU(e,t):n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6?tU(e):n===m.BR?nU(e):n===m.EM||n===m.TT?yo(e,t):Hr(e,t);break;case 3:n===m.BIG?yo(e,t):n===m.DIR||n===m.DIV||n===m.NAV||n===m.PRE?fo(e,t):Hr(e,t);break;case 4:n===m.BODY?qH(e):n===m.HTML?QH(e,t):n===m.FORM?XH(e):n===m.CODE||n===m.FONT||n===m.NOBR?yo(e,t):n===m.MAIN||n===m.MENU?fo(e,t):Hr(e,t);break;case 5:n===m.ASIDE?fo(e,t):n===m.SMALL?yo(e,t):Hr(e,t);break;case 6:n===m.CENTER||n===m.FIGURE||n===m.FOOTER||n===m.HEADER||n===m.HGROUP||n===m.DIALOG?fo(e,t):n===m.APPLET||n===m.OBJECT?Xv(e,t):n===m.STRIKE||n===m.STRONG?yo(e,t):Hr(e,t);break;case 7:n===m.ADDRESS||n===m.ARTICLE||n===m.DETAILS||n===m.SECTION||n===m.SUMMARY||n===m.LISTING?fo(e,t):n===m.MARQUEE?Xv(e,t):Hr(e,t);break;case 8:n===m.FIELDSET?fo(e,t):n===m.TEMPLATE?Oa(e,t):Hr(e,t);break;case 10:n===m.BLOCKQUOTE||n===m.FIGCAPTION?fo(e,t):Hr(e,t);break;default:Hr(e,t)}}function Ni(e,t){e.tmplInsertionModeStackTop>-1?s8(e,t):e.stopped=!0}function rU(e,t){t.tagName===m.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function iU(e,t){e._err(jt.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Di(e,t){const n=e.openElements.currentTagName;n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=t8,e._processToken(t)):gr(e,t)}function oU(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,te.HTML),e.insertionMode=pf}function aU(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,te.HTML),e.insertionMode=s1}function sU(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.COLGROUP),e.insertionMode=s1,e._processToken(t)}function lU(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,te.HTML),e.insertionMode=br}function uU(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.TBODY),e.insertionMode=br,e._processToken(t)}function cU(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processToken(t))}function dU(e,t){const n=w.getTokenAttr(t,XC.TYPE);n&&n.toLowerCase()===ZC?e._appendElement(t,te.HTML):gr(e,t),t.ackSelfClosing=!0}function fU(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,te.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function pg(e,t){const n=t.tagName;switch(n.length){case 2:n===m.TD||n===m.TH||n===m.TR?uU(e,t):gr(e,t);break;case 3:n===m.COL?sU(e,t):gr(e,t);break;case 4:n===m.FORM?fU(e,t):gr(e,t);break;case 5:n===m.TABLE?cU(e,t):n===m.STYLE?Ot(e,t):n===m.TBODY||n===m.TFOOT||n===m.THEAD?lU(e,t):n===m.INPUT?dU(e,t):gr(e,t);break;case 6:n===m.SCRIPT?Ot(e,t):gr(e,t);break;case 7:n===m.CAPTION?oU(e,t):gr(e,t);break;case 8:n===m.COLGROUP?aU(e,t):n===m.TEMPLATE?Ot(e,t):gr(e,t);break;default:gr(e,t)}}function mg(e,t){const n=t.tagName;n===m.TABLE?e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode()):n===m.TEMPLATE?Oa(e,t):n!==m.BODY&&n!==m.CAPTION&&n!==m.COL&&n!==m.COLGROUP&&n!==m.HTML&&n!==m.TBODY&&n!==m.TD&&n!==m.TFOOT&&n!==m.TH&&n!==m.THEAD&&n!==m.TR&&gr(e,t)}function gr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function hU(e,t){e.pendingCharacterTokens.push(t)}function pU(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function bl(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function xU(e,t){t.tagName===m.HTML?$n(e,t):Cd(e,t)}function NU(e,t){t.tagName===m.HTML?e.fragmentContext||(e.insertionMode=r8):Cd(e,t)}function Cd(e,t){e.insertionMode=Ti,e._processToken(t)}function DU(e,t){const n=t.tagName;n===m.HTML?$n(e,t):n===m.FRAMESET?e._insertElement(t,te.HTML):n===m.FRAME?(e._appendElement(t,te.HTML),t.ackSelfClosing=!0):n===m.NOFRAMES&&Ot(e,t)}function wU(e,t){t.tagName===m.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==m.FRAMESET&&(e.insertionMode=n8))}function RU(e,t){const n=t.tagName;n===m.HTML?$n(e,t):n===m.NOFRAMES&&Ot(e,t)}function PU(e,t){t.tagName===m.HTML&&(e.insertionMode=i8)}function MU(e,t){t.tagName===m.HTML?$n(e,t):xc(e,t)}function xc(e,t){e.insertionMode=Ti,e._processToken(t)}function OU(e,t){const n=t.tagName;n===m.HTML?$n(e,t):n===m.NOFRAMES&&Ot(e,t)}function LU(e,t){t.chars=rH.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function BU(e,t){e._insertCharacters(t),e.framesetOk=!1}function HU(e,t){if(fi.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==te.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===te.MATHML?fi.adjustTokenMathMLAttrs(t):r===te.SVG&&(fi.adjustTokenSVGTagName(t),fi.adjustTokenSVGAttrs(t)),fi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function UU(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===te.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Zv=/[#.]/g;function zU(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 x=A;if(x.value.stitch&&P!==null&&D!==null)return P.children[D]=x.value.stitch,D}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const A={nodeName:"template",tagName:"template",attrs:[],namespaceURI:wu.html,childNodes:[]},D={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:wu.html,childNodes:[]},P={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(D,A),i._pushTmplInsertionMode(fz),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),S(),i._adoptNodes(D.childNodes[0],P),P}function p(){const A=i.treeAdapter.createDocument();if(i._bootstrap(A,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,c=s.__mixins[0],u=c.posTracker,o(e),S(),A}function h(A){let D=-1;if(A)for(;++Dh8(t,n,e)}function Fz(){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 wi=Fz,Iz=typeof global=="object"&&global&&global.Object===Object&&global;const p8=Iz;var xz=typeof self=="object"&&self&&self.Object===Object&&self,Nz=p8||xz||Function("return this")();const Si=Nz;var Dz=Si.Symbol;const zs=Dz;var m8=Object.prototype,wz=m8.hasOwnProperty,Rz=m8.toString,kl=zs?zs.toStringTag:void 0;function Pz(e){var t=wz.call(e,kl),n=e[kl];try{e[kl]=void 0;var r=!0}catch{}var i=Rz.call(e);return r&&(t?e[kl]=n:delete e[kl]),i}var Mz=Object.prototype,Oz=Mz.toString;function Lz(e){return Oz.call(e)}var Bz="[object Null]",Hz="[object Undefined]",nT=zs?zs.toStringTag:void 0;function l1(e){return e==null?e===void 0?Hz:Bz:nT&&nT in Object(e)?Pz(e):Lz(e)}function u1(e){return e!=null&&typeof e=="object"}var Uz=Array.isArray;const Ef=Uz;function c1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var zz="[object AsyncFunction]",Gz="[object Function]",Kz="[object GeneratorFunction]",Wz="[object Proxy]";function g8(e){if(!c1(e))return!1;var t=l1(e);return t==Gz||t==Kz||t==zz||t==Wz}var jz=Si["__core-js_shared__"];const t0=jz;var rT=function(){var e=/[^.]+$/.exec(t0&&t0.keys&&t0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $z(e){return!!rT&&rT in e}var Vz=Function.prototype,Yz=Vz.toString;function La(e){if(e!=null){try{return Yz.call(e)}catch{}try{return e+""}catch{}}return""}var qz=/[\\^$.*+?()[\]{}|]/g,Qz=/^\[object .+?Constructor\]$/,Xz=Function.prototype,Zz=Object.prototype,Jz=Xz.toString,eG=Zz.hasOwnProperty,tG=RegExp("^"+Jz.call(eG).replace(qz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nG(e){if(!c1(e)||$z(e))return!1;var t=g8(e)?tG:Qz;return t.test(La(e))}function rG(e,t){return e==null?void 0:e[t]}function Ba(e,t){var n=rG(e,t);return nG(n)?n:void 0}var iG=Ba(Si,"WeakMap");const kp=iG;var iT=Object.create,oG=function(){function e(){}return function(t){if(!c1(t))return{};if(iT)return iT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const aG=oG;function sG(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e-1&&e%1==0&&e<=mG}function vg(e){return e!=null&&y8(e.length)&&!g8(e)}var gG=Object.prototype;function Tf(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||gG;return e===n}function EG(e,t){for(var n=-1,r=Array(e);++n-1}function IK(e,t){var n=this.__data__,r=yf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function no(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{let s=a.slice(r,a.length-1),l=Aj(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))}),{citations:i,markdownFormatText:t}}function h$(){return e=>{Us(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)}),Us(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 AT=({answer:e,onCitationClicked:t})=>{const[n,{toggle:r}]=ju(!1),i=50,o=E.useMemo(()=>f$(e),[e]),[a,s]=E.useState(n),l=()=>{s(!a),r()};E.useEffect(()=>{s(n)},[n]);const u=(c,d,f=!1)=>{let p="";if(c.filepath&&c.chunk_id)if(f&&c.filepath.length>i){const h=c.filepath.length;p=`${c.filepath.substring(0,20)}...${c.filepath.substring(h-20)} - Part ${parseInt(c.chunk_id)+1}`}else p=`${c.filepath} - Part ${parseInt(c.chunk_id)+1}`;else c.filepath&&c.reindex_id?p=`${c.filepath} - Part ${c.reindex_id}`:p=`Citation ${d}`;return p};return B(Ta,{children:fe(he,{className:Ri.answerContainer,tabIndex:0,children:[B(he.Item,{grow:!0,children:B(lf,{linkTarget:"_blank",remarkPlugins:[MC,h$],children:o.markdownFormatText,className:Ri.answerText})}),fe(he,{horizontal:!0,className:Ri.answerFooter,children:[!!o.citations.length&&B(he.Item,{onKeyDown:c=>c.key==="Enter"||c.key===" "?r():null,children:B(he,{style:{width:"100%"},children:fe(he,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",children:[B(Fo,{className:Ri.accordionTitle,onClick:r,"aria-label":"Open references",tabIndex:0,role:"button",children:B("span",{children:o.citations.length>1?o.citations.length+" references":"1 reference"})}),B(md,{className:Ri.accordionIcon,onClick:l,iconName:a?"ChevronDown":"ChevronRight"})]})})}),B(he.Item,{className:Ri.answerDisclaimerContainer,children:B("span",{className:Ri.answerDisclaimer,children:"AI-generated content may be incorrect"})})]}),a&&B("div",{style:{marginTop:8,display:"flex",flexFlow:"wrap column",maxHeight:"150px",gap:"4px"},children:o.citations.map((c,d)=>fe("span",{title:u(c,++d),tabIndex:0,role:"link",onClick:()=>t(c),onKeyDown:f=>f.key==="Enter"||f.key===" "?t(c):null,className:Ri.citationContainer,"aria-label":u(c,d),children:[B("div",{className:Ri.citation,children:d}),u(c,d,!0)]},d))})]})})},p$="/assets/Send-d0601aaa.svg",m$="_questionInputContainer_pe9s7_1",g$="_questionInputTextArea_pe9s7_13",E$="_questionInputSendButtonContainer_pe9s7_22",v$="_questionInputSendButton_pe9s7_22",T$="_questionInputSendButtonDisabled_pe9s7_33",y$="_questionInputBottomBorder_pe9s7_41",_$="_questionInputOptionsButton_pe9s7_52",qa={questionInputContainer:m$,questionInputTextArea:g$,questionInputSendButtonContainer:E$,questionInputSendButton:v$,questionInputSendButtonDisabled:T$,questionInputBottomBorder:y$,questionInputOptionsButton:_$},C$=({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=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),s())},u=(d,f)=>{a(f||"")},c=t||!o.trim();return fe(he,{horizontal:!0,className:qa.questionInputContainer,children:[B($m,{className:qa.questionInputTextArea,placeholder:n,multiline:!0,resizable:!1,borderless:!0,value:o,onChange:u,onKeyDown:l}),B("div",{className:qa.questionInputSendButtonContainer,role:"button",tabIndex:0,"aria-label":"Ask question button",onClick:s,onKeyDown:d=>d.key==="Enter"||d.key===" "?s():null,children:c?B(jD,{className:qa.questionInputSendButtonDisabled}):B("img",{src:p$,className:qa.questionInputSendButton})}),B("div",{className:qa.questionInputBottomBorder})]})},S$="_container_1qjpx_1",A$="_listContainer_1qjpx_7",b$="_itemCell_1qjpx_12",k$="_itemButton_1qjpx_29",F$="_chatGroup_1qjpx_46",I$="_spinnerContainer_1qjpx_51",x$="_chatList_1qjpx_58",N$="_chatMonth_1qjpx_62",D$="_chatTitle_1qjpx_69",_r={container:S$,listContainer:A$,itemCell:b$,itemButton:k$,chatGroup:F$,spinnerContainer:I$,chatList:x$,chatMonth:N$,chatTitle:D$},w$=e=>{const n=new Date().getFullYear(),[r,i]=e.split(" ");return parseInt(i)===n?r:e},R$=({item:e,onSelect:t})=>{var H,G,J;const[n,r]=E.useState(!1),[i,o]=E.useState(!1),[a,s]=E.useState(""),[l,{toggle:u}]=ju(!0),[c,d]=E.useState(!1),[f,p]=E.useState(!1),[h,v]=E.useState(void 0),[_,g]=E.useState(!1),T=E.useRef(null),y=E.useContext(Ra),C=(e==null?void 0:e.id)===((H=y==null?void 0:y.state.currentChat)==null?void 0:H.id),k={type:pi.close,title:"Are you sure you want to delete this item?",closeButtonAriaLabel:"Close",subText:"The history of this chat session will permanently removed."},S={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}};if(!e)return null;E.useEffect(()=>{_&&T.current&&(T.current.focus(),g(!1))},[_]),E.useEffect(()=>{var M;((M=y==null?void 0:y.state.currentChat)==null?void 0:M.id)!==(e==null?void 0:e.id)&&(o(!1),s(""))},[(G=y==null?void 0:y.state.currentChat)==null?void 0:G.id,e==null?void 0:e.id]);const A=async()=>{(await rw(e.id)).ok?y==null||y.dispatch({type:"DELETE_CHAT_ENTRY",payload:e.id}):(d(!0),setTimeout(()=>{d(!1)},5e3)),u()},D=()=>{o(!0),g(!0),s(e==null?void 0:e.title)},P=()=>{t(e),y==null||y.dispatch({type:"UPDATE_CURRENT_CHAT",payload:e})},x=((J=e==null?void 0:e.title)==null?void 0:J.length)>28?`${e.title.substring(0,28)} ...`:e.title,R=async M=>{if(M.preventDefault(),h||f)return;if(a==e.title){v("Error: Enter a new title to proceed."),setTimeout(()=>{v(void 0),g(!0),T.current&&T.current.focus()},5e3);return}p(!0),(await aw(e.id,a)).ok?(p(!1),o(!1),y==null||y.dispatch({type:"UPDATE_CHAT_TITLE",payload:{...e,title:a}}),s("")):(v("Error: could not rename item"),setTimeout(()=>{g(!0),v(void 0),T.current&&T.current.focus()},5e3))},O=M=>{s(M.target.value)},X=()=>{o(!1),s("")},Y=M=>{if(M.key==="Enter")return R(M);if(M.key==="Escape"){X();return}};return fe(he,{tabIndex:0,"aria-label":"chat history item",className:_r.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?B(Ta,{children:B(he.Item,{style:{width:"100%"},children:fe("form",{"aria-label":"edit title form",onSubmit:M=>R(M),style:{padding:"5px 0px"},children:[fe(he,{horizontal:!0,verticalAlign:"start",children:[B(he.Item,{children:B($m,{componentRef:T,autoFocus:_,value:a,placeholder:e.title,onChange:O,onKeyDown:Y,disabled:!!h})}),a&&B(he.Item,{children:fe(he,{"aria-label":"action button group",horizontal:!0,verticalAlign:"center",children:[B(ha,{role:"button",disabled:h!==void 0,onKeyDown:M=>M.key===" "||M.key==="Enter"?R(M):null,onClick:M=>R(M),"aria-label":"confirm new title",iconProps:{iconName:"CheckMark"},styles:{root:{color:"green",marginLeft:"5px"}}}),B(ha,{role:"button",disabled:h!==void 0,onKeyDown:M=>M.key===" "||M.key==="Enter"?X():null,onClick:()=>X(),"aria-label":"cancel edit title",iconProps:{iconName:"Cancel"},styles:{root:{color:"red",marginLeft:"5px"}}})]})})]}),h&&B(Fo,{role:"alert","aria-label":h,style:{fontSize:12,fontWeight:400,color:"rgb(164,38,44)"},children:h})]})})}):B(Ta,{children:fe(he,{horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[B("div",{className:_r.chatTitle,children:x}),(C||n)&&fe(he,{horizontal:!0,horizontalAlign:"end",children:[B(ha,{className:_r.itemButton,iconProps:{iconName:"Delete"},title:"Delete",onClick:u,onKeyDown:M=>M.key===" "?u():null}),B(ha,{className:_r.itemButton,iconProps:{iconName:"Edit"},title:"Edit",onClick:D,onKeyDown:M=>M.key===" "?D():null})]})]})}),c&&B(Fo,{styles:{root:{color:"red",marginTop:5,fontSize:14}},children:"Error: could not delete item"}),B($u,{hidden:l,onDismiss:u,dialogContentProps:k,modalProps:S,children:fe(Vm,{children:[B(d2,{onClick:A,text:"Delete"}),B(Xd,{onClick:u,text:"Cancel"})]})})]},e.id)},P$=({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=>B(R$,{item:h,onSelect:()=>d(h)});E.useEffect(()=>{if(c.current){c.current=!1;return}p(),o(h=>h+=25)},[a]);const p=async()=>{const h=t==null?void 0:t.state.chatHistory;u(!0),await b2(i).then(v=>{const _=h&&v&&h.concat(...v);return v?t==null||t.dispatch({type:"FETCH_CHAT_HISTORY",payload:_||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(_=>_+=1)},{threshold:1});return n.current&&h.observe(n.current),()=>{n.current&&h.unobserve(n.current)}},[n]),fe("div",{className:_r.listContainer,"data-is-scrollable":!0,children:[e.map(h=>h.entries.length>0&&fe(he,{horizontalAlign:"start",verticalAlign:"center",className:_r.chatGroup,"aria-label":`chat history group: ${h.month}`,children:[B(he,{"aria-label":h.month,className:_r.chatMonth,children:w$(h.month)}),B(Rx,{"aria-label":"chat history list",items:h.entries,onRenderCell:f,className:_r.chatList}),B("div",{ref:n}),B(E2,{styles:{root:{width:"100%",position:"relative","::before":{backgroundColor:"#d6d6d6"}}}})]},h.month)),l&&B("div",{className:_r.spinnerContainer,children:B(h2,{size:jr.small,"aria-label":"loading more chat history",className:_r.spinner})})]})},M$=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},O$=()=>{const e=E.useContext(Ra),t=e==null?void 0:e.state.chatHistory;En.useEffect(()=>{},[e==null?void 0:e.state.chatHistory]);let n;if(t&&t.length>0)n=M$(t);else return B(he,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:B(So,{children:B(Fo,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:B("span",{children:"No chat history."})})})});return B(P$,{groupedChatHistory:n})},bT={root:{padding:"0",display:"flex",justifyContent:"center",backgroundColor:"transparent"}},L$={root:{height:"50px"}};function B$(e){var T,y,C;const t=E.useContext(Ra),[n,r]=En.useState(!1),[i,{toggle:o}]=ju(!0),[a,s]=En.useState(!1),[l,u]=En.useState(!1),c={type:pi.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"}}],p=()=>{t==null||t.dispatch({type:"TOGGLE_CHAT_HISTORY"})},h=En.useCallback(k=>{k.preventDefault(),r(!0)},[]),v=En.useCallback(()=>r(!1),[]),_=async()=>{s(!0),(await iw()).ok?(t==null||t.dispatch({type:"DELETE_CHAT_HISTORY"}),o()):u(!0),s(!1)},g=()=>{o(),setTimeout(()=>{u(!1)},2e3)};return En.useEffect(()=>{},[t==null?void 0:t.state.chatHistory,l]),fe("section",{className:_r.container,"data-is-scrollable":!0,"aria-label":"chat history panel",children:[fe(he,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",wrap:!0,"aria-label":"chat history header",children:[B(So,{children:B(Fo,{role:"heading","aria-level":2,style:{alignSelf:"center",fontWeight:"600",fontSize:"18px",marginRight:"auto",paddingLeft:"20px"},children:"Chat history"})}),B(he,{verticalAlign:"start",children:fe(he,{horizontal:!0,styles:L$,children:[B(Nu,{iconProps:{iconName:"More"},title:"Clear all chat history",onClick:h,"aria-label":"clear all chat history",styles:bT,role:"button",id:"moreButton"}),B(gd,{items:f,hidden:!n,target:"#moreButton",onItemClick:o,onDismiss:v}),B(Nu,{iconProps:{iconName:"Cancel"},title:"Hide",onClick:p,"aria-label":"hide button",styles:bT,role:"button"})]})})]}),B(he,{"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(he,{className:_r.chatHistoryListContainer,children:[(t==null?void 0:t.state.chatHistoryLoadingState)===gn.Success&&(t==null?void 0:t.state.isCosmosDBAvailable.cosmosDB)&&B(O$,{}),(t==null?void 0:t.state.chatHistoryLoadingState)===gn.Fail&&(t==null?void 0:t.state.isCosmosDBAvailable)&&B(Ta,{children:B(he,{children:fe(he,{horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[B(So,{children:fe(Fo,{style:{alignSelf:"center",fontWeight:"400",fontSize:16},children:[((T=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:T.status)&&B("span",{children:(y=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:y.status}),!((C=t==null?void 0:t.state.isCosmosDBAvailable)!=null&&C.status)&&B("span",{children:"Error loading chat history"})]})}),B(So,{children:B(Fo,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:B("span",{children:"Chat history can't be saved at this time"})})})]})})}),(t==null?void 0:t.state.chatHistoryLoadingState)===gn.Loading&&B(Ta,{children:B(he,{children:fe(he,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[B(So,{style:{justifyContent:"center",alignItems:"center"},children:B(h2,{style:{alignSelf:"flex-start",height:"100%",marginRight:"5px"},size:jr.medium})}),B(So,{children:B(Fo,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:B("span",{style:{whiteSpace:"pre-wrap"},children:"Loading chat history"})})})]})})})]})}),B($u,{hidden:i,onDismiss:a?()=>{}:g,dialogContentProps:c,modalProps:d,children:fe(Vm,{children:[!l&&B(d2,{onClick:_,disabled:a,text:"Clear All"}),B(Xd,{onClick:g,disabled:a,text:l?"Close":"Cancel"})]})})]})}const H$=()=>{var Ge,wt,bt,mt,Ht,In;const e=E.useContext(Ra),t=E.useRef(null),[n,r]=E.useState(!1),[i,o]=E.useState(!1),[a,s]=E.useState(),[l,u]=E.useState(!1),c=E.useRef([]),[d,f]=E.useState(!0),[p,h]=E.useState([]),[v,_]=E.useState("Not Running"),[g,T]=E.useState(!1),[y,{toggle:C}]=ju(!0),[k,S]=E.useState(),A={type:pi.close,title:k==null?void 0:k.title,closeButtonAriaLabel:"Close",subText:k==null?void 0:k.subtitle},D={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},[P,x,R]=["assistant","tool","error"];E.useEffect(()=>{var re;if(((re=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:re.status)===Un.NotWorking&&e.state.chatHistoryLoadingState===gn.Fail&&y){let ge=`${e.state.isCosmosDBAvailable.status}. Please contact the site administrator.`;S({title:"Chat history is not enabled",subtitle:ge}),C()}},[e==null?void 0:e.state.isCosmosDBAvailable]);const O=()=>{C(),setTimeout(()=>{S(null)},500)};E.useEffect(()=>{r((e==null?void 0:e.state.chatHistoryLoadingState)===gn.Loading)},[e==null?void 0:e.state.chatHistoryLoadingState]);const X=async()=>{(await ew()).length===0&&window.location.hostname!=="127.0.0.1"?f(!0):f(!1)};let Y={},H={},G="";const J=(re,ge,ce)=>{re.role===P&&(G+=re.content,Y=re,Y.content=G),re.role===x&&(H=re),ce?Fl(H)?h([...p,Y]):h([...p,H,Y]):Fl(H)?h([...p,ge,Y]):h([...p,ge,H,Y])},M=async(re,ge)=>{var Yn,Ut;r(!0),o(!0);const ce=new AbortController;c.current.unshift(ce);const De={id:wi(),role:"user",content:re,date:new Date().toISOString()};let _e;if(!ge)_e={id:ge??wi(),title:re,messages:[De],date:new Date().toISOString()};else if(_e=(Yn=e==null?void 0:e.state)==null?void 0:Yn.currentChat,_e)_e.messages.push(De);else{console.error("Conversation not found."),r(!1),o(!1),c.current=c.current.filter(Tt=>Tt!==ce);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:_e}),h(_e.messages);const qt={messages:[..._e.messages.filter(Tt=>Tt.role!==R)]};let xe={};try{const Tt=await JD(qt,ce.signal);if(Tt!=null&&Tt.body){const xn=Tt.body.getReader();let sn="";for(;;){_("Processing");const{done:wr,value:L}=await xn.read();if(wr)break;var Vn=new TextDecoder("utf-8").decode(L);Vn.split(` -`).forEach(oe=>{try{sn+=oe,xe=JSON.parse(sn),xe.choices[0].messages.forEach(ie=>{ie.id=wi(),ie.date=new Date().toISOString()}),o(!1),xe.choices[0].messages.forEach(ie=>{J(ie,De,ge)}),sn=""}catch{}})}_e.messages.push(H,Y),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:_e}),h([...p,H,Y])}}catch{if(ce.signal.aborted)h([...p,De]);else{let xn="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(Ut=xe.error)!=null&&Ut.message?xn=xe.error.message:typeof xe.error=="string"&&(xn=xe.error);let sn={id:wi(),role:R,content:xn,date:new Date().toISOString()};_e.messages.push(sn),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:_e}),h([...p,sn])}}finally{r(!1),o(!1),c.current=c.current.filter(Tt=>Tt!==ce),_("Done")}return ce.abort()},z=async(re,ge)=>{var Yn,Ut,Tt,xn,sn,wr,L,j,oe;r(!0),o(!0);const ce=new AbortController;c.current.unshift(ce);const De={id:wi(),role:"user",content:re,date:new Date().toISOString()};let _e,qt;if(ge)if(qt=(Ut=(Yn=e==null?void 0:e.state)==null?void 0:Yn.chatHistory)==null?void 0:Ut.find(ie=>ie.id===ge),qt)qt.messages.push(De),_e={messages:[...qt.messages.filter(ie=>ie.role!==R)]};else{console.error("Conversation not found."),r(!1),o(!1),c.current=c.current.filter(ie=>ie!==ce);return}else _e={messages:[De].filter(ie=>ie.role!==R)},h(_e.messages);let xe={};try{const ie=ge?await $E(_e,ce.signal,ge):await $E(_e,ce.signal);if(!(ie!=null&&ie.ok)){let q={id:wi(),role:R,content:"There was an error generating a response. Chat history can't be saved at this time. If the problem persists, please contact the site administrator.",date:new Date().toISOString()},Ne;if(ge){if(Ne=(xn=(Tt=e==null?void 0:e.state)==null?void 0:Tt.chatHistory)==null?void 0:xn.find(Ce=>Ce.id===ge),!Ne){console.error("Conversation not found."),r(!1),o(!1),c.current=c.current.filter(Ce=>Ce!==ce);return}Ne.messages.push(q)}else{h([...p,De,q]),r(!1),o(!1),c.current=c.current.filter(Ce=>Ce!==ce);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ne}),h([...Ne.messages]);return}if(ie!=null&&ie.body){const q=ie.body.getReader();let Ne="";for(;;){_("Processing");const{done:we,value:Qt}=await q.read();if(we)break;var Vn=new TextDecoder("utf-8").decode(Qt);Vn.split(` -`).forEach(Ke=>{try{Ne+=Ke,xe=JSON.parse(Ne),xe.choices[0].messages.forEach(qn=>{qn.id=wi(),qn.date=new Date().toISOString()}),o(!1),xe.choices[0].messages.forEach(qn=>{J(qn,De,ge)}),Ne=""}catch{}})}let Ce;if(ge){if(Ce=(wr=(sn=e==null?void 0:e.state)==null?void 0:sn.chatHistory)==null?void 0:wr.find(we=>we.id===ge),!Ce){console.error("Conversation not found."),r(!1),o(!1),c.current=c.current.filter(we=>we!==ce);return}Fl(H)?Ce.messages.push(Y):Ce.messages.push(H,Y)}else Ce={id:xe.history_metadata.conversation_id,title:xe.history_metadata.title,messages:[De],date:xe.history_metadata.date},Fl(H)?Ce.messages.push(Y):Ce.messages.push(H,Y);if(!Ce){r(!1),o(!1),c.current=c.current.filter(we=>we!==ce);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ce}),Fl(H)?h([...p,Y]):h([...p,H,Y])}}catch{if(ce.signal.aborted)h([...p,De]);else{let q="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(L=xe.error)!=null&&L.message?q=xe.error.message:typeof xe.error=="string"&&(q=xe.error);let Ne={id:wi(),role:R,content:q,date:new Date().toISOString()},Ce;if(ge){if(Ce=(oe=(j=e==null?void 0:e.state)==null?void 0:j.chatHistory)==null?void 0:oe.find(we=>we.id===ge),!Ce){console.error("Conversation not found."),r(!1),o(!1),c.current=c.current.filter(we=>we!==ce);return}Ce.messages.push(Ne)}else{if(!xe.history_metadata){console.error("Error retrieving data.",xe),r(!1),o(!1),c.current=c.current.filter(we=>we!==ce);return}Ce={id:xe.history_metadata.conversation_id,title:xe.history_metadata.title,messages:[De],date:xe.history_metadata.date},Ce.messages.push(Ne)}if(!Ce){r(!1),o(!1),c.current=c.current.filter(we=>we!==ce);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ce}),h([...p,Ne])}}finally{r(!1),o(!1),c.current=c.current.filter(ie=>ie!==ce),_("Done")}return ce.abort()},K=async()=>{var re;T(!0),(re=e==null?void 0:e.state.currentChat)!=null&&re.id&&(e!=null&&e.state.isCosmosDBAvailable.cosmosDB)&&((await ow(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}),s(void 0),u(!1),h([])):(S({title:"Error clearing current chat",subtitle:"Please try again. If the problem persists, please contact the site administrator."}),C())),T(!1)},F=()=>{_("Processing"),h([]),u(!1),s(void 0),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:null}),_("Done")},b=()=>{c.current.forEach(re=>re.abort()),o(!1),r(!1)};E.useEffect(()=>{e!=null&&e.state.currentChat?h(e.state.currentChat.messages):h([])},[e==null?void 0:e.state.currentChat]),E.useLayoutEffect(()=>{var ge;const re=async(ce,De)=>await nw(ce,De);if(e&&e.state.currentChat&&v==="Done"){if(e.state.isCosmosDBAvailable.cosmosDB){if(!((ge=e==null?void 0:e.state.currentChat)!=null&&ge.messages)){console.error("Failure fetching current chat state.");return}re(e.state.currentChat.messages,e.state.currentChat.id).then(ce=>{var De,_e;if(!ce.ok){let qt="An error occurred. Answers can't be saved at this time. If the problem persists, please contact the site administrator.",xe={id:wi(),role:R,content:qt,date:new Date().toISOString()};if(!((De=e==null?void 0:e.state.currentChat)!=null&&De.messages))throw{...new Error,message:"Failure fetching current chat state."};h([...(_e=e==null?void 0:e.state.currentChat)==null?void 0:_e.messages,xe])}return ce}).catch(ce=>(console.error("Error: ",ce),{...new Response,ok:!1,status:500}))}e==null||e.dispatch({type:"UPDATE_CHAT_HISTORY",payload:e.state.currentChat}),h(e.state.currentChat.messages),_("Not Running")}},[v]),E.useEffect(()=>{X()},[]),E.useLayoutEffect(()=>{var re;(re=t.current)==null||re.scrollIntoView({behavior:"smooth"})},[i,v]);const at=re=>{s(re),u(!0)},ze=re=>{re.url&&!re.url.includes("blob.core")&&window.open(re.url,"_blank")},Dt=re=>{if(re!=null&&re.role&&(re==null?void 0:re.role)==="tool")try{return JSON.parse(re.content).citations}catch{return[]}return[]},pe=()=>n||p&&p.length===0||g||(e==null?void 0:e.state.chatHistoryLoadingState)===gn.Loading;return B("div",{className:ke.container,role:"main",children:d?fe(he,{className:ke.chatEmptyState,children:[B(VD,{className:ke.chatIcon,style:{color:"darkorange",height:"200px",width:"200px"}}),B("h1",{className:ke.chatEmptyStateTitle,children:"Authentication Not Configured"}),fe("h2",{className:ke.chatEmptyStateSubtitle,children:["This app does not have authentication configured. Please add an identity provider by finding your app in the",B("a",{href:"https://portal.azure.com/",target:"_blank",children:" Azure Portal "}),"and following",B("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"}),"."]}),B("h2",{className:ke.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:B("strong",{children:"Authentication configuration takes a few minutes to apply. "})}),B("h2",{className:ke.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:B("strong",{children:"If you deployed in the last 10 minutes, please wait and reload the page after 10 minutes."})})]}):fe(he,{horizontal:!0,className:ke.chatRoot,children:[fe("div",{className:ke.chatContainer,children:[!p||p.length<1?fe(he,{className:ke.chatEmptyState,children:[B("img",{src:C2,className:ke.chatIcon,"aria-hidden":"true"}),B("h1",{className:ke.chatEmptyStateTitle,children:"Start chatting"}),B("h2",{className:ke.chatEmptyStateSubtitle,children:"This chatbot is configured to answer your questions"})]}):fe("div",{className:ke.chatMessageStream,style:{marginBottom:n?"40px":"0px"},role:"log",children:[p.map((re,ge)=>B(Ta,{children:re.role==="user"?B("div",{className:ke.chatMessageUser,tabIndex:0,children:B("div",{className:ke.chatMessageUserMessage,children:re.content})}):re.role==="assistant"?B("div",{className:ke.chatMessageGpt,children:B(AT,{answer:{answer:re.content,citations:Dt(p[ge-1])},onCitationClicked:ce=>at(ce)})}):re.role===R?fe("div",{className:ke.chatMessageError,children:[fe(he,{horizontal:!0,className:ke.chatMessageErrorContent,children:[B(KD,{className:ke.errorIcon,style:{color:"rgba(182, 52, 67, 1)"}}),B("span",{children:"Error"})]}),B("span",{className:ke.chatMessageErrorContent,children:re.content})]}):null})),i&&B(Ta,{children:B("div",{className:ke.chatMessageGpt,children:B(AT,{answer:{answer:"Generating answer...",citations:[]},onCitationClicked:()=>null})})}),B("div",{ref:t})]}),fe(he,{horizontal:!0,className:ke.chatInput,children:[n&&fe(he,{horizontal:!0,className:ke.stopGeneratingContainer,role:"button","aria-label":"Stop generating",tabIndex:0,onClick:b,onKeyDown:re=>re.key==="Enter"||re.key===" "?b():null,children:[B(qD,{className:ke.stopGeneratingIcon,"aria-hidden":"true"}),B("span",{className:ke.stopGeneratingText,"aria-hidden":"true",children:"Stop generating"})]}),fe(he,{children:[((Ge=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:Ge.status)!==Un.NotConfigured&&B(Nu,{role:"button",styles:{icon:{color:"#FFFFFF"},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:"#BDBDBD"}},className:ke.newChatIcon,iconProps:{iconName:"Add"},onClick:F,disabled:pe(),"aria-label":"start a new chat button"}),B(Nu,{role:"button",styles:{icon:{color:"#FFFFFF"},root:{color:"#FFFFFF",background:pe()?"#BDBDBD":"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)",cursor:pe()?"":"pointer"}},className:((wt=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:wt.status)!==Un.NotConfigured?ke.clearChatBroom:ke.clearChatBroomNoCosmos,iconProps:{iconName:"Broom"},onClick:((bt=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:bt.status)!==Un.NotConfigured?K:F,disabled:pe(),"aria-label":"clear chat button"}),B($u,{hidden:y,onDismiss:O,dialogContentProps:A,modalProps:D})]}),B(C$,{clearOnSend:!0,placeholder:"Type a new question...",disabled:n,onSend:(re,ge)=>{var ce;(ce=e==null?void 0:e.state.isCosmosDBAvailable)!=null&&ce.cosmosDB?z(re,ge):M(re,ge)},conversationId:(mt=e==null?void 0:e.state.currentChat)!=null&&mt.id?(Ht=e==null?void 0:e.state.currentChat)==null?void 0:Ht.id:void 0})]})]}),p&&p.length>0&&l&&a&&fe(he.Item,{className:ke.citationPanel,tabIndex:0,role:"tabpanel","aria-label":"Citations Panel",children:[fe(he,{"aria-label":"Citations Panel Header Container",horizontal:!0,className:ke.citationPanelHeaderContainer,horizontalAlign:"space-between",verticalAlign:"center",children:[B("span",{"aria-label":"Citations",className:ke.citationPanelHeader,children:"Citations"}),B(ha,{iconProps:{iconName:"Cancel"},"aria-label":"Close citations panel",onClick:()=>u(!1)})]}),B("h5",{className:ke.citationPanelTitle,tabIndex:0,title:a.url&&!a.url.includes("blob.core")?a.url:a.title??"",onClick:()=>ze(a),children:a.title}),B("div",{tabIndex:0,children:B(lf,{linkTarget:"_blank",className:ke.citationPanelContent,children:a.content,remarkPlugins:[MC],rehypePlugins:[kz]})})]}),(e==null?void 0:e.state.isChatHistoryOpen)&&((In=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:In.status)!==Un.NotConfigured&&B(B$,{})]})})};LN();function U$(){return B(uw,{children:B(C7,{children:B(E7,{children:fe(Tc,{path:"/",element:B(cw,{}),children:[B(Tc,{index:!0,element:B(H$,{})}),B(Tc,{path:"*",element:B(dw,{})})]})})})})}r0.createRoot(document.getElementById("root")).render(B(En.StrictMode,{children:B(U$,{})}))});export default z$(); -//# sourceMappingURL=index-88c94d86.js.map +`)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var WC=uB;const Pv=no,Xh=cf,cB=WC;let dB=class extends Pv{constructor(t){super(t),this.tokenizer=t,this.posTracker=Pv.install(t.preprocessor,cB),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,o){n._createCharacterToken.call(this,i,o),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===Xh.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(Xh.MODE).forEach(i=>{const o=Xh.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var jC=dB;const fB=no;let hB=class extends fB{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 pB=hB;const Zh=no,Mv=cf,mB=jC,gB=pB,EB=Zr,Jh=EB.TAG_NAMES;let vB=class extends Zh{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===Mv.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=Zh.install(this.tokenizer,mB);t.posTracker=o.posTracker,Zh.install(this.openElements,gB,{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===Mv.END_TAG_TOKEN&&(r.tagName===Jh.HTML||r.tagName===Jh.BODY&&this.openElements.hasInScope(Jh.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))},df={};const{DOCUMENT_MODE:Ya}=Zr,YC="html",UB="about:legacy-compat",zB="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",qC=["+//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//"],GB=qC.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),KB=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],QC=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],WB=QC.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Lv(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Bv(e,t){for(let n=0;n-1)return Ya.QUIRKS;let r=t===null?GB:qC;if(Bv(n,r))return Ya.QUIRKS;if(r=t===null?QC:WB,Bv(n,r))return Ya.LIMITED_QUIRKS}return Ya.NO_QUIRKS};df.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Lv(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Lv(n)),r};var Yo={};const e0=cf,lg=Zr,ae=lg.TAG_NAMES,jt=lg.NAMESPACES,Ic=lg.ATTRS,Hv={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},jB="definitionurl",$B="definitionURL",VB={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"},YB={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:jt.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:jt.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:jt.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:jt.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:jt.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:jt.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:jt.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:jt.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:jt.XML},"xml:space":{prefix:"xml",name:"space",namespace:jt.XML},xmlns:{prefix:"",name:"xmlns",namespace:jt.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:jt.XMLNS}},qB=Yo.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"},QB={[ae.B]:!0,[ae.BIG]:!0,[ae.BLOCKQUOTE]:!0,[ae.BODY]:!0,[ae.BR]:!0,[ae.CENTER]:!0,[ae.CODE]:!0,[ae.DD]:!0,[ae.DIV]:!0,[ae.DL]:!0,[ae.DT]:!0,[ae.EM]:!0,[ae.EMBED]:!0,[ae.H1]:!0,[ae.H2]:!0,[ae.H3]:!0,[ae.H4]:!0,[ae.H5]:!0,[ae.H6]:!0,[ae.HEAD]:!0,[ae.HR]:!0,[ae.I]:!0,[ae.IMG]:!0,[ae.LI]:!0,[ae.LISTING]:!0,[ae.MENU]:!0,[ae.META]:!0,[ae.NOBR]:!0,[ae.OL]:!0,[ae.P]:!0,[ae.PRE]:!0,[ae.RUBY]:!0,[ae.S]:!0,[ae.SMALL]:!0,[ae.SPAN]:!0,[ae.STRONG]:!0,[ae.STRIKE]:!0,[ae.SUB]:!0,[ae.SUP]:!0,[ae.TABLE]:!0,[ae.TT]:!0,[ae.U]:!0,[ae.UL]:!0,[ae.VAR]:!0};Yo.causesExit=function(e){const t=e.tagName;return t===ae.FONT&&(e0.getTokenAttr(e,Ic.COLOR)!==null||e0.getTokenAttr(e,Ic.SIZE)!==null||e0.getTokenAttr(e,Ic.FACE)!==null)?!0:QB[t]};Yo.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=lH[i];if(o){this.insertionMode=o;break}else if(!n&&(i===m.TD||i===m.TH)){this.insertionMode=mf;break}else if(!n&&i===m.HEAD){this.insertionMode=Js;break}else if(i===m.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===m.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===m.HTML){this.insertionMode=this.headElement?hf:ff;break}else if(n){this.insertionMode=Ti;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===m.TEMPLATE)break;if(i===m.TABLE){this.insertionMode=dg;return}}this.insertionMode=cg}_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===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.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===m.TEMPLATE&&o===te.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===m.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 Oa.SPECIAL_ELEMENTS[r][n]}}var dH=cH;function fH(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):Br(e,t),n}function hH(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 pH(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>=sH;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=mH(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function mH(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 gH(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===m.TEMPLATE&&i===te.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function EH(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 _o(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==m.TEMPLATE&&e._err(Vt.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Vt.endTagWithoutMatchingOpenElement)}function Zl(e,t){e.openElements.pop(),e.insertionMode=hf,e._processToken(t)}function AH(e,t){const n=t.tagName;n===m.HTML?$n(e,t):n===m.BASEFONT||n===m.BGSOUND||n===m.HEAD||n===m.LINK||n===m.META||n===m.NOFRAMES||n===m.STYLE?Bt(e,t):n===m.NOSCRIPT?e._err(Vt.nestedNoscriptInHead):Jl(e,t)}function bH(e,t){const n=t.tagName;n===m.NOSCRIPT?(e.openElements.pop(),e.insertionMode=Js):n===m.BR?Jl(e,t):e._err(Vt.endTagWithoutMatchingOpenElement)}function Jl(e,t){const n=t.type===w.EOF_TOKEN?Vt.openElementsLeftAfterEof:Vt.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=Js,e._processToken(t)}function kH(e,t){const n=t.tagName;n===m.HTML?$n(e,t):n===m.BODY?(e._insertElement(t,te.HTML),e.framesetOk=!1,e.insertionMode=Ti):n===m.FRAMESET?(e._insertElement(t,te.HTML),e.insertionMode=gf):n===m.BASE||n===m.BASEFONT||n===m.BGSOUND||n===m.LINK||n===m.META||n===m.NOFRAMES||n===m.SCRIPT||n===m.STYLE||n===m.TEMPLATE||n===m.TITLE?(e._err(Vt.abandonedHeadElementChild),e.openElements.push(e.headElement),Bt(e,t),e.openElements.remove(e.headElement)):n===m.HEAD?e._err(Vt.misplacedStartTagForHeadElement):eu(e,t)}function FH(e,t){const n=t.tagName;n===m.BODY||n===m.HTML||n===m.BR?eu(e,t):n===m.TEMPLATE?La(e,t):e._err(Vt.endTagWithoutMatchingOpenElement)}function eu(e,t){e._insertFakeElement(m.BODY),e.insertionMode=Ti,e._processToken(t)}function na(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ac(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function IH(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function xH(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function NH(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,te.HTML),e.insertionMode=gf)}function Ni(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML)}function DH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6)&&e.openElements.pop(),e._insertElement(t,te.HTML)}function jv(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function wH(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML),n||(e.formElement=e.openElements.current))}function RH(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===m.LI&&o===m.LI?a=m.LI:(n===m.DD||n===m.DT)&&(o===m.DD||o===m.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==m.ADDRESS&&o!==m.DIV&&o!==m.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML)}function PH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML),e.tokenizer.state=w.MODE.PLAINTEXT}function MH(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML),e.framesetOk=!1}function OH(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(m.A);n&&(_o(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function qa(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function LH(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(_o(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $v(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function BH(e,t){e.treeAdapter.getDocumentMode(e.document)!==Oa.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML),e.framesetOk=!1,e.insertionMode=nn}function ts(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,te.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function HH(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,te.HTML);const n=w.getTokenAttr(t,XC.TYPE);(!n||n.toLowerCase()!==ZC)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Vv(e,t){e._appendElement(t,te.HTML),t.ackSelfClosing=!0}function UH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,te.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zH(e,t){t.tagName=m.IMG,ts(e,t)}function GH(e,t){e._insertElement(t,te.HTML),e.skipNextNewLine=!0,e.tokenizer.state=w.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Td}function KH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function WH(e,t){e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function Yv(e,t){e._switchToTextParsing(t,w.MODE.RAWTEXT)}function jH(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML),e.framesetOk=!1,e.insertionMode===nn||e.insertionMode===pf||e.insertionMode===Ar||e.insertionMode===Xi||e.insertionMode===mf?e.insertionMode=dg:e.insertionMode=cg}function qv(e,t){e.openElements.currentTagName===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML)}function Qv(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,te.HTML)}function $H(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,te.HTML)}function VH(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,te.HTML)}function YH(e,t){e._reconstructActiveFormattingElements(),fi.adjustTokenMathMLAttrs(t),fi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,te.MATHML):e._insertElement(t,te.MATHML),t.ackSelfClosing=!0}function qH(e,t){e._reconstructActiveFormattingElements(),fi.adjustTokenSVGAttrs(t),fi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,te.SVG):e._insertElement(t,te.SVG),t.ackSelfClosing=!0}function hr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,te.HTML)}function $n(e,t){const n=t.tagName;switch(n.length){case 1:n===m.I||n===m.S||n===m.B||n===m.U?qa(e,t):n===m.P?Ni(e,t):n===m.A?OH(e,t):hr(e,t);break;case 2:n===m.DL||n===m.OL||n===m.UL?Ni(e,t):n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6?DH(e,t):n===m.LI||n===m.DD||n===m.DT?RH(e,t):n===m.EM||n===m.TT?qa(e,t):n===m.BR?ts(e,t):n===m.HR?UH(e,t):n===m.RB?Qv(e,t):n===m.RT||n===m.RP?$H(e,t):n!==m.TH&&n!==m.TD&&n!==m.TR&&hr(e,t);break;case 3:n===m.DIV||n===m.DIR||n===m.NAV?Ni(e,t):n===m.PRE?jv(e,t):n===m.BIG?qa(e,t):n===m.IMG||n===m.WBR?ts(e,t):n===m.XMP?KH(e,t):n===m.SVG?qH(e,t):n===m.RTC?Qv(e,t):n!==m.COL&&hr(e,t);break;case 4:n===m.HTML?IH(e,t):n===m.BASE||n===m.LINK||n===m.META?Bt(e,t):n===m.BODY?xH(e,t):n===m.MAIN||n===m.MENU?Ni(e,t):n===m.FORM?wH(e,t):n===m.CODE||n===m.FONT?qa(e,t):n===m.NOBR?LH(e,t):n===m.AREA?ts(e,t):n===m.MATH?YH(e,t):n===m.MENU?VH(e,t):n!==m.HEAD&&hr(e,t);break;case 5:n===m.STYLE||n===m.TITLE?Bt(e,t):n===m.ASIDE?Ni(e,t):n===m.SMALL?qa(e,t):n===m.TABLE?BH(e,t):n===m.EMBED?ts(e,t):n===m.INPUT?HH(e,t):n===m.PARAM||n===m.TRACK?Vv(e,t):n===m.IMAGE?zH(e,t):n!==m.FRAME&&n!==m.TBODY&&n!==m.TFOOT&&n!==m.THEAD&&hr(e,t);break;case 6:n===m.SCRIPT?Bt(e,t):n===m.CENTER||n===m.FIGURE||n===m.FOOTER||n===m.HEADER||n===m.HGROUP||n===m.DIALOG?Ni(e,t):n===m.BUTTON?MH(e,t):n===m.STRIKE||n===m.STRONG?qa(e,t):n===m.APPLET||n===m.OBJECT?$v(e,t):n===m.KEYGEN?ts(e,t):n===m.SOURCE?Vv(e,t):n===m.IFRAME?WH(e,t):n===m.SELECT?jH(e,t):n===m.OPTION?qv(e,t):hr(e,t);break;case 7:n===m.BGSOUND?Bt(e,t):n===m.DETAILS||n===m.ADDRESS||n===m.ARTICLE||n===m.SECTION||n===m.SUMMARY?Ni(e,t):n===m.LISTING?jv(e,t):n===m.MARQUEE?$v(e,t):n===m.NOEMBED?Yv(e,t):n!==m.CAPTION&&hr(e,t);break;case 8:n===m.BASEFONT?Bt(e,t):n===m.FRAMESET?NH(e,t):n===m.FIELDSET?Ni(e,t):n===m.TEXTAREA?GH(e,t):n===m.TEMPLATE?Bt(e,t):n===m.NOSCRIPT?e.options.scriptingEnabled?Yv(e,t):hr(e,t):n===m.OPTGROUP?qv(e,t):n!==m.COLGROUP&&hr(e,t);break;case 9:n===m.PLAINTEXT?PH(e,t):hr(e,t);break;case 10:n===m.BLOCKQUOTE||n===m.FIGCAPTION?Ni(e,t):hr(e,t);break;default:hr(e,t)}}function QH(e){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=fg)}function XH(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=fg,e._processToken(t))}function ho(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function ZH(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):e.openElements.remove(n))}function JH(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(m.P),e._closePElement()}function eU(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function tU(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function nU(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xv(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function rU(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(m.BR),e.openElements.pop(),e.framesetOk=!1}function Br(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===m.A||n===m.B||n===m.I||n===m.S||n===m.U?_o(e,t):n===m.P?JH(e):Br(e,t);break;case 2:n===m.DL||n===m.UL||n===m.OL?ho(e,t):n===m.LI?eU(e):n===m.DD||n===m.DT?tU(e,t):n===m.H1||n===m.H2||n===m.H3||n===m.H4||n===m.H5||n===m.H6?nU(e):n===m.BR?rU(e):n===m.EM||n===m.TT?_o(e,t):Br(e,t);break;case 3:n===m.BIG?_o(e,t):n===m.DIR||n===m.DIV||n===m.NAV||n===m.PRE?ho(e,t):Br(e,t);break;case 4:n===m.BODY?QH(e):n===m.HTML?XH(e,t):n===m.FORM?ZH(e):n===m.CODE||n===m.FONT||n===m.NOBR?_o(e,t):n===m.MAIN||n===m.MENU?ho(e,t):Br(e,t);break;case 5:n===m.ASIDE?ho(e,t):n===m.SMALL?_o(e,t):Br(e,t);break;case 6:n===m.CENTER||n===m.FIGURE||n===m.FOOTER||n===m.HEADER||n===m.HGROUP||n===m.DIALOG?ho(e,t):n===m.APPLET||n===m.OBJECT?Xv(e,t):n===m.STRIKE||n===m.STRONG?_o(e,t):Br(e,t);break;case 7:n===m.ADDRESS||n===m.ARTICLE||n===m.DETAILS||n===m.SECTION||n===m.SUMMARY||n===m.LISTING?ho(e,t):n===m.MARQUEE?Xv(e,t):Br(e,t);break;case 8:n===m.FIELDSET?ho(e,t):n===m.TEMPLATE?La(e,t):Br(e,t);break;case 10:n===m.BLOCKQUOTE||n===m.FIGCAPTION?ho(e,t):Br(e,t);break;default:Br(e,t)}}function Di(e,t){e.tmplInsertionModeStackTop>-1?s8(e,t):e.stopped=!0}function iU(e,t){t.tagName===m.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function oU(e,t){e._err(Vt.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function wi(e,t){const n=e.openElements.currentTagName;n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=t8,e._processToken(t)):mr(e,t)}function aU(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,te.HTML),e.insertionMode=pf}function sU(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,te.HTML),e.insertionMode=s1}function lU(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.COLGROUP),e.insertionMode=s1,e._processToken(t)}function uU(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,te.HTML),e.insertionMode=Ar}function cU(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.TBODY),e.insertionMode=Ar,e._processToken(t)}function dU(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processToken(t))}function fU(e,t){const n=w.getTokenAttr(t,XC.TYPE);n&&n.toLowerCase()===ZC?e._appendElement(t,te.HTML):mr(e,t),t.ackSelfClosing=!0}function hU(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,te.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function pg(e,t){const n=t.tagName;switch(n.length){case 2:n===m.TD||n===m.TH||n===m.TR?cU(e,t):mr(e,t);break;case 3:n===m.COL?lU(e,t):mr(e,t);break;case 4:n===m.FORM?hU(e,t):mr(e,t);break;case 5:n===m.TABLE?dU(e,t):n===m.STYLE?Bt(e,t):n===m.TBODY||n===m.TFOOT||n===m.THEAD?uU(e,t):n===m.INPUT?fU(e,t):mr(e,t);break;case 6:n===m.SCRIPT?Bt(e,t):mr(e,t);break;case 7:n===m.CAPTION?aU(e,t):mr(e,t);break;case 8:n===m.COLGROUP?sU(e,t):n===m.TEMPLATE?Bt(e,t):mr(e,t);break;default:mr(e,t)}}function mg(e,t){const n=t.tagName;n===m.TABLE?e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode()):n===m.TEMPLATE?La(e,t):n!==m.BODY&&n!==m.CAPTION&&n!==m.COL&&n!==m.COLGROUP&&n!==m.HTML&&n!==m.TBODY&&n!==m.TD&&n!==m.TFOOT&&n!==m.TH&&n!==m.THEAD&&n!==m.TR&&mr(e,t)}function mr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function pU(e,t){e.pendingCharacterTokens.push(t)}function mU(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function bl(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function NU(e,t){t.tagName===m.HTML?$n(e,t):Cd(e,t)}function DU(e,t){t.tagName===m.HTML?e.fragmentContext||(e.insertionMode=r8):Cd(e,t)}function Cd(e,t){e.insertionMode=Ti,e._processToken(t)}function wU(e,t){const n=t.tagName;n===m.HTML?$n(e,t):n===m.FRAMESET?e._insertElement(t,te.HTML):n===m.FRAME?(e._appendElement(t,te.HTML),t.ackSelfClosing=!0):n===m.NOFRAMES&&Bt(e,t)}function RU(e,t){t.tagName===m.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==m.FRAMESET&&(e.insertionMode=n8))}function PU(e,t){const n=t.tagName;n===m.HTML?$n(e,t):n===m.NOFRAMES&&Bt(e,t)}function MU(e,t){t.tagName===m.HTML&&(e.insertionMode=i8)}function OU(e,t){t.tagName===m.HTML?$n(e,t):xc(e,t)}function xc(e,t){e.insertionMode=Ti,e._processToken(t)}function LU(e,t){const n=t.tagName;n===m.HTML?$n(e,t):n===m.NOFRAMES&&Bt(e,t)}function BU(e,t){t.chars=iH.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function HU(e,t){e._insertCharacters(t),e.framesetOk=!1}function UU(e,t){if(fi.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==te.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===te.MATHML?fi.adjustTokenMathMLAttrs(t):r===te.SVG&&(fi.adjustTokenSVGTagName(t),fi.adjustTokenSVGAttrs(t)),fi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function zU(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===te.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Zv=/[#.]/g;function GU(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 x=A;if(x.value.stitch&&P!==null&&D!==null)return P.children[D]=x.value.stitch,D}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const A={nodeName:"template",tagName:"template",attrs:[],namespaceURI:wu.html,childNodes:[]},D={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:wu.html,childNodes:[]},P={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(D,A),i._pushTmplInsertionMode(hz),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),S(),i._adoptNodes(D.childNodes[0],P),P}function p(){const A=i.treeAdapter.createDocument();if(i._bootstrap(A,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,c=s.__mixins[0],u=c.posTracker,o(e),S(),A}function h(A){let D=-1;if(A)for(;++Dh8(t,n,e)}function Iz(){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 Ri=Iz,xz=typeof global=="object"&&global&&global.Object===Object&&global;const p8=xz;var Nz=typeof self=="object"&&self&&self.Object===Object&&self,Dz=p8||Nz||Function("return this")();const Si=Dz;var wz=Si.Symbol;const Gs=wz;var m8=Object.prototype,Rz=m8.hasOwnProperty,Pz=m8.toString,kl=Gs?Gs.toStringTag:void 0;function Mz(e){var t=Rz.call(e,kl),n=e[kl];try{e[kl]=void 0;var r=!0}catch{}var i=Pz.call(e);return r&&(t?e[kl]=n:delete e[kl]),i}var Oz=Object.prototype,Lz=Oz.toString;function Bz(e){return Lz.call(e)}var Hz="[object Null]",Uz="[object Undefined]",nT=Gs?Gs.toStringTag:void 0;function l1(e){return e==null?e===void 0?Uz:Hz:nT&&nT in Object(e)?Mz(e):Bz(e)}function u1(e){return e!=null&&typeof e=="object"}var zz=Array.isArray;const Ef=zz;function c1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gz="[object AsyncFunction]",Kz="[object Function]",Wz="[object GeneratorFunction]",jz="[object Proxy]";function g8(e){if(!c1(e))return!1;var t=l1(e);return t==Kz||t==Wz||t==Gz||t==jz}var $z=Si["__core-js_shared__"];const t0=$z;var rT=function(){var e=/[^.]+$/.exec(t0&&t0.keys&&t0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vz(e){return!!rT&&rT in e}var Yz=Function.prototype,qz=Yz.toString;function Ba(e){if(e!=null){try{return qz.call(e)}catch{}try{return e+""}catch{}}return""}var Qz=/[\\^$.*+?()[\]{}|]/g,Xz=/^\[object .+?Constructor\]$/,Zz=Function.prototype,Jz=Object.prototype,eG=Zz.toString,tG=Jz.hasOwnProperty,nG=RegExp("^"+eG.call(tG).replace(Qz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rG(e){if(!c1(e)||Vz(e))return!1;var t=g8(e)?nG:Xz;return t.test(Ba(e))}function iG(e,t){return e==null?void 0:e[t]}function Ha(e,t){var n=iG(e,t);return rG(n)?n:void 0}var oG=Ha(Si,"WeakMap");const kp=oG;var iT=Object.create,aG=function(){function e(){}return function(t){if(!c1(t))return{};if(iT)return iT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const sG=aG;function lG(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e-1&&e%1==0&&e<=gG}function vg(e){return e!=null&&y8(e.length)&&!g8(e)}var EG=Object.prototype;function Tf(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||EG;return e===n}function vG(e,t){for(var n=-1,r=Array(e);++n-1}function xK(e,t){var n=this.__data__,r=yf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ro(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{let s=a.slice(r,a.length-1),l=bj(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))}),{citations:i,markdownFormatText:t}}function p$(){return e=>{zs(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)}),zs(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 AT=({answer:e,onCitationClicked:t})=>{const[n,{toggle:r}]=ju(!1),i=50,o=E.useMemo(()=>h$(e),[e]),[a,s]=E.useState(n),l=()=>{s(!a),r()};E.useEffect(()=>{s(n)},[n]);const u=(c,d,f=!1)=>{let p="";if(c.filepath&&c.chunk_id)if(f&&c.filepath.length>i){const h=c.filepath.length;p=`${c.filepath.substring(0,20)}...${c.filepath.substring(h-20)} - Part ${parseInt(c.chunk_id)+1}`}else p=`${c.filepath} - Part ${parseInt(c.chunk_id)+1}`;else c.filepath&&c.reindex_id?p=`${c.filepath} - Part ${c.reindex_id}`:p=`Citation ${d}`;return p};return B(ya,{children:fe(me,{className:Pi.answerContainer,tabIndex:0,children:[B(me.Item,{grow:!0,children:B(lf,{linkTarget:"_blank",remarkPlugins:[MC,p$],children:o.markdownFormatText,className:Pi.answerText})}),fe(me,{horizontal:!0,className:Pi.answerFooter,children:[!!o.citations.length&&B(me.Item,{onKeyDown:c=>c.key==="Enter"||c.key===" "?r():null,children:B(me,{style:{width:"100%"},children:fe(me,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",children:[B(Io,{className:Pi.accordionTitle,onClick:r,"aria-label":"Open references",tabIndex:0,role:"button",children:B("span",{children:o.citations.length>1?o.citations.length+" references":"1 reference"})}),B(md,{className:Pi.accordionIcon,onClick:l,iconName:a?"ChevronDown":"ChevronRight"})]})})}),B(me.Item,{className:Pi.answerDisclaimerContainer,children:B("span",{className:Pi.answerDisclaimer,children:"AI-generated content may be incorrect"})})]}),a&&B("div",{style:{marginTop:8,display:"flex",flexFlow:"wrap column",maxHeight:"150px",gap:"4px"},children:o.citations.map((c,d)=>fe("span",{title:u(c,++d),tabIndex:0,role:"link",onClick:()=>t(c),onKeyDown:f=>f.key==="Enter"||f.key===" "?t(c):null,className:Pi.citationContainer,"aria-label":u(c,d),children:[B("div",{className:Pi.citation,children:d}),u(c,d,!0)]},d))})]})})},m$="/assets/Send-d0601aaa.svg",g$="_questionInputContainer_pe9s7_1",E$="_questionInputTextArea_pe9s7_13",v$="_questionInputSendButtonContainer_pe9s7_22",T$="_questionInputSendButton_pe9s7_22",y$="_questionInputSendButtonDisabled_pe9s7_33",_$="_questionInputBottomBorder_pe9s7_41",C$="_questionInputOptionsButton_pe9s7_52",Qa={questionInputContainer:g$,questionInputTextArea:E$,questionInputSendButtonContainer:v$,questionInputSendButton:T$,questionInputSendButtonDisabled:y$,questionInputBottomBorder:_$,questionInputOptionsButton:C$},S$=({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=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),s())},u=(d,f)=>{a(f||"")},c=t||!o.trim();return fe(me,{horizontal:!0,className:Qa.questionInputContainer,children:[B($m,{className:Qa.questionInputTextArea,placeholder:n,multiline:!0,resizable:!1,borderless:!0,value:o,onChange:u,onKeyDown:l}),B("div",{className:Qa.questionInputSendButtonContainer,role:"button",tabIndex:0,"aria-label":"Ask question button",onClick:s,onKeyDown:d=>d.key==="Enter"||d.key===" "?s():null,children:c?B(jD,{className:Qa.questionInputSendButtonDisabled}):B("img",{src:m$,className:Qa.questionInputSendButton})}),B("div",{className:Qa.questionInputBottomBorder})]})},A$="_container_1qjpx_1",b$="_listContainer_1qjpx_7",k$="_itemCell_1qjpx_12",F$="_itemButton_1qjpx_29",I$="_chatGroup_1qjpx_46",x$="_spinnerContainer_1qjpx_51",N$="_chatList_1qjpx_58",D$="_chatMonth_1qjpx_62",w$="_chatTitle_1qjpx_69",yr={container:A$,listContainer:b$,itemCell:k$,itemButton:F$,chatGroup:I$,spinnerContainer:x$,chatList:N$,chatMonth:D$,chatTitle:w$},R$=e=>{const n=new Date().getFullYear(),[r,i]=e.split(" ");return parseInt(i)===n?r:e},P$=({item:e,onSelect:t})=>{var H,z,J;const[n,r]=E.useState(!1),[i,o]=E.useState(!1),[a,s]=E.useState(""),[l,{toggle:u}]=ju(!0),[c,d]=E.useState(!1),[f,p]=E.useState(!1),[h,v]=E.useState(void 0),[_,g]=E.useState(!1),T=E.useRef(null),y=E.useContext(Pa),C=(e==null?void 0:e.id)===((H=y==null?void 0:y.state.currentChat)==null?void 0:H.id),k={type:pi.close,title:"Are you sure you want to delete this item?",closeButtonAriaLabel:"Close",subText:"The history of this chat session will permanently removed."},S={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}};if(!e)return null;E.useEffect(()=>{_&&T.current&&(T.current.focus(),g(!1))},[_]),E.useEffect(()=>{var R;((R=y==null?void 0:y.state.currentChat)==null?void 0:R.id)!==(e==null?void 0:e.id)&&(o(!1),s(""))},[(z=y==null?void 0:y.state.currentChat)==null?void 0:z.id,e==null?void 0:e.id]);const A=async()=>{(await rw(e.id)).ok?y==null||y.dispatch({type:"DELETE_CHAT_ENTRY",payload:e.id}):(d(!0),setTimeout(()=>{d(!1)},5e3)),u()},D=()=>{o(!0),g(!0),s(e==null?void 0:e.title)},P=()=>{t(e),y==null||y.dispatch({type:"UPDATE_CURRENT_CHAT",payload:e})},x=((J=e==null?void 0:e.title)==null?void 0:J.length)>28?`${e.title.substring(0,28)} ...`:e.title,O=async R=>{if(R.preventDefault(),h||f)return;if(a==e.title){v("Error: Enter a new title to proceed."),setTimeout(()=>{v(void 0),g(!0),T.current&&T.current.focus()},5e3);return}p(!0),(await aw(e.id,a)).ok?(p(!1),o(!1),y==null||y.dispatch({type:"UPDATE_CHAT_TITLE",payload:{...e,title:a}}),s("")):(v("Error: could not rename item"),setTimeout(()=>{g(!0),v(void 0),T.current&&T.current.focus()},5e3))},M=R=>{s(R.target.value)},Q=()=>{o(!1),s("")},Z=R=>{if(R.key==="Enter")return O(R);if(R.key==="Escape"){Q();return}};return fe(me,{tabIndex:0,"aria-label":"chat history item",className:yr.itemCell,onClick:()=>P(),onKeyDown:R=>R.key==="Enter"||R.key===" "?P():null,verticalAlign:"center",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),styles:{root:{backgroundColor:C?"#e6e6e6":"transparent"}},children:[i?B(ya,{children:B(me.Item,{style:{width:"100%"},children:fe("form",{"aria-label":"edit title form",onSubmit:R=>O(R),style:{padding:"5px 0px"},children:[fe(me,{horizontal:!0,verticalAlign:"start",children:[B(me.Item,{children:B($m,{componentRef:T,autoFocus:_,value:a,placeholder:e.title,onChange:M,onKeyDown:Z,disabled:!!h})}),a&&B(me.Item,{children:fe(me,{"aria-label":"action button group",horizontal:!0,verticalAlign:"center",children:[B(pa,{role:"button",disabled:h!==void 0,onKeyDown:R=>R.key===" "||R.key==="Enter"?O(R):null,onClick:R=>O(R),"aria-label":"confirm new title",iconProps:{iconName:"CheckMark"},styles:{root:{color:"green",marginLeft:"5px"}}}),B(pa,{role:"button",disabled:h!==void 0,onKeyDown:R=>R.key===" "||R.key==="Enter"?Q():null,onClick:()=>Q(),"aria-label":"cancel edit title",iconProps:{iconName:"Cancel"},styles:{root:{color:"red",marginLeft:"5px"}}})]})})]}),h&&B(Io,{role:"alert","aria-label":h,style:{fontSize:12,fontWeight:400,color:"rgb(164,38,44)"},children:h})]})})}):B(ya,{children:fe(me,{horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[B("div",{className:yr.chatTitle,children:x}),(C||n)&&fe(me,{horizontal:!0,horizontalAlign:"end",children:[B(pa,{className:yr.itemButton,iconProps:{iconName:"Delete"},title:"Delete",onClick:u,onKeyDown:R=>R.key===" "?u():null}),B(pa,{className:yr.itemButton,iconProps:{iconName:"Edit"},title:"Edit",onClick:D,onKeyDown:R=>R.key===" "?D():null})]})]})}),c&&B(Io,{styles:{root:{color:"red",marginTop:5,fontSize:14}},children:"Error: could not delete item"}),B($u,{hidden:l,onDismiss:u,dialogContentProps:k,modalProps:S,children:fe(Vm,{children:[B(d2,{onClick:A,text:"Delete"}),B(Xd,{onClick:u,text:"Cancel"})]})})]},e.id)},M$=({groupedChatHistory:e})=>{const t=E.useContext(Pa),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=>B(P$,{item:h,onSelect:()=>d(h)});E.useEffect(()=>{if(c.current){c.current=!1;return}p(),o(h=>h+=25)},[a]);const p=async()=>{const h=t==null?void 0:t.state.chatHistory;u(!0),await b2(i).then(v=>{const _=h&&v&&h.concat(...v);return v?t==null||t.dispatch({type:"FETCH_CHAT_HISTORY",payload:_||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(_=>_+=1)},{threshold:1});return n.current&&h.observe(n.current),()=>{n.current&&h.unobserve(n.current)}},[n]),fe("div",{className:yr.listContainer,"data-is-scrollable":!0,children:[e.map(h=>h.entries.length>0&&fe(me,{horizontalAlign:"start",verticalAlign:"center",className:yr.chatGroup,"aria-label":`chat history group: ${h.month}`,children:[B(me,{"aria-label":h.month,className:yr.chatMonth,children:R$(h.month)}),B(Rx,{"aria-label":"chat history list",items:h.entries,onRenderCell:f,className:yr.chatList}),B("div",{ref:n}),B(E2,{styles:{root:{width:"100%",position:"relative","::before":{backgroundColor:"#d6d6d6"}}}})]},h.month)),l&&B("div",{className:yr.spinnerContainer,children:B(h2,{size:Wr.small,"aria-label":"loading more chat history",className:yr.spinner})})]})},O$=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},L$=()=>{const e=E.useContext(Pa),t=e==null?void 0:e.state.chatHistory;vn.useEffect(()=>{},[e==null?void 0:e.state.chatHistory]);let n;if(t&&t.length>0)n=O$(t);else return B(me,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:B(Ao,{children:B(Io,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:B("span",{children:"No chat history."})})})});return B(M$,{groupedChatHistory:n})},bT={root:{padding:"0",display:"flex",justifyContent:"center",backgroundColor:"transparent"}},B$={root:{height:"50px"}};function H$(e){var T,y,C;const t=E.useContext(Pa),[n,r]=vn.useState(!1),[i,{toggle:o}]=ju(!0),[a,s]=vn.useState(!1),[l,u]=vn.useState(!1),c={type:pi.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"}}],p=()=>{t==null||t.dispatch({type:"TOGGLE_CHAT_HISTORY"})},h=vn.useCallback(k=>{k.preventDefault(),r(!0)},[]),v=vn.useCallback(()=>r(!1),[]),_=async()=>{s(!0),(await iw()).ok?(t==null||t.dispatch({type:"DELETE_CHAT_HISTORY"}),o()):u(!0),s(!1)},g=()=>{o(),setTimeout(()=>{u(!1)},2e3)};return vn.useEffect(()=>{},[t==null?void 0:t.state.chatHistory,l]),fe("section",{className:yr.container,"data-is-scrollable":!0,"aria-label":"chat history panel",children:[fe(me,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",wrap:!0,"aria-label":"chat history header",children:[B(Ao,{children:B(Io,{role:"heading","aria-level":2,style:{alignSelf:"center",fontWeight:"600",fontSize:"18px",marginRight:"auto",paddingLeft:"20px"},children:"Chat history"})}),B(me,{verticalAlign:"start",children:fe(me,{horizontal:!0,styles:B$,children:[B(Nu,{iconProps:{iconName:"More"},title:"Clear all chat history",onClick:h,"aria-label":"clear all chat history",styles:bT,role:"button",id:"moreButton"}),B(gd,{items:f,hidden:!n,target:"#moreButton",onItemClick:o,onDismiss:v}),B(Nu,{iconProps:{iconName:"Cancel"},title:"Hide",onClick:p,"aria-label":"hide button",styles:bT,role:"button"})]})})]}),B(me,{"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(me,{className:yr.chatHistoryListContainer,children:[(t==null?void 0:t.state.chatHistoryLoadingState)===En.Success&&(t==null?void 0:t.state.isCosmosDBAvailable.cosmosDB)&&B(L$,{}),(t==null?void 0:t.state.chatHistoryLoadingState)===En.Fail&&(t==null?void 0:t.state.isCosmosDBAvailable)&&B(ya,{children:B(me,{children:fe(me,{horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[B(Ao,{children:fe(Io,{style:{alignSelf:"center",fontWeight:"400",fontSize:16},children:[((T=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:T.status)&&B("span",{children:(y=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:y.status}),!((C=t==null?void 0:t.state.isCosmosDBAvailable)!=null&&C.status)&&B("span",{children:"Error loading chat history"})]})}),B(Ao,{children:B(Io,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:B("span",{children:"Chat history can't be saved at this time"})})})]})})}),(t==null?void 0:t.state.chatHistoryLoadingState)===En.Loading&&B(ya,{children:B(me,{children:fe(me,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[B(Ao,{style:{justifyContent:"center",alignItems:"center"},children:B(h2,{style:{alignSelf:"flex-start",height:"100%",marginRight:"5px"},size:Wr.medium})}),B(Ao,{children:B(Io,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:B("span",{style:{whiteSpace:"pre-wrap"},children:"Loading chat history"})})})]})})})]})}),B($u,{hidden:i,onDismiss:a?()=>{}:g,dialogContentProps:c,modalProps:d,children:fe(Vm,{children:[!l&&B(d2,{onClick:_,disabled:a,text:"Clear All"}),B(Xd,{onClick:g,disabled:a,text:l?"Close":"Cancel"})]})})]})}const U$=()=>{var Pt,Ft,Et,zt,xn,Vn,Dr;const e=E.useContext(Pa),t=((Pt=e==null?void 0:e.state.frontendSettings)==null?void 0:Pt.auth_enabled)==="true",n=E.useRef(null),[r,i]=E.useState(!1),[o,a]=E.useState(!1),[s,l]=E.useState(),[u,c]=E.useState(!1),d=E.useRef([]),[f,p]=E.useState(!0),[h,v]=E.useState([]),[_,g]=E.useState("Not Running"),[T,y]=E.useState(!1),[C,{toggle:k}]=ju(!0),[S,A]=E.useState(),D={type:pi.close,title:S==null?void 0:S.title,closeButtonAriaLabel:"Close",subText:S==null?void 0:S.subtitle},P={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},[x,O,M]=["assistant","tool","error"];E.useEffect(()=>{var re;if(((re=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:re.status)===Un.NotWorking&&e.state.chatHistoryLoadingState===En.Fail&&C){let he=`${e.state.isCosmosDBAvailable.status}. Please contact the site administrator.`;A({title:"Chat history is not enabled",subtitle:he}),k()}},[e==null?void 0:e.state.isCosmosDBAvailable]);const Q=()=>{k(),setTimeout(()=>{A(null)},500)};E.useEffect(()=>{i((e==null?void 0:e.state.chatHistoryLoadingState)===En.Loading)},[e==null?void 0:e.state.chatHistoryLoadingState]);const Z=async()=>{if(!t){p(!1);return}(await ew()).length===0&&window.location.hostname!=="127.0.0.1"?p(!0):p(!1)};let H={},z={},J="";const R=(re,he,le)=>{re.role===x&&(J+=re.content,H=re,H.content=J),re.role===O&&(z=re),le?Fl(z)?v([...h,H]):v([...h,z,H]):Fl(z)?v([...h,he,H]):v([...h,he,z,H])},G=async(re,he)=>{var fr,wr;i(!0),a(!0);const le=new AbortController;d.current.unshift(le);const Ve={id:Ri(),role:"user",content:re,date:new Date().toISOString()};let Me;if(!he)Me={id:he??Ri(),title:re,messages:[Ve],date:new Date().toISOString()};else if(Me=(fr=e==null?void 0:e.state)==null?void 0:fr.currentChat,Me)Me.messages.push(Ve);else{console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(At=>At!==le);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Me}),v(Me.messages);const Gt={messages:[...Me.messages.filter(At=>At.role!==M)]};let Ie={};try{const At=await JD(Gt,le.signal);if(At!=null&&At.body){const ln=At.body.getReader();let L="";for(;;){g("Processing");const{done:j,value:ie}=await ln.read();if(j)break;var Xt=new TextDecoder("utf-8").decode(ie);Xt.split(` +`).forEach(q=>{try{L+=q,Ie=JSON.parse(L),Ie.choices[0].messages.forEach(de=>{de.id=Ri(),de.date=new Date().toISOString()}),a(!1),Ie.choices[0].messages.forEach(de=>{R(de,Ve,he)}),L=""}catch{}})}Me.messages.push(z,H),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Me}),v([...h,z,H])}}catch{if(le.signal.aborted)v([...h,Ve]);else{let ln="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(wr=Ie.error)!=null&&wr.message?ln=Ie.error.message:typeof Ie.error=="string"&&(ln=Ie.error);let L={id:Ri(),role:M,content:ln,date:new Date().toISOString()};Me.messages.push(L),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Me}),v([...h,L])}}finally{i(!1),a(!1),d.current=d.current.filter(At=>At!==le),g("Done")}return le.abort()},K=async(re,he)=>{var fr,wr,At,ln,L,j,ie,pe,q;i(!0),a(!0);const le=new AbortController;d.current.unshift(le);const Ve={id:Ri(),role:"user",content:re,date:new Date().toISOString()};let Me,Gt;if(he)if(Gt=(wr=(fr=e==null?void 0:e.state)==null?void 0:fr.chatHistory)==null?void 0:wr.find(de=>de.id===he),Gt)Gt.messages.push(Ve),Me={messages:[...Gt.messages.filter(de=>de.role!==M)]};else{console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(de=>de!==le);return}else Me={messages:[Ve].filter(de=>de.role!==M)},v(Me.messages);let Ie={};try{const de=he?await $E(Me,le.signal,he):await $E(Me,le.signal);if(!(de!=null&&de.ok)){let _t={id:Ri(),role:M,content:"There was an error generating a response. Chat history can't be saved at this time. If the problem persists, please contact the site administrator.",date:new Date().toISOString()},ze;if(he){if(ze=(ln=(At=e==null?void 0:e.state)==null?void 0:At.chatHistory)==null?void 0:ln.find(Ee=>Ee.id===he),!ze){console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(Ee=>Ee!==le);return}ze.messages.push(_t)}else{v([...h,Ve,_t]),i(!1),a(!1),d.current=d.current.filter(Ee=>Ee!==le);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:ze}),v([...ze.messages]);return}if(de!=null&&de.body){const _t=de.body.getReader();let ze="";for(;;){g("Processing");const{done:Ye,value:Ge}=await _t.read();if(Ye)break;var Xt=new TextDecoder("utf-8").decode(Ge);Xt.split(` +`).forEach(ut=>{try{ze+=ut,Ie=JSON.parse(ze),Ie.choices[0].messages.forEach(Jr=>{Jr.id=Ri(),Jr.date=new Date().toISOString()}),a(!1),Ie.choices[0].messages.forEach(Jr=>{R(Jr,Ve,he)}),ze=""}catch{}})}let Ee;if(he){if(Ee=(j=(L=e==null?void 0:e.state)==null?void 0:L.chatHistory)==null?void 0:j.find(Ye=>Ye.id===he),!Ee){console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(Ye=>Ye!==le);return}Fl(z)?Ee.messages.push(H):Ee.messages.push(z,H)}else Ee={id:Ie.history_metadata.conversation_id,title:Ie.history_metadata.title,messages:[Ve],date:Ie.history_metadata.date},Fl(z)?Ee.messages.push(H):Ee.messages.push(z,H);if(!Ee){i(!1),a(!1),d.current=d.current.filter(Ye=>Ye!==le);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ee}),Fl(z)?v([...h,H]):v([...h,z,H])}}catch{if(le.signal.aborted)v([...h,Ve]);else{let _t="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(ie=Ie.error)!=null&&ie.message?_t=Ie.error.message:typeof Ie.error=="string"&&(_t=Ie.error);let ze={id:Ri(),role:M,content:_t,date:new Date().toISOString()},Ee;if(he){if(Ee=(q=(pe=e==null?void 0:e.state)==null?void 0:pe.chatHistory)==null?void 0:q.find(Ye=>Ye.id===he),!Ee){console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(Ye=>Ye!==le);return}Ee.messages.push(ze)}else{if(!Ie.history_metadata){console.error("Error retrieving data.",Ie),i(!1),a(!1),d.current=d.current.filter(Ye=>Ye!==le);return}Ee={id:Ie.history_metadata.conversation_id,title:Ie.history_metadata.title,messages:[Ve],date:Ie.history_metadata.date},Ee.messages.push(ze)}if(!Ee){i(!1),a(!1),d.current=d.current.filter(Ye=>Ye!==le);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ee}),v([...h,ze])}}finally{i(!1),a(!1),d.current=d.current.filter(de=>de!==le),g("Done")}return le.abort()},F=async()=>{var re;y(!0),(re=e==null?void 0:e.state.currentChat)!=null&&re.id&&(e!=null&&e.state.isCosmosDBAvailable.cosmosDB)&&((await ow(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}),l(void 0),c(!1),v([])):(A({title:"Error clearing current chat",subtitle:"Please try again. If the problem persists, please contact the site administrator."}),k())),y(!1)},b=()=>{g("Processing"),v([]),c(!1),l(void 0),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:null}),g("Done")},Je=()=>{d.current.forEach(re=>re.abort()),a(!1),i(!1)};E.useEffect(()=>{e!=null&&e.state.currentChat?v(e.state.currentChat.messages):v([])},[e==null?void 0:e.state.currentChat]),E.useLayoutEffect(()=>{var he;const re=async(le,Ve)=>await nw(le,Ve);if(e&&e.state.currentChat&&_==="Done"){if(e.state.isCosmosDBAvailable.cosmosDB){if(!((he=e==null?void 0:e.state.currentChat)!=null&&he.messages)){console.error("Failure fetching current chat state.");return}re(e.state.currentChat.messages,e.state.currentChat.id).then(le=>{var Ve,Me;if(!le.ok){let Gt="An error occurred. Answers can't be saved at this time. If the problem persists, please contact the site administrator.",Ie={id:Ri(),role:M,content:Gt,date:new Date().toISOString()};if(!((Ve=e==null?void 0:e.state.currentChat)!=null&&Ve.messages))throw{...new Error,message:"Failure fetching current chat state."};v([...(Me=e==null?void 0:e.state.currentChat)==null?void 0:Me.messages,Ie])}return le}).catch(le=>(console.error("Error: ",le),{...new Response,ok:!1,status:500}))}e==null||e.dispatch({type:"UPDATE_CHAT_HISTORY",payload:e.state.currentChat}),v(e.state.currentChat.messages),g("Not Running")}},[_]),E.useEffect(()=>{t!==void 0&&Z()},[t]),E.useLayoutEffect(()=>{var re;(re=n.current)==null||re.scrollIntoView({behavior:"smooth"})},[o,_]);const Ue=re=>{l(re),c(!0)},Rt=re=>{re.url&&!re.url.includes("blob.core")&&window.open(re.url,"_blank")},_e=re=>{if(re!=null&&re.role&&(re==null?void 0:re.role)==="tool")try{return JSON.parse(re.content).citations}catch{return[]}return[]},Ne=()=>r||h&&h.length===0||T||(e==null?void 0:e.state.chatHistoryLoadingState)===En.Loading;return B("div",{className:ke.container,role:"main",children:f?fe(me,{className:ke.chatEmptyState,children:[B(VD,{className:ke.chatIcon,style:{color:"darkorange",height:"200px",width:"200px"}}),B("h1",{className:ke.chatEmptyStateTitle,children:"Authentication Not Configured"}),fe("h2",{className:ke.chatEmptyStateSubtitle,children:["This app does not have authentication configured. Please add an identity provider by finding your app in the",B("a",{href:"https://portal.azure.com/",target:"_blank",children:" Azure Portal "}),"and following",B("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"}),"."]}),B("h2",{className:ke.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:B("strong",{children:"Authentication configuration takes a few minutes to apply. "})}),B("h2",{className:ke.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:B("strong",{children:"If you deployed in the last 10 minutes, please wait and reload the page after 10 minutes."})})]}):fe(me,{horizontal:!0,className:ke.chatRoot,children:[fe("div",{className:ke.chatContainer,children:[!h||h.length<1?fe(me,{className:ke.chatEmptyState,children:[B("img",{src:C2,className:ke.chatIcon,"aria-hidden":"true"}),B("h1",{className:ke.chatEmptyStateTitle,children:"Start chatting"}),B("h2",{className:ke.chatEmptyStateSubtitle,children:"This chatbot is configured to answer your questions"})]}):fe("div",{className:ke.chatMessageStream,style:{marginBottom:r?"40px":"0px"},role:"log",children:[h.map((re,he)=>B(ya,{children:re.role==="user"?B("div",{className:ke.chatMessageUser,tabIndex:0,children:B("div",{className:ke.chatMessageUserMessage,children:re.content})}):re.role==="assistant"?B("div",{className:ke.chatMessageGpt,children:B(AT,{answer:{answer:re.content,citations:_e(h[he-1])},onCitationClicked:le=>Ue(le)})}):re.role===M?fe("div",{className:ke.chatMessageError,children:[fe(me,{horizontal:!0,className:ke.chatMessageErrorContent,children:[B(KD,{className:ke.errorIcon,style:{color:"rgba(182, 52, 67, 1)"}}),B("span",{children:"Error"})]}),B("span",{className:ke.chatMessageErrorContent,children:re.content})]}):null})),o&&B(ya,{children:B("div",{className:ke.chatMessageGpt,children:B(AT,{answer:{answer:"Generating answer...",citations:[]},onCitationClicked:()=>null})})}),B("div",{ref:n})]}),fe(me,{horizontal:!0,className:ke.chatInput,children:[r&&fe(me,{horizontal:!0,className:ke.stopGeneratingContainer,role:"button","aria-label":"Stop generating",tabIndex:0,onClick:Je,onKeyDown:re=>re.key==="Enter"||re.key===" "?Je():null,children:[B(qD,{className:ke.stopGeneratingIcon,"aria-hidden":"true"}),B("span",{className:ke.stopGeneratingText,"aria-hidden":"true",children:"Stop generating"})]}),fe(me,{children:[((Ft=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:Ft.status)!==Un.NotConfigured&&B(Nu,{role:"button",styles:{icon:{color:"#FFFFFF"},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:"#BDBDBD"}},className:ke.newChatIcon,iconProps:{iconName:"Add"},onClick:b,disabled:Ne(),"aria-label":"start a new chat button"}),B(Nu,{role:"button",styles:{icon:{color:"#FFFFFF"},root:{color:"#FFFFFF",background:Ne()?"#BDBDBD":"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)",cursor:Ne()?"":"pointer"}},className:((Et=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:Et.status)!==Un.NotConfigured?ke.clearChatBroom:ke.clearChatBroomNoCosmos,iconProps:{iconName:"Broom"},onClick:((zt=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:zt.status)!==Un.NotConfigured?F:b,disabled:Ne(),"aria-label":"clear chat button"}),B($u,{hidden:C,onDismiss:Q,dialogContentProps:D,modalProps:P})]}),B(S$,{clearOnSend:!0,placeholder:"Type a new question...",disabled:r,onSend:(re,he)=>{var le;(le=e==null?void 0:e.state.isCosmosDBAvailable)!=null&&le.cosmosDB?K(re,he):G(re,he)},conversationId:(xn=e==null?void 0:e.state.currentChat)!=null&&xn.id?(Vn=e==null?void 0:e.state.currentChat)==null?void 0:Vn.id:void 0})]})]}),h&&h.length>0&&u&&s&&fe(me.Item,{className:ke.citationPanel,tabIndex:0,role:"tabpanel","aria-label":"Citations Panel",children:[fe(me,{"aria-label":"Citations Panel Header Container",horizontal:!0,className:ke.citationPanelHeaderContainer,horizontalAlign:"space-between",verticalAlign:"center",children:[B("span",{"aria-label":"Citations",className:ke.citationPanelHeader,children:"Citations"}),B(pa,{iconProps:{iconName:"Cancel"},"aria-label":"Close citations panel",onClick:()=>c(!1)})]}),B("h5",{className:ke.citationPanelTitle,tabIndex:0,title:s.url&&!s.url.includes("blob.core")?s.url:s.title??"",onClick:()=>Rt(s),children:s.title}),B("div",{tabIndex:0,children:B(lf,{linkTarget:"_blank",className:ke.citationPanelContent,children:s.content,remarkPlugins:[MC],rehypePlugins:[Fz]})})]}),(e==null?void 0:e.state.isChatHistoryOpen)&&((Dr=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:Dr.status)!==Un.NotConfigured&&B(H$,{})]})})};LN();function z$(){return B(cw,{children:B(C7,{children:B(E7,{children:fe(Tc,{path:"/",element:B(dw,{}),children:[B(Tc,{index:!0,element:B(U$,{})}),B(Tc,{path:"*",element:B(fw,{})})]})})})})}r0.createRoot(document.getElementById("root")).render(B(vn.StrictMode,{children:B(z$,{})}))});export default G$(); +//# sourceMappingURL=index-d0e2f128.js.map diff --git a/static/assets/index-88c94d86.js.map b/static/assets/index-d0e2f128.js.map similarity index 67% rename from static/assets/index-88c94d86.js.map rename to static/assets/index-d0e2f128.js.map index 67410b4b9e..2f75e1d3e0 100644 --- a/static/assets/index-88c94d86.js.map +++ b/static/assets/index-d0e2f128.js.map @@ -1 +1 @@ -{"version":3,"file":"index-88c94d86.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/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/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/Azure.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/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/unist-builder/lib/index.js","../../frontend/node_modules/mdast-util-to-hast/lib/traverse.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-position/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/handlers/thematic-break.js","../../frontend/node_modules/mdast-util-to-hast/lib/wrap.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/list.js","../../frontend/node_modules/mdast-util-to-hast/lib/footer.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/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/mdurl/encode.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/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/mdast-util-to-hast/lib/handlers/table.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/text.js","../../frontend/node_modules/mdast-util-to-hast/lib/handlers/index.js","../../frontend/node_modules/mdast-util-to-hast/lib/index.js","../../frontend/node_modules/remark-rehype/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/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/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 +